@oneaddress/partner-sdk 1.8.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 +191 -2
- package/LICENSE +201 -0
- package/README.md +349 -18
- package/dist/{chunk-O2D5XGSN.mjs → chunk-LIHXDUUA.mjs} +441 -14
- package/dist/{chunk-PUB6ZVJ2.mjs → chunk-P55E2BQT.mjs} +503 -64
- package/dist/edge.d.mts +1 -1
- package/dist/edge.d.ts +1 -1
- package/dist/edge.js +835 -62
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +487 -41
- package/dist/index.d.ts +487 -41
- package/dist/index.js +966 -76
- package/dist/index.mjs +6 -2
- package/dist/{src-UOJOUUGB.mjs → src-ENJJ6YZU.mjs} +29 -1
- package/package.json +3 -3
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,
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
3
|
+
ENDPOINT_FAILURE_THRESHOLD,
|
|
3
4
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
4
5
|
PARTNER_KEY_ATTESTATION_V1,
|
|
6
|
+
PARTNER_KEY_REFUSED_MESSAGE,
|
|
5
7
|
REGISTRY_HEAD_ALG,
|
|
6
8
|
REGISTRY_HEAD_V1,
|
|
9
|
+
REGISTRY_HEAD_V2,
|
|
10
|
+
SENDER_HELD_KEY_ALGORITHM,
|
|
7
11
|
buildPartnerKeyAttestation,
|
|
8
12
|
buildRegistryHeadStatement,
|
|
13
|
+
classifyEndpointProbe,
|
|
9
14
|
cleanNameAliases,
|
|
10
15
|
computeBlindIndex,
|
|
11
16
|
computeCustomerBlindIndex,
|
|
17
|
+
countsAsFailure,
|
|
18
|
+
createPartnerKeyVerifier,
|
|
19
|
+
createSenderHeldKeyBinder,
|
|
12
20
|
decryptAddress,
|
|
13
21
|
decryptSession,
|
|
14
22
|
encryptAddressForAll,
|
|
@@ -20,12 +28,18 @@ import {
|
|
|
20
28
|
generateHybridPartnerKeyPair,
|
|
21
29
|
generatePartnerKeyPair,
|
|
22
30
|
headNamesKey,
|
|
31
|
+
headNamesPartner,
|
|
32
|
+
headNamesStagedKey,
|
|
23
33
|
isEmailLike,
|
|
24
34
|
isFreshTimestamp,
|
|
25
35
|
isIpLiteralHost,
|
|
26
36
|
isSafeWebhookUrl,
|
|
37
|
+
keyIdForPublicKey,
|
|
38
|
+
memorySenderHeldKeyStore,
|
|
27
39
|
normaliseAddress,
|
|
28
40
|
normalizeForBlindIndex,
|
|
41
|
+
openSealedWithSenderHeldKey,
|
|
42
|
+
partnerKeyFingerprint,
|
|
29
43
|
rootKeyIdFromSpki,
|
|
30
44
|
rootKeyIdFromSpkiB64,
|
|
31
45
|
signWebhookPayload,
|
|
@@ -33,18 +47,26 @@ import {
|
|
|
33
47
|
verifyPartnerKeyAttestationWithRoots,
|
|
34
48
|
verifyRegistryHead,
|
|
35
49
|
verifyWebhookSignature
|
|
36
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-LIHXDUUA.mjs";
|
|
37
51
|
export {
|
|
38
52
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
53
|
+
ENDPOINT_FAILURE_THRESHOLD,
|
|
39
54
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
40
55
|
PARTNER_KEY_ATTESTATION_V1,
|
|
56
|
+
PARTNER_KEY_REFUSED_MESSAGE,
|
|
41
57
|
REGISTRY_HEAD_ALG,
|
|
42
58
|
REGISTRY_HEAD_V1,
|
|
59
|
+
REGISTRY_HEAD_V2,
|
|
60
|
+
SENDER_HELD_KEY_ALGORITHM,
|
|
43
61
|
buildPartnerKeyAttestation,
|
|
44
62
|
buildRegistryHeadStatement,
|
|
63
|
+
classifyEndpointProbe,
|
|
45
64
|
cleanNameAliases,
|
|
46
65
|
computeBlindIndex,
|
|
47
66
|
computeCustomerBlindIndex,
|
|
67
|
+
countsAsFailure,
|
|
68
|
+
createPartnerKeyVerifier,
|
|
69
|
+
createSenderHeldKeyBinder,
|
|
48
70
|
decryptAddress,
|
|
49
71
|
decryptSession,
|
|
50
72
|
encryptAddressForAll,
|
|
@@ -56,12 +78,18 @@ export {
|
|
|
56
78
|
generateHybridPartnerKeyPair,
|
|
57
79
|
generatePartnerKeyPair,
|
|
58
80
|
headNamesKey,
|
|
81
|
+
headNamesPartner,
|
|
82
|
+
headNamesStagedKey,
|
|
59
83
|
isEmailLike,
|
|
60
84
|
isFreshTimestamp,
|
|
61
85
|
isIpLiteralHost,
|
|
62
86
|
isSafeWebhookUrl,
|
|
87
|
+
keyIdForPublicKey,
|
|
88
|
+
memorySenderHeldKeyStore,
|
|
63
89
|
normaliseAddress,
|
|
64
90
|
normalizeForBlindIndex,
|
|
91
|
+
openSealedWithSenderHeldKey,
|
|
92
|
+
partnerKeyFingerprint,
|
|
65
93
|
rootKeyIdFromSpki,
|
|
66
94
|
rootKeyIdFromSpkiB64,
|
|
67
95
|
signWebhookPayload,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "1.
|
|
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",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
|
-
"dist",
|
|
31
|
+
"LICENSE", "dist",
|
|
32
32
|
"README.md",
|
|
33
33
|
"CHANGELOG.md"
|
|
34
34
|
],
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"webhook",
|
|
51
51
|
"sdk"
|
|
52
52
|
],
|
|
53
|
-
"license": "
|
|
53
|
+
"license": "Apache-2.0",
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=18"
|
|
56
56
|
},
|