@supernova-studio/model 1.40.11 → 1.41.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.mjs CHANGED
@@ -6656,44 +6656,65 @@ 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
+ }),
6674
+ z214.object({
6675
+ success: z214.literal(false),
6676
+ error: z214.string()
6677
+ })
6678
+ ]);
6679
+
6680
+ // src/portal/portal-settings.ts
6681
+ import { z as z215 } from "zod";
6661
6682
  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()),
6683
+ var PortalSettingsSidebarLink = z215.object({
6684
+ name: z215.string(),
6685
+ url: z215.string(),
6686
+ emoji: z215.string()
6687
+ });
6688
+ var PortalSettingsSidebarSection = z215.object({
6689
+ sectionName: z215.string(),
6690
+ links: z215.array(PortalSettingsSidebarLink)
6691
+ });
6692
+ var PortalSettingsSidebar = z215.array(PortalSettingsSidebarSection);
6693
+ var PortalSettings = z215.object({
6694
+ id: z215.string(),
6695
+ workspaceId: z215.string(),
6696
+ enabledDesignSystemIds: z215.array(z215.string()),
6697
+ enabledBrandPersistentIds: z215.array(z215.string()),
6677
6698
  theme: PortalSettingsTheme.nullish(),
6678
6699
  sidebar: PortalSettingsSidebar.nullish(),
6679
- createdAt: z214.coerce.date(),
6680
- updatedAt: z214.coerce.date()
6700
+ createdAt: z215.coerce.date(),
6701
+ updatedAt: z215.coerce.date()
6681
6702
  });
6682
6703
 
6683
6704
  // 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(),
6705
+ import { z as z216 } from "zod";
6706
+ var PersonalAccessToken = z216.object({
6707
+ id: z216.string(),
6708
+ userId: z216.string(),
6709
+ workspaceId: z216.string().optional(),
6710
+ designSystemId: z216.string().optional(),
6690
6711
  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()
6712
+ name: z216.string(),
6713
+ hidden: z216.boolean(),
6714
+ token: z216.string(),
6715
+ scope: z216.string().optional(),
6716
+ createdAt: z216.coerce.date(),
6717
+ expireAt: z216.coerce.date().optional()
6697
6718
  });
6698
6719
  export {
6699
6720
  Address,
@@ -7259,6 +7280,8 @@ export {
7259
7280
  PageBlockV1,
7260
7281
  PageBlockV2,
7261
7282
  PageRedirect,
7283
+ PageScreenshotInput,
7284
+ PageScreenshotOutput,
7262
7285
  PageSectionAppearanceV2,
7263
7286
  PageSectionColumnV2,
7264
7287
  PageSectionEditorModelV2,