@dynamic-labs/types 5.1.0 → 5.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/CHANGELOG.md +26 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +3 -3
- package/src/index.cjs +2 -0
- package/src/index.js +1 -0
- package/src/wallets/index.d.ts +2 -1
- package/src/wallets/wallets.cjs +12 -0
- package/src/wallets/wallets.d.ts +33 -0
- package/src/wallets/wallets.js +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.3.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.2.0...v5.3.0) (2026-08-12)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **screening:** add transaction-screening service, types, and connector wiring (DYNT-1663) ([#12160](https://github.com/dynamic-labs/dynamic-auth/issues/12160)) ([d8df6a1](https://github.com/dynamic-labs/dynamic-auth/commit/d8df6a1fccbb6370c140454d9297eabd97699e35)), closes [#12172](https://github.com/dynamic-labs/dynamic-auth/issues/12172) [#12167](https://github.com/dynamic-labs/dynamic-auth/issues/12167) [#12168](https://github.com/dynamic-labs/dynamic-auth/issues/12168) [#12169](https://github.com/dynamic-labs/dynamic-auth/issues/12169)
|
|
8
|
+
* **screening:** screen Bitcoin connected-wallet transactions (DYNT-1663) ([#12169](https://github.com/dynamic-labs/dynamic-auth/issues/12169)) ([f34d1c3](https://github.com/dynamic-labs/dynamic-auth/commit/f34d1c31fe10d0cb02b4f7462dd4900d0256604a))
|
|
9
|
+
* **screening:** screen EVM connected-wallet sends (DYNT-1663) ([#12167](https://github.com/dynamic-labs/dynamic-auth/issues/12167)) ([1b72b24](https://github.com/dynamic-labs/dynamic-auth/commit/1b72b24393a49153d74ce715a44d262e8e48ddc7))
|
|
10
|
+
* **screening:** screen Solana connected-wallet transactions (DYNT-1663) ([#12168](https://github.com/dynamic-labs/dynamic-auth/issues/12168)) ([000eb18](https://github.com/dynamic-labs/dynamic-auth/commit/000eb180aca8349804953ff7738c0ba984a2fa21))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* add PhoneNumberAlreadyLinkedError and map duplicate-phone backend code ([#12145](https://github.com/dynamic-labs/dynamic-auth/issues/12145)) ([9d13b5f](https://github.com/dynamic-labs/dynamic-auth/commit/9d13b5f8b22716b4c9ce206ee870aab5bd745b8b))
|
|
16
|
+
* **react-native-extension:** throw clear error when react-native-keychain native module is missing ([#12197](https://github.com/dynamic-labs/dynamic-auth/issues/12197)) ([b9983e1](https://github.com/dynamic-labs/dynamic-auth/commit/b9983e1f1aefa9a9bbdc1435f706a05e64f34f1c))
|
|
17
|
+
* security updates ([#12187](https://github.com/dynamic-labs/dynamic-auth/issues/12187)) ([d3a31e2](https://github.com/dynamic-labs/dynamic-auth/commit/d3a31e23533b6b7739851a3b747d62ba13d318b2))
|
|
18
|
+
* security updates ([#12208](https://github.com/dynamic-labs/dynamic-auth/issues/12208)) ([9e9472a](https://github.com/dynamic-labs/dynamic-auth/commit/9e9472acfbe01f7ac9e160829cc10e53c65f91e7))
|
|
19
|
+
* **sdk-react-core:** avoid spurious WaaS client rebuild on transient user sessionId churn ([#12182](https://github.com/dynamic-labs/dynamic-auth/issues/12182)) ([480b2ec](https://github.com/dynamic-labs/dynamic-auth/commit/480b2ecc87486a852e75e8814a76fb59ffe40c5d))
|
|
20
|
+
|
|
21
|
+
## [5.2.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.1.0...v5.2.0) (2026-08-06)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **webview-controller:** validate native SDK locale override before applying ([#12155](https://github.com/dynamic-labs/dynamic-auth/issues/12155)) ([4a9e1da](https://github.com/dynamic-labs/dynamic-auth/commit/4a9e1dafb59099c47d3678cc24f8475164c3db59))
|
|
27
|
+
|
|
2
28
|
## [5.1.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.0.0...v5.1.0) (2026-08-04)
|
|
3
29
|
|
|
4
30
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/types",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"./package.json": "./package.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
22
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.1118",
|
|
22
|
+
"@dynamic-labs/assert-package-version": "5.3.0"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {}
|
|
25
25
|
}
|
package/src/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
8
|
var sdkApiCore = require('@dynamic-labs/sdk-api-core');
|
|
9
9
|
var index = require('./oauth/index.cjs');
|
|
10
|
+
var wallets = require('./wallets/wallets.cjs');
|
|
10
11
|
var BaseWallet = require('./wallets/BaseWallet.cjs');
|
|
11
12
|
|
|
12
13
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/types', _package.version);
|
|
@@ -23,4 +24,5 @@ Object.defineProperty(exports, 'SocialOAuthErrorCode', {
|
|
|
23
24
|
enumerable: true,
|
|
24
25
|
get: function () { return index.SocialOAuthErrorCode; }
|
|
25
26
|
});
|
|
27
|
+
exports.TransactionScreeningChain = wallets.TransactionScreeningChain;
|
|
26
28
|
exports.BaseWallet = BaseWallet.BaseWallet;
|
package/src/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
|
3
3
|
import { version } from '../package.js';
|
|
4
4
|
export { ProviderEnum, ZerodevBundlerProvider } from '@dynamic-labs/sdk-api-core';
|
|
5
5
|
export { SocialOAuthErrorCode } from './oauth/index.js';
|
|
6
|
+
export { TransactionScreeningChain } from './wallets/wallets.js';
|
|
6
7
|
export { BaseWallet } from './wallets/BaseWallet.js';
|
|
7
8
|
|
|
8
9
|
assertPackageVersion('@dynamic-labs/types', version);
|
package/src/wallets/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type { WalletUiUtils, WalletAddressType } from './wallets';
|
|
1
|
+
export type { ScreenTransactionArgs, TransactionScreeningContext, TransactionScreeningService, WalletUiUtils, WalletAddressType, } from './wallets';
|
|
2
|
+
export { TransactionScreeningChain } from './wallets';
|
|
2
3
|
export { BaseWallet } from './BaseWallet';
|
|
3
4
|
export type { BaseWalletProps } from './BaseWallet';
|
|
4
5
|
export type { WalletOptionMetadata, HardwareWallet, WalletDeepLinks, WalletDownloadLinks, WalletEvent, WalletLimitations, WalletLinks, WalletMetadata, WalletMethod, } from './walletOptions';
|
package/src/wallets/wallets.d.ts
CHANGED
|
@@ -24,3 +24,36 @@ export type WalletUiUtils<TWalletConnector> = {
|
|
|
24
24
|
}) => Promise<boolean>;
|
|
25
25
|
};
|
|
26
26
|
export type WalletAddressType = 'payment' | 'ordinals';
|
|
27
|
+
export declare const TransactionScreeningChain: {
|
|
28
|
+
readonly BTC: "BTC";
|
|
29
|
+
readonly EVM: "EVM";
|
|
30
|
+
readonly SOL: "SOL";
|
|
31
|
+
};
|
|
32
|
+
export type TransactionScreeningChain = typeof TransactionScreeningChain[keyof typeof TransactionScreeningChain];
|
|
33
|
+
export type TransactionScreeningContext = {
|
|
34
|
+
btcTransaction?: {
|
|
35
|
+
chainId: string;
|
|
36
|
+
psbt?: string;
|
|
37
|
+
recipientAddress?: string;
|
|
38
|
+
};
|
|
39
|
+
evmTransaction?: {
|
|
40
|
+
to?: string;
|
|
41
|
+
};
|
|
42
|
+
svmTransaction?: {
|
|
43
|
+
serializedTransactions: string[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export type ScreenTransactionArgs = {
|
|
47
|
+
chain: TransactionScreeningChain;
|
|
48
|
+
chainId?: string;
|
|
49
|
+
senderAddress?: string;
|
|
50
|
+
context: TransactionScreeningContext;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Pre-signing destination screening for connected wallets. Best-effort by
|
|
54
|
+
* construction: implementations must resolve on allow and on any screening
|
|
55
|
+
* failure (fail-open), and reject only on an explicit block decision.
|
|
56
|
+
*/
|
|
57
|
+
export type TransactionScreeningService = {
|
|
58
|
+
screenTransaction: (args: ScreenTransactionArgs) => Promise<void>;
|
|
59
|
+
};
|