decane-connect-kit 2.12.0 → 2.12.1

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.d.cts CHANGED
@@ -755,6 +755,17 @@ interface SocialConfig {
755
755
  */
756
756
  kingsChatScopes?: string[];
757
757
  promptPin?: () => Promise<string>;
758
+ /**
759
+ * Called when the SDK needs the device unlock password — to choose one
760
+ * (`kind: 'set'`, ask twice) or to enter it (`kind: 'unlock'`).
761
+ *
762
+ * Required on any device using "unlock with your password". Unlike promptPin,
763
+ * this secret can open a session on its own, so never log or persist it and
764
+ * let a password manager fill it.
765
+ */
766
+ promptUnlockPassword?: (ctx: {
767
+ kind: 'set' | 'unlock';
768
+ }) => Promise<string>;
758
769
  apiBaseUrl?: string;
759
770
  chains?: string[];
760
771
  rpcUrls?: Record<string, string>;
package/dist/index.d.ts CHANGED
@@ -755,6 +755,17 @@ interface SocialConfig {
755
755
  */
756
756
  kingsChatScopes?: string[];
757
757
  promptPin?: () => Promise<string>;
758
+ /**
759
+ * Called when the SDK needs the device unlock password — to choose one
760
+ * (`kind: 'set'`, ask twice) or to enter it (`kind: 'unlock'`).
761
+ *
762
+ * Required on any device using "unlock with your password". Unlike promptPin,
763
+ * this secret can open a session on its own, so never log or persist it and
764
+ * let a password manager fill it.
765
+ */
766
+ promptUnlockPassword?: (ctx: {
767
+ kind: 'set' | 'unlock';
768
+ }) => Promise<string>;
758
769
  apiBaseUrl?: string;
759
770
  chains?: string[];
760
771
  rpcUrls?: Record<string, string>;
package/dist/index.js CHANGED
@@ -6943,6 +6943,7 @@ function DecaneKit({ config, children }) {
6943
6943
  apiKey,
6944
6944
  authMethods,
6945
6945
  promptPin,
6946
+ promptUnlockPassword,
6946
6947
  apiBaseUrl,
6947
6948
  chains,
6948
6949
  rpcUrls,
@@ -6965,6 +6966,7 @@ function DecaneKit({ config, children }) {
6965
6966
  chains: chains ?? ["evm:1", "solana:mainnet"],
6966
6967
  rpcUrls,
6967
6968
  promptPin,
6969
+ promptUnlockPassword,
6968
6970
  requireAssertionPerSignature,
6969
6971
  offerRecoveryAtSignup,
6970
6972
  onRecoveryShareOffer,