@supernova-studio/model 1.10.7 → 1.10.9

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
@@ -5112,18 +5112,21 @@ var defaultNotificationSettings = {
5112
5112
  import { z as z144 } from "zod";
5113
5113
  var UserOnboardingDepartment = z144.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
5114
5114
  var UserOnboardingJobLevel = z144.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
5115
- var UserTheme = z144.object({
5116
- preset: z144.enum([
5117
- "Custom",
5118
- "Default",
5119
- "HighContrast",
5120
- "DefaultDark",
5121
- "HighContrastDark",
5122
- "SpaceBlue",
5123
- "DarkGrey",
5124
- "SystemPreference",
5125
- "Sepia"
5126
- ]).optional(),
5115
+ var userThemePresets = [
5116
+ "Custom",
5117
+ "Default",
5118
+ "HighContrast",
5119
+ "DefaultDark",
5120
+ "HighContrastDark",
5121
+ "SpaceBlue",
5122
+ "DarkGrey",
5123
+ "SystemPreference",
5124
+ "Sepia"
5125
+ ];
5126
+ var portalThemePresets = [...userThemePresets, "DefaultPortal"];
5127
+ var PortalThemePreset = z144.enum(portalThemePresets);
5128
+ var UserThemePreset = z144.enum(userThemePresets);
5129
+ var BaseTheme = z144.object({
5127
5130
  backgroundColor: z144.string().optional(),
5128
5131
  accentColor: z144.string().optional(),
5129
5132
  contrast: z144.number().min(16).max(100).optional(),
@@ -5132,6 +5135,12 @@ var UserTheme = z144.object({
5132
5135
  secondaryContrast: z144.number().min(16).max(100).optional(),
5133
5136
  isEditorWhite: z144.boolean().optional()
5134
5137
  });
5138
+ var UserTheme = BaseTheme.extend({
5139
+ preset: UserThemePreset.optional()
5140
+ });
5141
+ var PortalTheme = BaseTheme.extend({
5142
+ preset: PortalThemePreset.optional()
5143
+ });
5135
5144
  var UserOnboarding = z144.object({
5136
5145
  companyName: z144.string().optional(),
5137
5146
  numberOfPeopleInOrg: z144.string().optional(),
@@ -5151,7 +5160,8 @@ var UserProfile = z144.object({
5151
5160
  avatar: z144.string().optional(),
5152
5161
  nickname: z144.string().optional(),
5153
5162
  onboarding: UserOnboarding.optional(),
5154
- theme: UserTheme.optional()
5163
+ theme: UserTheme.optional(),
5164
+ portalTheme: PortalTheme.optional()
5155
5165
  });
5156
5166
  var UserProfileUpdate = UserProfile.partial().omit({
5157
5167
  avatar: true
@@ -6517,6 +6527,7 @@ export {
6517
6527
  AuthTokens,
6518
6528
  AuthV2Request,
6519
6529
  AuthV2Session,
6530
+ BaseTheme,
6520
6531
  BillingDetails,
6521
6532
  BillingIntervalSchema,
6522
6533
  BillingType,
@@ -7071,6 +7082,8 @@ export {
7071
7082
  PortalSettingsSidebarLink,
7072
7083
  PortalSettingsSidebarSection,
7073
7084
  PortalSettingsTheme,
7085
+ PortalTheme,
7086
+ PortalThemePreset,
7074
7087
  PostStripeCheckoutBodyInputSchema,
7075
7088
  PostStripeCheckoutOutputSchema,
7076
7089
  PostStripePortalSessionBodyInputSchema,
@@ -7183,6 +7196,7 @@ export {
7183
7196
  UserSource,
7184
7197
  UserTest,
7185
7198
  UserTheme,
7199
+ UserThemePreset,
7186
7200
  VersionCreationJob,
7187
7201
  VersionCreationJobStatus,
7188
7202
  Visibility,