@oneaddress/partner-sdk 1.1.1 → 1.3.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,30 +1,50 @@
1
1
  import {
2
2
  CURRENT_VERSION,
3
- DEFAULT_REPLAY_WINDOW_SECS,
4
3
  SUPPORTED_VERSIONS,
4
+ canonicalD5LoaForm,
5
+ compareAddresses,
5
6
  createOneAddressHandler,
7
+ d5LoaRef,
6
8
  decryptAddress,
9
+ decryptLoaEncrypted,
10
+ decryptSession,
7
11
  fetchLoaPublicKey,
8
- isFreshTimestamp,
9
12
  transformAddress,
13
+ transformSession,
10
14
  validateAddress,
15
+ verifyD5LOA,
11
16
  verifyLOA,
12
17
  verifySignature,
13
18
  verifyWithGrace
14
- } from "./chunk-ZZZLXF6X.mjs";
19
+ } from "./chunk-O2RSPJVP.mjs";
20
+ import {
21
+ DEFAULT_REPLAY_WINDOW_SECS,
22
+ computeBlindIndex,
23
+ isFreshTimestamp,
24
+ normalizeForBlindIndex
25
+ } from "./chunk-2QGC7BHC.mjs";
15
26
  export {
16
27
  CURRENT_VERSION,
17
28
  DEFAULT_REPLAY_WINDOW_SECS,
18
29
  SUPPORTED_VERSIONS,
30
+ canonicalD5LoaForm,
31
+ compareAddresses,
32
+ computeBlindIndex,
19
33
  createOneAddressHandler,
34
+ d5LoaRef,
20
35
  decryptAddress as decrypt,
21
36
  decryptAddress,
37
+ decryptLoaEncrypted,
38
+ decryptSession,
22
39
  fetchLoaPublicKey,
23
40
  isFreshTimestamp,
41
+ normalizeForBlindIndex,
24
42
  transformAddress as transform,
25
43
  transformAddress,
44
+ transformSession,
26
45
  validateAddress,
27
46
  verifySignature as verify,
47
+ verifyD5LOA,
28
48
  verifyWithGrace as verifyGrace,
29
49
  verifyLOA,
30
50
  verifySignature,
@@ -0,0 +1,42 @@
1
+ import {
2
+ DEFAULT_REPLAY_WINDOW_SECS,
3
+ computeBlindIndex,
4
+ computeCustomerBlindIndex,
5
+ decryptAddress,
6
+ decryptSession,
7
+ encryptAddressForAll,
8
+ encryptAddressForPartner,
9
+ encryptEnvelopeForPartner,
10
+ encryptPayloadForPartner,
11
+ encryptSessionForAll,
12
+ encryptSessionForPartner,
13
+ generateHybridPartnerKeyPair,
14
+ generatePartnerKeyPair,
15
+ isFreshTimestamp,
16
+ isSafeWebhookUrl,
17
+ normaliseAddress,
18
+ normalizeForBlindIndex,
19
+ signWebhookPayload,
20
+ verifyWebhookSignature
21
+ } from "./chunk-2QGC7BHC.mjs";
22
+ export {
23
+ DEFAULT_REPLAY_WINDOW_SECS,
24
+ computeBlindIndex,
25
+ computeCustomerBlindIndex,
26
+ decryptAddress,
27
+ decryptSession,
28
+ encryptAddressForAll,
29
+ encryptAddressForPartner,
30
+ encryptEnvelopeForPartner,
31
+ encryptPayloadForPartner,
32
+ encryptSessionForAll,
33
+ encryptSessionForPartner,
34
+ generateHybridPartnerKeyPair,
35
+ generatePartnerKeyPair,
36
+ isFreshTimestamp,
37
+ isSafeWebhookUrl,
38
+ normaliseAddress,
39
+ normalizeForBlindIndex,
40
+ signWebhookPayload,
41
+ verifyWebhookSignature
42
+ };
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "@oneaddress/partner-sdk",
3
- "version": "1.1.1",
4
- "description": "Official OneAddress partner integration SDK — webhook verification, address decryption, LOA validation",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/index.mjs",
10
- "require": "./dist/index.js",
11
- "types": "./dist/index.d.mts"
12
- },
13
- "./edge": {
14
- "import": "./dist/edge.mjs",
15
- "types": "./dist/edge.d.mts"
16
- }
17
- },
18
- "files": ["dist", "README.md"],
19
- "publishConfig": {
20
- "access": "public"
21
- },
22
- "scripts": {
23
- "build": "tsup src/index.ts src/edge.ts --format esm,cjs --dts --clean",
24
- "prepare": "tsup src/index.ts src/edge.ts --format esm,cjs --dts --clean",
25
- "dev": "tsup src/index.ts src/edge.ts --format esm,cjs --dts --watch",
26
- "test": "vitest run"
27
- },
28
- "keywords": ["oneaddress", "address", "partner", "webhook", "sdk"],
29
- "license": "UNLICENSED",
30
- "engines": { "node": ">=18" },
31
- "devDependencies": {
32
- "@oneaddress/crypto": "*",
33
- "@oneaddress/protocol": "^0.1.0",
34
- "tsup": "^8.0.0",
35
- "typescript": "^5.0.0",
36
- "vitest": "^1.0.0"
37
- }
38
- }
1
+ {
2
+ "name": "@oneaddress/partner-sdk",
3
+ "version": "1.3.0",
4
+ "description": "Official OneAddress partner integration SDK — webhook verification, address decryption (legacy + D5 session-envelope), LOA validation",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.mjs",
10
+ "require": "./dist/index.js",
11
+ "types": "./dist/index.d.mts"
12
+ },
13
+ "./edge": {
14
+ "import": "./dist/edge.mjs",
15
+ "types": "./dist/edge.d.mts"
16
+ }
17
+ },
18
+ "files": ["dist", "README.md", "CHANGELOG.md"],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "scripts": {
23
+ "build": "tsup src/index.ts src/edge.ts --format esm,cjs --dts --clean",
24
+ "prepare": "tsup src/index.ts src/edge.ts --format esm,cjs --dts --clean",
25
+ "dev": "tsup src/index.ts src/edge.ts --format esm,cjs --dts --watch",
26
+ "test": "vitest run"
27
+ },
28
+ "keywords": ["oneaddress", "address", "partner", "webhook", "sdk"],
29
+ "license": "UNLICENSED",
30
+ "engines": { "node": ">=18" },
31
+ "devDependencies": {
32
+ "@oneaddress/crypto": "*",
33
+ "@oneaddress/protocol": "^0.1.0",
34
+ "tsup": "^8.0.0",
35
+ "typescript": "^5.0.0",
36
+ "vitest": "^1.0.0"
37
+ }
38
+ }