@oneaddress/partner-sdk 2.7.0 → 2.9.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 +172 -0
- package/README.md +203 -62
- package/dist/{chunk-OKAJO4T6.mjs → chunk-OKPEOGR5.mjs} +588 -51
- package/dist/{chunk-CLV6TLSP.mjs → chunk-PP2TM7HN.mjs} +80 -0
- package/dist/edge.d.mts +1 -1
- package/dist/edge.d.ts +1 -1
- package/dist/edge.js +591 -42
- package/dist/edge.mjs +28 -2
- package/dist/index.d.mts +452 -53
- package/dist/index.d.ts +452 -53
- package/dist/index.js +691 -49
- package/dist/index.mjs +52 -2
- package/dist/{src-FPYBM6X6.mjs → src-P3LR7F4A.mjs} +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CURRENT_VERSION,
|
|
3
|
+
DEFAULT_IDEMPOTENCY_LEASE_SECS,
|
|
4
|
+
DEFAULT_MAX_BODY_BYTES,
|
|
5
|
+
EffectiveDateMismatchError,
|
|
6
|
+
LOA_MAX_TYPED_ALIASES,
|
|
7
|
+
LOA_MIN_SHORT_FORM_LETTERS,
|
|
8
|
+
LOA_PUBLIC_KEY_CACHE_MS,
|
|
9
|
+
LOA_V2_REFUSALS,
|
|
10
|
+
LoaPublicKeyUnavailableError,
|
|
11
|
+
LoaV2RefusedError,
|
|
12
|
+
MAX_ADDRESS_FIELD_CHARS,
|
|
3
13
|
OUTBOX_LEASE_COLUMNS,
|
|
4
14
|
SUPPORTED_VERSIONS,
|
|
15
|
+
_resetLoaKeyCacheForTests,
|
|
5
16
|
_resetOnceWarningsForTests,
|
|
17
|
+
acceptTypedAliases,
|
|
18
|
+
assertEffectiveDateBound,
|
|
6
19
|
buildSignedTestWebhook,
|
|
20
|
+
cachedLoaPublicKey,
|
|
7
21
|
canonicalD5LoaForm,
|
|
22
|
+
canonicalD5LoaFormV2,
|
|
23
|
+
checkLoaV2,
|
|
8
24
|
checkRegistryHead,
|
|
9
25
|
compareAddresses,
|
|
10
26
|
confirmUpdate,
|
|
@@ -19,8 +35,15 @@ import {
|
|
|
19
35
|
findMatchingStoredName,
|
|
20
36
|
formatAddressParts,
|
|
21
37
|
fromOutboxTimestamp,
|
|
38
|
+
hasLoaV2,
|
|
39
|
+
isAcceptableAlias,
|
|
22
40
|
isEmailLike,
|
|
41
|
+
loaEnvelopeSha256,
|
|
42
|
+
loaFirstName,
|
|
43
|
+
loaNamesMatch,
|
|
44
|
+
loaSurname,
|
|
23
45
|
namePoolMatches,
|
|
46
|
+
normaliseLoaName,
|
|
24
47
|
parsePinnedRegistryRoots,
|
|
25
48
|
readAddressParts,
|
|
26
49
|
sendVerifyResult,
|
|
@@ -29,26 +52,44 @@ import {
|
|
|
29
52
|
toOutboxTimestamp,
|
|
30
53
|
transformAddress,
|
|
31
54
|
transformSession,
|
|
55
|
+
typedAliasesOf,
|
|
32
56
|
validateAddress,
|
|
33
57
|
verifyD5LOA,
|
|
58
|
+
verifyD5LOAv2,
|
|
34
59
|
verifyLOA,
|
|
35
60
|
verifySignature,
|
|
36
61
|
verifyWithGrace
|
|
37
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-OKPEOGR5.mjs";
|
|
38
63
|
import {
|
|
39
64
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
40
65
|
computeBlindIndex,
|
|
41
66
|
isFreshTimestamp,
|
|
42
67
|
normalizeForBlindIndex
|
|
43
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-PP2TM7HN.mjs";
|
|
44
69
|
export {
|
|
45
70
|
CURRENT_VERSION,
|
|
71
|
+
DEFAULT_IDEMPOTENCY_LEASE_SECS,
|
|
72
|
+
DEFAULT_MAX_BODY_BYTES,
|
|
46
73
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
74
|
+
EffectiveDateMismatchError,
|
|
75
|
+
LOA_MAX_TYPED_ALIASES,
|
|
76
|
+
LOA_MIN_SHORT_FORM_LETTERS,
|
|
77
|
+
LOA_PUBLIC_KEY_CACHE_MS,
|
|
78
|
+
LOA_V2_REFUSALS,
|
|
79
|
+
LoaPublicKeyUnavailableError,
|
|
80
|
+
LoaV2RefusedError,
|
|
81
|
+
MAX_ADDRESS_FIELD_CHARS,
|
|
47
82
|
OUTBOX_LEASE_COLUMNS,
|
|
48
83
|
SUPPORTED_VERSIONS,
|
|
84
|
+
_resetLoaKeyCacheForTests,
|
|
49
85
|
_resetOnceWarningsForTests,
|
|
86
|
+
acceptTypedAliases,
|
|
87
|
+
assertEffectiveDateBound,
|
|
50
88
|
buildSignedTestWebhook,
|
|
89
|
+
cachedLoaPublicKey,
|
|
51
90
|
canonicalD5LoaForm,
|
|
91
|
+
canonicalD5LoaFormV2,
|
|
92
|
+
checkLoaV2,
|
|
52
93
|
checkRegistryHead,
|
|
53
94
|
compareAddresses,
|
|
54
95
|
computeBlindIndex,
|
|
@@ -65,9 +106,16 @@ export {
|
|
|
65
106
|
findMatchingStoredName,
|
|
66
107
|
formatAddressParts,
|
|
67
108
|
fromOutboxTimestamp,
|
|
109
|
+
hasLoaV2,
|
|
110
|
+
isAcceptableAlias,
|
|
68
111
|
isEmailLike,
|
|
69
112
|
isFreshTimestamp,
|
|
113
|
+
loaEnvelopeSha256,
|
|
114
|
+
loaFirstName,
|
|
115
|
+
loaNamesMatch,
|
|
116
|
+
loaSurname,
|
|
70
117
|
namePoolMatches,
|
|
118
|
+
normaliseLoaName,
|
|
71
119
|
normalizeForBlindIndex,
|
|
72
120
|
parsePinnedRegistryRoots,
|
|
73
121
|
readAddressParts,
|
|
@@ -78,9 +126,11 @@ export {
|
|
|
78
126
|
transformAddress as transform,
|
|
79
127
|
transformAddress,
|
|
80
128
|
transformSession,
|
|
129
|
+
typedAliasesOf,
|
|
81
130
|
validateAddress,
|
|
82
131
|
verifySignature as verify,
|
|
83
132
|
verifyD5LOA,
|
|
133
|
+
verifyD5LOAv2,
|
|
84
134
|
verifyWithGrace as verifyGrace,
|
|
85
135
|
verifyLOA,
|
|
86
136
|
verifySignature,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.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",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"@oneaddress/protocol": "^0.1.0",
|
|
62
62
|
"tsup": "^8.0.0",
|
|
63
63
|
"typescript": "^5.0.0",
|
|
64
|
-
"vitest": "^4.1.
|
|
64
|
+
"vitest": "^4.1.12"
|
|
65
65
|
}
|
|
66
66
|
}
|