@metamask-previews/notification-services-controller 27.0.2-preview-6eff555ee → 28.0.0-preview-0a30e47

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 (657) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/NotificationServicesController/{NotificationServicesController-method-action-types.d.mts → NotificationServicesController-method-action-types.d.ts} +2 -2
  3. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.ts.map +1 -0
  4. package/dist/NotificationServicesController/{NotificationServicesController-method-action-types.mjs → NotificationServicesController-method-action-types.js} +1 -1
  5. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.js.map +1 -0
  6. package/dist/NotificationServicesController/{NotificationServicesController.d.cts → NotificationServicesController.d.ts} +15 -15
  7. package/dist/NotificationServicesController/NotificationServicesController.d.ts.map +1 -0
  8. package/dist/NotificationServicesController/{NotificationServicesController.mjs → NotificationServicesController.js} +411 -386
  9. package/dist/NotificationServicesController/NotificationServicesController.js.map +1 -0
  10. package/dist/NotificationServicesController/constants/index.d.ts +2 -0
  11. package/dist/NotificationServicesController/constants/index.d.ts.map +1 -0
  12. package/dist/NotificationServicesController/constants/index.js +2 -0
  13. package/dist/NotificationServicesController/constants/index.js.map +1 -0
  14. package/dist/NotificationServicesController/constants/{notification-schema.d.cts → notification-schema.d.ts} +1 -1
  15. package/dist/NotificationServicesController/constants/notification-schema.d.ts.map +1 -0
  16. package/dist/NotificationServicesController/constants/{notification-schema.mjs → notification-schema.js} +1 -1
  17. package/dist/NotificationServicesController/constants/notification-schema.js.map +1 -0
  18. package/dist/NotificationServicesController/{index.d.cts → index.d.ts} +14 -14
  19. package/dist/NotificationServicesController/index.d.ts.map +1 -0
  20. package/dist/NotificationServicesController/index.js +13 -0
  21. package/dist/NotificationServicesController/index.js.map +1 -0
  22. package/dist/NotificationServicesController/mocks/index.d.ts +5 -0
  23. package/dist/NotificationServicesController/mocks/index.d.ts.map +1 -0
  24. package/dist/NotificationServicesController/mocks/index.js +5 -0
  25. package/dist/NotificationServicesController/mocks/index.js.map +1 -0
  26. package/dist/NotificationServicesController/mocks/{mock-feature-announcements.d.cts → mock-feature-announcements.d.ts} +3 -3
  27. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.ts.map +1 -0
  28. package/dist/NotificationServicesController/mocks/{mock-feature-announcements.mjs → mock-feature-announcements.js} +2 -2
  29. package/dist/NotificationServicesController/mocks/mock-feature-announcements.js.map +1 -0
  30. package/dist/NotificationServicesController/mocks/{mock-raw-notifications.d.cts → mock-raw-notifications.d.ts} +2 -2
  31. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.ts.map +1 -0
  32. package/dist/NotificationServicesController/mocks/{mock-raw-notifications.mjs → mock-raw-notifications.js} +2 -2
  33. package/dist/NotificationServicesController/mocks/mock-raw-notifications.js.map +1 -0
  34. package/dist/NotificationServicesController/mocks/{mock-snap-notification.d.cts → mock-snap-notification.d.ts} +2 -2
  35. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.ts.map +1 -0
  36. package/dist/NotificationServicesController/mocks/{mock-snap-notification.mjs → mock-snap-notification.js} +2 -2
  37. package/dist/NotificationServicesController/mocks/mock-snap-notification.js.map +1 -0
  38. package/dist/NotificationServicesController/mocks/{mockResponses.d.cts → mockResponses.d.ts} +3 -3
  39. package/dist/NotificationServicesController/mocks/mockResponses.d.ts.map +1 -0
  40. package/dist/NotificationServicesController/mocks/{mockResponses.mjs → mockResponses.js} +6 -6
  41. package/dist/NotificationServicesController/mocks/mockResponses.js.map +1 -0
  42. package/dist/NotificationServicesController/processors/index.d.ts +4 -0
  43. package/dist/NotificationServicesController/processors/index.d.ts.map +1 -0
  44. package/dist/NotificationServicesController/processors/index.js +4 -0
  45. package/dist/NotificationServicesController/processors/index.js.map +1 -0
  46. package/dist/NotificationServicesController/processors/{process-api-notifications.d.cts → process-api-notifications.d.ts} +3 -3
  47. package/dist/NotificationServicesController/processors/process-api-notifications.d.ts.map +1 -0
  48. package/dist/NotificationServicesController/processors/{process-api-notifications.mjs → process-api-notifications.js} +3 -3
  49. package/dist/NotificationServicesController/processors/process-api-notifications.js.map +1 -0
  50. package/dist/NotificationServicesController/processors/{process-feature-announcement.d.mts → process-feature-announcement.d.ts} +3 -3
  51. package/dist/NotificationServicesController/processors/process-feature-announcement.d.ts.map +1 -0
  52. package/dist/NotificationServicesController/processors/{process-feature-announcement.mjs → process-feature-announcement.js} +3 -3
  53. package/dist/NotificationServicesController/processors/process-feature-announcement.js.map +1 -0
  54. package/dist/NotificationServicesController/processors/{process-notifications.d.cts → process-notifications.d.ts} +2 -2
  55. package/dist/NotificationServicesController/processors/process-notifications.d.ts.map +1 -0
  56. package/dist/NotificationServicesController/processors/{process-notifications.mjs → process-notifications.js} +5 -5
  57. package/dist/NotificationServicesController/processors/process-notifications.js.map +1 -0
  58. package/dist/NotificationServicesController/processors/{process-snap-notifications.d.cts → process-snap-notifications.d.ts} +3 -3
  59. package/dist/NotificationServicesController/processors/process-snap-notifications.d.ts.map +1 -0
  60. package/dist/NotificationServicesController/processors/{process-snap-notifications.mjs → process-snap-notifications.js} +3 -3
  61. package/dist/NotificationServicesController/processors/process-snap-notifications.js.map +1 -0
  62. package/dist/NotificationServicesController/services/{api-notifications.d.cts → api-notifications.d.ts} +2 -2
  63. package/dist/NotificationServicesController/services/api-notifications.d.ts.map +1 -0
  64. package/dist/NotificationServicesController/services/{api-notifications.mjs → api-notifications.js} +5 -12
  65. package/dist/NotificationServicesController/services/api-notifications.js.map +1 -0
  66. package/dist/NotificationServicesController/services/{feature-announcements.d.mts → feature-announcements.d.ts} +4 -4
  67. package/dist/NotificationServicesController/services/feature-announcements.d.ts.map +1 -0
  68. package/dist/NotificationServicesController/services/{feature-announcements.mjs → feature-announcements.js} +5 -5
  69. package/dist/NotificationServicesController/services/feature-announcements.js.map +1 -0
  70. package/dist/NotificationServicesController/services/{notification-config-cache.d.mts → notification-config-cache.d.ts} +1 -1
  71. package/dist/NotificationServicesController/services/notification-config-cache.d.ts.map +1 -0
  72. package/dist/NotificationServicesController/services/notification-config-cache.js +43 -0
  73. package/dist/NotificationServicesController/services/notification-config-cache.js.map +1 -0
  74. package/dist/NotificationServicesController/services/{perp-notifications.d.cts → perp-notifications.d.ts} +2 -2
  75. package/dist/NotificationServicesController/services/perp-notifications.d.ts.map +1 -0
  76. package/dist/NotificationServicesController/services/{perp-notifications.mjs → perp-notifications.js} +2 -2
  77. package/dist/NotificationServicesController/services/perp-notifications.js.map +1 -0
  78. package/dist/NotificationServicesController/types/feature-announcement/{feature-announcement.d.cts → feature-announcement.d.ts} +3 -3
  79. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.ts.map +1 -0
  80. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js +2 -0
  81. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.js.map +1 -0
  82. package/dist/NotificationServicesController/types/feature-announcement/index.d.ts +4 -0
  83. package/dist/NotificationServicesController/types/feature-announcement/index.d.ts.map +1 -0
  84. package/dist/NotificationServicesController/types/feature-announcement/index.js +2 -0
  85. package/dist/NotificationServicesController/types/feature-announcement/index.js.map +1 -0
  86. package/dist/NotificationServicesController/types/feature-announcement/{type-feature-announcement.d.cts → type-feature-announcement.d.ts} +3 -3
  87. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.ts.map +1 -0
  88. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js +2 -0
  89. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.js.map +1 -0
  90. package/dist/NotificationServicesController/types/feature-announcement/{type-links.d.cts → type-links.d.ts} +1 -1
  91. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.ts.map +1 -0
  92. package/dist/NotificationServicesController/types/feature-announcement/type-links.js +2 -0
  93. package/dist/NotificationServicesController/types/feature-announcement/type-links.js.map +1 -0
  94. package/dist/NotificationServicesController/types/index.d.ts +6 -0
  95. package/dist/NotificationServicesController/types/index.d.ts.map +1 -0
  96. package/dist/NotificationServicesController/types/index.js +2 -0
  97. package/dist/NotificationServicesController/types/index.js.map +1 -0
  98. package/dist/NotificationServicesController/types/notification/index.d.ts +2 -0
  99. package/dist/NotificationServicesController/types/notification/index.d.ts.map +1 -0
  100. package/dist/NotificationServicesController/types/notification/index.js +2 -0
  101. package/dist/NotificationServicesController/types/notification/index.js.map +1 -0
  102. package/dist/NotificationServicesController/types/notification/{notification.d.cts → notification.d.ts} +5 -5
  103. package/dist/NotificationServicesController/types/notification/notification.d.ts.map +1 -0
  104. package/dist/NotificationServicesController/types/notification/notification.js +2 -0
  105. package/dist/NotificationServicesController/types/notification/notification.js.map +1 -0
  106. package/dist/NotificationServicesController/types/notification-api/index.d.ts +3 -0
  107. package/dist/NotificationServicesController/types/notification-api/index.d.ts.map +1 -0
  108. package/dist/NotificationServicesController/types/notification-api/index.js +2 -0
  109. package/dist/NotificationServicesController/types/notification-api/index.js.map +1 -0
  110. package/dist/NotificationServicesController/types/notification-api/{notification-api.d.mts → notification-api.d.ts} +4 -4
  111. package/dist/NotificationServicesController/types/notification-api/notification-api.d.ts.map +1 -0
  112. package/dist/NotificationServicesController/types/notification-api/notification-api.js +2 -0
  113. package/dist/NotificationServicesController/types/notification-api/notification-api.js.map +1 -0
  114. package/dist/NotificationServicesController/types/notification-api/{schema.d.cts → schema.d.ts} +1 -1
  115. package/dist/NotificationServicesController/types/notification-api/schema.d.ts.map +1 -0
  116. package/dist/NotificationServicesController/types/notification-api/{schema.mjs → schema.js} +1 -1
  117. package/dist/NotificationServicesController/types/notification-api/schema.js.map +1 -0
  118. package/dist/NotificationServicesController/types/perps/index.d.ts +2 -0
  119. package/dist/NotificationServicesController/types/perps/index.d.ts.map +1 -0
  120. package/dist/NotificationServicesController/types/perps/index.js +2 -0
  121. package/dist/NotificationServicesController/types/perps/index.js.map +1 -0
  122. package/dist/NotificationServicesController/types/perps/perp-types.d.ts +3 -0
  123. package/dist/NotificationServicesController/types/perps/perp-types.d.ts.map +1 -0
  124. package/dist/NotificationServicesController/types/perps/perp-types.js +2 -0
  125. package/dist/NotificationServicesController/types/perps/perp-types.js.map +1 -0
  126. package/dist/NotificationServicesController/types/perps/{schema.d.cts → schema.d.ts} +1 -1
  127. package/dist/NotificationServicesController/types/perps/schema.d.ts.map +1 -0
  128. package/dist/NotificationServicesController/types/perps/{schema.mjs → schema.js} +1 -1
  129. package/dist/NotificationServicesController/types/perps/schema.js.map +1 -0
  130. package/dist/NotificationServicesController/types/snaps/index.d.ts +2 -0
  131. package/dist/NotificationServicesController/types/snaps/index.d.ts.map +1 -0
  132. package/dist/NotificationServicesController/types/snaps/index.js +2 -0
  133. package/dist/NotificationServicesController/types/snaps/index.js.map +1 -0
  134. package/dist/NotificationServicesController/types/snaps/{snaps.d.cts → snaps.d.ts} +2 -2
  135. package/dist/NotificationServicesController/types/snaps/snaps.d.ts.map +1 -0
  136. package/dist/NotificationServicesController/types/snaps/snaps.js +2 -0
  137. package/dist/NotificationServicesController/types/snaps/snaps.js.map +1 -0
  138. package/dist/NotificationServicesController/types/{type-utils.d.cts → type-utils.d.ts} +1 -1
  139. package/dist/NotificationServicesController/types/type-utils.d.ts.map +1 -0
  140. package/dist/NotificationServicesController/types/type-utils.js +2 -0
  141. package/dist/NotificationServicesController/types/type-utils.js.map +1 -0
  142. package/dist/NotificationServicesController/utils/{get-notification-subtype.d.cts → get-notification-subtype.d.ts} +2 -2
  143. package/dist/NotificationServicesController/utils/get-notification-subtype.d.ts.map +1 -0
  144. package/dist/NotificationServicesController/utils/{get-notification-subtype.mjs → get-notification-subtype.js} +3 -3
  145. package/dist/NotificationServicesController/utils/get-notification-subtype.js.map +1 -0
  146. package/dist/NotificationServicesController/utils/{isVersionInBounds.d.cts → isVersionInBounds.d.ts} +1 -1
  147. package/dist/NotificationServicesController/utils/isVersionInBounds.d.ts.map +1 -0
  148. package/dist/NotificationServicesController/utils/{isVersionInBounds.mjs → isVersionInBounds.js} +2 -2
  149. package/dist/NotificationServicesController/utils/isVersionInBounds.js.map +1 -0
  150. package/dist/NotificationServicesController/utils/{should-auto-expire.d.cts → should-auto-expire.d.ts} +1 -1
  151. package/dist/NotificationServicesController/utils/should-auto-expire.d.ts.map +1 -0
  152. package/dist/NotificationServicesController/utils/{should-auto-expire.mjs → should-auto-expire.js} +1 -1
  153. package/dist/NotificationServicesController/utils/should-auto-expire.js.map +1 -0
  154. package/dist/NotificationServicesController/utils/{utils.d.cts → utils.d.ts} +1 -1
  155. package/dist/NotificationServicesController/utils/utils.d.ts.map +1 -0
  156. package/dist/NotificationServicesController/utils/{utils.mjs → utils.js} +1 -1
  157. package/dist/NotificationServicesController/utils/utils.js.map +1 -0
  158. package/dist/NotificationServicesPushController/{NotificationServicesPushController-method-action-types.d.cts → NotificationServicesPushController-method-action-types.d.ts} +2 -2
  159. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.ts.map +1 -0
  160. package/dist/NotificationServicesPushController/{NotificationServicesPushController-method-action-types.mjs → NotificationServicesPushController-method-action-types.js} +1 -1
  161. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.js.map +1 -0
  162. package/dist/NotificationServicesPushController/{NotificationServicesPushController.d.cts → NotificationServicesPushController.d.ts} +9 -9
  163. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.ts.map +1 -0
  164. package/dist/NotificationServicesPushController/NotificationServicesPushController.js +326 -0
  165. package/dist/NotificationServicesPushController/NotificationServicesPushController.js.map +1 -0
  166. package/dist/NotificationServicesPushController/{index.d.cts → index.d.ts} +9 -9
  167. package/dist/NotificationServicesPushController/index.d.ts.map +1 -0
  168. package/dist/NotificationServicesPushController/index.js +8 -0
  169. package/dist/NotificationServicesPushController/index.js.map +1 -0
  170. package/dist/NotificationServicesPushController/mocks/index.d.ts +2 -0
  171. package/dist/NotificationServicesPushController/mocks/index.d.ts.map +1 -0
  172. package/dist/NotificationServicesPushController/mocks/index.js +2 -0
  173. package/dist/NotificationServicesPushController/mocks/index.js.map +1 -0
  174. package/dist/NotificationServicesPushController/mocks/{mockResponse.d.mts → mockResponse.d.ts} +1 -1
  175. package/dist/NotificationServicesPushController/mocks/mockResponse.d.ts.map +1 -0
  176. package/dist/NotificationServicesPushController/mocks/{mockResponse.mjs → mockResponse.js} +2 -2
  177. package/dist/NotificationServicesPushController/mocks/mockResponse.js.map +1 -0
  178. package/dist/NotificationServicesPushController/services/{endpoints.d.cts → endpoints.d.ts} +1 -1
  179. package/dist/NotificationServicesPushController/services/endpoints.d.ts.map +1 -0
  180. package/dist/NotificationServicesPushController/services/{endpoints.mjs → endpoints.js} +1 -1
  181. package/dist/NotificationServicesPushController/services/endpoints.js.map +1 -0
  182. package/dist/NotificationServicesPushController/services/{services.d.mts → services.d.ts} +4 -4
  183. package/dist/NotificationServicesPushController/services/services.d.ts.map +1 -0
  184. package/dist/NotificationServicesPushController/services/{services.mjs → services.js} +2 -2
  185. package/dist/NotificationServicesPushController/services/services.js.map +1 -0
  186. package/dist/NotificationServicesPushController/types/{firebase.d.mts → firebase.d.ts} +1 -1
  187. package/dist/NotificationServicesPushController/types/firebase.d.ts.map +1 -0
  188. package/dist/NotificationServicesPushController/types/firebase.js +2 -0
  189. package/dist/NotificationServicesPushController/types/firebase.js.map +1 -0
  190. package/dist/NotificationServicesPushController/types/index.d.ts +4 -0
  191. package/dist/NotificationServicesPushController/types/index.d.ts.map +1 -0
  192. package/dist/NotificationServicesPushController/types/index.js +2 -0
  193. package/dist/NotificationServicesPushController/types/index.js.map +1 -0
  194. package/dist/NotificationServicesPushController/types/{push-analytics.d.cts → push-analytics.d.ts} +1 -1
  195. package/dist/NotificationServicesPushController/types/push-analytics.d.ts.map +1 -0
  196. package/dist/NotificationServicesPushController/types/{push-analytics.mjs → push-analytics.js} +1 -1
  197. package/dist/NotificationServicesPushController/types/push-analytics.js.map +1 -0
  198. package/dist/NotificationServicesPushController/types/{push-service-interface.d.cts → push-service-interface.d.ts} +2 -2
  199. package/dist/NotificationServicesPushController/types/push-service-interface.d.ts.map +1 -0
  200. package/dist/NotificationServicesPushController/types/push-service-interface.js +2 -0
  201. package/dist/NotificationServicesPushController/types/push-service-interface.js.map +1 -0
  202. package/dist/NotificationServicesPushController/utils/{get-notification-data.d.cts → get-notification-data.d.ts} +2 -2
  203. package/dist/NotificationServicesPushController/utils/get-notification-data.d.ts.map +1 -0
  204. package/dist/NotificationServicesPushController/utils/{get-notification-data.mjs → get-notification-data.js} +2 -2
  205. package/dist/NotificationServicesPushController/utils/get-notification-data.js.map +1 -0
  206. package/dist/NotificationServicesPushController/utils/{get-notification-message.d.mts → get-notification-message.d.ts} +3 -3
  207. package/dist/NotificationServicesPushController/utils/get-notification-message.d.ts.map +1 -0
  208. package/dist/NotificationServicesPushController/utils/{get-notification-message.mjs → get-notification-message.js} +2 -2
  209. package/dist/NotificationServicesPushController/utils/get-notification-message.js.map +1 -0
  210. package/dist/NotificationServicesPushController/utils/index.d.ts +4 -0
  211. package/dist/NotificationServicesPushController/utils/index.d.ts.map +1 -0
  212. package/dist/NotificationServicesPushController/utils/index.js +4 -0
  213. package/dist/NotificationServicesPushController/utils/index.js.map +1 -0
  214. package/dist/NotificationServicesPushController/utils/{to-push-analytics-payload.d.cts → to-push-analytics-payload.d.ts} +2 -2
  215. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.ts.map +1 -0
  216. package/dist/NotificationServicesPushController/utils/{to-push-analytics-payload.mjs → to-push-analytics-payload.js} +1 -1
  217. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.js.map +1 -0
  218. package/dist/NotificationServicesPushController/web/index.d.ts +2 -0
  219. package/dist/NotificationServicesPushController/web/index.d.ts.map +1 -0
  220. package/dist/NotificationServicesPushController/web/index.js +2 -0
  221. package/dist/NotificationServicesPushController/web/index.js.map +1 -0
  222. package/dist/NotificationServicesPushController/web/{push-utils.d.cts → push-utils.d.ts} +4 -5
  223. package/dist/NotificationServicesPushController/web/push-utils.d.ts.map +1 -0
  224. package/dist/NotificationServicesPushController/web/{push-utils.mjs → push-utils.js} +7 -14
  225. package/dist/NotificationServicesPushController/web/push-utils.js.map +1 -0
  226. package/dist/index.d.ts +4 -0
  227. package/dist/index.d.ts.map +1 -0
  228. package/dist/index.js +4 -0
  229. package/dist/index.js.map +1 -0
  230. package/dist/shared/index.d.ts +4 -0
  231. package/dist/shared/index.d.ts.map +1 -0
  232. package/dist/shared/index.js +4 -0
  233. package/dist/shared/index.js.map +1 -0
  234. package/dist/shared/{is-onchain-notification.d.cts → is-onchain-notification.d.ts} +2 -2
  235. package/dist/shared/is-onchain-notification.d.ts.map +1 -0
  236. package/dist/shared/{is-onchain-notification.mjs → is-onchain-notification.js} +2 -2
  237. package/dist/shared/is-onchain-notification.js.map +1 -0
  238. package/dist/shared/{notification-api-type-guards.d.mts → notification-api-type-guards.d.ts} +2 -2
  239. package/dist/shared/notification-api-type-guards.d.ts.map +1 -0
  240. package/dist/shared/{notification-api-type-guards.mjs → notification-api-type-guards.js} +1 -1
  241. package/dist/shared/notification-api-type-guards.js.map +1 -0
  242. package/dist/shared/{to-raw-notification.d.cts → to-raw-notification.d.ts} +2 -2
  243. package/dist/shared/to-raw-notification.d.ts.map +1 -0
  244. package/dist/shared/{to-raw-notification.mjs → to-raw-notification.js} +3 -3
  245. package/dist/shared/to-raw-notification.js.map +1 -0
  246. package/package.json +31 -65
  247. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.cjs +0 -7
  248. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.cjs.map +0 -1
  249. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.cts +0 -206
  250. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.cts.map +0 -1
  251. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.d.mts.map +0 -1
  252. package/dist/NotificationServicesController/NotificationServicesController-method-action-types.mjs.map +0 -1
  253. package/dist/NotificationServicesController/NotificationServicesController.cjs +0 -1056
  254. package/dist/NotificationServicesController/NotificationServicesController.cjs.map +0 -1
  255. package/dist/NotificationServicesController/NotificationServicesController.d.cts.map +0 -1
  256. package/dist/NotificationServicesController/NotificationServicesController.d.mts +0 -292
  257. package/dist/NotificationServicesController/NotificationServicesController.d.mts.map +0 -1
  258. package/dist/NotificationServicesController/NotificationServicesController.mjs.map +0 -1
  259. package/dist/NotificationServicesController/constants/index.cjs +0 -18
  260. package/dist/NotificationServicesController/constants/index.cjs.map +0 -1
  261. package/dist/NotificationServicesController/constants/index.d.cts +0 -2
  262. package/dist/NotificationServicesController/constants/index.d.cts.map +0 -1
  263. package/dist/NotificationServicesController/constants/index.d.mts +0 -2
  264. package/dist/NotificationServicesController/constants/index.d.mts.map +0 -1
  265. package/dist/NotificationServicesController/constants/index.mjs +0 -2
  266. package/dist/NotificationServicesController/constants/index.mjs.map +0 -1
  267. package/dist/NotificationServicesController/constants/notification-schema.cjs +0 -46
  268. package/dist/NotificationServicesController/constants/notification-schema.cjs.map +0 -1
  269. package/dist/NotificationServicesController/constants/notification-schema.d.cts.map +0 -1
  270. package/dist/NotificationServicesController/constants/notification-schema.d.mts +0 -22
  271. package/dist/NotificationServicesController/constants/notification-schema.d.mts.map +0 -1
  272. package/dist/NotificationServicesController/constants/notification-schema.mjs.map +0 -1
  273. package/dist/NotificationServicesController/index.cjs +0 -44
  274. package/dist/NotificationServicesController/index.cjs.map +0 -1
  275. package/dist/NotificationServicesController/index.d.cts.map +0 -1
  276. package/dist/NotificationServicesController/index.d.mts +0 -16
  277. package/dist/NotificationServicesController/index.d.mts.map +0 -1
  278. package/dist/NotificationServicesController/index.mjs +0 -13
  279. package/dist/NotificationServicesController/index.mjs.map +0 -1
  280. package/dist/NotificationServicesController/mocks/index.cjs +0 -21
  281. package/dist/NotificationServicesController/mocks/index.cjs.map +0 -1
  282. package/dist/NotificationServicesController/mocks/index.d.cts +0 -5
  283. package/dist/NotificationServicesController/mocks/index.d.cts.map +0 -1
  284. package/dist/NotificationServicesController/mocks/index.d.mts +0 -5
  285. package/dist/NotificationServicesController/mocks/index.d.mts.map +0 -1
  286. package/dist/NotificationServicesController/mocks/index.mjs +0 -5
  287. package/dist/NotificationServicesController/mocks/index.mjs.map +0 -1
  288. package/dist/NotificationServicesController/mocks/mock-feature-announcements.cjs +0 -210
  289. package/dist/NotificationServicesController/mocks/mock-feature-announcements.cjs.map +0 -1
  290. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.cts.map +0 -1
  291. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.mts +0 -15
  292. package/dist/NotificationServicesController/mocks/mock-feature-announcements.d.mts.map +0 -1
  293. package/dist/NotificationServicesController/mocks/mock-feature-announcements.mjs.map +0 -1
  294. package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs +0 -830
  295. package/dist/NotificationServicesController/mocks/mock-raw-notifications.cjs.map +0 -1
  296. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.cts.map +0 -1
  297. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts +0 -104
  298. package/dist/NotificationServicesController/mocks/mock-raw-notifications.d.mts.map +0 -1
  299. package/dist/NotificationServicesController/mocks/mock-raw-notifications.mjs.map +0 -1
  300. package/dist/NotificationServicesController/mocks/mock-snap-notification.cjs +0 -29
  301. package/dist/NotificationServicesController/mocks/mock-snap-notification.cjs.map +0 -1
  302. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.cts.map +0 -1
  303. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.mts +0 -8
  304. package/dist/NotificationServicesController/mocks/mock-snap-notification.d.mts.map +0 -1
  305. package/dist/NotificationServicesController/mocks/mock-snap-notification.mjs.map +0 -1
  306. package/dist/NotificationServicesController/mocks/mockResponses.cjs +0 -61
  307. package/dist/NotificationServicesController/mocks/mockResponses.cjs.map +0 -1
  308. package/dist/NotificationServicesController/mocks/mockResponses.d.cts.map +0 -1
  309. package/dist/NotificationServicesController/mocks/mockResponses.d.mts +0 -15
  310. package/dist/NotificationServicesController/mocks/mockResponses.d.mts.map +0 -1
  311. package/dist/NotificationServicesController/mocks/mockResponses.mjs.map +0 -1
  312. package/dist/NotificationServicesController/processors/index.cjs +0 -20
  313. package/dist/NotificationServicesController/processors/index.cjs.map +0 -1
  314. package/dist/NotificationServicesController/processors/index.d.cts +0 -4
  315. package/dist/NotificationServicesController/processors/index.d.cts.map +0 -1
  316. package/dist/NotificationServicesController/processors/index.d.mts +0 -4
  317. package/dist/NotificationServicesController/processors/index.d.mts.map +0 -1
  318. package/dist/NotificationServicesController/processors/index.mjs +0 -4
  319. package/dist/NotificationServicesController/processors/index.mjs.map +0 -1
  320. package/dist/NotificationServicesController/processors/process-api-notifications.cjs +0 -24
  321. package/dist/NotificationServicesController/processors/process-api-notifications.cjs.map +0 -1
  322. package/dist/NotificationServicesController/processors/process-api-notifications.d.cts.map +0 -1
  323. package/dist/NotificationServicesController/processors/process-api-notifications.d.mts +0 -10
  324. package/dist/NotificationServicesController/processors/process-api-notifications.d.mts.map +0 -1
  325. package/dist/NotificationServicesController/processors/process-api-notifications.mjs.map +0 -1
  326. package/dist/NotificationServicesController/processors/process-feature-announcement.cjs +0 -38
  327. package/dist/NotificationServicesController/processors/process-feature-announcement.cjs.map +0 -1
  328. package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts +0 -19
  329. package/dist/NotificationServicesController/processors/process-feature-announcement.d.cts.map +0 -1
  330. package/dist/NotificationServicesController/processors/process-feature-announcement.d.mts.map +0 -1
  331. package/dist/NotificationServicesController/processors/process-feature-announcement.mjs.map +0 -1
  332. package/dist/NotificationServicesController/processors/process-notifications.cjs +0 -60
  333. package/dist/NotificationServicesController/processors/process-notifications.cjs.map +0 -1
  334. package/dist/NotificationServicesController/processors/process-notifications.d.cts.map +0 -1
  335. package/dist/NotificationServicesController/processors/process-notifications.d.mts +0 -20
  336. package/dist/NotificationServicesController/processors/process-notifications.d.mts.map +0 -1
  337. package/dist/NotificationServicesController/processors/process-notifications.mjs.map +0 -1
  338. package/dist/NotificationServicesController/processors/process-snap-notifications.cjs +0 -25
  339. package/dist/NotificationServicesController/processors/process-snap-notifications.cjs.map +0 -1
  340. package/dist/NotificationServicesController/processors/process-snap-notifications.d.cts.map +0 -1
  341. package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts +0 -10
  342. package/dist/NotificationServicesController/processors/process-snap-notifications.d.mts.map +0 -1
  343. package/dist/NotificationServicesController/processors/process-snap-notifications.mjs.map +0 -1
  344. package/dist/NotificationServicesController/services/api-notifications.cjs +0 -167
  345. package/dist/NotificationServicesController/services/api-notifications.cjs.map +0 -1
  346. package/dist/NotificationServicesController/services/api-notifications.d.cts.map +0 -1
  347. package/dist/NotificationServicesController/services/api-notifications.d.mts +0 -65
  348. package/dist/NotificationServicesController/services/api-notifications.d.mts.map +0 -1
  349. package/dist/NotificationServicesController/services/api-notifications.mjs.map +0 -1
  350. package/dist/NotificationServicesController/services/feature-announcements.cjs +0 -140
  351. package/dist/NotificationServicesController/services/feature-announcements.cjs.map +0 -1
  352. package/dist/NotificationServicesController/services/feature-announcements.d.cts +0 -32
  353. package/dist/NotificationServicesController/services/feature-announcements.d.cts.map +0 -1
  354. package/dist/NotificationServicesController/services/feature-announcements.d.mts.map +0 -1
  355. package/dist/NotificationServicesController/services/feature-announcements.mjs.map +0 -1
  356. package/dist/NotificationServicesController/services/notification-config-cache.cjs +0 -61
  357. package/dist/NotificationServicesController/services/notification-config-cache.cjs.map +0 -1
  358. package/dist/NotificationServicesController/services/notification-config-cache.d.cts +0 -15
  359. package/dist/NotificationServicesController/services/notification-config-cache.d.cts.map +0 -1
  360. package/dist/NotificationServicesController/services/notification-config-cache.d.mts.map +0 -1
  361. package/dist/NotificationServicesController/services/notification-config-cache.mjs +0 -57
  362. package/dist/NotificationServicesController/services/notification-config-cache.mjs.map +0 -1
  363. package/dist/NotificationServicesController/services/perp-notifications.cjs +0 -31
  364. package/dist/NotificationServicesController/services/perp-notifications.cjs.map +0 -1
  365. package/dist/NotificationServicesController/services/perp-notifications.d.cts.map +0 -1
  366. package/dist/NotificationServicesController/services/perp-notifications.d.mts +0 -11
  367. package/dist/NotificationServicesController/services/perp-notifications.d.mts.map +0 -1
  368. package/dist/NotificationServicesController/services/perp-notifications.mjs.map +0 -1
  369. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs +0 -3
  370. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.cjs.map +0 -1
  371. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.cts.map +0 -1
  372. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts +0 -32
  373. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.d.mts.map +0 -1
  374. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs +0 -2
  375. package/dist/NotificationServicesController/types/feature-announcement/feature-announcement.mjs.map +0 -1
  376. package/dist/NotificationServicesController/types/feature-announcement/index.cjs +0 -3
  377. package/dist/NotificationServicesController/types/feature-announcement/index.cjs.map +0 -1
  378. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts +0 -4
  379. package/dist/NotificationServicesController/types/feature-announcement/index.d.cts.map +0 -1
  380. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts +0 -4
  381. package/dist/NotificationServicesController/types/feature-announcement/index.d.mts.map +0 -1
  382. package/dist/NotificationServicesController/types/feature-announcement/index.mjs +0 -2
  383. package/dist/NotificationServicesController/types/feature-announcement/index.mjs.map +0 -1
  384. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs +0 -3
  385. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.cjs.map +0 -1
  386. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.cts.map +0 -1
  387. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts +0 -43
  388. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.d.mts.map +0 -1
  389. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs +0 -2
  390. package/dist/NotificationServicesController/types/feature-announcement/type-feature-announcement.mjs.map +0 -1
  391. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs +0 -3
  392. package/dist/NotificationServicesController/types/feature-announcement/type-links.cjs.map +0 -1
  393. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.cts.map +0 -1
  394. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts +0 -29
  395. package/dist/NotificationServicesController/types/feature-announcement/type-links.d.mts.map +0 -1
  396. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs +0 -2
  397. package/dist/NotificationServicesController/types/feature-announcement/type-links.mjs.map +0 -1
  398. package/dist/NotificationServicesController/types/index.cjs +0 -3
  399. package/dist/NotificationServicesController/types/index.cjs.map +0 -1
  400. package/dist/NotificationServicesController/types/index.d.cts +0 -6
  401. package/dist/NotificationServicesController/types/index.d.cts.map +0 -1
  402. package/dist/NotificationServicesController/types/index.d.mts +0 -6
  403. package/dist/NotificationServicesController/types/index.d.mts.map +0 -1
  404. package/dist/NotificationServicesController/types/index.mjs +0 -2
  405. package/dist/NotificationServicesController/types/index.mjs.map +0 -1
  406. package/dist/NotificationServicesController/types/notification/index.cjs +0 -3
  407. package/dist/NotificationServicesController/types/notification/index.cjs.map +0 -1
  408. package/dist/NotificationServicesController/types/notification/index.d.cts +0 -2
  409. package/dist/NotificationServicesController/types/notification/index.d.cts.map +0 -1
  410. package/dist/NotificationServicesController/types/notification/index.d.mts +0 -2
  411. package/dist/NotificationServicesController/types/notification/index.d.mts.map +0 -1
  412. package/dist/NotificationServicesController/types/notification/index.mjs +0 -2
  413. package/dist/NotificationServicesController/types/notification/index.mjs.map +0 -1
  414. package/dist/NotificationServicesController/types/notification/notification.cjs +0 -3
  415. package/dist/NotificationServicesController/types/notification/notification.cjs.map +0 -1
  416. package/dist/NotificationServicesController/types/notification/notification.d.cts.map +0 -1
  417. package/dist/NotificationServicesController/types/notification/notification.d.mts +0 -22
  418. package/dist/NotificationServicesController/types/notification/notification.d.mts.map +0 -1
  419. package/dist/NotificationServicesController/types/notification/notification.mjs +0 -2
  420. package/dist/NotificationServicesController/types/notification/notification.mjs.map +0 -1
  421. package/dist/NotificationServicesController/types/notification-api/index.cjs +0 -3
  422. package/dist/NotificationServicesController/types/notification-api/index.cjs.map +0 -1
  423. package/dist/NotificationServicesController/types/notification-api/index.d.cts +0 -3
  424. package/dist/NotificationServicesController/types/notification-api/index.d.cts.map +0 -1
  425. package/dist/NotificationServicesController/types/notification-api/index.d.mts +0 -3
  426. package/dist/NotificationServicesController/types/notification-api/index.d.mts.map +0 -1
  427. package/dist/NotificationServicesController/types/notification-api/index.mjs +0 -2
  428. package/dist/NotificationServicesController/types/notification-api/index.mjs.map +0 -1
  429. package/dist/NotificationServicesController/types/notification-api/notification-api.cjs +0 -4
  430. package/dist/NotificationServicesController/types/notification-api/notification-api.cjs.map +0 -1
  431. package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts +0 -59
  432. package/dist/NotificationServicesController/types/notification-api/notification-api.d.cts.map +0 -1
  433. package/dist/NotificationServicesController/types/notification-api/notification-api.d.mts.map +0 -1
  434. package/dist/NotificationServicesController/types/notification-api/notification-api.mjs +0 -2
  435. package/dist/NotificationServicesController/types/notification-api/notification-api.mjs.map +0 -1
  436. package/dist/NotificationServicesController/types/notification-api/schema.cjs +0 -6
  437. package/dist/NotificationServicesController/types/notification-api/schema.cjs.map +0 -1
  438. package/dist/NotificationServicesController/types/notification-api/schema.d.cts.map +0 -1
  439. package/dist/NotificationServicesController/types/notification-api/schema.d.mts +0 -752
  440. package/dist/NotificationServicesController/types/notification-api/schema.d.mts.map +0 -1
  441. package/dist/NotificationServicesController/types/notification-api/schema.mjs.map +0 -1
  442. package/dist/NotificationServicesController/types/perps/index.cjs +0 -3
  443. package/dist/NotificationServicesController/types/perps/index.cjs.map +0 -1
  444. package/dist/NotificationServicesController/types/perps/index.d.cts +0 -2
  445. package/dist/NotificationServicesController/types/perps/index.d.cts.map +0 -1
  446. package/dist/NotificationServicesController/types/perps/index.d.mts +0 -2
  447. package/dist/NotificationServicesController/types/perps/index.d.mts.map +0 -1
  448. package/dist/NotificationServicesController/types/perps/index.mjs +0 -2
  449. package/dist/NotificationServicesController/types/perps/index.mjs.map +0 -1
  450. package/dist/NotificationServicesController/types/perps/perp-types.cjs +0 -3
  451. package/dist/NotificationServicesController/types/perps/perp-types.cjs.map +0 -1
  452. package/dist/NotificationServicesController/types/perps/perp-types.d.cts +0 -3
  453. package/dist/NotificationServicesController/types/perps/perp-types.d.cts.map +0 -1
  454. package/dist/NotificationServicesController/types/perps/perp-types.d.mts +0 -3
  455. package/dist/NotificationServicesController/types/perps/perp-types.d.mts.map +0 -1
  456. package/dist/NotificationServicesController/types/perps/perp-types.mjs +0 -2
  457. package/dist/NotificationServicesController/types/perps/perp-types.mjs.map +0 -1
  458. package/dist/NotificationServicesController/types/perps/schema.cjs +0 -6
  459. package/dist/NotificationServicesController/types/perps/schema.cjs.map +0 -1
  460. package/dist/NotificationServicesController/types/perps/schema.d.cts.map +0 -1
  461. package/dist/NotificationServicesController/types/perps/schema.d.mts +0 -133
  462. package/dist/NotificationServicesController/types/perps/schema.d.mts.map +0 -1
  463. package/dist/NotificationServicesController/types/perps/schema.mjs.map +0 -1
  464. package/dist/NotificationServicesController/types/snaps/index.cjs +0 -3
  465. package/dist/NotificationServicesController/types/snaps/index.cjs.map +0 -1
  466. package/dist/NotificationServicesController/types/snaps/index.d.cts +0 -2
  467. package/dist/NotificationServicesController/types/snaps/index.d.cts.map +0 -1
  468. package/dist/NotificationServicesController/types/snaps/index.d.mts +0 -2
  469. package/dist/NotificationServicesController/types/snaps/index.d.mts.map +0 -1
  470. package/dist/NotificationServicesController/types/snaps/index.mjs +0 -2
  471. package/dist/NotificationServicesController/types/snaps/index.mjs.map +0 -1
  472. package/dist/NotificationServicesController/types/snaps/snaps.cjs +0 -3
  473. package/dist/NotificationServicesController/types/snaps/snaps.cjs.map +0 -1
  474. package/dist/NotificationServicesController/types/snaps/snaps.d.cts.map +0 -1
  475. package/dist/NotificationServicesController/types/snaps/snaps.d.mts +0 -23
  476. package/dist/NotificationServicesController/types/snaps/snaps.d.mts.map +0 -1
  477. package/dist/NotificationServicesController/types/snaps/snaps.mjs +0 -2
  478. package/dist/NotificationServicesController/types/snaps/snaps.mjs.map +0 -1
  479. package/dist/NotificationServicesController/types/type-utils.cjs +0 -3
  480. package/dist/NotificationServicesController/types/type-utils.cjs.map +0 -1
  481. package/dist/NotificationServicesController/types/type-utils.d.cts.map +0 -1
  482. package/dist/NotificationServicesController/types/type-utils.d.mts +0 -7
  483. package/dist/NotificationServicesController/types/type-utils.d.mts.map +0 -1
  484. package/dist/NotificationServicesController/types/type-utils.mjs +0 -2
  485. package/dist/NotificationServicesController/types/type-utils.mjs.map +0 -1
  486. package/dist/NotificationServicesController/utils/get-notification-subtype.cjs +0 -33
  487. package/dist/NotificationServicesController/utils/get-notification-subtype.cjs.map +0 -1
  488. package/dist/NotificationServicesController/utils/get-notification-subtype.d.cts.map +0 -1
  489. package/dist/NotificationServicesController/utils/get-notification-subtype.d.mts +0 -17
  490. package/dist/NotificationServicesController/utils/get-notification-subtype.d.mts.map +0 -1
  491. package/dist/NotificationServicesController/utils/get-notification-subtype.mjs.map +0 -1
  492. package/dist/NotificationServicesController/utils/isVersionInBounds.cjs +0 -37
  493. package/dist/NotificationServicesController/utils/isVersionInBounds.cjs.map +0 -1
  494. package/dist/NotificationServicesController/utils/isVersionInBounds.d.cts.map +0 -1
  495. package/dist/NotificationServicesController/utils/isVersionInBounds.d.mts +0 -18
  496. package/dist/NotificationServicesController/utils/isVersionInBounds.d.mts.map +0 -1
  497. package/dist/NotificationServicesController/utils/isVersionInBounds.mjs.map +0 -1
  498. package/dist/NotificationServicesController/utils/should-auto-expire.cjs +0 -12
  499. package/dist/NotificationServicesController/utils/should-auto-expire.cjs.map +0 -1
  500. package/dist/NotificationServicesController/utils/should-auto-expire.d.cts.map +0 -1
  501. package/dist/NotificationServicesController/utils/should-auto-expire.d.mts +0 -2
  502. package/dist/NotificationServicesController/utils/should-auto-expire.d.mts.map +0 -1
  503. package/dist/NotificationServicesController/utils/should-auto-expire.mjs.map +0 -1
  504. package/dist/NotificationServicesController/utils/utils.cjs +0 -25
  505. package/dist/NotificationServicesController/utils/utils.cjs.map +0 -1
  506. package/dist/NotificationServicesController/utils/utils.d.cts.map +0 -1
  507. package/dist/NotificationServicesController/utils/utils.d.mts +0 -11
  508. package/dist/NotificationServicesController/utils/utils.d.mts.map +0 -1
  509. package/dist/NotificationServicesController/utils/utils.mjs.map +0 -1
  510. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.cjs +0 -7
  511. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.cjs.map +0 -1
  512. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.cts.map +0 -1
  513. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.mts +0 -72
  514. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.d.mts.map +0 -1
  515. package/dist/NotificationServicesPushController/NotificationServicesPushController-method-action-types.mjs.map +0 -1
  516. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs +0 -342
  517. package/dist/NotificationServicesPushController/NotificationServicesPushController.cjs.map +0 -1
  518. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.cts.map +0 -1
  519. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts +0 -123
  520. package/dist/NotificationServicesPushController/NotificationServicesPushController.d.mts.map +0 -1
  521. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs +0 -342
  522. package/dist/NotificationServicesPushController/NotificationServicesPushController.mjs.map +0 -1
  523. package/dist/NotificationServicesPushController/index.cjs +0 -37
  524. package/dist/NotificationServicesPushController/index.cjs.map +0 -1
  525. package/dist/NotificationServicesPushController/index.d.cts.map +0 -1
  526. package/dist/NotificationServicesPushController/index.d.mts +0 -11
  527. package/dist/NotificationServicesPushController/index.d.mts.map +0 -1
  528. package/dist/NotificationServicesPushController/index.mjs +0 -8
  529. package/dist/NotificationServicesPushController/index.mjs.map +0 -1
  530. package/dist/NotificationServicesPushController/mocks/index.cjs +0 -18
  531. package/dist/NotificationServicesPushController/mocks/index.cjs.map +0 -1
  532. package/dist/NotificationServicesPushController/mocks/index.d.cts +0 -2
  533. package/dist/NotificationServicesPushController/mocks/index.d.cts.map +0 -1
  534. package/dist/NotificationServicesPushController/mocks/index.d.mts +0 -2
  535. package/dist/NotificationServicesPushController/mocks/index.d.mts.map +0 -1
  536. package/dist/NotificationServicesPushController/mocks/index.mjs +0 -2
  537. package/dist/NotificationServicesPushController/mocks/index.mjs.map +0 -1
  538. package/dist/NotificationServicesPushController/mocks/mockResponse.cjs +0 -48
  539. package/dist/NotificationServicesPushController/mocks/mockResponse.cjs.map +0 -1
  540. package/dist/NotificationServicesPushController/mocks/mockResponse.d.cts +0 -22
  541. package/dist/NotificationServicesPushController/mocks/mockResponse.d.cts.map +0 -1
  542. package/dist/NotificationServicesPushController/mocks/mockResponse.d.mts.map +0 -1
  543. package/dist/NotificationServicesPushController/mocks/mockResponse.mjs.map +0 -1
  544. package/dist/NotificationServicesPushController/services/endpoints.cjs +0 -13
  545. package/dist/NotificationServicesPushController/services/endpoints.cjs.map +0 -1
  546. package/dist/NotificationServicesPushController/services/endpoints.d.cts.map +0 -1
  547. package/dist/NotificationServicesPushController/services/endpoints.d.mts +0 -4
  548. package/dist/NotificationServicesPushController/services/endpoints.d.mts.map +0 -1
  549. package/dist/NotificationServicesPushController/services/endpoints.mjs.map +0 -1
  550. package/dist/NotificationServicesPushController/services/services.cjs +0 -133
  551. package/dist/NotificationServicesPushController/services/services.cjs.map +0 -1
  552. package/dist/NotificationServicesPushController/services/services.d.cts +0 -90
  553. package/dist/NotificationServicesPushController/services/services.d.cts.map +0 -1
  554. package/dist/NotificationServicesPushController/services/services.d.mts.map +0 -1
  555. package/dist/NotificationServicesPushController/services/services.mjs.map +0 -1
  556. package/dist/NotificationServicesPushController/types/firebase.cjs +0 -3
  557. package/dist/NotificationServicesPushController/types/firebase.cjs.map +0 -1
  558. package/dist/NotificationServicesPushController/types/firebase.d.cts +0 -53
  559. package/dist/NotificationServicesPushController/types/firebase.d.cts.map +0 -1
  560. package/dist/NotificationServicesPushController/types/firebase.d.mts.map +0 -1
  561. package/dist/NotificationServicesPushController/types/firebase.mjs +0 -2
  562. package/dist/NotificationServicesPushController/types/firebase.mjs.map +0 -1
  563. package/dist/NotificationServicesPushController/types/index.cjs +0 -3
  564. package/dist/NotificationServicesPushController/types/index.cjs.map +0 -1
  565. package/dist/NotificationServicesPushController/types/index.d.cts +0 -4
  566. package/dist/NotificationServicesPushController/types/index.d.cts.map +0 -1
  567. package/dist/NotificationServicesPushController/types/index.d.mts +0 -4
  568. package/dist/NotificationServicesPushController/types/index.d.mts.map +0 -1
  569. package/dist/NotificationServicesPushController/types/index.mjs +0 -2
  570. package/dist/NotificationServicesPushController/types/index.mjs.map +0 -1
  571. package/dist/NotificationServicesPushController/types/push-analytics.cjs +0 -5
  572. package/dist/NotificationServicesPushController/types/push-analytics.cjs.map +0 -1
  573. package/dist/NotificationServicesPushController/types/push-analytics.d.cts.map +0 -1
  574. package/dist/NotificationServicesPushController/types/push-analytics.d.mts +0 -18
  575. package/dist/NotificationServicesPushController/types/push-analytics.d.mts.map +0 -1
  576. package/dist/NotificationServicesPushController/types/push-analytics.mjs.map +0 -1
  577. package/dist/NotificationServicesPushController/types/push-service-interface.cjs +0 -3
  578. package/dist/NotificationServicesPushController/types/push-service-interface.cjs.map +0 -1
  579. package/dist/NotificationServicesPushController/types/push-service-interface.d.cts.map +0 -1
  580. package/dist/NotificationServicesPushController/types/push-service-interface.d.mts +0 -30
  581. package/dist/NotificationServicesPushController/types/push-service-interface.d.mts.map +0 -1
  582. package/dist/NotificationServicesPushController/types/push-service-interface.mjs +0 -2
  583. package/dist/NotificationServicesPushController/types/push-service-interface.mjs.map +0 -1
  584. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs +0 -84
  585. package/dist/NotificationServicesPushController/utils/get-notification-data.cjs.map +0 -1
  586. package/dist/NotificationServicesPushController/utils/get-notification-data.d.cts.map +0 -1
  587. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts +0 -42
  588. package/dist/NotificationServicesPushController/utils/get-notification-data.d.mts.map +0 -1
  589. package/dist/NotificationServicesPushController/utils/get-notification-data.mjs.map +0 -1
  590. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs +0 -171
  591. package/dist/NotificationServicesPushController/utils/get-notification-message.cjs.map +0 -1
  592. package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts +0 -62
  593. package/dist/NotificationServicesPushController/utils/get-notification-message.d.cts.map +0 -1
  594. package/dist/NotificationServicesPushController/utils/get-notification-message.d.mts.map +0 -1
  595. package/dist/NotificationServicesPushController/utils/get-notification-message.mjs.map +0 -1
  596. package/dist/NotificationServicesPushController/utils/index.cjs +0 -20
  597. package/dist/NotificationServicesPushController/utils/index.cjs.map +0 -1
  598. package/dist/NotificationServicesPushController/utils/index.d.cts +0 -4
  599. package/dist/NotificationServicesPushController/utils/index.d.cts.map +0 -1
  600. package/dist/NotificationServicesPushController/utils/index.d.mts +0 -4
  601. package/dist/NotificationServicesPushController/utils/index.d.mts.map +0 -1
  602. package/dist/NotificationServicesPushController/utils/index.mjs +0 -4
  603. package/dist/NotificationServicesPushController/utils/index.mjs.map +0 -1
  604. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.cjs +0 -26
  605. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.cjs.map +0 -1
  606. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.cts.map +0 -1
  607. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.mts +0 -12
  608. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.d.mts.map +0 -1
  609. package/dist/NotificationServicesPushController/utils/to-push-analytics-payload.mjs.map +0 -1
  610. package/dist/NotificationServicesPushController/web/index.cjs +0 -8
  611. package/dist/NotificationServicesPushController/web/index.cjs.map +0 -1
  612. package/dist/NotificationServicesPushController/web/index.d.cts +0 -2
  613. package/dist/NotificationServicesPushController/web/index.d.cts.map +0 -1
  614. package/dist/NotificationServicesPushController/web/index.d.mts +0 -2
  615. package/dist/NotificationServicesPushController/web/index.d.mts.map +0 -1
  616. package/dist/NotificationServicesPushController/web/index.mjs +0 -2
  617. package/dist/NotificationServicesPushController/web/index.mjs.map +0 -1
  618. package/dist/NotificationServicesPushController/web/push-utils.cjs +0 -169
  619. package/dist/NotificationServicesPushController/web/push-utils.cjs.map +0 -1
  620. package/dist/NotificationServicesPushController/web/push-utils.d.cts.map +0 -1
  621. package/dist/NotificationServicesPushController/web/push-utils.d.mts +0 -37
  622. package/dist/NotificationServicesPushController/web/push-utils.d.mts.map +0 -1
  623. package/dist/NotificationServicesPushController/web/push-utils.mjs.map +0 -1
  624. package/dist/index.cjs +0 -34
  625. package/dist/index.cjs.map +0 -1
  626. package/dist/index.d.cts +0 -4
  627. package/dist/index.d.cts.map +0 -1
  628. package/dist/index.d.mts +0 -4
  629. package/dist/index.d.mts.map +0 -1
  630. package/dist/index.mjs +0 -4
  631. package/dist/index.mjs.map +0 -1
  632. package/dist/shared/index.cjs +0 -20
  633. package/dist/shared/index.cjs.map +0 -1
  634. package/dist/shared/index.d.cts +0 -4
  635. package/dist/shared/index.d.cts.map +0 -1
  636. package/dist/shared/index.d.mts +0 -4
  637. package/dist/shared/index.d.mts.map +0 -1
  638. package/dist/shared/index.mjs +0 -4
  639. package/dist/shared/index.mjs.map +0 -1
  640. package/dist/shared/is-onchain-notification.cjs +0 -15
  641. package/dist/shared/is-onchain-notification.cjs.map +0 -1
  642. package/dist/shared/is-onchain-notification.d.cts.map +0 -1
  643. package/dist/shared/is-onchain-notification.d.mts +0 -9
  644. package/dist/shared/is-onchain-notification.d.mts.map +0 -1
  645. package/dist/shared/is-onchain-notification.mjs.map +0 -1
  646. package/dist/shared/notification-api-type-guards.cjs +0 -24
  647. package/dist/shared/notification-api-type-guards.cjs.map +0 -1
  648. package/dist/shared/notification-api-type-guards.d.cts +0 -16
  649. package/dist/shared/notification-api-type-guards.d.cts.map +0 -1
  650. package/dist/shared/notification-api-type-guards.d.mts.map +0 -1
  651. package/dist/shared/notification-api-type-guards.mjs.map +0 -1
  652. package/dist/shared/to-raw-notification.cjs +0 -30
  653. package/dist/shared/to-raw-notification.cjs.map +0 -1
  654. package/dist/shared/to-raw-notification.d.cts.map +0 -1
  655. package/dist/shared/to-raw-notification.d.mts +0 -11
  656. package/dist/shared/to-raw-notification.d.mts.map +0 -1
  657. package/dist/shared/to-raw-notification.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Changed
11
+
12
+ - Bump `uuid` from `^8.3.2` to `^9.0.1` ([#10117](https://github.com/MetaMask/core/pull/10117))
13
+
14
+ ## [28.0.0]
15
+
16
+ ### Changed
17
+
18
+ - **BREAKING:** Drop CommonJS support ([#9536](https://github.com/MetaMask/core/pull/9536))
19
+ - This package is now ESM-only, but can still be used in CommonJS projects via `require(esm)` in modern Node.js versions (22+), or dynamic imports in older Node.js versions.
20
+ - **BREAKING:** Bump minimum Node.js version to 22 ([#9976](https://github.com/MetaMask/core/pull/9976))
21
+ - **BREAKING:** Bump TypeScript target to ES2022 ([#10019](https://github.com/MetaMask/core/pull/10019))
22
+ - This package now ships ES2022 code, requiring a compatible modern environment or bundler configuration to consume.
23
+ - Bump `@metamask/authenticated-user-storage` from `^3.0.2` to `^4.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
24
+ - Bump `@metamask/base-controller` from `^9.1.0` to `^10.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
25
+ - Bump `@metamask/controller-utils` from `^12.3.0` to `^13.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
26
+ - Bump `@metamask/keyring-controller` from `^27.1.1` to `^28.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
27
+ - Bump `@metamask/messenger` from `^2.0.0` to `^3.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
28
+ - Bump `@metamask/profile-sync-controller` from `^30.0.0` to `^31.0.0` ([#10160](https://github.com/MetaMask/core/pull/10160))
29
+
10
30
  ### Fixed
11
31
 
12
32
  - Leave existing push registration in place when the keyring has no accounts yet ([#10143](https://github.com/MetaMask/core/pull/10143))
@@ -897,7 +917,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
897
917
 
898
918
  - Initial release
899
919
 
900
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@27.0.2...HEAD
920
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@28.0.0...HEAD
921
+ [28.0.0]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@27.0.2...@metamask/notification-services-controller@28.0.0
901
922
  [27.0.2]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@27.0.1...@metamask/notification-services-controller@27.0.2
902
923
  [27.0.1]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@27.0.0...@metamask/notification-services-controller@27.0.1
903
924
  [27.0.0]: https://github.com/MetaMask/core/compare/@metamask/notification-services-controller@26.0.1...@metamask/notification-services-controller@27.0.0
@@ -2,7 +2,7 @@
2
2
  * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
- import type { NotificationServicesController } from "./NotificationServicesController.mjs";
5
+ import type { NotificationServicesController } from './NotificationServicesController.js';
6
6
  export type NotificationServicesControllerInitAction = {
7
7
  type: `NotificationServicesController:init`;
8
8
  handler: NotificationServicesController['init'];
@@ -203,4 +203,4 @@ export type NotificationServicesControllerSendPerpPlaceOrderNotificationAction =
203
203
  * Union of all NotificationServicesController action types.
204
204
  */
205
205
  export type NotificationServicesControllerMethodActions = NotificationServicesControllerInitAction | NotificationServicesControllerEnablePushNotificationsAction | NotificationServicesControllerDisablePushNotificationsAction | NotificationServicesControllerCheckAccountsPresenceAction | NotificationServicesControllerSetFeatureAnnouncementsEnabledAction | NotificationServicesControllerCreateOnChainTriggersAction | NotificationServicesControllerEnableMetamaskNotificationsAction | NotificationServicesControllerDisableNotificationServicesAction | NotificationServicesControllerDisableAccountsAction | NotificationServicesControllerEnableAccountsAction | NotificationServicesControllerFetchAndUpdateMetamaskNotificationsAction | NotificationServicesControllerGetNotificationsByTypeAction | NotificationServicesControllerDeleteNotificationByIdAction | NotificationServicesControllerDeleteNotificationsByIdAction | NotificationServicesControllerMarkMetamaskNotificationsAsReadAction | NotificationServicesControllerUpdateMetamaskNotificationsListAction | NotificationServicesControllerSendPerpPlaceOrderNotificationAction;
206
- //# sourceMappingURL=NotificationServicesController-method-action-types.d.mts.map
206
+ //# sourceMappingURL=NotificationServicesController-method-action-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationServicesController-method-action-types.d.ts","sourceRoot":"","sources":["../../src/NotificationServicesController/NotificationServicesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,qCAAqC,CAAC;IAC5C,OAAO,EAAE,8BAA8B,CAAC,MAAM,CAAC,CAAC;CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2DAA2D,GAAG;IACxE,IAAI,EAAE,wDAAwD,CAAC;IAC/D,OAAO,EAAE,8BAA8B,CAAC,yBAAyB,CAAC,CAAC;CACpE,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG;IACzE,IAAI,EAAE,yDAAyD,CAAC;IAChE,OAAO,EAAE,8BAA8B,CAAC,0BAA0B,CAAC,CAAC;CACrE,CAAC;AAEF,MAAM,MAAM,yDAAyD,GAAG;IACtE,IAAI,EAAE,sDAAsD,CAAC;IAC7D,OAAO,EAAE,8BAA8B,CAAC,uBAAuB,CAAC,CAAC;CAClE,CAAC;AAEF;;;;;;;;GAQG;A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MAAM,0DAA0D,GAAG;IACvE,IAAI,EAAE,uDAAuD,CAAC;IAC9D,OAAO,EAAE,8BAA8B,CAAC,wBAAwB,CAAC,CAAC;CACnE,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,2DAA2D,GAAG;IACxE,IAAI,EAAE,wDAAwD,CAAC;IAC/D,OAAO,EAAE,8BAA8B,CAAC,yBAAyB,CAAC,CAAC;CACpE,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,mEAAmE,GAC7E;IACE,IAAI,EAAE,gEAAgE,CAAC;IACvE,OAAO,EAAE,8BAA8B,CAAC,iCAAiC,CAAC,CAAC;CAC5E,CAAC;AAEJ;;;;;;GAMG;AACH,MAAM,MAAM,mEAAmE,GAC7E;IACE,IAAI,EAAE,gEAAgE,CAAC;IACvE,OAAO,EAAE,8BAA8B,CAAC,iCAAiC,CAAC,CAAC;CAC5E,CAAC;AAEJ;;;;;GAKG;AACH,MAAM,MAAM,kEAAkE,GAC5E;IACE,IAAI,EAAE,+DAA+D,CAAC;IACtE,OAAO,EAAE,8BAA8B,CAAC,gCAAgC,CAAC,CAAC;CAC3E,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,2CAA2C,GACnD,wCAAwC,GACxC,2DAA2D,GAC3D,4DAA4D,GAC5D,yDAAyD,GACzD,kEAAkE,GAClE,yDAAyD,GACzD,+DAA+D,GAC/D,+DAA+D,GAC/D,mDAAmD,GACnD,kDAAkD,GAClD,uEAAuE,GACvE,0DAA0D,GAC1D,0DAA0D,GAC1D,2DAA2D,GAC3D,mEAAmE,GACnE,mEAAmE,GACnE,kEAAkE,CAAC"}
@@ -3,4 +3,4 @@
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
6
- //# sourceMappingURL=NotificationServicesController-method-action-types.mjs.map
6
+ //# sourceMappingURL=NotificationServicesController-method-action-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationServicesController-method-action-types.js","sourceRoot":"","sources":["../../src/NotificationServicesController/NotificationServicesController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { NotificationServicesController } from './NotificationServicesController.js';\n\nexport type NotificationServicesControllerInitAction = {\n type: `NotificationServicesController:init`;\n handler: NotificationServicesController['init'];\n};\n\n/**\n * Public method to expose enabling push notifications\n */\nexport type NotificationServicesControllerEnablePushNotificationsAction = {\n type: `NotificationServicesController:enablePushNotifications`;\n handler: NotificationServicesController['enablePushNotifications'];\n};\n\n/**\n * Public method to expose disabling push notifications\n */\nexport type NotificationServicesControllerDisablePushNotificationsAction = {\n type: `NotificationServicesController:disablePushNotifications`;\n handler: NotificationServicesController['disablePushNotifications'];\n};\n\nexport type NotificationServicesControllerCheckAccountsPresenceAction = {\n type: `NotificationServicesController:checkAccountsPresence`;\n handler: NotificationServicesController['checkAccountsPresence'];\n};\n\n/**\n * Sets the enabled state of feature announcements.\n *\n * **Action** - used in the notification settings to enable/disable feature announcements.\n *\n * @param featureAnnouncementsEnabled - A boolean value indicating the desired enabled state of the feature announcements.\n * @async\n * @throws {Error} If fails to update\n */\nexport type NotificationServicesControllerSetFeatureAnnouncementsEnabledAction =\n {\n type: `NotificationServicesController:setFeatureAnnouncementsEnabled`;\n handler: NotificationServicesController['setFeatureAnnouncementsEnabled'];\n };\n\n/**\n * This creates/re-creates on-chain triggers defined in User Storage.\n *\n * **Action** - Used during Sign In / Enabling of notifications.\n *\n * Notification preferences are initialized only when\n * {@link AuthenticatedUserStorageService} has no stored preferences yet.\n * Existing preferences are left as-is.\n *\n * @param opts - optional options to mutate this functionality\n * @param opts.hasMarketingConsent - The user's marketing-consent flag.\n * Used only during initialization to seed marketing push notifications.\n * @param opts.productAnnouncementEnabled - The user's product-announcement flag.\n * Used only during initialization to seed marketing in-app notifications.\n * @param opts.registerPushNotifications - Whether to attempt FCM/device push registration.\n * @returns The updated or newly created user storage.\n * @throws {Error} Throws an error if unauthenticated or from other operations.\n */\nexport type NotificationServicesControllerCreateOnChainTriggersAction = {\n type: `NotificationServicesController:createOnChainTriggers`;\n handler: NotificationServicesController['createOnChainTriggers'];\n};\n\n/**\n * Enables all MetaMask notifications for the user.\n * This is identical flow when initializing notifications for the first time.\n *\n * @param opts - Optional options to mutate this functionality.\n * @throws {Error} If there is an error during the process of enabling notifications.\n */\nexport type NotificationServicesControllerEnableMetamaskNotificationsAction = {\n type: `NotificationServicesController:enableMetamaskNotifications`;\n handler: NotificationServicesController['enableMetamaskNotifications'];\n};\n\n/**\n * Disables all MetaMask notifications for the user.\n * This method ensures that the user is authenticated, retrieves all linked accounts,\n * and disables on-chain triggers for each account. It also sets the global notification\n * settings for MetaMask, feature announcements to false.\n *\n * @throws {Error} If the user is not authenticated or if there is an error during the process.\n */\nexport type NotificationServicesControllerDisableNotificationServicesAction = {\n type: `NotificationServicesController:disableNotificationServices`;\n handler: NotificationServicesController['disableNotificationServices'];\n};\n\n/**\n * Deletes on-chain triggers associated with a specific account/s.\n * This method performs several key operations:\n * 1. Validates Auth\n * 2. Deletes accounts\n * (note) We do not need to look through push notifications as we've deleted triggers\n *\n * **Action** - When a user disables notifications for a given account in settings.\n *\n * @param accounts - The account for which on-chain triggers are to be deleted.\n * @returns A promise that resolves to void or an object containing a success message.\n * @throws {Error} Throws an error if unauthenticated or from other operations.\n */\nexport type NotificationServicesControllerDisableAccountsAction = {\n type: `NotificationServicesController:disableAccounts`;\n handler: NotificationServicesController['disableAccounts'];\n};\n\n/**\n * Updates/Creates on-chain triggers for a specific account.\n *\n * This method performs several key operations:\n * 1. Validates Auth & Storage\n * 2. Finds and creates any missing triggers associated with the account\n * 3. Enables any related push notifications\n * 4. Updates Storage to reflect new state.\n *\n * **Action** - When a user enables notifications for an account\n *\n * @param accounts - List of accounts you want to update.\n * @returns A promise that resolves to the updated user storage.\n * @throws {Error} Throws an error if unauthenticated or from other operations.\n */\nexport type NotificationServicesControllerEnableAccountsAction = {\n type: `NotificationServicesController:enableAccounts`;\n handler: NotificationServicesController['enableAccounts'];\n};\n\n/**\n * Fetches the list of metamask notifications.\n * This includes OnChain notifications; Feature Announcements; and Snap Notifications.\n *\n * **Action** - When a user views the notification list page/dropdown\n *\n * @param previewToken - the preview token to use if needed\n * @returns A promise that resolves to the list of notifications.\n * @throws {Error} Throws an error if unauthenticated or from other operations.\n */\nexport type NotificationServicesControllerFetchAndUpdateMetamaskNotificationsAction =\n {\n type: `NotificationServicesController:fetchAndUpdateMetamaskNotifications`;\n handler: NotificationServicesController['fetchAndUpdateMetamaskNotifications'];\n };\n\n/**\n * Gets the specified type of notifications from state.\n *\n * @param type - The trigger type.\n * @returns An array of notifications of the passed in type.\n * @throws Throws an error if an invalid trigger type is passed.\n */\nexport type NotificationServicesControllerGetNotificationsByTypeAction = {\n type: `NotificationServicesController:getNotificationsByType`;\n handler: NotificationServicesController['getNotificationsByType'];\n};\n\n/**\n * Used to delete a notification by id.\n *\n * Note: This function should only be used for notifications that are stored\n * in this controller directly, currently only snaps notifications.\n *\n * @param id - The id of the notification to delete.\n */\nexport type NotificationServicesControllerDeleteNotificationByIdAction = {\n type: `NotificationServicesController:deleteNotificationById`;\n handler: NotificationServicesController['deleteNotificationById'];\n};\n\n/**\n * Used to batch delete notifications by id.\n *\n * Note: This function should only be used for notifications that are stored\n * in this controller directly, currently only snaps notifications.\n *\n * @param ids - The ids of the notifications to delete.\n */\nexport type NotificationServicesControllerDeleteNotificationsByIdAction = {\n type: `NotificationServicesController:deleteNotificationsById`;\n handler: NotificationServicesController['deleteNotificationsById'];\n};\n\n/**\n * Marks specified metamask notifications as read.\n *\n * @param notifications - An array of notifications to be marked as read. Each notification should include its type and read status.\n * @returns A promise that resolves when the operation is complete.\n */\nexport type NotificationServicesControllerMarkMetamaskNotificationsAsReadAction =\n {\n type: `NotificationServicesController:markMetamaskNotificationsAsRead`;\n handler: NotificationServicesController['markMetamaskNotificationsAsRead'];\n };\n\n/**\n * Updates the list of MetaMask notifications by adding a new notification at the beginning of the list.\n * This method ensures that the most recent notification is displayed first in the UI.\n *\n * @param notification - The new notification object to be added to the list.\n * @returns A promise that resolves when the notification list has been successfully updated.\n */\nexport type NotificationServicesControllerUpdateMetamaskNotificationsListAction =\n {\n type: `NotificationServicesController:updateMetamaskNotificationsList`;\n handler: NotificationServicesController['updateMetamaskNotificationsList'];\n };\n\n/**\n * Creates an perp order notification subscription.\n * Requires notifications and auth to be enabled to start receiving this notifications\n *\n * @param input perp input\n */\nexport type NotificationServicesControllerSendPerpPlaceOrderNotificationAction =\n {\n type: `NotificationServicesController:sendPerpPlaceOrderNotification`;\n handler: NotificationServicesController['sendPerpPlaceOrderNotification'];\n };\n\n/**\n * Union of all NotificationServicesController action types.\n */\nexport type NotificationServicesControllerMethodActions =\n | NotificationServicesControllerInitAction\n | NotificationServicesControllerEnablePushNotificationsAction\n | NotificationServicesControllerDisablePushNotificationsAction\n | NotificationServicesControllerCheckAccountsPresenceAction\n | NotificationServicesControllerSetFeatureAnnouncementsEnabledAction\n | NotificationServicesControllerCreateOnChainTriggersAction\n | NotificationServicesControllerEnableMetamaskNotificationsAction\n | NotificationServicesControllerDisableNotificationServicesAction\n | NotificationServicesControllerDisableAccountsAction\n | NotificationServicesControllerEnableAccountsAction\n | NotificationServicesControllerFetchAndUpdateMetamaskNotificationsAction\n | NotificationServicesControllerGetNotificationsByTypeAction\n | NotificationServicesControllerDeleteNotificationByIdAction\n | NotificationServicesControllerDeleteNotificationsByIdAction\n | NotificationServicesControllerMarkMetamaskNotificationsAsReadAction\n | NotificationServicesControllerUpdateMetamaskNotificationsListAction\n | NotificationServicesControllerSendPerpPlaceOrderNotificationAction;\n"]}
@@ -1,16 +1,16 @@
1
- import type { AuthenticatedUserStorageServiceGetNotificationPreferencesAction, AuthenticatedUserStorageServicePutNotificationPreferencesAction, PerpsPreference, SocialAIPreference } from "@metamask/authenticated-user-storage";
2
- import type { ControllerGetStateAction, ControllerStateChangeEvent } from "@metamask/base-controller";
3
- import { BaseController } from "@metamask/base-controller";
4
- import type { KeyringControllerStateChangeEvent, KeyringControllerGetStateAction, KeyringControllerLockEvent, KeyringControllerUnlockEvent } from "@metamask/keyring-controller";
5
- import type { Messenger } from "@metamask/messenger";
6
- import type { AuthenticationController } from "@metamask/profile-sync-controller";
7
- import type { NotificationServicesPushControllerStateChangeEvent, NotificationServicesPushControllerOnNewNotificationEvent } from "../NotificationServicesPushController/index.cjs";
8
- import type { NotificationServicesPushControllerMethodActions } from "../NotificationServicesPushController/NotificationServicesPushController-method-action-types.cjs";
9
- import { TRIGGER_TYPES } from "./constants/notification-schema.cjs";
10
- import type { NotificationServicesControllerMethodActions } from "./NotificationServicesController-method-action-types.cjs";
11
- import type { ENV } from "./services/api-notifications.cjs";
12
- import type { INotification, MarkAsReadNotificationsParam } from "./types/notification/notification.cjs";
13
- import type { OrderInput } from "./types/perps/index.cjs";
1
+ import type { AuthenticatedUserStorageServiceGetNotificationPreferencesAction, AuthenticatedUserStorageServicePutNotificationPreferencesAction, PerpsPreference, SocialAIPreference } from '@metamask/authenticated-user-storage';
2
+ import type { ControllerGetStateAction, ControllerStateChangeEvent } from '@metamask/base-controller';
3
+ import { BaseController } from '@metamask/base-controller';
4
+ import type { KeyringControllerStateChangeEvent, KeyringControllerGetStateAction, KeyringControllerLockEvent, KeyringControllerUnlockEvent } from '@metamask/keyring-controller';
5
+ import type { Messenger } from '@metamask/messenger';
6
+ import type { AuthenticationController } from '@metamask/profile-sync-controller';
7
+ import type { NotificationServicesPushControllerStateChangeEvent, NotificationServicesPushControllerOnNewNotificationEvent } from '../NotificationServicesPushController/index.js';
8
+ import type { NotificationServicesPushControllerMethodActions } from '../NotificationServicesPushController/NotificationServicesPushController-method-action-types.js';
9
+ import { TRIGGER_TYPES } from './constants/notification-schema.js';
10
+ import type { NotificationServicesControllerMethodActions } from './NotificationServicesController-method-action-types.js';
11
+ import type { ENV } from './services/api-notifications.js';
12
+ import type { INotification, MarkAsReadNotificationsParam } from './types/notification/notification.js';
13
+ import type { OrderInput } from './types/perps/index.js';
14
14
  declare const controllerName = "NotificationServicesController";
15
15
  export declare const ACCOUNTS_UPDATE_DEBOUNCE_TIME_MS = 1000;
16
16
  /**
@@ -96,7 +96,7 @@ export declare const DEFAULT_PERPS_PREFERENCES: PerpsPreference;
96
96
  * notification preferences are initialized for the first time.
97
97
  */
98
98
  export declare const DEFAULT_SOCIAL_AI_PREFERENCES: Required<SocialAIPreference>;
99
- export { DEFAULT_AGENTIC_CLI_PREFERENCES, DEFAULT_PRICE_ALERT_PREFERENCES, } from "@metamask/authenticated-user-storage";
99
+ export { DEFAULT_AGENTIC_CLI_PREFERENCES, DEFAULT_PRICE_ALERT_PREFERENCES, } from '@metamask/authenticated-user-storage';
100
100
  export type NotificationServicesControllerGetStateAction = ControllerGetStateAction<typeof controllerName, NotificationServicesControllerState>;
101
101
  export type Actions = NotificationServicesControllerGetStateAction | NotificationServicesControllerMethodActions;
102
102
  type AllowedActions = KeyringControllerGetStateAction | AuthenticationController.AuthenticationControllerGetBearerTokenAction | AuthenticationController.AuthenticationControllerIsSignedInAction | AuthenticationController.AuthenticationControllerPerformSignInAction | AuthenticatedUserStorageServiceGetNotificationPreferencesAction | AuthenticatedUserStorageServicePutNotificationPreferencesAction | NotificationServicesPushControllerMethodActions;
@@ -289,4 +289,4 @@ export declare class NotificationServicesController extends BaseController<typeo
289
289
  */
290
290
  sendPerpPlaceOrderNotification(input: OrderInput): Promise<void>;
291
291
  }
292
- //# sourceMappingURL=NotificationServicesController.d.cts.map
292
+ //# sourceMappingURL=NotificationServicesController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationServicesController.d.ts","sourceRoot":"","sources":["../../src/NotificationServicesController/NotificationServicesController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+DAA+D,EAC/D,+DAA+D,EAE/D,eAAe,EACf,kBAAkB,EACnB,MAAM,sCAAsC,CAAC;AAK9C,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAE3B,M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