@sparkvault/sdk-js 13.0.9 → 13.0.11
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 +20 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +40 -2
- package/dist/index.mjs +20 -10
- package/dist/index.mjs.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/index.d.ts +5 -3
- package/dist/vaults/types.d.ts +51 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3952,8 +3952,8 @@ const TERMS_URL = 'https://sparkvault.com/terms/';
|
|
|
3952
3952
|
* the number, so the words fit a number typed and a number handed over alike.
|
|
3953
3953
|
* It agrees with the terms' SMS and voice disclosures (apps/www/terms.md 15.2,
|
|
3954
3954
|
* held to them by apps/www/tests/consent-lines.test.mjs): STOP opts the number
|
|
3955
|
-
* out, HELP answers, rates may apply, and where texts and calls go
|
|
3956
|
-
*
|
|
3955
|
+
* out, HELP answers, rates may apply, and where texts and calls go and how to
|
|
3956
|
+
* opt back in (START or UNSTOP) are the terms' to say.
|
|
3957
3957
|
*/
|
|
3958
3958
|
const SMS_CONSENT = Object.freeze({
|
|
3959
3959
|
beforeTerms: 'By providing a phone number, you agree to receive verification codes and account messages from SparkVault by text or automated call, as its ',
|
|
@@ -15940,6 +15940,8 @@ class VaultsModule {
|
|
|
15940
15940
|
/**
|
|
15941
15941
|
* Schedule permanent deletion in seven days and immediately lock all vault access.
|
|
15942
15942
|
* Company admins only; cancelDeletion can abort this schedule before its deadline.
|
|
15943
|
+
* A vault whose irreversible cleanup has already started answers that cleanup
|
|
15944
|
+
* (`status: 'deleting'`) instead, which nothing can cancel.
|
|
15943
15945
|
*
|
|
15944
15946
|
* Requires the vault's exact name as confirmation, matched case-sensitively.
|
|
15945
15947
|
* The name is sent base64(UTF-8) as the `X-Confirm-Name-B64` header so a vault
|
|
@@ -15960,14 +15962,18 @@ class VaultsModule {
|
|
|
15960
15962
|
'X-Vault-Deletion-Mode': 'schedule',
|
|
15961
15963
|
},
|
|
15962
15964
|
});
|
|
15963
|
-
const
|
|
15965
|
+
const answer = response.data;
|
|
15966
|
+
if (answer.status === 'deleting') {
|
|
15967
|
+
return { id: answer.vault_id, status: answer.status, startedAt: answer.started_at };
|
|
15968
|
+
}
|
|
15964
15969
|
return {
|
|
15965
|
-
id:
|
|
15966
|
-
status:
|
|
15967
|
-
deletionRequestedAt:
|
|
15968
|
-
deletionScheduledFor:
|
|
15969
|
-
deletionRequestedBy:
|
|
15970
|
-
deletionScheduleId:
|
|
15970
|
+
id: answer.vault_id,
|
|
15971
|
+
status: answer.status,
|
|
15972
|
+
deletionRequestedAt: answer.deletion_requested_at,
|
|
15973
|
+
deletionScheduledFor: answer.deletion_scheduled_for,
|
|
15974
|
+
deletionRequestedBy: answer.deletion_requested_by,
|
|
15975
|
+
deletionScheduleId: answer.deletion_schedule_id,
|
|
15976
|
+
deletionNoticeUnreached: answer.deletion_notice_unreached && answer.deletion_notice_unreached.map(mapUnreachedAdmin),
|
|
15971
15977
|
};
|
|
15972
15978
|
}
|
|
15973
15979
|
/** Cancel this exact deletion schedule before its deadline; company admins only. */
|
|
@@ -16173,8 +16179,12 @@ function mapVaultDetail(v) {
|
|
|
16173
16179
|
createdAt: v.created_at,
|
|
16174
16180
|
lastUnsealedAt: v.last_unsealed_at ?? null,
|
|
16175
16181
|
unsealCount: v.unseal_count ?? 0,
|
|
16182
|
+
deletionNoticeUnreached: v.deletion_notice_unreached && v.deletion_notice_unreached.map(mapUnreachedAdmin),
|
|
16176
16183
|
};
|
|
16177
16184
|
}
|
|
16185
|
+
function mapUnreachedAdmin(wire) {
|
|
16186
|
+
return { userId: wire.user_id, name: wire.name, email: wire.email, reason: wire.reason };
|
|
16187
|
+
}
|
|
16178
16188
|
function mapSharingConfig$1(wire) {
|
|
16179
16189
|
return {
|
|
16180
16190
|
vaultId: wire.vault_id,
|
|
@@ -18438,7 +18448,7 @@ class SparkVault {
|
|
|
18438
18448
|
}
|
|
18439
18449
|
/** Get the SDK version */
|
|
18440
18450
|
static get version() {
|
|
18441
|
-
return '13.0.
|
|
18451
|
+
return '13.0.11';
|
|
18442
18452
|
}
|
|
18443
18453
|
}
|
|
18444
18454
|
if (typeof window !== 'undefined') {
|