@sparkvault/sdk-js 11.1.2 → 11.1.4

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
@@ -842,7 +842,9 @@ async function readApiFailure(response) {
842
842
  *
843
843
  * Core mints an id as its kind's prefix, an underscore and a body: the hex of a
844
844
  * UUIDv7 (apps/api lib/utils.js buildPrefixedIdFromBytes), or a hex digest for
845
- * an invitation and an inbox notification. The grammar admits the kind's
845
+ * an id derived from what it names (an invitation, an inbox notification, a
846
+ * Messaging or help-desk ingot, a help-desk event an inbound email records).
847
+ * The grammar admits the kind's
846
848
  * prefix, '_' and a body of the path-safe alphabet [A-Za-z0-9_-], 128
847
849
  * characters in all, so an id that passes is exactly one request-path segment
848
850
  * and one file-name component: it can never name a parent path, carry a
@@ -858,11 +860,19 @@ async function readApiFailure(response) {
858
860
  /** The prefix Core mints each resource kind's id with. */
859
861
  const RESOURCE_ID_PREFIXES = Object.freeze({
860
862
  account: 'acc',
863
+ attachment: 'hda',
861
864
  folder: 'fld',
865
+ helpDeskJob: 'hdj',
862
866
  ingot: 'ing',
863
867
  invite: 'inv',
864
868
  notification: 'ntf',
869
+ requester: 'hrq',
870
+ routingRule: 'hdr',
871
+ savedReply: 'hds',
865
872
  spark: 'spk',
873
+ team: 'team',
874
+ ticket: 'tkt',
875
+ ticketEvent: 'hdev',
866
876
  user: 'usr',
867
877
  vault: 'vlt'
868
878
  });
@@ -908,8 +918,11 @@ function isResourceId(value) {
908
918
  * SparkVault-owned domain registry.
909
919
  *
910
920
  * Keep platform domain decisions centralized: CSP, redirect safety, custom
911
- * domain reservation, and Identity postMessage trust all depend on the same
912
- * ownership boundary.
921
+ * domain reservation, and Identity postMessage trust all read this registry.
922
+ * Trust follows the hosts the platform owns (isSparkVaultOwnedHostname);
923
+ * reservation covers those and the help-desk domain's subtree
924
+ * (isSparkVaultReservedDomain), whose hosts are SparkVault's to hand out but
925
+ * never trusted.
913
926
  */
914
927
 
915
928
  const SPARKVAULT_ROOT_DOMAIN = 'sparkvault.com';
@@ -17294,7 +17307,7 @@ class SparkVault {
17294
17307
  }
17295
17308
  /** Get the SDK version */
17296
17309
  static get version() {
17297
- return '11.1.2';
17310
+ return '11.1.4';
17298
17311
  }
17299
17312
  }
17300
17313
  if (typeof window !== 'undefined') {