@supernova-studio/model 1.40.11 → 1.41.1

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
@@ -6656,44 +6656,66 @@ var NpmProxyTokenPayload = z213.object({
6656
6656
  npmProxyRegistryConfigId: z213.string()
6657
6657
  });
6658
6658
 
6659
- // src/portal/portal-settings.ts
6659
+ // src/page-screenshot/page-screenshot.ts
6660
6660
  import { z as z214 } from "zod";
6661
+ var PageScreenshotInput = z214.object({
6662
+ url: z214.string().url(),
6663
+ elementSelector: z214.string(),
6664
+ uploadUrl: z214.string().url(),
6665
+ imageSize: z214.object({
6666
+ width: z214.number().positive(),
6667
+ height: z214.number().positive()
6668
+ }).optional()
6669
+ });
6670
+ var PageScreenshotOutput = z214.discriminatedUnion("success", [
6671
+ z214.object({
6672
+ success: z214.literal(true),
6673
+ fileSize: z214.number()
6674
+ }),
6675
+ z214.object({
6676
+ success: z214.literal(false),
6677
+ error: z214.string()
6678
+ })
6679
+ ]);
6680
+
6681
+ // src/portal/portal-settings.ts
6682
+ import { z as z215 } from "zod";
6661
6683
  var PortalSettingsTheme = UserTheme;
6662
- var PortalSettingsSidebarLink = z214.object({
6663
- name: z214.string(),
6664
- url: z214.string(),
6665
- emoji: z214.string()
6666
- });
6667
- var PortalSettingsSidebarSection = z214.object({
6668
- sectionName: z214.string(),
6669
- links: z214.array(PortalSettingsSidebarLink)
6670
- });
6671
- var PortalSettingsSidebar = z214.array(PortalSettingsSidebarSection);
6672
- var PortalSettings = z214.object({
6673
- id: z214.string(),
6674
- workspaceId: z214.string(),
6675
- enabledDesignSystemIds: z214.array(z214.string()),
6676
- enabledBrandPersistentIds: z214.array(z214.string()),
6684
+ var PortalSettingsSidebarLink = z215.object({
6685
+ name: z215.string(),
6686
+ url: z215.string(),
6687
+ emoji: z215.string()
6688
+ });
6689
+ var PortalSettingsSidebarSection = z215.object({
6690
+ sectionName: z215.string(),
6691
+ links: z215.array(PortalSettingsSidebarLink)
6692
+ });
6693
+ var PortalSettingsSidebar = z215.array(PortalSettingsSidebarSection);
6694
+ var PortalSettings = z215.object({
6695
+ id: z215.string(),
6696
+ workspaceId: z215.string(),
6697
+ enabledDesignSystemIds: z215.array(z215.string()),
6698
+ enabledBrandPersistentIds: z215.array(z215.string()),
6677
6699
  theme: PortalSettingsTheme.nullish(),
6678
6700
  sidebar: PortalSettingsSidebar.nullish(),
6679
- createdAt: z214.coerce.date(),
6680
- updatedAt: z214.coerce.date()
6701
+ createdAt: z215.coerce.date(),
6702
+ updatedAt: z215.coerce.date()
6681
6703
  });
6682
6704
 
6683
6705
  // src/tokens/personal-access-token.ts
6684
- import { z as z215 } from "zod";
6685
- var PersonalAccessToken = z215.object({
6686
- id: z215.string(),
6687
- userId: z215.string(),
6688
- workspaceId: z215.string().optional(),
6689
- designSystemId: z215.string().optional(),
6706
+ import { z as z216 } from "zod";
6707
+ var PersonalAccessToken = z216.object({
6708
+ id: z216.string(),
6709
+ userId: z216.string(),
6710
+ workspaceId: z216.string().optional(),
6711
+ designSystemId: z216.string().optional(),
6690
6712
  workspaceRole: WorkspaceRoleSchema.optional(),
6691
- name: z215.string(),
6692
- hidden: z215.boolean(),
6693
- token: z215.string(),
6694
- scope: z215.string().optional(),
6695
- createdAt: z215.coerce.date(),
6696
- expireAt: z215.coerce.date().optional()
6713
+ name: z216.string(),
6714
+ hidden: z216.boolean(),
6715
+ token: z216.string(),
6716
+ scope: z216.string().optional(),
6717
+ createdAt: z216.coerce.date(),
6718
+ expireAt: z216.coerce.date().optional()
6697
6719
  });
6698
6720
  export {
6699
6721
  Address,
@@ -7259,6 +7281,8 @@ export {
7259
7281
  PageBlockV1,
7260
7282
  PageBlockV2,
7261
7283
  PageRedirect,
7284
+ PageScreenshotInput,
7285
+ PageScreenshotOutput,
7262
7286
  PageSectionAppearanceV2,
7263
7287
  PageSectionColumnV2,
7264
7288
  PageSectionEditorModelV2,