@headless-lms/core 0.5.0 → 0.7.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 +18 -18
- package/dist/assets/file-urls.d.ts +3 -0
- package/dist/assets/file-urls.js +1 -0
- package/dist/assets/file-urls.js.map +1 -1
- package/dist/assets/index.js +1 -1
- package/dist/assets/ports.d.ts +1 -1
- package/dist/assets/service.d.ts +1 -1
- package/dist/assets/service.js +28 -23
- package/dist/assets/service.js.map +1 -1
- package/dist/automations/catalog.js +1 -1
- package/dist/automations/index.d.ts +4 -4
- package/dist/automations/notifications/delivery.d.ts +3 -3
- package/dist/automations/notifications/delivery.js +1 -1
- package/dist/automations/notifications/delivery.js.map +1 -1
- package/dist/automations/notifications/processor.js +2 -2
- package/dist/automations/notifications/service.js +1 -1
- package/dist/automations/ports.d.ts +2 -2
- package/dist/automations/service.d.ts +1 -8
- package/dist/automations/service.js +1 -9
- package/dist/automations/service.js.map +1 -1
- package/dist/content/events.d.ts +97 -61
- package/dist/content/index.d.ts +2 -2
- package/dist/content/model.d.ts +2 -2
- package/dist/content/notification-categories.js +1 -1
- package/dist/content/ports.d.ts +11 -11
- package/dist/content/service.d.ts +16 -12
- package/dist/content/service.js +62 -16
- package/dist/content/service.js.map +1 -1
- package/dist/discussion/chats.js +2 -2
- package/dist/discussion/events.d.ts +8 -8
- package/dist/discussion/posts.d.ts +1 -1
- package/dist/discussion/posts.js +3 -3
- package/dist/discussion/posts.js.map +1 -1
- package/dist/discussion/service.js +2 -2
- package/dist/discussion/subscriptions.js +1 -1
- package/dist/entitlements/events.d.ts +48 -48
- package/dist/entitlements/service.js +1 -1
- package/dist/identity/devices.js +1 -1
- package/dist/identity/events.d.ts +2 -2
- package/dist/identity/notification-settings.js +1 -1
- package/dist/identity/service.d.ts +1 -1
- package/dist/identity/service.js +3 -3
- package/dist/identity/service.js.map +1 -1
- package/dist/integrations/service.js +2 -2
- package/dist/organizations/effective-permissions.d.ts +3 -1
- package/dist/organizations/effective-permissions.js +8 -3
- package/dist/organizations/effective-permissions.js.map +1 -1
- package/dist/organizations/events.d.ts +29 -23
- package/dist/organizations/index.d.ts +2 -2
- package/dist/organizations/model.d.ts +2 -2
- package/dist/organizations/notification-categories.js +1 -1
- package/dist/organizations/ports.d.ts +6 -3
- package/dist/organizations/service.d.ts +1 -1
- package/dist/organizations/service.js +17 -7
- package/dist/organizations/service.js.map +1 -1
- package/dist/organizations/testing.js +1 -1
- package/dist/organizations/testing.js.map +1 -1
- package/dist/progress/service.js +2 -2
- package/dist/reporting/member/model.d.ts +3 -0
- package/dist/reporting/member/ports.d.ts +2 -1
- package/dist/reporting/member/service.d.ts +2 -1
- package/dist/reporting/member/service.js +17 -1
- package/dist/reporting/member/service.js.map +1 -1
- package/dist/shared/actor.d.ts +1 -0
- package/dist/types/automations.d.ts +5 -2
- package/dist/types/content.d.ts +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/organizations.d.ts +2 -2
- package/dist/types/schemas/content.d.ts +70 -8
- package/dist/types/schemas/content.js +19 -2
- package/dist/types/schemas/content.js.map +1 -1
- package/dist/types/schemas/discussion.d.ts +14 -14
- package/dist/types/schemas/entitlements.d.ts +8 -8
- package/dist/types/schemas/index.d.ts +3 -3
- package/dist/types/schemas/index.js +3 -3
- package/dist/types/schemas/notifications.d.ts +4 -4
- package/dist/types/schemas/organizations.d.ts +4 -1
- package/dist/types/schemas/organizations.js +3 -1
- package/dist/types/schemas/organizations.js.map +1 -1
- package/package.json +1 -1
|
@@ -255,9 +255,18 @@ const spaceSchema = z.object({
|
|
|
255
255
|
accessRule: spaceAccessRuleSchema,
|
|
256
256
|
capacity: z.number().int().nullable(),
|
|
257
257
|
settings: spaceSettingsSchema,
|
|
258
|
+
coverAssetId: idSchema.nullable(),
|
|
259
|
+
backgroundAssetId: idSchema.nullable(),
|
|
260
|
+
iconAssetId: idSchema.nullable(),
|
|
258
261
|
createdAt: z.coerce.date(),
|
|
259
262
|
updatedAt: z.coerce.date()
|
|
260
263
|
}).strict();
|
|
264
|
+
const SPACE_IMAGES = [
|
|
265
|
+
"cover",
|
|
266
|
+
"background",
|
|
267
|
+
"icon"
|
|
268
|
+
];
|
|
269
|
+
const spaceImageSchema = z.enum(SPACE_IMAGES);
|
|
261
270
|
const spaceTopicSchema = z.object({
|
|
262
271
|
orgId: idSchema,
|
|
263
272
|
id: idSchema,
|
|
@@ -280,6 +289,11 @@ const spaceDetailSchema = spaceSchema.extend({
|
|
|
280
289
|
topics: z.array(spaceTopicSchema),
|
|
281
290
|
links: z.array(spaceLinkSchema)
|
|
282
291
|
});
|
|
292
|
+
const spaceViewSchema = spaceDetailSchema.extend({
|
|
293
|
+
coverUrl: z.string().nullable(),
|
|
294
|
+
backgroundUrl: z.string().nullable(),
|
|
295
|
+
iconUrl: z.string().nullable()
|
|
296
|
+
}).strict();
|
|
283
297
|
const listCommunitiesQuerySchema = z.object({
|
|
284
298
|
page: z.number().int().min(1),
|
|
285
299
|
pageSize: z.number().int().min(1),
|
|
@@ -311,7 +325,10 @@ const updateSpaceInputSchema = z.object({
|
|
|
311
325
|
description: z.string().trim().max(2e3).optional(),
|
|
312
326
|
accessRule: spaceAccessRuleSchema.optional(),
|
|
313
327
|
capacity: z.number().int().min(0).nullable().optional(),
|
|
314
|
-
settings: spaceSettingsSchema.partial().optional()
|
|
328
|
+
settings: spaceSettingsSchema.partial().optional(),
|
|
329
|
+
coverAssetId: idSchema.nullable().optional(),
|
|
330
|
+
backgroundAssetId: idSchema.nullable().optional(),
|
|
331
|
+
iconAssetId: idSchema.nullable().optional()
|
|
315
332
|
}).strict();
|
|
316
333
|
const setSpaceTopicsInputSchema = z.object({ topics: z.array(z.object({
|
|
317
334
|
id: idSchema.optional().describe("Keep an existing topic; omit to add a new one"),
|
|
@@ -512,6 +529,6 @@ const eventAnalyticsSchema = z.object({
|
|
|
512
529
|
}).strict()).describe("Current direct grants by grant date (UTC), before the start")
|
|
513
530
|
}).strict();
|
|
514
531
|
//#endregion
|
|
515
|
-
export { activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema };
|
|
532
|
+
export { SPACE_IMAGES, activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceImageSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, spaceViewSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema };
|
|
516
533
|
|
|
517
534
|
//# 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 { 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', 'event']);\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 memberToTeam: z.boolean(),\n teamToAnyone: 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 memberToTeam: true,\n teamToAnyone: true,\n firstMessageIsRequest: true,\n groupChats: true,\n groupSize: 8,\n};\n\nfunction isTimeZone(value: string): boolean {\n try {\n new Intl.DateTimeFormat('en-US', { timeZone: value });\n return true;\n } catch {\n return false;\n }\n}\n\nexport const digestCadenceSchema = z.enum(['daily', 'weekly']);\nexport type DigestCadence = z.infer<typeof digestCadenceSchema>;\n\nexport const digestScheduleSchema = z\n .object({\n cadence: digestCadenceSchema,\n weekday: z\n .number()\n .int()\n .min(0)\n .max(6)\n .describe('The day a weekly digest goes out, 0 is Sunday; a daily digest ignores it'),\n hour: z.number().int().min(0).max(23).describe('The hour of the day it goes out, 0–23'),\n timeZone: z\n .string()\n .refine(isTimeZone, { message: 'must be an IANA time zone' })\n .describe('The IANA time zone the weekday and hour are in, such as `Europe/Madrid`'),\n })\n .strict();\nexport type DigestSchedule = z.infer<typeof digestScheduleSchema>;\n\nexport const communitySettingsSchema = z\n .object({\n dm: dmSettingsSchema,\n digest: digestScheduleSchema.nullable(),\n })\n .strict();\nexport type CommunitySettings = z.infer<typeof communitySettingsSchema>;\n\nexport const communitySettingsDefaults: CommunitySettings = {\n dm: dmSettingsDefaults,\n digest: null,\n};\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 patchCommunitySettingsInputSchema = patchDmSettingsInputSchema.extend({\n digest: digestScheduleSchema\n .nullable()\n .optional()\n .describe('When the community digest goes out; null stops it'),\n});\nexport type PatchCommunitySettingsInput = z.infer<typeof patchCommunitySettingsInputSchema>;\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\nexport const timeZoneSchema = z\n .string()\n .refine(isTimeZone, { message: 'must be an IANA time zone' })\n .describe('An IANA time zone, such as `Europe/London`');\n\nconst httpUrlSchema = z.url({ protocol: /^https?$/ });\n\nexport const eventStatusSchema = z.enum(['draft', 'published', 'canceled']);\nexport type EventStatus = z.infer<typeof eventStatusSchema>;\n\nexport const eventTypeSchema = z.enum(['public', 'private']);\nexport type EventType = z.infer<typeof eventTypeSchema>;\n\nconst addressLineSchema = z.string().max(200).nullable();\n\nexport const eventAddressSchema = z\n .object({\n line1: addressLineSchema,\n line2: addressLineSchema,\n city: addressLineSchema,\n region: addressLineSchema,\n postalCode: addressLineSchema,\n country: z\n .string()\n .regex(/^[A-Z]{2}$/, 'must be an ISO 3166-1 alpha-2 code')\n .nullable()\n .describe('An ISO 3166-1 alpha-2 code, such as `GB`'),\n })\n .strict();\nexport type EventAddress = z.infer<typeof eventAddressSchema>;\n\nexport const eventVenueSchema = z\n .object({\n name: z.string().trim().min(1).max(200),\n address: eventAddressSchema.nullable(),\n })\n .strict();\nexport type EventVenue = z.infer<typeof eventVenueSchema>;\n\nexport const eventOnlineSchema = z\n .object({\n url: httpUrlSchema.describe('The meeting link, `http` or `https`'),\n details: z.string().max(1_000).nullable().describe('Such as a passcode or a dial-in number'),\n })\n .strict();\nexport type EventOnline = z.infer<typeof eventOnlineSchema>;\n\nexport const eventLocationSchema = z\n .object({\n venue: eventVenueSchema.nullable().describe('Where the event takes place in person'),\n online: eventOnlineSchema.nullable().describe('How to join online'),\n })\n .strict();\nexport type EventLocation = z.infer<typeof eventLocationSchema>;\n\nexport const eventLocationDefaults: EventLocation = { venue: null, online: null };\n\nexport const eventRecordingSchema = z\n .object({\n url: httpUrlSchema.describe('Where the recording is, `http` or `https`'),\n details: z.string().max(1_000).nullable().describe('Such as a passcode'),\n })\n .strict();\nexport type EventRecording = z.infer<typeof eventRecordingSchema>;\n\nexport const eventSettingsSchema = z\n .object({\n type: eventTypeSchema.describe(\n '`public`: members register themselves. `private`: by grant only',\n ),\n capacity: z\n .number()\n .int()\n .min(1)\n .nullable()\n .describe('The most attendees the event takes; null means no limit'),\n notifications: z.boolean().describe('When false, no notifications are sent for the event'),\n replay: z.boolean().describe('When true, attendees get the recording after the end'),\n })\n .strict();\nexport type EventSettings = z.infer<typeof eventSettingsSchema>;\n\nexport const eventSettingsDefaults: EventSettings = {\n type: 'public',\n capacity: null,\n notifications: true,\n replay: true,\n};\n\nexport const eventSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: z.literal('event'),\n title: z.string(),\n description: z.string(),\n thumbnailAssetId: idSchema.nullable(),\n status: eventStatusSchema,\n startsAt: z.coerce.date(),\n endsAt: z.coerce.date(),\n timeZone: z.string(),\n location: eventLocationSchema,\n recording: eventRecordingSchema.nullable(),\n settings: eventSettingsSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Event = z.output<typeof eventSchema>;\n\nexport const eventViewSchema = eventSchema.extend({ thumbnailUrl: z.string().nullable() }).strict();\nexport type EventView = z.output<typeof eventViewSchema>;\n\nexport const eventAssetSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n eventId: 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 EventAsset = z.output<typeof eventAssetSchema>;\n\nexport const eventFileSchema = eventAssetSchema\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 EventFile = z.output<typeof eventFileSchema>;\n\nexport const eventSortSchema = z.enum(['startsAt', '-startsAt', 'title', '-title']);\nexport type EventSort = z.infer<typeof eventSortSchema>;\n\nexport const listEventsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n search: z.string().optional(),\n sort: eventSortSchema.optional(),\n status: eventStatusSchema.optional(),\n from: z.coerce.date().optional(),\n to: z.coerce.date().optional(),\n })\n .strict();\nexport type ListEventsQuery = z.infer<typeof listEventsQuerySchema>;\n\nexport const createEventInputSchema = z\n .object({\n title: z.string().trim().min(1).max(120),\n description: z.string().max(5_000).optional(),\n startsAt: z.coerce.date(),\n endsAt: z.coerce.date(),\n timeZone: timeZoneSchema,\n location: eventLocationSchema.optional(),\n settings: eventSettingsSchema.partial().optional(),\n })\n .strict();\nexport type CreateEventInput = z.infer<typeof createEventInputSchema>;\n\nexport const updateEventInputSchema = z\n .object({\n title: z.string().trim().min(1).max(120).optional(),\n description: z.string().max(5_000).optional(),\n startsAt: z.coerce.date().optional(),\n endsAt: z.coerce.date().optional(),\n timeZone: timeZoneSchema.optional(),\n location: eventLocationSchema.optional(),\n thumbnailAssetId: idSchema.nullable().optional(),\n recording: eventRecordingSchema.nullable().optional(),\n status: eventStatusSchema.extract(['draft', 'published']).optional(),\n settings: eventSettingsSchema.partial().optional(),\n })\n .strict();\nexport type UpdateEventInput = z.infer<typeof updateEventInputSchema>;\n\nexport const addEventAssetInputSchema = z\n .object({\n assetId: idSchema,\n displayName: z.string().optional(),\n })\n .strict();\nexport type AddEventAssetInput = z.infer<typeof addEventAssetInputSchema>;\n\nexport const reorderEventAssetsInputSchema = z\n .object({\n assetIds: z.array(idSchema).max(500),\n })\n .strict();\nexport type ReorderEventAssetsInput = z.infer<typeof reorderEventAssetsInputSchema>;\n\nexport const eventLeadSchema = z.enum(['1d', '1h']);\nexport type EventLead = z.infer<typeof eventLeadSchema>;\n\nexport const eventAttendeeSourceSchema = z.enum(['self', 'manual', 'automation', 'bundle']);\nexport type EventAttendeeSource = z.infer<typeof eventAttendeeSourceSchema>;\n\nexport const eventAttendeeSchema = z\n .object({\n orgUserId: idSchema,\n name: z.string(),\n avatarUrl: z.string().nullable(),\n source: eventAttendeeSourceSchema.describe(\n '`self`: registered themselves. `manual`: added by staff or an API client. `bundle`: attends only through a bundle',\n ),\n grantedAt: z.coerce.date(),\n })\n .strict();\nexport type EventAttendee = z.output<typeof eventAttendeeSchema>;\n\nexport const eventAttendeeFaceSchema = eventAttendeeSchema.pick({\n orgUserId: true,\n name: true,\n avatarUrl: true,\n});\nexport type EventAttendeeFace = z.output<typeof eventAttendeeFaceSchema>;\n\nexport const memberEventViewerSchema = z\n .object({\n attending: z.boolean().describe('The caller attends, directly or through a bundle'),\n canRegister: z.boolean().describe('The caller may register now'),\n canOpen: z.boolean().describe('The caller gets the location, files and recording'),\n canLeave: z\n .boolean()\n .describe('The caller holds a direct grant they may give up; false through a bundle only'),\n canManageAttendees: z.boolean().describe('The caller may add and remove attendees'),\n canAddAttendees: z\n .boolean()\n .describe('The caller may add attendees now: they manage attendees and the event is open'),\n canEdit: z.boolean(),\n canCancel: z.boolean(),\n canDelete: z.boolean(),\n })\n .strict();\nexport type MemberEventViewer = z.output<typeof memberEventViewerSchema>;\n\nexport const memberEventSchema = eventViewSchema\n .omit({ createdAt: true, updatedAt: true, location: true, settings: true })\n .extend({\n location: eventLocationSchema\n .nullable()\n .describe('Null when the caller sees the event only because it is published and public'),\n settings: eventSettingsSchema.omit({ notifications: true }),\n files: z.array(eventFileSchema).describe('Empty when the caller cannot open the event'),\n attendeeCount: z.number().int().min(0),\n attendees: z.array(eventAttendeeFaceSchema).describe('Up to 10 attendees, for the avatars'),\n placesLeft: z\n .number()\n .int()\n .min(0)\n .nullable()\n .describe('Capacity less the attendees; null with no capacity'),\n viewer: memberEventViewerSchema,\n })\n .strict();\nexport type MemberEvent = z.output<typeof memberEventSchema>;\n\nexport const memberEventSummarySchema = memberEventSchema\n .omit({ description: true, files: true })\n .describe('An event as listed: the event read without its description and files');\nexport type MemberEventSummary = z.output<typeof memberEventSummarySchema>;\n\nexport const memberEventsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n when: z.enum(['upcoming', 'past']).optional(),\n attending: z.boolean().optional(),\n })\n .strict();\nexport type MemberEventsQuery = z.infer<typeof memberEventsQuerySchema>;\n\nexport const eventAnalyticsSchema = z\n .object({\n attendees: z.number().int().min(0).describe('Attending now, directly or through a bundle'),\n capacity: z.number().int().nullable(),\n bySource: z\n .object({\n self: z.number().int().min(0),\n manual: z.number().int().min(0),\n automation: z.number().int().min(0),\n bundle: z.number().int().min(0),\n })\n .strict()\n .describe('Attendees per source'),\n revoked: z.number().int().min(0).describe('Direct grants that are now revoked'),\n grantsOverTime: z\n .array(z.object({ date: z.string(), count: z.number().int().min(0) }).strict())\n .describe('Current direct grants by grant date (UTC), before the start'),\n })\n .strict();\nexport type EventAnalytics = z.output<typeof eventAnalyticsSchema>;\n"],"mappings":";;;;;AAKA,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAU;CAAY;CAAa;AAAO,CAAC;AAGpF,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,C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C,CAAC,SAAS;CACpC,UAAU,EACP,OAAO;EACN,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;EAC5B,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;EAC9B,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;EAClC,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;CAChC,CAAC,CAAC,CACD,OAAO,CAAC,CACR,SAAS,sBAAsB;CAClC,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,oCAAoC;CAC9E,gBAAgB,EACb,MAAM,EAAE,OAAO;EAAE,MAAM,EAAE,OAAO;EAAG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;CAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAC9E,SAAS,6DAA6D;AAC3E,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', 'event']);\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 memberToTeam: z.boolean(),\n teamToAnyone: 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 memberToTeam: true,\n teamToAnyone: true,\n firstMessageIsRequest: true,\n groupChats: true,\n groupSize: 8,\n};\n\nfunction isTimeZone(value: string): boolean {\n try {\n new Intl.DateTimeFormat('en-US', { timeZone: value });\n return true;\n } catch {\n return false;\n }\n}\n\nexport const digestCadenceSchema = z.enum(['daily', 'weekly']);\nexport type DigestCadence = z.infer<typeof digestCadenceSchema>;\n\nexport const digestScheduleSchema = z\n .object({\n cadence: digestCadenceSchema,\n weekday: z\n .number()\n .int()\n .min(0)\n .max(6)\n .describe('The day a weekly digest goes out, 0 is Sunday; a daily digest ignores it'),\n hour: z.number().int().min(0).max(23).describe('The hour of the day it goes out, 0–23'),\n timeZone: z\n .string()\n .refine(isTimeZone, { message: 'must be an IANA time zone' })\n .describe('The IANA time zone the weekday and hour are in, such as `Europe/Madrid`'),\n })\n .strict();\nexport type DigestSchedule = z.infer<typeof digestScheduleSchema>;\n\nexport const communitySettingsSchema = z\n .object({\n dm: dmSettingsSchema,\n digest: digestScheduleSchema.nullable(),\n })\n .strict();\nexport type CommunitySettings = z.infer<typeof communitySettingsSchema>;\n\nexport const communitySettingsDefaults: CommunitySettings = {\n dm: dmSettingsDefaults,\n digest: null,\n};\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 coverAssetId: idSchema.nullable(),\n backgroundAssetId: idSchema.nullable(),\n iconAssetId: idSchema.nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Space = z.output<typeof spaceSchema>;\n\nexport const SPACE_IMAGES = ['cover', 'background', 'icon'] as const;\nexport const spaceImageSchema = z.enum(SPACE_IMAGES);\nexport type SpaceImage = z.infer<typeof spaceImageSchema>;\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 spaceViewSchema = spaceDetailSchema\n .extend({\n coverUrl: z.string().nullable(),\n backgroundUrl: z.string().nullable(),\n iconUrl: z.string().nullable(),\n })\n .strict();\nexport type SpaceView = z.output<typeof spaceViewSchema>;\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 patchCommunitySettingsInputSchema = patchDmSettingsInputSchema.extend({\n digest: digestScheduleSchema\n .nullable()\n .optional()\n .describe('When the community digest goes out; null stops it'),\n});\nexport type PatchCommunitySettingsInput = z.infer<typeof patchCommunitySettingsInputSchema>;\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 coverAssetId: idSchema.nullable().optional(),\n backgroundAssetId: idSchema.nullable().optional(),\n iconAssetId: idSchema.nullable().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\nexport const timeZoneSchema = z\n .string()\n .refine(isTimeZone, { message: 'must be an IANA time zone' })\n .describe('An IANA time zone, such as `Europe/London`');\n\nconst httpUrlSchema = z.url({ protocol: /^https?$/ });\n\nexport const eventStatusSchema = z.enum(['draft', 'published', 'canceled']);\nexport type EventStatus = z.infer<typeof eventStatusSchema>;\n\nexport const eventTypeSchema = z.enum(['public', 'private']);\nexport type EventType = z.infer<typeof eventTypeSchema>;\n\nconst addressLineSchema = z.string().max(200).nullable();\n\nexport const eventAddressSchema = z\n .object({\n line1: addressLineSchema,\n line2: addressLineSchema,\n city: addressLineSchema,\n region: addressLineSchema,\n postalCode: addressLineSchema,\n country: z\n .string()\n .regex(/^[A-Z]{2}$/, 'must be an ISO 3166-1 alpha-2 code')\n .nullable()\n .describe('An ISO 3166-1 alpha-2 code, such as `GB`'),\n })\n .strict();\nexport type EventAddress = z.infer<typeof eventAddressSchema>;\n\nexport const eventVenueSchema = z\n .object({\n name: z.string().trim().min(1).max(200),\n address: eventAddressSchema.nullable(),\n })\n .strict();\nexport type EventVenue = z.infer<typeof eventVenueSchema>;\n\nexport const eventOnlineSchema = z\n .object({\n url: httpUrlSchema.describe('The meeting link, `http` or `https`'),\n details: z.string().max(1_000).nullable().describe('Such as a passcode or a dial-in number'),\n })\n .strict();\nexport type EventOnline = z.infer<typeof eventOnlineSchema>;\n\nexport const eventLocationSchema = z\n .object({\n venue: eventVenueSchema.nullable().describe('Where the event takes place in person'),\n online: eventOnlineSchema.nullable().describe('How to join online'),\n })\n .strict();\nexport type EventLocation = z.infer<typeof eventLocationSchema>;\n\nexport const eventLocationDefaults: EventLocation = { venue: null, online: null };\n\nexport const eventRecordingSchema = z\n .object({\n url: httpUrlSchema.describe('Where the recording is, `http` or `https`'),\n details: z.string().max(1_000).nullable().describe('Such as a passcode'),\n })\n .strict();\nexport type EventRecording = z.infer<typeof eventRecordingSchema>;\n\nexport const eventSettingsSchema = z\n .object({\n type: eventTypeSchema.describe(\n '`public`: members register themselves. `private`: by grant only',\n ),\n capacity: z\n .number()\n .int()\n .min(1)\n .nullable()\n .describe('The most attendees the event takes; null means no limit'),\n notifications: z.boolean().describe('When false, no notifications are sent for the event'),\n replay: z.boolean().describe('When true, attendees get the recording after the end'),\n })\n .strict();\nexport type EventSettings = z.infer<typeof eventSettingsSchema>;\n\nexport const eventSettingsDefaults: EventSettings = {\n type: 'public',\n capacity: null,\n notifications: true,\n replay: true,\n};\n\nexport const eventSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n type: z.literal('event'),\n title: z.string(),\n description: z.string(),\n thumbnailAssetId: idSchema.nullable(),\n status: eventStatusSchema,\n startsAt: z.coerce.date(),\n endsAt: z.coerce.date(),\n timeZone: z.string(),\n location: eventLocationSchema,\n recording: eventRecordingSchema.nullable(),\n settings: eventSettingsSchema,\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n })\n .strict();\nexport type Event = z.output<typeof eventSchema>;\n\nexport const eventViewSchema = eventSchema.extend({ thumbnailUrl: z.string().nullable() }).strict();\nexport type EventView = z.output<typeof eventViewSchema>;\n\nexport const eventAssetSchema = z\n .object({\n orgId: idSchema,\n id: idSchema,\n eventId: 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 EventAsset = z.output<typeof eventAssetSchema>;\n\nexport const eventFileSchema = eventAssetSchema\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 EventFile = z.output<typeof eventFileSchema>;\n\nexport const eventSortSchema = z.enum(['startsAt', '-startsAt', 'title', '-title']);\nexport type EventSort = z.infer<typeof eventSortSchema>;\n\nexport const listEventsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n search: z.string().optional(),\n sort: eventSortSchema.optional(),\n status: eventStatusSchema.optional(),\n from: z.coerce.date().optional(),\n to: z.coerce.date().optional(),\n })\n .strict();\nexport type ListEventsQuery = z.infer<typeof listEventsQuerySchema>;\n\nexport const createEventInputSchema = z\n .object({\n title: z.string().trim().min(1).max(120),\n description: z.string().max(5_000).optional(),\n startsAt: z.coerce.date(),\n endsAt: z.coerce.date(),\n timeZone: timeZoneSchema,\n location: eventLocationSchema.optional(),\n settings: eventSettingsSchema.partial().optional(),\n })\n .strict();\nexport type CreateEventInput = z.infer<typeof createEventInputSchema>;\n\nexport const updateEventInputSchema = z\n .object({\n title: z.string().trim().min(1).max(120).optional(),\n description: z.string().max(5_000).optional(),\n startsAt: z.coerce.date().optional(),\n endsAt: z.coerce.date().optional(),\n timeZone: timeZoneSchema.optional(),\n location: eventLocationSchema.optional(),\n thumbnailAssetId: idSchema.nullable().optional(),\n recording: eventRecordingSchema.nullable().optional(),\n status: eventStatusSchema.extract(['draft', 'published']).optional(),\n settings: eventSettingsSchema.partial().optional(),\n })\n .strict();\nexport type UpdateEventInput = z.infer<typeof updateEventInputSchema>;\n\nexport const addEventAssetInputSchema = z\n .object({\n assetId: idSchema,\n displayName: z.string().optional(),\n })\n .strict();\nexport type AddEventAssetInput = z.infer<typeof addEventAssetInputSchema>;\n\nexport const reorderEventAssetsInputSchema = z\n .object({\n assetIds: z.array(idSchema).max(500),\n })\n .strict();\nexport type ReorderEventAssetsInput = z.infer<typeof reorderEventAssetsInputSchema>;\n\nexport const eventLeadSchema = z.enum(['1d', '1h']);\nexport type EventLead = z.infer<typeof eventLeadSchema>;\n\nexport const eventAttendeeSourceSchema = z.enum(['self', 'manual', 'automation', 'bundle']);\nexport type EventAttendeeSource = z.infer<typeof eventAttendeeSourceSchema>;\n\nexport const eventAttendeeSchema = z\n .object({\n orgUserId: idSchema,\n name: z.string(),\n avatarUrl: z.string().nullable(),\n source: eventAttendeeSourceSchema.describe(\n '`self`: registered themselves. `manual`: added by staff or an API client. `bundle`: attends only through a bundle',\n ),\n grantedAt: z.coerce.date(),\n })\n .strict();\nexport type EventAttendee = z.output<typeof eventAttendeeSchema>;\n\nexport const eventAttendeeFaceSchema = eventAttendeeSchema.pick({\n orgUserId: true,\n name: true,\n avatarUrl: true,\n});\nexport type EventAttendeeFace = z.output<typeof eventAttendeeFaceSchema>;\n\nexport const memberEventViewerSchema = z\n .object({\n attending: z.boolean().describe('The caller attends, directly or through a bundle'),\n canRegister: z.boolean().describe('The caller may register now'),\n canOpen: z.boolean().describe('The caller gets the location, files and recording'),\n canLeave: z\n .boolean()\n .describe('The caller holds a direct grant they may give up; false through a bundle only'),\n canManageAttendees: z.boolean().describe('The caller may add and remove attendees'),\n canAddAttendees: z\n .boolean()\n .describe('The caller may add attendees now: they manage attendees and the event is open'),\n canEdit: z.boolean(),\n canCancel: z.boolean(),\n canDelete: z.boolean(),\n })\n .strict();\nexport type MemberEventViewer = z.output<typeof memberEventViewerSchema>;\n\nexport const memberEventSchema = eventViewSchema\n .omit({ createdAt: true, updatedAt: true, location: true, settings: true })\n .extend({\n location: eventLocationSchema\n .nullable()\n .describe('Null when the caller sees the event only because it is published and public'),\n settings: eventSettingsSchema.omit({ notifications: true }),\n files: z.array(eventFileSchema).describe('Empty when the caller cannot open the event'),\n attendeeCount: z.number().int().min(0),\n attendees: z.array(eventAttendeeFaceSchema).describe('Up to 10 attendees, for the avatars'),\n placesLeft: z\n .number()\n .int()\n .min(0)\n .nullable()\n .describe('Capacity less the attendees; null with no capacity'),\n viewer: memberEventViewerSchema,\n })\n .strict();\nexport type MemberEvent = z.output<typeof memberEventSchema>;\n\nexport const memberEventSummarySchema = memberEventSchema\n .omit({ description: true, files: true })\n .describe('An event as listed: the event read without its description and files');\nexport type MemberEventSummary = z.output<typeof memberEventSummarySchema>;\n\nexport const memberEventsQuerySchema = z\n .object({\n page: z.number().int().min(1),\n pageSize: z.number().int().min(1),\n when: z.enum(['upcoming', 'past']).optional(),\n attending: z.boolean().optional(),\n })\n .strict();\nexport type MemberEventsQuery = z.infer<typeof memberEventsQuerySchema>;\n\nexport const eventAnalyticsSchema = z\n .object({\n attendees: z.number().int().min(0).describe('Attending now, directly or through a bundle'),\n capacity: z.number().int().nullable(),\n bySource: z\n .object({\n self: z.number().int().min(0),\n manual: z.number().int().min(0),\n automation: z.number().int().min(0),\n bundle: z.number().int().min(0),\n })\n .strict()\n .describe('Attendees per source'),\n revoked: z.number().int().min(0).describe('Direct grants that are now revoked'),\n grantsOverTime: z\n .array(z.object({ date: z.string(), count: z.number().int().min(0) }).strict())\n .describe('Current direct grants by grant date (UTC), before the start'),\n })\n .strict();\nexport type EventAnalytics = z.output<typeof eventAnalyticsSchema>;\n"],"mappings":";;;;;AAKA,MAAa,oBAAoB,EAAE,KAAK;CAAC;CAAU;CAAY;CAAa;AAAO,CAAC;AAGpF,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,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z.ZodObject<{
|
|
|
238
238
|
}, z.core.$strict>;
|
|
239
239
|
type ListCommentsQuery = z.infer<typeof listCommentsQuerySchema>;
|
|
240
240
|
declare const subscriptionItemTypeSchema: z.ZodEnum<{
|
|
241
|
+
post: "post";
|
|
241
242
|
space: "space";
|
|
242
243
|
chat: "chat";
|
|
243
|
-
post: "post";
|
|
244
244
|
}>;
|
|
245
245
|
type SubscriptionItemType = z.infer<typeof subscriptionItemTypeSchema>;
|
|
246
246
|
declare const subscriptionStateSchema: z.ZodEnum<{
|
|
@@ -252,9 +252,9 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
252
252
|
orgId: z.ZodString;
|
|
253
253
|
orgUserId: z.ZodString;
|
|
254
254
|
itemType: z.ZodEnum<{
|
|
255
|
+
post: "post";
|
|
255
256
|
space: "space";
|
|
256
257
|
chat: "chat";
|
|
257
|
-
post: "post";
|
|
258
258
|
}>;
|
|
259
259
|
itemId: z.ZodString;
|
|
260
260
|
state: z.ZodEnum<{
|
|
@@ -601,15 +601,15 @@ declare const liveMessageSchema: z.ZodObject<{
|
|
|
601
601
|
communityId: z.ZodString;
|
|
602
602
|
orgUserId: z.ZodString;
|
|
603
603
|
body: z.ZodString;
|
|
604
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
605
|
+
orgUserId: z.ZodString;
|
|
606
|
+
name: z.ZodString;
|
|
607
|
+
}, z.core.$strict>>;
|
|
604
608
|
chatId: z.ZodString;
|
|
605
609
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
606
610
|
clientId: z.ZodNullable<z.ZodUUID>;
|
|
607
611
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
608
612
|
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
613
|
sender: z.ZodObject<{
|
|
614
614
|
id: z.ZodString;
|
|
615
615
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -715,15 +715,15 @@ declare const chatLiveEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
715
715
|
communityId: z.ZodString;
|
|
716
716
|
orgUserId: z.ZodString;
|
|
717
717
|
body: z.ZodString;
|
|
718
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
719
|
+
orgUserId: z.ZodString;
|
|
720
|
+
name: z.ZodString;
|
|
721
|
+
}, z.core.$strict>>;
|
|
718
722
|
chatId: z.ZodString;
|
|
719
723
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
720
724
|
clientId: z.ZodNullable<z.ZodUUID>;
|
|
721
725
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
722
726
|
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
727
|
sender: z.ZodObject<{
|
|
728
728
|
id: z.ZodString;
|
|
729
729
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -753,15 +753,15 @@ declare const chatLiveEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
753
753
|
communityId: z.ZodString;
|
|
754
754
|
orgUserId: z.ZodString;
|
|
755
755
|
body: z.ZodString;
|
|
756
|
+
mentions: z.ZodArray<z.ZodObject<{
|
|
757
|
+
orgUserId: z.ZodString;
|
|
758
|
+
name: z.ZodString;
|
|
759
|
+
}, z.core.$strict>>;
|
|
756
760
|
chatId: z.ZodString;
|
|
757
761
|
replyToId: z.ZodNullable<z.ZodString>;
|
|
758
762
|
clientId: z.ZodNullable<z.ZodUUID>;
|
|
759
763
|
editedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
760
764
|
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
765
|
sender: z.ZodObject<{
|
|
766
766
|
id: z.ZodString;
|
|
767
767
|
firstName: z.ZodNullable<z.ZodString>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/types/schemas/entitlements.d.ts
|
|
3
3
|
declare const entitlementStatusSchema: z.ZodEnum<{
|
|
4
|
-
active: "active";
|
|
5
4
|
revoked: "revoked";
|
|
5
|
+
active: "active";
|
|
6
6
|
}>;
|
|
7
7
|
type EntitlementStatus = z.infer<typeof entitlementStatusSchema>;
|
|
8
8
|
declare const entitlementSchema: z.ZodObject<{
|
|
@@ -12,8 +12,8 @@ declare const entitlementSchema: z.ZodObject<{
|
|
|
12
12
|
bundleId: z.ZodNullable<z.ZodString>;
|
|
13
13
|
contentId: z.ZodNullable<z.ZodString>;
|
|
14
14
|
status: z.ZodEnum<{
|
|
15
|
-
active: "active";
|
|
16
15
|
revoked: "revoked";
|
|
16
|
+
active: "active";
|
|
17
17
|
}>;
|
|
18
18
|
source: z.ZodString;
|
|
19
19
|
grantedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -29,8 +29,8 @@ declare const entitlementsQuerySchema: z.ZodObject<{
|
|
|
29
29
|
search: z.ZodOptional<z.ZodString>;
|
|
30
30
|
sort: z.ZodOptional<z.ZodString>;
|
|
31
31
|
status: z.ZodOptional<z.ZodEnum<{
|
|
32
|
-
active: "active";
|
|
33
32
|
revoked: "revoked";
|
|
33
|
+
active: "active";
|
|
34
34
|
expired: "expired";
|
|
35
35
|
}>>;
|
|
36
36
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -59,22 +59,22 @@ declare const grantEntitlementInputSchema: z.ZodObject<{
|
|
|
59
59
|
}, z.core.$strict>;
|
|
60
60
|
type GrantEntitlementInput = z.output<typeof grantEntitlementInputSchema>;
|
|
61
61
|
declare const grantSourceSchema: z.ZodEnum<{
|
|
62
|
-
manual: "manual";
|
|
63
62
|
self: "self";
|
|
63
|
+
manual: "manual";
|
|
64
64
|
automation: "automation";
|
|
65
65
|
}>;
|
|
66
66
|
type GrantSource = z.infer<typeof grantSourceSchema>;
|
|
67
67
|
declare const spaceMemberStatusSchema: z.ZodEnum<{
|
|
68
|
-
active: "active";
|
|
69
68
|
revoked: "revoked";
|
|
69
|
+
active: "active";
|
|
70
70
|
requested: "requested";
|
|
71
71
|
invited: "invited";
|
|
72
72
|
}>;
|
|
73
73
|
type SpaceMemberStatus = z.infer<typeof spaceMemberStatusSchema>;
|
|
74
74
|
declare const spaceMemberSourceSchema: z.ZodEnum<{
|
|
75
|
+
manual: "manual";
|
|
75
76
|
request: "request";
|
|
76
77
|
invite: "invite";
|
|
77
|
-
manual: "manual";
|
|
78
78
|
}>;
|
|
79
79
|
type SpaceMemberSource = z.infer<typeof spaceMemberSourceSchema>;
|
|
80
80
|
declare const spaceMemberSchema: z.ZodObject<{
|
|
@@ -84,15 +84,15 @@ declare const spaceMemberSchema: z.ZodObject<{
|
|
|
84
84
|
spaceId: z.ZodString;
|
|
85
85
|
orgUserId: z.ZodString;
|
|
86
86
|
status: z.ZodEnum<{
|
|
87
|
-
active: "active";
|
|
88
87
|
revoked: "revoked";
|
|
88
|
+
active: "active";
|
|
89
89
|
requested: "requested";
|
|
90
90
|
invited: "invited";
|
|
91
91
|
}>;
|
|
92
92
|
source: z.ZodEnum<{
|
|
93
|
+
manual: "manual";
|
|
93
94
|
request: "request";
|
|
94
95
|
invite: "invite";
|
|
95
|
-
manual: "manual";
|
|
96
96
|
}>;
|
|
97
97
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
98
98
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Activity, ActivityAsset, ActivityAssetInput, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddEventAssetInput, AddSpaceLinkInput, Bundle, BundleInput, BundleItem, BundleItemInput, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DigestCadence, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, Event, EventAddress, EventAnalytics, EventAsset, EventAttendee, EventAttendeeFace, EventAttendeeSource, EventFile, EventLead, EventLocation, EventOnline, EventRecording, EventSettings, EventSort, EventStatus, EventType, EventVenue, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, MemberEvent, MemberEventSummary, MemberEventViewer, MemberEventsQuery, Module, ModuleInput, PatchCommunitySettingsInput, PatchDmSettingsInput, ReorderDownloadAssetsInput, ReorderEventAssetsInput, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceSettings, SpaceTopic, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput, activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema } from "./content.js";
|
|
1
|
+
import { Activity, ActivityAsset, ActivityAssetInput, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddEventAssetInput, AddSpaceLinkInput, Bundle, BundleInput, BundleItem, BundleItemInput, Community, CommunitySettings, CommunityStatus, CommunityView, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateSpaceInput, DigestCadence, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, Event, EventAddress, EventAnalytics, EventAsset, EventAttendee, EventAttendeeFace, EventAttendeeSource, EventFile, EventLead, EventLocation, EventOnline, EventRecording, EventSettings, EventSort, EventStatus, EventType, EventVenue, EventView, ListBundlesQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, MemberEvent, MemberEventSummary, MemberEventViewer, MemberEventsQuery, Module, ModuleInput, PatchCommunitySettingsInput, PatchDmSettingsInput, ReorderDownloadAssetsInput, ReorderEventAssetsInput, SPACE_IMAGES, SaveActivityInput, SetSpaceTopicsInput, Space, SpaceAccessRule, SpaceDetail, SpaceImage, SpaceLink, SpaceSettings, SpaceTopic, SpaceView, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateSpaceInput, activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceImageSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, spaceViewSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema } from "./content.js";
|
|
2
2
|
import { CreateUserInput, ProvisionUserInput, UpdateUserInput, User, UserInput, UserProfile, UserProfileView, createUserInputSchema, provisionUserInputSchema, updateUserInputSchema, userProfileSchema, userProfileViewSchema, userSchema } from "./identity.js";
|
|
3
|
-
import { AcceptInviteInput, AddOrgUserInput, CreateInviteInput, CreateOrgUserInput, Invite, InviteInput, Level, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, PERMISSION_KEYS, Permission, RoleAssignment, RoleKey, UpdateOrgUserInput, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema } from "./organizations.js";
|
|
3
|
+
import { AcceptInviteInput, AddOrgUserInput, CreateInviteInput, CreateOrgUserInput, Invite, InviteInput, Level, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, OrganizationMetadata, PERMISSION_KEYS, Permission, RoleAssignment, RoleKey, UpdateOrgUserInput, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationMetadataSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema } from "./organizations.js";
|
|
4
4
|
import { Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, GrantEntitlementInput, GrantSource, SpaceMember, SpaceMemberSource, SpaceMemberStatus, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, grantSourceSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema } from "./entitlements.js";
|
|
5
5
|
import { ProgressRecord, ProgressRecordInput, ProgressReportItem, ProgressTarget, ProgressTargetType, ReportProgressInput, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, reportProgressInputSchema } from "./progress.js";
|
|
6
6
|
import { Asset, AssetInput, AssetKind, AssetSource, AssetStatus, AssetUrls, AssetView, AssetsQuery, RequestUploadInput, UploadTicket, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, requestUploadInputSchema, uploadTicketSchema } from "./assets.js";
|
|
@@ -12,4 +12,4 @@ import { boundedJsonSchema, domainEventSchema, emailSchema, eventMetadataSchema,
|
|
|
12
12
|
import { EventOutbox, EventOutboxInput, eventOutboxSchema } from "./outbox.js";
|
|
13
13
|
import { Setting, SettingInput, settingSchema } from "./settings.js";
|
|
14
14
|
import { notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, reasonSchema, subjectTypeSchema } from "./notifications.js";
|
|
15
|
-
export { AcceptInviteInput, Activity, ActivityAsset, ActivityAssetInput, ActivityCommentsRule, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddEventAssetInput, AddOrgUserInput, AddSpaceLinkInput, Asset, AssetInput, AssetKind, AssetSource, AssetStatus, AssetUrls, AssetView, AssetsQuery, Automation, AutomationAction, AutomationActionResult, AutomationInput, AutomationKind, AutomationRun, AutomationRunInput, AutomationRunStatus, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableActions, AvailableTriggers, BlockedUser, Bundle, BundleInput, BundleItem, BundleItemInput, Chat, ChatKind, ChatLastMessage, ChatLiveEvent, ChatStatus, ChatUnreadSummary, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, Community, CommunitySettings, CommunityStatus, CommunityView, ConfigureInput, ConnectInput, Connection, ConnectionInput, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateAutomationInput, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateInviteInput, CreateOrgUserInput, CreateSpaceInput, CreateUserInput, CreateWebhookInput, CreatedWebhook, Credential, CredentialInput, DeliverWebhookInput, DigestCadence, DigestRun, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, Event, EventAddress, EventAnalytics, EventAsset, EventAttendee, EventAttendeeFace, EventAttendeeSource, EventFile, EventLead, EventLocation, EventOnline, EventOutbox, EventOutboxInput, EventRecording, EventSettings, EventSort, EventStatus, EventType, EventVenue, EventView, FlaggedComment, FlaggedCommentView, GrantEntitlementInput, GrantSource, Invite, InviteInput, Level, ListBundlesQuery, ListCommentsQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, LiveMessage, MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, MemberEvent, MemberEventSummary, MemberEventViewer, MemberEventsQuery, Mention, MentionItemType, MentionView, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Module, ModuleInput, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, PERMISSION_KEYS, PatchCommunitySettingsInput, PatchDmSettingsInput, Permission, Post, PostAsset, PostBookmark, PostFlag, PostFlagResolution, PostReaction, PostStatus, PostView, ProgressRecord, ProgressRecordInput, ProgressReportItem, ProgressTarget, ProgressTargetType, ProvisionUserInput, ReactionCounts, ReactionEmoji, ReorderDownloadAssetsInput, ReorderEventAssetsInput, ReportProgressInput, RequestUploadInput, RoleAssignment, RoleKey, SaveActivityInput, SetSpaceTopicsInput, Setting, SettingInput, Space, SpaceAccessRule, SpaceDetail, SpaceLink, SpaceMember, SpaceMemberSource, SpaceMemberStatus, SpaceSettings, SpaceTopic, Subscription, SubscriptionItemType, SubscriptionState, SubscriptionView, UpdateAutomationInput, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateOrgUserInput, UpdateSpaceInput, UpdateUserInput, UpdateWebhookInput, UploadTicket, User, UserInput, UserProfile, UserProfileView, Validation, Webhook, WebhookSecret, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventMetadataSchema, eventOnlineSchema, eventOutboxSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, flaggedCommentSchema, flaggedCommentViewSchema, grantEntitlementInputSchema, grantSourceSchema, idSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, levelSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, liveMessageSchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, permissionSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleAssignmentSchema, roleKeySchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, timeZoneSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
|
|
15
|
+
export { AcceptInviteInput, Activity, ActivityAsset, ActivityAssetInput, ActivityCommentsRule, ActivityInput, ActivitySettings, ActivityView, AddDownloadAssetInput, AddEventAssetInput, AddOrgUserInput, AddSpaceLinkInput, Asset, AssetInput, AssetKind, AssetSource, AssetStatus, AssetUrls, AssetView, AssetsQuery, Automation, AutomationAction, AutomationActionResult, AutomationInput, AutomationKind, AutomationRun, AutomationRunInput, AutomationRunStatus, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableActions, AvailableTriggers, BlockedUser, Bundle, BundleInput, BundleItem, BundleItemInput, Chat, ChatKind, ChatLastMessage, ChatLiveEvent, ChatStatus, ChatUnreadSummary, ChatUser, Comment, CommentAuthor, CommentFlagResolution, CommentInput, CommentListItem, CommentReaction, CommentReport, CommentReportInput, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, Community, CommunitySettings, CommunityStatus, CommunityView, ConfigureInput, ConnectInput, Connection, ConnectionInput, ContentItem, ContentItemInput, ContentType, Course, CourseSettings, CourseStatus, CourseView, CreateAutomationInput, CreateBundleInput, CreateCommunityInput, CreateCourseInput, CreateDownloadInput, CreateEventInput, CreateInviteInput, CreateOrgUserInput, CreateSpaceInput, CreateUserInput, CreateWebhookInput, CreatedWebhook, Credential, CredentialInput, DeliverWebhookInput, DigestCadence, DigestRun, DigestSchedule, DmSettings, Download, DownloadAsset, DownloadAssetInput, DownloadFile, DownloadInput, DownloadStatus, DownloadView, Entitlement, EntitlementInput, EntitlementStatus, EntitlementsQuery, Event, EventAddress, EventAnalytics, EventAsset, EventAttendee, EventAttendeeFace, EventAttendeeSource, EventFile, EventLead, EventLocation, EventOnline, EventOutbox, EventOutboxInput, EventRecording, EventSettings, EventSort, EventStatus, EventType, EventVenue, EventView, FlaggedComment, FlaggedCommentView, GrantEntitlementInput, GrantSource, Invite, InviteInput, Level, ListBundlesQuery, ListCommentsQuery, ListCommunitiesQuery, ListCoursesQuery, ListDownloadsQuery, ListEventsQuery, LiveMessage, MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, MemberEvent, MemberEventSummary, MemberEventViewer, MemberEventsQuery, Mention, MentionItemType, MentionView, Message, MessageAttachment, MessageFile, MessageFlag, MessageFlagResolution, MessageReaction, MessageView, Module, ModuleInput, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, OrganizationMetadata, PERMISSION_KEYS, PatchCommunitySettingsInput, PatchDmSettingsInput, Permission, Post, PostAsset, PostBookmark, PostFlag, PostFlagResolution, PostReaction, PostStatus, PostView, ProgressRecord, ProgressRecordInput, ProgressReportItem, ProgressTarget, ProgressTargetType, ProvisionUserInput, ReactionCounts, ReactionEmoji, ReorderDownloadAssetsInput, ReorderEventAssetsInput, ReportProgressInput, RequestUploadInput, RoleAssignment, RoleKey, SPACE_IMAGES, SaveActivityInput, SetSpaceTopicsInput, Setting, SettingInput, Space, SpaceAccessRule, SpaceDetail, SpaceImage, SpaceLink, SpaceMember, SpaceMemberSource, SpaceMemberStatus, SpaceSettings, SpaceTopic, SpaceView, Subscription, SubscriptionItemType, SubscriptionState, SubscriptionView, UpdateAutomationInput, UpdateBundleInput, UpdateCommunityInput, UpdateCourseInput, UpdateDownloadInput, UpdateEventInput, UpdateOrgUserInput, UpdateSpaceInput, UpdateUserInput, UpdateWebhookInput, UploadTicket, User, UserInput, UserProfile, UserProfileView, Validation, Webhook, WebhookSecret, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventMetadataSchema, eventOnlineSchema, eventOutboxSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, flaggedCommentSchema, flaggedCommentViewSchema, grantEntitlementInputSchema, grantSourceSchema, idSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, levelSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, liveMessageSchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationMetadataSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, permissionSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleAssignmentSchema, roleKeySchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceImageSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, spaceViewSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, timeZoneSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
|
|
@@ -2,8 +2,8 @@ import { boundedJsonSchema, domainEventSchema, emailSchema, eventMetadataSchema,
|
|
|
2
2
|
import { createUserInputSchema, provisionUserInputSchema, updateUserInputSchema, userProfileSchema, userProfileViewSchema, userSchema } from "./identity.js";
|
|
3
3
|
import { assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, requestUploadInputSchema, uploadTicketSchema } from "./assets.js";
|
|
4
4
|
import { activityCommentsRuleSchema, blockedUserSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, digestRunSchema, flaggedCommentSchema, flaggedCommentViewSchema, listCommentsQuerySchema, liveMessageSchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, reactionCountsSchema, reactionEmojiSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema } from "./discussion.js";
|
|
5
|
-
import { activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema } from "./content.js";
|
|
6
|
-
import { PERMISSION_KEYS, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema } from "./organizations.js";
|
|
5
|
+
import { SPACE_IMAGES, activityAssetSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addSpaceLinkInputSchema, bundleItemSchema, bundleSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createSpaceInputSchema, digestCadenceSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventOnlineSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, listBundlesQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, moduleSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, saveActivityInputSchema, setSpaceTopicsInputSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceImageSchema, spaceLinkSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, spaceViewSchema, timeZoneSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateSpaceInputSchema } from "./content.js";
|
|
6
|
+
import { PERMISSION_KEYS, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationMetadataSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema } from "./organizations.js";
|
|
7
7
|
import { entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, grantEntitlementInputSchema, grantSourceSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema } from "./entitlements.js";
|
|
8
8
|
import { progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, reportProgressInputSchema } from "./progress.js";
|
|
9
9
|
import { configureInputSchema, connectInputSchema, connectionSchema, validationSchema } from "./integrations.js";
|
|
@@ -12,4 +12,4 @@ import { credentialSchema } from "./credentials.js";
|
|
|
12
12
|
import { eventOutboxSchema } from "./outbox.js";
|
|
13
13
|
import { settingSchema } from "./settings.js";
|
|
14
14
|
import { notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, reasonSchema, subjectTypeSchema } from "./notifications.js";
|
|
15
|
-
export { MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, PERMISSION_KEYS, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventMetadataSchema, eventOnlineSchema, eventOutboxSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, flaggedCommentSchema, flaggedCommentViewSchema, grantEntitlementInputSchema, grantSourceSchema, idSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, levelSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, liveMessageSchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, permissionSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleAssignmentSchema, roleKeySchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, timeZoneSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
|
|
15
|
+
export { MAX_AUTOMATION_ACTIONS, MAX_AUTOMATION_TRIGGERS, MAX_WEBHOOK_EVENTS, PERMISSION_KEYS, SPACE_IMAGES, acceptInviteInputSchema, activityAssetSchema, activityCommentsRuleSchema, activitySchema, activitySettingsSchema, activityViewSchema, addDownloadAssetInputSchema, addEventAssetInputSchema, addOrgUserInputSchema, addSpaceLinkInputSchema, assetKindSchema, assetSchema, assetSourceSchema, assetStatusSchema, assetUrlsSchema, assetViewSchema, assetsQuerySchema, automationActionResultSchema, automationActionSchema, automationKindSchema, automationRunSchema, automationRunStatusSchema, automationRunsQuerySchema, automationSchema, automationTriggerSchema, automationTriggersSchema, automationsQuerySchema, availableActionSchema, availableTriggersSchema, blockedUserSchema, boundedJsonSchema, bundleItemSchema, bundleSchema, chatKindSchema, chatLastMessageSchema, chatLiveEventSchema, chatSchema, chatStatusSchema, chatUnreadSummarySchema, chatUserSchema, commentAuthorSchema, commentFlagResolutionSchema, commentListItemSchema, commentReactionSchema, commentReportSchema, commentReportSummarySchema, commentSchema, commentSettingsSchema, commentStatusSchema, commentViewSchema, communitySchema, communitySettingsDefaults, communitySettingsSchema, communityStatusSchema, communityViewSchema, configureInputSchema, connectInputSchema, connectionSchema, contentItemSchema, contentTypeSchema, courseSchema, courseSettingsDefaults, courseSettingsSchema, courseStatusSchema, courseViewSchema, createAutomationInputSchema, createBundleInputSchema, createCommunityInputSchema, createCourseInputSchema, createDownloadInputSchema, createEventInputSchema, createInviteInputSchema, createOrgUserInputSchema, createSpaceInputSchema, createUserInputSchema, createWebhookInputSchema, createdWebhookSchema, credentialSchema, deliverWebhookInputSchema, digestCadenceSchema, digestRunSchema, digestScheduleSchema, dmSettingsDefaults, dmSettingsSchema, domainEventSchema, downloadAssetSchema, downloadFileSchema, downloadSchema, downloadStatusSchema, downloadViewSchema, emailSchema, entitlementSchema, entitlementStatusSchema, entitlementsQuerySchema, eventAddressSchema, eventAnalyticsSchema, eventAssetSchema, eventAttendeeFaceSchema, eventAttendeeSchema, eventAttendeeSourceSchema, eventFileSchema, eventLeadSchema, eventLocationDefaults, eventLocationSchema, eventMetadataSchema, eventOnlineSchema, eventOutboxSchema, eventRecordingSchema, eventSchema, eventSettingsDefaults, eventSettingsSchema, eventSortSchema, eventStatusSchema, eventTypeSchema, eventVenueSchema, eventViewSchema, flaggedCommentSchema, flaggedCommentViewSchema, grantEntitlementInputSchema, grantSourceSchema, idSchema, inviteSchema, isoDateStringSchema, jsonRecordSchema, jsonValueSchema, levelSchema, listBundlesQuerySchema, listCommentsQuerySchema, listCommunitiesQuerySchema, listCoursesQuerySchema, listDownloadsQuerySchema, listEventsQuerySchema, liveMessageSchema, memberEventSchema, memberEventSummarySchema, memberEventViewerSchema, memberEventsQuerySchema, mentionItemTypeSchema, mentionSchema, mentionViewSchema, messageAttachmentSchema, messageFileSchema, messageFlagResolutionSchema, messageFlagSchema, messageReactionSchema, messageSchema, messageViewSchema, moduleSchema, newOrganizationInputSchema, notificationCategoryKeySchema, notificationCategoryListSchema, notificationCategorySchema, notificationChannelKeySchema, notificationScopeSchema, notificationTypeKeySchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationMetadataSchema, organizationSchema, patchCommunitySettingsInputSchema, patchDmSettingsInputSchema, permissionSchema, postAssetSchema, postBookmarkSchema, postFlagResolutionSchema, postFlagSchema, postReactionSchema, postSchema, postStatusSchema, postViewSchema, progressRecordSchema, progressReportItemSchema, progressTargetSchema, progressTargetTypeSchema, provisionUserInputSchema, reactionCountsSchema, reactionEmojiSchema, reasonSchema, reorderDownloadAssetsInputSchema, reorderEventAssetsInputSchema, reportProgressInputSchema, requestUploadInputSchema, roleAssignmentSchema, roleKeySchema, saveActivityInputSchema, serializableDateSchema, setSpaceTopicsInputSchema, settingSchema, spaceAccessRuleSchema, spaceDetailSchema, spaceImageSchema, spaceLinkSchema, spaceMemberSchema, spaceMemberSourceSchema, spaceMemberStatusSchema, spaceSchema, spaceSettingsDefaults, spaceSettingsSchema, spaceTopicSchema, spaceViewSchema, subjectTypeSchema, subscriptionItemTypeSchema, subscriptionSchema, subscriptionStateSchema, subscriptionViewSchema, timeZoneSchema, updateAutomationInputSchema, updateBundleInputSchema, updateCommunityInputSchema, updateCourseInputSchema, updateDownloadInputSchema, updateEventInputSchema, updateOrgUserInputSchema, updateSpaceInputSchema, updateUserInputSchema, updateWebhookInputSchema, uploadTicketSchema, userProfileSchema, userProfileViewSchema, userSchema, validationSchema, webhookSchema, webhookSecretSchema, webhookUrlSchema };
|
|
@@ -17,9 +17,9 @@ declare const reasonSchema: z.ZodEnum<{
|
|
|
17
17
|
}>;
|
|
18
18
|
declare const notificationScopeSchema: z.ZodEnum<{
|
|
19
19
|
community: "community";
|
|
20
|
-
org: "org";
|
|
21
20
|
space: "space";
|
|
22
21
|
chat: "chat";
|
|
22
|
+
org: "org";
|
|
23
23
|
}>;
|
|
24
24
|
declare const subjectTypeSchema: z.ZodEnum<{
|
|
25
25
|
message: "message";
|
|
@@ -27,12 +27,12 @@ declare const subjectTypeSchema: z.ZodEnum<{
|
|
|
27
27
|
course: "course";
|
|
28
28
|
download: "download";
|
|
29
29
|
community: "community";
|
|
30
|
-
activity: "activity";
|
|
31
30
|
bundle: "bundle";
|
|
32
|
-
space: "space";
|
|
33
|
-
chat: "chat";
|
|
34
31
|
post: "post";
|
|
35
32
|
comment: "comment";
|
|
33
|
+
space: "space";
|
|
34
|
+
chat: "chat";
|
|
35
|
+
activity: "activity";
|
|
36
36
|
}>;
|
|
37
37
|
declare const notificationCategoryKeySchema: z.ZodString;
|
|
38
38
|
declare const notificationTypeKeySchema: z.ZodString;
|
|
@@ -96,12 +96,15 @@ declare const orgUserStatusSchema: z.ZodEnum<{
|
|
|
96
96
|
invited: "invited";
|
|
97
97
|
}>;
|
|
98
98
|
type OrgUserStatus = z.infer<typeof orgUserStatusSchema>;
|
|
99
|
+
declare const organizationMetadataSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
100
|
+
type OrganizationMetadata = z.output<typeof organizationMetadataSchema>;
|
|
99
101
|
declare const organizationSchema: z.ZodObject<{
|
|
100
102
|
id: z.ZodString;
|
|
101
103
|
externalId: z.ZodNullable<z.ZodString>;
|
|
102
104
|
name: z.ZodString;
|
|
103
105
|
slug: z.ZodString;
|
|
104
106
|
ownerId: z.ZodString;
|
|
107
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
105
108
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
106
109
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
107
110
|
}, z.core.$strict>;
|
|
@@ -189,5 +192,5 @@ declare const acceptInviteInputSchema: z.ZodObject<{
|
|
|
189
192
|
}, z.core.$strict>;
|
|
190
193
|
type AcceptInviteInput = z.infer<typeof acceptInviteInputSchema>;
|
|
191
194
|
//#endregion
|
|
192
|
-
export { AcceptInviteInput, AddOrgUserInput, CreateInviteInput, CreateOrgUserInput, Invite, InviteInput, Level, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, PERMISSION_KEYS, Permission, RoleAssignment, RoleKey, UpdateOrgUserInput, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema };
|
|
195
|
+
export { AcceptInviteInput, AddOrgUserInput, CreateInviteInput, CreateOrgUserInput, Invite, InviteInput, Level, NewOrganizationInput, OrgRoleRow, OrgUser, OrgUserInput, OrgUserProfile, OrgUserStatus, Organization, OrganizationInput, OrganizationMetadata, PERMISSION_KEYS, Permission, RoleAssignment, RoleKey, UpdateOrgUserInput, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationMetadataSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema };
|
|
193
196
|
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -74,12 +74,14 @@ const roleAssignmentSchema = z.object({
|
|
|
74
74
|
createdAt: z.coerce.date()
|
|
75
75
|
}).strict();
|
|
76
76
|
const orgUserStatusSchema = z.enum(["invited", "active"]);
|
|
77
|
+
const organizationMetadataSchema = z.record(z.string(), z.string());
|
|
77
78
|
const organizationSchema = z.object({
|
|
78
79
|
id: idSchema,
|
|
79
80
|
externalId: idSchema.nullable(),
|
|
80
81
|
name: z.string(),
|
|
81
82
|
slug: z.string(),
|
|
82
83
|
ownerId: idSchema,
|
|
84
|
+
metadata: organizationMetadataSchema,
|
|
83
85
|
createdAt: z.coerce.date(),
|
|
84
86
|
updatedAt: z.coerce.date()
|
|
85
87
|
}).strict();
|
|
@@ -143,6 +145,6 @@ const acceptInviteInputSchema = z.object({
|
|
|
143
145
|
email: emailSchema
|
|
144
146
|
}).strict();
|
|
145
147
|
//#endregion
|
|
146
|
-
export { PERMISSION_KEYS, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema };
|
|
148
|
+
export { PERMISSION_KEYS, acceptInviteInputSchema, addOrgUserInputSchema, createInviteInputSchema, createOrgUserInputSchema, inviteSchema, levelSchema, newOrganizationInputSchema, orgRoleRowSchema, orgUserProfileSchema, orgUserSchema, orgUserStatusSchema, organizationMetadataSchema, organizationSchema, permissionSchema, roleAssignmentSchema, roleKeySchema, updateOrgUserInputSchema };
|
|
147
149
|
|
|
148
150
|
//# sourceMappingURL=organizations.js.map
|