@oneaddress/partner-sdk 2.4.1 → 2.5.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/CHANGELOG.md +52 -0
- package/dist/{chunk-4WYW6BM3.mjs → chunk-DIUGEFIK.mjs} +41 -3
- package/dist/{chunk-FDMB4BNC.mjs → chunk-ZY2K54LD.mjs} +1030 -1187
- package/dist/edge.js +1079 -1223
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.js +1079 -1223
- package/dist/index.mjs +2 -2
- package/dist/{src-SNMMZ4BT.mjs → src-RBLFVBGY.mjs} +7 -1
- package/package.json +4 -3
package/dist/edge.mjs
CHANGED
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
verifyLOA,
|
|
21
21
|
verifySignature,
|
|
22
22
|
verifyWithGrace
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DIUGEFIK.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
26
26
|
computeBlindIndex,
|
|
27
27
|
isFreshTimestamp,
|
|
28
28
|
normalizeForBlindIndex
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZY2K54LD.mjs";
|
|
30
30
|
export {
|
|
31
31
|
CURRENT_VERSION,
|
|
32
32
|
DEFAULT_REPLAY_WINDOW_SECS,
|
package/dist/index.d.mts
CHANGED
|
@@ -1330,15 +1330,16 @@ interface SessionData {
|
|
|
1330
1330
|
*
|
|
1331
1331
|
* **Important — `key_id` routing.** Under D5 you may hold multiple
|
|
1332
1332
|
* private keys at once: one active (for new dispatches) plus zero-or-more
|
|
1333
|
-
* retired keys still within
|
|
1333
|
+
* retired keys still within the retention window you configured in the
|
|
1334
|
+
* partner portal (minimum 14 days). Look up the
|
|
1334
1335
|
* private key by `share.key_id` from your local key store before calling
|
|
1335
1336
|
* this function. The function does NOT pick a key for you.
|
|
1336
1337
|
*
|
|
1337
1338
|
* **Destroyed retired keys.** If you destroyed the private key for
|
|
1338
1339
|
* `share.key_id` before its `destroy_after`, you cannot decrypt this
|
|
1339
|
-
* envelope
|
|
1340
|
-
*
|
|
1341
|
-
*
|
|
1340
|
+
* envelope and neither can we: we hold no copy of your private key.
|
|
1341
|
+
* Destroying a retired key before your configured retention window closes
|
|
1342
|
+
* is a key-custody breach under the partner terms.
|
|
1342
1343
|
*
|
|
1343
1344
|
* @param share - The structured `session_key_share` block from the webhook.
|
|
1344
1345
|
* @param envelopeB64 - The `session_envelope` base64url string from the webhook.
|
|
@@ -1600,7 +1601,7 @@ declare function fetchLoaPublicKey(appBaseUrl?: string): Promise<string>;
|
|
|
1600
1601
|
* async onUpdate(event) {
|
|
1601
1602
|
* if (event.loa) {
|
|
1602
1603
|
* const valid = await verifyLOA(event.loa, loaPublicKey);
|
|
1603
|
-
* if (!valid) throw new Error('LOA signature invalid
|
|
1604
|
+
* if (!valid) throw new Error('LOA signature invalid, possible tampering');
|
|
1604
1605
|
* }
|
|
1605
1606
|
* await db.updateAddress(event.address);
|
|
1606
1607
|
* },
|
package/dist/index.d.ts
CHANGED
|
@@ -1330,15 +1330,16 @@ interface SessionData {
|
|
|
1330
1330
|
*
|
|
1331
1331
|
* **Important — `key_id` routing.** Under D5 you may hold multiple
|
|
1332
1332
|
* private keys at once: one active (for new dispatches) plus zero-or-more
|
|
1333
|
-
* retired keys still within
|
|
1333
|
+
* retired keys still within the retention window you configured in the
|
|
1334
|
+
* partner portal (minimum 14 days). Look up the
|
|
1334
1335
|
* private key by `share.key_id` from your local key store before calling
|
|
1335
1336
|
* this function. The function does NOT pick a key for you.
|
|
1336
1337
|
*
|
|
1337
1338
|
* **Destroyed retired keys.** If you destroyed the private key for
|
|
1338
1339
|
* `share.key_id` before its `destroy_after`, you cannot decrypt this
|
|
1339
|
-
* envelope
|
|
1340
|
-
*
|
|
1341
|
-
*
|
|
1340
|
+
* envelope and neither can we: we hold no copy of your private key.
|
|
1341
|
+
* Destroying a retired key before your configured retention window closes
|
|
1342
|
+
* is a key-custody breach under the partner terms.
|
|
1342
1343
|
*
|
|
1343
1344
|
* @param share - The structured `session_key_share` block from the webhook.
|
|
1344
1345
|
* @param envelopeB64 - The `session_envelope` base64url string from the webhook.
|
|
@@ -1600,7 +1601,7 @@ declare function fetchLoaPublicKey(appBaseUrl?: string): Promise<string>;
|
|
|
1600
1601
|
* async onUpdate(event) {
|
|
1601
1602
|
* if (event.loa) {
|
|
1602
1603
|
* const valid = await verifyLOA(event.loa, loaPublicKey);
|
|
1603
|
-
* if (!valid) throw new Error('LOA signature invalid
|
|
1604
|
+
* if (!valid) throw new Error('LOA signature invalid, possible tampering');
|
|
1604
1605
|
* }
|
|
1605
1606
|
* await db.updateAddress(event.address);
|
|
1606
1607
|
* },
|