@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.
package/dist/index.d.ts CHANGED
@@ -1249,6 +1249,11 @@ interface NotifyRecipientRef {
1249
1249
  type NotifyRecipient = string | NotifyRecipientRef;
1250
1250
  /** Content to seal into a fresh Spark, one per recipient. */
1251
1251
  interface NotifySendContent {
1252
+ /**
1253
+ * Sealed as written. A plaintext send's has its text-direction control
1254
+ * characters (U+202A to U+202E, U+2066 to U+2069) removed, so it shows in
1255
+ * the order it is written.
1256
+ */
1252
1257
  payload: string;
1253
1258
  /** Defaults to `text/plain`. A plaintext send accepts only `text/plain` or `text/html`. */
1254
1259
  contentType?: string;
@@ -1329,7 +1334,11 @@ interface CreateNotifySendOptions {
1329
1334
  * recipients and their handles, title, category, instructions, policy,
1330
1335
  * channels and escalation): one that differs in any of them is refused 400
1331
1336
  * (`serviceCode` `VALIDATION_ERROR`), and the stored send stands. `type` and
1332
- * `historyTtlDays` are not compared: the stored send keeps its own.
1337
+ * `historyTtlDays` are not compared: the stored send keeps its own. The send
1338
+ * stores the title, instructions and a plaintext payload without their
1339
+ * text-direction control characters (U+202A to U+202E, U+2066 to U+2069) and
1340
+ * compares a replay's the same way, so one that differs only by them is the
1341
+ * same send.
1333
1342
  */
1334
1343
  sendId?: string;
1335
1344
  /** 1-500 recipients. An ingot send accepts exactly one. */
@@ -1350,9 +1359,10 @@ interface CreateNotifySendOptions {
1350
1359
  channels?: Array<'in_app' | 'email' | 'push' | 'web_push'>;
1351
1360
  escalation?: NotifyEscalation;
1352
1361
  /**
1353
- * Channel-agnostic display title (rides the email subject). Cut to 200
1354
- * characters, never rejected for its length. A title that reads as SparkVault,
1355
- * or holds a text-direction control character, is refused 400 with
1362
+ * Channel-agnostic display title (rides the email subject). Its text-direction
1363
+ * control characters (U+202A to U+202E, U+2066 to U+2069) are removed, and it
1364
+ * is cut to 200 characters, never rejected for its length. A title that reads
1365
+ * as SparkVault is refused 400 with
1356
1366
  * `details: { field: 'title', reason: 'reserved_name' }`: the notification goes
1357
1367
  * out in your organization's name.
1358
1368
  */
@@ -1372,7 +1382,8 @@ interface CreateNotifySendOptions {
1372
1382
  */
1373
1383
  type?: string;
1374
1384
  /**
1375
- * NON-SECRET display text (≤500 chars) shown alongside a sealed send — e.g.
1385
+ * NON-SECRET display text (≤500 chars once its text-direction control
1386
+ * characters are removed) shown alongside a sealed send, such as
1376
1387
  * "verify with your passkey to open". It is never the sealed content.
1377
1388
  */
1378
1389
  instructions?: string;
package/dist/index.mjs CHANGED
@@ -16492,14 +16492,17 @@ const BRACKET_PAIRS =
16492
16492
  * right-to-left letter or mark, or an Arabic digit, between Latin words
16493
16493
  * reverses their order: "Vault", U+05BE HEBREW PUNCTUATION MAQAF, "Spark" is
16494
16494
  * laid out in a right-to-left paragraph as "Spark", the maqaf, "Vault".
16495
- * An explicit direction control (holdsDirectionControl) sets the direction of
16496
- * the text after it beyond what this lays out, so a caller that judges what a
16497
- * reader sees refuses it as well, as isReservedDisplayText, for any text an
16498
- * organization shows under its name, and isReservedOrganizationName do. Both
16499
- * also judge a text at every cut of it as stored, each cut read in this way,
16500
- * since the platform shows a text cut to fit.
16495
+ * An explicit direction control (holdsDirectionControl, ./display-text.js)
16496
+ * sets the direction of the text after it beyond what this lays out, so a
16497
+ * caller that judges what a reader sees refuses it as well, as
16498
+ * isReservedDisplayText, for any text an organization shows under its name,
16499
+ * and isReservedOrganizationName do. Both also judge a text at every cut of it
16500
+ * as stored, each cut read in this way, since the platform shows a text cut to
16501
+ * fit. The implicit marks are no such control: each is a strong character of
16502
+ * its direction, laid out as a letter of that direction is.
16501
16503
  *
16502
- * BROWSER-SAFE: imports only ./organization-name-unicode.js, and needs
16504
+ * BROWSER-SAFE: imports only ./display-text.js and
16505
+ * ./organization-name-unicode.js, neither of which imports anything, and needs
16503
16506
  * String.prototype.isWellFormed and toWellFormed (ES2024: Chrome 111,
16504
16507
  * Firefox 119, Safari 16.4).
16505
16508
  */
@@ -21464,7 +21467,7 @@ class SparkVault {
21464
21467
  }
21465
21468
  /** Get the SDK version */
21466
21469
  static get version() {
21467
- return '14.2.0';
21470
+ return '14.2.1';
21468
21471
  }
21469
21472
  }
21470
21473
  if (typeof window !== 'undefined') {