@headless-lms/core 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/events.d.ts +39 -21
- package/dist/assets/events.js +1 -1
- package/dist/assets/events.js.map +1 -1
- package/dist/assets/file-urls.d.ts +20 -0
- package/dist/assets/file-urls.js +25 -0
- package/dist/assets/file-urls.js.map +1 -0
- package/dist/assets/index.d.ts +5 -4
- package/dist/assets/index.js +3 -2
- package/dist/assets/model.d.ts +2 -2
- package/dist/assets/ports.d.ts +45 -15
- package/dist/assets/service.d.ts +39 -7
- package/dist/assets/service.js +291 -38
- package/dist/assets/service.js.map +1 -1
- package/dist/automations/actions.d.ts +13 -24
- package/dist/automations/actions.js +168 -43
- package/dist/automations/actions.js.map +1 -1
- package/dist/automations/catalog.d.ts +2 -1
- package/dist/automations/catalog.js +229 -13
- package/dist/automations/catalog.js.map +1 -1
- package/dist/automations/community-derivations.d.ts +14 -0
- package/dist/automations/community-derivations.js +439 -0
- package/dist/automations/community-derivations.js.map +1 -0
- package/dist/automations/community-mail.d.ts +112 -0
- package/dist/automations/community-mail.js +90 -0
- package/dist/automations/community-mail.js.map +1 -0
- package/dist/automations/community-notifications.d.ts +16 -0
- package/dist/automations/community-notifications.js +84 -0
- package/dist/automations/community-notifications.js.map +1 -0
- package/dist/automations/events.d.ts +28 -0
- package/dist/automations/index.d.ts +4 -2
- package/dist/automations/index.js +3 -2
- package/dist/automations/model.d.ts +10 -3
- package/dist/automations/model.js +15 -2
- package/dist/automations/model.js.map +1 -1
- package/dist/automations/ports.d.ts +5 -1
- package/dist/automations/schedule.d.ts +6 -0
- package/dist/automations/schedule.js +41 -0
- package/dist/automations/schedule.js.map +1 -0
- package/dist/automations/seeds.d.ts +17 -0
- package/dist/automations/seeds.js +235 -0
- package/dist/automations/seeds.js.map +1 -0
- package/dist/automations/service.d.ts +22 -3
- package/dist/automations/service.js +306 -43
- package/dist/automations/service.js.map +1 -1
- package/dist/content/events.d.ts +631 -19
- package/dist/content/events.js +44 -1
- package/dist/content/events.js.map +1 -1
- package/dist/content/index.d.ts +4 -4
- package/dist/content/model.d.ts +2 -2
- package/dist/content/ports.d.ts +71 -18
- package/dist/content/service.d.ts +57 -18
- package/dist/content/service.js +502 -23
- package/dist/content/service.js.map +1 -1
- package/dist/content/types.d.ts +2 -2
- package/dist/discussion/authors.d.ts +10 -0
- package/dist/discussion/authors.js +23 -0
- package/dist/discussion/authors.js.map +1 -0
- package/dist/discussion/chats.d.ts +104 -0
- package/dist/discussion/chats.js +798 -0
- package/dist/discussion/chats.js.map +1 -0
- package/dist/discussion/events.d.ts +619 -56
- package/dist/discussion/events.js +106 -3
- package/dist/discussion/events.js.map +1 -1
- package/dist/discussion/index.d.ts +7 -3
- package/dist/discussion/index.js +4 -1
- package/dist/discussion/ports.d.ts +288 -27
- package/dist/discussion/ports.js +6 -1
- package/dist/discussion/ports.js.map +1 -0
- package/dist/discussion/posts.d.ts +103 -0
- package/dist/discussion/posts.js +723 -0
- package/dist/discussion/posts.js.map +1 -0
- package/dist/discussion/service.d.ts +32 -10
- package/dist/discussion/service.js +293 -78
- package/dist/discussion/service.js.map +1 -1
- package/dist/entitlements/events.d.ts +178 -11
- package/dist/entitlements/events.js +28 -1
- package/dist/entitlements/events.js.map +1 -1
- package/dist/entitlements/index.d.ts +5 -4
- package/dist/entitlements/index.js +2 -1
- package/dist/entitlements/model.d.ts +3 -2
- package/dist/entitlements/ports.d.ts +124 -11
- package/dist/entitlements/rules.d.ts +12 -0
- package/dist/entitlements/rules.js +17 -0
- package/dist/entitlements/rules.js.map +1 -0
- package/dist/entitlements/service.d.ts +54 -3
- package/dist/entitlements/service.js +472 -2
- package/dist/entitlements/service.js.map +1 -1
- package/dist/identity/access.d.ts +6 -0
- package/dist/identity/access.js +7 -0
- package/dist/identity/access.js.map +1 -0
- package/dist/identity/index.d.ts +6 -4
- package/dist/identity/index.js +3 -1
- package/dist/identity/model.d.ts +2 -1
- package/dist/identity/notifications.d.ts +27 -0
- package/dist/identity/notifications.js +101 -0
- package/dist/identity/notifications.js.map +1 -0
- package/dist/identity/ports.d.ts +73 -3
- package/dist/identity/service.d.ts +14 -3
- package/dist/identity/service.js +62 -5
- package/dist/identity/service.js.map +1 -1
- package/dist/integrations/model.js +1 -1
- package/dist/integrations/model.js.map +1 -1
- package/dist/integrations/service.js +2 -2
- package/dist/integrations/service.js.map +1 -1
- package/dist/organizations/access-scopes.d.ts +19 -0
- package/dist/organizations/access-scopes.js +89 -0
- package/dist/organizations/access-scopes.js.map +1 -0
- package/dist/organizations/events.d.ts +74 -32
- package/dist/organizations/events.js +6 -0
- package/dist/organizations/events.js.map +1 -1
- package/dist/organizations/index.d.ts +7 -6
- package/dist/organizations/index.js +4 -3
- package/dist/organizations/members.d.ts +8 -5
- package/dist/organizations/members.js.map +1 -1
- package/dist/organizations/ports.d.ts +14 -11
- package/dist/organizations/roles.d.ts +6 -10
- package/dist/organizations/roles.js +19 -7
- package/dist/organizations/roles.js.map +1 -1
- package/dist/organizations/service.d.ts +20 -11
- package/dist/organizations/service.js +157 -47
- package/dist/organizations/service.js.map +1 -1
- package/dist/organizations/types.d.ts +1 -10
- package/dist/progress/index.d.ts +2 -2
- package/dist/progress/ports.d.ts +6 -1
- package/dist/progress/service.d.ts +3 -1
- package/dist/progress/service.js +6 -2
- package/dist/progress/service.js.map +1 -1
- package/dist/reporting/admin/index.d.ts +4 -0
- package/dist/reporting/admin/index.js +2 -0
- package/dist/reporting/admin/model.d.ts +108 -0
- package/dist/reporting/admin/ports.d.ts +27 -0
- package/dist/reporting/admin/service.d.ts +22 -0
- package/dist/reporting/admin/service.js +38 -0
- package/dist/reporting/admin/service.js.map +1 -0
- package/dist/reporting/member/index.d.ts +5 -0
- package/dist/reporting/member/index.js +2 -0
- package/dist/reporting/member/model.d.ts +124 -0
- package/dist/reporting/member/ports.d.ts +45 -0
- package/dist/reporting/member/service.d.ts +73 -0
- package/dist/reporting/member/service.js +286 -0
- package/dist/reporting/member/service.js.map +1 -0
- package/dist/shared/actor.d.ts +9 -0
- package/dist/shared/errors.d.ts +7 -1
- package/dist/shared/errors.js +10 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/id.d.ts +11 -0
- package/dist/shared/id.js +12 -1
- package/dist/shared/id.js.map +1 -1
- package/dist/shared/mailer.d.ts +4 -1
- package/dist/shared/mailer.js.map +1 -1
- package/dist/shared/network.d.ts +10 -0
- package/dist/shared/network.js +211 -0
- package/dist/shared/network.js.map +1 -0
- package/dist/types/assets.d.ts +2 -2
- package/dist/types/automations.d.ts +10 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/discussion.d.ts +11 -3
- package/dist/types/email-templates.d.ts +121 -0
- package/dist/types/entitlements.d.ts +2 -2
- package/dist/types/identity.d.ts +48 -2
- package/dist/types/index.d.ts +9 -9
- package/dist/types/ports.d.ts +6 -0
- package/dist/types/schemas/assets.d.ts +65 -37
- package/dist/types/schemas/assets.js +17 -12
- package/dist/types/schemas/assets.js.map +1 -1
- package/dist/types/schemas/automations.d.ts +18 -1
- package/dist/types/schemas/automations.js +15 -6
- package/dist/types/schemas/automations.js.map +1 -1
- package/dist/types/schemas/content.d.ts +335 -3
- package/dist/types/schemas/content.js +139 -3
- package/dist/types/schemas/content.js.map +1 -1
- package/dist/types/schemas/discussion.d.ts +370 -3
- package/dist/types/schemas/discussion.js +199 -4
- package/dist/types/schemas/discussion.js.map +1 -1
- package/dist/types/schemas/entitlements.d.ts +36 -2
- package/dist/types/schemas/entitlements.js +23 -1
- package/dist/types/schemas/entitlements.js.map +1 -1
- package/dist/types/schemas/identity.d.ts +111 -1
- package/dist/types/schemas/identity.js +55 -2
- package/dist/types/schemas/identity.js.map +1 -1
- package/dist/types/schemas/index.d.ts +8 -8
- package/dist/types/schemas/index.js +8 -8
- package/dist/types/schemas/organizations.d.ts +8 -0
- package/dist/types/schemas/organizations.js +2 -0
- package/dist/types/schemas/organizations.js.map +1 -1
- package/dist/types/schemas/shared.d.ts +3 -1
- package/dist/types/schemas/shared.js +5 -1
- package/dist/types/schemas/shared.js.map +1 -1
- package/package.json +2 -2
- package/dist/reporting/courses/index.d.ts +0 -4
- package/dist/reporting/courses/index.js +0 -2
- package/dist/reporting/courses/model.d.ts +0 -24
- package/dist/reporting/courses/ports.d.ts +0 -13
- package/dist/reporting/courses/service.d.ts +0 -19
- package/dist/reporting/courses/service.js +0 -20
- package/dist/reporting/courses/service.js.map +0 -1
- package/dist/reporting/dashboard/index.d.ts +0 -4
- package/dist/reporting/dashboard/index.js +0 -2
- package/dist/reporting/dashboard/model.d.ts +0 -14
- package/dist/reporting/dashboard/ports.d.ts +0 -13
- package/dist/reporting/dashboard/service.d.ts +0 -19
- package/dist/reporting/dashboard/service.js +0 -20
- package/dist/reporting/dashboard/service.js.map +0 -1
- package/dist/reporting/learn/index.d.ts +0 -5
- package/dist/reporting/learn/index.js +0 -2
- package/dist/reporting/learn/model.d.ts +0 -23
- package/dist/reporting/learn/ports.d.ts +0 -43
- package/dist/reporting/learn/ports.js +0 -1
- package/dist/reporting/learn/service.d.ts +0 -49
- package/dist/reporting/learn/service.js +0 -116
- package/dist/reporting/learn/service.js.map +0 -1
- package/dist/reporting/students/index.d.ts +0 -4
- package/dist/reporting/students/index.js +0 -2
- package/dist/reporting/students/model.d.ts +0 -51
- package/dist/reporting/students/model.js +0 -1
- package/dist/reporting/students/ports.d.ts +0 -15
- package/dist/reporting/students/ports.js +0 -1
- package/dist/reporting/students/service.d.ts +0 -20
- package/dist/reporting/students/service.js +0 -23
- package/dist/reporting/students/service.js.map +0 -1
- /package/dist/reporting/{courses → admin}/model.js +0 -0
- /package/dist/reporting/{courses → admin}/ports.js +0 -0
- /package/dist/reporting/{dashboard → member}/model.js +0 -0
- /package/dist/reporting/{dashboard → member}/ports.js +0 -0
- /package/dist/{reporting/learn/model.js → shared/actor.js} +0 -0
|
@@ -2,8 +2,9 @@ import { JsonValue } from "../shared.js";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/types/schemas/content.d.ts
|
|
4
4
|
declare const contentTypeSchema: z.ZodEnum<{
|
|
5
|
-
download: "download";
|
|
6
5
|
course: "course";
|
|
6
|
+
download: "download";
|
|
7
|
+
community: "community";
|
|
7
8
|
}>;
|
|
8
9
|
type ContentType = z.infer<typeof contentTypeSchema>;
|
|
9
10
|
declare const courseStatusSchema: z.ZodEnum<{
|
|
@@ -69,8 +70,9 @@ declare const contentItemSchema: z.ZodObject<{
|
|
|
69
70
|
orgId: z.ZodString;
|
|
70
71
|
id: z.ZodString;
|
|
71
72
|
type: z.ZodEnum<{
|
|
72
|
-
download: "download";
|
|
73
73
|
course: "course";
|
|
74
|
+
download: "download";
|
|
75
|
+
community: "community";
|
|
74
76
|
}>;
|
|
75
77
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
76
78
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -103,6 +105,33 @@ declare const courseSchema: z.ZodObject<{
|
|
|
103
105
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
104
106
|
}, z.core.$strict>;
|
|
105
107
|
type Course = z.output<typeof courseSchema>;
|
|
108
|
+
declare const courseViewSchema: z.ZodObject<{
|
|
109
|
+
orgId: z.ZodString;
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
type: z.ZodLiteral<"course">;
|
|
112
|
+
title: z.ZodString;
|
|
113
|
+
slug: z.ZodString;
|
|
114
|
+
description: z.ZodString;
|
|
115
|
+
status: z.ZodEnum<{
|
|
116
|
+
draft: "draft";
|
|
117
|
+
published: "published";
|
|
118
|
+
}>;
|
|
119
|
+
category: z.ZodString;
|
|
120
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
121
|
+
settings: z.ZodObject<{
|
|
122
|
+
transcriptDownloads: z.ZodBoolean;
|
|
123
|
+
comments: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
enabled: z.ZodBoolean;
|
|
125
|
+
threaded: z.ZodBoolean;
|
|
126
|
+
requireReview: z.ZodBoolean;
|
|
127
|
+
reactions: z.ZodBoolean;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
}, z.core.$strict>;
|
|
130
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
131
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
132
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
133
|
+
}, z.core.$strict>;
|
|
134
|
+
type CourseView = z.output<typeof courseViewSchema>;
|
|
106
135
|
declare const activitySchema: z.ZodObject<{
|
|
107
136
|
orgId: z.ZodString;
|
|
108
137
|
id: z.ZodString;
|
|
@@ -115,6 +144,18 @@ declare const activitySchema: z.ZodObject<{
|
|
|
115
144
|
}, z.core.$strict>;
|
|
116
145
|
type Activity = z.output<typeof activitySchema>;
|
|
117
146
|
type ActivityInput = z.input<typeof activitySchema>;
|
|
147
|
+
declare const activityViewSchema: z.ZodObject<{
|
|
148
|
+
orgId: z.ZodString;
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
moduleId: z.ZodString;
|
|
151
|
+
courseId: z.ZodString;
|
|
152
|
+
seq: z.ZodNumber;
|
|
153
|
+
settings: z.ZodNullable<z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>;
|
|
154
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
155
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
156
|
+
assetUrls: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
type ActivityView = z.output<typeof activityViewSchema>;
|
|
118
159
|
declare const moduleSchema: z.ZodObject<{
|
|
119
160
|
orgId: z.ZodString;
|
|
120
161
|
id: z.ZodString;
|
|
@@ -194,6 +235,24 @@ declare const downloadSchema: z.ZodObject<{
|
|
|
194
235
|
}, z.core.$strict>;
|
|
195
236
|
type Download = z.output<typeof downloadSchema>;
|
|
196
237
|
type DownloadInput = z.input<typeof downloadSchema>;
|
|
238
|
+
declare const downloadViewSchema: z.ZodObject<{
|
|
239
|
+
orgId: z.ZodString;
|
|
240
|
+
id: z.ZodString;
|
|
241
|
+
type: z.ZodLiteral<"download">;
|
|
242
|
+
title: z.ZodString;
|
|
243
|
+
slug: z.ZodString;
|
|
244
|
+
description: z.ZodString;
|
|
245
|
+
status: z.ZodEnum<{
|
|
246
|
+
draft: "draft";
|
|
247
|
+
published: "published";
|
|
248
|
+
}>;
|
|
249
|
+
category: z.ZodString;
|
|
250
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
251
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
252
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
253
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
type DownloadView = z.output<typeof downloadViewSchema>;
|
|
197
256
|
declare const downloadAssetSchema: z.ZodObject<{
|
|
198
257
|
orgId: z.ZodString;
|
|
199
258
|
id: z.ZodString;
|
|
@@ -206,6 +265,21 @@ declare const downloadAssetSchema: z.ZodObject<{
|
|
|
206
265
|
}, z.core.$strict>;
|
|
207
266
|
type DownloadAsset = z.output<typeof downloadAssetSchema>;
|
|
208
267
|
type DownloadAssetInput = z.input<typeof downloadAssetSchema>;
|
|
268
|
+
declare const downloadFileSchema: z.ZodObject<{
|
|
269
|
+
orgId: z.ZodString;
|
|
270
|
+
id: z.ZodString;
|
|
271
|
+
downloadId: z.ZodString;
|
|
272
|
+
assetId: z.ZodString;
|
|
273
|
+
seq: z.ZodNumber;
|
|
274
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
275
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
276
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
277
|
+
filename: z.ZodString;
|
|
278
|
+
contentType: z.ZodString;
|
|
279
|
+
size: z.ZodNumber;
|
|
280
|
+
url: z.ZodString;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
type DownloadFile = z.output<typeof downloadFileSchema>;
|
|
209
283
|
declare const listDownloadsQuerySchema: z.ZodObject<{
|
|
210
284
|
page: z.ZodNumber;
|
|
211
285
|
pageSize: z.ZodNumber;
|
|
@@ -244,6 +318,264 @@ declare const reorderDownloadAssetsInputSchema: z.ZodObject<{
|
|
|
244
318
|
assetIds: z.ZodArray<z.ZodString>;
|
|
245
319
|
}, z.core.$strict>;
|
|
246
320
|
type ReorderDownloadAssetsInput = z.infer<typeof reorderDownloadAssetsInputSchema>;
|
|
321
|
+
declare const communityStatusSchema: z.ZodEnum<{
|
|
322
|
+
draft: "draft";
|
|
323
|
+
published: "published";
|
|
324
|
+
}>;
|
|
325
|
+
type CommunityStatus = z.infer<typeof communityStatusSchema>;
|
|
326
|
+
declare const dmSettingsSchema: z.ZodObject<{
|
|
327
|
+
enabled: z.ZodBoolean;
|
|
328
|
+
memberToMember: z.ZodBoolean;
|
|
329
|
+
memberToStaff: z.ZodBoolean;
|
|
330
|
+
staffToAnyone: z.ZodBoolean;
|
|
331
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
332
|
+
groupChats: z.ZodBoolean;
|
|
333
|
+
groupSize: z.ZodNumber;
|
|
334
|
+
}, z.core.$strict>;
|
|
335
|
+
type DmSettings = z.infer<typeof dmSettingsSchema>;
|
|
336
|
+
declare const dmSettingsDefaults: DmSettings;
|
|
337
|
+
declare const communitySettingsSchema: z.ZodObject<{
|
|
338
|
+
dm: z.ZodObject<{
|
|
339
|
+
enabled: z.ZodBoolean;
|
|
340
|
+
memberToMember: z.ZodBoolean;
|
|
341
|
+
memberToStaff: z.ZodBoolean;
|
|
342
|
+
staffToAnyone: z.ZodBoolean;
|
|
343
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
344
|
+
groupChats: z.ZodBoolean;
|
|
345
|
+
groupSize: z.ZodNumber;
|
|
346
|
+
}, z.core.$strict>;
|
|
347
|
+
}, z.core.$strict>;
|
|
348
|
+
type CommunitySettings = z.infer<typeof communitySettingsSchema>;
|
|
349
|
+
declare const communitySettingsDefaults: CommunitySettings;
|
|
350
|
+
declare const communitySchema: z.ZodObject<{
|
|
351
|
+
orgId: z.ZodString;
|
|
352
|
+
id: z.ZodString;
|
|
353
|
+
type: z.ZodLiteral<"community">;
|
|
354
|
+
title: z.ZodString;
|
|
355
|
+
slug: z.ZodString;
|
|
356
|
+
description: z.ZodString;
|
|
357
|
+
status: z.ZodEnum<{
|
|
358
|
+
draft: "draft";
|
|
359
|
+
published: "published";
|
|
360
|
+
}>;
|
|
361
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
362
|
+
settings: z.ZodObject<{
|
|
363
|
+
dm: z.ZodObject<{
|
|
364
|
+
enabled: z.ZodBoolean;
|
|
365
|
+
memberToMember: z.ZodBoolean;
|
|
366
|
+
memberToStaff: z.ZodBoolean;
|
|
367
|
+
staffToAnyone: z.ZodBoolean;
|
|
368
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
369
|
+
groupChats: z.ZodBoolean;
|
|
370
|
+
groupSize: z.ZodNumber;
|
|
371
|
+
}, z.core.$strict>;
|
|
372
|
+
}, z.core.$strict>;
|
|
373
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
374
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
375
|
+
}, z.core.$strict>;
|
|
376
|
+
type Community = z.output<typeof communitySchema>;
|
|
377
|
+
declare const communityViewSchema: z.ZodObject<{
|
|
378
|
+
orgId: z.ZodString;
|
|
379
|
+
id: z.ZodString;
|
|
380
|
+
type: z.ZodLiteral<"community">;
|
|
381
|
+
title: z.ZodString;
|
|
382
|
+
slug: z.ZodString;
|
|
383
|
+
description: z.ZodString;
|
|
384
|
+
status: z.ZodEnum<{
|
|
385
|
+
draft: "draft";
|
|
386
|
+
published: "published";
|
|
387
|
+
}>;
|
|
388
|
+
thumbnailAssetId: z.ZodNullable<z.ZodString>;
|
|
389
|
+
settings: z.ZodObject<{
|
|
390
|
+
dm: z.ZodObject<{
|
|
391
|
+
enabled: z.ZodBoolean;
|
|
392
|
+
memberToMember: z.ZodBoolean;
|
|
393
|
+
memberToStaff: z.ZodBoolean;
|
|
394
|
+
staffToAnyone: z.ZodBoolean;
|
|
395
|
+
firstMessageIsRequest: z.ZodBoolean;
|
|
396
|
+
groupChats: z.ZodBoolean;
|
|
397
|
+
groupSize: z.ZodNumber;
|
|
398
|
+
}, z.core.$strict>;
|
|
399
|
+
}, z.core.$strict>;
|
|
400
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
401
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
402
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
403
|
+
}, z.core.$strict>;
|
|
404
|
+
type CommunityView = z.output<typeof communityViewSchema>;
|
|
405
|
+
declare const spaceAccessRuleSchema: z.ZodEnum<{
|
|
406
|
+
all_members: "all_members";
|
|
407
|
+
by_request: "by_request";
|
|
408
|
+
by_invite: "by_invite";
|
|
409
|
+
}>;
|
|
410
|
+
type SpaceAccessRule = z.infer<typeof spaceAccessRuleSchema>;
|
|
411
|
+
declare const spaceSettingsSchema: z.ZodObject<{
|
|
412
|
+
comments: z.ZodBoolean;
|
|
413
|
+
reactions: z.ZodBoolean;
|
|
414
|
+
requireReview: z.ZodBoolean;
|
|
415
|
+
}, z.core.$strict>;
|
|
416
|
+
type SpaceSettings = z.infer<typeof spaceSettingsSchema>;
|
|
417
|
+
declare const spaceSettingsDefaults: SpaceSettings;
|
|
418
|
+
declare const spaceSchema: z.ZodObject<{
|
|
419
|
+
orgId: z.ZodString;
|
|
420
|
+
id: z.ZodString;
|
|
421
|
+
communityId: z.ZodString;
|
|
422
|
+
name: z.ZodString;
|
|
423
|
+
description: z.ZodString;
|
|
424
|
+
seq: z.ZodNumber;
|
|
425
|
+
accessRule: z.ZodEnum<{
|
|
426
|
+
all_members: "all_members";
|
|
427
|
+
by_request: "by_request";
|
|
428
|
+
by_invite: "by_invite";
|
|
429
|
+
}>;
|
|
430
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
431
|
+
settings: z.ZodObject<{
|
|
432
|
+
comments: z.ZodBoolean;
|
|
433
|
+
reactions: z.ZodBoolean;
|
|
434
|
+
requireReview: z.ZodBoolean;
|
|
435
|
+
}, z.core.$strict>;
|
|
436
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
437
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
438
|
+
}, z.core.$strict>;
|
|
439
|
+
type Space = z.output<typeof spaceSchema>;
|
|
440
|
+
declare const spaceTopicSchema: z.ZodObject<{
|
|
441
|
+
orgId: z.ZodString;
|
|
442
|
+
id: z.ZodString;
|
|
443
|
+
spaceId: z.ZodString;
|
|
444
|
+
name: z.ZodString;
|
|
445
|
+
seq: z.ZodNumber;
|
|
446
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
447
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
type SpaceTopic = z.output<typeof spaceTopicSchema>;
|
|
450
|
+
declare const spaceLinkSchema: z.ZodObject<{
|
|
451
|
+
orgId: z.ZodString;
|
|
452
|
+
id: z.ZodString;
|
|
453
|
+
spaceId: z.ZodString;
|
|
454
|
+
contentId: z.ZodString;
|
|
455
|
+
seq: z.ZodNumber;
|
|
456
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
457
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
458
|
+
}, z.core.$strict>;
|
|
459
|
+
type SpaceLink = z.output<typeof spaceLinkSchema>;
|
|
460
|
+
declare const spaceDetailSchema: z.ZodObject<{
|
|
461
|
+
orgId: z.ZodString;
|
|
462
|
+
id: z.ZodString;
|
|
463
|
+
communityId: z.ZodString;
|
|
464
|
+
name: z.ZodString;
|
|
465
|
+
description: z.ZodString;
|
|
466
|
+
seq: z.ZodNumber;
|
|
467
|
+
accessRule: z.ZodEnum<{
|
|
468
|
+
all_members: "all_members";
|
|
469
|
+
by_request: "by_request";
|
|
470
|
+
by_invite: "by_invite";
|
|
471
|
+
}>;
|
|
472
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
473
|
+
settings: z.ZodObject<{
|
|
474
|
+
comments: z.ZodBoolean;
|
|
475
|
+
reactions: z.ZodBoolean;
|
|
476
|
+
requireReview: z.ZodBoolean;
|
|
477
|
+
}, z.core.$strict>;
|
|
478
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
479
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
480
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
481
|
+
orgId: z.ZodString;
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
spaceId: z.ZodString;
|
|
484
|
+
name: z.ZodString;
|
|
485
|
+
seq: z.ZodNumber;
|
|
486
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
487
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
488
|
+
}, z.core.$strict>>;
|
|
489
|
+
links: z.ZodArray<z.ZodObject<{
|
|
490
|
+
orgId: z.ZodString;
|
|
491
|
+
id: z.ZodString;
|
|
492
|
+
spaceId: z.ZodString;
|
|
493
|
+
contentId: z.ZodString;
|
|
494
|
+
seq: z.ZodNumber;
|
|
495
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
496
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
497
|
+
}, z.core.$strict>>;
|
|
498
|
+
}, z.core.$strict>;
|
|
499
|
+
type SpaceDetail = z.output<typeof spaceDetailSchema>;
|
|
500
|
+
declare const listCommunitiesQuerySchema: z.ZodObject<{
|
|
501
|
+
page: z.ZodNumber;
|
|
502
|
+
pageSize: z.ZodNumber;
|
|
503
|
+
search: z.ZodOptional<z.ZodString>;
|
|
504
|
+
sort: z.ZodOptional<z.ZodString>;
|
|
505
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
506
|
+
draft: "draft";
|
|
507
|
+
published: "published";
|
|
508
|
+
}>>;
|
|
509
|
+
}, z.core.$strict>;
|
|
510
|
+
type ListCommunitiesQuery = z.infer<typeof listCommunitiesQuerySchema>;
|
|
511
|
+
declare const createCommunityInputSchema: z.ZodObject<{
|
|
512
|
+
title: z.ZodString;
|
|
513
|
+
description: z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, z.core.$strict>;
|
|
515
|
+
type CreateCommunityInput = z.infer<typeof createCommunityInputSchema>;
|
|
516
|
+
declare const updateCommunityInputSchema: z.ZodObject<{
|
|
517
|
+
title: z.ZodOptional<z.ZodString>;
|
|
518
|
+
description: z.ZodOptional<z.ZodString>;
|
|
519
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
520
|
+
draft: "draft";
|
|
521
|
+
published: "published";
|
|
522
|
+
}>>;
|
|
523
|
+
thumbnailAssetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
524
|
+
}, z.core.$strict>;
|
|
525
|
+
type UpdateCommunityInput = z.infer<typeof updateCommunityInputSchema>;
|
|
526
|
+
declare const patchDmSettingsInputSchema: z.ZodObject<{
|
|
527
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
+
memberToMember: z.ZodOptional<z.ZodBoolean>;
|
|
529
|
+
memberToStaff: z.ZodOptional<z.ZodBoolean>;
|
|
530
|
+
staffToAnyone: z.ZodOptional<z.ZodBoolean>;
|
|
531
|
+
firstMessageIsRequest: z.ZodOptional<z.ZodBoolean>;
|
|
532
|
+
groupChats: z.ZodOptional<z.ZodBoolean>;
|
|
533
|
+
groupSize: z.ZodOptional<z.ZodNumber>;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
type PatchDmSettingsInput = z.infer<typeof patchDmSettingsInputSchema>;
|
|
536
|
+
declare const createSpaceInputSchema: z.ZodObject<{
|
|
537
|
+
name: z.ZodString;
|
|
538
|
+
description: z.ZodOptional<z.ZodString>;
|
|
539
|
+
accessRule: z.ZodOptional<z.ZodEnum<{
|
|
540
|
+
all_members: "all_members";
|
|
541
|
+
by_request: "by_request";
|
|
542
|
+
by_invite: "by_invite";
|
|
543
|
+
}>>;
|
|
544
|
+
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
545
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
546
|
+
comments: z.ZodOptional<z.ZodBoolean>;
|
|
547
|
+
reactions: z.ZodOptional<z.ZodBoolean>;
|
|
548
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
549
|
+
}, z.core.$strict>>;
|
|
550
|
+
}, z.core.$strict>;
|
|
551
|
+
type CreateSpaceInput = z.infer<typeof createSpaceInputSchema>;
|
|
552
|
+
declare const updateSpaceInputSchema: z.ZodObject<{
|
|
553
|
+
name: z.ZodOptional<z.ZodString>;
|
|
554
|
+
description: z.ZodOptional<z.ZodString>;
|
|
555
|
+
accessRule: z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
all_members: "all_members";
|
|
557
|
+
by_request: "by_request";
|
|
558
|
+
by_invite: "by_invite";
|
|
559
|
+
}>>;
|
|
560
|
+
capacity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
561
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
comments: z.ZodOptional<z.ZodBoolean>;
|
|
563
|
+
reactions: z.ZodOptional<z.ZodBoolean>;
|
|
564
|
+
requireReview: z.ZodOptional<z.ZodBoolean>;
|
|
565
|
+
}, z.core.$strict>>;
|
|
566
|
+
}, z.core.$strict>;
|
|
567
|
+
type UpdateSpaceInput = z.infer<typeof updateSpaceInputSchema>;
|
|
568
|
+
declare const setSpaceTopicsInputSchema: z.ZodObject<{
|
|
569
|
+
topics: z.ZodArray<z.ZodObject<{
|
|
570
|
+
id: z.ZodOptional<z.ZodString>;
|
|
571
|
+
name: z.ZodString;
|
|
572
|
+
}, z.core.$strict>>;
|
|
573
|
+
}, z.core.$strict>;
|
|
574
|
+
type SetSpaceTopicsInput = z.infer<typeof setSpaceTopicsInputSchema>;
|
|
575
|
+
declare const addSpaceLinkInputSchema: z.ZodObject<{
|
|
576
|
+
contentId: z.ZodString;
|
|
577
|
+
}, z.core.$strict>;
|
|
578
|
+
type AddSpaceLinkInput = z.infer<typeof addSpaceLinkInputSchema>;
|
|
247
579
|
//#endregion
|
|
248
|
-
export { Activity, ActivityAsset, ActivityAssetInput, ActivityInput, ActivitySettings, AddDownloadAssetInput, Bundle, BundleInput, BundleItem, BundleItemInput, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CreateBundleInput, CreateCourseInput, CreateDownloadInput, Download, DownloadAsset, DownloadAssetInput, DownloadInput, DownloadStatus, ListBundlesQuery, ListCoursesQuery, ListDownloadsQuery, Module, ModuleInput, ReorderDownloadAssetsInput, SaveActivityInput, UpdateBundleInput, UpdateCourseInput, UpdateDownloadInput, activityAssetSchema, activitySchema, activitySettingsSchema, addDownloadAssetInputSchema, bundleItemSchema, bundleSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, createBundleInputSchema, createCourseInputSchema, createDownloadInputSchema, downloadAssetSchema, downloadSchema, downloadStatusSchema, listBundlesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, moduleSchema, reorderDownloadAssetsInputSchema, saveActivityInputSchema, updateBundleInputSchema, updateCourseInputSchema, updateDownloadInputSchema };
|
|
580
|
+
export { 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 };
|
|
249
581
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { idSchema, jsonValueSchema } from "./shared.js";
|
|
2
2
|
import { activityCommentsRuleSchema, commentSettingsSchema } from "./discussion.js";
|
|
3
|
+
import { assetUrlsSchema } from "./assets.js";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
//#region src/types/schemas/content.ts
|
|
5
|
-
const contentTypeSchema = z.enum([
|
|
6
|
+
const contentTypeSchema = z.enum([
|
|
7
|
+
"course",
|
|
8
|
+
"download",
|
|
9
|
+
"community"
|
|
10
|
+
]);
|
|
6
11
|
const courseStatusSchema = z.enum(["draft", "published"]);
|
|
7
12
|
const courseSettingsSchema = z.object({
|
|
8
13
|
transcriptDownloads: z.boolean(),
|
|
@@ -58,6 +63,7 @@ const courseSchema = z.object({
|
|
|
58
63
|
createdAt: z.coerce.date(),
|
|
59
64
|
updatedAt: z.coerce.date()
|
|
60
65
|
}).strict();
|
|
66
|
+
const courseViewSchema = courseSchema.extend({ thumbnailUrl: z.string().nullable() }).strict();
|
|
61
67
|
const activitySchema = z.object({
|
|
62
68
|
orgId: idSchema,
|
|
63
69
|
id: idSchema,
|
|
@@ -68,6 +74,7 @@ const activitySchema = z.object({
|
|
|
68
74
|
createdAt: z.coerce.date(),
|
|
69
75
|
updatedAt: z.coerce.date()
|
|
70
76
|
}).strict();
|
|
77
|
+
const activityViewSchema = activitySchema.extend({ assetUrls: assetUrlsSchema }).strict();
|
|
71
78
|
const moduleSchema = z.object({
|
|
72
79
|
orgId: idSchema,
|
|
73
80
|
id: idSchema,
|
|
@@ -124,6 +131,7 @@ const downloadSchema = z.object({
|
|
|
124
131
|
createdAt: z.coerce.date(),
|
|
125
132
|
updatedAt: z.coerce.date()
|
|
126
133
|
}).strict();
|
|
134
|
+
const downloadViewSchema = downloadSchema.extend({ thumbnailUrl: z.string().nullable() }).strict();
|
|
127
135
|
const downloadAssetSchema = z.object({
|
|
128
136
|
orgId: idSchema,
|
|
129
137
|
id: idSchema,
|
|
@@ -134,6 +142,12 @@ const downloadAssetSchema = z.object({
|
|
|
134
142
|
createdAt: z.coerce.date(),
|
|
135
143
|
updatedAt: z.coerce.date()
|
|
136
144
|
}).strict();
|
|
145
|
+
const downloadFileSchema = downloadAssetSchema.extend({
|
|
146
|
+
filename: z.string(),
|
|
147
|
+
contentType: z.string(),
|
|
148
|
+
size: z.number().int().min(0),
|
|
149
|
+
url: z.string()
|
|
150
|
+
}).strict();
|
|
137
151
|
const listDownloadsQuerySchema = z.object({
|
|
138
152
|
page: z.number().int().min(1),
|
|
139
153
|
pageSize: z.number().int().min(1),
|
|
@@ -158,8 +172,130 @@ const addDownloadAssetInputSchema = z.object({
|
|
|
158
172
|
assetId: idSchema,
|
|
159
173
|
displayName: z.string().optional()
|
|
160
174
|
}).strict();
|
|
161
|
-
const reorderDownloadAssetsInputSchema = z.object({ assetIds: z.array(idSchema) }).strict();
|
|
175
|
+
const reorderDownloadAssetsInputSchema = z.object({ assetIds: z.array(idSchema).max(500) }).strict();
|
|
176
|
+
const communityStatusSchema = z.enum(["draft", "published"]);
|
|
177
|
+
const dmSettingsSchema = z.object({
|
|
178
|
+
enabled: z.boolean(),
|
|
179
|
+
memberToMember: z.boolean(),
|
|
180
|
+
memberToStaff: z.boolean(),
|
|
181
|
+
staffToAnyone: z.boolean(),
|
|
182
|
+
firstMessageIsRequest: z.boolean(),
|
|
183
|
+
groupChats: z.boolean(),
|
|
184
|
+
groupSize: z.number().int().min(1)
|
|
185
|
+
}).strict();
|
|
186
|
+
const dmSettingsDefaults = {
|
|
187
|
+
enabled: true,
|
|
188
|
+
memberToMember: true,
|
|
189
|
+
memberToStaff: true,
|
|
190
|
+
staffToAnyone: true,
|
|
191
|
+
firstMessageIsRequest: true,
|
|
192
|
+
groupChats: true,
|
|
193
|
+
groupSize: 8
|
|
194
|
+
};
|
|
195
|
+
const communitySettingsSchema = z.object({ dm: dmSettingsSchema }).strict();
|
|
196
|
+
const communitySettingsDefaults = { dm: dmSettingsDefaults };
|
|
197
|
+
const communitySchema = z.object({
|
|
198
|
+
orgId: idSchema,
|
|
199
|
+
id: idSchema,
|
|
200
|
+
type: z.literal("community"),
|
|
201
|
+
title: z.string(),
|
|
202
|
+
slug: z.string(),
|
|
203
|
+
description: z.string(),
|
|
204
|
+
status: communityStatusSchema,
|
|
205
|
+
thumbnailAssetId: idSchema.nullable(),
|
|
206
|
+
settings: communitySettingsSchema,
|
|
207
|
+
createdAt: z.coerce.date(),
|
|
208
|
+
updatedAt: z.coerce.date()
|
|
209
|
+
}).strict();
|
|
210
|
+
const communityViewSchema = communitySchema.extend({ thumbnailUrl: z.string().nullable() }).strict();
|
|
211
|
+
const spaceAccessRuleSchema = z.enum([
|
|
212
|
+
"all_members",
|
|
213
|
+
"by_request",
|
|
214
|
+
"by_invite"
|
|
215
|
+
]);
|
|
216
|
+
const spaceSettingsSchema = z.object({
|
|
217
|
+
comments: z.boolean(),
|
|
218
|
+
reactions: z.boolean(),
|
|
219
|
+
requireReview: z.boolean()
|
|
220
|
+
}).strict();
|
|
221
|
+
const spaceSettingsDefaults = {
|
|
222
|
+
comments: true,
|
|
223
|
+
reactions: true,
|
|
224
|
+
requireReview: false
|
|
225
|
+
};
|
|
226
|
+
const spaceSchema = z.object({
|
|
227
|
+
orgId: idSchema,
|
|
228
|
+
id: idSchema,
|
|
229
|
+
communityId: idSchema,
|
|
230
|
+
name: z.string(),
|
|
231
|
+
description: z.string(),
|
|
232
|
+
seq: z.number().int(),
|
|
233
|
+
accessRule: spaceAccessRuleSchema,
|
|
234
|
+
capacity: z.number().int().nullable(),
|
|
235
|
+
settings: spaceSettingsSchema,
|
|
236
|
+
createdAt: z.coerce.date(),
|
|
237
|
+
updatedAt: z.coerce.date()
|
|
238
|
+
}).strict();
|
|
239
|
+
const spaceTopicSchema = z.object({
|
|
240
|
+
orgId: idSchema,
|
|
241
|
+
id: idSchema,
|
|
242
|
+
spaceId: idSchema,
|
|
243
|
+
name: z.string(),
|
|
244
|
+
seq: z.number().int(),
|
|
245
|
+
createdAt: z.coerce.date(),
|
|
246
|
+
updatedAt: z.coerce.date()
|
|
247
|
+
}).strict();
|
|
248
|
+
const spaceLinkSchema = z.object({
|
|
249
|
+
orgId: idSchema,
|
|
250
|
+
id: idSchema,
|
|
251
|
+
spaceId: idSchema,
|
|
252
|
+
contentId: idSchema,
|
|
253
|
+
seq: z.number().int(),
|
|
254
|
+
createdAt: z.coerce.date(),
|
|
255
|
+
updatedAt: z.coerce.date()
|
|
256
|
+
}).strict();
|
|
257
|
+
const spaceDetailSchema = spaceSchema.extend({
|
|
258
|
+
topics: z.array(spaceTopicSchema),
|
|
259
|
+
links: z.array(spaceLinkSchema)
|
|
260
|
+
});
|
|
261
|
+
const listCommunitiesQuerySchema = z.object({
|
|
262
|
+
page: z.number().int().min(1),
|
|
263
|
+
pageSize: z.number().int().min(1),
|
|
264
|
+
search: z.string().optional(),
|
|
265
|
+
sort: z.string().optional(),
|
|
266
|
+
status: communityStatusSchema.optional()
|
|
267
|
+
}).strict();
|
|
268
|
+
const createCommunityInputSchema = z.object({
|
|
269
|
+
title: z.string().trim().min(1).max(200),
|
|
270
|
+
description: z.string().trim().max(5e3).optional()
|
|
271
|
+
}).strict();
|
|
272
|
+
const updateCommunityInputSchema = z.object({
|
|
273
|
+
title: z.string().trim().min(1).max(200).optional(),
|
|
274
|
+
description: z.string().trim().max(5e3).optional(),
|
|
275
|
+
status: communityStatusSchema.optional(),
|
|
276
|
+
thumbnailAssetId: idSchema.nullable().optional()
|
|
277
|
+
}).strict();
|
|
278
|
+
const patchDmSettingsInputSchema = dmSettingsSchema.extend({ groupSize: z.number().int().min(3).max(100).describe("The most people a group chat may hold, its creator included") }).partial();
|
|
279
|
+
const createSpaceInputSchema = z.object({
|
|
280
|
+
name: z.string().trim().min(1).max(120),
|
|
281
|
+
description: z.string().trim().max(2e3).optional(),
|
|
282
|
+
accessRule: spaceAccessRuleSchema.optional(),
|
|
283
|
+
capacity: z.number().int().min(0).nullable().optional(),
|
|
284
|
+
settings: spaceSettingsSchema.partial().optional()
|
|
285
|
+
}).strict();
|
|
286
|
+
const updateSpaceInputSchema = z.object({
|
|
287
|
+
name: z.string().trim().min(1).max(120).optional(),
|
|
288
|
+
description: z.string().trim().max(2e3).optional(),
|
|
289
|
+
accessRule: spaceAccessRuleSchema.optional(),
|
|
290
|
+
capacity: z.number().int().min(0).nullable().optional(),
|
|
291
|
+
settings: spaceSettingsSchema.partial().optional()
|
|
292
|
+
}).strict();
|
|
293
|
+
const setSpaceTopicsInputSchema = z.object({ topics: z.array(z.object({
|
|
294
|
+
id: idSchema.optional().describe("Keep an existing topic; omit to add a new one"),
|
|
295
|
+
name: z.string().trim().min(1).max(60)
|
|
296
|
+
}).strict()).max(50).describe("The complete list, in order. A topic left out is deleted") }).strict();
|
|
297
|
+
const addSpaceLinkInputSchema = z.object({ contentId: idSchema }).strict();
|
|
162
298
|
//#endregion
|
|
163
|
-
export { activityAssetSchema, activitySchema, activitySettingsSchema, addDownloadAssetInputSchema, bundleItemSchema, bundleSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, createBundleInputSchema, createCourseInputSchema, createDownloadInputSchema, downloadAssetSchema, downloadSchema, downloadStatusSchema, listBundlesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, moduleSchema, reorderDownloadAssetsInputSchema, saveActivityInputSchema, updateBundleInputSchema, updateCourseInputSchema, updateDownloadInputSchema };
|
|
299
|
+
export { 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 };
|
|
164
300
|
|
|
165
301
|
//# sourceMappingURL=content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","names":[],"sources":["../../../src/types/schemas/content.ts"],"sourcesContent":["import { z } from 'zod';\nimport { activityCommentsRuleSchema, commentSettingsSchema } from './discussion.js';\nimport { idSchema, jsonValueSchema } from './shared.js';\n\nexport const contentTypeSchema = z.enum(['course', 'download']);\nexport type ContentType = z.infer<typeof contentTypeSchema>;\n\nexport const courseStatusSchema = z.enum(['draft', 'published']);\nexport type CourseStatus = z.infer<typeof courseStatusSchema>;\n\nexport const courseSettingsSchema = z\n .object({\n transcriptDownloads: z.boolean(),\n comments: commentSettingsSchema.optional(),\n })\n .strict();\nexport type CourseSettings = z.infer<typeof courseSettingsSchema>;\n\n/** Defaults for keys a stored settings row doesn't carry (or no row at all). */\nexport const courseSettingsDefaults: CourseSettings = { transcriptDownloads: false };\n\nexport const activitySettingsSchema = z\n .object({\n comments: activityCommentsRuleSchema.optional(),\n })\n .strict();\nexport type ActivitySettings = z.infer<typeof activitySettingsSchema>;\n\nexport const bundleSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n name: z.string(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Bundle = z.output<typeof bundleSchema>;\nexport type BundleInput = z.input<typeof bundleSchema>;\n\nexport const bundleItemSchema = z\n .object({\n orgId: idSchema,\n bundleId: idSchema,\n contentId: idSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type BundleItem = z.output<typeof bundleItemSchema>;\nexport type BundleItemInput = z.input<typeof bundleItemSchema>;\n\nexport const listBundlesQuerySchema = 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 })\n .strict();\nexport type ListBundlesQuery = z.infer<typeof listBundlesQuerySchema>;\n\nexport const createBundleInputSchema = z\n .object({\n name: z.string(),\n /** Content to put in the bundle at creation — bundle and items land together. */\n contentIds: z.array(idSchema).optional(),\n })\n .strict();\nexport type CreateBundleInput = z.infer<typeof createBundleInputSchema>;\n\nexport const updateBundleInputSchema = z\n .object({\n name: z.string().optional(),\n })\n .strict();\nexport type UpdateBundleInput = z.infer<typeof updateBundleInputSchema>;\n\nexport const contentItemSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: contentTypeSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type ContentItem = z.output<typeof contentItemSchema>;\nexport type ContentItemInput = z.input<typeof contentItemSchema>;\n\nexport const courseSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: z.literal('course'),\n title: z.string(),\n slug: z.string(),\n description: z.string(),\n status: courseStatusSchema,\n category: z.string(),\n thumbnailAssetId: idSchema.nullable(),\n settings: courseSettingsSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Course = z.output<typeof courseSchema>;\n\nexport const activitySchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n moduleId: idSchema,\n courseId: idSchema,\n seq: z.number().int().min(0),\n settings: jsonValueSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Activity = z.output<typeof activitySchema>;\nexport type ActivityInput = z.input<typeof activitySchema>;\n\nexport const moduleSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n courseId: idSchema,\n title: z.string(),\n seq: z.number().int().min(0),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Module = z.output<typeof moduleSchema>;\nexport type ModuleInput = z.input<typeof moduleSchema>;\n\nexport const activityAssetSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n activityId: idSchema,\n assetId: idSchema,\n seq: z.number().int(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type ActivityAsset = z.output<typeof activityAssetSchema>;\nexport type ActivityAssetInput = z.input<typeof activityAssetSchema>;\n\nexport const saveActivityInputSchema = z\n .object({\n settings: jsonValueSchema.optional(),\n assetIds: z.array(idSchema).optional(),\n })\n .strict();\nexport type SaveActivityInput = z.infer<typeof saveActivityInputSchema>;\n\nexport const listCoursesQuerySchema = 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: courseStatusSchema.optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type ListCoursesQuery = z.infer<typeof listCoursesQuerySchema>;\n\nexport const createCourseInputSchema = z\n .object({\n title: z.string(),\n description: z.string().optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type CreateCourseInput = z.infer<typeof createCourseInputSchema>;\n\nexport const updateCourseInputSchema = z\n .object({\n title: z.string().optional(),\n description: z.string().optional(),\n category: z.string().optional(),\n status: courseStatusSchema.optional(),\n thumbnailAssetId: idSchema.nullable().optional(),\n })\n .strict();\nexport type UpdateCourseInput = z.infer<typeof updateCourseInputSchema>;\n\nexport const downloadStatusSchema = z.enum(['draft', 'published']);\nexport type DownloadStatus = z.infer<typeof downloadStatusSchema>;\n\nexport const downloadSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: z.literal('download'),\n title: z.string(),\n slug: z.string(),\n description: z.string(),\n status: downloadStatusSchema,\n category: z.string(),\n thumbnailAssetId: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Download = z.output<typeof downloadSchema>;\nexport type DownloadInput = z.input<typeof downloadSchema>;\n\nexport const downloadAssetSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n downloadId: idSchema,\n assetId: idSchema,\n seq: z.number().int(),\n displayName: z.string().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type DownloadAsset = z.output<typeof downloadAssetSchema>;\nexport type DownloadAssetInput = z.input<typeof downloadAssetSchema>;\n\nexport const listDownloadsQuerySchema = 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: downloadStatusSchema.optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type ListDownloadsQuery = z.infer<typeof listDownloadsQuerySchema>;\n\nexport const createDownloadInputSchema = z\n .object({\n title: z.string(),\n description: z.string().optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type CreateDownloadInput = z.infer<typeof createDownloadInputSchema>;\n\nexport const updateDownloadInputSchema = z\n .object({\n title: z.string().optional(),\n description: z.string().optional(),\n category: z.string().optional(),\n status: downloadStatusSchema.optional(),\n thumbnailAssetId: idSchema.nullable().optional(),\n })\n .strict();\nexport type UpdateDownloadInput = z.infer<typeof updateDownloadInputSchema>;\n\nexport const addDownloadAssetInputSchema = z\n .object({\n assetId: idSchema,\n displayName: z.string().optional(),\n })\n .strict();\nexport type AddDownloadAssetInput = z.infer<typeof addDownloadAssetInputSchema>;\n\nexport const reorderDownloadAssetsInputSchema = z\n .object({\n assetIds: z.array(idSchema),\n })\n .strict();\nexport type ReorderDownloadAssetsInput = z.infer<typeof reorderDownloadAssetsInputSchema>;\n"],"mappings":";;;;AAIA,MAAa,oBAAoB,EAAE,KAAK,CAAC,UAAU,UAAU,CAAC;AAG9D,MAAa,qBAAqB,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC;AAG/D,MAAa,uBAAuB,EACjC,OAAO;CACN,qBAAqB,EAAE,QAAQ;CAC/B,UAAU,sBAAsB,SAAS;AAC3C,CAAC,CAAC,CACD,OAAO;;AAIV,MAAa,yBAAyC,EAAE,qBAAqB,MAAM;AAEnF,MAAa,yBAAyB,EACnC,OAAO,EACN,UAAU,2BAA2B,SAAS,EAChD,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,eAAe,EACzB,OAAO;CACN,OAAO;CACP,IAAI;CACJ,MAAM,EAAE,OAAO;CACf,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAIV,MAAa,mBAAmB,EAC7B,OA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AChC,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,4BAA4B,EACtC,OAAO;CACN,OAAO,EAAE,OAAO;CAChB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,4BAA4B,EACtC,OAAO;CACN,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS;CAC3B,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;CACjC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;CAC9B,QAAQ,qBAAqB,SAAS;CACtC,kBAAkB,SAAS,SAAS,CAAC,CAAC,SAAS;AACjD,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,8BAA8B,EACxC,OAAO;CACN,SAAS;CACT,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS;AACnC,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,mCAAmC,EAC7C,OAAO,EACN,UAAU,EAAE,MAAM,QAAQ,EAC5B,CAAC,CAAC,CACD,OAAO"}
|
|
1
|
+
{"version":3,"file":"content.js","names":[],"sources":["../../../src/types/schemas/content.ts"],"sourcesContent":["import { z } from 'zod';\nimport { assetUrlsSchema } from './assets.js';\nimport { activityCommentsRuleSchema, commentSettingsSchema } from './discussion.js';\nimport { idSchema, jsonValueSchema } from './shared.js';\n\nexport const contentTypeSchema = z.enum(['course', 'download', 'community']);\nexport type ContentType = z.infer<typeof contentTypeSchema>;\n\nexport const courseStatusSchema = z.enum(['draft', 'published']);\nexport type CourseStatus = z.infer<typeof courseStatusSchema>;\n\nexport const courseSettingsSchema = z\n .object({\n transcriptDownloads: z.boolean(),\n comments: commentSettingsSchema.optional(),\n })\n .strict();\nexport type CourseSettings = z.infer<typeof courseSettingsSchema>;\n\n/** Defaults for keys a stored settings row doesn't carry (or no row at all). */\nexport const courseSettingsDefaults: CourseSettings = { transcriptDownloads: false };\n\nexport const activitySettingsSchema = z\n .object({\n comments: activityCommentsRuleSchema.optional(),\n })\n .strict();\nexport type ActivitySettings = z.infer<typeof activitySettingsSchema>;\n\nexport const bundleSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n name: z.string(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Bundle = z.output<typeof bundleSchema>;\nexport type BundleInput = z.input<typeof bundleSchema>;\n\nexport const bundleItemSchema = z\n .object({\n orgId: idSchema,\n bundleId: idSchema,\n contentId: idSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type BundleItem = z.output<typeof bundleItemSchema>;\nexport type BundleItemInput = z.input<typeof bundleItemSchema>;\n\nexport const listBundlesQuerySchema = 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 })\n .strict();\nexport type ListBundlesQuery = z.infer<typeof listBundlesQuerySchema>;\n\nexport const createBundleInputSchema = z\n .object({\n name: z.string(),\n /** Content to put in the bundle at creation — bundle and items land together. */\n contentIds: z.array(idSchema).optional(),\n })\n .strict();\nexport type CreateBundleInput = z.infer<typeof createBundleInputSchema>;\n\nexport const updateBundleInputSchema = z\n .object({\n name: z.string().optional(),\n })\n .strict();\nexport type UpdateBundleInput = z.infer<typeof updateBundleInputSchema>;\n\nexport const contentItemSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: contentTypeSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type ContentItem = z.output<typeof contentItemSchema>;\nexport type ContentItemInput = z.input<typeof contentItemSchema>;\n\nexport const courseSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: z.literal('course'),\n title: z.string(),\n slug: z.string(),\n description: z.string(),\n status: courseStatusSchema,\n category: z.string(),\n thumbnailAssetId: idSchema.nullable(),\n settings: courseSettingsSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Course = z.output<typeof courseSchema>;\n\nexport const courseViewSchema = courseSchema\n .extend({ thumbnailUrl: z.string().nullable() })\n .strict();\nexport type CourseView = z.output<typeof courseViewSchema>;\n\nexport const activitySchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n moduleId: idSchema,\n courseId: idSchema,\n seq: z.number().int().min(0),\n settings: jsonValueSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Activity = z.output<typeof activitySchema>;\nexport type ActivityInput = z.input<typeof activitySchema>;\n\nexport const activityViewSchema = activitySchema.extend({ assetUrls: assetUrlsSchema }).strict();\nexport type ActivityView = z.output<typeof activityViewSchema>;\n\nexport const moduleSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n courseId: idSchema,\n title: z.string(),\n seq: z.number().int().min(0),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Module = z.output<typeof moduleSchema>;\nexport type ModuleInput = z.input<typeof moduleSchema>;\n\nexport const activityAssetSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n activityId: idSchema,\n assetId: idSchema,\n seq: z.number().int(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type ActivityAsset = z.output<typeof activityAssetSchema>;\nexport type ActivityAssetInput = z.input<typeof activityAssetSchema>;\n\nexport const saveActivityInputSchema = z\n .object({\n settings: jsonValueSchema.optional(),\n assetIds: z.array(idSchema).optional(),\n })\n .strict();\nexport type SaveActivityInput = z.infer<typeof saveActivityInputSchema>;\n\nexport const listCoursesQuerySchema = 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: courseStatusSchema.optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type ListCoursesQuery = z.infer<typeof listCoursesQuerySchema>;\n\nexport const createCourseInputSchema = z\n .object({\n title: z.string(),\n description: z.string().optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type CreateCourseInput = z.infer<typeof createCourseInputSchema>;\n\nexport const updateCourseInputSchema = z\n .object({\n title: z.string().optional(),\n description: z.string().optional(),\n category: z.string().optional(),\n status: courseStatusSchema.optional(),\n thumbnailAssetId: idSchema.nullable().optional(),\n })\n .strict();\nexport type UpdateCourseInput = z.infer<typeof updateCourseInputSchema>;\n\nexport const downloadStatusSchema = z.enum(['draft', 'published']);\nexport type DownloadStatus = z.infer<typeof downloadStatusSchema>;\n\nexport const downloadSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: z.literal('download'),\n title: z.string(),\n slug: z.string(),\n description: z.string(),\n status: downloadStatusSchema,\n category: z.string(),\n thumbnailAssetId: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Download = z.output<typeof downloadSchema>;\nexport type DownloadInput = z.input<typeof downloadSchema>;\n\nexport const downloadViewSchema = downloadSchema\n .extend({ thumbnailUrl: z.string().nullable() })\n .strict();\nexport type DownloadView = z.output<typeof downloadViewSchema>;\n\nexport const downloadAssetSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n downloadId: idSchema,\n assetId: idSchema,\n seq: z.number().int(),\n displayName: z.string().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type DownloadAsset = z.output<typeof downloadAssetSchema>;\nexport type DownloadAssetInput = z.input<typeof downloadAssetSchema>;\n\nexport const downloadFileSchema = downloadAssetSchema\n .extend({\n filename: z.string(),\n contentType: z.string(),\n size: z.number().int().min(0),\n url: z.string(),\n })\n .strict();\nexport type DownloadFile = z.output<typeof downloadFileSchema>;\n\nexport const listDownloadsQuerySchema = 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: downloadStatusSchema.optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type ListDownloadsQuery = z.infer<typeof listDownloadsQuerySchema>;\n\nexport const createDownloadInputSchema = z\n .object({\n title: z.string(),\n description: z.string().optional(),\n category: z.string().optional(),\n })\n .strict();\nexport type CreateDownloadInput = z.infer<typeof createDownloadInputSchema>;\n\nexport const updateDownloadInputSchema = z\n .object({\n title: z.string().optional(),\n description: z.string().optional(),\n category: z.string().optional(),\n status: downloadStatusSchema.optional(),\n thumbnailAssetId: idSchema.nullable().optional(),\n })\n .strict();\nexport type UpdateDownloadInput = z.infer<typeof updateDownloadInputSchema>;\n\nexport const addDownloadAssetInputSchema = z\n .object({\n assetId: idSchema,\n displayName: z.string().optional(),\n })\n .strict();\nexport type AddDownloadAssetInput = z.infer<typeof addDownloadAssetInputSchema>;\n\nexport const reorderDownloadAssetsInputSchema = z\n .object({\n assetIds: z.array(idSchema).max(500),\n })\n .strict();\nexport type ReorderDownloadAssetsInput = z.infer<typeof reorderDownloadAssetsInputSchema>;\n\nexport const communityStatusSchema = z.enum(['draft', 'published']);\nexport type CommunityStatus = z.infer<typeof communityStatusSchema>;\n\nexport const dmSettingsSchema = z\n .object({\n enabled: z.boolean(),\n memberToMember: z.boolean(),\n memberToStaff: z.boolean(),\n staffToAnyone: z.boolean(),\n firstMessageIsRequest: z.boolean(),\n groupChats: z.boolean(),\n groupSize: z.number().int().min(1),\n })\n .strict();\nexport type DmSettings = z.infer<typeof dmSettingsSchema>;\n\nexport const dmSettingsDefaults: DmSettings = {\n enabled: true,\n memberToMember: true,\n memberToStaff: true,\n staffToAnyone: true,\n firstMessageIsRequest: true,\n groupChats: true,\n groupSize: 8,\n};\n\nexport const communitySettingsSchema = z\n .object({\n dm: dmSettingsSchema,\n })\n .strict();\nexport type CommunitySettings = z.infer<typeof communitySettingsSchema>;\n\nexport const communitySettingsDefaults: CommunitySettings = { dm: dmSettingsDefaults };\n\nexport const communitySchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: z.literal('community'),\n title: z.string(),\n slug: z.string(),\n description: z.string(),\n status: communityStatusSchema,\n thumbnailAssetId: idSchema.nullable(),\n settings: communitySettingsSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Community = z.output<typeof communitySchema>;\n\nexport const communityViewSchema = communitySchema\n .extend({ thumbnailUrl: z.string().nullable() })\n .strict();\nexport type CommunityView = z.output<typeof communityViewSchema>;\n\nexport const spaceAccessRuleSchema = z.enum(['all_members', 'by_request', 'by_invite']);\nexport type SpaceAccessRule = z.infer<typeof spaceAccessRuleSchema>;\n\nexport const spaceSettingsSchema = z\n .object({\n comments: z.boolean(),\n reactions: z.boolean(),\n requireReview: z.boolean(),\n })\n .strict();\nexport type SpaceSettings = z.infer<typeof spaceSettingsSchema>;\n\nexport const spaceSettingsDefaults: SpaceSettings = {\n comments: true,\n reactions: true,\n requireReview: false,\n};\n\nexport const spaceSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n communityId: idSchema,\n name: z.string(),\n description: z.string(),\n seq: z.number().int(),\n accessRule: spaceAccessRuleSchema,\n capacity: z.number().int().nullable(),\n settings: spaceSettingsSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Space = z.output<typeof spaceSchema>;\n\nexport const spaceTopicSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n spaceId: idSchema,\n name: z.string(),\n seq: z.number().int(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type SpaceTopic = z.output<typeof spaceTopicSchema>;\n\nexport const spaceLinkSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n spaceId: idSchema,\n contentId: idSchema,\n seq: z.number().int(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type SpaceLink = z.output<typeof spaceLinkSchema>;\n\nexport const spaceDetailSchema = spaceSchema.extend({\n topics: z.array(spaceTopicSchema),\n links: z.array(spaceLinkSchema),\n});\nexport type SpaceDetail = z.output<typeof spaceDetailSchema>;\n\nexport const listCommunitiesQuerySchema = 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: communityStatusSchema.optional(),\n })\n .strict();\nexport type ListCommunitiesQuery = z.infer<typeof listCommunitiesQuerySchema>;\n\nexport const createCommunityInputSchema = z\n .object({\n title: z.string().trim().min(1).max(200),\n description: z.string().trim().max(5_000).optional(),\n })\n .strict();\nexport type CreateCommunityInput = z.infer<typeof createCommunityInputSchema>;\n\nexport const updateCommunityInputSchema = z\n .object({\n title: z.string().trim().min(1).max(200).optional(),\n description: z.string().trim().max(5_000).optional(),\n status: communityStatusSchema.optional(),\n thumbnailAssetId: idSchema.nullable().optional(),\n })\n .strict();\nexport type UpdateCommunityInput = z.infer<typeof updateCommunityInputSchema>;\n\nexport const patchDmSettingsInputSchema = dmSettingsSchema\n .extend({\n groupSize: z\n .number()\n .int()\n .min(3)\n .max(100)\n .describe('The most people a group chat may hold, its creator included'),\n })\n .partial();\nexport type PatchDmSettingsInput = z.infer<typeof patchDmSettingsInputSchema>;\n\nexport const createSpaceInputSchema = z\n .object({\n name: z.string().trim().min(1).max(120),\n description: z.string().trim().max(2_000).optional(),\n accessRule: spaceAccessRuleSchema.optional(),\n capacity: z.number().int().min(0).nullable().optional(),\n settings: spaceSettingsSchema.partial().optional(),\n })\n .strict();\nexport type CreateSpaceInput = z.infer<typeof createSpaceInputSchema>;\n\nexport const updateSpaceInputSchema = z\n .object({\n name: z.string().trim().min(1).max(120).optional(),\n description: z.string().trim().max(2_000).optional(),\n accessRule: spaceAccessRuleSchema.optional(),\n capacity: z.number().int().min(0).nullable().optional(),\n settings: spaceSettingsSchema.partial().optional(),\n })\n .strict();\nexport type UpdateSpaceInput = z.infer<typeof updateSpaceInputSchema>;\n\nexport const setSpaceTopicsInputSchema = z\n .object({\n topics: z\n .array(\n z\n .object({\n id: idSchema.optional().describe('Keep an existing topic; omit to add a new one'),\n name: z.string().trim().min(1).max(60),\n })\n .strict(),\n )\n .max(50)\n .describe('The complete list, in order. A topic left out is deleted'),\n })\n .strict();\nexport type SetSpaceTopicsInput = z.infer<typeof setSpaceTopicsInputSchema>;\n\nexport const addSpaceLinkInputSchema = z\n .object({\n contentId: idSchema,\n })\n .strict();\nexport type AddSpaceLinkInput = z.infer<typeof addSpaceLinkInputSchema>;\n"],"mappings":";;;;;AAKA,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAU;CAAY;AAAW,CAAC;AAG3E,MAAa,qBAAqB,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC;AAG/D,MAAa,uBAAuB,EACjC,OAAO;CACN,qBAAqB,EAAE,QAAQ;CAC/B,UAAU,sBAAsB,SAAS;AAC3C,CAAC,CAAC,CACD,OAAO;;AAIV,MAAa,yBAAyC,EAAE,qBAAqB,MAAM;AAEnF,MAAa,yBAAyB,EACnC,OAAO,EACN,UAAU,2BAA2B,SAAS,EAChD,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,eAAe,EACzB,OAAO;CACN,OAAO;CACP,IAAI;CACJ,MAAM,EAAE,OAAO;CACf,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAIV,MAAa,mBAAmB,EAC7B,OAAO;CACN,OAAO;CACP,UAAU;CACV,WAAW;CACX,WAAW,EAAE,OAAO,KAAK;CACzB,WAAW,EAAE,OAAO,KAAK;AAC3B,CAAC,CAAC,CACD,OAAO;AAIV,MAAa,yBAAyB,EACnC,OAAO;CACN,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;CAC5B,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;CAChC,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS;CAC5B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;AAC5B,CAAC,CAAC,CACD,OAAO;AAGV,MAAa,0BAA0B,EACpC,OAAO;CACN,MAAM,EAAE,OAAO;;CAEf,YAAY,EAAE,MAAM,QA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