@pixerate/schemas 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +321 -0
- package/dist/index.d.cts +799 -1
- package/dist/index.d.ts +799 -1
- package/dist/index.js +290 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -49,8 +49,10 @@ __export(index_exports, {
|
|
|
49
49
|
AudioSilenceTrimOptionsSchema: () => AudioSilenceTrimOptionsSchema,
|
|
50
50
|
AudioVisualizerOptionsSchema: () => AudioVisualizerOptionsSchema,
|
|
51
51
|
AudioVisualizerTypeSchema: () => AudioVisualizerTypeSchema,
|
|
52
|
+
AuthUserSchema: () => AuthUserSchema,
|
|
52
53
|
AutoFitCaptionSchema: () => AutoFitCaptionSchema,
|
|
53
54
|
CRDTSnapshotSchema: () => CRDTSnapshotSchema,
|
|
55
|
+
ChannelPreferencesSchema: () => ChannelPreferencesSchema,
|
|
54
56
|
CodeGenerationSchema: () => CodeGenerationSchema,
|
|
55
57
|
ComponentDependencySchema: () => ComponentDependencySchema,
|
|
56
58
|
ComponentDocsSchema: () => ComponentDocsSchema,
|
|
@@ -71,6 +73,8 @@ __export(index_exports, {
|
|
|
71
73
|
DisplacementMapSchema: () => DisplacementMapSchema,
|
|
72
74
|
DocumentGenerationOptionsSchema: () => DocumentGenerationOptionsSchema,
|
|
73
75
|
DropShadowSchema: () => DropShadowSchema,
|
|
76
|
+
EmailAttachmentSchema: () => EmailAttachmentSchema,
|
|
77
|
+
EmailMessageSchema: () => EmailMessageSchema,
|
|
74
78
|
ExternalPackageDependencySchema: () => ExternalPackageDependencySchema,
|
|
75
79
|
FORM_SCHEMA_JSON_SCHEMA: () => FORM_SCHEMA_JSON_SCHEMA,
|
|
76
80
|
FidelitySchema: () => FidelitySchema,
|
|
@@ -84,6 +88,10 @@ __export(index_exports, {
|
|
|
84
88
|
FormStageSchema: () => FormStageSchema,
|
|
85
89
|
FormSubmissionPayloadSchema: () => FormSubmissionPayloadSchema,
|
|
86
90
|
FormValidatorSchema: () => FormValidatorSchema,
|
|
91
|
+
FuelCostMapSchema: () => FuelCostMapSchema,
|
|
92
|
+
FuelPlanSchema: () => FuelPlanSchema,
|
|
93
|
+
FuelTransactionSchema: () => FuelTransactionSchema,
|
|
94
|
+
FuelTransactionTypeSchema: () => FuelTransactionTypeSchema,
|
|
87
95
|
GenerateHarnessOptionsSchema: () => GenerateHarnessOptionsSchema,
|
|
88
96
|
ImageCompositingSchema: () => ImageCompositingSchema,
|
|
89
97
|
ImageGenerationSchema: () => ImageGenerationSchema,
|
|
@@ -94,6 +102,9 @@ __export(index_exports, {
|
|
|
94
102
|
ImageWatermarkSchema: () => ImageWatermarkSchema,
|
|
95
103
|
IngestionInputSchema: () => IngestionInputSchema,
|
|
96
104
|
InternalComponentDependencySchema: () => InternalComponentDependencySchema,
|
|
105
|
+
InviteSchema: () => InviteSchema,
|
|
106
|
+
InviteStatusSchema: () => InviteStatusSchema,
|
|
107
|
+
InviteTargetTypeSchema: () => InviteTargetTypeSchema,
|
|
97
108
|
JsonGenerationSchema: () => JsonGenerationSchema,
|
|
98
109
|
KenBurnsOptionsSchema: () => KenBurnsOptionsSchema,
|
|
99
110
|
LockClaimRequestSchema: () => LockClaimRequestSchema,
|
|
@@ -101,12 +112,23 @@ __export(index_exports, {
|
|
|
101
112
|
LockReleaseRequestSchema: () => LockReleaseRequestSchema,
|
|
102
113
|
LockStatusSchema: () => LockStatusSchema,
|
|
103
114
|
MediaProbeResultSchema: () => MediaProbeResultSchema,
|
|
115
|
+
NotificationActorSchema: () => NotificationActorSchema,
|
|
116
|
+
NotificationCategorySchema: () => NotificationCategorySchema,
|
|
117
|
+
NotificationChannelSchema: () => NotificationChannelSchema,
|
|
118
|
+
NotificationDeliveryRecordSchema: () => NotificationDeliveryRecordSchema,
|
|
119
|
+
NotificationDeliveryStateSchema: () => NotificationDeliveryStateSchema,
|
|
120
|
+
NotificationPreferencesSchema: () => NotificationPreferencesSchema,
|
|
121
|
+
NotificationPrioritySchema: () => NotificationPrioritySchema,
|
|
122
|
+
NotificationSchema: () => NotificationSchema,
|
|
123
|
+
NotificationStatusSchema: () => NotificationStatusSchema,
|
|
104
124
|
OTJsonOpSchema: () => OTJsonOpSchema,
|
|
105
125
|
OTJsonOpTypeSchema: () => OTJsonOpTypeSchema,
|
|
106
126
|
OTOperationSchema: () => OTOperationSchema,
|
|
107
127
|
OTRevisionSchema: () => OTRevisionSchema,
|
|
108
128
|
OTTextOpSchema: () => OTTextOpSchema,
|
|
109
129
|
OTTextOpTypeSchema: () => OTTextOpTypeSchema,
|
|
130
|
+
OrgMemberSchema: () => OrgMemberSchema,
|
|
131
|
+
OrganizationSchema: () => OrganizationSchema,
|
|
110
132
|
PerceptualHashAlgorithmSchema: () => PerceptualHashAlgorithmSchema,
|
|
111
133
|
PerceptualHashOptionsSchema: () => PerceptualHashOptionsSchema,
|
|
112
134
|
PerspectiveQuadSchema: () => PerspectiveQuadSchema,
|
|
@@ -136,6 +158,11 @@ __export(index_exports, {
|
|
|
136
158
|
SubmissionScoreSchema: () => SubmissionScoreSchema,
|
|
137
159
|
SubtitleBurnOptionsSchema: () => SubtitleBurnOptionsSchema,
|
|
138
160
|
SubtitleFormatSchema: () => SubtitleFormatSchema,
|
|
161
|
+
TaskUnreadSummarySchema: () => TaskUnreadSummarySchema,
|
|
162
|
+
TeamMemberDocSchema: () => TeamMemberDocSchema,
|
|
163
|
+
TeamMemberSchema: () => TeamMemberSchema,
|
|
164
|
+
TeamRoleSchema: () => TeamRoleSchema,
|
|
165
|
+
TeamSchema: () => TeamSchema,
|
|
139
166
|
TechnicalFormSchema: () => TechnicalFormSchema,
|
|
140
167
|
TextAlignmentSchema: () => TextAlignmentSchema,
|
|
141
168
|
TextOverlayPositionSchema: () => TextOverlayPositionSchema,
|
|
@@ -153,6 +180,8 @@ __export(index_exports, {
|
|
|
153
180
|
UIGenerationOptionsSchema: () => UIGenerationOptionsSchema,
|
|
154
181
|
UIGenerationResultSchema: () => UIGenerationResultSchema,
|
|
155
182
|
UIValidationResultSchema: () => UIValidationResultSchema,
|
|
183
|
+
UserPreferencesSchema: () => UserPreferencesSchema,
|
|
184
|
+
UserProfileSchema: () => UserProfileSchema,
|
|
156
185
|
VectorTraceOptionsSchema: () => VectorTraceOptionsSchema,
|
|
157
186
|
VideoAnalysisCategorySchema: () => VideoAnalysisCategorySchema,
|
|
158
187
|
VideoAnalysisSchema: () => VideoAnalysisSchema,
|
|
@@ -174,6 +203,8 @@ __export(index_exports, {
|
|
|
174
203
|
VideoWatermarkSchema: () => VideoWatermarkSchema,
|
|
175
204
|
ViewingIndicatorSchema: () => ViewingIndicatorSchema,
|
|
176
205
|
ViewportTransformSchema: () => ViewportTransformSchema,
|
|
206
|
+
WaitlistEntrySchema: () => WaitlistEntrySchema,
|
|
207
|
+
WaitlistStatusSchema: () => WaitlistStatusSchema,
|
|
177
208
|
WatermarkPositionSchema: () => WatermarkPositionSchema,
|
|
178
209
|
WatermarkSchema: () => WatermarkSchema
|
|
179
210
|
});
|
|
@@ -1629,6 +1660,265 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1629
1660
|
state: import_zod.z.record(import_zod.z.unknown()).default({}),
|
|
1630
1661
|
updatedAt: import_zod.z.number().int().positive().default(() => Date.now())
|
|
1631
1662
|
});
|
|
1663
|
+
var AuthUserSchema = import_zod.z.object({
|
|
1664
|
+
id: import_zod.z.string(),
|
|
1665
|
+
email: import_zod.z.string().email(),
|
|
1666
|
+
displayName: import_zod.z.string().optional(),
|
|
1667
|
+
photoURL: import_zod.z.string().url().optional().nullable(),
|
|
1668
|
+
emailVerified: import_zod.z.boolean().default(false),
|
|
1669
|
+
provider: import_zod.z.string().default("password"),
|
|
1670
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1671
|
+
metadata: import_zod.z.record(import_zod.z.unknown()).optional().default({})
|
|
1672
|
+
});
|
|
1673
|
+
var UserPreferencesSchema = import_zod.z.record(import_zod.z.unknown()).default({});
|
|
1674
|
+
var UserProfileSchema = import_zod.z.object({
|
|
1675
|
+
id: import_zod.z.string(),
|
|
1676
|
+
displayName: import_zod.z.string().default(""),
|
|
1677
|
+
photoURL: import_zod.z.string().url().optional().nullable(),
|
|
1678
|
+
email: import_zod.z.string().email().optional(),
|
|
1679
|
+
defaultOrgId: import_zod.z.string().optional(),
|
|
1680
|
+
defaultTeamId: import_zod.z.string().optional(),
|
|
1681
|
+
orgIds: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1682
|
+
teamIds: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1683
|
+
preferences: UserPreferencesSchema,
|
|
1684
|
+
onboarding: import_zod.z.object({
|
|
1685
|
+
completed: import_zod.z.boolean().default(false),
|
|
1686
|
+
rolePreference: import_zod.z.string().optional(),
|
|
1687
|
+
milestones: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1688
|
+
skipped: import_zod.z.boolean().default(false)
|
|
1689
|
+
}).optional(),
|
|
1690
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1691
|
+
updatedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional()
|
|
1692
|
+
});
|
|
1693
|
+
var TeamRoleSchema = import_zod.z.enum(["owner", "admin", "editor", "viewer", "member"]);
|
|
1694
|
+
var OrgMemberSchema = import_zod.z.object({
|
|
1695
|
+
id: import_zod.z.string(),
|
|
1696
|
+
orgId: import_zod.z.string(),
|
|
1697
|
+
userId: import_zod.z.string(),
|
|
1698
|
+
email: import_zod.z.string().email(),
|
|
1699
|
+
role: TeamRoleSchema.default("member"),
|
|
1700
|
+
status: import_zod.z.enum(["active", "invited", "suspended"]).default("active"),
|
|
1701
|
+
teamIds: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1702
|
+
joinedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1703
|
+
invitedBy: import_zod.z.string().optional()
|
|
1704
|
+
});
|
|
1705
|
+
var OrganizationSchema = import_zod.z.object({
|
|
1706
|
+
id: import_zod.z.string(),
|
|
1707
|
+
name: import_zod.z.string(),
|
|
1708
|
+
slug: import_zod.z.string(),
|
|
1709
|
+
description: import_zod.z.string().optional(),
|
|
1710
|
+
ownerId: import_zod.z.string(),
|
|
1711
|
+
memberIds: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1712
|
+
planId: import_zod.z.string().default("free"),
|
|
1713
|
+
fuelBalance: import_zod.z.number().default(0),
|
|
1714
|
+
stripeCustomerId: import_zod.z.string().optional(),
|
|
1715
|
+
stripeSubscriptionId: import_zod.z.string().optional(),
|
|
1716
|
+
cancelAtPeriodEnd: import_zod.z.boolean().optional(),
|
|
1717
|
+
billingPeriodStart: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1718
|
+
billingPeriodEnd: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1719
|
+
metadata: import_zod.z.record(import_zod.z.unknown()).optional().default({}),
|
|
1720
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1721
|
+
updatedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional()
|
|
1722
|
+
});
|
|
1723
|
+
var TeamMemberDocSchema = import_zod.z.object({
|
|
1724
|
+
role: TeamRoleSchema.default("member"),
|
|
1725
|
+
status: import_zod.z.enum(["active", "invited", "suspended"]).default("active"),
|
|
1726
|
+
email: import_zod.z.string().email().optional(),
|
|
1727
|
+
joinedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1728
|
+
invitedBy: import_zod.z.string().optional()
|
|
1729
|
+
});
|
|
1730
|
+
var TeamMemberSchema = TeamMemberDocSchema.extend({
|
|
1731
|
+
id: import_zod.z.string(),
|
|
1732
|
+
userId: import_zod.z.string(),
|
|
1733
|
+
teamId: import_zod.z.string(),
|
|
1734
|
+
displayName: import_zod.z.string().optional(),
|
|
1735
|
+
photoURL: import_zod.z.string().url().optional().nullable()
|
|
1736
|
+
});
|
|
1737
|
+
var TeamSchema = import_zod.z.object({
|
|
1738
|
+
id: import_zod.z.string(),
|
|
1739
|
+
orgId: import_zod.z.string().optional(),
|
|
1740
|
+
name: import_zod.z.string(),
|
|
1741
|
+
slug: import_zod.z.string().optional(),
|
|
1742
|
+
description: import_zod.z.string().optional(),
|
|
1743
|
+
ownerId: import_zod.z.string(),
|
|
1744
|
+
memberIds: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1745
|
+
planId: import_zod.z.string().optional().default("free"),
|
|
1746
|
+
fuelBalance: import_zod.z.number().optional().default(0),
|
|
1747
|
+
metadata: import_zod.z.record(import_zod.z.unknown()).optional().default({}),
|
|
1748
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1749
|
+
updatedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional()
|
|
1750
|
+
});
|
|
1751
|
+
var InviteTargetTypeSchema = import_zod.z.enum(["organization", "team"]);
|
|
1752
|
+
var InviteStatusSchema = import_zod.z.enum(["pending", "accepted", "revoked", "expired"]);
|
|
1753
|
+
var InviteSchema = import_zod.z.object({
|
|
1754
|
+
id: import_zod.z.string(),
|
|
1755
|
+
token: import_zod.z.string(),
|
|
1756
|
+
targetType: InviteTargetTypeSchema,
|
|
1757
|
+
targetId: import_zod.z.string(),
|
|
1758
|
+
email: import_zod.z.string().email().optional().nullable(),
|
|
1759
|
+
role: TeamRoleSchema.default("member"),
|
|
1760
|
+
invitedBy: import_zod.z.string(),
|
|
1761
|
+
status: InviteStatusSchema.default("pending"),
|
|
1762
|
+
maxUses: import_zod.z.number().int().positive().default(1),
|
|
1763
|
+
useCount: import_zod.z.number().int().nonnegative().default(0),
|
|
1764
|
+
acceptedBy: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1765
|
+
expiresAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]),
|
|
1766
|
+
metadata: import_zod.z.record(import_zod.z.unknown()).optional().default({}),
|
|
1767
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1768
|
+
updatedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional()
|
|
1769
|
+
});
|
|
1770
|
+
var WaitlistStatusSchema = import_zod.z.enum(["pending", "approved", "rejected", "onboarded"]);
|
|
1771
|
+
var WaitlistEntrySchema = import_zod.z.object({
|
|
1772
|
+
id: import_zod.z.string(),
|
|
1773
|
+
email: import_zod.z.string().email(),
|
|
1774
|
+
name: import_zod.z.string().optional(),
|
|
1775
|
+
status: WaitlistStatusSchema.default("pending"),
|
|
1776
|
+
referralCode: import_zod.z.string().optional(),
|
|
1777
|
+
referredBy: import_zod.z.string().optional(),
|
|
1778
|
+
referralCount: import_zod.z.number().int().nonnegative().default(0),
|
|
1779
|
+
position: import_zod.z.number().int().positive().optional(),
|
|
1780
|
+
priorityScore: import_zod.z.number().default(0),
|
|
1781
|
+
metadata: import_zod.z.record(import_zod.z.unknown()).optional().default({}),
|
|
1782
|
+
approvedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1783
|
+
onboardedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1784
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1785
|
+
updatedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional()
|
|
1786
|
+
});
|
|
1787
|
+
var FuelTransactionTypeSchema = import_zod.z.enum([
|
|
1788
|
+
"usage",
|
|
1789
|
+
"consumption",
|
|
1790
|
+
"top_up",
|
|
1791
|
+
"topup",
|
|
1792
|
+
"proration",
|
|
1793
|
+
"adjustment",
|
|
1794
|
+
"allocation",
|
|
1795
|
+
"bonus",
|
|
1796
|
+
"refund"
|
|
1797
|
+
]);
|
|
1798
|
+
var FuelTransactionSchema = import_zod.z.object({
|
|
1799
|
+
id: import_zod.z.string(),
|
|
1800
|
+
orgId: import_zod.z.string().optional(),
|
|
1801
|
+
teamId: import_zod.z.string().optional(),
|
|
1802
|
+
targetType: import_zod.z.enum(["organization", "team", "user"]).optional(),
|
|
1803
|
+
targetId: import_zod.z.string().optional(),
|
|
1804
|
+
userId: import_zod.z.string().optional().nullable(),
|
|
1805
|
+
amount: import_zod.z.number(),
|
|
1806
|
+
balanceAfter: import_zod.z.number().optional(),
|
|
1807
|
+
type: FuelTransactionTypeSchema,
|
|
1808
|
+
reason: import_zod.z.string().optional(),
|
|
1809
|
+
description: import_zod.z.string().optional(),
|
|
1810
|
+
resultType: import_zod.z.string().optional(),
|
|
1811
|
+
resultId: import_zod.z.string().optional(),
|
|
1812
|
+
client: import_zod.z.string().optional().default("unknown"),
|
|
1813
|
+
metadata: import_zod.z.record(import_zod.z.unknown()).optional().default({}),
|
|
1814
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).default(() => /* @__PURE__ */ new Date())
|
|
1815
|
+
});
|
|
1816
|
+
var FuelPlanSchema = import_zod.z.object({
|
|
1817
|
+
id: import_zod.z.string(),
|
|
1818
|
+
name: import_zod.z.string(),
|
|
1819
|
+
monthlyAllocation: import_zod.z.number().nonnegative().optional(),
|
|
1820
|
+
monthlyFuel: import_zod.z.number().nonnegative().optional(),
|
|
1821
|
+
allowRollover: import_zod.z.boolean().optional().default(false),
|
|
1822
|
+
rolloverFuel: import_zod.z.boolean().optional().default(false),
|
|
1823
|
+
maxRolloverFuel: import_zod.z.number().nonnegative().optional(),
|
|
1824
|
+
maxTeamMembers: import_zod.z.number().int().positive().optional(),
|
|
1825
|
+
priceMonthlyCents: import_zod.z.number().int().nonnegative().optional(),
|
|
1826
|
+
features: import_zod.z.array(import_zod.z.string()).default([]),
|
|
1827
|
+
stripePriceId: import_zod.z.string().optional(),
|
|
1828
|
+
rateLimits: import_zod.z.record(import_zod.z.number()).optional()
|
|
1829
|
+
});
|
|
1830
|
+
var FuelCostMapSchema = import_zod.z.record(import_zod.z.number().nonnegative());
|
|
1831
|
+
var NotificationChannelSchema = import_zod.z.enum(["in_app", "email", "web_push", "webhook", "sms"]);
|
|
1832
|
+
var NotificationPrioritySchema = import_zod.z.enum(["low", "normal", "high", "urgent"]);
|
|
1833
|
+
var NotificationCategorySchema = import_zod.z.enum([
|
|
1834
|
+
"mention",
|
|
1835
|
+
"reply",
|
|
1836
|
+
"team_invite",
|
|
1837
|
+
"fuel_alert",
|
|
1838
|
+
"system",
|
|
1839
|
+
"job_completed",
|
|
1840
|
+
"job_failed",
|
|
1841
|
+
"custom"
|
|
1842
|
+
]);
|
|
1843
|
+
var NotificationStatusSchema = import_zod.z.enum(["unread", "read", "archived"]);
|
|
1844
|
+
var NotificationDeliveryStateSchema = import_zod.z.enum(["pending", "sent", "delivered", "failed", "skipped"]);
|
|
1845
|
+
var NotificationActorSchema = import_zod.z.object({
|
|
1846
|
+
id: import_zod.z.string(),
|
|
1847
|
+
name: import_zod.z.string().optional(),
|
|
1848
|
+
email: import_zod.z.string().optional(),
|
|
1849
|
+
avatarUrl: import_zod.z.string().optional(),
|
|
1850
|
+
type: import_zod.z.enum(["user", "agent", "system"]).optional().default("user")
|
|
1851
|
+
});
|
|
1852
|
+
var NotificationSchema = import_zod.z.object({
|
|
1853
|
+
id: import_zod.z.string(),
|
|
1854
|
+
recipientId: import_zod.z.string(),
|
|
1855
|
+
recipientEmail: import_zod.z.string().optional(),
|
|
1856
|
+
title: import_zod.z.string(),
|
|
1857
|
+
body: import_zod.z.string(),
|
|
1858
|
+
richContent: import_zod.z.string().optional(),
|
|
1859
|
+
category: NotificationCategorySchema.default("system"),
|
|
1860
|
+
priority: NotificationPrioritySchema.default("normal"),
|
|
1861
|
+
channels: import_zod.z.array(NotificationChannelSchema).default(["in_app"]),
|
|
1862
|
+
status: NotificationStatusSchema.default("unread"),
|
|
1863
|
+
actor: NotificationActorSchema.optional(),
|
|
1864
|
+
targetType: import_zod.z.string().optional(),
|
|
1865
|
+
targetId: import_zod.z.string().optional(),
|
|
1866
|
+
actionUrl: import_zod.z.string().optional(),
|
|
1867
|
+
metadata: import_zod.z.record(import_zod.z.unknown()).optional().default({}),
|
|
1868
|
+
createdAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).default(() => (/* @__PURE__ */ new Date()).toISOString()),
|
|
1869
|
+
readAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1870
|
+
archivedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional()
|
|
1871
|
+
});
|
|
1872
|
+
var NotificationDeliveryRecordSchema = import_zod.z.object({
|
|
1873
|
+
id: import_zod.z.string(),
|
|
1874
|
+
notificationId: import_zod.z.string(),
|
|
1875
|
+
channel: NotificationChannelSchema,
|
|
1876
|
+
state: NotificationDeliveryStateSchema,
|
|
1877
|
+
error: import_zod.z.string().optional(),
|
|
1878
|
+
sentAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional(),
|
|
1879
|
+
deliveredAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).optional()
|
|
1880
|
+
});
|
|
1881
|
+
var ChannelPreferencesSchema = import_zod.z.object({
|
|
1882
|
+
in_app: import_zod.z.boolean().default(true),
|
|
1883
|
+
email: import_zod.z.boolean().default(true),
|
|
1884
|
+
web_push: import_zod.z.boolean().default(false),
|
|
1885
|
+
webhook: import_zod.z.boolean().default(false)
|
|
1886
|
+
});
|
|
1887
|
+
var NotificationPreferencesSchema = import_zod.z.object({
|
|
1888
|
+
userId: import_zod.z.string(),
|
|
1889
|
+
channels: import_zod.z.record(NotificationCategorySchema, ChannelPreferencesSchema).optional().default({}),
|
|
1890
|
+
emailDigest: import_zod.z.enum(["instant", "hourly", "daily", "weekly", "never"]).default("instant"),
|
|
1891
|
+
quietHours: import_zod.z.object({
|
|
1892
|
+
enabled: import_zod.z.boolean().default(false),
|
|
1893
|
+
startHourUtc: import_zod.z.number().int().min(0).max(23).default(22),
|
|
1894
|
+
endHourUtc: import_zod.z.number().int().min(0).max(23).default(8)
|
|
1895
|
+
}).optional(),
|
|
1896
|
+
updatedAt: import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.date()]).default(() => (/* @__PURE__ */ new Date()).toISOString())
|
|
1897
|
+
});
|
|
1898
|
+
var EmailAttachmentSchema = import_zod.z.object({
|
|
1899
|
+
filename: import_zod.z.string(),
|
|
1900
|
+
content: import_zod.z.union([import_zod.z.string(), import_zod.z.instanceof(Uint8Array)]),
|
|
1901
|
+
contentType: import_zod.z.string().optional()
|
|
1902
|
+
});
|
|
1903
|
+
var EmailMessageSchema = import_zod.z.object({
|
|
1904
|
+
to: import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]),
|
|
1905
|
+
from: import_zod.z.string().optional(),
|
|
1906
|
+
cc: import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]).optional(),
|
|
1907
|
+
bcc: import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]).optional(),
|
|
1908
|
+
subject: import_zod.z.string(),
|
|
1909
|
+
text: import_zod.z.string().optional(),
|
|
1910
|
+
html: import_zod.z.string().optional(),
|
|
1911
|
+
replyTo: import_zod.z.string().optional(),
|
|
1912
|
+
headers: import_zod.z.record(import_zod.z.string()).optional(),
|
|
1913
|
+
templateId: import_zod.z.string().optional(),
|
|
1914
|
+
templateVariables: import_zod.z.record(import_zod.z.unknown()).optional(),
|
|
1915
|
+
attachments: import_zod.z.array(EmailAttachmentSchema).optional()
|
|
1916
|
+
});
|
|
1917
|
+
var TaskUnreadSummarySchema = import_zod.z.object({
|
|
1918
|
+
mentions: import_zod.z.number().nonnegative().default(0),
|
|
1919
|
+
replies: import_zod.z.number().nonnegative().default(0),
|
|
1920
|
+
total: import_zod.z.number().nonnegative().default(0)
|
|
1921
|
+
});
|
|
1632
1922
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1633
1923
|
0 && (module.exports = {
|
|
1634
1924
|
ActivityActionSchema,
|
|
@@ -1660,8 +1950,10 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1660
1950
|
AudioSilenceTrimOptionsSchema,
|
|
1661
1951
|
AudioVisualizerOptionsSchema,
|
|
1662
1952
|
AudioVisualizerTypeSchema,
|
|
1953
|
+
AuthUserSchema,
|
|
1663
1954
|
AutoFitCaptionSchema,
|
|
1664
1955
|
CRDTSnapshotSchema,
|
|
1956
|
+
ChannelPreferencesSchema,
|
|
1665
1957
|
CodeGenerationSchema,
|
|
1666
1958
|
ComponentDependencySchema,
|
|
1667
1959
|
ComponentDocsSchema,
|
|
@@ -1682,6 +1974,8 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1682
1974
|
DisplacementMapSchema,
|
|
1683
1975
|
DocumentGenerationOptionsSchema,
|
|
1684
1976
|
DropShadowSchema,
|
|
1977
|
+
EmailAttachmentSchema,
|
|
1978
|
+
EmailMessageSchema,
|
|
1685
1979
|
ExternalPackageDependencySchema,
|
|
1686
1980
|
FORM_SCHEMA_JSON_SCHEMA,
|
|
1687
1981
|
FidelitySchema,
|
|
@@ -1695,6 +1989,10 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1695
1989
|
FormStageSchema,
|
|
1696
1990
|
FormSubmissionPayloadSchema,
|
|
1697
1991
|
FormValidatorSchema,
|
|
1992
|
+
FuelCostMapSchema,
|
|
1993
|
+
FuelPlanSchema,
|
|
1994
|
+
FuelTransactionSchema,
|
|
1995
|
+
FuelTransactionTypeSchema,
|
|
1698
1996
|
GenerateHarnessOptionsSchema,
|
|
1699
1997
|
ImageCompositingSchema,
|
|
1700
1998
|
ImageGenerationSchema,
|
|
@@ -1705,6 +2003,9 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1705
2003
|
ImageWatermarkSchema,
|
|
1706
2004
|
IngestionInputSchema,
|
|
1707
2005
|
InternalComponentDependencySchema,
|
|
2006
|
+
InviteSchema,
|
|
2007
|
+
InviteStatusSchema,
|
|
2008
|
+
InviteTargetTypeSchema,
|
|
1708
2009
|
JsonGenerationSchema,
|
|
1709
2010
|
KenBurnsOptionsSchema,
|
|
1710
2011
|
LockClaimRequestSchema,
|
|
@@ -1712,12 +2013,23 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1712
2013
|
LockReleaseRequestSchema,
|
|
1713
2014
|
LockStatusSchema,
|
|
1714
2015
|
MediaProbeResultSchema,
|
|
2016
|
+
NotificationActorSchema,
|
|
2017
|
+
NotificationCategorySchema,
|
|
2018
|
+
NotificationChannelSchema,
|
|
2019
|
+
NotificationDeliveryRecordSchema,
|
|
2020
|
+
NotificationDeliveryStateSchema,
|
|
2021
|
+
NotificationPreferencesSchema,
|
|
2022
|
+
NotificationPrioritySchema,
|
|
2023
|
+
NotificationSchema,
|
|
2024
|
+
NotificationStatusSchema,
|
|
1715
2025
|
OTJsonOpSchema,
|
|
1716
2026
|
OTJsonOpTypeSchema,
|
|
1717
2027
|
OTOperationSchema,
|
|
1718
2028
|
OTRevisionSchema,
|
|
1719
2029
|
OTTextOpSchema,
|
|
1720
2030
|
OTTextOpTypeSchema,
|
|
2031
|
+
OrgMemberSchema,
|
|
2032
|
+
OrganizationSchema,
|
|
1721
2033
|
PerceptualHashAlgorithmSchema,
|
|
1722
2034
|
PerceptualHashOptionsSchema,
|
|
1723
2035
|
PerspectiveQuadSchema,
|
|
@@ -1747,6 +2059,11 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1747
2059
|
SubmissionScoreSchema,
|
|
1748
2060
|
SubtitleBurnOptionsSchema,
|
|
1749
2061
|
SubtitleFormatSchema,
|
|
2062
|
+
TaskUnreadSummarySchema,
|
|
2063
|
+
TeamMemberDocSchema,
|
|
2064
|
+
TeamMemberSchema,
|
|
2065
|
+
TeamRoleSchema,
|
|
2066
|
+
TeamSchema,
|
|
1750
2067
|
TechnicalFormSchema,
|
|
1751
2068
|
TextAlignmentSchema,
|
|
1752
2069
|
TextOverlayPositionSchema,
|
|
@@ -1764,6 +2081,8 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1764
2081
|
UIGenerationOptionsSchema,
|
|
1765
2082
|
UIGenerationResultSchema,
|
|
1766
2083
|
UIValidationResultSchema,
|
|
2084
|
+
UserPreferencesSchema,
|
|
2085
|
+
UserProfileSchema,
|
|
1767
2086
|
VectorTraceOptionsSchema,
|
|
1768
2087
|
VideoAnalysisCategorySchema,
|
|
1769
2088
|
VideoAnalysisSchema,
|
|
@@ -1785,6 +2104,8 @@ var CRDTSnapshotSchema = import_zod.z.object({
|
|
|
1785
2104
|
VideoWatermarkSchema,
|
|
1786
2105
|
ViewingIndicatorSchema,
|
|
1787
2106
|
ViewportTransformSchema,
|
|
2107
|
+
WaitlistEntrySchema,
|
|
2108
|
+
WaitlistStatusSchema,
|
|
1788
2109
|
WatermarkPositionSchema,
|
|
1789
2110
|
WatermarkSchema
|
|
1790
2111
|
});
|