@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 +17 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +17 -4
- package/dist/index.mjs.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -838,7 +838,9 @@ async function readApiFailure(response) {
|
|
|
838
838
|
*
|
|
839
839
|
* Core mints an id as its kind's prefix, an underscore and a body: the hex of a
|
|
840
840
|
* UUIDv7 (apps/api lib/utils.js buildPrefixedIdFromBytes), or a hex digest for
|
|
841
|
-
* an
|
|
841
|
+
* an id derived from what it names (an invitation, an inbox notification, a
|
|
842
|
+
* Messaging or help-desk ingot, a help-desk event an inbound email records).
|
|
843
|
+
* The grammar admits the kind's
|
|
842
844
|
* prefix, '_' and a body of the path-safe alphabet [A-Za-z0-9_-], 128
|
|
843
845
|
* characters in all, so an id that passes is exactly one request-path segment
|
|
844
846
|
* and one file-name component: it can never name a parent path, carry a
|
|
@@ -854,11 +856,19 @@ async function readApiFailure(response) {
|
|
|
854
856
|
/** The prefix Core mints each resource kind's id with. */
|
|
855
857
|
const RESOURCE_ID_PREFIXES = Object.freeze({
|
|
856
858
|
account: 'acc',
|
|
859
|
+
attachment: 'hda',
|
|
857
860
|
folder: 'fld',
|
|
861
|
+
helpDeskJob: 'hdj',
|
|
858
862
|
ingot: 'ing',
|
|
859
863
|
invite: 'inv',
|
|
860
864
|
notification: 'ntf',
|
|
865
|
+
requester: 'hrq',
|
|
866
|
+
routingRule: 'hdr',
|
|
867
|
+
savedReply: 'hds',
|
|
861
868
|
spark: 'spk',
|
|
869
|
+
team: 'team',
|
|
870
|
+
ticket: 'tkt',
|
|
871
|
+
ticketEvent: 'hdev',
|
|
862
872
|
user: 'usr',
|
|
863
873
|
vault: 'vlt'
|
|
864
874
|
});
|
|
@@ -904,8 +914,11 @@ function isResourceId(value) {
|
|
|
904
914
|
* SparkVault-owned domain registry.
|
|
905
915
|
*
|
|
906
916
|
* Keep platform domain decisions centralized: CSP, redirect safety, custom
|
|
907
|
-
* domain reservation, and Identity postMessage trust all
|
|
908
|
-
*
|
|
917
|
+
* domain reservation, and Identity postMessage trust all read this registry.
|
|
918
|
+
* Trust follows the hosts the platform owns (isSparkVaultOwnedHostname);
|
|
919
|
+
* reservation covers those and the help-desk domain's subtree
|
|
920
|
+
* (isSparkVaultReservedDomain), whose hosts are SparkVault's to hand out but
|
|
921
|
+
* never trusted.
|
|
909
922
|
*/
|
|
910
923
|
|
|
911
924
|
const SPARKVAULT_ROOT_DOMAIN = 'sparkvault.com';
|
|
@@ -17290,7 +17303,7 @@ class SparkVault {
|
|
|
17290
17303
|
}
|
|
17291
17304
|
/** Get the SDK version */
|
|
17292
17305
|
static get version() {
|
|
17293
|
-
return '11.1.
|
|
17306
|
+
return '11.1.4';
|
|
17294
17307
|
}
|
|
17295
17308
|
}
|
|
17296
17309
|
if (typeof window !== 'undefined') {
|