@headless-lms/server 0.2.0 → 0.3.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 (339) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +5 -0
  2. package/dist/app/community-mail.d.ts +26 -0
  3. package/dist/app/community-mail.js +96 -0
  4. package/dist/app/community-mail.js.map +1 -0
  5. package/dist/app/container.d.ts +18 -14
  6. package/dist/app/container.js +136 -43
  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/http/config.d.ts +2 -1
  12. package/dist/http/errors.d.ts +14 -0
  13. package/dist/http/errors.js +147 -0
  14. package/dist/http/errors.js.map +1 -0
  15. package/dist/http/mcp/catalogue.d.ts +37 -0
  16. package/dist/http/mcp/catalogue.js +69 -0
  17. package/dist/http/mcp/catalogue.js.map +1 -0
  18. package/dist/http/mcp/challenge.d.ts +7 -0
  19. package/dist/http/mcp/challenge.js +35 -0
  20. package/dist/http/mcp/challenge.js.map +1 -0
  21. package/dist/http/mcp/input-schema.d.ts +7 -0
  22. package/dist/http/mcp/input-schema.js +28 -0
  23. package/dist/http/mcp/input-schema.js.map +1 -0
  24. package/dist/http/mcp/route.d.ts +8 -0
  25. package/dist/http/mcp/route.js +75 -0
  26. package/dist/http/mcp/route.js.map +1 -0
  27. package/dist/http/mcp/server.d.ts +8 -0
  28. package/dist/http/mcp/server.js +31 -0
  29. package/dist/http/mcp/server.js.map +1 -0
  30. package/dist/http/mcp/test-support.d.ts +55 -0
  31. package/dist/http/mcp/test-support.js +151 -0
  32. package/dist/http/mcp/test-support.js.map +1 -0
  33. package/dist/http/mcp/tool.d.ts +48 -0
  34. package/dist/http/mcp/tool.js +58 -0
  35. package/dist/http/mcp/tool.js.map +1 -0
  36. package/dist/http/mcp/tools/automations.d.ts +6 -0
  37. package/dist/http/mcp/tools/automations.js +120 -0
  38. package/dist/http/mcp/tools/automations.js.map +1 -0
  39. package/dist/http/mcp/tools/catalog.d.ts +6 -0
  40. package/dist/http/mcp/tools/catalog.js +200 -0
  41. package/dist/http/mcp/tools/catalog.js.map +1 -0
  42. package/dist/http/mcp/tools/comments.d.ts +6 -0
  43. package/dist/http/mcp/tools/comments.js +70 -0
  44. package/dist/http/mcp/tools/comments.js.map +1 -0
  45. package/dist/http/mcp/tools/communities.d.ts +6 -0
  46. package/dist/http/mcp/tools/communities.js +175 -0
  47. package/dist/http/mcp/tools/communities.js.map +1 -0
  48. package/dist/http/mcp/tools/community-members.d.ts +6 -0
  49. package/dist/http/mcp/tools/community-members.js +89 -0
  50. package/dist/http/mcp/tools/community-members.js.map +1 -0
  51. package/dist/http/mcp/tools/community-moderation.d.ts +6 -0
  52. package/dist/http/mcp/tools/community-moderation.js +144 -0
  53. package/dist/http/mcp/tools/community-moderation.js.map +1 -0
  54. package/dist/http/mcp/tools/courses.d.ts +6 -0
  55. package/dist/http/mcp/tools/courses.js +121 -0
  56. package/dist/http/mcp/tools/courses.js.map +1 -0
  57. package/dist/http/mcp/tools/index.d.ts +6 -0
  58. package/dist/http/mcp/tools/index.js +23 -0
  59. package/dist/http/mcp/tools/index.js.map +1 -0
  60. package/dist/http/mcp/tools/people.d.ts +6 -0
  61. package/dist/http/mcp/tools/people.js +145 -0
  62. package/dist/http/mcp/tools/people.js.map +1 -0
  63. package/dist/http/plugins/auth.js +13 -5
  64. package/dist/http/plugins/auth.js.map +1 -1
  65. package/dist/http/plugins/error-handler.d.ts +2 -1
  66. package/dist/http/plugins/error-handler.js +49 -65
  67. package/dist/http/plugins/error-handler.js.map +1 -1
  68. package/dist/http/plugins/openapi.js +49 -2
  69. package/dist/http/plugins/openapi.js.map +1 -1
  70. package/dist/http/routes/access.d.ts +7 -0
  71. package/dist/http/routes/access.js +140 -0
  72. package/dist/http/routes/access.js.map +1 -0
  73. package/dist/http/routes/activities.js +68 -23
  74. package/dist/http/routes/activities.js.map +1 -1
  75. package/dist/http/routes/assets.js +60 -55
  76. package/dist/http/routes/assets.js.map +1 -1
  77. package/dist/http/routes/automations.js +44 -24
  78. package/dist/http/routes/automations.js.map +1 -1
  79. package/dist/http/routes/bundles.js +29 -18
  80. package/dist/http/routes/bundles.js.map +1 -1
  81. package/dist/http/routes/communities.d.ts +7 -0
  82. package/dist/http/routes/communities.js +462 -0
  83. package/dist/http/routes/communities.js.map +1 -0
  84. package/dist/http/routes/community-moderation.d.ts +7 -0
  85. package/dist/http/routes/community-moderation.js +425 -0
  86. package/dist/http/routes/community-moderation.js.map +1 -0
  87. package/dist/http/routes/course-analytics.js +9 -7
  88. package/dist/http/routes/course-analytics.js.map +1 -1
  89. package/dist/http/routes/courses.js +30 -15
  90. package/dist/http/routes/courses.js.map +1 -1
  91. package/dist/http/routes/dashboard.js +15 -6
  92. package/dist/http/routes/dashboard.js.map +1 -1
  93. package/dist/http/routes/discussion.js +34 -26
  94. package/dist/http/routes/discussion.js.map +1 -1
  95. package/dist/http/routes/downloads.js +48 -30
  96. package/dist/http/routes/downloads.js.map +1 -1
  97. package/dist/http/routes/entitlements.js +16 -7
  98. package/dist/http/routes/entitlements.js.map +1 -1
  99. package/dist/http/routes/integrations.js +38 -41
  100. package/dist/http/routes/integrations.js.map +1 -1
  101. package/dist/http/routes/member/actor.d.ts +14 -0
  102. package/dist/http/routes/member/actor.js +11 -0
  103. package/dist/http/routes/member/actor.js.map +1 -0
  104. package/dist/http/routes/member/assets.d.ts +7 -0
  105. package/dist/http/routes/member/assets.js +79 -0
  106. package/dist/http/routes/member/assets.js.map +1 -0
  107. package/dist/http/routes/member/chats.d.ts +7 -0
  108. package/dist/http/routes/member/chats.js +456 -0
  109. package/dist/http/routes/member/chats.js.map +1 -0
  110. package/dist/http/routes/member/comments.d.ts +7 -0
  111. package/dist/http/routes/member/comments.js +187 -0
  112. package/dist/http/routes/member/comments.js.map +1 -0
  113. package/dist/http/routes/member/community.d.ts +7 -0
  114. package/dist/http/routes/member/community.js +288 -0
  115. package/dist/http/routes/member/community.js.map +1 -0
  116. package/dist/http/routes/member/courses.d.ts +7 -0
  117. package/dist/http/routes/member/courses.js +101 -0
  118. package/dist/http/routes/member/courses.js.map +1 -0
  119. package/dist/http/routes/member/downloads.d.ts +7 -0
  120. package/dist/http/routes/member/downloads.js +56 -0
  121. package/dist/http/routes/member/downloads.js.map +1 -0
  122. package/dist/http/routes/member/files.d.ts +7 -0
  123. package/dist/http/routes/member/files.js +184 -0
  124. package/dist/http/routes/member/files.js.map +1 -0
  125. package/dist/http/routes/member/index.d.ts +7 -0
  126. package/dist/http/routes/member/index.js +31 -0
  127. package/dist/http/routes/member/index.js.map +1 -0
  128. package/dist/http/routes/member/notifications.d.ts +7 -0
  129. package/dist/http/routes/member/notifications.js +101 -0
  130. package/dist/http/routes/member/notifications.js.map +1 -0
  131. package/dist/http/routes/member/org.d.ts +7 -0
  132. package/dist/http/routes/member/org.js +56 -0
  133. package/dist/http/routes/member/org.js.map +1 -0
  134. package/dist/http/routes/member/posts.d.ts +7 -0
  135. package/dist/http/routes/member/posts.js +612 -0
  136. package/dist/http/routes/member/posts.js.map +1 -0
  137. package/dist/http/routes/member/profile.d.ts +7 -0
  138. package/dist/http/routes/member/profile.js +48 -0
  139. package/dist/http/routes/member/profile.js.map +1 -0
  140. package/dist/http/routes/member/progress.d.ts +7 -0
  141. package/dist/http/routes/member/progress.js +60 -0
  142. package/dist/http/routes/member/progress.js.map +1 -0
  143. package/dist/http/routes/organizations.js +49 -24
  144. package/dist/http/routes/organizations.js.map +1 -1
  145. package/dist/http/routes/students.js +32 -47
  146. package/dist/http/routes/students.js.map +1 -1
  147. package/dist/http/routes/webhooks.js +26 -18
  148. package/dist/http/routes/webhooks.js.map +1 -1
  149. package/dist/http/routes.js +8 -2
  150. package/dist/http/routes.js.map +1 -1
  151. package/dist/http/schemas/access.d.ts +146 -0
  152. package/dist/http/schemas/access.js +36 -0
  153. package/dist/http/schemas/access.js.map +1 -0
  154. package/dist/http/schemas/activities.d.ts +3 -1
  155. package/dist/http/schemas/activities.js +4 -4
  156. package/dist/http/schemas/activities.js.map +1 -1
  157. package/dist/http/schemas/assets.d.ts +73 -74
  158. package/dist/http/schemas/assets.js +23 -13
  159. package/dist/http/schemas/assets.js.map +1 -1
  160. package/dist/http/schemas/automations.d.ts +10 -0
  161. package/dist/http/schemas/bundles.js +6 -6
  162. package/dist/http/schemas/bundles.js.map +1 -1
  163. package/dist/http/schemas/chats.d.ts +386 -0
  164. package/dist/http/schemas/chats.js +58 -0
  165. package/dist/http/schemas/chats.js.map +1 -0
  166. package/dist/http/schemas/community.d.ts +537 -0
  167. package/dist/http/schemas/community.js +129 -0
  168. package/dist/http/schemas/community.js.map +1 -0
  169. package/dist/http/schemas/content.d.ts +4 -2
  170. package/dist/http/schemas/content.js +11 -8
  171. package/dist/http/schemas/content.js.map +1 -1
  172. package/dist/http/schemas/discussion.d.ts +76 -14
  173. package/dist/http/schemas/discussion.js +12 -11
  174. package/dist/http/schemas/discussion.js.map +1 -1
  175. package/dist/http/schemas/downloads.d.ts +11 -5
  176. package/dist/http/schemas/downloads.js +14 -11
  177. package/dist/http/schemas/downloads.js.map +1 -1
  178. package/dist/http/schemas/entitlements.d.ts +6 -6
  179. package/dist/http/schemas/entitlements.js +6 -6
  180. package/dist/http/schemas/entitlements.js.map +1 -1
  181. package/dist/http/schemas/files.d.ts +45 -0
  182. package/dist/http/schemas/files.js +25 -0
  183. package/dist/http/schemas/files.js.map +1 -0
  184. package/dist/http/schemas/index.d.ts +15 -8
  185. package/dist/http/schemas/index.js +15 -8
  186. package/dist/http/schemas/integrations.d.ts +2 -2
  187. package/dist/http/schemas/invites.d.ts +4 -0
  188. package/dist/http/schemas/invites.js +1 -0
  189. package/dist/http/schemas/invites.js.map +1 -1
  190. package/dist/http/schemas/{learn.d.ts → member.d.ts} +31 -18
  191. package/dist/http/schemas/{learn.js → member.js} +17 -13
  192. package/dist/http/schemas/member.js.map +1 -0
  193. package/dist/http/schemas/members.d.ts +39 -6
  194. package/dist/http/schemas/members.js +17 -3
  195. package/dist/http/schemas/members.js.map +1 -1
  196. package/dist/http/schemas/notifications.d.ts +227 -0
  197. package/dist/http/schemas/notifications.js +44 -0
  198. package/dist/http/schemas/notifications.js.map +1 -0
  199. package/dist/http/schemas/posts.d.ts +316 -0
  200. package/dist/http/schemas/posts.js +47 -0
  201. package/dist/http/schemas/posts.js.map +1 -0
  202. package/dist/http/schemas/profile.d.ts +23 -0
  203. package/dist/http/schemas/profile.js +15 -0
  204. package/dist/http/schemas/profile.js.map +1 -0
  205. package/dist/http/schemas/shared.d.ts +25 -1
  206. package/dist/http/schemas/shared.js +19 -2
  207. package/dist/http/schemas/shared.js.map +1 -1
  208. package/dist/http/schemas/students.d.ts +4 -10
  209. package/dist/http/schemas/students.js +1 -7
  210. package/dist/http/schemas/students.js.map +1 -1
  211. package/dist/http/scope.d.ts +2 -1
  212. package/dist/http/scope.js +20 -4
  213. package/dist/http/scope.js.map +1 -1
  214. package/dist/http/server.js +6 -1
  215. package/dist/http/server.js.map +1 -1
  216. package/dist/http/web-bridge.d.ts +1 -1
  217. package/dist/http/web-bridge.js +2 -2
  218. package/dist/http/web-bridge.js.map +1 -1
  219. package/dist/http/well-known.d.ts +7 -0
  220. package/dist/http/well-known.js +22 -0
  221. package/dist/http/well-known.js.map +1 -0
  222. package/dist/index.d.ts +2 -1
  223. package/dist/index.js +4 -2
  224. package/dist/index.js.map +1 -1
  225. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +78 -0
  226. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js.map +1 -0
  227. package/dist/node_modules/.pnpm/@vitest_expect@2.1.9/node_modules/@vitest/expect/dist/index.js +1267 -0
  228. package/dist/node_modules/.pnpm/@vitest_expect@2.1.9/node_modules/@vitest/expect/dist/index.js.map +1 -0
  229. package/dist/node_modules/.pnpm/@vitest_pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.js +814 -0
  230. package/dist/node_modules/.pnpm/@vitest_pretty-format@2.1.9/node_modules/@vitest/pretty-format/dist/index.js.map +1 -0
  231. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.js +43 -0
  232. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/chunk-tasks.js.map +1 -0
  233. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/index.js +527 -0
  234. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/index.js.map +1 -0
  235. package/dist/node_modules/.pnpm/@vitest_runner@2.1.9/node_modules/@vitest/runner/dist/utils.js +2 -0
  236. package/dist/node_modules/.pnpm/@vitest_snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.js +1737 -0
  237. package/dist/node_modules/.pnpm/@vitest_snapshot@2.1.9/node_modules/@vitest/snapshot/dist/index.js.map +1 -0
  238. package/dist/node_modules/.pnpm/@vitest_spy@2.1.9/node_modules/@vitest/spy/dist/index.js +137 -0
  239. package/dist/node_modules/.pnpm/@vitest_spy@2.1.9/node_modules/@vitest/spy/dist/index.js.map +1 -0
  240. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +118 -0
  241. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js.map +1 -0
  242. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/diff.js +1222 -0
  243. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/diff.js.map +1 -0
  244. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/error.js +91 -0
  245. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/error.js.map +1 -0
  246. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/helpers.js +113 -0
  247. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/helpers.js.map +1 -0
  248. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/index.js +449 -0
  249. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/index.js.map +1 -0
  250. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/source-map.js +163 -0
  251. package/dist/node_modules/.pnpm/@vitest_utils@2.1.9/node_modules/@vitest/utils/dist/source-map.js.map +1 -0
  252. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +3187 -0
  253. package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js.map +1 -0
  254. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +11 -0
  255. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js.map +1 -0
  256. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +16 -0
  257. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js.map +1 -0
  258. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +11 -0
  259. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js.map +1 -0
  260. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +15 -0
  261. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js.map +1 -0
  262. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +13 -0
  263. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js.map +1 -0
  264. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +34 -0
  265. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js.map +1 -0
  266. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +12 -0
  267. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js.map +1 -0
  268. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +122 -0
  269. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js.map +1 -0
  270. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +39 -0
  271. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js.map +1 -0
  272. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +99 -0
  273. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js.map +1 -0
  274. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +25 -0
  275. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js.map +1 -0
  276. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +14 -0
  277. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js.map +1 -0
  278. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +21 -0
  279. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js.map +1 -0
  280. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +6 -0
  281. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js.map +1 -0
  282. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +12 -0
  283. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js.map +1 -0
  284. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +18 -0
  285. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js.map +1 -0
  286. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +24 -0
  287. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js.map +1 -0
  288. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +9 -0
  289. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js.map +1 -0
  290. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +30 -0
  291. package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js.map +1 -0
  292. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +939 -0
  293. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js.map +1 -0
  294. package/dist/node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.js +82 -0
  295. package/dist/node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/shared/pathe.ff20891b.js.map +1 -0
  296. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +82 -0
  297. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js.map +1 -0
  298. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js +8 -0
  299. package/dist/node_modules/.pnpm/tinyrainbow@1.2.0/node_modules/tinyrainbow/dist/node.js.map +1 -0
  300. package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js +83 -0
  301. package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js.map +1 -0
  302. 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
  303. 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
  304. 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
  305. 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
  306. 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
  307. 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
  308. 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
  309. 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
  310. package/dist/packages/server/package.js +6 -0
  311. package/dist/packages/server/package.js.map +1 -0
  312. package/package.json +9 -7
  313. package/dist/app/notifications.d.ts +0 -7
  314. package/dist/app/notifications.js +0 -26
  315. package/dist/app/notifications.js.map +0 -1
  316. package/dist/http/routes/learn/assets.d.ts +0 -8
  317. package/dist/http/routes/learn/assets.js +0 -32
  318. package/dist/http/routes/learn/assets.js.map +0 -1
  319. package/dist/http/routes/learn/comments.d.ts +0 -7
  320. package/dist/http/routes/learn/comments.js +0 -175
  321. package/dist/http/routes/learn/comments.js.map +0 -1
  322. package/dist/http/routes/learn/courses.d.ts +0 -7
  323. package/dist/http/routes/learn/courses.js +0 -98
  324. package/dist/http/routes/learn/courses.js.map +0 -1
  325. package/dist/http/routes/learn/downloads.d.ts +0 -7
  326. package/dist/http/routes/learn/downloads.js +0 -76
  327. package/dist/http/routes/learn/downloads.js.map +0 -1
  328. package/dist/http/routes/learn/index.d.ts +0 -7
  329. package/dist/http/routes/learn/index.js +0 -19
  330. package/dist/http/routes/learn/index.js.map +0 -1
  331. package/dist/http/routes/learn/org.d.ts +0 -7
  332. package/dist/http/routes/learn/org.js +0 -50
  333. package/dist/http/routes/learn/org.js.map +0 -1
  334. package/dist/http/routes/learn/progress.d.ts +0 -7
  335. package/dist/http/routes/learn/progress.js +0 -63
  336. package/dist/http/routes/learn/progress.js.map +0 -1
  337. package/dist/http/schemas/learn.js.map +0 -1
  338. package/dist/package.js +0 -6
  339. package/dist/package.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"entitlements.js","names":[],"sources":["../../../src/http/schemas/entitlements.ts"],"sourcesContent":["// Entitlements resource schemas. An entitlement is a student's access grant to\n// a piece of content — generic over content types (course today) — its\n// validity + source. Distinct from payment and from completion.\nimport { z } from 'zod';\nimport { entitlementSchema } from '@headless-lms/core/schemas';\nimport { ListQuery, paginated } from './shared.js';\n\nexport const EntitlementStatus = z.enum(['active', 'expired', 'revoked']);\nexport type EntitlementStatus = z.infer<typeof EntitlementStatus>;\n\nexport const ContentType = z.enum(['course', 'download']);\nexport type ContentType = z.infer<typeof ContentType>;\n\n/** Reference to the granted content: identity + display name (join-derived).\n * The full content object lives on its own resource. */\nexport const ContentRef = z.object({\n id: z.string(),\n type: ContentType,\n title: z.string(),\n});\nexport type ContentRef = z.infer<typeof ContentRef>;\n\nexport const Entitlement = entitlementSchema;\nexport type Entitlement = z.infer<typeof Entitlement>;\n\nexport const EntitlementsQuery = ListQuery.extend({\n status: EntitlementStatus.optional(),\n source: z.string().optional(),\n /** Scope to a single student (used by the student detail view). */\n orgUserId: z.string().optional(),\n /** Scope to a single piece of content. */\n contentId: z.string().optional(),\n /** Scope to one content type. */\n type: ContentType.optional(),\n});\nexport type EntitlementsQuery = z.infer<typeof EntitlementsQuery>;\n\nexport const EntitlementsPage = paginated(Entitlement);\nexport type EntitlementsPage = z.infer<typeof EntitlementsPage>;\n\n/** A grant targets exactly one of: a single content item or a bundle. */\nexport const GrantEntitlement = z\n .object({\n orgUserId: z.string(),\n contentId: z.string().nullish(),\n bundleId: z.string().nullish(),\n expiresAt: z.coerce.date().nullable(),\n })\n .refine((v) => (v.contentId != null) !== (v.bundleId != null), {\n message: 'Provide exactly one of contentId or bundleId',\n });\nexport type GrantEntitlement = z.infer<typeof GrantEntitlement>;\n\n/** Revoke/reinstate access by setting the active|revoked status. */\nexport const SetEntitlementStatus = z.object({\n status: z.enum(['active', 'revoked']),\n});\nexport type SetEntitlementStatus = z.infer<typeof SetEntitlementStatus>;\n\nexport const EntitlementIdParam = z.object({ id: z.string() });\nexport type EntitlementIdParam = z.infer<typeof EntitlementIdParam>;\n"],"mappings":";;;;AAOA,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAU;CAAW;AAAS,CAAC;AAGxE,MAAa,cAAc,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC;;;AAKxD,MAAa,aAAa,EAAE,OAAO;CACjC,IAAI,EAAE,OAAO;CACb,MAAM;CACN,OAAO,EAAE,OAAO;AAClB,CAAC;AAGD,MAAa,cAAc;AAG3B,MAAa,oBAAoB,UAAU,OAAO;CAChD,QAAQ,kBAAkB,SAAS;CACnC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;;CAE5B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;;CAE/B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;;CAE/B,MAAM,YAAY,SAAS;AAC7B,CAAC;AAGD,MAAa,mBAAmB,UAAU,WAAW;;AAIrD,MAAa,mBAAmB,EAC7B,OAAO;CACN,WAAW,EAAE,OAAO;CACpB,WAAW,EAAE,OAAO,CAAC,CAAC,QAAQ;CAC9B,UAAU,EAAE,OAAO,CAAC,CAAC,QAAQ;CAC7B,WAAW,EAAE,OAAO,KAAK,CAAC,CAAC,SAAS;AACtC,CAAC,CAAC,CACD,QAAQ,MAAO,EAAE,aAAa,UAAW,EAAE,YAAY,OAAO,EAC7D,SAAS,+CACX,CAAC;;AAIH,MAAa,uBAAuB,EAAE,OAAO,EAC3C,QAAQ,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,EACtC,CAAC;AAGD,MAAa,qBAAqB,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"entitlements.js","names":[],"sources":["../../../src/http/schemas/entitlements.ts"],"sourcesContent":["// Entitlements resource schemas. An entitlement is a student's access grant to\n// a piece of content — generic over content types (course today) — its\n// validity + source. Distinct from payment and from completion.\nimport { z } from 'zod';\nimport { entitlementSchema, idSchema } from '@headless-lms/core/schemas';\nimport { DateTimeInput, ListQuery, paginated } from './shared.js';\n\nexport const EntitlementStatus = z.enum(['active', 'expired', 'revoked']);\nexport type EntitlementStatus = z.infer<typeof EntitlementStatus>;\n\nexport const ContentType = z.enum(['course', 'download']);\nexport type ContentType = z.infer<typeof ContentType>;\n\n/** Reference to the granted content: identity + display name (join-derived).\n * The full content object lives on its own resource. */\nexport const ContentRef = z.object({\n id: z.string(),\n type: ContentType,\n title: z.string(),\n});\nexport type ContentRef = z.infer<typeof ContentRef>;\n\nexport const Entitlement = entitlementSchema;\nexport type Entitlement = z.infer<typeof Entitlement>;\n\nexport const EntitlementsQuery = ListQuery.extend({\n status: EntitlementStatus.optional(),\n source: z.string().optional(),\n /** Scope to a single student (used by the student detail view). */\n orgUserId: z.string().optional(),\n /** Scope to a single piece of content. */\n contentId: z.string().optional(),\n /** Scope to one content type. */\n type: ContentType.optional(),\n});\nexport type EntitlementsQuery = z.infer<typeof EntitlementsQuery>;\n\nexport const EntitlementsPage = paginated(Entitlement);\nexport type EntitlementsPage = z.infer<typeof EntitlementsPage>;\n\n/** A grant targets exactly one of: a single content item or a bundle. */\nexport const GrantEntitlement = z\n .object({\n orgUserId: idSchema,\n contentId: idSchema.nullish(),\n bundleId: idSchema.nullish(),\n expiresAt: DateTimeInput.nullable().describe('When access ends; null never expires'),\n })\n .refine((v) => (v.contentId != null) !== (v.bundleId != null), {\n message: 'Provide exactly one of contentId or bundleId',\n });\nexport type GrantEntitlement = z.infer<typeof GrantEntitlement>;\n\n/** Revoke/reinstate access by setting the active|revoked status. */\nexport const SetEntitlementStatus = z.object({\n status: z.enum(['active', 'revoked']),\n});\nexport type SetEntitlementStatus = z.infer<typeof SetEntitlementStatus>;\n\nexport const EntitlementIdParam = z.object({ id: z.string() });\nexport type EntitlementIdParam = z.infer<typeof EntitlementIdParam>;\n"],"mappings":";;;;AAOA,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAU;CAAW;AAAS,CAAC;AAGxE,MAAa,cAAc,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC;;;AAKxD,MAAa,aAAa,EAAE,OAAO;CACjC,IAAI,EAAE,OAAO;CACb,MAAM;CACN,OAAO,EAAE,OAAO;AAClB,CAAC;AAGD,MAAa,cAAc;AAG3B,MAAa,oBAAoB,UAAU,OAAO;CAChD,QAAQ,kBAAkB,SAAS;CACnC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;;CAE5B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;;CAE/B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;;CAE/B,MAAM,YAAY,SAAS;AAC7B,CAAC;AAGD,MAAa,mBAAmB,UAAU,WAAW;;AAIrD,MAAa,mBAAmB,EAC7B,OAAO;CACN,WAAW;CACX,WAAW,SAAS,QAAQ;CAC5B,UAAU,SAAS,QAAQ;CAC3B,WAAW,cAAc,SAAS,CAAC,CAAC,SAAS,sCAAsC;AACrF,CAAC,CAAC,CACD,QAAQ,MAAO,EAAE,aAAa,UAAW,EAAE,YAAY,OAAO,EAC7D,SAAS,+CACX,CAAC;;AAIH,MAAa,uBAAuB,EAAE,OAAO,EAC3C,QAAQ,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC,EACtC,CAAC;AAGD,MAAa,qBAAqB,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ //#region src/http/schemas/files.d.ts
3
+ declare const CourseThumbnailParams: z.ZodObject<{
4
+ courseId: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type CourseThumbnailParams = z.infer<typeof CourseThumbnailParams>;
7
+ declare const DownloadThumbnailParams: z.ZodObject<{
8
+ downloadId: z.ZodString;
9
+ }, z.core.$strip>;
10
+ type DownloadThumbnailParams = z.infer<typeof DownloadThumbnailParams>;
11
+ declare const CommunityThumbnailParams: z.ZodObject<{
12
+ communityId: z.ZodString;
13
+ }, z.core.$strip>;
14
+ type CommunityThumbnailParams = z.infer<typeof CommunityThumbnailParams>;
15
+ declare const ActivityFileParams: z.ZodObject<{
16
+ activityId: z.ZodString;
17
+ assetId: z.ZodString;
18
+ }, z.core.$strip>;
19
+ type ActivityFileParams = z.infer<typeof ActivityFileParams>;
20
+ declare const DownloadFileParams: z.ZodObject<{
21
+ downloadId: z.ZodString;
22
+ assetId: z.ZodString;
23
+ }, z.core.$strip>;
24
+ type DownloadFileParams = z.infer<typeof DownloadFileParams>;
25
+ declare const PostCoverParams: z.ZodObject<{
26
+ postId: z.ZodString;
27
+ }, z.core.$strip>;
28
+ type PostCoverParams = z.infer<typeof PostCoverParams>;
29
+ declare const MessageAttachmentParams: z.ZodObject<{
30
+ chatId: z.ZodString;
31
+ messageId: z.ZodString;
32
+ assetId: z.ZodString;
33
+ }, z.core.$strip>;
34
+ type MessageAttachmentParams = z.infer<typeof MessageAttachmentParams>;
35
+ declare const PersonImageParams: z.ZodObject<{
36
+ orgUserId: z.ZodString;
37
+ }, z.core.$strip>;
38
+ type PersonImageParams = z.infer<typeof PersonImageParams>;
39
+ declare const UploadFileParams: z.ZodObject<{
40
+ id: z.ZodString;
41
+ }, z.core.$strip>;
42
+ type UploadFileParams = z.infer<typeof UploadFileParams>;
43
+ //#endregion
44
+ export { ActivityFileParams, CommunityThumbnailParams, CourseThumbnailParams, DownloadFileParams, DownloadThumbnailParams, MessageAttachmentParams, PersonImageParams, PostCoverParams, UploadFileParams };
45
+ //# sourceMappingURL=files.d.ts.map
@@ -0,0 +1,25 @@
1
+ import { z } from "zod";
2
+ //#region src/http/schemas/files.ts
3
+ const CourseThumbnailParams = z.object({ courseId: z.string() });
4
+ const DownloadThumbnailParams = z.object({ downloadId: z.string() });
5
+ const CommunityThumbnailParams = z.object({ communityId: z.string() });
6
+ const ActivityFileParams = z.object({
7
+ activityId: z.string(),
8
+ assetId: z.string()
9
+ });
10
+ const DownloadFileParams = z.object({
11
+ downloadId: z.string(),
12
+ assetId: z.string()
13
+ });
14
+ const PostCoverParams = z.object({ postId: z.string() });
15
+ const MessageAttachmentParams = z.object({
16
+ chatId: z.string(),
17
+ messageId: z.string(),
18
+ assetId: z.string()
19
+ });
20
+ const PersonImageParams = z.object({ orgUserId: z.string() });
21
+ const UploadFileParams = z.object({ id: z.string() });
22
+ //#endregion
23
+ export { ActivityFileParams, CommunityThumbnailParams, CourseThumbnailParams, DownloadFileParams, DownloadThumbnailParams, MessageAttachmentParams, PersonImageParams, PostCoverParams, UploadFileParams };
24
+
25
+ //# sourceMappingURL=files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files.js","names":[],"sources":["../../../src/http/schemas/files.ts"],"sourcesContent":["// File proxy schemas. Every file is fetched from a stable URL that checks access\n// on each request and answers 302 with a signed storage URL.\nimport { z } from 'zod';\n\nexport const CourseThumbnailParams = z.object({ courseId: z.string() });\nexport type CourseThumbnailParams = z.infer<typeof CourseThumbnailParams>;\n\nexport const DownloadThumbnailParams = z.object({ downloadId: z.string() });\nexport type DownloadThumbnailParams = z.infer<typeof DownloadThumbnailParams>;\n\nexport const CommunityThumbnailParams = z.object({ communityId: z.string() });\nexport type CommunityThumbnailParams = z.infer<typeof CommunityThumbnailParams>;\n\nexport const ActivityFileParams = z.object({ activityId: z.string(), assetId: z.string() });\nexport type ActivityFileParams = z.infer<typeof ActivityFileParams>;\n\nexport const DownloadFileParams = z.object({ downloadId: z.string(), assetId: z.string() });\nexport type DownloadFileParams = z.infer<typeof DownloadFileParams>;\n\nexport const PostCoverParams = z.object({ postId: z.string() });\nexport type PostCoverParams = z.infer<typeof PostCoverParams>;\n\nexport const MessageAttachmentParams = z.object({\n chatId: z.string(),\n messageId: z.string(),\n assetId: z.string(),\n});\nexport type MessageAttachmentParams = z.infer<typeof MessageAttachmentParams>;\n\nexport const PersonImageParams = z.object({ orgUserId: z.string() });\nexport type PersonImageParams = z.infer<typeof PersonImageParams>;\n\nexport const UploadFileParams = z.object({ id: z.string() });\nexport type UploadFileParams = z.infer<typeof UploadFileParams>;\n"],"mappings":";;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAGtE,MAAa,0BAA0B,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;AAG1E,MAAa,2BAA2B,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC;AAG5E,MAAa,qBAAqB,EAAE,OAAO;CAAE,YAAY,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;AAG1F,MAAa,qBAAqB,EAAE,OAAO;CAAE,YAAY,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;AAG1F,MAAa,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAG9D,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ,EAAE,OAAO;CACjB,WAAW,EAAE,OAAO;CACpB,SAAS,EAAE,OAAO;AACpB,CAAC;AAGD,MAAa,oBAAoB,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;AAGnE,MAAa,mBAAmB,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,19 +1,26 @@
1
+ import { ApiKey, ApiKeyIdParam, ApiKeyList, ClientIdParam, ConnectedApp, ConnectedAppList, CreateApiKey, CreatedApiKey, ScopeOption, ScopeOptionList } from "./access.js";
1
2
  import { Activity, ActivityAsset, ActivityAssetList, ActivityList, ActivityPathParam, CourseIdPathParam, CreateModule, Module, ModuleList, ModulePathParam, ReorderInput, SaveActivity, UpdateModule } from "./activities.js";
2
- import { Asset, AssetIdParam, AssetKind, AssetStatus, AssetsPage, AssetsQuery, DownloadTicket, RequestDownload, RequestUpload, UploadTicket } from "./assets.js";
3
+ import { Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, RequestMemberUpload, RequestUpload, UploadTicket } from "./assets.js";
3
4
  import { Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableTriggers, CreateAutomationBody, CreateWebhookBody, CreatedWebhook, UpdateAutomationBody, UpdateWebhookBody, Webhook, WebhookSecret } from "./automations.js";
4
5
  import { AddBundleItem, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, CreateBundle, UpdateBundle } from "./bundles.js";
6
+ import { BlockParam, Chat, ChatIdParam, ChatListItem, ChatsPage, CommunityParam, EditMessage, MarkRead, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, MuteChat, OrgUserBody, ResolveMessageFlags, SendMessage, StartDirectChat, StartGroupChat } from "./chats.js";
7
+ import { CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityPostParam, CommunitySpaceParam, CreateCommunity, CreateSpace, DirectoryEntry, DirectoryPage, DirectoryQuery, DmSettings, LockedCommunitySpace, OpenCommunitySpace, OrderedIds, PatchDmSettings, SetSpaceTopics, SpaceDetail, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, UpdateCommunity, UpdateSpace } from "./community.js";
5
8
  import { Course, CourseIdParam, CourseSettings, CourseStatus, CoursesPage, CoursesQuery, CreateCourse, PatchCourseSettings, UpdateCourse } from "./content.js";
6
9
  import { CourseActivityEngagement, CourseAnalytics } from "./course-analytics.js";
7
10
  import { EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, OverviewStats } from "./dashboard.js";
8
- import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReactions, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, ReplyToComment, ReportComment, SetCommentReaction } from "./discussion.js";
9
- import { AddDownloadAsset, CreateDownload, Download, DownloadAsset, DownloadAssetParams, DownloadIdParam, DownloadStatus, DownloadsPage, DownloadsQuery, RenameDownloadAsset, ReorderDownloadAssets, UpdateDownload } from "./downloads.js";
11
+ import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, Reactions, ReplyToComment, ReportComment, ResolveCommentFlags, SetReaction } from "./discussion.js";
12
+ import { AddDownloadAsset, CreateDownload, Download, DownloadAssetParams, DownloadFile, DownloadIdParam, DownloadStatus, DownloadsPage, DownloadsQuery, RenameDownloadAsset, ReorderDownloadAssets, UpdateDownload } from "./downloads.js";
10
13
  import { ContentRef, ContentType, Entitlement, EntitlementIdParam, EntitlementStatus, EntitlementsPage, EntitlementsQuery, GrantEntitlement, SetEntitlementStatus } from "./entitlements.js";
11
- import { ErrorBody, ListQuery, Matches, OrgRole, OrgUserProfileSchema, UserProfileSchema, paginated } from "./shared.js";
12
- import { CourseProgress, LearnCourseIdParam, LearnCourses, LearnDownload, LearnDownloads, LearnModules, LearnOrg, LearnViewer, ProgressReportItem, ProgressStatus, ReportProgress } from "./learn.js";
13
- import { OrgUserStatus, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, UpdateStudentBody } from "./students.js";
14
+ import { ActivityFileParams, CommunityThumbnailParams, CourseThumbnailParams, DownloadFileParams, DownloadThumbnailParams, MessageAttachmentParams, PersonImageParams, PostCoverParams, UploadFileParams } from "./files.js";
15
+ import { DateTimeInput, ErrorBody, ListQuery, Matches, OrgRole, OrgUserProfileSchema, PageQuery, UserProfileSchema, ValidationErrorBody, paginated, refusals } from "./shared.js";
16
+ import { CourseProgress, LearnActivityAssetParams, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberModules, MemberOrg, MemberViewer, ProgressReportItem, ProgressStatus, ReportProgress } from "./member.js";
17
+ import { OrgUserStatus, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery } from "./students.js";
14
18
  import { CreateOrganization, Organization, UpdateOrganization } from "./organizations.js";
15
- import { Member, MemberIdParam, MemberStatus, MembersPage, MembersQuery, Role, UpdateMemberRole } from "./members.js";
19
+ import { AssignableRole, Member, MemberIdParam, MemberRoleChange, MemberStatus, MembersPage, MembersQuery, Role, UpdateMemberRole } from "./members.js";
16
20
  import { AcceptInvite, AcceptInviteResult, ActivateInvite, ActivateInviteResult, CreateInvite, GetInviteResult, Invite, InviteRole, InviteTokenParam, RedeemInvite, RedeemInviteResult } from "./invites.js";
17
21
  import { ActionInvocationResult, AvailableIntegration, AvailableIntegrationsList, ConfigureRequest, ConnectRequest, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, IntegrationActionInfo, InvokeActionRequest, ReconnectRequest } from "./integrations.js";
18
22
  import { PatchSettings, ScopeSettings, SettingsNamespaceParam, SettingsScopeParam, SettingsValue } from "./settings.js";
19
- export { AcceptInvite, AcceptInviteResult, ActionInvocationResult, ActivateInvite, ActivateInviteResult, Activity, ActivityAsset, ActivityAssetList, ActivityComments, ActivityList, ActivityPathParam, AddBundleItem, AddDownloadAsset, Asset, AssetIdParam, AssetKind, AssetStatus, AssetsPage, AssetsQuery, Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableIntegration, AvailableIntegrationsList, AvailableTriggers, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReactions, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, ConfigureRequest, ConnectRequest, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, ContentRef, ContentType, Course, CourseActivityEngagement, CourseAnalytics, CourseIdParam, CourseIdPathParam, CourseProgress, CourseSettings, CourseStatus, CoursesPage, CoursesQuery, CreateAutomationBody, CreateBundle, CreateCourse, CreateDownload, CreateInvite, CreateModule, CreateOrganization, CreateWebhookBody, CreatedWebhook, DiscussionActivityParam, Download, DownloadAsset, DownloadAssetParams, DownloadIdParam, DownloadStatus, DownloadTicket, DownloadsPage, DownloadsQuery, EditComment, EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, Entitlement, EntitlementIdParam, EntitlementStatus, EntitlementsPage, EntitlementsQuery, ErrorBody, GetInviteResult, GrantEntitlement, IntegrationActionInfo, Invite, InviteRole, InviteTokenParam, InvokeActionRequest, LearnCourseIdParam, LearnCourses, LearnDownload, LearnDownloads, LearnModules, LearnOrg, LearnViewer, ListQuery, Matches, Member, MemberIdParam, MemberStatus, MembersPage, MembersQuery, Module, ModuleList, ModulePathParam, OrgRole, OrgUserProfileSchema, OrgUserStatus, Organization, OverviewStats, PatchComment, PatchCourseSettings, PatchSettings, PostComment, ProgressReportItem, ProgressStatus, ReactionCounts, ReactionEmoji, ReconnectRequest, RedeemInvite, RedeemInviteResult, RenameDownloadAsset, ReorderDownloadAssets, ReorderInput, ReplyToComment, ReportComment, ReportProgress, RequestDownload, RequestUpload, Role, SaveActivity, ScopeSettings, SetCommentReaction, SetEntitlementStatus, SettingsNamespaceParam, SettingsScopeParam, SettingsValue, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, UpdateAutomationBody, UpdateBundle, UpdateCourse, UpdateDownload, UpdateMemberRole, UpdateModule, UpdateOrganization, UpdateStudentBody, UpdateWebhookBody, UploadTicket, UserProfileSchema, Webhook, WebhookSecret, paginated };
23
+ import { CreatePost, FeedQuery, FlagReason, PostCommentsPage, PostFeedPage, PostFlag, PostIdParam, PostView, ResolvePostFlags, SchedulePost, SetPostReactions, SpaceQueue, UpdatePost } from "./posts.js";
24
+ import { UpdateProfile, UserProfile } from "./profile.js";
25
+ import { MarkedRead, Notification, NotificationIdParam, NotificationPreference, NotificationPreferences, NotificationView, NotificationsPage, SetNotificationPreferences } from "./notifications.js";
26
+ export { AcceptInvite, AcceptInviteResult, ActionInvocationResult, ActivateInvite, ActivateInviteResult, Activity, ActivityAsset, ActivityAssetList, ActivityComments, ActivityFileParams, ActivityList, ActivityPathParam, AddBundleItem, AddDownloadAsset, ApiKey, ApiKeyIdParam, ApiKeyList, Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, AssignableRole, Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableIntegration, AvailableIntegrationsList, AvailableTriggers, BlockParam, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, Chat, ChatIdParam, ChatListItem, ChatsPage, ClientIdParam, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityParam, CommunityPostParam, CommunitySpaceParam, CommunityThumbnailParams, ConfigureRequest, ConnectRequest, ConnectedApp, ConnectedAppList, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, ContentRef, ContentType, Course, CourseActivityEngagement, CourseAnalytics, CourseIdParam, CourseIdPathParam, CourseProgress, CourseSettings, CourseStatus, CourseThumbnailParams, CoursesPage, CoursesQuery, CreateApiKey, CreateAutomationBody, CreateBundle, CreateCommunity, CreateCourse, CreateDownload, CreateInvite, CreateModule, CreateOrganization, CreatePost, CreateSpace, CreateWebhookBody, CreatedApiKey, CreatedWebhook, DateTimeInput, DirectoryEntry, DirectoryPage, DirectoryQuery, DiscussionActivityParam, DmSettings, Download, DownloadAssetParams, DownloadFile, DownloadFileParams, DownloadIdParam, DownloadStatus, DownloadThumbnailParams, DownloadsPage, DownloadsQuery, EditComment, EditMessage, EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, Entitlement, EntitlementIdParam, EntitlementStatus, EntitlementsPage, EntitlementsQuery, ErrorBody, FeedQuery, FlagReason, GetInviteResult, GrantEntitlement, IntegrationActionInfo, Invite, InviteRole, InviteTokenParam, InvokeActionRequest, LearnActivityAssetParams, ListQuery, LockedCommunitySpace, MarkRead, MarkedRead, Matches, Member, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberIdParam, MemberModules, MemberOrg, MemberRoleChange, MemberStatus, MemberViewer, MembersPage, MembersQuery, MessageAttachmentParams, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, Module, ModuleList, ModulePathParam, MuteChat, Notification, NotificationIdParam, NotificationPreference, NotificationPreferences, NotificationView, NotificationsPage, OpenCommunitySpace, OrderedIds, OrgRole, OrgUserBody, OrgUserProfileSchema, OrgUserStatus, Organization, OverviewStats, PageQuery, PatchComment, PatchCourseSettings, PatchDmSettings, PatchSettings, PersonImageParams, PostComment, PostCommentsPage, PostCoverParams, PostFeedPage, PostFlag, PostIdParam, PostView, ProgressReportItem, ProgressStatus, ReactionCounts, ReactionEmoji, Reactions, ReconnectRequest, RedeemInvite, RedeemInviteResult, RenameDownloadAsset, ReorderDownloadAssets, ReorderInput, ReplyToComment, ReportComment, ReportProgress, RequestMemberUpload, RequestUpload, ResolveCommentFlags, ResolveMessageFlags, ResolvePostFlags, Role, SaveActivity, SchedulePost, ScopeOption, ScopeOptionList, ScopeSettings, SendMessage, SetEntitlementStatus, SetNotificationPreferences, SetPostReactions, SetReaction, SetSpaceTopics, SettingsNamespaceParam, SettingsScopeParam, SettingsValue, SpaceDetail, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, SpaceQueue, StartDirectChat, StartGroupChat, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, UpdateAutomationBody, UpdateBundle, UpdateCommunity, UpdateCourse, UpdateDownload, UpdateMemberRole, UpdateModule, UpdateOrganization, UpdatePost, UpdateProfile, UpdateSpace, UpdateWebhookBody, UploadFileParams, UploadTicket, UserProfile, UserProfileSchema, ValidationErrorBody, Webhook, WebhookSecret, paginated, refusals };
@@ -1,19 +1,26 @@
1
- import { ErrorBody, ListQuery, OrgRole, OrgUserProfileSchema, UserProfileSchema, paginated } from "./shared.js";
1
+ import { DateTimeInput, ErrorBody, ListQuery, OrgRole, OrgUserProfileSchema, PageQuery, UserProfileSchema, ValidationErrorBody, paginated, refusals } from "./shared.js";
2
2
  import { Course, CourseIdParam, CourseSettings, CourseStatus, CoursesPage, CoursesQuery, CreateCourse, PatchCourseSettings, UpdateCourse } from "./content.js";
3
- import { AddDownloadAsset, CreateDownload, Download, DownloadAsset, DownloadAssetParams, DownloadIdParam, DownloadStatus, DownloadsPage, DownloadsQuery, RenameDownloadAsset, ReorderDownloadAssets, UpdateDownload } from "./downloads.js";
3
+ import { AddDownloadAsset, CreateDownload, Download, DownloadAssetParams, DownloadFile, DownloadIdParam, DownloadStatus, DownloadsPage, DownloadsQuery, RenameDownloadAsset, ReorderDownloadAssets, UpdateDownload } from "./downloads.js";
4
4
  import { AddBundleItem, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, CreateBundle, UpdateBundle } from "./bundles.js";
5
5
  import { Activity, ActivityAsset, ActivityAssetList, ActivityList, ActivityPathParam, CourseIdPathParam, CreateModule, Module, ModuleList, ModulePathParam, ReorderInput, SaveActivity, UpdateModule } from "./activities.js";
6
- import { CourseProgress, LearnCourseIdParam, LearnCourses, LearnDownload, LearnDownloads, LearnModules, LearnOrg, LearnViewer, ProgressReportItem, ProgressStatus, ReportProgress } from "./learn.js";
7
- import { OrgUserStatus, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, UpdateStudentBody } from "./students.js";
6
+ import { CourseProgress, LearnActivityAssetParams, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberModules, MemberOrg, MemberViewer, ProgressReportItem, ProgressStatus, ReportProgress } from "./member.js";
7
+ import { OrgUserStatus, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery } from "./students.js";
8
8
  import { ContentRef, ContentType, Entitlement, EntitlementIdParam, EntitlementStatus, EntitlementsPage, EntitlementsQuery, GrantEntitlement, SetEntitlementStatus } from "./entitlements.js";
9
9
  import { Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableTriggers, CreateAutomationBody, CreateWebhookBody, CreatedWebhook, UpdateAutomationBody, UpdateWebhookBody, Webhook, WebhookSecret } from "./automations.js";
10
10
  import { CreateOrganization, Organization, UpdateOrganization } from "./organizations.js";
11
- import { Member, MemberIdParam, MemberStatus, MembersPage, MembersQuery, Role, UpdateMemberRole } from "./members.js";
11
+ import { AssignableRole, Member, MemberIdParam, MemberRoleChange, MemberStatus, MembersPage, MembersQuery, Role, UpdateMemberRole } from "./members.js";
12
12
  import { AcceptInvite, AcceptInviteResult, ActivateInvite, ActivateInviteResult, CreateInvite, GetInviteResult, Invite, InviteRole, InviteTokenParam, RedeemInvite, RedeemInviteResult } from "./invites.js";
13
13
  import { EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, OverviewStats } from "./dashboard.js";
14
14
  import { CourseActivityEngagement, CourseAnalytics } from "./course-analytics.js";
15
- import { Asset, AssetIdParam, AssetKind, AssetStatus, AssetsPage, AssetsQuery, DownloadTicket, RequestDownload, RequestUpload, UploadTicket } from "./assets.js";
15
+ import { Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, RequestMemberUpload, RequestUpload, UploadTicket } from "./assets.js";
16
+ import { ActivityFileParams, CommunityThumbnailParams, CourseThumbnailParams, DownloadFileParams, DownloadThumbnailParams, MessageAttachmentParams, PersonImageParams, PostCoverParams, UploadFileParams } from "./files.js";
16
17
  import { ActionInvocationResult, AvailableIntegration, AvailableIntegrationsList, ConfigureRequest, ConnectRequest, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, IntegrationActionInfo, InvokeActionRequest, ReconnectRequest } from "./integrations.js";
17
18
  import { PatchSettings, ScopeSettings, SettingsNamespaceParam, SettingsScopeParam, SettingsValue } from "./settings.js";
18
- import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReactions, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, ReplyToComment, ReportComment, SetCommentReaction } from "./discussion.js";
19
- export { AcceptInvite, AcceptInviteResult, ActionInvocationResult, ActivateInvite, ActivateInviteResult, Activity, ActivityAsset, ActivityAssetList, ActivityComments, ActivityList, ActivityPathParam, AddBundleItem, AddDownloadAsset, Asset, AssetIdParam, AssetKind, AssetStatus, AssetsPage, AssetsQuery, Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableIntegration, AvailableIntegrationsList, AvailableTriggers, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReactions, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, ConfigureRequest, ConnectRequest, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, ContentRef, ContentType, Course, CourseActivityEngagement, CourseAnalytics, CourseIdParam, CourseIdPathParam, CourseProgress, CourseSettings, CourseStatus, CoursesPage, CoursesQuery, CreateAutomationBody, CreateBundle, CreateCourse, CreateDownload, CreateInvite, CreateModule, CreateOrganization, CreateWebhookBody, CreatedWebhook, DiscussionActivityParam, Download, DownloadAsset, DownloadAssetParams, DownloadIdParam, DownloadStatus, DownloadTicket, DownloadsPage, DownloadsQuery, EditComment, EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, Entitlement, EntitlementIdParam, EntitlementStatus, EntitlementsPage, EntitlementsQuery, ErrorBody, GetInviteResult, GrantEntitlement, IntegrationActionInfo, Invite, InviteRole, InviteTokenParam, InvokeActionRequest, LearnCourseIdParam, LearnCourses, LearnDownload, LearnDownloads, LearnModules, LearnOrg, LearnViewer, ListQuery, Member, MemberIdParam, MemberStatus, MembersPage, MembersQuery, Module, ModuleList, ModulePathParam, OrgRole, OrgUserProfileSchema, OrgUserStatus, Organization, OverviewStats, PatchComment, PatchCourseSettings, PatchSettings, PostComment, ProgressReportItem, ProgressStatus, ReactionCounts, ReactionEmoji, ReconnectRequest, RedeemInvite, RedeemInviteResult, RenameDownloadAsset, ReorderDownloadAssets, ReorderInput, ReplyToComment, ReportComment, ReportProgress, RequestDownload, RequestUpload, Role, SaveActivity, ScopeSettings, SetCommentReaction, SetEntitlementStatus, SettingsNamespaceParam, SettingsScopeParam, SettingsValue, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, UpdateAutomationBody, UpdateBundle, UpdateCourse, UpdateDownload, UpdateMemberRole, UpdateModule, UpdateOrganization, UpdateStudentBody, UpdateWebhookBody, UploadTicket, UserProfileSchema, Webhook, WebhookSecret, paginated };
19
+ import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, Reactions, ReplyToComment, ReportComment, ResolveCommentFlags, SetReaction } from "./discussion.js";
20
+ import { ApiKey, ApiKeyIdParam, ApiKeyList, ClientIdParam, ConnectedApp, ConnectedAppList, CreateApiKey, CreatedApiKey, ScopeOption, ScopeOptionList } from "./access.js";
21
+ import { CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityPostParam, CommunitySpaceParam, CreateCommunity, CreateSpace, DirectoryEntry, DirectoryPage, DirectoryQuery, DmSettings, LockedCommunitySpace, OpenCommunitySpace, OrderedIds, PatchDmSettings, SetSpaceTopics, SpaceDetail, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, UpdateCommunity, UpdateSpace } from "./community.js";
22
+ import { CreatePost, FeedQuery, FlagReason, PostCommentsPage, PostFeedPage, PostFlag, PostIdParam, PostView, ResolvePostFlags, SchedulePost, SetPostReactions, SpaceQueue, UpdatePost } from "./posts.js";
23
+ import { BlockParam, Chat, ChatIdParam, ChatListItem, ChatsPage, CommunityParam, EditMessage, MarkRead, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, MuteChat, OrgUserBody, ResolveMessageFlags, SendMessage, StartDirectChat, StartGroupChat } from "./chats.js";
24
+ import { UpdateProfile, UserProfile } from "./profile.js";
25
+ import { MarkedRead, Notification, NotificationIdParam, NotificationPreference, NotificationPreferences, NotificationView, NotificationsPage, SetNotificationPreferences } from "./notifications.js";
26
+ export { AcceptInvite, AcceptInviteResult, ActionInvocationResult, ActivateInvite, ActivateInviteResult, Activity, ActivityAsset, ActivityAssetList, ActivityComments, ActivityFileParams, ActivityList, ActivityPathParam, AddBundleItem, AddDownloadAsset, ApiKey, ApiKeyIdParam, ApiKeyList, Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, AssignableRole, Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableIntegration, AvailableIntegrationsList, AvailableTriggers, BlockParam, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, Chat, ChatIdParam, ChatListItem, ChatsPage, ClientIdParam, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityParam, CommunityPostParam, CommunitySpaceParam, CommunityThumbnailParams, ConfigureRequest, ConnectRequest, ConnectedApp, ConnectedAppList, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, ContentRef, ContentType, Course, CourseActivityEngagement, CourseAnalytics, CourseIdParam, CourseIdPathParam, CourseProgress, CourseSettings, CourseStatus, CourseThumbnailParams, CoursesPage, CoursesQuery, CreateApiKey, CreateAutomationBody, CreateBundle, CreateCommunity, CreateCourse, CreateDownload, CreateInvite, CreateModule, CreateOrganization, CreatePost, CreateSpace, CreateWebhookBody, CreatedApiKey, CreatedWebhook, DateTimeInput, DirectoryEntry, DirectoryPage, DirectoryQuery, DiscussionActivityParam, DmSettings, Download, DownloadAssetParams, DownloadFile, DownloadFileParams, DownloadIdParam, DownloadStatus, DownloadThumbnailParams, DownloadsPage, DownloadsQuery, EditComment, EditMessage, EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, Entitlement, EntitlementIdParam, EntitlementStatus, EntitlementsPage, EntitlementsQuery, ErrorBody, FeedQuery, FlagReason, GetInviteResult, GrantEntitlement, IntegrationActionInfo, Invite, InviteRole, InviteTokenParam, InvokeActionRequest, LearnActivityAssetParams, ListQuery, LockedCommunitySpace, MarkRead, MarkedRead, Member, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberIdParam, MemberModules, MemberOrg, MemberRoleChange, MemberStatus, MemberViewer, MembersPage, MembersQuery, MessageAttachmentParams, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, Module, ModuleList, ModulePathParam, MuteChat, Notification, NotificationIdParam, NotificationPreference, NotificationPreferences, NotificationView, NotificationsPage, OpenCommunitySpace, OrderedIds, OrgRole, OrgUserBody, OrgUserProfileSchema, OrgUserStatus, Organization, OverviewStats, PageQuery, PatchComment, PatchCourseSettings, PatchDmSettings, PatchSettings, PersonImageParams, PostComment, PostCommentsPage, PostCoverParams, PostFeedPage, PostFlag, PostIdParam, PostView, ProgressReportItem, ProgressStatus, ReactionCounts, ReactionEmoji, Reactions, ReconnectRequest, RedeemInvite, RedeemInviteResult, RenameDownloadAsset, ReorderDownloadAssets, ReorderInput, ReplyToComment, ReportComment, ReportProgress, RequestMemberUpload, RequestUpload, ResolveCommentFlags, ResolveMessageFlags, ResolvePostFlags, Role, SaveActivity, SchedulePost, ScopeOption, ScopeOptionList, ScopeSettings, SendMessage, SetEntitlementStatus, SetNotificationPreferences, SetPostReactions, SetReaction, SetSpaceTopics, SettingsNamespaceParam, SettingsScopeParam, SettingsValue, SpaceDetail, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, SpaceQueue, StartDirectChat, StartGroupChat, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, UpdateAutomationBody, UpdateBundle, UpdateCommunity, UpdateCourse, UpdateDownload, UpdateMemberRole, UpdateModule, UpdateOrganization, UpdatePost, UpdateProfile, UpdateSpace, UpdateWebhookBody, UploadFileParams, UploadTicket, UserProfile, UserProfileSchema, ValidationErrorBody, Webhook, WebhookSecret, paginated, refusals };
@@ -39,8 +39,8 @@ declare const Connection: z.ZodObject<{
39
39
  id: z.ZodString;
40
40
  createdAt: z.ZodCoercedDate<unknown>;
41
41
  updatedAt: z.ZodCoercedDate<unknown>;
42
- config: z.ZodRecord<z.ZodString, z.ZodType<import("@headless-lms/core/types").JsonValue, unknown, z.core.$ZodTypeInternals<import("@headless-lms/core/types").JsonValue, unknown>>>;
43
42
  active: z.ZodBoolean;
43
+ config: z.ZodRecord<z.ZodString, z.ZodType<import("@headless-lms/core/types").JsonValue, unknown, z.core.$ZodTypeInternals<import("@headless-lms/core/types").JsonValue, unknown>>>;
44
44
  integrationId: z.ZodString;
45
45
  }, z.core.$strict>;
46
46
  type Connection = z.infer<typeof Connection>;
@@ -49,8 +49,8 @@ declare const ConnectionsList: z.ZodArray<z.ZodObject<{
49
49
  id: z.ZodString;
50
50
  createdAt: z.ZodCoercedDate<unknown>;
51
51
  updatedAt: z.ZodCoercedDate<unknown>;
52
- config: z.ZodRecord<z.ZodString, z.ZodType<import("@headless-lms/core/types").JsonValue, unknown, z.core.$ZodTypeInternals<import("@headless-lms/core/types").JsonValue, unknown>>>;
53
52
  active: z.ZodBoolean;
53
+ config: z.ZodRecord<z.ZodString, z.ZodType<import("@headless-lms/core/types").JsonValue, unknown, z.core.$ZodTypeInternals<import("@headless-lms/core/types").JsonValue, unknown>>>;
54
54
  integrationId: z.ZodString;
55
55
  }, z.core.$strict>>;
56
56
  type ConnectionsList = z.infer<typeof ConnectionsList>;
@@ -4,6 +4,7 @@ import { z } from "zod";
4
4
  declare const InviteRole: z.ZodEnum<{
5
5
  admin: "admin";
6
6
  instructor: "instructor";
7
+ moderator: "moderator";
7
8
  student: "student";
8
9
  }>;
9
10
  type InviteRole = z.infer<typeof InviteRole>;
@@ -13,6 +14,7 @@ declare const Invite: z.ZodObject<{
13
14
  role: z.ZodEnum<{
14
15
  admin: "admin";
15
16
  instructor: "instructor";
17
+ moderator: "moderator";
16
18
  student: "student";
17
19
  }>;
18
20
  status: z.ZodString;
@@ -29,6 +31,7 @@ declare const CreateInvite: z.ZodObject<{
29
31
  role: z.ZodEnum<{
30
32
  admin: "admin";
31
33
  instructor: "instructor";
34
+ moderator: "moderator";
32
35
  student: "student";
33
36
  }>;
34
37
  firstName: z.ZodOptional<z.ZodString>;
@@ -52,6 +55,7 @@ declare const ActivateInviteResult: z.ZodObject<{
52
55
  role: z.ZodEnum<{
53
56
  admin: "admin";
54
57
  instructor: "instructor";
58
+ moderator: "moderator";
55
59
  student: "student";
56
60
  }>;
57
61
  accountExists: z.ZodBoolean;
@@ -5,6 +5,7 @@ import { emailSchema } from "@headless-lms/core/schemas";
5
5
  const InviteRole = z.enum([
6
6
  "admin",
7
7
  "instructor",
8
+ "moderator",
8
9
  "student"
9
10
  ]);
10
11
  const Invite = z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"invites.js","names":[],"sources":["../../../src/http/schemas/invites.ts"],"sourcesContent":["// Invites resource schemas — domain-owned invites (staff + student).\nimport { z } from 'zod';\nimport { emailSchema } from '@headless-lms/core/schemas';\n\n/** Roles an invitation can carry. Never owner. */\nexport const InviteRole = z.enum(['admin', 'instructor', 'student']);\nexport type InviteRole = z.infer<typeof InviteRole>;\n\nexport const Invite = z.object({\n id: z.string(),\n email: z.string(),\n role: InviteRole,\n status: z.string(),\n expiresAt: z.date().nullable(),\n createdAt: z.date(),\n});\nexport type Invite = z.infer<typeof Invite>;\n\n/** A student is created by this call, not by the acceptance that follows it, so\n * the admin names them here. `sendEmail: false` still creates everything —\n * only delivery is skipped. Both are ignored for staff roles, whose org user\n * is mirrored from the auth provider when they join. */\nexport const CreateInvite = z.object({\n email: emailSchema,\n role: InviteRole,\n firstName: z.string().trim().min(1).optional(),\n lastName: z.string().trim().min(1).optional(),\n sendEmail: z.boolean().default(true),\n});\nexport type CreateInvite = z.infer<typeof CreateInvite>;\n\nexport const ActivateInvite = z.object({ token: z.string().min(1) });\nexport type ActivateInvite = z.infer<typeof ActivateInvite>;\n\n/** accepted → consumed for the current session; auth-required → sign up/in first.\n * accountExists says which of the two: the invitee's email already has an\n * account (sign in to link it) or it does not (create one). */\nexport const ActivateInviteResult = z.object({\n status: z.enum(['accepted', 'auth-required']),\n email: z.string(),\n role: InviteRole,\n accountExists: z.boolean(),\n});\nexport type ActivateInviteResult = z.infer<typeof ActivateInviteResult>;\n\nexport const InviteTokenParam = z.object({ token: z.string().min(1) });\nexport type InviteTokenParam = z.infer<typeof InviteTokenParam>;\n\n/** Everything the invite landing page needs to render: who the invitation is\n * for, and the names the admin entered, which prefill sign-up. Whether the\n * address already has a login is not reported — the sign-up form discovers\n * that from a duplicate-signup rejection and switches to sign-in. */\nexport const GetInviteResult = z.object({\n email: z.string(),\n firstName: z.string().nullable(),\n lastName: z.string().nullable(),\n});\nexport type GetInviteResult = z.infer<typeof GetInviteResult>;\n\n/** Redeem: mints the session and accepts the invite in one request. `name` is\n * required only when no account exists yet (the sign-up branch). The email is\n * never sent — it is read from the invitation row, so it cannot be steered. */\nexport const RedeemInvite = z.object({\n token: z.string().min(1),\n password: z.string().min(1),\n name: z.string().min(1).optional(),\n});\nexport type RedeemInvite = z.infer<typeof RedeemInvite>;\n\nexport const RedeemInviteResult = z.object({ status: z.literal('accepted') });\nexport type RedeemInviteResult = z.infer<typeof RedeemInviteResult>;\n\nexport const AcceptInvite = z.object({ token: z.string().min(1) });\nexport type AcceptInvite = z.infer<typeof AcceptInvite>;\n\nexport const AcceptInviteResult = z.object({});\nexport type AcceptInviteResult = z.infer<typeof AcceptInviteResult>;\n"],"mappings":";;;;AAKA,MAAa,aAAa,EAAE,KAAK;CAAC;CAAS;CAAc;AAAS,CAAC;AAGnE,MAAa,SAAS,EAAE,OAAO;CAC7B,IAAI,EAAE,OAAO;CACb,OAAO,EAAE,OAAO;CAChB,MAAM;CACN,QAAQ,EAAE,OAAO;CACjB,WAAW,EAAE,KAAK,CAAC,CAAC,SAAS;CAC7B,WAAW,EAAE,KAAK;AACpB,CAAC;;;;;AAOD,MAAa,eAAe,EAAE,OAAO;CACnC,OAAO;CACP,MAAM;CACN,WAAW,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CAC5C,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI;AACrC,CAAC;AAGD,MAAa,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;;;;AAMnE,MAAa,uBAAuB,EAAE,OAAO;CAC3C,QAAQ,EAAE,KAAK,CAAC,YAAY,eAAe,CAAC;CAC5C,OAAO,EAAE,OAAO;CAChB,MAAM;CACN,eAAe,EAAE,QAAQ;AAC3B,CAAC;AAGD,MAAa,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;AAOrE,MAAa,kBAAkB,EAAE,OAAO;CACtC,OAAO,EAAE,OAAO;CAChB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC;;;;AAMD,MAAa,eAAe,EAAE,OAAO;CACnC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACvB,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;AACnC,CAAC;AAGD,MAAa,qBAAqB,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,UAAU,EAAE,CAAC;AAG5E,MAAa,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AAGjE,MAAa,qBAAqB,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"invites.js","names":[],"sources":["../../../src/http/schemas/invites.ts"],"sourcesContent":["// Invites resource schemas — domain-owned invites (staff + student).\nimport { z } from 'zod';\nimport { emailSchema } from '@headless-lms/core/schemas';\n\n/** Roles an invitation can carry. Never owner. */\nexport const InviteRole = z.enum(['admin', 'instructor', 'moderator', 'student']);\nexport type InviteRole = z.infer<typeof InviteRole>;\n\nexport const Invite = z.object({\n id: z.string(),\n email: z.string(),\n role: InviteRole,\n status: z.string(),\n expiresAt: z.date().nullable(),\n createdAt: z.date(),\n});\nexport type Invite = z.infer<typeof Invite>;\n\n/** A student is created by this call, not by the acceptance that follows it, so\n * the admin names them here. `sendEmail: false` still creates everything —\n * only delivery is skipped. Both are ignored for staff roles, whose org user\n * is mirrored from the auth provider when they join. */\nexport const CreateInvite = z.object({\n email: emailSchema,\n role: InviteRole,\n firstName: z.string().trim().min(1).optional(),\n lastName: z.string().trim().min(1).optional(),\n sendEmail: z.boolean().default(true),\n});\nexport type CreateInvite = z.infer<typeof CreateInvite>;\n\nexport const ActivateInvite = z.object({ token: z.string().min(1) });\nexport type ActivateInvite = z.infer<typeof ActivateInvite>;\n\n/** accepted → consumed for the current session; auth-required → sign up/in first.\n * accountExists says which of the two: the invitee's email already has an\n * account (sign in to link it) or it does not (create one). */\nexport const ActivateInviteResult = z.object({\n status: z.enum(['accepted', 'auth-required']),\n email: z.string(),\n role: InviteRole,\n accountExists: z.boolean(),\n});\nexport type ActivateInviteResult = z.infer<typeof ActivateInviteResult>;\n\nexport const InviteTokenParam = z.object({ token: z.string().min(1) });\nexport type InviteTokenParam = z.infer<typeof InviteTokenParam>;\n\n/** Everything the invite landing page needs to render: who the invitation is\n * for, and the names the admin entered, which prefill sign-up. Whether the\n * address already has a login is not reported — the sign-up form discovers\n * that from a duplicate-signup rejection and switches to sign-in. */\nexport const GetInviteResult = z.object({\n email: z.string(),\n firstName: z.string().nullable(),\n lastName: z.string().nullable(),\n});\nexport type GetInviteResult = z.infer<typeof GetInviteResult>;\n\n/** Redeem: mints the session and accepts the invite in one request. `name` is\n * required only when no account exists yet (the sign-up branch). The email is\n * never sent — it is read from the invitation row, so it cannot be steered. */\nexport const RedeemInvite = z.object({\n token: z.string().min(1),\n password: z.string().min(1),\n name: z.string().min(1).optional(),\n});\nexport type RedeemInvite = z.infer<typeof RedeemInvite>;\n\nexport const RedeemInviteResult = z.object({ status: z.literal('accepted') });\nexport type RedeemInviteResult = z.infer<typeof RedeemInviteResult>;\n\nexport const AcceptInvite = z.object({ token: z.string().min(1) });\nexport type AcceptInvite = z.infer<typeof AcceptInvite>;\n\nexport const AcceptInviteResult = z.object({});\nexport type AcceptInviteResult = z.infer<typeof AcceptInviteResult>;\n"],"mappings":";;;;AAKA,MAAa,aAAa,EAAE,KAAK;CAAC;CAAS;CAAc;CAAa;AAAS,CAAC;AAGhF,MAAa,SAAS,EAAE,OAAO;CAC7B,IAAI,EAAE,OAAO;CACb,OAAO,EAAE,OAAO;CAChB,MAAM;CACN,QAAQ,EAAE,OAAO;CACjB,WAAW,EAAE,KAAK,CAAC,CAAC,SAAS;CAC7B,WAAW,EAAE,KAAK;AACpB,CAAC;;;;;AAOD,MAAa,eAAe,EAAE,OAAO;CACnC,OAAO;CACP,MAAM;CACN,WAAW,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CAC5C,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI;AACrC,CAAC;AAGD,MAAa,iBAAiB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;;;;AAMnE,MAAa,uBAAuB,EAAE,OAAO;CAC3C,QAAQ,EAAE,KAAK,CAAC,YAAY,eAAe,CAAC;CAC5C,OAAO,EAAE,OAAO;CAChB,MAAM;CACN,eAAe,EAAE,QAAQ;AAC3B,CAAC;AAGD,MAAa,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;AAOrE,MAAa,kBAAkB,EAAE,OAAO;CACtC,OAAO,EAAE,OAAO;CAChB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC;;;;AAMD,MAAa,eAAe,EAAE,OAAO;CACnC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACvB,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;AACnC,CAAC;AAGD,MAAa,qBAAqB,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,UAAU,EAAE,CAAC;AAG5E,MAAa,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AAGjE,MAAa,qBAAqB,EAAE,OAAO,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
- //#region src/http/schemas/learn.d.ts
2
+ //#region src/http/schemas/member.d.ts
3
3
  /** Courses the authenticated student is actively enrolled in (published only). */
4
- declare const LearnCourses: z.ZodArray<z.ZodObject<{
4
+ declare const MemberCourses: z.ZodArray<z.ZodObject<{
5
5
  orgId: z.ZodString;
6
6
  id: z.ZodString;
7
7
  type: z.ZodLiteral<"course">;
@@ -25,10 +25,11 @@ declare const LearnCourses: z.ZodArray<z.ZodObject<{
25
25
  }, z.core.$strict>;
26
26
  createdAt: z.ZodCoercedDate<unknown>;
27
27
  updatedAt: z.ZodCoercedDate<unknown>;
28
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
28
29
  }, z.core.$strict>>;
29
- type LearnCourses = z.infer<typeof LearnCourses>;
30
+ type MemberCourses = z.infer<typeof MemberCourses>;
30
31
  /** One enrolled course's module→activity tree (published activities only). */
31
- declare const LearnModules: z.ZodArray<z.ZodObject<{
32
+ declare const MemberModules: z.ZodArray<z.ZodObject<{
32
33
  orgId: z.ZodString;
33
34
  id: z.ZodString;
34
35
  courseId: z.ZodString;
@@ -37,13 +38,18 @@ declare const LearnModules: z.ZodArray<z.ZodObject<{
37
38
  createdAt: z.ZodCoercedDate<unknown>;
38
39
  updatedAt: z.ZodCoercedDate<unknown>;
39
40
  }, z.core.$strict>>;
40
- type LearnModules = z.infer<typeof LearnModules>;
41
- declare const LearnCourseIdParam: z.ZodObject<{
41
+ type MemberModules = z.infer<typeof MemberModules>;
42
+ declare const MemberCourseIdParam: z.ZodObject<{
42
43
  courseId: z.ZodString;
43
44
  }, z.core.$strip>;
44
- type LearnCourseIdParam = z.infer<typeof LearnCourseIdParam>;
45
+ type MemberCourseIdParam = z.infer<typeof MemberCourseIdParam>;
46
+ declare const LearnActivityAssetParams: z.ZodObject<{
47
+ activityId: z.ZodString;
48
+ assetId: z.ZodString;
49
+ }, z.core.$strip>;
50
+ type LearnActivityAssetParams = z.infer<typeof LearnActivityAssetParams>;
45
51
  /** Downloads the authenticated student is actively entitled to (published only). */
46
- declare const LearnDownloads: z.ZodArray<z.ZodObject<{
52
+ declare const MemberDownloads: z.ZodArray<z.ZodObject<{
47
53
  orgId: z.ZodString;
48
54
  id: z.ZodString;
49
55
  type: z.ZodLiteral<"download">;
@@ -58,10 +64,11 @@ declare const LearnDownloads: z.ZodArray<z.ZodObject<{
58
64
  thumbnailAssetId: z.ZodNullable<z.ZodString>;
59
65
  createdAt: z.ZodCoercedDate<unknown>;
60
66
  updatedAt: z.ZodCoercedDate<unknown>;
67
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
61
68
  }, z.core.$strict>>;
62
- type LearnDownloads = z.infer<typeof LearnDownloads>;
69
+ type MemberDownloads = z.infer<typeof MemberDownloads>;
63
70
  /** One entitled download plus its ordered assets. */
64
- declare const LearnDownload: z.ZodObject<{
71
+ declare const MemberDownload: z.ZodObject<{
65
72
  download: z.ZodObject<{
66
73
  orgId: z.ZodString;
67
74
  id: z.ZodString;
@@ -77,6 +84,7 @@ declare const LearnDownload: z.ZodObject<{
77
84
  thumbnailAssetId: z.ZodNullable<z.ZodString>;
78
85
  createdAt: z.ZodCoercedDate<unknown>;
79
86
  updatedAt: z.ZodCoercedDate<unknown>;
87
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
80
88
  }, z.core.$strict>;
81
89
  assets: z.ZodArray<z.ZodObject<{
82
90
  orgId: z.ZodString;
@@ -87,28 +95,33 @@ declare const LearnDownload: z.ZodObject<{
87
95
  displayName: z.ZodNullable<z.ZodString>;
88
96
  createdAt: z.ZodCoercedDate<unknown>;
89
97
  updatedAt: z.ZodCoercedDate<unknown>;
98
+ filename: z.ZodString;
99
+ contentType: z.ZodString;
100
+ size: z.ZodNumber;
101
+ url: z.ZodString;
90
102
  }, z.core.$strict>>;
91
103
  }, z.core.$strip>;
92
- type LearnDownload = z.infer<typeof LearnDownload>;
104
+ type MemberDownload = z.infer<typeof MemberDownload>;
93
105
  /** The portal org's public identity — the student surface themes against it. */
94
- declare const LearnOrg: z.ZodObject<{
106
+ declare const MemberOrg: z.ZodObject<{
95
107
  id: z.ZodString;
96
108
  name: z.ZodString;
97
109
  slug: z.ZodString;
98
110
  }, z.core.$strip>;
99
- type LearnOrg = z.infer<typeof LearnOrg>;
111
+ type MemberOrg = z.infer<typeof MemberOrg>;
100
112
  /** Who the caller is within the session's org. The session cookie identifies
101
113
  * an auth user; the learner surface is keyed on `org_users.id`. */
102
- declare const LearnViewer: z.ZodObject<{
114
+ declare const MemberViewer: z.ZodObject<{
103
115
  orgUserId: z.ZodString;
104
116
  role: z.ZodEnum<{
105
117
  owner: "owner";
106
118
  admin: "admin";
107
119
  instructor: "instructor";
120
+ moderator: "moderator";
108
121
  student: "student";
109
122
  }>;
110
123
  }, z.core.$strip>;
111
- type LearnViewer = z.infer<typeof LearnViewer>;
124
+ type MemberViewer = z.infer<typeof MemberViewer>;
112
125
  /** One reported fact — never a decision. `asset` names the subject within the
113
126
  * activity (absent = the activity itself); `completed` is the learner's
114
127
  * activity-level claim. Every other field is the asset type's own vocabulary,
@@ -126,7 +139,7 @@ declare const ReportProgress: z.ZodObject<{
126
139
  asset: z.ZodOptional<z.ZodString>;
127
140
  completed: z.ZodOptional<z.ZodBoolean>;
128
141
  }, z.core.$catchall<z.ZodType<import("@headless-lms/core/types").JsonValue, unknown, z.core.$ZodTypeInternals<import("@headless-lms/core/types").JsonValue, unknown>>>>>;
129
- }, z.core.$strip>;
142
+ }, z.core.$strict>;
130
143
  type ReportProgress = z.infer<typeof ReportProgress>;
131
144
  /** The reported target's state after the service decided. */
132
145
  declare const ProgressStatus: z.ZodObject<{
@@ -148,5 +161,5 @@ declare const CourseProgress: z.ZodObject<{
148
161
  }, z.core.$strip>;
149
162
  type CourseProgress = z.infer<typeof CourseProgress>;
150
163
  //#endregion
151
- export { CourseProgress, LearnCourseIdParam, LearnCourses, LearnDownload, LearnDownloads, LearnModules, LearnOrg, LearnViewer, ProgressReportItem, ProgressStatus, ReportProgress };
152
- //# sourceMappingURL=learn.d.ts.map
164
+ export { CourseProgress, LearnActivityAssetParams, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberModules, MemberOrg, MemberViewer, ProgressReportItem, ProgressStatus, ReportProgress };
165
+ //# sourceMappingURL=member.d.ts.map
@@ -1,31 +1,35 @@
1
1
  import { OrgRole } from "./shared.js";
2
2
  import { Course } from "./content.js";
3
- import { Download, DownloadAsset } from "./downloads.js";
3
+ import { Download, DownloadFile } from "./downloads.js";
4
4
  import { Module } from "./activities.js";
5
5
  import { z } from "zod";
6
6
  import { progressReportItemSchema } from "@headless-lms/core/schemas";
7
- //#region src/http/schemas/learn.ts
7
+ //#region src/http/schemas/member.ts
8
8
  /** Courses the authenticated student is actively enrolled in (published only). */
9
- const LearnCourses = z.array(Course);
9
+ const MemberCourses = z.array(Course);
10
10
  /** One enrolled course's module→activity tree (published activities only). */
11
- const LearnModules = z.array(Module);
12
- const LearnCourseIdParam = z.object({ courseId: z.string() });
11
+ const MemberModules = z.array(Module);
12
+ const MemberCourseIdParam = z.object({ courseId: z.string() });
13
+ const LearnActivityAssetParams = z.object({
14
+ activityId: z.string(),
15
+ assetId: z.string()
16
+ });
13
17
  /** Downloads the authenticated student is actively entitled to (published only). */
14
- const LearnDownloads = z.array(Download);
18
+ const MemberDownloads = z.array(Download);
15
19
  /** One entitled download plus its ordered assets. */
16
- const LearnDownload = z.object({
20
+ const MemberDownload = z.object({
17
21
  download: Download,
18
- assets: z.array(DownloadAsset)
22
+ assets: z.array(DownloadFile)
19
23
  });
20
24
  /** The portal org's public identity — the student surface themes against it. */
21
- const LearnOrg = z.object({
25
+ const MemberOrg = z.object({
22
26
  id: z.string(),
23
27
  name: z.string(),
24
28
  slug: z.string()
25
29
  });
26
30
  /** Who the caller is within the session's org. The session cookie identifies
27
31
  * an auth user; the learner surface is keyed on `org_users.id`. */
28
- const LearnViewer = z.object({
32
+ const MemberViewer = z.object({
29
33
  orgUserId: z.string(),
30
34
  role: OrgRole
31
35
  });
@@ -39,7 +43,7 @@ const ProgressReportItem = progressReportItemSchema;
39
43
  const ReportProgress = z.object({
40
44
  activity: z.string(),
41
45
  reports: z.array(ProgressReportItem)
42
- });
46
+ }).strict();
43
47
  /** The reported target's state after the service decided. */
44
48
  const ProgressStatus = z.object({ status: z.enum(["in-progress", "completed"]) });
45
49
  /** Per-course progress, derived on read against current structure. */
@@ -53,6 +57,6 @@ const CourseProgress = z.object({
53
57
  positions: z.record(z.string(), z.unknown())
54
58
  });
55
59
  //#endregion
56
- export { CourseProgress, LearnCourseIdParam, LearnCourses, LearnDownload, LearnDownloads, LearnModules, LearnOrg, LearnViewer, ProgressReportItem, ProgressStatus, ReportProgress };
60
+ export { CourseProgress, LearnActivityAssetParams, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberModules, MemberOrg, MemberViewer, ProgressReportItem, ProgressStatus, ReportProgress };
57
61
 
58
- //# sourceMappingURL=learn.js.map
62
+ //# sourceMappingURL=member.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"member.js","names":[],"sources":["../../../src/http/schemas/member.ts"],"sourcesContent":["// Member resource schemas — the student-facing read surface. Reuses the Course\n// and Module payloads (identical wire shape to the back-office API, including\n// the opaque activity `settings` blob) so one renderer path serves both.\nimport { z } from 'zod';\nimport { progressReportItemSchema } from '@headless-lms/core/schemas';\nimport { Course } from './content.js';\nimport { Module } from './activities.js';\nimport { Download, DownloadFile } from './downloads.js';\nimport { OrgRole } from './shared.js';\n\n/** Courses the authenticated student is actively enrolled in (published only). */\nexport const MemberCourses = z.array(Course);\nexport type MemberCourses = z.infer<typeof MemberCourses>;\n\n/** One enrolled course's module→activity tree (published activities only). */\nexport const MemberModules = z.array(Module);\nexport type MemberModules = z.infer<typeof MemberModules>;\n\nexport const MemberCourseIdParam = z.object({ courseId: z.string() });\nexport type MemberCourseIdParam = z.infer<typeof MemberCourseIdParam>;\n\nexport const LearnActivityAssetParams = z.object({ activityId: z.string(), assetId: z.string() });\nexport type LearnActivityAssetParams = z.infer<typeof LearnActivityAssetParams>;\n\n/** Downloads the authenticated student is actively entitled to (published only). */\nexport const MemberDownloads = z.array(Download);\nexport type MemberDownloads = z.infer<typeof MemberDownloads>;\n\n/** One entitled download plus its ordered assets. */\nexport const MemberDownload = z.object({\n download: Download,\n assets: z.array(DownloadFile),\n});\nexport type MemberDownload = z.infer<typeof MemberDownload>;\n\n/** The portal org's public identity — the student surface themes against it. */\nexport const MemberOrg = z.object({\n id: z.string(),\n name: z.string(),\n slug: z.string(),\n});\nexport type MemberOrg = z.infer<typeof MemberOrg>;\n\n/** Who the caller is within the session's org. The session cookie identifies\n * an auth user; the learner surface is keyed on `org_users.id`. */\nexport const MemberViewer = z.object({\n orgUserId: z.string(),\n role: OrgRole,\n});\nexport type MemberViewer = z.infer<typeof MemberViewer>;\n\n/** One reported fact — never a decision. `asset` names the subject within the\n * activity (absent = the activity itself); `completed` is the learner's\n * activity-level claim. Every other field is the asset type's own vocabulary,\n * passed through opaquely. */\nexport const ProgressReportItem = progressReportItemSchema;\nexport type ProgressReportItem = z.infer<typeof ProgressReportItem>;\n\n/** The report envelope: the target (key names the content type) and a batch of\n * items. `[]` is a bare touch — it creates the record. */\nexport const ReportProgress = z\n .object({\n activity: z.string(),\n reports: z.array(ProgressReportItem),\n })\n .strict();\nexport type ReportProgress = z.infer<typeof ReportProgress>;\n\n/** The reported target's state after the service decided. */\nexport const ProgressStatus = z.object({\n status: z.enum(['in-progress', 'completed']),\n});\nexport type ProgressStatus = z.infer<typeof ProgressStatus>;\n\n/** Per-course progress, derived on read against current structure. */\nexport const CourseProgress = z.object({\n /** Keyed by activity id; absent key = not started. */\n activities: z.record(z.string(), z.enum(['in-progress', 'completed'])),\n /** Integer 0–100, completed ÷ current activities, rounded. */\n percent: z.int().min(0).max(100),\n completed: z.boolean(),\n /** Keyed by activity id: the per-asset reported state map (opaque). */\n positions: z.record(z.string(), z.unknown()),\n});\nexport type CourseProgress = z.infer<typeof CourseProgress>;\n"],"mappings":";;;;;;;;AAWA,MAAa,gBAAgB,EAAE,MAAM,MAAM;;AAI3C,MAAa,gBAAgB,EAAE,MAAM,MAAM;AAG3C,MAAa,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAGpE,MAAa,2BAA2B,EAAE,OAAO;CAAE,YAAY,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;;AAIhG,MAAa,kBAAkB,EAAE,MAAM,QAAQ;;AAI/C,MAAa,iBAAiB,EAAE,OAAO;CACrC,UAAU;CACV,QAAQ,EAAE,MAAM,YAAY;AAC9B,CAAC;;AAID,MAAa,YAAY,EAAE,OAAO;CAChC,IAAI,EAAE,OAAO;CACb,MAAM,EAAE,OAAO;CACf,MAAM,EAAE,OAAO;AACjB,CAAC;;;AAKD,MAAa,eAAe,EAAE,OAAO;CACnC,WAAW,EAAE,OAAO;CACpB,MAAM;AACR,CAAC;;;;;AAOD,MAAa,qBAAqB;;;AAKlC,MAAa,iBAAiB,EAC3B,OAAO;CACN,UAAU,EAAE,OAAO;CACnB,SAAS,EAAE,MAAM,kBAAkB;AACrC,CAAC,CAAC,CACD,OAAO;;AAIV,MAAa,iBAAiB,EAAE,OAAO,EACrC,QAAQ,EAAE,KAAK,CAAC,eAAe,WAAW,CAAC,EAC7C,CAAC;;AAID,MAAa,iBAAiB,EAAE,OAAO;;CAErC,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,eAAe,WAAW,CAAC,CAAC;;CAErE,SAAS,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG;CAC/B,WAAW,EAAE,QAAQ;;CAErB,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;AAC7C,CAAC"}
@@ -5,11 +5,12 @@ declare const Role: z.ZodEnum<{
5
5
  owner: "owner";
6
6
  admin: "admin";
7
7
  instructor: "instructor";
8
+ moderator: "moderator";
8
9
  }>;
9
10
  type Role = z.infer<typeof Role>;
10
11
  declare const MemberStatus: z.ZodEnum<{
11
- active: "active";
12
12
  invited: "invited";
13
+ active: "active";
13
14
  }>;
14
15
  type MemberStatus = z.infer<typeof MemberStatus>;
15
16
  declare const Member: z.ZodObject<{
@@ -22,10 +23,11 @@ declare const Member: z.ZodObject<{
22
23
  owner: "owner";
23
24
  admin: "admin";
24
25
  instructor: "instructor";
26
+ moderator: "moderator";
25
27
  }>;
26
28
  status: z.ZodEnum<{
27
- active: "active";
28
29
  invited: "invited";
30
+ active: "active";
29
31
  }>;
30
32
  joinedAt: z.ZodNullable<z.ZodString>;
31
33
  invitedAt: z.ZodNullable<z.ZodString>;
@@ -40,10 +42,11 @@ declare const MembersQuery: z.ZodObject<{
40
42
  owner: "owner";
41
43
  admin: "admin";
42
44
  instructor: "instructor";
45
+ moderator: "moderator";
43
46
  }>>;
44
47
  status: z.ZodOptional<z.ZodEnum<{
45
- active: "active";
46
48
  invited: "invited";
49
+ active: "active";
47
50
  }>>;
48
51
  }, z.core.$strip>;
49
52
  type MembersQuery = z.infer<typeof MembersQuery>;
@@ -58,10 +61,11 @@ declare const MembersPage: z.ZodObject<{
58
61
  owner: "owner";
59
62
  admin: "admin";
60
63
  instructor: "instructor";
64
+ moderator: "moderator";
61
65
  }>;
62
66
  status: z.ZodEnum<{
63
- active: "active";
64
67
  invited: "invited";
68
+ active: "active";
65
69
  }>;
66
70
  joinedAt: z.ZodNullable<z.ZodString>;
67
71
  invitedAt: z.ZodNullable<z.ZodString>;
@@ -71,18 +75,47 @@ declare const MembersPage: z.ZodObject<{
71
75
  pageSize: z.ZodNumber;
72
76
  }, z.core.$strip>;
73
77
  type MembersPage = z.infer<typeof MembersPage>;
78
+ declare const AssignableRole: z.ZodEnum<{
79
+ admin: "admin";
80
+ instructor: "instructor";
81
+ moderator: "moderator";
82
+ student: "student";
83
+ }>;
84
+ type AssignableRole = z.infer<typeof AssignableRole>;
74
85
  declare const UpdateMemberRole: z.ZodObject<{
75
86
  role: z.ZodEnum<{
76
- owner: "owner";
77
87
  admin: "admin";
78
88
  instructor: "instructor";
89
+ moderator: "moderator";
90
+ student: "student";
79
91
  }>;
80
92
  }, z.core.$strip>;
81
93
  type UpdateMemberRole = z.infer<typeof UpdateMemberRole>;
94
+ declare const MemberRoleChange: z.ZodObject<{
95
+ id: z.ZodString;
96
+ firstName: z.ZodNullable<z.ZodString>;
97
+ lastName: z.ZodNullable<z.ZodString>;
98
+ email: z.ZodString;
99
+ image: z.ZodNullable<z.ZodString>;
100
+ status: z.ZodEnum<{
101
+ invited: "invited";
102
+ active: "active";
103
+ }>;
104
+ joinedAt: z.ZodNullable<z.ZodString>;
105
+ invitedAt: z.ZodNullable<z.ZodString>;
106
+ role: z.ZodEnum<{
107
+ owner: "owner";
108
+ admin: "admin";
109
+ instructor: "instructor";
110
+ moderator: "moderator";
111
+ student: "student";
112
+ }>;
113
+ }, z.core.$strip>;
114
+ type MemberRoleChange = z.infer<typeof MemberRoleChange>;
82
115
  declare const MemberIdParam: z.ZodObject<{
83
116
  id: z.ZodString;
84
117
  }, z.core.$strip>;
85
118
  type MemberIdParam = z.infer<typeof MemberIdParam>;
86
119
  //#endregion
87
- export { Member, MemberIdParam, MemberStatus, MembersPage, MembersQuery, Role, UpdateMemberRole };
120
+ export { AssignableRole, Member, MemberIdParam, MemberRoleChange, MemberStatus, MembersPage, MembersQuery, Role, UpdateMemberRole };
88
121
  //# sourceMappingURL=members.d.ts.map