@headless-lms/core 0.4.0 → 0.5.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 (249) hide show
  1. package/dist/assets/events.d.ts +27 -21
  2. package/dist/assets/file-urls.d.ts +11 -7
  3. package/dist/assets/file-urls.js +14 -4
  4. package/dist/assets/file-urls.js.map +1 -1
  5. package/dist/assets/index.d.ts +4 -4
  6. package/dist/assets/index.js +3 -3
  7. package/dist/assets/ports.d.ts +34 -15
  8. package/dist/assets/service.d.ts +30 -14
  9. package/dist/assets/service.js +230 -56
  10. package/dist/assets/service.js.map +1 -1
  11. package/dist/automations/actions.js.map +1 -1
  12. package/dist/automations/catalog.js +69 -4
  13. package/dist/automations/catalog.js.map +1 -1
  14. package/dist/automations/community-derivations.js +16 -16
  15. package/dist/automations/community-derivations.js.map +1 -1
  16. package/dist/automations/community-mail.d.ts +34 -4
  17. package/dist/automations/community-mail.js +32 -4
  18. package/dist/automations/community-mail.js.map +1 -1
  19. package/dist/automations/event-permissions.d.ts +12 -0
  20. package/dist/automations/event-permissions.js +38 -0
  21. package/dist/automations/event-permissions.js.map +1 -0
  22. package/dist/automations/index.d.ts +2 -1
  23. package/dist/automations/index.js +2 -1
  24. package/dist/automations/notifications/applicable.d.ts +8 -0
  25. package/dist/automations/notifications/applicable.js +12 -0
  26. package/dist/automations/notifications/applicable.js.map +1 -0
  27. package/dist/automations/notifications/debounce.js +1 -1
  28. package/dist/automations/notifications/debounce.js.map +1 -1
  29. package/dist/automations/notifications/defaults.js +33 -3
  30. package/dist/automations/notifications/defaults.js.map +1 -1
  31. package/dist/automations/notifications/processor.js +3 -3
  32. package/dist/automations/notifications/processor.js.map +1 -1
  33. package/dist/automations/notifications/rules/content.js +60 -3
  34. package/dist/automations/notifications/rules/content.js.map +1 -1
  35. package/dist/automations/notifications/rules/discussion.js +29 -29
  36. package/dist/automations/notifications/rules/discussion.js.map +1 -1
  37. package/dist/automations/notifications/rules/entitlements.js +36 -9
  38. package/dist/automations/notifications/rules/entitlements.js.map +1 -1
  39. package/dist/automations/notifications/rules/events.d.ts +9 -0
  40. package/dist/automations/notifications/rules/events.js +27 -0
  41. package/dist/automations/notifications/rules/events.js.map +1 -0
  42. package/dist/automations/notifications/rules/organizations.js +17 -10
  43. package/dist/automations/notifications/rules/organizations.js.map +1 -1
  44. package/dist/automations/notifications/rules/recipients.js +0 -1
  45. package/dist/automations/notifications/rules/recipients.js.map +1 -1
  46. package/dist/automations/notifications/service.d.ts +8 -6
  47. package/dist/automations/notifications/service.js +13 -13
  48. package/dist/automations/notifications/service.js.map +1 -1
  49. package/dist/automations/notifications/types.js +94 -7
  50. package/dist/automations/notifications/types.js.map +1 -1
  51. package/dist/automations/ports.d.ts +30 -31
  52. package/dist/automations/service.d.ts +20 -17
  53. package/dist/automations/service.js +91 -62
  54. package/dist/automations/service.js.map +1 -1
  55. package/dist/content/event-sight.d.ts +11 -0
  56. package/dist/content/event-sight.js +11 -0
  57. package/dist/content/event-sight.js.map +1 -0
  58. package/dist/content/events.d.ts +413 -72
  59. package/dist/content/events.js +34 -1
  60. package/dist/content/events.js.map +1 -1
  61. package/dist/content/index.d.ts +6 -4
  62. package/dist/content/index.js +3 -1
  63. package/dist/content/jobs.d.ts +16 -0
  64. package/dist/content/jobs.js +37 -0
  65. package/dist/content/jobs.js.map +1 -0
  66. package/dist/content/model.d.ts +2 -2
  67. package/dist/content/notification-categories.d.ts +5 -4
  68. package/dist/content/notification-categories.js +15 -6
  69. package/dist/content/notification-categories.js.map +1 -1
  70. package/dist/content/ports.d.ts +113 -68
  71. package/dist/content/service.d.ts +99 -67
  72. package/dist/content/service.js +680 -139
  73. package/dist/content/service.js.map +1 -1
  74. package/dist/content/titles.d.ts +6 -3
  75. package/dist/content/titles.js +37 -24
  76. package/dist/content/titles.js.map +1 -1
  77. package/dist/content/types.d.ts +2 -2
  78. package/dist/discussion/authors.d.ts +4 -2
  79. package/dist/discussion/authors.js +9 -5
  80. package/dist/discussion/authors.js.map +1 -1
  81. package/dist/discussion/chats.d.ts +56 -37
  82. package/dist/discussion/chats.js +393 -161
  83. package/dist/discussion/chats.js.map +1 -1
  84. package/dist/discussion/events.d.ts +77 -39
  85. package/dist/discussion/events.js +41 -3
  86. package/dist/discussion/events.js.map +1 -1
  87. package/dist/discussion/index.d.ts +8 -5
  88. package/dist/discussion/index.js +5 -3
  89. package/dist/discussion/live.d.ts +106 -0
  90. package/dist/discussion/live.js +642 -0
  91. package/dist/discussion/live.js.map +1 -0
  92. package/dist/discussion/mentions.js +2 -2
  93. package/dist/discussion/mentions.js.map +1 -1
  94. package/dist/discussion/ports.d.ts +182 -100
  95. package/dist/discussion/ports.js.map +1 -1
  96. package/dist/discussion/posts.d.ts +45 -39
  97. package/dist/discussion/posts.js +268 -154
  98. package/dist/discussion/posts.js.map +1 -1
  99. package/dist/discussion/rules.d.ts +18 -0
  100. package/dist/discussion/rules.js +22 -0
  101. package/dist/discussion/rules.js.map +1 -0
  102. package/dist/discussion/service.d.ts +37 -31
  103. package/dist/discussion/service.js +252 -188
  104. package/dist/discussion/service.js.map +1 -1
  105. package/dist/discussion/subscriptions.d.ts +8 -8
  106. package/dist/discussion/subscriptions.js +29 -13
  107. package/dist/discussion/subscriptions.js.map +1 -1
  108. package/dist/discussion/titles.d.ts +4 -2
  109. package/dist/discussion/titles.js +27 -13
  110. package/dist/discussion/titles.js.map +1 -1
  111. package/dist/entitlements/events.d.ts +20 -20
  112. package/dist/entitlements/index.d.ts +4 -4
  113. package/dist/entitlements/index.js +2 -2
  114. package/dist/entitlements/model.d.ts +2 -2
  115. package/dist/entitlements/ports.d.ts +65 -39
  116. package/dist/entitlements/rules.d.ts +3 -6
  117. package/dist/entitlements/rules.js +5 -10
  118. package/dist/entitlements/rules.js.map +1 -1
  119. package/dist/entitlements/service.d.ts +40 -28
  120. package/dist/entitlements/service.js +370 -163
  121. package/dist/entitlements/service.js.map +1 -1
  122. package/dist/identity/devices.d.ts +3 -3
  123. package/dist/identity/devices.js +7 -5
  124. package/dist/identity/devices.js.map +1 -1
  125. package/dist/identity/events.d.ts +2 -2
  126. package/dist/identity/index.d.ts +2 -2
  127. package/dist/identity/index.js +2 -2
  128. package/dist/identity/notification-settings.d.ts +1 -1
  129. package/dist/identity/notification-settings.js +3 -2
  130. package/dist/identity/notification-settings.js.map +1 -1
  131. package/dist/identity/ports.d.ts +7 -7
  132. package/dist/identity/service.d.ts +8 -7
  133. package/dist/identity/service.js +17 -13
  134. package/dist/identity/service.js.map +1 -1
  135. package/dist/integrations/events.d.ts +3 -3
  136. package/dist/integrations/ports.d.ts +9 -8
  137. package/dist/integrations/service.d.ts +9 -8
  138. package/dist/integrations/service.js +33 -16
  139. package/dist/integrations/service.js.map +1 -1
  140. package/dist/organizations/default-roles.d.ts +22 -0
  141. package/dist/organizations/default-roles.js +89 -0
  142. package/dist/organizations/default-roles.js.map +1 -0
  143. package/dist/organizations/effective-permissions.d.ts +45 -0
  144. package/dist/organizations/effective-permissions.js +113 -0
  145. package/dist/organizations/effective-permissions.js.map +1 -0
  146. package/dist/organizations/events.d.ts +320 -181
  147. package/dist/organizations/events.js +90 -18
  148. package/dist/organizations/events.js.map +1 -1
  149. package/dist/organizations/index.d.ts +14 -10
  150. package/dist/organizations/index.js +7 -3
  151. package/dist/organizations/members.d.ts +66 -8
  152. package/dist/organizations/members.js.map +1 -1
  153. package/dist/organizations/notification-catalog.d.ts +31 -0
  154. package/dist/organizations/notification-catalog.js +32 -0
  155. package/dist/organizations/notification-catalog.js.map +1 -0
  156. package/dist/organizations/notification-categories.d.ts +6 -4
  157. package/dist/organizations/notification-categories.js +25 -10
  158. package/dist/organizations/notification-categories.js.map +1 -1
  159. package/dist/organizations/org-roles.d.ts +33 -0
  160. package/dist/organizations/org-roles.js +49 -0
  161. package/dist/organizations/org-roles.js.map +1 -0
  162. package/dist/organizations/permissions.d.ts +311 -0
  163. package/dist/organizations/permissions.js +327 -0
  164. package/dist/organizations/permissions.js.map +1 -0
  165. package/dist/organizations/ports.d.ts +184 -65
  166. package/dist/organizations/service.d.ts +102 -35
  167. package/dist/organizations/service.js +1245 -328
  168. package/dist/organizations/service.js.map +1 -1
  169. package/dist/organizations/testing.d.ts +18 -0
  170. package/dist/organizations/testing.js +37 -0
  171. package/dist/organizations/testing.js.map +1 -0
  172. package/dist/organizations/types.d.ts +5 -16
  173. package/dist/progress/events.d.ts +14 -14
  174. package/dist/progress/index.d.ts +2 -2
  175. package/dist/progress/ports.d.ts +11 -3
  176. package/dist/progress/service.d.ts +6 -5
  177. package/dist/progress/service.js +23 -8
  178. package/dist/progress/service.js.map +1 -1
  179. package/dist/reporting/admin/index.d.ts +6 -4
  180. package/dist/reporting/admin/model.d.ts +36 -3
  181. package/dist/reporting/admin/ports.d.ts +39 -14
  182. package/dist/reporting/admin/service.d.ts +32 -11
  183. package/dist/reporting/admin/service.js +102 -18
  184. package/dist/reporting/admin/service.js.map +1 -1
  185. package/dist/reporting/events/index.d.ts +27 -0
  186. package/dist/reporting/events/index.js +20 -0
  187. package/dist/reporting/events/index.js.map +1 -0
  188. package/dist/reporting/member/calendar.d.ts +11 -0
  189. package/dist/reporting/member/calendar.js +75 -0
  190. package/dist/reporting/member/calendar.js.map +1 -0
  191. package/dist/reporting/member/index.d.ts +3 -2
  192. package/dist/reporting/member/model.d.ts +26 -5
  193. package/dist/reporting/member/ports.d.ts +48 -29
  194. package/dist/reporting/member/service.d.ts +56 -29
  195. package/dist/reporting/member/service.js +328 -113
  196. package/dist/reporting/member/service.js.map +1 -1
  197. package/dist/shared/actor.d.ts +22 -3
  198. package/dist/shared/errors.d.ts +2 -1
  199. package/dist/shared/errors.js +3 -1
  200. package/dist/shared/errors.js.map +1 -1
  201. package/dist/shared/id.d.ts +4 -0
  202. package/dist/shared/id.js +4 -0
  203. package/dist/shared/id.js.map +1 -1
  204. package/dist/shared/logger.d.ts +2 -1
  205. package/dist/shared/logger.js +10 -1
  206. package/dist/shared/logger.js.map +1 -1
  207. package/dist/shared/ports.d.ts +25 -5
  208. package/dist/types/content.d.ts +2 -2
  209. package/dist/types/discussion.d.ts +4 -5
  210. package/dist/types/email-templates.d.ts +22 -3
  211. package/dist/types/entitlements.d.ts +2 -2
  212. package/dist/types/identity.d.ts +13 -16
  213. package/dist/types/index.d.ts +9 -9
  214. package/dist/types/index.js +2 -1
  215. package/dist/types/notifications.d.ts +4 -4
  216. package/dist/types/organizations.d.ts +3 -2
  217. package/dist/types/ports.d.ts +8 -1
  218. package/dist/types/ports.js +7 -1
  219. package/dist/types/ports.js.map +1 -0
  220. package/dist/types/schemas/assets.d.ts +5 -5
  221. package/dist/types/schemas/assets.js +4 -3
  222. package/dist/types/schemas/assets.js.map +1 -1
  223. package/dist/types/schemas/content.d.ts +537 -13
  224. package/dist/types/schemas/content.js +201 -7
  225. package/dist/types/schemas/content.js.map +1 -1
  226. package/dist/types/schemas/discussion.d.ts +282 -59
  227. package/dist/types/schemas/discussion.js +77 -3
  228. package/dist/types/schemas/discussion.js.map +1 -1
  229. package/dist/types/schemas/entitlements.d.ts +14 -1
  230. package/dist/types/schemas/entitlements.js +11 -4
  231. package/dist/types/schemas/entitlements.js.map +1 -1
  232. package/dist/types/schemas/index.d.ts +5 -5
  233. package/dist/types/schemas/index.js +5 -5
  234. package/dist/types/schemas/notifications.d.ts +13 -12
  235. package/dist/types/schemas/notifications.js +3 -2
  236. package/dist/types/schemas/notifications.js.map +1 -1
  237. package/dist/types/schemas/organizations.d.ts +96 -60
  238. package/dist/types/schemas/organizations.js +78 -27
  239. package/dist/types/schemas/organizations.js.map +1 -1
  240. package/dist/types/schemas/progress.d.ts +3 -4
  241. package/dist/types/schemas/progress.js +0 -1
  242. package/dist/types/schemas/progress.js.map +1 -1
  243. package/package.json +1 -1
  244. package/dist/organizations/access-scopes.d.ts +0 -19
  245. package/dist/organizations/access-scopes.js +0 -89
  246. package/dist/organizations/access-scopes.js.map +0 -1
  247. package/dist/organizations/roles.d.ts +0 -19
  248. package/dist/organizations/roles.js +0 -82
  249. package/dist/organizations/roles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"discussion.js","names":[],"sources":["../../../src/types/schemas/discussion.ts"],"sourcesContent":["import { z } from 'zod';\nimport { roleSchema } from './organizations.js';\nimport { idSchema, emailSchema, jsonValueSchema } from './shared.js';\n\nexport const commentStatusSchema = z.enum(['pending', 'published', 'removed']);\nexport type CommentStatus = z.infer<typeof commentStatusSchema>;\n\nexport const reactionEmojiSchema = z.string();\nexport type ReactionEmoji = z.infer<typeof reactionEmojiSchema>;\n\nexport const reactionCountsSchema = z.record(reactionEmojiSchema, z.number().int().min(0));\nexport type ReactionCounts = z.infer<typeof reactionCountsSchema>;\n\nexport const commentSettingsSchema = z\n .object({\n enabled: z.boolean(),\n threaded: z.boolean(),\n requireReview: z.boolean(),\n reactions: z.boolean(),\n })\n .strict();\nexport type CommentSettings = z.infer<typeof commentSettingsSchema>;\n\nexport type CommentsConfig = CommentSettings;\n\nexport const activityCommentsRuleSchema = z.enum(['inherit', 'always', 'never']);\nexport type ActivityCommentsRule = z.infer<typeof activityCommentsRuleSchema>;\n\nexport const commentSchema = z\n .object({\n id: idSchema,\n orgId: idSchema,\n activityId: idSchema.nullable(),\n postId: idSchema.nullable(),\n communityId: idSchema.nullable(),\n parentId: idSchema.nullable(),\n orgUserId: idSchema,\n body: z.string(),\n status: commentStatusSchema,\n removedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Comment = z.output<typeof commentSchema>;\nexport type CommentInput = z.input<typeof commentSchema>;\n\nexport const commentAuthorSchema = z\n .object({\n id: idSchema,\n firstName: z.string().nullable(),\n lastName: z.string().nullable(),\n displayName: z.string().nullable(),\n headline: z.string().nullable(),\n image: z.string().nullable(),\n imageAssetId: idSchema.nullable(),\n imageUrl: z.string().nullable(),\n role: roleSchema,\n })\n .strict();\nexport type CommentAuthor = z.infer<typeof commentAuthorSchema>;\n\nexport const commentReactionSchema = z\n .object({\n orgId: idSchema,\n commentId: idSchema,\n orgUserId: idSchema,\n emoji: reactionEmojiSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentReaction = z.output<typeof commentReactionSchema>;\n\nexport const commentFlagResolutionSchema = z.enum(['dismissed', 'removed']);\nexport type CommentFlagResolution = z.infer<typeof commentFlagResolutionSchema>;\n\nexport const commentReportSchema = z\n .object({\n id: idSchema,\n orgId: idSchema,\n commentId: idSchema,\n orgUserId: idSchema,\n reason: z.string(),\n resolvedAt: z.coerce.date().nullable(),\n resolution: commentFlagResolutionSchema.nullable(),\n resolvedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentReport = z.output<typeof commentReportSchema>;\nexport type CommentReportInput = z.input<typeof commentReportSchema>;\n\nexport const mentionItemTypeSchema = z.enum(['post', 'comment', 'message']);\nexport type MentionItemType = z.infer<typeof mentionItemTypeSchema>;\n\nexport const mentionSchema = z\n .object({\n orgId: idSchema,\n itemType: mentionItemTypeSchema,\n itemId: idSchema,\n orgUserId: idSchema,\n createdAt: z.coerce.date(),\n })\n .strict();\nexport type Mention = z.output<typeof mentionSchema>;\n\nexport const mentionViewSchema = z\n .object({\n orgUserId: idSchema,\n name: z.string(),\n })\n .strict();\nexport type MentionView = z.output<typeof mentionViewSchema>;\n\nexport const commentViewSchema = z\n .object({\n id: idSchema,\n activityId: idSchema.nullable(),\n postId: idSchema.nullable(),\n communityId: idSchema.nullable(),\n parentId: idSchema.nullable(),\n author: commentAuthorSchema,\n body: z.string().nullable(),\n status: commentStatusSchema,\n removedBy: commentAuthorSchema.nullable(),\n reactions: reactionCountsSchema,\n viewerReaction: reactionEmojiSchema.optional(),\n mentions: z.array(mentionViewSchema),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentView = z.output<typeof commentViewSchema>;\n\nexport const commentReportSummarySchema = z\n .object({\n reporter: commentAuthorSchema,\n reason: z.string(),\n createdAt: z.coerce.date(),\n })\n .strict();\nexport type CommentReportSummary = z.output<typeof commentReportSummarySchema>;\n\nexport const commentListItemSchema = z\n .object({\n id: idSchema,\n parentId: idSchema.nullable(),\n activityId: idSchema,\n activityTitle: z.string(),\n courseId: idSchema,\n body: z.string(),\n status: commentStatusSchema,\n author: commentAuthorSchema,\n authorEmail: emailSchema,\n removedBy: idSchema.nullable(),\n reports: z.array(commentReportSummarySchema),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentListItem = z.output<typeof commentListItemSchema>;\n\nexport const listCommentsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n search: z.string().optional(),\n sort: z.string().optional(),\n status: commentStatusSchema.optional(),\n reported: z.boolean().optional(),\n courseId: idSchema.optional(),\n activityId: idSchema.optional(),\n orgUserId: idSchema.optional(),\n })\n .strict();\nexport type ListCommentsQuery = z.infer<typeof listCommentsQuerySchema>;\n\nexport const subscriptionItemTypeSchema = z.enum(['post', 'space', 'chat']);\nexport type SubscriptionItemType = z.infer<typeof subscriptionItemTypeSchema>;\n\nexport const subscriptionStateSchema = z.enum(['following', 'muted']);\nexport type SubscriptionState = z.infer<typeof subscriptionStateSchema>;\n\nexport const subscriptionSchema = z\n .object({\n orgId: idSchema,\n orgUserId: idSchema,\n itemType: subscriptionItemTypeSchema,\n itemId: idSchema,\n state: subscriptionStateSchema,\n mutedUntil: z.coerce.date().nullable(),\n createdAt: z.coerce.date(),\n })\n .strict();\nexport type Subscription = z.output<typeof subscriptionSchema>;\n\nexport const subscriptionViewSchema = z\n .object({\n state: subscriptionStateSchema,\n mutedUntil: z.coerce.date().nullable(),\n })\n .strict();\nexport type SubscriptionView = z.output<typeof subscriptionViewSchema>;\n\nexport const postStatusSchema = z.enum(['draft', 'scheduled', 'pending', 'published', 'removed']);\nexport type PostStatus = z.infer<typeof postStatusSchema>;\n\nexport const postSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n spaceId: idSchema,\n orgUserId: idSchema,\n topicId: idSchema.nullable(),\n title: z.string(),\n body: z.string(),\n extra: jsonValueSchema,\n coverAssetId: idSchema.nullable(),\n status: postStatusSchema,\n scheduledAt: z.coerce.date().nullable(),\n publishedAt: z.coerce.date().nullable(),\n removedBy: idSchema.nullable(),\n pinned: z.boolean(),\n commentsClosed: z.boolean().nullable(),\n reactionsEnabled: z.boolean().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Post = z.output<typeof postSchema>;\n\nexport const postViewSchema = postSchema\n .extend({\n coverUrl: z.string().nullable(),\n author: commentAuthorSchema,\n reactions: reactionCountsSchema,\n viewerReaction: reactionEmojiSchema.nullable(),\n commentCount: z.number().int().min(0),\n subscription: subscriptionViewSchema.nullable(),\n bookmarked: z.boolean(),\n mentions: z.array(mentionViewSchema),\n })\n .strict();\nexport type PostView = z.output<typeof postViewSchema>;\n\nexport const flaggedCommentSchema = commentReportSchema\n .extend({\n comment: z\n .object({\n id: idSchema,\n postId: idSchema,\n body: z.string(),\n orgUserId: idSchema,\n status: commentStatusSchema,\n })\n .strict(),\n })\n .strict();\nexport type FlaggedComment = z.output<typeof flaggedCommentSchema>;\n\nexport const postReactionSchema = z\n .object({\n orgId: idSchema,\n postId: idSchema,\n orgUserId: idSchema,\n emoji: reactionEmojiSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type PostReaction = z.output<typeof postReactionSchema>;\n\nexport const postBookmarkSchema = z\n .object({\n orgId: idSchema,\n postId: idSchema,\n orgUserId: idSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type PostBookmark = z.output<typeof postBookmarkSchema>;\n\nexport const postFlagResolutionSchema = z.enum(['dismissed', 'removed']);\nexport type PostFlagResolution = z.infer<typeof postFlagResolutionSchema>;\n\nexport const postFlagSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n postId: idSchema,\n orgUserId: idSchema,\n reason: z.string(),\n resolvedAt: z.coerce.date().nullable(),\n resolution: postFlagResolutionSchema.nullable(),\n resolvedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type PostFlag = z.output<typeof postFlagSchema>;\n\nexport const chatKindSchema = z.enum(['direct', 'group']);\nexport type ChatKind = z.infer<typeof chatKindSchema>;\n\nexport const chatStatusSchema = z.enum(['pending', 'open', 'closed']);\nexport type ChatStatus = z.infer<typeof chatStatusSchema>;\n\nexport const chatSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n kind: chatKindSchema,\n status: chatStatusSchema,\n createdBy: idSchema.nullable(),\n lockedAt: z.coerce.date().nullable(),\n lockedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Chat = z.output<typeof chatSchema>;\n\nexport const chatUserSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n chatId: idSchema,\n orgUserId: idSchema,\n joinedAt: z.coerce.date(),\n leftAt: z.coerce.date().nullable(),\n lastReadMessageId: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type ChatUser = z.output<typeof chatUserSchema>;\n\nexport const messageSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n chatId: idSchema,\n orgUserId: idSchema,\n body: z.string(),\n replyToId: idSchema.nullable(),\n editedAt: z.coerce.date().nullable(),\n deletedAt: z.coerce.date().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Message = z.output<typeof messageSchema>;\n\nexport const messageFileSchema = z.object({ assetId: idSchema, url: z.string() }).strict();\nexport type MessageFile = z.output<typeof messageFileSchema>;\n\nexport const messageViewSchema = messageSchema\n .extend({\n sender: commentAuthorSchema,\n attachments: z.array(messageFileSchema),\n reactions: reactionCountsSchema,\n viewerReaction: reactionEmojiSchema.nullable(),\n mentions: z.array(mentionViewSchema),\n })\n .strict();\nexport type MessageView = z.output<typeof messageViewSchema>;\n\nexport const chatLastMessageSchema = z\n .object({\n id: idSchema,\n orgUserId: idSchema,\n body: z.string(),\n createdAt: z.coerce.date(),\n deletedAt: z.coerce.date().nullable(),\n })\n .strict();\nexport type ChatLastMessage = z.output<typeof chatLastMessageSchema>;\n\nexport const messageAttachmentSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n messageId: idSchema,\n assetId: idSchema,\n seq: z.number().int(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type MessageAttachment = z.output<typeof messageAttachmentSchema>;\n\nexport const messageReactionSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n messageId: idSchema,\n orgUserId: idSchema,\n emoji: reactionEmojiSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type MessageReaction = z.output<typeof messageReactionSchema>;\n\nexport const messageFlagResolutionSchema = z.enum(['dismissed', 'deleted', 'locked']);\nexport type MessageFlagResolution = z.infer<typeof messageFlagResolutionSchema>;\n\nexport const messageFlagSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n messageId: idSchema,\n orgUserId: idSchema,\n reason: z.string(),\n resolvedAt: z.coerce.date().nullable(),\n resolution: messageFlagResolutionSchema.nullable(),\n resolvedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type MessageFlag = z.output<typeof messageFlagSchema>;\n\nexport const blockedUserSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n blockerOrgUserId: idSchema,\n blockedOrgUserId: idSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type BlockedUser = z.output<typeof blockedUserSchema>;\n\nexport const digestRunSchema = z\n .object({\n orgId: id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AAC;CAAa;CAAW;AAAQ,CAAC;AAGpF,MAAa,oBAAoB,EAC9B,OAAO;CACN,OAAO;CACP,IAAI;CACJ,aAAa;CACb,WAAW;CACX,WAAW;CACX,QAAQ,EAAE,OAAO;CACjB,YAAY,EAAE,OAAO,KAAK,CAAC,CAAC,SAAS;CACrC,YAAY,4BAA4B,SAAS;CACjD,YAAY,SAAS,SAAS;CAC9B,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,oBAAoB,EAC9B,OAAO;CACN,OAAO;CACP,aAAa;CACb,kBAAkB;CAClB,kBAAkB;CAClB,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,kBAAkB,EAC5B,OAAO;CACN,OAAO;CACP,aAAa;CACb,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO"}
1
+ {"version":3,"file":"discussion.js","names":[],"sources":["../../../src/types/schemas/discussion.ts"],"sourcesContent":["import { z } from 'zod';\nimport { assetKindSchema } from './assets.js';\nimport { idSchema, emailSchema, jsonValueSchema } from './shared.js';\n\nexport const commentStatusSchema = z.enum(['pending', 'published', 'removed']);\nexport type CommentStatus = z.infer<typeof commentStatusSchema>;\n\nexport const reactionEmojiSchema = z.string();\nexport type ReactionEmoji = z.infer<typeof reactionEmojiSchema>;\n\nexport const reactionCountsSchema = z.record(reactionEmojiSchema, z.number().int().min(0));\nexport type ReactionCounts = z.infer<typeof reactionCountsSchema>;\n\nexport const commentSettingsSchema = z\n .object({\n enabled: z.boolean(),\n threaded: z.boolean(),\n requireReview: z.boolean(),\n reactions: z.boolean(),\n })\n .strict();\nexport type CommentSettings = z.infer<typeof commentSettingsSchema>;\n\nexport type CommentsConfig = CommentSettings;\n\nexport const activityCommentsRuleSchema = z.enum(['inherit', 'always', 'never']);\nexport type ActivityCommentsRule = z.infer<typeof activityCommentsRuleSchema>;\n\nexport const commentSchema = z\n .object({\n id: idSchema,\n orgId: idSchema,\n activityId: idSchema.nullable(),\n postId: idSchema.nullable(),\n communityId: idSchema.nullable(),\n parentId: idSchema.nullable(),\n orgUserId: idSchema,\n body: z.string(),\n status: commentStatusSchema,\n removedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Comment = z.output<typeof commentSchema>;\nexport type CommentInput = z.input<typeof commentSchema>;\n\nexport const commentAuthorSchema = z\n .object({\n id: idSchema,\n firstName: z.string().nullable(),\n lastName: z.string().nullable(),\n displayName: z.string().nullable(),\n headline: z.string().nullable(),\n image: z.string().nullable(),\n imageAssetId: idSchema.nullable(),\n imageUrl: z.string().nullable(),\n team: z.boolean(),\n roleName: z.string().nullable(),\n })\n .strict();\nexport type CommentAuthor = z.infer<typeof commentAuthorSchema>;\n\nexport const commentReactionSchema = z\n .object({\n orgId: idSchema,\n commentId: idSchema,\n orgUserId: idSchema,\n emoji: reactionEmojiSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentReaction = z.output<typeof commentReactionSchema>;\n\nexport const commentFlagResolutionSchema = z.enum(['dismissed', 'removed']);\nexport type CommentFlagResolution = z.infer<typeof commentFlagResolutionSchema>;\n\nexport const commentReportSchema = z\n .object({\n id: idSchema,\n orgId: idSchema,\n commentId: idSchema,\n orgUserId: idSchema,\n reason: z.string(),\n resolvedAt: z.coerce.date().nullable(),\n resolution: commentFlagResolutionSchema.nullable(),\n resolvedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentReport = z.output<typeof commentReportSchema>;\nexport type CommentReportInput = z.input<typeof commentReportSchema>;\n\nexport const mentionItemTypeSchema = z.enum(['post', 'comment', 'message']);\nexport type MentionItemType = z.infer<typeof mentionItemTypeSchema>;\n\nexport const mentionSchema = z\n .object({\n orgId: idSchema,\n itemType: mentionItemTypeSchema,\n itemId: idSchema,\n orgUserId: idSchema,\n createdAt: z.coerce.date(),\n })\n .strict();\nexport type Mention = z.output<typeof mentionSchema>;\n\nexport const mentionViewSchema = z\n .object({\n orgUserId: idSchema,\n name: z.string(),\n })\n .strict();\nexport type MentionView = z.output<typeof mentionViewSchema>;\n\nexport const commentViewSchema = z\n .object({\n id: idSchema,\n activityId: idSchema.nullable(),\n postId: idSchema.nullable(),\n communityId: idSchema.nullable(),\n parentId: idSchema.nullable(),\n author: commentAuthorSchema,\n body: z.string().nullable(),\n status: commentStatusSchema,\n removedBy: commentAuthorSchema.nullable(),\n reactions: reactionCountsSchema,\n viewerReaction: reactionEmojiSchema.optional(),\n mentions: z.array(mentionViewSchema),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentView = z.output<typeof commentViewSchema>;\n\nexport const commentReportSummarySchema = z\n .object({\n reporter: commentAuthorSchema,\n reason: z.string(),\n createdAt: z.coerce.date(),\n })\n .strict();\nexport type CommentReportSummary = z.output<typeof commentReportSummarySchema>;\n\nexport const commentListItemSchema = z\n .object({\n id: idSchema,\n parentId: idSchema.nullable(),\n activityId: idSchema,\n activityTitle: z.string(),\n courseId: idSchema,\n body: z.string(),\n status: commentStatusSchema,\n author: commentAuthorSchema,\n authorEmail: emailSchema,\n removedBy: idSchema.nullable(),\n reports: z.array(commentReportSummarySchema),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type CommentListItem = z.output<typeof commentListItemSchema>;\n\nexport const listCommentsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n search: z.string().optional(),\n sort: z.string().optional(),\n status: commentStatusSchema.optional(),\n reported: z.boolean().optional(),\n courseId: idSchema.optional(),\n activityId: idSchema.optional(),\n orgUserId: idSchema.optional(),\n })\n .strict();\nexport type ListCommentsQuery = z.infer<typeof listCommentsQuerySchema>;\n\nexport const subscriptionItemTypeSchema = z.enum(['post', 'space', 'chat']);\nexport type SubscriptionItemType = z.infer<typeof subscriptionItemTypeSchema>;\n\nexport const subscriptionStateSchema = z.enum(['following', 'muted']);\nexport type SubscriptionState = z.infer<typeof subscriptionStateSchema>;\n\nexport const subscriptionSchema = z\n .object({\n orgId: idSchema,\n orgUserId: idSchema,\n itemType: subscriptionItemTypeSchema,\n itemId: idSchema,\n state: subscriptionStateSchema,\n mutedUntil: z.coerce.date().nullable(),\n createdAt: z.coerce.date(),\n })\n .strict();\nexport type Subscription = z.output<typeof subscriptionSchema>;\n\nexport const subscriptionViewSchema = z\n .object({\n state: subscriptionStateSchema,\n mutedUntil: z.coerce.date().nullable(),\n })\n .strict();\nexport type SubscriptionView = z.output<typeof subscriptionViewSchema>;\n\nexport const postStatusSchema = z.enum(['draft', 'scheduled', 'pending', 'published', 'removed']);\nexport type PostStatus = z.infer<typeof postStatusSchema>;\n\nexport const postSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n spaceId: idSchema,\n orgUserId: idSchema,\n topicId: idSchema.nullable(),\n title: z.string(),\n body: z.string(),\n extra: jsonValueSchema,\n coverAssetId: idSchema.nullable(),\n status: postStatusSchema,\n scheduledAt: z.coerce.date().nullable(),\n publishedAt: z.coerce.date().nullable(),\n removedBy: idSchema.nullable(),\n pinned: z.boolean(),\n commentsClosed: z.boolean().nullable(),\n reactionsEnabled: z.boolean().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Post = z.output<typeof postSchema>;\n\nexport const postAssetSchema = z\n .object({\n url: z.string(),\n kind: assetKindSchema,\n filename: z.string(),\n size: z.number().int().min(0),\n })\n .strict();\nexport type PostAsset = z.output<typeof postAssetSchema>;\n\nexport const postViewSchema = postSchema\n .extend({\n coverUrl: z.string().nullable(),\n assets: z.record(idSchema, postAssetSchema),\n author: commentAuthorSchema,\n reactions: reactionCountsSchema,\n viewerReaction: reactionEmojiSchema.nullable(),\n commentCount: z.number().int().min(0),\n subscription: subscriptionViewSchema.nullable(),\n bookmarked: z.boolean(),\n mentions: z.array(mentionViewSchema),\n })\n .strict();\nexport type PostView = z.output<typeof postViewSchema>;\n\nexport const flaggedCommentSchema = commentReportSchema\n .extend({\n comment: z\n .object({\n id: idSchema,\n postId: idSchema,\n body: z.string(),\n orgUserId: idSchema,\n status: commentStatusSchema,\n })\n .strict(),\n })\n .strict();\nexport type FlaggedComment = z.output<typeof flaggedCommentSchema>;\n\nexport const flaggedCommentViewSchema = commentReportSchema\n .extend({\n comment: flaggedCommentSchema.shape.comment.extend({ author: commentAuthorSchema }).strict(),\n })\n .strict();\nexport type FlaggedCommentView = z.output<typeof flaggedCommentViewSchema>;\n\nexport const postReactionSchema = z\n .object({\n orgId: idSchema,\n postId: idSchema,\n orgUserId: idSchema,\n emoji: reactionEmojiSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type PostReaction = z.output<typeof postReactionSchema>;\n\nexport const postBookmarkSchema = z\n .object({\n orgId: idSchema,\n postId: idSchema,\n orgUserId: idSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type PostBookmark = z.output<typeof postBookmarkSchema>;\n\nexport const postFlagResolutionSchema = z.enum(['dismissed', 'removed']);\nexport type PostFlagResolution = z.infer<typeof postFlagResolutionSchema>;\n\nexport const postFlagSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n postId: idSchema,\n orgUserId: idSchema,\n reason: z.string(),\n resolvedAt: z.coerce.date().nullable(),\n resolution: postFlagResolutionSchema.nullable(),\n resolvedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type PostFlag = z.output<typeof postFlagSchema>;\n\nexport const chatKindSchema = z.enum(['direct', 'group']);\nexport type ChatKind = z.infer<typeof chatKindSchema>;\n\nexport const chatStatusSchema = z.enum(['pending', 'open', 'closed']);\nexport type ChatStatus = z.infer<typeof chatStatusSchema>;\n\nexport const chatSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n kind: chatKindSchema,\n status: chatStatusSchema,\n createdBy: idSchema.nullable(),\n lockedAt: z.coerce.date().nullable(),\n lockedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Chat = z.output<typeof chatSchema>;\n\nexport const chatUserSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n chatId: idSchema,\n orgUserId: idSchema,\n joinedAt: z.coerce.date(),\n leftAt: z.coerce.date().nullable(),\n lastReadMessageId: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type ChatUser = z.output<typeof chatUserSchema>;\n\nexport const messageSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n chatId: idSchema,\n orgUserId: idSchema,\n body: z.string(),\n replyToId: idSchema.nullable(),\n clientId: z.uuid().nullable(),\n editedAt: z.coerce.date().nullable(),\n deletedAt: z.coerce.date().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Message = z.output<typeof messageSchema>;\n\nexport const messageFileSchema = z.object({ assetId: idSchema, url: z.string() }).strict();\nexport type MessageFile = z.output<typeof messageFileSchema>;\n\nexport const messageViewSchema = messageSchema\n .extend({\n sender: commentAuthorSchema,\n attachments: z.array(messageFileSchema),\n reactions: reactionCountsSchema,\n viewerReaction: reactionEmojiSchema.nullable(),\n mentions: z.array(mentionViewSchema),\n })\n .strict();\nexport type MessageView = z.output<typeof messageViewSchema>;\n\nexport const liveMessageSchema = messageViewSchema.omit({ viewerReaction: true });\nexport type LiveMessage = z.output<typeof liveMessageSchema>;\n\nexport const chatUnreadSummarySchema = z\n .object({\n unread: z.number().int().min(0),\n requests: z.number().int().min(0),\n })\n .strict();\nexport type ChatUnreadSummary = z.output<typeof chatUnreadSummarySchema>;\n\nexport const chatLastMessageSchema = z\n .object({\n id: idSchema,\n orgUserId: idSchema,\n body: z.string(),\n createdAt: z.coerce.date(),\n deletedAt: z.coerce.date().nullable(),\n })\n .strict();\nexport type ChatLastMessage = z.output<typeof chatLastMessageSchema>;\n\nexport const messageAttachmentSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n messageId: idSchema,\n assetId: idSchema,\n seq: z.number().int(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type MessageAttachment = z.output<typeof messageAttachmentSchema>;\n\nexport const messageReactionSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n messageId: idSchema,\n orgUserId: idSchema,\n emoji: reactionEmojiSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type MessageReaction = z.output<typeof messageReactionSchema>;\n\nexport const messageFlagResolutionSchema = z.enum(['dismissed', 'deleted', 'locked']);\nexport type MessageFlagResolution = z.infer<typeof messageFlagResolutionSchema>;\n\nexport const messageFlagSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n messageId: idSchema,\n orgUserId: idSchema,\n reason: z.string(),\n resolvedAt: z.coerce.date().nullable(),\n resolution: messageFlagResolutionSchema.nullable(),\n resolvedBy: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type MessageFlag = z.output<typeof messageFlagSchema>;\n\nexport const blockedUserSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n blockerOrgUserId: idSchema,\n blockedOrgUserId: idSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type BlockedUser = z.output<typeof blockedUserSchema>;\n\nexport const digestRunSchema = z\n .object({\n orgId: idSchema,\n communityId: idSchema,\n lastDueAt: z.coerce.date(),\n })\n .strict();\nexport type DigestRun = z.output<typeof digestRunSchema>;\n\nexport const chatLiveEventSchema = z.discriminatedUnion('type', [\n z.object({ type: z.literal('ready'), heartbeatMs: z.number().int() }).strict(),\n z\n .object({ type: z.literal('message.created'), chatId: idSchema, message: liveMessageSchema })\n .strict(),\n z\n .object({ type: z.literal('message.updated'), chatId: idSchema, message: liveMessageSchema })\n .strict(),\n z\n .object({\n type: z.literal('message.deleted'),\n chatId: idSchema,\n messageId: idSchema,\n deletedAt: z.coerce.date(),\n })\n .strict(),\n z\n .object({\n type: z.literal('message.reactions'),\n chatId: idSchema,\n messageId: idSchema,\n reactions: reactionCountsSchema,\n orgUserId: idSchema,\n reaction: reactionEmojiSchema.nullable(),\n })\n .strict(),\n z\n .object({\n type: z.literal('chat.updated'),\n chatId: idSchema,\n chat: chatSchema,\n participants: z.array(commentAuthorSchema),\n })\n .strict(),\n z.object({ type: z.literal('chat.removed'), chatId: idSchema }).strict(),\n z\n .object({\n type: z.literal('chat.state'),\n chatId: idSchema,\n unread: z.number().int().min(0),\n lastReadMessageId: idSchema.nullable(),\n subscription: subscriptionViewSchema.nullable(),\n })\n .strict(),\n chatUnreadSummarySchema.extend({ type: z.literal('unread') }).strict(),\n z\n .object({\n type: z.literal('typing'),\n chatId: idSchema,\n orgUserId: idSchema,\n until: z.coerce.date(),\n })\n .strict(),\n z.object({ type: z.literal('resync') }).strict(),\n z.object({ type: z.literal('closed'), reason: z.enum(['shutdown']) }).strict(),\n]);\nexport type ChatLiveEvent = z.output<typeof chatLiveEventSchema>;\n"],"mappings":";;;;AAIA,MAAa,sBAAsB,EAAE,KAAK;CAAC;CAAW;CAAa;AAAS,CAAC;AAG7E,MAAa,sBAAsB,EAAE,OAAO;AAG5C,MAAa,uBAAuB,EAAE,OAAO,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;AAGzF,MAAa,wBAAwB,EAClC,OAAO;CACN,SAAS,EAAE,QAAQ;CACnB,UAAU,EAAE,QAAQ;CACpB,eAAe,EAAE,QAAQ;CACzB,WAAW,EAAE,QAAQ;AACv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declare const entitlementsQuerySchema: z.ZodObject<{
38
38
  contentId: z.ZodOptional<z.ZodString>;
39
39
  bundleId: z.ZodOptional<z.ZodString>;
40
40
  type: z.ZodOptional<z.ZodEnum<{
41
+ event: "event";
41
42
  course: "course";
42
43
  download: "download";
43
44
  }>>;
@@ -49,8 +50,20 @@ declare const grantEntitlementInputSchema: z.ZodObject<{
49
50
  contentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
51
  bundleId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
52
  expiresAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
53
+ contentType: z.ZodOptional<z.ZodEnum<{
54
+ event: "event";
55
+ course: "course";
56
+ download: "download";
57
+ community: "community";
58
+ }>>;
52
59
  }, z.core.$strict>;
53
60
  type GrantEntitlementInput = z.output<typeof grantEntitlementInputSchema>;
61
+ declare const grantSourceSchema: z.ZodEnum<{
62
+ manual: "manual";
63
+ self: "self";
64
+ automation: "automation";
65
+ }>;
66
+ type GrantSource = z.infer<typeof grantSourceSchema>;
54
67
  declare const spaceMemberStatusSchema: z.ZodEnum<{
55
68
  active: "active";
56
69
  revoked: "revoked";
@@ -86,5 +99,5 @@ declare const spaceMemberSchema: z.ZodObject<{
86
99
  }, z.core.$strict>;
87
100
  type SpaceMember = z.output<typeof spaceMemberSchema>;
88
101
  //#endregion
89
- export { Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, GrantEntitlementInput, SpaceMember, SpaceMemberSource, SpaceMemberStatus, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema };
102
+ export { Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, GrantEntitlementInput, GrantSource, SpaceMember, SpaceMemberSource, SpaceMemberStatus, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, grantSourceSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema };
90
103
  //# sourceMappingURL=entitlements.d.ts.map
@@ -1,4 +1,5 @@
1
1
  import { idSchema } from "./shared.js";
2
+ import { contentTypeSchema, eventAttendeeSourceSchema } from "./content.js";
2
3
  import { z } from "zod";
3
4
  //#region src/types/schemas/entitlements.ts
4
5
  const entitlementStatusSchema = z.enum(["active", "revoked"]);
@@ -29,15 +30,21 @@ const entitlementsQuerySchema = z.object({
29
30
  orgUserId: idSchema.optional(),
30
31
  contentId: idSchema.optional(),
31
32
  bundleId: idSchema.optional(),
32
- type: z.enum(["course", "download"]).optional()
33
+ type: z.enum([
34
+ "course",
35
+ "download",
36
+ "event"
37
+ ]).optional()
33
38
  }).strict();
34
39
  /** A grant targets exactly one of: a bundle or a single content item. */
35
40
  const grantEntitlementInputSchema = z.object({
36
41
  orgUserId: idSchema,
37
42
  contentId: idSchema.nullish(),
38
43
  bundleId: idSchema.nullish(),
39
- expiresAt: z.coerce.date().nullable()
40
- }).strict().refine((v) => v.contentId != null !== (v.bundleId != null), { message: "Provide exactly one of contentId or bundleId" });
44
+ expiresAt: z.coerce.date().nullable(),
45
+ contentType: contentTypeSchema.optional().describe("When set, a contentId of another type is not found")
46
+ }).strict().refine((v) => v.contentId != null !== (v.bundleId != null), { message: "Provide exactly one of contentId or bundleId" }).refine((v) => v.contentType === void 0 || v.contentId != null, { message: "contentType applies to a contentId only" });
47
+ const grantSourceSchema = eventAttendeeSourceSchema.exclude(["bundle"]);
41
48
  const spaceMemberStatusSchema = z.enum([
42
49
  "requested",
43
50
  "invited",
@@ -61,6 +68,6 @@ const spaceMemberSchema = z.object({
61
68
  updatedAt: z.coerce.date()
62
69
  }).strict();
63
70
  //#endregion
64
- export { entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema };
71
+ export { entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, grantSourceSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema };
65
72
 
66
73
  //# sourceMappingURL=entitlements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"entitlements.js","names":[],"sources":["../../../src/types/schemas/entitlements.ts"],"sourcesContent":["import { z } from 'zod';\nimport { idSchema } from './shared.js';\n\nexport const entitlementStatusSchema = z.enum(['active', 'revoked']);\nexport type EntitlementStatus = z.infer<typeof entitlementStatusSchema>;\n\nexport const entitlementSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n orgUserId: idSchema,\n bundleId: idSchema.nullable(),\n contentId: idSchema.nullable(),\n status: entitlementStatusSchema,\n source: z.string(),\n grantedAt: z.coerce.date(),\n expiresAt: z.coerce.date().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Entitlement = z.output<typeof entitlementSchema>;\nexport type EntitlementInput = z.input<typeof entitlementSchema>;\n\nexport const entitlementsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n search: z.string().optional(),\n sort: z.string().optional(),\n status: z.enum(['active', 'expired', 'revoked']).optional(),\n source: z.string().optional(),\n orgUserId: idSchema.optional(),\n contentId: idSchema.optional(),\n bundleId: idSchema.optional(),\n type: z.enum(['course', 'download']).optional(),\n })\n .strict();\nexport type EntitlementsQuery = z.infer<typeof entitlementsQuerySchema>;\n\n/** A grant targets exactly one of: a bundle or a single content item. */\nexport const grantEntitlementInputSchema = z\n .object({\n orgUserId: idSchema,\n contentId: idSchema.nullish(),\n bundleId: idSchema.nullish(),\n expiresAt: z.coerce.date().nullable(),\n })\n .strict()\n .refine((v) => (v.contentId != null) !== (v.bundleId != null), {\n message: 'Provide exactly one of contentId or bundleId',\n });\nexport type GrantEntitlementInput = z.output<typeof grantEntitlementInputSchema>;\n\nexport const spaceMemberStatusSchema = z.enum(['requested', 'invited', 'active', 'revoked']);\nexport type SpaceMemberStatus = z.infer<typeof spaceMemberStatusSchema>;\n\nexport const spaceMemberSourceSchema = z.enum(['request', 'invite', 'manual']);\nexport type SpaceMemberSource = z.infer<typeof spaceMemberSourceSchema>;\n\nexport const spaceMemberSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n spaceId: idSchema,\n orgUserId: idSchema,\n status: spaceMemberStatusSchema,\n source: spaceMemberSourceSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type SpaceMember = z.output<typeof spaceMemberSchema>;\n"],"mappings":";;;AAGA,MAAa,0BAA0B,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC;AAGnE,MAAa,oBAAoB,EAC9B,OAAO;CACN,OAAO;CACP,IAAI;CACJ,WAAW;CACX,UAAU,SAAS,SAAS;CAC5B,WAAW,SAAS,SAAS;CAC7B,QAAQ;CACR,QAAQ,EAAE,OAAO;CACjB,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK,CAAC,CAAC,SAAS;CACpC,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAIV,MAAa,0BAA0B,EACpC,OAAO;CACN,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;CAC5B,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;CAChC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,QAAQ,EAAE,KAAK;EAAC;EAAU;EAAW;CAAS,CAAC,CAAC,CAAC,SAAS;CAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5B,WAAW,SAAS,SAAS;CAC7B,WAAW,SAAS,SAAS;CAC7B,UAAU,SAAS,SAAS;CAC5B,MAAM,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC,CAAC,CAAC,SAAS;AAChD,CAAC,CAAC,CACD,OAAO;;AAIV,MAAa,8BAA8B,EACxC,OAAO;CACN,WAAW;CACX,WAAW,SAAS,QAAQ;CAC5B,UAAU,SAAS,QAAQ;CAC3B,WAAW,EAAE,OAAO,KAAK,CAAC,CAAC,SAAS;AACtC,CAAC,CAAC,CACD,OAAO,CAAC,CACR,QAAQ,MAAO,EAAE,aAAa,UAAW,EAAE,YAAY,OAAO,EAC7D,SAAS,+CACX,CAAC;AAGH,MAAa,0BAA0B,EAAE,KAAK;CAAC;CAAa;CAAW;CAAU;AAAS,CAAC;AAG3F,MAAa,0BAA0B,EAAE,KAAK;CAAC;CAAW;CAAU;AAAQ,CAAC;AAG7E,MAAa,oBAAoB,EAC9B,OAAO;CACN,OAAO;CACP,IAAI;CACJ,aAAa;CACb,SAAS;CACT,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO"}
1
+ {"version":3,"file":"entitlements.js","names":[],"sources":["../../../src/types/schemas/entitlements.ts"],"sourcesContent":["import { z } from 'zod';\nimport { contentTypeSchema, eventAttendeeSourceSchema } from './content.js';\nimport { idSchema } from './shared.js';\n\nexport const entitlementStatusSchema = z.enum(['active', 'revoked']);\nexport type EntitlementStatus = z.infer<typeof entitlementStatusSchema>;\n\nexport const entitlementSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n orgUserId: idSchema,\n bundleId: idSchema.nullable(),\n contentId: idSchema.nullable(),\n status: entitlementStatusSchema,\n source: z.string(),\n grantedAt: z.coerce.date(),\n expiresAt: z.coerce.date().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Entitlement = z.output<typeof entitlementSchema>;\nexport type EntitlementInput = z.input<typeof entitlementSchema>;\n\nexport const entitlementsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n search: z.string().optional(),\n sort: z.string().optional(),\n status: z.enum(['active', 'expired', 'revoked']).optional(),\n source: z.string().optional(),\n orgUserId: idSchema.optional(),\n contentId: idSchema.optional(),\n bundleId: idSchema.optional(),\n type: z.enum(['course', 'download', 'event']).optional(),\n })\n .strict();\nexport type EntitlementsQuery = z.infer<typeof entitlementsQuerySchema>;\n\n/** A grant targets exactly one of: a bundle or a single content item. */\nexport const grantEntitlementInputSchema = z\n .object({\n orgUserId: idSchema,\n contentId: idSchema.nullish(),\n bundleId: idSchema.nullish(),\n expiresAt: z.coerce.date().nullable(),\n contentType: contentTypeSchema\n .optional()\n .describe('When set, a contentId of another type is not found'),\n })\n .strict()\n .refine((v) => (v.contentId != null) !== (v.bundleId != null), {\n message: 'Provide exactly one of contentId or bundleId',\n })\n .refine((v) => v.contentType === undefined || v.contentId != null, {\n message: 'contentType applies to a contentId only',\n });\nexport type GrantEntitlementInput = z.output<typeof grantEntitlementInputSchema>;\n\nexport const grantSourceSchema = eventAttendeeSourceSchema.exclude(['bundle']);\nexport type GrantSource = z.infer<typeof grantSourceSchema>;\n\nexport const spaceMemberStatusSchema = z.enum(['requested', 'invited', 'active', 'revoked']);\nexport type SpaceMemberStatus = z.infer<typeof spaceMemberStatusSchema>;\n\nexport const spaceMemberSourceSchema = z.enum(['request', 'invite', 'manual']);\nexport type SpaceMemberSource = z.infer<typeof spaceMemberSourceSchema>;\n\nexport const spaceMemberSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n spaceId: idSchema,\n orgUserId: idSchema,\n status: spaceMemberStatusSchema,\n source: spaceMemberSourceSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type SpaceMember = z.output<typeof spaceMemberSchema>;\n"],"mappings":";;;;AAIA,MAAa,0BAA0B,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC;AAGnE,MAAa,oBAAoB,EAC9B,OAAO;CACN,OAAO;CACP,IAAI;CACJ,WAAW;CACX,UAAU,SAAS,SAAS;CAC5B,WAAW,SAAS,SAAS;CAC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AE,KAAK;CAAC;CAAa;CAAW;CAAU;AAAS,CAAC;AAG3F,MAAa,0BAA0B,EAAE,KAAK;CAAC;CAAW;CAAU;AAAQ,CAAC;AAG7E,MAAa,oBAAoB,EAC9B,OAAO;CACN,OAAO;CACP,IAAI;CACJ,aAAa;CACb,SAAS;CACT,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO"}
@@ -1,15 +1,15 @@
1
- import { Activity, ActivityAsset, ActivityAssetInput, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddSpaceLinkInput, Bundle, BundleInput, BundleItem, BundleItemInput, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateSpaceInput, DigestCadence, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, Module, ModuleInput, PatchCommunitySettingsInput, PatchDmSettingsInput, ReorderDownloadAssetsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceSettings, SpaceTopic, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateSpaceInput, activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateSpaceInputSchema } from "./content.js";
1
+ import { Activity, ActivityAsset, ActivityAssetInput, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddEventAssetInput, AddSpaceLinkInput, Bundle, BundleInput, BundleItem, BundleItemInput, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DigestCadence, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, Event, EventAddress, EventAnalytics, EventAsset, EventAttendee, EventAttendeeFace, EventAttendeeSource, EventFile, EventLead, EventLocation, EventOnline, EventRecording, EventSettings, EventSort, EventStatus, EventType, EventVenue, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, MemberEvent, MemberEventSummary, MemberEventViewer, MemberEventsQuery, Module, ModuleInput, PatchCommunitySettingsInput, PatchDmSettingsInput, ReorderDownloadAssetsInput, ReorderEventAssetsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceSettings, SpaceTopic, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput, activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema } from "./content.js";
2
2
  import { CreateUserInput, ProvisionUserInput, UpdateUserInput, User, UserInput, UserProfile, UserProfileView, createUserInputSchema, provisionUserInputSchema, updateUserInputSchema, userProfileSchema, userProfileViewSchema, userSchema } from "./identity.js";
3
- import { AcceptInviteInput, AddOrgUserInput, CreateInviteInput, CreateOrgUserInput, Invite, InviteInput, InviteRole, NewOrganizationInput, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, Role, UpdateOrgUserInput, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteRoleSchema, inviteSchema, newOrganizationInputSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, roleSchema, updateOrgUserInputSchema } from "./organizations.js";
4
- import { Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, GrantEntitlementInput, SpaceMember, SpaceMemberSource, SpaceMemberStatus, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema } from "./entitlements.js";
3
+ import { AcceptInviteInput, AddOrgUserInput, CreateInviteInput, CreateOrgUserInput, Invite, InviteInput, Level, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, PERMISSION_KEYS, Permission, RoleAssignment, RoleKey, UpdateOrgUserInput, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema } from "./organizations.js";
4
+ import { Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, GrantEntitlementInput, GrantSource, SpaceMember, SpaceMemberSource, SpaceMemberStatus, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, grantSourceSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema } from "./entitlements.js";
5
5
  import { ProgressRecord, ProgressRecordInput, ProgressReportItem, ProgressTarget, ProgressTargetType, ReportProgressInput, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, reportProgressInputSchema } from "./progress.js";
6
6
  import { Asset, AssetInput, AssetKind, AssetSource, AssetStatus, AssetUrls, AssetView, AssetsQuery, RequestUploadInput, UploadTicket, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, requestUploadInputSchema, uploadTicketSchema } from "./assets.js";
7
7
  import { ConfigureInput, ConnectInput, Connection, ConnectionInput, Validation, configureInputSchema, connectInputSchema, connectionSchema, validationSchema } from "./integrations.js";
8
8
  import { Automation, AutomationAction, AutomationActionResult, AutomationInput, AutomationKind, AutomationRun, AutomationRunInput, AutomationRunStatus, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableActions, AvailableTriggers, CreateAutomationInput, CreateWebhookInput, CreatedWebhook, DeliverWebhookInput, MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, UpdateAutomationInput, UpdateWebhookInput, Webhook, WebhookSecret, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, createAutomationInputSchema, createWebhookInputSchema, createdWebhookSchema, deliverWebhookInputSchema, updateAutomationInputSchema, updateWebhookInputSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema } from "./automations.js";
9
- import { ActivityCommentsRule, BlockedUser, Chat, ChatKind, ChatLastMessage, ChatStatus, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, DigestRun, FlaggedComment, ListCommentsQuery, Mention, MentionItemType, MentionView, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Post, PostBookmark, PostFlag, PostFlagResolution, PostReaction, PostStatus, PostView, ReactionCounts, ReactionEmoji, Subscription, SubscriptionItemType, SubscriptionState, SubscriptionView, activityCommentsRuleSchema, blockedUserSchema, chatKindSchema, chatLastMessageSchema, chatSchema, chatStatusSchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, digestRunSchema, flaggedCommentSchema, listCommentsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, reactionCountsSchema, reactionEmojiSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema } from "./discussion.js";
9
+ import { ActivityCommentsRule, BlockedUser, Chat, ChatKind, ChatLastMessage, ChatLiveEvent, ChatStatus, ChatUnreadSummary, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, DigestRun, FlaggedComment, FlaggedCommentView, ListCommentsQuery, LiveMessage, Mention, MentionItemType, MentionView, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Post, PostAsset, PostBookmark, PostFlag, PostFlagResolution, PostReaction, PostStatus, PostView, ReactionCounts, ReactionEmoji, Subscription, SubscriptionItemType, SubscriptionState, SubscriptionView, activityCommentsRuleSchema, blockedUserSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, digestRunSchema, flaggedCommentSchema, flaggedCommentViewSchema, listCommentsQuerySchema, liveMessageSchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, reactionCountsSchema, reactionEmojiSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema } from "./discussion.js";
10
10
  import { Credential, CredentialInput, credentialSchema } from "./credentials.js";
11
11
  import { boundedJsonSchema, domainEventSchema, emailSchema, eventMetadataSchema, idSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, serializableDateSchema } from "./shared.js";
12
12
  import { EventOutbox, EventOutboxInput, eventOutboxSchema } from "./outbox.js";
13
13
  import { Setting, SettingInput, settingSchema } from "./settings.js";
14
14
  import { notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, reasonSchema, subjectTypeSchema } from "./notifications.js";
15
- export { AcceptInviteInput, Activity, ActivityAsset, ActivityAssetInput, ActivityCommentsRule, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddOrgUserInput, AddSpaceLinkInput, Asset, AssetInput, AssetKind, AssetSource, AssetStatus, AssetUrls, AssetView, AssetsQuery, Automation, AutomationAction, AutomationActionResult, AutomationInput, AutomationKind, AutomationRun, AutomationRunInput, AutomationRunStatus, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableActions, AvailableTriggers, BlockedUser, Bundle, BundleInput, BundleItem, BundleItemInput, Chat, ChatKind, ChatLastMessage, ChatStatus, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, Community, CommunitySettings, CommunityStatus, CommunityView, ConfigureInput, ConnectInput, Connection, ConnectionInput, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateAutomationInput, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateInviteInput, CreateOrgUserInput, CreateSpaceInput, CreateUserInput, CreateWebhookInput, CreatedWebhook, Credential, CredentialInput, DeliverWebhookInput, DigestCadence, DigestRun, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, EventOutbox, EventOutboxInput, FlaggedComment, GrantEntitlementInput, Invite, InviteInput, InviteRole, ListBundlesQuery, ListCommentsQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, Mention, MentionItemType, MentionView, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Module, ModuleInput, NewOrganizationInput, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, PatchCommunitySettingsInput, PatchDmSettingsInput, Post, PostBookmark, PostFlag, PostFlagResolution, PostReaction, PostStatus, PostView, ProgressRecord, ProgressRecordInput, ProgressReportItem, ProgressTarget, ProgressTargetType, ProvisionUserInput, ReactionCounts, ReactionEmoji, ReorderDownloadAssetsInput, ReportProgressInput, RequestUploadInput, Role, SaveActivityInput, SetSpaceTopicsInput, Setting, SettingInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceMember, SpaceMemberSource, SpaceMemberStatus, SpaceSettings, SpaceTopic, Subscription, SubscriptionItemType, SubscriptionState, SubscriptionView, UpdateAutomationInput, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateOrgUserInput, UpdateSpaceInput, UpdateUserInput, UpdateWebhookInput, UploadTicket, User, UserInput, UserProfile, UserProfileView, Validation, Webhook, WebhookSecret, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatSchema, chatStatusSchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventMetadataSchema, eventOutboxSchema, flaggedCommentSchema, grantEntitlementInputSchema, idSchema, inviteRoleSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleSchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
15
+ export { AcceptInviteInput, Activity, ActivityAsset, ActivityAssetInput, ActivityCommentsRule, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddEventAssetInput, AddOrgUserInput, AddSpaceLinkInput, Asset, AssetInput, AssetKind, AssetSource, AssetStatus, AssetUrls, AssetView, AssetsQuery, Automation, AutomationAction, AutomationActionResult, AutomationInput, AutomationKind, AutomationRun, AutomationRunInput, AutomationRunStatus, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableActions, AvailableTriggers, BlockedUser, Bundle, BundleInput, BundleItem, BundleItemInput, Chat, ChatKind, ChatLastMessage, ChatLiveEvent, ChatStatus, ChatUnreadSummary, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, Community, CommunitySettings, CommunityStatus, CommunityView, ConfigureInput, ConnectInput, Connection, ConnectionInput, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateAutomationInput, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateInviteInput, CreateOrgUserInput, CreateSpaceInput, CreateUserInput, CreateWebhookInput, CreatedWebhook, Credential, CredentialInput, DeliverWebhookInput, DigestCadence, DigestRun, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, Event, EventAddress, EventAnalytics, EventAsset, EventAttendee, EventAttendeeFace, EventAttendeeSource, EventFile, EventLead, EventLocation, EventOnline, EventOutbox, EventOutboxInput, EventRecording, EventSettings, EventSort, EventStatus, EventType, EventVenue, EventView, FlaggedComment, FlaggedCommentView, GrantEntitlementInput, GrantSource, Invite, InviteInput, Level, ListBundlesQuery, ListCommentsQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, LiveMessage, MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, MemberEvent, MemberEventSummary, MemberEventViewer, MemberEventsQuery, Mention, MentionItemType, MentionView, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Module, ModuleInput, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, PERMISSION_KEYS, PatchCommunitySettingsInput, PatchDmSettingsInput, Permission, Post, PostAsset, PostBookmark, PostFlag, PostFlagResolution, PostReaction, PostStatus, PostView, ProgressRecord, ProgressRecordInput, ProgressReportItem, ProgressTarget, ProgressTargetType, ProvisionUserInput, ReactionCounts, ReactionEmoji, ReorderDownloadAssetsInput, ReorderEventAssetsInput, ReportProgressInput, RequestUploadInput, RoleAssignment, RoleKey, SaveActivityInput, SetSpaceTopicsInput, Setting, SettingInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceMember, SpaceMemberSource, SpaceMemberStatus, SpaceSettings, SpaceTopic, Subscription, SubscriptionItemType, SubscriptionState, SubscriptionView, UpdateAutomationInput, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateOrgUserInput, UpdateSpaceInput, UpdateUserInput, UpdateWebhookInput, UploadTicket, User, UserInput, UserProfile, UserProfileView, Validation, Webhook, WebhookSecret, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventMetadataSchema, eventOnlineSchema, eventOutboxSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, flaggedCommentSchema, flaggedCommentViewSchema, grantEntitlementInputSchema, grantSourceSchema, idSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, levelSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, liveMessageSchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, permissionSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleAssignmentSchema, roleKeySchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, timeZoneSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
@@ -1,10 +1,10 @@
1
1
  import { boundedJsonSchema, domainEventSchema, emailSchema, eventMetadataSchema, idSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, serializableDateSchema } from "./shared.js";
2
2
  import { createUserInputSchema, provisionUserInputSchema, updateUserInputSchema, userProfileSchema, userProfileViewSchema, userSchema } from "./identity.js";
3
- import { acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteRoleSchema, inviteSchema, newOrganizationInputSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, roleSchema, updateOrgUserInputSchema } from "./organizations.js";
4
- import { activityCommentsRuleSchema, blockedUserSchema, chatKindSchema, chatLastMessageSchema, chatSchema, chatStatusSchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, digestRunSchema, flaggedCommentSchema, listCommentsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, reactionCountsSchema, reactionEmojiSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema } from "./discussion.js";
5
3
  import { assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, requestUploadInputSchema, uploadTicketSchema } from "./assets.js";
6
- import { activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateSpaceInputSchema } from "./content.js";
7
- import { entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema } from "./entitlements.js";
4
+ import { activityCommentsRuleSchema, blockedUserSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, digestRunSchema, flaggedCommentSchema, flaggedCommentViewSchema, listCommentsQuerySchema, liveMessageSchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, reactionCountsSchema, reactionEmojiSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema } from "./discussion.js";
5
+ import { activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema } from "./content.js";
6
+ import { PERMISSION_KEYS, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema } from "./organizations.js";
7
+ import { entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, grantSourceSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema } from "./entitlements.js";
8
8
  import { progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, reportProgressInputSchema } from "./progress.js";
9
9
  import { configureInputSchema, connectInputSchema, connectionSchema, validationSchema } from "./integrations.js";
10
10
  import { MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, createAutomationInputSchema, createWebhookInputSchema, createdWebhookSchema, deliverWebhookInputSchema, updateAutomationInputSchema, updateWebhookInputSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema } from "./automations.js";
@@ -12,4 +12,4 @@ import { credentialSchema } from "./credentials.js";
12
12
  import { eventOutboxSchema } from "./outbox.js";
13
13
  import { settingSchema } from "./settings.js";
14
14
  import { notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, reasonSchema, subjectTypeSchema } from "./notifications.js";
15
- export { MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatSchema, chatStatusSchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventMetadataSchema, eventOutboxSchema, flaggedCommentSchema, grantEntitlementInputSchema, idSchema, inviteRoleSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleSchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
15
+ export { MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, PERMISSION_KEYS, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventMetadataSchema, eventOnlineSchema, eventOutboxSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, flaggedCommentSchema, flaggedCommentViewSchema, grantEntitlementInputSchema, grantSourceSchema, idSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, levelSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, liveMessageSchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, permissionSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleAssignmentSchema, roleKeySchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, timeZoneSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
@@ -1,7 +1,6 @@
1
1
  import { z } from "zod";
2
2
  //#region src/types/schemas/notifications.d.ts
3
3
  declare const reasonSchema: z.ZodEnum<{
4
- moderator: "moderator";
5
4
  subject: "subject";
6
5
  post_author: "post_author";
7
6
  comment_author: "comment_author";
@@ -13,25 +12,27 @@ declare const reasonSchema: z.ZodEnum<{
13
12
  space_member: "space_member";
14
13
  community_member: "community_member";
15
14
  course_member: "course_member";
16
- staff: "staff";
15
+ event_member: "event_member";
16
+ moderator: "moderator";
17
17
  }>;
18
18
  declare const notificationScopeSchema: z.ZodEnum<{
19
- org: "org";
20
19
  community: "community";
20
+ org: "org";
21
21
  space: "space";
22
22
  chat: "chat";
23
23
  }>;
24
24
  declare const subjectTypeSchema: z.ZodEnum<{
25
- activity: "activity";
26
- course: "course";
27
25
  message: "message";
26
+ event: "event";
27
+ course: "course";
28
28
  download: "download";
29
29
  community: "community";
30
- post: "post";
31
- comment: "comment";
30
+ activity: "activity";
31
+ bundle: "bundle";
32
32
  space: "space";
33
33
  chat: "chat";
34
- bundle: "bundle";
34
+ post: "post";
35
+ comment: "comment";
35
36
  }>;
36
37
  declare const notificationCategoryKeySchema: z.ZodString;
37
38
  declare const notificationTypeKeySchema: z.ZodString;
@@ -41,7 +42,6 @@ declare const notificationCategorySchema: z.ZodObject<{
41
42
  covers: z.ZodArray<z.ZodObject<{
42
43
  type: z.ZodString;
43
44
  reasons: z.ZodArray<z.ZodEnum<{
44
- moderator: "moderator";
45
45
  subject: "subject";
46
46
  post_author: "post_author";
47
47
  comment_author: "comment_author";
@@ -53,7 +53,8 @@ declare const notificationCategorySchema: z.ZodObject<{
53
53
  space_member: "space_member";
54
54
  community_member: "community_member";
55
55
  course_member: "course_member";
56
- staff: "staff";
56
+ event_member: "event_member";
57
+ moderator: "moderator";
57
58
  }>>;
58
59
  }, z.core.$strict>>;
59
60
  channels: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -68,7 +69,6 @@ declare const notificationCategoryListSchema: z.ZodArray<z.ZodObject<{
68
69
  covers: z.ZodArray<z.ZodObject<{
69
70
  type: z.ZodString;
70
71
  reasons: z.ZodArray<z.ZodEnum<{
71
- moderator: "moderator";
72
72
  subject: "subject";
73
73
  post_author: "post_author";
74
74
  comment_author: "comment_author";
@@ -80,7 +80,8 @@ declare const notificationCategoryListSchema: z.ZodArray<z.ZodObject<{
80
80
  space_member: "space_member";
81
81
  community_member: "community_member";
82
82
  course_member: "course_member";
83
- staff: "staff";
83
+ event_member: "event_member";
84
+ moderator: "moderator";
84
85
  }>>;
85
86
  }, z.core.$strict>>;
86
87
  channels: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -12,8 +12,8 @@ const reasonSchema = z.enum([
12
12
  "space_member",
13
13
  "community_member",
14
14
  "course_member",
15
- "moderator",
16
- "staff"
15
+ "event_member",
16
+ "moderator"
17
17
  ]);
18
18
  const notificationScopeSchema = z.enum([
19
19
  "org",
@@ -30,6 +30,7 @@ const subjectTypeSchema = z.enum([
30
30
  "community",
31
31
  "course",
32
32
  "download",
33
+ "event",
33
34
  "bundle",
34
35
  "activity"
35
36
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.js","names":[],"sources":["../../../src/types/schemas/notifications.ts"],"sourcesContent":["import { z } from 'zod';\nimport type { NotificationCategory, Reason, SubjectRef } from '../notifications.js';\n\nexport const reasonSchema = z.enum([\n 'subject',\n 'post_author',\n 'comment_author',\n 'message_author',\n 'follower',\n 'thread_participant',\n 'mentioned',\n 'participant',\n 'space_member',\n 'community_member',\n 'course_member',\n 'moderator',\n 'staff',\n]) satisfies z.ZodType<Reason>;\n\nexport const notificationScopeSchema = z.enum(['org', 'community', 'space', 'chat']);\n\nexport const subjectTypeSchema = z.enum([\n 'post',\n 'comment',\n 'chat',\n 'message',\n 'space',\n 'community',\n 'course',\n 'download',\n 'bundle',\n 'activity',\n]) satisfies z.ZodType<SubjectRef['type']>;\n\nexport const notificationCategoryKeySchema = z\n .string()\n .regex(/^[a-z][a-z0-9_]{0,63}$/, 'must be lower case letters, digits and underscores');\n\nexport const notificationTypeKeySchema = z\n .string()\n .regex(/^[a-z][a-z0-9_.]{0,63}$/, 'must be a notification type key');\n\nexport const notificationChannelKeySchema = z\n .string()\n .regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/, 'must be a channel key');\n\nexport const notificationCategorySchema = z\n .object({\n key: notificationCategoryKeySchema,\n covers: z\n .array(\n z\n .object({\n type: notificationTypeKeySchema,\n reasons: z.array(reasonSchema).min(1).max(13),\n })\n .strict(),\n )\n .min(1)\n .max(50),\n channels: z.record(\n notificationChannelKeySchema,\n z.object({ default: z.boolean(), locked: z.boolean() }).strict(),\n ),\n perSpace: z.boolean().optional(),\n spaceDefaults: z\n .record(z.string().min(1).max(64), z.record(notificationChannelKeySchema, z.boolean()))\n .optional(),\n })\n .strict() satisfies z.ZodType<NotificationCategory>;\n\nexport const notificationCategoryListSchema = z.array(notificationCategorySchema).max(100);\n"],"mappings":";;AAGA,MAAa,eAAe,EAAE,KAAK;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,MAAa,0BAA0B,EAAE,KAAK;CAAC;CAAO;CAAa;CAAS;AAAM,CAAC;AAEnF,MAAa,oBAAoB,EAAE,KAAK;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,MAAa,gCAAgC,EAC1C,OAAO,CAAC,CACR,MAAM,0BAA0B,oDAAoD;AAEvF,MAAa,4BAA4B,EACtC,OAAO,CAAC,CACR,MAAM,2BAA2B,iCAAiC;AAErE,MAAa,+BAA+B,EACzC,OAAO,CAAC,CACR,MAAM,gCAAgC,uBAAuB;AAEhE,MAAa,6BAA6B,EACvC,OAAO;CACN,KAAK;CACL,QAAQ,EACL,MACC,EACG,OAAO;EACN,MAAM;EACN,SAAS,EAAE,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE;CAC9C,CAAC,CAAC,CACD,OAAO,CACZ,CAAC,CACA,IAAI,CAAC,CAAC,CACN,IAAI,EAAE;CACT,UAAU,EAAE,OACV,8BACA,EAAE,OAAO;EAAE,SAAS,EAAE,QAAQ;EAAG,QAAQ,EAAE,QAAQ;CAAE,CAAC,CAAC,CAAC,OAAO,CACjE;CACA,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC/B,eAAe,EACZ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,8BAA8B,EAAE,QAAQ,CAAC,CAAC,CAAC,CACtF,SAAS;AACd,CAAC,CAAC,CACD,OAAO;AAEV,MAAa,iCAAiC,EAAE,MAAM,0BAA0B,CAAC,CAAC,IAAI,GAAG"}
1
+ {"version":3,"file":"notifications.js","names":[],"sources":["../../../src/types/schemas/notifications.ts"],"sourcesContent":["import { z } from 'zod';\nimport type { NotificationCategory, Reason, SubjectRef } from '../notifications.js';\n\nexport const reasonSchema = z.enum([\n 'subject',\n 'post_author',\n 'comment_author',\n 'message_author',\n 'follower',\n 'thread_participant',\n 'mentioned',\n 'participant',\n 'space_member',\n 'community_member',\n 'course_member',\n 'event_member',\n 'moderator',\n]) satisfies z.ZodType<Reason>;\n\nexport const notificationScopeSchema = z.enum(['org', 'community', 'space', 'chat']);\n\nexport const subjectTypeSchema = z.enum([\n 'post',\n 'comment',\n 'chat',\n 'message',\n 'space',\n 'community',\n 'course',\n 'download',\n 'event',\n 'bundle',\n 'activity',\n]) satisfies z.ZodType<SubjectRef['type']>;\n\nexport const notificationCategoryKeySchema = z\n .string()\n .regex(/^[a-z][a-z0-9_]{0,63}$/, 'must be lower case letters, digits and underscores');\n\nexport const notificationTypeKeySchema = z\n .string()\n .regex(/^[a-z][a-z0-9_.]{0,63}$/, 'must be a notification type key');\n\nexport const notificationChannelKeySchema = z\n .string()\n .regex(/^[a-zA-Z][a-zA-Z0-9_]{0,63}$/, 'must be a channel key');\n\nexport const notificationCategorySchema = z\n .object({\n key: notificationCategoryKeySchema,\n covers: z\n .array(\n z\n .object({\n type: notificationTypeKeySchema,\n reasons: z.array(reasonSchema).min(1).max(13),\n })\n .strict(),\n )\n .min(1)\n .max(50),\n channels: z.record(\n notificationChannelKeySchema,\n z.object({ default: z.boolean(), locked: z.boolean() }).strict(),\n ),\n perSpace: z.boolean().optional(),\n spaceDefaults: z\n .record(z.string().min(1).max(64), z.record(notificationChannelKeySchema, z.boolean()))\n .optional(),\n })\n .strict() satisfies z.ZodType<NotificationCategory>;\n\nexport const notificationCategoryListSchema = z.array(notificationCategorySchema).max(100);\n"],"mappings":";;AAGA,MAAa,eAAe,EAAE,KAAK;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,MAAa,0BAA0B,EAAE,KAAK;CAAC;CAAO;CAAa;CAAS;AAAM,CAAC;AAEnF,MAAa,oBAAoB,EAAE,KAAK;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,MAAa,gCAAgC,EAC1C,OAAO,CAAC,CACR,MAAM,0BAA0B,oDAAoD;AAEvF,MAAa,4BAA4B,EACtC,OAAO,CAAC,CACR,MAAM,2BAA2B,iCAAiC;AAErE,MAAa,+BAA+B,EACzC,OAAO,CAAC,CACR,MAAM,gCAAgC,uBAAuB;AAEhE,MAAa,6BAA6B,EACvC,OAAO;CACN,KAAK;CACL,QAAQ,EACL,MACC,EACG,OAAO;EACN,MAAM;EACN,SAAS,EAAE,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE;CAC9C,CAAC,CAAC,CACD,OAAO,CACZ,CAAC,CACA,IAAI,CAAC,CAAC,CACN,IAAI,EAAE;CACT,UAAU,EAAE,OACV,8BACA,EAAE,OAAO;EAAE,SAAS,EAAE,QAAQ;EAAG,QAAQ,EAAE,QAAQ;CAAE,CAAC,CAAC,CAAC,OAAO,CACjE;CACA,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS;CAC/B,eAAe,EACZ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,8BAA8B,EAAE,QAAQ,CAAC,CAAC,CAAC,CACtF,SAAS;AACd,CAAC,CAAC,CACD,OAAO;AAEV,MAAa,iCAAiC,EAAE,MAAM,0BAA0B,CAAC,CAAC,IAAI,GAAG"}