@oneaddress/partner-sdk 2.9.0 → 2.11.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 +64 -1
- package/README.md +45 -9
- package/dist/{chunk-PP2TM7HN.mjs → chunk-RU6G6PIM.mjs} +164 -27
- package/dist/{chunk-OKPEOGR5.mjs → chunk-WHVGOWN6.mjs} +208 -14
- package/dist/edge.d.mts +1 -1
- package/dist/edge.d.ts +1 -1
- package/dist/edge.js +285 -40
- package/dist/edge.mjs +12 -2
- package/dist/index.d.mts +215 -15
- package/dist/index.d.ts +215 -15
- package/dist/index.js +393 -40
- package/dist/index.mjs +34 -2
- package/dist/{src-P3LR7F4A.mjs → src-4WJQTYDA.mjs} +13 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,11 @@ import {
|
|
|
11
11
|
LoaV2RefusedError,
|
|
12
12
|
MAX_ADDRESS_FIELD_CHARS,
|
|
13
13
|
OUTBOX_LEASE_COLUMNS,
|
|
14
|
+
PRODUCT_CODE_PATTERN,
|
|
15
|
+
SDK_VERSION,
|
|
14
16
|
SUPPORTED_VERSIONS,
|
|
17
|
+
UPDATE_GUIDE_URL,
|
|
18
|
+
VERIFICATION_COMMITMENT_VERSION,
|
|
15
19
|
_resetLoaKeyCacheForTests,
|
|
16
20
|
_resetOnceWarningsForTests,
|
|
17
21
|
acceptTypedAliases,
|
|
@@ -20,9 +24,11 @@ import {
|
|
|
20
24
|
cachedLoaPublicKey,
|
|
21
25
|
canonicalD5LoaForm,
|
|
22
26
|
canonicalD5LoaFormV2,
|
|
27
|
+
checkForUpdate,
|
|
23
28
|
checkLoaV2,
|
|
24
29
|
checkRegistryHead,
|
|
25
30
|
compareAddresses,
|
|
31
|
+
computeVerificationCommitment,
|
|
26
32
|
confirmUpdate,
|
|
27
33
|
createOneAddressHandler,
|
|
28
34
|
createOutboxConsumer,
|
|
@@ -38,34 +44,44 @@ import {
|
|
|
38
44
|
hasLoaV2,
|
|
39
45
|
isAcceptableAlias,
|
|
40
46
|
isEmailLike,
|
|
47
|
+
isIsoDate,
|
|
48
|
+
isNewerVersion,
|
|
41
49
|
loaEnvelopeSha256,
|
|
42
50
|
loaFirstName,
|
|
43
51
|
loaNamesMatch,
|
|
44
52
|
loaSurname,
|
|
53
|
+
matchingWebhookSecret,
|
|
45
54
|
namePoolMatches,
|
|
55
|
+
normaliseCommitmentField,
|
|
46
56
|
normaliseLoaName,
|
|
47
57
|
parsePinnedRegistryRoots,
|
|
48
58
|
readAddressParts,
|
|
59
|
+
readSessionProduct,
|
|
49
60
|
sendVerifyResult,
|
|
50
61
|
signPullRequest,
|
|
62
|
+
startUpdateCheck,
|
|
51
63
|
toExpressHandler,
|
|
52
64
|
toOutboxTimestamp,
|
|
53
65
|
transformAddress,
|
|
54
66
|
transformSession,
|
|
55
67
|
typedAliasesOf,
|
|
68
|
+
updateAvailableLine,
|
|
69
|
+
updateCheckEnabled,
|
|
70
|
+
updateCheckMetric,
|
|
56
71
|
validateAddress,
|
|
72
|
+
verificationCommitmentString,
|
|
57
73
|
verifyD5LOA,
|
|
58
74
|
verifyD5LOAv2,
|
|
59
75
|
verifyLOA,
|
|
60
76
|
verifySignature,
|
|
61
77
|
verifyWithGrace
|
|
62
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-WHVGOWN6.mjs";
|
|
63
79
|
import {
|
|
64
80
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
65
81
|
computeBlindIndex,
|
|
66
82
|
isFreshTimestamp,
|
|
67
83
|
normalizeForBlindIndex
|
|
68
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-RU6G6PIM.mjs";
|
|
69
85
|
export {
|
|
70
86
|
CURRENT_VERSION,
|
|
71
87
|
DEFAULT_IDEMPOTENCY_LEASE_SECS,
|
|
@@ -80,7 +96,11 @@ export {
|
|
|
80
96
|
LoaV2RefusedError,
|
|
81
97
|
MAX_ADDRESS_FIELD_CHARS,
|
|
82
98
|
OUTBOX_LEASE_COLUMNS,
|
|
99
|
+
PRODUCT_CODE_PATTERN,
|
|
100
|
+
SDK_VERSION,
|
|
83
101
|
SUPPORTED_VERSIONS,
|
|
102
|
+
UPDATE_GUIDE_URL,
|
|
103
|
+
VERIFICATION_COMMITMENT_VERSION,
|
|
84
104
|
_resetLoaKeyCacheForTests,
|
|
85
105
|
_resetOnceWarningsForTests,
|
|
86
106
|
acceptTypedAliases,
|
|
@@ -89,10 +109,12 @@ export {
|
|
|
89
109
|
cachedLoaPublicKey,
|
|
90
110
|
canonicalD5LoaForm,
|
|
91
111
|
canonicalD5LoaFormV2,
|
|
112
|
+
checkForUpdate,
|
|
92
113
|
checkLoaV2,
|
|
93
114
|
checkRegistryHead,
|
|
94
115
|
compareAddresses,
|
|
95
116
|
computeBlindIndex,
|
|
117
|
+
computeVerificationCommitment,
|
|
96
118
|
confirmUpdate,
|
|
97
119
|
createOneAddressHandler,
|
|
98
120
|
createOutboxConsumer,
|
|
@@ -110,24 +132,34 @@ export {
|
|
|
110
132
|
isAcceptableAlias,
|
|
111
133
|
isEmailLike,
|
|
112
134
|
isFreshTimestamp,
|
|
135
|
+
isIsoDate,
|
|
136
|
+
isNewerVersion,
|
|
113
137
|
loaEnvelopeSha256,
|
|
114
138
|
loaFirstName,
|
|
115
139
|
loaNamesMatch,
|
|
116
140
|
loaSurname,
|
|
141
|
+
matchingWebhookSecret,
|
|
117
142
|
namePoolMatches,
|
|
143
|
+
normaliseCommitmentField,
|
|
118
144
|
normaliseLoaName,
|
|
119
145
|
normalizeForBlindIndex,
|
|
120
146
|
parsePinnedRegistryRoots,
|
|
121
147
|
readAddressParts,
|
|
148
|
+
readSessionProduct,
|
|
122
149
|
sendVerifyResult,
|
|
123
150
|
signPullRequest,
|
|
151
|
+
startUpdateCheck,
|
|
124
152
|
toExpressHandler,
|
|
125
153
|
toOutboxTimestamp,
|
|
126
154
|
transformAddress as transform,
|
|
127
155
|
transformAddress,
|
|
128
156
|
transformSession,
|
|
129
157
|
typedAliasesOf,
|
|
158
|
+
updateAvailableLine,
|
|
159
|
+
updateCheckEnabled,
|
|
160
|
+
updateCheckMetric,
|
|
130
161
|
validateAddress,
|
|
162
|
+
verificationCommitmentString,
|
|
131
163
|
verifySignature as verify,
|
|
132
164
|
verifyD5LOA,
|
|
133
165
|
verifyD5LOAv2,
|
|
@@ -10,9 +10,11 @@ import {
|
|
|
10
10
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
11
11
|
PINNED_REGISTRY_ROOTS,
|
|
12
12
|
PIN_HARDENING_VERSION,
|
|
13
|
+
PRODUCTION_REGISTRY_HOSTS,
|
|
13
14
|
REGISTRY_HEAD_ALG,
|
|
14
15
|
REGISTRY_HEAD_V1,
|
|
15
16
|
REGISTRY_HEAD_V2,
|
|
17
|
+
REGISTRY_ROOT_PINS,
|
|
16
18
|
SENDER_HELD_KEY_ALGORITHM,
|
|
17
19
|
__setPinnedRegistryRootsForTests,
|
|
18
20
|
blockedPublicKeyReason,
|
|
@@ -27,6 +29,7 @@ import {
|
|
|
27
29
|
createSenderHeldKeyBinder,
|
|
28
30
|
decryptAddress,
|
|
29
31
|
decryptSession,
|
|
32
|
+
encryptAccountCheckForPartner,
|
|
30
33
|
encryptAddressForAll,
|
|
31
34
|
encryptAddressForPartner,
|
|
32
35
|
encryptEnvelopeForPartner,
|
|
@@ -46,6 +49,7 @@ import {
|
|
|
46
49
|
isIpLiteralHost,
|
|
47
50
|
isSafeWebhookUrl,
|
|
48
51
|
keyIdForPublicKey,
|
|
52
|
+
localStorageHeadHighWater,
|
|
49
53
|
memorySenderHeldKeyStore,
|
|
50
54
|
normaliseAddress,
|
|
51
55
|
normalizeForBlindIndex,
|
|
@@ -53,6 +57,8 @@ import {
|
|
|
53
57
|
parseOprfSeed,
|
|
54
58
|
partnerKeyFingerprint,
|
|
55
59
|
pinnedRegistryRoots,
|
|
60
|
+
refundReviewNotifySigningString,
|
|
61
|
+
registryEnvironmentForOrigin,
|
|
56
62
|
rootIsPinned,
|
|
57
63
|
rootKeyIdFromSpki,
|
|
58
64
|
rootKeyIdFromSpkiB64,
|
|
@@ -63,7 +69,7 @@ import {
|
|
|
63
69
|
verifyPartnerKeyAttestationWithRoots,
|
|
64
70
|
verifyRegistryHead,
|
|
65
71
|
verifyWebhookSignature
|
|
66
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-RU6G6PIM.mjs";
|
|
67
73
|
export {
|
|
68
74
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
69
75
|
ENDPOINT_FAILURE_THRESHOLD,
|
|
@@ -76,9 +82,11 @@ export {
|
|
|
76
82
|
PARTNER_KEY_REFUSED_MESSAGE,
|
|
77
83
|
PINNED_REGISTRY_ROOTS,
|
|
78
84
|
PIN_HARDENING_VERSION,
|
|
85
|
+
PRODUCTION_REGISTRY_HOSTS,
|
|
79
86
|
REGISTRY_HEAD_ALG,
|
|
80
87
|
REGISTRY_HEAD_V1,
|
|
81
88
|
REGISTRY_HEAD_V2,
|
|
89
|
+
REGISTRY_ROOT_PINS,
|
|
82
90
|
SENDER_HELD_KEY_ALGORITHM,
|
|
83
91
|
__setPinnedRegistryRootsForTests,
|
|
84
92
|
blockedPublicKeyReason,
|
|
@@ -93,6 +101,7 @@ export {
|
|
|
93
101
|
createSenderHeldKeyBinder,
|
|
94
102
|
decryptAddress,
|
|
95
103
|
decryptSession,
|
|
104
|
+
encryptAccountCheckForPartner,
|
|
96
105
|
encryptAddressForAll,
|
|
97
106
|
encryptAddressForPartner,
|
|
98
107
|
encryptEnvelopeForPartner,
|
|
@@ -112,6 +121,7 @@ export {
|
|
|
112
121
|
isIpLiteralHost,
|
|
113
122
|
isSafeWebhookUrl,
|
|
114
123
|
keyIdForPublicKey,
|
|
124
|
+
localStorageHeadHighWater,
|
|
115
125
|
memorySenderHeldKeyStore,
|
|
116
126
|
normaliseAddress,
|
|
117
127
|
normalizeForBlindIndex,
|
|
@@ -119,6 +129,8 @@ export {
|
|
|
119
129
|
parseOprfSeed,
|
|
120
130
|
partnerKeyFingerprint,
|
|
121
131
|
pinnedRegistryRoots,
|
|
132
|
+
refundReviewNotifySigningString,
|
|
133
|
+
registryEnvironmentForOrigin,
|
|
122
134
|
rootIsPinned,
|
|
123
135
|
rootKeyIdFromSpki,
|
|
124
136
|
rootKeyIdFromSpkiB64,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.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",
|