@oneaddress/partner-sdk 2.4.1 → 2.6.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 +80 -0
- package/README.md +39 -0
- package/dist/{chunk-FDMB4BNC.mjs → chunk-QAOGKPD3.mjs} +1105 -1204
- package/dist/{chunk-4WYW6BM3.mjs → chunk-XPQERNNN.mjs} +300 -31
- package/dist/edge.js +1225 -1291
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +198 -6
- package/dist/index.d.ts +198 -6
- package/dist/index.js +1455 -1300
- package/dist/index.mjs +6 -2
- package/dist/{src-SNMMZ4BT.mjs → src-BPES2DKY.mjs} +19 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
_resetOnceWarningsForTests,
|
|
6
6
|
buildSignedTestWebhook,
|
|
7
7
|
canonicalD5LoaForm,
|
|
8
|
+
checkRegistryHead,
|
|
8
9
|
compareAddresses,
|
|
9
10
|
confirmUpdate,
|
|
10
11
|
createOneAddressHandler,
|
|
@@ -20,6 +21,7 @@ import {
|
|
|
20
21
|
fromOutboxTimestamp,
|
|
21
22
|
isEmailLike,
|
|
22
23
|
namePoolMatches,
|
|
24
|
+
parsePinnedRegistryRoots,
|
|
23
25
|
readAddressParts,
|
|
24
26
|
sendVerifyResult,
|
|
25
27
|
toExpressHandler,
|
|
@@ -31,13 +33,13 @@ import {
|
|
|
31
33
|
verifyLOA,
|
|
32
34
|
verifySignature,
|
|
33
35
|
verifyWithGrace
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-XPQERNNN.mjs";
|
|
35
37
|
import {
|
|
36
38
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
37
39
|
computeBlindIndex,
|
|
38
40
|
isFreshTimestamp,
|
|
39
41
|
normalizeForBlindIndex
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QAOGKPD3.mjs";
|
|
41
43
|
export {
|
|
42
44
|
CURRENT_VERSION,
|
|
43
45
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
@@ -46,6 +48,7 @@ export {
|
|
|
46
48
|
_resetOnceWarningsForTests,
|
|
47
49
|
buildSignedTestWebhook,
|
|
48
50
|
canonicalD5LoaForm,
|
|
51
|
+
checkRegistryHead,
|
|
49
52
|
compareAddresses,
|
|
50
53
|
computeBlindIndex,
|
|
51
54
|
confirmUpdate,
|
|
@@ -65,6 +68,7 @@ export {
|
|
|
65
68
|
isFreshTimestamp,
|
|
66
69
|
namePoolMatches,
|
|
67
70
|
normalizeForBlindIndex,
|
|
71
|
+
parsePinnedRegistryRoots,
|
|
68
72
|
readAddressParts,
|
|
69
73
|
sendVerifyResult,
|
|
70
74
|
toExpressHandler,
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
3
3
|
ENDPOINT_FAILURE_THRESHOLD,
|
|
4
|
+
ENDPOINT_PROBE_INTERVAL_MINUTES,
|
|
5
|
+
ENDPOINT_STALE_AFTER_MINUTES,
|
|
6
|
+
ENDPOINT_UNUSABLE_AFTER_MINUTES,
|
|
4
7
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
5
8
|
PARTNER_KEY_ATTESTATION_V1,
|
|
6
9
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
10
|
+
PINNED_REGISTRY_ROOTS,
|
|
7
11
|
REGISTRY_HEAD_ALG,
|
|
8
12
|
REGISTRY_HEAD_V1,
|
|
9
13
|
REGISTRY_HEAD_V2,
|
|
10
14
|
SENDER_HELD_KEY_ALGORITHM,
|
|
15
|
+
__setPinnedRegistryRootsForTests,
|
|
11
16
|
blockedPublicKeyReason,
|
|
12
17
|
buildPartnerKeyAttestation,
|
|
13
18
|
buildRegistryHeadStatement,
|
|
@@ -41,24 +46,33 @@ import {
|
|
|
41
46
|
normalizeForBlindIndex,
|
|
42
47
|
openSealedWithSenderHeldKey,
|
|
43
48
|
partnerKeyFingerprint,
|
|
49
|
+
pinnedRegistryRoots,
|
|
50
|
+
rootIsPinned,
|
|
44
51
|
rootKeyIdFromSpki,
|
|
45
52
|
rootKeyIdFromSpkiB64,
|
|
46
53
|
signWebhookPayload,
|
|
54
|
+
spkiSha256HexFromB64,
|
|
55
|
+
unpinnedRootIds,
|
|
47
56
|
verifyPartnerKeyAttestation,
|
|
48
57
|
verifyPartnerKeyAttestationWithRoots,
|
|
49
58
|
verifyRegistryHead,
|
|
50
59
|
verifyWebhookSignature
|
|
51
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-QAOGKPD3.mjs";
|
|
52
61
|
export {
|
|
53
62
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
54
63
|
ENDPOINT_FAILURE_THRESHOLD,
|
|
64
|
+
ENDPOINT_PROBE_INTERVAL_MINUTES,
|
|
65
|
+
ENDPOINT_STALE_AFTER_MINUTES,
|
|
66
|
+
ENDPOINT_UNUSABLE_AFTER_MINUTES,
|
|
55
67
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
56
68
|
PARTNER_KEY_ATTESTATION_V1,
|
|
57
69
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
70
|
+
PINNED_REGISTRY_ROOTS,
|
|
58
71
|
REGISTRY_HEAD_ALG,
|
|
59
72
|
REGISTRY_HEAD_V1,
|
|
60
73
|
REGISTRY_HEAD_V2,
|
|
61
74
|
SENDER_HELD_KEY_ALGORITHM,
|
|
75
|
+
__setPinnedRegistryRootsForTests,
|
|
62
76
|
blockedPublicKeyReason,
|
|
63
77
|
buildPartnerKeyAttestation,
|
|
64
78
|
buildRegistryHeadStatement,
|
|
@@ -92,9 +106,13 @@ export {
|
|
|
92
106
|
normalizeForBlindIndex,
|
|
93
107
|
openSealedWithSenderHeldKey,
|
|
94
108
|
partnerKeyFingerprint,
|
|
109
|
+
pinnedRegistryRoots,
|
|
110
|
+
rootIsPinned,
|
|
95
111
|
rootKeyIdFromSpki,
|
|
96
112
|
rootKeyIdFromSpkiB64,
|
|
97
113
|
signWebhookPayload,
|
|
114
|
+
spkiSha256HexFromB64,
|
|
115
|
+
unpinnedRootIds,
|
|
98
116
|
verifyPartnerKeyAttestation,
|
|
99
117
|
verifyPartnerKeyAttestationWithRoots,
|
|
100
118
|
verifyRegistryHead,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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,8 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
|
-
"LICENSE",
|
|
31
|
+
"LICENSE",
|
|
32
|
+
"dist",
|
|
32
33
|
"README.md",
|
|
33
34
|
"CHANGELOG.md"
|
|
34
35
|
],
|
|
@@ -60,6 +61,6 @@
|
|
|
60
61
|
"@oneaddress/protocol": "^0.1.0",
|
|
61
62
|
"tsup": "^8.0.0",
|
|
62
63
|
"typescript": "^5.0.0",
|
|
63
|
-
"vitest": "^4.1.
|
|
64
|
+
"vitest": "^4.1.11"
|
|
64
65
|
}
|
|
65
66
|
}
|