@sparkvault/sdk-js 15.16.1 → 15.17.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.cjs CHANGED
@@ -11504,6 +11504,19 @@ const NOTIFY_SEND_ID_MAX_LENGTH = 128;
11504
11504
  */
11505
11505
  const NOTIFY_DESTINATION_KINDS = Object.freeze(['webhook', 'slack', 'teams']);
11506
11506
 
11507
+ /**
11508
+ * Why a destination's post FAILED: the `reason` a send status reports beside
11509
+ * that state.
11510
+ *
11511
+ * - POSSIBLY_DELIVERED: the post was sent and its answer was lost, so it may
11512
+ * have landed; it is never tried again, since that could post it twice.
11513
+ * - ATTEMPTS_EXHAUSTED: every attempt met a fault that may clear, and none was left.
11514
+ */
11515
+ const NOTIFY_DESTINATION_FAILURE_REASON = Object.freeze({
11516
+ POSSIBLY_DELIVERED: 'possibly_delivered',
11517
+ ATTEMPTS_EXHAUSTED: 'attempts_exhausted'
11518
+ });
11519
+
11507
11520
  /**
11508
11521
  * The Notify category a help desk's alerts to its own staff are classified
11509
11522
  * as: a new request in a team's queue, a customer's message, an assignment, a
@@ -11528,6 +11541,30 @@ const NOTIFY_INBOX_MARK_STATES = Object.freeze(['seen', 'read', 'archived']);
11528
11541
  */
11529
11542
  const NOTIFY_INBOX_BULK_MARK_STATES = Object.freeze(['seen', 'read']);
11530
11543
 
11544
+ /**
11545
+ * Why a channel step ended without reaching the person, beside its outcome:
11546
+ * the `reason` a send status reports on a `skipped` or `failed` entry of a
11547
+ * recipient's `channel_outcomes`. A closed set: every other skip or failure
11548
+ * reports no reason, but for a text or call passed over for the wait it would
11549
+ * have had (`skipped`, with its NOTIFY_PHONE_DEFERRAL_REASON).
11550
+ *
11551
+ * - PHONE_OPTED_OUT (`skipped`): the phone is on the opt-out list of
11552
+ * SparkVault's notification number, which every organization's texts and
11553
+ * calls go out from: its holder texted STOP to it. Nothing went out, the
11554
+ * recipient's other text or call steps on that phone are skipped the same
11555
+ * way, and their ladder carries on to its other channels: the list is the
11556
+ * number's, shared by every organization, so it is never read as an
11557
+ * unsubscribe from this one. Texting START or UNSTOP to the number takes the
11558
+ * phone off it.
11559
+ * - POSSIBLY_DELIVERED (`failed`): a text, call or email was handed on and
11560
+ * its answer was lost, so it may have reached the person. It is never sent
11561
+ * again, and a send to that recipient again could reach them twice.
11562
+ */
11563
+ Object.freeze({
11564
+ PHONE_OPTED_OUT: 'phone_opted_out',
11565
+ POSSIBLY_DELIVERED: NOTIFY_DESTINATION_FAILURE_REASON.POSSIBLY_DELIVERED
11566
+ });
11567
+
11531
11568
  /**
11532
11569
  * The five secure-by-default preset bundles, in the send API's vocabulary.
11533
11570
  *
@@ -27105,7 +27142,7 @@ class SparkVault {
27105
27142
  }
27106
27143
  /** Get the SDK version */
27107
27144
  static get version() {
27108
- return '15.16.1';
27145
+ return '15.17.0';
27109
27146
  }
27110
27147
  }
27111
27148
  if (typeof window !== 'undefined') {