@oneaddress/partner-sdk 2.0.0 → 2.1.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 +139 -2
- package/README.md +250 -17
- package/dist/{chunk-DUVPNFU6.mjs → chunk-LIHXDUUA.mjs} +295 -7
- package/dist/{chunk-UPJU4HFR.mjs → chunk-P55E2BQT.mjs} +376 -29
- package/dist/edge.js +554 -19
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +357 -35
- package/dist/index.d.ts +357 -35
- package/dist/index.js +685 -33
- package/dist/index.mjs +6 -2
- package/dist/{src-UACTYQGX.mjs → src-ENJJ6YZU.mjs} +15 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,6 +2,8 @@ import {
|
|
|
2
2
|
CURRENT_VERSION,
|
|
3
3
|
OUTBOX_LEASE_COLUMNS,
|
|
4
4
|
SUPPORTED_VERSIONS,
|
|
5
|
+
_resetOnceWarningsForTests,
|
|
6
|
+
buildSignedTestWebhook,
|
|
5
7
|
canonicalD5LoaForm,
|
|
6
8
|
compareAddresses,
|
|
7
9
|
confirmUpdate,
|
|
@@ -29,18 +31,20 @@ import {
|
|
|
29
31
|
verifyLOA,
|
|
30
32
|
verifySignature,
|
|
31
33
|
verifyWithGrace
|
|
32
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-P55E2BQT.mjs";
|
|
33
35
|
import {
|
|
34
36
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
35
37
|
computeBlindIndex,
|
|
36
38
|
isFreshTimestamp,
|
|
37
39
|
normalizeForBlindIndex
|
|
38
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LIHXDUUA.mjs";
|
|
39
41
|
export {
|
|
40
42
|
CURRENT_VERSION,
|
|
41
43
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
42
44
|
OUTBOX_LEASE_COLUMNS,
|
|
43
45
|
SUPPORTED_VERSIONS,
|
|
46
|
+
_resetOnceWarningsForTests,
|
|
47
|
+
buildSignedTestWebhook,
|
|
44
48
|
canonicalD5LoaForm,
|
|
45
49
|
compareAddresses,
|
|
46
50
|
computeBlindIndex,
|
|
@@ -3,9 +3,11 @@ import {
|
|
|
3
3
|
ENDPOINT_FAILURE_THRESHOLD,
|
|
4
4
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
5
5
|
PARTNER_KEY_ATTESTATION_V1,
|
|
6
|
+
PARTNER_KEY_REFUSED_MESSAGE,
|
|
6
7
|
REGISTRY_HEAD_ALG,
|
|
7
8
|
REGISTRY_HEAD_V1,
|
|
8
9
|
REGISTRY_HEAD_V2,
|
|
10
|
+
SENDER_HELD_KEY_ALGORITHM,
|
|
9
11
|
buildPartnerKeyAttestation,
|
|
10
12
|
buildRegistryHeadStatement,
|
|
11
13
|
classifyEndpointProbe,
|
|
@@ -13,6 +15,8 @@ import {
|
|
|
13
15
|
computeBlindIndex,
|
|
14
16
|
computeCustomerBlindIndex,
|
|
15
17
|
countsAsFailure,
|
|
18
|
+
createPartnerKeyVerifier,
|
|
19
|
+
createSenderHeldKeyBinder,
|
|
16
20
|
decryptAddress,
|
|
17
21
|
decryptSession,
|
|
18
22
|
encryptAddressForAll,
|
|
@@ -30,8 +34,11 @@ import {
|
|
|
30
34
|
isFreshTimestamp,
|
|
31
35
|
isIpLiteralHost,
|
|
32
36
|
isSafeWebhookUrl,
|
|
37
|
+
keyIdForPublicKey,
|
|
38
|
+
memorySenderHeldKeyStore,
|
|
33
39
|
normaliseAddress,
|
|
34
40
|
normalizeForBlindIndex,
|
|
41
|
+
openSealedWithSenderHeldKey,
|
|
35
42
|
partnerKeyFingerprint,
|
|
36
43
|
rootKeyIdFromSpki,
|
|
37
44
|
rootKeyIdFromSpkiB64,
|
|
@@ -40,15 +47,17 @@ import {
|
|
|
40
47
|
verifyPartnerKeyAttestationWithRoots,
|
|
41
48
|
verifyRegistryHead,
|
|
42
49
|
verifyWebhookSignature
|
|
43
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LIHXDUUA.mjs";
|
|
44
51
|
export {
|
|
45
52
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
46
53
|
ENDPOINT_FAILURE_THRESHOLD,
|
|
47
54
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
48
55
|
PARTNER_KEY_ATTESTATION_V1,
|
|
56
|
+
PARTNER_KEY_REFUSED_MESSAGE,
|
|
49
57
|
REGISTRY_HEAD_ALG,
|
|
50
58
|
REGISTRY_HEAD_V1,
|
|
51
59
|
REGISTRY_HEAD_V2,
|
|
60
|
+
SENDER_HELD_KEY_ALGORITHM,
|
|
52
61
|
buildPartnerKeyAttestation,
|
|
53
62
|
buildRegistryHeadStatement,
|
|
54
63
|
classifyEndpointProbe,
|
|
@@ -56,6 +65,8 @@ export {
|
|
|
56
65
|
computeBlindIndex,
|
|
57
66
|
computeCustomerBlindIndex,
|
|
58
67
|
countsAsFailure,
|
|
68
|
+
createPartnerKeyVerifier,
|
|
69
|
+
createSenderHeldKeyBinder,
|
|
59
70
|
decryptAddress,
|
|
60
71
|
decryptSession,
|
|
61
72
|
encryptAddressForAll,
|
|
@@ -73,8 +84,11 @@ export {
|
|
|
73
84
|
isFreshTimestamp,
|
|
74
85
|
isIpLiteralHost,
|
|
75
86
|
isSafeWebhookUrl,
|
|
87
|
+
keyIdForPublicKey,
|
|
88
|
+
memorySenderHeldKeyStore,
|
|
76
89
|
normaliseAddress,
|
|
77
90
|
normalizeForBlindIndex,
|
|
91
|
+
openSealedWithSenderHeldKey,
|
|
78
92
|
partnerKeyFingerprint,
|
|
79
93
|
rootKeyIdFromSpki,
|
|
80
94
|
rootKeyIdFromSpkiB64,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Official OneAddress partner integration SDK — webhook verification, address decryption (legacy + D5 session-envelope), LOA validation",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|