@ttt-productions/ttt-core 0.7.18 → 0.9.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.
Files changed (113) hide show
  1. package/dist/doc-schemas/audit.d.ts +105 -0
  2. package/dist/doc-schemas/audit.d.ts.map +1 -0
  3. package/dist/doc-schemas/audit.js +39 -0
  4. package/dist/doc-schemas/audit.js.map +1 -0
  5. package/dist/doc-schemas/commissions.d.ts +313 -0
  6. package/dist/doc-schemas/commissions.d.ts.map +1 -0
  7. package/dist/doc-schemas/commissions.js +80 -0
  8. package/dist/doc-schemas/commissions.js.map +1 -0
  9. package/dist/doc-schemas/content.d.ts +650 -0
  10. package/dist/doc-schemas/content.d.ts.map +1 -0
  11. package/dist/doc-schemas/content.js +182 -0
  12. package/dist/doc-schemas/content.js.map +1 -0
  13. package/dist/doc-schemas/index.d.ts +15 -0
  14. package/dist/doc-schemas/index.d.ts.map +1 -0
  15. package/dist/doc-schemas/index.js +20 -0
  16. package/dist/doc-schemas/index.js.map +1 -0
  17. package/dist/doc-schemas/messaging.d.ts +462 -0
  18. package/dist/doc-schemas/messaging.d.ts.map +1 -0
  19. package/dist/doc-schemas/messaging.js +81 -0
  20. package/dist/doc-schemas/messaging.js.map +1 -0
  21. package/dist/doc-schemas/moderation.d.ts +337 -0
  22. package/dist/doc-schemas/moderation.d.ts.map +1 -0
  23. package/dist/doc-schemas/moderation.js +77 -0
  24. package/dist/doc-schemas/moderation.js.map +1 -0
  25. package/dist/doc-schemas/notifications.d.ts +304 -0
  26. package/dist/doc-schemas/notifications.d.ts.map +1 -0
  27. package/dist/doc-schemas/notifications.js +79 -0
  28. package/dist/doc-schemas/notifications.js.map +1 -0
  29. package/dist/doc-schemas/operational.d.ts +130 -0
  30. package/dist/doc-schemas/operational.d.ts.map +1 -0
  31. package/dist/doc-schemas/operational.js +54 -0
  32. package/dist/doc-schemas/operational.js.map +1 -0
  33. package/dist/doc-schemas/publicUser.d.ts +31 -0
  34. package/dist/doc-schemas/publicUser.d.ts.map +1 -0
  35. package/dist/doc-schemas/publicUser.js +17 -0
  36. package/dist/doc-schemas/publicUser.js.map +1 -0
  37. package/dist/doc-schemas/registry.d.ts +12807 -0
  38. package/dist/doc-schemas/registry.d.ts.map +1 -0
  39. package/dist/doc-schemas/registry.js +124 -0
  40. package/dist/doc-schemas/registry.js.map +1 -0
  41. package/dist/doc-schemas/report-docs.d.ts +355 -0
  42. package/dist/doc-schemas/report-docs.d.ts.map +1 -0
  43. package/dist/doc-schemas/report-docs.js +114 -0
  44. package/dist/doc-schemas/report-docs.js.map +1 -0
  45. package/dist/doc-schemas/social.d.ts +257 -0
  46. package/dist/doc-schemas/social.d.ts.map +1 -0
  47. package/dist/doc-schemas/social.js +82 -0
  48. package/dist/doc-schemas/social.js.map +1 -0
  49. package/dist/doc-schemas/system.d.ts +44 -0
  50. package/dist/doc-schemas/system.d.ts.map +1 -0
  51. package/dist/doc-schemas/system.js +23 -0
  52. package/dist/doc-schemas/system.js.map +1 -0
  53. package/dist/doc-schemas/user.d.ts +296 -0
  54. package/dist/doc-schemas/user.d.ts.map +1 -0
  55. package/dist/doc-schemas/user.js +79 -0
  56. package/dist/doc-schemas/user.js.map +1 -0
  57. package/dist/doc-schemas/work-project.d.ts +320 -0
  58. package/dist/doc-schemas/work-project.d.ts.map +1 -0
  59. package/dist/doc-schemas/work-project.js +104 -0
  60. package/dist/doc-schemas/work-project.js.map +1 -0
  61. package/dist/media/atoms.d.ts +6 -6
  62. package/dist/media/domain-events.d.ts +136 -136
  63. package/dist/media/pending-media.d.ts +1294 -1294
  64. package/dist/media/target-info.d.ts +39 -39
  65. package/dist/media/target-info.d.ts.map +1 -1
  66. package/dist/media/target-info.js +0 -5
  67. package/dist/media/target-info.js.map +1 -1
  68. package/dist/paths/collections.d.ts +1 -1
  69. package/dist/paths/collections.d.ts.map +1 -1
  70. package/dist/paths/collections.js +2 -1
  71. package/dist/paths/collections.js.map +1 -1
  72. package/dist/paths/path-builders.d.ts +0 -1
  73. package/dist/paths/path-builders.d.ts.map +1 -1
  74. package/dist/paths/path-builders.js +0 -1
  75. package/dist/paths/path-builders.js.map +1 -1
  76. package/dist/schemas/admin-dispatch-actions.d.ts +4 -4
  77. package/dist/schemas/admin.d.ts +48 -49
  78. package/dist/schemas/admin.d.ts.map +1 -1
  79. package/dist/schemas/chat.d.ts +30 -30
  80. package/dist/schemas/hall-library.d.ts +8 -8
  81. package/dist/schemas/notification.d.ts +14 -14
  82. package/dist/schemas/social.d.ts +8 -8
  83. package/dist/schemas/users.d.ts +2 -2
  84. package/dist/schemas/work-project-management.d.ts +34 -34
  85. package/dist/types/admin.d.ts +1 -1
  86. package/dist/types/admin.d.ts.map +1 -1
  87. package/dist/types/commissions.d.ts +1 -83
  88. package/dist/types/commissions.d.ts.map +1 -1
  89. package/dist/types/content.d.ts +5 -176
  90. package/dist/types/content.d.ts.map +1 -1
  91. package/dist/types/content.js.map +1 -1
  92. package/dist/types/messaging.d.ts +1 -64
  93. package/dist/types/messaging.d.ts.map +1 -1
  94. package/dist/types/moderation.d.ts +1 -57
  95. package/dist/types/moderation.d.ts.map +1 -1
  96. package/dist/types/publicUser.d.ts +1 -10
  97. package/dist/types/publicUser.d.ts.map +1 -1
  98. package/dist/types/social.d.ts +1 -51
  99. package/dist/types/social.d.ts.map +1 -1
  100. package/dist/types/system.d.ts +1 -25
  101. package/dist/types/system.d.ts.map +1 -1
  102. package/dist/types/user.d.ts +1 -75
  103. package/dist/types/user.d.ts.map +1 -1
  104. package/dist/types/work-project.d.ts +2 -114
  105. package/dist/types/work-project.d.ts.map +1 -1
  106. package/dist/types/work-project.js.map +1 -1
  107. package/dist/upload-variables/create-admin-audition-variables.d.ts +2 -2
  108. package/dist/upload-variables/create-commission-variables.d.ts +4 -4
  109. package/dist/upload-variables/create-work-project-audition-variables.d.ts +4 -4
  110. package/dist/upload-variables/square-streetz-post-variables.d.ts +8 -8
  111. package/dist/upload-variables/upload-work-asset-variables.d.ts +43 -4
  112. package/dist/upload-variables/upload-work-asset-variables.d.ts.map +1 -1
  113. package/package.json +5 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA+E7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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@@ -0,0 +1,124 @@
1
+ // Firestore collection registry — the single, authoritative binding from each Firestore
2
+ // collection/subcollection path template to its document Zod schema. This is the input to
3
+ // the schema-doc generator and the drift-check, and its completeness is CI-enforced
4
+ // (registry.test.ts) against the COLLECTIONS / *_SUBCOLLECTIONS name constants, so a new
5
+ // collection cannot be added without either a schema or an explicit PENDING entry.
6
+ //
7
+ // Path templates reuse the segment names from ../paths/collections.ts (and the shapes the
8
+ // path-builders produce). `{placeholder}` segments are document/parent IDs.
9
+ import { FullUserSchema, UserPrivateDataSchema, CraftSkillSchema, CraftSkillReferenceSchema, } from './user.js';
10
+ import { PublicUserSchema } from './publicUser.js';
11
+ import { FullWorkProjectSchema, PublicWorkProjectSchema, WorkRealmSchema, GuildmateUserSchema, PublicGuildmateUserSchema, WorkAssetSchema, } from './work-project.js';
12
+ import { FullTaleSchema, FullChapterSchema, FullTuneSchema, FullTuneTrackSchema, FullTelevisionSchema, FullTelevisionEpisodeSchema, ThresholdItemSchema, PublishedHallItemSchema, FuturePlansDocumentSchema, RulesAndAgreementsSchema, } from './content.js';
13
+ import { SquareStreetzPostSchema, MentionHistoryDocumentSchema, FollowEdgeSchema, PledgePaymentSchema, PledgePaymentsSummarySchema, SquareStreetzLikeSchema, TrendingPostsSchema, } from './social.js';
14
+ import { FullCommissionListingSchema, CommissionProposalSchema, AuditionSchema, AuditionEntrySchema, UserAuditionVoteSchema, } from './commissions.js';
15
+ import { GuildChatChannelSchema, GuildInviteConversationSchema, AdminDispatchSchema, ChatMessageV1Schema, } from './messaging.js';
16
+ import { AppConfigSchema, AdminListSchema, ProfanityListSchema } from './system.js';
17
+ import { ContentViolationSchema, ModerationCascadeManifestSchema, ModerationCascadeChangedDocSchema, } from './moderation.js';
18
+ import { AdminTaskDocSchema, ReportSchema, ReportGroupSchema, ActivityLogEntrySchema, } from './report-docs.js';
19
+ import { TTTAuditEventSchema } from './audit.js';
20
+ import { NotificationDocSchema, NotificationHistoryDocSchema, PendingNotificationSchema, FollowerReleaseJobSchema, NotificationBroadcastJobSchema, } from './notifications.js';
21
+ import { PendingMediaSchema, ArchivedPendingMediaSchema } from '../media/pending-media.js';
22
+ import { ReservedDisplayNameSchema, StakeShareAuditEventSchema, ShortLinkSchema, FeedbackAliasSchema, UserSuggestionSchema, } from './operational.js';
23
+ export const COLLECTION_SCHEMAS = {
24
+ // ===== Users =====
25
+ 'userProfiles/{userId}': FullUserSchema,
26
+ 'userProfiles/{userId}/privateData/{userId}': UserPrivateDataSchema,
27
+ 'userProfiles/{userId}/profileCraftSkills/{craftSkillId}': CraftSkillSchema,
28
+ 'userProfiles/{userId}/userPledgePayments/{pledgePaymentId}': PledgePaymentSchema,
29
+ 'userProfiles/{userId}/auditionVotes/{auditionId}': UserAuditionVoteSchema,
30
+ 'userProfiles/{userId}/mentionHistory/{docId}': MentionHistoryDocumentSchema,
31
+ 'userProfiles/{userId}/notificationHistory/{notificationId}': NotificationHistoryDocSchema,
32
+ 'userProfiles/{userId}/userLikes/likeHistory/squareStreetzLikes/{postId}': SquareStreetzLikeSchema,
33
+ 'publicUsers/{uid}': PublicUserSchema,
34
+ // ===== Work / Realm / Guild =====
35
+ 'allWorkProjects/{workProjectId}': FullWorkProjectSchema,
36
+ 'allWorkProjects/{workProjectId}/guildmateUsers/{uid}': GuildmateUserSchema,
37
+ 'allWorkProjects/{workProjectId}/publicGuildmateUsers/{uid}': PublicGuildmateUserSchema,
38
+ 'allWorkProjects/{workProjectId}/workAssets/{workAssetId}': WorkAssetSchema,
39
+ 'allWorkProjects/{workProjectId}/workProjectTales/{taleId}': FullTaleSchema,
40
+ 'allWorkProjects/{workProjectId}/workProjectTales/{taleId}/taleChapters/{chapterId}': FullChapterSchema,
41
+ 'allWorkProjects/{workProjectId}/workProjectTunes/{tuneId}': FullTuneSchema,
42
+ 'allWorkProjects/{workProjectId}/workProjectTunes/{tuneId}/tuneTracks/{trackId}': FullTuneTrackSchema,
43
+ 'allWorkProjects/{workProjectId}/workProjectTelevision/{televisionId}': FullTelevisionSchema,
44
+ 'allWorkProjects/{workProjectId}/workProjectTelevision/{televisionId}/televisionEpisodes/{episodeId}': FullTelevisionEpisodeSchema,
45
+ 'allWorkProjects/{workProjectId}/guildChatChannels/{guildChatChannelId}': GuildChatChannelSchema,
46
+ 'allWorkProjects/{workProjectId}/guildChatChannels/{guildChatChannelId}/guildChatMessages/{guildChatMessageId}': ChatMessageV1Schema,
47
+ 'publicWorkProjects/{workProjectId}': PublicWorkProjectSchema,
48
+ 'workRealms/{workRealmId}': WorkRealmSchema,
49
+ 'guildInviteConversations/{guildInviteId}': GuildInviteConversationSchema,
50
+ 'guildInviteConversations/{guildInviteId}/inviteMessages/{guildInviteMessageId}': ChatMessageV1Schema,
51
+ // ===== Square / Social / Pledge =====
52
+ 'squareStreetzFeed/activePosts/socialPosts/{postId}': SquareStreetzPostSchema,
53
+ 'squareStreetzFeed/trendingPosts': TrendingPostsSchema,
54
+ 'followEdges/{followEdgeId}': FollowEdgeSchema,
55
+ 'recentPledgePayments/{pledgePaymentId}': PledgePaymentSchema,
56
+ 'archivedPledgePayments/{pledgePaymentId}': PledgePaymentSchema,
57
+ 'pledgePaymentsSummary/summary': PledgePaymentsSummarySchema,
58
+ // ===== Threshold / Hall =====
59
+ 'thresholdItems/{thresholdItemId}': ThresholdItemSchema,
60
+ 'hallItems/{hallItemId}': PublishedHallItemSchema,
61
+ // ===== Commission / Audition =====
62
+ 'commissionListings/{commissionListingId}': FullCommissionListingSchema,
63
+ 'commissionListings/{commissionListingId}/commissionProposals/{commissionProposalId}': CommissionProposalSchema,
64
+ 'auditionBoard/{auditionId}': AuditionSchema,
65
+ 'auditionBoard/{auditionId}/auditionEntries/{auditionEntryId}': AuditionEntrySchema,
66
+ // ===== Moderation / Reports / Admin =====
67
+ 'contentReports/{reportId}': ReportSchema,
68
+ 'activeReportGroups/{groupKey}': ReportGroupSchema,
69
+ 'adminTasks/{taskId}': AdminTaskDocSchema,
70
+ 'adminActivityLog/{logId}': ActivityLogEntrySchema,
71
+ 'contentViolations/{violationId}': ContentViolationSchema,
72
+ 'moderationCascadeManifests/{cascadeId}': ModerationCascadeManifestSchema,
73
+ 'moderationCascadeManifests/{cascadeId}/changedDocs/{changedDocId}': ModerationCascadeChangedDocSchema,
74
+ 'auditEvents/{eventId}': TTTAuditEventSchema,
75
+ 'stakeShareAuditEvents/{eventId}': StakeShareAuditEventSchema,
76
+ 'pendingAdminDispatches/{adminDispatchId}': AdminDispatchSchema,
77
+ 'pendingAdminDispatches/{adminDispatchId}/conversationMessages/{adminDispatchMessageId}': ChatMessageV1Schema,
78
+ // ===== Media pipeline =====
79
+ 'pendingMedia/{pendingMediaId}': PendingMediaSchema,
80
+ 'pendingMediaArchive/{pendingMediaId}': ArchivedPendingMediaSchema,
81
+ // ===== Notifications =====
82
+ 'activeUserNotifications/{notificationId}': NotificationDocSchema,
83
+ 'activeAdminNotifications/{notificationId}': NotificationDocSchema,
84
+ 'adminNotificationHistory/{notificationId}': NotificationHistoryDocSchema,
85
+ 'pendingNotifications/{notificationId}': PendingNotificationSchema,
86
+ 'followerReleaseJobs/{jobId}': FollowerReleaseJobSchema,
87
+ 'notificationBroadcastJobs/{jobId}': NotificationBroadcastJobSchema,
88
+ // ===== Craft skills index =====
89
+ 'craftSkillsByTag/{tag}/taggedCraftSkills/{compositeId}': CraftSkillReferenceSchema,
90
+ // ===== Operational / utility =====
91
+ 'reservedDisplayNames/{displayNameUppercase}': ReservedDisplayNameSchema,
92
+ 'shortLinks/{shortId}': ShortLinkSchema,
93
+ 'feedbackAliases/{aliasId}': FeedbackAliasSchema,
94
+ 'feedbackSubmissions/{feedbackType}/userSuggestions/{suggestionId}': UserSuggestionSchema,
95
+ // ===== _config singletons =====
96
+ '_config/app': AppConfigSchema,
97
+ '_config/futurePlans': FuturePlansDocumentSchema,
98
+ '_config/rulesAndAgreements': RulesAndAgreementsSchema,
99
+ // ===== _systemData singletons =====
100
+ '_systemData/adminList': AdminListSchema,
101
+ '_systemData/profanityList': ProfanityListSchema,
102
+ };
103
+ /**
104
+ * Collections that exist (in COLLECTIONS / *_SUBCOLLECTIONS or firestore.rules) but are
105
+ * intentionally NOT bound to a schema, each with a reason. Listed EXPLICITLY so completeness is
106
+ * enforced and nothing is silently uncovered; the registry test fails if a NEW unlisted collection
107
+ * appears. These three are the only remaining gaps after the schema-registry binding pass:
108
+ *
109
+ * - userMetadata: `userProfiles/{uid}/userMetadata/notificationSettings` — a firestore.rules
110
+ * match and `PATH_BUILDERS.userMetadata` exist, but there is no live reader/writer and no
111
+ * notification-settings type anywhere yet. Bind once that shape is implemented.
112
+ * - checkedOutItems: a `userProfiles/{uid}/checkedOutItems` subcollection constant with no writer,
113
+ * reader, rule, or path-builder (the admin "checked out items" UI reads adminTasks by
114
+ * `checkoutDetails.userId`, not this subcollection). Vestigial — remove once confirmed safe.
115
+ * - feedbackDenylist: `feedbackDenylist/{deniedWord}` — Console-managed (firestore.rules §3F: no
116
+ * callable writes it) and submitFeedback reads it via `.exists` only, so there is no field
117
+ * contract to author a schema from. The doc id is the denied word; the body is unused.
118
+ */
119
+ export const PENDING_COLLECTIONS = [
120
+ 'userMetadata',
121
+ 'checkedOutItems',
122
+ 'feedbackDenylist',
123
+ ];
124
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,0FAA0F;AAC1F,oFAAoF;AACpF,yFAAyF;AACzF,mFAAmF;AACnF,EAAE;AACF,0FAA0F;AAC1F,4EAA4E;AAG5E,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,GAChB,MAA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sBAAsB;IACzD,wCAAwC,EAAE,+BAA+B;IACzE,mEAAmE,EAAE,iCAAiC;IACtG,uBAAuB,EAAE,mBAAmB;IAC5C,iCAAiC,EAAE,0BAA0B;IAC7D,0CAA0C,EAAE,mBAAmB;IAC/D,wFAAwF,EAAE,mBAAmB;IAE7G,6BAA6B;IAC7B,+BAA+B,EAAE,kBAAkB;IACnD,sCAAsC,EAAE,0BAA0B;IAElE,4BAA4B;IAC5B,0CAA0C,EAAE,qBAAqB;IACjE,2CAA2C,EAAE,qBAAqB;IAClE,2CAA2C,EAAE,4BAA4B;IACzE,uCAAuC,EAAE,yBAAyB;IAClE,6BAA6B,EAAE,wBAAwB;IACvD,mCAAmC,EAAE,8BAA8B;IAEnE,iCAAiC;IACjC,wDAAwD,EAAE,yBAAyB;IAEnF,oCAAoC;IACpC,6CAA6C,EAAE,yBAAyB;IACxE,sBAAsB,EAAE,eAAe;IACvC,2BAA2B,EAAE,mBAAmB;IAChD,mEAAmE,EAAE,oBAAoB;IAEzF,iCAAiC;IACjC,aAAa,EAAE,eAAe;IAC9B,qBAAqB,EAAE,yBAAyB;IAChD,4BAA4B,EAAE,wBAAwB;IAEtD,qCAAqC;IACrC,uBAAuB,EAAE,eAAe;IACxC,2BAA2B,EAAE,mBAAmB;CACD,CAAC;AAIlD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,cAAc;IACd,iBAAiB;IACjB,kBAAkB;CACV,CAAC"}
@@ -0,0 +1,355 @@
1
+ import { z } from 'zod';
2
+ export declare const AdminTaskTypeSchema: z.ZodEnum<["adminDispatch", "thresholdLibraryReview", "userReport", "content-appeal", "stakeShareAnomaly"]>;
3
+ export type AdminTaskType = z.infer<typeof AdminTaskTypeSchema>;
4
+ export declare const AdminTaskStatusSchema: z.ZodEnum<["pending", "checkedOut", "workLater", "completed"]>;
5
+ export declare const CheckoutDetailsSchema: z.ZodObject<{
6
+ userId: z.ZodString;
7
+ checkedOutAt: z.ZodNumber;
8
+ expiresAt: z.ZodNumber;
9
+ workLaterUntil: z.ZodNullable<z.ZodNumber>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ userId: string;
12
+ checkedOutAt: number;
13
+ expiresAt: number;
14
+ workLaterUntil: number | null;
15
+ }, {
16
+ userId: string;
17
+ checkedOutAt: number;
18
+ expiresAt: number;
19
+ workLaterUntil: number | null;
20
+ }>;
21
+ export declare const AdminTaskSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ taskType: z.ZodEnum<["adminDispatch", "thresholdLibraryReview", "userReport", "content-appeal", "stakeShareAnomaly"]>;
24
+ taskId: z.ZodString;
25
+ originalPath: z.ZodString;
26
+ status: z.ZodEnum<["pending", "checkedOut", "workLater", "completed"]>;
27
+ checkoutDetails: z.ZodNullable<z.ZodObject<{
28
+ userId: z.ZodString;
29
+ checkedOutAt: z.ZodNumber;
30
+ expiresAt: z.ZodNumber;
31
+ workLaterUntil: z.ZodNullable<z.ZodNumber>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ userId: string;
34
+ checkedOutAt: number;
35
+ expiresAt: number;
36
+ workLaterUntil: number | null;
37
+ }, {
38
+ userId: string;
39
+ checkedOutAt: number;
40
+ expiresAt: number;
41
+ workLaterUntil: number | null;
42
+ }>>;
43
+ summary: z.ZodString;
44
+ priority: z.ZodNumber;
45
+ createdAt: z.ZodNumber;
46
+ lastUpdatedAt: z.ZodNumber;
47
+ completedAt: z.ZodOptional<z.ZodNumber>;
48
+ itemData: z.ZodOptional<z.ZodUnknown>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ status: "pending" | "checkedOut" | "workLater" | "completed";
51
+ id: string;
52
+ createdAt: number;
53
+ lastUpdatedAt: number;
54
+ taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
55
+ taskId: string;
56
+ originalPath: string;
57
+ checkoutDetails: {
58
+ userId: string;
59
+ checkedOutAt: number;
60
+ expiresAt: number;
61
+ workLaterUntil: number | null;
62
+ } | null;
63
+ summary: string;
64
+ priority: number;
65
+ completedAt?: number | undefined;
66
+ itemData?: unknown;
67
+ }, {
68
+ status: "pending" | "checkedOut" | "workLater" | "completed";
69
+ id: string;
70
+ createdAt: number;
71
+ lastUpdatedAt: number;
72
+ taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
73
+ taskId: string;
74
+ originalPath: string;
75
+ checkoutDetails: {
76
+ userId: string;
77
+ checkedOutAt: number;
78
+ expiresAt: number;
79
+ workLaterUntil: number | null;
80
+ } | null;
81
+ summary: string;
82
+ priority: number;
83
+ completedAt?: number | undefined;
84
+ itemData?: unknown;
85
+ }>;
86
+ export declare const AdminTaskDocSchema: z.ZodObject<{
87
+ taskType: z.ZodEnum<["adminDispatch", "thresholdLibraryReview", "userReport", "content-appeal", "stakeShareAnomaly"]>;
88
+ taskId: z.ZodString;
89
+ originalPath: z.ZodString;
90
+ status: z.ZodEnum<["pending", "checkedOut", "workLater", "completed"]>;
91
+ checkoutDetails: z.ZodNullable<z.ZodObject<{
92
+ userId: z.ZodString;
93
+ checkedOutAt: z.ZodNumber;
94
+ expiresAt: z.ZodNumber;
95
+ workLaterUntil: z.ZodNullable<z.ZodNumber>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ userId: string;
98
+ checkedOutAt: number;
99
+ expiresAt: number;
100
+ workLaterUntil: number | null;
101
+ }, {
102
+ userId: string;
103
+ checkedOutAt: number;
104
+ expiresAt: number;
105
+ workLaterUntil: number | null;
106
+ }>>;
107
+ summary: z.ZodString;
108
+ priority: z.ZodNumber;
109
+ createdAt: z.ZodNumber;
110
+ lastUpdatedAt: z.ZodNumber;
111
+ completedAt: z.ZodOptional<z.ZodNumber>;
112
+ itemData: z.ZodOptional<z.ZodUnknown>;
113
+ } & {
114
+ id: z.ZodOptional<z.ZodString>;
115
+ violationId: z.ZodOptional<z.ZodString>;
116
+ userId: z.ZodOptional<z.ZodString>;
117
+ fileType: z.ZodOptional<z.ZodString>;
118
+ rejectionReason: z.ZodOptional<z.ZodString>;
119
+ appealMessage: z.ZodOptional<z.ZodString>;
120
+ rejectedFilePath: z.ZodOptional<z.ZodString>;
121
+ foundingArtisanUid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ status: "pending" | "checkedOut" | "workLater" | "completed";
125
+ createdAt: number;
126
+ lastUpdatedAt: number;
127
+ taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
128
+ taskId: string;
129
+ originalPath: string;
130
+ checkoutDetails: {
131
+ userId: string;
132
+ checkedOutAt: number;
133
+ expiresAt: number;
134
+ workLaterUntil: number | null;
135
+ } | null;
136
+ summary: string;
137
+ priority: number;
138
+ userId?: string | undefined;
139
+ id?: string | undefined;
140
+ foundingArtisanUid?: string | null | undefined;
141
+ violationId?: string | undefined;
142
+ completedAt?: number | undefined;
143
+ itemData?: unknown;
144
+ fileType?: string | undefined;
145
+ rejectionReason?: string | undefined;
146
+ appealMessage?: string | undefined;
147
+ rejectedFilePath?: string | undefined;
148
+ metadata?: Record<string, unknown> | undefined;
149
+ }, {
150
+ status: "pending" | "checkedOut" | "workLater" | "completed";
151
+ createdAt: number;
152
+ lastUpdatedAt: number;
153
+ taskType: "adminDispatch" | "thresholdLibraryReview" | "userReport" | "content-appeal" | "stakeShareAnomaly";
154
+ taskId: string;
155
+ originalPath: string;
156
+ checkoutDetails: {
157
+ userId: string;
158
+ checkedOutAt: number;
159
+ expiresAt: number;
160
+ workLaterUntil: number | null;
161
+ } | null;
162
+ summary: string;
163
+ priority: number;
164
+ userId?: string | undefined;
165
+ id?: string | undefined;
166
+ foundingArtisanUid?: string | null | undefined;
167
+ violationId?: string | undefined;
168
+ completedAt?: number | undefined;
169
+ itemData?: unknown;
170
+ fileType?: string | undefined;
171
+ rejectionReason?: string | undefined;
172
+ appealMessage?: string | undefined;
173
+ rejectedFilePath?: string | undefined;
174
+ metadata?: Record<string, unknown> | undefined;
175
+ }>;
176
+ export type AdminTaskDoc = z.infer<typeof AdminTaskDocSchema>;
177
+ export declare const ReportStatusSchema: z.ZodEnum<["pending_review", "resolved_no_action", "resolved_action_taken"]>;
178
+ export declare const ReportGroupStatusSchema: z.ZodEnum<["pending", "reviewing", "resolved"]>;
179
+ export declare const ReportSchema: z.ZodObject<{
180
+ reportId: z.ZodString;
181
+ reporterUserId: z.ZodString;
182
+ reportedItemType: z.ZodString;
183
+ reportedItemId: z.ZodString;
184
+ parentItemId: z.ZodOptional<z.ZodString>;
185
+ reportedUserId: z.ZodOptional<z.ZodString>;
186
+ reason: z.ZodString;
187
+ comment: z.ZodString;
188
+ createdAt: z.ZodNumber;
189
+ status: z.ZodEnum<["pending_review", "resolved_no_action", "resolved_action_taken"]>;
190
+ resolvedAt: z.ZodOptional<z.ZodNumber>;
191
+ resolvedBy: z.ZodOptional<z.ZodString>;
192
+ adminNotes: z.ZodOptional<z.ZodString>;
193
+ }, "strip", z.ZodTypeAny, {
194
+ status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
195
+ createdAt: number;
196
+ reportId: string;
197
+ reporterUserId: string;
198
+ reportedItemType: string;
199
+ reportedItemId: string;
200
+ reason: string;
201
+ comment: string;
202
+ adminNotes?: string | undefined;
203
+ parentItemId?: string | undefined;
204
+ reportedUserId?: string | undefined;
205
+ resolvedAt?: number | undefined;
206
+ resolvedBy?: string | undefined;
207
+ }, {
208
+ status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
209
+ createdAt: number;
210
+ reportId: string;
211
+ reporterUserId: string;
212
+ reportedItemType: string;
213
+ reportedItemId: string;
214
+ reason: string;
215
+ comment: string;
216
+ adminNotes?: string | undefined;
217
+ parentItemId?: string | undefined;
218
+ reportedUserId?: string | undefined;
219
+ resolvedAt?: number | undefined;
220
+ resolvedBy?: string | undefined;
221
+ }>;
222
+ export declare const ReportGroupSchema: z.ZodObject<{
223
+ groupKey: z.ZodString;
224
+ reportedItemId: z.ZodString;
225
+ reportedItemType: z.ZodString;
226
+ reportedUserId: z.ZodNullable<z.ZodString>;
227
+ lastReportAt: z.ZodNumber;
228
+ totalReports: z.ZodNumber;
229
+ status: z.ZodEnum<["pending", "reviewing", "resolved"]>;
230
+ reports: z.ZodOptional<z.ZodArray<z.ZodObject<{
231
+ reportId: z.ZodString;
232
+ reporterUserId: z.ZodString;
233
+ reportedItemType: z.ZodString;
234
+ reportedItemId: z.ZodString;
235
+ parentItemId: z.ZodOptional<z.ZodString>;
236
+ reportedUserId: z.ZodOptional<z.ZodString>;
237
+ reason: z.ZodString;
238
+ comment: z.ZodString;
239
+ createdAt: z.ZodNumber;
240
+ status: z.ZodEnum<["pending_review", "resolved_no_action", "resolved_action_taken"]>;
241
+ resolvedAt: z.ZodOptional<z.ZodNumber>;
242
+ resolvedBy: z.ZodOptional<z.ZodString>;
243
+ adminNotes: z.ZodOptional<z.ZodString>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
246
+ createdAt: number;
247
+ reportId: string;
248
+ reporterUserId: string;
249
+ reportedItemType: string;
250
+ reportedItemId: string;
251
+ reason: string;
252
+ comment: string;
253
+ adminNotes?: string | undefined;
254
+ parentItemId?: string | undefined;
255
+ reportedUserId?: string | undefined;
256
+ resolvedAt?: number | undefined;
257
+ resolvedBy?: string | undefined;
258
+ }, {
259
+ status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
260
+ createdAt: number;
261
+ reportId: string;
262
+ reporterUserId: string;
263
+ reportedItemType: string;
264
+ reportedItemId: string;
265
+ reason: string;
266
+ comment: string;
267
+ adminNotes?: string | undefined;
268
+ parentItemId?: string | undefined;
269
+ reportedUserId?: string | undefined;
270
+ resolvedAt?: number | undefined;
271
+ resolvedBy?: string | undefined;
272
+ }>, "many">>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ status: "pending" | "reviewing" | "resolved";
275
+ reportedItemType: string;
276
+ reportedItemId: string;
277
+ reportedUserId: string | null;
278
+ groupKey: string;
279
+ lastReportAt: number;
280
+ totalReports: number;
281
+ reports?: {
282
+ status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
283
+ createdAt: number;
284
+ reportId: string;
285
+ reporterUserId: string;
286
+ reportedItemType: string;
287
+ reportedItemId: string;
288
+ reason: string;
289
+ comment: string;
290
+ adminNotes?: string | undefined;
291
+ parentItemId?: string | undefined;
292
+ reportedUserId?: string | undefined;
293
+ resolvedAt?: number | undefined;
294
+ resolvedBy?: string | undefined;
295
+ }[] | undefined;
296
+ }, {
297
+ status: "pending" | "reviewing" | "resolved";
298
+ reportedItemType: string;
299
+ reportedItemId: string;
300
+ reportedUserId: string | null;
301
+ groupKey: string;
302
+ lastReportAt: number;
303
+ totalReports: number;
304
+ reports?: {
305
+ status: "pending_review" | "resolved_no_action" | "resolved_action_taken";
306
+ createdAt: number;
307
+ reportId: string;
308
+ reporterUserId: string;
309
+ reportedItemType: string;
310
+ reportedItemId: string;
311
+ reason: string;
312
+ comment: string;
313
+ adminNotes?: string | undefined;
314
+ parentItemId?: string | undefined;
315
+ reportedUserId?: string | undefined;
316
+ resolvedAt?: number | undefined;
317
+ resolvedBy?: string | undefined;
318
+ }[] | undefined;
319
+ }>;
320
+ export declare const ActivityActionSchema: z.ZodEnum<["checkout", "checkout_next_important", "checkin_resolved", "checkin_unresolved", "release", "mark_work_later", "auto_released", "auto_released_scheduled"]>;
321
+ export declare const ActivityLogEntrySchema: z.ZodObject<{
322
+ id: z.ZodString;
323
+ adminUserId: z.ZodString;
324
+ action: z.ZodEnum<["checkout", "checkout_next_important", "checkin_resolved", "checkin_unresolved", "release", "mark_work_later", "auto_released", "auto_released_scheduled"]>;
325
+ taskType: z.ZodString;
326
+ taskId: z.ZodString;
327
+ timestamp: z.ZodNumber;
328
+ resolution: z.ZodOptional<z.ZodString>;
329
+ timeSpentMinutes: z.ZodOptional<z.ZodNumber>;
330
+ extendHours: z.ZodOptional<z.ZodNumber>;
331
+ priority: z.ZodOptional<z.ZodNumber>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ id: string;
334
+ action: "checkout" | "checkout_next_important" | "checkin_resolved" | "checkin_unresolved" | "release" | "mark_work_later" | "auto_released" | "auto_released_scheduled";
335
+ taskType: string;
336
+ taskId: string;
337
+ adminUserId: string;
338
+ timestamp: number;
339
+ priority?: number | undefined;
340
+ resolution?: string | undefined;
341
+ timeSpentMinutes?: number | undefined;
342
+ extendHours?: number | undefined;
343
+ }, {
344
+ id: string;
345
+ action: "checkout" | "checkout_next_important" | "checkin_resolved" | "checkin_unresolved" | "release" | "mark_work_later" | "auto_released" | "auto_released_scheduled";
346
+ taskType: string;
347
+ taskId: string;
348
+ adminUserId: string;
349
+ timestamp: number;
350
+ priority?: number | undefined;
351
+ resolution?: string | undefined;
352
+ timeSpentMinutes?: number | undefined;
353
+ extendHours?: number | undefined;
354
+ }>;
355
+ //# sourceMappingURL=report-docs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-docs.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/report-docs.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB,6GAM9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,qBAAqB,gEAA8D,CAAC;AAEjG,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1B,CAAC;AAaH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB,8EAI7B,CAAC;AACH,eAAO,MAAM,uBAAuB,iDAA+C,CAAC;AAEpF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,wKAS/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWjC,CAAC"}
@@ -0,0 +1,114 @@
1
+ // Zod schemas for the report-core-owned Firestore document shapes as stored in TTT:
2
+ // adminTasks/{taskId} (AdminTask<AdminTaskType>), contentReports/{reportId} (Report),
3
+ // activeReportGroups/{groupKey} (ReportGroup), adminActivityLog/{logId} (ActivityLogEntry).
4
+ //
5
+ // The canonical TYPES live in @ttt-productions/report-core/contracts; these schemas are
6
+ // authored to match them so the schema registry + drift-check have runtime schemas. A
7
+ // type-parity test (parity.test.ts) asserts z.infer here === the report-core types, so
8
+ // they cannot silently drift. AdminTaskType is the TTT specialization of the generic
9
+ // AdminTask<TTaskType> task-type parameter.
10
+ import { z } from 'zod';
11
+ export const AdminTaskTypeSchema = z.enum([
12
+ 'adminDispatch',
13
+ 'thresholdLibraryReview',
14
+ 'userReport',
15
+ 'content-appeal',
16
+ 'stakeShareAnomaly',
17
+ ]);
18
+ export const AdminTaskStatusSchema = z.enum(['pending', 'checkedOut', 'workLater', 'completed']);
19
+ export const CheckoutDetailsSchema = z.object({
20
+ userId: z.string(),
21
+ checkedOutAt: z.number(),
22
+ expiresAt: z.number(),
23
+ workLaterUntil: z.number().nullable(),
24
+ });
25
+ export const AdminTaskSchema = z.object({
26
+ id: z.string(),
27
+ taskType: AdminTaskTypeSchema,
28
+ taskId: z.string(),
29
+ originalPath: z.string(),
30
+ status: AdminTaskStatusSchema,
31
+ checkoutDetails: CheckoutDetailsSchema.nullable(),
32
+ summary: z.string(),
33
+ priority: z.number(),
34
+ createdAt: z.number(),
35
+ lastUpdatedAt: z.number(),
36
+ completedAt: z.number().optional(),
37
+ itemData: z.unknown().optional(),
38
+ });
39
+ // The STORED `adminTasks/{taskId}` doc. `AdminTaskSchema` above is the READ model — report-core's
40
+ // read hooks inject `id` from the doc id, so stored docs omit `id` (only the content-appeal writer
41
+ // persists it). The queue is polymorphic: each task type denormalizes a few top-level fields for
42
+ // the admin browse view. Modeled as a superset-of-optionals (NOT a discriminated union) so the
43
+ // drift-check keeps top-level unknown-field detection. Per-type writers (functions/src):
44
+ // content-appeal → submitContentAppeal.ts (id, violationId, userId, fileType,
45
+ // rejectionReason, appealMessage, rejectedFilePath)
46
+ // thresholdLibraryReview → runSubmitForThresholdLibraryReview.ts (foundingArtisanUid)
47
+ // stakeShareAnomaly → runWorkProjectGuildmateUserStakeShareAudit.ts (metadata)
48
+ // adminDispatch → runStartAdminSupportThread.ts (no extras)
49
+ // (userReport tasks read from activeReportGroups — no adminTasks doc is written for them.)
50
+ export const AdminTaskDocSchema = AdminTaskSchema.extend({
51
+ id: z.string().optional(),
52
+ violationId: z.string().optional(),
53
+ userId: z.string().optional(),
54
+ fileType: z.string().optional(),
55
+ rejectionReason: z.string().optional(),
56
+ appealMessage: z.string().optional(),
57
+ rejectedFilePath: z.string().optional(),
58
+ foundingArtisanUid: z.string().nullable().optional(),
59
+ metadata: z.record(z.string(), z.unknown()).optional(),
60
+ });
61
+ export const ReportStatusSchema = z.enum([
62
+ 'pending_review',
63
+ 'resolved_no_action',
64
+ 'resolved_action_taken',
65
+ ]);
66
+ export const ReportGroupStatusSchema = z.enum(['pending', 'reviewing', 'resolved']);
67
+ export const ReportSchema = z.object({
68
+ reportId: z.string(),
69
+ reporterUserId: z.string(),
70
+ reportedItemType: z.string(),
71
+ reportedItemId: z.string(),
72
+ parentItemId: z.string().optional(),
73
+ reportedUserId: z.string().optional(),
74
+ reason: z.string(),
75
+ comment: z.string(),
76
+ createdAt: z.number(),
77
+ status: ReportStatusSchema,
78
+ resolvedAt: z.number().optional(),
79
+ resolvedBy: z.string().optional(),
80
+ adminNotes: z.string().optional(),
81
+ });
82
+ export const ReportGroupSchema = z.object({
83
+ groupKey: z.string(),
84
+ reportedItemId: z.string(),
85
+ reportedItemType: z.string(),
86
+ reportedUserId: z.string().nullable(),
87
+ lastReportAt: z.number(),
88
+ totalReports: z.number(),
89
+ status: ReportGroupStatusSchema,
90
+ reports: z.array(ReportSchema).optional(),
91
+ });
92
+ export const ActivityActionSchema = z.enum([
93
+ 'checkout',
94
+ 'checkout_next_important',
95
+ 'checkin_resolved',
96
+ 'checkin_unresolved',
97
+ 'release',
98
+ 'mark_work_later',
99
+ 'auto_released',
100
+ 'auto_released_scheduled',
101
+ ]);
102
+ export const ActivityLogEntrySchema = z.object({
103
+ id: z.string(),
104
+ adminUserId: z.string(),
105
+ action: ActivityActionSchema,
106
+ taskType: z.string(),
107
+ taskId: z.string(),
108
+ timestamp: z.number(),
109
+ resolution: z.string().optional(),
110
+ timeSpentMinutes: z.number().optional(),
111
+ extendHours: z.number().optional(),
112
+ priority: z.number().optional(),
113
+ });
114
+ //# sourceMappingURL=report-docs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-docs.js","sourceRoot":"","sources":["../../src/doc-schemas/report-docs.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sFAAsF;AACtF,4FAA4F;AAC5F,EAAE;AACF,wFAAwF;AACxF,sFAAsF;AACtF,uFAAuF;AACvF,qFAAqF;AACrF,4CAA4C;AAE5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAA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