@headless-lms/core 0.3.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.
- package/dist/assets/events.d.ts +24 -18
- package/dist/assets/file-urls.d.ts +11 -7
- package/dist/assets/file-urls.js +14 -4
- package/dist/assets/file-urls.js.map +1 -1
- package/dist/assets/index.d.ts +5 -4
- package/dist/assets/index.js +4 -3
- 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 +37 -17
- package/dist/assets/service.d.ts +30 -15
- package/dist/assets/service.js +229 -59
- 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 +137 -65
- package/dist/automations/catalog.js.map +1 -1
- package/dist/automations/community-derivations.js +20 -20
- package/dist/automations/community-derivations.js.map +1 -1
- package/dist/automations/community-mail.d.ts +36 -20
- package/dist/automations/community-mail.js +32 -24
- package/dist/automations/community-mail.js.map +1 -1
- package/dist/automations/event-permissions.d.ts +12 -0
- package/dist/automations/event-permissions.js +38 -0
- package/dist/automations/event-permissions.js.map +1 -0
- package/dist/automations/events.d.ts +0 -10
- package/dist/automations/index.d.ts +12 -4
- package/dist/automations/index.js +9 -1
- package/dist/automations/notifications/applicable.d.ts +8 -0
- package/dist/automations/notifications/applicable.js +12 -0
- package/dist/automations/notifications/applicable.js.map +1 -0
- 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 +346 -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 +96 -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 +276 -0
- package/dist/automations/notifications/rules/entitlements.js.map +1 -0
- package/dist/automations/notifications/rules/events.d.ts +9 -0
- package/dist/automations/notifications/rules/events.js +27 -0
- package/dist/automations/notifications/rules/events.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 +35 -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 +98 -0
- package/dist/automations/notifications/rules/recipients.js.map +1 -0
- package/dist/automations/notifications/service.d.ts +29 -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 +560 -0
- package/dist/automations/notifications/types.js.map +1 -0
- package/dist/automations/ports.d.ts +134 -21
- package/dist/automations/service.d.ts +30 -30
- package/dist/automations/service.js +111 -144
- package/dist/automations/service.js.map +1 -1
- package/dist/content/event-sight.d.ts +11 -0
- package/dist/content/event-sight.js +11 -0
- package/dist/content/event-sight.js.map +1 -0
- package/dist/content/events.d.ts +437 -46
- package/dist/content/events.js +45 -1
- package/dist/content/events.js.map +1 -1
- package/dist/content/index.d.ts +8 -4
- package/dist/content/index.js +5 -1
- package/dist/content/jobs.d.ts +16 -0
- package/dist/content/jobs.js +37 -0
- package/dist/content/jobs.js.map +1 -0
- package/dist/content/model.d.ts +2 -2
- package/dist/content/notification-categories.d.ts +37 -0
- package/dist/content/notification-categories.js +73 -0
- package/dist/content/notification-categories.js.map +1 -0
- package/dist/content/ports.d.ts +132 -68
- package/dist/content/service.d.ts +100 -68
- package/dist/content/service.js +703 -146
- package/dist/content/service.js.map +1 -1
- package/dist/content/titles.d.ts +25 -0
- package/dist/content/titles.js +82 -0
- package/dist/content/titles.js.map +1 -0
- package/dist/content/types.d.ts +2 -2
- package/dist/discussion/authors.d.ts +4 -2
- package/dist/discussion/authors.js +9 -5
- package/dist/discussion/authors.js.map +1 -1
- package/dist/discussion/chats.d.ts +63 -39
- package/dist/discussion/chats.js +455 -190
- 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 +227 -23
- package/dist/discussion/events.js +114 -19
- package/dist/discussion/events.js.map +1 -1
- package/dist/discussion/index.d.ts +12 -4
- package/dist/discussion/index.js +9 -2
- 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/live.d.ts +106 -0
- package/dist/discussion/live.js +642 -0
- package/dist/discussion/live.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 +279 -114
- package/dist/discussion/ports.js.map +1 -1
- package/dist/discussion/posts.d.ts +60 -44
- package/dist/discussion/posts.js +453 -287
- package/dist/discussion/posts.js.map +1 -1
- package/dist/discussion/rules.d.ts +18 -0
- package/dist/discussion/rules.js +22 -0
- package/dist/discussion/rules.js.map +1 -0
- package/dist/discussion/service.d.ts +50 -35
- package/dist/discussion/service.js +333 -205
- package/dist/discussion/service.js.map +1 -1
- package/dist/discussion/subscriptions.d.ts +37 -0
- package/dist/discussion/subscriptions.js +115 -0
- package/dist/discussion/subscriptions.js.map +1 -0
- package/dist/discussion/titles.d.ts +28 -0
- package/dist/discussion/titles.js +98 -0
- package/dist/discussion/titles.js.map +1 -0
- package/dist/entitlements/events.d.ts +20 -20
- package/dist/entitlements/index.d.ts +5 -4
- package/dist/entitlements/index.js +3 -2
- 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/model.d.ts +2 -2
- package/dist/entitlements/ports.d.ts +68 -38
- package/dist/entitlements/rules.d.ts +3 -6
- package/dist/entitlements/rules.js +5 -10
- package/dist/entitlements/rules.js.map +1 -1
- package/dist/entitlements/service.d.ts +43 -28
- package/dist/entitlements/service.js +387 -160
- package/dist/entitlements/service.js.map +1 -1
- package/dist/identity/devices.d.ts +30 -0
- package/dist/identity/devices.js +109 -0
- package/dist/identity/devices.js.map +1 -0
- package/dist/identity/index.d.ts +6 -5
- package/dist/identity/index.js +4 -3
- package/dist/identity/model.d.ts +2 -2
- package/dist/identity/notification-settings.d.ts +28 -0
- package/dist/identity/notification-settings.js +114 -0
- package/dist/identity/notification-settings.js.map +1 -0
- package/dist/identity/ports.d.ts +80 -56
- package/dist/identity/service.d.ts +8 -7
- package/dist/identity/service.js +17 -13
- package/dist/identity/service.js.map +1 -1
- package/dist/integrations/ports.d.ts +9 -8
- package/dist/integrations/service.d.ts +9 -8
- package/dist/integrations/service.js +33 -16
- package/dist/integrations/service.js.map +1 -1
- package/dist/organizations/default-roles.d.ts +22 -0
- package/dist/organizations/default-roles.js +89 -0
- package/dist/organizations/default-roles.js.map +1 -0
- package/dist/organizations/effective-permissions.d.ts +45 -0
- package/dist/organizations/effective-permissions.js +113 -0
- package/dist/organizations/effective-permissions.js.map +1 -0
- package/dist/organizations/events.d.ts +320 -181
- package/dist/organizations/events.js +90 -18
- package/dist/organizations/events.js.map +1 -1
- package/dist/organizations/index.d.ts +15 -10
- package/dist/organizations/index.js +8 -3
- package/dist/organizations/members.d.ts +66 -8
- package/dist/organizations/members.js.map +1 -1
- package/dist/organizations/notification-catalog.d.ts +31 -0
- package/dist/organizations/notification-catalog.js +32 -0
- package/dist/organizations/notification-catalog.js.map +1 -0
- package/dist/organizations/notification-categories.d.ts +34 -0
- package/dist/organizations/notification-categories.js +66 -0
- package/dist/organizations/notification-categories.js.map +1 -0
- package/dist/organizations/org-roles.d.ts +33 -0
- package/dist/organizations/org-roles.js +49 -0
- package/dist/organizations/org-roles.js.map +1 -0
- package/dist/organizations/permissions.d.ts +311 -0
- package/dist/organizations/permissions.js +327 -0
- package/dist/organizations/permissions.js.map +1 -0
- package/dist/organizations/ports.d.ts +187 -65
- package/dist/organizations/service.d.ts +104 -35
- package/dist/organizations/service.js +1247 -323
- package/dist/organizations/service.js.map +1 -1
- package/dist/organizations/testing.d.ts +18 -0
- package/dist/organizations/testing.js +37 -0
- package/dist/organizations/testing.js.map +1 -0
- package/dist/organizations/types.d.ts +5 -16
- package/dist/progress/index.d.ts +2 -2
- package/dist/progress/ports.d.ts +11 -3
- package/dist/progress/service.d.ts +6 -5
- package/dist/progress/service.js +23 -8
- package/dist/progress/service.js.map +1 -1
- package/dist/reporting/admin/index.d.ts +6 -4
- package/dist/reporting/admin/model.d.ts +36 -3
- package/dist/reporting/admin/ports.d.ts +39 -14
- package/dist/reporting/admin/service.d.ts +32 -11
- package/dist/reporting/admin/service.js +102 -18
- package/dist/reporting/admin/service.js.map +1 -1
- package/dist/reporting/events/index.d.ts +27 -0
- package/dist/reporting/events/index.js +20 -0
- package/dist/reporting/events/index.js.map +1 -0
- package/dist/reporting/member/calendar.d.ts +11 -0
- package/dist/reporting/member/calendar.js +75 -0
- package/dist/reporting/member/calendar.js.map +1 -0
- package/dist/reporting/member/index.d.ts +3 -2
- package/dist/reporting/member/model.d.ts +80 -26
- package/dist/reporting/member/ports.d.ts +50 -28
- package/dist/reporting/member/service.d.ts +81 -35
- package/dist/reporting/member/service.js +438 -145
- package/dist/reporting/member/service.js.map +1 -1
- package/dist/shared/actor.d.ts +22 -3
- package/dist/shared/errors.d.ts +15 -2
- package/dist/shared/errors.js +21 -2
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/id.d.ts +7 -0
- package/dist/shared/id.js +8 -1
- package/dist/shared/id.js.map +1 -1
- package/dist/shared/logger.d.ts +2 -1
- package/dist/shared/logger.js +10 -1
- package/dist/shared/logger.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 +68 -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 +4 -5
- package/dist/types/email-templates.d.ts +119 -6
- package/dist/types/entitlements.d.ts +2 -2
- package/dist/types/identity.d.ts +14 -17
- package/dist/types/index.d.ts +13 -12
- package/dist/types/index.js +2 -1
- package/dist/types/notifications.d.ts +157 -0
- package/dist/types/notifications.js +1 -0
- package/dist/types/organizations.d.ts +3 -2
- package/dist/types/ports.d.ts +8 -1
- package/dist/types/ports.js +7 -1
- package/dist/types/ports.js.map +1 -0
- package/dist/types/schemas/assets.d.ts +5 -5
- package/dist/types/schemas/assets.js +4 -3
- package/dist/types/schemas/assets.js.map +1 -1
- 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 +596 -11
- package/dist/types/schemas/content.js +225 -9
- package/dist/types/schemas/content.js.map +1 -1
- package/dist/types/schemas/discussion.d.ts +362 -66
- package/dist/types/schemas/discussion.js +123 -15
- package/dist/types/schemas/discussion.js.map +1 -1
- package/dist/types/schemas/entitlements.d.ts +14 -1
- package/dist/types/schemas/entitlements.js +11 -4
- package/dist/types/schemas/entitlements.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 +8 -7
- package/dist/types/schemas/index.js +8 -7
- package/dist/types/schemas/notifications.d.ts +96 -0
- package/dist/types/schemas/notifications.js +57 -0
- package/dist/types/schemas/notifications.js.map +1 -0
- package/dist/types/schemas/organizations.d.ts +96 -60
- package/dist/types/schemas/organizations.js +78 -27
- package/dist/types/schemas/organizations.js.map +1 -1
- package/dist/types/schemas/progress.d.ts +0 -1
- package/dist/types/schemas/progress.js +0 -1
- package/dist/types/schemas/progress.js.map +1 -1
- 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
- package/dist/organizations/access-scopes.d.ts +0 -19
- package/dist/organizations/access-scopes.js +0 -89
- package/dist/organizations/access-scopes.js.map +0 -1
- package/dist/organizations/roles.d.ts +0 -19
- package/dist/organizations/roles.js +0 -82
- package/dist/organizations/roles.js.map +0 -1
|
@@ -54,13 +54,8 @@ declare const commentAuthorSchema: z.ZodObject<{
|
|
|
54
54
|
image: z.ZodNullable<z.ZodString>;
|
|
55
55
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
56
56
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
admin: "admin";
|
|
60
|
-
instructor: "instructor";
|
|
61
|
-
moderator: "moderator";
|
|
62
|
-
student: "student";
|
|
63
|
-
}>;
|
|
57
|
+
team: z.ZodBoolean;
|
|
58
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
64
59
|
}, z.core.$strict>;
|
|
65
60
|
type CommentAuthor = z.infer<typeof commentAuthorSchema>;
|
|
66
61
|
declare const commentReactionSchema: z.ZodObject<{
|
|
@@ -94,6 +89,29 @@ declare const commentReportSchema: z.ZodObject<{
|
|
|
94
89
|
}, z.core.$strict>;
|
|
95
90
|
type CommentReport = z.output<typeof commentReportSchema>;
|
|
96
91
|
type CommentReportInput = z.input<typeof commentReportSchema>;
|
|
92
|
+
declare const mentionItemTypeSchema: z.ZodEnum<{
|
|
93
|
+
message: "message";
|
|
94
|
+
post: "post";
|
|
95
|
+
comment: "comment";
|
|
96
|
+
}>;
|
|
97
|
+
type MentionItemType = z.infer<typeof mentionItemTypeSchema>;
|
|
98
|
+
declare const mentionSchema: z.ZodObject<{
|
|
99
|
+
orgId: z.ZodString;
|
|
100
|
+
itemType: z.ZodEnum<{
|
|
101
|
+
message: "message";
|
|
102
|
+
post: "post";
|
|
103
|
+
comment: "comment";
|
|
104
|
+
}>;
|
|
105
|
+
itemId: z.ZodString;
|
|
106
|
+
orgUserId: z.ZodString;
|
|
107
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
108
|
+
}, z.core.$strict>;
|
|
109
|
+
type Mention = z.output<typeof mentionSchema>;
|
|
110
|
+
declare const mentionViewSchema: z.ZodObject<{
|
|
111
|
+
orgUserId: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
type MentionView = z.output<typeof mentionViewSchema>;
|
|
97
115
|
declare const commentViewSchema: z.ZodObject<{
|
|
98
116
|
id: z.ZodString;
|
|
99
117
|
activityId: z.ZodNullable<z.ZodString>;
|
|
@@ -109,13 +127,8 @@ declare const commentViewSchema: z.ZodObject<{
|
|
|
109
127
|
image: z.ZodNullable<z.ZodString>;
|
|
110
128
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
111
129
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
admin: "admin";
|
|
115
|
-
instructor: "instructor";
|
|
116
|
-
moderator: "moderator";
|
|
117
|
-
student: "student";
|
|
118
|
-
}>;
|
|
130
|
+
team: z.ZodBoolean;
|
|
131
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
119
132
|
}, z.core.$strict>;
|
|
120
133
|
body: z.ZodNullable<z.ZodString>;
|
|
121
134
|
status: z.ZodEnum<{
|
|
@@ -132,16 +145,15 @@ declare const commentViewSchema: z.ZodObject<{
|
|
|
132
145
|
image: z.ZodNullable<z.ZodString>;
|
|
133
146
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
134
147
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
admin: "admin";
|
|
138
|
-
instructor: "instructor";
|
|
139
|
-
moderator: "moderator";
|
|
140
|
-
student: "student";
|
|
141
|
-
}>;
|
|
148
|
+
team: z.ZodBoolean;
|
|
149
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
142
150
|
}, z.core.$strict>>;
|
|
143
151
|
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
144
152
|
viewerReaction: z.ZodOptional<z.ZodString>;
|
|
153
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
154
|
+
orgUserId: z.ZodString;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>;
|
|
145
157
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
146
158
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
147
159
|
}, z.core.$strict>;
|
|
@@ -156,13 +168,8 @@ declare const commentReportSummarySchema: z.ZodObject<{
|
|
|
156
168
|
image: z.ZodNullable<z.ZodString>;
|
|
157
169
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
158
170
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
admin: "admin";
|
|
162
|
-
instructor: "instructor";
|
|
163
|
-
moderator: "moderator";
|
|
164
|
-
student: "student";
|
|
165
|
-
}>;
|
|
171
|
+
team: z.ZodBoolean;
|
|
172
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
166
173
|
}, z.core.$strict>;
|
|
167
174
|
reason: z.ZodString;
|
|
168
175
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -189,13 +196,8 @@ declare const commentListItemSchema: z.ZodObject<{
|
|
|
189
196
|
image: z.ZodNullable<z.ZodString>;
|
|
190
197
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
191
198
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
admin: "admin";
|
|
195
|
-
instructor: "instructor";
|
|
196
|
-
moderator: "moderator";
|
|
197
|
-
student: "student";
|
|
198
|
-
}>;
|
|
199
|
+
team: z.ZodBoolean;
|
|
200
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
199
201
|
}, z.core.$strict>;
|
|
200
202
|
authorEmail: z.ZodEmail;
|
|
201
203
|
removedBy: z.ZodNullable<z.ZodString>;
|
|
@@ -209,13 +211,8 @@ declare const commentListItemSchema: z.ZodObject<{
|
|
|
209
211
|
image: z.ZodNullable<z.ZodString>;
|
|
210
212
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
211
213
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
admin: "admin";
|
|
215
|
-
instructor: "instructor";
|
|
216
|
-
moderator: "moderator";
|
|
217
|
-
student: "student";
|
|
218
|
-
}>;
|
|
214
|
+
team: z.ZodBoolean;
|
|
215
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
219
216
|
}, z.core.$strict>;
|
|
220
217
|
reason: z.ZodString;
|
|
221
218
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -240,6 +237,42 @@ declare const listCommentsQuerySchema: z.ZodObject<{
|
|
|
240
237
|
orgUserId: z.ZodOptional<z.ZodString>;
|
|
241
238
|
}, z.core.$strict>;
|
|
242
239
|
type ListCommentsQuery = z.infer<typeof listCommentsQuerySchema>;
|
|
240
|
+
declare const subscriptionItemTypeSchema: z.ZodEnum<{
|
|
241
|
+
space: "space";
|
|
242
|
+
chat: "chat";
|
|
243
|
+
post: "post";
|
|
244
|
+
}>;
|
|
245
|
+
type SubscriptionItemType = z.infer<typeof subscriptionItemTypeSchema>;
|
|
246
|
+
declare const subscriptionStateSchema: z.ZodEnum<{
|
|
247
|
+
following: "following";
|
|
248
|
+
muted: "muted";
|
|
249
|
+
}>;
|
|
250
|
+
type SubscriptionState = z.infer<typeof subscriptionStateSchema>;
|
|
251
|
+
declare const subscriptionSchema: z.ZodObject<{
|
|
252
|
+
orgId: z.ZodString;
|
|
253
|
+
orgUserId: z.ZodString;
|
|
254
|
+
itemType: z.ZodEnum<{
|
|
255
|
+
space: "space";
|
|
256
|
+
chat: "chat";
|
|
257
|
+
post: "post";
|
|
258
|
+
}>;
|
|
259
|
+
itemId: z.ZodString;
|
|
260
|
+
state: z.ZodEnum<{
|
|
261
|
+
following: "following";
|
|
262
|
+
muted: "muted";
|
|
263
|
+
}>;
|
|
264
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
265
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
type Subscription = z.output<typeof subscriptionSchema>;
|
|
268
|
+
declare const subscriptionViewSchema: z.ZodObject<{
|
|
269
|
+
state: z.ZodEnum<{
|
|
270
|
+
following: "following";
|
|
271
|
+
muted: "muted";
|
|
272
|
+
}>;
|
|
273
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
274
|
+
}, z.core.$strict>;
|
|
275
|
+
type SubscriptionView = z.output<typeof subscriptionViewSchema>;
|
|
243
276
|
declare const postStatusSchema: z.ZodEnum<{
|
|
244
277
|
pending: "pending";
|
|
245
278
|
draft: "draft";
|
|
@@ -276,6 +309,18 @@ declare const postSchema: z.ZodObject<{
|
|
|
276
309
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
277
310
|
}, z.core.$strict>;
|
|
278
311
|
type Post = z.output<typeof postSchema>;
|
|
312
|
+
declare const postAssetSchema: z.ZodObject<{
|
|
313
|
+
url: z.ZodString;
|
|
314
|
+
kind: z.ZodEnum<{
|
|
315
|
+
image: "image";
|
|
316
|
+
video: "video";
|
|
317
|
+
audio: "audio";
|
|
318
|
+
document: "document";
|
|
319
|
+
}>;
|
|
320
|
+
filename: z.ZodString;
|
|
321
|
+
size: z.ZodNumber;
|
|
322
|
+
}, z.core.$strict>;
|
|
323
|
+
type PostAsset = z.output<typeof postAssetSchema>;
|
|
279
324
|
declare const postViewSchema: z.ZodObject<{
|
|
280
325
|
orgId: z.ZodString;
|
|
281
326
|
id: z.ZodString;
|
|
@@ -303,6 +348,17 @@ declare const postViewSchema: z.ZodObject<{
|
|
|
303
348
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
304
349
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
305
350
|
coverUrl: z.ZodNullable<z.ZodString>;
|
|
351
|
+
assets: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
352
|
+
url: z.ZodString;
|
|
353
|
+
kind: z.ZodEnum<{
|
|
354
|
+
image: "image";
|
|
355
|
+
video: "video";
|
|
356
|
+
audio: "audio";
|
|
357
|
+
document: "document";
|
|
358
|
+
}>;
|
|
359
|
+
filename: z.ZodString;
|
|
360
|
+
size: z.ZodNumber;
|
|
361
|
+
}, z.core.$strict>>;
|
|
306
362
|
author: z.ZodObject<{
|
|
307
363
|
id: z.ZodString;
|
|
308
364
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -312,19 +368,24 @@ declare const postViewSchema: z.ZodObject<{
|
|
|
312
368
|
image: z.ZodNullable<z.ZodString>;
|
|
313
369
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
314
370
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
admin: "admin";
|
|
318
|
-
instructor: "instructor";
|
|
319
|
-
moderator: "moderator";
|
|
320
|
-
student: "student";
|
|
321
|
-
}>;
|
|
371
|
+
team: z.ZodBoolean;
|
|
372
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
322
373
|
}, z.core.$strict>;
|
|
323
374
|
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
324
375
|
viewerReaction: z.ZodNullable<z.ZodString>;
|
|
325
376
|
commentCount: z.ZodNumber;
|
|
326
|
-
|
|
377
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
378
|
+
state: z.ZodEnum<{
|
|
379
|
+
following: "following";
|
|
380
|
+
muted: "muted";
|
|
381
|
+
}>;
|
|
382
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
383
|
+
}, z.core.$strict>>;
|
|
327
384
|
bookmarked: z.ZodBoolean;
|
|
385
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
386
|
+
orgUserId: z.ZodString;
|
|
387
|
+
name: z.ZodString;
|
|
388
|
+
}, z.core.$strict>>;
|
|
328
389
|
}, z.core.$strict>;
|
|
329
390
|
type PostView = z.output<typeof postViewSchema>;
|
|
330
391
|
declare const flaggedCommentSchema: z.ZodObject<{
|
|
@@ -354,23 +415,54 @@ declare const flaggedCommentSchema: z.ZodObject<{
|
|
|
354
415
|
}, z.core.$strict>;
|
|
355
416
|
}, z.core.$strict>;
|
|
356
417
|
type FlaggedComment = z.output<typeof flaggedCommentSchema>;
|
|
357
|
-
declare const
|
|
418
|
+
declare const flaggedCommentViewSchema: z.ZodObject<{
|
|
419
|
+
id: z.ZodString;
|
|
358
420
|
orgId: z.ZodString;
|
|
359
|
-
|
|
421
|
+
commentId: z.ZodString;
|
|
360
422
|
orgUserId: z.ZodString;
|
|
361
|
-
|
|
423
|
+
reason: z.ZodString;
|
|
424
|
+
resolvedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
425
|
+
resolution: z.ZodNullable<z.ZodEnum<{
|
|
426
|
+
removed: "removed";
|
|
427
|
+
dismissed: "dismissed";
|
|
428
|
+
}>>;
|
|
429
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
362
430
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
363
431
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
432
|
+
comment: z.ZodObject<{
|
|
433
|
+
id: z.ZodString;
|
|
434
|
+
postId: z.ZodString;
|
|
435
|
+
body: z.ZodString;
|
|
436
|
+
orgUserId: z.ZodString;
|
|
437
|
+
status: z.ZodEnum<{
|
|
438
|
+
pending: "pending";
|
|
439
|
+
published: "published";
|
|
440
|
+
removed: "removed";
|
|
441
|
+
}>;
|
|
442
|
+
author: z.ZodObject<{
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
445
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
446
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
447
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
448
|
+
image: z.ZodNullable<z.ZodString>;
|
|
449
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
450
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
451
|
+
team: z.ZodBoolean;
|
|
452
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
}, z.core.$strict>;
|
|
364
455
|
}, z.core.$strict>;
|
|
365
|
-
type
|
|
366
|
-
declare const
|
|
456
|
+
type FlaggedCommentView = z.output<typeof flaggedCommentViewSchema>;
|
|
457
|
+
declare const postReactionSchema: z.ZodObject<{
|
|
367
458
|
orgId: z.ZodString;
|
|
368
459
|
postId: z.ZodString;
|
|
369
460
|
orgUserId: z.ZodString;
|
|
461
|
+
emoji: z.ZodString;
|
|
370
462
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
371
463
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
372
464
|
}, z.core.$strict>;
|
|
373
|
-
type
|
|
465
|
+
type PostReaction = z.output<typeof postReactionSchema>;
|
|
374
466
|
declare const postBookmarkSchema: z.ZodObject<{
|
|
375
467
|
orgId: z.ZodString;
|
|
376
468
|
postId: z.ZodString;
|
|
@@ -439,8 +531,6 @@ declare const chatUserSchema: z.ZodObject<{
|
|
|
439
531
|
joinedAt: z.ZodCoercedDate<unknown>;
|
|
440
532
|
leftAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
441
533
|
lastReadMessageId: z.ZodNullable<z.ZodString>;
|
|
442
|
-
muted: z.ZodBoolean;
|
|
443
|
-
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
444
534
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
445
535
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
446
536
|
}, z.core.$strict>;
|
|
@@ -453,6 +543,7 @@ declare const messageSchema: z.ZodObject<{
|
|
|
453
543
|
orgUserId: z.ZodString;
|
|
454
544
|
body: z.ZodString;
|
|
455
545
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
546
|
+
clientId: z.ZodNullable<z.ZodUUID>;
|
|
456
547
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
457
548
|
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
458
549
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -472,6 +563,7 @@ declare const messageViewSchema: z.ZodObject<{
|
|
|
472
563
|
orgUserId: z.ZodString;
|
|
473
564
|
body: z.ZodString;
|
|
474
565
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
566
|
+
clientId: z.ZodNullable<z.ZodUUID>;
|
|
475
567
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
476
568
|
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
477
569
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
@@ -485,13 +577,8 @@ declare const messageViewSchema: z.ZodObject<{
|
|
|
485
577
|
image: z.ZodNullable<z.ZodString>;
|
|
486
578
|
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
487
579
|
imageUrl: z.ZodNullable<z.ZodString>;
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
admin: "admin";
|
|
491
|
-
instructor: "instructor";
|
|
492
|
-
moderator: "moderator";
|
|
493
|
-
student: "student";
|
|
494
|
-
}>;
|
|
580
|
+
team: z.ZodBoolean;
|
|
581
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
495
582
|
}, z.core.$strict>;
|
|
496
583
|
attachments: z.ZodArray<z.ZodObject<{
|
|
497
584
|
assetId: z.ZodString;
|
|
@@ -499,8 +586,53 @@ declare const messageViewSchema: z.ZodObject<{
|
|
|
499
586
|
}, z.core.$strict>>;
|
|
500
587
|
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
501
588
|
viewerReaction: z.ZodNullable<z.ZodString>;
|
|
589
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
590
|
+
orgUserId: z.ZodString;
|
|
591
|
+
name: z.ZodString;
|
|
592
|
+
}, z.core.$strict>>;
|
|
502
593
|
}, z.core.$strict>;
|
|
503
594
|
type MessageView = z.output<typeof messageViewSchema>;
|
|
595
|
+
declare const liveMessageSchema: z.ZodObject<{
|
|
596
|
+
orgId: z.ZodString;
|
|
597
|
+
id: z.ZodString;
|
|
598
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
599
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
600
|
+
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
601
|
+
communityId: z.ZodString;
|
|
602
|
+
orgUserId: z.ZodString;
|
|
603
|
+
body: z.ZodString;
|
|
604
|
+
chatId: z.ZodString;
|
|
605
|
+
replyToId: z.ZodNullable<z.ZodString>;
|
|
606
|
+
clientId: z.ZodNullable<z.ZodUUID>;
|
|
607
|
+
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
608
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
609
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
610
|
+
orgUserId: z.ZodString;
|
|
611
|
+
name: z.ZodString;
|
|
612
|
+
}, z.core.$strict>>;
|
|
613
|
+
sender: z.ZodObject<{
|
|
614
|
+
id: z.ZodString;
|
|
615
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
616
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
617
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
618
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
619
|
+
image: z.ZodNullable<z.ZodString>;
|
|
620
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
621
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
622
|
+
team: z.ZodBoolean;
|
|
623
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
624
|
+
}, z.core.$strict>;
|
|
625
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
626
|
+
assetId: z.ZodString;
|
|
627
|
+
url: z.ZodString;
|
|
628
|
+
}, z.core.$strict>>;
|
|
629
|
+
}, z.core.$strict>;
|
|
630
|
+
type LiveMessage = z.output<typeof liveMessageSchema>;
|
|
631
|
+
declare const chatUnreadSummarySchema: z.ZodObject<{
|
|
632
|
+
unread: z.ZodNumber;
|
|
633
|
+
requests: z.ZodNumber;
|
|
634
|
+
}, z.core.$strict>;
|
|
635
|
+
type ChatUnreadSummary = z.output<typeof chatUnreadSummarySchema>;
|
|
504
636
|
declare const chatLastMessageSchema: z.ZodObject<{
|
|
505
637
|
id: z.ZodString;
|
|
506
638
|
orgUserId: z.ZodString;
|
|
@@ -562,6 +694,170 @@ declare const blockedUserSchema: z.ZodObject<{
|
|
|
562
694
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
563
695
|
}, z.core.$strict>;
|
|
564
696
|
type BlockedUser = z.output<typeof blockedUserSchema>;
|
|
697
|
+
declare const digestRunSchema: z.ZodObject<{
|
|
698
|
+
orgId: z.ZodString;
|
|
699
|
+
communityId: z.ZodString;
|
|
700
|
+
lastDueAt: z.ZodCoercedDate<unknown>;
|
|
701
|
+
}, z.core.$strict>;
|
|
702
|
+
type DigestRun = z.output<typeof digestRunSchema>;
|
|
703
|
+
declare const chatLiveEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
704
|
+
type: z.ZodLiteral<"ready">;
|
|
705
|
+
heartbeatMs: z.ZodNumber;
|
|
706
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
707
|
+
type: z.ZodLiteral<"message.created">;
|
|
708
|
+
chatId: z.ZodString;
|
|
709
|
+
message: z.ZodObject<{
|
|
710
|
+
orgId: z.ZodString;
|
|
711
|
+
id: z.ZodString;
|
|
712
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
713
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
714
|
+
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
715
|
+
communityId: z.ZodString;
|
|
716
|
+
orgUserId: z.ZodString;
|
|
717
|
+
body: z.ZodString;
|
|
718
|
+
chatId: z.ZodString;
|
|
719
|
+
replyToId: z.ZodNullable<z.ZodString>;
|
|
720
|
+
clientId: z.ZodNullable<z.ZodUUID>;
|
|
721
|
+
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
722
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
723
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
724
|
+
orgUserId: z.ZodString;
|
|
725
|
+
name: z.ZodString;
|
|
726
|
+
}, z.core.$strict>>;
|
|
727
|
+
sender: z.ZodObject<{
|
|
728
|
+
id: z.ZodString;
|
|
729
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
730
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
731
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
732
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
733
|
+
image: z.ZodNullable<z.ZodString>;
|
|
734
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
735
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
736
|
+
team: z.ZodBoolean;
|
|
737
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
738
|
+
}, z.core.$strict>;
|
|
739
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
740
|
+
assetId: z.ZodString;
|
|
741
|
+
url: z.ZodString;
|
|
742
|
+
}, z.core.$strict>>;
|
|
743
|
+
}, z.core.$strict>;
|
|
744
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
745
|
+
type: z.ZodLiteral<"message.updated">;
|
|
746
|
+
chatId: z.ZodString;
|
|
747
|
+
message: z.ZodObject<{
|
|
748
|
+
orgId: z.ZodString;
|
|
749
|
+
id: z.ZodString;
|
|
750
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
751
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
752
|
+
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
753
|
+
communityId: z.ZodString;
|
|
754
|
+
orgUserId: z.ZodString;
|
|
755
|
+
body: z.ZodString;
|
|
756
|
+
chatId: z.ZodString;
|
|
757
|
+
replyToId: z.ZodNullable<z.ZodString>;
|
|
758
|
+
clientId: z.ZodNullable<z.ZodUUID>;
|
|
759
|
+
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
760
|
+
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
761
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
762
|
+
orgUserId: z.ZodString;
|
|
763
|
+
name: z.ZodString;
|
|
764
|
+
}, z.core.$strict>>;
|
|
765
|
+
sender: z.ZodObject<{
|
|
766
|
+
id: z.ZodString;
|
|
767
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
768
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
769
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
770
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
771
|
+
image: z.ZodNullable<z.ZodString>;
|
|
772
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
773
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
774
|
+
team: z.ZodBoolean;
|
|
775
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
776
|
+
}, z.core.$strict>;
|
|
777
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
778
|
+
assetId: z.ZodString;
|
|
779
|
+
url: z.ZodString;
|
|
780
|
+
}, z.core.$strict>>;
|
|
781
|
+
}, z.core.$strict>;
|
|
782
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
783
|
+
type: z.ZodLiteral<"message.deleted">;
|
|
784
|
+
chatId: z.ZodString;
|
|
785
|
+
messageId: z.ZodString;
|
|
786
|
+
deletedAt: z.ZodCoercedDate<unknown>;
|
|
787
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
788
|
+
type: z.ZodLiteral<"message.reactions">;
|
|
789
|
+
chatId: z.ZodString;
|
|
790
|
+
messageId: z.ZodString;
|
|
791
|
+
reactions: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
792
|
+
orgUserId: z.ZodString;
|
|
793
|
+
reaction: z.ZodNullable<z.ZodString>;
|
|
794
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
795
|
+
type: z.ZodLiteral<"chat.updated">;
|
|
796
|
+
chatId: z.ZodString;
|
|
797
|
+
chat: z.ZodObject<{
|
|
798
|
+
orgId: z.ZodString;
|
|
799
|
+
id: z.ZodString;
|
|
800
|
+
communityId: z.ZodString;
|
|
801
|
+
kind: z.ZodEnum<{
|
|
802
|
+
direct: "direct";
|
|
803
|
+
group: "group";
|
|
804
|
+
}>;
|
|
805
|
+
status: z.ZodEnum<{
|
|
806
|
+
pending: "pending";
|
|
807
|
+
open: "open";
|
|
808
|
+
closed: "closed";
|
|
809
|
+
}>;
|
|
810
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
811
|
+
lockedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
812
|
+
lockedBy: z.ZodNullable<z.ZodString>;
|
|
813
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
814
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
815
|
+
}, z.core.$strict>;
|
|
816
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
817
|
+
id: z.ZodString;
|
|
818
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
819
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
820
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
821
|
+
headline: z.ZodNullable<z.ZodString>;
|
|
822
|
+
image: z.ZodNullable<z.ZodString>;
|
|
823
|
+
imageAssetId: z.ZodNullable<z.ZodString>;
|
|
824
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
825
|
+
team: z.ZodBoolean;
|
|
826
|
+
roleName: z.ZodNullable<z.ZodString>;
|
|
827
|
+
}, z.core.$strict>>;
|
|
828
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
829
|
+
type: z.ZodLiteral<"chat.removed">;
|
|
830
|
+
chatId: z.ZodString;
|
|
831
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
832
|
+
type: z.ZodLiteral<"chat.state">;
|
|
833
|
+
chatId: z.ZodString;
|
|
834
|
+
unread: z.ZodNumber;
|
|
835
|
+
lastReadMessageId: z.ZodNullable<z.ZodString>;
|
|
836
|
+
subscription: z.ZodNullable<z.ZodObject<{
|
|
837
|
+
state: z.ZodEnum<{
|
|
838
|
+
following: "following";
|
|
839
|
+
muted: "muted";
|
|
840
|
+
}>;
|
|
841
|
+
mutedUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
842
|
+
}, z.core.$strict>>;
|
|
843
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
844
|
+
unread: z.ZodNumber;
|
|
845
|
+
requests: z.ZodNumber;
|
|
846
|
+
type: z.ZodLiteral<"unread">;
|
|
847
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
848
|
+
type: z.ZodLiteral<"typing">;
|
|
849
|
+
chatId: z.ZodString;
|
|
850
|
+
orgUserId: z.ZodString;
|
|
851
|
+
until: z.ZodCoercedDate<unknown>;
|
|
852
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
853
|
+
type: z.ZodLiteral<"resync">;
|
|
854
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
855
|
+
type: z.ZodLiteral<"closed">;
|
|
856
|
+
reason: z.ZodEnum<{
|
|
857
|
+
shutdown: "shutdown";
|
|
858
|
+
}>;
|
|
859
|
+
}, z.core.$strict>], "type">;
|
|
860
|
+
type ChatLiveEvent = z.output<typeof chatLiveEventSchema>;
|
|
565
861
|
//#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,
|
|
862
|
+
export { 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 };
|
|
567
863
|
//# sourceMappingURL=discussion.d.ts.map
|