@metamask/profile-sync-controller 0.5.0 → 0.6.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 (606) hide show
  1. package/CHANGELOG.md +38 -1
  2. package/dist/controllers/authentication/AuthenticationController.cjs +211 -0
  3. package/dist/controllers/authentication/AuthenticationController.cjs.map +1 -0
  4. package/dist/{types/controllers/authentication/AuthenticationController.d.ts → controllers/authentication/AuthenticationController.d.cts} +5 -5
  5. package/dist/controllers/authentication/AuthenticationController.d.cts.map +1 -0
  6. package/dist/controllers/authentication/AuthenticationController.d.mts +78 -0
  7. package/dist/controllers/authentication/AuthenticationController.d.mts.map +1 -0
  8. package/dist/controllers/authentication/AuthenticationController.mjs +206 -11
  9. package/dist/controllers/authentication/AuthenticationController.mjs.map +1 -1
  10. package/dist/controllers/authentication/__fixtures__/index.cjs +18 -0
  11. package/dist/controllers/authentication/__fixtures__/index.cjs.map +1 -0
  12. package/dist/controllers/authentication/__fixtures__/index.d.cts +2 -0
  13. package/dist/controllers/authentication/__fixtures__/index.d.cts.map +1 -0
  14. package/dist/controllers/authentication/__fixtures__/index.d.mts +2 -0
  15. package/dist/controllers/authentication/__fixtures__/index.d.mts.map +1 -0
  16. package/dist/controllers/authentication/__fixtures__/index.mjs +2 -0
  17. package/dist/controllers/authentication/__fixtures__/index.mjs.map +1 -0
  18. package/dist/controllers/authentication/__fixtures__/mockResponses.cjs +52 -0
  19. package/dist/controllers/authentication/__fixtures__/mockResponses.cjs.map +1 -0
  20. package/dist/{types/controllers/authentication/__fixtures__/mockResponses.d.ts → controllers/authentication/__fixtures__/mockResponses.d.cts} +2 -2
  21. package/dist/controllers/authentication/__fixtures__/mockResponses.d.cts.map +1 -0
  22. package/dist/controllers/authentication/__fixtures__/mockResponses.d.mts +23 -0
  23. package/dist/controllers/authentication/__fixtures__/mockResponses.d.mts.map +1 -0
  24. package/dist/controllers/authentication/__fixtures__/mockResponses.mjs +46 -0
  25. package/dist/controllers/authentication/__fixtures__/mockResponses.mjs.map +1 -0
  26. package/dist/controllers/authentication/__fixtures__/mockServices.cjs +37 -0
  27. package/dist/controllers/authentication/__fixtures__/mockServices.cjs.map +1 -0
  28. package/dist/{types/controllers/authentication/__fixtures__/mockServices.d.ts → controllers/authentication/__fixtures__/mockServices.d.cts} +2 -2
  29. package/dist/controllers/authentication/__fixtures__/mockServices.d.cts.map +1 -0
  30. package/dist/controllers/authentication/__fixtures__/mockServices.d.mts +10 -0
  31. package/dist/controllers/authentication/__fixtures__/mockServices.d.mts.map +1 -0
  32. package/dist/controllers/authentication/__fixtures__/mockServices.mjs +35 -0
  33. package/dist/controllers/authentication/__fixtures__/mockServices.mjs.map +1 -0
  34. package/dist/controllers/authentication/auth-snap-requests.cjs +39 -0
  35. package/dist/controllers/authentication/auth-snap-requests.cjs.map +1 -0
  36. package/dist/{types/controllers/authentication/auth-snap-requests.d.ts → controllers/authentication/auth-snap-requests.d.cts} +2 -2
  37. package/dist/controllers/authentication/auth-snap-requests.d.cts.map +1 -0
  38. package/dist/controllers/authentication/auth-snap-requests.d.mts +17 -0
  39. package/dist/controllers/authentication/auth-snap-requests.d.mts.map +1 -0
  40. package/dist/controllers/authentication/auth-snap-requests.mjs +33 -9
  41. package/dist/controllers/authentication/auth-snap-requests.mjs.map +1 -1
  42. package/dist/controllers/authentication/index.cjs +39 -0
  43. package/dist/controllers/authentication/index.cjs.map +1 -0
  44. package/dist/controllers/authentication/index.d.cts +7 -0
  45. package/dist/controllers/authentication/index.d.cts.map +1 -0
  46. package/dist/controllers/authentication/index.d.mts +7 -0
  47. package/dist/controllers/authentication/index.d.mts.map +1 -0
  48. package/dist/controllers/authentication/index.mjs +6 -18
  49. package/dist/controllers/authentication/index.mjs.map +1 -1
  50. package/dist/controllers/authentication/services.cjs +127 -0
  51. package/dist/controllers/authentication/services.cjs.map +1 -0
  52. package/dist/{types/controllers/authentication/services.d.ts → controllers/authentication/services.d.cts} +1 -1
  53. package/dist/controllers/authentication/services.d.cts.map +1 -0
  54. package/dist/controllers/authentication/services.d.mts +70 -0
  55. package/dist/controllers/authentication/services.d.mts.map +1 -0
  56. package/dist/controllers/authentication/services.mjs +118 -19
  57. package/dist/controllers/authentication/services.mjs.map +1 -1
  58. package/dist/controllers/index.cjs +29 -0
  59. package/dist/controllers/index.cjs.map +1 -0
  60. package/dist/controllers/index.d.cts +3 -0
  61. package/dist/controllers/index.d.cts.map +1 -0
  62. package/dist/controllers/index.d.mts +3 -0
  63. package/dist/controllers/index.d.mts.map +1 -0
  64. package/dist/controllers/index.mjs +2 -24
  65. package/dist/controllers/index.mjs.map +1 -1
  66. package/dist/controllers/user-storage/UserStorageController.cjs +462 -0
  67. package/dist/controllers/user-storage/UserStorageController.cjs.map +1 -0
  68. package/dist/{types/controllers/user-storage/UserStorageController.d.ts → controllers/user-storage/UserStorageController.d.cts} +44 -15
  69. package/dist/controllers/user-storage/UserStorageController.d.cts.map +1 -0
  70. package/dist/controllers/user-storage/UserStorageController.d.mts +156 -0
  71. package/dist/controllers/user-storage/UserStorageController.d.mts.map +1 -0
  72. package/dist/controllers/user-storage/UserStorageController.mjs +457 -18
  73. package/dist/controllers/user-storage/UserStorageController.mjs.map +1 -1
  74. package/dist/controllers/user-storage/__fixtures__/index.cjs +19 -0
  75. package/dist/controllers/user-storage/__fixtures__/index.cjs.map +1 -0
  76. package/dist/controllers/user-storage/__fixtures__/index.d.cts +3 -0
  77. package/dist/controllers/user-storage/__fixtures__/index.d.cts.map +1 -0
  78. package/dist/controllers/user-storage/__fixtures__/index.d.mts +3 -0
  79. package/dist/controllers/user-storage/__fixtures__/index.d.mts.map +1 -0
  80. package/dist/controllers/user-storage/__fixtures__/index.mjs +3 -0
  81. package/dist/controllers/user-storage/__fixtures__/index.mjs.map +1 -0
  82. package/dist/controllers/user-storage/__fixtures__/mockAccounts.cjs +127 -0
  83. package/dist/controllers/user-storage/__fixtures__/mockAccounts.cjs.map +1 -0
  84. package/dist/{types/controllers/user-storage/__fixtures__/mockAccounts.d.ts → controllers/user-storage/__fixtures__/mockAccounts.d.cts} +6 -6
  85. package/dist/controllers/user-storage/__fixtures__/mockAccounts.d.cts.map +1 -0
  86. package/dist/controllers/user-storage/__fixtures__/mockAccounts.d.mts +63 -0
  87. package/dist/controllers/user-storage/__fixtures__/mockAccounts.d.mts.map +1 -0
  88. package/dist/controllers/user-storage/__fixtures__/mockAccounts.mjs +123 -0
  89. package/dist/controllers/user-storage/__fixtures__/mockAccounts.mjs.map +1 -0
  90. package/dist/controllers/user-storage/__fixtures__/mockResponses.cjs +48 -0
  91. package/dist/controllers/user-storage/__fixtures__/mockResponses.cjs.map +1 -0
  92. package/dist/{types/controllers/user-storage/__fixtures__/mockResponses.d.ts → controllers/user-storage/__fixtures__/mockResponses.d.cts} +6 -4
  93. package/dist/controllers/user-storage/__fixtures__/mockResponses.d.cts.map +1 -0
  94. package/dist/controllers/user-storage/__fixtures__/mockResponses.d.mts +21 -0
  95. package/dist/controllers/user-storage/__fixtures__/mockResponses.d.mts.map +1 -0
  96. package/dist/controllers/user-storage/__fixtures__/mockResponses.mjs +39 -0
  97. package/dist/controllers/user-storage/__fixtures__/mockResponses.mjs.map +1 -0
  98. package/dist/controllers/user-storage/__fixtures__/mockServices.cjs +41 -0
  99. package/dist/controllers/user-storage/__fixtures__/mockServices.cjs.map +1 -0
  100. package/dist/{types/controllers/user-storage/__fixtures__/mockServices.d.ts → controllers/user-storage/__fixtures__/mockServices.d.cts} +3 -3
  101. package/dist/controllers/user-storage/__fixtures__/mockServices.d.cts.map +1 -0
  102. package/dist/controllers/user-storage/__fixtures__/mockServices.d.mts +11 -0
  103. package/dist/controllers/user-storage/__fixtures__/mockServices.d.mts.map +1 -0
  104. package/dist/controllers/user-storage/__fixtures__/mockServices.mjs +39 -0
  105. package/dist/controllers/user-storage/__fixtures__/mockServices.mjs.map +1 -0
  106. package/dist/controllers/user-storage/__fixtures__/mockStorage.cjs +36 -0
  107. package/dist/controllers/user-storage/__fixtures__/mockStorage.cjs.map +1 -0
  108. package/dist/{types/controllers/user-storage/__fixtures__/mockStorage.d.ts → controllers/user-storage/__fixtures__/mockStorage.d.cts} +2 -2
  109. package/dist/controllers/user-storage/__fixtures__/mockStorage.d.cts.map +1 -0
  110. package/dist/controllers/user-storage/__fixtures__/mockStorage.d.mts +5 -0
  111. package/dist/controllers/user-storage/__fixtures__/mockStorage.d.mts.map +1 -0
  112. package/dist/controllers/user-storage/__fixtures__/mockStorage.mjs +9 -0
  113. package/dist/controllers/user-storage/__fixtures__/mockStorage.mjs.map +1 -0
  114. package/dist/controllers/user-storage/__fixtures__/test-utils.cjs +31 -0
  115. package/dist/controllers/user-storage/__fixtures__/test-utils.cjs.map +1 -0
  116. package/dist/controllers/user-storage/__fixtures__/test-utils.d.cts +14 -0
  117. package/dist/controllers/user-storage/__fixtures__/test-utils.d.cts.map +1 -0
  118. package/dist/controllers/user-storage/__fixtures__/test-utils.d.mts +14 -0
  119. package/dist/controllers/user-storage/__fixtures__/test-utils.d.mts.map +1 -0
  120. package/dist/controllers/user-storage/__fixtures__/test-utils.mjs +27 -0
  121. package/dist/controllers/user-storage/__fixtures__/test-utils.mjs.map +1 -0
  122. package/dist/controllers/user-storage/accounts/constants.cjs +51 -0
  123. package/dist/controllers/user-storage/accounts/constants.cjs.map +1 -0
  124. package/dist/{types/controllers/user-storage/accounts/constants.d.ts → controllers/user-storage/accounts/constants.d.cts} +1 -1
  125. package/dist/controllers/user-storage/accounts/constants.d.cts.map +1 -0
  126. package/dist/controllers/user-storage/accounts/constants.d.mts +4 -0
  127. package/dist/controllers/user-storage/accounts/constants.d.mts.map +1 -0
  128. package/dist/controllers/user-storage/accounts/constants.mjs +47 -11
  129. package/dist/controllers/user-storage/accounts/constants.mjs.map +1 -1
  130. package/dist/controllers/user-storage/accounts/user-storage.cjs +34 -0
  131. package/dist/controllers/user-storage/accounts/user-storage.cjs.map +1 -0
  132. package/dist/{types/controllers/user-storage/accounts/user-storage.d.ts → controllers/user-storage/accounts/user-storage.d.cts} +3 -3
  133. package/dist/controllers/user-storage/accounts/user-storage.d.cts.map +1 -0
  134. package/dist/controllers/user-storage/accounts/user-storage.d.mts +32 -0
  135. package/dist/controllers/user-storage/accounts/user-storage.d.mts.map +1 -0
  136. package/dist/controllers/user-storage/accounts/user-storage.mjs +27 -9
  137. package/dist/controllers/user-storage/accounts/user-storage.mjs.map +1 -1
  138. package/dist/controllers/user-storage/encryption/cache.cjs +79 -0
  139. package/dist/controllers/user-storage/encryption/cache.cjs.map +1 -0
  140. package/dist/{types/controllers/user-storage/encryption/cache.d.ts → controllers/user-storage/encryption/cache.d.cts} +1 -1
  141. package/dist/controllers/user-storage/encryption/cache.d.cts.map +1 -0
  142. package/dist/controllers/user-storage/encryption/cache.d.mts +31 -0
  143. package/dist/controllers/user-storage/encryption/cache.d.mts.map +1 -0
  144. package/dist/controllers/user-storage/encryption/cache.mjs +71 -11
  145. package/dist/controllers/user-storage/encryption/cache.mjs.map +1 -1
  146. package/dist/controllers/user-storage/encryption/encryption.cjs +151 -0
  147. package/dist/controllers/user-storage/encryption/encryption.cjs.map +1 -0
  148. package/dist/{types/controllers/user-storage/encryption/encryption.d.ts → controllers/user-storage/encryption/encryption.d.cts} +2 -2
  149. package/dist/controllers/user-storage/encryption/encryption.d.cts.map +1 -0
  150. package/dist/controllers/user-storage/encryption/encryption.d.mts +27 -0
  151. package/dist/controllers/user-storage/encryption/encryption.d.mts.map +1 -0
  152. package/dist/controllers/user-storage/encryption/encryption.mjs +145 -10
  153. package/dist/controllers/user-storage/encryption/encryption.mjs.map +1 -1
  154. package/dist/controllers/user-storage/encryption/index.cjs +25 -0
  155. package/dist/controllers/user-storage/encryption/index.cjs.map +1 -0
  156. package/dist/controllers/user-storage/encryption/index.d.cts +5 -0
  157. package/dist/controllers/user-storage/encryption/index.d.cts.map +1 -0
  158. package/dist/controllers/user-storage/encryption/index.d.mts +5 -0
  159. package/dist/controllers/user-storage/encryption/index.d.mts.map +1 -0
  160. package/dist/controllers/user-storage/encryption/index.mjs +4 -15
  161. package/dist/controllers/user-storage/encryption/index.mjs.map +1 -1
  162. package/dist/controllers/user-storage/encryption/utils.cjs +17 -0
  163. package/dist/controllers/user-storage/encryption/utils.cjs.map +1 -0
  164. package/dist/{types/controllers/user-storage/encryption/utils.d.ts → controllers/user-storage/encryption/utils.d.cts} +1 -1
  165. package/dist/controllers/user-storage/encryption/utils.d.cts.map +1 -0
  166. package/dist/controllers/user-storage/encryption/utils.d.mts +4 -0
  167. package/dist/controllers/user-storage/encryption/utils.d.mts.map +1 -0
  168. package/dist/controllers/user-storage/encryption/utils.mjs +9 -10
  169. package/dist/controllers/user-storage/encryption/utils.mjs.map +1 -1
  170. package/dist/controllers/user-storage/index.cjs +40 -0
  171. package/dist/controllers/user-storage/index.cjs.map +1 -0
  172. package/dist/controllers/user-storage/index.d.cts +8 -0
  173. package/dist/controllers/user-storage/index.d.cts.map +1 -0
  174. package/dist/controllers/user-storage/index.d.mts +8 -0
  175. package/dist/controllers/user-storage/index.d.mts.map +1 -0
  176. package/dist/controllers/user-storage/index.mjs +7 -30
  177. package/dist/controllers/user-storage/index.mjs.map +1 -1
  178. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.cjs +25 -0
  179. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.cjs.map +1 -0
  180. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.d.cts +4 -0
  181. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.d.cts.map +1 -0
  182. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.d.mts +4 -0
  183. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.d.mts.map +1 -0
  184. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.mjs +20 -0
  185. package/dist/controllers/user-storage/network-syncing/__fixtures__/mockNetwork.mjs.map +1 -0
  186. package/dist/controllers/user-storage/network-syncing/controller-integration.cjs +65 -0
  187. package/dist/controllers/user-storage/network-syncing/controller-integration.cjs.map +1 -0
  188. package/dist/controllers/user-storage/network-syncing/controller-integration.d.cts +13 -0
  189. package/dist/controllers/user-storage/network-syncing/controller-integration.d.cts.map +1 -0
  190. package/dist/controllers/user-storage/network-syncing/controller-integration.d.mts +13 -0
  191. package/dist/controllers/user-storage/network-syncing/controller-integration.d.mts.map +1 -0
  192. package/dist/controllers/user-storage/network-syncing/controller-integration.mjs +65 -0
  193. package/dist/controllers/user-storage/network-syncing/controller-integration.mjs.map +1 -0
  194. package/dist/controllers/user-storage/network-syncing/services.cjs +64 -0
  195. package/dist/controllers/user-storage/network-syncing/services.cjs.map +1 -0
  196. package/dist/controllers/user-storage/network-syncing/services.d.cts +21 -0
  197. package/dist/controllers/user-storage/network-syncing/services.d.cts.map +1 -0
  198. package/dist/controllers/user-storage/network-syncing/services.d.mts +21 -0
  199. package/dist/controllers/user-storage/network-syncing/services.d.mts.map +1 -0
  200. package/dist/controllers/user-storage/network-syncing/services.mjs +58 -0
  201. package/dist/controllers/user-storage/network-syncing/services.mjs.map +1 -0
  202. package/dist/controllers/user-storage/network-syncing/sync-all.cjs +171 -0
  203. package/dist/controllers/user-storage/network-syncing/sync-all.cjs.map +1 -0
  204. package/dist/controllers/user-storage/network-syncing/sync-all.d.cts +35 -0
  205. package/dist/controllers/user-storage/network-syncing/sync-all.d.cts.map +1 -0
  206. package/dist/controllers/user-storage/network-syncing/sync-all.d.mts +35 -0
  207. package/dist/controllers/user-storage/network-syncing/sync-all.d.mts.map +1 -0
  208. package/dist/controllers/user-storage/network-syncing/sync-all.mjs +162 -0
  209. package/dist/controllers/user-storage/network-syncing/sync-all.mjs.map +1 -0
  210. package/dist/controllers/user-storage/network-syncing/sync-mutations.cjs +28 -0
  211. package/dist/controllers/user-storage/network-syncing/sync-mutations.cjs.map +1 -0
  212. package/dist/controllers/user-storage/network-syncing/sync-mutations.d.cts +9 -0
  213. package/dist/controllers/user-storage/network-syncing/sync-mutations.d.cts.map +1 -0
  214. package/dist/controllers/user-storage/network-syncing/sync-mutations.d.mts +9 -0
  215. package/dist/controllers/user-storage/network-syncing/sync-mutations.d.mts.map +1 -0
  216. package/dist/controllers/user-storage/network-syncing/sync-mutations.mjs +22 -0
  217. package/dist/controllers/user-storage/network-syncing/sync-mutations.mjs.map +1 -0
  218. package/dist/controllers/user-storage/network-syncing/types.cjs +16 -0
  219. package/dist/controllers/user-storage/network-syncing/types.cjs.map +1 -0
  220. package/dist/controllers/user-storage/network-syncing/types.d.cts +18 -0
  221. package/dist/controllers/user-storage/network-syncing/types.d.cts.map +1 -0
  222. package/dist/controllers/user-storage/network-syncing/types.d.mts +18 -0
  223. package/dist/controllers/user-storage/network-syncing/types.d.mts.map +1 -0
  224. package/dist/controllers/user-storage/network-syncing/types.mjs +11 -0
  225. package/dist/controllers/user-storage/network-syncing/types.mjs.map +1 -0
  226. package/dist/controllers/user-storage/schema.cjs +56 -0
  227. package/dist/controllers/user-storage/schema.cjs.map +1 -0
  228. package/dist/{types/controllers/user-storage/schema.d.ts → controllers/user-storage/schema.d.cts} +2 -1
  229. package/dist/controllers/user-storage/schema.d.cts.map +1 -0
  230. package/dist/controllers/user-storage/schema.d.mts +38 -0
  231. package/dist/controllers/user-storage/schema.d.mts.map +1 -0
  232. package/dist/controllers/user-storage/schema.mjs +48 -16
  233. package/dist/controllers/user-storage/schema.mjs.map +1 -1
  234. package/dist/controllers/user-storage/services.cjs +119 -0
  235. package/dist/controllers/user-storage/services.cjs.map +1 -0
  236. package/dist/{types/controllers/user-storage/services.d.ts → controllers/user-storage/services.d.cts} +4 -5
  237. package/dist/controllers/user-storage/services.d.cts.map +1 -0
  238. package/dist/controllers/user-storage/services.d.mts +48 -0
  239. package/dist/controllers/user-storage/services.d.mts.map +1 -0
  240. package/dist/controllers/user-storage/services.mjs +116 -21
  241. package/dist/controllers/user-storage/services.mjs.map +1 -1
  242. package/dist/controllers/user-storage/utils.cjs +30 -0
  243. package/dist/controllers/user-storage/utils.cjs.map +1 -0
  244. package/dist/controllers/user-storage/utils.d.cts +17 -0
  245. package/dist/controllers/user-storage/utils.d.cts.map +1 -0
  246. package/dist/controllers/user-storage/utils.d.mts +17 -0
  247. package/dist/controllers/user-storage/utils.d.mts.map +1 -0
  248. package/dist/controllers/user-storage/utils.mjs +25 -0
  249. package/dist/controllers/user-storage/utils.mjs.map +1 -0
  250. package/dist/index.cjs +30 -0
  251. package/dist/index.cjs.map +1 -0
  252. package/dist/index.d.cts +4 -0
  253. package/dist/index.d.cts.map +1 -0
  254. package/dist/index.d.mts +4 -0
  255. package/dist/index.d.mts.map +1 -0
  256. package/dist/index.mjs +3 -39
  257. package/dist/index.mjs.map +1 -1
  258. package/dist/sdk/__fixtures__/mock-auth.cjs +139 -0
  259. package/dist/sdk/__fixtures__/mock-auth.cjs.map +1 -0
  260. package/dist/{types/sdk/__fixtures__/mock-auth.d.ts → sdk/__fixtures__/mock-auth.d.cts} +2 -2
  261. package/dist/sdk/__fixtures__/mock-auth.d.cts.map +1 -0
  262. package/dist/sdk/__fixtures__/mock-auth.d.mts +42 -0
  263. package/dist/sdk/__fixtures__/mock-auth.d.mts.map +1 -0
  264. package/dist/sdk/__fixtures__/mock-auth.mjs +134 -0
  265. package/dist/sdk/__fixtures__/mock-auth.mjs.map +1 -0
  266. package/dist/sdk/__fixtures__/mock-userstorage.cjs +58 -0
  267. package/dist/sdk/__fixtures__/mock-userstorage.cjs.map +1 -0
  268. package/dist/{types/sdk/__fixtures__/mock-userstorage.d.ts → sdk/__fixtures__/mock-userstorage.d.cts} +2 -2
  269. package/dist/sdk/__fixtures__/mock-userstorage.d.cts.map +1 -0
  270. package/dist/sdk/__fixtures__/mock-userstorage.d.mts +19 -0
  271. package/dist/sdk/__fixtures__/mock-userstorage.d.mts.map +1 -0
  272. package/dist/sdk/__fixtures__/mock-userstorage.mjs +54 -0
  273. package/dist/sdk/__fixtures__/mock-userstorage.mjs.map +1 -0
  274. package/dist/sdk/__fixtures__/test-utils.cjs +74 -0
  275. package/dist/sdk/__fixtures__/test-utils.cjs.map +1 -0
  276. package/dist/{types/sdk/__fixtures__/test-utils.d.ts → sdk/__fixtures__/test-utils.d.cts} +6 -6
  277. package/dist/sdk/__fixtures__/test-utils.d.cts.map +1 -0
  278. package/dist/sdk/__fixtures__/test-utils.d.mts +25 -0
  279. package/dist/sdk/__fixtures__/test-utils.d.mts.map +1 -0
  280. package/dist/sdk/__fixtures__/test-utils.mjs +69 -0
  281. package/dist/sdk/__fixtures__/test-utils.mjs.map +1 -0
  282. package/dist/sdk/authentication-jwt-bearer/flow-siwe.cjs +106 -0
  283. package/dist/sdk/authentication-jwt-bearer/flow-siwe.cjs.map +1 -0
  284. package/dist/{types/sdk/authentication-jwt-bearer/flow-siwe.d.ts → sdk/authentication-jwt-bearer/flow-siwe.d.cts} +2 -2
  285. package/dist/sdk/authentication-jwt-bearer/flow-siwe.d.cts.map +1 -0
  286. package/dist/sdk/authentication-jwt-bearer/flow-siwe.d.mts +23 -0
  287. package/dist/sdk/authentication-jwt-bearer/flow-siwe.d.mts.map +1 -0
  288. package/dist/sdk/authentication-jwt-bearer/flow-siwe.mjs +101 -11
  289. package/dist/sdk/authentication-jwt-bearer/flow-siwe.mjs.map +1 -1
  290. package/dist/sdk/authentication-jwt-bearer/flow-srp.cjs +111 -0
  291. package/dist/sdk/authentication-jwt-bearer/flow-srp.cjs.map +1 -0
  292. package/dist/{types/sdk/authentication-jwt-bearer/flow-srp.d.ts → sdk/authentication-jwt-bearer/flow-srp.d.cts} +2 -2
  293. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.cts.map +1 -0
  294. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.mts +17 -0
  295. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.mts.map +1 -0
  296. package/dist/sdk/authentication-jwt-bearer/flow-srp.mjs +105 -13
  297. package/dist/sdk/authentication-jwt-bearer/flow-srp.mjs.map +1 -1
  298. package/dist/sdk/authentication-jwt-bearer/services.cjs +180 -0
  299. package/dist/sdk/authentication-jwt-bearer/services.cjs.map +1 -0
  300. package/dist/{types/sdk/authentication-jwt-bearer/services.d.ts → sdk/authentication-jwt-bearer/services.d.cts} +4 -4
  301. package/dist/sdk/authentication-jwt-bearer/services.d.cts.map +1 -0
  302. package/dist/sdk/authentication-jwt-bearer/services.d.mts +63 -0
  303. package/dist/sdk/authentication-jwt-bearer/services.d.mts.map +1 -0
  304. package/dist/sdk/authentication-jwt-bearer/services.mjs +166 -25
  305. package/dist/sdk/authentication-jwt-bearer/services.mjs.map +1 -1
  306. package/dist/sdk/authentication-jwt-bearer/types.cjs +12 -0
  307. package/dist/sdk/authentication-jwt-bearer/types.cjs.map +1 -0
  308. package/dist/{types/sdk/authentication-jwt-bearer/types.d.ts → sdk/authentication-jwt-bearer/types.d.cts} +2 -2
  309. package/dist/sdk/authentication-jwt-bearer/types.d.cts.map +1 -0
  310. package/dist/sdk/authentication-jwt-bearer/types.d.mts +67 -0
  311. package/dist/sdk/authentication-jwt-bearer/types.d.mts.map +1 -0
  312. package/dist/sdk/authentication-jwt-bearer/types.mjs +8 -7
  313. package/dist/sdk/authentication-jwt-bearer/types.mjs.map +1 -1
  314. package/dist/sdk/authentication.cjs +129 -0
  315. package/dist/sdk/authentication.cjs.map +1 -0
  316. package/dist/{types/sdk/authentication.d.ts → sdk/authentication.d.cts} +7 -7
  317. package/dist/sdk/authentication.d.cts.map +1 -0
  318. package/dist/sdk/authentication.d.mts +32 -0
  319. package/dist/sdk/authentication.d.mts.map +1 -0
  320. package/dist/sdk/authentication.mjs +107 -24
  321. package/dist/sdk/authentication.mjs.map +1 -1
  322. package/dist/sdk/encryption.cjs +23 -0
  323. package/dist/sdk/encryption.cjs.map +1 -0
  324. package/dist/sdk/encryption.d.cts +4 -0
  325. package/dist/sdk/encryption.d.cts.map +1 -0
  326. package/dist/sdk/encryption.d.mts +4 -0
  327. package/dist/sdk/encryption.d.mts.map +1 -0
  328. package/dist/sdk/encryption.mjs +3 -13
  329. package/dist/sdk/encryption.mjs.map +1 -1
  330. package/dist/sdk/env.cjs +85 -0
  331. package/dist/sdk/env.cjs.map +1 -0
  332. package/dist/{types/sdk/env.d.ts → sdk/env.d.cts} +1 -1
  333. package/dist/sdk/env.d.cts.map +1 -0
  334. package/dist/sdk/env.d.mts +34 -0
  335. package/dist/sdk/env.d.mts.map +1 -0
  336. package/dist/sdk/env.mjs +78 -12
  337. package/dist/sdk/env.mjs.map +1 -1
  338. package/dist/sdk/errors.cjs +53 -0
  339. package/dist/sdk/errors.cjs.map +1 -0
  340. package/dist/{types/sdk/errors.d.ts → sdk/errors.d.cts} +1 -1
  341. package/dist/sdk/errors.d.cts.map +1 -0
  342. package/dist/sdk/errors.d.mts +22 -0
  343. package/dist/sdk/errors.d.mts.map +1 -0
  344. package/dist/sdk/errors.mjs +42 -19
  345. package/dist/sdk/errors.mjs.map +1 -1
  346. package/dist/sdk/index.cjs +23 -0
  347. package/dist/sdk/index.cjs.map +1 -0
  348. package/dist/sdk/index.d.cts +7 -0
  349. package/dist/sdk/index.d.cts.map +1 -0
  350. package/dist/sdk/index.d.mts +7 -0
  351. package/dist/sdk/index.d.mts.map +1 -0
  352. package/dist/sdk/index.mjs +6 -78
  353. package/dist/sdk/index.mjs.map +1 -1
  354. package/dist/sdk/user-storage.cjs +176 -0
  355. package/dist/sdk/user-storage.cjs.map +1 -0
  356. package/dist/{types/sdk/user-storage.d.ts → sdk/user-storage.d.cts} +4 -4
  357. package/dist/sdk/user-storage.d.cts.map +1 -0
  358. package/dist/sdk/user-storage.d.mts +27 -0
  359. package/dist/sdk/user-storage.d.mts.map +1 -0
  360. package/dist/sdk/user-storage.mjs +146 -16
  361. package/dist/sdk/user-storage.mjs.map +1 -1
  362. package/dist/sdk/utils/eip-6963-metamask-provider.cjs +70 -0
  363. package/dist/sdk/utils/eip-6963-metamask-provider.cjs.map +1 -0
  364. package/dist/{types/sdk/utils/eip-6963-metamask-provider.d.ts → sdk/utils/eip-6963-metamask-provider.d.cts} +2 -2
  365. package/dist/sdk/utils/eip-6963-metamask-provider.d.cts.map +1 -0
  366. package/dist/sdk/utils/eip-6963-metamask-provider.d.mts +25 -0
  367. package/dist/sdk/utils/eip-6963-metamask-provider.d.mts.map +1 -0
  368. package/dist/sdk/utils/eip-6963-metamask-provider.mjs +64 -8
  369. package/dist/sdk/utils/eip-6963-metamask-provider.mjs.map +1 -1
  370. package/dist/sdk/utils/messaging-signing-snap-requests.cjs +89 -0
  371. package/dist/sdk/utils/messaging-signing-snap-requests.cjs.map +1 -0
  372. package/dist/{types/sdk/utils/messaging-signing-snap-requests.d.ts → sdk/utils/messaging-signing-snap-requests.d.cts} +2 -2
  373. package/dist/sdk/utils/messaging-signing-snap-requests.d.cts.map +1 -0
  374. package/dist/sdk/utils/messaging-signing-snap-requests.d.mts +40 -0
  375. package/dist/sdk/utils/messaging-signing-snap-requests.d.mts.map +1 -0
  376. package/dist/sdk/utils/messaging-signing-snap-requests.mjs +80 -16
  377. package/dist/sdk/utils/messaging-signing-snap-requests.mjs.map +1 -1
  378. package/dist/sdk/utils/validate-login-response.cjs +22 -0
  379. package/dist/sdk/utils/validate-login-response.cjs.map +1 -0
  380. package/dist/{types/sdk/utils/validate-login-response.d.ts → sdk/utils/validate-login-response.d.cts} +2 -2
  381. package/dist/sdk/utils/validate-login-response.d.cts.map +1 -0
  382. package/dist/sdk/utils/validate-login-response.d.mts +10 -0
  383. package/dist/sdk/utils/validate-login-response.d.mts.map +1 -0
  384. package/dist/sdk/utils/validate-login-response.mjs +17 -7
  385. package/dist/sdk/utils/validate-login-response.mjs.map +1 -1
  386. package/package.json +20 -14
  387. package/dist/chunk-2CWF7ZTL.mjs +0 -129
  388. package/dist/chunk-2CWF7ZTL.mjs.map +0 -1
  389. package/dist/chunk-2VEMA6OE.mjs +0 -47
  390. package/dist/chunk-2VEMA6OE.mjs.map +0 -1
  391. package/dist/chunk-4LMFZDL4.js +0 -114
  392. package/dist/chunk-4LMFZDL4.js.map +0 -1
  393. package/dist/chunk-4TMLEABQ.js +0 -79
  394. package/dist/chunk-4TMLEABQ.js.map +0 -1
  395. package/dist/chunk-5MQUI24U.js +0 -47
  396. package/dist/chunk-5MQUI24U.js.map +0 -1
  397. package/dist/chunk-5XSXZTED.mjs +0 -57
  398. package/dist/chunk-5XSXZTED.mjs.map +0 -1
  399. package/dist/chunk-6DAK2U35.mjs +0 -11
  400. package/dist/chunk-6DAK2U35.mjs.map +0 -1
  401. package/dist/chunk-76NMME23.mjs +0 -114
  402. package/dist/chunk-76NMME23.mjs.map +0 -1
  403. package/dist/chunk-76VRE4BI.mjs +0 -18
  404. package/dist/chunk-76VRE4BI.mjs.map +0 -1
  405. package/dist/chunk-BKQE7DB5.js +0 -170
  406. package/dist/chunk-BKQE7DB5.js.map +0 -1
  407. package/dist/chunk-CAIIVJAO.mjs +0 -11
  408. package/dist/chunk-CAIIVJAO.mjs.map +0 -1
  409. package/dist/chunk-COBJUBZE.mjs +0 -170
  410. package/dist/chunk-COBJUBZE.mjs.map +0 -1
  411. package/dist/chunk-D4SNJOID.mjs +0 -269
  412. package/dist/chunk-D4SNJOID.mjs.map +0 -1
  413. package/dist/chunk-DF24ZX4H.js +0 -76
  414. package/dist/chunk-DF24ZX4H.js.map +0 -1
  415. package/dist/chunk-DRB2MN4T.js +0 -16
  416. package/dist/chunk-DRB2MN4T.js.map +0 -1
  417. package/dist/chunk-EHZFPUJH.mjs +0 -53
  418. package/dist/chunk-EHZFPUJH.mjs.map +0 -1
  419. package/dist/chunk-F6BAOSH2.js +0 -269
  420. package/dist/chunk-F6BAOSH2.js.map +0 -1
  421. package/dist/chunk-GQXYWBFK.js +0 -28
  422. package/dist/chunk-GQXYWBFK.js.map +0 -1
  423. package/dist/chunk-H25EBXG5.mjs +0 -58
  424. package/dist/chunk-H25EBXG5.mjs.map +0 -1
  425. package/dist/chunk-IGY2S5BC.js +0 -36
  426. package/dist/chunk-IGY2S5BC.js.map +0 -1
  427. package/dist/chunk-JAQ5TPSZ.js +0 -53
  428. package/dist/chunk-JAQ5TPSZ.js.map +0 -1
  429. package/dist/chunk-KHASG4H3.mjs +0 -11
  430. package/dist/chunk-KHASG4H3.mjs.map +0 -1
  431. package/dist/chunk-KIVBL6OM.js +0 -129
  432. package/dist/chunk-KIVBL6OM.js.map +0 -1
  433. package/dist/chunk-KTCSRECK.mjs +0 -76
  434. package/dist/chunk-KTCSRECK.mjs.map +0 -1
  435. package/dist/chunk-LGXQBALM.mjs +0 -106
  436. package/dist/chunk-LGXQBALM.mjs.map +0 -1
  437. package/dist/chunk-LLG4D2SC.js +0 -157
  438. package/dist/chunk-LLG4D2SC.js.map +0 -1
  439. package/dist/chunk-M7AUA5W7.mjs +0 -79
  440. package/dist/chunk-M7AUA5W7.mjs.map +0 -1
  441. package/dist/chunk-MBTBE4P5.js +0 -54
  442. package/dist/chunk-MBTBE4P5.js.map +0 -1
  443. package/dist/chunk-MK7ABX2V.mjs +0 -186
  444. package/dist/chunk-MK7ABX2V.mjs.map +0 -1
  445. package/dist/chunk-NEBLEB3X.mjs +0 -107
  446. package/dist/chunk-NEBLEB3X.mjs.map +0 -1
  447. package/dist/chunk-NIUQ34PY.js +0 -11
  448. package/dist/chunk-NIUQ34PY.js.map +0 -1
  449. package/dist/chunk-NMIF3LSX.mjs +0 -29
  450. package/dist/chunk-NMIF3LSX.mjs.map +0 -1
  451. package/dist/chunk-OLFO6R7Z.mjs +0 -546
  452. package/dist/chunk-OLFO6R7Z.mjs.map +0 -1
  453. package/dist/chunk-PBRUOBEQ.js +0 -11
  454. package/dist/chunk-PBRUOBEQ.js.map +0 -1
  455. package/dist/chunk-PCOIRDTO.js +0 -18
  456. package/dist/chunk-PCOIRDTO.js.map +0 -1
  457. package/dist/chunk-PQMPSEVJ.js +0 -546
  458. package/dist/chunk-PQMPSEVJ.js.map +0 -1
  459. package/dist/chunk-PRYLTXW4.js +0 -92
  460. package/dist/chunk-PRYLTXW4.js.map +0 -1
  461. package/dist/chunk-PU7MAIST.mjs +0 -129
  462. package/dist/chunk-PU7MAIST.mjs.map +0 -1
  463. package/dist/chunk-QCQU4BQL.js +0 -68
  464. package/dist/chunk-QCQU4BQL.js.map +0 -1
  465. package/dist/chunk-QDGLIUUS.mjs +0 -16
  466. package/dist/chunk-QDGLIUUS.mjs.map +0 -1
  467. package/dist/chunk-RG4II6WH.js +0 -57
  468. package/dist/chunk-RG4II6WH.js.map +0 -1
  469. package/dist/chunk-TFFQFIJV.mjs +0 -54
  470. package/dist/chunk-TFFQFIJV.mjs.map +0 -1
  471. package/dist/chunk-TP7SP3AG.mjs +0 -133
  472. package/dist/chunk-TP7SP3AG.mjs.map +0 -1
  473. package/dist/chunk-U5UIDVOO.mjs +0 -36
  474. package/dist/chunk-U5UIDVOO.mjs.map +0 -1
  475. package/dist/chunk-UAXWZN5J.js +0 -58
  476. package/dist/chunk-UAXWZN5J.js.map +0 -1
  477. package/dist/chunk-UEHMUVQQ.js +0 -133
  478. package/dist/chunk-UEHMUVQQ.js.map +0 -1
  479. package/dist/chunk-UEWCUBMX.mjs +0 -68
  480. package/dist/chunk-UEWCUBMX.mjs.map +0 -1
  481. package/dist/chunk-UHP2Y32K.mjs +0 -92
  482. package/dist/chunk-UHP2Y32K.mjs.map +0 -1
  483. package/dist/chunk-UHX7HJAI.js +0 -11
  484. package/dist/chunk-UHX7HJAI.js.map +0 -1
  485. package/dist/chunk-UIRAMHNM.js +0 -186
  486. package/dist/chunk-UIRAMHNM.js.map +0 -1
  487. package/dist/chunk-VWDRFRJU.js +0 -107
  488. package/dist/chunk-VWDRFRJU.js.map +0 -1
  489. package/dist/chunk-Y45XUW33.js +0 -129
  490. package/dist/chunk-Y45XUW33.js.map +0 -1
  491. package/dist/chunk-YHGWG3EQ.js +0 -29
  492. package/dist/chunk-YHGWG3EQ.js.map +0 -1
  493. package/dist/chunk-YLURF2PF.mjs +0 -157
  494. package/dist/chunk-YLURF2PF.mjs.map +0 -1
  495. package/dist/chunk-ZUPTMFEA.mjs +0 -28
  496. package/dist/chunk-ZUPTMFEA.mjs.map +0 -1
  497. package/dist/chunk-ZX2KHPXG.js +0 -106
  498. package/dist/chunk-ZX2KHPXG.js.map +0 -1
  499. package/dist/controllers/authentication/AuthenticationController.js +0 -13
  500. package/dist/controllers/authentication/AuthenticationController.js.map +0 -1
  501. package/dist/controllers/authentication/auth-snap-requests.js +0 -10
  502. package/dist/controllers/authentication/auth-snap-requests.js.map +0 -1
  503. package/dist/controllers/authentication/index.js +0 -19
  504. package/dist/controllers/authentication/index.js.map +0 -1
  505. package/dist/controllers/authentication/services.js +0 -21
  506. package/dist/controllers/authentication/services.js.map +0 -1
  507. package/dist/controllers/index.js +0 -25
  508. package/dist/controllers/index.js.map +0 -1
  509. package/dist/controllers/user-storage/UserStorageController.js +0 -20
  510. package/dist/controllers/user-storage/UserStorageController.js.map +0 -1
  511. package/dist/controllers/user-storage/accounts/constants.js +0 -12
  512. package/dist/controllers/user-storage/accounts/constants.js.map +0 -1
  513. package/dist/controllers/user-storage/accounts/user-storage.js +0 -11
  514. package/dist/controllers/user-storage/accounts/user-storage.js.map +0 -1
  515. package/dist/controllers/user-storage/encryption/cache.js +0 -13
  516. package/dist/controllers/user-storage/encryption/cache.js.map +0 -1
  517. package/dist/controllers/user-storage/encryption/encryption.js +0 -12
  518. package/dist/controllers/user-storage/encryption/encryption.js.map +0 -1
  519. package/dist/controllers/user-storage/encryption/index.js +0 -16
  520. package/dist/controllers/user-storage/encryption/index.js.map +0 -1
  521. package/dist/controllers/user-storage/encryption/utils.js +0 -12
  522. package/dist/controllers/user-storage/encryption/utils.js.map +0 -1
  523. package/dist/controllers/user-storage/index.js +0 -31
  524. package/dist/controllers/user-storage/index.js.map +0 -1
  525. package/dist/controllers/user-storage/schema.js +0 -18
  526. package/dist/controllers/user-storage/schema.js.map +0 -1
  527. package/dist/controllers/user-storage/services.js +0 -22
  528. package/dist/controllers/user-storage/services.js.map +0 -1
  529. package/dist/index.js +0 -40
  530. package/dist/index.js.map +0 -1
  531. package/dist/sdk/authentication-jwt-bearer/flow-siwe.js +0 -13
  532. package/dist/sdk/authentication-jwt-bearer/flow-siwe.js.map +0 -1
  533. package/dist/sdk/authentication-jwt-bearer/flow-srp.js +0 -15
  534. package/dist/sdk/authentication-jwt-bearer/flow-srp.js.map +0 -1
  535. package/dist/sdk/authentication-jwt-bearer/services.js +0 -27
  536. package/dist/sdk/authentication-jwt-bearer/services.js.map +0 -1
  537. package/dist/sdk/authentication-jwt-bearer/types.js +0 -8
  538. package/dist/sdk/authentication-jwt-bearer/types.js.map +0 -1
  539. package/dist/sdk/authentication.js +0 -26
  540. package/dist/sdk/authentication.js.map +0 -1
  541. package/dist/sdk/encryption.js +0 -14
  542. package/dist/sdk/encryption.js.map +0 -1
  543. package/dist/sdk/env.js +0 -14
  544. package/dist/sdk/env.js.map +0 -1
  545. package/dist/sdk/errors.js +0 -20
  546. package/dist/sdk/errors.js.map +0 -1
  547. package/dist/sdk/index.js +0 -79
  548. package/dist/sdk/index.js.map +0 -1
  549. package/dist/sdk/user-storage.js +0 -18
  550. package/dist/sdk/user-storage.js.map +0 -1
  551. package/dist/sdk/utils/eip-6963-metamask-provider.js +0 -10
  552. package/dist/sdk/utils/eip-6963-metamask-provider.js.map +0 -1
  553. package/dist/sdk/utils/messaging-signing-snap-requests.js +0 -18
  554. package/dist/sdk/utils/messaging-signing-snap-requests.js.map +0 -1
  555. package/dist/sdk/utils/validate-login-response.js +0 -8
  556. package/dist/sdk/utils/validate-login-response.js.map +0 -1
  557. package/dist/tsconfig.build.tsbuildinfo +0 -1
  558. package/dist/types/controllers/authentication/AuthenticationController.d.ts.map +0 -1
  559. package/dist/types/controllers/authentication/__fixtures__/index.d.ts +0 -2
  560. package/dist/types/controllers/authentication/__fixtures__/index.d.ts.map +0 -1
  561. package/dist/types/controllers/authentication/__fixtures__/mockResponses.d.ts.map +0 -1
  562. package/dist/types/controllers/authentication/__fixtures__/mockServices.d.ts.map +0 -1
  563. package/dist/types/controllers/authentication/auth-snap-requests.d.ts.map +0 -1
  564. package/dist/types/controllers/authentication/index.d.ts +0 -7
  565. package/dist/types/controllers/authentication/index.d.ts.map +0 -1
  566. package/dist/types/controllers/authentication/services.d.ts.map +0 -1
  567. package/dist/types/controllers/index.d.ts +0 -3
  568. package/dist/types/controllers/index.d.ts.map +0 -1
  569. package/dist/types/controllers/user-storage/UserStorageController.d.ts.map +0 -1
  570. package/dist/types/controllers/user-storage/__fixtures__/index.d.ts +0 -3
  571. package/dist/types/controllers/user-storage/__fixtures__/index.d.ts.map +0 -1
  572. package/dist/types/controllers/user-storage/__fixtures__/mockAccounts.d.ts.map +0 -1
  573. package/dist/types/controllers/user-storage/__fixtures__/mockResponses.d.ts.map +0 -1
  574. package/dist/types/controllers/user-storage/__fixtures__/mockServices.d.ts.map +0 -1
  575. package/dist/types/controllers/user-storage/__fixtures__/mockStorage.d.ts.map +0 -1
  576. package/dist/types/controllers/user-storage/accounts/constants.d.ts.map +0 -1
  577. package/dist/types/controllers/user-storage/accounts/user-storage.d.ts.map +0 -1
  578. package/dist/types/controllers/user-storage/encryption/cache.d.ts.map +0 -1
  579. package/dist/types/controllers/user-storage/encryption/encryption.d.ts.map +0 -1
  580. package/dist/types/controllers/user-storage/encryption/index.d.ts +0 -5
  581. package/dist/types/controllers/user-storage/encryption/index.d.ts.map +0 -1
  582. package/dist/types/controllers/user-storage/encryption/utils.d.ts.map +0 -1
  583. package/dist/types/controllers/user-storage/index.d.ts +0 -8
  584. package/dist/types/controllers/user-storage/index.d.ts.map +0 -1
  585. package/dist/types/controllers/user-storage/schema.d.ts.map +0 -1
  586. package/dist/types/controllers/user-storage/services.d.ts.map +0 -1
  587. package/dist/types/index.d.ts +0 -4
  588. package/dist/types/index.d.ts.map +0 -1
  589. package/dist/types/sdk/__fixtures__/mock-auth.d.ts.map +0 -1
  590. package/dist/types/sdk/__fixtures__/mock-userstorage.d.ts.map +0 -1
  591. package/dist/types/sdk/__fixtures__/test-utils.d.ts.map +0 -1
  592. package/dist/types/sdk/authentication-jwt-bearer/flow-siwe.d.ts.map +0 -1
  593. package/dist/types/sdk/authentication-jwt-bearer/flow-srp.d.ts.map +0 -1
  594. package/dist/types/sdk/authentication-jwt-bearer/services.d.ts.map +0 -1
  595. package/dist/types/sdk/authentication-jwt-bearer/types.d.ts.map +0 -1
  596. package/dist/types/sdk/authentication.d.ts.map +0 -1
  597. package/dist/types/sdk/encryption.d.ts +0 -4
  598. package/dist/types/sdk/encryption.d.ts.map +0 -1
  599. package/dist/types/sdk/env.d.ts.map +0 -1
  600. package/dist/types/sdk/errors.d.ts.map +0 -1
  601. package/dist/types/sdk/index.d.ts +0 -7
  602. package/dist/types/sdk/index.d.ts.map +0 -1
  603. package/dist/types/sdk/user-storage.d.ts.map +0 -1
  604. package/dist/types/sdk/utils/eip-6963-metamask-provider.d.ts.map +0 -1
  605. package/dist/types/sdk/utils/messaging-signing-snap-requests.d.ts.map +0 -1
  606. package/dist/types/sdk/utils/validate-login-response.d.ts.map +0 -1
@@ -1,22 +1,117 @@
1
- import {
2
- USER_STORAGE_API,
3
- USER_STORAGE_ENDPOINT,
4
- getUserStorage,
5
- getUserStorageAllFeatureEntries,
6
- upsertUserStorage
7
- } from "../../chunk-76NMME23.mjs";
8
- import "../../chunk-2VEMA6OE.mjs";
9
- import "../../chunk-KHASG4H3.mjs";
10
- import "../../chunk-COBJUBZE.mjs";
11
- import "../../chunk-H25EBXG5.mjs";
12
- import "../../chunk-76VRE4BI.mjs";
13
- import "../../chunk-KTCSRECK.mjs";
14
- import "../../chunk-U5UIDVOO.mjs";
15
- export {
16
- USER_STORAGE_API,
17
- USER_STORAGE_ENDPOINT,
18
- getUserStorage,
19
- getUserStorageAllFeatureEntries,
20
- upsertUserStorage
21
- };
1
+ function $importDefault(module) {
2
+ if (module?.__esModule) {
3
+ return module.default;
4
+ }
5
+ return module;
6
+ }
7
+ import $log from "loglevel";
8
+ const log = $importDefault($log);
9
+ import { Env, getEnvUrls } from "../../sdk/env.mjs";
10
+ import encryption from "./encryption/index.mjs";
11
+ import { createEntryPath } from "./schema.mjs";
12
+ const ENV_URLS = getEnvUrls(Env.PRD);
13
+ export const USER_STORAGE_API = ENV_URLS.userStorageApiUrl;
14
+ export const USER_STORAGE_ENDPOINT = `${USER_STORAGE_API}/api/v1/userstorage`;
15
+ /**
16
+ * User Storage Service - Get Storage Entry.
17
+ *
18
+ * @param opts - User Storage Options
19
+ * @returns The storage entry, or null if fails to find entry
20
+ */
21
+ export async function getUserStorage(opts) {
22
+ try {
23
+ const { bearerToken, path, storageKey, nativeScryptCrypto } = opts;
24
+ const encryptedPath = createEntryPath(path, storageKey);
25
+ const url = new URL(`${USER_STORAGE_ENDPOINT}/${encryptedPath}`);
26
+ const userStorageResponse = await fetch(url.toString(), {
27
+ headers: {
28
+ 'Content-Type': 'application/json',
29
+ Authorization: `Bearer ${bearerToken}`,
30
+ },
31
+ });
32
+ // Acceptable error - since indicates entry does not exist.
33
+ if (userStorageResponse.status === 404) {
34
+ return null;
35
+ }
36
+ if (userStorageResponse.status !== 200) {
37
+ throw new Error('Unable to get User Storage');
38
+ }
39
+ const userStorage = await userStorageResponse.json();
40
+ const encryptedData = userStorage?.Data ?? null;
41
+ if (!encryptedData) {
42
+ return null;
43
+ }
44
+ const decryptedData = await encryption.decryptString(encryptedData, opts.storageKey, nativeScryptCrypto);
45
+ return decryptedData;
46
+ }
47
+ catch (e) {
48
+ log.error('Failed to get user storage', e);
49
+ return null;
50
+ }
51
+ }
52
+ /**
53
+ * User Storage Service - Get all storage entries for a specific feature.
54
+ *
55
+ * @param opts - User Storage Options
56
+ * @returns The storage entry, or null if fails to find entry
57
+ */
58
+ export async function getUserStorageAllFeatureEntries(opts) {
59
+ try {
60
+ const { bearerToken, path, nativeScryptCrypto } = opts;
61
+ const url = new URL(`${USER_STORAGE_ENDPOINT}/${path}`);
62
+ const userStorageResponse = await fetch(url.toString(), {
63
+ headers: {
64
+ 'Content-Type': 'application/json',
65
+ Authorization: `Bearer ${bearerToken}`,
66
+ },
67
+ });
68
+ // Acceptable error - since indicates feature does not exist.
69
+ if (userStorageResponse.status === 404) {
70
+ return null;
71
+ }
72
+ if (userStorageResponse.status !== 200) {
73
+ throw new Error('Unable to get User Storage');
74
+ }
75
+ const userStorage = await userStorageResponse.json();
76
+ if (!Array.isArray(userStorage)) {
77
+ return null;
78
+ }
79
+ const decryptedData = userStorage?.flatMap((entry) => {
80
+ if (!entry.Data) {
81
+ return [];
82
+ }
83
+ return encryption.decryptString(entry.Data, opts.storageKey, nativeScryptCrypto);
84
+ });
85
+ return (await Promise.allSettled(decryptedData))
86
+ .map((d) => (d.status === 'fulfilled' ? d.value : undefined))
87
+ .filter((d) => d !== undefined);
88
+ }
89
+ catch (e) {
90
+ log.error('Failed to get user storage', e);
91
+ return null;
92
+ }
93
+ }
94
+ /**
95
+ * User Storage Service - Set Storage Entry.
96
+ *
97
+ * @param data - data to store
98
+ * @param opts - storage options
99
+ */
100
+ export async function upsertUserStorage(data, opts) {
101
+ const { bearerToken, path, storageKey, nativeScryptCrypto } = opts;
102
+ const encryptedData = await encryption.encryptString(data, opts.storageKey, nativeScryptCrypto);
103
+ const encryptedPath = createEntryPath(path, storageKey);
104
+ const url = new URL(`${USER_STORAGE_ENDPOINT}/${encryptedPath}`);
105
+ const res = await fetch(url.toString(), {
106
+ method: 'PUT',
107
+ headers: {
108
+ 'Content-Type': 'application/json',
109
+ Authorization: `Bearer ${bearerToken}`,
110
+ },
111
+ body: JSON.stringify({ data: encryptedData }),
112
+ });
113
+ if (!res.ok) {
114
+ throw new Error('user-storage - unable to upsert data');
115
+ }
116
+ }
22
117
  //# sourceMappingURL=services.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"services.mjs","sourceRoot":"","sources":["../../../src/controllers/user-storage/services.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,IAAG,iBAAiB;;AAE3B,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,0BAAsB;AA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H,CAAC","sourcesContent":["import log from 'loglevel';\n\nimport { Env, getEnvUrls } from '../../sdk/env';\nimport encryption from './encryption';\nimport type {\n UserStoragePathWithFeatureAndKey,\n UserStoragePathWithFeatureOnly,\n} from './schema';\nimport { createEntryPath } from './schema';\nimport type { NativeScrypt } from './UserStorageController';\n\nconst ENV_URLS = getEnvUrls(Env.PRD);\n\nexport const USER_STORAGE_API: string = ENV_URLS.userStorageApiUrl;\nexport const USER_STORAGE_ENDPOINT = `${USER_STORAGE_API}/api/v1/userstorage`;\n\n/**\n * This is the Server Response shape for a feature entry.\n */\nexport type GetUserStorageResponse = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n HashedKey: string;\n // eslint-disable-next-line @typescript-eslint/naming-convention\n Data: string;\n};\n\nexport type GetUserStorageAllFeatureEntriesResponse = {\n // eslint-disable-next-line @typescript-eslint/naming-convention\n HashedKey: string;\n // eslint-disable-next-line @typescript-eslint/naming-convention\n Data: string;\n}[];\n\nexport type UserStorageBaseOptions = {\n bearerToken: string;\n storageKey: string;\n nativeScryptCrypto?: NativeScrypt;\n};\n\nexport type UserStorageOptions = UserStorageBaseOptions & {\n path: UserStoragePathWithFeatureAndKey;\n};\n\nexport type UserStorageAllFeatureEntriesOptions = UserStorageBaseOptions & {\n path: UserStoragePathWithFeatureOnly;\n};\n\n/**\n * User Storage Service - Get Storage Entry.\n *\n * @param opts - User Storage Options\n * @returns The storage entry, or null if fails to find entry\n */\nexport async function getUserStorage(\n opts: UserStorageOptions,\n): Promise<string | null> {\n try {\n const { bearerToken, path, storageKey, nativeScryptCrypto } = opts;\n\n const encryptedPath = createEntryPath(path, storageKey);\n const url = new URL(`${USER_STORAGE_ENDPOINT}/${encryptedPath}`);\n\n const userStorageResponse = await fetch(url.toString(), {\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${bearerToken}`,\n },\n });\n\n // Acceptable error - since indicates entry does not exist.\n if (userStorageResponse.status === 404) {\n return null;\n }\n\n if (userStorageResponse.status !== 200) {\n throw new Error('Unable to get User Storage');\n }\n\n const userStorage: GetUserStorageResponse | null =\n await userStorageResponse.json();\n const encryptedData = userStorage?.Data ?? null;\n\n if (!encryptedData) {\n return null;\n }\n\n const decryptedData = await encryption.decryptString(\n encryptedData,\n opts.storageKey,\n nativeScryptCrypto,\n );\n\n return decryptedData;\n } catch (e) {\n log.error('Failed to get user storage', e);\n return null;\n }\n}\n\n/**\n * User Storage Service - Get all storage entries for a specific feature.\n *\n * @param opts - User Storage Options\n * @returns The storage entry, or null if fails to find entry\n */\nexport async function getUserStorageAllFeatureEntries(\n opts: UserStorageAllFeatureEntriesOptions,\n): Promise<string[] | null> {\n try {\n const { bearerToken, path, nativeScryptCrypto } = opts;\n const url = new URL(`${USER_STORAGE_ENDPOINT}/${path}`);\n\n const userStorageResponse = await fetch(url.toString(), {\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${bearerToken}`,\n },\n });\n\n // Acceptable error - since indicates feature does not exist.\n if (userStorageResponse.status === 404) {\n return null;\n }\n\n if (userStorageResponse.status !== 200) {\n throw new Error('Unable to get User Storage');\n }\n\n const userStorage: GetUserStorageAllFeatureEntriesResponse | null =\n await userStorageResponse.json();\n\n if (!Array.isArray(userStorage)) {\n return null;\n }\n\n const decryptedData = userStorage?.flatMap((entry) => {\n if (!entry.Data) {\n return [];\n }\n\n return encryption.decryptString(\n entry.Data,\n opts.storageKey,\n nativeScryptCrypto,\n );\n });\n\n return (await Promise.allSettled(decryptedData))\n .map((d) => (d.status === 'fulfilled' ? d.value : undefined))\n .filter((d): d is string => d !== undefined);\n } catch (e) {\n log.error('Failed to get user storage', e);\n return null;\n }\n}\n\n/**\n * User Storage Service - Set Storage Entry.\n *\n * @param data - data to store\n * @param opts - storage options\n */\nexport async function upsertUserStorage(\n data: string,\n opts: UserStorageOptions,\n): Promise<void> {\n const { bearerToken, path, storageKey, nativeScryptCrypto } = opts;\n\n const encryptedData = await encryption.encryptString(\n data,\n opts.storageKey,\n nativeScryptCrypto,\n );\n const encryptedPath = createEntryPath(path, storageKey);\n const url = new URL(`${USER_STORAGE_ENDPOINT}/${encryptedPath}`);\n\n const res = await fetch(url.toString(), {\n method: 'PUT',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${bearerToken}`,\n },\n body: JSON.stringify({ data: encryptedData }),\n });\n\n if (!res.ok) {\n throw new Error('user-storage - unable to upsert data');\n }\n}\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setIntersection = exports.setDifference = void 0;
4
+ /**
5
+ * Returns the difference between 2 sets.
6
+ * NOTE - this is temporary until we can support Set().difference method
7
+ * @param a - First Set
8
+ * @param b - Second Set
9
+ * @returns The difference between the first and second set.
10
+ */
11
+ function setDifference(a, b) {
12
+ const difference = new Set();
13
+ a.forEach((e) => !b.has(e) && difference.add(e));
14
+ return difference;
15
+ }
16
+ exports.setDifference = setDifference;
17
+ /**
18
+ * Returns the intersection between 2 sets.
19
+ * NOTE - this is temporary until we can support Set().intersection method
20
+ * @param a - First Set
21
+ * @param b - Second Set
22
+ * @returns The intersection between the first and second set.
23
+ */
24
+ function setIntersection(a, b) {
25
+ const intersection = new Set();
26
+ a.forEach((e) => b.has(e) && intersection.add(e));
27
+ return intersection;
28
+ }
29
+ exports.setIntersection = setIntersection;
30
+ //# sourceMappingURL=utils.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.cjs","sourceRoot":"","sources":["../../../src/controllers/user-storage/utils.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,SAAgB,aAAa,CAAQ,CAAa,EAAE,CAAa;IAC/D,MAAM,UAAU,GAAG,IAAI,GAAG,EAAS,CAAC;IACpC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,OAAO,UAAU,CAAC;AACpB,CAAC;AAJD,sCAIC;AAED;;;;;;GAMG;AACH,SAAgB,eAAe,CAC7B,CAAa,EACb,CAAa;IAEb,MAAM,YAAY,GAAG,IAAI,GAAG,EAAS,CAAC;IACtC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,OAAO,YAAY,CAAC;AACtB,CAAC;AAPD,0CAOC","sourcesContent":["/**\n * Returns the difference between 2 sets.\n * NOTE - this is temporary until we can support Set().difference method\n * @param a - First Set\n * @param b - Second Set\n * @returns The difference between the first and second set.\n */\nexport function setDifference<TItem>(a: Set<TItem>, b: Set<TItem>): Set<TItem> {\n const difference = new Set<TItem>();\n a.forEach((e) => !b.has(e) && difference.add(e));\n return difference;\n}\n\n/**\n * Returns the intersection between 2 sets.\n * NOTE - this is temporary until we can support Set().intersection method\n * @param a - First Set\n * @param b - Second Set\n * @returns The intersection between the first and second set.\n */\nexport function setIntersection<TItem>(\n a: Set<TItem>,\n b: Set<TItem>,\n): Set<TItem> {\n const intersection = new Set<TItem>();\n a.forEach((e) => b.has(e) && intersection.add(e));\n return intersection;\n}\n"]}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Returns the difference between 2 sets.
3
+ * NOTE - this is temporary until we can support Set().difference method
4
+ * @param a - First Set
5
+ * @param b - Second Set
6
+ * @returns The difference between the first and second set.
7
+ */
8
+ export declare function setDifference<TItem>(a: Set<TItem>, b: Set<TItem>): Set<TItem>;
9
+ /**
10
+ * Returns the intersection between 2 sets.
11
+ * NOTE - this is temporary until we can support Set().intersection method
12
+ * @param a - First Set
13
+ * @param b - Second Set
14
+ * @returns The intersection between the first and second set.
15
+ */
16
+ export declare function setIntersection<TItem>(a: Set<TItem>, b: Set<TItem>): Set<TItem>;
17
+ //# sourceMappingURL=utils.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.cts","sourceRoot":"","sources":["../../../src/controllers/user-storage/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAI7E;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EACnC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EACb,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,GACZ,GAAG,CAAC,KAAK,CAAC,CAIZ"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Returns the difference between 2 sets.
3
+ * NOTE - this is temporary until we can support Set().difference method
4
+ * @param a - First Set
5
+ * @param b - Second Set
6
+ * @returns The difference between the first and second set.
7
+ */
8
+ export declare function setDifference<TItem>(a: Set<TItem>, b: Set<TItem>): Set<TItem>;
9
+ /**
10
+ * Returns the intersection between 2 sets.
11
+ * NOTE - this is temporary until we can support Set().intersection method
12
+ * @param a - First Set
13
+ * @param b - Second Set
14
+ * @returns The intersection between the first and second set.
15
+ */
16
+ export declare function setIntersection<TItem>(a: Set<TItem>, b: Set<TItem>): Set<TItem>;
17
+ //# sourceMappingURL=utils.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../../../src/controllers/user-storage/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAI7E;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,KAAK,EACnC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,EACb,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,GACZ,GAAG,CAAC,KAAK,CAAC,CAIZ"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Returns the difference between 2 sets.
3
+ * NOTE - this is temporary until we can support Set().difference method
4
+ * @param a - First Set
5
+ * @param b - Second Set
6
+ * @returns The difference between the first and second set.
7
+ */
8
+ export function setDifference(a, b) {
9
+ const difference = new Set();
10
+ a.forEach((e) => !b.has(e) && difference.add(e));
11
+ return difference;
12
+ }
13
+ /**
14
+ * Returns the intersection between 2 sets.
15
+ * NOTE - this is temporary until we can support Set().intersection method
16
+ * @param a - First Set
17
+ * @param b - Second Set
18
+ * @returns The intersection between the first and second set.
19
+ */
20
+ export function setIntersection(a, b) {
21
+ const intersection = new Set();
22
+ a.forEach((e) => b.has(e) && intersection.add(e));
23
+ return intersection;
24
+ }
25
+ //# sourceMappingURL=utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../../../src/controllers/user-storage/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAQ,CAAa,EAAE,CAAa;IAC/D,MAAM,UAAU,GAAG,IAAI,GAAG,EAAS,CAAC;IACpC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACjD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,CAAa,EACb,CAAa;IAEb,MAAM,YAAY,GAAG,IAAI,GAAG,EAAS,CAAC;IACtC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAClD,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["/**\n * Returns the difference between 2 sets.\n * NOTE - this is temporary until we can support Set().difference method\n * @param a - First Set\n * @param b - Second Set\n * @returns The difference between the first and second set.\n */\nexport function setDifference<TItem>(a: Set<TItem>, b: Set<TItem>): Set<TItem> {\n const difference = new Set<TItem>();\n a.forEach((e) => !b.has(e) && difference.add(e));\n return difference;\n}\n\n/**\n * Returns the intersection between 2 sets.\n * NOTE - this is temporary until we can support Set().intersection method\n * @param a - First Set\n * @param b - Second Set\n * @returns The intersection between the first and second set.\n */\nexport function setIntersection<TItem>(\n a: Set<TItem>,\n b: Set<TItem>,\n): Set<TItem> {\n const intersection = new Set<TItem>();\n a.forEach((e) => b.has(e) && intersection.add(e));\n return intersection;\n}\n"]}
package/dist/index.cjs ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.UserStorageController = exports.AuthenticationController = exports.SDK = void 0;
27
+ exports.SDK = __importStar(require("./sdk/index.cjs"));
28
+ exports.AuthenticationController = __importStar(require("./controllers/authentication/index.cjs"));
29
+ exports.UserStorageController = __importStar(require("./controllers/user-storage/index.cjs"));
30
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAA6B;AAC7B,mGAAyE;AACzE,8FAAoE","sourcesContent":["export * as SDK from './sdk';\nexport * as AuthenticationController from './controllers/authentication';\nexport * as UserStorageController from './controllers/user-storage';\n"]}
@@ -0,0 +1,4 @@
1
+ export * as SDK from "./sdk/index.cjs";
2
+ export * as AuthenticationController from "./controllers/authentication/index.cjs";
3
+ export * as UserStorageController from "./controllers/user-storage/index.cjs";
4
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,wBAAc;AAC7B,OAAO,KAAK,wBAAwB,+CAAqC;AACzE,OAAO,KAAK,qBAAqB,6CAAmC"}
@@ -0,0 +1,4 @@
1
+ export * as SDK from "./sdk/index.mjs";
2
+ export * as AuthenticationController from "./controllers/authentication/index.mjs";
3
+ export * as UserStorageController from "./controllers/user-storage/index.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,wBAAc;AAC7B,OAAO,KAAK,wBAAwB,+CAAqC;AACzE,OAAO,KAAK,qBAAqB,6CAAmC"}
package/dist/index.mjs CHANGED
@@ -1,40 +1,4 @@
1
- import {
2
- authentication_exports
3
- } from "./chunk-UHP2Y32K.mjs";
4
- import "./chunk-D4SNJOID.mjs";
5
- import "./chunk-LGXQBALM.mjs";
6
- import {
7
- user_storage_exports
8
- } from "./chunk-NEBLEB3X.mjs";
9
- import "./chunk-OLFO6R7Z.mjs";
10
- import "./chunk-ZUPTMFEA.mjs";
11
- import "./chunk-EHZFPUJH.mjs";
12
- import "./chunk-NMIF3LSX.mjs";
13
- import "./chunk-76NMME23.mjs";
14
- import {
15
- sdk_exports
16
- } from "./chunk-M7AUA5W7.mjs";
17
- import "./chunk-PU7MAIST.mjs";
18
- import "./chunk-2CWF7ZTL.mjs";
19
- import "./chunk-TP7SP3AG.mjs";
20
- import "./chunk-YLURF2PF.mjs";
21
- import "./chunk-CAIIVJAO.mjs";
22
- import "./chunk-5XSXZTED.mjs";
23
- import "./chunk-UEWCUBMX.mjs";
24
- import "./chunk-QDGLIUUS.mjs";
25
- import "./chunk-MK7ABX2V.mjs";
26
- import "./chunk-2VEMA6OE.mjs";
27
- import "./chunk-KHASG4H3.mjs";
28
- import "./chunk-6DAK2U35.mjs";
29
- import "./chunk-COBJUBZE.mjs";
30
- import "./chunk-H25EBXG5.mjs";
31
- import "./chunk-76VRE4BI.mjs";
32
- import "./chunk-KTCSRECK.mjs";
33
- import "./chunk-TFFQFIJV.mjs";
34
- import "./chunk-U5UIDVOO.mjs";
35
- export {
36
- authentication_exports as AuthenticationController,
37
- sdk_exports as SDK,
38
- user_storage_exports as UserStorageController
39
- };
1
+ export * as SDK from "./sdk/index.mjs";
2
+ export * as AuthenticationController from "./controllers/authentication/index.mjs";
3
+ export * as UserStorageController from "./controllers/user-storage/index.mjs";
40
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,wBAAc;AAC7B,OAAO,KAAK,wBAAwB,+CAAqC;AACzE,OAAO,KAAK,qBAAqB,6CAAmC","sourcesContent":["export * as SDK from './sdk';\nexport * as AuthenticationController from './controllers/authentication';\nexport * as UserStorageController from './controllers/user-storage';\n"]}
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.arrangeAuthAPIs = exports.handleMockOAuth2Token = exports.handleMockSrpLogin = exports.handleMockPairIdentifiers = exports.handleMockSiweLogin = exports.handleMockNonce = exports.MOCK_OIDC_TOKEN_RESPONSE = exports.MOCK_SRP_LOGIN_RESPONSE = exports.MOCK_ACCESS_JWT = exports.MOCK_JWT = void 0;
7
+ const nock_1 = __importDefault(require("nock"));
8
+ const services_1 = require("../authentication-jwt-bearer/services.cjs");
9
+ const env_1 = require("../env.cjs");
10
+ const MOCK_NONCE_URL = (0, services_1.NONCE_URL)(env_1.Env.DEV);
11
+ const MOCK_SIWE_LOGIN_URL = (0, services_1.SIWE_LOGIN_URL)(env_1.Env.DEV);
12
+ const MOCK_PAIR_IDENTIFIERS_URL = (0, services_1.PAIR_IDENTIFIERS)(env_1.Env.DEV);
13
+ const MOCK_SRP_LOGIN_URL = (0, services_1.SRP_LOGIN_URL)(env_1.Env.DEV);
14
+ const MOCK_OIDC_TOKEN_URL = (0, services_1.OIDC_TOKEN_URL)(env_1.Env.DEV);
15
+ exports.MOCK_JWT = 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImIwNzE2N2U2LWJjNWUtNDgyZC1hNjRhLWU1MjQ0MjY2MGU3NyJ9.eyJzdWIiOiI1MzE0ODc5YWM2NDU1OGI3OTQ5ZmI4NWIzMjg2ZjZjNjUwODAzYmFiMTY0Y2QyOWNmMmM3YzdmMjMzMWMwZTRlIiwiaWF0IjoxNzA2MTEzMDYyLCJleHAiOjE3NjkxODUwNjMsImlzcyI6ImF1dGgubWV0YW1hc2suaW8iLCJhdWQiOiJwb3J0Zm9saW8ubWV0YW1hc2suaW8ifQ.E5UL6oABNweS8t5a6IBTqTf7NLOJbrhJSmEcsr7kwLp4bGvcENJzACwnsHDkA6PlzfDV09ZhAGU_F3hlS0j-erbY0k0AFR-GAtyS7E9N02D8RgUDz5oDR65CKmzM8JilgFA8UvruJ6OJGogroaOSOqzRES_s8MjHpP47RJ9lXrUesajsbOudXbuksXWg5QmWip6LLvjwr8UUzcJzNQilyIhiEpo4WdzWM4R3VtTwr4rHnWEvtYnYCov1jmI2w3YQ48y0M-3Y9IOO0ov_vlITRrOnR7Y7fRUGLUFmU5msD8mNWRywjQFLHfJJ1yNP5aJ8TkuCK3sC6kcUH335IVvukQ';
16
+ exports.MOCK_ACCESS_JWT = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';
17
+ const MOCK_NONCE_RESPONSE = {
18
+ nonce: 'xGMm9SoihEKeAEfV',
19
+ identifier: '0xd8641601Cb79a94FD872fE42d5b4a067A44a7e88',
20
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
21
+ // eslint-disable-next-line @typescript-eslint/naming-convention
22
+ expires_in: 300,
23
+ };
24
+ const MOCK_SIWE_LOGIN_RESPONSE = {
25
+ token: exports.MOCK_JWT,
26
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
27
+ // eslint-disable-next-line @typescript-eslint/naming-convention
28
+ expires_in: 3600,
29
+ profile: {
30
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
31
+ // eslint-disable-next-line @typescript-eslint/naming-convention
32
+ profile_id: 'fa2bbf82-bd9a-4e6b-aabc-9ca0d0319b6e',
33
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
34
+ // eslint-disable-next-line @typescript-eslint/naming-convention
35
+ metametrics_id: 'de742679-4960-4977-a415-4718b5f8e86c',
36
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
37
+ // eslint-disable-next-line @typescript-eslint/naming-convention
38
+ identifier_id: 'ec9a4e9906836497efad2fd4d4290b34d2c6a2c0d93eb174aa3cd88a133adbaf',
39
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
40
+ // eslint-disable-next-line @typescript-eslint/naming-convention
41
+ identifier_type: 'SIWE',
42
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
43
+ // eslint-disable-next-line @typescript-eslint/naming-convention
44
+ encrypted_storage_key: '2c6a2c0d93eb174aa3cd88a133adbaf',
45
+ },
46
+ };
47
+ exports.MOCK_SRP_LOGIN_RESPONSE = {
48
+ token: exports.MOCK_JWT,
49
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
50
+ // eslint-disable-next-line @typescript-eslint/naming-convention
51
+ expires_in: 3600,
52
+ profile: {
53
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
54
+ // eslint-disable-next-line @typescript-eslint/naming-convention
55
+ profile_id: 'f88227bd-b615-41a3-b0be-467dd781a4ad',
56
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
57
+ // eslint-disable-next-line @typescript-eslint/naming-convention
58
+ metametrics_id: '561ec651-a844-4b36-a451-04d6eac35740',
59
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
60
+ // eslint-disable-next-line @typescript-eslint/naming-convention
61
+ identifier_id: 'da9a9fc7b09edde9cc23cec9b7e11a71fb0ab4d2ddd8af8af905306f3e1456fb',
62
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
63
+ // eslint-disable-next-line @typescript-eslint/naming-convention
64
+ identifier_type: 'SRP',
65
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
66
+ // eslint-disable-next-line @typescript-eslint/naming-convention
67
+ encrypted_storage_key: 'd2ddd8af8af905306f3e1456fb',
68
+ },
69
+ };
70
+ exports.MOCK_OIDC_TOKEN_RESPONSE = {
71
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
72
+ // eslint-disable-next-line @typescript-eslint/naming-convention
73
+ access_token: exports.MOCK_ACCESS_JWT,
74
+ // TODO: Either fix this lint violation or explain why it's necessary to ignore.
75
+ // eslint-disable-next-line @typescript-eslint/naming-convention
76
+ expires_in: 3600,
77
+ };
78
+ const handleMockNonce = (mockReply) => {
79
+ const reply = mockReply ?? { status: 200, body: MOCK_NONCE_RESPONSE };
80
+ const mockNonceEndpoint = (0, nock_1.default)(MOCK_NONCE_URL)
81
+ .persist()
82
+ .get('')
83
+ .query(true)
84
+ .reply(reply.status, reply.body);
85
+ return mockNonceEndpoint;
86
+ };
87
+ exports.handleMockNonce = handleMockNonce;
88
+ const handleMockSiweLogin = (mockReply) => {
89
+ const reply = mockReply ?? { status: 200, body: MOCK_SIWE_LOGIN_RESPONSE };
90
+ const mockLoginEndpoint = (0, nock_1.default)(MOCK_SIWE_LOGIN_URL)
91
+ .persist()
92
+ .post('')
93
+ .reply(reply.status, reply.body);
94
+ return mockLoginEndpoint;
95
+ };
96
+ exports.handleMockSiweLogin = handleMockSiweLogin;
97
+ const handleMockPairIdentifiers = (mockReply) => {
98
+ const reply = mockReply ?? { status: 204 };
99
+ const mockPairIdentifiersEndpoint = (0, nock_1.default)(MOCK_PAIR_IDENTIFIERS_URL)
100
+ .persist()
101
+ .post('')
102
+ .reply(reply.status, reply.body);
103
+ return mockPairIdentifiersEndpoint;
104
+ };
105
+ exports.handleMockPairIdentifiers = handleMockPairIdentifiers;
106
+ const handleMockSrpLogin = (mockReply) => {
107
+ const reply = mockReply ?? { status: 200, body: exports.MOCK_SRP_LOGIN_RESPONSE };
108
+ const mockLoginEndpoint = (0, nock_1.default)(MOCK_SRP_LOGIN_URL)
109
+ .persist()
110
+ .post('')
111
+ .reply(reply.status, reply.body);
112
+ return mockLoginEndpoint;
113
+ };
114
+ exports.handleMockSrpLogin = handleMockSrpLogin;
115
+ const handleMockOAuth2Token = (mockReply) => {
116
+ const reply = mockReply ?? { status: 200, body: exports.MOCK_OIDC_TOKEN_RESPONSE };
117
+ const mockTokenEndpoint = (0, nock_1.default)(MOCK_OIDC_TOKEN_URL)
118
+ .persist()
119
+ .post('')
120
+ .reply(reply.status, reply.body);
121
+ return mockTokenEndpoint;
122
+ };
123
+ exports.handleMockOAuth2Token = handleMockOAuth2Token;
124
+ const arrangeAuthAPIs = (options) => {
125
+ const mockNonceUrl = (0, exports.handleMockNonce)(options?.mockNonceUrl);
126
+ const mockOAuth2TokenUrl = (0, exports.handleMockOAuth2Token)(options?.mockOAuth2TokenUrl);
127
+ const mockSrpLoginUrl = (0, exports.handleMockSrpLogin)(options?.mockSrpLoginUrl);
128
+ const mockSiweLoginUrl = (0, exports.handleMockSiweLogin)(options?.mockSiweLoginUrl);
129
+ const mockPairIdentifiersUrl = (0, exports.handleMockPairIdentifiers)(options?.mockPairIdentifiers);
130
+ return {
131
+ mockNonceUrl,
132
+ mockOAuth2TokenUrl,
133
+ mockSrpLoginUrl,
134
+ mockSiweLoginUrl,
135
+ mockPairIdentifiersUrl,
136
+ };
137
+ };
138
+ exports.arrangeAuthAPIs = arrangeAuthAPIs;
139
+ //# sourceMappingURL=mock-auth.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-auth.cjs","sourceRoot":"","sources":["../../../src/sdk/__fixtures__/mock-auth.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,wEAM+C;AAC/C,oCAA6B;AAO7B,MAAM,cAAc,GAAG,IAAA,oBAAS,EAAC,SAAG,CAAC,GAAG,CAAC,CAAC;AAC1C,MAAM,mBAAmB,GAAG,IAAA,yBAAc,EAAC,SAAG,CAAC,GAAG,CAAC,CAAC;AACpD,MAAM,yBAAyB,GAAG,IAAA,2BAAgB,EAAC,SAAG,CAAC,GAAG,CAAC,CAAC;AAC5D,MAAM,kBAAkB,GAAG,IAAA,wBAAa,EAAC,SAAG,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,mBAAmB,GAAG,IAAA,yBAAc,EAAC,SAAG,CAAC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L,YAAY;QACZ,kBAAkB;QAClB,eAAe;QACf,gBAAgB;QAChB,sBAAsB;KACvB,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,eAAe,mBAsB1B","sourcesContent":["import nock from 'nock';\n\nimport {\n NONCE_URL,\n SIWE_LOGIN_URL,\n SRP_LOGIN_URL,\n OIDC_TOKEN_URL,\n PAIR_IDENTIFIERS,\n} from '../authentication-jwt-bearer/services';\nimport { Env } from '../env';\n\ntype MockReply = {\n status: nock.StatusCode;\n body?: nock.Body;\n};\n\nconst MOCK_NONCE_URL = NONCE_URL(Env.DEV);\nconst MOCK_SIWE_LOGIN_URL = SIWE_LOGIN_URL(Env.DEV);\nconst MOCK_PAIR_IDENTIFIERS_URL = PAIR_IDENTIFIERS(Env.DEV);\nconst MOCK_SRP_LOGIN_URL = SRP_LOGIN_URL(Env.DEV);\nconst MOCK_OIDC_TOKEN_URL = OIDC_TOKEN_URL(Env.DEV);\n\nexport const MOCK_JWT =\n 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImIwNzE2N2U2LWJjNWUtNDgyZC1hNjRhLWU1MjQ0MjY2MGU3NyJ9.eyJzdWIiOiI1MzE0ODc5YWM2NDU1OGI3OTQ5ZmI4NWIzMjg2ZjZjNjUwODAzYmFiMTY0Y2QyOWNmMmM3YzdmMjMzMWMwZTRlIiwiaWF0IjoxNzA2MTEzMDYyLCJleHAiOjE3NjkxODUwNjMsImlzcyI6ImF1dGgubWV0YW1hc2suaW8iLCJhdWQiOiJwb3J0Zm9saW8ubWV0YW1hc2suaW8ifQ.E5UL6oABNweS8t5a6IBTqTf7NLOJbrhJSmEcsr7kwLp4bGvcENJzACwnsHDkA6PlzfDV09ZhAGU_F3hlS0j-erbY0k0AFR-GAtyS7E9N02D8RgUDz5oDR65CKmzM8JilgFA8UvruJ6OJGogroaOSOqzRES_s8MjHpP47RJ9lXrUesajsbOudXbuksXWg5QmWip6LLvjwr8UUzcJzNQilyIhiEpo4WdzWM4R3VtTwr4rHnWEvtYnYCov1jmI2w3YQ48y0M-3Y9IOO0ov_vlITRrOnR7Y7fRUGLUFmU5msD8mNWRywjQFLHfJJ1yNP5aJ8TkuCK3sC6kcUH335IVvukQ';\n\nexport const MOCK_ACCESS_JWT =\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';\n\nconst MOCK_NONCE_RESPONSE = {\n nonce: 'xGMm9SoihEKeAEfV',\n identifier: '0xd8641601Cb79a94FD872fE42d5b4a067A44a7e88',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n expires_in: 300,\n};\n\nconst MOCK_SIWE_LOGIN_RESPONSE = {\n token: MOCK_JWT,\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n expires_in: 3600,\n profile: {\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n profile_id: 'fa2bbf82-bd9a-4e6b-aabc-9ca0d0319b6e',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n metametrics_id: 'de742679-4960-4977-a415-4718b5f8e86c',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n identifier_id:\n 'ec9a4e9906836497efad2fd4d4290b34d2c6a2c0d93eb174aa3cd88a133adbaf',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n identifier_type: 'SIWE',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n encrypted_storage_key: '2c6a2c0d93eb174aa3cd88a133adbaf',\n },\n};\n\nexport const MOCK_SRP_LOGIN_RESPONSE = {\n token: MOCK_JWT,\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n expires_in: 3600,\n profile: {\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n profile_id: 'f88227bd-b615-41a3-b0be-467dd781a4ad',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n metametrics_id: '561ec651-a844-4b36-a451-04d6eac35740',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n identifier_id:\n 'da9a9fc7b09edde9cc23cec9b7e11a71fb0ab4d2ddd8af8af905306f3e1456fb',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n identifier_type: 'SRP',\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n encrypted_storage_key: 'd2ddd8af8af905306f3e1456fb',\n },\n};\n\nexport const MOCK_OIDC_TOKEN_RESPONSE = {\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n access_token: MOCK_ACCESS_JWT,\n // TODO: Either fix this lint violation or explain why it's necessary to ignore.\n // eslint-disable-next-line @typescript-eslint/naming-convention\n expires_in: 3600,\n};\n\nexport const handleMockNonce = (mockReply?: MockReply) => {\n const reply = mockReply ?? { status: 200, body: MOCK_NONCE_RESPONSE };\n\n const mockNonceEndpoint = nock(MOCK_NONCE_URL)\n .persist()\n .get('')\n .query(true)\n .reply(reply.status, reply.body);\n\n return mockNonceEndpoint;\n};\n\nexport const handleMockSiweLogin = (mockReply?: MockReply) => {\n const reply = mockReply ?? { status: 200, body: MOCK_SIWE_LOGIN_RESPONSE };\n const mockLoginEndpoint = nock(MOCK_SIWE_LOGIN_URL)\n .persist()\n .post('')\n .reply(reply.status, reply.body);\n\n return mockLoginEndpoint;\n};\n\nexport const handleMockPairIdentifiers = (mockReply?: MockReply) => {\n const reply = mockReply ?? { status: 204 };\n const mockPairIdentifiersEndpoint = nock(MOCK_PAIR_IDENTIFIERS_URL)\n .persist()\n .post('')\n .reply(reply.status, reply.body);\n\n return mockPairIdentifiersEndpoint;\n};\n\nexport const handleMockSrpLogin = (mockReply?: MockReply) => {\n const reply = mockReply ?? { status: 200, body: MOCK_SRP_LOGIN_RESPONSE };\n const mockLoginEndpoint = nock(MOCK_SRP_LOGIN_URL)\n .persist()\n .post('')\n .reply(reply.status, reply.body);\n\n return mockLoginEndpoint;\n};\n\nexport const handleMockOAuth2Token = (mockReply?: MockReply) => {\n const reply = mockReply ?? { status: 200, body: MOCK_OIDC_TOKEN_RESPONSE };\n const mockTokenEndpoint = nock(MOCK_OIDC_TOKEN_URL)\n .persist()\n .post('')\n .reply(reply.status, reply.body);\n\n return mockTokenEndpoint;\n};\n\nexport const arrangeAuthAPIs = (options?: {\n mockNonceUrl?: MockReply;\n mockOAuth2TokenUrl?: MockReply;\n mockSrpLoginUrl?: MockReply;\n mockSiweLoginUrl?: MockReply;\n mockPairIdentifiers?: MockReply;\n}) => {\n const mockNonceUrl = handleMockNonce(options?.mockNonceUrl);\n const mockOAuth2TokenUrl = handleMockOAuth2Token(options?.mockOAuth2TokenUrl);\n const mockSrpLoginUrl = handleMockSrpLogin(options?.mockSrpLoginUrl);\n const mockSiweLoginUrl = handleMockSiweLogin(options?.mockSiweLoginUrl);\n const mockPairIdentifiersUrl = handleMockPairIdentifiers(\n options?.mockPairIdentifiers,\n );\n\n return {\n mockNonceUrl,\n mockOAuth2TokenUrl,\n mockSrpLoginUrl,\n mockSiweLoginUrl,\n mockPairIdentifiersUrl,\n };\n};\n"]}
@@ -1,4 +1,4 @@
1
- import nock from 'nock';
1
+ import nock from "nock";
2
2
  type MockReply = {
3
3
  status: nock.StatusCode;
4
4
  body?: nock.Body;
@@ -39,4 +39,4 @@ export declare const arrangeAuthAPIs: (options?: {
39
39
  mockPairIdentifiersUrl: nock.Scope;
40
40
  };
41
41
  export {};
42
- //# sourceMappingURL=mock-auth.d.ts.map
42
+ //# sourceMappingURL=mock-auth.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-auth.d.cts","sourceRoot":"","sources":["../../../src/sdk/__fixtures__/mock-auth.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,aAAa;AAWxB,KAAK,SAAS,GAAG;IACf,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;CAClB,CAAC;AAQF,eAAO,MAAM,QAAQ,upBACioB,CAAC;AAEvpB,eAAO,MAAM,eAAe,gKACmI,CAAC;AAmChK,eAAO,MAAM,uBAAuB;;;;;;;;;;CAuBnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;CAOpC,CAAC;AAEF,eAAO,MAAM,eAAe,eAAgB,SAAS,eAUpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAgB,SAAS,eAQxD,CAAC;AAEF,eAAO,MAAM,yBAAyB,eAAgB,SAAS,eAQ9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB,SAAS,eAQvD,CAAC;AAEF,eAAO,MAAM,qBAAqB,eAAgB,SAAS,eAQ1D,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc;IACxC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,mBAAmB,CAAC,EAAE,SAAS,CAAC;CACjC;;;;;;CAgBA,CAAC"}
@@ -0,0 +1,42 @@
1
+ import nock from "nock";
2
+ type MockReply = {
3
+ status: nock.StatusCode;
4
+ body?: nock.Body;
5
+ };
6
+ export declare const MOCK_JWT = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImIwNzE2N2U2LWJjNWUtNDgyZC1hNjRhLWU1MjQ0MjY2MGU3NyJ9.eyJzdWIiOiI1MzE0ODc5YWM2NDU1OGI3OTQ5ZmI4NWIzMjg2ZjZjNjUwODAzYmFiMTY0Y2QyOWNmMmM3YzdmMjMzMWMwZTRlIiwiaWF0IjoxNzA2MTEzMDYyLCJleHAiOjE3NjkxODUwNjMsImlzcyI6ImF1dGgubWV0YW1hc2suaW8iLCJhdWQiOiJwb3J0Zm9saW8ubWV0YW1hc2suaW8ifQ.E5UL6oABNweS8t5a6IBTqTf7NLOJbrhJSmEcsr7kwLp4bGvcENJzACwnsHDkA6PlzfDV09ZhAGU_F3hlS0j-erbY0k0AFR-GAtyS7E9N02D8RgUDz5oDR65CKmzM8JilgFA8UvruJ6OJGogroaOSOqzRES_s8MjHpP47RJ9lXrUesajsbOudXbuksXWg5QmWip6LLvjwr8UUzcJzNQilyIhiEpo4WdzWM4R3VtTwr4rHnWEvtYnYCov1jmI2w3YQ48y0M-3Y9IOO0ov_vlITRrOnR7Y7fRUGLUFmU5msD8mNWRywjQFLHfJJ1yNP5aJ8TkuCK3sC6kcUH335IVvukQ";
7
+ export declare const MOCK_ACCESS_JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c";
8
+ export declare const MOCK_SRP_LOGIN_RESPONSE: {
9
+ token: string;
10
+ expires_in: number;
11
+ profile: {
12
+ profile_id: string;
13
+ metametrics_id: string;
14
+ identifier_id: string;
15
+ identifier_type: string;
16
+ encrypted_storage_key: string;
17
+ };
18
+ };
19
+ export declare const MOCK_OIDC_TOKEN_RESPONSE: {
20
+ access_token: string;
21
+ expires_in: number;
22
+ };
23
+ export declare const handleMockNonce: (mockReply?: MockReply) => nock.Scope;
24
+ export declare const handleMockSiweLogin: (mockReply?: MockReply) => nock.Scope;
25
+ export declare const handleMockPairIdentifiers: (mockReply?: MockReply) => nock.Scope;
26
+ export declare const handleMockSrpLogin: (mockReply?: MockReply) => nock.Scope;
27
+ export declare const handleMockOAuth2Token: (mockReply?: MockReply) => nock.Scope;
28
+ export declare const arrangeAuthAPIs: (options?: {
29
+ mockNonceUrl?: MockReply;
30
+ mockOAuth2TokenUrl?: MockReply;
31
+ mockSrpLoginUrl?: MockReply;
32
+ mockSiweLoginUrl?: MockReply;
33
+ mockPairIdentifiers?: MockReply;
34
+ }) => {
35
+ mockNonceUrl: nock.Scope;
36
+ mockOAuth2TokenUrl: nock.Scope;
37
+ mockSrpLoginUrl: nock.Scope;
38
+ mockSiweLoginUrl: nock.Scope;
39
+ mockPairIdentifiersUrl: nock.Scope;
40
+ };
41
+ export {};
42
+ //# sourceMappingURL=mock-auth.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-auth.d.mts","sourceRoot":"","sources":["../../../src/sdk/__fixtures__/mock-auth.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,aAAa;AAWxB,KAAK,SAAS,GAAG;IACf,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC;IACxB,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC;CAClB,CAAC;AAQF,eAAO,MAAM,QAAQ,upBACioB,CAAC;AAEvpB,eAAO,MAAM,eAAe,gKACmI,CAAC;AAmChK,eAAO,MAAM,uBAAuB;;;;;;;;;;CAuBnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;CAOpC,CAAC;AAEF,eAAO,MAAM,eAAe,eAAgB,SAAS,eAUpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAgB,SAAS,eAQxD,CAAC;AAEF,eAAO,MAAM,yBAAyB,eAAgB,SAAS,eAQ9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB,SAAS,eAQvD,CAAC;AAEF,eAAO,MAAM,qBAAqB,eAAgB,SAAS,eAQ1D,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc;IACxC,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,mBAAmB,CAAC,EAAE,SAAS,CAAC;CACjC;;;;;;CAgBA,CAAC"}