@sparkvault/sdk-js 14.2.0 → 14.2.1

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.
@@ -178,6 +178,11 @@ export interface NotifyRecipientRef {
178
178
  export type NotifyRecipient = string | NotifyRecipientRef;
179
179
  /** Content to seal into a fresh Spark, one per recipient. */
180
180
  export interface NotifySendContent {
181
+ /**
182
+ * Sealed as written. A plaintext send's has its text-direction control
183
+ * characters (U+202A to U+202E, U+2066 to U+2069) removed, so it shows in
184
+ * the order it is written.
185
+ */
181
186
  payload: string;
182
187
  /** Defaults to `text/plain`. A plaintext send accepts only `text/plain` or `text/html`. */
183
188
  contentType?: string;
@@ -258,7 +263,11 @@ export interface CreateNotifySendOptions {
258
263
  * recipients and their handles, title, category, instructions, policy,
259
264
  * channels and escalation): one that differs in any of them is refused 400
260
265
  * (`serviceCode` `VALIDATION_ERROR`), and the stored send stands. `type` and
261
- * `historyTtlDays` are not compared: the stored send keeps its own.
266
+ * `historyTtlDays` are not compared: the stored send keeps its own. The send
267
+ * stores the title, instructions and a plaintext payload without their
268
+ * text-direction control characters (U+202A to U+202E, U+2066 to U+2069) and
269
+ * compares a replay's the same way, so one that differs only by them is the
270
+ * same send.
262
271
  */
263
272
  sendId?: string;
264
273
  /** 1-500 recipients. An ingot send accepts exactly one. */
@@ -279,9 +288,10 @@ export interface CreateNotifySendOptions {
279
288
  channels?: Array<'in_app' | 'email' | 'push' | 'web_push'>;
280
289
  escalation?: NotifyEscalation;
281
290
  /**
282
- * Channel-agnostic display title (rides the email subject). Cut to 200
283
- * characters, never rejected for its length. A title that reads as SparkVault,
284
- * or holds a text-direction control character, is refused 400 with
291
+ * Channel-agnostic display title (rides the email subject). Its text-direction
292
+ * control characters (U+202A to U+202E, U+2066 to U+2069) are removed, and it
293
+ * is cut to 200 characters, never rejected for its length. A title that reads
294
+ * as SparkVault is refused 400 with
285
295
  * `details: { field: 'title', reason: 'reserved_name' }`: the notification goes
286
296
  * out in your organization's name.
287
297
  */
@@ -301,7 +311,8 @@ export interface CreateNotifySendOptions {
301
311
  */
302
312
  type?: string;
303
313
  /**
304
- * NON-SECRET display text (≤500 chars) shown alongside a sealed send — e.g.
314
+ * NON-SECRET display text (≤500 chars once its text-direction control
315
+ * characters are removed) shown alongside a sealed send, such as
305
316
  * "verify with your passkey to open". It is never the sealed content.
306
317
  */
307
318
  instructions?: string;