@oneaddress/partner-sdk 2.5.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/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,8 +21,10 @@ import {
20
21
  fromOutboxTimestamp,
21
22
  isEmailLike,
22
23
  namePoolMatches,
24
+ parsePinnedRegistryRoots,
23
25
  readAddressParts,
24
26
  sendVerifyResult,
27
+ signPullRequest,
25
28
  toExpressHandler,
26
29
  toOutboxTimestamp,
27
30
  transformAddress,
@@ -31,13 +34,13 @@ import {
31
34
  verifyLOA,
32
35
  verifySignature,
33
36
  verifyWithGrace
34
- } from "./chunk-DIUGEFIK.mjs";
37
+ } from "./chunk-OKAJO4T6.mjs";
35
38
  import {
36
39
  DEFAULT_REPLAY_WINDOW_SECS,
37
40
  computeBlindIndex,
38
41
  isFreshTimestamp,
39
42
  normalizeForBlindIndex
40
- } from "./chunk-ZY2K54LD.mjs";
43
+ } from "./chunk-CLV6TLSP.mjs";
41
44
  export {
42
45
  CURRENT_VERSION,
43
46
  DEFAULT_REPLAY_WINDOW_SECS,
@@ -46,6 +49,7 @@ export {
46
49
  _resetOnceWarningsForTests,
47
50
  buildSignedTestWebhook,
48
51
  canonicalD5LoaForm,
52
+ checkRegistryHead,
49
53
  compareAddresses,
50
54
  computeBlindIndex,
51
55
  confirmUpdate,
@@ -65,8 +69,10 @@ export {
65
69
  isFreshTimestamp,
66
70
  namePoolMatches,
67
71
  normalizeForBlindIndex,
72
+ parsePinnedRegistryRoots,
68
73
  readAddressParts,
69
74
  sendVerifyResult,
75
+ signPullRequest,
70
76
  toExpressHandler,
71
77
  toOutboxTimestamp,
72
78
  transformAddress as transform,
@@ -4,13 +4,17 @@ 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,
11
+ PINNED_REGISTRY_ROOTS,
12
+ PIN_HARDENING_VERSION,
10
13
  REGISTRY_HEAD_ALG,
11
14
  REGISTRY_HEAD_V1,
12
15
  REGISTRY_HEAD_V2,
13
16
  SENDER_HELD_KEY_ALGORITHM,
17
+ __setPinnedRegistryRootsForTests,
14
18
  blockedPublicKeyReason,
15
19
  buildPartnerKeyAttestation,
16
20
  buildRegistryHeadStatement,
@@ -29,13 +33,16 @@ import {
29
33
  encryptPayloadForPartner,
30
34
  encryptSessionForAll,
31
35
  encryptSessionForPartner,
36
+ evaluateBlindedPin,
32
37
  generateHybridPartnerKeyPair,
33
38
  generatePartnerKeyPair,
39
+ hardenPin,
34
40
  headNamesKey,
35
41
  headNamesPartner,
36
42
  headNamesStagedKey,
37
43
  isEmailLike,
38
44
  isFreshTimestamp,
45
+ isHardenedSecret,
39
46
  isIpLiteralHost,
40
47
  isSafeWebhookUrl,
41
48
  keyIdForPublicKey,
@@ -43,28 +50,37 @@ import {
43
50
  normaliseAddress,
44
51
  normalizeForBlindIndex,
45
52
  openSealedWithSenderHeldKey,
53
+ parseOprfSeed,
46
54
  partnerKeyFingerprint,
55
+ pinnedRegistryRoots,
56
+ rootIsPinned,
47
57
  rootKeyIdFromSpki,
48
58
  rootKeyIdFromSpkiB64,
49
59
  signWebhookPayload,
60
+ spkiSha256HexFromB64,
61
+ unpinnedRootIds,
50
62
  verifyPartnerKeyAttestation,
51
63
  verifyPartnerKeyAttestationWithRoots,
52
64
  verifyRegistryHead,
53
65
  verifyWebhookSignature
54
- } from "./chunk-ZY2K54LD.mjs";
66
+ } from "./chunk-CLV6TLSP.mjs";
55
67
  export {
56
68
  DEFAULT_REPLAY_WINDOW_SECS,
57
69
  ENDPOINT_FAILURE_THRESHOLD,
58
70
  ENDPOINT_PROBE_INTERVAL_MINUTES,
59
71
  ENDPOINT_STALE_AFTER_MINUTES,
60
72
  ENDPOINT_UNUSABLE_AFTER_MINUTES,
73
+ HARDENED_PREFIX,
61
74
  PARTNER_KEY_ATTESTATION_ALG,
62
75
  PARTNER_KEY_ATTESTATION_V1,
63
76
  PARTNER_KEY_REFUSED_MESSAGE,
77
+ PINNED_REGISTRY_ROOTS,
78
+ PIN_HARDENING_VERSION,
64
79
  REGISTRY_HEAD_ALG,
65
80
  REGISTRY_HEAD_V1,
66
81
  REGISTRY_HEAD_V2,
67
82
  SENDER_HELD_KEY_ALGORITHM,
83
+ __setPinnedRegistryRootsForTests,
68
84
  blockedPublicKeyReason,
69
85
  buildPartnerKeyAttestation,
70
86
  buildRegistryHeadStatement,
@@ -83,13 +99,16 @@ export {
83
99
  encryptPayloadForPartner,
84
100
  encryptSessionForAll,
85
101
  encryptSessionForPartner,
102
+ evaluateBlindedPin,
86
103
  generateHybridPartnerKeyPair,
87
104
  generatePartnerKeyPair,
105
+ hardenPin,
88
106
  headNamesKey,
89
107
  headNamesPartner,
90
108
  headNamesStagedKey,
91
109
  isEmailLike,
92
110
  isFreshTimestamp,
111
+ isHardenedSecret,
93
112
  isIpLiteralHost,
94
113
  isSafeWebhookUrl,
95
114
  keyIdForPublicKey,
@@ -97,10 +116,15 @@ export {
97
116
  normaliseAddress,
98
117
  normalizeForBlindIndex,
99
118
  openSealedWithSenderHeldKey,
119
+ parseOprfSeed,
100
120
  partnerKeyFingerprint,
121
+ pinnedRegistryRoots,
122
+ rootIsPinned,
101
123
  rootKeyIdFromSpki,
102
124
  rootKeyIdFromSpkiB64,
103
125
  signWebhookPayload,
126
+ spkiSha256HexFromB64,
127
+ unpinnedRootIds,
104
128
  verifyPartnerKeyAttestation,
105
129
  verifyPartnerKeyAttestationWithRoots,
106
130
  verifyRegistryHead,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oneaddress/partner-sdk",
3
- "version": "2.5.0",
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",