@oneaddress/partner-sdk 1.7.0 → 2.0.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 +85 -0
- package/LICENSE +201 -0
- package/README.md +104 -4
- package/dist/{chunk-TAZD6PFZ.mjs → chunk-DUVPNFU6.mjs} +208 -38
- package/dist/{chunk-MNVGYXWH.mjs → chunk-UPJU4HFR.mjs} +146 -44
- package/dist/edge.d.mts +1 -1
- package/dist/edge.d.ts +1 -1
- package/dist/edge.js +360 -81
- package/dist/edge.mjs +2 -2
- package/dist/index.d.mts +220 -18
- package/dist/index.d.ts +220 -18
- package/dist/index.js +360 -81
- package/dist/index.mjs +2 -2
- package/dist/{src-ESYTJ2EY.mjs → src-UACTYQGX.mjs} +15 -1
- package/package.json +8 -3
package/dist/index.mjs
CHANGED
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
verifyLOA,
|
|
30
30
|
verifySignature,
|
|
31
31
|
verifyWithGrace
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-UPJU4HFR.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
35
35
|
computeBlindIndex,
|
|
36
36
|
isFreshTimestamp,
|
|
37
37
|
normalizeForBlindIndex
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-DUVPNFU6.mjs";
|
|
39
39
|
export {
|
|
40
40
|
CURRENT_VERSION,
|
|
41
41
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
3
|
+
ENDPOINT_FAILURE_THRESHOLD,
|
|
3
4
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
4
5
|
PARTNER_KEY_ATTESTATION_V1,
|
|
5
6
|
REGISTRY_HEAD_ALG,
|
|
6
7
|
REGISTRY_HEAD_V1,
|
|
8
|
+
REGISTRY_HEAD_V2,
|
|
7
9
|
buildPartnerKeyAttestation,
|
|
8
10
|
buildRegistryHeadStatement,
|
|
11
|
+
classifyEndpointProbe,
|
|
9
12
|
cleanNameAliases,
|
|
10
13
|
computeBlindIndex,
|
|
11
14
|
computeCustomerBlindIndex,
|
|
15
|
+
countsAsFailure,
|
|
12
16
|
decryptAddress,
|
|
13
17
|
decryptSession,
|
|
14
18
|
encryptAddressForAll,
|
|
@@ -20,12 +24,15 @@ import {
|
|
|
20
24
|
generateHybridPartnerKeyPair,
|
|
21
25
|
generatePartnerKeyPair,
|
|
22
26
|
headNamesKey,
|
|
27
|
+
headNamesPartner,
|
|
28
|
+
headNamesStagedKey,
|
|
23
29
|
isEmailLike,
|
|
24
30
|
isFreshTimestamp,
|
|
25
31
|
isIpLiteralHost,
|
|
26
32
|
isSafeWebhookUrl,
|
|
27
33
|
normaliseAddress,
|
|
28
34
|
normalizeForBlindIndex,
|
|
35
|
+
partnerKeyFingerprint,
|
|
29
36
|
rootKeyIdFromSpki,
|
|
30
37
|
rootKeyIdFromSpkiB64,
|
|
31
38
|
signWebhookPayload,
|
|
@@ -33,18 +40,22 @@ import {
|
|
|
33
40
|
verifyPartnerKeyAttestationWithRoots,
|
|
34
41
|
verifyRegistryHead,
|
|
35
42
|
verifyWebhookSignature
|
|
36
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DUVPNFU6.mjs";
|
|
37
44
|
export {
|
|
38
45
|
DEFAULT_REPLAY_WINDOW_SECS,
|
|
46
|
+
ENDPOINT_FAILURE_THRESHOLD,
|
|
39
47
|
PARTNER_KEY_ATTESTATION_ALG,
|
|
40
48
|
PARTNER_KEY_ATTESTATION_V1,
|
|
41
49
|
REGISTRY_HEAD_ALG,
|
|
42
50
|
REGISTRY_HEAD_V1,
|
|
51
|
+
REGISTRY_HEAD_V2,
|
|
43
52
|
buildPartnerKeyAttestation,
|
|
44
53
|
buildRegistryHeadStatement,
|
|
54
|
+
classifyEndpointProbe,
|
|
45
55
|
cleanNameAliases,
|
|
46
56
|
computeBlindIndex,
|
|
47
57
|
computeCustomerBlindIndex,
|
|
58
|
+
countsAsFailure,
|
|
48
59
|
decryptAddress,
|
|
49
60
|
decryptSession,
|
|
50
61
|
encryptAddressForAll,
|
|
@@ -56,12 +67,15 @@ export {
|
|
|
56
67
|
generateHybridPartnerKeyPair,
|
|
57
68
|
generatePartnerKeyPair,
|
|
58
69
|
headNamesKey,
|
|
70
|
+
headNamesPartner,
|
|
71
|
+
headNamesStagedKey,
|
|
59
72
|
isEmailLike,
|
|
60
73
|
isFreshTimestamp,
|
|
61
74
|
isIpLiteralHost,
|
|
62
75
|
isSafeWebhookUrl,
|
|
63
76
|
normaliseAddress,
|
|
64
77
|
normalizeForBlindIndex,
|
|
78
|
+
partnerKeyFingerprint,
|
|
65
79
|
rootKeyIdFromSpki,
|
|
66
80
|
rootKeyIdFromSpkiB64,
|
|
67
81
|
signWebhookPayload,
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneaddress/partner-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Official OneAddress partner integration SDK — webhook verification, address decryption (legacy + D5 session-envelope), LOA validation",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/OneAddress-AU/oneaddress-app.git",
|
|
8
|
+
"directory": "packages/partner-sdk"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/index.js",
|
|
6
11
|
"types": "dist/index.d.ts",
|
|
7
12
|
"exports": {
|
|
@@ -23,7 +28,7 @@
|
|
|
23
28
|
}
|
|
24
29
|
},
|
|
25
30
|
"files": [
|
|
26
|
-
"dist",
|
|
31
|
+
"LICENSE", "dist",
|
|
27
32
|
"README.md",
|
|
28
33
|
"CHANGELOG.md"
|
|
29
34
|
],
|
|
@@ -45,7 +50,7 @@
|
|
|
45
50
|
"webhook",
|
|
46
51
|
"sdk"
|
|
47
52
|
],
|
|
48
|
-
"license": "
|
|
53
|
+
"license": "Apache-2.0",
|
|
49
54
|
"engines": {
|
|
50
55
|
"node": ">=18"
|
|
51
56
|
},
|