@oneaddress/partner-sdk 2.6.0 → 2.7.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 +32 -0
- package/dist/{chunk-QAOGKPD3.mjs → chunk-CLV6TLSP.mjs} +1183 -112
- package/dist/{chunk-XPQERNNN.mjs → chunk-OKAJO4T6.mjs} +34 -5
- package/dist/edge.js +1248 -119
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +1267 -119
- package/dist/index.mjs +4 -2
- package/dist/{src-BPES2DKY.mjs → src-FPYBM6X6.mjs} +13 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
parsePinnedRegistryRoots,
|
|
25
25
|
readAddressParts,
|
|
26
26
|
sendVerifyResult,
|
|
27
|
+
signPullRequest,
|
|
27
28
|
toExpressHandler,
|
|
28
29
|
toOutboxTimestamp,
|
|
29
30
|
transformAddress,
|
|
@@ -33,13 +34,13 @@ import {
|
|
|
33
34
|
verifyLOA,
|
|
34
35
|
verifySignature,
|
|
35
36
|
verifyWithGrace
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-OKAJO4T6.mjs";
|
|
37
38
|
import {
|
|
38
39
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
39
40
|
computeBlindIndex,
|
|
40
41
|
isFreshTimestamp,
|
|
41
42
|
normalizeForBlindIndex
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-CLV6TLSP.mjs";
|
|
43
44
|
export {
|
|
44
45
|
CURRENT_VERSION,
|
|
45
46
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
@@ -71,6 +72,7 @@ export {
|
|
|
71
72
|
parsePinnedRegistryRoots,
|
|
72
73
|
readAddressParts,
|
|
73
74
|
sendVerifyResult,
|
|
75
|
+
signPullRequest,
|
|
74
76
|
toExpressHandler,
|
|
75
77
|
toOutboxTimestamp,
|
|
76
78
|
transformAddress as transform,
|
|
@@ -4,10 +4,12 @@ import {
|
|
|
4
4
|
ENDPOINT_PROBE_INTERVAL_MINUTES,
|
|
5
5
|
ENDPOINT_STALE_AFTER_MINUTES,
|
|
6
6
|
ENDPOINT_UNUSABLE_AFTER_MINUTES,
|
|
7
|
+
HARDENED_PREFIX,
|
|
7
8
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
8
9
|
PARTNER_KEY_ATTESTATION_V1,
|
|
9
10
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
10
11
|
PINNED_REGISTRY_ROOTS,
|
|
12
|
+
PIN_HARDENING_VERSION,
|
|
11
13
|
REGISTRY_HEAD_ALG,
|
|
12
14
|
REGISTRY_HEAD_V1,
|
|
13
15
|
REGISTRY_HEAD_V2,
|
|
@@ -31,13 +33,16 @@ import {
|
|
|
31
33
|
encryptPayloadForPartner,
|
|
32
34
|
encryptSessionForAll,
|
|
33
35
|
encryptSessionForPartner,
|
|
36
|
+
evaluateBlindedPin,
|
|
34
37
|
generateHybridPartnerKeyPair,
|
|
35
38
|
generatePartnerKeyPair,
|
|
39
|
+
hardenPin,
|
|
36
40
|
headNamesKey,
|
|
37
41
|
headNamesPartner,
|
|
38
42
|
headNamesStagedKey,
|
|
39
43
|
isEmailLike,
|
|
40
44
|
isFreshTimestamp,
|
|
45
|
+
isHardenedSecret,
|
|
41
46
|
isIpLiteralHost,
|
|
42
47
|
isSafeWebhookUrl,
|
|
43
48
|
keyIdForPublicKey,
|
|
@@ -45,6 +50,7 @@ import {
|
|
|
45
50
|
normaliseAddress,
|
|
46
51
|
normalizeForBlindIndex,
|
|
47
52
|
openSealedWithSenderHeldKey,
|
|
53
|
+
parseOprfSeed,
|
|
48
54
|
partnerKeyFingerprint,
|
|
49
55
|
pinnedRegistryRoots,
|
|
50
56
|
rootIsPinned,
|
|
@@ -57,17 +63,19 @@ import {
|
|
|
57
63
|
verifyPartnerKeyAttestationWithRoots,
|
|
58
64
|
verifyRegistryHead,
|
|
59
65
|
verifyWebhookSignature
|
|
60
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-CLV6TLSP.mjs";
|
|
61
67
|
export {
|
|
62
68
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
63
69
|
ENDPOINT_FAILURE_THRESHOLD,
|
|
64
70
|
ENDPOINT_PROBE_INTERVAL_MINUTES,
|
|
65
71
|
ENDPOINT_STALE_AFTER_MINUTES,
|
|
66
72
|
ENDPOINT_UNUSABLE_AFTER_MINUTES,
|
|
73
|
+
HARDENED_PREFIX,
|
|
67
74
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
68
75
|
PARTNER_KEY_ATTESTATION_V1,
|
|
69
76
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
70
77
|
PINNED_REGISTRY_ROOTS,
|
|
78
|
+
PIN_HARDENING_VERSION,
|
|
71
79
|
REGISTRY_HEAD_ALG,
|
|
72
80
|
REGISTRY_HEAD_V1,
|
|
73
81
|
REGISTRY_HEAD_V2,
|
|
@@ -91,13 +99,16 @@ export {
|
|
|
91
99
|
encryptPayloadForPartner,
|
|
92
100
|
encryptSessionForAll,
|
|
93
101
|
encryptSessionForPartner,
|
|
102
|
+
evaluateBlindedPin,
|
|
94
103
|
generateHybridPartnerKeyPair,
|
|
95
104
|
generatePartnerKeyPair,
|
|
105
|
+
hardenPin,
|
|
96
106
|
headNamesKey,
|
|
97
107
|
headNamesPartner,
|
|
98
108
|
headNamesStagedKey,
|
|
99
109
|
isEmailLike,
|
|
100
110
|
isFreshTimestamp,
|
|
111
|
+
isHardenedSecret,
|
|
101
112
|
isIpLiteralHost,
|
|
102
113
|
isSafeWebhookUrl,
|
|
103
114
|
keyIdForPublicKey,
|
|
@@ -105,6 +116,7 @@ export {
|
|
|
105
116
|
normaliseAddress,
|
|
106
117
|
normalizeForBlindIndex,
|
|
107
118
|
openSealedWithSenderHeldKey,
|
|
119
|
+
parseOprfSeed,
|
|
108
120
|
partnerKeyFingerprint,
|
|
109
121
|
pinnedRegistryRoots,
|
|
110
122
|
rootIsPinned,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.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",
|