@headless-lms/server 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +5 -0
  2. package/dist/app/community-mail.d.ts +24 -0
  3. package/dist/app/community-mail.js +92 -0
  4. package/dist/app/community-mail.js.map +1 -0
  5. package/dist/app/container.d.ts +40 -19
  6. package/dist/app/container.js +294 -45
  7. package/dist/app/container.js.map +1 -1
  8. package/dist/app/mcp-endpoints.d.ts +13 -0
  9. package/dist/app/mcp-endpoints.js +25 -0
  10. package/dist/app/mcp-endpoints.js.map +1 -0
  11. package/dist/app/notification-channels.d.ts +47 -0
  12. package/dist/app/notification-channels.js +174 -0
  13. package/dist/app/notification-channels.js.map +1 -0
  14. package/dist/app/notification-reads.d.ts +23 -0
  15. package/dist/app/notification-reads.js +95 -0
  16. package/dist/app/notification-reads.js.map +1 -0
  17. package/dist/http/config.d.ts +2 -1
  18. package/dist/http/errors.d.ts +15 -0
  19. package/dist/http/errors.js +162 -0
  20. package/dist/http/errors.js.map +1 -0
  21. package/dist/http/mcp/catalogue.d.ts +37 -0
  22. package/dist/http/mcp/catalogue.js +69 -0
  23. package/dist/http/mcp/catalogue.js.map +1 -0
  24. package/dist/http/mcp/challenge.d.ts +7 -0
  25. package/dist/http/mcp/challenge.js +35 -0
  26. package/dist/http/mcp/challenge.js.map +1 -0
  27. package/dist/http/mcp/input-schema.d.ts +7 -0
  28. package/dist/http/mcp/input-schema.js +28 -0
  29. package/dist/http/mcp/input-schema.js.map +1 -0
  30. package/dist/http/mcp/route.d.ts +8 -0
  31. package/dist/http/mcp/route.js +75 -0
  32. package/dist/http/mcp/route.js.map +1 -0
  33. package/dist/http/mcp/server.d.ts +8 -0
  34. package/dist/http/mcp/server.js +31 -0
  35. package/dist/http/mcp/server.js.map +1 -0
  36. package/dist/http/mcp/test-support.d.ts +55 -0
  37. package/dist/http/mcp/test-support.js +151 -0
  38. package/dist/http/mcp/test-support.js.map +1 -0
  39. package/dist/http/mcp/tool.d.ts +48 -0
  40. package/dist/http/mcp/tool.js +58 -0
  41. package/dist/http/mcp/tool.js.map +1 -0
  42. package/dist/http/mcp/tools/automations.d.ts +6 -0
  43. package/dist/http/mcp/tools/automations.js +120 -0
  44. package/dist/http/mcp/tools/automations.js.map +1 -0
  45. package/dist/http/mcp/tools/catalog.d.ts +6 -0
  46. package/dist/http/mcp/tools/catalog.js +200 -0
  47. package/dist/http/mcp/tools/catalog.js.map +1 -0
  48. package/dist/http/mcp/tools/comments.d.ts +6 -0
  49. package/dist/http/mcp/tools/comments.js +70 -0
  50. package/dist/http/mcp/tools/comments.js.map +1 -0
  51. package/dist/http/mcp/tools/communities.d.ts +6 -0
  52. package/dist/http/mcp/tools/communities.js +175 -0
  53. package/dist/http/mcp/tools/communities.js.map +1 -0
  54. package/dist/http/mcp/tools/community-members.d.ts +6 -0
  55. package/dist/http/mcp/tools/community-members.js +89 -0
  56. package/dist/http/mcp/tools/community-members.js.map +1 -0
  57. package/dist/http/mcp/tools/community-moderation.d.ts +6 -0
  58. package/dist/http/mcp/tools/community-moderation.js +144 -0
  59. package/dist/http/mcp/tools/community-moderation.js.map +1 -0
  60. package/dist/http/mcp/tools/courses.d.ts +6 -0
  61. package/dist/http/mcp/tools/courses.js +121 -0
  62. package/dist/http/mcp/tools/courses.js.map +1 -0
  63. package/dist/http/mcp/tools/index.d.ts +6 -0
  64. package/dist/http/mcp/tools/index.js +23 -0
  65. package/dist/http/mcp/tools/index.js.map +1 -0
  66. package/dist/http/mcp/tools/people.d.ts +6 -0
  67. package/dist/http/mcp/tools/people.js +145 -0
  68. package/dist/http/mcp/tools/people.js.map +1 -0
  69. package/dist/http/plugins/auth.js +13 -5
  70. package/dist/http/plugins/auth.js.map +1 -1
  71. package/dist/http/plugins/error-handler.d.ts +2 -1
  72. package/dist/http/plugins/error-handler.js +51 -65
  73. package/dist/http/plugins/error-handler.js.map +1 -1
  74. package/dist/http/plugins/openapi.js +49 -2
  75. package/dist/http/plugins/openapi.js.map +1 -1
  76. package/dist/http/routes/access.d.ts +7 -0
  77. package/dist/http/routes/access.js +140 -0
  78. package/dist/http/routes/access.js.map +1 -0
  79. package/dist/http/routes/activities.js +68 -23
  80. package/dist/http/routes/activities.js.map +1 -1
  81. package/dist/http/routes/assets.js +60 -55
  82. package/dist/http/routes/assets.js.map +1 -1
  83. package/dist/http/routes/automations.js +44 -24
  84. package/dist/http/routes/automations.js.map +1 -1
  85. package/dist/http/routes/bundles.js +29 -18
  86. package/dist/http/routes/bundles.js.map +1 -1
  87. package/dist/http/routes/communities.d.ts +7 -0
  88. package/dist/http/routes/communities.js +522 -0
  89. package/dist/http/routes/communities.js.map +1 -0
  90. package/dist/http/routes/community-moderation.d.ts +7 -0
  91. package/dist/http/routes/community-moderation.js +425 -0
  92. package/dist/http/routes/community-moderation.js.map +1 -0
  93. package/dist/http/routes/course-analytics.js +9 -7
  94. package/dist/http/routes/course-analytics.js.map +1 -1
  95. package/dist/http/routes/courses.js +30 -15
  96. package/dist/http/routes/courses.js.map +1 -1
  97. package/dist/http/routes/dashboard.js +15 -6
  98. package/dist/http/routes/dashboard.js.map +1 -1
  99. package/dist/http/routes/discussion.js +34 -26
  100. package/dist/http/routes/discussion.js.map +1 -1
  101. package/dist/http/routes/downloads.js +48 -30
  102. package/dist/http/routes/downloads.js.map +1 -1
  103. package/dist/http/routes/entitlements.js +16 -7
  104. package/dist/http/routes/entitlements.js.map +1 -1
  105. package/dist/http/routes/integrations.js +38 -41
  106. package/dist/http/routes/integrations.js.map +1 -1
  107. package/dist/http/routes/member/actor.d.ts +14 -0
  108. package/dist/http/routes/member/actor.js +11 -0
  109. package/dist/http/routes/member/actor.js.map +1 -0
  110. package/dist/http/routes/member/assets.d.ts +7 -0
  111. package/dist/http/routes/member/assets.js +79 -0
  112. package/dist/http/routes/member/assets.js.map +1 -0
  113. package/dist/http/routes/member/chats.d.ts +7 -0
  114. package/dist/http/routes/member/chats.js +435 -0
  115. package/dist/http/routes/member/chats.js.map +1 -0
  116. package/dist/http/routes/member/comments.d.ts +7 -0
  117. package/dist/http/routes/member/comments.js +187 -0
  118. package/dist/http/routes/member/comments.js.map +1 -0
  119. package/dist/http/routes/member/community.d.ts +7 -0
  120. package/dist/http/routes/member/community.js +312 -0
  121. package/dist/http/routes/member/community.js.map +1 -0
  122. package/dist/http/routes/member/courses.d.ts +7 -0
  123. package/dist/http/routes/member/courses.js +101 -0
  124. package/dist/http/routes/member/courses.js.map +1 -0
  125. package/dist/http/routes/member/devices.d.ts +7 -0
  126. package/dist/http/routes/member/devices.js +98 -0
  127. package/dist/http/routes/member/devices.js.map +1 -0
  128. package/dist/http/routes/member/downloads.d.ts +7 -0
  129. package/dist/http/routes/member/downloads.js +56 -0
  130. package/dist/http/routes/member/downloads.js.map +1 -0
  131. package/dist/http/routes/member/files.d.ts +7 -0
  132. package/dist/http/routes/member/files.js +184 -0
  133. package/dist/http/routes/member/files.js.map +1 -0
  134. package/dist/http/routes/member/index.d.ts +7 -0
  135. package/dist/http/routes/member/index.js +35 -0
  136. package/dist/http/routes/member/index.js.map +1 -0
  137. package/dist/http/routes/member/notification-settings.d.ts +7 -0
  138. package/dist/http/routes/member/notification-settings.js +108 -0
  139. package/dist/http/routes/member/notification-settings.js.map +1 -0
  140. package/dist/http/routes/member/notifications.d.ts +7 -0
  141. package/dist/http/routes/member/notifications.js +125 -0
  142. package/dist/http/routes/member/notifications.js.map +1 -0
  143. package/dist/http/routes/member/org.d.ts +7 -0
  144. package/dist/http/routes/member/org.js +56 -0
  145. package/dist/http/routes/member/org.js.map +1 -0
  146. package/dist/http/routes/member/posts.d.ts +7 -0
  147. package/dist/http/routes/member/posts.js +612 -0
  148. package/dist/http/routes/member/posts.js.map +1 -0
  149. package/dist/http/routes/member/profile.d.ts +7 -0
  150. package/dist/http/routes/member/profile.js +48 -0
  151. package/dist/http/routes/member/profile.js.map +1 -0
  152. package/dist/http/routes/member/progress.d.ts +7 -0
  153. package/dist/http/routes/member/progress.js +60 -0
  154. package/dist/http/routes/member/progress.js.map +1 -0
  155. package/dist/http/routes/organizations.js +171 -25
  156. package/dist/http/routes/organizations.js.map +1 -1
  157. package/dist/http/routes/students.js +32 -47
  158. package/dist/http/routes/students.js.map +1 -1
  159. package/dist/http/routes/webhooks.js +26 -18
  160. package/dist/http/routes/webhooks.js.map +1 -1
  161. package/dist/http/routes.js +8 -2
  162. package/dist/http/routes.js.map +1 -1
  163. package/dist/http/schemas/access.d.ts +146 -0
  164. package/dist/http/schemas/access.js +36 -0
  165. package/dist/http/schemas/access.js.map +1 -0
  166. package/dist/http/schemas/activities.d.ts +3 -1
  167. package/dist/http/schemas/activities.js +4 -4
  168. package/dist/http/schemas/activities.js.map +1 -1
  169. package/dist/http/schemas/assets.d.ts +79 -80
  170. package/dist/http/schemas/assets.js +23 -13
  171. package/dist/http/schemas/assets.js.map +1 -1
  172. package/dist/http/schemas/automations.d.ts +6 -0
  173. package/dist/http/schemas/bundles.js +6 -6
  174. package/dist/http/schemas/bundles.js.map +1 -1
  175. package/dist/http/schemas/chats.d.ts +409 -0
  176. package/dist/http/schemas/chats.js +56 -0
  177. package/dist/http/schemas/chats.js.map +1 -0
  178. package/dist/http/schemas/community.d.ts +597 -0
  179. package/dist/http/schemas/community.js +132 -0
  180. package/dist/http/schemas/community.js.map +1 -0
  181. package/dist/http/schemas/content.d.ts +4 -2
  182. package/dist/http/schemas/content.js +11 -8
  183. package/dist/http/schemas/content.js.map +1 -1
  184. package/dist/http/schemas/discussion.d.ts +98 -14
  185. package/dist/http/schemas/discussion.js +25 -12
  186. package/dist/http/schemas/discussion.js.map +1 -1
  187. package/dist/http/schemas/downloads.d.ts +11 -5
  188. package/dist/http/schemas/downloads.js +14 -11
  189. package/dist/http/schemas/downloads.js.map +1 -1
  190. package/dist/http/schemas/entitlements.d.ts +6 -6
  191. package/dist/http/schemas/entitlements.js +6 -6
  192. package/dist/http/schemas/entitlements.js.map +1 -1
  193. package/dist/http/schemas/files.d.ts +45 -0
  194. package/dist/http/schemas/files.js +25 -0
  195. package/dist/http/schemas/files.js.map +1 -0
  196. package/dist/http/schemas/index.d.ts +15 -8
  197. package/dist/http/schemas/index.js +15 -8
  198. package/dist/http/schemas/integrations.d.ts +4 -4
  199. package/dist/http/schemas/invites.d.ts +4 -0
  200. package/dist/http/schemas/invites.js +1 -0
  201. package/dist/http/schemas/invites.js.map +1 -1
  202. package/dist/http/schemas/{learn.d.ts → member.d.ts} +31 -18
  203. package/dist/http/schemas/{learn.js → member.js} +17 -13
  204. package/dist/http/schemas/member.js.map +1 -0
  205. package/dist/http/schemas/members.d.ts +35 -2
  206. package/dist/http/schemas/members.js +17 -3
  207. package/dist/http/schemas/members.js.map +1 -1
  208. package/dist/http/schemas/notifications.d.ts +550 -0
  209. package/dist/http/schemas/notifications.js +164 -0
  210. package/dist/http/schemas/notifications.js.map +1 -0
  211. package/dist/http/schemas/posts.d.ts +350 -0
  212. package/dist/http/schemas/posts.js +47 -0
  213. package/dist/http/schemas/posts.js.map +1 -0
  214. package/dist/http/schemas/profile.d.ts +23 -0
  215. package/dist/http/schemas/profile.js +15 -0
  216. package/dist/http/schemas/profile.js.map +1 -0
  217. package/dist/http/schemas/shared.d.ts +32 -1
  218. package/dist/http/schemas/shared.js +20 -2
  219. package/dist/http/schemas/shared.js.map +1 -1
  220. package/dist/http/schemas/students.d.ts +1 -7
  221. package/dist/http/schemas/students.js +1 -7
  222. package/dist/http/schemas/students.js.map +1 -1
  223. package/dist/http/scope.d.ts +3 -1
  224. package/dist/http/scope.js +26 -4
  225. package/dist/http/scope.js.map +1 -1
  226. package/dist/http/server.js +6 -1
  227. package/dist/http/server.js.map +1 -1
  228. package/dist/http/web-bridge.d.ts +1 -1
  229. package/dist/http/web-bridge.js +2 -2
  230. package/dist/http/web-bridge.js.map +1 -1
  231. package/dist/http/well-known.d.ts +7 -0
  232. package/dist/http/well-known.js +22 -0
  233. package/dist/http/well-known.js.map +1 -0
  234. package/dist/index.d.ts +3 -1
  235. package/dist/index.js +4 -2
  236. package/dist/index.js.map +1 -1
  237. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +78 -0
  238. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js.map +1 -0
  239. package/dist/node_modules/.pnpm/@vitest_expect@2.1.9/node_modules/@vitest/expect/dist/index.js +1267 -0
  240. package/dist/node_modules/.pnpm/@vitest_expect@2.1.9/node_modules/@vitest/expect/dist/index.js.map +1 -0
  241. package/dist/node_modules/.pnpm/@vitest_pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.js +814 -0
  242. package/dist/node_modules/.pnpm/@vitest_pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
  243. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.js +43 -0
  244. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.js.map +1 -0
  245. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/index.js +527 -0
  246. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/index.js.map +1 -0
  247. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/utils.js +2 -0
  248. package/dist/node_modules/.pnpm/@vitest_snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.js +1737 -0
  249. package/dist/node_modules/.pnpm/@vitest_snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.js.map +1 -0
  250. package/dist/node_modules/.pnpm/@vitest_spy@2.1.9/node_modules/@vitest/spy/dist/index.js +137 -0
  251. package/dist/node_modules/.pnpm/@vitest_spy@2.1.9/node_modules/@vitest/spy/dist/index.js.map +1 -0
  252. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +118 -0
  253. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +1 -0
  254. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/diff.js +1222 -0
  255. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/diff.js.map +1 -0
  256. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/error.js +91 -0
  257. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/error.js.map +1 -0
  258. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/helpers.js +113 -0
  259. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
  260. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/index.js +449 -0
  261. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/index.js.map +1 -0
  262. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/source-map.js +163 -0
  263. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
  264. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3187 -0
  265. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js.map +1 -0
  266. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
  267. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +1 -0
  268. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
  269. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +1 -0
  270. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
  271. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +1 -0
  272. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
  273. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +1 -0
  274. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
  275. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +1 -0
  276. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
  277. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +1 -0
  278. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
  279. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +1 -0
  280. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
  281. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +1 -0
  282. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
  283. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +1 -0
  284. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
  285. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +1 -0
  286. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
  287. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +1 -0
  288. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
  289. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +1 -0
  290. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
  291. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +1 -0
  292. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
  293. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +1 -0
  294. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
  295. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +1 -0
  296. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
  297. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +1 -0
  298. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +24 -0
  299. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +1 -0
  300. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +9 -0
  301. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +1 -0
  302. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
  303. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +1 -0
  304. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
  305. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js.map +1 -0
  306. package/dist/node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.js +82 -0
  307. package/dist/node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.js.map +1 -0
  308. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +82 -0
  309. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +1 -0
  310. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js +8 -0
  311. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js.map +1 -0
  312. package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js +83 -0
  313. package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js.map +1 -0
  314. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +9 -0
  315. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js.map +1 -0
  316. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js +51 -0
  317. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/date.W2xKR2qe.js.map +1 -0
  318. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js +48 -0
  319. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/utils.C8RiOc4B.js.map +1 -0
  320. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/vi.DgezovHB.js +2426 -0
  321. package/dist/node_modules/.pnpm/vitest@2.1.9_@types_node@22.20.0_jsdom@25.0.1_lightningcss@1.32.0/node_modules/vitest/dist/chunks/vi.DgezovHB.js.map +1 -0
  322. package/dist/packages/server/package.js +6 -0
  323. package/dist/packages/server/package.js.map +1 -0
  324. package/package.json +9 -7
  325. package/dist/app/notifications.d.ts +0 -7
  326. package/dist/app/notifications.js +0 -26
  327. package/dist/app/notifications.js.map +0 -1
  328. package/dist/http/routes/learn/assets.d.ts +0 -8
  329. package/dist/http/routes/learn/assets.js +0 -32
  330. package/dist/http/routes/learn/assets.js.map +0 -1
  331. package/dist/http/routes/learn/comments.d.ts +0 -7
  332. package/dist/http/routes/learn/comments.js +0 -175
  333. package/dist/http/routes/learn/comments.js.map +0 -1
  334. package/dist/http/routes/learn/courses.d.ts +0 -7
  335. package/dist/http/routes/learn/courses.js +0 -98
  336. package/dist/http/routes/learn/courses.js.map +0 -1
  337. package/dist/http/routes/learn/downloads.d.ts +0 -7
  338. package/dist/http/routes/learn/downloads.js +0 -76
  339. package/dist/http/routes/learn/downloads.js.map +0 -1
  340. package/dist/http/routes/learn/index.d.ts +0 -7
  341. package/dist/http/routes/learn/index.js +0 -19
  342. package/dist/http/routes/learn/index.js.map +0 -1
  343. package/dist/http/routes/learn/org.d.ts +0 -7
  344. package/dist/http/routes/learn/org.js +0 -50
  345. package/dist/http/routes/learn/org.js.map +0 -1
  346. package/dist/http/routes/learn/progress.d.ts +0 -7
  347. package/dist/http/routes/learn/progress.js +0 -63
  348. package/dist/http/routes/learn/progress.js.map +0 -1
  349. package/dist/http/schemas/learn.js.map +0 -1
  350. package/dist/package.js +0 -6
  351. package/dist/package.js.map +0 -1
@@ -0,0 +1,550 @@
1
+ import { z } from "zod";
2
+ //#region src/http/schemas/notifications.d.ts
3
+ declare const NotificationIdParam: z.ZodObject<{
4
+ notificationId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ declare const NotificationFilterQuery: z.ZodObject<{
7
+ scope: z.ZodOptional<z.ZodEnum<{
8
+ org: "org";
9
+ community: "community";
10
+ }>>;
11
+ communityId: z.ZodOptional<z.ZodString>;
12
+ includeOrg: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
13
+ category: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>>;
14
+ reason: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodType<"moderator" | "subject" | "post_author" | "comment_author" | "message_author" | "follower" | "thread_participant" | "mentioned" | "participant" | "space_member" | "community_member" | "course_member" | "staff", string, z.core.$ZodTypeInternals<"moderator" | "subject" | "post_author" | "comment_author" | "message_author" | "follower" | "thread_participant" | "mentioned" | "participant" | "space_member" | "community_member" | "course_member" | "staff", string>>>>>;
15
+ type: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>>;
16
+ unread: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
17
+ }, z.core.$strict>;
18
+ declare const NotificationListQuery: z.ZodObject<{
19
+ page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
20
+ pageSize: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
21
+ scope: z.ZodOptional<z.ZodEnum<{
22
+ org: "org";
23
+ community: "community";
24
+ }>>;
25
+ communityId: z.ZodOptional<z.ZodString>;
26
+ includeOrg: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
27
+ category: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>>;
28
+ reason: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodType<"moderator" | "subject" | "post_author" | "comment_author" | "message_author" | "follower" | "thread_participant" | "mentioned" | "participant" | "space_member" | "community_member" | "course_member" | "staff", string, z.core.$ZodTypeInternals<"moderator" | "subject" | "post_author" | "comment_author" | "message_author" | "follower" | "thread_participant" | "mentioned" | "participant" | "space_member" | "community_member" | "course_member" | "staff", string>>>>>;
29
+ type: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>>>;
30
+ unread: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
31
+ }, z.core.$strict>;
32
+ declare const NotificationView: z.ZodObject<{
33
+ id: z.ZodString;
34
+ type: z.ZodString;
35
+ scope: z.ZodEnum<{
36
+ org: "org";
37
+ community: "community";
38
+ space: "space";
39
+ chat: "chat";
40
+ }>;
41
+ reasons: z.ZodArray<z.ZodEnum<{
42
+ moderator: "moderator";
43
+ subject: "subject";
44
+ post_author: "post_author";
45
+ comment_author: "comment_author";
46
+ message_author: "message_author";
47
+ follower: "follower";
48
+ thread_participant: "thread_participant";
49
+ mentioned: "mentioned";
50
+ participant: "participant";
51
+ space_member: "space_member";
52
+ community_member: "community_member";
53
+ course_member: "course_member";
54
+ staff: "staff";
55
+ }>>;
56
+ matchedReason: z.ZodEnum<{
57
+ moderator: "moderator";
58
+ subject: "subject";
59
+ post_author: "post_author";
60
+ comment_author: "comment_author";
61
+ message_author: "message_author";
62
+ follower: "follower";
63
+ thread_participant: "thread_participant";
64
+ mentioned: "mentioned";
65
+ participant: "participant";
66
+ space_member: "space_member";
67
+ community_member: "community_member";
68
+ course_member: "course_member";
69
+ staff: "staff";
70
+ }>;
71
+ category: z.ZodString;
72
+ display: z.ZodRecord<z.ZodString, z.ZodType<import("@headless-lms/core/types").JsonValue, unknown, z.core.$ZodTypeInternals<import("@headless-lms/core/types").JsonValue, unknown>>>;
73
+ community: z.ZodNullable<z.ZodObject<{
74
+ id: z.ZodString;
75
+ title: z.ZodString;
76
+ }, z.core.$strip>>;
77
+ space: z.ZodNullable<z.ZodObject<{
78
+ id: z.ZodString;
79
+ name: z.ZodString;
80
+ }, z.core.$strip>>;
81
+ actor: z.ZodNullable<z.ZodObject<{
82
+ orgUserId: z.ZodString;
83
+ name: z.ZodNullable<z.ZodString>;
84
+ imageUrl: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ subject: z.ZodNullable<z.ZodObject<{
87
+ type: z.ZodEnum<{
88
+ message: "message";
89
+ community: "community";
90
+ space: "space";
91
+ chat: "chat";
92
+ post: "post";
93
+ comment: "comment";
94
+ course: "course";
95
+ download: "download";
96
+ bundle: "bundle";
97
+ activity: "activity";
98
+ }>;
99
+ id: z.ZodString;
100
+ title: z.ZodOptional<z.ZodString>;
101
+ excerpt: z.ZodOptional<z.ZodString>;
102
+ }, z.core.$strip>>;
103
+ parent: z.ZodNullable<z.ZodObject<{
104
+ type: z.ZodEnum<{
105
+ message: "message";
106
+ community: "community";
107
+ space: "space";
108
+ chat: "chat";
109
+ post: "post";
110
+ comment: "comment";
111
+ course: "course";
112
+ download: "download";
113
+ bundle: "bundle";
114
+ activity: "activity";
115
+ }>;
116
+ id: z.ZodString;
117
+ title: z.ZodOptional<z.ZodString>;
118
+ excerpt: z.ZodOptional<z.ZodString>;
119
+ }, z.core.$strip>>;
120
+ createdAt: z.ZodCoercedDate<unknown>;
121
+ readAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
122
+ }, z.core.$strip>;
123
+ declare const NotificationsPage: z.ZodObject<{
124
+ rows: z.ZodArray<z.ZodObject<{
125
+ id: z.ZodString;
126
+ type: z.ZodString;
127
+ scope: z.ZodEnum<{
128
+ org: "org";
129
+ community: "community";
130
+ space: "space";
131
+ chat: "chat";
132
+ }>;
133
+ reasons: z.ZodArray<z.ZodEnum<{
134
+ moderator: "moderator";
135
+ subject: "subject";
136
+ post_author: "post_author";
137
+ comment_author: "comment_author";
138
+ message_author: "message_author";
139
+ follower: "follower";
140
+ thread_participant: "thread_participant";
141
+ mentioned: "mentioned";
142
+ participant: "participant";
143
+ space_member: "space_member";
144
+ community_member: "community_member";
145
+ course_member: "course_member";
146
+ staff: "staff";
147
+ }>>;
148
+ matchedReason: z.ZodEnum<{
149
+ moderator: "moderator";
150
+ subject: "subject";
151
+ post_author: "post_author";
152
+ comment_author: "comment_author";
153
+ message_author: "message_author";
154
+ follower: "follower";
155
+ thread_participant: "thread_participant";
156
+ mentioned: "mentioned";
157
+ participant: "participant";
158
+ space_member: "space_member";
159
+ community_member: "community_member";
160
+ course_member: "course_member";
161
+ staff: "staff";
162
+ }>;
163
+ category: z.ZodString;
164
+ display: z.ZodRecord<z.ZodString, z.ZodType<import("@headless-lms/core/types").JsonValue, unknown, z.core.$ZodTypeInternals<import("@headless-lms/core/types").JsonValue, unknown>>>;
165
+ community: z.ZodNullable<z.ZodObject<{
166
+ id: z.ZodString;
167
+ title: z.ZodString;
168
+ }, z.core.$strip>>;
169
+ space: z.ZodNullable<z.ZodObject<{
170
+ id: z.ZodString;
171
+ name: z.ZodString;
172
+ }, z.core.$strip>>;
173
+ actor: z.ZodNullable<z.ZodObject<{
174
+ orgUserId: z.ZodString;
175
+ name: z.ZodNullable<z.ZodString>;
176
+ imageUrl: z.ZodNullable<z.ZodString>;
177
+ }, z.core.$strip>>;
178
+ subject: z.ZodNullable<z.ZodObject<{
179
+ type: z.ZodEnum<{
180
+ message: "message";
181
+ community: "community";
182
+ space: "space";
183
+ chat: "chat";
184
+ post: "post";
185
+ comment: "comment";
186
+ course: "course";
187
+ download: "download";
188
+ bundle: "bundle";
189
+ activity: "activity";
190
+ }>;
191
+ id: z.ZodString;
192
+ title: z.ZodOptional<z.ZodString>;
193
+ excerpt: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>>;
195
+ parent: z.ZodNullable<z.ZodObject<{
196
+ type: z.ZodEnum<{
197
+ message: "message";
198
+ community: "community";
199
+ space: "space";
200
+ chat: "chat";
201
+ post: "post";
202
+ comment: "comment";
203
+ course: "course";
204
+ download: "download";
205
+ bundle: "bundle";
206
+ activity: "activity";
207
+ }>;
208
+ id: z.ZodString;
209
+ title: z.ZodOptional<z.ZodString>;
210
+ excerpt: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$strip>>;
212
+ createdAt: z.ZodCoercedDate<unknown>;
213
+ readAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
214
+ }, z.core.$strip>>;
215
+ total: z.ZodNumber;
216
+ page: z.ZodNumber;
217
+ pageSize: z.ZodNumber;
218
+ unreadCount: z.ZodNumber;
219
+ }, z.core.$strip>;
220
+ declare const NotificationUnreadCounts: z.ZodObject<{
221
+ org: z.ZodNumber;
222
+ communities: z.ZodArray<z.ZodObject<{
223
+ communityId: z.ZodString;
224
+ unread: z.ZodNumber;
225
+ }, z.core.$strip>>;
226
+ }, z.core.$strip>;
227
+ declare const NotificationCategory: z.ZodObject<{
228
+ key: z.ZodString;
229
+ covers: z.ZodArray<z.ZodObject<{
230
+ type: z.ZodString;
231
+ reasons: z.ZodArray<z.ZodEnum<{
232
+ moderator: "moderator";
233
+ subject: "subject";
234
+ post_author: "post_author";
235
+ comment_author: "comment_author";
236
+ message_author: "message_author";
237
+ follower: "follower";
238
+ thread_participant: "thread_participant";
239
+ mentioned: "mentioned";
240
+ participant: "participant";
241
+ space_member: "space_member";
242
+ community_member: "community_member";
243
+ course_member: "course_member";
244
+ staff: "staff";
245
+ }>>;
246
+ }, z.core.$strict>>;
247
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
248
+ default: z.ZodBoolean;
249
+ locked: z.ZodBoolean;
250
+ }, z.core.$strict>>;
251
+ perSpace: z.ZodOptional<z.ZodBoolean>;
252
+ spaceDefaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
253
+ }, z.core.$strict>;
254
+ declare const NotificationCategoryList: z.ZodObject<{
255
+ categories: z.ZodArray<z.ZodObject<{
256
+ key: z.ZodString;
257
+ covers: z.ZodArray<z.ZodObject<{
258
+ type: z.ZodString;
259
+ reasons: z.ZodArray<z.ZodEnum<{
260
+ moderator: "moderator";
261
+ subject: "subject";
262
+ post_author: "post_author";
263
+ comment_author: "comment_author";
264
+ message_author: "message_author";
265
+ follower: "follower";
266
+ thread_participant: "thread_participant";
267
+ mentioned: "mentioned";
268
+ participant: "participant";
269
+ space_member: "space_member";
270
+ community_member: "community_member";
271
+ course_member: "course_member";
272
+ staff: "staff";
273
+ }>>;
274
+ }, z.core.$strict>>;
275
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
276
+ default: z.ZodBoolean;
277
+ locked: z.ZodBoolean;
278
+ }, z.core.$strict>>;
279
+ perSpace: z.ZodOptional<z.ZodBoolean>;
280
+ spaceDefaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
281
+ }, z.core.$strict>>;
282
+ source: z.ZodEnum<{
283
+ default: "default";
284
+ stored: "stored";
285
+ }>;
286
+ }, z.core.$strip>;
287
+ declare const ReplaceNotificationCategories: z.ZodObject<{
288
+ categories: z.ZodArray<z.ZodObject<{
289
+ key: z.ZodString;
290
+ covers: z.ZodArray<z.ZodObject<{
291
+ type: z.ZodString;
292
+ reasons: z.ZodArray<z.ZodEnum<{
293
+ moderator: "moderator";
294
+ subject: "subject";
295
+ post_author: "post_author";
296
+ comment_author: "comment_author";
297
+ message_author: "message_author";
298
+ follower: "follower";
299
+ thread_participant: "thread_participant";
300
+ mentioned: "mentioned";
301
+ participant: "participant";
302
+ space_member: "space_member";
303
+ community_member: "community_member";
304
+ course_member: "course_member";
305
+ staff: "staff";
306
+ }>>;
307
+ }, z.core.$strict>>;
308
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
309
+ default: z.ZodBoolean;
310
+ locked: z.ZodBoolean;
311
+ }, z.core.$strict>>;
312
+ perSpace: z.ZodOptional<z.ZodBoolean>;
313
+ spaceDefaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
314
+ }, z.core.$strict>>;
315
+ }, z.core.$strict>;
316
+ declare const NotificationCategoryDefaults: z.ZodObject<{
317
+ categories: z.ZodArray<z.ZodObject<{
318
+ key: z.ZodString;
319
+ covers: z.ZodArray<z.ZodObject<{
320
+ type: z.ZodString;
321
+ reasons: z.ZodArray<z.ZodEnum<{
322
+ moderator: "moderator";
323
+ subject: "subject";
324
+ post_author: "post_author";
325
+ comment_author: "comment_author";
326
+ message_author: "message_author";
327
+ follower: "follower";
328
+ thread_participant: "thread_participant";
329
+ mentioned: "mentioned";
330
+ participant: "participant";
331
+ space_member: "space_member";
332
+ community_member: "community_member";
333
+ course_member: "course_member";
334
+ staff: "staff";
335
+ }>>;
336
+ }, z.core.$strict>>;
337
+ channels: z.ZodRecord<z.ZodString, z.ZodObject<{
338
+ default: z.ZodBoolean;
339
+ locked: z.ZodBoolean;
340
+ }, z.core.$strict>>;
341
+ perSpace: z.ZodOptional<z.ZodBoolean>;
342
+ spaceDefaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodBoolean>>>;
343
+ }, z.core.$strict>>;
344
+ }, z.core.$strip>;
345
+ declare const NotificationListScopeQuery: z.ZodObject<{
346
+ scope: z.ZodEnum<{
347
+ org: "org";
348
+ community: "community";
349
+ }>;
350
+ }, z.core.$strict>;
351
+ declare const NotificationTypeInfo: z.ZodObject<{
352
+ type: z.ZodString;
353
+ scopes: z.ZodArray<z.ZodEnum<{
354
+ org: "org";
355
+ community: "community";
356
+ space: "space";
357
+ chat: "chat";
358
+ }>>;
359
+ reasons: z.ZodArray<z.ZodEnum<{
360
+ moderator: "moderator";
361
+ subject: "subject";
362
+ post_author: "post_author";
363
+ comment_author: "comment_author";
364
+ message_author: "message_author";
365
+ follower: "follower";
366
+ thread_participant: "thread_participant";
367
+ mentioned: "mentioned";
368
+ participant: "participant";
369
+ space_member: "space_member";
370
+ community_member: "community_member";
371
+ course_member: "course_member";
372
+ staff: "staff";
373
+ }>>;
374
+ }, z.core.$strip>;
375
+ declare const NotificationTypeInfos: z.ZodArray<z.ZodObject<{
376
+ type: z.ZodString;
377
+ scopes: z.ZodArray<z.ZodEnum<{
378
+ org: "org";
379
+ community: "community";
380
+ space: "space";
381
+ chat: "chat";
382
+ }>>;
383
+ reasons: z.ZodArray<z.ZodEnum<{
384
+ moderator: "moderator";
385
+ subject: "subject";
386
+ post_author: "post_author";
387
+ comment_author: "comment_author";
388
+ message_author: "message_author";
389
+ follower: "follower";
390
+ thread_participant: "thread_participant";
391
+ mentioned: "mentioned";
392
+ participant: "participant";
393
+ space_member: "space_member";
394
+ community_member: "community_member";
395
+ course_member: "course_member";
396
+ staff: "staff";
397
+ }>>;
398
+ }, z.core.$strip>>;
399
+ declare const NotificationChannelInfos: z.ZodArray<z.ZodObject<{
400
+ channel: z.ZodString;
401
+ }, z.core.$strip>>;
402
+ declare const CommunityNotificationSettings: z.ZodObject<{
403
+ communityId: z.ZodString;
404
+ digest: z.ZodNullable<z.ZodObject<{
405
+ cadence: z.ZodEnum<{
406
+ daily: "daily";
407
+ weekly: "weekly";
408
+ }>;
409
+ weekday: z.ZodNumber;
410
+ hour: z.ZodNumber;
411
+ timeZone: z.ZodString;
412
+ }, z.core.$strict>>;
413
+ categories: z.ZodArray<z.ZodObject<{
414
+ key: z.ZodString;
415
+ perSpace: z.ZodBoolean;
416
+ channels: z.ZodArray<z.ZodObject<{
417
+ channel: z.ZodString;
418
+ enabled: z.ZodBoolean;
419
+ default: z.ZodBoolean;
420
+ source: z.ZodEnum<{
421
+ default: "default";
422
+ community: "community";
423
+ space: "space";
424
+ locked: "locked";
425
+ spaceDefault: "spaceDefault";
426
+ }>;
427
+ locked: z.ZodBoolean;
428
+ }, z.core.$strip>>;
429
+ spaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
430
+ spaceId: z.ZodString;
431
+ name: z.ZodString;
432
+ channels: z.ZodArray<z.ZodObject<{
433
+ channel: z.ZodString;
434
+ enabled: z.ZodBoolean;
435
+ default: z.ZodBoolean;
436
+ source: z.ZodEnum<{
437
+ default: "default";
438
+ community: "community";
439
+ space: "space";
440
+ locked: "locked";
441
+ spaceDefault: "spaceDefault";
442
+ }>;
443
+ locked: z.ZodBoolean;
444
+ }, z.core.$strip>>;
445
+ }, z.core.$strip>>>;
446
+ }, z.core.$strip>>;
447
+ }, z.core.$strip>;
448
+ declare const OrgNotificationSettings: z.ZodObject<{
449
+ categories: z.ZodArray<z.ZodObject<{
450
+ key: z.ZodString;
451
+ perSpace: z.ZodBoolean;
452
+ channels: z.ZodArray<z.ZodObject<{
453
+ channel: z.ZodString;
454
+ enabled: z.ZodBoolean;
455
+ default: z.ZodBoolean;
456
+ source: z.ZodEnum<{
457
+ default: "default";
458
+ community: "community";
459
+ space: "space";
460
+ locked: "locked";
461
+ spaceDefault: "spaceDefault";
462
+ }>;
463
+ locked: z.ZodBoolean;
464
+ }, z.core.$strip>>;
465
+ spaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
466
+ spaceId: z.ZodString;
467
+ name: z.ZodString;
468
+ channels: z.ZodArray<z.ZodObject<{
469
+ channel: z.ZodString;
470
+ enabled: z.ZodBoolean;
471
+ default: z.ZodBoolean;
472
+ source: z.ZodEnum<{
473
+ default: "default";
474
+ community: "community";
475
+ space: "space";
476
+ locked: "locked";
477
+ spaceDefault: "spaceDefault";
478
+ }>;
479
+ locked: z.ZodBoolean;
480
+ }, z.core.$strip>>;
481
+ }, z.core.$strip>>>;
482
+ }, z.core.$strip>>;
483
+ }, z.core.$strip>;
484
+ declare const PatchNotificationSettings: z.ZodObject<{
485
+ settings: z.ZodArray<z.ZodObject<{
486
+ category: z.ZodString;
487
+ spaceId: z.ZodOptional<z.ZodString>;
488
+ channel: z.ZodString;
489
+ enabled: z.ZodNullable<z.ZodBoolean>;
490
+ }, z.core.$strict>>;
491
+ }, z.core.$strict>;
492
+ declare const Device: z.ZodObject<{
493
+ id: z.ZodString;
494
+ provider: z.ZodEnum<{
495
+ apns: "apns";
496
+ fcm: "fcm";
497
+ webpush: "webpush";
498
+ }>;
499
+ token: z.ZodString;
500
+ p256dh: z.ZodNullable<z.ZodString>;
501
+ auth: z.ZodNullable<z.ZodString>;
502
+ appId: z.ZodNullable<z.ZodString>;
503
+ environment: z.ZodNullable<z.ZodEnum<{
504
+ production: "production";
505
+ sandbox: "sandbox";
506
+ }>>;
507
+ }, z.core.$strip>;
508
+ declare const DeviceList: z.ZodArray<z.ZodObject<{
509
+ lastSeenAt: z.ZodCoercedDate<unknown>;
510
+ id: z.ZodString;
511
+ provider: z.ZodEnum<{
512
+ apns: "apns";
513
+ fcm: "fcm";
514
+ webpush: "webpush";
515
+ }>;
516
+ token: z.ZodString;
517
+ p256dh: z.ZodNullable<z.ZodString>;
518
+ auth: z.ZodNullable<z.ZodString>;
519
+ appId: z.ZodNullable<z.ZodString>;
520
+ environment: z.ZodNullable<z.ZodEnum<{
521
+ production: "production";
522
+ sandbox: "sandbox";
523
+ }>>;
524
+ }, z.core.$strip>>;
525
+ declare const DeviceIdParam: z.ZodObject<{
526
+ deviceId: z.ZodString;
527
+ }, z.core.$strip>;
528
+ declare const RegisterDevice: z.ZodObject<{
529
+ provider: z.ZodEnum<{
530
+ apns: "apns";
531
+ fcm: "fcm";
532
+ webpush: "webpush";
533
+ }>;
534
+ token: z.ZodString;
535
+ keys: z.ZodOptional<z.ZodObject<{
536
+ p256dh: z.ZodString;
537
+ auth: z.ZodString;
538
+ }, z.core.$strict>>;
539
+ appId: z.ZodOptional<z.ZodString>;
540
+ environment: z.ZodOptional<z.ZodEnum<{
541
+ production: "production";
542
+ sandbox: "sandbox";
543
+ }>>;
544
+ }, z.core.$strict>;
545
+ declare const PushConfigView: z.ZodObject<{
546
+ vapidPublicKey: z.ZodNullable<z.ZodString>;
547
+ }, z.core.$strip>;
548
+ //#endregion
549
+ export { CommunityNotificationSettings, Device, DeviceIdParam, DeviceList, NotificationCategory, NotificationCategoryDefaults, NotificationCategoryList, NotificationChannelInfos, NotificationFilterQuery, NotificationIdParam, NotificationListQuery, NotificationListScopeQuery, NotificationTypeInfo, NotificationTypeInfos, NotificationUnreadCounts, NotificationView, NotificationsPage, OrgNotificationSettings, PatchNotificationSettings, PushConfigView, RegisterDevice, ReplaceNotificationCategories };
550
+ //# sourceMappingURL=notifications.d.ts.map