@headless-lms/core 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/events.d.ts +9 -9
- package/dist/assets/index.d.ts +3 -2
- package/dist/assets/index.js +2 -1
- package/dist/assets/jobs.d.ts +15 -0
- package/dist/assets/jobs.js +30 -0
- package/dist/assets/jobs.js.map +1 -0
- package/dist/assets/ports.d.ts +4 -3
- package/dist/assets/service.d.ts +0 -1
- package/dist/assets/service.js +0 -4
- package/dist/assets/service.js.map +1 -1
- package/dist/automations/actions.js +2 -63
- package/dist/automations/actions.js.map +1 -1
- package/dist/automations/catalog.d.ts +1 -2
- package/dist/automations/catalog.js +69 -62
- package/dist/automations/catalog.js.map +1 -1
- package/dist/automations/community-derivations.js +4 -4
- package/dist/automations/community-derivations.js.map +1 -1
- package/dist/automations/community-mail.d.ts +3 -17
- package/dist/automations/community-mail.js +1 -21
- package/dist/automations/community-mail.js.map +1 -1
- package/dist/automations/events.d.ts +0 -10
- package/dist/automations/index.d.ts +11 -4
- package/dist/automations/index.js +8 -1
- package/dist/automations/notifications/debounce.d.ts +25 -0
- package/dist/automations/notifications/debounce.js +93 -0
- package/dist/automations/notifications/debounce.js.map +1 -0
- package/dist/automations/notifications/defaults.d.ts +8 -0
- package/dist/automations/notifications/defaults.js +316 -0
- package/dist/automations/notifications/defaults.js.map +1 -0
- package/dist/automations/notifications/delivery.d.ts +28 -0
- package/dist/automations/notifications/delivery.js +88 -0
- package/dist/automations/notifications/delivery.js.map +1 -0
- package/dist/automations/notifications/processor.d.ts +64 -0
- package/dist/automations/notifications/processor.js +270 -0
- package/dist/automations/notifications/processor.js.map +1 -0
- package/dist/automations/notifications/rules/content.d.ts +6 -0
- package/dist/automations/notifications/rules/content.js +39 -0
- package/dist/automations/notifications/rules/content.js.map +1 -0
- package/dist/automations/notifications/rules/discussion.d.ts +7 -0
- package/dist/automations/notifications/rules/discussion.js +678 -0
- package/dist/automations/notifications/rules/discussion.js.map +1 -0
- package/dist/automations/notifications/rules/entitlements.d.ts +6 -0
- package/dist/automations/notifications/rules/entitlements.js +249 -0
- package/dist/automations/notifications/rules/entitlements.js.map +1 -0
- package/dist/automations/notifications/rules/index.d.ts +6 -0
- package/dist/automations/notifications/rules/index.js +15 -0
- package/dist/automations/notifications/rules/index.js.map +1 -0
- package/dist/automations/notifications/rules/organizations.d.ts +6 -0
- package/dist/automations/notifications/rules/organizations.js +28 -0
- package/dist/automations/notifications/rules/organizations.js.map +1 -0
- package/dist/automations/notifications/rules/recipients.d.ts +32 -0
- package/dist/automations/notifications/rules/recipients.js +99 -0
- package/dist/automations/notifications/rules/recipients.js.map +1 -0
- package/dist/automations/notifications/service.d.ts +27 -0
- package/dist/automations/notifications/service.js +45 -0
- package/dist/automations/notifications/service.js.map +1 -0
- package/dist/automations/notifications/types.d.ts +7 -0
- package/dist/automations/notifications/types.js +473 -0
- package/dist/automations/notifications/types.js.map +1 -0
- package/dist/automations/ports.d.ts +119 -5
- package/dist/automations/service.d.ts +10 -13
- package/dist/automations/service.js +21 -83
- package/dist/automations/service.js.map +1 -1
- package/dist/content/events.d.ts +130 -80
- package/dist/content/events.js +11 -0
- package/dist/content/events.js.map +1 -1
- package/dist/content/index.d.ts +6 -4
- package/dist/content/index.js +3 -1
- package/dist/content/model.d.ts +2 -2
- package/dist/content/notification-categories.d.ts +36 -0
- package/dist/content/notification-categories.js +64 -0
- package/dist/content/notification-categories.js.map +1 -0
- package/dist/content/ports.d.ts +25 -6
- package/dist/content/service.d.ts +4 -4
- package/dist/content/service.js +24 -8
- package/dist/content/service.js.map +1 -1
- package/dist/content/titles.d.ts +22 -0
- package/dist/content/titles.js +69 -0
- package/dist/content/titles.js.map +1 -0
- package/dist/content/types.d.ts +2 -2
- package/dist/discussion/chats.d.ts +9 -4
- package/dist/discussion/chats.js +80 -47
- package/dist/discussion/chats.js.map +1 -1
- package/dist/discussion/digests.d.ts +24 -0
- package/dist/discussion/digests.js +104 -0
- package/dist/discussion/digests.js.map +1 -0
- package/dist/discussion/events.d.ts +194 -28
- package/dist/discussion/events.js +74 -17
- package/dist/discussion/events.js.map +1 -1
- package/dist/discussion/index.d.ts +7 -2
- package/dist/discussion/index.js +6 -1
- package/dist/discussion/jobs.d.ts +16 -0
- package/dist/discussion/jobs.js +40 -0
- package/dist/discussion/jobs.js.map +1 -0
- package/dist/discussion/mentions.d.ts +11 -0
- package/dist/discussion/mentions.js +35 -0
- package/dist/discussion/mentions.js.map +1 -0
- package/dist/discussion/ports.d.ts +107 -24
- package/dist/discussion/ports.js.map +1 -1
- package/dist/discussion/posts.d.ts +18 -8
- package/dist/discussion/posts.js +207 -155
- package/dist/discussion/posts.js.map +1 -1
- package/dist/discussion/service.d.ts +17 -8
- package/dist/discussion/service.js +105 -41
- package/dist/discussion/service.js.map +1 -1
- package/dist/discussion/subscriptions.d.ts +37 -0
- package/dist/discussion/subscriptions.js +99 -0
- package/dist/discussion/subscriptions.js.map +1 -0
- package/dist/discussion/titles.d.ts +26 -0
- package/dist/discussion/titles.js +84 -0
- package/dist/discussion/titles.js.map +1 -0
- package/dist/entitlements/events.d.ts +20 -20
- package/dist/entitlements/index.d.ts +2 -1
- package/dist/entitlements/index.js +2 -1
- package/dist/entitlements/jobs.d.ts +12 -0
- package/dist/entitlements/jobs.js +18 -0
- package/dist/entitlements/jobs.js.map +1 -0
- package/dist/entitlements/ports.d.ts +7 -3
- package/dist/entitlements/service.d.ts +5 -2
- package/dist/entitlements/service.js +23 -3
- package/dist/entitlements/service.js.map +1 -1
- package/dist/identity/devices.d.ts +30 -0
- package/dist/identity/devices.js +107 -0
- package/dist/identity/devices.js.map +1 -0
- package/dist/identity/events.d.ts +2 -2
- package/dist/identity/index.d.ts +5 -4
- package/dist/identity/index.js +3 -2
- package/dist/identity/model.d.ts +2 -2
- package/dist/identity/notification-settings.d.ts +28 -0
- package/dist/identity/notification-settings.js +113 -0
- package/dist/identity/notification-settings.js.map +1 -0
- package/dist/identity/ports.d.ts +78 -54
- package/dist/integrations/events.d.ts +3 -3
- package/dist/organizations/events.d.ts +32 -32
- package/dist/organizations/index.d.ts +2 -1
- package/dist/organizations/index.js +2 -1
- package/dist/organizations/notification-categories.d.ts +32 -0
- package/dist/organizations/notification-categories.js +51 -0
- package/dist/organizations/notification-categories.js.map +1 -0
- package/dist/organizations/ports.d.ts +3 -0
- package/dist/organizations/service.d.ts +2 -0
- package/dist/organizations/service.js +7 -0
- package/dist/organizations/service.js.map +1 -1
- package/dist/progress/events.d.ts +14 -14
- package/dist/reporting/member/index.d.ts +2 -2
- package/dist/reporting/member/model.d.ts +56 -23
- package/dist/reporting/member/ports.d.ts +9 -6
- package/dist/reporting/member/service.d.ts +33 -14
- package/dist/reporting/member/service.js +138 -60
- package/dist/reporting/member/service.js.map +1 -1
- package/dist/shared/errors.d.ts +13 -1
- package/dist/shared/errors.js +18 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/id.d.ts +3 -0
- package/dist/shared/id.js +4 -1
- package/dist/shared/id.js.map +1 -1
- package/dist/shared/mailer.d.ts +11 -1
- package/dist/shared/mailer.js +32 -5
- package/dist/shared/mailer.js.map +1 -1
- package/dist/shared/notification-categories.d.ts +16 -0
- package/dist/shared/notification-categories.js +94 -0
- package/dist/shared/notification-categories.js.map +1 -0
- package/dist/shared/notification-settings.d.ts +14 -0
- package/dist/shared/notification-settings.js +61 -0
- package/dist/shared/notification-settings.js.map +1 -0
- package/dist/shared/ports.d.ts +48 -2
- package/dist/shared/settings.d.ts +2 -1
- package/dist/shared/settings.js +1 -0
- package/dist/shared/settings.js.map +1 -1
- package/dist/types/automations.d.ts +8 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/discussion.d.ts +2 -2
- package/dist/types/email-templates.d.ts +97 -3
- package/dist/types/identity.d.ts +2 -2
- package/dist/types/index.d.ts +7 -6
- package/dist/types/notifications.d.ts +157 -0
- package/dist/types/notifications.js +1 -0
- package/dist/types/schemas/automations.d.ts +1 -10
- package/dist/types/schemas/automations.js +1 -3
- package/dist/types/schemas/automations.js.map +1 -1
- package/dist/types/schemas/content.d.ts +62 -1
- package/dist/types/schemas/content.js +25 -3
- package/dist/types/schemas/content.js.map +1 -1
- package/dist/types/schemas/discussion.d.ts +85 -12
- package/dist/types/schemas/discussion.js +47 -13
- package/dist/types/schemas/discussion.js.map +1 -1
- package/dist/types/schemas/identity.d.ts +1 -85
- package/dist/types/schemas/identity.js +1 -42
- package/dist/types/schemas/identity.js.map +1 -1
- package/dist/types/schemas/index.d.ts +6 -5
- package/dist/types/schemas/index.js +6 -5
- package/dist/types/schemas/notifications.d.ts +95 -0
- package/dist/types/schemas/notifications.js +56 -0
- package/dist/types/schemas/notifications.js.map +1 -0
- package/dist/types/schemas/progress.d.ts +3 -3
- package/package.json +1 -1
- package/dist/automations/community-notifications.d.ts +0 -16
- package/dist/automations/community-notifications.js +0 -84
- package/dist/automations/community-notifications.js.map +0 -1
- package/dist/automations/seeds.d.ts +0 -17
- package/dist/automations/seeds.js +0 -235
- package/dist/automations/seeds.js.map +0 -1
- package/dist/identity/notifications.d.ts +0 -27
- package/dist/identity/notifications.js +0 -101
- package/dist/identity/notifications.js.map +0 -1
|
@@ -94,6 +94,29 @@ declare const commentReportSchema: z.ZodObject<{
|
|
|
94
94
|
}, z.core.$strict>;
|
|
95
95
|
type CommentReport = z.output<typeof commentReportSchema>;
|
|
96
96
|
type CommentReportInput = z.input<typeof commentReportSchema>;
|
|
97
|
+
declare const mentionItemTypeSchema: z.ZodEnum<{
|
|
98
|
+
message: "message";
|
|
99
|
+
post: "post";
|
|
100
|
+
comment: "comment";
|
|
101
|
+
}>;
|
|
102
|
+
type MentionItemType = z.infer<typeof mentionItemTypeSchema>;
|
|
103
|
+
declare const mentionSchema: z.ZodObject<{
|
|
104
|
+
orgId: z.ZodString;
|
|
105
|
+
itemType: z.ZodEnum<{
|
|
106
|
+
message: "message";
|
|
107
|
+
post: "post";
|
|
108
|
+
comment: "comment";
|
|
109
|
+
}>;
|
|
110
|
+
itemId: z.ZodString;
|
|
111
|
+
orgUserId: z.ZodString;
|
|
112
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
type Mention = z.output<typeof mentionSchema>;
|
|
115
|
+
declare const mentionViewSchema: z.ZodObject<{
|
|
116
|
+
orgUserId: z.ZodString;
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
}, z.core.$strict>;
|
|
119
|
+
type MentionView = z.output<typeof mentionViewSchema>;
|
|
97
120
|
declare const commentViewSchema: z.ZodObject<{
|
|
98
121
|
id: z.ZodString;
|
|
99
122
|
activityId: z.ZodNullable<z.ZodString>;
|
|
@@ -142,6 +165,10 @@ declare const commentViewSchema: z.ZodObject<{
|
|
|
142
165
|
}, z.core.$strict>>;
|
|
143
166
|
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
144
167
|
viewerReaction: z.ZodOptional<z.ZodString>;
|
|
168
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
169
|
+
orgUserId: z.ZodString;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
}, z.core.$strict>>;
|
|
145
172
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
146
173
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
147
174
|
}, z.core.$strict>;
|
|
@@ -240,6 +267,42 @@ declare const listCommentsQuerySchema: z.ZodObject<{
|
|
|
240
267
|
orgUserId: z.ZodOptional<z.ZodString>;
|
|
241
268
|
}, z.core.$strict>;
|
|
242
269
|
type ListCommentsQuery = z.infer<typeof listCommentsQuerySchema>;
|
|
270
|
+
declare const subscriptionItemTypeSchema: z.ZodEnum<{
|
|
271
|
+
post: "post";
|
|
272
|
+
space: "space";
|
|
273
|
+
chat: "chat";
|
|
274
|
+
}>;
|
|
275
|
+
type SubscriptionItemType = z.infer<typeof subscriptionItemTypeSchema>;
|
|
276
|
+
declare const subscriptionStateSchema: z.ZodEnum<{
|
|
277
|
+
following: "following";
|
|
278
|
+
muted: "muted";
|
|
279
|
+
}>;
|
|
280
|
+
type SubscriptionState = z.infer<typeof subscriptionStateSchema>;
|
|
281
|
+
declare const subscriptionSchema: z.ZodObject<{
|
|
282
|
+
orgId: z.ZodString;
|
|
283
|
+
orgUserId: z.ZodString;
|
|
284
|
+
itemType: z.ZodEnum<{
|
|
285
|
+
post: "post";
|
|
286
|
+
space: "space";
|
|
287
|
+
chat: "chat";
|
|
288
|
+
}>;
|
|
289
|
+
itemId: z.ZodString;
|
|
290
|
+
state: z.ZodEnum<{
|
|
291
|
+
following: "following";
|
|
292
|
+
muted: "muted";
|
|
293
|
+
}>;
|
|
294
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
295
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
296
|
+
}, z.core.$strict>;
|
|
297
|
+
type Subscription = z.output<typeof subscriptionSchema>;
|
|
298
|
+
declare const subscriptionViewSchema: z.ZodObject<{
|
|
299
|
+
state: z.ZodEnum<{
|
|
300
|
+
following: "following";
|
|
301
|
+
muted: "muted";
|
|
302
|
+
}>;
|
|
303
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
304
|
+
}, z.core.$strict>;
|
|
305
|
+
type SubscriptionView = z.output<typeof subscriptionViewSchema>;
|
|
243
306
|
declare const postStatusSchema: z.ZodEnum<{
|
|
244
307
|
pending: "pending";
|
|
245
308
|
draft: "draft";
|
|
@@ -323,8 +386,18 @@ declare const postViewSchema: z.ZodObject<{
|
|
|
323
386
|
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
324
387
|
viewerReaction: z.ZodNullable<z.ZodString>;
|
|
325
388
|
commentCount: z.ZodNumber;
|
|
326
|
-
|
|
389
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
390
|
+
state: z.ZodEnum<{
|
|
391
|
+
following: "following";
|
|
392
|
+
muted: "muted";
|
|
393
|
+
}>;
|
|
394
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
395
|
+
}, z.core.$strict>>;
|
|
327
396
|
bookmarked: z.ZodBoolean;
|
|
397
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
398
|
+
orgUserId: z.ZodString;
|
|
399
|
+
name: z.ZodString;
|
|
400
|
+
}, z.core.$strict>>;
|
|
328
401
|
}, z.core.$strict>;
|
|
329
402
|
type PostView = z.output<typeof postViewSchema>;
|
|
330
403
|
declare const flaggedCommentSchema: z.ZodObject<{
|
|
@@ -363,14 +436,6 @@ declare const postReactionSchema: z.ZodObject<{
|
|
|
363
436
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
364
437
|
}, z.core.$strict>;
|
|
365
438
|
type PostReaction = z.output<typeof postReactionSchema>;
|
|
366
|
-
declare const postFollowSchema: z.ZodObject<{
|
|
367
|
-
orgId: z.ZodString;
|
|
368
|
-
postId: z.ZodString;
|
|
369
|
-
orgUserId: z.ZodString;
|
|
370
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
371
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
372
|
-
}, z.core.$strict>;
|
|
373
|
-
type PostFollow = z.output<typeof postFollowSchema>;
|
|
374
439
|
declare const postBookmarkSchema: z.ZodObject<{
|
|
375
440
|
orgId: z.ZodString;
|
|
376
441
|
postId: z.ZodString;
|
|
@@ -439,8 +504,6 @@ declare const chatUserSchema: z.ZodObject<{
|
|
|
439
504
|
joinedAt: z.ZodCoercedDate<unknown>;
|
|
440
505
|
leftAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
441
506
|
lastReadMessageId: z.ZodNullable<z.ZodString>;
|
|
442
|
-
muted: z.ZodBoolean;
|
|
443
|
-
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
444
507
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
445
508
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
446
509
|
}, z.core.$strict>;
|
|
@@ -499,6 +562,10 @@ declare const messageViewSchema: z.ZodObject<{
|
|
|
499
562
|
}, z.core.$strict>>;
|
|
500
563
|
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
501
564
|
viewerReaction: z.ZodNullable<z.ZodString>;
|
|
565
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
566
|
+
orgUserId: z.ZodString;
|
|
567
|
+
name: z.ZodString;
|
|
568
|
+
}, z.core.$strict>>;
|
|
502
569
|
}, z.core.$strict>;
|
|
503
570
|
type MessageView = z.output<typeof messageViewSchema>;
|
|
504
571
|
declare const chatLastMessageSchema: z.ZodObject<{
|
|
@@ -562,6 +629,12 @@ declare const blockedUserSchema: z.ZodObject<{
|
|
|
562
629
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
563
630
|
}, z.core.$strict>;
|
|
564
631
|
type BlockedUser = z.output<typeof blockedUserSchema>;
|
|
632
|
+
declare const digestRunSchema: z.ZodObject<{
|
|
633
|
+
orgId: z.ZodString;
|
|
634
|
+
communityId: z.ZodString;
|
|
635
|
+
lastDueAt: z.ZodCoercedDate<unknown>;
|
|
636
|
+
}, z.core.$strict>;
|
|
637
|
+
type DigestRun = z.output<typeof digestRunSchema>;
|
|
565
638
|
//#endregion
|
|
566
|
-
export { ActivityCommentsRule, BlockedUser, Chat, ChatKind, ChatLastMessage, ChatStatus, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, FlaggedComment, ListCommentsQuery, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Post, PostBookmark, PostFlag, PostFlagResolution,
|
|
639
|
+
export { 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 };
|
|
567
640
|
//# sourceMappingURL=discussion.d.ts.map
|
|
@@ -66,6 +66,22 @@ const commentReportSchema = z.object({
|
|
|
66
66
|
createdAt: z.coerce.date(),
|
|
67
67
|
updatedAt: z.coerce.date()
|
|
68
68
|
}).strict();
|
|
69
|
+
const mentionItemTypeSchema = z.enum([
|
|
70
|
+
"post",
|
|
71
|
+
"comment",
|
|
72
|
+
"message"
|
|
73
|
+
]);
|
|
74
|
+
const mentionSchema = z.object({
|
|
75
|
+
orgId: idSchema,
|
|
76
|
+
itemType: mentionItemTypeSchema,
|
|
77
|
+
itemId: idSchema,
|
|
78
|
+
orgUserId: idSchema,
|
|
79
|
+
createdAt: z.coerce.date()
|
|
80
|
+
}).strict();
|
|
81
|
+
const mentionViewSchema = z.object({
|
|
82
|
+
orgUserId: idSchema,
|
|
83
|
+
name: z.string()
|
|
84
|
+
}).strict();
|
|
69
85
|
const commentViewSchema = z.object({
|
|
70
86
|
id: idSchema,
|
|
71
87
|
activityId: idSchema.nullable(),
|
|
@@ -78,6 +94,7 @@ const commentViewSchema = z.object({
|
|
|
78
94
|
removedBy: commentAuthorSchema.nullable(),
|
|
79
95
|
reactions: reactionCountsSchema,
|
|
80
96
|
viewerReaction: reactionEmojiSchema.optional(),
|
|
97
|
+
mentions: z.array(mentionViewSchema),
|
|
81
98
|
createdAt: z.coerce.date(),
|
|
82
99
|
updatedAt: z.coerce.date()
|
|
83
100
|
}).strict();
|
|
@@ -112,6 +129,25 @@ const listCommentsQuerySchema = z.object({
|
|
|
112
129
|
activityId: idSchema.optional(),
|
|
113
130
|
orgUserId: idSchema.optional()
|
|
114
131
|
}).strict();
|
|
132
|
+
const subscriptionItemTypeSchema = z.enum([
|
|
133
|
+
"post",
|
|
134
|
+
"space",
|
|
135
|
+
"chat"
|
|
136
|
+
]);
|
|
137
|
+
const subscriptionStateSchema = z.enum(["following", "muted"]);
|
|
138
|
+
const subscriptionSchema = z.object({
|
|
139
|
+
orgId: idSchema,
|
|
140
|
+
orgUserId: idSchema,
|
|
141
|
+
itemType: subscriptionItemTypeSchema,
|
|
142
|
+
itemId: idSchema,
|
|
143
|
+
state: subscriptionStateSchema,
|
|
144
|
+
mutedUntil: z.coerce.date().nullable(),
|
|
145
|
+
createdAt: z.coerce.date()
|
|
146
|
+
}).strict();
|
|
147
|
+
const subscriptionViewSchema = z.object({
|
|
148
|
+
state: subscriptionStateSchema,
|
|
149
|
+
mutedUntil: z.coerce.date().nullable()
|
|
150
|
+
}).strict();
|
|
115
151
|
const postStatusSchema = z.enum([
|
|
116
152
|
"draft",
|
|
117
153
|
"scheduled",
|
|
@@ -146,8 +182,9 @@ const postViewSchema = postSchema.extend({
|
|
|
146
182
|
reactions: reactionCountsSchema,
|
|
147
183
|
viewerReaction: reactionEmojiSchema.nullable(),
|
|
148
184
|
commentCount: z.number().int().min(0),
|
|
149
|
-
|
|
150
|
-
bookmarked: z.boolean()
|
|
185
|
+
subscription: subscriptionViewSchema.nullable(),
|
|
186
|
+
bookmarked: z.boolean(),
|
|
187
|
+
mentions: z.array(mentionViewSchema)
|
|
151
188
|
}).strict();
|
|
152
189
|
const flaggedCommentSchema = commentReportSchema.extend({ comment: z.object({
|
|
153
190
|
id: idSchema,
|
|
@@ -164,13 +201,6 @@ const postReactionSchema = z.object({
|
|
|
164
201
|
createdAt: z.coerce.date(),
|
|
165
202
|
updatedAt: z.coerce.date()
|
|
166
203
|
}).strict();
|
|
167
|
-
const postFollowSchema = z.object({
|
|
168
|
-
orgId: idSchema,
|
|
169
|
-
postId: idSchema,
|
|
170
|
-
orgUserId: idSchema,
|
|
171
|
-
createdAt: z.coerce.date(),
|
|
172
|
-
updatedAt: z.coerce.date()
|
|
173
|
-
}).strict();
|
|
174
204
|
const postBookmarkSchema = z.object({
|
|
175
205
|
orgId: idSchema,
|
|
176
206
|
postId: idSchema,
|
|
@@ -217,8 +247,6 @@ const chatUserSchema = z.object({
|
|
|
217
247
|
joinedAt: z.coerce.date(),
|
|
218
248
|
leftAt: z.coerce.date().nullable(),
|
|
219
249
|
lastReadMessageId: idSchema.nullable(),
|
|
220
|
-
muted: z.boolean(),
|
|
221
|
-
mutedUntil: z.coerce.date().nullable(),
|
|
222
250
|
createdAt: z.coerce.date(),
|
|
223
251
|
updatedAt: z.coerce.date()
|
|
224
252
|
}).strict();
|
|
@@ -243,7 +271,8 @@ const messageViewSchema = messageSchema.extend({
|
|
|
243
271
|
sender: commentAuthorSchema,
|
|
244
272
|
attachments: z.array(messageFileSchema),
|
|
245
273
|
reactions: reactionCountsSchema,
|
|
246
|
-
viewerReaction: reactionEmojiSchema.nullable()
|
|
274
|
+
viewerReaction: reactionEmojiSchema.nullable(),
|
|
275
|
+
mentions: z.array(mentionViewSchema)
|
|
247
276
|
}).strict();
|
|
248
277
|
const chatLastMessageSchema = z.object({
|
|
249
278
|
id: idSchema,
|
|
@@ -296,7 +325,12 @@ const blockedUserSchema = z.object({
|
|
|
296
325
|
createdAt: z.coerce.date(),
|
|
297
326
|
updatedAt: z.coerce.date()
|
|
298
327
|
}).strict();
|
|
328
|
+
const digestRunSchema = z.object({
|
|
329
|
+
orgId: idSchema,
|
|
330
|
+
communityId: idSchema,
|
|
331
|
+
lastDueAt: z.coerce.date()
|
|
332
|
+
}).strict();
|
|
299
333
|
//#endregion
|
|
300
|
-
export { activityCommentsRuleSchema, blockedUserSchema, chatKindSchema, chatLastMessageSchema, chatSchema, chatStatusSchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, flaggedCommentSchema, listCommentsQuerySchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema,
|
|
334
|
+
export { 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 };
|
|
301
335
|
|
|
302
336
|
//# sourceMappingURL=discussion.js.map
|
|
@@ -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 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 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 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 following: z.boolean(),\n bookmarked: z.boolean(),\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 postFollowSchema = 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 PostFollow = z.output<typeof postFollowSchema>;\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 muted: z.boolean(),\n mutedUntil: z.coerce.date().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 })\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"],"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;AACvB,CAAC,CAAC,CACD,OAAO;AAKV,MAAa,6BAA6B,EAAE,KAAK;CAAC;CAAW;CAAU;AAAO,CAAC;AAG/E,MAAa,gBAAgB,EAC1B,OAAO;CACN,IAAI;CACJ,OAAO;CACP,YAAY,SAAS,SAAS;CAC9B,QAAQ,SAAS,SAAS;CAC1B,aAAa,SAAS,SAAS;CAC/B,UAAU,SAAS,SAAS;CAC5B,WAAW;CACX,MAAM,EAAE,OAAO;CACf,QAAQ;CACR,WAAW,SAAS,SAAS;CAC7B,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAIV,MAAa,sBAAsB,EAChC,OAAO;CACN,IAAI;CACJ,WAAW,EAAE,OAAO,CAAC,CAAC,S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,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"}
|
|
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: idSchema,\n communityId: idSchema,\n lastDueAt: z.coerce.date(),\n })\n .strict();\nexport type DigestRun = z.output<typeof digestRunSchema>;\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;AACvB,CAAC,CAAC,CACD,OAAO;AAKV,MAAa,6BAA6B,EAAE,KAAK;CAAC;CAAW;CAAU;AAAO,CAAC;AAG/E,MAAa,gBAAgB,EAC1B,OAAO;CACN,IAAI;CACJ,OAAO;CACP,YAAY,SAAS,SAAS;CAC9B,QAAQ,SAAS,SAAS;CAC1B,aAAa,SAAS,SAAS;CAC/B,UAAU,SAAS,SAAS;CAC5B,WAAW;CACX,MAAM,EAAE,OAAO;CACf,QAAQ;CACR,WAAW,SAAS,SAAS;CAC7B,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAIV,MAAa,sBAAsB,EAChC,OAAO;CACN,IAAI;CACJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B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AO;CACP,aAAa;CACb,WAAW;CACX,WAAW;CACX,OAAO;CACP,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,8BAA8B,EAAE,KAAK;CAAC;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"}
|
|
@@ -58,90 +58,6 @@ declare const userProfileViewSchema: z.ZodObject<{
|
|
|
58
58
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
59
59
|
}, z.core.$strict>;
|
|
60
60
|
type UserProfileView = z.output<typeof userProfileViewSchema>;
|
|
61
|
-
declare const notificationKindSchema: z.ZodEnum<{
|
|
62
|
-
welcomeToCommunity: "welcomeToCommunity";
|
|
63
|
-
membershipEndingSoon: "membershipEndingSoon";
|
|
64
|
-
newPostInSpace: "newPostInSpace";
|
|
65
|
-
yourPostWasPublished: "yourPostWasPublished";
|
|
66
|
-
yourPostWasRemoved: "yourPostWasRemoved";
|
|
67
|
-
newCommentOnPost: "newCommentOnPost";
|
|
68
|
-
replyToYourComment: "replyToYourComment";
|
|
69
|
-
yourCommentWasRemoved: "yourCommentWasRemoved";
|
|
70
|
-
requestApproved: "requestApproved";
|
|
71
|
-
requestDeclined: "requestDeclined";
|
|
72
|
-
invitedToSpace: "invitedToSpace";
|
|
73
|
-
messageRequest: "messageRequest";
|
|
74
|
-
newMessage: "newMessage";
|
|
75
|
-
addedToGroupChat: "addedToGroupChat";
|
|
76
|
-
youAreNowAModerator: "youAreNowAModerator";
|
|
77
|
-
postAwaitingReview: "postAwaitingReview";
|
|
78
|
-
joinRequest: "joinRequest";
|
|
79
|
-
somethingWasFlagged: "somethingWasFlagged";
|
|
80
|
-
messageWasFlagged: "messageWasFlagged";
|
|
81
|
-
}>;
|
|
82
|
-
type NotificationKind = z.infer<typeof notificationKindSchema>;
|
|
83
|
-
declare const notificationSchema: z.ZodObject<{
|
|
84
|
-
orgId: z.ZodString;
|
|
85
|
-
id: z.ZodString;
|
|
86
|
-
userId: z.ZodString;
|
|
87
|
-
kind: z.ZodEnum<{
|
|
88
|
-
welcomeToCommunity: "welcomeToCommunity";
|
|
89
|
-
membershipEndingSoon: "membershipEndingSoon";
|
|
90
|
-
newPostInSpace: "newPostInSpace";
|
|
91
|
-
yourPostWasPublished: "yourPostWasPublished";
|
|
92
|
-
yourPostWasRemoved: "yourPostWasRemoved";
|
|
93
|
-
newCommentOnPost: "newCommentOnPost";
|
|
94
|
-
replyToYourComment: "replyToYourComment";
|
|
95
|
-
yourCommentWasRemoved: "yourCommentWasRemoved";
|
|
96
|
-
requestApproved: "requestApproved";
|
|
97
|
-
requestDeclined: "requestDeclined";
|
|
98
|
-
invitedToSpace: "invitedToSpace";
|
|
99
|
-
messageRequest: "messageRequest";
|
|
100
|
-
newMessage: "newMessage";
|
|
101
|
-
addedToGroupChat: "addedToGroupChat";
|
|
102
|
-
youAreNowAModerator: "youAreNowAModerator";
|
|
103
|
-
postAwaitingReview: "postAwaitingReview";
|
|
104
|
-
joinRequest: "joinRequest";
|
|
105
|
-
somethingWasFlagged: "somethingWasFlagged";
|
|
106
|
-
messageWasFlagged: "messageWasFlagged";
|
|
107
|
-
}>;
|
|
108
|
-
actorOrgUserId: z.ZodNullable<z.ZodString>;
|
|
109
|
-
communityId: z.ZodNullable<z.ZodString>;
|
|
110
|
-
spaceId: z.ZodNullable<z.ZodString>;
|
|
111
|
-
postId: z.ZodNullable<z.ZodString>;
|
|
112
|
-
commentId: z.ZodNullable<z.ZodString>;
|
|
113
|
-
chatId: z.ZodNullable<z.ZodString>;
|
|
114
|
-
messageId: z.ZodNullable<z.ZodString>;
|
|
115
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
116
|
-
readAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
117
|
-
}, z.core.$strict>;
|
|
118
|
-
type Notification = z.output<typeof notificationSchema>;
|
|
119
|
-
declare const notificationPreferenceSchema: z.ZodObject<{
|
|
120
|
-
kind: z.ZodEnum<{
|
|
121
|
-
welcomeToCommunity: "welcomeToCommunity";
|
|
122
|
-
membershipEndingSoon: "membershipEndingSoon";
|
|
123
|
-
newPostInSpace: "newPostInSpace";
|
|
124
|
-
yourPostWasPublished: "yourPostWasPublished";
|
|
125
|
-
yourPostWasRemoved: "yourPostWasRemoved";
|
|
126
|
-
newCommentOnPost: "newCommentOnPost";
|
|
127
|
-
replyToYourComment: "replyToYourComment";
|
|
128
|
-
yourCommentWasRemoved: "yourCommentWasRemoved";
|
|
129
|
-
requestApproved: "requestApproved";
|
|
130
|
-
requestDeclined: "requestDeclined";
|
|
131
|
-
invitedToSpace: "invitedToSpace";
|
|
132
|
-
messageRequest: "messageRequest";
|
|
133
|
-
newMessage: "newMessage";
|
|
134
|
-
addedToGroupChat: "addedToGroupChat";
|
|
135
|
-
youAreNowAModerator: "youAreNowAModerator";
|
|
136
|
-
postAwaitingReview: "postAwaitingReview";
|
|
137
|
-
joinRequest: "joinRequest";
|
|
138
|
-
somethingWasFlagged: "somethingWasFlagged";
|
|
139
|
-
messageWasFlagged: "messageWasFlagged";
|
|
140
|
-
}>;
|
|
141
|
-
inApp: z.ZodBoolean;
|
|
142
|
-
email: z.ZodBoolean;
|
|
143
|
-
}, z.core.$strict>;
|
|
144
|
-
type NotificationPreference = z.output<typeof notificationPreferenceSchema>;
|
|
145
61
|
//#endregion
|
|
146
|
-
export { CreateUserInput,
|
|
62
|
+
export { CreateUserInput, ProvisionUserInput, UpdateUserInput, User, UserInput, UserProfile, UserProfileView, createUserInputSchema, provisionUserInputSchema, updateUserInputSchema, userProfileSchema, userProfileViewSchema, userSchema };
|
|
147
63
|
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -40,48 +40,7 @@ const userProfileSchema = z.object({
|
|
|
40
40
|
updatedAt: z.coerce.date()
|
|
41
41
|
}).strict();
|
|
42
42
|
const userProfileViewSchema = userProfileSchema.extend({ imageUrl: z.string().nullable() }).strict();
|
|
43
|
-
const notificationKindSchema = z.enum([
|
|
44
|
-
"newPostInSpace",
|
|
45
|
-
"newCommentOnPost",
|
|
46
|
-
"replyToYourComment",
|
|
47
|
-
"yourPostWasPublished",
|
|
48
|
-
"yourPostWasRemoved",
|
|
49
|
-
"yourCommentWasRemoved",
|
|
50
|
-
"requestApproved",
|
|
51
|
-
"requestDeclined",
|
|
52
|
-
"invitedToSpace",
|
|
53
|
-
"newMessage",
|
|
54
|
-
"messageRequest",
|
|
55
|
-
"addedToGroupChat",
|
|
56
|
-
"youAreNowAModerator",
|
|
57
|
-
"membershipEndingSoon",
|
|
58
|
-
"welcomeToCommunity",
|
|
59
|
-
"postAwaitingReview",
|
|
60
|
-
"joinRequest",
|
|
61
|
-
"somethingWasFlagged",
|
|
62
|
-
"messageWasFlagged"
|
|
63
|
-
]);
|
|
64
|
-
const notificationSchema = z.object({
|
|
65
|
-
orgId: idSchema,
|
|
66
|
-
id: idSchema,
|
|
67
|
-
userId: idSchema,
|
|
68
|
-
kind: notificationKindSchema,
|
|
69
|
-
actorOrgUserId: idSchema.nullable(),
|
|
70
|
-
communityId: idSchema.nullable(),
|
|
71
|
-
spaceId: idSchema.nullable(),
|
|
72
|
-
postId: idSchema.nullable(),
|
|
73
|
-
commentId: idSchema.nullable(),
|
|
74
|
-
chatId: idSchema.nullable(),
|
|
75
|
-
messageId: idSchema.nullable(),
|
|
76
|
-
createdAt: z.coerce.date(),
|
|
77
|
-
readAt: z.coerce.date().nullable()
|
|
78
|
-
}).strict();
|
|
79
|
-
const notificationPreferenceSchema = z.object({
|
|
80
|
-
kind: notificationKindSchema,
|
|
81
|
-
inApp: z.boolean(),
|
|
82
|
-
email: z.boolean()
|
|
83
|
-
}).strict();
|
|
84
43
|
//#endregion
|
|
85
|
-
export { createUserInputSchema,
|
|
44
|
+
export { createUserInputSchema, provisionUserInputSchema, updateUserInputSchema, userProfileSchema, userProfileViewSchema, userSchema };
|
|
86
45
|
|
|
87
46
|
//# sourceMappingURL=identity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.js","names":[],"sources":["../../../src/types/schemas/identity.ts"],"sourcesContent":["import { z } from 'zod';\nimport { idSchema, emailSchema, jsonValueSchema } from './shared.js';\n\nexport const userSchema = z\n .object({\n id: idSchema,\n externalId: idSchema.nullable(),\n email: emailSchema,\n firstName: z.string().nullable(),\n lastName: z.string().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type User = z.output<typeof userSchema>;\nexport type UserInput = z.input<typeof userSchema>;\n\nexport const createUserInputSchema = z\n .object({\n id: idSchema.optional(),\n externalId: idSchema.optional(),\n email: emailSchema,\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n })\n .strict();\nexport type CreateUserInput = z.infer<typeof createUserInputSchema>;\n\nexport const provisionUserInputSchema = z\n .object({\n email: emailSchema,\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n })\n .strict();\nexport type ProvisionUserInput = z.infer<typeof provisionUserInputSchema>;\n\nexport const updateUserInputSchema = z\n .object({\n externalId: idSchema.optional(),\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n email: emailSchema.optional(),\n })\n .strict();\nexport type UpdateUserInput = z.infer<typeof updateUserInputSchema>;\n\nexport const userProfileSchema = z\n .object({\n userId: idSchema,\n displayName: z.string().nullable(),\n headline: z.string().nullable(),\n bio: z.string().nullable(),\n imageAssetOrgId: idSchema.nullable(),\n imageAssetId: idSchema.nullable(),\n extra: jsonValueSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type UserProfile = z.output<typeof userProfileSchema>;\n\nexport const userProfileViewSchema = userProfileSchema\n .extend({ imageUrl: z.string().nullable() })\n .strict();\nexport type UserProfileView = z.output<typeof userProfileViewSchema>;\n
|
|
1
|
+
{"version":3,"file":"identity.js","names":[],"sources":["../../../src/types/schemas/identity.ts"],"sourcesContent":["import { z } from 'zod';\nimport { idSchema, emailSchema, jsonValueSchema } from './shared.js';\n\nexport const userSchema = z\n .object({\n id: idSchema,\n externalId: idSchema.nullable(),\n email: emailSchema,\n firstName: z.string().nullable(),\n lastName: z.string().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type User = z.output<typeof userSchema>;\nexport type UserInput = z.input<typeof userSchema>;\n\nexport const createUserInputSchema = z\n .object({\n id: idSchema.optional(),\n externalId: idSchema.optional(),\n email: emailSchema,\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n })\n .strict();\nexport type CreateUserInput = z.infer<typeof createUserInputSchema>;\n\nexport const provisionUserInputSchema = z\n .object({\n email: emailSchema,\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n })\n .strict();\nexport type ProvisionUserInput = z.infer<typeof provisionUserInputSchema>;\n\nexport const updateUserInputSchema = z\n .object({\n externalId: idSchema.optional(),\n firstName: z.string().optional(),\n lastName: z.string().optional(),\n email: emailSchema.optional(),\n })\n .strict();\nexport type UpdateUserInput = z.infer<typeof updateUserInputSchema>;\n\nexport const userProfileSchema = z\n .object({\n userId: idSchema,\n displayName: z.string().nullable(),\n headline: z.string().nullable(),\n bio: z.string().nullable(),\n imageAssetOrgId: idSchema.nullable(),\n imageAssetId: idSchema.nullable(),\n extra: jsonValueSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type UserProfile = z.output<typeof userProfileSchema>;\n\nexport const userProfileViewSchema = userProfileSchema\n .extend({ imageUrl: z.string().nullable() })\n .strict();\nexport type UserProfileView = z.output<typeof userProfileViewSchema>;\n"],"mappings":";;;AAGA,MAAa,aAAa,EACvB,OAAO;CACN,IAAI;CACJ,YAAY,SAAS,SAAS;CAC9B,OAAO;CACP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAIV,MAAa,wBAAwB,EAClC,OAAO;CACN,IAAI,SAAS,SAAS;CACtB,YAAY,SAAS,SAAS;CAC9B,OAAO;CACP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,2BAA2B,EACrC,OAAO;CACN,OAAO;CACP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,wBAAwB,EAClC,OAAO;CACN,YAAY,SAAS,SAAS;CAC9B,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,OAAO,YAAY,SAAS;AAC9B,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,oBAAoB,EAC9B,OAAO;CACN,QAAQ;CACR,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS;CACzB,iBAAiB,SAAS,SAAS;CACnC,cAAc,SAAS,SAAS;CAChC,OAAO;CACP,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,wBAAwB,kBAClC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAC3C,OAAO"}
|
|
@@ -1,14 +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, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, Module, ModuleInput, 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, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, moduleSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateSpaceInputSchema } from "./content.js";
|
|
2
|
-
import { CreateUserInput,
|
|
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";
|
|
2
|
+
import { CreateUserInput, ProvisionUserInput, UpdateUserInput, User, UserInput, UserProfile, UserProfileView, createUserInputSchema, provisionUserInputSchema, updateUserInputSchema, userProfileSchema, userProfileViewSchema, userSchema } from "./identity.js";
|
|
3
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
4
|
import { Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, GrantEntitlementInput, SpaceMember, SpaceMemberSource, SpaceMemberStatus, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, 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
|
-
import { Automation, AutomationAction, AutomationActionResult, AutomationInput, AutomationKind, AutomationRun, AutomationRunInput, AutomationRunStatus, AutomationRunsQuery,
|
|
9
|
-
import { ActivityCommentsRule, BlockedUser, Chat, ChatKind, ChatLastMessage, ChatStatus, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, FlaggedComment, ListCommentsQuery, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Post, PostBookmark, PostFlag, PostFlagResolution,
|
|
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";
|
|
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 };
|