@sparkvault/sdk-js 17.0.1 → 17.0.2

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.
Files changed (46) hide show
  1. package/README.md +3 -3
  2. package/dist/api-base.d.ts +2 -2
  3. package/dist/config.d.ts +1 -1
  4. package/dist/entropy/index.d.ts +2 -2
  5. package/dist/entropy/types.d.ts +1 -1
  6. package/dist/errors.d.ts +3 -3
  7. package/dist/http.d.ts +1 -1
  8. package/dist/index.cjs +197 -189
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.ts +150 -150
  11. package/dist/index.mjs +197 -189
  12. package/dist/index.mjs.map +1 -1
  13. package/dist/ingots/index.d.ts +10 -10
  14. package/dist/ingots/types.d.ts +3 -3
  15. package/dist/notify/index.d.ts +8 -8
  16. package/dist/notify/types.d.ts +10 -10
  17. package/dist/products/identity/api.d.ts +5 -5
  18. package/dist/products/identity/dialog-launcher.d.ts +2 -2
  19. package/dist/products/identity/handlers/otp-handler.d.ts +1 -1
  20. package/dist/products/identity/handlers/passkey-handler.d.ts +4 -4
  21. package/dist/products/identity/index.d.ts +11 -11
  22. package/dist/products/identity/renderer.d.ts +10 -10
  23. package/dist/products/identity/types.d.ts +10 -10
  24. package/dist/products/identity/utils.d.ts +3 -3
  25. package/dist/products/identity/views/backup-verify.d.ts +3 -3
  26. package/dist/products/identity/views/error.d.ts +1 -1
  27. package/dist/products/identity/views/identity-input.d.ts +1 -1
  28. package/dist/products/identity/views/method-select.d.ts +1 -1
  29. package/dist/products/identity/views/origin-not-allowed.d.ts +2 -2
  30. package/dist/products/identity/views/passkey-auto.d.ts +1 -1
  31. package/dist/products/identity/views/product-not-configured.d.ts +2 -2
  32. package/dist/products/identity/views/service-unavailable.d.ts +1 -1
  33. package/dist/products/index.d.ts +1 -1
  34. package/dist/products/notify/index.d.ts +21 -21
  35. package/dist/products/notify/types.d.ts +65 -65
  36. package/dist/products/structured-ingots/types.d.ts +2 -2
  37. package/dist/sparks/index.d.ts +1 -1
  38. package/dist/sparkvault.js +1 -1
  39. package/dist/sparkvault.js.map +1 -1
  40. package/dist/utils/dom.d.ts +3 -3
  41. package/dist/vaults/index.d.ts +2 -2
  42. package/dist/vaults/types.d.ts +2 -2
  43. package/dist/vaults/upload/api.d.ts +14 -14
  44. package/dist/vaults/upload/renderer.d.ts +1 -1
  45. package/dist/vaults/upload/styles.d.ts +1 -1
  46. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -44,7 +44,7 @@ interface SparkVaultConfig {
44
44
  * Preload Identity configuration on SDK init (default: true in a browser,
45
45
  * false off-DOM). When enabled, the /config call is made immediately when the
46
46
  * SDK initializes, so verify() opens instantly without waiting for the config
47
- * fetch. It buys nothing in a server process — there is no dialog to open —
47
+ * fetch. It buys nothing in a server process (there is no dialog to open),
48
48
  * so a Node host does not pay for a network call it will never use.
49
49
  * Set explicitly to override in either direction.
50
50
  */
@@ -151,7 +151,7 @@ declare class HttpClient {
151
151
  * and every other answer is the base error under the service's own code.
152
152
  * Each carries the service's code (`serviceCode`), which tells apart two
153
153
  * refusals that share a typed class's `code`, and the answer's `Retry-After`
154
- * (`retryAfterMs`), the floor for whoever retries it — the SDK's own
154
+ * (`retryAfterMs`), the floor for whoever retries it: the SDK's own
155
155
  * transfers when the answer is a download link's mint, and the host page
156
156
  * otherwise.
157
157
  */
@@ -237,7 +237,7 @@ interface VerifyOptions {
237
237
  * Container chrome for inline (`target`) rendering. `'card'` (default) wraps
238
238
  * the flow in a bordered, rounded surface with the SparkVault footer. `'bare'`
239
239
  * drops the surface and footer so a host page (e.g. the SparkVault sign-in
240
- * page) can supply its own full-window chrome — logo, background, footer.
240
+ * page) can supply its own full-window chrome: logo, background, footer.
241
241
  * Ignored in dialog mode.
242
242
  */
243
243
  chrome?: 'card' | 'bare';
@@ -246,13 +246,13 @@ interface VerifyOptions {
246
246
  /**
247
247
  * How sign-in leaves this page. `'auto'` (default) and `'popup'` open the
248
248
  * first-party popup; `'redirect'` navigates this tab to the sign-in page
249
- * instead (its return leg is `handleRedirectResult()`) — the opt-out for
249
+ * instead (its return leg is `handleRedirectResult()`), the opt-out for
250
250
  * hosts that prefer a full-page redirect over a popup on mobile.
251
251
  */
252
252
  flow?: 'auto' | 'popup' | 'redirect';
253
253
  /**
254
254
  * `'select_account'` always shows the sign-in page's account chooser instead
255
- * of silently continuing as the current account — even when only one saved
255
+ * of silently continuing as the current account, even when only one saved
256
256
  * account exists. Any other value is dropped at URL serialization.
257
257
  */
258
258
  prompt?: 'select_account';
@@ -277,7 +277,7 @@ interface VerifyOptions {
277
277
  identityTypes?: SigninIdentityType[];
278
278
  /**
279
279
  * Rendering strategy (internal). `'local'` renders the flow directly in this
280
- * document — used inside the popup that runs the flow, and forced for inline
280
+ * document: used inside the popup that runs the flow, and forced for inline
281
281
  * (`target`) rendering. Dialog mode (omitted) renders a thin launcher and
282
282
  * opens the popup.
283
283
  */
@@ -369,7 +369,7 @@ interface PortalUrlOptions {
369
369
  /**
370
370
  * Focus a specific connected site on the Sites screen (an `acc_…` account ID).
371
371
  * When `section` is `'sites'` and `site` is omitted, defaults to this SDK's
372
- * own `accountId` — i.e. "manage this site". Ignored for other sections.
372
+ * own `accountId` (i.e. "manage this site"). Ignored for other sections.
373
373
  */
374
374
  site?: string;
375
375
  }
@@ -392,7 +392,7 @@ interface VerifyResult {
392
392
  recommendations?: Recommendation[];
393
393
  }
394
394
  /**
395
- * Options for `signIn()` — the customer-facing popup sign-in. The popup owns its
395
+ * Options for `signIn()`: the customer-facing popup sign-in. The popup owns its
396
396
  * rendering, so there is no inline `target`/`renderMode`/`chrome`/`signinRef`/
397
397
  * `completesInWindow` here; those are internal to the SparkVault-hosted
398
398
  * sign-in surfaces.
@@ -412,7 +412,7 @@ type RenderOptions = Omit<VerifyOptions, 'identityTypes'> & {
412
412
  /** The verified identity returned by `signIn()`. */
413
413
  type SignInResult = VerifyResult;
414
414
  /**
415
- * Options for `handleRedirectResult()` — call once on every page load. It
415
+ * Options for `handleRedirectResult()`. Call once on every page load. It
416
416
  * redeems a returned sign-in code (from `flow: 'redirect'` or the silent SSO
417
417
  * self-heal) and, when a popup result was lost, triggers that self-heal. It
418
418
  * no-ops otherwise.
@@ -460,7 +460,7 @@ interface TokenClaims {
460
460
  email_verified?: boolean;
461
461
  /**
462
462
  * The person's public avatar URL (my.auth.sv), present only when they have a visible
463
- * avatar. The URL always renders an image — their photo, or a neutral placeholder.
463
+ * avatar. The URL always renders an image: their photo, or a neutral placeholder.
464
464
  */
465
465
  picture?: string;
466
466
  }
@@ -489,7 +489,7 @@ declare class IdentityModule {
489
489
  private pendingSignIn;
490
490
  constructor(config: ResolvedConfig);
491
491
  /**
492
- * Build a deep link into the person's auth.sv Identity portal — where they
492
+ * Build a deep link into the person's auth.sv Identity portal, where they
493
493
  * manage their verified identity, passkeys, sessions, and connected sites
494
494
  * across every SparkVault-integrated site. Send a signed-in user here to
495
495
  * self-serve;
@@ -511,7 +511,7 @@ declare class IdentityModule {
511
511
  * SSO hub session on the Identity origin),
512
512
  * the browser surfaces a "Continue as …" prompt with no popup, redirect, or
513
513
  * typing. Requires a registered `clientId` in the SDK config and a browser
514
- * with FedCM support — callers should feature-detect with
514
+ * with FedCM support: callers should feature-detect with
515
515
  * `IdentityModule.isFedcmAvailable()` and fall back to `signIn()` otherwise.
516
516
  *
517
517
  * @returns the verified result, or `null` when the browser has no FedCM
@@ -544,7 +544,7 @@ declare class IdentityModule {
544
544
  * This is the single programmatic entry point; `attach()` binds it to element
545
545
  * clicks. The popup runs the flow top-level on the Identity origin (so
546
546
  * login's `__Host-` hub cookie is a first-party write and cross-domain SSO
547
- * works) and posts the result back — the promise resolves with it.
547
+ * works) and posts the result back; the promise resolves with it.
548
548
  *
549
549
  * Resilience: pair this with `handleRedirectResult()` on page load. If the
550
550
  * popup's result is ever lost (a mobile browser discards the backgrounded
@@ -609,17 +609,17 @@ declare class IdentityModule {
609
609
  */
610
610
  decodeToken(token: string): TokenClaims;
611
611
  /**
612
- * Complete a sign-in on page load — the return leg of `signIn()`. Call once
612
+ * Complete a sign-in on page load: the return leg of `signIn()`. Call once
613
613
  * on every page load; it resolves `null` when there is nothing to do.
614
614
  *
615
615
  * It handles two cases:
616
- * 1. A one-time code is in the URL fragment (`#sv_code=…`) — the popup's
616
+ * 1. A one-time code is in the URL fragment (`#sv_code=…`): the popup's
617
617
  * result was lost and self-heal navigated here, or `flow: 'redirect'`
618
618
  * returned. Redeem it server-side and hand the full result to
619
619
  * `onSuccess` (and resolve with it).
620
620
  * 2. A sign-in was in flight but never delivered (a mobile browser
621
621
  * discarded the backgrounded opener tab, killing the popup's
622
- * postMessage) — silently re-mint from the SSO session the popup signed
622
+ * postMessage): silently re-mint from the SSO session the popup signed
623
623
  * in or chose, by navigating this tab through the silent SSO endpoint
624
624
  * and straight back with a code (case 1 on return). The bounce names
625
625
  * the sign-in's reference, and the endpoint mints only when the
@@ -627,7 +627,7 @@ declare class IdentityModule {
627
627
  * such session (a sign-in that opened none, such as one through the
628
628
  * account's own identity provider) it comes back logged-out, no oracle.
629
629
  *
630
- * The code is one-time, PKCE-bound, and origin-locked — never the token. The
630
+ * The code is one-time, PKCE-bound, and origin-locked, never the token. The
631
631
  * host must still verify `result.token` server-side via the Identity JWKS.
632
632
  *
633
633
  * @example Call on page load; sign-in clicks stay unchanged.
@@ -642,7 +642,7 @@ declare class IdentityModule {
642
642
  * Silently re-mint the sign-in result from the SSO session the popup signed
643
643
  * in or chose. Navigates this tab through the silent SSO endpoint
644
644
  * (a top-level GET, so the `SameSite=Lax` hub cookie rides along) which,
645
- * PKCE-bound, returns a one-time code in the fragment — handled by case 1 on
645
+ * PKCE-bound, returns a one-time code in the fragment, handled by case 1 on
646
646
  * return. No-op (stays put) if session storage or WebCrypto is unavailable,
647
647
  * so a degraded environment simply never recovers rather than erroring. The
648
648
  * bounce's PKCE verifier and state are a draw from the Identity origin
@@ -721,7 +721,7 @@ declare class IdentityModule {
721
721
  * Whether the preloaded config has already settled as a *permanent* failure
722
722
  * the popup can't surface (origin not allowed, or product not configured).
723
723
  * Used to skip the launcher and show the error dialog in-page immediately.
724
- * Returns false — proceed to the launcher — when config is not preloaded,
724
+ * Returns false (proceed to the launcher) when config is not preloaded,
725
725
  * still in flight (raced against a short timeout so the common path is never
726
726
  * delayed), resolved, or failed only transiently (the launcher surfaces a
727
727
  * transient failure in its own dialog).
@@ -748,7 +748,7 @@ declare class IdentityModule {
748
748
  *
749
749
  * @internal Used only by the SparkVault-hosted sign-in popup and hosted login
750
750
  * page (which own their chrome and pass `renderMode: 'local'`). Customer
751
- * integrations have no inline mode — use `signIn()` / `attach()`.
751
+ * integrations have no inline mode; use `signIn()` / `attach()`.
752
752
  */
753
753
  render(options: RenderOptions): Promise<VerifyResult>;
754
754
  }
@@ -877,7 +877,7 @@ declare class NotifyProjectsModule {
877
877
  * sender-side feed (`sv.products.notify.getInbox`) returns the same row without
878
878
  * `from`, since it reads one sending account's inbox. A row carries
879
879
  * its cleartext part (`title`, and for a cleartext send a short `body`) natively;
880
- * a SECURE send's content is never carried here — it lives behind the SparkLink
880
+ * a SECURE send's content is never carried here: it lives behind the SparkLink
881
881
  * `sparklink_code`. Keeping the wire shape verbatim is the single source of truth
882
882
  * shared with `@sparkvault/sdk-mobile` and the first-party console, so do not
883
883
  * "camelCase" these rows. Only the input option `createdAt` is camelCase for call
@@ -908,7 +908,7 @@ type NotificationSender = {
908
908
  * sender reading its own inbox is who sent every row in it. The `title` (and,
909
909
  * for a cleartext send, the short `body`) is the NON-sensitive cleartext part,
910
910
  * shown natively. A SECURE send's content lives behind the SparkLink
911
- * (`sparklink_code`) and is never carried here — open the pointer to reveal it.
911
+ * (`sparklink_code`) and is never carried here; open the pointer to reveal it.
912
912
  * Timestamps are epoch SECONDS.
913
913
  */
914
914
  interface NotifyInboxRow {
@@ -921,7 +921,7 @@ interface NotifyInboxRow {
921
921
  /**
922
922
  * The row's visible cleartext line, shown natively: a plaintext send's inline
923
923
  * body, or a SEALED send's non-secret `instructions`. A sealed row can and
924
- * normally should carry one — it is the readable line above the reveal. Never
924
+ * normally should carry one: it is the readable line above the reveal. Never
925
925
  * the sealed content itself. Absent when the sender set neither.
926
926
  */
927
927
  body?: string;
@@ -931,7 +931,7 @@ interface NotifyInboxRow {
931
931
  read_at: number | null;
932
932
  archived_at: number | null;
933
933
  /**
934
- * The grant to open. Present only while a live reveal stands behind it — a
934
+ * The grant to open. Present only while a live reveal stands behind it, meaning a
935
935
  * SEALED (secure) send whose grant still opens: not yet opened (on a send that
936
936
  * asks for an answer, not yet answered), not expired, not gone and not
937
937
  * recalled. A cleartext send delivers its content inline in the channel and
@@ -953,7 +953,7 @@ interface NotifyInboxRow {
953
953
  */
954
954
  sealed: boolean;
955
955
  /**
956
- * True only when there is a secure part left to reveal — exactly when
956
+ * True only when there is a secure part left to reveal, exactly when
957
957
  * `sparklink_code` is present. `false` does NOT mean "cleartext row": a
958
958
  * `sealed` row whose reveal no longer opens (opened, answered, expired or
959
959
  * gone) is unlocked too, and so is a recalled one, with nothing behind it.
@@ -987,7 +987,7 @@ interface ListNotificationsResponse {
987
987
  /**
988
988
  * Next-page cursor, or null on the last page. A page can be SHORT of `limit`
989
989
  * yet still carry a non-null cursor (the state/sender filter is applied after
990
- * the key query) — follow the cursor; never treat a short page as the end.
990
+ * the key query), so follow the cursor; never treat a short page as the end.
991
991
  */
992
992
  cursor: string | null;
993
993
  }
@@ -1007,7 +1007,7 @@ interface MarkNotificationStateResponse {
1007
1007
  updated_at: number;
1008
1008
  }
1009
1009
  /**
1010
- * States a BULK drain can apply. `archived` is per-row only — it has no GSI for
1010
+ * States a BULK drain can apply. `archived` is per-row only: it has no GSI for
1011
1011
  * the server to page over, so the bulk endpoint rejects it.
1012
1012
  */
1013
1013
  type NotificationBulkMarkState = 'seen' | 'read';
@@ -1017,7 +1017,7 @@ interface MarkAllNotificationsStateOptions {
1017
1017
  cursor?: string;
1018
1018
  }
1019
1019
  interface MarkAllNotificationsStateResponse {
1020
- /** Rows marked by THIS page — the server marks one bounded page per call. */
1020
+ /** Rows marked by THIS page; the server marks one bounded page per call. */
1021
1021
  updated: number;
1022
1022
  /** Cursor for the next page, or null once the inbox is drained. */
1023
1023
  cursor: string | null;
@@ -1027,7 +1027,7 @@ interface MarkAllReadResult {
1027
1027
  updated: number;
1028
1028
  /**
1029
1029
  * True when the drain reached the end of the inbox (the server returned a null
1030
- * cursor). False when it stopped at the page bound with rows still unmarked —
1030
+ * cursor). False when it stopped at the page bound with rows still unmarked:
1031
1031
  * call again to continue. Without this a truncated drain is indistinguishable
1032
1032
  * from a completed one.
1033
1033
  */
@@ -1035,7 +1035,7 @@ interface MarkAllReadResult {
1035
1035
  }
1036
1036
  /** The platform VAPID public key needed for pushManager.subscribe(). */
1037
1037
  interface WebPushKeyResponse {
1038
- /** False until the VAPID keypair is provisioned server-side — hide the UI. */
1038
+ /** False until the VAPID keypair is provisioned server-side: hide the UI. */
1039
1039
  configured: boolean;
1040
1040
  /** base64url VAPID application server key, or null when not configured. */
1041
1041
  vapid_public_key: string | null;
@@ -1224,7 +1224,7 @@ interface VaultSummary extends VaultLifecycle {
1224
1224
  ingotCount: number;
1225
1225
  /** Total storage used in bytes */
1226
1226
  storageBytes: number;
1227
- /** Previous versions retained per file or structured object (0–50); absent on older servers. */
1227
+ /** Previous versions retained per file or structured object (0 to 50); absent on older servers. */
1228
1228
  ingotVersionLimit?: number;
1229
1229
  /** @deprecated Use ingotVersionLimit. */
1230
1230
  structuredIngotVersionLimit?: number;
@@ -1233,7 +1233,7 @@ interface VaultSummary extends VaultLifecycle {
1233
1233
  }
1234
1234
  /** Options for list. */
1235
1235
  interface ListVaultsOptions {
1236
- /** Page size (1–500; server default 100) */
1236
+ /** Page size (1 to 500; server default 100) */
1237
1237
  limit?: number;
1238
1238
  /** Pagination cursor from a prior page's `nextCursor` */
1239
1239
  cursor?: string;
@@ -1348,7 +1348,7 @@ interface UpdateVaultUploadOptions {
1348
1348
  }
1349
1349
 
1350
1350
  /**
1351
- * Notify Product Types — the TENANT (sender) surface of `/v1/products/notify/*`.
1351
+ * Notify Product Types: the TENANT (sender) surface of `/v1/products/notify/*`.
1352
1352
  *
1353
1353
  * Wire-shape convention, split deliberately and consistently:
1354
1354
  *
@@ -1361,7 +1361,7 @@ interface UpdateVaultUploadOptions {
1361
1361
  * with `@sparkvault/sdk-mobile` and the first-party console. Do not remap them.
1362
1362
  * - **The config patch is the ONE exception on the input side**: it stays
1363
1363
  * snake_case verbatim. It is a partial PATCH against a server-validated schema
1364
- * whose `categories` map is OPEN-KEYED — a tenant names its own topics
1364
+ * whose `categories` map is OPEN-KEYED: a tenant names its own topics
1365
1365
  * (`weekly_newsletter`) and those keys are addressed in send payloads and
1366
1366
  * rendered into recipient-facing preference URLs. Case-mapping the tree would
1367
1367
  * silently corrupt them, so the config travels exactly as the server defines it.
@@ -1395,12 +1395,12 @@ type NotifyDestinationKind = 'webhook' | 'slack' | 'teams';
1395
1395
  /**
1396
1396
  * One of a send's destinations, as its status and its history summary report it.
1397
1397
  *
1398
- * - `pending` — the post has not settled yet (it is queued, or waits to be tried again).
1399
- * - `delivered` — the destination accepted the post.
1400
- * - `skipped` — nothing was posted, and trying again would not post it.
1401
- * - `failed` — the post was given up on.
1402
- * - `recalled` — the whole send was recalled before the post settled.
1403
- * - `unknown` — the send's delivery record is gone (past its history horizon).
1398
+ * - `pending`: the post has not settled yet (it is queued, or waits to be tried again).
1399
+ * - `delivered`: the destination accepted the post.
1400
+ * - `skipped`: nothing was posted, and trying again would not post it.
1401
+ * - `failed`: the post was given up on.
1402
+ * - `recalled`: the whole send was recalled before the post settled.
1403
+ * - `unknown`: the send's delivery record is gone (past its history horizon).
1404
1404
  */
1405
1405
  type NotifyDestinationState = 'pending' | 'delivered' | 'skipped' | 'failed' | 'recalled' | 'unknown';
1406
1406
  /**
@@ -1483,7 +1483,7 @@ interface NotifyDestinationTestResult {
1483
1483
  * - `sealed` (default): content is sealed into a Spark behind a single-use
1484
1484
  * SparkLink; channels carry only the pointer ("tap to view").
1485
1485
  * - `plaintext`: a short non-confidential body rendered INLINE in the channel
1486
- * payload. Fail-closed — at most 50 recipients, never allowed on a
1486
+ * payload. Fail-closed: at most 50 recipients, never allowed on a
1487
1487
  * confidential category, and on the inline-capable channels alone, which
1488
1488
  * are all six of an organization's (`in_app`, `email`, `sms`, `push`,
1489
1489
  * `web_push`, `voice`).
@@ -1493,7 +1493,7 @@ type NotifyDeliveryMode = 'sealed' | 'plaintext';
1493
1493
  * What a recipient must prove before the SparkLink reveals its content.
1494
1494
  *
1495
1495
  * Three levels, because three is what the Identity ceremony can achieve, and the
1496
- * bar is enforced on the method the recipient ACHIEVED — a passkey-level grant is
1496
+ * bar is enforced on the method the recipient ACHIEVED: a passkey-level grant is
1497
1497
  * never satisfied by an identifier session. A level the reveal cannot satisfy is
1498
1498
  * not a stronger guarantee; it is a send nobody can open.
1499
1499
  *
@@ -1503,7 +1503,7 @@ type NotifyDeliveryMode = 'sealed' | 'plaintext';
1503
1503
  * is a bearer token.
1504
1504
  */
1505
1505
  type NotifyVerificationLevel = 'none' | 'identifier' | 'passkey';
1506
- /** What the recipient does at the reveal — the interaction the receipt attests to. */
1506
+ /** What the recipient does at the reveal: the interaction the receipt attests to. */
1507
1507
  type NotifyInteraction = 'view' | 'acknowledge' | 'sign' | 'approve' | 'reply';
1508
1508
  /**
1509
1509
  * The fixed categories the five presets classify their sends as. Each is seeded
@@ -1603,7 +1603,7 @@ interface NotifySendContent {
1603
1603
  }
1604
1604
  /**
1605
1605
  * An EXISTING ingot to point the grant at instead of sealing new content. One
1606
- * persistent asset carries a single grant, so an ingot send is 1:1 — it targets
1606
+ * persistent asset carries a single grant, so an ingot send is 1:1: it targets
1607
1607
  * exactly one recipient.
1608
1608
  *
1609
1609
  * The recipient opens the file in the SparkVault file viewer, which has no
@@ -1614,7 +1614,7 @@ interface NotifySendContent {
1614
1614
  * the sender must hold a Full License (403 `LICENSE_REQUIRED`).
1615
1615
  *
1616
1616
  * Only a holder of the vault's key may publish its files, so the send carries
1617
- * the unsealed vault's read-write VAT as `X-Vault-Access-Token` — exactly what
1617
+ * the unsealed vault's read-write VAT as `X-Vault-Access-Token`, exactly what
1618
1618
  * the vault's own sharing calls demand. A missing, unknown or revoked VAT is 401
1619
1619
  * `AUTHENTICATION_ERROR`; an expired one 403 (`details.reason: 'VAT_EXPIRED'`,
1620
1620
  * unseal again and retry), a read-only one 403 (`'VAT_READ_ONLY'`), and one for
@@ -1664,7 +1664,7 @@ interface NotifyEscalation {
1664
1664
  interface CreateNotifySendOptions {
1665
1665
  /**
1666
1666
  * Idempotency key, `^[A-Za-z0-9_.:-]{1,128}$`. Replaying an existing id returns
1667
- * the stored send unchanged — never re-sealed, never re-delivered — with
1667
+ * the stored send unchanged (never re-sealed, never re-delivered) with
1668
1668
  * `idempotent: true`. Generated (`ntsnd_*`) when absent. A replay must repeat
1669
1669
  * what the recipient meets (the delivery mode, the content or ingot, the
1670
1670
  * recipients and their handles, title, category, instructions, policy,
@@ -1705,7 +1705,7 @@ interface CreateNotifySendOptions {
1705
1705
  */
1706
1706
  title?: string;
1707
1707
  /**
1708
- * REQUIRED. The category this send is classified as — one of your configured
1708
+ * REQUIRED. The category this send is classified as: one of your configured
1709
1709
  * `categories`, or a preset category. It decides the channel ladder, whether a
1710
1710
  * recipient may mute it, and whether the mail carries an unsubscribe
1711
1711
  * affordance, so the server rejects a send without one rather than guessing:
@@ -1758,7 +1758,7 @@ interface NotifySendResult {
1758
1758
  status: string;
1759
1759
  /**
1760
1760
  * Present (and `true`) ONLY on an idempotent replay of an existing `send_id`.
1761
- * The first accept OMITS the field entirely — it is never `false`.
1761
+ * The first accept OMITS the field entirely; it is never `false`.
1762
1762
  */
1763
1763
  idempotent?: boolean;
1764
1764
  }
@@ -1781,7 +1781,7 @@ type NotifyInboxView = NotificationInboxState;
1781
1781
  /** Terminal display states applicable to a single row. */
1782
1782
  type NotifyInboxMarkState = NotificationMarkState;
1783
1783
  /**
1784
- * States a BULK drain can apply. `archived` is per-row only — it has no sparse
1784
+ * States a BULK drain can apply. `archived` is per-row only: it has no sparse
1785
1785
  * GSI, so bulk-archiving would require a full-partition scan.
1786
1786
  */
1787
1787
  type NotifyInboxBulkMarkState = NotificationBulkMarkState;
@@ -1834,14 +1834,14 @@ interface MarkNotifyInboxAllResponse {
1834
1834
  * The one answer for a recipient, derived from their row (never stored, so it
1835
1835
  * cannot drift from the facts it summarizes).
1836
1836
  *
1837
- * - `pending` — still in flight, or not yet driven: the escalation ladder has a
1837
+ * - `pending`: still in flight, or not yet driven; the escalation ladder has a
1838
1838
  * step left to run and nothing has settled them, whatever its steps so far
1839
1839
  * recorded short of a delivery. A recipient whose first channel declined
1840
1840
  * stays here while the next one waits its turn.
1841
- * - `delivered` — a channel accepted it and no provider has repudiated that, or
1841
+ * - `delivered`: a channel accepted it and no provider has repudiated that, or
1842
1842
  * the recipient opened the sealed content or marked it seen and a later
1843
1843
  * escalation step recorded that before any recall.
1844
- * - `undeliverable` — the ladder ran its course and every channel attempted
1844
+ * - `undeliverable`: the ladder ran its course and every channel attempted
1845
1845
  * declined (no handle, bounced, not implemented). The recipient cannot be
1846
1846
  * reached as addressed. A hard bounce of their only delivery moves them here
1847
1847
  * at once, even with a step left to run (or to `failed`, if another channel
@@ -1851,20 +1851,20 @@ interface MarkNotifyInboxAllResponse {
1851
1851
  * address may be fine: the grant can expire before their first step goes, or
1852
1852
  * while their email retries or is deferred, and then `channel_outcomes`
1853
1853
  * record no decline.
1854
- * - `failed` — the ladder ran its course (or their grant expired, or a hard
1854
+ * - `failed`: the ladder ran its course (or their grant expired, or a hard
1855
1855
  * bounce of their only delivery settled them), every attempt ended, and a
1856
1856
  * channel gave up: it exhausted its retries, their deferred email, text or
1857
1857
  * call could not go within 24 hours of the send, or a text or call's answer
1858
1858
  * was lost after the carrier took it (it may have reached them). OUR
1859
1859
  * transport gave up; the address may be perfectly good.
1860
- * - `suppressed` — taken out of the ladder by a decision, not a fault. Usually
1860
+ * - `suppressed`: taken out of the ladder by a decision, not a fault. Usually
1861
1861
  * the PERSON chose silence (site off, category muted, every offered channel
1862
1862
  * opted out, your site blocked on auth.sv for a sealed send, or the address
1863
1863
  * unsubscribed); otherwise your account was suspended or began deleting before
1864
1864
  * their next queued step came due. Not something to route around.
1865
- * - `rate_limited` — skipped by the per-recipient abuse ceiling for that minute,
1865
+ * - `rate_limited`: skipped by the per-recipient abuse ceiling for that minute,
1866
1866
  * decided once per send and recipient.
1867
- * - `recalled` — the sender took it back, and nothing on this recipient's row
1867
+ * - `recalled`: the sender took it back, and nothing on this recipient's row
1868
1868
  * outranks the recall. The reveal is revoked and no further delivery will be
1869
1869
  * attempted. Recall cannot undo what already happened, so it ranks BELOW every
1870
1870
  * answer the row already records: `delivered` (a channel reached them, or
@@ -1872,7 +1872,7 @@ interface MarkNotifyInboxAllResponse {
1872
1872
  * `rate_limited`, and `undeliverable` / `failed` when no channel could reach
1873
1873
  * them or their ladder ran its course with every channel declining or giving
1874
1874
  * up before the recall. A recall that stops a ladder before it runs its course
1875
- * reads `recalled`, whatever its earlier steps recorded — so a recipient whose
1875
+ * reads `recalled`, whatever its earlier steps recorded, so a recipient whose
1876
1876
  * first channel skipped them and who was recalled before their next channel
1877
1877
  * reads `recalled`. It also covers recipients with no row
1878
1878
  * yet: everyone a whole-audience recall stopped the fan-out before reaching,
@@ -1883,18 +1883,18 @@ type NotifyRecipientState = 'pending' | 'delivered' | 'undeliverable' | 'failed'
1883
1883
  * Why the pipeline took a recipient out of the ladder, as a fixed token (never a
1884
1884
  * transport's own words, so nothing recipient-identifying rides it).
1885
1885
  *
1886
- * - `no_channels` — the send offered no usable channel at all.
1887
- * - `unreachable` — every offered channel lacks a handle for them.
1888
- * - `global_off` — the person switched this sender off entirely.
1889
- * - `category_muted` — the person muted this category.
1890
- * - `all_channels_opted_out` — the person opted out of every channel offered.
1891
- * - `site_blocked` — the person blocked your site on auth.sv, and the send was
1892
- * sealed: opening it asks them to prove the address it was sent to, a proof
1886
+ * - `no_channels`: the send offered no usable channel at all.
1887
+ * - `unreachable`: every offered channel lacks a handle for them.
1888
+ * - `global_off`: the person switched this sender off entirely.
1889
+ * - `category_muted`: the person muted this category.
1890
+ * - `all_channels_opted_out`: the person opted out of every channel offered.
1891
+ * - `site_blocked`: the person blocked your site on auth.sv, and the send was
1892
+ * sealed, so opening it asks them to prove the address it was sent to, a proof
1893
1893
  * of address that signs them in to nothing and opens no session, and their
1894
1894
  * block refuses that proof.
1895
- * - `identifier_unsubscribed` — a transport reported, mid-ladder, that the
1895
+ * - `identifier_unsubscribed`: a transport reported, mid-ladder, that the
1896
1896
  * person unsubscribed the address the send was addressed to.
1897
- * - `account_unavailable` — your account was suspended or began deleting before
1897
+ * - `account_unavailable`: your account was suspended or began deleting before
1898
1898
  * the recipient's next queued step came due, so their ladder ended there.
1899
1899
  *
1900
1900
  * The first two roll up to the `undeliverable` state (they need an address that
@@ -1904,7 +1904,7 @@ type NotifyRecipientState = 'pending' | 'delivered' | 'undeliverable' | 'failed'
1904
1904
  type NotifySuppressionReason = 'no_channels' | 'unreachable' | 'global_off' | 'category_muted' | 'all_channels_opted_out' | 'site_blocked' | 'identifier_unsubscribed' | 'account_unavailable';
1905
1905
  interface NotifySendStatusRecipient {
1906
1906
  recipient_id: string;
1907
- /** The derived per-recipient state — the field to branch on. */
1907
+ /** The derived per-recipient state: the field to branch on. */
1908
1908
  state: NotifyRecipientState;
1909
1909
  /** True once the recipient's first delivery step was enqueued. */
1910
1910
  enqueued: boolean;
@@ -1928,7 +1928,7 @@ interface NotifySendStatusRecipient {
1928
1928
  */
1929
1929
  rate_limited_at: number | null;
1930
1930
  /**
1931
- * The latest dispatch outcome per attempted channel — the difference between a
1931
+ * The latest dispatch outcome per attempted channel: the difference between a
1932
1932
  * notification that actually left the building and one whose every channel
1933
1933
  * declined. `{}` until the first dispatch is recorded. The adapter `detail`
1934
1934
  * string is deliberately NOT carried here: it can echo a provider response body,
@@ -1945,7 +1945,7 @@ interface NotifySendStatusRecipient {
1945
1945
  | 'skipped' | 'not_implemented' | 'retryable'
1946
1946
  /**
1947
1947
  * An email, text or call step that could not go yet, tried again at
1948
- * `retry_at` for its `reason` — not terminal: a step that cannot go within 24 hours
1948
+ * `retry_at` for its `reason`. Not terminal: a step that cannot go within 24 hours
1949
1949
  * of the send is recorded `failed` instead. Left out once the
1950
1950
  * recipient's record holds a stop its step meets when it wakes (they
1951
1951
  * saw the notification, it was recalled, or their ladder already
@@ -1959,7 +1959,7 @@ interface NotifySendStatusRecipient {
1959
1959
  * within 24 hours of the send, or was a text, call or email handed
1960
1960
  * on whose answer was lost (`reason` `possibly_delivered`: it may
1961
1961
  * have reached the person, so it is never sent again, and a new send
1962
- * to them could reach them twice) — terminal, unlike `retryable`.
1962
+ * to them could reach them twice): terminal, unlike `retryable`.
1963
1963
  * The ladder moves on to its next channel.
1964
1964
  */
1965
1965
  | 'failed'
@@ -2018,7 +2018,7 @@ interface NotifySendStatusRecipient {
2018
2018
  * Every attempt is terminal, nothing delivered, and at least one channel's
2019
2019
  * outcome is `failed`: it exhausted its retries, was deferred and could not
2020
2020
  * go within 24 hours of the send, or was a text or call whose answer was
2021
- * lost — a transport problem on our side, not an address that cannot
2021
+ * lost. It is a transport problem on our side, not an address that cannot
2022
2022
  * receive. A transport fact about the attempts so
2023
2023
  * far, like `undeliverable`.
2024
2024
  */
@@ -2042,7 +2042,7 @@ interface NotifySendStatusCounts {
2042
2042
  */
2043
2043
  deferred: number;
2044
2044
  /**
2045
- * The seven state counters below PARTITION the audience — one per
2045
+ * The seven state counters below PARTITION the audience, one per
2046
2046
  * `NotifyRecipientState`:
2047
2047
  * `pending + delivered + undeliverable + failed + suppressed + rate_limited + recalled === total`.
2048
2048
  * (`enqueued` / `seen` / `read` / `archived` / `deferred` are independent
@@ -2072,7 +2072,7 @@ interface NotifySendStatusCounts {
2072
2072
  /**
2073
2073
  * The sender's per-recipient delivery rollup. Metadata only by construction: it
2074
2074
  * never carries the SparkLink pointer, policy internals, or a contact you did not
2075
- * supply — `recipient_id` is the recipient's key (see `NotifyRecipientRef`), so a
2075
+ * supply. `recipient_id` is the recipient's key (see `NotifyRecipientRef`), so a
2076
2076
  * recipient addressed by email alone appears as that address, trimmed and
2077
2077
  * lowercased. Address recipients as `{ id, email }` to keep their addresses out
2078
2078
  * of the rollup.
@@ -2080,17 +2080,17 @@ interface NotifySendStatusCounts {
2080
2080
  interface NotifySendStatus {
2081
2081
  send_id: string;
2082
2082
  /**
2083
- * DERIVED, never stored — and by the SAME function the send-history list uses,
2083
+ * DERIVED, never stored, and by the SAME function the send-history list uses,
2084
2084
  * so the two never disagree about what a state means.
2085
2085
  *
2086
- * - `unknown` — no audience denominator, so no honest statement about "all
2086
+ * - `unknown`: no audience denominator, so no honest statement about "all
2087
2087
  * recipients" can be made.
2088
- * - `pending` — accepted; nothing handed to delivery yet.
2089
- * - `sending` — in flight.
2090
- * - `delivered` — every recipient settled delivered, whether a channel
2088
+ * - `pending`: accepted; nothing handed to delivery yet.
2089
+ * - `sending`: in flight.
2090
+ * - `delivered`: every recipient settled delivered, whether a channel
2091
2091
  * accepted it or their engagement was recorded (see the recipient `state`).
2092
- * - `partial` — every recipient resolved; some delivered, some did not.
2093
- * - `failed` — every recipient resolved and none delivered.
2092
+ * - `partial`: every recipient resolved; some delivered, some did not.
2093
+ * - `failed`: every recipient resolved and none delivered.
2094
2094
  *
2095
2095
  * A whole-audience recall resolves every recipient a channel had not already
2096
2096
  * reached, so a recalled send reads `partial`, `failed` when nothing had been
@@ -2151,7 +2151,7 @@ interface NotifySendStatusDestination {
2151
2151
  target_name: string | null;
2152
2152
  }
2153
2153
  /**
2154
- * A send's delivery state, DERIVED from its counters — the send row itself is
2154
+ * A send's delivery state, DERIVED from its counters: the send row itself is
2155
2155
  * write-once, so there is no stored lifecycle to read.
2156
2156
  *
2157
2157
  * `failed` counts every recipient who reached a terminal answer without being
@@ -2189,10 +2189,10 @@ interface NotifySendSummary {
2189
2189
  title: string | null;
2190
2190
  category: string | null;
2191
2191
  delivery: NotifyDeliveryMode | null;
2192
- /** The sender name recipients saw. Display only — nothing routes on it. */
2192
+ /** The sender name recipients saw. Display only: nothing routes on it. */
2193
2193
  display_sender_name: string | null;
2194
2194
  /**
2195
- * Audience size at accept — the denominator of the counters below. Null or 0
2195
+ * Audience size at accept: the denominator of the counters below. Null or 0
2196
2196
  * only on a send that carries no audience count, which reads
2197
2197
  * `state: 'unknown'`.
2198
2198
  */
@@ -2252,15 +2252,15 @@ interface ListNotifySendsResponse {
2252
2252
  * Recall depth.
2253
2253
  * - `grant` (default): revoke the access grant; the content survives.
2254
2254
  * - `content`: hard-burn the sealed spark so the content is unreadable for
2255
- * everyone, then drop the grant. Spark-backed sends only — an ingot send
2256
- * references the owner's durable vault content and can only be grant-recalled:
2255
+ * everyone, then drop the grant. Spark-backed sends only: an ingot send
2256
+ * references the owner's durable vault content and can only be grant-recalled, so
2257
2257
  * a `content` recall of one is a 400, refused before anything is revoked or
2258
2258
  * stopped.
2259
2259
  */
2260
2260
  type NotifyRecallMode = 'grant' | 'content';
2261
2261
  interface RecallNotifySendOptions {
2262
2262
  /**
2263
- * Recall only these recipients. OMIT to recall the whole audience — an empty
2263
+ * Recall only these recipients. OMIT to recall the whole audience. An empty
2264
2264
  * array is rejected rather than guessed at, because "nobody" and "everybody"
2265
2265
  * are both plausible readings of it on a destructive call.
2266
2266
  */
@@ -2270,7 +2270,7 @@ interface RecallNotifySendOptions {
2270
2270
  interface RecallNotifySendResponse {
2271
2271
  send_id: string;
2272
2272
  mode: NotifyRecallMode;
2273
- /** Grants revoked. An already-revoked grant counts here — recall is idempotent. */
2273
+ /** Grants revoked. An already-revoked grant counts here: recall is idempotent. */
2274
2274
  recalled: number;
2275
2275
  failed: number;
2276
2276
  /** Requested recipient ids that are not on this send's audience. */
@@ -2354,8 +2354,8 @@ interface ListNotifyReceiptsResponse {
2354
2354
  receipts: NotifyReceipt[];
2355
2355
  /**
2356
2356
  * Next-page cursor, or null on the last page. A page can still come back SHORT
2357
- * of `limit` (even empty) while more rows follow — `interaction` narrows with
2358
- * a filter applied after each page is read — so follow the cursor; never treat
2357
+ * of `limit` (even empty) while more rows follow (`interaction` narrows with
2358
+ * a filter applied after each page is read), so follow the cursor; never treat
2359
2359
  * a short page as the end.
2360
2360
  */
2361
2361
  cursor: string | null;
@@ -2366,14 +2366,14 @@ interface NotifySendReceiptsResponse {
2366
2366
  /**
2367
2367
  * True when the call's page cap stopped the walk before it reached the send's
2368
2368
  * creation, so more receipts of this send may follow: re-call with `cursor`.
2369
- * False means `receipts` is the send's whole set — no receipt of a send
2369
+ * False means `receipts` is the send's whole set: no receipt of a send
2370
2370
  * predates it, so the walk never reads further back.
2371
2371
  */
2372
2372
  truncated: boolean;
2373
2373
  /** Where the next call resumes a truncated walk; null when it is complete. */
2374
2374
  cursor: string | null;
2375
2375
  }
2376
- /** One notification topic. `required: true` is the compliance floor — unmutable by the recipient. */
2376
+ /** One notification topic. `required: true` is the compliance floor, unmutable by the recipient. */
2377
2377
  interface NotifyConfigCategory {
2378
2378
  /** ≤60 chars. */
2379
2379
  label?: string;
@@ -2414,7 +2414,7 @@ interface NotifyConfigReliability {
2414
2414
  /**
2415
2415
  * Notifications per recipient per minute, 1-600, counted per person: a
2416
2416
  * recipient counts against its own id and each email or phone it names. An
2417
- * abuse/bug backstop the tenant cannot switch off — 0 is rejected.
2417
+ * abuse/bug backstop the tenant cannot switch off: 0 is rejected.
2418
2418
  */
2419
2419
  rate_limit_per_recipient_per_minute?: number;
2420
2420
  }
@@ -2436,7 +2436,7 @@ interface NotifyConfigSecurity {
2436
2436
  mandatory_seal_categories?: string[];
2437
2437
  }
2438
2438
  /**
2439
- * The account's outbound EVENT webhook — how a backend learns, without polling
2439
+ * The account's outbound EVENT webhook: how a backend learns, without polling
2440
2440
  * for it, that a recipient signed, approved, denied, or replied
2441
2441
  * (`notify.signed`, `notify.approved`, `notify.denied`, `notify.replied`), and
2442
2442
  * how delivery to each recipient turned out (`notify.delivered`,
@@ -2458,7 +2458,7 @@ interface NotifyConfigSecurity {
2458
2458
  * so an edge in front of the receiver that refuses a request without one lets
2459
2459
  * it through.
2460
2460
  *
2461
- * Delivery is BEST EFFORT — one retry, then the event is dropped. Polling
2461
+ * Delivery is BEST EFFORT: one retry, then the event is dropped. Polling
2462
2462
  * (`listSends`, `getSendStatus`, `listReceipts`) remains the source of truth;
2463
2463
  * the webhook exists to make that poll rare, not to replace it.
2464
2464
  */
@@ -2476,7 +2476,7 @@ interface NotifyConfigEvents {
2476
2476
  */
2477
2477
  secret?: string;
2478
2478
  }
2479
- /** `events` as it comes BACK from a read — neither the URL nor the secret is ever echoed. */
2479
+ /** `events` as it comes BACK from a read: neither the URL nor the secret is ever echoed. */
2480
2480
  interface NotifyConfigEventsRead {
2481
2481
  /** Whether an event webhook URL is stored. The URL itself is never returned. */
2482
2482
  webhook_url_set?: boolean;
@@ -2604,7 +2604,7 @@ interface NotifyConfig {
2604
2604
  };
2605
2605
  /** Your organization's send-level destinations; empty until an admin configures one. */
2606
2606
  destinations: NotifyConfigDestinations;
2607
- /** Tombstoned entries are already dropped — a deleted category is simply gone. */
2607
+ /** Tombstoned entries are already dropped; a deleted category is simply gone. */
2608
2608
  categories: Record<string, NotifyConfigCategory>;
2609
2609
  }
2610
2610
  /**
@@ -2652,7 +2652,7 @@ interface NotifyConfigPatch {
2652
2652
  * the webhook destination's `secret` come back as `secret_set`, the webhook
2653
2653
  * destination's `url` as `url_set` and `url_host`, and `events.webhook_url` and
2654
2654
  * the Teams destination's `webhook_url` as `webhook_url_set` and
2655
- * `webhook_url_host` — a patch never has to resend them.
2655
+ * `webhook_url_host`, so a patch never has to resend them.
2656
2656
  */
2657
2657
  type NotifyConfigOverrides = Omit<NotifyConfigPatch, 'events' | 'destinations'> & {
2658
2658
  events?: NotifyConfigEventsRead;
@@ -2671,14 +2671,14 @@ interface NotifyConfigResponse {
2671
2671
  }
2672
2672
 
2673
2673
  /**
2674
- * Notify Product Module — the TENANT (sender) surface.
2674
+ * Notify Product Module: the TENANT (sender) surface.
2675
2675
  *
2676
2676
  * The counterpart to `sv.notify`: where that module is SparkVault's own
2677
2677
  * first-party inbox, which a signed-in SparkVault user reads for the
2678
2678
  * notifications SparkVault delivered to them `in_app`, this one is the
2679
- * account-scoped product surface a tenant's BACKEND drives — send, send
2679
+ * account-scoped product surface a tenant's BACKEND drives (send, send
2680
2680
  * history, recall, sender-side inbox reads and state, send status, receipts,
2681
- * the account's Notify config, and who its email is from.
2681
+ * the account's Notify config, and who its email is from).
2682
2682
  * A tenant reads its own recipients' feeds here (`getInbox`), never through
2683
2683
  * `sv.notify`. Every method maps to
2684
2684
  * `/v1/products/notify/*` and is authorized by the caller's account, so the
@@ -2697,7 +2697,7 @@ interface NotifyConfigResponse {
2697
2697
  * The five secure-by-default preset bundles: the server's own table, in this
2698
2698
  * SDK's camelCase shape.
2699
2699
  *
2700
- * There is no preset endpoint — presets are a merge over the one send contract,
2700
+ * There is no preset endpoint: presets are a merge over the one send contract,
2701
2701
  * so they are applied client-side and produce an ordinary `send` request. Caller
2702
2702
  * arguments win over a preset's defaults wherever they state a value;
2703
2703
  * `channels` left unset lets the account config resolve the ladder per category.
@@ -2740,8 +2740,8 @@ declare class NotifyProductModule {
2740
2740
  * recipient, and enqueue delivery across the resolved channel ladder.
2741
2741
  *
2742
2742
  * `sendId` is the idempotency key. Replaying an existing one with the same
2743
- * request returns the stored send unchanged — never re-sealed, never
2744
- * re-delivered — flagged `idempotent`; another request under it is refused 400
2743
+ * request returns the stored send unchanged (never re-sealed, never
2744
+ * re-delivered), flagged `idempotent`; another request under it is refused 400
2745
2745
  * (`sendId` on `CreateNotifySendOptions`).
2746
2746
  *
2747
2747
  * The send speaks in your organization's name, and one that would email
@@ -2755,12 +2755,12 @@ declare class NotifyProductModule {
2755
2755
  * | Status | `serviceCode` | `details` | Next |
2756
2756
  * | --- | --- | --- | --- |
2757
2757
  * | 403 | `NOTIFY_CHANNEL_NOT_AVAILABLE` | `{ field, channels }` | Name only `in_app` and `email` |
2758
- * | 409 | `NOTIFY_SENDER_NAME_REQUIRED` | — | Name the organization in Settings |
2758
+ * | 409 | `NOTIFY_SENDER_NAME_REQUIRED` | none | Name the organization in Settings |
2759
2759
  * | 409 | `NOTIFY_SENDER_NAME_RESERVED` | `{ reason: 'reserved_name' }` | Rename the organization |
2760
2760
  * | 409 | `HANDLE_REQUIRED` | `{ product: 'notify' }` | Choose the organization's handle in Company Settings |
2761
2761
  * | 429 | `NOTIFY_EMAIL_ADMISSION_LIMIT` | `{ limit, window: 'hour', resets_at }` | Wait `retryAfterMs`, then send |
2762
- * | 503 | `EMAIL_SETUP_BUSY` | — | Retry the same send after `retryAfterMs` |
2763
- * | 503 | `NOTIFY_EMAIL_CAPACITY_UNAVAILABLE` | — | Retry the same send |
2762
+ * | 503 | `EMAIL_SETUP_BUSY` | none | Retry the same send after `retryAfterMs` |
2763
+ * | 503 | `NOTIFY_EMAIL_CAPACITY_UNAVAILABLE` | none | Retry the same send |
2764
2764
  *
2765
2765
  * A replay is answered from the stored send and meets none of them again.
2766
2766
  *
@@ -2774,7 +2774,7 @@ declare class NotifyProductModule {
2774
2774
  * category: 'transactional',
2775
2775
  * });
2776
2776
  *
2777
- * @example Send a stored file — the unsealed vault proves you hold its key
2777
+ * @example Send a stored file: the unsealed vault proves you hold its key
2778
2778
  * const vault = await sv.vaults.unseal('vlt_abc', process.env.CONTRACTS_DVAK);
2779
2779
  * await sv.products.notify.send({
2780
2780
  * sendId: `contract:${contract.id}`,
@@ -2786,7 +2786,7 @@ declare class NotifyProductModule {
2786
2786
  */
2787
2787
  send(options: CreateNotifySendOptions): Promise<NotifySendResult>;
2788
2788
  /**
2789
- * Frictionless informational ping — no verification, view-only, delivered
2789
+ * Frictionless informational ping: no verification, view-only, delivered
2790
2790
  * INLINE (plaintext) so it is read at a glance. Channels resolve from the
2791
2791
  * account config, narrowed to the ones that render cleartext.
2792
2792
  *
@@ -2850,7 +2850,7 @@ declare class NotifyProductModule {
2850
2850
  * grant still opens, never the content; a plaintext row carries its body.
2851
2851
  * Treat the answer as sensitive and keep it out of logs.
2852
2852
  *
2853
- * A page can come back SHORT of `limit` yet still carry a non-null cursor —
2853
+ * A page can come back SHORT of `limit` yet still carry a non-null cursor:
2854
2854
  * follow the cursor; never treat a short page as the end.
2855
2855
  *
2856
2856
  * @example
@@ -2862,7 +2862,7 @@ declare class NotifyProductModule {
2862
2862
  getInbox(options: ListNotifyInboxOptions): Promise<ListNotifyInboxResponse>;
2863
2863
  /**
2864
2864
  * Apply a terminal display state to one row (idempotent). `createdAt` MUST be
2865
- * the row's own `created_at`, round-tripped from the feed row — the id alone
2865
+ * the row's own `created_at`, round-tripped from the feed row; the id alone
2866
2866
  * cannot address the row. Any mark (seen, read or archived) marks the row seen,
2867
2867
  * which stops its escalation.
2868
2868
  *
@@ -2889,7 +2889,7 @@ declare class NotifyProductModule {
2889
2889
  */
2890
2890
  markInboxAll(options: MarkNotifyInboxAllOptions): Promise<MarkNotifyInboxAllResponse>;
2891
2891
  /**
2892
- * The account's send history, newest first — what you sent, to how many, and
2892
+ * The account's send history, newest first: what you sent, to how many, and
2893
2893
  * how it landed.
2894
2894
  *
2895
2895
  * Metadata only by construction: the history index does not project the
@@ -2917,13 +2917,13 @@ declare class NotifyProductModule {
2917
2917
  *
2918
2918
  * `mode: 'grant'` (the default) drops access and leaves the content intact.
2919
2919
  * `mode: 'content'` hard-burns the sealed spark so it is unreadable for
2920
- * everyone — spark-backed sends only: an ingot send merely references the
2920
+ * everyone. Spark-backed sends only: an ingot send merely references the
2921
2921
  * owner's durable vault content, so a content recall of one is a 400, refused
2922
2922
  * before anything is revoked or stopped.
2923
2923
  *
2924
2924
  * Idempotent: a grant already revoked (or already consumed) counts as recalled,
2925
2925
  * so a repeated call converges rather than accumulating failures. One
2926
- * recipient's failure never stops the rest — the response reports every one.
2926
+ * recipient's failure never stops the rest; the response reports every one.
2927
2927
  *
2928
2928
  * PLAINTEXT SENDS CANNOT BE RECALLED (400): they delivered their body inline,
2929
2929
  * in the clear, and minted no grant. There is nothing to revoke, and saying
@@ -2942,7 +2942,7 @@ declare class NotifyProductModule {
2942
2942
  recallSend(sendId: string, options?: RecallNotifySendOptions): Promise<RecallNotifySendResponse>;
2943
2943
  /**
2944
2944
  * The sender's per-recipient delivery rollup for one send: who it reached and
2945
- * how far each recipient got. Metadata only — never the pointer, and no contact
2945
+ * how far each recipient got. Metadata only: never the pointer, and no contact
2946
2946
  * beyond the handle each recipient was addressed by (`recipient_id`).
2947
2947
  *
2948
2948
  * @example
@@ -2963,7 +2963,7 @@ declare class NotifyProductModule {
2963
2963
  /**
2964
2964
  * Every receipt for one send, each attached to the recipient who produced it.
2965
2965
  * The walk reads the account's receipts back to the send's creation, and no
2966
- * further. One call is bounded: when `truncated` is true it stopped first —
2966
+ * further. One call is bounded: when `truncated` is true it stopped first;
2967
2967
  * pass the returned `cursor` back in to resume exactly where it stopped.
2968
2968
  *
2969
2969
  * @example
@@ -2994,7 +2994,7 @@ declare class NotifyProductModule {
2994
2994
  * Merge a partial patch onto the account's config overrides. Unknown keys are
2995
2995
  * rejected before any write.
2996
2996
  *
2997
- * Delete a category by storing an explicit `null` TOMBSTONE — that is what keeps
2997
+ * Delete a category by storing an explicit `null` TOMBSTONE: that is what keeps
2998
2998
  * a seeded default from re-appearing on the next merge. The reserved `security`
2999
2999
  * category can neither be removed nor made optional, the promotional
3000
3000
  * categories `marketing` and `product` can never be made required: their email
@@ -3005,7 +3005,7 @@ declare class NotifyProductModule {
3005
3005
  * The `events` section configures the outbound event webhook: `webhook_url`
3006
3006
  * must be https on a public host, and `secret` (16-256 chars) signs every event
3007
3007
  * body as `X-SparkVault-Signature: hex(HMAC-SHA256(secret, rawBody))`. Both
3008
- * are WRITE-ONLY — reads report `events.webhook_url_set`,
3008
+ * are WRITE-ONLY: reads report `events.webhook_url_set`,
3009
3009
  * `events.webhook_url_host` and `events.secret_set`, never the values. A
3010
3010
  * `webhook_url` on another host or port needs a new `secret` in the same
3011
3011
  * patch (400 `VALIDATION_ERROR` naming `events.secret`), so a secret never
@@ -3025,7 +3025,7 @@ declare class NotifyProductModule {
3025
3025
  * await sv.products.notify.updateConfig({
3026
3026
  * categories: {
3027
3027
  * weekly_newsletter: { label: 'Weekly newsletter', required: false },
3028
- * marketing: null, // tombstone — remove the seeded default
3028
+ * marketing: null, // tombstone: remove the seeded default
3029
3029
  * },
3030
3030
  * events: {
3031
3031
  * webhook_url: 'https://api.example.com/hooks/sparkvault',
@@ -3237,7 +3237,7 @@ interface Ingot {
3237
3237
  /** Object identity and publication together; absent on older servers. */
3238
3238
  revision?: string;
3239
3239
  }
3240
- /** The discrete primitive returned by createUpload — a Forge TUS session. */
3240
+ /** The discrete primitive returned by createUpload: a Forge TUS session. */
3241
3241
  interface IngotUpload {
3242
3242
  /** Ingot ID */
3243
3243
  id: string;
@@ -4413,7 +4413,7 @@ interface CreateStructuredIngotOptions<T extends object = StructuredValues> {
4413
4413
  data: T;
4414
4414
  type?: StructuredTypePin | null;
4415
4415
  binaryPaths?: StructuredBinaryPath[];
4416
- /** 8–128 printable ASCII characters; bound to this name and semantic payload. */
4416
+ /** 8 to 128 printable ASCII characters; bound to this name and semantic payload. */
4417
4417
  idempotencyKey?: string;
4418
4418
  }
4419
4419
  /** Prefer the opaque revision: it also rejects deletion and recreation under the same name. */
@@ -4500,7 +4500,7 @@ interface CreateStructuredTypeOptions {
4500
4500
  name: string;
4501
4501
  schema: StructuredValues;
4502
4502
  transforms?: StructuredTypeTransform[];
4503
- /** 8–128 printable ASCII characters; bound to this name and definition. */
4503
+ /** 8 to 128 printable ASCII characters; bound to this name and definition. */
4504
4504
  idempotencyKey?: string;
4505
4505
  }
4506
4506
  interface PublishStructuredTypeOptions {
@@ -4893,7 +4893,7 @@ declare class ProductsModule {
4893
4893
  /** Identity verification product (passkey, OTP, SparkLink, social). */
4894
4894
  readonly identity: IdentityModule;
4895
4895
  /**
4896
- * Notify product — the tenant/sender surface (send, sender-side inbox, status,
4896
+ * Notify product: the tenant/sender surface (send, sender-side inbox, status,
4897
4897
  * receipts, config). Distinct from `sv.notify`, which is the signed-in
4898
4898
  * recipient's own inbox.
4899
4899
  */
@@ -5163,7 +5163,7 @@ declare class VaultsModule {
5163
5163
  */
5164
5164
  updateResealSettings(vaultId: string, settings: VaultResealSettings): Promise<VaultResealSettingsResult>;
5165
5165
  /**
5166
- * Retain this many previous versions of each file or structured object (0–50,
5166
+ * Retain this many previous versions of each file or structured object (0 to 50,
5167
5167
  * default 0). Interactive company administrators only. Applies on each ingot's
5168
5168
  * next successful content change; retained versions count toward storage usage.
5169
5169
  */
@@ -5205,7 +5205,7 @@ declare class VaultsModule {
5205
5205
  * Requires the vault's exact name as confirmation, matched case-sensitively.
5206
5206
  * The name is sent base64(UTF-8) as the `X-Confirm-Name-B64` header so a vault
5207
5207
  * named with any Unicode (emoji, CJK, the U+202F in macOS-style names) is
5208
- * deletable — an HTTP header value cannot carry non-latin1 characters.
5208
+ * deletable: an HTTP header value cannot carry non-latin1 characters.
5209
5209
  *
5210
5210
  * @example
5211
5211
  * await sv.vaults.delete('vlt_abc', 'My Vault');
@@ -5436,7 +5436,7 @@ declare class ValidationError extends SparkVaultError {
5436
5436
  */
5437
5437
  type QuotaResource = 'storage' | 'bandwidth';
5438
5438
  /**
5439
- * Plan required gate (402 PLAN_REQUIRED) — the account has no active
5439
+ * Plan required gate (402 PLAN_REQUIRED): the account has no active
5440
5440
  * subscription and attempted a billable/create action. Surface a subscribe CTA
5441
5441
  * to admins, or "ask your account admin" to members.
5442
5442
  */
@@ -5455,7 +5455,7 @@ declare class UsageCreditFundingReviewError extends SparkVaultError {
5455
5455
  constructor(message: string, details?: Record<string, unknown>, retryAfterMs?: number | null, serviceCode?: string);
5456
5456
  }
5457
5457
  /**
5458
- * Quota exceeded gate (402 QUOTA_EXCEEDED) — a pooled-capacity limit is
5458
+ * Quota exceeded gate (402 QUOTA_EXCEEDED): a pooled-capacity limit is
5459
5459
  * exhausted. `resource` identifies which pool so callers can point the CTA at
5460
5460
  * the right capacity block.
5461
5461
  */
@@ -5465,7 +5465,7 @@ declare class QuotaExceededError extends SparkVaultError {
5465
5465
  }
5466
5466
  /**
5467
5467
  * Notify subscription gate (403 NOTIFY_SUBSCRIPTION_REQUIRED or
5468
- * NOTIFY_PROJECT_SUBSCRIPTION_REQUIRED) — the account or selected project
5468
+ * NOTIFY_PROJECT_SUBSCRIPTION_REQUIRED): the account or selected project
5469
5469
  * does not hold Notify and attempted a send that names no accepted send's
5470
5470
  * `sendId` (a replay of an accepted send, the same request under its `sendId`,
5471
5471
  * is answered with the stored send), or a config save that selects a new
@@ -5537,7 +5537,7 @@ declare function isReceivedUploadFailure(error: unknown): boolean;
5537
5537
  *
5538
5538
  * Uploads and downloads run over the single canonical Forge TUS transfer path
5539
5539
  * (shared with the public upload widget), with server-side finalization and
5540
- * download-host allowlisting enforced — no per-size branching.
5540
+ * download-host allowlisting enforced, with no per-size branching.
5541
5541
  */
5542
5542
 
5543
5543
  declare class IngotsModule {
@@ -5596,16 +5596,16 @@ declare class IngotsModule {
5596
5596
  */
5597
5597
  endUpload(vault: UnsealedVault, upload: Pick<IngotUpload, 'id' | 'created' | 'uploadId'>): Promise<UploadEnd>;
5598
5598
  /**
5599
- * Send a file's bytes to an upload session — the `uploadUrl` a
5600
- * {@link createUpload} returned — over the resumable transfer every SDK
5599
+ * Send a file's bytes to an upload session (the `uploadUrl` a
5600
+ * {@link createUpload} returned) over the resumable transfer every SDK
5601
5601
  * upload uses. Resolves only once the server confirms the ingot is
5602
5602
  * published, so a resolved promise never stands for a stored file whose
5603
5603
  * ingot never went live.
5604
5604
  *
5605
5605
  * Transient failures are retried inside the transfer; a session the server
5606
5606
  * no longer holds (it expired, was cancelled, or its ingot was removed)
5607
- * rejects with code `session_gone`, and only a new upload session — a new
5608
- * {@link createUpload}, or {@link upload} again — can store the file. An
5607
+ * rejects with code `session_gone`, and only a new upload session (a new
5608
+ * {@link createUpload}, or {@link upload} again) can store the file. An
5609
5609
  * upload the server refused (the account's storage pool cannot take it, a
5610
5610
  * later upload replaced it, or its vault is scheduled for deletion: a 409
5611
5611
  * `VAULT_DELETION_SCHEDULED`, whose session the server keeps until the
@@ -5681,9 +5681,9 @@ declare class IngotsModule {
5681
5681
  *
5682
5682
  * Creates the upload session, streams the file to Forge over TUS, then
5683
5683
  * confirms the server finalized the upload before resolving. A file the
5684
- * server refused — another upload of it superseded this one, at its create
5684
+ * server refused (another upload of it superseded this one, at its create
5685
5685
  * or while it streamed, the storage pool cannot take it, or its vault is
5686
- * scheduled for deletion (a 409 `VAULT_DELETION_SCHEDULED`) — rejects with
5686
+ * scheduled for deletion (a 409 `VAULT_DELETION_SCHEDULED`)) rejects with
5687
5687
  * code `upload_refused`, as {@link sendUpload} does. An upload that rejects
5688
5688
  * any way but one the server received whole ({@link isReceivedUploadFailure}:
5689
5689
  * the server publishes or ends that one on its own) is given up: the end of
@@ -5877,7 +5877,7 @@ declare class IngotsModule {
5877
5877
  */
5878
5878
  revokeInvite(vault: UnsealedVault, ingotId: string, inviteId: string): Promise<void>;
5879
5879
  /**
5880
- * Batch content-HMAC existence check — the pre-upload dedup handshake.
5880
+ * Batch content-HMAC existence check: the pre-upload dedup handshake.
5881
5881
  * Returns which of the supplied vault-keyed HMACs already exist on active
5882
5882
  * ingots in the vault, so callers can skip transferring those bytes.
5883
5883
  *
@@ -5894,14 +5894,14 @@ declare class IngotsModule {
5894
5894
  getAccessLogs(vault: UnsealedVault, ingotId: string, options?: AccessLogsOptions): Promise<IngotAccessLogPage>;
5895
5895
  /**
5896
5896
  * Request a Forge upload session for a new ingot.
5897
- * Shared by createUpload and upload — the single ingot-create path.
5897
+ * Shared by createUpload and upload: the single ingot-create path.
5898
5898
  */
5899
5899
  private requestUploadSession;
5900
5900
  /**
5901
5901
  * Run the canonical TUS transfer for a created/replaced ingot.
5902
5902
  *
5903
5903
  * The transfer resolves only once the server has confirmed finalization, so
5904
- * the ingot this returns is always a published one — never a stored file
5904
+ * the ingot this returns is always a published one, never a stored file
5905
5905
  * whose ingot never went active.
5906
5906
  */
5907
5907
  private transferAndFinalize;
@@ -6274,7 +6274,7 @@ declare class SparksModule {
6274
6274
  */
6275
6275
  list(options?: ListSparksOptions): Promise<SparkPage>;
6276
6276
  /**
6277
- * Read (and burn) a spark. Reading is destructive — the spark can be read
6277
+ * Read (and burn) a spark. Reading is destructive: the spark can be read
6278
6278
  * exactly once.
6279
6279
  * Supply the source vault's VAT for a Structured Ingots field Spark.
6280
6280
  *
@@ -6354,7 +6354,7 @@ declare class SparksModule {
6354
6354
  type EntropyFormat = 'hex' | 'base64' | 'base64url' | 'alphanumeric' | 'alphanumeric-mixed' | 'password' | 'numeric' | 'uuid' | 'bytes';
6355
6355
  /** Options for generate. */
6356
6356
  interface GenerateEntropyOptions {
6357
- /** Number of random bytes: 1–1024, or 1–512 for alphanumeric, alphanumeric-mixed and password. */
6357
+ /** Number of random bytes: 1 to 1024, or 1 to 512 for alphanumeric, alphanumeric-mixed and password. */
6358
6358
  bytes: number;
6359
6359
  /** Output format. Defaults to hex. */
6360
6360
  format?: EntropyFormat;
@@ -6391,7 +6391,7 @@ declare class EntropyModule {
6391
6391
  /**
6392
6392
  * Generate `n` random bytes as a Uint8Array.
6393
6393
  *
6394
- * SECURITY: this returns raw *server* entropy — it is NOT finished key
6394
+ * SECURITY: this returns raw *server* entropy; it is NOT finished key
6395
6395
  * material. Client secret keys MUST hybrid-mix it: XOR the returned bytes with
6396
6396
  * a local CSPRNG (`crypto.getRandomValues`) before use, so the server share
6397
6397
  * alone can never determine the key.
@@ -6399,7 +6399,7 @@ declare class EntropyModule {
6399
6399
  * @example
6400
6400
  * const serverEntropy = await sv.entropy.generateBytes(32);
6401
6401
  * const localEntropy = crypto.getRandomValues(new Uint8Array(32));
6402
- * // Hybrid-mixed key material — safe to use as a secret key.
6402
+ * // Hybrid-mixed key material, safe to use as a secret key.
6403
6403
  * const key = serverEntropy.map((b, i) => b ^ localEntropy[i]);
6404
6404
  */
6405
6405
  generateBytes(n: number): Promise<Uint8Array>;
@@ -6415,7 +6415,7 @@ declare class EntropyModule {
6415
6415
  * Web Push registration. It is
6416
6416
  * not a tenant's inbox for its own end users: a tenant reads its recipients'
6417
6417
  * feeds with `sv.products.notify.getInbox`. The recipient is ALWAYS derived
6418
- * from the session on the server — no method takes a `recipient_id`, and any
6418
+ * from the session on the server: no method takes a `recipient_id`, and any
6419
6419
  * account/recipient a caller might try to supply is ignored. This mirrors
6420
6420
  * `@sparkvault/sdk-mobile`'s notify client; device push registration is
6421
6421
  * intentionally omitted (Expo-only on mobile).
@@ -6425,7 +6425,7 @@ declare class NotifyModule {
6425
6425
  private readonly http;
6426
6426
  constructor(http: HttpClient);
6427
6427
  /**
6428
- * The caller's own inbox feed (newest first). Follow `cursor` to page — a
6428
+ * The caller's own inbox feed (newest first). Follow `cursor` to page: a
6429
6429
  * page can come back short of `limit` yet still carry a non-null cursor.
6430
6430
  *
6431
6431
  * @example
@@ -6434,7 +6434,7 @@ declare class NotifyModule {
6434
6434
  getInbox(options?: ListNotificationsOptions): Promise<ListNotificationsResponse>;
6435
6435
  /**
6436
6436
  * Bounded unseen badge count for the caller's own inbox. `capped` true means
6437
- * the true count is at/beyond the ceiling — render "N+".
6437
+ * the true count is at/beyond the ceiling: render "N+".
6438
6438
  *
6439
6439
  * @example
6440
6440
  * const { unread_count, capped } = await sv.notify.getUnreadCount();
@@ -6443,7 +6443,7 @@ declare class NotifyModule {
6443
6443
  /**
6444
6444
  * Apply a terminal display state to one of the caller's own rows (idempotent).
6445
6445
  * `createdAt` MUST be the row's own `created_at` (round-tripped from the list
6446
- * row) — the id alone cannot address the row.
6446
+ * row); the id alone cannot address the row.
6447
6447
  *
6448
6448
  * @example
6449
6449
  * await sv.notify.markState('ntf_abc', { createdAt: row.created_at, state: 'read' });
@@ -6451,7 +6451,7 @@ declare class NotifyModule {
6451
6451
  markState(notificationId: string, options: MarkNotificationStateOptions): Promise<MarkNotificationStateResponse>;
6452
6452
  /**
6453
6453
  * Bulk-mark ONE bounded page of the caller's inbox and return the server's
6454
- * payload verbatim. `cursor` comes back non-null while rows remain — thread it
6454
+ * payload verbatim. `cursor` comes back non-null while rows remain: thread it
6455
6455
  * into the next call. `archived` is per-row only (no GSI to page over), so the
6456
6456
  * bulk states are `seen` and `read`.
6457
6457
  *
@@ -6468,10 +6468,10 @@ declare class NotifyModule {
6468
6468
  * clears the unseen marker too, so the badge zeroes with it. Idempotent.
6469
6469
  *
6470
6470
  * `complete` is false when the loop stopped at the page bound with rows still
6471
- * unmarked — an inbox deeper than the bound finishes on a second call. Without
6471
+ * unmarked: an inbox deeper than the bound finishes on a second call. Without
6472
6472
  * it a truncated drain looks exactly like a finished one.
6473
6473
  *
6474
- * An error mid-drain propagates — the pages already marked stay marked, and a
6474
+ * An error mid-drain propagates: the pages already marked stay marked, and a
6475
6475
  * re-run picks up the remainder.
6476
6476
  *
6477
6477
  * @example
@@ -6486,7 +6486,7 @@ declare class NotifyModule {
6486
6486
  isWebPushSupported(): boolean;
6487
6487
  /**
6488
6488
  * The platform VAPID public key for `pushManager.subscribe()`. `configured`
6489
- * is false until the server-side VAPID keypair is provisioned — hide the
6489
+ * is false until the server-side VAPID keypair is provisioned: hide the
6490
6490
  * enable-notifications affordance while false.
6491
6491
  */
6492
6492
  getWebPushKey(): Promise<WebPushKeyResponse>;
@@ -6658,7 +6658,7 @@ declare class SparkVault {
6658
6658
  */
6659
6659
  static init(config: SparkVaultConfig): SparkVault;
6660
6660
  /**
6661
- * Whether a sign-in needs completing on this page load — a returned handoff
6661
+ * Whether a sign-in needs completing on this page load: a returned handoff
6662
6662
  * fragment, or a popup whose result was lost (a mobile opener-tab discard).
6663
6663
  * Side effect-free and instance-free, so a host that defers SDK init for
6664
6664
  * performance can cheaply decide whether to boot the SDK and call