@headless-lms/server 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/app/community-mail.d.ts +10 -10
- package/dist/app/community-mail.js +72 -28
- package/dist/app/community-mail.js.map +1 -1
- package/dist/app/container.d.ts +48 -10
- package/dist/app/container.js +268 -48
- package/dist/app/container.js.map +1 -1
- package/dist/app/notification-channels.d.ts +47 -0
- package/dist/app/notification-channels.js +175 -0
- package/dist/app/notification-channels.js.map +1 -0
- package/dist/app/notification-reads.d.ts +23 -0
- package/dist/app/notification-reads.js +74 -0
- package/dist/app/notification-reads.js.map +1 -0
- package/dist/app/platform.d.ts +14 -0
- package/dist/app/platform.js +14 -0
- package/dist/app/platform.js.map +1 -0
- package/dist/http/config.d.ts +4 -0
- package/dist/http/errors.d.ts +1 -0
- package/dist/http/errors.js +24 -4
- package/dist/http/errors.js.map +1 -1
- package/dist/http/fastify.d.ts +8 -0
- package/dist/http/mcp/catalogue.d.ts +11 -9
- package/dist/http/mcp/catalogue.js +15 -21
- package/dist/http/mcp/catalogue.js.map +1 -1
- package/dist/http/mcp/challenge.js +3 -3
- package/dist/http/mcp/challenge.js.map +1 -1
- package/dist/http/mcp/route.js +7 -7
- package/dist/http/mcp/route.js.map +1 -1
- package/dist/http/mcp/test-support.d.ts +6 -5
- package/dist/http/mcp/test-support.js +32 -11
- package/dist/http/mcp/test-support.js.map +1 -1
- package/dist/http/mcp/tool.d.ts +3 -9
- package/dist/http/mcp/tool.js +14 -6
- package/dist/http/mcp/tool.js.map +1 -1
- package/dist/http/mcp/tools/automations.js +10 -20
- package/dist/http/mcp/tools/automations.js.map +1 -1
- package/dist/http/mcp/tools/catalog.js +25 -42
- package/dist/http/mcp/tools/catalog.js.map +1 -1
- package/dist/http/mcp/tools/comments.js +9 -19
- package/dist/http/mcp/tools/comments.js.map +1 -1
- package/dist/http/mcp/tools/communities.js +16 -31
- package/dist/http/mcp/tools/communities.js.map +1 -1
- package/dist/http/mcp/tools/community-members.js +9 -16
- package/dist/http/mcp/tools/community-members.js.map +1 -1
- package/dist/http/mcp/tools/community-moderation.js +13 -25
- package/dist/http/mcp/tools/community-moderation.js.map +1 -1
- package/dist/http/mcp/tools/courses.js +11 -21
- package/dist/http/mcp/tools/courses.js.map +1 -1
- package/dist/http/mcp/tools/events.d.ts +6 -0
- package/dist/http/mcp/tools/events.js +170 -0
- package/dist/http/mcp/tools/events.js.map +1 -0
- package/dist/http/mcp/tools/index.d.ts +5 -1
- package/dist/http/mcp/tools/index.js +45 -10
- package/dist/http/mcp/tools/index.js.map +1 -1
- package/dist/http/mcp/tools/organization.d.ts +6 -0
- package/dist/http/mcp/tools/organization.js +214 -0
- package/dist/http/mcp/tools/organization.js.map +1 -0
- package/dist/http/mcp/tools/people.js +30 -49
- package/dist/http/mcp/tools/people.js.map +1 -1
- package/dist/http/plugins/auth.js +37 -8
- package/dist/http/plugins/auth.js.map +1 -1
- package/dist/http/plugins/error-handler.d.ts +5 -1
- package/dist/http/plugins/error-handler.js +13 -3
- package/dist/http/plugins/error-handler.js.map +1 -1
- package/dist/http/plugins/openapi.js +18 -2
- package/dist/http/plugins/openapi.js.map +1 -1
- package/dist/http/plugins/platform.d.ts +7 -0
- package/dist/http/plugins/platform.js +13 -0
- package/dist/http/plugins/platform.js.map +1 -0
- package/dist/http/routes/access.js +54 -36
- package/dist/http/routes/access.js.map +1 -1
- package/dist/http/routes/activities.js +45 -45
- package/dist/http/routes/activities.js.map +1 -1
- package/dist/http/routes/assets.js +30 -65
- package/dist/http/routes/assets.js.map +1 -1
- package/dist/http/routes/automations.js +37 -42
- package/dist/http/routes/automations.js.map +1 -1
- package/dist/http/routes/bundles.js +33 -36
- package/dist/http/routes/bundles.js.map +1 -1
- package/dist/http/routes/communities.js +144 -136
- package/dist/http/routes/communities.js.map +1 -1
- package/dist/http/routes/community-moderation.js +83 -137
- package/dist/http/routes/community-moderation.js.map +1 -1
- package/dist/http/routes/course-analytics.js +32 -15
- package/dist/http/routes/course-analytics.js.map +1 -1
- package/dist/http/routes/courses.js +25 -32
- package/dist/http/routes/courses.js.map +1 -1
- package/dist/http/routes/dashboard.js +9 -9
- package/dist/http/routes/dashboard.js.map +1 -1
- package/dist/http/routes/discussion.js +21 -39
- package/dist/http/routes/discussion.js.map +1 -1
- package/dist/http/routes/downloads.js +41 -47
- package/dist/http/routes/downloads.js.map +1 -1
- package/dist/http/routes/entitlements.js +19 -23
- package/dist/http/routes/entitlements.js.map +1 -1
- package/dist/http/routes/events.d.ts +7 -0
- package/dist/http/routes/events.js +333 -0
- package/dist/http/routes/events.js.map +1 -0
- package/dist/http/routes/integrations.js +40 -73
- package/dist/http/routes/integrations.js.map +1 -1
- package/dist/http/routes/member/assets.js +10 -13
- package/dist/http/routes/member/assets.js.map +1 -1
- package/dist/http/routes/member/chats.js +177 -75
- package/dist/http/routes/member/chats.js.map +1 -1
- package/dist/http/routes/member/comments.js +65 -26
- package/dist/http/routes/member/comments.js.map +1 -1
- package/dist/http/routes/member/community.js +68 -51
- package/dist/http/routes/member/community.js.map +1 -1
- package/dist/http/routes/member/courses.js +12 -19
- package/dist/http/routes/member/courses.js.map +1 -1
- package/dist/http/routes/member/devices.d.ts +7 -0
- package/dist/http/routes/member/devices.js +97 -0
- package/dist/http/routes/member/devices.js.map +1 -0
- package/dist/http/routes/member/downloads.js +6 -9
- package/dist/http/routes/member/downloads.js.map +1 -1
- package/dist/http/routes/member/events.d.ts +7 -0
- package/dist/http/routes/member/events.js +386 -0
- package/dist/http/routes/member/events.js.map +1 -0
- package/dist/http/routes/member/files.js +71 -46
- package/dist/http/routes/member/files.js.map +1 -1
- package/dist/http/routes/member/index.js +6 -0
- package/dist/http/routes/member/index.js.map +1 -1
- package/dist/http/routes/member/notification-settings.d.ts +7 -0
- package/dist/http/routes/member/notification-settings.js +100 -0
- package/dist/http/routes/member/notification-settings.js.map +1 -0
- package/dist/http/routes/member/notifications.js +69 -45
- package/dist/http/routes/member/notifications.js.map +1 -1
- package/dist/http/routes/member/org.js +5 -15
- package/dist/http/routes/member/org.js.map +1 -1
- package/dist/http/routes/member/posts.js +94 -95
- package/dist/http/routes/member/posts.js.map +1 -1
- package/dist/http/routes/member/profile.js +15 -6
- package/dist/http/routes/member/profile.js.map +1 -1
- package/dist/http/routes/member/progress.js +7 -11
- package/dist/http/routes/member/progress.js.map +1 -1
- package/dist/http/routes/organizations.js +415 -110
- package/dist/http/routes/organizations.js.map +1 -1
- package/dist/http/routes/platform.d.ts +7 -0
- package/dist/http/routes/platform.js +61 -0
- package/dist/http/routes/platform.js.map +1 -0
- package/dist/http/routes/students.js +12 -75
- package/dist/http/routes/students.js.map +1 -1
- package/dist/http/routes/webhooks.js +30 -39
- package/dist/http/routes/webhooks.js.map +1 -1
- package/dist/http/routes.js +9 -0
- package/dist/http/routes.js.map +1 -1
- package/dist/http/schemas/access.d.ts +346 -64
- package/dist/http/schemas/access.js +39 -12
- package/dist/http/schemas/access.js.map +1 -1
- package/dist/http/schemas/assets.d.ts +13 -8
- package/dist/http/schemas/assets.js +6 -5
- package/dist/http/schemas/assets.js.map +1 -1
- package/dist/http/schemas/automations.d.ts +4 -8
- package/dist/http/schemas/chats.d.ts +238 -36
- package/dist/http/schemas/chats.js +14 -7
- package/dist/http/schemas/chats.js.map +1 -1
- package/dist/http/schemas/community.d.ts +140 -33
- package/dist/http/schemas/community.js +25 -9
- package/dist/http/schemas/community.js.map +1 -1
- package/dist/http/schemas/course-analytics.d.ts +51 -1
- package/dist/http/schemas/course-analytics.js +19 -1
- package/dist/http/schemas/course-analytics.js.map +1 -1
- package/dist/http/schemas/dashboard.d.ts +1 -0
- package/dist/http/schemas/dashboard.js +2 -1
- package/dist/http/schemas/dashboard.js.map +1 -1
- package/dist/http/schemas/discussion.d.ts +45 -73
- package/dist/http/schemas/discussion.js +16 -4
- package/dist/http/schemas/discussion.js.map +1 -1
- package/dist/http/schemas/entitlements.d.ts +9 -12
- package/dist/http/schemas/entitlements.js +11 -5
- package/dist/http/schemas/entitlements.js.map +1 -1
- package/dist/http/schemas/events.d.ts +527 -0
- package/dist/http/schemas/events.js +64 -0
- package/dist/http/schemas/events.js.map +1 -0
- package/dist/http/schemas/files.d.ts +15 -5
- package/dist/http/schemas/files.js +10 -2
- package/dist/http/schemas/files.js.map +1 -1
- package/dist/http/schemas/index.d.ts +14 -12
- package/dist/http/schemas/index.js +14 -12
- package/dist/http/schemas/invites.d.ts +3 -47
- package/dist/http/schemas/invites.js +4 -25
- package/dist/http/schemas/invites.js.map +1 -1
- package/dist/http/schemas/member.d.ts +94 -7
- package/dist/http/schemas/member.js +7 -3
- package/dist/http/schemas/member.js.map +1 -1
- package/dist/http/schemas/members.d.ts +329 -65
- package/dist/http/schemas/members.js +67 -25
- package/dist/http/schemas/members.js.map +1 -1
- package/dist/http/schemas/notifications.d.ts +502 -175
- package/dist/http/schemas/notifications.js +148 -28
- package/dist/http/schemas/notifications.js.map +1 -1
- package/dist/http/schemas/platform.d.ts +37 -0
- package/dist/http/schemas/platform.js +19 -0
- package/dist/http/schemas/platform.js.map +1 -0
- package/dist/http/schemas/posts.d.ts +92 -38
- package/dist/http/schemas/posts.js +4 -4
- package/dist/http/schemas/posts.js.map +1 -1
- package/dist/http/schemas/profile.d.ts +1 -1
- package/dist/http/schemas/shared.d.ts +10 -13
- package/dist/http/schemas/shared.js +3 -11
- package/dist/http/schemas/shared.js.map +1 -1
- package/dist/http/schemas/students.d.ts +22 -0
- package/dist/http/schemas/students.js +3 -1
- package/dist/http/schemas/students.js.map +1 -1
- package/dist/http/scope.d.ts +9 -12
- package/dist/http/scope.js +30 -35
- package/dist/http/scope.js.map +1 -1
- package/dist/http/server.js +9 -0
- package/dist/http/server.js.map +1 -1
- package/dist/http/shutdown.d.ts +11 -0
- package/dist/http/shutdown.js +40 -0
- package/dist/http/shutdown.js.map +1 -0
- package/dist/http/sse.d.ts +19 -0
- package/dist/http/sse.js +104 -0
- package/dist/http/sse.js.map +1 -0
- package/dist/http/test-caller.d.ts +13 -0
- package/dist/http/test-caller.js +14 -0
- package/dist/http/test-caller.js.map +1 -0
- package/dist/http/well-known.js +2 -2
- package/dist/http/well-known.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/packages/server/package.js +1 -1
- package/package.json +7 -6
- package/dist/http/routes/member/actor.d.ts +0 -14
- package/dist/http/routes/member/actor.js +0 -11
- package/dist/http/routes/member/actor.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.js","names":[],"sources":["../../../src/http/schemas/files.ts"],"sourcesContent":["// File proxy schemas. Every file is fetched from a stable URL that checks access\n// on each request and answers 302 with a signed storage URL.\nimport { z } from 'zod';\n\nexport const CourseThumbnailParams = z.object({ courseId: z.string() });\nexport type CourseThumbnailParams = z.infer<typeof CourseThumbnailParams>;\n\nexport const DownloadThumbnailParams = z.object({ downloadId: z.string() });\nexport type DownloadThumbnailParams = z.infer<typeof DownloadThumbnailParams>;\n\nexport const CommunityThumbnailParams = z.object({ communityId: z.string() });\nexport type CommunityThumbnailParams = z.infer<typeof CommunityThumbnailParams>;\n\nexport const ActivityFileParams = z.object({ activityId: z.string(), assetId: z.string() });\nexport type ActivityFileParams = z.infer<typeof ActivityFileParams>;\n\nexport const DownloadFileParams = z.object({ downloadId: z.string(), assetId: z.string() });\nexport type DownloadFileParams = z.infer<typeof DownloadFileParams>;\n\nexport const
|
|
1
|
+
{"version":3,"file":"files.js","names":[],"sources":["../../../src/http/schemas/files.ts"],"sourcesContent":["// File proxy schemas. Every file is fetched from a stable URL that checks access\n// on each request and answers 302 with a signed storage URL.\nimport { z } from 'zod';\n\nexport const CourseThumbnailParams = z.object({ courseId: z.string() });\nexport type CourseThumbnailParams = z.infer<typeof CourseThumbnailParams>;\n\nexport const DownloadThumbnailParams = z.object({ downloadId: z.string() });\nexport type DownloadThumbnailParams = z.infer<typeof DownloadThumbnailParams>;\n\nexport const CommunityThumbnailParams = z.object({ communityId: z.string() });\nexport type CommunityThumbnailParams = z.infer<typeof CommunityThumbnailParams>;\n\nexport const ActivityFileParams = z.object({ activityId: z.string(), assetId: z.string() });\nexport type ActivityFileParams = z.infer<typeof ActivityFileParams>;\n\nexport const DownloadFileParams = z.object({ downloadId: z.string(), assetId: z.string() });\nexport type DownloadFileParams = z.infer<typeof DownloadFileParams>;\n\nexport const EventThumbnailParams = z.object({ eventId: z.string() });\nexport type EventThumbnailParams = z.infer<typeof EventThumbnailParams>;\n\nexport const EventFileParams = z.object({ eventId: z.string(), assetId: z.string() });\nexport type EventFileParams = z.infer<typeof EventFileParams>;\n\nexport const PostCoverParams = z.object({ postId: z.string() });\nexport type PostCoverParams = z.infer<typeof PostCoverParams>;\n\nexport const PostAssetParams = z.object({ postId: z.string(), assetId: z.string() });\nexport type PostAssetParams = z.infer<typeof PostAssetParams>;\n\nexport const MessageAttachmentParams = z.object({\n chatId: z.string(),\n messageId: z.string(),\n assetId: z.string(),\n});\nexport type MessageAttachmentParams = z.infer<typeof MessageAttachmentParams>;\n\nexport const UploadFileParams = z.object({ id: z.string() });\nexport type UploadFileParams = z.infer<typeof UploadFileParams>;\n"],"mappings":";;AAIA,MAAa,wBAAwB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAGtE,MAAa,0BAA0B,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC;AAG1E,MAAa,2BAA2B,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC;AAG5E,MAAa,qBAAqB,EAAE,OAAO;CAAE,YAAY,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;AAG1F,MAAa,qBAAqB,EAAE,OAAO;CAAE,YAAY,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;AAG1F,MAAa,uBAAuB,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;AAGpE,MAAa,kBAAkB,EAAE,OAAO;CAAE,SAAS,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;AAGpF,MAAa,kBAAkB,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AAG9D,MAAa,kBAAkB,EAAE,OAAO;CAAE,QAAQ,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;AAGnF,MAAa,0BAA0B,EAAE,OAAO;CAC9C,QAAQ,EAAE,OAAO;CACjB,WAAW,EAAE,OAAO;CACpB,SAAS,EAAE,OAAO;AACpB,CAAC;AAGD,MAAa,mBAAmB,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { ApiKey, ApiKeyIdParam, ApiKeyList, ClientIdParam, ConnectedApp, ConnectedAppList, CreateApiKey, CreatedApiKey,
|
|
1
|
+
import { ApiKey, ApiKeyIdParam, ApiKeyList, ApiKeyName, ApiKeyRole, ApiKeyRoleList, ClientIdParam, ConnectedApp, ConnectedAppList, CreateApiKey, CreatedApiKey, Level, Permission, PermissionDefinition, PermissionDefinitionList, ViewerPermissions } from "./access.js";
|
|
2
2
|
import { Activity, ActivityAsset, ActivityAssetList, ActivityList, ActivityPathParam, CourseIdPathParam, CreateModule, Module, ModuleList, ModulePathParam, ReorderInput, SaveActivity, UpdateModule } from "./activities.js";
|
|
3
3
|
import { Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, RequestMemberUpload, RequestUpload, UploadTicket } from "./assets.js";
|
|
4
4
|
import { Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableTriggers, CreateAutomationBody, CreateWebhookBody, CreatedWebhook, UpdateAutomationBody, UpdateWebhookBody, Webhook, WebhookSecret } from "./automations.js";
|
|
5
5
|
import { AddBundleItem, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, CreateBundle, UpdateBundle } from "./bundles.js";
|
|
6
|
-
import { BlockParam, Chat, ChatIdParam, ChatListItem, ChatsPage, CommunityParam, EditMessage, MarkRead, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage,
|
|
7
|
-
import { CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityPostParam, CommunitySpaceParam, CreateCommunity, CreateSpace, DirectoryEntry, DirectoryPage, DirectoryQuery, DmSettings, LockedCommunitySpace, OpenCommunitySpace, OrderedIds, PatchDmSettings, SetSpaceTopics, SpaceDetail, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, UpdateCommunity, UpdateSpace } from "./community.js";
|
|
6
|
+
import { BlockParam, Chat, ChatIdParam, ChatListItem, ChatListQuery, ChatLiveEvent, ChatUnreadSummary, ChatsPage, CommunityParam, DirectChatParam, EditMessage, MarkRead, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, OrgUserBody, ResolveMessageFlags, SendMessage, StartDirectChat, StartGroupChat } from "./chats.js";
|
|
7
|
+
import { CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityPostParam, CommunitySpaceParam, CreateCommunity, CreateSpace, DirectoryEntry, DirectoryPage, DirectoryQuery, DmSettings, LockedCommunitySpace, OpenCommunitySpace, OrderedIds, PatchCommunitySettings, PatchDmSettings, SetSpaceTopics, SpaceDetail, SpaceIdParam, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, UpdateCommunity, UpdateSpace } from "./community.js";
|
|
8
8
|
import { Course, CourseIdParam, CourseSettings, CourseStatus, CoursesPage, CoursesQuery, CreateCourse, PatchCourseSettings, UpdateCourse } from "./content.js";
|
|
9
|
-
import { CourseActivityEngagement, CourseAnalytics } from "./course-analytics.js";
|
|
9
|
+
import { CourseActivityEngagement, CourseAnalytics, CourseLearner, CourseLearnersPage, CourseLearnersQuery } from "./course-analytics.js";
|
|
10
10
|
import { EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, OverviewStats } from "./dashboard.js";
|
|
11
|
-
import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, Reactions, ReplyToComment, ReportComment, ResolveCommentFlags, SetReaction } from "./discussion.js";
|
|
11
|
+
import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, Reactions, ReplyToComment, ReportComment, ResolveCommentFlags, SetMute, SetPostSubscription, SetReaction } from "./discussion.js";
|
|
12
12
|
import { AddDownloadAsset, CreateDownload, Download, DownloadAssetParams, DownloadFile, DownloadIdParam, DownloadStatus, DownloadsPage, DownloadsQuery, RenameDownloadAsset, ReorderDownloadAssets, UpdateDownload } from "./downloads.js";
|
|
13
|
-
import { ContentRef, ContentType, Entitlement,
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { ContentRef, ContentType, Entitlement, EntitlementStatus, EntitlementsPage, EntitlementsQuery, GrantEntitlement, RevokeEntitlement } from "./entitlements.js";
|
|
14
|
+
import { AddEventAsset, AddEventAttendee, CreateEvent, Event, EventAnalytics, EventAssetParams, EventAttendee, EventAttendeeParams, EventAttendeesPage, EventFile, EventIdParam, EventStatus, EventsPage, EventsQuery, MemberEvent, MemberEventSummary, MemberEventsPage, MemberEventsQuery, RenameEventAsset, ReorderEventAssets, UpdateEvent } from "./events.js";
|
|
15
|
+
import { ActivityFileParams, CommunityThumbnailParams, CourseThumbnailParams, DownloadFileParams, DownloadThumbnailParams, EventFileParams, EventThumbnailParams, MessageAttachmentParams, PostAssetParams, PostCoverParams, UploadFileParams } from "./files.js";
|
|
16
|
+
import { DateTimeInput, ErrorBody, ListQuery, Matches, OrgUserProfileSchema, PageQuery, UnavailableErrorBody, UserProfileSchema, ValidationErrorBody, paginated, refusals } from "./shared.js";
|
|
16
17
|
import { CourseProgress, LearnActivityAssetParams, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberModules, MemberOrg, MemberViewer, ProgressReportItem, ProgressStatus, ReportProgress } from "./member.js";
|
|
17
18
|
import { OrgUserStatus, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery } from "./students.js";
|
|
18
19
|
import { CreateOrganization, Organization, UpdateOrganization } from "./organizations.js";
|
|
19
|
-
import {
|
|
20
|
-
import { AcceptInvite, AcceptInviteResult,
|
|
20
|
+
import { Assignment, AssignmentList, ContentIdParam, CreateRole, ItemRole, Member, MemberStatus, MembersPage, MembersQuery, OrgRoleList, OrgRoleView, OrgUserContentParam, OrgUserIdParam, RoleKeyParam, RoleRef, SetRole, TransferOwnership, UpdateRole } from "./members.js";
|
|
21
|
+
import { AcceptInvite, AcceptInviteResult, CreateInvite, GetInviteResult, Invite, InviteTokenParam, RedeemInvite, RedeemInviteResult } from "./invites.js";
|
|
21
22
|
import { ActionInvocationResult, AvailableIntegration, AvailableIntegrationsList, ConfigureRequest, ConnectRequest, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, IntegrationActionInfo, InvokeActionRequest, ReconnectRequest } from "./integrations.js";
|
|
22
23
|
import { PatchSettings, ScopeSettings, SettingsNamespaceParam, SettingsScopeParam, SettingsValue } from "./settings.js";
|
|
24
|
+
import { CreatePlatformApiKey, CreatePlatformOrganization, PlatformOrgIdParam, PlatformOrganization } from "./platform.js";
|
|
23
25
|
import { CreatePost, FeedQuery, FlagReason, PostCommentsPage, PostFeedPage, PostFlag, PostIdParam, PostView, ResolvePostFlags, SchedulePost, SetPostReactions, SpaceQueue, UpdatePost } from "./posts.js";
|
|
24
26
|
import { UpdateProfile, UserProfile } from "./profile.js";
|
|
25
|
-
import {
|
|
26
|
-
export { AcceptInvite, AcceptInviteResult, ActionInvocationResult,
|
|
27
|
+
import { CommunityNotificationSettings, Device, DeviceIdParam, DeviceList, NotificationCategory, NotificationCategoryDefaults, NotificationCategoryList, NotificationChannelInfos, NotificationFilterQuery, NotificationIdParam, NotificationListQuery, NotificationListScopeQuery, NotificationTypeInfo, NotificationTypeInfos, NotificationUnreadCounts, NotificationView, NotificationsPage, OrgNotificationSettings, PatchNotificationSettings, PushConfigView, RegisterDevice, ReplaceNotificationCategories } from "./notifications.js";
|
|
28
|
+
export { AcceptInvite, AcceptInviteResult, ActionInvocationResult, Activity, ActivityAsset, ActivityAssetList, ActivityComments, ActivityFileParams, ActivityList, ActivityPathParam, AddBundleItem, AddDownloadAsset, AddEventAsset, AddEventAttendee, ApiKey, ApiKeyIdParam, ApiKeyList, ApiKeyName, ApiKeyRole, ApiKeyRoleList, Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, Assignment, AssignmentList, Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableIntegration, AvailableIntegrationsList, AvailableTriggers, BlockParam, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, Chat, ChatIdParam, ChatListItem, ChatListQuery, ChatLiveEvent, ChatUnreadSummary, ChatsPage, ClientIdParam, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityNotificationSettings, CommunityParam, CommunityPostParam, CommunitySpaceParam, CommunityThumbnailParams, ConfigureRequest, ConnectRequest, ConnectedApp, ConnectedAppList, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, ContentIdParam, ContentRef, ContentType, Course, CourseActivityEngagement, CourseAnalytics, CourseIdParam, CourseIdPathParam, CourseLearner, CourseLearnersPage, CourseLearnersQuery, CourseProgress, CourseSettings, CourseStatus, CourseThumbnailParams, CoursesPage, CoursesQuery, CreateApiKey, CreateAutomationBody, CreateBundle, CreateCommunity, CreateCourse, CreateDownload, CreateEvent, CreateInvite, CreateModule, CreateOrganization, CreatePlatformApiKey, CreatePlatformOrganization, CreatePost, CreateRole, CreateSpace, CreateWebhookBody, CreatedApiKey, CreatedWebhook, DateTimeInput, Device, DeviceIdParam, DeviceList, DirectChatParam, DirectoryEntry, DirectoryPage, DirectoryQuery, DiscussionActivityParam, DmSettings, Download, DownloadAssetParams, DownloadFile, DownloadFileParams, DownloadIdParam, DownloadStatus, DownloadThumbnailParams, DownloadsPage, DownloadsQuery, EditComment, EditMessage, EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, Entitlement, EntitlementStatus, EntitlementsPage, EntitlementsQuery, ErrorBody, Event, EventAnalytics, EventAssetParams, EventAttendee, EventAttendeeParams, EventAttendeesPage, EventFile, EventFileParams, EventIdParam, EventStatus, EventThumbnailParams, EventsPage, EventsQuery, FeedQuery, FlagReason, GetInviteResult, GrantEntitlement, IntegrationActionInfo, Invite, InviteTokenParam, InvokeActionRequest, ItemRole, LearnActivityAssetParams, Level, ListQuery, LockedCommunitySpace, MarkRead, Matches, Member, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberEvent, MemberEventSummary, MemberEventsPage, MemberEventsQuery, MemberModules, MemberOrg, MemberStatus, MemberViewer, MembersPage, MembersQuery, MessageAttachmentParams, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, Module, ModuleList, ModulePathParam, NotificationCategory, NotificationCategoryDefaults, NotificationCategoryList, NotificationChannelInfos, NotificationFilterQuery, NotificationIdParam, NotificationListQuery, NotificationListScopeQuery, NotificationTypeInfo, NotificationTypeInfos, NotificationUnreadCounts, NotificationView, NotificationsPage, OpenCommunitySpace, OrderedIds, OrgNotificationSettings, OrgRoleList, OrgRoleView, OrgUserBody, OrgUserContentParam, OrgUserIdParam, OrgUserProfileSchema, OrgUserStatus, Organization, OverviewStats, PageQuery, PatchComment, PatchCommunitySettings, PatchCourseSettings, PatchDmSettings, PatchNotificationSettings, PatchSettings, Permission, PermissionDefinition, PermissionDefinitionList, PlatformOrgIdParam, PlatformOrganization, PostAssetParams, PostComment, PostCommentsPage, PostCoverParams, PostFeedPage, PostFlag, PostIdParam, PostView, ProgressReportItem, ProgressStatus, PushConfigView, ReactionCounts, ReactionEmoji, Reactions, ReconnectRequest, RedeemInvite, RedeemInviteResult, RegisterDevice, RenameDownloadAsset, RenameEventAsset, ReorderDownloadAssets, ReorderEventAssets, ReorderInput, ReplaceNotificationCategories, ReplyToComment, ReportComment, ReportProgress, RequestMemberUpload, RequestUpload, ResolveCommentFlags, ResolveMessageFlags, ResolvePostFlags, RevokeEntitlement, RoleKeyParam, RoleRef, SaveActivity, SchedulePost, ScopeSettings, SendMessage, SetMute, SetPostReactions, SetPostSubscription, SetReaction, SetRole, SetSpaceTopics, SettingsNamespaceParam, SettingsScopeParam, SettingsValue, SpaceDetail, SpaceIdParam, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, SpaceQueue, StartDirectChat, StartGroupChat, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, TransferOwnership, UnavailableErrorBody, UpdateAutomationBody, UpdateBundle, UpdateCommunity, UpdateCourse, UpdateDownload, UpdateEvent, UpdateModule, UpdateOrganization, UpdatePost, UpdateProfile, UpdateRole, UpdateSpace, UpdateWebhookBody, UploadFileParams, UploadTicket, UserProfile, UserProfileSchema, ValidationErrorBody, ViewerPermissions, Webhook, WebhookSecret, paginated, refusals };
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { DateTimeInput, ErrorBody, ListQuery,
|
|
1
|
+
import { DateTimeInput, ErrorBody, ListQuery, OrgUserProfileSchema, PageQuery, UnavailableErrorBody, UserProfileSchema, ValidationErrorBody, paginated, refusals } from "./shared.js";
|
|
2
2
|
import { Course, CourseIdParam, CourseSettings, CourseStatus, CoursesPage, CoursesQuery, CreateCourse, PatchCourseSettings, UpdateCourse } from "./content.js";
|
|
3
3
|
import { AddDownloadAsset, CreateDownload, Download, DownloadAssetParams, DownloadFile, DownloadIdParam, DownloadStatus, DownloadsPage, DownloadsQuery, RenameDownloadAsset, ReorderDownloadAssets, UpdateDownload } from "./downloads.js";
|
|
4
|
+
import { AddEventAsset, AddEventAttendee, CreateEvent, Event, EventAnalytics, EventAssetParams, EventAttendee, EventAttendeeParams, EventAttendeesPage, EventFile, EventIdParam, EventStatus, EventsPage, EventsQuery, MemberEvent, MemberEventSummary, MemberEventsPage, MemberEventsQuery, RenameEventAsset, ReorderEventAssets, UpdateEvent } from "./events.js";
|
|
4
5
|
import { AddBundleItem, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, CreateBundle, UpdateBundle } from "./bundles.js";
|
|
5
6
|
import { Activity, ActivityAsset, ActivityAssetList, ActivityList, ActivityPathParam, CourseIdPathParam, CreateModule, Module, ModuleList, ModulePathParam, ReorderInput, SaveActivity, UpdateModule } from "./activities.js";
|
|
6
7
|
import { CourseProgress, LearnActivityAssetParams, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberModules, MemberOrg, MemberViewer, ProgressReportItem, ProgressStatus, ReportProgress } from "./member.js";
|
|
8
|
+
import { Assignment, AssignmentList, ContentIdParam, CreateRole, ItemRole, Member, MemberStatus, MembersPage, MembersQuery, OrgRoleList, OrgRoleView, OrgUserContentParam, OrgUserIdParam, RoleKeyParam, RoleRef, SetRole, TransferOwnership, UpdateRole } from "./members.js";
|
|
7
9
|
import { OrgUserStatus, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery } from "./students.js";
|
|
8
|
-
import { ContentRef, ContentType, Entitlement,
|
|
10
|
+
import { ContentRef, ContentType, Entitlement, EntitlementStatus, EntitlementsPage, EntitlementsQuery, GrantEntitlement, RevokeEntitlement } from "./entitlements.js";
|
|
9
11
|
import { Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableTriggers, CreateAutomationBody, CreateWebhookBody, CreatedWebhook, UpdateAutomationBody, UpdateWebhookBody, Webhook, WebhookSecret } from "./automations.js";
|
|
10
12
|
import { CreateOrganization, Organization, UpdateOrganization } from "./organizations.js";
|
|
11
|
-
import {
|
|
12
|
-
import { AcceptInvite, AcceptInviteResult, ActivateInvite, ActivateInviteResult, CreateInvite, GetInviteResult, Invite, InviteRole, InviteTokenParam, RedeemInvite, RedeemInviteResult } from "./invites.js";
|
|
13
|
+
import { AcceptInvite, AcceptInviteResult, CreateInvite, GetInviteResult, Invite, InviteTokenParam, RedeemInvite, RedeemInviteResult } from "./invites.js";
|
|
13
14
|
import { EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, OverviewStats } from "./dashboard.js";
|
|
14
|
-
import { CourseActivityEngagement, CourseAnalytics } from "./course-analytics.js";
|
|
15
|
+
import { CourseActivityEngagement, CourseAnalytics, CourseLearner, CourseLearnersPage, CourseLearnersQuery } from "./course-analytics.js";
|
|
15
16
|
import { Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, RequestMemberUpload, RequestUpload, UploadTicket } from "./assets.js";
|
|
16
|
-
import { ActivityFileParams, CommunityThumbnailParams, CourseThumbnailParams, DownloadFileParams, DownloadThumbnailParams, MessageAttachmentParams,
|
|
17
|
+
import { ActivityFileParams, CommunityThumbnailParams, CourseThumbnailParams, DownloadFileParams, DownloadThumbnailParams, EventFileParams, EventThumbnailParams, MessageAttachmentParams, PostAssetParams, PostCoverParams, UploadFileParams } from "./files.js";
|
|
17
18
|
import { ActionInvocationResult, AvailableIntegration, AvailableIntegrationsList, ConfigureRequest, ConnectRequest, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, IntegrationActionInfo, InvokeActionRequest, ReconnectRequest } from "./integrations.js";
|
|
18
19
|
import { PatchSettings, ScopeSettings, SettingsNamespaceParam, SettingsScopeParam, SettingsValue } from "./settings.js";
|
|
19
|
-
import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, Reactions, ReplyToComment, ReportComment, ResolveCommentFlags, SetReaction } from "./discussion.js";
|
|
20
|
-
import { ApiKey, ApiKeyIdParam, ApiKeyList, ClientIdParam, ConnectedApp, ConnectedAppList, CreateApiKey, CreatedApiKey,
|
|
21
|
-
import {
|
|
20
|
+
import { ActivityComments, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, DiscussionActivityParam, EditComment, PatchComment, PostComment, ReactionCounts, ReactionEmoji, Reactions, ReplyToComment, ReportComment, ResolveCommentFlags, SetMute, SetPostSubscription, SetReaction } from "./discussion.js";
|
|
21
|
+
import { ApiKey, ApiKeyIdParam, ApiKeyList, ApiKeyName, ApiKeyRole, ApiKeyRoleList, ClientIdParam, ConnectedApp, ConnectedAppList, CreateApiKey, CreatedApiKey, Level, Permission, PermissionDefinition, PermissionDefinitionList, ViewerPermissions } from "./access.js";
|
|
22
|
+
import { CreatePlatformApiKey, CreatePlatformOrganization, PlatformOrgIdParam, PlatformOrganization } from "./platform.js";
|
|
23
|
+
import { CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityPostParam, CommunitySpaceParam, CreateCommunity, CreateSpace, DirectoryEntry, DirectoryPage, DirectoryQuery, DmSettings, LockedCommunitySpace, OpenCommunitySpace, OrderedIds, PatchCommunitySettings, PatchDmSettings, SetSpaceTopics, SpaceDetail, SpaceIdParam, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, UpdateCommunity, UpdateSpace } from "./community.js";
|
|
22
24
|
import { CreatePost, FeedQuery, FlagReason, PostCommentsPage, PostFeedPage, PostFlag, PostIdParam, PostView, ResolvePostFlags, SchedulePost, SetPostReactions, SpaceQueue, UpdatePost } from "./posts.js";
|
|
23
|
-
import { BlockParam, Chat, ChatIdParam, ChatListItem, ChatsPage, CommunityParam, EditMessage, MarkRead, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage,
|
|
25
|
+
import { BlockParam, Chat, ChatIdParam, ChatListItem, ChatListQuery, ChatLiveEvent, ChatUnreadSummary, ChatsPage, CommunityParam, DirectChatParam, EditMessage, MarkRead, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, OrgUserBody, ResolveMessageFlags, SendMessage, StartDirectChat, StartGroupChat } from "./chats.js";
|
|
24
26
|
import { UpdateProfile, UserProfile } from "./profile.js";
|
|
25
|
-
import {
|
|
26
|
-
export { AcceptInvite, AcceptInviteResult, ActionInvocationResult,
|
|
27
|
+
import { CommunityNotificationSettings, Device, DeviceIdParam, DeviceList, NotificationCategory, NotificationCategoryDefaults, NotificationCategoryList, NotificationChannelInfos, NotificationFilterQuery, NotificationIdParam, NotificationListQuery, NotificationListScopeQuery, NotificationTypeInfo, NotificationTypeInfos, NotificationUnreadCounts, NotificationView, NotificationsPage, OrgNotificationSettings, PatchNotificationSettings, PushConfigView, RegisterDevice, ReplaceNotificationCategories } from "./notifications.js";
|
|
28
|
+
export { AcceptInvite, AcceptInviteResult, ActionInvocationResult, Activity, ActivityAsset, ActivityAssetList, ActivityComments, ActivityFileParams, ActivityList, ActivityPathParam, AddBundleItem, AddDownloadAsset, AddEventAsset, AddEventAttendee, ApiKey, ApiKeyIdParam, ApiKeyList, ApiKeyName, ApiKeyRole, ApiKeyRoleList, Asset, AssetIdParam, AssetKind, AssetSource, AssetStatus, AssetsPage, AssetsQuery, Assignment, AssignmentList, Automation, AutomationAction, AutomationActionResult, AutomationIdParam, AutomationKind, AutomationRun, AutomationRunParams, AutomationRunStatus, AutomationRunsPage, AutomationRunsQuery, AutomationTrigger, AutomationsQuery, AvailableAction, AvailableIntegration, AvailableIntegrationsList, AvailableTriggers, BlockParam, Bundle, BundleIdParam, BundleItem, BundleItemParams, BundlesPage, BundlesQuery, Chat, ChatIdParam, ChatListItem, ChatListQuery, ChatLiveEvent, ChatUnreadSummary, ChatsPage, ClientIdParam, Comment, CommentAuthor, CommentIdParam, CommentListItem, CommentReport, CommentReportSummary, CommentSettings, CommentStatus, CommentView, CommentsConfig, CommentsPage, CommentsQuery, CommunitiesPage, CommunitiesQuery, Community, CommunityAnalytics, CommunityChatParam, CommunityCommentParam, CommunityHome, CommunityHomeSpace, CommunityIdParam, CommunityMember, CommunityMembersPage, CommunityMembersQuery, CommunityMessageParam, CommunityNotificationSettings, CommunityParam, CommunityPostParam, CommunitySpaceParam, CommunityThumbnailParams, ConfigureRequest, ConnectRequest, ConnectedApp, ConnectedAppList, Connection, ConnectionActionParams, ConnectionIdParam, ConnectionsList, ContentIdParam, ContentRef, ContentType, Course, CourseActivityEngagement, CourseAnalytics, CourseIdParam, CourseIdPathParam, CourseLearner, CourseLearnersPage, CourseLearnersQuery, CourseProgress, CourseSettings, CourseStatus, CourseThumbnailParams, CoursesPage, CoursesQuery, CreateApiKey, CreateAutomationBody, CreateBundle, CreateCommunity, CreateCourse, CreateDownload, CreateEvent, CreateInvite, CreateModule, CreateOrganization, CreatePlatformApiKey, CreatePlatformOrganization, CreatePost, CreateRole, CreateSpace, CreateWebhookBody, CreatedApiKey, CreatedWebhook, DateTimeInput, Device, DeviceIdParam, DeviceList, DirectChatParam, DirectoryEntry, DirectoryPage, DirectoryQuery, DiscussionActivityParam, DmSettings, Download, DownloadAssetParams, DownloadFile, DownloadFileParams, DownloadIdParam, DownloadStatus, DownloadThumbnailParams, DownloadsPage, DownloadsQuery, EditComment, EditMessage, EnrollmentPoint, EnrollmentSeries, EnrollmentSeriesQuery, Entitlement, EntitlementStatus, EntitlementsPage, EntitlementsQuery, ErrorBody, Event, EventAnalytics, EventAssetParams, EventAttendee, EventAttendeeParams, EventAttendeesPage, EventFile, EventFileParams, EventIdParam, EventStatus, EventThumbnailParams, EventsPage, EventsQuery, FeedQuery, FlagReason, GetInviteResult, GrantEntitlement, IntegrationActionInfo, Invite, InviteTokenParam, InvokeActionRequest, ItemRole, LearnActivityAssetParams, Level, ListQuery, LockedCommunitySpace, MarkRead, Member, MemberCourseIdParam, MemberCourses, MemberDownload, MemberDownloads, MemberEvent, MemberEventSummary, MemberEventsPage, MemberEventsQuery, MemberModules, MemberOrg, MemberStatus, MemberViewer, MembersPage, MembersQuery, MessageAttachmentParams, MessageFlag, MessageIdParam, MessageQueue, MessageQueueEntry, MessageView, MessagesPage, Module, ModuleList, ModulePathParam, NotificationCategory, NotificationCategoryDefaults, NotificationCategoryList, NotificationChannelInfos, NotificationFilterQuery, NotificationIdParam, NotificationListQuery, NotificationListScopeQuery, NotificationTypeInfo, NotificationTypeInfos, NotificationUnreadCounts, NotificationView, NotificationsPage, OpenCommunitySpace, OrderedIds, OrgNotificationSettings, OrgRoleList, OrgRoleView, OrgUserBody, OrgUserContentParam, OrgUserIdParam, OrgUserProfileSchema, OrgUserStatus, Organization, OverviewStats, PageQuery, PatchComment, PatchCommunitySettings, PatchCourseSettings, PatchDmSettings, PatchNotificationSettings, PatchSettings, Permission, PermissionDefinition, PermissionDefinitionList, PlatformOrgIdParam, PlatformOrganization, PostAssetParams, PostComment, PostCommentsPage, PostCoverParams, PostFeedPage, PostFlag, PostIdParam, PostView, ProgressReportItem, ProgressStatus, PushConfigView, ReactionCounts, ReactionEmoji, Reactions, ReconnectRequest, RedeemInvite, RedeemInviteResult, RegisterDevice, RenameDownloadAsset, RenameEventAsset, ReorderDownloadAssets, ReorderEventAssets, ReorderInput, ReplaceNotificationCategories, ReplyToComment, ReportComment, ReportProgress, RequestMemberUpload, RequestUpload, ResolveCommentFlags, ResolveMessageFlags, ResolvePostFlags, RevokeEntitlement, RoleKeyParam, RoleRef, SaveActivity, SchedulePost, ScopeSettings, SendMessage, SetMute, SetPostReactions, SetPostSubscription, SetReaction, SetRole, SetSpaceTopics, SettingsNamespaceParam, SettingsScopeParam, SettingsValue, SpaceDetail, SpaceIdParam, SpaceLinkBody, SpaceLinkParam, SpaceMember, SpaceMemberParam, SpaceMembersPage, SpaceQueue, StartDirectChat, StartGroupChat, Student, StudentAnalytics, StudentCourseProgress, StudentIdParam, StudentsPage, StudentsQuery, TransferOwnership, UnavailableErrorBody, UpdateAutomationBody, UpdateBundle, UpdateCommunity, UpdateCourse, UpdateDownload, UpdateEvent, UpdateModule, UpdateOrganization, UpdatePost, UpdateProfile, UpdateRole, UpdateSpace, UpdateWebhookBody, UploadFileParams, UploadTicket, UserProfile, UserProfileSchema, ValidationErrorBody, ViewerPermissions, Webhook, WebhookSecret, paginated, refusals };
|
|
@@ -1,66 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/http/schemas/invites.d.ts
|
|
3
|
-
/** Roles an invitation can carry. Never owner. */
|
|
4
|
-
declare const InviteRole: z.ZodEnum<{
|
|
5
|
-
admin: "admin";
|
|
6
|
-
instructor: "instructor";
|
|
7
|
-
moderator: "moderator";
|
|
8
|
-
student: "student";
|
|
9
|
-
}>;
|
|
10
|
-
type InviteRole = z.infer<typeof InviteRole>;
|
|
11
3
|
declare const Invite: z.ZodObject<{
|
|
12
4
|
id: z.ZodString;
|
|
13
5
|
email: z.ZodString;
|
|
14
|
-
|
|
15
|
-
admin: "admin";
|
|
16
|
-
instructor: "instructor";
|
|
17
|
-
moderator: "moderator";
|
|
18
|
-
student: "student";
|
|
19
|
-
}>;
|
|
6
|
+
roleKey: z.ZodString;
|
|
20
7
|
status: z.ZodString;
|
|
21
8
|
expiresAt: z.ZodNullable<z.ZodDate>;
|
|
22
9
|
createdAt: z.ZodDate;
|
|
23
10
|
}, z.core.$strip>;
|
|
24
11
|
type Invite = z.infer<typeof Invite>;
|
|
25
|
-
/** A student is created by this call, not by the acceptance that follows it, so
|
|
26
|
-
* the admin names them here. `sendEmail: false` still creates everything —
|
|
27
|
-
* only delivery is skipped. Both are ignored for staff roles, whose org user
|
|
28
|
-
* is mirrored from the auth provider when they join. */
|
|
29
12
|
declare const CreateInvite: z.ZodObject<{
|
|
30
13
|
email: z.ZodEmail;
|
|
31
|
-
|
|
32
|
-
admin: "admin";
|
|
33
|
-
instructor: "instructor";
|
|
34
|
-
moderator: "moderator";
|
|
35
|
-
student: "student";
|
|
36
|
-
}>;
|
|
14
|
+
roleKey: z.ZodDefault<z.ZodString>;
|
|
37
15
|
firstName: z.ZodOptional<z.ZodString>;
|
|
38
16
|
lastName: z.ZodOptional<z.ZodString>;
|
|
39
17
|
sendEmail: z.ZodDefault<z.ZodBoolean>;
|
|
40
18
|
}, z.core.$strip>;
|
|
41
19
|
type CreateInvite = z.infer<typeof CreateInvite>;
|
|
42
|
-
declare const ActivateInvite: z.ZodObject<{
|
|
43
|
-
token: z.ZodString;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
type ActivateInvite = z.infer<typeof ActivateInvite>;
|
|
46
|
-
/** accepted → consumed for the current session; auth-required → sign up/in first.
|
|
47
|
-
* accountExists says which of the two: the invitee's email already has an
|
|
48
|
-
* account (sign in to link it) or it does not (create one). */
|
|
49
|
-
declare const ActivateInviteResult: z.ZodObject<{
|
|
50
|
-
status: z.ZodEnum<{
|
|
51
|
-
accepted: "accepted";
|
|
52
|
-
"auth-required": "auth-required";
|
|
53
|
-
}>;
|
|
54
|
-
email: z.ZodString;
|
|
55
|
-
role: z.ZodEnum<{
|
|
56
|
-
admin: "admin";
|
|
57
|
-
instructor: "instructor";
|
|
58
|
-
moderator: "moderator";
|
|
59
|
-
student: "student";
|
|
60
|
-
}>;
|
|
61
|
-
accountExists: z.ZodBoolean;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
type ActivateInviteResult = z.infer<typeof ActivateInviteResult>;
|
|
64
20
|
declare const InviteTokenParam: z.ZodObject<{
|
|
65
21
|
token: z.ZodString;
|
|
66
22
|
}, z.core.$strip>;
|
|
@@ -95,5 +51,5 @@ type AcceptInvite = z.infer<typeof AcceptInvite>;
|
|
|
95
51
|
declare const AcceptInviteResult: z.ZodObject<{}, z.core.$strip>;
|
|
96
52
|
type AcceptInviteResult = z.infer<typeof AcceptInviteResult>;
|
|
97
53
|
//#endregion
|
|
98
|
-
export { AcceptInvite, AcceptInviteResult,
|
|
54
|
+
export { AcceptInvite, AcceptInviteResult, CreateInvite, GetInviteResult, Invite, InviteTokenParam, RedeemInvite, RedeemInviteResult };
|
|
99
55
|
//# sourceMappingURL=invites.d.ts.map
|
|
@@ -1,42 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { emailSchema } from "@headless-lms/core/schemas";
|
|
2
|
+
import { emailSchema, roleKeySchema } from "@headless-lms/core/schemas";
|
|
3
3
|
//#region src/http/schemas/invites.ts
|
|
4
|
-
/** Roles an invitation can carry. Never owner. */
|
|
5
|
-
const InviteRole = z.enum([
|
|
6
|
-
"admin",
|
|
7
|
-
"instructor",
|
|
8
|
-
"moderator",
|
|
9
|
-
"student"
|
|
10
|
-
]);
|
|
11
4
|
const Invite = z.object({
|
|
12
5
|
id: z.string(),
|
|
13
6
|
email: z.string(),
|
|
14
|
-
|
|
7
|
+
roleKey: z.string(),
|
|
15
8
|
status: z.string(),
|
|
16
9
|
expiresAt: z.date().nullable(),
|
|
17
10
|
createdAt: z.date()
|
|
18
11
|
});
|
|
19
|
-
/** A student is created by this call, not by the acceptance that follows it, so
|
|
20
|
-
* the admin names them here. `sendEmail: false` still creates everything —
|
|
21
|
-
* only delivery is skipped. Both are ignored for staff roles, whose org user
|
|
22
|
-
* is mirrored from the auth provider when they join. */
|
|
23
12
|
const CreateInvite = z.object({
|
|
24
13
|
email: emailSchema,
|
|
25
|
-
|
|
14
|
+
roleKey: roleKeySchema.default("member"),
|
|
26
15
|
firstName: z.string().trim().min(1).optional(),
|
|
27
16
|
lastName: z.string().trim().min(1).optional(),
|
|
28
17
|
sendEmail: z.boolean().default(true)
|
|
29
18
|
});
|
|
30
|
-
const ActivateInvite = z.object({ token: z.string().min(1) });
|
|
31
|
-
/** accepted → consumed for the current session; auth-required → sign up/in first.
|
|
32
|
-
* accountExists says which of the two: the invitee's email already has an
|
|
33
|
-
* account (sign in to link it) or it does not (create one). */
|
|
34
|
-
const ActivateInviteResult = z.object({
|
|
35
|
-
status: z.enum(["accepted", "auth-required"]),
|
|
36
|
-
email: z.string(),
|
|
37
|
-
role: InviteRole,
|
|
38
|
-
accountExists: z.boolean()
|
|
39
|
-
});
|
|
40
19
|
const InviteTokenParam = z.object({ token: z.string().min(1) });
|
|
41
20
|
/** Everything the invite landing page needs to render: who the invitation is
|
|
42
21
|
* for, and the names the admin entered, which prefill sign-up. Whether the
|
|
@@ -59,6 +38,6 @@ const RedeemInviteResult = z.object({ status: z.literal("accepted") });
|
|
|
59
38
|
const AcceptInvite = z.object({ token: z.string().min(1) });
|
|
60
39
|
const AcceptInviteResult = z.object({});
|
|
61
40
|
//#endregion
|
|
62
|
-
export { AcceptInvite, AcceptInviteResult,
|
|
41
|
+
export { AcceptInvite, AcceptInviteResult, CreateInvite, GetInviteResult, Invite, InviteTokenParam, RedeemInvite, RedeemInviteResult };
|
|
63
42
|
|
|
64
43
|
//# sourceMappingURL=invites.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invites.js","names":[],"sources":["../../../src/http/schemas/invites.ts"],"sourcesContent":["// Invites resource schemas — domain-owned invites (staff + student).\nimport { z } from 'zod';\nimport { emailSchema } from '@headless-lms/core/schemas';\n\
|
|
1
|
+
{"version":3,"file":"invites.js","names":[],"sources":["../../../src/http/schemas/invites.ts"],"sourcesContent":["// Invites resource schemas — domain-owned invites (staff + student).\nimport { z } from 'zod';\nimport { emailSchema, roleKeySchema } from '@headless-lms/core/schemas';\n\nexport const Invite = z.object({\n id: z.string(),\n email: z.string(),\n roleKey: z.string(),\n status: z.string(),\n expiresAt: z.date().nullable(),\n createdAt: z.date(),\n});\nexport type Invite = z.infer<typeof Invite>;\n\nexport const CreateInvite = z.object({\n email: emailSchema,\n roleKey: roleKeySchema.default('member'),\n firstName: z.string().trim().min(1).optional(),\n lastName: z.string().trim().min(1).optional(),\n sendEmail: z.boolean().default(true),\n});\nexport type CreateInvite = z.infer<typeof CreateInvite>;\n\nexport const InviteTokenParam = z.object({ token: z.string().min(1) });\nexport type InviteTokenParam = z.infer<typeof InviteTokenParam>;\n\n/** Everything the invite landing page needs to render: who the invitation is\n * for, and the names the admin entered, which prefill sign-up. Whether the\n * address already has a login is not reported — the sign-up form discovers\n * that from a duplicate-signup rejection and switches to sign-in. */\nexport const GetInviteResult = z.object({\n email: z.string(),\n firstName: z.string().nullable(),\n lastName: z.string().nullable(),\n});\nexport type GetInviteResult = z.infer<typeof GetInviteResult>;\n\n/** Redeem: mints the session and accepts the invite in one request. `name` is\n * required only when no account exists yet (the sign-up branch). The email is\n * never sent — it is read from the invitation row, so it cannot be steered. */\nexport const RedeemInvite = z.object({\n token: z.string().min(1),\n password: z.string().min(1),\n name: z.string().min(1).optional(),\n});\nexport type RedeemInvite = z.infer<typeof RedeemInvite>;\n\nexport const RedeemInviteResult = z.object({ status: z.literal('accepted') });\nexport type RedeemInviteResult = z.infer<typeof RedeemInviteResult>;\n\nexport const AcceptInvite = z.object({ token: z.string().min(1) });\nexport type AcceptInvite = z.infer<typeof AcceptInvite>;\n\nexport const AcceptInviteResult = z.object({});\nexport type AcceptInviteResult = z.infer<typeof AcceptInviteResult>;\n"],"mappings":";;;AAIA,MAAa,SAAS,EAAE,OAAO;CAC7B,IAAI,EAAE,OAAO;CACb,OAAO,EAAE,OAAO;CAChB,SAAS,EAAE,OAAO;CAClB,QAAQ,EAAE,OAAO;CACjB,WAAW,EAAE,KAAK,CAAC,CAAC,SAAS;CAC7B,WAAW,EAAE,KAAK;AACpB,CAAC;AAGD,MAAa,eAAe,EAAE,OAAO;CACnC,OAAO;CACP,SAAS,cAAc,QAAQ,QAAQ;CACvC,WAAW,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;CAC5C,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI;AACrC,CAAC;AAGD,MAAa,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;;;;;AAOrE,MAAa,kBAAkB,EAAE,OAAO;CACtC,OAAO,EAAE,OAAO;CAChB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS;CAC/B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS;AAChC,CAAC;;;;AAMD,MAAa,eAAe,EAAE,OAAO;CACnC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CACvB,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;AACnC,CAAC;AAGD,MAAa,qBAAqB,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,UAAU,EAAE,CAAC;AAG5E,MAAa,eAAe,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;AAGjE,MAAa,qBAAqB,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -113,13 +113,100 @@ type MemberOrg = z.infer<typeof MemberOrg>;
|
|
|
113
113
|
* an auth user; the learner surface is keyed on `org_users.id`. */
|
|
114
114
|
declare const MemberViewer: z.ZodObject<{
|
|
115
115
|
orgUserId: z.ZodString;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
orgRole: z.ZodObject<{
|
|
117
|
+
key: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
permissions: z.ZodArray<z.ZodEnum<{
|
|
121
|
+
"organizations:read": "organizations:read";
|
|
122
|
+
"organizations:write": "organizations:write";
|
|
123
|
+
"api_keys:read": "api_keys:read";
|
|
124
|
+
"api_keys:write": "api_keys:write";
|
|
125
|
+
"api_keys:delete": "api_keys:delete";
|
|
126
|
+
"notification_categories:read": "notification_categories:read";
|
|
127
|
+
"notification_categories:write": "notification_categories:write";
|
|
128
|
+
"integrations:read": "integrations:read";
|
|
129
|
+
"integrations:write": "integrations:write";
|
|
130
|
+
"integrations:delete": "integrations:delete";
|
|
131
|
+
"analytics:read": "analytics:read";
|
|
132
|
+
"people:read": "people:read";
|
|
133
|
+
"people:write": "people:write";
|
|
134
|
+
"people:delete": "people:delete";
|
|
135
|
+
"roles:read": "roles:read";
|
|
136
|
+
"roles:write": "roles:write";
|
|
137
|
+
"roles:delete": "roles:delete";
|
|
138
|
+
"access:read": "access:read";
|
|
139
|
+
"access:write": "access:write";
|
|
140
|
+
"bundles:read": "bundles:read";
|
|
141
|
+
"bundles:write": "bundles:write";
|
|
142
|
+
"bundles:delete": "bundles:delete";
|
|
143
|
+
"media:read": "media:read";
|
|
144
|
+
"media:write": "media:write";
|
|
145
|
+
"media:delete": "media:delete";
|
|
146
|
+
"courses:read": "courses:read";
|
|
147
|
+
"courses:write": "courses:write";
|
|
148
|
+
"courses:delete": "courses:delete";
|
|
149
|
+
"courses:moderate": "courses:moderate";
|
|
150
|
+
"progress:read": "progress:read";
|
|
151
|
+
"downloads:read": "downloads:read";
|
|
152
|
+
"downloads:write": "downloads:write";
|
|
153
|
+
"downloads:delete": "downloads:delete";
|
|
154
|
+
"communities:read": "communities:read";
|
|
155
|
+
"communities:write": "communities:write";
|
|
156
|
+
"communities:delete": "communities:delete";
|
|
157
|
+
"communities:moderate": "communities:moderate";
|
|
158
|
+
"events:read": "events:read";
|
|
159
|
+
"events:write": "events:write";
|
|
160
|
+
"events:delete": "events:delete";
|
|
161
|
+
"automations:read": "automations:read";
|
|
162
|
+
"automations:write": "automations:write";
|
|
163
|
+
"automations:delete": "automations:delete";
|
|
164
|
+
}>>;
|
|
165
|
+
orgPermissions: z.ZodArray<z.ZodEnum<{
|
|
166
|
+
"organizations:read": "organizations:read";
|
|
167
|
+
"organizations:write": "organizations:write";
|
|
168
|
+
"api_keys:read": "api_keys:read";
|
|
169
|
+
"api_keys:write": "api_keys:write";
|
|
170
|
+
"api_keys:delete": "api_keys:delete";
|
|
171
|
+
"notification_categories:read": "notification_categories:read";
|
|
172
|
+
"notification_categories:write": "notification_categories:write";
|
|
173
|
+
"integrations:read": "integrations:read";
|
|
174
|
+
"integrations:write": "integrations:write";
|
|
175
|
+
"integrations:delete": "integrations:delete";
|
|
176
|
+
"analytics:read": "analytics:read";
|
|
177
|
+
"people:read": "people:read";
|
|
178
|
+
"people:write": "people:write";
|
|
179
|
+
"people:delete": "people:delete";
|
|
180
|
+
"roles:read": "roles:read";
|
|
181
|
+
"roles:write": "roles:write";
|
|
182
|
+
"roles:delete": "roles:delete";
|
|
183
|
+
"access:read": "access:read";
|
|
184
|
+
"access:write": "access:write";
|
|
185
|
+
"bundles:read": "bundles:read";
|
|
186
|
+
"bundles:write": "bundles:write";
|
|
187
|
+
"bundles:delete": "bundles:delete";
|
|
188
|
+
"media:read": "media:read";
|
|
189
|
+
"media:write": "media:write";
|
|
190
|
+
"media:delete": "media:delete";
|
|
191
|
+
"courses:read": "courses:read";
|
|
192
|
+
"courses:write": "courses:write";
|
|
193
|
+
"courses:delete": "courses:delete";
|
|
194
|
+
"courses:moderate": "courses:moderate";
|
|
195
|
+
"progress:read": "progress:read";
|
|
196
|
+
"downloads:read": "downloads:read";
|
|
197
|
+
"downloads:write": "downloads:write";
|
|
198
|
+
"downloads:delete": "downloads:delete";
|
|
199
|
+
"communities:read": "communities:read";
|
|
200
|
+
"communities:write": "communities:write";
|
|
201
|
+
"communities:delete": "communities:delete";
|
|
202
|
+
"communities:moderate": "communities:moderate";
|
|
203
|
+
"events:read": "events:read";
|
|
204
|
+
"events:write": "events:write";
|
|
205
|
+
"events:delete": "events:delete";
|
|
206
|
+
"automations:read": "automations:read";
|
|
207
|
+
"automations:write": "automations:write";
|
|
208
|
+
"automations:delete": "automations:delete";
|
|
209
|
+
}>>;
|
|
123
210
|
}, z.core.$strip>;
|
|
124
211
|
type MemberViewer = z.infer<typeof MemberViewer>;
|
|
125
212
|
/** One reported fact — never a decision. `asset` names the subject within the
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { OrgRole } from "./shared.js";
|
|
2
1
|
import { Course } from "./content.js";
|
|
3
2
|
import { Download, DownloadFile } from "./downloads.js";
|
|
4
3
|
import { Module } from "./activities.js";
|
|
5
4
|
import { z } from "zod";
|
|
6
|
-
import { progressReportItemSchema } from "@headless-lms/core/schemas";
|
|
5
|
+
import { permissionSchema, progressReportItemSchema } from "@headless-lms/core/schemas";
|
|
7
6
|
//#region src/http/schemas/member.ts
|
|
8
7
|
/** Courses the authenticated student is actively enrolled in (published only). */
|
|
9
8
|
const MemberCourses = z.array(Course);
|
|
@@ -31,7 +30,12 @@ const MemberOrg = z.object({
|
|
|
31
30
|
* an auth user; the learner surface is keyed on `org_users.id`. */
|
|
32
31
|
const MemberViewer = z.object({
|
|
33
32
|
orgUserId: z.string(),
|
|
34
|
-
|
|
33
|
+
orgRole: z.object({
|
|
34
|
+
key: z.string(),
|
|
35
|
+
name: z.string()
|
|
36
|
+
}),
|
|
37
|
+
permissions: z.array(permissionSchema),
|
|
38
|
+
orgPermissions: z.array(permissionSchema)
|
|
35
39
|
});
|
|
36
40
|
/** One reported fact — never a decision. `asset` names the subject within the
|
|
37
41
|
* activity (absent = the activity itself); `completed` is the learner's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"member.js","names":[],"sources":["../../../src/http/schemas/member.ts"],"sourcesContent":["// Member resource schemas — the student-facing read surface. Reuses the Course\n// and Module payloads (identical wire shape to the back-office API, including\n// the opaque activity `settings` blob) so one renderer path serves both.\nimport { z } from 'zod';\nimport { progressReportItemSchema } from '@headless-lms/core/schemas';\nimport { Course } from './content.js';\nimport { Module } from './activities.js';\nimport { Download, DownloadFile } from './downloads.js';\nimport {
|
|
1
|
+
{"version":3,"file":"member.js","names":[],"sources":["../../../src/http/schemas/member.ts"],"sourcesContent":["// Member resource schemas — the student-facing read surface. Reuses the Course\n// and Module payloads (identical wire shape to the back-office API, including\n// the opaque activity `settings` blob) so one renderer path serves both.\nimport { z } from 'zod';\nimport { progressReportItemSchema } from '@headless-lms/core/schemas';\nimport { Course } from './content.js';\nimport { Module } from './activities.js';\nimport { Download, DownloadFile } from './downloads.js';\nimport { permissionSchema } from '@headless-lms/core/schemas';\n\n/** Courses the authenticated student is actively enrolled in (published only). */\nexport const MemberCourses = z.array(Course);\nexport type MemberCourses = z.infer<typeof MemberCourses>;\n\n/** One enrolled course's module→activity tree (published activities only). */\nexport const MemberModules = z.array(Module);\nexport type MemberModules = z.infer<typeof MemberModules>;\n\nexport const MemberCourseIdParam = z.object({ courseId: z.string() });\nexport type MemberCourseIdParam = z.infer<typeof MemberCourseIdParam>;\n\nexport const LearnActivityAssetParams = z.object({ activityId: z.string(), assetId: z.string() });\nexport type LearnActivityAssetParams = z.infer<typeof LearnActivityAssetParams>;\n\n/** Downloads the authenticated student is actively entitled to (published only). */\nexport const MemberDownloads = z.array(Download);\nexport type MemberDownloads = z.infer<typeof MemberDownloads>;\n\n/** One entitled download plus its ordered assets. */\nexport const MemberDownload = z.object({\n download: Download,\n assets: z.array(DownloadFile),\n});\nexport type MemberDownload = z.infer<typeof MemberDownload>;\n\n/** The portal org's public identity — the student surface themes against it. */\nexport const MemberOrg = z.object({\n id: z.string(),\n name: z.string(),\n slug: z.string(),\n});\nexport type MemberOrg = z.infer<typeof MemberOrg>;\n\n/** Who the caller is within the session's org. The session cookie identifies\n * an auth user; the learner surface is keyed on `org_users.id`. */\nexport const MemberViewer = z.object({\n orgUserId: z.string(),\n orgRole: z.object({ key: z.string(), name: z.string() }),\n permissions: z.array(permissionSchema),\n orgPermissions: z.array(permissionSchema),\n});\nexport type MemberViewer = z.infer<typeof MemberViewer>;\n\n/** One reported fact — never a decision. `asset` names the subject within the\n * activity (absent = the activity itself); `completed` is the learner's\n * activity-level claim. Every other field is the asset type's own vocabulary,\n * passed through opaquely. */\nexport const ProgressReportItem = progressReportItemSchema;\nexport type ProgressReportItem = z.infer<typeof ProgressReportItem>;\n\n/** The report envelope: the target (key names the content type) and a batch of\n * items. `[]` is a bare touch — it creates the record. */\nexport const ReportProgress = z\n .object({\n activity: z.string(),\n reports: z.array(ProgressReportItem),\n })\n .strict();\nexport type ReportProgress = z.infer<typeof ReportProgress>;\n\n/** The reported target's state after the service decided. */\nexport const ProgressStatus = z.object({\n status: z.enum(['in-progress', 'completed']),\n});\nexport type ProgressStatus = z.infer<typeof ProgressStatus>;\n\n/** Per-course progress, derived on read against current structure. */\nexport const CourseProgress = z.object({\n /** Keyed by activity id; absent key = not started. */\n activities: z.record(z.string(), z.enum(['in-progress', 'completed'])),\n /** Integer 0–100, completed ÷ current activities, rounded. */\n percent: z.int().min(0).max(100),\n completed: z.boolean(),\n /** Keyed by activity id: the per-asset reported state map (opaque). */\n positions: z.record(z.string(), z.unknown()),\n});\nexport type CourseProgress = z.infer<typeof CourseProgress>;\n"],"mappings":";;;;;;;AAWA,MAAa,gBAAgB,EAAE,MAAM,MAAM;;AAI3C,MAAa,gBAAgB,EAAE,MAAM,MAAM;AAG3C,MAAa,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAGpE,MAAa,2BAA2B,EAAE,OAAO;CAAE,YAAY,EAAE,OAAO;CAAG,SAAS,EAAE,OAAO;AAAE,CAAC;;AAIhG,MAAa,kBAAkB,EAAE,MAAM,QAAQ;;AAI/C,MAAa,iBAAiB,EAAE,OAAO;CACrC,UAAU;CACV,QAAQ,EAAE,MAAM,YAAY;AAC9B,CAAC;;AAID,MAAa,YAAY,EAAE,OAAO;CAChC,IAAI,EAAE,OAAO;CACb,MAAM,EAAE,OAAO;CACf,MAAM,EAAE,OAAO;AACjB,CAAC;;;AAKD,MAAa,eAAe,EAAE,OAAO;CACnC,WAAW,EAAE,OAAO;CACpB,SAAS,EAAE,OAAO;EAAE,KAAK,EAAE,OAAO;EAAG,MAAM,EAAE,OAAO;CAAE,CAAC;CACvD,aAAa,EAAE,MAAM,gBAAgB;CACrC,gBAAgB,EAAE,MAAM,gBAAgB;AAC1C,CAAC;;;;;AAOD,MAAa,qBAAqB;;;AAKlC,MAAa,iBAAiB,EAC3B,OAAO;CACN,UAAU,EAAE,OAAO;CACnB,SAAS,EAAE,MAAM,kBAAkB;AACrC,CAAC,CAAC,CACD,OAAO;;AAIV,MAAa,iBAAiB,EAAE,OAAO,EACrC,QAAQ,EAAE,KAAK,CAAC,eAAe,WAAW,CAAC,EAC7C,CAAC;;AAID,MAAa,iBAAiB,EAAE,OAAO;;CAErC,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,eAAe,WAAW,CAAC,CAAC;;CAErE,SAAS,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG;CAC/B,WAAW,EAAE,QAAQ;;CAErB,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;AAC7C,CAAC"}
|