@sparkvault/sdk-js 8.13.0 → 8.14.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/errors.d.ts +9 -0
- package/dist/index.d.ts +881 -225
- package/dist/notify/index.d.ts +32 -2
- package/dist/notify/types.d.ts +27 -0
- package/dist/products/index.d.ts +15 -1
- package/dist/products/notify/index.d.ts +188 -0
- package/dist/products/notify/types.d.ts +392 -0
- package/dist/sparkvault.cjs.js +510 -13
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +507 -14
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/upload/api.d.ts +5 -4
- package/package.json +1 -1
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notify Product Types — the TENANT (sender) surface of `/v1/products/notify/*`.
|
|
3
|
+
*
|
|
4
|
+
* Wire-shape convention, split deliberately and consistently:
|
|
5
|
+
*
|
|
6
|
+
* - **Option bags are camelCase** and mapped to the snake_case body, matching
|
|
7
|
+
* every other data-plane module (`sparks`, `ingots`, and the recipient
|
|
8
|
+
* `notify` module's `createdAt`). Call ergonomics belong to the caller's
|
|
9
|
+
* language.
|
|
10
|
+
* - **Responses mirror the wire verbatim** (snake_case), for the same reason the
|
|
11
|
+
* recipient module documents: inbox rows and receipts are one shape shared
|
|
12
|
+
* with `@sparkvault/sdk-mobile` and the first-party console. Do not remap them.
|
|
13
|
+
* - **The config patch is the ONE exception on the input side**: it stays
|
|
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
|
|
16
|
+
* (`weekly_newsletter`) and those keys are addressed in send payloads and
|
|
17
|
+
* rendered into recipient-facing preference URLs. Case-mapping the tree would
|
|
18
|
+
* silently corrupt them, so the config travels exactly as the server defines it.
|
|
19
|
+
*/
|
|
20
|
+
import type { NotificationRow, ListNotificationsResponse, MarkNotificationStateResponse } from '../../notify/types';
|
|
21
|
+
/** Every transport the dispatch seam can carry a notification on. */
|
|
22
|
+
export type NotifyChannel = 'in_app' | 'websocket' | 'email' | 'sms' | 'push' | 'web_push' | 'voice' | 'whatsapp' | 'rcs' | 'webhook' | 'slack' | 'teams';
|
|
23
|
+
/**
|
|
24
|
+
* How a send's content reaches the recipient.
|
|
25
|
+
* - `sealed` (default): content is sealed into a Spark behind a single-use
|
|
26
|
+
* SparkLink; channels carry only the pointer ("tap to view").
|
|
27
|
+
* - `plaintext`: a short non-confidential body rendered INLINE in the channel
|
|
28
|
+
* payload. Fail-closed — restricted to inline-capable channels
|
|
29
|
+
* (`in_app`/`push`/`web_push`/`email`), at most 50 recipients, and never
|
|
30
|
+
* allowed on a confidential category.
|
|
31
|
+
*/
|
|
32
|
+
export type NotifyDeliveryMode = 'sealed' | 'plaintext';
|
|
33
|
+
/** What a recipient must prove before the SparkLink reveals its content. */
|
|
34
|
+
export type NotifyVerificationLevel = 'none' | 'identifier' | 'passkey' | 'out_of_band' | 'dual_control';
|
|
35
|
+
/** What the recipient does at the reveal — the interaction the receipt attests to. */
|
|
36
|
+
export type NotifyInteraction = 'view' | 'acknowledge' | 'sign' | 'approve' | 'reply';
|
|
37
|
+
/**
|
|
38
|
+
* The fixed categories the five presets classify their sends as. These are
|
|
39
|
+
* interaction bundles, not account topics — they are independent of
|
|
40
|
+
* `config.categories`.
|
|
41
|
+
*/
|
|
42
|
+
export type NotifyPresetCategory = 'alert' | 'secure' | 'conversation' | 'approval' | 'signature';
|
|
43
|
+
/**
|
|
44
|
+
* A send's display category. The server accepts either a key configured in the
|
|
45
|
+
* account's open-keyed `config.categories` map or one of the five preset
|
|
46
|
+
* categories, so this is a string that offers the preset values as hints rather
|
|
47
|
+
* than a closed union the account's own topics could not satisfy.
|
|
48
|
+
*/
|
|
49
|
+
export type NotifyCategory = NotifyPresetCategory | (string & Record<never, never>);
|
|
50
|
+
/** The five secure-by-default preset bundles. */
|
|
51
|
+
export type NotifyPresetName = 'alert' | 'secureMessage' | 'conversation' | 'approval' | 'signatureRequest';
|
|
52
|
+
/**
|
|
53
|
+
* A recipient addressed by the handles the SENDER knows them by. `id` is the
|
|
54
|
+
* stable inbox partition key (an SVID `ing_*`, a console user id `usr_*`, or the
|
|
55
|
+
* tenant's own key); `email` / `phone` are the deliverable handles. A bare string
|
|
56
|
+
* is an identifier that is its own invite.
|
|
57
|
+
*
|
|
58
|
+
* Recipient preferences and device-channel capability are resolved from the id,
|
|
59
|
+
* so addressing by SVID is what makes per-person preferences apply.
|
|
60
|
+
*/
|
|
61
|
+
export interface NotifyRecipientRef {
|
|
62
|
+
id?: string;
|
|
63
|
+
email?: string;
|
|
64
|
+
phone?: string;
|
|
65
|
+
}
|
|
66
|
+
export type NotifyRecipient = string | NotifyRecipientRef;
|
|
67
|
+
/** Content to seal into a fresh Spark, one per recipient. */
|
|
68
|
+
export interface NotifySendContent {
|
|
69
|
+
payload: string;
|
|
70
|
+
/** Defaults to `text/plain`. A plaintext send accepts only `text/plain` or `text/html`. */
|
|
71
|
+
contentType?: string;
|
|
72
|
+
filename?: string;
|
|
73
|
+
/** Sealed-content lifetime; the grant never outlives the content it points at. */
|
|
74
|
+
ttlMinutes?: number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* An EXISTING ingot to point the grant at instead of sealing new content. One
|
|
78
|
+
* persistent asset carries a single grant, so an ingot send is 1:1 — it targets
|
|
79
|
+
* exactly one recipient.
|
|
80
|
+
*/
|
|
81
|
+
export interface NotifyIngotRef {
|
|
82
|
+
ingotId: string;
|
|
83
|
+
vaultId: string;
|
|
84
|
+
}
|
|
85
|
+
/** The access policy stamped onto each minted SparkLink grant. */
|
|
86
|
+
export interface NotifySendPolicy {
|
|
87
|
+
verificationLevel?: NotifyVerificationLevel;
|
|
88
|
+
interaction?: NotifyInteraction;
|
|
89
|
+
/** Require the recipient to have verified within N minutes of revealing. */
|
|
90
|
+
revealFreshnessMinutes?: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Cumulative per-step delays in SECONDS from send time, one per channel step.
|
|
94
|
+
* Step 0 always fires immediately (any `delays[0]` is ignored), and the sequence
|
|
95
|
+
* is aligned non-decreasing. Omit to derive the schedule from the account config.
|
|
96
|
+
*/
|
|
97
|
+
export interface NotifyEscalation {
|
|
98
|
+
delays: number[];
|
|
99
|
+
}
|
|
100
|
+
export interface CreateNotifySendOptions {
|
|
101
|
+
/**
|
|
102
|
+
* Idempotency key, `^[A-Za-z0-9_.:-]{1,128}$`. Replaying an existing id returns
|
|
103
|
+
* the stored send unchanged — never re-sealed, never re-delivered — with
|
|
104
|
+
* `idempotent: true`. Generated (`ntsnd_*`) when absent.
|
|
105
|
+
*/
|
|
106
|
+
sendId?: string;
|
|
107
|
+
/** 1-500 recipients. An ingot send accepts exactly one. */
|
|
108
|
+
recipients: NotifyRecipient[];
|
|
109
|
+
/** Provide exactly one content source: `content` OR `ingot`. */
|
|
110
|
+
content?: NotifySendContent;
|
|
111
|
+
/** Provide exactly one content source: `content` OR `ingot`. */
|
|
112
|
+
ingot?: NotifyIngotRef;
|
|
113
|
+
/** Defaults to `sealed`. */
|
|
114
|
+
delivery?: NotifyDeliveryMode;
|
|
115
|
+
policy?: NotifySendPolicy;
|
|
116
|
+
/** Channel ladder override; omit to resolve from the account config per category. */
|
|
117
|
+
channels?: NotifyChannel[];
|
|
118
|
+
escalation?: NotifyEscalation;
|
|
119
|
+
/** Channel-agnostic display title (rides the email subject). Truncated at 200 chars, never rejected. */
|
|
120
|
+
title?: string;
|
|
121
|
+
category?: NotifyCategory;
|
|
122
|
+
/** Free-form display type the tenant uses to classify the send. */
|
|
123
|
+
type?: string;
|
|
124
|
+
/**
|
|
125
|
+
* NON-SECRET display text (≤500 chars) shown alongside a sealed send — e.g.
|
|
126
|
+
* "verify with your passkey to open". It is never the sealed content.
|
|
127
|
+
*/
|
|
128
|
+
instructions?: string;
|
|
129
|
+
/** Inbox-row retention, default 30. A plaintext send is capped at 7. */
|
|
130
|
+
historyTtlDays?: number;
|
|
131
|
+
}
|
|
132
|
+
export interface NotifySendResult {
|
|
133
|
+
send_id: string;
|
|
134
|
+
/** Number of recipients the send was accepted for. */
|
|
135
|
+
recipients: number;
|
|
136
|
+
status: string;
|
|
137
|
+
/**
|
|
138
|
+
* Present (and `true`) ONLY on an idempotent replay of an existing `send_id`.
|
|
139
|
+
* The first accept OMITS the field entirely — it is never `false`.
|
|
140
|
+
*/
|
|
141
|
+
idempotent?: boolean;
|
|
142
|
+
}
|
|
143
|
+
/** One preset's fixed bundle, merged UNDER the caller's own arguments. */
|
|
144
|
+
export interface NotifyPreset {
|
|
145
|
+
category: NotifyPresetCategory;
|
|
146
|
+
delivery?: NotifyDeliveryMode;
|
|
147
|
+
channels?: NotifyChannel[];
|
|
148
|
+
policy: {
|
|
149
|
+
verificationLevel: NotifyVerificationLevel;
|
|
150
|
+
interaction: NotifyInteraction;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/** Inbox views the feed can be filtered to. `all` excludes archived rows. */
|
|
154
|
+
export type NotifyInboxView = 'all' | 'unseen' | 'unread' | 'archived';
|
|
155
|
+
/** Terminal display states applicable to a single row. */
|
|
156
|
+
export type NotifyInboxMarkState = 'seen' | 'read' | 'archived';
|
|
157
|
+
/**
|
|
158
|
+
* States a BULK drain can apply. `archived` is per-row only — it has no sparse
|
|
159
|
+
* GSI, so bulk-archiving would require a full-partition scan.
|
|
160
|
+
*/
|
|
161
|
+
export type NotifyInboxBulkMarkState = 'seen' | 'read';
|
|
162
|
+
export interface ListNotifyInboxOptions {
|
|
163
|
+
/**
|
|
164
|
+
* The inbox owner, keyed EXACTLY as addressed on the send. Identity claim never
|
|
165
|
+
* migrates or aliases prior email/phone-keyed rows, so a tenant that switches to
|
|
166
|
+
* SVID addressing should also read the prior identifier partition for its
|
|
167
|
+
* `history_ttl_days` window.
|
|
168
|
+
*/
|
|
169
|
+
recipientId: string;
|
|
170
|
+
state?: NotifyInboxView;
|
|
171
|
+
/** Page size, 1-100 (server default 50). */
|
|
172
|
+
limit?: number;
|
|
173
|
+
cursor?: string;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Both Notify inbox front doors run on one engine and return one row shape, so
|
|
177
|
+
* the sender-side feed is typed as the recipient feed rather than duplicated.
|
|
178
|
+
*/
|
|
179
|
+
export type ListNotifyInboxResponse = ListNotificationsResponse;
|
|
180
|
+
/** The feed's row shape — one projection shared by both front doors. */
|
|
181
|
+
export type NotifyInboxRow = NotificationRow;
|
|
182
|
+
export interface MarkNotifyInboxStateOptions {
|
|
183
|
+
recipientId: string;
|
|
184
|
+
/** The row's own `created_at` (epoch seconds), round-tripped from the feed row. */
|
|
185
|
+
createdAt: number;
|
|
186
|
+
state: NotifyInboxMarkState;
|
|
187
|
+
}
|
|
188
|
+
export type MarkNotifyInboxStateResponse = MarkNotificationStateResponse;
|
|
189
|
+
export interface MarkNotifyInboxAllOptions {
|
|
190
|
+
recipientId: string;
|
|
191
|
+
state: NotifyInboxBulkMarkState;
|
|
192
|
+
/** Continuation cursor from a prior call; loop until the response cursor is null. */
|
|
193
|
+
cursor?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface MarkNotifyInboxAllResponse {
|
|
196
|
+
/** Rows marked in THIS bounded page. */
|
|
197
|
+
updated: number;
|
|
198
|
+
/** Next page, or null when the drain is complete. */
|
|
199
|
+
cursor: string | null;
|
|
200
|
+
}
|
|
201
|
+
export interface NotifySendStatusRecipient {
|
|
202
|
+
recipient_id: string;
|
|
203
|
+
/** True once the recipient's first delivery step was enqueued. */
|
|
204
|
+
enqueued: boolean;
|
|
205
|
+
seen_at: number | null;
|
|
206
|
+
read_at: number | null;
|
|
207
|
+
archived_at: number | null;
|
|
208
|
+
/**
|
|
209
|
+
* The latest dispatch outcome per attempted channel — the difference between a
|
|
210
|
+
* notification that actually left the building and one whose every channel
|
|
211
|
+
* declined. `{}` until the first dispatch is recorded. The adapter `detail`
|
|
212
|
+
* string is deliberately NOT carried here: it can echo a provider response body
|
|
213
|
+
* (and with it the recipient's raw contact), which this rollup never exposes.
|
|
214
|
+
*/
|
|
215
|
+
channel_outcomes: Partial<Record<NotifyChannel, {
|
|
216
|
+
outcome: 'delivered' | 'skipped' | 'not_implemented' | 'retryable';
|
|
217
|
+
/** Epoch seconds the outcome was recorded. */
|
|
218
|
+
at: number | null;
|
|
219
|
+
/** Escalation step index the outcome came from. */
|
|
220
|
+
step: number | null;
|
|
221
|
+
}>>;
|
|
222
|
+
/** At least one channel accepted the notification for this recipient. */
|
|
223
|
+
delivered: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Every channel attempted for this recipient declined (`skipped` /
|
|
226
|
+
* `not_implemented`) and none delivered — a silent non-delivery. False while
|
|
227
|
+
* nothing has been attempted yet and while a `retryable` attempt is still in
|
|
228
|
+
* flight.
|
|
229
|
+
*/
|
|
230
|
+
undeliverable: boolean;
|
|
231
|
+
}
|
|
232
|
+
export interface NotifySendStatusCounts {
|
|
233
|
+
total: number;
|
|
234
|
+
enqueued: number;
|
|
235
|
+
seen: number;
|
|
236
|
+
read: number;
|
|
237
|
+
archived: number;
|
|
238
|
+
/** Recipients with at least one `delivered` channel outcome. */
|
|
239
|
+
delivered: number;
|
|
240
|
+
/** Recipients whose every attempted channel declined — the silent-failure count. */
|
|
241
|
+
undeliverable: number;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* The sender's per-recipient delivery rollup. Metadata only by construction: it
|
|
245
|
+
* never carries the SparkLink pointer, the recipient's raw contact, or policy
|
|
246
|
+
* internals.
|
|
247
|
+
*/
|
|
248
|
+
export interface NotifySendStatus {
|
|
249
|
+
send_id: string;
|
|
250
|
+
status: string;
|
|
251
|
+
channels: NotifyChannel[];
|
|
252
|
+
created_at: number;
|
|
253
|
+
title: string | null;
|
|
254
|
+
category: string | null;
|
|
255
|
+
type: string | null;
|
|
256
|
+
recipients: NotifySendStatusRecipient[];
|
|
257
|
+
counts: NotifySendStatusCounts;
|
|
258
|
+
}
|
|
259
|
+
/** The five verified-interaction receipt subtypes (SparkLink lifecycle events are not receipts). */
|
|
260
|
+
export type NotifyReceiptEventType = 'sparklink_accessed' | 'sparklink_signed' | 'sparklink_approved' | 'sparklink_denied' | 'sparklink_replied';
|
|
261
|
+
/**
|
|
262
|
+
* A portable, JWKS-verifiable proof of a verified interaction. `signed_token` is
|
|
263
|
+
* the Identity-signed EdDSA token; `action_hash` binds it to the approved/signed
|
|
264
|
+
* action. `link_code` is masked (`abc123***`) exactly as stored.
|
|
265
|
+
*/
|
|
266
|
+
export interface NotifyReceipt {
|
|
267
|
+
event_type: NotifyReceiptEventType;
|
|
268
|
+
occurred_at: number | null;
|
|
269
|
+
interaction: NotifyInteraction | null;
|
|
270
|
+
identity: string | null;
|
|
271
|
+
asset_id: string | null;
|
|
272
|
+
vault_id: string | null;
|
|
273
|
+
link_code: string | null;
|
|
274
|
+
link_type: string | null;
|
|
275
|
+
verification_level: NotifyVerificationLevel | null;
|
|
276
|
+
action_hash: string | null;
|
|
277
|
+
signed_token: string | null;
|
|
278
|
+
decision: string | null;
|
|
279
|
+
thread_id: string | null;
|
|
280
|
+
reply_spark_id: string | null;
|
|
281
|
+
}
|
|
282
|
+
/** A receipt correlated to the recipient whose grant produced it. */
|
|
283
|
+
export interface NotifySendReceipt extends NotifyReceipt {
|
|
284
|
+
recipient_id: string;
|
|
285
|
+
}
|
|
286
|
+
export interface ListNotifyReceiptsOptions {
|
|
287
|
+
/** Page size, 1-100 (server default 50). */
|
|
288
|
+
limit?: number;
|
|
289
|
+
cursor?: string;
|
|
290
|
+
/** Narrow to a single interaction mode. */
|
|
291
|
+
interaction?: NotifyInteraction;
|
|
292
|
+
}
|
|
293
|
+
export interface ListNotifyReceiptsResponse {
|
|
294
|
+
receipts: NotifyReceipt[];
|
|
295
|
+
/**
|
|
296
|
+
* Next-page cursor, or null on the last page. A page can be SHORT of `limit` —
|
|
297
|
+
* even EMPTY — yet still carry a non-null cursor (the receipt-subtype and
|
|
298
|
+
* `interaction` filters are applied after the key query) — follow the cursor;
|
|
299
|
+
* never treat a short or empty page as the end.
|
|
300
|
+
*/
|
|
301
|
+
cursor: string | null;
|
|
302
|
+
}
|
|
303
|
+
export interface NotifySendReceiptsResponse {
|
|
304
|
+
send_id: string;
|
|
305
|
+
receipts: NotifySendReceipt[];
|
|
306
|
+
/**
|
|
307
|
+
* True when the bounded correlation scan ended with grants still unmatched — the
|
|
308
|
+
* result is bounded, not authoritative-complete. Absent on servers that do not
|
|
309
|
+
* report it.
|
|
310
|
+
*/
|
|
311
|
+
truncated?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Continuation cursor for the correlation scan when it was truncated; null or
|
|
314
|
+
* absent when the scan completed.
|
|
315
|
+
*/
|
|
316
|
+
cursor?: string | null;
|
|
317
|
+
}
|
|
318
|
+
/** One notification topic. `required: true` is the compliance floor — unmutable by the recipient. */
|
|
319
|
+
export interface NotifyConfigCategory {
|
|
320
|
+
/** ≤60 chars. */
|
|
321
|
+
label?: string;
|
|
322
|
+
/** ≤200 chars. */
|
|
323
|
+
description?: string;
|
|
324
|
+
required?: boolean;
|
|
325
|
+
}
|
|
326
|
+
export interface NotifyConfigRealtimeFallbackDelay {
|
|
327
|
+
email_minutes?: number;
|
|
328
|
+
sms_minutes?: number;
|
|
329
|
+
voice_minutes?: number;
|
|
330
|
+
}
|
|
331
|
+
export interface NotifyConfigDelivery {
|
|
332
|
+
default_channels?: NotifyChannel[];
|
|
333
|
+
/** Per-category channel order, keyed by category. */
|
|
334
|
+
channel_priority?: Record<string, NotifyChannel[]>;
|
|
335
|
+
realtime_fallback_delay?: NotifyConfigRealtimeFallbackDelay;
|
|
336
|
+
escalation_enabled?: boolean;
|
|
337
|
+
}
|
|
338
|
+
export interface NotifyConfigReliability {
|
|
339
|
+
/**
|
|
340
|
+
* Per `(account, recipient)` minute bucket, 1-600. An abuse/bug backstop the
|
|
341
|
+
* tenant cannot switch off — 0 is rejected.
|
|
342
|
+
*/
|
|
343
|
+
rate_limit_per_recipient_per_minute?: number;
|
|
344
|
+
}
|
|
345
|
+
export interface NotifyConfigHistory {
|
|
346
|
+
history_ttl_days?: number;
|
|
347
|
+
receipt_retention_days?: number;
|
|
348
|
+
}
|
|
349
|
+
export interface NotifyConfigSecurity {
|
|
350
|
+
verification_level?: NotifyVerificationLevel;
|
|
351
|
+
/** 0 = off. */
|
|
352
|
+
reveal_freshness_minutes?: number;
|
|
353
|
+
/**
|
|
354
|
+
* Categories that must seal, ADDED to the hardcoded confidential baseline
|
|
355
|
+
* (`secure`/`conversation`/`approval`/`signature`). Expand-only: the baseline can
|
|
356
|
+
* never be removed here.
|
|
357
|
+
*/
|
|
358
|
+
mandatory_seal_categories?: string[];
|
|
359
|
+
}
|
|
360
|
+
/** The account's effective config: secure defaults deep-merged with its overrides. */
|
|
361
|
+
export interface NotifyConfig {
|
|
362
|
+
delivery: NotifyConfigDelivery;
|
|
363
|
+
reliability: NotifyConfigReliability;
|
|
364
|
+
history: NotifyConfigHistory;
|
|
365
|
+
security: NotifyConfigSecurity;
|
|
366
|
+
/** Tombstoned entries are already dropped — a deleted category is simply gone. */
|
|
367
|
+
categories: Record<string, NotifyConfigCategory>;
|
|
368
|
+
/** Owner-managed SSM references. Readable, never account-writable. */
|
|
369
|
+
channel_credentials: Record<string, unknown>;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* A partial PATCH of the account's config overrides. Only the sections present are
|
|
373
|
+
* touched, and every field is validated server-side before any write.
|
|
374
|
+
*
|
|
375
|
+
* `categories.<key>: null` is a DELETE TOMBSTONE — it is what keeps a seeded
|
|
376
|
+
* default (say `marketing`) from re-appearing on the next merge. Storing a normal
|
|
377
|
+
* object under the same key later re-creates it. The reserved `security` category
|
|
378
|
+
* can neither be removed nor made optional.
|
|
379
|
+
*/
|
|
380
|
+
export interface NotifyConfigPatch {
|
|
381
|
+
delivery?: NotifyConfigDelivery;
|
|
382
|
+
reliability?: NotifyConfigReliability;
|
|
383
|
+
history?: NotifyConfigHistory;
|
|
384
|
+
security?: NotifyConfigSecurity;
|
|
385
|
+
categories?: Record<string, NotifyConfigCategory | null>;
|
|
386
|
+
}
|
|
387
|
+
/** The stored override delta, verbatim — tombstones included, because that is what a write merges onto. */
|
|
388
|
+
export type NotifyConfigOverrides = NotifyConfigPatch;
|
|
389
|
+
export interface NotifyConfigResponse {
|
|
390
|
+
effective: NotifyConfig;
|
|
391
|
+
overrides: NotifyConfigOverrides;
|
|
392
|
+
}
|