@supernova-studio/model 1.52.0 → 1.52.2

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.mjs CHANGED
@@ -5159,13 +5159,41 @@ import { z as z140 } from "zod";
5159
5159
  var LiveblocksNotificationSettings = z140.object({
5160
5160
  sendCommentNotificationEmails: z140.boolean()
5161
5161
  });
5162
- var UserNotificationSettings = z140.object({
5163
- liveblocksNotificationSettings: LiveblocksNotificationSettings
5162
+ var NotificationType = z140.enum([
5163
+ "DesignDocumentComment",
5164
+ "ChatMention",
5165
+ "ProjectDocumentComment",
5166
+ "ProjectInvitation"
5167
+ ]);
5168
+ var NotificationChannel = z140.enum(["Email", "InApp"]);
5169
+ var NotificationSettingOptions = z140.object({
5170
+ enabled: z140.boolean(),
5171
+ email: z140.boolean()
5172
+ });
5173
+ var NotificationSettings = z140.object({
5174
+ [NotificationType.enum.ChatMention]: NotificationSettingOptions,
5175
+ [NotificationType.enum.ProjectDocumentComment]: NotificationSettingOptions,
5176
+ [NotificationType.enum.ProjectInvitation]: NotificationSettingOptions,
5177
+ [NotificationType.enum.DesignDocumentComment]: NotificationSettingOptions.omit({
5178
+ enabled: true
5179
+ })
5164
5180
  });
5181
+ var UserNotificationSettings = NotificationSettings.merge(
5182
+ z140.object({
5183
+ /**
5184
+ * @deprecated Use granular notification settings instead.
5185
+ */
5186
+ liveblocksNotificationSettings: LiveblocksNotificationSettings
5187
+ })
5188
+ );
5165
5189
  var defaultNotificationSettings = {
5166
5190
  liveblocksNotificationSettings: {
5167
5191
  sendCommentNotificationEmails: true
5168
- }
5192
+ },
5193
+ DesignDocumentComment: { email: true },
5194
+ ChatMention: { enabled: true, email: true },
5195
+ ProjectInvitation: { enabled: true, email: true },
5196
+ ProjectDocumentComment: { enabled: true, email: true }
5169
5197
  };
5170
5198
 
5171
5199
  // src/users/user-profile.ts
@@ -7235,6 +7263,10 @@ export {
7235
7263
  ListExporterQuery,
7236
7264
  LiveblocksNotificationSettings,
7237
7265
  MAX_MEMBERS_COUNT,
7266
+ NotificationChannel,
7267
+ NotificationSettingOptions,
7268
+ NotificationSettings,
7269
+ NotificationType,
7238
7270
  NpmPackage,
7239
7271
  NpmProxyToken,
7240
7272
  NpmProxyTokenPayload,