@supernova-studio/model 1.10.6 → 1.10.8

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
@@ -6181,10 +6191,10 @@ var ForgeAvatarBuilder = z189.object({
6181
6191
  var ForgeAgent = z189.object({
6182
6192
  avatar: z189.union([z189.string(), ForgeAvatarBuilder]),
6183
6193
  avatarUrl: z189.string().optional(),
6184
- behavior: z189.enum(["coder", "writer", "designer"]),
6194
+ behavior: z189.enum(["Coder", "Writer", "Designer"]),
6185
6195
  id: z189.string(),
6186
6196
  name: z189.string(),
6187
- personality: z189.enum(["neutral", "assertive", "crazy"]),
6197
+ personality: z189.enum(["Neutral", "Assertive", "Crazy"]),
6188
6198
  projectId: z189.string()
6189
6199
  });
6190
6200
 
@@ -6241,7 +6251,7 @@ var ForgeParticipant = z191.object({
6241
6251
  agentId: z191.string().optional(),
6242
6252
  agent: ForgeAgent.optional(),
6243
6253
  projectIterationId: z191.string(),
6244
- role: z191.enum(["editor", "viewer"]),
6254
+ role: z191.enum(["Editor", "Viewer"]),
6245
6255
  type: z191.enum(["Agent", "User"]),
6246
6256
  userId: z191.string().optional(),
6247
6257
  user: User.optional()
@@ -6260,7 +6270,7 @@ var ForgeIterationMessage = z192.object({
6260
6270
  participant: ForgeParticipant,
6261
6271
  projectIterationId: z192.string(),
6262
6272
  steps: z192.array(ForgeIterationMessageStep).optional(),
6263
- type: z192.enum(["note", "action", "steps"]),
6273
+ type: z192.enum(["Note", "Action", "Steps"]),
6264
6274
  text: z192.string()
6265
6275
  });
6266
6276
 
@@ -6291,8 +6301,8 @@ var ForgeProjectContext = z194.object({
6291
6301
  meta: ForgeMeta,
6292
6302
  name: z194.string(),
6293
6303
  npmProxySettings: NpmRegistryConfig,
6294
- platform: z194.enum(["react", "vue", "angular"]),
6295
- styling: z194.enum(["css", "tailwind"]),
6304
+ platform: z194.enum(["React", "Vue", "Angular"]),
6305
+ styling: z194.enum(["CSS", "Tailwind"]),
6296
6306
  tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
6297
6307
  updatedAt: z194.coerce.date(),
6298
6308
  workspaceId: z194.string()
@@ -6328,7 +6338,7 @@ import { z as z197 } from "zod";
6328
6338
  var ForgeProjectTag = z197.array(z197.string()).default([]);
6329
6339
  var ForgeProject = z197.object({
6330
6340
  createdAt: z197.coerce.date(),
6331
- createdByUserId: z197.string(),
6341
+ createdByUserId: z197.string().optional(),
6332
6342
  fpContextId: z197.string(),
6333
6343
  id: z197.string(),
6334
6344
  instruction: z197.string().nullable(),
@@ -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,