@sparkvault/sdk-js 9.0.1 → 9.1.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.cjs +20 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -8
- package/dist/index.mjs +20 -11
- package/dist/index.mjs.map +1 -1
- package/dist/notify/types.d.ts +4 -2
- package/dist/products/identity/index.d.ts +8 -6
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/notify/types.d.ts
CHANGED
|
@@ -27,8 +27,10 @@ export interface NotificationRow {
|
|
|
27
27
|
created_at: number;
|
|
28
28
|
title: string;
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
*
|
|
30
|
+
* The row's visible cleartext line, shown natively: a plaintext send's inline
|
|
31
|
+
* body, or a SEALED send's non-secret `instructions`. A sealed row can and
|
|
32
|
+
* normally should carry one — it is the readable line above the reveal. Never
|
|
33
|
+
* the sealed content itself. Absent when the sender set neither.
|
|
32
34
|
*/
|
|
33
35
|
body?: string;
|
|
34
36
|
category: string;
|
|
@@ -115,14 +115,16 @@ export declare class IdentityModule {
|
|
|
115
115
|
* Decode an identity token's claims WITHOUT verifying its signature.
|
|
116
116
|
*
|
|
117
117
|
* This is an UNVERIFIED, client-side decode: it parses the JWT payload and
|
|
118
|
-
* sanity-checks structure, `exp`, `iss`, `aud`, and the header `alg` (
|
|
119
|
-
*
|
|
120
|
-
* cannot masquerade as valid). It does NOT verify the
|
|
121
|
-
* result MUST NOT be trusted for any authorization decision.
|
|
118
|
+
* sanity-checks structure, `exp`, `iss`, `aud`, and the header `alg` (accepting
|
|
119
|
+
* only the algorithms the Identity server signs with, so an unsigned or
|
|
120
|
+
* algorithm-confused token cannot masquerade as valid). It does NOT verify the
|
|
121
|
+
* signature, so its result MUST NOT be trusted for any authorization decision.
|
|
122
122
|
*
|
|
123
123
|
* To trust a token (e.g. before keying records by `claims.svid`), verify the
|
|
124
|
-
*
|
|
125
|
-
* (`https://auth.sparkvault.com/{account_id}/.well-known/jwks.json`)
|
|
124
|
+
* signature server-side against the Identity JWKS endpoint
|
|
125
|
+
* (`https://auth.sparkvault.com/{account_id}/.well-known/jwks.json`), which
|
|
126
|
+
* publishes the EdDSA and RS256 keys and selects the verifying key by `kid`.
|
|
127
|
+
* See docs/SDK.md.
|
|
126
128
|
*/
|
|
127
129
|
decodeToken(token: string): TokenClaims;
|
|
128
130
|
/**
|