@sparkvault/sdk-js 13.4.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1044,9 +1044,60 @@ interface UpdateVaultUploadOptions {
1044
1044
  * | `email` | Goes out from your organization's own sender (`getEmailSender`) |
1045
1045
  * | `push`, `web_push` | Reach the devices an active member of your organization, addressed by their SparkVault user id (`usr_*`), registered with SparkVault (its phone app and browser push), titled with your organization's name first; dropped from the ladder of a recipient with none |
1046
1046
  * | `sms`, `voice`, `whatsapp`, `rcs` | Refused 403 `NOTIFY_CHANNEL_NOT_AVAILABLE`: Notify delivers no text, call or chat message |
1047
- * | `webhook`, `slack`, `teams` | Refused 403 `NOTIFY_CHANNEL_NOT_AVAILABLE`: SparkVault's own destinations only |
1047
+ *
1048
+ * A send's posts to your organization's own webhook, Slack channel or Teams
1049
+ * workflow are no channel: they are its destinations (`NotifyConfig['destinations']`).
1050
+ */
1051
+ type NotifyChannel = 'in_app' | 'email' | 'sms' | 'push' | 'web_push' | 'voice' | 'whatsapp' | 'rcs';
1052
+ /**
1053
+ * The kinds of send-level destination your organization's Notify config names,
1054
+ * at most one of each, in the order every reader lists them: a webhook of your
1055
+ * own, a Slack channel (through your organization's SparkVault Slack app) and a
1056
+ * Microsoft Teams workflow. Each receives one post of every send whose category
1057
+ * it lists, never one per recipient, and never a `security` send.
1058
+ */
1059
+ type NotifyDestinationKind = 'webhook' | 'slack' | 'teams';
1060
+ /**
1061
+ * One of a send's destinations, as its status and its history summary report it.
1062
+ *
1063
+ * - `pending` — the post has not settled yet (it is queued, or waits to be tried again).
1064
+ * - `delivered` — the destination accepted the post.
1065
+ * - `skipped` — nothing was posted, and trying again would not post it.
1066
+ * - `failed` — the post was given up on.
1067
+ * - `recalled` — the whole send was recalled before the post settled.
1068
+ * - `unknown` — the send's delivery record is gone (past its history horizon).
1069
+ */
1070
+ type NotifyDestinationState = 'pending' | 'delivered' | 'skipped' | 'failed' | 'recalled' | 'unknown';
1071
+ /**
1072
+ * Why a destination's post was skipped: the sending account was suspended or
1073
+ * is being deleted (`account_inactive`), the destination was removed
1074
+ * (`destination_removed`) or stopped listing the send's category
1075
+ * (`destination_unrouted`) before the post went out, its URL no longer
1076
+ * resolves to a public host (`unsafe_url`) or answered with a redirect, which
1077
+ * is never followed (`redirect_refused`), or Slack's own reasons: no
1078
+ * SparkVault Slack app is installed (`slack_not_installed`), it needs an
1079
+ * admin's Refresh Connection (`slack_reauthorization_required`), the channel
1080
+ * is gone (`channel_not_found`) or archived (`is_archived`), the app was
1081
+ * removed from it (`not_in_channel`: saving the destination again adds it back
1082
+ * to a public channel), the notification has no visible title or sender name
1083
+ * (`display_not_shown`), or Slack refused it with a code of no fixed form
1084
+ * (`rejected_unrecognized`).
1085
+ */
1086
+ type NotifyDestinationSkipReason = 'account_inactive' | 'destination_removed' | 'destination_unrouted' | 'unsafe_url' | 'redirect_refused' | 'slack_not_installed' | 'slack_reauthorization_required' | 'channel_not_found' | 'is_archived' | 'not_in_channel' | 'display_not_shown' | 'rejected_unrecognized';
1087
+ /**
1088
+ * Why a destination's post failed: it was sent and its answer was lost, so it
1089
+ * may have landed and is never tried again, since that could post it twice
1090
+ * (`possibly_delivered`), or every attempt met a fault that may clear, and
1091
+ * none was left (`attempts_exhausted`).
1048
1092
  */
1049
- type NotifyChannel = 'in_app' | 'email' | 'sms' | 'push' | 'web_push' | 'voice' | 'whatsapp' | 'rcs' | 'webhook' | 'slack' | 'teams';
1093
+ type NotifyDestinationFailureReason = 'possibly_delivered' | 'attempts_exhausted';
1094
+ /**
1095
+ * The `reason` beside a skipped or failed destination: a fixed reason, the
1096
+ * HTTP status a webhook or Teams workflow refused the post with
1097
+ * (`status_404`), or the error code Slack refused it with
1098
+ * (`rejected_restricted_action`).
1099
+ */
1100
+ type NotifyDestinationReason = NotifyDestinationSkipReason | NotifyDestinationFailureReason | `status_${number}` | `rejected_${string}`;
1050
1101
  /**
1051
1102
  * How a send's content reaches the recipient.
1052
1103
  * - `sealed` (default): content is sealed into a Spark behind a single-use
@@ -1617,6 +1668,27 @@ interface NotifySendStatus {
1617
1668
  type: string | null;
1618
1669
  recipients: NotifySendStatusRecipient[];
1619
1670
  counts: NotifySendStatusCounts;
1671
+ /**
1672
+ * Each of your organization's destinations the send was routed to when it
1673
+ * was accepted, in `NotifyDestinationKind` order; empty when none was.
1674
+ * Reported beside the recipients, never part of them: `status` and `counts`
1675
+ * are the recipients' alone.
1676
+ */
1677
+ destinations: NotifySendStatusDestination[];
1678
+ }
1679
+ /** One of a send status's `destinations`. */
1680
+ interface NotifySendStatusDestination {
1681
+ kind: NotifyDestinationKind;
1682
+ state: NotifyDestinationState;
1683
+ /** Epoch seconds the state was recorded; null for a post no attempt has recorded anything for yet. */
1684
+ at: number | null;
1685
+ /** Beside a `skipped` or `failed` state; null otherwise. */
1686
+ reason: NotifyDestinationReason | null;
1687
+ /**
1688
+ * Where the post went: the webhook's host, the Slack channel id, or the
1689
+ * Teams workflow's host. Null when no attempt recorded one.
1690
+ */
1691
+ target: string | null;
1620
1692
  }
1621
1693
  /**
1622
1694
  * A send's delivery state, DERIVED from its counters — the send row itself is
@@ -1689,6 +1761,18 @@ interface NotifySendSummary {
1689
1761
  */
1690
1762
  recalled_at: number | null;
1691
1763
  state: NotifySendState;
1764
+ /**
1765
+ * The state of each of your organization's destinations the send was routed
1766
+ * to, in `NotifyDestinationKind` order (empty when none was), as
1767
+ * `getSendStatus` reports it; null when the send's delivery record is gone
1768
+ * (`state: 'unknown'`).
1769
+ */
1770
+ destinations: NotifySendSummaryDestination[] | null;
1771
+ }
1772
+ /** One of a send-history summary's `destinations`. */
1773
+ interface NotifySendSummaryDestination {
1774
+ kind: NotifyDestinationKind;
1775
+ state: NotifyDestinationState;
1692
1776
  }
1693
1777
  interface ListNotifySendsOptions {
1694
1778
  /** Page size, 1-100 (server default 50). */
@@ -1896,14 +1980,22 @@ interface NotifyConfigSecurity {
1896
1980
  *
1897
1981
  * Both fields are required before anything is sent: an unsigned event is not
1898
1982
  * offered. `webhook_url` must be https on a public host (loopback, private,
1899
- * link-local, and CGNAT addresses are rejected server-side).
1983
+ * link-local, and CGNAT addresses are rejected server-side). A patch names only
1984
+ * what it changes, but a `webhook_url` on another host or port than the
1985
+ * stored one needs a new `secret` in the same patch (400 `VALIDATION_ERROR`
1986
+ * naming `events.secret`, `details.missing: ['secret']`): a secret never
1987
+ * follows its URL to a different host.
1900
1988
  *
1901
1989
  * Delivery is BEST EFFORT — one retry, then the event is dropped. Polling
1902
1990
  * (`listSends`, `getSendStatus`, `listReceipts`) remains the source of truth;
1903
1991
  * the webhook exists to make that poll rare, not to replace it.
1904
1992
  */
1905
1993
  interface NotifyConfigEvents {
1906
- /** https only, ≤2048 chars. */
1994
+ /**
1995
+ * https only, ≤2048 chars. WRITE-ONLY: a config read reports
1996
+ * `webhook_url_set` and `webhook_url_host` instead, since a catch hook's URL
1997
+ * carries its own token.
1998
+ */
1907
1999
  webhook_url?: string;
1908
2000
  /**
1909
2001
  * HMAC-SHA256 signing secret, 16-256 chars. Sent as the hex digest of the raw
@@ -1912,12 +2004,101 @@ interface NotifyConfigEvents {
1912
2004
  */
1913
2005
  secret?: string;
1914
2006
  }
1915
- /** `events` as it comes BACK from a read — the secret is never echoed. */
2007
+ /** `events` as it comes BACK from a read — neither the URL nor the secret is ever echoed. */
1916
2008
  interface NotifyConfigEventsRead {
1917
- webhook_url?: string;
2009
+ /** Whether an event webhook URL is stored. The URL itself is never returned. */
2010
+ webhook_url_set?: boolean;
2011
+ /** The stored event webhook URL's host, so an editor can say where events go. */
2012
+ webhook_url_host?: string;
1918
2013
  /** Whether a signing secret is stored. The secret itself is never returned. */
1919
2014
  secret_set?: boolean;
1920
2015
  }
2016
+ /**
2017
+ * Your own HTTPS endpoint as a destination. Each routed send is POSTed to `url`
2018
+ * once as JSON, signed like the event webhook (the hex HMAC-SHA256 of the raw
2019
+ * body under `secret`, in `X-SparkVault-Signature`); a post that may not have
2020
+ * landed is tried again with the same `delivery_id`, so drop a repeat you
2021
+ * already received. A redirect is never followed.
2022
+ */
2023
+ interface NotifyWebhookDestination {
2024
+ /**
2025
+ * https only on a public host, ≤2048 chars. WRITE-ONLY: a read reports
2026
+ * `url_set` and `url_host` instead, since a catch hook's URL carries its own
2027
+ * token.
2028
+ */
2029
+ url: string;
2030
+ /** Signing secret, 16-256 chars. WRITE-ONLY: a read reports `secret_set` instead. */
2031
+ secret: string;
2032
+ /**
2033
+ * The categories whose sends it receives one post of: 1-50, each once, each a
2034
+ * category a send can carry, never `security` (a person's security notices go
2035
+ * only to that person). A refused one is a 400 naming it in `details.category`.
2036
+ */
2037
+ categories: string[];
2038
+ }
2039
+ /** The webhook destination as a read returns it: neither its URL nor its secret is ever echoed. */
2040
+ interface NotifyWebhookDestinationRead {
2041
+ /** Whether an endpoint URL is stored. The URL itself is never returned. */
2042
+ url_set: boolean;
2043
+ /** The stored endpoint URL's host, so an editor can say which endpoint it is. */
2044
+ url_host: string;
2045
+ /** Whether a signing secret is stored. The secret itself is never returned. */
2046
+ secret_set: boolean;
2047
+ categories: string[];
2048
+ }
2049
+ /**
2050
+ * A channel in your organization's Slack workspace as a destination, posted to
2051
+ * through its SparkVault Slack app installation. A save naming `channel_id`
2052
+ * (even the one already saved) prepares the channel first: the app reads it and
2053
+ * joins a public one it is not in, and a private channel needs the app invited
2054
+ * first. A channel the app cannot post in is refused 400 with `details.reason`
2055
+ * naming why, and nothing is stored.
2056
+ */
2057
+ interface NotifySlackDestination {
2058
+ /** The channel's Slack id, as the console's channel picker lists it. */
2059
+ channel_id: string;
2060
+ /** As `NotifyWebhookDestination['categories']`. */
2061
+ categories: string[];
2062
+ }
2063
+ /** A Microsoft Teams workflow as a destination, posted to through its webhook URL. */
2064
+ interface NotifyTeamsDestination {
2065
+ /**
2066
+ * https only on a public host, ≤2048 chars. The URL is itself the credential
2067
+ * that posts to the channel. WRITE-ONLY: a read reports `webhook_url_set`
2068
+ * and `webhook_url_host` instead.
2069
+ */
2070
+ webhook_url: string;
2071
+ /** As `NotifyWebhookDestination['categories']`. */
2072
+ categories: string[];
2073
+ }
2074
+ /** The Teams destination as a read returns it: the workflow URL is never echoed. */
2075
+ interface NotifyTeamsDestinationRead {
2076
+ /** Whether a workflow URL is stored. */
2077
+ webhook_url_set: boolean;
2078
+ /** The stored workflow URL's host, so an editor can say which workflow it is. */
2079
+ webhook_url_host: string;
2080
+ categories: string[];
2081
+ }
2082
+ /** The destinations a config read returns, each present only once configured. */
2083
+ interface NotifyConfigDestinations {
2084
+ webhook?: NotifyWebhookDestinationRead;
2085
+ slack?: NotifySlackDestination;
2086
+ teams?: NotifyTeamsDestinationRead;
2087
+ }
2088
+ /**
2089
+ * A patch of the destinations: null removes the destination of its kind; an
2090
+ * object creates it, naming every field, or patches the one stored, naming
2091
+ * only what it changes (a credential it leaves out stays as stored). A webhook
2092
+ * `url` on another host or port than the stored one needs a new `secret` in
2093
+ * the same patch (400 `VALIDATION_ERROR` naming
2094
+ * `destinations.webhook.secret`, `details.missing: ['secret']`): a secret
2095
+ * never follows its URL to a different host.
2096
+ */
2097
+ interface NotifyConfigDestinationsPatch {
2098
+ webhook?: Partial<NotifyWebhookDestination> | null;
2099
+ slack?: Partial<NotifySlackDestination> | null;
2100
+ teams?: Partial<NotifyTeamsDestination> | null;
2101
+ }
1921
2102
  /** The account's effective config: secure defaults deep-merged with its overrides. */
1922
2103
  interface NotifyConfig {
1923
2104
  delivery: NotifyConfigDelivery;
@@ -1935,6 +2116,8 @@ interface NotifyConfig {
1935
2116
  email: {
1936
2117
  sending_domain: string | null;
1937
2118
  };
2119
+ /** Your organization's send-level destinations; empty until an admin configures one. */
2120
+ destinations: NotifyConfigDestinations;
1938
2121
  /** Tombstoned entries are already dropped — a deleted category is simply gone. */
1939
2122
  categories: Record<string, NotifyConfigCategory>;
1940
2123
  }
@@ -1973,15 +2156,21 @@ interface NotifyConfigPatch {
1973
2156
  email?: {
1974
2157
  sending_domain?: string | null;
1975
2158
  };
2159
+ /** Admin only. */
2160
+ destinations?: NotifyConfigDestinationsPatch;
1976
2161
  categories?: Record<string, NotifyConfigCategory | null>;
1977
2162
  }
1978
2163
  /**
1979
2164
  * The stored override delta, seeded-category tombstones included, because that is
1980
- * what a write merges onto. One value is held back: `events.secret` comes back as
1981
- * `secret_set`, never the secret — a patch never has to resend it.
2165
+ * what a write merges onto. The credentials are held back: `events.secret` and
2166
+ * the webhook destination's `secret` come back as `secret_set`, the webhook
2167
+ * destination's `url` as `url_set` and `url_host`, and `events.webhook_url` and
2168
+ * the Teams destination's `webhook_url` as `webhook_url_set` and
2169
+ * `webhook_url_host` — a patch never has to resend them.
1982
2170
  */
1983
- type NotifyConfigOverrides = Omit<NotifyConfigPatch, 'events'> & {
2171
+ type NotifyConfigOverrides = Omit<NotifyConfigPatch, 'events' | 'destinations'> & {
1984
2172
  events?: NotifyConfigEventsRead;
2173
+ destinations?: NotifyConfigDestinations;
1985
2174
  };
1986
2175
  interface NotifyConfigResponse {
1987
2176
  effective: NotifyConfig;
@@ -2308,8 +2497,12 @@ declare class NotifyProductModule {
2308
2497
  *
2309
2498
  * The `events` section configures the outbound event webhook: `webhook_url`
2310
2499
  * must be https on a public host, and `secret` (16-256 chars) signs every event
2311
- * body as `X-SparkVault-Signature: hex(HMAC-SHA256(secret, rawBody))`. The
2312
- * secret is WRITE-ONLY — reads report `events.secret_set`, never the value.
2500
+ * body as `X-SparkVault-Signature: hex(HMAC-SHA256(secret, rawBody))`. Both
2501
+ * are WRITE-ONLY — reads report `events.webhook_url_set`,
2502
+ * `events.webhook_url_host` and `events.secret_set`, never the values. A
2503
+ * `webhook_url` on another host or port needs a new `secret` in the same
2504
+ * patch (400 `VALIDATION_ERROR` naming `events.secret`), so a secret never
2505
+ * follows its URL to a different host.
2313
2506
  *
2314
2507
  * The `email` section selects a domain of your own for your Notify email to go
2315
2508
  * out from. `security`, `events` and `email` are an org admin's to change: a
@@ -4466,4 +4659,4 @@ declare global {
4466
4659
  }
4467
4660
 
4468
4661
  export { AuthenticationError, AuthorizationError, EntropyModule, FoldersModule, IdentityModule, IdentityProviderError, IngotsModule, NAME_CONFLICT_POLICIES, NOTIFY_PRESETS, NetworkError, NotifyModule, NotifyProductModule, NotifySubscriptionRequiredError, PlanRequiredError, PopupBlockedError, ProductsModule, QuotaExceededError, SparkVault, SparkVaultError, SparksModule, TimeoutError, UnauthorizedError, UserCancelledError, ValidationError, VaultsModule, buildNotifyPresetSend, SparkVault as default, fetchDownload, isReceivedUploadFailure, logger, setDebugMode };
4469
- export type { AccessLogRetention, AccessLogsOptions, CreateFolderOptions, CreateNotifySendOptions, CreateSparkOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, HealthCheckOptions, HealthCheckResult, AttachOptions as IdentityAttachOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvitation, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotificationSender, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigDeliveryPatch, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifyRecipientState, NotifyReportableVerificationLevel, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusRecipient, NotifySendSummary, NotifySuppressionReason, NotifyVerificationLevel, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, SignInOptions, SignInResult, Spark, SparkInviteResend, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, StartedVaultDeletion, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreachedAdmin, UnreadCountResponse, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadEnd, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushStatus, WebPushStatusOptions, WebPushStatusResult, WebPushSubscriptionInput };
4662
+ export type { AccessLogRetention, AccessLogsOptions, CreateFolderOptions, CreateNotifySendOptions, CreateSparkOptions, CreateUploadOptions, CreateVaultOptions, CreatedIngot, CreatedSpark, EntropyFormat, EntropyResult, FetchDownloadOptions, FetchedDownload, Folder, FolderBreadcrumbItem, FolderContents, FolderPage, GenerateEntropyOptions, HealthCheckOptions, HealthCheckResult, AttachOptions as IdentityAttachOptions, Ingot, IngotAccessLog, IngotAccessLogPage, IngotDownloadLink, IngotInvitation, IngotInvite, IngotPage, IngotSharingConfig, IngotUpload, ListContentsOptions, ListFoldersOptions, ListIngotsOptions, ListNotificationsOptions, ListNotificationsResponse, ListNotifyInboxOptions, ListNotifyInboxResponse, ListNotifyReceiptsOptions, ListNotifyReceiptsResponse, ListNotifySendsOptions, ListNotifySendsResponse, ListSparksOptions, MarkAllNotificationsStateOptions, MarkAllNotificationsStateResponse, MarkAllReadResult, MarkNotificationStateOptions, MarkNotificationStateResponse, MarkNotifyInboxAllOptions, MarkNotifyInboxAllResponse, MarkNotifyInboxStateOptions, MarkNotifyInboxStateResponse, NameConflictPolicy, NotificationBulkMarkState, NotificationInboxState, NotificationMarkState, NotificationRow, NotificationSender, NotifyCategory, NotifyChannel, NotifyConfig, NotifyConfigCategory, NotifyConfigDelivery, NotifyConfigDeliveryPatch, NotifyConfigDestinations, NotifyConfigDestinationsPatch, NotifyConfigEvents, NotifyConfigEventsRead, NotifyConfigHistory, NotifyConfigOverrides, NotifyConfigPatch, NotifyConfigRealtimeFallbackDelay, NotifyConfigReliability, NotifyConfigResponse, NotifyConfigSecurity, NotifyDeliveryMode, NotifyDestinationFailureReason, NotifyDestinationKind, NotifyDestinationReason, NotifyDestinationSkipReason, NotifyDestinationState, NotifyEscalation, NotifyInboxBulkMarkState, NotifyInboxMarkState, NotifyInboxRow, NotifyInboxView, NotifyIngotRef, NotifyInteraction, NotifyPreset, NotifyPresetCategory, NotifyPresetName, NotifyPresetSendOptions, NotifyRecallMode, NotifyReceipt, NotifyReceiptEventType, NotifyRecipient, NotifyRecipientRef, NotifyRecipientState, NotifyReportableVerificationLevel, NotifySendContent, NotifySendPolicy, NotifySendReceipt, NotifySendReceiptsResponse, NotifySendResult, NotifySendState, NotifySendStatus, NotifySendStatusCounts, NotifySendStatusDestination, NotifySendStatusRecipient, NotifySendSummary, NotifySendSummaryDestination, NotifySlackDestination, NotifySuppressionReason, NotifyTeamsDestination, NotifyTeamsDestinationRead, NotifyVerificationLevel, NotifyWebhookDestination, NotifyWebhookDestinationRead, QuotaResource, RecallNotifySendOptions, RecallNotifySendResponse, RegisterWebPushResponse, ReplaceIngotOptions, ResumeUploadOptions, ScheduledVaultDeletion, SearchIngotsOptions, SendUploadOptions, ShareSparkOptions, SignInOptions, SignInResult, Spark, SparkInviteResend, SparkPage, SparkShare, SparkSummary, SparkVaultConfig, SparkVisibility, StartedVaultDeletion, SubscribeWebPushOptions, SubscribeWebPushResult, SubscribeWebPushStatus, TokenClaims, UnreachedAdmin, UnreadCountResponse, UnsealedVault, UnsubscribeWebPushResponse, UpdateFolderOptions, UpdateIngotSharingOptions, UpdateVaultUploadOptions, UpdatedVault, UploadAttachOptions, UploadBranding, UploadEnd, UploadIngotOptions, UploadOptions, UploadProgress, UploadResult, UploadSession, Vault, VaultDetail, VaultLifecycle, VaultSharingConfig, VaultSharingOptions, VaultSummary, VaultUploadConfig, VaultUploadSettings, VerifyOptions, VerifyResult, WebPushKeyResponse, WebPushStatus, WebPushStatusOptions, WebPushStatusResult, WebPushSubscriptionInput };
package/dist/index.mjs CHANGED
@@ -11866,8 +11866,12 @@ class NotifyProductModule {
11866
11866
  *
11867
11867
  * The `events` section configures the outbound event webhook: `webhook_url`
11868
11868
  * must be https on a public host, and `secret` (16-256 chars) signs every event
11869
- * body as `X-SparkVault-Signature: hex(HMAC-SHA256(secret, rawBody))`. The
11870
- * secret is WRITE-ONLY — reads report `events.secret_set`, never the value.
11869
+ * body as `X-SparkVault-Signature: hex(HMAC-SHA256(secret, rawBody))`. Both
11870
+ * are WRITE-ONLY — reads report `events.webhook_url_set`,
11871
+ * `events.webhook_url_host` and `events.secret_set`, never the values. A
11872
+ * `webhook_url` on another host or port needs a new `secret` in the same
11873
+ * patch (400 `VALIDATION_ERROR` naming `events.secret`), so a secret never
11874
+ * follows its URL to a different host.
11871
11875
  *
11872
11876
  * The `email` section selects a domain of your own for your Notify email to go
11873
11877
  * out from. `security`, `events` and `email` are an org admin's to change: a
@@ -18488,7 +18492,7 @@ class SparkVault {
18488
18492
  }
18489
18493
  /** Get the SDK version */
18490
18494
  static get version() {
18491
- return '13.4.0';
18495
+ return '14.0.0';
18492
18496
  }
18493
18497
  }
18494
18498
  if (typeof window !== 'undefined') {