@oneaddress/partner-sdk 2.7.0 → 2.8.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/dist/index.mjs CHANGED
@@ -1,10 +1,24 @@
1
1
  import {
2
2
  CURRENT_VERSION,
3
+ DEFAULT_IDEMPOTENCY_LEASE_SECS,
4
+ DEFAULT_MAX_BODY_BYTES,
5
+ LOA_MAX_TYPED_ALIASES,
6
+ LOA_MIN_SHORT_FORM_LETTERS,
7
+ LOA_PUBLIC_KEY_CACHE_MS,
8
+ LOA_V2_REFUSALS,
9
+ LoaPublicKeyUnavailableError,
10
+ LoaV2RefusedError,
11
+ MAX_ADDRESS_FIELD_CHARS,
3
12
  OUTBOX_LEASE_COLUMNS,
4
13
  SUPPORTED_VERSIONS,
14
+ _resetLoaKeyCacheForTests,
5
15
  _resetOnceWarningsForTests,
16
+ acceptTypedAliases,
6
17
  buildSignedTestWebhook,
18
+ cachedLoaPublicKey,
7
19
  canonicalD5LoaForm,
20
+ canonicalD5LoaFormV2,
21
+ checkLoaV2,
8
22
  checkRegistryHead,
9
23
  compareAddresses,
10
24
  confirmUpdate,
@@ -19,8 +33,15 @@ import {
19
33
  findMatchingStoredName,
20
34
  formatAddressParts,
21
35
  fromOutboxTimestamp,
36
+ hasLoaV2,
37
+ isAcceptableAlias,
22
38
  isEmailLike,
39
+ loaEnvelopeSha256,
40
+ loaFirstName,
41
+ loaNamesMatch,
42
+ loaSurname,
23
43
  namePoolMatches,
44
+ normaliseLoaName,
24
45
  parsePinnedRegistryRoots,
25
46
  readAddressParts,
26
47
  sendVerifyResult,
@@ -29,26 +50,42 @@ import {
29
50
  toOutboxTimestamp,
30
51
  transformAddress,
31
52
  transformSession,
53
+ typedAliasesOf,
32
54
  validateAddress,
33
55
  verifyD5LOA,
56
+ verifyD5LOAv2,
34
57
  verifyLOA,
35
58
  verifySignature,
36
59
  verifyWithGrace
37
- } from "./chunk-OKAJO4T6.mjs";
60
+ } from "./chunk-BFSYMDJI.mjs";
38
61
  import {
39
62
  DEFAULT_REPLAY_WINDOW_SECS,
40
63
  computeBlindIndex,
41
64
  isFreshTimestamp,
42
65
  normalizeForBlindIndex
43
- } from "./chunk-CLV6TLSP.mjs";
66
+ } from "./chunk-PP2TM7HN.mjs";
44
67
  export {
45
68
  CURRENT_VERSION,
69
+ DEFAULT_IDEMPOTENCY_LEASE_SECS,
70
+ DEFAULT_MAX_BODY_BYTES,
46
71
  DEFAULT_REPLAY_WINDOW_SECS,
72
+ LOA_MAX_TYPED_ALIASES,
73
+ LOA_MIN_SHORT_FORM_LETTERS,
74
+ LOA_PUBLIC_KEY_CACHE_MS,
75
+ LOA_V2_REFUSALS,
76
+ LoaPublicKeyUnavailableError,
77
+ LoaV2RefusedError,
78
+ MAX_ADDRESS_FIELD_CHARS,
47
79
  OUTBOX_LEASE_COLUMNS,
48
80
  SUPPORTED_VERSIONS,
81
+ _resetLoaKeyCacheForTests,
49
82
  _resetOnceWarningsForTests,
83
+ acceptTypedAliases,
50
84
  buildSignedTestWebhook,
85
+ cachedLoaPublicKey,
51
86
  canonicalD5LoaForm,
87
+ canonicalD5LoaFormV2,
88
+ checkLoaV2,
52
89
  checkRegistryHead,
53
90
  compareAddresses,
54
91
  computeBlindIndex,
@@ -65,9 +102,16 @@ export {
65
102
  findMatchingStoredName,
66
103
  formatAddressParts,
67
104
  fromOutboxTimestamp,
105
+ hasLoaV2,
106
+ isAcceptableAlias,
68
107
  isEmailLike,
69
108
  isFreshTimestamp,
109
+ loaEnvelopeSha256,
110
+ loaFirstName,
111
+ loaNamesMatch,
112
+ loaSurname,
70
113
  namePoolMatches,
114
+ normaliseLoaName,
71
115
  normalizeForBlindIndex,
72
116
  parsePinnedRegistryRoots,
73
117
  readAddressParts,
@@ -78,9 +122,11 @@ export {
78
122
  transformAddress as transform,
79
123
  transformAddress,
80
124
  transformSession,
125
+ typedAliasesOf,
81
126
  validateAddress,
82
127
  verifySignature as verify,
83
128
  verifyD5LOA,
129
+ verifyD5LOAv2,
84
130
  verifyWithGrace as verifyGrace,
85
131
  verifyLOA,
86
132
  verifySignature,
@@ -63,7 +63,7 @@ import {
63
63
  verifyPartnerKeyAttestationWithRoots,
64
64
  verifyRegistryHead,
65
65
  verifyWebhookSignature
66
- } from "./chunk-CLV6TLSP.mjs";
66
+ } from "./chunk-PP2TM7HN.mjs";
67
67
  export {
68
68
  DEFAULT_REPLAY_WINDOW_SECS,
69
69
  ENDPOINT_FAILURE_THRESHOLD,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneaddress/partner-sdk",
3
- "version": "2.7.0",
3
+ "version": "2.8.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",