@metamask-previews/notification-services-controller 26.0.1-preview-4f4c98e → 26.0.1-preview-eb263b0ee

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 (655) hide show
  1. package/CHANGELOG.md +0 -1
  2. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.cjs +7 -0
  3. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.cjs.map +1 -0
  4. package/dist/NotificationServicesController/{NotificationServicesController-method-action-types.d.ts → NotificationServicesController-method-action-types.d.cts} +2 -2
  5. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.cts.map +1 -0
  6. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.mts +206 -0
  7. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.mts.map +1 -0
  8. package/dist/NotificationServicesController/{NotificationServicesController-method-action-types.js → NotificationServicesController-method-action-types.mjs} +1 -1
  9. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.mjs.map +1 -0
  10. package/dist/NotificationServicesController/NotificationServicesController.cjs +1055 -0
  11. package/dist/NotificationServicesController/NotificationServicesController.cjs.map +1 -0
  12. package/dist/NotificationServicesController/{NotificationServicesController.d.ts → NotificationServicesController.d.cts} +15 -15
  13. package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +1 -0
  14. package/dist/NotificationServicesController/NotificationServicesController.d.mts +292 -0
  15. package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +1 -0
  16. package/dist/NotificationServicesController/{NotificationServicesController.js → NotificationServicesController.mjs} +26 -18
  17. package/dist/NotificationServicesController/NotificationServicesController.mjs.map +1 -0
  18. package/dist/NotificationServicesController/constants/index.cjs +18 -0
  19. package/dist/NotificationServicesController/constants/index.cjs.map +1 -0
  20. package/dist/NotificationServicesController/constants/index.d.cts +2 -0
  21. package/dist/NotificationServicesController/constants/index.d.cts.map +1 -0
  22. package/dist/NotificationServicesController/constants/index.d.mts +2 -0
  23. package/dist/NotificationServicesController/constants/index.d.mts.map +1 -0
  24. package/dist/NotificationServicesController/constants/index.mjs +2 -0
  25. package/dist/NotificationServicesController/constants/index.mjs.map +1 -0
  26. package/dist/NotificationServicesController/constants/notification-schema.cjs +46 -0
  27. package/dist/NotificationServicesController/constants/notification-schema.cjs.map +1 -0
  28. package/dist/NotificationServicesController/constants/{notification-schema.d.ts → notification-schema.d.cts} +1 -1
  29. package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +1 -0
  30. package/dist/NotificationServicesController/constants/notification-schema.d.mts +22 -0
  31. package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +1 -0
  32. package/dist/NotificationServicesController/constants/{notification-schema.js → notification-schema.mjs} +1 -1
  33. package/dist/NotificationServicesController/constants/notification-schema.mjs.map +1 -0
  34. package/dist/NotificationServicesController/index.cjs +44 -0
  35. package/dist/NotificationServicesController/index.cjs.map +1 -0
  36. package/dist/NotificationServicesController/{index.d.ts → index.d.cts} +14 -14
  37. package/dist/NotificationServicesController/index.d.cts.map +1 -0
  38. package/dist/NotificationServicesController/index.d.mts +16 -0
  39. package/dist/NotificationServicesController/index.d.mts.map +1 -0
  40. package/dist/NotificationServicesController/index.mjs +13 -0
  41. package/dist/NotificationServicesController/index.mjs.map +1 -0
  42. package/dist/NotificationServicesController/mocks/index.cjs +21 -0
  43. package/dist/NotificationServicesController/mocks/index.cjs.map +1 -0
  44. package/dist/NotificationServicesController/mocks/index.d.cts +5 -0
  45. package/dist/NotificationServicesController/mocks/index.d.cts.map +1 -0
  46. package/dist/NotificationServicesController/mocks/index.d.mts +5 -0
  47. package/dist/NotificationServicesController/mocks/index.d.mts.map +1 -0
  48. package/dist/NotificationServicesController/mocks/index.mjs +5 -0
  49. package/dist/NotificationServicesController/mocks/index.mjs.map +1 -0
  50. package/dist/NotificationServicesController/mocks/mock-feature-announcements.cjs +210 -0
  51. package/dist/NotificationServicesController/mocks/mock-feature-announcements.cjs.map +1 -0
  52. package/dist/NotificationServicesController/mocks/{mock-feature-announcements.d.ts → mock-feature-announcements.d.cts} +3 -3
  53. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.cts.map +1 -0
  54. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.mts +15 -0
  55. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.mts.map +1 -0
  56. package/dist/NotificationServicesController/mocks/{mock-feature-announcements.js → mock-feature-announcements.mjs} +2 -2
  57. package/dist/NotificationServicesController/mocks/mock-feature-announcements.mjs.map +1 -0
  58. package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs +830 -0
  59. package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs.map +1 -0
  60. package/dist/NotificationServicesController/mocks/{mock-raw-notifications.d.ts → mock-raw-notifications.d.cts} +2 -2
  61. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.cts.map +1 -0
  62. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts +104 -0
  63. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts.map +1 -0
  64. package/dist/NotificationServicesController/mocks/{mock-raw-notifications.js → mock-raw-notifications.mjs} +2 -2
  65. package/dist/NotificationServicesController/mocks/mock-raw-notifications.mjs.map +1 -0
  66. package/dist/NotificationServicesController/mocks/mock-snap-notification.cjs +29 -0
  67. package/dist/NotificationServicesController/mocks/mock-snap-notification.cjs.map +1 -0
  68. package/dist/NotificationServicesController/mocks/{mock-snap-notification.d.ts → mock-snap-notification.d.cts} +2 -2
  69. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.cts.map +1 -0
  70. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.mts +8 -0
  71. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.mts.map +1 -0
  72. package/dist/NotificationServicesController/mocks/{mock-snap-notification.js → mock-snap-notification.mjs} +2 -2
  73. package/dist/NotificationServicesController/mocks/mock-snap-notification.mjs.map +1 -0
  74. package/dist/NotificationServicesController/mocks/mockResponses.cjs +53 -0
  75. package/dist/NotificationServicesController/mocks/mockResponses.cjs.map +1 -0
  76. package/dist/NotificationServicesController/mocks/{mockResponses.d.ts → mockResponses.d.cts} +3 -3
  77. package/dist/NotificationServicesController/mocks/mockResponses.d.cts.map +1 -0
  78. package/dist/NotificationServicesController/mocks/mockResponses.d.mts +14 -0
  79. package/dist/NotificationServicesController/mocks/mockResponses.d.mts.map +1 -0
  80. package/dist/NotificationServicesController/mocks/{mockResponses.js → mockResponses.mjs} +6 -6
  81. package/dist/NotificationServicesController/mocks/mockResponses.mjs.map +1 -0
  82. package/dist/NotificationServicesController/processors/index.cjs +20 -0
  83. package/dist/NotificationServicesController/processors/index.cjs.map +1 -0
  84. package/dist/NotificationServicesController/processors/index.d.cts +4 -0
  85. package/dist/NotificationServicesController/processors/index.d.cts.map +1 -0
  86. package/dist/NotificationServicesController/processors/index.d.mts +4 -0
  87. package/dist/NotificationServicesController/processors/index.d.mts.map +1 -0
  88. package/dist/NotificationServicesController/processors/index.mjs +4 -0
  89. package/dist/NotificationServicesController/processors/index.mjs.map +1 -0
  90. package/dist/NotificationServicesController/processors/process-api-notifications.cjs +24 -0
  91. package/dist/NotificationServicesController/processors/process-api-notifications.cjs.map +1 -0
  92. package/dist/NotificationServicesController/processors/{process-api-notifications.d.ts → process-api-notifications.d.cts} +3 -3
  93. package/dist/NotificationServicesController/processors/process-api-notifications.d.cts.map +1 -0
  94. package/dist/NotificationServicesController/processors/process-api-notifications.d.mts +10 -0
  95. package/dist/NotificationServicesController/processors/process-api-notifications.d.mts.map +1 -0
  96. package/dist/NotificationServicesController/processors/{process-api-notifications.js → process-api-notifications.mjs} +3 -3
  97. package/dist/NotificationServicesController/processors/process-api-notifications.mjs.map +1 -0
  98. package/dist/NotificationServicesController/processors/process-feature-announcement.cjs +38 -0
  99. package/dist/NotificationServicesController/processors/process-feature-announcement.cjs.map +1 -0
  100. package/dist/NotificationServicesController/processors/{process-feature-announcement.d.ts → process-feature-announcement.d.cts} +3 -3
  101. package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts.map +1 -0
  102. package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts +19 -0
  103. package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts.map +1 -0
  104. package/dist/NotificationServicesController/processors/{process-feature-announcement.js → process-feature-announcement.mjs} +3 -3
  105. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +1 -0
  106. package/dist/NotificationServicesController/processors/process-notifications.cjs +60 -0
  107. package/dist/NotificationServicesController/processors/process-notifications.cjs.map +1 -0
  108. package/dist/NotificationServicesController/processors/{process-notifications.d.ts → process-notifications.d.cts} +2 -2
  109. package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +1 -0
  110. package/dist/NotificationServicesController/processors/process-notifications.d.mts +20 -0
  111. package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +1 -0
  112. package/dist/NotificationServicesController/processors/{process-notifications.js → process-notifications.mjs} +5 -5
  113. package/dist/NotificationServicesController/processors/process-notifications.mjs.map +1 -0
  114. package/dist/NotificationServicesController/processors/process-snap-notifications.cjs +25 -0
  115. package/dist/NotificationServicesController/processors/process-snap-notifications.cjs.map +1 -0
  116. package/dist/NotificationServicesController/processors/{process-snap-notifications.d.ts → process-snap-notifications.d.cts} +3 -3
  117. package/dist/NotificationServicesController/processors/process-snap-notifications.d.cts.map +1 -0
  118. package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts +10 -0
  119. package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts.map +1 -0
  120. package/dist/NotificationServicesController/processors/{process-snap-notifications.js → process-snap-notifications.mjs} +3 -3
  121. package/dist/NotificationServicesController/processors/process-snap-notifications.mjs.map +1 -0
  122. package/dist/NotificationServicesController/services/api-notifications.cjs +128 -0
  123. package/dist/NotificationServicesController/services/api-notifications.cjs.map +1 -0
  124. package/dist/NotificationServicesController/services/{api-notifications.d.ts → api-notifications.d.cts} +2 -2
  125. package/dist/NotificationServicesController/services/api-notifications.d.cts.map +1 -0
  126. package/dist/NotificationServicesController/services/api-notifications.d.mts +44 -0
  127. package/dist/NotificationServicesController/services/api-notifications.d.mts.map +1 -0
  128. package/dist/NotificationServicesController/services/{api-notifications.js → api-notifications.mjs} +12 -5
  129. package/dist/NotificationServicesController/services/api-notifications.mjs.map +1 -0
  130. package/dist/NotificationServicesController/services/feature-announcements.cjs +140 -0
  131. package/dist/NotificationServicesController/services/feature-announcements.cjs.map +1 -0
  132. package/dist/NotificationServicesController/services/{feature-announcements.d.ts → feature-announcements.d.cts} +4 -4
  133. package/dist/NotificationServicesController/services/feature-announcements.d.cts.map +1 -0
  134. package/dist/NotificationServicesController/services/feature-announcements.d.mts +32 -0
  135. package/dist/NotificationServicesController/services/feature-announcements.d.mts.map +1 -0
  136. package/dist/NotificationServicesController/services/{feature-announcements.js → feature-announcements.mjs} +5 -5
  137. package/dist/NotificationServicesController/services/feature-announcements.mjs.map +1 -0
  138. package/dist/NotificationServicesController/services/notification-config-cache.cjs +61 -0
  139. package/dist/NotificationServicesController/services/notification-config-cache.cjs.map +1 -0
  140. package/dist/NotificationServicesController/services/{notification-config-cache.d.ts → notification-config-cache.d.cts} +1 -1
  141. package/dist/NotificationServicesController/services/notification-config-cache.d.cts.map +1 -0
  142. package/dist/NotificationServicesController/services/notification-config-cache.d.mts +15 -0
  143. package/dist/NotificationServicesController/services/notification-config-cache.d.mts.map +1 -0
  144. package/dist/NotificationServicesController/services/{notification-config-cache.js → notification-config-cache.mjs} +1 -1
  145. package/dist/NotificationServicesController/services/notification-config-cache.mjs.map +1 -0
  146. package/dist/NotificationServicesController/services/perp-notifications.cjs +31 -0
  147. package/dist/NotificationServicesController/services/perp-notifications.cjs.map +1 -0
  148. package/dist/NotificationServicesController/services/{perp-notifications.d.ts → perp-notifications.d.cts} +2 -2
  149. package/dist/NotificationServicesController/services/perp-notifications.d.cts.map +1 -0
  150. package/dist/NotificationServicesController/services/perp-notifications.d.mts +11 -0
  151. package/dist/NotificationServicesController/services/perp-notifications.d.mts.map +1 -0
  152. package/dist/NotificationServicesController/services/{perp-notifications.js → perp-notifications.mjs} +2 -2
  153. package/dist/NotificationServicesController/services/perp-notifications.mjs.map +1 -0
  154. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs +3 -0
  155. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs.map +1 -0
  156. package/dist/NotificationServicesController/types/feature-announcement/{feature-announcement.d.ts → feature-announcement.d.cts} +3 -3
  157. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.cts.map +1 -0
  158. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts +32 -0
  159. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts.map +1 -0
  160. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs +2 -0
  161. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs.map +1 -0
  162. package/dist/NotificationServicesController/types/feature-announcement/index.cjs +3 -0
  163. package/dist/NotificationServicesController/types/feature-announcement/index.cjs.map +1 -0
  164. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts +4 -0
  165. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts.map +1 -0
  166. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts +4 -0
  167. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts.map +1 -0
  168. package/dist/NotificationServicesController/types/feature-announcement/index.mjs +2 -0
  169. package/dist/NotificationServicesController/types/feature-announcement/index.mjs.map +1 -0
  170. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs +3 -0
  171. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs.map +1 -0
  172. package/dist/NotificationServicesController/types/feature-announcement/{type-feature-announcement.d.ts → type-feature-announcement.d.cts} +3 -3
  173. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts.map +1 -0
  174. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts +43 -0
  175. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts.map +1 -0
  176. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs +2 -0
  177. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs.map +1 -0
  178. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs +3 -0
  179. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs.map +1 -0
  180. package/dist/NotificationServicesController/types/feature-announcement/{type-links.d.ts → type-links.d.cts} +1 -1
  181. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.cts.map +1 -0
  182. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts +29 -0
  183. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts.map +1 -0
  184. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs +2 -0
  185. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs.map +1 -0
  186. package/dist/NotificationServicesController/types/index.cjs +3 -0
  187. package/dist/NotificationServicesController/types/index.cjs.map +1 -0
  188. package/dist/NotificationServicesController/types/index.d.cts +6 -0
  189. package/dist/NotificationServicesController/types/index.d.cts.map +1 -0
  190. package/dist/NotificationServicesController/types/index.d.mts +6 -0
  191. package/dist/NotificationServicesController/types/index.d.mts.map +1 -0
  192. package/dist/NotificationServicesController/types/index.mjs +2 -0
  193. package/dist/NotificationServicesController/types/index.mjs.map +1 -0
  194. package/dist/NotificationServicesController/types/notification/index.cjs +3 -0
  195. package/dist/NotificationServicesController/types/notification/index.cjs.map +1 -0
  196. package/dist/NotificationServicesController/types/notification/index.d.cts +2 -0
  197. package/dist/NotificationServicesController/types/notification/index.d.cts.map +1 -0
  198. package/dist/NotificationServicesController/types/notification/index.d.mts +2 -0
  199. package/dist/NotificationServicesController/types/notification/index.d.mts.map +1 -0
  200. package/dist/NotificationServicesController/types/notification/index.mjs +2 -0
  201. package/dist/NotificationServicesController/types/notification/index.mjs.map +1 -0
  202. package/dist/NotificationServicesController/types/notification/notification.cjs +3 -0
  203. package/dist/NotificationServicesController/types/notification/notification.cjs.map +1 -0
  204. package/dist/NotificationServicesController/types/notification/{notification.d.ts → notification.d.cts} +5 -5
  205. package/dist/NotificationServicesController/types/notification/notification.d.cts.map +1 -0
  206. package/dist/NotificationServicesController/types/notification/notification.d.mts +22 -0
  207. package/dist/NotificationServicesController/types/notification/notification.d.mts.map +1 -0
  208. package/dist/NotificationServicesController/types/notification/notification.mjs +2 -0
  209. package/dist/NotificationServicesController/types/notification/notification.mjs.map +1 -0
  210. package/dist/NotificationServicesController/types/notification-api/index.cjs +3 -0
  211. package/dist/NotificationServicesController/types/notification-api/index.cjs.map +1 -0
  212. package/dist/NotificationServicesController/types/notification-api/index.d.cts +3 -0
  213. package/dist/NotificationServicesController/types/notification-api/index.d.cts.map +1 -0
  214. package/dist/NotificationServicesController/types/notification-api/index.d.mts +3 -0
  215. package/dist/NotificationServicesController/types/notification-api/index.d.mts.map +1 -0
  216. package/dist/NotificationServicesController/types/notification-api/index.mjs +2 -0
  217. package/dist/NotificationServicesController/types/notification-api/index.mjs.map +1 -0
  218. package/dist/NotificationServicesController/types/notification-api/notification-api.cjs +4 -0
  219. package/dist/NotificationServicesController/types/notification-api/notification-api.cjs.map +1 -0
  220. package/dist/NotificationServicesController/types/notification-api/{notification-api.d.ts → notification-api.d.cts} +4 -4
  221. package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts.map +1 -0
  222. package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts +59 -0
  223. package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts.map +1 -0
  224. package/dist/NotificationServicesController/types/notification-api/notification-api.mjs +2 -0
  225. package/dist/NotificationServicesController/types/notification-api/notification-api.mjs.map +1 -0
  226. package/dist/NotificationServicesController/types/notification-api/schema.cjs +6 -0
  227. package/dist/NotificationServicesController/types/notification-api/schema.cjs.map +1 -0
  228. package/dist/NotificationServicesController/types/notification-api/{schema.d.ts → schema.d.cts} +1 -1
  229. package/dist/NotificationServicesController/types/notification-api/schema.d.cts.map +1 -0
  230. package/dist/NotificationServicesController/types/notification-api/schema.d.mts +752 -0
  231. package/dist/NotificationServicesController/types/notification-api/schema.d.mts.map +1 -0
  232. package/dist/NotificationServicesController/types/notification-api/{schema.js → schema.mjs} +1 -1
  233. package/dist/NotificationServicesController/types/notification-api/schema.mjs.map +1 -0
  234. package/dist/NotificationServicesController/types/perps/index.cjs +3 -0
  235. package/dist/NotificationServicesController/types/perps/index.cjs.map +1 -0
  236. package/dist/NotificationServicesController/types/perps/index.d.cts +2 -0
  237. package/dist/NotificationServicesController/types/perps/index.d.cts.map +1 -0
  238. package/dist/NotificationServicesController/types/perps/index.d.mts +2 -0
  239. package/dist/NotificationServicesController/types/perps/index.d.mts.map +1 -0
  240. package/dist/NotificationServicesController/types/perps/index.mjs +2 -0
  241. package/dist/NotificationServicesController/types/perps/index.mjs.map +1 -0
  242. package/dist/NotificationServicesController/types/perps/perp-types.cjs +3 -0
  243. package/dist/NotificationServicesController/types/perps/perp-types.cjs.map +1 -0
  244. package/dist/NotificationServicesController/types/perps/perp-types.d.cts +3 -0
  245. package/dist/NotificationServicesController/types/perps/perp-types.d.cts.map +1 -0
  246. package/dist/NotificationServicesController/types/perps/perp-types.d.mts +3 -0
  247. package/dist/NotificationServicesController/types/perps/perp-types.d.mts.map +1 -0
  248. package/dist/NotificationServicesController/types/perps/perp-types.mjs +2 -0
  249. package/dist/NotificationServicesController/types/perps/perp-types.mjs.map +1 -0
  250. package/dist/NotificationServicesController/types/perps/schema.cjs +6 -0
  251. package/dist/NotificationServicesController/types/perps/schema.cjs.map +1 -0
  252. package/dist/NotificationServicesController/types/perps/{schema.d.ts → schema.d.cts} +1 -1
  253. package/dist/NotificationServicesController/types/perps/schema.d.cts.map +1 -0
  254. package/dist/NotificationServicesController/types/perps/schema.d.mts +133 -0
  255. package/dist/NotificationServicesController/types/perps/schema.d.mts.map +1 -0
  256. package/dist/NotificationServicesController/types/perps/{schema.js → schema.mjs} +1 -1
  257. package/dist/NotificationServicesController/types/perps/schema.mjs.map +1 -0
  258. package/dist/NotificationServicesController/types/snaps/index.cjs +3 -0
  259. package/dist/NotificationServicesController/types/snaps/index.cjs.map +1 -0
  260. package/dist/NotificationServicesController/types/snaps/index.d.cts +2 -0
  261. package/dist/NotificationServicesController/types/snaps/index.d.cts.map +1 -0
  262. package/dist/NotificationServicesController/types/snaps/index.d.mts +2 -0
  263. package/dist/NotificationServicesController/types/snaps/index.d.mts.map +1 -0
  264. package/dist/NotificationServicesController/types/snaps/index.mjs +2 -0
  265. package/dist/NotificationServicesController/types/snaps/index.mjs.map +1 -0
  266. package/dist/NotificationServicesController/types/snaps/snaps.cjs +3 -0
  267. package/dist/NotificationServicesController/types/snaps/snaps.cjs.map +1 -0
  268. package/dist/NotificationServicesController/types/snaps/{snaps.d.ts → snaps.d.cts} +2 -2
  269. package/dist/NotificationServicesController/types/snaps/snaps.d.cts.map +1 -0
  270. package/dist/NotificationServicesController/types/snaps/snaps.d.mts +23 -0
  271. package/dist/NotificationServicesController/types/snaps/snaps.d.mts.map +1 -0
  272. package/dist/NotificationServicesController/types/snaps/snaps.mjs +2 -0
  273. package/dist/NotificationServicesController/types/snaps/snaps.mjs.map +1 -0
  274. package/dist/NotificationServicesController/types/type-utils.cjs +3 -0
  275. package/dist/NotificationServicesController/types/type-utils.cjs.map +1 -0
  276. package/dist/NotificationServicesController/types/{type-utils.d.ts → type-utils.d.cts} +1 -1
  277. package/dist/NotificationServicesController/types/type-utils.d.cts.map +1 -0
  278. package/dist/NotificationServicesController/types/type-utils.d.mts +7 -0
  279. package/dist/NotificationServicesController/types/type-utils.d.mts.map +1 -0
  280. package/dist/NotificationServicesController/types/type-utils.mjs +2 -0
  281. package/dist/NotificationServicesController/types/type-utils.mjs.map +1 -0
  282. package/dist/NotificationServicesController/utils/get-notification-subtype.cjs +33 -0
  283. package/dist/NotificationServicesController/utils/get-notification-subtype.cjs.map +1 -0
  284. package/dist/NotificationServicesController/utils/{get-notification-subtype.d.ts → get-notification-subtype.d.cts} +2 -2
  285. package/dist/NotificationServicesController/utils/get-notification-subtype.d.cts.map +1 -0
  286. package/dist/NotificationServicesController/utils/get-notification-subtype.d.mts +17 -0
  287. package/dist/NotificationServicesController/utils/get-notification-subtype.d.mts.map +1 -0
  288. package/dist/NotificationServicesController/utils/{get-notification-subtype.js → get-notification-subtype.mjs} +3 -3
  289. package/dist/NotificationServicesController/utils/get-notification-subtype.mjs.map +1 -0
  290. package/dist/NotificationServicesController/utils/isVersionInBounds.cjs +37 -0
  291. package/dist/NotificationServicesController/utils/isVersionInBounds.cjs.map +1 -0
  292. package/dist/NotificationServicesController/utils/{isVersionInBounds.d.ts → isVersionInBounds.d.cts} +1 -1
  293. package/dist/NotificationServicesController/utils/isVersionInBounds.d.cts.map +1 -0
  294. package/dist/NotificationServicesController/utils/isVersionInBounds.d.mts +18 -0
  295. package/dist/NotificationServicesController/utils/isVersionInBounds.d.mts.map +1 -0
  296. package/dist/NotificationServicesController/utils/{isVersionInBounds.js → isVersionInBounds.mjs} +2 -2
  297. package/dist/NotificationServicesController/utils/isVersionInBounds.mjs.map +1 -0
  298. package/dist/NotificationServicesController/utils/should-auto-expire.cjs +12 -0
  299. package/dist/NotificationServicesController/utils/should-auto-expire.cjs.map +1 -0
  300. package/dist/NotificationServicesController/utils/{should-auto-expire.d.ts → should-auto-expire.d.cts} +1 -1
  301. package/dist/NotificationServicesController/utils/should-auto-expire.d.cts.map +1 -0
  302. package/dist/NotificationServicesController/utils/should-auto-expire.d.mts +2 -0
  303. package/dist/NotificationServicesController/utils/should-auto-expire.d.mts.map +1 -0
  304. package/dist/NotificationServicesController/utils/{should-auto-expire.js → should-auto-expire.mjs} +1 -1
  305. package/dist/NotificationServicesController/utils/should-auto-expire.mjs.map +1 -0
  306. package/dist/NotificationServicesController/utils/utils.cjs +25 -0
  307. package/dist/NotificationServicesController/utils/utils.cjs.map +1 -0
  308. package/dist/NotificationServicesController/utils/{utils.d.ts → utils.d.cts} +1 -1
  309. package/dist/NotificationServicesController/utils/utils.d.cts.map +1 -0
  310. package/dist/NotificationServicesController/utils/utils.d.mts +11 -0
  311. package/dist/NotificationServicesController/utils/utils.d.mts.map +1 -0
  312. package/dist/NotificationServicesController/utils/{utils.js → utils.mjs} +1 -1
  313. package/dist/NotificationServicesController/utils/utils.mjs.map +1 -0
  314. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.cjs +7 -0
  315. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.cjs.map +1 -0
  316. package/dist/NotificationServicesPushController/{NotificationServicesPushController-method-action-types.d.ts → NotificationServicesPushController-method-action-types.d.cts} +2 -2
  317. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.cts.map +1 -0
  318. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.mts +72 -0
  319. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.mts.map +1 -0
  320. package/dist/NotificationServicesPushController/{NotificationServicesPushController-method-action-types.js → NotificationServicesPushController-method-action-types.mjs} +1 -1
  321. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.mjs.map +1 -0
  322. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +342 -0
  323. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +1 -0
  324. package/dist/NotificationServicesPushController/{NotificationServicesPushController.d.ts → NotificationServicesPushController.d.cts} +9 -9
  325. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +1 -0
  326. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +123 -0
  327. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +1 -0
  328. package/dist/NotificationServicesPushController/{NotificationServicesPushController.js → NotificationServicesPushController.mjs} +11 -4
  329. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +1 -0
  330. package/dist/NotificationServicesPushController/index.cjs +37 -0
  331. package/dist/NotificationServicesPushController/index.cjs.map +1 -0
  332. package/dist/NotificationServicesPushController/{index.d.ts → index.d.cts} +9 -9
  333. package/dist/NotificationServicesPushController/index.d.cts.map +1 -0
  334. package/dist/NotificationServicesPushController/index.d.mts +11 -0
  335. package/dist/NotificationServicesPushController/index.d.mts.map +1 -0
  336. package/dist/NotificationServicesPushController/index.mjs +8 -0
  337. package/dist/NotificationServicesPushController/index.mjs.map +1 -0
  338. package/dist/NotificationServicesPushController/mocks/index.cjs +18 -0
  339. package/dist/NotificationServicesPushController/mocks/index.cjs.map +1 -0
  340. package/dist/NotificationServicesPushController/mocks/index.d.cts +2 -0
  341. package/dist/NotificationServicesPushController/mocks/index.d.cts.map +1 -0
  342. package/dist/NotificationServicesPushController/mocks/index.d.mts +2 -0
  343. package/dist/NotificationServicesPushController/mocks/index.d.mts.map +1 -0
  344. package/dist/NotificationServicesPushController/mocks/index.mjs +2 -0
  345. package/dist/NotificationServicesPushController/mocks/index.mjs.map +1 -0
  346. package/dist/NotificationServicesPushController/mocks/mockResponse.cjs +48 -0
  347. package/dist/NotificationServicesPushController/mocks/mockResponse.cjs.map +1 -0
  348. package/dist/NotificationServicesPushController/mocks/{mockResponse.d.ts → mockResponse.d.cts} +1 -1
  349. package/dist/NotificationServicesPushController/mocks/mockResponse.d.cts.map +1 -0
  350. package/dist/NotificationServicesPushController/mocks/mockResponse.d.mts +22 -0
  351. package/dist/NotificationServicesPushController/mocks/mockResponse.d.mts.map +1 -0
  352. package/dist/NotificationServicesPushController/mocks/{mockResponse.js → mockResponse.mjs} +2 -2
  353. package/dist/NotificationServicesPushController/mocks/mockResponse.mjs.map +1 -0
  354. package/dist/NotificationServicesPushController/services/endpoints.cjs +13 -0
  355. package/dist/NotificationServicesPushController/services/endpoints.cjs.map +1 -0
  356. package/dist/NotificationServicesPushController/services/{endpoints.d.ts → endpoints.d.cts} +1 -1
  357. package/dist/NotificationServicesPushController/services/endpoints.d.cts.map +1 -0
  358. package/dist/NotificationServicesPushController/services/endpoints.d.mts +4 -0
  359. package/dist/NotificationServicesPushController/services/endpoints.d.mts.map +1 -0
  360. package/dist/NotificationServicesPushController/services/{endpoints.js → endpoints.mjs} +1 -1
  361. package/dist/NotificationServicesPushController/services/endpoints.mjs.map +1 -0
  362. package/dist/NotificationServicesPushController/services/services.cjs +133 -0
  363. package/dist/NotificationServicesPushController/services/services.cjs.map +1 -0
  364. package/dist/NotificationServicesPushController/services/{services.d.ts → services.d.cts} +4 -4
  365. package/dist/NotificationServicesPushController/services/services.d.cts.map +1 -0
  366. package/dist/NotificationServicesPushController/services/services.d.mts +90 -0
  367. package/dist/NotificationServicesPushController/services/services.d.mts.map +1 -0
  368. package/dist/NotificationServicesPushController/services/{services.js → services.mjs} +2 -2
  369. package/dist/NotificationServicesPushController/services/services.mjs.map +1 -0
  370. package/dist/NotificationServicesPushController/types/firebase.cjs +3 -0
  371. package/dist/NotificationServicesPushController/types/firebase.cjs.map +1 -0
  372. package/dist/NotificationServicesPushController/types/{firebase.d.ts → firebase.d.cts} +1 -1
  373. package/dist/NotificationServicesPushController/types/firebase.d.cts.map +1 -0
  374. package/dist/NotificationServicesPushController/types/firebase.d.mts +53 -0
  375. package/dist/NotificationServicesPushController/types/firebase.d.mts.map +1 -0
  376. package/dist/NotificationServicesPushController/types/firebase.mjs +2 -0
  377. package/dist/NotificationServicesPushController/types/firebase.mjs.map +1 -0
  378. package/dist/NotificationServicesPushController/types/index.cjs +3 -0
  379. package/dist/NotificationServicesPushController/types/index.cjs.map +1 -0
  380. package/dist/NotificationServicesPushController/types/index.d.cts +4 -0
  381. package/dist/NotificationServicesPushController/types/index.d.cts.map +1 -0
  382. package/dist/NotificationServicesPushController/types/index.d.mts +4 -0
  383. package/dist/NotificationServicesPushController/types/index.d.mts.map +1 -0
  384. package/dist/NotificationServicesPushController/types/index.mjs +2 -0
  385. package/dist/NotificationServicesPushController/types/index.mjs.map +1 -0
  386. package/dist/NotificationServicesPushController/types/push-analytics.cjs +5 -0
  387. package/dist/NotificationServicesPushController/types/push-analytics.cjs.map +1 -0
  388. package/dist/NotificationServicesPushController/types/{push-analytics.d.ts → push-analytics.d.cts} +1 -1
  389. package/dist/NotificationServicesPushController/types/push-analytics.d.cts.map +1 -0
  390. package/dist/NotificationServicesPushController/types/push-analytics.d.mts +18 -0
  391. package/dist/NotificationServicesPushController/types/push-analytics.d.mts.map +1 -0
  392. package/dist/NotificationServicesPushController/types/{push-analytics.js → push-analytics.mjs} +1 -1
  393. package/dist/NotificationServicesPushController/types/push-analytics.mjs.map +1 -0
  394. package/dist/NotificationServicesPushController/types/push-service-interface.cjs +3 -0
  395. package/dist/NotificationServicesPushController/types/push-service-interface.cjs.map +1 -0
  396. package/dist/NotificationServicesPushController/types/{push-service-interface.d.ts → push-service-interface.d.cts} +2 -2
  397. package/dist/NotificationServicesPushController/types/push-service-interface.d.cts.map +1 -0
  398. package/dist/NotificationServicesPushController/types/push-service-interface.d.mts +30 -0
  399. package/dist/NotificationServicesPushController/types/push-service-interface.d.mts.map +1 -0
  400. package/dist/NotificationServicesPushController/types/push-service-interface.mjs +2 -0
  401. package/dist/NotificationServicesPushController/types/push-service-interface.mjs.map +1 -0
  402. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs +84 -0
  403. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs.map +1 -0
  404. package/dist/NotificationServicesPushController/utils/{get-notification-data.d.ts → get-notification-data.d.cts} +2 -2
  405. package/dist/NotificationServicesPushController/utils/get-notification-data.d.cts.map +1 -0
  406. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts +42 -0
  407. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts.map +1 -0
  408. package/dist/NotificationServicesPushController/utils/{get-notification-data.js → get-notification-data.mjs} +2 -2
  409. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +1 -0
  410. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +171 -0
  411. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +1 -0
  412. package/dist/NotificationServicesPushController/utils/{get-notification-message.d.ts → get-notification-message.d.cts} +3 -3
  413. package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +1 -0
  414. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts +62 -0
  415. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +1 -0
  416. package/dist/NotificationServicesPushController/utils/{get-notification-message.js → get-notification-message.mjs} +2 -2
  417. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +1 -0
  418. package/dist/NotificationServicesPushController/utils/index.cjs +20 -0
  419. package/dist/NotificationServicesPushController/utils/index.cjs.map +1 -0
  420. package/dist/NotificationServicesPushController/utils/index.d.cts +4 -0
  421. package/dist/NotificationServicesPushController/utils/index.d.cts.map +1 -0
  422. package/dist/NotificationServicesPushController/utils/index.d.mts +4 -0
  423. package/dist/NotificationServicesPushController/utils/index.d.mts.map +1 -0
  424. package/dist/NotificationServicesPushController/utils/index.mjs +4 -0
  425. package/dist/NotificationServicesPushController/utils/index.mjs.map +1 -0
  426. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.cjs +26 -0
  427. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.cjs.map +1 -0
  428. package/dist/NotificationServicesPushController/utils/{to-push-analytics-payload.d.ts → to-push-analytics-payload.d.cts} +2 -2
  429. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.cts.map +1 -0
  430. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.mts +12 -0
  431. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.mts.map +1 -0
  432. package/dist/NotificationServicesPushController/utils/{to-push-analytics-payload.js → to-push-analytics-payload.mjs} +1 -1
  433. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.mjs.map +1 -0
  434. package/dist/NotificationServicesPushController/web/index.cjs +8 -0
  435. package/dist/NotificationServicesPushController/web/index.cjs.map +1 -0
  436. package/dist/NotificationServicesPushController/web/index.d.cts +2 -0
  437. package/dist/NotificationServicesPushController/web/index.d.cts.map +1 -0
  438. package/dist/NotificationServicesPushController/web/index.d.mts +2 -0
  439. package/dist/NotificationServicesPushController/web/index.d.mts.map +1 -0
  440. package/dist/NotificationServicesPushController/web/index.mjs +2 -0
  441. package/dist/NotificationServicesPushController/web/index.mjs.map +1 -0
  442. package/dist/NotificationServicesPushController/web/push-utils.cjs +169 -0
  443. package/dist/NotificationServicesPushController/web/push-utils.cjs.map +1 -0
  444. package/dist/NotificationServicesPushController/web/{push-utils.d.ts → push-utils.d.cts} +5 -4
  445. package/dist/NotificationServicesPushController/web/push-utils.d.cts.map +1 -0
  446. package/dist/NotificationServicesPushController/web/push-utils.d.mts +37 -0
  447. package/dist/NotificationServicesPushController/web/push-utils.d.mts.map +1 -0
  448. package/dist/NotificationServicesPushController/web/{push-utils.js → push-utils.mjs} +13 -6
  449. package/dist/NotificationServicesPushController/web/push-utils.mjs.map +1 -0
  450. package/dist/index.cjs +34 -0
  451. package/dist/index.cjs.map +1 -0
  452. package/dist/index.d.cts +4 -0
  453. package/dist/index.d.cts.map +1 -0
  454. package/dist/index.d.mts +4 -0
  455. package/dist/index.d.mts.map +1 -0
  456. package/dist/index.mjs +4 -0
  457. package/dist/index.mjs.map +1 -0
  458. package/dist/shared/index.cjs +20 -0
  459. package/dist/shared/index.cjs.map +1 -0
  460. package/dist/shared/index.d.cts +4 -0
  461. package/dist/shared/index.d.cts.map +1 -0
  462. package/dist/shared/index.d.mts +4 -0
  463. package/dist/shared/index.d.mts.map +1 -0
  464. package/dist/shared/index.mjs +4 -0
  465. package/dist/shared/index.mjs.map +1 -0
  466. package/dist/shared/is-onchain-notification.cjs +15 -0
  467. package/dist/shared/is-onchain-notification.cjs.map +1 -0
  468. package/dist/shared/{is-onchain-notification.d.ts → is-onchain-notification.d.cts} +2 -2
  469. package/dist/shared/is-onchain-notification.d.cts.map +1 -0
  470. package/dist/shared/is-onchain-notification.d.mts +9 -0
  471. package/dist/shared/is-onchain-notification.d.mts.map +1 -0
  472. package/dist/shared/{is-onchain-notification.js → is-onchain-notification.mjs} +2 -2
  473. package/dist/shared/is-onchain-notification.mjs.map +1 -0
  474. package/dist/shared/notification-api-type-guards.cjs +24 -0
  475. package/dist/shared/notification-api-type-guards.cjs.map +1 -0
  476. package/dist/shared/{notification-api-type-guards.d.ts → notification-api-type-guards.d.cts} +2 -2
  477. package/dist/shared/notification-api-type-guards.d.cts.map +1 -0
  478. package/dist/shared/notification-api-type-guards.d.mts +16 -0
  479. package/dist/shared/notification-api-type-guards.d.mts.map +1 -0
  480. package/dist/shared/{notification-api-type-guards.js → notification-api-type-guards.mjs} +1 -1
  481. package/dist/shared/notification-api-type-guards.mjs.map +1 -0
  482. package/dist/shared/to-raw-notification.cjs +30 -0
  483. package/dist/shared/to-raw-notification.cjs.map +1 -0
  484. package/dist/shared/{to-raw-notification.d.ts → to-raw-notification.d.cts} +2 -2
  485. package/dist/shared/to-raw-notification.d.cts.map +1 -0
  486. package/dist/shared/to-raw-notification.d.mts +11 -0
  487. package/dist/shared/to-raw-notification.d.mts.map +1 -0
  488. package/dist/shared/{to-raw-notification.js → to-raw-notification.mjs} +3 -3
  489. package/dist/shared/to-raw-notification.mjs.map +1 -0
  490. package/package.json +58 -24
  491. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.ts.map +0 -1
  492. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.js.map +0 -1
  493. package/dist/NotificationServicesController/NotificationServicesController.d.ts.map +0 -1
  494. package/dist/NotificationServicesController/NotificationServicesController.js.map +0 -1
  495. package/dist/NotificationServicesController/constants/index.d.ts +0 -2
  496. package/dist/NotificationServicesController/constants/index.d.ts.map +0 -1
  497. package/dist/NotificationServicesController/constants/index.js +0 -2
  498. package/dist/NotificationServicesController/constants/index.js.map +0 -1
  499. package/dist/NotificationServicesController/constants/notification-schema.d.ts.map +0 -1
  500. package/dist/NotificationServicesController/constants/notification-schema.js.map +0 -1
  501. package/dist/NotificationServicesController/index.d.ts.map +0 -1
  502. package/dist/NotificationServicesController/index.js +0 -13
  503. package/dist/NotificationServicesController/index.js.map +0 -1
  504. package/dist/NotificationServicesController/mocks/index.d.ts +0 -5
  505. package/dist/NotificationServicesController/mocks/index.d.ts.map +0 -1
  506. package/dist/NotificationServicesController/mocks/index.js +0 -5
  507. package/dist/NotificationServicesController/mocks/index.js.map +0 -1
  508. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.ts.map +0 -1
  509. package/dist/NotificationServicesController/mocks/mock-feature-announcements.js.map +0 -1
  510. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.ts.map +0 -1
  511. package/dist/NotificationServicesController/mocks/mock-raw-notifications.js.map +0 -1
  512. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.ts.map +0 -1
  513. package/dist/NotificationServicesController/mocks/mock-snap-notification.js.map +0 -1
  514. package/dist/NotificationServicesController/mocks/mockResponses.d.ts.map +0 -1
  515. package/dist/NotificationServicesController/mocks/mockResponses.js.map +0 -1
  516. package/dist/NotificationServicesController/processors/index.d.ts +0 -4
  517. package/dist/NotificationServicesController/processors/index.d.ts.map +0 -1
  518. package/dist/NotificationServicesController/processors/index.js +0 -4
  519. package/dist/NotificationServicesController/processors/index.js.map +0 -1
  520. package/dist/NotificationServicesController/processors/process-api-notifications.d.ts.map +0 -1
  521. package/dist/NotificationServicesController/processors/process-api-notifications.js.map +0 -1
  522. package/dist/NotificationServicesController/processors/process-feature-announcement.d.ts.map +0 -1
  523. package/dist/NotificationServicesController/processors/process-feature-announcement.js.map +0 -1
  524. package/dist/NotificationServicesController/processors/process-notifications.d.ts.map +0 -1
  525. package/dist/NotificationServicesController/processors/process-notifications.js.map +0 -1
  526. package/dist/NotificationServicesController/processors/process-snap-notifications.d.ts.map +0 -1
  527. package/dist/NotificationServicesController/processors/process-snap-notifications.js.map +0 -1
  528. package/dist/NotificationServicesController/services/api-notifications.d.ts.map +0 -1
  529. package/dist/NotificationServicesController/services/api-notifications.js.map +0 -1
  530. package/dist/NotificationServicesController/services/feature-announcements.d.ts.map +0 -1
  531. package/dist/NotificationServicesController/services/feature-announcements.js.map +0 -1
  532. package/dist/NotificationServicesController/services/notification-config-cache.d.ts.map +0 -1
  533. package/dist/NotificationServicesController/services/notification-config-cache.js.map +0 -1
  534. package/dist/NotificationServicesController/services/perp-notifications.d.ts.map +0 -1
  535. package/dist/NotificationServicesController/services/perp-notifications.js.map +0 -1
  536. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +0 -1
  537. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js +0 -2
  538. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js.map +0 -1
  539. package/dist/NotificationServicesController/types/feature-announcement/index.d.ts +0 -4
  540. package/dist/NotificationServicesController/types/feature-announcement/index.d.ts.map +0 -1
  541. package/dist/NotificationServicesController/types/feature-announcement/index.js +0 -2
  542. package/dist/NotificationServicesController/types/feature-announcement/index.js.map +0 -1
  543. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +0 -1
  544. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js +0 -2
  545. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js.map +0 -1
  546. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +0 -1
  547. package/dist/NotificationServicesController/types/feature-announcement/type-links.js +0 -2
  548. package/dist/NotificationServicesController/types/feature-announcement/type-links.js.map +0 -1
  549. package/dist/NotificationServicesController/types/index.d.ts +0 -6
  550. package/dist/NotificationServicesController/types/index.d.ts.map +0 -1
  551. package/dist/NotificationServicesController/types/index.js +0 -2
  552. package/dist/NotificationServicesController/types/index.js.map +0 -1
  553. package/dist/NotificationServicesController/types/notification/index.d.ts +0 -2
  554. package/dist/NotificationServicesController/types/notification/index.d.ts.map +0 -1
  555. package/dist/NotificationServicesController/types/notification/index.js +0 -2
  556. package/dist/NotificationServicesController/types/notification/index.js.map +0 -1
  557. package/dist/NotificationServicesController/types/notification/notification.d.ts.map +0 -1
  558. package/dist/NotificationServicesController/types/notification/notification.js +0 -2
  559. package/dist/NotificationServicesController/types/notification/notification.js.map +0 -1
  560. package/dist/NotificationServicesController/types/notification-api/index.d.ts +0 -3
  561. package/dist/NotificationServicesController/types/notification-api/index.d.ts.map +0 -1
  562. package/dist/NotificationServicesController/types/notification-api/index.js +0 -2
  563. package/dist/NotificationServicesController/types/notification-api/index.js.map +0 -1
  564. package/dist/NotificationServicesController/types/notification-api/notification-api.d.ts.map +0 -1
  565. package/dist/NotificationServicesController/types/notification-api/notification-api.js +0 -2
  566. package/dist/NotificationServicesController/types/notification-api/notification-api.js.map +0 -1
  567. package/dist/NotificationServicesController/types/notification-api/schema.d.ts.map +0 -1
  568. package/dist/NotificationServicesController/types/notification-api/schema.js.map +0 -1
  569. package/dist/NotificationServicesController/types/perps/index.d.ts +0 -2
  570. package/dist/NotificationServicesController/types/perps/index.d.ts.map +0 -1
  571. package/dist/NotificationServicesController/types/perps/index.js +0 -2
  572. package/dist/NotificationServicesController/types/perps/index.js.map +0 -1
  573. package/dist/NotificationServicesController/types/perps/perp-types.d.ts +0 -3
  574. package/dist/NotificationServicesController/types/perps/perp-types.d.ts.map +0 -1
  575. package/dist/NotificationServicesController/types/perps/perp-types.js +0 -2
  576. package/dist/NotificationServicesController/types/perps/perp-types.js.map +0 -1
  577. package/dist/NotificationServicesController/types/perps/schema.d.ts.map +0 -1
  578. package/dist/NotificationServicesController/types/perps/schema.js.map +0 -1
  579. package/dist/NotificationServicesController/types/snaps/index.d.ts +0 -2
  580. package/dist/NotificationServicesController/types/snaps/index.d.ts.map +0 -1
  581. package/dist/NotificationServicesController/types/snaps/index.js +0 -2
  582. package/dist/NotificationServicesController/types/snaps/index.js.map +0 -1
  583. package/dist/NotificationServicesController/types/snaps/snaps.d.ts.map +0 -1
  584. package/dist/NotificationServicesController/types/snaps/snaps.js +0 -2
  585. package/dist/NotificationServicesController/types/snaps/snaps.js.map +0 -1
  586. package/dist/NotificationServicesController/types/type-utils.d.ts.map +0 -1
  587. package/dist/NotificationServicesController/types/type-utils.js +0 -2
  588. package/dist/NotificationServicesController/types/type-utils.js.map +0 -1
  589. package/dist/NotificationServicesController/utils/get-notification-subtype.d.ts.map +0 -1
  590. package/dist/NotificationServicesController/utils/get-notification-subtype.js.map +0 -1
  591. package/dist/NotificationServicesController/utils/isVersionInBounds.d.ts.map +0 -1
  592. package/dist/NotificationServicesController/utils/isVersionInBounds.js.map +0 -1
  593. package/dist/NotificationServicesController/utils/should-auto-expire.d.ts.map +0 -1
  594. package/dist/NotificationServicesController/utils/should-auto-expire.js.map +0 -1
  595. package/dist/NotificationServicesController/utils/utils.d.ts.map +0 -1
  596. package/dist/NotificationServicesController/utils/utils.js.map +0 -1
  597. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.ts.map +0 -1
  598. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.js.map +0 -1
  599. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.ts.map +0 -1
  600. package/dist/NotificationServicesPushController/NotificationServicesPushController.js.map +0 -1
  601. package/dist/NotificationServicesPushController/index.d.ts.map +0 -1
  602. package/dist/NotificationServicesPushController/index.js +0 -8
  603. package/dist/NotificationServicesPushController/index.js.map +0 -1
  604. package/dist/NotificationServicesPushController/mocks/index.d.ts +0 -2
  605. package/dist/NotificationServicesPushController/mocks/index.d.ts.map +0 -1
  606. package/dist/NotificationServicesPushController/mocks/index.js +0 -2
  607. package/dist/NotificationServicesPushController/mocks/index.js.map +0 -1
  608. package/dist/NotificationServicesPushController/mocks/mockResponse.d.ts.map +0 -1
  609. package/dist/NotificationServicesPushController/mocks/mockResponse.js.map +0 -1
  610. package/dist/NotificationServicesPushController/services/endpoints.d.ts.map +0 -1
  611. package/dist/NotificationServicesPushController/services/endpoints.js.map +0 -1
  612. package/dist/NotificationServicesPushController/services/services.d.ts.map +0 -1
  613. package/dist/NotificationServicesPushController/services/services.js.map +0 -1
  614. package/dist/NotificationServicesPushController/types/firebase.d.ts.map +0 -1
  615. package/dist/NotificationServicesPushController/types/firebase.js +0 -2
  616. package/dist/NotificationServicesPushController/types/firebase.js.map +0 -1
  617. package/dist/NotificationServicesPushController/types/index.d.ts +0 -4
  618. package/dist/NotificationServicesPushController/types/index.d.ts.map +0 -1
  619. package/dist/NotificationServicesPushController/types/index.js +0 -2
  620. package/dist/NotificationServicesPushController/types/index.js.map +0 -1
  621. package/dist/NotificationServicesPushController/types/push-analytics.d.ts.map +0 -1
  622. package/dist/NotificationServicesPushController/types/push-analytics.js.map +0 -1
  623. package/dist/NotificationServicesPushController/types/push-service-interface.d.ts.map +0 -1
  624. package/dist/NotificationServicesPushController/types/push-service-interface.js +0 -2
  625. package/dist/NotificationServicesPushController/types/push-service-interface.js.map +0 -1
  626. package/dist/NotificationServicesPushController/utils/get-notification-data.d.ts.map +0 -1
  627. package/dist/NotificationServicesPushController/utils/get-notification-data.js.map +0 -1
  628. package/dist/NotificationServicesPushController/utils/get-notification-message.d.ts.map +0 -1
  629. package/dist/NotificationServicesPushController/utils/get-notification-message.js.map +0 -1
  630. package/dist/NotificationServicesPushController/utils/index.d.ts +0 -4
  631. package/dist/NotificationServicesPushController/utils/index.d.ts.map +0 -1
  632. package/dist/NotificationServicesPushController/utils/index.js +0 -4
  633. package/dist/NotificationServicesPushController/utils/index.js.map +0 -1
  634. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.ts.map +0 -1
  635. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.js.map +0 -1
  636. package/dist/NotificationServicesPushController/web/index.d.ts +0 -2
  637. package/dist/NotificationServicesPushController/web/index.d.ts.map +0 -1
  638. package/dist/NotificationServicesPushController/web/index.js +0 -2
  639. package/dist/NotificationServicesPushController/web/index.js.map +0 -1
  640. package/dist/NotificationServicesPushController/web/push-utils.d.ts.map +0 -1
  641. package/dist/NotificationServicesPushController/web/push-utils.js.map +0 -1
  642. package/dist/index.d.ts +0 -4
  643. package/dist/index.d.ts.map +0 -1
  644. package/dist/index.js +0 -4
  645. package/dist/index.js.map +0 -1
  646. package/dist/shared/index.d.ts +0 -4
  647. package/dist/shared/index.d.ts.map +0 -1
  648. package/dist/shared/index.js +0 -4
  649. package/dist/shared/index.js.map +0 -1
  650. package/dist/shared/is-onchain-notification.d.ts.map +0 -1
  651. package/dist/shared/is-onchain-notification.js.map +0 -1
  652. package/dist/shared/notification-api-type-guards.d.ts.map +0 -1
  653. package/dist/shared/notification-api-type-guards.js.map +0 -1
  654. package/dist/shared/to-raw-notification.d.ts.map +0 -1
  655. package/dist/shared/to-raw-notification.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock-raw-notifications.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAE/F;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,yBAAyB,CAwCzE;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,CAwC7E;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,yBAAyB,CA8C3E;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,yBAAyB,CA8C/E;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,IAAI,yBAAyB,CAiD5E;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,IAAI,yBAAyB,CAiDhF;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,CAiD7E;AAED;;;;GAIG;AACH,wBAAgB,qCAAqC,IAAI,yBAAyB,CAiDjF;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,IAAI,yBAAyB,CAuDxF;AAED;;;;GAIG;AACH,wBAAgB,8CAA8C,IAAI,yBAAyB,CAsD1F;AAED;;;;GAIG;AACH,wBAAgB,gDAAgD,IAAI,yBAAyB,CAsD5F;AAED;;;;GAIG;AACH,wBAAgB,wCAAwC,IAAI,yBAAyB,CAsDpF;AAED;;;;GAIG;AACH,wBAAgB,6CAA6C,IAAI,yBAAyB,CAsDzF;AAED;;;;GAIG;AACH,wBAAgB,6CAA6C,IAAI,yBAAyB,CAsDzF;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,IAAI,yBAAyB,CAyCxF;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,yBAAyB,CAqB1E;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,IAAI,yBAAyB,EAAE,CAM/E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock-raw-notifications.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-raw-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAGpE;;;;GAIG;AACH,MAAM,UAAU,6BAA6B;IAC3C,MAAM,gBAAgB,GAA8B;QAClD,IAAI,EAAE,aAAa,CAAC,QAAQ;QAC5B,iBAAiB,EAAE,iBAAiB;QACpC,oBAAoB,EAAE,UAAU;QAChC,EAAE,EAAE,sCAAsC;QAC1C,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,sBAAsB;QAClC,OAAO,EAAE;YACP,QAAQ,EAAE,CAAC;YACX,YAAY,EAAE,QAAQ;YACtB,eAAe,EAAE,sBAAsB;YACvC,OAAO,EACL,oEAAoE;YACtE,OAAO,EAAE,4CAA4C;YACrD,OAAO,EAAE;gBACP,IAAI,EAAE,UAAU;gBAChB,aAAa,EAAE,KAAK;gBACpB,cAAc,EAAE;oBACd,GAAG,EAAE,sBAAsB;oBAC3B,IAAI,EAAE,WAAW;iBAClB;aACF;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE;oBACX,SAAS,EAAE,cAAc;oBACzB,yBAAyB,EAAE,MAAM;iBAClC;gBACD,IAAI,EAAE,4CAA4C;gBAClD,EAAE,EAAE,4CAA4C;gBAChD,MAAM,EAAE;oBACN,GAAG,EAAE,QAAQ;oBACb,GAAG,EAAE,OAAO;iBACb;aACF;SACF;KACF,CAAC;IAEF,OAAO,gBAAgB,CAAC;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E,0BAA0B;QACtC,QAAQ,EAAE;YACR,SAAS,EACP,yHAAyH;YAC3H,KAAK,EAAE,kCAAkC;YACzC,IAAI,EAAE,iGAAiG;YACvG,GAAG,EAAE;gBACH,OAAO,EAAE,aAAa;gBACtB,IAAI,EAAE,iCAAiC;aACxC;SACF;KACF,CAAC;IAEF,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iCAAiC;IAC/C,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE;QAC1B,MAAM,YAAY,GAAG,6BAA6B,EAAE,CAAC;QACrD,YAAY,CAAC,EAAE,IAAI,IAAI,EAAE,EAAE,CAAC;QAC5B,OAAO,YAAY,CAAC;IACtB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { TRIGGER_TYPES } from '../constants/notification-schema.js';\nimport type { NormalisedAPINotification } from '../types/notification-api/notification-api.js';\n\n/**\n * Mocking Utility - create a mock Eth sent notification\n *\n * @returns Mock raw Eth sent notification\n */\nexport function createMockNotificationEthSent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ETH_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'eth_sent',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa7',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'eth_sent',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n from: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n to: '0x881D40237659C251811CEC9c364ef91dC08D300D',\n amount: {\n usd: '670.64',\n eth: '0.005',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Eth Received notification\n *\n * @returns Mock raw Eth Received notification\n */\nexport function createMockNotificationEthReceived(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ETH_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'eth_received',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa8',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'eth_received',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n from: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n to: '0x881D40237659C251811CEC9c364ef91dC08D300D',\n amount: {\n usd: '670.64',\n eth: '808.000000000000000000',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC20 sent notification\n *\n * @returns Mock raw ERC20 sent notification\n */\nexport function createMockNotificationERC20Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC20_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc20_sent',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa9',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'erc20_sent',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n to: '0xecc19e177d24551aa7ed6bc6fe566eca726cc8a9',\n from: '0x1231deb6f5749ef6ce6943a275a1d3e7486f4eae',\n token: {\n usd: '1.00',\n name: 'USDC',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdc.svg',\n amount: '4956250000',\n symbol: 'USDC',\n address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',\n decimals: '6',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC20 received notification\n *\n * @returns Mock raw ERC20 received notification\n */\nexport function createMockNotificationERC20Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC20_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc20_received',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',\n unread: true,\n created_at: '2022-03-01T00:00:00Z',\n payload: {\n chain_id: 1,\n block_number: 17485840,\n block_timestamp: '2022-03-01T00:00:00Z',\n tx_hash:\n '0xb2256b183f2fb3872f99294ab55fb03e6a479b0d4aca556a3b27568b712505a6',\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'erc20_received',\n network_fee: {\n gas_price: '207806259583',\n native_token_price_in_usd: '0.83',\n },\n to: '0xeae7380dd4cef6fbd1144f49e4d1e6964258a4f4',\n from: '0x51c72848c68a965f66fa7a88855f9f7784502a7f',\n token: {\n usd: '0.00',\n name: 'SHIBA INU',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/shib.svg',\n amount: '8382798736999999457296646144',\n symbol: 'SHIB',\n address: '0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce',\n decimals: '18',\n },\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC721 sent notification\n *\n * @returns Mock raw ERC721 sent notification\n */\nexport function createMockNotificationERC721Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC721_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc721_sent',\n id: 'a4193058-9814-537e-9df4-79dcac727fb6',\n created_at: '2023-11-15T11:08:17.895407Z',\n unread: true,\n payload: {\n block_number: 18576643,\n block_timestamp: '1700043467',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0xf47f628fe3bd2595e9ab384bfffc3859b448e451',\n nft: {\n name: 'Captainz #8680',\n image:\n 'https://i.seadn.io/s/raw/files/ae0fc06714ff7fb40217340d8a242c0e.gif?w=500&auto=format',\n token_id: '8680',\n collection: {\n name: 'The Captainz',\n image:\n 'https://i.seadn.io/gcs/files/6df4d75778066bce740050615bc84e21.png?w=500&auto=format',\n symbol: 'Captainz',\n address: '0x769272677fab02575e84945f03eca517acc544cc',\n },\n },\n from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',\n kind: 'erc721_sent',\n network_fee: {\n gas_price: '24550653274',\n native_token_price_in_usd: '1986.61',\n },\n },\n tx_hash:\n '0x0833c69fb41cf972a0f031fceca242939bc3fcf82b964b74606649abcad371bd',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC721 received notification\n *\n * @returns Mock raw ERC721 received notification\n */\nexport function createMockNotificationERC721Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC721_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc721_received',\n id: '00a79d24-befa-57ed-a55a-9eb8696e1654',\n created_at: '2023-11-14T17:40:52.319281Z',\n unread: true,\n payload: {\n block_number: 18571446,\n block_timestamp: '1699980623',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0xba7f3daa8adfdad686574406ab9bd5d2f0a49d2e',\n nft: {\n name: 'The Plague #2722',\n image:\n 'https://i.seadn.io/s/raw/files/a96f90ec8ebf55a2300c66a0c46d6a16.png?w=500&auto=format',\n token_id: '2722',\n collection: {\n name: 'The Plague NFT',\n image:\n 'https://i.seadn.io/gcs/files/4577987a5ca45ca5118b2e31559ee4d1.jpg?w=500&auto=format',\n symbol: 'FROG',\n address: '0xc379e535caff250a01caa6c3724ed1359fe5c29b',\n },\n },\n from: '0x24a0bb54b7e7a8e406e9b28058a9fd6c49e6df4f',\n kind: 'erc721_received',\n network_fee: {\n gas_price: '53701898538',\n native_token_price_in_usd: '2047.01',\n },\n },\n tx_hash:\n '0xe554c9e29e6eeca8ba94da4d047334ba08b8eb9ca3b801dd69cec08dfdd4ae43',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC1155 sent notification\n *\n * @returns Mock raw ERC1155 sent notification\n */\nexport function createMockNotificationERC1155Sent(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC1155_SENT,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc1155_sent',\n id: 'a09ff9d1-623a-52ab-a3d4-c7c8c9a58362',\n created_at: '2023-11-20T20:44:10.110706Z',\n unread: true,\n payload: {\n block_number: 18615206,\n block_timestamp: '1700510003',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',\n nft: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',\n token_id: '1',\n collection: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',\n symbol: 'TRUTH',\n address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',\n },\n },\n from: '0x0000000000000000000000000000000000000000',\n kind: 'erc1155_sent',\n network_fee: {\n gas_price: '33571446596',\n native_token_price_in_usd: '2038.88',\n },\n },\n tx_hash:\n '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock ERC1155 received notification\n *\n * @returns Mock raw ERC1155 received notification\n */\nexport function createMockNotificationERC1155Received(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ERC1155_RECEIVED,\n notification_type: 'wallet_activity',\n notification_subtype: 'erc1155_received',\n id: 'b6b93c84-e8dc-54ed-9396-7ea50474843a',\n created_at: '2023-11-20T20:44:10.110706Z',\n unread: true,\n payload: {\n block_number: 18615206,\n block_timestamp: '1700510003',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n to: '0x15bd77ccacf2da39b84f0c31fee2e451225bb190',\n nft: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gcs/files/79a77cb37c7b2f1069f752645d29fea7.jpg?w=500&auto=format',\n token_id: '1',\n collection: {\n name: 'IlluminatiNFT DAO',\n image:\n 'https://i.seadn.io/gae/LTKz3om2eCQfn3M6PkqEmY7KhLtdMCOm0QVch2318KJq7-KyToCH7NBTMo4UuJ0AZI-oaBh1HcgrAEIEWYbXY3uMcYpuGXunaXEh?w=500&auto=format',\n symbol: 'TRUTH',\n address: '0xe25f0fe686477f9df3c2876c4902d3b85f75f33a',\n },\n },\n from: '0x0000000000000000000000000000000000000000',\n kind: 'erc1155_received',\n network_fee: {\n gas_price: '33571446596',\n native_token_price_in_usd: '2038.88',\n },\n },\n tx_hash:\n '0x03381aba290facbaf71c123e263c8dc3dd550aac00ef589cce395182eaeff76f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock MetaMask Swaps notification\n *\n * @returns Mock raw MetaMask Swaps notification\n */\nexport function createMockNotificationMetaMaskSwapsCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.METAMASK_SWAP_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'metamask_swap_completed',\n id: '7ddfe6a1-ac52-5ffe-aa40-f04242db4b8b',\n created_at: '2023-10-18T13:58:49.854596Z',\n unread: true,\n payload: {\n block_number: 18377666,\n block_timestamp: '1697637275',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'metamask_swap_completed',\n rate: '1558.27',\n token_in: {\n usd: '1576.73',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '9000000000000000',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n token_out: {\n usd: '1.00',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/usdt.svg',\n amount: '14024419',\n symbol: 'USDT',\n address: '0xdac17f958d2ee523a2206206994597c13d831ec7',\n decimals: '6',\n name: 'USDT',\n },\n network_fee: {\n gas_price: '15406129273',\n native_token_price_in_usd: '1576.73',\n },\n },\n tx_hash:\n '0xf69074290f3aa11bce567aabc9ca0df7a12559dfae1b80ba1a124e9dfe19ecc5',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock RocketPool Stake Completed notification\n *\n * @returns Mock raw RocketPool Stake Completed notification\n */\nexport function createMockNotificationRocketPoolStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ROCKETPOOL_STAKE_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'rocketpool_stake_completed',\n id: 'c2a2f225-b2fb-5d6c-ba56-e27a5c71ffb9',\n created_at: '2023-11-20T12:02:48.796824Z',\n unread: true,\n payload: {\n block_number: 18585057,\n block_timestamp: '1700145059',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'rocketpool_stake_completed',\n stake_in: {\n usd: '2031.86',\n name: 'Ethereum',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '190690478063438272',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n },\n stake_out: {\n usd: '2226.49',\n name: 'Rocket Pool ETH',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',\n amount: '175024360778165879',\n symbol: 'RETH',\n address: '0xae78736Cd615f374D3085123A210448E74Fc6393',\n decimals: '18',\n },\n network_fee: {\n gas_price: '36000000000',\n native_token_price_in_usd: '2031.86',\n },\n },\n tx_hash:\n '0xcfc0693bf47995907b0f46ef0644cf16dd9a0de797099b2e00fd481e1b2117d3',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock RocketPool Un-staked notification\n *\n * @returns Mock raw RocketPool Un-staked notification\n */\nexport function createMockNotificationRocketPoolUnStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.ROCKETPOOL_UNSTAKE_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'rocketpool_unstake_completed',\n id: '291ec897-f569-4837-b6c0-21001b198dff',\n created_at: '2023-10-19T13:11:10.623042Z',\n unread: true,\n payload: {\n block_number: 18384336,\n block_timestamp: '1697718011',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'rocketpool_unstake_completed',\n stake_in: {\n usd: '1686.34',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/rETH.svg',\n amount: '66608041413696770',\n symbol: 'RETH',\n address: '0xae78736Cd615f374D3085123A210448E74Fc6393',\n decimals: '18',\n name: 'Rocketpool Eth',\n },\n stake_out: {\n usd: '1553.75',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '72387843427700824',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '5656322987',\n native_token_price_in_usd: '1553.75',\n },\n },\n tx_hash:\n '0xc7972a7e409abfc62590ec90e633acd70b9b74e76ad02305be8bf133a0e22d5f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Stake Completed notification\n *\n * @returns Mock raw Lido Stake Completed notification\n */\nexport function createMockNotificationLidoStakeCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_STAKE_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_stake_completed',\n id: 'ec10d66a-f78f-461f-83c9-609aada8cc50',\n created_at: '2023-11-02T22:28:49.970865Z',\n unread: true,\n payload: {\n block_number: 18487118,\n block_timestamp: '1698961091',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_stake_completed',\n stake_in: {\n usd: '1806.33',\n name: 'Ethereum',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '330303634023928032',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n },\n stake_out: {\n usd: '1801.30',\n name: 'Liquid staked Ether 2.0',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '330303634023928032',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n },\n network_fee: {\n gas_price: '26536359866',\n native_token_price_in_usd: '1806.33',\n },\n },\n tx_hash:\n '0x8cc0fa805f7c3b1743b14f3b91c6b824113b094f26d4ccaf6a71ad8547ce6a0f',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Requested notification\n *\n * @returns Mock raw Lido Withdrawal Requested notification\n */\nexport function createMockNotificationLidoWithdrawalRequested(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_WITHDRAWAL_REQUESTED,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_withdrawal_requested',\n id: 'ef003925-3379-4ba7-9e2d-8218690cadc9',\n created_at: '2023-10-18T15:04:02.482526Z',\n unread: true,\n payload: {\n block_number: 18377760,\n block_timestamp: '1697638415',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_withdrawal_requested',\n stake_in: {\n usd: '1568.54',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '97180668792218669859',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n name: 'Staked Eth',\n },\n stake_out: {\n usd: '1576.73',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '97180668792218669859',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '11658906980',\n native_token_price_in_usd: '1576.73',\n },\n },\n tx_hash:\n '0x58b5f82e084cb750ea174e02b20fbdfd2ba8d78053deac787f34fc38e5d427aa',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Completed notification\n *\n * @returns Mock raw Lido Withdrawal Completed notification\n */\nexport function createMockNotificationLidoWithdrawalCompleted(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_WITHDRAWAL_COMPLETED,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_withdrawal_completed',\n id: 'd73df14d-ce73-4f38-bad3-ab028154042f',\n created_at: '2023-10-18T16:35:03.147606Z',\n unread: true,\n payload: {\n block_number: 18378208,\n block_timestamp: '1697643851',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_withdrawal_completed',\n stake_in: {\n usd: '1570.23',\n image:\n 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/images/stETH.svg',\n amount: '35081997661451346',\n symbol: 'STETH',\n address: '0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84',\n decimals: '18',\n name: 'Staked Eth',\n },\n stake_out: {\n usd: '1571.74',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n amount: '35081997661451346',\n symbol: 'ETH',\n address: '0x0000000000000000000000000000000000000000',\n decimals: '18',\n name: 'Ethereum',\n },\n network_fee: {\n gas_price: '12699495150',\n native_token_price_in_usd: '1571.74',\n },\n },\n tx_hash:\n '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Lido Withdrawal Ready notification\n *\n * @returns Mock raw Lido Withdrawal Ready notification\n */\nexport function createMockNotificationLidoReadyToBeWithdrawn(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.LIDO_STAKE_READY_TO_BE_WITHDRAWN,\n notification_type: 'wallet_activity',\n notification_subtype: 'lido_stake_ready_to_be_withdrawn',\n id: 'd73df14d-ce73-4f38-bad3-ab028154042e',\n created_at: '2023-10-18T16:35:03.147606Z',\n unread: true,\n payload: {\n block_number: 18378208,\n block_timestamp: '1697643851',\n chain_id: 1,\n address: '0x881D40237659C251811CEC9c364ef91dC08D300C',\n network: {\n name: 'Ethereum',\n native_symbol: 'ETH',\n block_explorer: {\n url: 'https://etherscan.io',\n name: 'Etherscan',\n },\n },\n data: {\n kind: 'lido_stake_ready_to_be_withdrawn',\n request_id: '123456789',\n staked_eth: {\n address: '0x881D40237659C251811CEC9c364ef91dC08D300F',\n symbol: 'ETH',\n name: 'Ethereum',\n amount: '2.5',\n decimals: '18',\n image:\n 'https://token.api.cx.metamask.io/assets/nativeCurrencyLogos/ethereum.svg',\n usd: '10000.00',\n },\n },\n tx_hash:\n '0xe6d210d2e601ef3dd1075c48e71452cf35f2daae3886911e964e3babad8ac657',\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - create a mock Generic Platform notification\n *\n * @returns Mock raw Generic Platform notification\n */\nexport function createMockPlatformNotification(): NormalisedAPINotification {\n const mockNotification: NormalisedAPINotification = {\n type: TRIGGER_TYPES.PLATFORM,\n notification_type: 'perps',\n notification_subtype: 'position_liquidated',\n id: '3fa85f64-5717-4562-b3fc-2c963f66afa6',\n unread: true,\n created_at: '2025-10-09T09:45:34.202Z',\n template: {\n image_url:\n 'https://images.ctfassets.net/clixtyxoaeas/4rnpEzy1ATWRKVBOLxZ1Fm/a74dc1eed36d23d7ea6030383a4d5163/MetaMask-icon-fox.svg',\n title: 'This is a Platform Notification!',\n body: 'Teams can now build out their own notifications, and add an optional CTA (like this one below).',\n cta: {\n content: 'Get Started',\n link: 'https://metamask.io/get-started',\n },\n },\n };\n\n return mockNotification;\n}\n\n/**\n * Mocking Utility - creates an array of raw on-chain notifications\n *\n * @returns Array of raw on-chain notifications\n */\nexport function createMockRawOnChainNotifications(): NormalisedAPINotification[] {\n return [1, 2, 3].map((id) => {\n const notification = createMockNotificationEthSent();\n notification.id += `-${id}`;\n return notification;\n });\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock-snap-notification.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-snap-notification.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,mBAAmB,CAiBhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock-snap-notification.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mock-snap-notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD;;;;GAIG;AACH,MAAM,UAAU,0BAA0B;IACxC,OAAO;QACL,IAAI,EAAE,aAAa,CAAC,IAAI;QACxB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE;YACJ,OAAO,EAAE,QAAQ;YACjB,MAAM,EAAE,wBAAwB;YAChC,YAAY,EAAE;gBACZ,KAAK,EAAE,eAAe;gBACtB,WAAW,EAAE,GAAG;gBAChB,UAAU,EAAE;oBACV,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,oBAAoB;iBAC3B;aACF;SACF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import { TRIGGER_TYPES } from '../constants/index.js';\nimport type { RawSnapNotification } from '../types/snaps/index.js';\n\n/**\n * Mocking Utility - create a mock raw snap notification\n *\n * @returns Mock Raw Snap Notification\n */\nexport function createMockSnapNotification(): RawSnapNotification {\n return {\n type: TRIGGER_TYPES.SNAP,\n readDate: null,\n data: {\n message: 'fooBar',\n origin: '@metamask/example-snap',\n detailedView: {\n title: 'Detailed View',\n interfaceId: '1',\n footerLink: {\n text: 'Go Home',\n href: 'metamask://client/',\n },\n },\n },\n };\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mockResponses.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/mocks/mockResponses.ts"],"names":[],"mappings":"AAUA,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,mBAAmB,iEAA2C,CAAC;AAG5E,eAAO,MAAM,kCAAkC,QAAO,YAMrD,CAAC;AAEF,eAAO,MAAM,iCAAiC,QAAO,YAMpD,CAAC;AAEF,eAAO,MAAM,+BAA+B,mDACP,CAAC;AAGtC,eAAO,MAAM,gCAAgC,QAAO,YAMnD,CAAC;AAEF,eAAO,MAAM,sCAAsC,QAAO,YAMzD,CAAC;AAEF,eAAO,MAAM,kCAAkC,QAAO,YAMrD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"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ACrB,QAAQ,EAAE,IAAI;KACQ,CAAC;AAC3B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAiB,EAAE;IACnE,OAAO;QACL,GAAG,EAAE,uBAAuB;QAC5B,aAAa,EAAE,MAAM;QACrB,QAAQ,EAAE,IAAI;KACQ,CAAC;AAC3B,CAAC,CAAC","sourcesContent":["import {\n NOTIFICATION_API_LIST_ENDPOINT,\n NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT,\n TRIGGER_API_NOTIFICATIONS_QUERY_ENDPOINT,\n} from '../services/api-notifications.js';\nimport { FEATURE_ANNOUNCEMENT_API } from '../services/feature-announcements.js';\nimport { PERPS_API_CREATE_ORDERS } from '../services/perp-notifications.js';\nimport { createMockFeatureAnnouncementAPIResult } from './mock-feature-announcements.js';\nimport { createMockRawOnChainNotifications } from './mock-raw-notifications.js';\n\ntype MockResponse = {\n url: string;\n requestMethod: 'GET' | 'POST' | 'PUT' | 'DELETE';\n response: unknown;\n};\n\nexport const CONTENTFUL_RESPONSE = createMockFeatureAnnouncementAPIResult();\n\n// Using `satisfies` to preserve narrow return types while ensuring type safety; explicit return types would widen to MockResponse\nexport const getMockFeatureAnnouncementResponse = (): MockResponse => {\n return {\n url: FEATURE_ANNOUNCEMENT_API,\n requestMethod: 'GET',\n response: CONTENTFUL_RESPONSE,\n } satisfies MockResponse;\n};\n\nexport const getMockOnChainNotificationsConfig = (): MockResponse => {\n return {\n url: TRIGGER_API_NOTIFICATIONS_QUERY_ENDPOINT(),\n requestMethod: 'POST',\n response: [{ address: '0xTestAddress', enabled: true }],\n } satisfies MockResponse;\n};\n\nexport const MOCK_RAW_ON_CHAIN_NOTIFICATIONS =\n createMockRawOnChainNotifications();\n\n// Using `satisfies` to preserve narrow return types while ensuring type safety; explicit return types would widen to MockResponse\nexport const getMockListNotificationsResponse = (): MockResponse => {\n return {\n url: NOTIFICATION_API_LIST_ENDPOINT(),\n requestMethod: 'POST',\n response: MOCK_RAW_ON_CHAIN_NOTIFICATIONS,\n } satisfies MockResponse;\n};\n\nexport const getMockMarkNotificationsAsReadResponse = (): MockResponse => {\n return {\n url: NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT(),\n requestMethod: 'POST',\n response: null,\n } satisfies MockResponse;\n};\n\nexport const getMockCreatePerpOrderNotification = (): MockResponse => {\n return {\n url: PERPS_API_CREATE_ORDERS,\n requestMethod: 'POST',\n response: null,\n } satisfies MockResponse;\n};\n"]}
@@ -1,4 +0,0 @@
1
- export * from './process-feature-announcement.js';
2
- export * from './process-notifications.js';
3
- export * from './process-api-notifications.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './process-feature-announcement.js';
2
- export * from './process-notifications.js';
3
- export * from './process-api-notifications.js';
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './process-feature-announcement.js';\nexport * from './process-notifications.js';\nexport * from './process-api-notifications.js';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-api-notifications.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-api-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAI3E;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,yBAAyB,GACtC,aAAa,CAWf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-api-notifications.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-api-notifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,YAAuC;IAEvC,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;IACxD,MAAM,OAAO,GAAG,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAEhD,OAAO;QACL,GAAG,YAAY;QACf,EAAE,EAAE,YAAY,CAAC,EAAE;QACnB,oBAAoB,EAAE,sBAAsB,CAAC,YAAY,CAAC;QAC1D,SAAS,EAAE,aAAa,CAAC,WAAW,EAAE;QACtC,MAAM,EAAE,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM;KACxC,CAAC;AACJ,CAAC","sourcesContent":["import type { NormalisedAPINotification } from '../types/notification-api/notification-api.js';\nimport type { INotification } from '../types/notification/notification.js';\nimport { getNotificationSubtype } from '../utils/get-notification-subtype.js';\nimport { shouldAutoExpire } from '../utils/should-auto-expire.js';\n\n/**\n * Processes API notifications to a normalized INotification shape\n *\n * @param notification - API Notification (On-Chain or Platform Notification)\n * @returns Normalized Notification\n */\nexport function processAPINotifications(\n notification: NormalisedAPINotification,\n): INotification {\n const createdAtDate = new Date(notification.created_at);\n const expired = shouldAutoExpire(createdAtDate);\n\n return {\n ...notification,\n id: notification.id,\n notification_subtype: getNotificationSubtype(notification),\n createdAt: createdAtDate.toISOString(),\n isRead: expired || !notification.unread,\n };\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-feature-announcement.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-feature-announcement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAI3E;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,CAAC,EACrD,6BAA6B,EAAE,MAAM,EAAE,GACtC,OAAO,CAKT;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,kCAAkC,GAC/C,aAAa,CASf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-feature-announcement.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-feature-announcement.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElE;;;;;;;GAOG;AACH,MAAM,UAAU,yBAAyB,CACvC,YAAqD,EACrD,6BAAuC;IAEvC,IAAI,6BAA6B,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;QAC5D,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,gBAAgB,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CACxC,YAAgD;IAEhD,OAAO;QACL,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,EAAE,EAAE,YAAY,CAAC,IAAI,CAAC,EAAE;QACxB,oBAAoB,EAAE,sBAAsB,CAAC,YAAY,CAAC;QAC1D,SAAS,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE;QACzD,IAAI,EAAE,YAAY,CAAC,IAAI;QACvB,MAAM,EAAE,KAAK;KACd,CAAC;AACJ,CAAC","sourcesContent":["import type { FeatureAnnouncementRawNotification } from '../types/feature-announcement/feature-announcement.js';\nimport type { INotification } from '../types/notification/notification.js';\nimport { getNotificationSubtype } from '../utils/get-notification-subtype.js';\nimport { shouldAutoExpire } from '../utils/should-auto-expire.js';\n\n/**\n * Checks if a feature announcement should be read.\n * Checks feature announcement state (from param), as well as if the notification is \"expired\"\n *\n * @param notification - notification to check\n * @param readPlatformNotificationsList - list of read notifications\n * @returns boolean if notification should be marked as read or unread\n */\nexport function isFeatureAnnouncementRead(\n notification: Pick<INotification, 'id' | 'createdAt'>,\n readPlatformNotificationsList: string[],\n): boolean {\n if (readPlatformNotificationsList.includes(notification.id)) {\n return true;\n }\n return shouldAutoExpire(new Date(notification.createdAt));\n}\n\n/**\n * Processes a feature announcement into a shared/normalised notification shape.\n *\n * @param notification - raw feature announcement\n * @returns a normalised feature announcement\n */\nexport function processFeatureAnnouncement(\n notification: FeatureAnnouncementRawNotification,\n): INotification {\n return {\n type: notification.type,\n id: notification.data.id,\n notification_subtype: getNotificationSubtype(notification),\n createdAt: new Date(notification.createdAt).toISOString(),\n data: notification.data,\n isRead: false,\n };\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-notifications.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-notifications.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACrB,MAAM,uCAAuC,CAAC;AAwB/C;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,oBAAoB,EAClC,iBAAiB,GAAE,MAAM,EAAO,GAC/B,aAAa,CAwBf;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,oBAAoB,EAClC,iBAAiB,GAAE,MAAM,EAAO,GAC/B,aAAa,GAAG,SAAS,CAU3B;AAGD,eAAO,MAAM,6BAA6B,kBACzB,oBAAoB,EAAE,WAC5B,MAAM,EAAE,KAChB,aAAa,EAGW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-notifications.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,kCAAkC,GACnC,MAAM,qCAAqC,CAAC;AAQ7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACL,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,iBAAiB,GAAG,CACxB,YAAkC,EACS,EAAE,CAC7C,kCAAkC,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;AAE5D,MAAM,qBAAqB,GAAG,CAC5B,YAAkC,EACkB,EAAE,CACtD,YAAY,CAAC,IAAI,KAAK,aAAa,CAAC,qBAAqB,CAAC;AAE5D,MAAM,kBAAkB,GAAG,CACzB,YAAkC,EACG,EAAE,CACvC,YAAY,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,CAAC;AAE3C;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CACjC,YAAkC,EAClC,iBAAiB,GAAa,EAAE;IAEhC,MAAM,iBAAiB,GAAG,CAAC,cAAqB,EAAS,EAAE;QACzD,MAAM,IAAI,GAAW,YAAY,EAAE,IAAI,CAAC;QACxC,MAAM,IAAI,KAAK,CAAC,4CAA4C,IAAI,EAAE,CAAC,CAAC;IACtE,CAAC,CAAC;IAEF,IAAI,qBAAqB,CAAC,YAAY,CAAC,EAAE,CAAC;QACxC,MAAM,qBAAqB,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAAC;QACvE,qBAAqB,CAAC,MAAM,GAAG,yBAAyB,CACtD,qBAAqB,EACrB,iBAAiB,CAClB,CAAC;QACF,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAED,IAAI,kBAAkB,CAAC,YAAY,CAAC,EAAE,CAAC;QACrC,OAAO,uBAAuB,CAAC,YAAY,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI,iBAAiB,CAAC,YAAY,CAAC,EAAE,CAAC;QACpC,OAAO,uBAAuB,CAAC,YAAY,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,iBAAiB,CAAC,YAAY,CAAC,CAAC;AACzC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,YAAkC,EAClC,iBAAiB,GAAa,EAAE;IAEhC,IAAI,CAAC;QACH,MAAM,qBAAqB,GAAG,mBAAmB,CAC/C,YAAY,EACZ,iBAAiB,CAClB,CAAC;QACF,OAAO,qBAAqB,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,MAAM,cAAc,GAAG,CAAO,IAAW,EAAgB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,aAAqC,EACrC,OAAiB,EACA,EAAE,CACnB,aAAa;KACV,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,uBAAuB,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;KACrE,MAAM,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import {\n TRIGGER_TYPES,\n NOTIFICATION_API_TRIGGER_TYPES_SET,\n} from '../constants/notification-schema.js';\nimport type { FeatureAnnouncementRawNotification } from '../types/feature-announcement/feature-announcement.js';\nimport type { NormalisedAPINotification } from '../types/notification-api/notification-api.js';\nimport type {\n INotification,\n RawNotificationUnion,\n} from '../types/notification/notification.js';\nimport type { RawSnapNotification } from '../types/snaps/index.js';\nimport { processAPINotifications } from './process-api-notifications.js';\nimport {\n isFeatureAnnouncementRead,\n processFeatureAnnouncement,\n} from './process-feature-announcement.js';\nimport { processSnapNotification } from './process-snap-notifications.js';\n\nconst isAPINotification = (\n notification: RawNotificationUnion,\n): notification is NormalisedAPINotification =>\n NOTIFICATION_API_TRIGGER_TYPES_SET.has(notification.type);\n\nconst isFeatureAnnouncement = (\n notification: RawNotificationUnion,\n): notification is FeatureAnnouncementRawNotification =>\n notification.type === TRIGGER_TYPES.FEATURES_ANNOUNCEMENT;\n\nconst isSnapNotification = (\n notification: RawNotificationUnion,\n): notification is RawSnapNotification =>\n notification.type === TRIGGER_TYPES.SNAP;\n\n/**\n * Process feature announcement and wallet notifications into a shared/normalised notification shape.\n * We can still differentiate notifications by the `type` property\n *\n * @param notification - a feature announcement or on chain notification\n * @param readNotifications - all read notifications currently\n * @returns a processed notification\n */\nexport function processNotification(\n notification: RawNotificationUnion,\n readNotifications: string[] = [],\n): INotification {\n const exhaustedAllCases = (_uncheckedCase: never): never => {\n const type: string = notification?.type;\n throw new Error(`No processor found for notification kind ${type}`);\n };\n\n if (isFeatureAnnouncement(notification)) {\n const processedNotification = processFeatureAnnouncement(notification);\n processedNotification.isRead = isFeatureAnnouncementRead(\n processedNotification,\n readNotifications,\n );\n return processedNotification;\n }\n\n if (isSnapNotification(notification)) {\n return processSnapNotification(notification);\n }\n\n if (isAPINotification(notification)) {\n return processAPINotifications(notification);\n }\n\n return exhaustedAllCases(notification);\n}\n\n/**\n * Safe version of processing a notification. Rather than throwing an error if failed to process, it will return the Notification or undefined\n *\n * @param notification - notification to processes\n * @param readNotifications - all read notifications currently\n * @returns a process notification or undefined if failed to process\n */\nexport function safeProcessNotification(\n notification: RawNotificationUnion,\n readNotifications: string[] = [],\n): INotification | undefined {\n try {\n const processedNotification = processNotification(\n notification,\n readNotifications,\n );\n return processedNotification;\n } catch {\n return undefined;\n }\n}\n\nconst isNotUndefined = <Item>(item?: Item): item is Item => Boolean(item);\nexport const processAndFilterNotifications = (\n notifications: RawNotificationUnion[],\n readIds: string[],\n): INotification[] =>\n notifications\n .map((notification) => safeProcessNotification(notification, readIds))\n .filter(isNotUndefined);\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-snap-notifications.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-snap-notifications.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,qBAChB,mBAAmB,KACpC,aAWF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"process-snap-notifications.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/processors/process-snap-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,gBAAqC,EACtB,EAAE;IACjB,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;IAClD,OAAO;QACL,EAAE,EAAE,IAAI,EAAE;QACV,oBAAoB,EAAE,sBAAsB,CAAC,gBAAgB,CAAC;QAC9D,QAAQ;QACR,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,MAAM,EAAE,KAAK;QACb,IAAI;QACJ,IAAI;KACL,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { v4 as uuid } from 'uuid';\n\nimport type { INotification } from '../types/index.js';\nimport type { RawSnapNotification } from '../types/snaps/index.js';\nimport { getNotificationSubtype } from '../utils/get-notification-subtype.js';\n\n/**\n * Processes a snap notification into a normalized shape.\n *\n * @param snapNotification - A raw snap notification.\n * @returns a normalized snap notification.\n */\nexport const processSnapNotification = (\n snapNotification: RawSnapNotification,\n): INotification => {\n const { data, type, readDate } = snapNotification;\n return {\n id: uuid(),\n notification_subtype: getNotificationSubtype(snapNotification),\n readDate,\n createdAt: new Date().toISOString(),\n isRead: false,\n type,\n data,\n };\n};\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-notifications.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/api-notifications.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,yBAAyB,EAG1B,MAAM,oCAAoC,CAAC;AAI5C,MAAM,MAAM,GAAG,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAQxC,eAAO,MAAM,WAAW,SAAS,GAAG,KAAW,MACF,CAAC;AAQ9C,eAAO,MAAM,gBAAgB,SAAS,GAAG,KAAW,MACG,CAAC;AAGxD,eAAO,MAAM,wCAAwC,SAC9C,GAAG,KACP,MAA0D,CAAC;AAG9D,eAAO,MAAM,8BAA8B,SAAS,GAAG,KAAW,MACjB,CAAC;AAGlD,eAAO,MAAM,0CAA0C,SAChD,GAAG,KACP,MAAsE,CAAC;AAE1E;;;;;;;;;GASG;AACH,wBAAsB,+BAA+B,CACnD,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EAAE,EACnB,GAAG,GAAE,GAAW,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,EAAE,CAAC,CA+BlD;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EAAE,EACnB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,WAAW,GAAG,QAAQ,EAChC,GAAG,GAAE,GAAW,GACf,OAAO,CAAC,yBAAyB,EAAE,CAAC,CA0CtC;AAED;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,CAC3C,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EAAE,EACzB,GAAG,GAAE,GAAW,GACf,OAAO,CAAC,IAAI,CAAC,CAqBf"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-notifications.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/api-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,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EAC/C,MAAM,EACN,IAAI,CACL,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,GAAG,CAAC,KAAK,CAAC,sCAAsC,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC","sourcesContent":["import log from 'loglevel';\n\nimport { toRawAPINotification } from '../../shared/to-raw-notification.js';\nimport type {\n NormalisedAPINotification,\n Schema,\n UnprocessedRawNotification,\n} from '../types/notification-api/index.js';\nimport { makeApiCall } from '../utils/utils.js';\nimport { notificationsConfigCache } from './notification-config-cache.js';\n\nexport type ENV = 'prd' | 'uat' | 'dev';\n\nconst TRIGGER_API_ENV = {\n dev: 'https://trigger.dev-api.cx.metamask.io',\n uat: 'https://trigger.uat-api.cx.metamask.io',\n prd: 'https://trigger.api.cx.metamask.io',\n} satisfies Record<ENV, string>;\n\nexport const TRIGGER_API = (env: ENV = 'prd'): string =>\n TRIGGER_API_ENV[env] ?? TRIGGER_API_ENV.prd;\n\nconst NOTIFICATION_API_ENV = {\n dev: 'https://notification.dev-api.cx.metamask.io',\n uat: 'https://notification.uat-api.cx.metamask.io',\n prd: 'https://notification.api.cx.metamask.io',\n};\n\nexport const NOTIFICATION_API = (env: ENV = 'prd'): string =>\n NOTIFICATION_API_ENV[env] ?? NOTIFICATION_API_ENV.prd;\n\n// Gets notification settings for each account provided\nexport const TRIGGER_API_NOTIFICATIONS_QUERY_ENDPOINT = (\n env: ENV = 'prd',\n): string => `${TRIGGER_API(env)}/api/v2/notifications/query`;\n\n// Lists notifications for each address provided\nexport const NOTIFICATION_API_LIST_ENDPOINT = (env: ENV = 'prd'): string =>\n `${NOTIFICATION_API(env)}/api/v4/notifications`;\n\n// Marks notifications as read\nexport const NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT = (\n env: ENV = 'prd',\n): string => `${NOTIFICATION_API(env)}/api/v4/notifications/mark-as-read`;\n\n/**\n * fetches notification config (accounts enabled vs disabled)\n *\n * @param bearerToken - jwt\n * @param addresses - list of addresses to check\n * @param env - the environment to use for the API call\n * NOTE the API will return addresses config with false if they have not been created before.\n * NOTE this is cached for 1s to prevent multiple update calls\n * @returns object of notification config, or null if missing\n */\nexport async function getNotificationsApiConfigCached(\n bearerToken: string,\n addresses: string[],\n env: ENV = 'prd',\n): Promise<{ address: string; enabled: boolean }[]> {\n if (addresses.length === 0) {\n return [];\n }\n\n const normalizedAddresses = addresses.map((addr) => addr.toLowerCase());\n\n const cached = notificationsConfigCache.get(normalizedAddresses);\n if (cached) {\n return cached;\n }\n\n type RequestBody = { address: string }[];\n type Response = { address: string; enabled: boolean }[];\n const body: RequestBody = normalizedAddresses.map((address) => ({ address }));\n const apiResponse = await makeApiCall(\n bearerToken,\n TRIGGER_API_NOTIFICATIONS_QUERY_ENDPOINT(env),\n 'POST',\n body,\n )\n .then<Response | null>((response) => (response.ok ? response.json() : null))\n .catch(() => null);\n\n const result = apiResponse ?? [];\n\n if (result.length > 0) {\n notificationsConfigCache.set(result);\n }\n\n return result;\n}\n\n/**\n * Fetches on-chain notifications for the given addresses\n *\n * @param bearerToken - The JSON Web Token used for authentication in the API call.\n * @param addresses - List of addresses\n * @param locale - to generate translated notifications\n * @param platform - filter notifications for specific platforms ('extension' | 'mobile')\n * @param env - the environment to use for the API call\n * @returns An array of {@link NormalisedAPINotification}. Returns an empty array on transport or parse errors.\n */\nexport async function getAPINotifications(\n bearerToken: string,\n addresses: string[],\n locale: string,\n platform: 'extension' | 'mobile',\n env: ENV = 'prd',\n): Promise<NormalisedAPINotification[]> {\n if (addresses.length === 0) {\n return [];\n }\n\n type RequestBody =\n Schema.paths['/api/v4/notifications']['post']['requestBody']['content']['application/json'];\n type APIResponse =\n Schema.paths['/api/v4/notifications']['post']['responses']['200']['content']['application/json'];\n\n const body: RequestBody = {\n addresses: addresses.map((addr) => addr.toLowerCase()),\n locale,\n platform,\n };\n const notifications = await makeApiCall(\n bearerToken,\n NOTIFICATION_API_LIST_ENDPOINT(env),\n 'POST',\n body,\n )\n .then<APIResponse | null>((response) =>\n response.ok ? response.json() : null,\n )\n .catch(() => null);\n\n // Transform and sort notifications\n const transformedNotifications = notifications\n ?.map((notification): UnprocessedRawNotification | undefined => {\n if (!notification.notification_type) {\n return undefined;\n }\n\n try {\n return toRawAPINotification(notification);\n } catch {\n return undefined;\n }\n })\n .filter((item): item is NormalisedAPINotification => Boolean(item));\n\n return transformedNotifications ?? [];\n}\n\n/**\n * Marks the specified notifications as read.\n * This method sends a POST request to the notifications service to mark the provided notification IDs as read.\n * If the operation is successful, it completes without error. If the operation fails, it throws an error with details.\n *\n * @param bearerToken - The JSON Web Token used for authentication in the API call.\n * @param notificationIds - An array of notification IDs to be marked as read.\n * @param env - the environment to use for the API call\n * @returns A promise that resolves to void. The promise will reject if there's an error during the API call or if the response status is not 200.\n */\nexport async function markNotificationsAsRead(\n bearerToken: string,\n notificationIds: string[],\n env: ENV = 'prd',\n): Promise<void> {\n if (notificationIds.length === 0) {\n return;\n }\n\n type ResponseBody =\n Schema.paths['/api/v4/notifications/mark-as-read']['post']['requestBody']['content']['application/json'];\n const body: ResponseBody = {\n ids: notificationIds,\n };\n\n try {\n await makeApiCall(\n bearerToken,\n NOTIFICATION_API_MARK_ALL_AS_READ_ENDPOINT(env),\n 'POST',\n body,\n );\n } catch (error) {\n log.error('Error marking notifications as read:', error);\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-announcements.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/feature-announcements.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC;AAKhE,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,4DAA4D,CAAC;AAOpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAW3E,eAAO,MAAM,wBAAwB,4EAAqF,CAAC;AAC3H,eAAO,MAAM,wBAAwB,iLAAyJ,CAAC;AAE/L,KAAK,GAAG,GAAG;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,WAAW,GAAG,QAAQ,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE;QAGT,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;QAEhB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;KACjB,CAAC;IACF,KAAK,CAAC,EAAE,uBAAuB,EAAE,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAC/B,GAAG,iBACO,MAAM,KACpB,MAUF,CAAC;AAkJF;;;;;;GAMG;AACH,wBAAsB,mCAAmC,CACvD,GAAG,EAAE,GAAG,EACR,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,aAAa,EAAE,CAAC,CAc1B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-announcements.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/feature-announcements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAa3F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,uFAAuF;AACvF,MAAM,mCAAmC,GAAG,CAAC,CAAC;AAE9C,MAAM,gBAAgB,GAAG,WAAW,CAAC;AACrC,MAAM,oBAAoB,GAAG,eAAe,CAAC;AAC7C,MAAM,iBAAiB,GAAG,YAAY,CAAC;AACvC,MAAM,cAAc,GAAG,oBAAoB,CAAC;AAC5C,MAAM,cAAc,GAAG,wBAAwB,CAAC;AAChD,MAAM,CAAC,MAAM,wBAAwB,GAAG,WAAW,cAAc,WAAW,gBAAgB,8BAA8B,C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,CAAC;QACF,MAAM,aAAa,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAC1D,0BAA0B,CAAC,YAAY,CAAC,CACzC,CAAC;QAEF,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC","sourcesContent":["import { documentToHtmlString } from '@contentful/rich-text-html-renderer';\nimport type { Entry, Asset, EntryCollection } from 'contentful';\n\nimport { TRIGGER_TYPES } from '../constants/notification-schema.js';\nimport { processFeatureAnnouncement } from '../processors/process-feature-announcement.js';\nimport type { FeatureAnnouncementRawNotification } from '../types/feature-announcement/feature-announcement.js';\nimport type {\n ImageFields,\n TypeFeatureAnnouncement,\n} from '../types/feature-announcement/type-feature-announcement.js';\nimport type {\n TypeExternalLinkFields,\n TypePortfolioLinkFields,\n TypeExtensionLinkFields,\n TypeMobileLinkFields,\n} from '../types/feature-announcement/type-links.js';\nimport type { INotification } from '../types/notification/notification.js';\nimport { isVersionInBounds } from '../utils/isVersionInBounds.js';\n\n// Feature announcements older than this (by sys.updatedAt) are excluded from the feed.\nconst FEATURE_ANNOUNCEMENT_MAX_AGE_MONTHS = 3;\n\nconst DEFAULT_SPACE_ID = ':space_id';\nconst DEFAULT_ACCESS_TOKEN = ':access_token';\nconst DEFAULT_CLIENT_ID = ':client_id';\nconst DEFAULT_DOMAIN = 'cdn.contentful.com';\nconst PREVIEW_DOMAIN = 'preview.contentful.com';\nexport const FEATURE_ANNOUNCEMENT_API = `https://${DEFAULT_DOMAIN}/spaces/${DEFAULT_SPACE_ID}/environments/master/entries`;\nexport const FEATURE_ANNOUNCEMENT_URL = `${FEATURE_ANNOUNCEMENT_API}?access_token=${DEFAULT_ACCESS_TOKEN}&content_type=productAnnouncement&include=10&fields.clients[in]=${DEFAULT_CLIENT_ID}`;\n\ntype Env = {\n spaceId: string;\n accessToken: string;\n platform: 'extension' | 'mobile';\n platformVersion?: string;\n};\n\n/**\n * Contentful API Response Shape\n */\nexport type ContentfulResult = {\n includes?: {\n // Property names match Contentful API response structure\n // eslint-disable-next-line @typescript-eslint/naming-convention\n Entry?: Entry[];\n // eslint-disable-next-line @typescript-eslint/naming-convention\n Asset?: Asset[];\n };\n items?: TypeFeatureAnnouncement[];\n};\n\nexport const getFeatureAnnouncementUrl = (\n env: Env,\n previewToken?: string,\n): string => {\n const domain = previewToken ? PREVIEW_DOMAIN : DEFAULT_DOMAIN;\n const replacedUrl = FEATURE_ANNOUNCEMENT_URL.replace(\n DEFAULT_SPACE_ID,\n env.spaceId,\n )\n .replace(DEFAULT_ACCESS_TOKEN, previewToken ?? env.accessToken)\n .replace(DEFAULT_CLIENT_ID, env.platform)\n .replace(DEFAULT_DOMAIN, domain);\n return encodeURI(replacedUrl);\n};\n\nconst fetchFeatureAnnouncementNotifications = async (\n env: Env,\n previewToken?: string,\n): Promise<FeatureAnnouncementRawNotification[]> => {\n const url = getFeatureAnnouncementUrl(env, previewToken);\n\n const data = await fetch(url)\n .then((response) => response.json())\n .catch(() => null);\n\n if (!data) {\n return [];\n }\n\n const findIncludedItem = (\n sysId: string,\n ):\n | ImageFields['fields']\n | TypeExtensionLinkFields['fields']\n | TypePortfolioLinkFields['fields']\n | TypeMobileLinkFields['fields']\n | TypeExternalLinkFields['fields']\n | null => {\n const typedData: EntryCollection<\n | ImageFields\n | TypeExtensionLinkFields\n | TypePortfolioLinkFields\n | TypeMobileLinkFields\n | TypeExternalLinkFields\n > = data;\n const item =\n typedData?.includes?.Entry?.find(\n (entry: Entry) => entry?.sys?.id === sysId,\n ) ??\n typedData?.includes?.Asset?.find(\n (asset: Asset) => asset?.sys?.id === sysId,\n );\n return item ? item?.fields : null;\n };\n\n const contentfulNotifications = data?.items ?? [];\n const rawNotifications: FeatureAnnouncementRawNotification[] =\n contentfulNotifications\n .filter((item: TypeFeatureAnnouncement) => {\n const updatedAt = new Date(item.sys.updatedAt);\n const limitDate = new Date();\n limitDate.setMonth(\n limitDate.getMonth() - FEATURE_ANNOUNCEMENT_MAX_AGE_MONTHS,\n );\n return updatedAt > limitDate;\n })\n .map((item: TypeFeatureAnnouncement) => {\n const { fields } = item;\n const imageFields = fields.image\n ? (findIncludedItem(fields.image.sys.id) as ImageFields['fields'])\n : undefined;\n\n const externalLinkFields = fields.externalLink\n ? (findIncludedItem(\n fields.externalLink.sys.id,\n ) as TypeExternalLinkFields['fields'])\n : undefined;\n const portfolioLinkFields = fields.portfolioLink\n ? (findIncludedItem(\n fields.portfolioLink.sys.id,\n ) as TypePortfolioLinkFields['fields'])\n : undefined;\n const extensionLinkFields = fields.extensionLink\n ? (findIncludedItem(\n fields.extensionLink.sys.id,\n ) as TypeExtensionLinkFields['fields'])\n : undefined;\n const mobileLinkFields = fields.mobileLink\n ? (findIncludedItem(\n fields.mobileLink.sys.id,\n ) as TypeMobileLinkFields['fields'])\n : undefined;\n\n const notification: FeatureAnnouncementRawNotification = {\n type: TRIGGER_TYPES.FEATURES_ANNOUNCEMENT,\n createdAt: new Date(item.sys.createdAt).toString(),\n data: {\n id: fields.id,\n category: fields.category,\n title: fields.title,\n longDescription: documentToHtmlString(fields.longDescription),\n shortDescription: fields.shortDescription,\n image: {\n title: imageFields?.title,\n description: imageFields?.description,\n url: imageFields?.file?.url ?? '',\n },\n externalLink: externalLinkFields && {\n externalLinkText: externalLinkFields?.externalLinkText,\n externalLinkUrl: externalLinkFields?.externalLinkUrl,\n },\n portfolioLink: portfolioLinkFields && {\n portfolioLinkText: portfolioLinkFields?.portfolioLinkText,\n portfolioLinkUrl: portfolioLinkFields?.portfolioLinkUrl,\n },\n extensionLink: extensionLinkFields && {\n extensionLinkText: extensionLinkFields?.extensionLinkText,\n extensionLinkRoute: extensionLinkFields?.extensionLinkRoute,\n },\n mobileLink: mobileLinkFields && {\n mobileLinkText: mobileLinkFields?.mobileLinkText,\n mobileLinkUrl: mobileLinkFields?.mobileLinkUrl,\n },\n extensionMinimumVersionNumber: fields.extensionMinimumVersionNumber,\n mobileMinimumVersionNumber: fields.mobileMinimumVersionNumber,\n extensionMaximumVersionNumber: fields.extensionMaximumVersionNumber,\n mobileMaximumVersionNumber: fields.mobileMaximumVersionNumber,\n },\n };\n\n return notification;\n });\n\n const versionKeys = {\n extension: {\n min: 'extensionMinimumVersionNumber',\n max: 'extensionMaximumVersionNumber',\n },\n mobile: {\n min: 'mobileMinimumVersionNumber',\n max: 'mobileMaximumVersionNumber',\n },\n } as const;\n\n const filteredRawNotifications = rawNotifications.filter(\n (rawNotification) => {\n const minVersion = rawNotification.data?.[versionKeys[env.platform].min];\n const maxVersion = rawNotification.data?.[versionKeys[env.platform].max];\n return isVersionInBounds({\n currentVersion: env.platformVersion,\n minVersion,\n maxVersion,\n });\n },\n );\n\n return filteredRawNotifications;\n};\n\n/**\n * Gets Feature Announcement from our services\n *\n * @param env - environment for feature announcements\n * @param previewToken - the preview token to use if needed\n * @returns Raw Feature Announcements\n */\nexport async function getFeatureAnnouncementNotifications(\n env: Env,\n previewToken?: string,\n): Promise<INotification[]> {\n if (env?.accessToken && env?.spaceId && env?.platform) {\n const rawNotifications = await fetchFeatureAnnouncementNotifications(\n env,\n previewToken,\n );\n const notifications = rawNotifications.map((notification) =>\n processFeatureAnnouncement(notification),\n );\n\n return notifications;\n }\n\n return [];\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-config-cache.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/notification-config-cache.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,0BAA0B,QAAY,CAAC;AAEpD,qBAAa,yBAAyB;;IAgBpC,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,GAAG,IAAI,CASvE;IAED,GAAG,CAAC,IAAI,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,EAAE,GAAG,IAAI,CAiBvD;IAED,KAAK,IAAI,IAAI,CAEZ;CACF;AAED,eAAO,MAAM,wBAAwB,2BAAkC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-config-cache.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/notification-config-cache.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,aAAa;AAElE,MAAM,OAAO,yBAAyB;IAAtC;;QACE,2CAAyC,IAAI,EAAC;QAErC,yCAAO,0BAA0B,EAAC;IA8C7C,CAAC;IAjCC,GAAG,CAAC,SAAmB;QACrB,IAAI,uBAAA,IAAI,kFAAW,MAAf,IAAI,CAAa,IAAI,CAAC,uBAAA,IAAI,wFAAiB,MAArB,IAAI,EAAkB,SAAS,CAAC,EAAE,CAAC;YAC3D,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACjC,OAAO;YACP,OAAO,EAAE,uBAAA,IAAI,wCAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK;SACjD,CAAC,CAAC,CAAC;IACN,CAAC;IAED,GAAG,CAAC,IAA6C;QAC/C,IAAI,GAAG,GAAyB,IAAI,GAAG,EAAmB,CAAC;QAE3D,kEAAkE;QAClE,IAAI,uBAAA,IAAI,wCAAO,IAAI,CAAC,uBAAA,IAAI,kFAAW,MAAf,IAAI,CAAa,EAAE,CAAC;YACtC,GAAG,GAAG,IAAI,GAAG,CAAC,uBAAA,IAAI,wCAAO,CAAC,IAAI,CAAC,CAAC;QAClC,CAAC;QAED,uBAAuB;QACvB,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE;YACpC,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5B,CAAC,CAAC,CAAC;QAEH,uBAAA,IAAI,oCAAU;YACZ,IAAI,EAAE,GAAG;YACT,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;SACtB,MAAA,CAAC;IACJ,CAAC;IAED,KAAK;QACH,uBAAA,IAAI,oCAAU,IAAI,MAAA,CAAC;IACrB,CAAC;CACF;;IA3CG,OAAO,CAAC,uBAAA,IAAI,wCAAO,IAAI,IAAI,CAAC,GAAG,EAAE,GAAG,uBAAA,IAAI,wCAAO,CAAC,SAAS,GAAG,uBAAA,IAAI,sCAAK,CAAC;AACxE,CAAC,mGAEgB,SAAmB;IAClC,IAAI,CAAC,uBAAA,IAAI,wCAAO,EAAE,CAAC;QACjB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,uBAAA,IAAI,wCAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AACtE,CAAC;AAqCH,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,yBAAyB,EAAE,CAAC","sourcesContent":["type NotificationConfigCache = {\n data: Map<string, boolean>;\n timestamp: number;\n};\n\nexport const NotificationConfigCacheTTL = 1000 * 60; // 60 seconds\n\nexport class OnChainNotificationsCache {\n #cache: NotificationConfigCache | null = null;\n\n readonly #ttl = NotificationConfigCacheTTL;\n\n #isExpired(): boolean {\n return !this.#cache || Date.now() - this.#cache.timestamp > this.#ttl;\n }\n\n #hasAllAddresses(addresses: string[]): boolean {\n if (!this.#cache) {\n return false;\n }\n return addresses.every((address) => this.#cache?.data.has(address));\n }\n\n get(addresses: string[]): { address: string; enabled: boolean }[] | null {\n if (this.#isExpired() || !this.#hasAllAddresses(addresses)) {\n return null;\n }\n\n return addresses.map((address) => ({\n address,\n enabled: this.#cache?.data.get(address) ?? false,\n }));\n }\n\n set(data: { address: string; enabled: boolean }[]): void {\n let map: Map<string, boolean> = new Map<string, boolean>();\n\n // If we have existing cache, preserve it and update with new data\n if (this.#cache && !this.#isExpired()) {\n map = new Map(this.#cache.data);\n }\n\n // Update with new data\n data.forEach(({ address, enabled }) => {\n map.set(address, enabled);\n });\n\n this.#cache = {\n data: map,\n timestamp: Date.now(),\n };\n }\n\n clear(): void {\n this.#cache = null;\n }\n}\n\nexport const notificationsConfigCache = new OnChainNotificationsCache();\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"perp-notifications.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/perp-notifications.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,SAAS,qCAAqC,CAAC;AAC5D,eAAO,MAAM,uBAAuB,mDAA+B,CAAC;AAEpE;;;;;GAKG;AACH,wBAAsB,2BAA2B,CAC/C,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,UAAU,GACrB,OAAO,CAAC,IAAI,CAAC,CAef"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"perp-notifications.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/services/perp-notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,eAAe,GAChB,MAAM,4BAA4B,CAAC;AAIpC,MAAM,CAAC,MAAM,SAAS,GAAG,kCAAkC,CAAC;AAC5D,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,SAAS,gBAAgB,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,WAAmB,EACnB,UAAsB;IAEtB,IAAI,CAAC;QACH,MAAM,mBAAmB,EAAE,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE;YAC7C,OAAO,eAAe,CAAC,uBAAuB,EAAE;gBAC9C,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE;oBACP,cAAc,EAAE,kBAAkB;oBAClC,aAAa,EAAE,UAAU,WAAW,EAAE;iBACvC;gBACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;aACjC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,0CAA0C,EAAE,KAAK,CAAC,CAAC;IACnE,CAAC;AACH,CAAC","sourcesContent":["import {\n createServicePolicy,\n successfulFetch,\n} from '@metamask/controller-utils';\n\nimport type { OrderInput } from '../types/index.js';\n\nexport const PERPS_API = 'https://perps.api.cx.metamask.io';\nexport const PERPS_API_CREATE_ORDERS = `${PERPS_API}/api/v1/orders`;\n\n/**\n * Sends a perp order to our API to create a perp order subscription\n *\n * @param bearerToken - JWT for authentication\n * @param orderInput - order input shape\n */\nexport async function createPerpOrderNotification(\n bearerToken: string,\n orderInput: OrderInput,\n): Promise<void> {\n try {\n await createServicePolicy().execute(async () => {\n return successfulFetch(PERPS_API_CREATE_ORDERS, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${bearerToken}`,\n },\n body: JSON.stringify(orderInput),\n });\n });\n } catch (error) {\n console.error('Failed to create perp order notification', error);\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-announcement.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/feature-announcement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAE9E,MAAM,MAAM,sCAAsC,GAAG,IAAI,CACvD,uBAAuB,CAAC,QAAQ,CAAC,EAC/B,OAAO,GACP,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,cAAc,GACd,YAAY,CACf,GAAG;IACF,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE;QACL,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IAGF,YAAY,CAAC,EAAE;QACb,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IAGF,aAAa,CAAC,EAAE;QACd,iBAAiB,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IAGF,aAAa,CAAC,EAAE;QACd,iBAAiB,EAAE,MAAM,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IAGF,UAAU,CAAC,EAAE;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,aAAa,CAAC,qBAAqB,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,sCAAsC,CAAC;CAC9C,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=feature-announcement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-announcement.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/feature-announcement.ts"],"names":[],"mappings":"","sourcesContent":["import type { TRIGGER_TYPES } from '../../constants/notification-schema.js';\nimport type { TypeFeatureAnnouncement } from './type-feature-announcement.js';\n\nexport type FeatureAnnouncementRawNotificationData = Omit<\n TypeFeatureAnnouncement['fields'],\n | 'image'\n | 'longDescription'\n | 'extensionLink'\n | 'portfolioLink'\n | 'externalLink'\n | 'mobileLink'\n> & {\n longDescription: string;\n image: {\n title?: string;\n description?: string;\n url: string;\n };\n\n // External Link\n externalLink?: {\n externalLinkText: string;\n externalLinkUrl: string;\n };\n\n // Portfolio Link\n portfolioLink?: {\n portfolioLinkText: string;\n portfolioLinkUrl: string;\n };\n\n // Extension Link\n extensionLink?: {\n extensionLinkText: string;\n extensionLinkRoute: string;\n };\n\n // Mobile Link\n mobileLink?: {\n mobileLinkText: string;\n mobileLinkUrl: string;\n };\n};\n\nexport type FeatureAnnouncementRawNotification = {\n type: TRIGGER_TYPES.FEATURES_ANNOUNCEMENT;\n createdAt: string;\n data: FeatureAnnouncementRawNotificationData;\n};\n"]}
@@ -1,4 +0,0 @@
1
- export type * from './feature-announcement.js';
2
- export type * from './type-links.js';
3
- export type * from './type-feature-announcement.js';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,gCAAgC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './feature-announcement.js';\nexport type * from './type-links.js';\nexport type * from './type-feature-announcement.js';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-feature-announcement.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/type-feature-announcement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEzD,OAAO,KAAK,EACV,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE;YACL,GAAG,EAAE,MAAM,CAAC;YACZ,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,MAAM,CAAC;YACpB,OAAO,EAAE;gBACP,IAAI,EAAE,MAA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2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=type-feature-announcement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-feature-announcement.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/type-feature-announcement.ts"],"names":[],"mappings":"","sourcesContent":["import type { Entry, EntryFieldTypes } from 'contentful';\n\nimport type {\n TypeExternalLinkFields,\n TypeExtensionLinkFields,\n TypePortfolioLinkFields,\n TypeMobileLinkFields,\n} from './type-links.js';\n\nexport type ImageFields = {\n fields: {\n title?: string;\n description?: string;\n file?: {\n url: string;\n fileName: string;\n contentType: string;\n details: {\n size: number;\n image?: {\n width: number;\n height: number;\n };\n };\n };\n };\n contentTypeId: 'Image';\n};\n\nexport type TypeFeatureAnnouncementFields = {\n fields: {\n title: EntryFieldTypes.Text;\n id: EntryFieldTypes.Symbol;\n category: EntryFieldTypes.Text; // E.g. Announcement, etc.\n shortDescription: EntryFieldTypes.Text;\n image: EntryFieldTypes.EntryLink<ImageFields>;\n longDescription: EntryFieldTypes.RichText;\n\n // External Link\n externalLink?: EntryFieldTypes.EntryLink<TypeExternalLinkFields>;\n // Portfolio Link\n portfolioLink?: EntryFieldTypes.EntryLink<TypePortfolioLinkFields>;\n // Extension Link\n extensionLink?: EntryFieldTypes.EntryLink<TypeExtensionLinkFields>;\n // Mobile Link\n mobileLink?: EntryFieldTypes.EntryLink<TypeMobileLinkFields>;\n\n clients?: EntryFieldTypes.Text<'extension' | 'mobile' | 'portfolio'>;\n\n // Min Versions\n extensionMinimumVersionNumber?: EntryFieldTypes.Text;\n mobileMinimumVersionNumber?: EntryFieldTypes.Text;\n // Max Versions\n extensionMaximumVersionNumber?: EntryFieldTypes.Text;\n mobileMaximumVersionNumber?: EntryFieldTypes.Text;\n };\n contentTypeId: 'productAnnouncement';\n};\n\nexport type TypeFeatureAnnouncement = Entry<\n TypeFeatureAnnouncementFields,\n 'WITHOUT_UNRESOLVABLE_LINKS'\n>;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-links.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/type-links.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE;QACN,gBAAgB,EAAE,MAAM,CAAC;QACzB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,aAAa,EAAE,cAAc,CAAC;CAC/B,CAAC;AAIF,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE;QACN,iBAAiB,EAAE,MAAM,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IACF,aAAa,EAAE,eAAe,CAAC;CAChC,CAAC;AAIF,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE;QACN,iBAAiB,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,aAAa,EAAE,eAAe,CAAC;CAChC,CAAC;AAIF,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,aAAa,EAAE,YAAY,CAAC;CAC7B,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=type-links.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-links.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/feature-announcement/type-links.ts"],"names":[],"mappings":"","sourcesContent":["// Generic External Link\n// We use this to show a link than will open an external web page\nexport type TypeExternalLinkFields = {\n fields: {\n externalLinkText: string;\n externalLinkUrl: string;\n };\n contentTypeId: 'externalLink';\n};\n\n// Extension Link\n// We use this to show a link than will open an extension tab\nexport type TypeExtensionLinkFields = {\n fields: {\n extensionLinkText: string;\n extensionLinkRoute: string;\n };\n contentTypeId: 'extensionLink';\n};\n\n// Portfolio Link\n// We use this to show a link than will open a portfolio page\nexport type TypePortfolioLinkFields = {\n fields: {\n portfolioLinkText: string;\n portfolioLinkUrl: string;\n };\n contentTypeId: 'portfolioLink';\n};\n\n// Mobile Link\n// We use this to show a link than will open an application page\nexport type TypeMobileLinkFields = {\n fields: {\n mobileLinkText: string;\n mobileLinkUrl: string;\n };\n contentTypeId: 'mobileLink';\n};\n"]}
@@ -1,6 +0,0 @@
1
- export type * from './feature-announcement/index.js';
2
- export type * from './notification-api/index.js';
3
- export type * from './notification/index.js';
4
- export type * from './snaps/index.js';
5
- export type * from './perps/index.js';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/NotificationServicesController/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,iCAAiC,CAAC;AACrD,mBAAmB,6BAA6B,CAAC;AACjD,mBAAmB,yBAAyB,CAAC;AAC7C,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,kBAAkB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/NotificationServicesController/types/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './feature-announcement/index.js';\nexport type * from './notification-api/index.js';\nexport type * from './notification/index.js';\nexport type * from './snaps/index.js';\nexport type * from './perps/index.js';\n"]}
@@ -1,2 +0,0 @@
1
- export type * from './notification.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,mBAAmB,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './notification.js';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification/notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AAC1G,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX,oBAAoB,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,yBAAyB,GACzB,kCAAkC,GAClC,mBAAmB,CAAC;AAExB;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAC/B,CAAC,kCAAkC,GAAG,gBAAgB,CAAC,GACvD,CAAC,yBAAyB,GAAG,gBAAgB,CAAC,GAC9C,CAAC,mBAAmB,GAAG,gBAAgB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,CAC1E,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,aAAa,EACb,IAAI,GAAG,MAAM,GAAG,QAAQ,CACzB,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=notification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification/notification.ts"],"names":[],"mappings":"","sourcesContent":["import type { FeatureAnnouncementRawNotification } from '../feature-announcement/feature-announcement.js';\nimport type { NormalisedAPINotification } from '../notification-api/notification-api.js';\nimport type { RawSnapNotification } from '../snaps/index.js';\nimport type { Compute } from '../type-utils.js';\n\nexport type BaseNotification = {\n id: string;\n // eslint-disable-next-line @typescript-eslint/naming-convention\n notification_subtype: string;\n createdAt: string;\n isRead: boolean;\n};\n\nexport type RawNotificationUnion =\n | NormalisedAPINotification\n | FeatureAnnouncementRawNotification\n | RawSnapNotification;\n\n/**\n * The shape of a \"generic\" notification.\n * Other than the fields listed below, tt will also contain:\n * - `type` field (declared in the Raw shapes)\n * - `data` field (declared in the Raw shapes)\n */\nexport type INotification = Compute<\n | (FeatureAnnouncementRawNotification & BaseNotification)\n | (NormalisedAPINotification & BaseNotification)\n | (RawSnapNotification & BaseNotification & { readDate?: string | null })\n>;\n\nexport type MarkAsReadNotificationsParam = Pick<\n INotification,\n 'id' | 'type' | 'isRead'\n>[];\n"]}
@@ -1,3 +0,0 @@
1
- export type * from './notification-api.js';
2
- export type * as Schema from './schema.js';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification-api/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,uBAAuB,CAAC;AAC3C,YAAY,KAAK,MAAM,MAAM,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification-api/index.ts"],"names":[],"mappings":"","sourcesContent":["export type * from './notification-api.js';\nexport type * as Schema from './schema.js';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-api.d.ts","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification-api/notification-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAA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AG,OAAO,CAC1C,4BAA4B,CAAC,mBAAmB,CAAC,CAClD,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAC3C,6BAA6B,CAAC,oBAAoB,CAAC,CACpD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GACjC,sBAAsB,GACtB,uBAAuB,CAAC;AAE5B,MAAM,MAAM,wCAAwC,GAAG,OAAO,CAC5D,sBAAsB,EACtB;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE;YAAE,WAAW,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,CAChD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=notification-api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification-api.js","sourceRoot":"","sources":["../../../../src/NotificationServicesController/types/notification-api/notification-api.ts"],"names":[],"mappings":"","sourcesContent":["import { TRIGGER_TYPES } from '../../constants/notification-schema.js';\nimport type { Compute } from '../type-utils.js';\n// Types derived from external Notification API schema - naming follows API conventions\n/* eslint-disable @typescript-eslint/naming-convention */\nimport type { components } from './schema.js';\n\nexport type Data_MetamaskSwapCompleted =\n components['schemas']['Data_MetamaskSwapCompleted'];\nexport type Data_LidoStakeReadyToBeWithdrawn =\n components['schemas']['Data_LidoStakeReadyToBeWithdrawn'];\nexport type Data_LidoStakeCompleted =\n components['schemas']['Data_LidoStakeCompleted'];\nexport type Data_LidoWithdrawalRequested =\n components['schemas']['Data_LidoWithdrawalRequested'];\nexport type Data_LidoWithdrawalCompleted =\n components['schemas']['Data_LidoWithdrawalCompleted'];\nexport type Data_RocketPoolStakeCompleted =\n components['schemas']['Data_RocketPoolStakeCompleted'];\nexport type Data_RocketPoolUnstakeCompleted =\n components['schemas']['Data_RocketPoolUnstakeCompleted'];\nexport type Data_ETHSent = components['schemas']['Data_ETHSent'];\nexport type Data_ETHReceived = components['schemas']['Data_ETHReceived'];\nexport type Data_ERC20Sent = components['schemas']['Data_ERC20Sent'];\nexport type Data_ERC20Received = components['schemas']['Data_ERC20Received'];\nexport type Data_ERC721Sent = components['schemas']['Data_ERC721Sent'];\nexport type Data_ERC721Received = components['schemas']['Data_ERC721Received'];\nexport type NetworkMetadata = components['schemas']['NetworkMetadata'];\nexport type BlockExplorer = components['schemas']['BlockExplorer'];\n\nexport type UnprocessedRawNotification =\n components['schemas']['NotificationOutputV4'][number];\nexport type PlatformNotification =\n components['schemas']['PlatformNotificationV4'];\nexport type OnChainNotification =\n components['schemas']['OnChainNotificationV4'];\n\ntype ConvertToEnum<Kind> = {\n [K in TRIGGER_TYPES]: Kind extends `${K}` ? K : never;\n}[TRIGGER_TYPES];\n\n/**\n * Type-Computation.\n * Adds a `type` field to on-chain notifications for easier enum checking.\n * Preserves the original nested payload structure.\n */\ntype NormalizeOnChainNotification<\n N extends OnChainNotification = OnChainNotification,\n NotificationDataKinds extends string = NonNullable<\n N['payload']['data']\n >['kind'],\n> = {\n [K in NotificationDataKinds]: Compute<\n Omit<N, 'payload'> & {\n type: ConvertToEnum<K>;\n payload: Compute<\n Omit<N['payload'], 'data'> & {\n data: Extract<NonNullable<N['payload']['data']>, { kind: K }>;\n }\n >;\n }\n >;\n}[NotificationDataKinds];\n\n/**\n * Type-Computation.\n * Adds a `type` field to platform notifications for easier enum checking.\n * Preserves the original nested payload structure.\n */\ntype NormalizePlatformNotification<\n N extends PlatformNotification = PlatformNotification,\n> = Compute<\n N & {\n type: TRIGGER_TYPES.PLATFORM;\n }\n>;\n\nexport type OnChainRawNotification = Compute<\n NormalizeOnChainNotification<OnChainNotification>\n>;\n\nexport type PlatformRawNotification = Compute<\n NormalizePlatformNotification<PlatformNotification>\n>;\n\nexport type NormalisedAPINotification =\n | OnChainRawNotification\n | PlatformRawNotification;\n\nexport type OnChainRawNotificationsWithNetworkFields = Extract<\n OnChainRawNotification,\n { payload: { data: { network_fee: unknown } } }\n>;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../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