@sparkvault/sdk-js 17.0.0 → 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 +7 -7
  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 +208 -196
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.ts +150 -150
  11. package/dist/index.mjs +208 -196
  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 +2 -2
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { View } from './base';
7
7
  /**
8
- * Error codes that mean the site owner's Identity access is blocked — the
8
+ * Error codes that mean the site owner's Identity access is blocked: the
9
9
  * free trial was exhausted or expired, or a paid plan hit its capacity wall.
10
10
  * The end user can do nothing about these, so the ErrorView renders a friendly,
11
11
  * non-leaky interstitial (no "Try Again", no debug code badge) exactly like
@@ -24,7 +24,7 @@ export interface IdentityInputViewProps {
24
24
  /** Called with validated identity */
25
25
  onSubmit: (result: IdentityInputResult) => void;
26
26
  /**
27
- * When set, offer a "Sign in with a passkey" shortcut below the form —
27
+ * When set, offer a "Sign in with a passkey" shortcut below the form:
28
28
  * the way back into the discoverable ceremony for a returning browser
29
29
  * whose auto-started prompt was dismissed.
30
30
  */
@@ -12,7 +12,7 @@ import type { IdentityType } from './identity-input';
12
12
  import type { MethodMetadata } from '../types';
13
13
  export interface MethodSelectViewProps {
14
14
  email?: string;
15
- /** Channel of the identifier being verified — drives the back-link label. */
15
+ /** Channel of the identifier being verified; drives the back-link label. */
16
16
  identityType?: IdentityType;
17
17
  methods: MethodMetadata[];
18
18
  onSelectMethod: (method: MethodMetadata) => void;
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Full-dialog terminal screen shown when the embedding site's origin is not in
5
5
  * the account's verified-domains allowlist. The audience is the website owner /
6
- * developer — this is a misconfiguration surface, not an end-user error, and it
7
- * is permanent (retrying never clears an origin block) — so the dialog drops
6
+ * developer: this is a misconfiguration surface, not an end-user error, and it
7
+ * is permanent (retrying never clears an origin block), so the dialog drops
8
8
  * customer branding, offers no "Try Again", names the blocked origin, and
9
9
  * points to the place that fixes it. Reuses the SparkVault-notice styling from
10
10
  * the product-not-configured view.
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Shown behind the browser's passkey sheet while an auto-started discoverable
5
5
  * ceremony runs (returning browsers carrying the passkey-hint cookie). The
6
- * ceremony was fired without a click, so this screen has no action button —
6
+ * ceremony was fired without a click, so this screen has no action button,
7
7
  * only a live status and an escape hatch to the identifier form for anyone
8
8
  * who wants a different method (or whose sheet hangs).
9
9
  */
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Full-dialog terminal screen shown when the SparkVault Identity Product has
5
5
  * not been configured for the account that the JS SDK is configured against. The
6
- * audience is the website owner / developer — this is a misconfiguration
7
- * surface, not an end-user error — so the dialog drops customer branding and
6
+ * audience is the website owner / developer: this is a misconfiguration
7
+ * surface, not an end-user error, so the dialog drops customer branding and
8
8
  * presents itself as an unmistakable SparkVault notice.
9
9
  */
10
10
  import type { View } from './base';
@@ -2,7 +2,7 @@
2
2
  * Service Unavailable View
3
3
  *
4
4
  * Shown when the identity config endpoint is unreachable.
5
- * Clean, professional, branded — no error codes or technical jargon.
5
+ * Clean, professional, branded, with no error codes or technical jargon.
6
6
  */
7
7
  import type { View } from './base';
8
8
  export interface ServiceUnavailableViewProps {
@@ -17,7 +17,7 @@ export declare class ProductsModule {
17
17
  /** Identity verification product (passkey, OTP, SparkLink, social). */
18
18
  readonly identity: IdentityModule;
19
19
  /**
20
- * Notify product — the tenant/sender surface (send, sender-side inbox, status,
20
+ * Notify product: the tenant/sender surface (send, sender-side inbox, status,
21
21
  * receipts, config). Distinct from `sv.notify`, which is the signed-in
22
22
  * recipient's own inbox.
23
23
  */
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Notify Product Module — the TENANT (sender) surface.
2
+ * Notify Product Module: the TENANT (sender) surface.
3
3
  *
4
4
  * The counterpart to `sv.notify`: where that module is SparkVault's own
5
5
  * first-party inbox, which a signed-in SparkVault user reads for the
6
6
  * notifications SparkVault delivered to them `in_app`, this one is the
7
- * account-scoped product surface a tenant's BACKEND drives — send, send
7
+ * account-scoped product surface a tenant's BACKEND drives (send, send
8
8
  * history, recall, sender-side inbox reads and state, send status, receipts,
9
- * the account's Notify config, and who its email is from.
9
+ * the account's Notify config, and who its email is from).
10
10
  * A tenant reads its own recipients' feeds here (`getInbox`), never through
11
11
  * `sv.notify`. Every method maps to
12
12
  * `/v1/products/notify/*` and is authorized by the caller's account, so the
@@ -27,7 +27,7 @@ import type { CreateNotifySendOptions, NotifySendResult, NotifyPreset, NotifyPre
27
27
  * The five secure-by-default preset bundles: the server's own table, in this
28
28
  * SDK's camelCase shape.
29
29
  *
30
- * There is no preset endpoint — presets are a merge over the one send contract,
30
+ * There is no preset endpoint: presets are a merge over the one send contract,
31
31
  * so they are applied client-side and produce an ordinary `send` request. Caller
32
32
  * arguments win over a preset's defaults wherever they state a value;
33
33
  * `channels` left unset lets the account config resolve the ladder per category.
@@ -70,8 +70,8 @@ export declare class NotifyProductModule {
70
70
  * recipient, and enqueue delivery across the resolved channel ladder.
71
71
  *
72
72
  * `sendId` is the idempotency key. Replaying an existing one with the same
73
- * request returns the stored send unchanged — never re-sealed, never
74
- * re-delivered — flagged `idempotent`; another request under it is refused 400
73
+ * request returns the stored send unchanged (never re-sealed, never
74
+ * re-delivered), flagged `idempotent`; another request under it is refused 400
75
75
  * (`sendId` on `CreateNotifySendOptions`).
76
76
  *
77
77
  * The send speaks in your organization's name, and one that would email
@@ -85,12 +85,12 @@ export declare class NotifyProductModule {
85
85
  * | Status | `serviceCode` | `details` | Next |
86
86
  * | --- | --- | --- | --- |
87
87
  * | 403 | `NOTIFY_CHANNEL_NOT_AVAILABLE` | `{ field, channels }` | Name only `in_app` and `email` |
88
- * | 409 | `NOTIFY_SENDER_NAME_REQUIRED` | — | Name the organization in Settings |
88
+ * | 409 | `NOTIFY_SENDER_NAME_REQUIRED` | none | Name the organization in Settings |
89
89
  * | 409 | `NOTIFY_SENDER_NAME_RESERVED` | `{ reason: 'reserved_name' }` | Rename the organization |
90
90
  * | 409 | `HANDLE_REQUIRED` | `{ product: 'notify' }` | Choose the organization's handle in Company Settings |
91
91
  * | 429 | `NOTIFY_EMAIL_ADMISSION_LIMIT` | `{ limit, window: 'hour', resets_at }` | Wait `retryAfterMs`, then send |
92
- * | 503 | `EMAIL_SETUP_BUSY` | — | Retry the same send after `retryAfterMs` |
93
- * | 503 | `NOTIFY_EMAIL_CAPACITY_UNAVAILABLE` | — | Retry the same send |
92
+ * | 503 | `EMAIL_SETUP_BUSY` | none | Retry the same send after `retryAfterMs` |
93
+ * | 503 | `NOTIFY_EMAIL_CAPACITY_UNAVAILABLE` | none | Retry the same send |
94
94
  *
95
95
  * A replay is answered from the stored send and meets none of them again.
96
96
  *
@@ -104,7 +104,7 @@ export declare class NotifyProductModule {
104
104
  * category: 'transactional',
105
105
  * });
106
106
  *
107
- * @example Send a stored file — the unsealed vault proves you hold its key
107
+ * @example Send a stored file: the unsealed vault proves you hold its key
108
108
  * const vault = await sv.vaults.unseal('vlt_abc', process.env.CONTRACTS_DVAK);
109
109
  * await sv.products.notify.send({
110
110
  * sendId: `contract:${contract.id}`,
@@ -116,7 +116,7 @@ export declare class NotifyProductModule {
116
116
  */
117
117
  send(options: CreateNotifySendOptions): Promise<NotifySendResult>;
118
118
  /**
119
- * Frictionless informational ping — no verification, view-only, delivered
119
+ * Frictionless informational ping: no verification, view-only, delivered
120
120
  * INLINE (plaintext) so it is read at a glance. Channels resolve from the
121
121
  * account config, narrowed to the ones that render cleartext.
122
122
  *
@@ -180,7 +180,7 @@ export declare class NotifyProductModule {
180
180
  * grant still opens, never the content; a plaintext row carries its body.
181
181
  * Treat the answer as sensitive and keep it out of logs.
182
182
  *
183
- * A page can come back SHORT of `limit` yet still carry a non-null cursor —
183
+ * A page can come back SHORT of `limit` yet still carry a non-null cursor:
184
184
  * follow the cursor; never treat a short page as the end.
185
185
  *
186
186
  * @example
@@ -192,7 +192,7 @@ export declare class NotifyProductModule {
192
192
  getInbox(options: ListNotifyInboxOptions): Promise<ListNotifyInboxResponse>;
193
193
  /**
194
194
  * Apply a terminal display state to one row (idempotent). `createdAt` MUST be
195
- * the row's own `created_at`, round-tripped from the feed row — the id alone
195
+ * the row's own `created_at`, round-tripped from the feed row; the id alone
196
196
  * cannot address the row. Any mark (seen, read or archived) marks the row seen,
197
197
  * which stops its escalation.
198
198
  *
@@ -219,7 +219,7 @@ export declare class NotifyProductModule {
219
219
  */
220
220
  markInboxAll(options: MarkNotifyInboxAllOptions): Promise<MarkNotifyInboxAllResponse>;
221
221
  /**
222
- * The account's send history, newest first — what you sent, to how many, and
222
+ * The account's send history, newest first: what you sent, to how many, and
223
223
  * how it landed.
224
224
  *
225
225
  * Metadata only by construction: the history index does not project the
@@ -247,13 +247,13 @@ export declare class NotifyProductModule {
247
247
  *
248
248
  * `mode: 'grant'` (the default) drops access and leaves the content intact.
249
249
  * `mode: 'content'` hard-burns the sealed spark so it is unreadable for
250
- * everyone — spark-backed sends only: an ingot send merely references the
250
+ * everyone. Spark-backed sends only: an ingot send merely references the
251
251
  * owner's durable vault content, so a content recall of one is a 400, refused
252
252
  * before anything is revoked or stopped.
253
253
  *
254
254
  * Idempotent: a grant already revoked (or already consumed) counts as recalled,
255
255
  * so a repeated call converges rather than accumulating failures. One
256
- * recipient's failure never stops the rest — the response reports every one.
256
+ * recipient's failure never stops the rest; the response reports every one.
257
257
  *
258
258
  * PLAINTEXT SENDS CANNOT BE RECALLED (400): they delivered their body inline,
259
259
  * in the clear, and minted no grant. There is nothing to revoke, and saying
@@ -272,7 +272,7 @@ export declare class NotifyProductModule {
272
272
  recallSend(sendId: string, options?: RecallNotifySendOptions): Promise<RecallNotifySendResponse>;
273
273
  /**
274
274
  * The sender's per-recipient delivery rollup for one send: who it reached and
275
- * how far each recipient got. Metadata only — never the pointer, and no contact
275
+ * how far each recipient got. Metadata only: never the pointer, and no contact
276
276
  * beyond the handle each recipient was addressed by (`recipient_id`).
277
277
  *
278
278
  * @example
@@ -293,7 +293,7 @@ export declare class NotifyProductModule {
293
293
  /**
294
294
  * Every receipt for one send, each attached to the recipient who produced it.
295
295
  * The walk reads the account's receipts back to the send's creation, and no
296
- * further. One call is bounded: when `truncated` is true it stopped first —
296
+ * further. One call is bounded: when `truncated` is true it stopped first;
297
297
  * pass the returned `cursor` back in to resume exactly where it stopped.
298
298
  *
299
299
  * @example
@@ -324,7 +324,7 @@ export declare class NotifyProductModule {
324
324
  * Merge a partial patch onto the account's config overrides. Unknown keys are
325
325
  * rejected before any write.
326
326
  *
327
- * Delete a category by storing an explicit `null` TOMBSTONE — that is what keeps
327
+ * Delete a category by storing an explicit `null` TOMBSTONE: that is what keeps
328
328
  * a seeded default from re-appearing on the next merge. The reserved `security`
329
329
  * category can neither be removed nor made optional, the promotional
330
330
  * categories `marketing` and `product` can never be made required: their email
@@ -335,7 +335,7 @@ export declare class NotifyProductModule {
335
335
  * The `events` section configures the outbound event webhook: `webhook_url`
336
336
  * must be https on a public host, and `secret` (16-256 chars) signs every event
337
337
  * body as `X-SparkVault-Signature: hex(HMAC-SHA256(secret, rawBody))`. Both
338
- * are WRITE-ONLY — reads report `events.webhook_url_set`,
338
+ * are WRITE-ONLY: reads report `events.webhook_url_set`,
339
339
  * `events.webhook_url_host` and `events.secret_set`, never the values. A
340
340
  * `webhook_url` on another host or port needs a new `secret` in the same
341
341
  * patch (400 `VALIDATION_ERROR` naming `events.secret`), so a secret never
@@ -355,7 +355,7 @@ export declare class NotifyProductModule {
355
355
  * await sv.products.notify.updateConfig({
356
356
  * categories: {
357
357
  * weekly_newsletter: { label: 'Weekly newsletter', required: false },
358
- * marketing: null, // tombstone — remove the seeded default
358
+ * marketing: null, // tombstone: remove the seeded default
359
359
  * },
360
360
  * events: {
361
361
  * webhook_url: 'https://api.example.com/hooks/sparkvault',
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Notify Product Types — the TENANT (sender) surface of `/v1/products/notify/*`.
2
+ * Notify Product Types: the TENANT (sender) surface of `/v1/products/notify/*`.
3
3
  *
4
4
  * Wire-shape convention, split deliberately and consistently:
5
5
  *
@@ -12,7 +12,7 @@
12
12
  * with `@sparkvault/sdk-mobile` and the first-party console. Do not remap them.
13
13
  * - **The config patch is the ONE exception on the input side**: it stays
14
14
  * snake_case verbatim. It is a partial PATCH against a server-validated schema
15
- * whose `categories` map is OPEN-KEYED — a tenant names its own topics
15
+ * whose `categories` map is OPEN-KEYED: a tenant names its own topics
16
16
  * (`weekly_newsletter`) and those keys are addressed in send payloads and
17
17
  * rendered into recipient-facing preference URLs. Case-mapping the tree would
18
18
  * silently corrupt them, so the config travels exactly as the server defines it.
@@ -47,12 +47,12 @@ export type NotifyDestinationKind = 'webhook' | 'slack' | 'teams';
47
47
  /**
48
48
  * One of a send's destinations, as its status and its history summary report it.
49
49
  *
50
- * - `pending` — the post has not settled yet (it is queued, or waits to be tried again).
51
- * - `delivered` — the destination accepted the post.
52
- * - `skipped` — nothing was posted, and trying again would not post it.
53
- * - `failed` — the post was given up on.
54
- * - `recalled` — the whole send was recalled before the post settled.
55
- * - `unknown` — the send's delivery record is gone (past its history horizon).
50
+ * - `pending`: the post has not settled yet (it is queued, or waits to be tried again).
51
+ * - `delivered`: the destination accepted the post.
52
+ * - `skipped`: nothing was posted, and trying again would not post it.
53
+ * - `failed`: the post was given up on.
54
+ * - `recalled`: the whole send was recalled before the post settled.
55
+ * - `unknown`: the send's delivery record is gone (past its history horizon).
56
56
  */
57
57
  export type NotifyDestinationState = 'pending' | 'delivered' | 'skipped' | 'failed' | 'recalled' | 'unknown';
58
58
  /**
@@ -135,7 +135,7 @@ export interface NotifyDestinationTestResult {
135
135
  * - `sealed` (default): content is sealed into a Spark behind a single-use
136
136
  * SparkLink; channels carry only the pointer ("tap to view").
137
137
  * - `plaintext`: a short non-confidential body rendered INLINE in the channel
138
- * payload. Fail-closed — at most 50 recipients, never allowed on a
138
+ * payload. Fail-closed: at most 50 recipients, never allowed on a
139
139
  * confidential category, and on the inline-capable channels alone, which
140
140
  * are all six of an organization's (`in_app`, `email`, `sms`, `push`,
141
141
  * `web_push`, `voice`).
@@ -145,7 +145,7 @@ export type NotifyDeliveryMode = 'sealed' | 'plaintext';
145
145
  * What a recipient must prove before the SparkLink reveals its content.
146
146
  *
147
147
  * Three levels, because three is what the Identity ceremony can achieve, and the
148
- * bar is enforced on the method the recipient ACHIEVED — a passkey-level grant is
148
+ * bar is enforced on the method the recipient ACHIEVED: a passkey-level grant is
149
149
  * never satisfied by an identifier session. A level the reveal cannot satisfy is
150
150
  * not a stronger guarantee; it is a send nobody can open.
151
151
  *
@@ -155,7 +155,7 @@ export type NotifyDeliveryMode = 'sealed' | 'plaintext';
155
155
  * is a bearer token.
156
156
  */
157
157
  export type NotifyVerificationLevel = 'none' | 'identifier' | 'passkey';
158
- /** What the recipient does at the reveal — the interaction the receipt attests to. */
158
+ /** What the recipient does at the reveal: the interaction the receipt attests to. */
159
159
  export type NotifyInteraction = 'view' | 'acknowledge' | 'sign' | 'approve' | 'reply';
160
160
  /**
161
161
  * The fixed categories the five presets classify their sends as. Each is seeded
@@ -255,7 +255,7 @@ export interface NotifySendContent {
255
255
  }
256
256
  /**
257
257
  * An EXISTING ingot to point the grant at instead of sealing new content. One
258
- * persistent asset carries a single grant, so an ingot send is 1:1 — it targets
258
+ * persistent asset carries a single grant, so an ingot send is 1:1: it targets
259
259
  * exactly one recipient.
260
260
  *
261
261
  * The recipient opens the file in the SparkVault file viewer, which has no
@@ -266,7 +266,7 @@ export interface NotifySendContent {
266
266
  * the sender must hold a Full License (403 `LICENSE_REQUIRED`).
267
267
  *
268
268
  * Only a holder of the vault's key may publish its files, so the send carries
269
- * the unsealed vault's read-write VAT as `X-Vault-Access-Token` — exactly what
269
+ * the unsealed vault's read-write VAT as `X-Vault-Access-Token`, exactly what
270
270
  * the vault's own sharing calls demand. A missing, unknown or revoked VAT is 401
271
271
  * `AUTHENTICATION_ERROR`; an expired one 403 (`details.reason: 'VAT_EXPIRED'`,
272
272
  * unseal again and retry), a read-only one 403 (`'VAT_READ_ONLY'`), and one for
@@ -316,7 +316,7 @@ export interface NotifyEscalation {
316
316
  export interface CreateNotifySendOptions {
317
317
  /**
318
318
  * Idempotency key, `^[A-Za-z0-9_.:-]{1,128}$`. Replaying an existing id returns
319
- * the stored send unchanged — never re-sealed, never re-delivered — with
319
+ * the stored send unchanged (never re-sealed, never re-delivered) with
320
320
  * `idempotent: true`. Generated (`ntsnd_*`) when absent. A replay must repeat
321
321
  * what the recipient meets (the delivery mode, the content or ingot, the
322
322
  * recipients and their handles, title, category, instructions, policy,
@@ -357,7 +357,7 @@ export interface CreateNotifySendOptions {
357
357
  */
358
358
  title?: string;
359
359
  /**
360
- * REQUIRED. The category this send is classified as — one of your configured
360
+ * REQUIRED. The category this send is classified as: one of your configured
361
361
  * `categories`, or a preset category. It decides the channel ladder, whether a
362
362
  * recipient may mute it, and whether the mail carries an unsubscribe
363
363
  * affordance, so the server rejects a send without one rather than guessing:
@@ -410,7 +410,7 @@ export interface NotifySendResult {
410
410
  status: string;
411
411
  /**
412
412
  * Present (and `true`) ONLY on an idempotent replay of an existing `send_id`.
413
- * The first accept OMITS the field entirely — it is never `false`.
413
+ * The first accept OMITS the field entirely; it is never `false`.
414
414
  */
415
415
  idempotent?: boolean;
416
416
  }
@@ -433,7 +433,7 @@ export type NotifyInboxView = NotificationInboxState;
433
433
  /** Terminal display states applicable to a single row. */
434
434
  export type NotifyInboxMarkState = NotificationMarkState;
435
435
  /**
436
- * States a BULK drain can apply. `archived` is per-row only — it has no sparse
436
+ * States a BULK drain can apply. `archived` is per-row only: it has no sparse
437
437
  * GSI, so bulk-archiving would require a full-partition scan.
438
438
  */
439
439
  export type NotifyInboxBulkMarkState = NotificationBulkMarkState;
@@ -486,14 +486,14 @@ export interface MarkNotifyInboxAllResponse {
486
486
  * The one answer for a recipient, derived from their row (never stored, so it
487
487
  * cannot drift from the facts it summarizes).
488
488
  *
489
- * - `pending` — still in flight, or not yet driven: the escalation ladder has a
489
+ * - `pending`: still in flight, or not yet driven; the escalation ladder has a
490
490
  * step left to run and nothing has settled them, whatever its steps so far
491
491
  * recorded short of a delivery. A recipient whose first channel declined
492
492
  * stays here while the next one waits its turn.
493
- * - `delivered` — a channel accepted it and no provider has repudiated that, or
493
+ * - `delivered`: a channel accepted it and no provider has repudiated that, or
494
494
  * the recipient opened the sealed content or marked it seen and a later
495
495
  * escalation step recorded that before any recall.
496
- * - `undeliverable` — the ladder ran its course and every channel attempted
496
+ * - `undeliverable`: the ladder ran its course and every channel attempted
497
497
  * declined (no handle, bounced, not implemented). The recipient cannot be
498
498
  * reached as addressed. A hard bounce of their only delivery moves them here
499
499
  * at once, even with a step left to run (or to `failed`, if another channel
@@ -503,20 +503,20 @@ export interface MarkNotifyInboxAllResponse {
503
503
  * address may be fine: the grant can expire before their first step goes, or
504
504
  * while their email retries or is deferred, and then `channel_outcomes`
505
505
  * record no decline.
506
- * - `failed` — the ladder ran its course (or their grant expired, or a hard
506
+ * - `failed`: the ladder ran its course (or their grant expired, or a hard
507
507
  * bounce of their only delivery settled them), every attempt ended, and a
508
508
  * channel gave up: it exhausted its retries, their deferred email, text or
509
509
  * call could not go within 24 hours of the send, or a text or call's answer
510
510
  * was lost after the carrier took it (it may have reached them). OUR
511
511
  * transport gave up; the address may be perfectly good.
512
- * - `suppressed` — taken out of the ladder by a decision, not a fault. Usually
512
+ * - `suppressed`: taken out of the ladder by a decision, not a fault. Usually
513
513
  * the PERSON chose silence (site off, category muted, every offered channel
514
514
  * opted out, your site blocked on auth.sv for a sealed send, or the address
515
515
  * unsubscribed); otherwise your account was suspended or began deleting before
516
516
  * their next queued step came due. Not something to route around.
517
- * - `rate_limited` — skipped by the per-recipient abuse ceiling for that minute,
517
+ * - `rate_limited`: skipped by the per-recipient abuse ceiling for that minute,
518
518
  * decided once per send and recipient.
519
- * - `recalled` — the sender took it back, and nothing on this recipient's row
519
+ * - `recalled`: the sender took it back, and nothing on this recipient's row
520
520
  * outranks the recall. The reveal is revoked and no further delivery will be
521
521
  * attempted. Recall cannot undo what already happened, so it ranks BELOW every
522
522
  * answer the row already records: `delivered` (a channel reached them, or
@@ -524,7 +524,7 @@ export interface MarkNotifyInboxAllResponse {
524
524
  * `rate_limited`, and `undeliverable` / `failed` when no channel could reach
525
525
  * them or their ladder ran its course with every channel declining or giving
526
526
  * up before the recall. A recall that stops a ladder before it runs its course
527
- * reads `recalled`, whatever its earlier steps recorded — so a recipient whose
527
+ * reads `recalled`, whatever its earlier steps recorded, so a recipient whose
528
528
  * first channel skipped them and who was recalled before their next channel
529
529
  * reads `recalled`. It also covers recipients with no row
530
530
  * yet: everyone a whole-audience recall stopped the fan-out before reaching,
@@ -535,18 +535,18 @@ export type NotifyRecipientState = 'pending' | 'delivered' | 'undeliverable' | '
535
535
  * Why the pipeline took a recipient out of the ladder, as a fixed token (never a
536
536
  * transport's own words, so nothing recipient-identifying rides it).
537
537
  *
538
- * - `no_channels` — the send offered no usable channel at all.
539
- * - `unreachable` — every offered channel lacks a handle for them.
540
- * - `global_off` — the person switched this sender off entirely.
541
- * - `category_muted` — the person muted this category.
542
- * - `all_channels_opted_out` — the person opted out of every channel offered.
543
- * - `site_blocked` — the person blocked your site on auth.sv, and the send was
544
- * sealed: opening it asks them to prove the address it was sent to, a proof
538
+ * - `no_channels`: the send offered no usable channel at all.
539
+ * - `unreachable`: every offered channel lacks a handle for them.
540
+ * - `global_off`: the person switched this sender off entirely.
541
+ * - `category_muted`: the person muted this category.
542
+ * - `all_channels_opted_out`: the person opted out of every channel offered.
543
+ * - `site_blocked`: the person blocked your site on auth.sv, and the send was
544
+ * sealed, so opening it asks them to prove the address it was sent to, a proof
545
545
  * of address that signs them in to nothing and opens no session, and their
546
546
  * block refuses that proof.
547
- * - `identifier_unsubscribed` — a transport reported, mid-ladder, that the
547
+ * - `identifier_unsubscribed`: a transport reported, mid-ladder, that the
548
548
  * person unsubscribed the address the send was addressed to.
549
- * - `account_unavailable` — your account was suspended or began deleting before
549
+ * - `account_unavailable`: your account was suspended or began deleting before
550
550
  * the recipient's next queued step came due, so their ladder ended there.
551
551
  *
552
552
  * The first two roll up to the `undeliverable` state (they need an address that
@@ -556,7 +556,7 @@ export type NotifyRecipientState = 'pending' | 'delivered' | 'undeliverable' | '
556
556
  export type NotifySuppressionReason = 'no_channels' | 'unreachable' | 'global_off' | 'category_muted' | 'all_channels_opted_out' | 'site_blocked' | 'identifier_unsubscribed' | 'account_unavailable';
557
557
  export interface NotifySendStatusRecipient {
558
558
  recipient_id: string;
559
- /** The derived per-recipient state — the field to branch on. */
559
+ /** The derived per-recipient state: the field to branch on. */
560
560
  state: NotifyRecipientState;
561
561
  /** True once the recipient's first delivery step was enqueued. */
562
562
  enqueued: boolean;
@@ -580,7 +580,7 @@ export interface NotifySendStatusRecipient {
580
580
  */
581
581
  rate_limited_at: number | null;
582
582
  /**
583
- * The latest dispatch outcome per attempted channel — the difference between a
583
+ * The latest dispatch outcome per attempted channel: the difference between a
584
584
  * notification that actually left the building and one whose every channel
585
585
  * declined. `{}` until the first dispatch is recorded. The adapter `detail`
586
586
  * string is deliberately NOT carried here: it can echo a provider response body,
@@ -597,7 +597,7 @@ export interface NotifySendStatusRecipient {
597
597
  | 'skipped' | 'not_implemented' | 'retryable'
598
598
  /**
599
599
  * An email, text or call step that could not go yet, tried again at
600
- * `retry_at` for its `reason` — not terminal: a step that cannot go within 24 hours
600
+ * `retry_at` for its `reason`. Not terminal: a step that cannot go within 24 hours
601
601
  * of the send is recorded `failed` instead. Left out once the
602
602
  * recipient's record holds a stop its step meets when it wakes (they
603
603
  * saw the notification, it was recalled, or their ladder already
@@ -611,7 +611,7 @@ export interface NotifySendStatusRecipient {
611
611
  * within 24 hours of the send, or was a text, call or email handed
612
612
  * on whose answer was lost (`reason` `possibly_delivered`: it may
613
613
  * have reached the person, so it is never sent again, and a new send
614
- * to them could reach them twice) — terminal, unlike `retryable`.
614
+ * to them could reach them twice): terminal, unlike `retryable`.
615
615
  * The ladder moves on to its next channel.
616
616
  */
617
617
  | 'failed'
@@ -670,7 +670,7 @@ export interface NotifySendStatusRecipient {
670
670
  * Every attempt is terminal, nothing delivered, and at least one channel's
671
671
  * outcome is `failed`: it exhausted its retries, was deferred and could not
672
672
  * go within 24 hours of the send, or was a text or call whose answer was
673
- * lost — a transport problem on our side, not an address that cannot
673
+ * lost. It is a transport problem on our side, not an address that cannot
674
674
  * receive. A transport fact about the attempts so
675
675
  * far, like `undeliverable`.
676
676
  */
@@ -694,7 +694,7 @@ export interface NotifySendStatusCounts {
694
694
  */
695
695
  deferred: number;
696
696
  /**
697
- * The seven state counters below PARTITION the audience — one per
697
+ * The seven state counters below PARTITION the audience, one per
698
698
  * `NotifyRecipientState`:
699
699
  * `pending + delivered + undeliverable + failed + suppressed + rate_limited + recalled === total`.
700
700
  * (`enqueued` / `seen` / `read` / `archived` / `deferred` are independent
@@ -724,7 +724,7 @@ export interface NotifySendStatusCounts {
724
724
  /**
725
725
  * The sender's per-recipient delivery rollup. Metadata only by construction: it
726
726
  * never carries the SparkLink pointer, policy internals, or a contact you did not
727
- * supply — `recipient_id` is the recipient's key (see `NotifyRecipientRef`), so a
727
+ * supply. `recipient_id` is the recipient's key (see `NotifyRecipientRef`), so a
728
728
  * recipient addressed by email alone appears as that address, trimmed and
729
729
  * lowercased. Address recipients as `{ id, email }` to keep their addresses out
730
730
  * of the rollup.
@@ -732,17 +732,17 @@ export interface NotifySendStatusCounts {
732
732
  export interface NotifySendStatus {
733
733
  send_id: string;
734
734
  /**
735
- * DERIVED, never stored — and by the SAME function the send-history list uses,
735
+ * DERIVED, never stored, and by the SAME function the send-history list uses,
736
736
  * so the two never disagree about what a state means.
737
737
  *
738
- * - `unknown` — no audience denominator, so no honest statement about "all
738
+ * - `unknown`: no audience denominator, so no honest statement about "all
739
739
  * recipients" can be made.
740
- * - `pending` — accepted; nothing handed to delivery yet.
741
- * - `sending` — in flight.
742
- * - `delivered` — every recipient settled delivered, whether a channel
740
+ * - `pending`: accepted; nothing handed to delivery yet.
741
+ * - `sending`: in flight.
742
+ * - `delivered`: every recipient settled delivered, whether a channel
743
743
  * accepted it or their engagement was recorded (see the recipient `state`).
744
- * - `partial` — every recipient resolved; some delivered, some did not.
745
- * - `failed` — every recipient resolved and none delivered.
744
+ * - `partial`: every recipient resolved; some delivered, some did not.
745
+ * - `failed`: every recipient resolved and none delivered.
746
746
  *
747
747
  * A whole-audience recall resolves every recipient a channel had not already
748
748
  * reached, so a recalled send reads `partial`, `failed` when nothing had been
@@ -803,7 +803,7 @@ export interface NotifySendStatusDestination {
803
803
  target_name: string | null;
804
804
  }
805
805
  /**
806
- * A send's delivery state, DERIVED from its counters — the send row itself is
806
+ * A send's delivery state, DERIVED from its counters: the send row itself is
807
807
  * write-once, so there is no stored lifecycle to read.
808
808
  *
809
809
  * `failed` counts every recipient who reached a terminal answer without being
@@ -841,10 +841,10 @@ export interface NotifySendSummary {
841
841
  title: string | null;
842
842
  category: string | null;
843
843
  delivery: NotifyDeliveryMode | null;
844
- /** The sender name recipients saw. Display only — nothing routes on it. */
844
+ /** The sender name recipients saw. Display only: nothing routes on it. */
845
845
  display_sender_name: string | null;
846
846
  /**
847
- * Audience size at accept — the denominator of the counters below. Null or 0
847
+ * Audience size at accept: the denominator of the counters below. Null or 0
848
848
  * only on a send that carries no audience count, which reads
849
849
  * `state: 'unknown'`.
850
850
  */
@@ -904,15 +904,15 @@ export interface ListNotifySendsResponse {
904
904
  * Recall depth.
905
905
  * - `grant` (default): revoke the access grant; the content survives.
906
906
  * - `content`: hard-burn the sealed spark so the content is unreadable for
907
- * everyone, then drop the grant. Spark-backed sends only — an ingot send
908
- * references the owner's durable vault content and can only be grant-recalled:
907
+ * everyone, then drop the grant. Spark-backed sends only: an ingot send
908
+ * references the owner's durable vault content and can only be grant-recalled, so
909
909
  * a `content` recall of one is a 400, refused before anything is revoked or
910
910
  * stopped.
911
911
  */
912
912
  export type NotifyRecallMode = 'grant' | 'content';
913
913
  export interface RecallNotifySendOptions {
914
914
  /**
915
- * Recall only these recipients. OMIT to recall the whole audience — an empty
915
+ * Recall only these recipients. OMIT to recall the whole audience. An empty
916
916
  * array is rejected rather than guessed at, because "nobody" and "everybody"
917
917
  * are both plausible readings of it on a destructive call.
918
918
  */
@@ -922,7 +922,7 @@ export interface RecallNotifySendOptions {
922
922
  export interface RecallNotifySendResponse {
923
923
  send_id: string;
924
924
  mode: NotifyRecallMode;
925
- /** Grants revoked. An already-revoked grant counts here — recall is idempotent. */
925
+ /** Grants revoked. An already-revoked grant counts here: recall is idempotent. */
926
926
  recalled: number;
927
927
  failed: number;
928
928
  /** Requested recipient ids that are not on this send's audience. */
@@ -1006,8 +1006,8 @@ export interface ListNotifyReceiptsResponse {
1006
1006
  receipts: NotifyReceipt[];
1007
1007
  /**
1008
1008
  * Next-page cursor, or null on the last page. A page can still come back SHORT
1009
- * of `limit` (even empty) while more rows follow — `interaction` narrows with
1010
- * a filter applied after each page is read — so follow the cursor; never treat
1009
+ * of `limit` (even empty) while more rows follow (`interaction` narrows with
1010
+ * a filter applied after each page is read), so follow the cursor; never treat
1011
1011
  * a short page as the end.
1012
1012
  */
1013
1013
  cursor: string | null;
@@ -1018,14 +1018,14 @@ export interface NotifySendReceiptsResponse {
1018
1018
  /**
1019
1019
  * True when the call's page cap stopped the walk before it reached the send's
1020
1020
  * creation, so more receipts of this send may follow: re-call with `cursor`.
1021
- * False means `receipts` is the send's whole set — no receipt of a send
1021
+ * False means `receipts` is the send's whole set: no receipt of a send
1022
1022
  * predates it, so the walk never reads further back.
1023
1023
  */
1024
1024
  truncated: boolean;
1025
1025
  /** Where the next call resumes a truncated walk; null when it is complete. */
1026
1026
  cursor: string | null;
1027
1027
  }
1028
- /** One notification topic. `required: true` is the compliance floor — unmutable by the recipient. */
1028
+ /** One notification topic. `required: true` is the compliance floor, unmutable by the recipient. */
1029
1029
  export interface NotifyConfigCategory {
1030
1030
  /** ≤60 chars. */
1031
1031
  label?: string;
@@ -1066,7 +1066,7 @@ export interface NotifyConfigReliability {
1066
1066
  /**
1067
1067
  * Notifications per recipient per minute, 1-600, counted per person: a
1068
1068
  * recipient counts against its own id and each email or phone it names. An
1069
- * abuse/bug backstop the tenant cannot switch off — 0 is rejected.
1069
+ * abuse/bug backstop the tenant cannot switch off: 0 is rejected.
1070
1070
  */
1071
1071
  rate_limit_per_recipient_per_minute?: number;
1072
1072
  }
@@ -1088,7 +1088,7 @@ export interface NotifyConfigSecurity {
1088
1088
  mandatory_seal_categories?: string[];
1089
1089
  }
1090
1090
  /**
1091
- * The account's outbound EVENT webhook — how a backend learns, without polling
1091
+ * The account's outbound EVENT webhook: how a backend learns, without polling
1092
1092
  * for it, that a recipient signed, approved, denied, or replied
1093
1093
  * (`notify.signed`, `notify.approved`, `notify.denied`, `notify.replied`), and
1094
1094
  * how delivery to each recipient turned out (`notify.delivered`,
@@ -1110,7 +1110,7 @@ export interface NotifyConfigSecurity {
1110
1110
  * so an edge in front of the receiver that refuses a request without one lets
1111
1111
  * it through.
1112
1112
  *
1113
- * Delivery is BEST EFFORT — one retry, then the event is dropped. Polling
1113
+ * Delivery is BEST EFFORT: one retry, then the event is dropped. Polling
1114
1114
  * (`listSends`, `getSendStatus`, `listReceipts`) remains the source of truth;
1115
1115
  * the webhook exists to make that poll rare, not to replace it.
1116
1116
  */
@@ -1128,7 +1128,7 @@ export interface NotifyConfigEvents {
1128
1128
  */
1129
1129
  secret?: string;
1130
1130
  }
1131
- /** `events` as it comes BACK from a read — neither the URL nor the secret is ever echoed. */
1131
+ /** `events` as it comes BACK from a read: neither the URL nor the secret is ever echoed. */
1132
1132
  export interface NotifyConfigEventsRead {
1133
1133
  /** Whether an event webhook URL is stored. The URL itself is never returned. */
1134
1134
  webhook_url_set?: boolean;
@@ -1256,7 +1256,7 @@ export interface NotifyConfig {
1256
1256
  };
1257
1257
  /** Your organization's send-level destinations; empty until an admin configures one. */
1258
1258
  destinations: NotifyConfigDestinations;
1259
- /** Tombstoned entries are already dropped — a deleted category is simply gone. */
1259
+ /** Tombstoned entries are already dropped; a deleted category is simply gone. */
1260
1260
  categories: Record<string, NotifyConfigCategory>;
1261
1261
  }
1262
1262
  /**
@@ -1304,7 +1304,7 @@ export interface NotifyConfigPatch {
1304
1304
  * the webhook destination's `secret` come back as `secret_set`, the webhook
1305
1305
  * destination's `url` as `url_set` and `url_host`, and `events.webhook_url` and
1306
1306
  * the Teams destination's `webhook_url` as `webhook_url_set` and
1307
- * `webhook_url_host` — a patch never has to resend them.
1307
+ * `webhook_url_host`, so a patch never has to resend them.
1308
1308
  */
1309
1309
  export type NotifyConfigOverrides = Omit<NotifyConfigPatch, 'events' | 'destinations'> & {
1310
1310
  events?: NotifyConfigEventsRead;