@b3dotfun/sdk 0.1.68 → 0.1.69-alpha.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.
Files changed (281) hide show
  1. package/dist/cjs/anyspend/platform/client.d.ts +35 -0
  2. package/dist/cjs/anyspend/platform/client.js +158 -0
  3. package/dist/cjs/anyspend/platform/errors.d.ts +38 -0
  4. package/dist/cjs/anyspend/platform/errors.js +77 -0
  5. package/dist/cjs/anyspend/platform/index.d.ts +87 -0
  6. package/dist/cjs/anyspend/platform/index.js +85 -0
  7. package/dist/cjs/anyspend/platform/resources/analytics.d.ts +7 -0
  8. package/dist/cjs/anyspend/platform/resources/analytics.js +12 -0
  9. package/dist/cjs/anyspend/platform/resources/checkout-sessions.d.ts +17 -0
  10. package/dist/cjs/anyspend/platform/resources/checkout-sessions.js +27 -0
  11. package/dist/cjs/anyspend/platform/resources/customers.d.ts +19 -0
  12. package/dist/cjs/anyspend/platform/resources/customers.js +34 -0
  13. package/dist/cjs/anyspend/platform/resources/discount-codes.d.ts +29 -0
  14. package/dist/cjs/anyspend/platform/resources/discount-codes.js +31 -0
  15. package/dist/cjs/anyspend/platform/resources/events.d.ts +14 -0
  16. package/dist/cjs/anyspend/platform/resources/events.js +16 -0
  17. package/dist/cjs/anyspend/platform/resources/notifications.d.ts +18 -0
  18. package/dist/cjs/anyspend/platform/resources/notifications.js +27 -0
  19. package/dist/cjs/anyspend/platform/resources/organization.d.ts +17 -0
  20. package/dist/cjs/anyspend/platform/resources/organization.js +15 -0
  21. package/dist/cjs/anyspend/platform/resources/payment-links.d.ts +21 -0
  22. package/dist/cjs/anyspend/platform/resources/payment-links.js +49 -0
  23. package/dist/cjs/anyspend/platform/resources/products.d.ts +27 -0
  24. package/dist/cjs/anyspend/platform/resources/products.js +31 -0
  25. package/dist/cjs/anyspend/platform/resources/transactions.d.ts +11 -0
  26. package/dist/cjs/anyspend/platform/resources/transactions.js +25 -0
  27. package/dist/cjs/anyspend/platform/resources/webhooks.d.ts +14 -0
  28. package/dist/cjs/anyspend/platform/resources/webhooks.js +33 -0
  29. package/dist/cjs/anyspend/platform/resources/widgets.d.ts +38 -0
  30. package/dist/cjs/anyspend/platform/resources/widgets.js +31 -0
  31. package/dist/cjs/anyspend/platform/types.d.ts +478 -0
  32. package/dist/cjs/anyspend/platform/types.js +5 -0
  33. package/dist/cjs/anyspend/platform/utils/idempotency.d.ts +4 -0
  34. package/dist/cjs/anyspend/platform/utils/idempotency.js +17 -0
  35. package/dist/cjs/anyspend/platform/utils/pagination.d.ts +12 -0
  36. package/dist/cjs/anyspend/platform/utils/pagination.js +22 -0
  37. package/dist/cjs/anyspend/react/components/AnySpend.d.ts +5 -1
  38. package/dist/cjs/anyspend/react/components/AnySpend.js +127 -16
  39. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +4 -4
  40. package/dist/cjs/anyspend/react/components/AnySpendCustomExactIn.js +2 -2
  41. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.d.ts +14 -6
  42. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckout.js +55 -8
  43. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  44. package/dist/cjs/anyspend/react/components/checkout/AnySpendCheckoutTrigger.js +2 -2
  45. package/dist/cjs/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +5 -1
  46. package/dist/cjs/anyspend/react/components/checkout/CheckoutPaymentPanel.js +2 -2
  47. package/dist/cjs/anyspend/react/components/checkout/CryptoPayPanel.js +1 -1
  48. package/dist/cjs/anyspend/react/components/checkout/FiatCheckoutPanel.d.ts +5 -1
  49. package/dist/cjs/anyspend/react/components/checkout/FiatCheckoutPanel.js +48 -16
  50. package/dist/cjs/anyspend/react/components/checkout/KycGate.d.ts +11 -0
  51. package/dist/cjs/anyspend/react/components/checkout/KycGate.js +203 -0
  52. package/dist/cjs/anyspend/react/components/checkout/VariablePricingInput.d.ts +17 -0
  53. package/dist/cjs/anyspend/react/components/checkout/VariablePricingInput.js +145 -0
  54. package/dist/cjs/anyspend/react/components/common/CryptoPaymentMethod.js +1 -1
  55. package/dist/cjs/anyspend/react/components/common/FeeDetailPanel.js +1 -1
  56. package/dist/cjs/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
  57. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +1 -1
  58. package/dist/cjs/anyspend/react/components/common/PointsDetailPanel.js +1 -1
  59. package/dist/cjs/anyspend/react/components/common/RecipientSelection.js +1 -1
  60. package/dist/cjs/anyspend/react/components/index.d.ts +1 -1
  61. package/dist/cjs/anyspend/react/hooks/index.d.ts +1 -0
  62. package/dist/cjs/anyspend/react/hooks/index.js +1 -0
  63. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -0
  64. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +14 -0
  65. package/dist/cjs/anyspend/react/hooks/useKycStatus.d.ts +47 -0
  66. package/dist/cjs/anyspend/react/hooks/useKycStatus.js +124 -0
  67. package/dist/cjs/anyspend/services/anyspend.d.ts +4 -1
  68. package/dist/cjs/anyspend/services/anyspend.js +3 -1
  69. package/dist/cjs/global-account/react/components/B3DynamicModal.js +1 -1
  70. package/dist/cjs/global-account/react/components/B3Provider/AuthenticationProvider.d.ts +3 -1
  71. package/dist/cjs/global-account/react/components/B3Provider/AuthenticationProvider.js +2 -1
  72. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +4 -2
  73. package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +2 -2
  74. package/dist/cjs/global-account/react/components/ManageAccount/BottomNavigation.js +3 -3
  75. package/dist/cjs/global-account/react/components/ManageAccount/HomeActions.js +1 -1
  76. package/dist/cjs/global-account/react/components/ManageAccount/channels/TelegramChannel.js +1 -1
  77. package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +1 -1
  78. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -5
  79. package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
  80. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +1 -1
  81. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +21 -24
  82. package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +1 -1
  83. package/dist/cjs/global-account/react/hooks/useAuth.js +1 -1
  84. package/dist/cjs/global-account/react/hooks/useAuthentication.d.ts +3 -1
  85. package/dist/cjs/global-account/react/hooks/useAuthentication.js +94 -24
  86. package/dist/cjs/global-account/react/hooks/useAutoSelectWallet.d.ts +6 -3
  87. package/dist/cjs/global-account/react/hooks/useAutoSelectWallet.js +31 -3
  88. package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +2 -1
  89. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +4 -0
  90. package/dist/cjs/global-account/react/stores/useModalStore.js +2 -0
  91. package/dist/cjs/global-account/react/utils/createWagmiConfig.d.ts +18 -0
  92. package/dist/cjs/global-account/react/utils/createWagmiConfig.js +17 -0
  93. package/dist/esm/anyspend/platform/client.d.ts +35 -0
  94. package/dist/esm/anyspend/platform/client.js +153 -0
  95. package/dist/esm/anyspend/platform/errors.d.ts +38 -0
  96. package/dist/esm/anyspend/platform/errors.js +67 -0
  97. package/dist/esm/anyspend/platform/index.d.ts +87 -0
  98. package/dist/esm/anyspend/platform/index.js +75 -0
  99. package/dist/esm/anyspend/platform/resources/analytics.d.ts +7 -0
  100. package/dist/esm/anyspend/platform/resources/analytics.js +8 -0
  101. package/dist/esm/anyspend/platform/resources/checkout-sessions.d.ts +17 -0
  102. package/dist/esm/anyspend/platform/resources/checkout-sessions.js +23 -0
  103. package/dist/esm/anyspend/platform/resources/customers.d.ts +19 -0
  104. package/dist/esm/anyspend/platform/resources/customers.js +30 -0
  105. package/dist/esm/anyspend/platform/resources/discount-codes.d.ts +29 -0
  106. package/dist/esm/anyspend/platform/resources/discount-codes.js +27 -0
  107. package/dist/esm/anyspend/platform/resources/events.d.ts +14 -0
  108. package/dist/esm/anyspend/platform/resources/events.js +12 -0
  109. package/dist/esm/anyspend/platform/resources/notifications.d.ts +18 -0
  110. package/dist/esm/anyspend/platform/resources/notifications.js +23 -0
  111. package/dist/esm/anyspend/platform/resources/organization.d.ts +17 -0
  112. package/dist/esm/anyspend/platform/resources/organization.js +11 -0
  113. package/dist/esm/anyspend/platform/resources/payment-links.d.ts +21 -0
  114. package/dist/esm/anyspend/platform/resources/payment-links.js +45 -0
  115. package/dist/esm/anyspend/platform/resources/products.d.ts +27 -0
  116. package/dist/esm/anyspend/platform/resources/products.js +27 -0
  117. package/dist/esm/anyspend/platform/resources/transactions.d.ts +11 -0
  118. package/dist/esm/anyspend/platform/resources/transactions.js +21 -0
  119. package/dist/esm/anyspend/platform/resources/webhooks.d.ts +14 -0
  120. package/dist/esm/anyspend/platform/resources/webhooks.js +29 -0
  121. package/dist/esm/anyspend/platform/resources/widgets.d.ts +38 -0
  122. package/dist/esm/anyspend/platform/resources/widgets.js +27 -0
  123. package/dist/esm/anyspend/platform/types.d.ts +478 -0
  124. package/dist/esm/anyspend/platform/types.js +4 -0
  125. package/dist/esm/anyspend/platform/utils/idempotency.d.ts +4 -0
  126. package/dist/esm/anyspend/platform/utils/idempotency.js +14 -0
  127. package/dist/esm/anyspend/platform/utils/pagination.d.ts +12 -0
  128. package/dist/esm/anyspend/platform/utils/pagination.js +19 -0
  129. package/dist/esm/anyspend/react/components/AnySpend.d.ts +5 -1
  130. package/dist/esm/anyspend/react/components/AnySpend.js +128 -17
  131. package/dist/esm/anyspend/react/components/AnySpendCustom.js +4 -4
  132. package/dist/esm/anyspend/react/components/AnySpendCustomExactIn.js +2 -2
  133. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.d.ts +14 -6
  134. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckout.js +55 -8
  135. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  136. package/dist/esm/anyspend/react/components/checkout/AnySpendCheckoutTrigger.js +2 -2
  137. package/dist/esm/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +5 -1
  138. package/dist/esm/anyspend/react/components/checkout/CheckoutPaymentPanel.js +2 -2
  139. package/dist/esm/anyspend/react/components/checkout/CryptoPayPanel.js +1 -1
  140. package/dist/esm/anyspend/react/components/checkout/FiatCheckoutPanel.d.ts +5 -1
  141. package/dist/esm/anyspend/react/components/checkout/FiatCheckoutPanel.js +50 -18
  142. package/dist/esm/anyspend/react/components/checkout/KycGate.d.ts +11 -0
  143. package/dist/esm/anyspend/react/components/checkout/KycGate.js +167 -0
  144. package/dist/esm/anyspend/react/components/checkout/VariablePricingInput.d.ts +17 -0
  145. package/dist/esm/anyspend/react/components/checkout/VariablePricingInput.js +142 -0
  146. package/dist/esm/anyspend/react/components/common/CryptoPaymentMethod.js +1 -1
  147. package/dist/esm/anyspend/react/components/common/FeeDetailPanel.js +1 -1
  148. package/dist/esm/anyspend/react/components/common/FiatPaymentMethod.js +2 -2
  149. package/dist/esm/anyspend/react/components/common/OrderDetails.js +1 -1
  150. package/dist/esm/anyspend/react/components/common/PointsDetailPanel.js +1 -1
  151. package/dist/esm/anyspend/react/components/common/RecipientSelection.js +1 -1
  152. package/dist/esm/anyspend/react/components/index.d.ts +1 -1
  153. package/dist/esm/anyspend/react/hooks/index.d.ts +1 -0
  154. package/dist/esm/anyspend/react/hooks/index.js +1 -0
  155. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -0
  156. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +14 -0
  157. package/dist/esm/anyspend/react/hooks/useKycStatus.d.ts +47 -0
  158. package/dist/esm/anyspend/react/hooks/useKycStatus.js +117 -0
  159. package/dist/esm/anyspend/services/anyspend.d.ts +4 -1
  160. package/dist/esm/anyspend/services/anyspend.js +3 -1
  161. package/dist/esm/global-account/react/components/B3DynamicModal.js +1 -1
  162. package/dist/esm/global-account/react/components/B3Provider/AuthenticationProvider.d.ts +3 -1
  163. package/dist/esm/global-account/react/components/B3Provider/AuthenticationProvider.js +2 -1
  164. package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +4 -2
  165. package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +2 -2
  166. package/dist/esm/global-account/react/components/ManageAccount/BottomNavigation.js +3 -3
  167. package/dist/esm/global-account/react/components/ManageAccount/HomeActions.js +1 -1
  168. package/dist/esm/global-account/react/components/ManageAccount/channels/TelegramChannel.js +1 -1
  169. package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +1 -1
  170. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -5
  171. package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
  172. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +1 -1
  173. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +21 -24
  174. package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +1 -1
  175. package/dist/esm/global-account/react/hooks/useAuth.js +2 -2
  176. package/dist/esm/global-account/react/hooks/useAuthentication.d.ts +3 -1
  177. package/dist/esm/global-account/react/hooks/useAuthentication.js +94 -24
  178. package/dist/esm/global-account/react/hooks/useAutoSelectWallet.d.ts +6 -3
  179. package/dist/esm/global-account/react/hooks/useAutoSelectWallet.js +33 -5
  180. package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +2 -1
  181. package/dist/esm/global-account/react/stores/useModalStore.d.ts +4 -0
  182. package/dist/esm/global-account/react/stores/useModalStore.js +2 -0
  183. package/dist/esm/global-account/react/utils/createWagmiConfig.d.ts +18 -0
  184. package/dist/esm/global-account/react/utils/createWagmiConfig.js +16 -0
  185. package/dist/styles/index.css +1 -1
  186. package/dist/types/anyspend/platform/client.d.ts +35 -0
  187. package/dist/types/anyspend/platform/errors.d.ts +38 -0
  188. package/dist/types/anyspend/platform/index.d.ts +87 -0
  189. package/dist/types/anyspend/platform/resources/analytics.d.ts +7 -0
  190. package/dist/types/anyspend/platform/resources/checkout-sessions.d.ts +17 -0
  191. package/dist/types/anyspend/platform/resources/customers.d.ts +19 -0
  192. package/dist/types/anyspend/platform/resources/discount-codes.d.ts +29 -0
  193. package/dist/types/anyspend/platform/resources/events.d.ts +14 -0
  194. package/dist/types/anyspend/platform/resources/notifications.d.ts +18 -0
  195. package/dist/types/anyspend/platform/resources/organization.d.ts +17 -0
  196. package/dist/types/anyspend/platform/resources/payment-links.d.ts +21 -0
  197. package/dist/types/anyspend/platform/resources/products.d.ts +27 -0
  198. package/dist/types/anyspend/platform/resources/transactions.d.ts +11 -0
  199. package/dist/types/anyspend/platform/resources/webhooks.d.ts +14 -0
  200. package/dist/types/anyspend/platform/resources/widgets.d.ts +38 -0
  201. package/dist/types/anyspend/platform/types.d.ts +478 -0
  202. package/dist/types/anyspend/platform/utils/idempotency.d.ts +4 -0
  203. package/dist/types/anyspend/platform/utils/pagination.d.ts +12 -0
  204. package/dist/types/anyspend/react/components/AnySpend.d.ts +5 -1
  205. package/dist/types/anyspend/react/components/checkout/AnySpendCheckout.d.ts +14 -6
  206. package/dist/types/anyspend/react/components/checkout/AnySpendCheckoutTrigger.d.ts +3 -1
  207. package/dist/types/anyspend/react/components/checkout/CheckoutPaymentPanel.d.ts +5 -1
  208. package/dist/types/anyspend/react/components/checkout/FiatCheckoutPanel.d.ts +5 -1
  209. package/dist/types/anyspend/react/components/checkout/KycGate.d.ts +11 -0
  210. package/dist/types/anyspend/react/components/checkout/VariablePricingInput.d.ts +17 -0
  211. package/dist/types/anyspend/react/components/index.d.ts +1 -1
  212. package/dist/types/anyspend/react/hooks/index.d.ts +1 -0
  213. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -0
  214. package/dist/types/anyspend/react/hooks/useKycStatus.d.ts +47 -0
  215. package/dist/types/anyspend/services/anyspend.d.ts +4 -1
  216. package/dist/types/global-account/react/components/B3Provider/AuthenticationProvider.d.ts +3 -1
  217. package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +4 -2
  218. package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +1 -1
  219. package/dist/types/global-account/react/hooks/useAuthentication.d.ts +3 -1
  220. package/dist/types/global-account/react/hooks/useAutoSelectWallet.d.ts +6 -3
  221. package/dist/types/global-account/react/stores/useModalStore.d.ts +4 -0
  222. package/dist/types/global-account/react/utils/createWagmiConfig.d.ts +18 -0
  223. package/package.json +7 -1
  224. package/src/anyspend/docs/checkout-sessions.md +20 -3
  225. package/src/anyspend/platform/client.ts +198 -0
  226. package/src/anyspend/platform/errors.ts +92 -0
  227. package/src/anyspend/platform/index.ts +129 -0
  228. package/src/anyspend/platform/resources/analytics.ts +10 -0
  229. package/src/anyspend/platform/resources/checkout-sessions.ts +36 -0
  230. package/src/anyspend/platform/resources/customers.ts +54 -0
  231. package/src/anyspend/platform/resources/discount-codes.ts +63 -0
  232. package/src/anyspend/platform/resources/events.ts +22 -0
  233. package/src/anyspend/platform/resources/notifications.ts +37 -0
  234. package/src/anyspend/platform/resources/organization.ts +24 -0
  235. package/src/anyspend/platform/resources/payment-links.ts +74 -0
  236. package/src/anyspend/platform/resources/products.ts +59 -0
  237. package/src/anyspend/platform/resources/transactions.ts +33 -0
  238. package/src/anyspend/platform/resources/webhooks.ts +47 -0
  239. package/src/anyspend/platform/resources/widgets.ts +63 -0
  240. package/src/anyspend/platform/types.ts +532 -0
  241. package/src/anyspend/platform/utils/idempotency.ts +15 -0
  242. package/src/anyspend/platform/utils/pagination.ts +32 -0
  243. package/src/anyspend/react/components/AnySpend.tsx +152 -18
  244. package/src/anyspend/react/components/AnySpendCustom.tsx +4 -4
  245. package/src/anyspend/react/components/AnySpendCustomExactIn.tsx +2 -2
  246. package/src/anyspend/react/components/checkout/AnySpendCheckout.tsx +81 -18
  247. package/src/anyspend/react/components/checkout/AnySpendCheckoutTrigger.tsx +4 -0
  248. package/src/anyspend/react/components/checkout/CheckoutPaymentPanel.tsx +8 -0
  249. package/src/anyspend/react/components/checkout/CryptoPayPanel.tsx +4 -13
  250. package/src/anyspend/react/components/checkout/FiatCheckoutPanel.tsx +86 -17
  251. package/src/anyspend/react/components/checkout/KycGate.tsx +387 -0
  252. package/src/anyspend/react/components/checkout/VariablePricingInput.tsx +247 -0
  253. package/src/anyspend/react/components/common/CryptoPaymentMethod.tsx +1 -1
  254. package/src/anyspend/react/components/common/FeeDetailPanel.tsx +1 -1
  255. package/src/anyspend/react/components/common/FiatPaymentMethod.tsx +2 -2
  256. package/src/anyspend/react/components/common/OrderDetails.tsx +1 -1
  257. package/src/anyspend/react/components/common/PointsDetailPanel.tsx +1 -1
  258. package/src/anyspend/react/components/common/RecipientSelection.tsx +1 -1
  259. package/src/anyspend/react/components/index.ts +1 -0
  260. package/src/anyspend/react/hooks/index.ts +1 -0
  261. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +17 -0
  262. package/src/anyspend/react/hooks/useKycStatus.ts +150 -0
  263. package/src/anyspend/services/anyspend.ts +7 -0
  264. package/src/global-account/react/components/B3DynamicModal.tsx +0 -2
  265. package/src/global-account/react/components/B3Provider/AuthenticationProvider.tsx +4 -0
  266. package/src/global-account/react/components/B3Provider/B3Provider.tsx +9 -2
  267. package/src/global-account/react/components/ManageAccount/BottomNavigation.tsx +7 -7
  268. package/src/global-account/react/components/ManageAccount/HomeActions.tsx +2 -2
  269. package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +7 -7
  270. package/src/global-account/react/components/ManageAccount/channels/TelegramChannel.tsx +1 -1
  271. package/src/global-account/react/components/SignInWithB3/SignIn.tsx +1 -1
  272. package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +13 -5
  273. package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +1 -1
  274. package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +35 -25
  275. package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +1 -1
  276. package/src/global-account/react/hooks/useAuth.ts +2 -2
  277. package/src/global-account/react/hooks/useAuthentication.ts +92 -27
  278. package/src/global-account/react/hooks/useAutoSelectWallet.ts +40 -6
  279. package/src/global-account/react/hooks/useGetAllTWSigners.tsx +2 -1
  280. package/src/global-account/react/stores/useModalStore.ts +6 -0
  281. package/src/global-account/react/utils/createWagmiConfig.tsx +18 -0
@@ -0,0 +1,14 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { ApiEvent, ListResponse, PaginationParams } from "../types";
3
+ export interface ListEventsParams extends PaginationParams {
4
+ event_type?: string;
5
+ resource_type?: string;
6
+ from?: number;
7
+ to?: number;
8
+ }
9
+ export declare class EventsResource {
10
+ private client;
11
+ constructor(client: HttpClient);
12
+ list(params?: ListEventsParams): Promise<ListResponse<ApiEvent>>;
13
+ listAutoPaginate(params?: Omit<ListEventsParams, "page">): AsyncGenerator<ApiEvent>;
14
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventsResource = void 0;
4
+ const pagination_1 = require("../utils/pagination");
5
+ class EventsResource {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ async list(params) {
10
+ return this.client.get("/events", params);
11
+ }
12
+ async *listAutoPaginate(params) {
13
+ yield* (0, pagination_1.autoPaginate)((page, limit) => this.list({ ...params, page, limit }), { limit: params?.limit });
14
+ }
15
+ }
16
+ exports.EventsResource = EventsResource;
@@ -0,0 +1,18 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { NotificationSettings, UpdateNotificationSettingsParams, ActionResponse } from "../types";
3
+ export interface TelegramLinkResult {
4
+ object: "telegram_link";
5
+ link_url: string;
6
+ link_code: string;
7
+ expires_at: number;
8
+ }
9
+ export declare class NotificationsResource {
10
+ private client;
11
+ constructor(client: HttpClient);
12
+ get(): Promise<NotificationSettings>;
13
+ update(params: UpdateNotificationSettingsParams): Promise<NotificationSettings>;
14
+ linkTelegram(): Promise<TelegramLinkResult>;
15
+ unlinkTelegram(): Promise<ActionResponse>;
16
+ testEmail(): Promise<ActionResponse>;
17
+ testTelegram(): Promise<ActionResponse>;
18
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationsResource = void 0;
4
+ class NotificationsResource {
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ async get() {
9
+ return this.client.get("/notifications");
10
+ }
11
+ async update(params) {
12
+ return this.client.patch("/notifications", params);
13
+ }
14
+ async linkTelegram() {
15
+ return this.client.post("/notifications/telegram/link");
16
+ }
17
+ async unlinkTelegram() {
18
+ return this.client.post("/notifications/telegram/unlink");
19
+ }
20
+ async testEmail() {
21
+ return this.client.post("/notifications/test/email");
22
+ }
23
+ async testTelegram() {
24
+ return this.client.post("/notifications/test/telegram");
25
+ }
26
+ }
27
+ exports.NotificationsResource = NotificationsResource;
@@ -0,0 +1,17 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { Organization } from "../types";
3
+ export interface UpdateOrganizationParams {
4
+ name?: string;
5
+ description?: string;
6
+ logo_url?: string;
7
+ website_url?: string;
8
+ default_recipient_address?: string;
9
+ default_chain_id?: number;
10
+ default_token_address?: string;
11
+ }
12
+ export declare class OrganizationResource {
13
+ private client;
14
+ constructor(client: HttpClient);
15
+ get(): Promise<Organization>;
16
+ update(params: UpdateOrganizationParams): Promise<Organization>;
17
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationResource = void 0;
4
+ class OrganizationResource {
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ async get() {
9
+ return this.client.get("/organization");
10
+ }
11
+ async update(params) {
12
+ return this.client.patch("/organization", params);
13
+ }
14
+ }
15
+ exports.OrganizationResource = OrganizationResource;
@@ -0,0 +1,21 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { PaymentLink, PaymentLinkItem, PaymentLinkStats, CheckoutSession, ListResponse, DeletedResponse, CreatePaymentLinkParams, CreatePaymentLinkItemParams, UpdatePaymentLinkParams, ListPaymentLinksParams, PaginationParams } from "../types";
3
+ export declare class PaymentLinksResource {
4
+ private client;
5
+ constructor(client: HttpClient);
6
+ list(params?: ListPaymentLinksParams): Promise<ListResponse<PaymentLink>>;
7
+ listAutoPaginate(params?: Omit<ListPaymentLinksParams, "page">): AsyncGenerator<PaymentLink>;
8
+ create(params: CreatePaymentLinkParams): Promise<PaymentLink>;
9
+ get(id: string): Promise<PaymentLink>;
10
+ update(id: string, params: UpdatePaymentLinkParams): Promise<PaymentLink>;
11
+ delete(id: string): Promise<DeletedResponse>;
12
+ duplicate(id: string, overrides?: Partial<CreatePaymentLinkParams>): Promise<PaymentLink>;
13
+ stats(id: string, days?: number): Promise<PaymentLinkStats>;
14
+ sessions(id: string, params?: PaginationParams): Promise<ListResponse<CheckoutSession>>;
15
+ visitors(id: string, params?: PaginationParams & {
16
+ days?: number;
17
+ }): Promise<ListResponse<Record<string, unknown>>>;
18
+ items(id: string): Promise<PaymentLinkItem[]>;
19
+ addItem(id: string, item: CreatePaymentLinkItemParams): Promise<PaymentLinkItem>;
20
+ removeItem(id: string, itemId: string): Promise<DeletedResponse>;
21
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentLinksResource = void 0;
4
+ const pagination_1 = require("../utils/pagination");
5
+ class PaymentLinksResource {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ async list(params) {
10
+ return this.client.get("/payment-links", params);
11
+ }
12
+ async *listAutoPaginate(params) {
13
+ yield* (0, pagination_1.autoPaginate)((page, limit) => this.list({ ...params, page, limit }), { limit: params?.limit });
14
+ }
15
+ async create(params) {
16
+ return this.client.post("/payment-links", params);
17
+ }
18
+ async get(id) {
19
+ return this.client.get(`/payment-links/${id}`);
20
+ }
21
+ async update(id, params) {
22
+ return this.client.patch(`/payment-links/${id}`, params);
23
+ }
24
+ async delete(id) {
25
+ return this.client.delete(`/payment-links/${id}`);
26
+ }
27
+ async duplicate(id, overrides) {
28
+ return this.client.post(`/payment-links/${id}/duplicate`, overrides ?? {});
29
+ }
30
+ async stats(id, days) {
31
+ return this.client.get(`/payment-links/${id}/stats`, days !== undefined ? { days } : undefined);
32
+ }
33
+ async sessions(id, params) {
34
+ return this.client.get(`/payment-links/${id}/sessions`, params);
35
+ }
36
+ async visitors(id, params) {
37
+ return this.client.get(`/payment-links/${id}/visitors`, params);
38
+ }
39
+ async items(id) {
40
+ return this.client.get(`/payment-links/${id}/items`);
41
+ }
42
+ async addItem(id, item) {
43
+ return this.client.post(`/payment-links/${id}/items`, item);
44
+ }
45
+ async removeItem(id, itemId) {
46
+ return this.client.delete(`/payment-links/${id}/items/${itemId}`);
47
+ }
48
+ }
49
+ exports.PaymentLinksResource = PaymentLinksResource;
@@ -0,0 +1,27 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { Product, PaymentLink, ListResponse, DeletedResponse, CreateProductParams, UpdateProductParams, PaginationParams } from "../types";
3
+ export interface ListProductsParams extends PaginationParams {
4
+ search?: string;
5
+ active?: "true" | "false";
6
+ product_type?: "one_time" | "subscription" | "variable";
7
+ sort?: "created_at" | "updated_at" | "name";
8
+ order?: "asc" | "desc";
9
+ }
10
+ export interface GenerateLinkParams {
11
+ recipient_address?: string;
12
+ name?: string;
13
+ description?: string;
14
+ theme_color?: string;
15
+ button_text?: string;
16
+ }
17
+ export declare class ProductsResource {
18
+ private client;
19
+ constructor(client: HttpClient);
20
+ list(params?: ListProductsParams): Promise<ListResponse<Product>>;
21
+ listAutoPaginate(params?: Omit<ListProductsParams, "page">): AsyncGenerator<Product>;
22
+ create(params: CreateProductParams): Promise<Product>;
23
+ get(id: string): Promise<Product>;
24
+ update(id: string, params: UpdateProductParams): Promise<Product>;
25
+ delete(id: string): Promise<DeletedResponse>;
26
+ generateLink(id: string, params?: GenerateLinkParams): Promise<PaymentLink>;
27
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductsResource = void 0;
4
+ const pagination_1 = require("../utils/pagination");
5
+ class ProductsResource {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ async list(params) {
10
+ return this.client.get("/products", params);
11
+ }
12
+ async *listAutoPaginate(params) {
13
+ yield* (0, pagination_1.autoPaginate)((page, limit) => this.list({ ...params, page, limit }), { limit: params?.limit });
14
+ }
15
+ async create(params) {
16
+ return this.client.post("/products", params);
17
+ }
18
+ async get(id) {
19
+ return this.client.get(`/products/${id}`);
20
+ }
21
+ async update(id, params) {
22
+ return this.client.patch(`/products/${id}`, params);
23
+ }
24
+ async delete(id) {
25
+ return this.client.delete(`/products/${id}`);
26
+ }
27
+ async generateLink(id, params) {
28
+ return this.client.post(`/products/${id}/generate-link`, params ?? {});
29
+ }
30
+ }
31
+ exports.ProductsResource = ProductsResource;
@@ -0,0 +1,11 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { Transaction, TransactionStats, ListResponse, ListTransactionsParams, ExportTransactionsParams } from "../types";
3
+ export declare class TransactionsResource {
4
+ private client;
5
+ constructor(client: HttpClient);
6
+ list(params?: ListTransactionsParams): Promise<ListResponse<Transaction>>;
7
+ listAutoPaginate(params?: Omit<ListTransactionsParams, "page">): AsyncGenerator<Transaction>;
8
+ get(id: string): Promise<Transaction>;
9
+ stats(): Promise<TransactionStats>;
10
+ export(params?: ExportTransactionsParams): Promise<string>;
11
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionsResource = void 0;
4
+ const pagination_1 = require("../utils/pagination");
5
+ class TransactionsResource {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ async list(params) {
10
+ return this.client.get("/transactions", params);
11
+ }
12
+ async *listAutoPaginate(params) {
13
+ yield* (0, pagination_1.autoPaginate)((page, limit) => this.list({ ...params, page, limit }), { limit: params?.limit });
14
+ }
15
+ async get(id) {
16
+ return this.client.get(`/transactions/${id}`);
17
+ }
18
+ async stats() {
19
+ return this.client.get("/transactions/stats");
20
+ }
21
+ async export(params) {
22
+ return this.client.get("/transactions/export", params);
23
+ }
24
+ }
25
+ exports.TransactionsResource = TransactionsResource;
@@ -0,0 +1,14 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { Webhook, WebhookDelivery, ListResponse, DeletedResponse, ActionResponse, CreateWebhookParams, UpdateWebhookParams, PaginationParams } from "../types";
3
+ export declare class WebhooksResource {
4
+ private client;
5
+ constructor(client: HttpClient);
6
+ list(): Promise<ListResponse<Webhook>>;
7
+ create(params: CreateWebhookParams): Promise<Webhook>;
8
+ get(id: string): Promise<Webhook>;
9
+ update(id: string, params: UpdateWebhookParams): Promise<Webhook>;
10
+ delete(id: string): Promise<DeletedResponse>;
11
+ test(id: string): Promise<ActionResponse>;
12
+ deliveries(id: string, params?: PaginationParams): Promise<ListResponse<WebhookDelivery>>;
13
+ retry(id: string, deliveryId: string): Promise<ActionResponse>;
14
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhooksResource = void 0;
4
+ class WebhooksResource {
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ async list() {
9
+ return this.client.get("/webhooks");
10
+ }
11
+ async create(params) {
12
+ return this.client.post("/webhooks", params);
13
+ }
14
+ async get(id) {
15
+ return this.client.get(`/webhooks/${id}`);
16
+ }
17
+ async update(id, params) {
18
+ return this.client.patch(`/webhooks/${id}`, params);
19
+ }
20
+ async delete(id) {
21
+ return this.client.delete(`/webhooks/${id}`);
22
+ }
23
+ async test(id) {
24
+ return this.client.post(`/webhooks/${id}/test`);
25
+ }
26
+ async deliveries(id, params) {
27
+ return this.client.get(`/webhooks/${id}/deliveries`, params);
28
+ }
29
+ async retry(id, deliveryId) {
30
+ return this.client.post(`/webhooks/${id}/deliveries/${deliveryId}/retry`);
31
+ }
32
+ }
33
+ exports.WebhooksResource = WebhooksResource;
@@ -0,0 +1,38 @@
1
+ import type { HttpClient } from "../client";
2
+ import type { WidgetConfig, ListResponse, DeletedResponse, CreateWidgetParams, PaginationParams } from "../types";
3
+ export interface ListWidgetsParams extends PaginationParams {
4
+ search?: string;
5
+ widget_type?: "swap" | "checkout" | "nft" | "deposit";
6
+ active?: "true" | "false";
7
+ sort?: "created_at" | "updated_at" | "name" | "current_views";
8
+ order?: "asc" | "desc";
9
+ }
10
+ export interface UpdateWidgetParams extends Partial<CreateWidgetParams> {
11
+ is_active?: boolean;
12
+ }
13
+ export interface WidgetStats {
14
+ object: "widget_stats";
15
+ widget_id: string;
16
+ summary: {
17
+ total_views: number;
18
+ total_interactions: number;
19
+ total_completions: number;
20
+ };
21
+ daily: {
22
+ date: string;
23
+ views: number;
24
+ interactions: number;
25
+ completions: number;
26
+ }[];
27
+ }
28
+ export declare class WidgetsResource {
29
+ private client;
30
+ constructor(client: HttpClient);
31
+ list(params?: ListWidgetsParams): Promise<ListResponse<WidgetConfig>>;
32
+ listAutoPaginate(params?: Omit<ListWidgetsParams, "page">): AsyncGenerator<WidgetConfig>;
33
+ create(params: CreateWidgetParams): Promise<WidgetConfig>;
34
+ get(id: string): Promise<WidgetConfig>;
35
+ update(id: string, params: UpdateWidgetParams): Promise<WidgetConfig>;
36
+ delete(id: string): Promise<DeletedResponse>;
37
+ stats(id: string, days?: number): Promise<WidgetStats>;
38
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WidgetsResource = void 0;
4
+ const pagination_1 = require("../utils/pagination");
5
+ class WidgetsResource {
6
+ constructor(client) {
7
+ this.client = client;
8
+ }
9
+ async list(params) {
10
+ return this.client.get("/widgets", params);
11
+ }
12
+ async *listAutoPaginate(params) {
13
+ yield* (0, pagination_1.autoPaginate)((page, limit) => this.list({ ...params, page, limit }), { limit: params?.limit });
14
+ }
15
+ async create(params) {
16
+ return this.client.post("/widgets", params);
17
+ }
18
+ async get(id) {
19
+ return this.client.get(`/widgets/${id}`);
20
+ }
21
+ async update(id, params) {
22
+ return this.client.patch(`/widgets/${id}`, params);
23
+ }
24
+ async delete(id) {
25
+ return this.client.delete(`/widgets/${id}`);
26
+ }
27
+ async stats(id, days) {
28
+ return this.client.get(`/widgets/${id}/stats`, days !== undefined ? { days } : undefined);
29
+ }
30
+ }
31
+ exports.WidgetsResource = WidgetsResource;