@dynamic-labs-sdk/client 1.28.0 → 1.29.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.
Files changed (279) hide show
  1. package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewHost.kt +8 -3
  2. package/android/src/main/java/xyz/dynamic/client/webview/DynamicWebViewModule.kt +27 -0
  3. package/dist/core.cjs +30 -7
  4. package/dist/core.cjs.map +1 -1
  5. package/dist/core.esm.js +30 -7
  6. package/dist/core.esm.js.map +1 -1
  7. package/dist/core.native.esm.js +32 -9
  8. package/dist/core.native.esm.js.map +1 -1
  9. package/dist/exports/waas.d.ts +26 -2
  10. package/dist/exports/waas.d.ts.map +1 -1
  11. package/dist/{getNetworkProviderFromNetworkId-DBjVmBmy.esm.js → getNetworkProviderFromNetworkId-Be2CBFTv.esm.js} +2 -2
  12. package/dist/{getNetworkProviderFromNetworkId-DBjVmBmy.esm.js.map → getNetworkProviderFromNetworkId-Be2CBFTv.esm.js.map} +1 -1
  13. package/dist/{getNetworkProviderFromNetworkId-OhoRrL_X.cjs → getNetworkProviderFromNetworkId-BsmqXKF_.cjs} +2 -2
  14. package/dist/{getNetworkProviderFromNetworkId-OhoRrL_X.cjs.map → getNetworkProviderFromNetworkId-BsmqXKF_.cjs.map} +1 -1
  15. package/dist/{getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js → getNetworkProviderFromNetworkId-DReHSnab.native.esm.js} +7 -7
  16. package/dist/getNetworkProviderFromNetworkId-DReHSnab.native.esm.js.map +1 -0
  17. package/dist/{getSignedSessionId-BncZzHdQ.esm.js → getSignedSessionId-CLvqM34v.esm.js} +3 -3
  18. package/dist/{getSignedSessionId-BncZzHdQ.esm.js.map → getSignedSessionId-CLvqM34v.esm.js.map} +1 -1
  19. package/dist/{getSignedSessionId-gwqj9h2p.cjs → getSignedSessionId-CcV_jWux.cjs} +3 -3
  20. package/dist/{getSignedSessionId-gwqj9h2p.cjs.map → getSignedSessionId-CcV_jWux.cjs.map} +1 -1
  21. package/dist/{getSignedSessionId-Dwqj_Cxx.native.esm.js → getSignedSessionId-DdslNjRv.native.esm.js} +3 -3
  22. package/dist/{getSignedSessionId-Dwqj_Cxx.native.esm.js.map → getSignedSessionId-DdslNjRv.native.esm.js.map} +1 -1
  23. package/dist/{getWalletProviderByKey-CnpXHkmq.cjs → getWalletProviderByKey-BMsrnfN2.cjs} +2 -2
  24. package/dist/{getWalletProviderByKey-CnpXHkmq.cjs.map → getWalletProviderByKey-BMsrnfN2.cjs.map} +1 -1
  25. package/dist/{getWalletProviderByKey-Dh1slnTF.native.esm.js → getWalletProviderByKey-BtcGKhh6.native.esm.js} +2 -2
  26. package/dist/{getWalletProviderByKey-Dh1slnTF.native.esm.js.map → getWalletProviderByKey-BtcGKhh6.native.esm.js.map} +1 -1
  27. package/dist/{getWalletProviderByKey-C9TWlmDD.esm.js → getWalletProviderByKey-FfQmRcK1.esm.js} +2 -2
  28. package/dist/{getWalletProviderByKey-C9TWlmDD.esm.js.map → getWalletProviderByKey-FfQmRcK1.esm.js.map} +1 -1
  29. package/dist/index.cjs +41 -6
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.esm.js +41 -6
  32. package/dist/index.esm.js.map +1 -1
  33. package/dist/index.native.esm.js +44 -9
  34. package/dist/index.native.esm.js.map +1 -1
  35. package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js → isDynamicWaasEnabled-B8e0N7Bb.esm.js} +2 -2
  36. package/dist/{isDynamicWaasEnabled-D3-nDwVw.esm.js.map → isDynamicWaasEnabled-B8e0N7Bb.esm.js.map} +1 -1
  37. package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs → isDynamicWaasEnabled-DT4jhqkC.cjs} +2 -2
  38. package/dist/{isDynamicWaasEnabled-DnDhv_Uj.cjs.map → isDynamicWaasEnabled-DT4jhqkC.cjs.map} +1 -1
  39. package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js → isDynamicWaasEnabled-GTkHpRu6.native.esm.js} +2 -2
  40. package/dist/{isDynamicWaasEnabled-CvxVdfKf.native.esm.js.map → isDynamicWaasEnabled-GTkHpRu6.native.esm.js.map} +1 -1
  41. package/dist/{isMfaRequiredForAction-BjRiou3K.cjs → isMfaRequiredForAction-9ZrKcsTN.cjs} +2 -2
  42. package/dist/{isMfaRequiredForAction-BjRiou3K.cjs.map → isMfaRequiredForAction-9ZrKcsTN.cjs.map} +1 -1
  43. package/dist/{isMfaRequiredForAction-D5rzx59E.esm.js → isMfaRequiredForAction-DRqf4xyv.esm.js} +2 -2
  44. package/dist/{isMfaRequiredForAction-D5rzx59E.esm.js.map → isMfaRequiredForAction-DRqf4xyv.esm.js.map} +1 -1
  45. package/dist/{isMfaRequiredForAction-BJGirRfD.native.esm.js → isMfaRequiredForAction-e4Bdq2tD.native.esm.js} +2 -2
  46. package/dist/{isMfaRequiredForAction-BJGirRfD.native.esm.js.map → isMfaRequiredForAction-e4Bdq2tD.native.esm.js.map} +1 -1
  47. package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js → isUserOnboardingComplete-Bq_7_Fck.esm.js} +3 -3
  48. package/dist/{isUserOnboardingComplete-OFxAxj23.esm.js.map → isUserOnboardingComplete-Bq_7_Fck.esm.js.map} +1 -1
  49. package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs → isUserOnboardingComplete-DINsEIfi.cjs} +3 -3
  50. package/dist/{isUserOnboardingComplete-KCtF3oaO.cjs.map → isUserOnboardingComplete-DINsEIfi.cjs.map} +1 -1
  51. package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js → isUserOnboardingComplete-DKt0bwXg.native.esm.js} +3 -3
  52. package/dist/{isUserOnboardingComplete-B3cHYyNI.native.esm.js.map → isUserOnboardingComplete-DKt0bwXg.native.esm.js.map} +1 -1
  53. package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js → migrateFromFireblocks-3naM4iCQ.native.esm.js} +3 -3
  54. package/dist/{migrateFromFireblocks-DY0SAilk.native.esm.js.map → migrateFromFireblocks-3naM4iCQ.native.esm.js.map} +1 -1
  55. package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js → migrateFromFireblocks-DbTnFE38.esm.js} +3 -3
  56. package/dist/{migrateFromFireblocks-BM6Iaii-.esm.js.map → migrateFromFireblocks-DbTnFE38.esm.js.map} +1 -1
  57. package/dist/{migrateFromFireblocks-Dg6igmRk.cjs → migrateFromFireblocks-Dyh2dGWB.cjs} +3 -3
  58. package/dist/{migrateFromFireblocks-Dg6igmRk.cjs.map → migrateFromFireblocks-Dyh2dGWB.cjs.map} +1 -1
  59. package/dist/modules/auth/decodeJwt/decodeJwt.d.ts +2 -1
  60. package/dist/modules/auth/decodeJwt/decodeJwt.d.ts.map +1 -1
  61. package/dist/modules/auth/logoutReason.d.ts +1 -1
  62. package/dist/modules/auth/logoutReason.d.ts.map +1 -1
  63. package/dist/modules/initializeClient/initializeClient.d.ts.map +1 -1
  64. package/dist/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.d.ts +18 -0
  65. package/dist/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.d.ts.map +1 -0
  66. package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +2 -2
  67. package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
  68. package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts +27 -0
  69. package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts.map +1 -0
  70. package/dist/modules/waas/getWalletAccountShareSets/index.d.ts +3 -0
  71. package/dist/modules/waas/getWalletAccountShareSets/index.d.ts.map +1 -0
  72. package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts +25 -0
  73. package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts.map +1 -0
  74. package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts +18 -0
  75. package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts.map +1 -0
  76. package/dist/modules/waas/policies/applyPolicyLayerBatch/index.d.ts +2 -0
  77. package/dist/modules/waas/policies/applyPolicyLayerBatch/index.d.ts.map +1 -0
  78. package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts +10 -0
  79. package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts.map +1 -0
  80. package/dist/modules/waas/policies/buildAllowAddressesRule/index.d.ts +2 -0
  81. package/dist/modules/waas/policies/buildAllowAddressesRule/index.d.ts.map +1 -0
  82. package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts +11 -0
  83. package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts.map +1 -0
  84. package/dist/modules/waas/policies/buildAllowPolicyRule/index.d.ts +2 -0
  85. package/dist/modules/waas/policies/buildAllowPolicyRule/index.d.ts.map +1 -0
  86. package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts +11 -0
  87. package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts.map +1 -0
  88. package/dist/modules/waas/policies/buildBlockExportRule/index.d.ts +2 -0
  89. package/dist/modules/waas/policies/buildBlockExportRule/index.d.ts.map +1 -0
  90. package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts +8 -0
  91. package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts.map +1 -0
  92. package/dist/modules/waas/policies/buildDenyAddressesRule/index.d.ts +2 -0
  93. package/dist/modules/waas/policies/buildDenyAddressesRule/index.d.ts.map +1 -0
  94. package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts +11 -0
  95. package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts.map +1 -0
  96. package/dist/modules/waas/policies/buildDenyPolicyRule/index.d.ts +2 -0
  97. package/dist/modules/waas/policies/buildDenyPolicyRule/index.d.ts.map +1 -0
  98. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts +10 -0
  99. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts.map +1 -0
  100. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/index.d.ts +2 -0
  101. package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/index.d.ts.map +1 -0
  102. package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts +26 -0
  103. package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts.map +1 -0
  104. package/dist/modules/waas/policies/buildOperationForExistingRule/index.d.ts +2 -0
  105. package/dist/modules/waas/policies/buildOperationForExistingRule/index.d.ts.map +1 -0
  106. package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts +24 -0
  107. package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts.map +1 -0
  108. package/dist/modules/waas/policies/buildOperationsForRule/index.d.ts +2 -0
  109. package/dist/modules/waas/policies/buildOperationsForRule/index.d.ts.map +1 -0
  110. package/dist/modules/waas/policies/buildValueLimit/buildValueLimit.d.ts +10 -0
  111. package/dist/modules/waas/policies/buildValueLimit/buildValueLimit.d.ts.map +1 -0
  112. package/dist/modules/waas/policies/buildValueLimit/index.d.ts +2 -0
  113. package/dist/modules/waas/policies/buildValueLimit/index.d.ts.map +1 -0
  114. package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts +39 -0
  115. package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts.map +1 -0
  116. package/dist/modules/waas/policies/createPolicy/index.d.ts +2 -0
  117. package/dist/modules/waas/policies/createPolicy/index.d.ts.map +1 -0
  118. package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts +23 -0
  119. package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts.map +1 -0
  120. package/dist/modules/waas/policies/desugarPolicyRules/index.d.ts +2 -0
  121. package/dist/modules/waas/policies/desugarPolicyRules/index.d.ts.map +1 -0
  122. package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts +22 -0
  123. package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts.map +1 -0
  124. package/dist/modules/waas/policies/expandPolicyRules/index.d.ts +2 -0
  125. package/dist/modules/waas/policies/expandPolicyRules/index.d.ts.map +1 -0
  126. package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts +26 -0
  127. package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts.map +1 -0
  128. package/dist/modules/waas/policies/fillOmittedRuleValues/index.d.ts +2 -0
  129. package/dist/modules/waas/policies/fillOmittedRuleValues/index.d.ts.map +1 -0
  130. package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts +22 -0
  131. package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts.map +1 -0
  132. package/dist/modules/waas/policies/findMatchedRuleKind/index.d.ts +3 -0
  133. package/dist/modules/waas/policies/findMatchedRuleKind/index.d.ts.map +1 -0
  134. package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts +18 -0
  135. package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts.map +1 -0
  136. package/dist/modules/waas/policies/getAccountPolicyLayer/index.d.ts +2 -0
  137. package/dist/modules/waas/policies/getAccountPolicyLayer/index.d.ts.map +1 -0
  138. package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts +34 -0
  139. package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts.map +1 -0
  140. package/dist/modules/waas/policies/getPolicy/index.d.ts +2 -0
  141. package/dist/modules/waas/policies/getPolicy/index.d.ts.map +1 -0
  142. package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts +16 -0
  143. package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts.map +1 -0
  144. package/dist/modules/waas/policies/getResolvedPolicyLayer/index.d.ts +2 -0
  145. package/dist/modules/waas/policies/getResolvedPolicyLayer/index.d.ts.map +1 -0
  146. package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts +25 -0
  147. package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts.map +1 -0
  148. package/dist/modules/waas/policies/getSignerPolicyLayer/index.d.ts +2 -0
  149. package/dist/modules/waas/policies/getSignerPolicyLayer/index.d.ts.map +1 -0
  150. package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts +20 -0
  151. package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts.map +1 -0
  152. package/dist/modules/waas/policies/getWalletPolicyLayer/index.d.ts +2 -0
  153. package/dist/modules/waas/policies/getWalletPolicyLayer/index.d.ts.map +1 -0
  154. package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts +7 -0
  155. package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts.map +1 -0
  156. package/dist/modules/waas/policies/hasAddresses/index.d.ts +2 -0
  157. package/dist/modules/waas/policies/hasAddresses/index.d.ts.map +1 -0
  158. package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts +6 -0
  159. package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts.map +1 -0
  160. package/dist/modules/waas/policies/hasUnrecognizedFields/index.d.ts +2 -0
  161. package/dist/modules/waas/policies/hasUnrecognizedFields/index.d.ts.map +1 -0
  162. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/index.d.ts +2 -0
  163. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/index.d.ts.map +1 -0
  164. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts +14 -0
  165. package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts.map +1 -0
  166. package/dist/modules/waas/policies/matchExistingRules/index.d.ts +3 -0
  167. package/dist/modules/waas/policies/matchExistingRules/index.d.ts.map +1 -0
  168. package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts +33 -0
  169. package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts.map +1 -0
  170. package/dist/modules/waas/policies/policies.types.d.ts +91 -0
  171. package/dist/modules/waas/policies/policies.types.d.ts.map +1 -0
  172. package/dist/modules/waas/policies/policyRuleDefaultNames.d.ts +10 -0
  173. package/dist/modules/waas/policies/policyRuleDefaultNames.d.ts.map +1 -0
  174. package/dist/modules/waas/policies/policyRuleKinds.d.ts +34 -0
  175. package/dist/modules/waas/policies/policyRuleKinds.d.ts.map +1 -0
  176. package/dist/modules/waas/policies/readAllowAddressesRule/index.d.ts +2 -0
  177. package/dist/modules/waas/policies/readAllowAddressesRule/index.d.ts.map +1 -0
  178. package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts +9 -0
  179. package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts.map +1 -0
  180. package/dist/modules/waas/policies/readBlockExportRule/index.d.ts +2 -0
  181. package/dist/modules/waas/policies/readBlockExportRule/index.d.ts.map +1 -0
  182. package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts +8 -0
  183. package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts.map +1 -0
  184. package/dist/modules/waas/policies/readCoveredRule/index.d.ts +3 -0
  185. package/dist/modules/waas/policies/readCoveredRule/index.d.ts.map +1 -0
  186. package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts +31 -0
  187. package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts.map +1 -0
  188. package/dist/modules/waas/policies/readDenyAddressesRule/index.d.ts +2 -0
  189. package/dist/modules/waas/policies/readDenyAddressesRule/index.d.ts.map +1 -0
  190. package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts +8 -0
  191. package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts.map +1 -0
  192. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/index.d.ts +2 -0
  193. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/index.d.ts.map +1 -0
  194. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts +8 -0
  195. package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts.map +1 -0
  196. package/dist/modules/waas/policies/readValueLimit/index.d.ts +2 -0
  197. package/dist/modules/waas/policies/readValueLimit/index.d.ts.map +1 -0
  198. package/dist/modules/waas/policies/readValueLimit/readValueLimit.d.ts +10 -0
  199. package/dist/modules/waas/policies/readValueLimit/readValueLimit.d.ts.map +1 -0
  200. package/dist/modules/waas/policies/removeAccountPolicyRule/index.d.ts +2 -0
  201. package/dist/modules/waas/policies/removeAccountPolicyRule/index.d.ts.map +1 -0
  202. package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts +20 -0
  203. package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts.map +1 -0
  204. package/dist/modules/waas/policies/removePolicyRules/index.d.ts +2 -0
  205. package/dist/modules/waas/policies/removePolicyRules/index.d.ts.map +1 -0
  206. package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts +30 -0
  207. package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts.map +1 -0
  208. package/dist/modules/waas/policies/removeSignerPolicyRule/index.d.ts +2 -0
  209. package/dist/modules/waas/policies/removeSignerPolicyRule/index.d.ts.map +1 -0
  210. package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts +25 -0
  211. package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts.map +1 -0
  212. package/dist/modules/waas/policies/removeWalletPolicyRule/index.d.ts +2 -0
  213. package/dist/modules/waas/policies/removeWalletPolicyRule/index.d.ts.map +1 -0
  214. package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts +22 -0
  215. package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts.map +1 -0
  216. package/dist/modules/waas/policies/resolvePolicyScope/index.d.ts +3 -0
  217. package/dist/modules/waas/policies/resolvePolicyScope/index.d.ts.map +1 -0
  218. package/dist/modules/waas/policies/resolvePolicyScope/resolvePolicyScope.d.ts +31 -0
  219. package/dist/modules/waas/policies/resolvePolicyScope/resolvePolicyScope.d.ts.map +1 -0
  220. package/dist/modules/waas/policies/resolveRuleName/index.d.ts +2 -0
  221. package/dist/modules/waas/policies/resolveRuleName/index.d.ts.map +1 -0
  222. package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts +20 -0
  223. package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts.map +1 -0
  224. package/dist/modules/waas/policies/sameChainIds/index.d.ts +2 -0
  225. package/dist/modules/waas/policies/sameChainIds/index.d.ts.map +1 -0
  226. package/dist/modules/waas/policies/sameChainIds/sameChainIds.d.ts +14 -0
  227. package/dist/modules/waas/policies/sameChainIds/sameChainIds.d.ts.map +1 -0
  228. package/dist/modules/waas/policies/sortRulesByRuleId/index.d.ts +2 -0
  229. package/dist/modules/waas/policies/sortRulesByRuleId/index.d.ts.map +1 -0
  230. package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts +12 -0
  231. package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts.map +1 -0
  232. package/dist/modules/waas/policies/upsertAccountPolicyRule/index.d.ts +2 -0
  233. package/dist/modules/waas/policies/upsertAccountPolicyRule/index.d.ts.map +1 -0
  234. package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts +24 -0
  235. package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts.map +1 -0
  236. package/dist/modules/waas/policies/upsertSignerPolicyRule/index.d.ts +2 -0
  237. package/dist/modules/waas/policies/upsertSignerPolicyRule/index.d.ts.map +1 -0
  238. package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts +28 -0
  239. package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts.map +1 -0
  240. package/dist/modules/waas/policies/upsertWalletPolicyRule/index.d.ts +2 -0
  241. package/dist/modules/waas/policies/upsertWalletPolicyRule/index.d.ts.map +1 -0
  242. package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts +25 -0
  243. package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts.map +1 -0
  244. package/dist/modules/waas/signSerializedTransaction/index.d.ts +2 -0
  245. package/dist/modules/waas/signSerializedTransaction/index.d.ts.map +1 -0
  246. package/dist/modules/waas/signSerializedTransaction/signSerializedTransaction.d.ts +23 -0
  247. package/dist/modules/waas/signSerializedTransaction/signSerializedTransaction.d.ts.map +1 -0
  248. package/dist/modules/waas/waas.types.d.ts +22 -1
  249. package/dist/modules/waas/waas.types.d.ts.map +1 -1
  250. package/dist/modules/wallets/utils/convertVerifiedCredentialToWalletAccount/convertVerifiedCredentialToWalletAccount.d.ts.map +1 -1
  251. package/dist/modules/wallets/walletAccount/walletAccount.types.d.ts +0 -2
  252. package/dist/modules/wallets/walletAccount/walletAccount.types.d.ts.map +1 -1
  253. package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts +1 -0
  254. package/dist/modules/wallets/walletProvider/events/createWalletProviderEventEmitter/createWalletProviderEventEmitter.d.ts.map +1 -1
  255. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  256. package/dist/{updateAuthFromVerifyResponse-DcwFCD-Y.esm.js → updateAuthFromVerifyResponse-B42kkGLd.esm.js} +38 -15
  257. package/dist/updateAuthFromVerifyResponse-B42kkGLd.esm.js.map +1 -0
  258. package/dist/{updateAuthFromVerifyResponse-DD_rZDrQ.cjs → updateAuthFromVerifyResponse-CePaJzru.cjs} +43 -14
  259. package/dist/updateAuthFromVerifyResponse-CePaJzru.cjs.map +1 -0
  260. package/dist/{updateAuthFromVerifyResponse-DtnQfhJ1.native.esm.js → updateAuthFromVerifyResponse-Dd0q0rPX.native.esm.js} +38 -15
  261. package/dist/updateAuthFromVerifyResponse-Dd0q0rPX.native.esm.js.map +1 -0
  262. package/dist/utils/objectKeys/index.d.ts +2 -0
  263. package/dist/utils/objectKeys/index.d.ts.map +1 -0
  264. package/dist/utils/objectKeys/objectKeys.d.ts +8 -0
  265. package/dist/utils/objectKeys/objectKeys.d.ts.map +1 -0
  266. package/dist/waas.cjs +1198 -4
  267. package/dist/waas.cjs.map +1 -1
  268. package/dist/waas.esm.js +1176 -7
  269. package/dist/waas.esm.js.map +1 -1
  270. package/dist/waas.native.esm.js +1176 -7
  271. package/dist/waas.native.esm.js.map +1 -1
  272. package/dist/waasCore.cjs +6 -6
  273. package/dist/waasCore.esm.js +6 -6
  274. package/dist/waasCore.native.esm.js +6 -6
  275. package/package.json +4 -4
  276. package/dist/getNetworkProviderFromNetworkId-CKWQLHSE.native.esm.js.map +0 -1
  277. package/dist/updateAuthFromVerifyResponse-DD_rZDrQ.cjs.map +0 -1
  278. package/dist/updateAuthFromVerifyResponse-DcwFCD-Y.esm.js.map +0 -1
  279. package/dist/updateAuthFromVerifyResponse-DtnQfhJ1.native.esm.js.map +0 -1
package/dist/index.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import { $ as UnauthorizedError, A as isSignedIn, B as retryOnFail, C as getWalletProviderFromWalletAccount, Ct as version, D as NoWalletProviderFoundError, F as CHAINS_INFO_MAP, G as createApiClient, H as offEvent, I as formatWalletAccountId, L as normalizeAddress, O as generateSessionKeys, P as getChainFromVerifiedCredentialChain, Q as createStorageKeySchema, R as splitWalletProviderKey, S as extractSessionId, St as name, T as getWalletProviderRegistry, U as onEvent, V as emitEvent, W as onceEvent, X as fetchAndStoreNonces, Y as getNonce, Z as updateNoncePoolStorage, _ as instrumentFunction, _t as getDefaultClient, a as initializeWaasClientsForEagerRecovery, at as APIError, b as getUserAgent, bt as BaseError, ct as SDK_API_CORE_VERSION, dt as assertDefined, et as SandboxMaximumThresholdReachedError, f as getWalletProviders, ft as ValueMustBeDefinedError, g as __logoutWithReason_wrapped, gt as NONCE_POOL_SIZE, ht as getPlatform, i as InvalidParamError, it as InvalidExternalAuthError, j as getWalletAccounts, k as fetchProjectSettings, m as checkAndRaiseWalletAccountsChangedEvent, mt as randomString, n as upsertElevatedAccessToken, nt as MfaInvalidOtpError, p as isUserMissingMfaAuth, pt as getElevatedAccessToken, r as parseElevatedAccessToken, rt as LinkCredentialError, st as DYNAMIC_ICONIC_SPRITE_URL, t as updateAuthFromVerifyResponse, tt as MfaRateLimitedError, ut as isCookieEnabled, v as scrubParameters, vt as setDefaultClient, w as WalletProviderPriority, x as getOperatingSystem, xt as getCore, y as DEFAULT_PII_FIELDS } from "./updateAuthFromVerifyResponse-DcwFCD-Y.esm.js";
2
- import { A as createCrossTabBroadcast, B as getBuffer, C as getKeychainIndexedDBName, D as assertSafeNavigationUrl, E as createKeychainService, F as FETCH_PROJECT_SETTINGS_TRACKER_KEY, G as createLocalStorageAdapter, H as isEqualShallow, I as GENERATE_SESSION_KEYS_TRACKER_KEY, K as isServerSideRendering, L as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, M as CannotTrackError, N as createDeferredPromise, P as createAppForegroundSubscriber, R as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, S as MergeAccountsConfirmationError, T as assertSafeDeeplinkUrl, U as createStorage, V as subscribeWithSelector, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, k as createLogger, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, q as UnavailableInServerSideError, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-DBjVmBmy.esm.js";
3
- import { i as __refreshAuth_wrapped, n as TransactionBroadcastError, r as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-D3-nDwVw.esm.js";
4
- import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasLoadFailedError, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-OFxAxj23.esm.js";
5
- import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-C9TWlmDD.esm.js";
6
- import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-D5rzx59E.esm.js";
1
+ import { $ as createStorageKeySchema, A as fetchProjectSettings, C as extractSessionId, Ct as name, E as getWalletProviderRegistry, F as getChainFromVerifiedCredentialChain, G as onceEvent, H as emitEvent, I as CHAINS_INFO_MAP, K as createApiClient, L as formatWalletAccountId, M as getWalletAccounts, O as NoWalletProviderFoundError, Q as updateNoncePoolStorage, R as normalizeAddress, S as getOperatingSystem, St as getCore, T as WalletProviderPriority, U as offEvent, V as retryOnFail, W as onEvent, X as getNonce, Z as fetchAndStoreNonces, _ as __logoutWithReason_wrapped, _t as NONCE_POOL_SIZE, a as InvalidParamError, at as InvalidExternalAuthError, b as DEFAULT_PII_FIELDS, ct as DYNAMIC_ICONIC_SPRITE_URL, dt as isCookieEnabled, et as UnauthorizedError, ft as assertDefined, gt as getPlatform, h as checkAndRaiseWalletAccountsChangedEvent, ht as randomString, i as decodeJwt, it as LinkCredentialError, j as isSignedIn, k as generateSessionKeys, lt as SDK_API_CORE_VERSION, m as isUserMissingMfaAuth, mt as getElevatedAccessToken, n as upsertElevatedAccessToken, nt as MfaRateLimitedError, o as initializeWaasClientsForEagerRecovery, ot as APIError, p as getWalletProviders, pt as ValueMustBeDefinedError, r as parseElevatedAccessToken, rt as MfaInvalidOtpError, t as updateAuthFromVerifyResponse, tt as SandboxMaximumThresholdReachedError, v as instrumentFunction, vt as getDefaultClient, w as getWalletProviderFromWalletAccount, wt as version, x as getUserAgent, xt as BaseError, y as scrubParameters, yt as setDefaultClient, z as splitWalletProviderKey } from "./updateAuthFromVerifyResponse-B42kkGLd.esm.js";
2
+ import { A as createCrossTabBroadcast, B as getBuffer, C as getKeychainIndexedDBName, D as assertSafeNavigationUrl, E as createKeychainService, F as FETCH_PROJECT_SETTINGS_TRACKER_KEY, G as createLocalStorageAdapter, H as isEqualShallow, I as GENERATE_SESSION_KEYS_TRACKER_KEY, K as isServerSideRendering, L as INITIALIZE_STORAGE_SYNC_TRACKER_KEY, M as CannotTrackError, N as createDeferredPromise, P as createAppForegroundSubscriber, R as REFRESH_USER_STATE_FROM_COOKIE_TRACKER_KEY, S as MergeAccountsConfirmationError, T as assertSafeDeeplinkUrl, U as createStorage, V as subscribeWithSelector, _ as consumeCaptchaToken, a as verifyMessageSignatureOwnership, b as WalletAlreadyLinkedToAnotherUserError, c as formatSignInMessage, d as updateWalletProviderKeysForVerifiedCredentials, f as setUnverifiedWalletAccounts, g as MethodNotImplementedError, h as __setCaptchaToken_wrapped, i as getNetworksData, k as createLogger, l as getAppMetadata, m as hasExtension, o as removeUnverifiedWalletAccount, p as createVisit, q as UnavailableInServerSideError, s as createSignInMessageStatement, t as getNetworkProviderFromNetworkId, u as reconcileWalletAccountsAgainstClient, v as isCaptchaRequired, w as createRealtimeService, x as NoNetworkProvidersError, y as WalletScreeningBlockedError, z as REFRESH_USER_STATE_FROM_VALID_TOKEN_TRACKER_KEY } from "./getNetworkProviderFromNetworkId-Be2CBFTv.esm.js";
3
+ import { i as __refreshAuth_wrapped, n as TransactionBroadcastError, r as NotWaasWalletAccountError } from "./isDynamicWaasEnabled-B8e0N7Bb.esm.js";
4
+ import { a as WaasOnboardingIncompleteError, i as preconnectWaasIframe, n as isPendingRecoveryCodesAcknowledgment, o as WaasLoadFailedError, r as isDeviceRegistrationRequired, t as isUserOnboardingComplete } from "./isUserOnboardingComplete-Bq_7_Fck.esm.js";
5
+ import { n as getVerifiedCredentialForWalletAccount, t as getWalletProviderByKey } from "./getWalletProviderByKey-FfQmRcK1.esm.js";
6
+ import { n as getMfaMethods, r as __consumeMfaToken_wrapped, t as isMfaRequiredForAction } from "./isMfaRequiredForAction-DRqf4xyv.esm.js";
7
7
  import { assertPackageVersion } from "@dynamic-labs-sdk/assert-package-version";
8
8
  import { AuthModeEnum, CaptchaProviderEnum as CaptchaProviderEnum$1, ChainEnum, ExchangeKeyEnum, JwtVerifiedCredentialFormatEnum, JwtVerifiedCredentialFormatEnum as JwtVerifiedCredentialFormatEnum$1, MFAAction, MfaBackupCodeAcknowledgement, ProviderEnum, ProviderEnum as ProviderEnum$1, TokenScope, TokenScope as TokenScope$1, WaasBackupOptionsEnum, WalletProviderEnum } from "@dynamic-labs/sdk-api-core";
9
9
  import * as z from "zod/mini";
@@ -405,6 +405,40 @@ var ClientAlreadyInitializedError = class extends BaseError {
405
405
  }
406
406
  };
407
407
 
408
+ //#endregion
409
+ //#region src/modules/initializeClient/logoutIfSessionPublicKeyMismatched/logoutIfSessionPublicKeyMismatched.ts
410
+ /**
411
+ * Signs the user out when the local session key no longer matches the
412
+ * `sessionPublicKey` claim carried by the current token.
413
+ *
414
+ * The claim is captured once at sign-in and carried forward unchanged on
415
+ * every token refresh (it is not re-derived from the client's current
416
+ * session key). If the local session key is regenerated afterwards — e.g. a
417
+ * re-init racing a token refresh, or storage being partially cleared — every
418
+ * subsequent request keeps signing with the new key while asserting the
419
+ * stale claim, and is rejected server-side with `invalid_nonce_signature`
420
+ * forever, since retrying never re-syncs the claim. Signing out forces a
421
+ * fresh sign-in, which is the only flow that re-captures the claim from the
422
+ * client's current key.
423
+ * @notInstrumented
424
+ */
425
+ const logoutIfSessionPublicKeyMismatched = async (client) => {
426
+ const core = getCore(client);
427
+ const { sessionKeys, token } = core.state.get();
428
+ if (!sessionKeys || !token) return;
429
+ let tokenSessionPublicKey;
430
+ try {
431
+ ({sessionPublicKey: tokenSessionPublicKey} = decodeJwt(token));
432
+ } catch (error) {
433
+ core.logger.error("[logoutIfSessionPublicKeyMismatched] Failed to decode token", error);
434
+ return;
435
+ }
436
+ if (tokenSessionPublicKey && tokenSessionPublicKey !== sessionKeys) {
437
+ core.logger.error("[logoutIfSessionPublicKeyMismatched] Session key does not match token claim");
438
+ await __logoutWithReason_wrapped({ reason: "session-public-key-mismatch" }, client);
439
+ }
440
+ };
441
+
408
442
  //#endregion
409
443
  //#region src/modules/initializeClient/initializeClient.ts
410
444
  /**
@@ -458,6 +492,7 @@ const initializeClient = async (client = getDefaultClient()) => {
458
492
  storage: core.storage
459
493
  }).catch(() => __logoutWithReason_wrapped({ reason: "keychain-migration-failed" }, client));
460
494
  if (core.state.get().sessionKeys && !await core.keychain.hasKey("session")) await __logoutWithReason_wrapped({ reason: "keychain-key-missing" }, client);
495
+ await logoutIfSessionPublicKeyMismatched(client);
461
496
  }).then(async () => {
462
497
  if (!core.state.get().projectSettings) await fetchProjectSettings(client);
463
498
  });