@supernova-studio/client 0.55.25 → 0.55.27

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
@@ -20,12 +20,12 @@ import { z as z11 } from "zod";
20
20
  import { z as z12 } from "zod";
21
21
  import { z as z13 } from "zod";
22
22
  import { z as z14 } from "zod";
23
- import { z as z126 } from "zod";
23
+ import { z as z144 } from "zod";
24
24
  import { z as z17 } from "zod";
25
25
  import { z as z15 } from "zod";
26
26
  import { z as z16 } from "zod";
27
- import { z as z125 } from "zod";
28
- import { z as z124 } from "zod";
27
+ import { z as z143 } from "zod";
28
+ import { z as z142 } from "zod";
29
29
  import { z as z18 } from "zod";
30
30
  import { z as z19 } from "zod";
31
31
  import { z as z20 } from "zod";
@@ -122,25 +122,28 @@ import { z as z109 } from "zod";
122
122
  import { z as z110 } from "zod";
123
123
  import { z as z111 } from "zod";
124
124
  import { z as z112 } from "zod";
125
- import { z as z115 } from "zod";
125
+ import { z as z133 } from "zod";
126
126
  import { z as z113 } from "zod";
127
127
  import { z as z114 } from "zod";
128
128
  import { z as z116 } from "zod";
129
- import { z as z117 } from "zod";
129
+ import { z as z115 } from "zod";
130
130
  import { z as z118 } from "zod";
131
+ import IPCIDR from "ip-cidr";
132
+ import { z as z117 } from "zod";
131
133
  import { z as z119 } from "zod";
132
134
  import { z as z120 } from "zod";
133
135
  import { z as z121 } from "zod";
136
+ import { z as z130 } from "zod";
134
137
  import { z as z122 } from "zod";
135
138
  import { z as z123 } from "zod";
136
- import { z as z133 } from "zod";
137
- import { z as z132 } from "zod";
139
+ import { z as z124 } from "zod";
140
+ import { z as z125 } from "zod";
141
+ import { z as z126 } from "zod";
138
142
  import { z as z127 } from "zod";
139
143
  import { z as z128 } from "zod";
140
144
  import { z as z129 } from "zod";
141
- import { z as z130 } from "zod";
142
145
  import { z as z131 } from "zod";
143
- import { z as z147 } from "zod";
146
+ import { z as z132 } from "zod";
144
147
  import { z as z134 } from "zod";
145
148
  import { z as z135 } from "zod";
146
149
  import { z as z136 } from "zod";
@@ -149,38 +152,36 @@ import { z as z138 } from "zod";
149
152
  import { z as z139 } from "zod";
150
153
  import { z as z140 } from "zod";
151
154
  import { z as z141 } from "zod";
152
- import { z as z146 } from "zod";
153
- import { z as z142 } from "zod";
154
- import IPCIDR from "ip-cidr";
155
+ import { z as z151 } from "zod";
156
+ import { z as z150 } from "zod";
155
157
  import { z as z145 } from "zod";
156
- import { z as z143 } from "zod";
157
- import { z as z144 } from "zod";
158
+ import { z as z146 } from "zod";
159
+ import { z as z147 } from "zod";
158
160
  import { z as z148 } from "zod";
159
- import { z as z155 } from "zod";
160
161
  import { z as z149 } from "zod";
161
- import { z as z150 } from "zod";
162
- import { z as z151 } from "zod";
163
- import { z as z152 } from "zod";
164
- import { z as z153 } from "zod";
165
162
  import { z as z154 } from "zod";
163
+ import { z as z153 } from "zod";
164
+ import { z as z152 } from "zod";
165
+ import { z as z155 } from "zod";
166
166
  import { z as z156 } from "zod";
167
- import { z as z159 } from "zod";
168
167
  import { z as z157 } from "zod";
169
- import { z as z158 } from "zod";
170
168
  import { z as z160 } from "zod";
169
+ import { z as z158 } from "zod";
170
+ import { z as z159 } from "zod";
171
171
  import { z as z161 } from "zod";
172
172
  import { z as z162 } from "zod";
173
173
  import { z as z163 } from "zod";
174
174
  import { z as z164 } from "zod";
175
175
  import { z as z165 } from "zod";
176
- import { z as z167 } from "zod";
177
176
  import { z as z166 } from "zod";
178
177
  import { z as z168 } from "zod";
178
+ import { z as z167 } from "zod";
179
179
  import { z as z169 } from "zod";
180
180
  import { z as z170 } from "zod";
181
181
  import { z as z171 } from "zod";
182
182
  import { z as z172 } from "zod";
183
183
  import { z as z173 } from "zod";
184
+ import { z as z174 } from "zod";
184
185
  var __defProp2 = Object.defineProperty;
185
186
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
186
187
  var __publicField2 = (obj, key, value) => {
@@ -652,13 +653,19 @@ var FigmaComponentPropertyBase = z32.object({
652
653
  id: z32.string(),
653
654
  name: z32.string()
654
655
  });
656
+ var FigmaComponentInstancePreview = z32.object({
657
+ componentName: z32.string(),
658
+ componentSetName: z32.string().optional(),
659
+ isRemote: z32.boolean()
660
+ });
655
661
  var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
656
662
  type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
657
663
  defaultValue: z32.boolean()
658
664
  });
659
665
  var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
660
666
  type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
661
- defaultValue: z32.string()
667
+ defaultValue: z32.string(),
668
+ defaultValuePreview: FigmaComponentInstancePreview.optional()
662
669
  });
663
670
  var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
664
671
  type: z32.literal(FigmaComponentPropertyType.enum.Variant),
@@ -3573,47 +3580,270 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
3573
3580
  function pickLatestGroupSnapshots(snapshots) {
3574
3581
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
3575
3582
  }
3576
- var WorkspaceRoleSchema = z113.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
3583
+ var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
3584
+ var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3585
+ var NpmRegistryBasicAuthConfig = z113.object({
3586
+ authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
3587
+ username: z113.string(),
3588
+ password: z113.string()
3589
+ });
3590
+ var NpmRegistryBearerAuthConfig = z113.object({
3591
+ authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
3592
+ accessToken: z113.string()
3593
+ });
3594
+ var NpmRegistryNoAuthConfig = z113.object({
3595
+ authType: z113.literal(NpmRegistryAuthType.Enum.None)
3596
+ });
3597
+ var NpmRegistrCustomAuthConfig = z113.object({
3598
+ authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
3599
+ authHeaderName: z113.string(),
3600
+ authHeaderValue: z113.string()
3601
+ });
3602
+ var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
3603
+ NpmRegistryBasicAuthConfig,
3604
+ NpmRegistryBearerAuthConfig,
3605
+ NpmRegistryNoAuthConfig,
3606
+ NpmRegistrCustomAuthConfig
3607
+ ]);
3608
+ var NpmRegistryConfigBase = z113.object({
3609
+ registryType: NpmRegistryType,
3610
+ enabledScopes: z113.array(z113.string()),
3611
+ customRegistryUrl: z113.string().optional(),
3612
+ bypassProxy: z113.boolean().default(false),
3613
+ npmProxyRegistryConfigId: z113.string().optional(),
3614
+ npmProxyVersion: z113.number().optional()
3615
+ });
3616
+ var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
3617
+ var SsoProvider = z114.object({
3618
+ providerId: z114.string(),
3619
+ defaultAutoInviteValue: z114.boolean(),
3620
+ autoInviteDomains: z114.record(z114.string(), z114.boolean()),
3621
+ skipDocsSupernovaLogin: z114.boolean(),
3622
+ areInvitesDisabled: z114.boolean(),
3623
+ isTestMode: z114.boolean(),
3624
+ emailDomains: z114.array(z114.string()),
3625
+ metadataXml: z114.string().nullish()
3626
+ });
3627
+ var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
3577
3628
  var WorkspaceRole = WorkspaceRoleSchema.enum;
3578
- var DesignSystemInvitation = z114.object({
3579
- id: z114.string(),
3580
- designSystemId: z114.string(),
3581
- workspaceInvitationId: z114.string()
3629
+ var MAX_MEMBERS_COUNT = 100;
3630
+ var UserInvite = z116.object({
3631
+ email: z116.string().email().trim().transform((value) => value.toLowerCase()),
3632
+ role: WorkspaceRoleSchema
3633
+ });
3634
+ var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
3635
+ var isValidCIDR = (value) => {
3636
+ return IPCIDR.isValidAddress(value);
3637
+ };
3638
+ var WorkspaceIpWhitelistEntry = z117.object({
3639
+ isEnabled: z117.boolean(),
3640
+ name: z117.string(),
3641
+ range: z117.string().refine(isValidCIDR, {
3642
+ message: "Invalid IP CIDR"
3643
+ })
3644
+ });
3645
+ var WorkspaceIpSettings = z117.object({
3646
+ isEnabledForCloud: z117.boolean(),
3647
+ isEnabledForDocs: z117.boolean(),
3648
+ entries: z117.array(WorkspaceIpWhitelistEntry)
3649
+ });
3650
+ var WorkspaceProfile = z117.object({
3651
+ name: z117.string(),
3652
+ handle: z117.string(),
3653
+ color: z117.string(),
3654
+ avatar: nullishToOptional(z117.string()),
3655
+ billingDetails: nullishToOptional(BillingDetails)
3656
+ });
3657
+ var WorkspaceProfileUpdate = WorkspaceProfile.omit({
3658
+ avatar: true
3659
+ });
3660
+ var Workspace = z117.object({
3661
+ id: z117.string(),
3662
+ profile: WorkspaceProfile,
3663
+ subscription: Subscription,
3664
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3665
+ sso: nullishToOptional(SsoProvider),
3666
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
3667
+ });
3668
+ var WorkspaceWithDesignSystems = z117.object({
3669
+ workspace: Workspace,
3670
+ designSystems: z117.array(DesignSystem)
3671
+ });
3672
+ var WorkspaceConfigurationUpdate = z118.object({
3673
+ id: z118.string(),
3674
+ ipWhitelist: WorkspaceIpSettings.optional(),
3675
+ sso: SsoProvider.optional(),
3676
+ npmRegistrySettings: NpmRegistryConfig.optional(),
3677
+ profile: WorkspaceProfileUpdate.optional()
3678
+ });
3679
+ var WorkspaceContext = z119.object({
3680
+ workspaceId: z119.string(),
3681
+ product: ProductCodeSchema,
3682
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3683
+ publicDesignSystem: z119.boolean().optional()
3684
+ });
3685
+ var WORKSPACE_NAME_MIN_LENGTH = 2;
3686
+ var WORKSPACE_NAME_MAX_LENGTH = 64;
3687
+ var HANDLE_MIN_LENGTH = 2;
3688
+ var HANDLE_MAX_LENGTH = 64;
3689
+ var CreateWorkspaceInput = z120.object({
3690
+ name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
3691
+ handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
3692
+ });
3693
+ var WorkspaceInvitation = z121.object({
3694
+ id: z121.string(),
3695
+ email: z121.string().email(),
3696
+ createdAt: z121.coerce.date(),
3697
+ resentAt: z121.coerce.date().nullish(),
3698
+ role: z121.nativeEnum(WorkspaceRole),
3699
+ workspaceId: z121.string(),
3700
+ invitedBy: z121.string()
3701
+ });
3702
+ var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
3703
+ var ExternalServiceType = z122.union([
3704
+ z122.literal("figma"),
3705
+ z122.literal("github"),
3706
+ z122.literal("azure"),
3707
+ z122.literal("gitlab"),
3708
+ z122.literal("bitbucket")
3709
+ ]);
3710
+ var IntegrationUserInfo = z122.object({
3711
+ id: z122.string(),
3712
+ handle: z122.string().optional(),
3713
+ avatarUrl: z122.string().optional(),
3714
+ email: z122.string().optional(),
3715
+ authType: IntegrationAuthType.optional(),
3716
+ customUrl: z122.string().optional()
3717
+ });
3718
+ var UserLinkedIntegrations = z122.object({
3719
+ figma: IntegrationUserInfo.optional(),
3720
+ github: IntegrationUserInfo.array().optional(),
3721
+ azure: IntegrationUserInfo.array().optional(),
3722
+ gitlab: IntegrationUserInfo.array().optional(),
3723
+ bitbucket: IntegrationUserInfo.array().optional()
3724
+ });
3725
+ var UserAnalyticsCleanupSchedule = z123.object({
3726
+ userId: z123.string(),
3727
+ createdAt: z123.coerce.date(),
3728
+ deleteAt: z123.coerce.date()
3729
+ });
3730
+ var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3731
+ createdAt: true
3732
+ });
3733
+ var UserIdentity = z124.object({
3734
+ id: z124.string(),
3735
+ userId: z124.string()
3736
+ });
3737
+ var UserMinified = z125.object({
3738
+ id: z125.string(),
3739
+ name: z125.string(),
3740
+ email: z125.string(),
3741
+ avatar: z125.string().optional()
3742
+ });
3743
+ var LiveblocksNotificationSettings = z126.object({
3744
+ sendCommentNotificationEmails: z126.boolean()
3745
+ });
3746
+ var UserNotificationSettings = z126.object({
3747
+ liveblocksNotificationSettings: LiveblocksNotificationSettings
3748
+ });
3749
+ var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3750
+ var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3751
+ var UserOnboarding = z127.object({
3752
+ companyName: z127.string().optional(),
3753
+ numberOfPeopleInOrg: z127.string().optional(),
3754
+ numberOfPeopleInDesignTeam: z127.string().optional(),
3755
+ department: UserOnboardingDepartment.optional(),
3756
+ jobTitle: z127.string().optional(),
3757
+ phase: z127.string().optional(),
3758
+ jobLevel: UserOnboardingJobLevel.optional(),
3759
+ designSystemName: z127.string().optional(),
3760
+ defaultDestination: z127.string().optional(),
3761
+ figmaUrl: z127.string().optional(),
3762
+ isPageDraftOnboardingFinished: z127.boolean().optional(),
3763
+ isApprovalsOnboardingFinished: z127.boolean().optional()
3764
+ });
3765
+ var UserProfile = z127.object({
3766
+ name: z127.string(),
3767
+ avatar: z127.string().optional(),
3768
+ nickname: z127.string().optional(),
3769
+ onboarding: UserOnboarding.optional()
3770
+ });
3771
+ var UserProfileUpdate = UserProfile.partial().omit({
3772
+ avatar: true
3773
+ });
3774
+ var UserTest = z128.object({
3775
+ id: z128.string(),
3776
+ email: z128.string()
3777
+ });
3778
+ var UserSource = z129.enum(["SignUp", "Invite", "SSO"]);
3779
+ var User = z129.object({
3780
+ id: z129.string(),
3781
+ email: z129.string(),
3782
+ emailVerified: z129.boolean(),
3783
+ createdAt: z129.coerce.date(),
3784
+ trialExpiresAt: z129.coerce.date().optional(),
3785
+ profile: UserProfile,
3786
+ linkedIntegrations: UserLinkedIntegrations.optional(),
3787
+ loggedOutAt: z129.coerce.date().optional(),
3788
+ isProtected: z129.boolean(),
3789
+ source: UserSource.optional()
3790
+ });
3791
+ var WorkspaceMembership = z130.object({
3792
+ id: z130.string(),
3793
+ userId: z130.string(),
3794
+ workspaceId: z130.string(),
3795
+ workspaceRole: z130.nativeEnum(WorkspaceRole),
3796
+ notificationSettings: UserNotificationSettings
3582
3797
  });
3583
- var DesignSystemRole = z115.enum([
3798
+ var UpdateMembershipRolesInput = z130.object({
3799
+ members: z130.array(
3800
+ z130.object({
3801
+ userId: z130.string(),
3802
+ role: z130.nativeEnum(WorkspaceRole)
3803
+ })
3804
+ )
3805
+ });
3806
+ var DesignSystemRole = z131.enum([
3584
3807
  WorkspaceRole.Admin,
3585
3808
  WorkspaceRole.Contributor,
3586
3809
  WorkspaceRole.Creator,
3587
3810
  WorkspaceRole.Viewer
3588
3811
  ]);
3589
- var DesignSystemMembership = z115.object({
3590
- id: z115.string(),
3591
- userId: z115.string(),
3592
- designSystemId: z115.string(),
3593
- workspaceMembershipId: z115.string()
3812
+ var DesignSystemInvitation = z132.object({
3813
+ id: z132.string(),
3814
+ designSystemId: z132.string(),
3815
+ workspaceInvitationId: z132.string(),
3816
+ designSystemRole: DesignSystemRole.optional()
3594
3817
  });
3595
- var DesignSystemMembers = z115.object({
3818
+ var DesignSystemMembership = z133.object({
3819
+ id: z133.string(),
3820
+ userId: z133.string(),
3821
+ designSystemId: z133.string(),
3822
+ designSystemRole: DesignSystemRole.optional(),
3823
+ workspaceMembershipId: z133.string()
3824
+ });
3825
+ var DesignSystemMembers = z133.object({
3596
3826
  members: DesignSystemMembership.array(),
3597
3827
  invitations: DesignSystemInvitation.array()
3598
3828
  });
3599
- var DesignSystemPendingMemberInvitation = z115.object({
3600
- inviteId: z115.string(),
3829
+ var DesignSystemPendingMemberInvitation = z133.object({
3830
+ inviteId: z133.string(),
3601
3831
  /**
3602
3832
  * Role that the user will have in the design system, undefined
3603
3833
  * if it should be inherited from the workspace
3604
3834
  */
3605
3835
  designSystemRole: DesignSystemRole.optional()
3606
3836
  });
3607
- var DesignSystemUserInvitation = z115.object({
3608
- userId: z115.string(),
3837
+ var DesignSystemUserInvitation = z133.object({
3838
+ userId: z133.string(),
3609
3839
  /**
3610
3840
  * Role that the user will have in the design system, undefined
3611
3841
  * if it should be inherited from the workspace
3612
3842
  */
3613
3843
  designSystemRole: DesignSystemRole.optional()
3614
3844
  });
3615
- var DesignSystemInvite = z115.object({
3616
- email: z115.string(),
3845
+ var DesignSystemInvite = z133.object({
3846
+ email: z133.string(),
3617
3847
  workspaceRole: WorkspaceRoleSchema,
3618
3848
  /**
3619
3849
  * Role that the user will have in the design system, undefined
@@ -3621,252 +3851,252 @@ var DesignSystemInvite = z115.object({
3621
3851
  */
3622
3852
  designSystemRole: DesignSystemRole.optional()
3623
3853
  });
3624
- var DesignSystemMemberUpdate = z115.object({
3625
- userId: z115.string(),
3854
+ var DesignSystemMemberUpdate = z133.object({
3855
+ userId: z133.string(),
3626
3856
  designSystemRole: DesignSystemRole.nullable()
3627
3857
  });
3628
- var DesignSystemInviteUpdate = z115.object({
3858
+ var DesignSystemInviteUpdate = z133.object({
3629
3859
  /**
3630
3860
  * Workspace invitation id
3631
3861
  */
3632
- inviteId: z115.string(),
3862
+ inviteId: z133.string(),
3633
3863
  designSystemRole: DesignSystemRole.nullable()
3634
3864
  });
3635
- var DesignSystemMembershipUpdates = z115.object({
3865
+ var DesignSystemMembershipUpdates = z133.object({
3636
3866
  usersToInvite: DesignSystemUserInvitation.array().optional(),
3637
3867
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
3638
3868
  emailsToInvite: DesignSystemInvite.array().optional(),
3639
3869
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
3640
3870
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
3641
- removeUserIds: z115.string().array().optional(),
3642
- deleteInvitationIds: z115.string().array().optional()
3643
- });
3644
- var ElementViewBaseColumnType = z116.enum(["Name", "Description", "Value", "UpdatedAt"]);
3645
- var ElementViewColumnType = z116.union([
3646
- z116.literal("BaseProperty"),
3647
- z116.literal("PropertyDefinition"),
3648
- z116.literal("Theme")
3871
+ removeUserIds: z133.string().array().optional(),
3872
+ deleteInvitationIds: z133.string().array().optional()
3873
+ });
3874
+ var ElementViewBaseColumnType = z134.enum(["Name", "Description", "Value", "UpdatedAt"]);
3875
+ var ElementViewColumnType = z134.union([
3876
+ z134.literal("BaseProperty"),
3877
+ z134.literal("PropertyDefinition"),
3878
+ z134.literal("Theme")
3649
3879
  ]);
3650
- var ElementViewColumnSharedAttributes = z116.object({
3651
- id: z116.string(),
3652
- persistentId: z116.string(),
3653
- elementDataViewId: z116.string(),
3654
- sortPosition: z116.number(),
3655
- width: z116.number()
3880
+ var ElementViewColumnSharedAttributes = z134.object({
3881
+ id: z134.string(),
3882
+ persistentId: z134.string(),
3883
+ elementDataViewId: z134.string(),
3884
+ sortPosition: z134.number(),
3885
+ width: z134.number()
3656
3886
  });
3657
3887
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
3658
- type: z116.literal("BaseProperty"),
3888
+ type: z134.literal("BaseProperty"),
3659
3889
  basePropertyType: ElementViewBaseColumnType
3660
3890
  });
3661
3891
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3662
- type: z116.literal("PropertyDefinition"),
3663
- propertyDefinitionId: z116.string()
3892
+ type: z134.literal("PropertyDefinition"),
3893
+ propertyDefinitionId: z134.string()
3664
3894
  });
3665
3895
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3666
- type: z116.literal("Theme"),
3667
- themeId: z116.string()
3896
+ type: z134.literal("Theme"),
3897
+ themeId: z134.string()
3668
3898
  });
3669
- var ElementViewColumn = z116.discriminatedUnion("type", [
3899
+ var ElementViewColumn = z134.discriminatedUnion("type", [
3670
3900
  ElementViewBasePropertyColumn,
3671
3901
  ElementViewPropertyDefinitionColumn,
3672
3902
  ElementViewThemeColumn
3673
3903
  ]);
3674
- var ElementView = z117.object({
3675
- id: z117.string(),
3676
- persistentId: z117.string(),
3677
- designSystemVersionId: z117.string(),
3678
- name: z117.string(),
3679
- description: z117.string(),
3904
+ var ElementView = z135.object({
3905
+ id: z135.string(),
3906
+ persistentId: z135.string(),
3907
+ designSystemVersionId: z135.string(),
3908
+ name: z135.string(),
3909
+ description: z135.string(),
3680
3910
  targetElementType: ElementPropertyTargetType,
3681
- isDefault: z117.boolean()
3911
+ isDefault: z135.boolean()
3682
3912
  });
3683
- var Brand = z118.object({
3684
- id: z118.string(),
3685
- designSystemVersionId: z118.string(),
3686
- persistentId: z118.string(),
3687
- name: z118.string(),
3688
- description: z118.string()
3689
- });
3690
- var DesignSystemAccessMode = z119.enum(["Open", "InviteOnly"]);
3691
- var DesignSystemSwitcher = z119.object({
3692
- isEnabled: z119.boolean(),
3693
- designSystemIds: z119.array(z119.string())
3694
- });
3695
- var DesignSystem = z119.object({
3696
- id: z119.string(),
3697
- workspaceId: z119.string(),
3698
- name: z119.string(),
3699
- description: z119.string(),
3700
- docExporterId: nullishToOptional(z119.string()),
3701
- docSlug: z119.string(),
3702
- docUserSlug: nullishToOptional(z119.string()),
3703
- docSlugDeprecated: z119.string(),
3704
- isMultibrand: z119.boolean(),
3705
- docViewUrl: nullishToOptional(z119.string()),
3706
- basePrefixes: z119.array(z119.string()),
3913
+ var Brand = z136.object({
3914
+ id: z136.string(),
3915
+ designSystemVersionId: z136.string(),
3916
+ persistentId: z136.string(),
3917
+ name: z136.string(),
3918
+ description: z136.string()
3919
+ });
3920
+ var DesignSystemAccessMode = z137.enum(["Open", "InviteOnly"]);
3921
+ var DesignSystemSwitcher = z137.object({
3922
+ isEnabled: z137.boolean(),
3923
+ designSystemIds: z137.array(z137.string())
3924
+ });
3925
+ var DesignSystem = z137.object({
3926
+ id: z137.string(),
3927
+ workspaceId: z137.string(),
3928
+ name: z137.string(),
3929
+ description: z137.string(),
3930
+ docExporterId: nullishToOptional(z137.string()),
3931
+ docSlug: z137.string(),
3932
+ docUserSlug: nullishToOptional(z137.string()),
3933
+ docSlugDeprecated: z137.string(),
3934
+ isMultibrand: z137.boolean(),
3935
+ docViewUrl: nullishToOptional(z137.string()),
3936
+ basePrefixes: z137.array(z137.string()),
3707
3937
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3708
- isApprovalFeatureEnabled: z119.boolean(),
3709
- approvalRequiredForPublishing: z119.boolean(),
3938
+ isApprovalFeatureEnabled: z137.boolean(),
3939
+ approvalRequiredForPublishing: z137.boolean(),
3710
3940
  accessMode: DesignSystemAccessMode,
3711
- membersGenerated: z119.boolean(),
3712
- createdAt: z119.coerce.date(),
3713
- updatedAt: z119.coerce.date()
3941
+ membersGenerated: z137.boolean(),
3942
+ createdAt: z137.coerce.date(),
3943
+ updatedAt: z137.coerce.date()
3714
3944
  });
3715
- var ExporterPropertyImageValue = z120.object({
3945
+ var ExporterPropertyImageValue = z138.object({
3716
3946
  asset: PageBlockAsset.optional(),
3717
- assetId: z120.string().optional(),
3718
- assetUrl: z120.string().optional()
3719
- });
3720
- var ExporterPropertyValue = z120.object({
3721
- key: z120.string(),
3722
- value: z120.union([
3723
- z120.number(),
3724
- z120.string(),
3725
- z120.boolean(),
3947
+ assetId: z138.string().optional(),
3948
+ assetUrl: z138.string().optional()
3949
+ });
3950
+ var ExporterPropertyValue = z138.object({
3951
+ key: z138.string(),
3952
+ value: z138.union([
3953
+ z138.number(),
3954
+ z138.string(),
3955
+ z138.boolean(),
3726
3956
  ExporterPropertyImageValue,
3727
3957
  ColorTokenData,
3728
3958
  TypographyTokenData
3729
3959
  ])
3730
3960
  });
3731
- var ExporterPropertyValuesCollection = z120.object({
3732
- id: z120.string(),
3733
- designSystemId: z120.string(),
3734
- exporterId: z120.string(),
3735
- values: z120.array(ExporterPropertyValue)
3736
- });
3737
- var PublishedDocPage = z121.object({
3738
- id: z121.string(),
3739
- publishedDocId: z121.string(),
3740
- pageShortPersistentId: z121.string(),
3741
- pathV1: z121.string(),
3742
- pathV2: z121.string(),
3743
- storagePath: z121.string(),
3744
- locale: z121.string().optional(),
3745
- isPrivate: z121.boolean(),
3746
- isHidden: z121.boolean(),
3747
- createdAt: z121.coerce.date(),
3748
- updatedAt: z121.coerce.date()
3961
+ var ExporterPropertyValuesCollection = z138.object({
3962
+ id: z138.string(),
3963
+ designSystemId: z138.string(),
3964
+ exporterId: z138.string(),
3965
+ values: z138.array(ExporterPropertyValue)
3966
+ });
3967
+ var PublishedDocPage = z139.object({
3968
+ id: z139.string(),
3969
+ publishedDocId: z139.string(),
3970
+ pageShortPersistentId: z139.string(),
3971
+ pathV1: z139.string(),
3972
+ pathV2: z139.string(),
3973
+ storagePath: z139.string(),
3974
+ locale: z139.string().optional(),
3975
+ isPrivate: z139.boolean(),
3976
+ isHidden: z139.boolean(),
3977
+ createdAt: z139.coerce.date(),
3978
+ updatedAt: z139.coerce.date()
3749
3979
  });
3750
3980
  var publishedDocEnvironments = ["Live", "Preview"];
3751
- var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
3752
- var PublishedDocsChecksums = z122.record(z122.string());
3753
- var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
3754
- var PublishedDoc = z122.object({
3755
- id: z122.string(),
3756
- designSystemVersionId: z122.string(),
3757
- createdAt: z122.coerce.date(),
3758
- updatedAt: z122.coerce.date(),
3759
- lastPublishedAt: z122.coerce.date(),
3760
- isDefault: z122.boolean(),
3761
- isPublic: z122.boolean(),
3981
+ var PublishedDocEnvironment = z140.enum(publishedDocEnvironments);
3982
+ var PublishedDocsChecksums = z140.record(z140.string());
3983
+ var PublishedDocRoutingVersion = z140.enum(["1", "2"]);
3984
+ var PublishedDoc = z140.object({
3985
+ id: z140.string(),
3986
+ designSystemVersionId: z140.string(),
3987
+ createdAt: z140.coerce.date(),
3988
+ updatedAt: z140.coerce.date(),
3989
+ lastPublishedAt: z140.coerce.date(),
3990
+ isDefault: z140.boolean(),
3991
+ isPublic: z140.boolean(),
3762
3992
  environment: PublishedDocEnvironment,
3763
3993
  checksums: PublishedDocsChecksums,
3764
- storagePath: z122.string(),
3765
- wasMigrated: z122.boolean(),
3994
+ storagePath: z140.string(),
3995
+ wasMigrated: z140.boolean(),
3766
3996
  routingVersion: PublishedDocRoutingVersion,
3767
- usesLocalizations: z122.boolean(),
3768
- wasPublishedWithLocalizations: z122.boolean(),
3769
- tokenCount: z122.number(),
3770
- assetCount: z122.number()
3771
- });
3772
- var DesignSystemVersion = z123.object({
3773
- id: z123.string(),
3774
- version: z123.string(),
3775
- createdAt: z123.coerce.date(),
3776
- designSystemId: z123.string(),
3777
- name: z123.string(),
3778
- comment: z123.string(),
3779
- isReadonly: z123.boolean(),
3780
- changeLog: z123.string(),
3781
- parentId: z123.string().optional(),
3782
- isDraftsFeatureAdopted: z123.boolean()
3783
- });
3784
- var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
3785
- var VersionCreationJob = z123.object({
3786
- id: z123.string(),
3787
- version: z123.string(),
3788
- designSystemId: z123.string(),
3789
- designSystemVersionId: nullishToOptional(z123.string()),
3997
+ usesLocalizations: z140.boolean(),
3998
+ wasPublishedWithLocalizations: z140.boolean(),
3999
+ tokenCount: z140.number(),
4000
+ assetCount: z140.number()
4001
+ });
4002
+ var DesignSystemVersion = z141.object({
4003
+ id: z141.string(),
4004
+ version: z141.string(),
4005
+ createdAt: z141.coerce.date(),
4006
+ designSystemId: z141.string(),
4007
+ name: z141.string(),
4008
+ comment: z141.string(),
4009
+ isReadonly: z141.boolean(),
4010
+ changeLog: z141.string(),
4011
+ parentId: z141.string().optional(),
4012
+ isDraftsFeatureAdopted: z141.boolean()
4013
+ });
4014
+ var VersionCreationJobStatus = z141.enum(["Success", "InProgress", "Error"]);
4015
+ var VersionCreationJob = z141.object({
4016
+ id: z141.string(),
4017
+ version: z141.string(),
4018
+ designSystemId: z141.string(),
4019
+ designSystemVersionId: nullishToOptional(z141.string()),
3790
4020
  status: VersionCreationJobStatus,
3791
- errorMessage: nullishToOptional(z123.string())
4021
+ errorMessage: nullishToOptional(z141.string())
3792
4022
  });
3793
4023
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3794
4024
  var BITBUCKET_MAX_LENGTH = 64;
3795
- var ExportJobDocumentationChanges = z124.object({
3796
- pagePersistentIds: z124.string().array(),
3797
- groupPersistentIds: z124.string().array()
4025
+ var ExportJobDocumentationChanges = z142.object({
4026
+ pagePersistentIds: z142.string().array(),
4027
+ groupPersistentIds: z142.string().array()
3798
4028
  });
3799
- var ExporterDestinationDocs = z124.object({
4029
+ var ExporterDestinationDocs = z142.object({
3800
4030
  environment: PublishedDocEnvironment,
3801
4031
  changes: nullishToOptional(ExportJobDocumentationChanges)
3802
4032
  });
3803
- var ExporterDestinationS3 = z124.object({});
3804
- var ExporterDestinationGithub = z124.object({
3805
- credentialId: z124.string().optional(),
4033
+ var ExporterDestinationS3 = z142.object({});
4034
+ var ExporterDestinationGithub = z142.object({
4035
+ credentialId: z142.string().optional(),
3806
4036
  // Repository
3807
- url: z124.string(),
4037
+ url: z142.string(),
3808
4038
  // Location
3809
- branch: z124.string(),
3810
- relativePath: nullishToOptional(z124.string()),
4039
+ branch: z142.string(),
4040
+ relativePath: nullishToOptional(z142.string()),
3811
4041
  // Commit metadata
3812
- commitAuthorName: nullishToOptional(z124.string()),
3813
- commitAuthorEmail: nullishToOptional(z124.string()),
4042
+ commitAuthorName: nullishToOptional(z142.string()),
4043
+ commitAuthorEmail: nullishToOptional(z142.string()),
3814
4044
  // Legacy deprecated fields. Use `credentialId` instead
3815
- connectionId: nullishToOptional(z124.string()),
3816
- userId: nullishToOptional(z124.number())
4045
+ connectionId: nullishToOptional(z142.string()),
4046
+ userId: nullishToOptional(z142.number())
3817
4047
  });
3818
- var ExporterDestinationAzure = z124.object({
3819
- credentialId: z124.string().optional(),
4048
+ var ExporterDestinationAzure = z142.object({
4049
+ credentialId: z142.string().optional(),
3820
4050
  // Repository
3821
- organizationId: z124.string(),
3822
- projectId: z124.string(),
3823
- repositoryId: z124.string(),
4051
+ organizationId: z142.string(),
4052
+ projectId: z142.string(),
4053
+ repositoryId: z142.string(),
3824
4054
  // Commit metadata
3825
- commitAuthorName: nullishToOptional(z124.string()),
3826
- commitAuthorEmail: nullishToOptional(z124.string()),
4055
+ commitAuthorName: nullishToOptional(z142.string()),
4056
+ commitAuthorEmail: nullishToOptional(z142.string()),
3827
4057
  // Location
3828
- branch: z124.string(),
3829
- relativePath: nullishToOptional(z124.string()),
4058
+ branch: z142.string(),
4059
+ relativePath: nullishToOptional(z142.string()),
3830
4060
  // Maybe not needed
3831
- url: nullishToOptional(z124.string()),
4061
+ url: nullishToOptional(z142.string()),
3832
4062
  // Legacy deprecated fields. Use `credentialId` instead
3833
- connectionId: nullishToOptional(z124.string()),
3834
- userId: nullishToOptional(z124.number())
4063
+ connectionId: nullishToOptional(z142.string()),
4064
+ userId: nullishToOptional(z142.number())
3835
4065
  });
3836
- var ExporterDestinationGitlab = z124.object({
3837
- credentialId: z124.string().optional(),
4066
+ var ExporterDestinationGitlab = z142.object({
4067
+ credentialId: z142.string().optional(),
3838
4068
  // Repository
3839
- projectId: z124.string(),
4069
+ projectId: z142.string(),
3840
4070
  // Commit metadata
3841
- commitAuthorName: nullishToOptional(z124.string()),
3842
- commitAuthorEmail: nullishToOptional(z124.string()),
4071
+ commitAuthorName: nullishToOptional(z142.string()),
4072
+ commitAuthorEmail: nullishToOptional(z142.string()),
3843
4073
  // Location
3844
- branch: z124.string(),
3845
- relativePath: nullishToOptional(z124.string()),
4074
+ branch: z142.string(),
4075
+ relativePath: nullishToOptional(z142.string()),
3846
4076
  // Maybe not needed
3847
- url: nullishToOptional(z124.string()),
4077
+ url: nullishToOptional(z142.string()),
3848
4078
  // Legacy deprecated fields. Use `credentialId` instead
3849
- connectionId: nullishToOptional(z124.string()),
3850
- userId: nullishToOptional(z124.number())
4079
+ connectionId: nullishToOptional(z142.string()),
4080
+ userId: nullishToOptional(z142.number())
3851
4081
  });
3852
- var ExporterDestinationBitbucket = z124.object({
3853
- credentialId: z124.string().optional(),
4082
+ var ExporterDestinationBitbucket = z142.object({
4083
+ credentialId: z142.string().optional(),
3854
4084
  // Repository
3855
- workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3856
- projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3857
- repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4085
+ workspaceSlug: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4086
+ projectKey: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4087
+ repoSlug: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3858
4088
  // Commit metadata
3859
- commitAuthorName: nullishToOptional(z124.string()),
3860
- commitAuthorEmail: nullishToOptional(z124.string()),
4089
+ commitAuthorName: nullishToOptional(z142.string()),
4090
+ commitAuthorEmail: nullishToOptional(z142.string()),
3861
4091
  // Location
3862
- branch: z124.string(),
3863
- relativePath: nullishToOptional(z124.string()),
4092
+ branch: z142.string(),
4093
+ relativePath: nullishToOptional(z142.string()),
3864
4094
  // Legacy deprecated fields. Use `credentialId` instead
3865
- connectionId: nullishToOptional(z124.string()),
3866
- userId: nullishToOptional(z124.number())
4095
+ connectionId: nullishToOptional(z142.string()),
4096
+ userId: nullishToOptional(z142.number())
3867
4097
  });
3868
- var ExportDestinationsMap = z124.object({
3869
- webhookUrl: z124.string().optional(),
4098
+ var ExportDestinationsMap = z142.object({
4099
+ webhookUrl: z142.string().optional(),
3870
4100
  destinationSnDocs: ExporterDestinationDocs.optional(),
3871
4101
  destinationS3: ExporterDestinationS3.optional(),
3872
4102
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3874,93 +4104,93 @@ var ExportDestinationsMap = z124.object({
3874
4104
  destinationGitlab: ExporterDestinationGitlab.optional(),
3875
4105
  destinationBitbucket: ExporterDestinationBitbucket.optional()
3876
4106
  });
3877
- var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3878
- var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3879
- var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
3880
- var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3881
- var Pipeline = z125.object({
3882
- id: z125.string(),
3883
- name: z125.string(),
4107
+ var PipelineEventType = z143.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4108
+ var PipelineDestinationGitType = z143.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4109
+ var PipelineDestinationExtraType = z143.enum(["WebhookUrl", "S3", "Documentation"]);
4110
+ var PipelineDestinationType = z143.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4111
+ var Pipeline = z143.object({
4112
+ id: z143.string(),
4113
+ name: z143.string(),
3884
4114
  eventType: PipelineEventType,
3885
- isEnabled: z125.boolean(),
3886
- workspaceId: z125.string(),
3887
- designSystemId: z125.string(),
3888
- exporterId: z125.string(),
3889
- brandPersistentId: z125.string().optional(),
3890
- themePersistentId: z125.string().optional(),
3891
- themePersistentIds: z125.string().array().optional(),
4115
+ isEnabled: z143.boolean(),
4116
+ workspaceId: z143.string(),
4117
+ designSystemId: z143.string(),
4118
+ exporterId: z143.string(),
4119
+ brandPersistentId: z143.string().optional(),
4120
+ themePersistentId: z143.string().optional(),
4121
+ themePersistentIds: z143.string().array().optional(),
3892
4122
  // Destinations
3893
4123
  ...ExportDestinationsMap.shape
3894
4124
  });
3895
- var ExportJobDump = z126.object({
3896
- id: z126.string(),
3897
- createdAt: z126.coerce.date(),
3898
- finishedAt: z126.coerce.date(),
3899
- exportArtefacts: z126.string()
4125
+ var ExportJobDump = z144.object({
4126
+ id: z144.string(),
4127
+ createdAt: z144.coerce.date(),
4128
+ finishedAt: z144.coerce.date(),
4129
+ exportArtefacts: z144.string()
3900
4130
  });
3901
- var CodeIntegrationDump = z126.object({
4131
+ var CodeIntegrationDump = z144.object({
3902
4132
  exporters: Exporter.array(),
3903
4133
  pipelines: Pipeline.array(),
3904
4134
  exportJobs: ExportJobDump.array()
3905
4135
  });
3906
4136
  var DesignSystemVersionRoom = Entity.extend({
3907
- designSystemVersionId: z127.string(),
3908
- liveblocksId: z127.string()
3909
- });
3910
- var DesignSystemVersionRoomInternalSettings = z127.object({
3911
- routingVersion: z127.string(),
3912
- isDraftFeatureAdopted: z127.boolean(),
3913
- isApprovalFeatureEnabled: z127.boolean(),
3914
- approvalRequiredForPublishing: z127.boolean()
3915
- });
3916
- var DesignSystemVersionRoomInitialState = z127.object({
3917
- pages: z127.array(DocumentationPageV2),
3918
- groups: z127.array(ElementGroup),
3919
- pageSnapshots: z127.array(DocumentationPageSnapshot),
3920
- groupSnapshots: z127.array(ElementGroupSnapshot),
3921
- pageApprovals: z127.array(DocumentationPageApproval),
4137
+ designSystemVersionId: z145.string(),
4138
+ liveblocksId: z145.string()
4139
+ });
4140
+ var DesignSystemVersionRoomInternalSettings = z145.object({
4141
+ routingVersion: z145.string(),
4142
+ isDraftFeatureAdopted: z145.boolean(),
4143
+ isApprovalFeatureEnabled: z145.boolean(),
4144
+ approvalRequiredForPublishing: z145.boolean()
4145
+ });
4146
+ var DesignSystemVersionRoomInitialState = z145.object({
4147
+ pages: z145.array(DocumentationPageV2),
4148
+ groups: z145.array(ElementGroup),
4149
+ pageSnapshots: z145.array(DocumentationPageSnapshot),
4150
+ groupSnapshots: z145.array(ElementGroupSnapshot),
4151
+ pageApprovals: z145.array(DocumentationPageApproval),
3922
4152
  internalSettings: DesignSystemVersionRoomInternalSettings
3923
4153
  });
3924
- var DesignSystemVersionRoomUpdate = z127.object({
3925
- pages: z127.array(DocumentationPageV2),
3926
- groups: z127.array(ElementGroup),
3927
- pageIdsToDelete: z127.array(z127.string()),
3928
- groupIdsToDelete: z127.array(z127.string()),
3929
- pageSnapshots: z127.array(DocumentationPageSnapshot),
3930
- groupSnapshots: z127.array(ElementGroupSnapshot),
3931
- pageSnapshotIdsToDelete: z127.array(z127.string()),
3932
- groupSnapshotIdsToDelete: z127.array(z127.string()),
3933
- pageHashesToUpdate: z127.record(z127.string(), z127.string()),
3934
- pageApprovals: z127.array(DocumentationPageApproval),
3935
- pageApprovalIdsToDelete: z127.array(z127.string())
4154
+ var DesignSystemVersionRoomUpdate = z145.object({
4155
+ pages: z145.array(DocumentationPageV2),
4156
+ groups: z145.array(ElementGroup),
4157
+ pageIdsToDelete: z145.array(z145.string()),
4158
+ groupIdsToDelete: z145.array(z145.string()),
4159
+ pageSnapshots: z145.array(DocumentationPageSnapshot),
4160
+ groupSnapshots: z145.array(ElementGroupSnapshot),
4161
+ pageSnapshotIdsToDelete: z145.array(z145.string()),
4162
+ groupSnapshotIdsToDelete: z145.array(z145.string()),
4163
+ pageHashesToUpdate: z145.record(z145.string(), z145.string()),
4164
+ pageApprovals: z145.array(DocumentationPageApproval),
4165
+ pageApprovalIdsToDelete: z145.array(z145.string())
3936
4166
  });
3937
4167
  var DocumentationPageRoom = Entity.extend({
3938
- designSystemVersionId: z128.string(),
3939
- documentationPageId: z128.string(),
3940
- liveblocksId: z128.string(),
3941
- isDirty: z128.boolean()
4168
+ designSystemVersionId: z146.string(),
4169
+ documentationPageId: z146.string(),
4170
+ liveblocksId: z146.string(),
4171
+ isDirty: z146.boolean()
3942
4172
  });
3943
- var DocumentationPageRoomState = z128.object({
3944
- pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4173
+ var DocumentationPageRoomState = z146.object({
4174
+ pageItems: z146.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3945
4175
  itemConfiguration: DocumentationItemConfigurationV2
3946
4176
  });
3947
- var DocumentationPageRoomRoomUpdate = z128.object({
4177
+ var DocumentationPageRoomRoomUpdate = z146.object({
3948
4178
  page: DocumentationPageV2,
3949
4179
  pageParent: ElementGroup
3950
4180
  });
3951
4181
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3952
- pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3953
- blockDefinitions: z128.array(PageBlockDefinition)
4182
+ pageItems: z146.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4183
+ blockDefinitions: z146.array(PageBlockDefinition)
3954
4184
  });
3955
- var RestoredDocumentationPage = z128.object({
4185
+ var RestoredDocumentationPage = z146.object({
3956
4186
  page: DocumentationPageV2,
3957
4187
  pageParent: ElementGroup,
3958
4188
  pageContent: DocumentationPageContentData,
3959
- contentHash: z128.string(),
3960
- snapshotId: z128.string(),
3961
- roomId: z128.string().optional()
4189
+ contentHash: z146.string(),
4190
+ snapshotId: z146.string(),
4191
+ roomId: z146.string().optional()
3962
4192
  });
3963
- var RestoredDocumentationGroup = z128.object({
4193
+ var RestoredDocumentationGroup = z146.object({
3964
4194
  group: ElementGroup,
3965
4195
  parent: ElementGroup
3966
4196
  });
@@ -3970,28 +4200,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3970
4200
  RoomTypeEnum2["Workspace"] = "workspace";
3971
4201
  return RoomTypeEnum2;
3972
4202
  })(RoomTypeEnum || {});
3973
- var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
4203
+ var RoomTypeSchema = z147.nativeEnum(RoomTypeEnum);
3974
4204
  var RoomType = RoomTypeSchema.enum;
3975
4205
  var WorkspaceRoom = Entity.extend({
3976
- workspaceId: z130.string(),
3977
- liveblocksId: z130.string()
4206
+ workspaceId: z148.string(),
4207
+ liveblocksId: z148.string()
3978
4208
  });
3979
- var PublishedDocsDump = z131.object({
4209
+ var PublishedDocsDump = z149.object({
3980
4210
  documentation: PublishedDoc,
3981
4211
  pages: PublishedDocPage.array()
3982
4212
  });
3983
- var DocumentationThreadDump = z132.object({
4213
+ var DocumentationThreadDump = z150.object({
3984
4214
  thread: DocumentationCommentThread,
3985
4215
  comments: DocumentationComment.array()
3986
4216
  });
3987
- var DocumentationPageRoomDump = z132.object({
4217
+ var DocumentationPageRoomDump = z150.object({
3988
4218
  room: DocumentationPageRoom,
3989
4219
  threads: DocumentationThreadDump.array()
3990
4220
  });
3991
- var DesignSystemVersionMultiplayerDump = z132.object({
4221
+ var DesignSystemVersionMultiplayerDump = z150.object({
3992
4222
  documentationPages: DocumentationPageRoomDump.array()
3993
4223
  });
3994
- var DesignSystemVersionDump = z132.object({
4224
+ var DesignSystemVersionDump = z150.object({
3995
4225
  version: DesignSystemVersion,
3996
4226
  brands: Brand.array(),
3997
4227
  elements: DesignElement.array(),
@@ -4004,139 +4234,50 @@ var DesignSystemVersionDump = z132.object({
4004
4234
  publishedDocumentations: PublishedDocsDump.array(),
4005
4235
  assetReferences: AssetReference.array()
4006
4236
  });
4007
- var DesignSystemDump = z133.object({
4237
+ var DesignSystemDump = z151.object({
4008
4238
  designSystem: DesignSystem,
4009
4239
  dataSources: DataSource.array(),
4010
4240
  versions: DesignSystemVersionDump.array(),
4011
4241
  customDomain: CustomDomain.optional(),
4012
4242
  files: Asset.array()
4013
4243
  });
4014
- var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
4015
- var ExternalServiceType = z134.union([
4016
- z134.literal("figma"),
4017
- z134.literal("github"),
4018
- z134.literal("azure"),
4019
- z134.literal("gitlab"),
4020
- z134.literal("bitbucket")
4021
- ]);
4022
- var IntegrationUserInfo = z134.object({
4023
- id: z134.string(),
4024
- handle: z134.string().optional(),
4025
- avatarUrl: z134.string().optional(),
4026
- email: z134.string().optional(),
4027
- authType: IntegrationAuthType.optional(),
4028
- customUrl: z134.string().optional()
4029
- });
4030
- var UserLinkedIntegrations = z134.object({
4031
- figma: IntegrationUserInfo.optional(),
4032
- github: IntegrationUserInfo.array().optional(),
4033
- azure: IntegrationUserInfo.array().optional(),
4034
- gitlab: IntegrationUserInfo.array().optional(),
4035
- bitbucket: IntegrationUserInfo.array().optional()
4036
- });
4037
- var UserAnalyticsCleanupSchedule = z135.object({
4038
- userId: z135.string(),
4039
- createdAt: z135.coerce.date(),
4040
- deleteAt: z135.coerce.date()
4041
- });
4042
- var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4043
- createdAt: true
4044
- });
4045
- var UserIdentity = z136.object({
4046
- id: z136.string(),
4047
- userId: z136.string()
4048
- });
4049
- var UserMinified = z137.object({
4050
- id: z137.string(),
4051
- name: z137.string(),
4052
- email: z137.string(),
4053
- avatar: z137.string().optional()
4054
- });
4055
- var LiveblocksNotificationSettings = z138.object({
4056
- sendCommentNotificationEmails: z138.boolean()
4057
- });
4058
- var UserNotificationSettings = z138.object({
4059
- liveblocksNotificationSettings: LiveblocksNotificationSettings
4060
- });
4061
- var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4062
- var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4063
- var UserOnboarding = z139.object({
4064
- companyName: z139.string().optional(),
4065
- numberOfPeopleInOrg: z139.string().optional(),
4066
- numberOfPeopleInDesignTeam: z139.string().optional(),
4067
- department: UserOnboardingDepartment.optional(),
4068
- jobTitle: z139.string().optional(),
4069
- phase: z139.string().optional(),
4070
- jobLevel: UserOnboardingJobLevel.optional(),
4071
- designSystemName: z139.string().optional(),
4072
- defaultDestination: z139.string().optional(),
4073
- figmaUrl: z139.string().optional(),
4074
- isPageDraftOnboardingFinished: z139.boolean().optional(),
4075
- isApprovalsOnboardingFinished: z139.boolean().optional()
4076
- });
4077
- var UserProfile = z139.object({
4078
- name: z139.string(),
4079
- avatar: z139.string().optional(),
4080
- nickname: z139.string().optional(),
4081
- onboarding: UserOnboarding.optional()
4082
- });
4083
- var UserProfileUpdate = UserProfile.partial().omit({
4084
- avatar: true
4085
- });
4086
- var UserTest = z140.object({
4087
- id: z140.string(),
4088
- email: z140.string()
4089
- });
4090
- var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
4091
- var User = z141.object({
4092
- id: z141.string(),
4093
- email: z141.string(),
4094
- emailVerified: z141.boolean(),
4095
- createdAt: z141.coerce.date(),
4096
- trialExpiresAt: z141.coerce.date().optional(),
4097
- profile: UserProfile,
4098
- linkedIntegrations: UserLinkedIntegrations.optional(),
4099
- loggedOutAt: z141.coerce.date().optional(),
4100
- isProtected: z141.boolean(),
4101
- source: UserSource.optional()
4102
- });
4103
- var IntegrationDesignSystem = z142.object({
4104
- designSystemId: z142.string(),
4105
- brandId: z142.string(),
4106
- title: z142.string().optional(),
4107
- userId: z142.string().optional(),
4108
- date: z142.coerce.date().optional()
4109
- });
4110
- var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
4111
- var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
4112
- var IntegrationCredentialsProfile = z142.object({
4113
- id: nullishToOptional(z142.string()),
4114
- email: nullishToOptional(z142.string()),
4115
- handle: nullishToOptional(z142.string()),
4116
- type: nullishToOptional(z142.string()),
4117
- avatarUrl: nullishToOptional(z142.string()),
4118
- organization: nullishToOptional(z142.string()),
4119
- collection: nullishToOptional(z142.string())
4120
- });
4121
- var IntegrationCredentials = z142.object({
4122
- id: z142.string(),
4244
+ var IntegrationDesignSystem = z152.object({
4245
+ designSystemId: z152.string(),
4246
+ brandId: z152.string(),
4247
+ title: z152.string().optional(),
4248
+ userId: z152.string().optional(),
4249
+ date: z152.coerce.date().optional()
4250
+ });
4251
+ var IntegrationCredentialsType = z152.enum(["OAuth2", "PAT", "GithubApp"]);
4252
+ var IntegrationCredentialsState = z152.enum(["Active", "Inactive"]);
4253
+ var IntegrationCredentialsProfile = z152.object({
4254
+ id: nullishToOptional(z152.string()),
4255
+ email: nullishToOptional(z152.string()),
4256
+ handle: nullishToOptional(z152.string()),
4257
+ type: nullishToOptional(z152.string()),
4258
+ avatarUrl: nullishToOptional(z152.string()),
4259
+ organization: nullishToOptional(z152.string()),
4260
+ collection: nullishToOptional(z152.string())
4261
+ });
4262
+ var IntegrationCredentials = z152.object({
4263
+ id: z152.string(),
4123
4264
  type: IntegrationCredentialsType,
4124
- integrationId: z142.string(),
4125
- accessToken: z142.string(),
4126
- userId: z142.string(),
4127
- createdAt: z142.coerce.date(),
4128
- refreshToken: z142.string().optional(),
4129
- tokenName: z142.string().optional(),
4130
- expiresAt: z142.coerce.date().optional(),
4131
- refreshedAt: z142.coerce.date().optional(),
4132
- username: z142.string().optional(),
4133
- appInstallationId: z142.string().optional(),
4265
+ integrationId: z152.string(),
4266
+ accessToken: z152.string(),
4267
+ userId: z152.string(),
4268
+ createdAt: z152.coerce.date(),
4269
+ refreshToken: z152.string().optional(),
4270
+ tokenName: z152.string().optional(),
4271
+ expiresAt: z152.coerce.date().optional(),
4272
+ refreshedAt: z152.coerce.date().optional(),
4273
+ username: z152.string().optional(),
4274
+ appInstallationId: z152.string().optional(),
4134
4275
  profile: IntegrationCredentialsProfile.optional(),
4135
- customUrl: z142.string().optional(),
4276
+ customUrl: z152.string().optional(),
4136
4277
  state: IntegrationCredentialsState,
4137
4278
  user: UserMinified.optional()
4138
4279
  });
4139
- var ExtendedIntegrationType = z142.enum([
4280
+ var ExtendedIntegrationType = z152.enum([
4140
4281
  "Figma",
4141
4282
  "Github",
4142
4283
  "Gitlab",
@@ -4147,26 +4288,26 @@ var ExtendedIntegrationType = z142.enum([
4147
4288
  ]);
4148
4289
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4149
4290
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4150
- var Integration = z142.object({
4151
- id: z142.string(),
4152
- workspaceId: z142.string(),
4291
+ var Integration = z152.object({
4292
+ id: z152.string(),
4293
+ workspaceId: z152.string(),
4153
4294
  type: IntegrationType,
4154
- createdAt: z142.coerce.date(),
4155
- integrationCredentials: z142.array(IntegrationCredentials).optional()
4156
- });
4157
- var IntegrationToken = z142.object({
4158
- access_token: z142.string(),
4159
- refresh_token: z142.string().optional(),
4160
- expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
4161
- token_type: z142.string().optional(),
4162
- token_name: z142.string().optional(),
4163
- token_azure_organization_name: z142.string().optional(),
4295
+ createdAt: z152.coerce.date(),
4296
+ integrationCredentials: z152.array(IntegrationCredentials).optional()
4297
+ });
4298
+ var IntegrationToken = z152.object({
4299
+ access_token: z152.string(),
4300
+ refresh_token: z152.string().optional(),
4301
+ expires_in: z152.union([z152.number().optional(), z152.string().optional()]),
4302
+ token_type: z152.string().optional(),
4303
+ token_name: z152.string().optional(),
4304
+ token_azure_organization_name: z152.string().optional(),
4164
4305
  // Azure Cloud PAT only
4165
- token_azure_collection_name: z142.string().optional(),
4306
+ token_azure_collection_name: z152.string().optional(),
4166
4307
  // Azure Server PAT only
4167
- token_bitbucket_username: z142.string().optional(),
4308
+ token_bitbucket_username: z152.string().optional(),
4168
4309
  // Bitbucket only
4169
- custom_url: z142.string().optional().transform((value) => {
4310
+ custom_url: z152.string().optional().transform((value) => {
4170
4311
  if (!value?.trim())
4171
4312
  return void 0;
4172
4313
  return formatCustomUrl(value);
@@ -4202,228 +4343,96 @@ function formatCustomUrl(url) {
4202
4343
  }
4203
4344
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
4204
4345
  }
4205
- var NpmRegistryAuthType = z143.enum(["Basic", "Bearer", "None", "Custom"]);
4206
- var NpmRegistryType = z143.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4207
- var NpmRegistryBasicAuthConfig = z143.object({
4208
- authType: z143.literal(NpmRegistryAuthType.Enum.Basic),
4209
- username: z143.string(),
4210
- password: z143.string()
4211
- });
4212
- var NpmRegistryBearerAuthConfig = z143.object({
4213
- authType: z143.literal(NpmRegistryAuthType.Enum.Bearer),
4214
- accessToken: z143.string()
4215
- });
4216
- var NpmRegistryNoAuthConfig = z143.object({
4217
- authType: z143.literal(NpmRegistryAuthType.Enum.None)
4218
- });
4219
- var NpmRegistrCustomAuthConfig = z143.object({
4220
- authType: z143.literal(NpmRegistryAuthType.Enum.Custom),
4221
- authHeaderName: z143.string(),
4222
- authHeaderValue: z143.string()
4223
- });
4224
- var NpmRegistryAuthConfig = z143.discriminatedUnion("authType", [
4225
- NpmRegistryBasicAuthConfig,
4226
- NpmRegistryBearerAuthConfig,
4227
- NpmRegistryNoAuthConfig,
4228
- NpmRegistrCustomAuthConfig
4229
- ]);
4230
- var NpmRegistryConfigBase = z143.object({
4231
- registryType: NpmRegistryType,
4232
- enabledScopes: z143.array(z143.string()),
4233
- customRegistryUrl: z143.string().optional(),
4234
- bypassProxy: z143.boolean().default(false),
4235
- npmProxyRegistryConfigId: z143.string().optional(),
4236
- npmProxyVersion: z143.number().optional()
4237
- });
4238
- var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4239
- var SsoProvider = z144.object({
4240
- providerId: z144.string(),
4241
- defaultAutoInviteValue: z144.boolean(),
4242
- autoInviteDomains: z144.record(z144.string(), z144.boolean()),
4243
- skipDocsSupernovaLogin: z144.boolean(),
4244
- areInvitesDisabled: z144.boolean(),
4245
- isTestMode: z144.boolean(),
4246
- emailDomains: z144.array(z144.string()),
4247
- metadataXml: z144.string().nullish()
4248
- });
4249
- var isValidCIDR = (value) => {
4250
- return IPCIDR.isValidAddress(value);
4251
- };
4252
- var WorkspaceIpWhitelistEntry = z145.object({
4253
- isEnabled: z145.boolean(),
4254
- name: z145.string(),
4255
- range: z145.string().refine(isValidCIDR, {
4256
- message: "Invalid IP CIDR"
4257
- })
4258
- });
4259
- var WorkspaceIpSettings = z145.object({
4260
- isEnabledForCloud: z145.boolean(),
4261
- isEnabledForDocs: z145.boolean(),
4262
- entries: z145.array(WorkspaceIpWhitelistEntry)
4263
- });
4264
- var WorkspaceProfile = z145.object({
4265
- name: z145.string(),
4266
- handle: z145.string(),
4267
- color: z145.string(),
4268
- avatar: nullishToOptional(z145.string()),
4269
- billingDetails: nullishToOptional(BillingDetails)
4270
- });
4271
- var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4272
- avatar: true
4273
- });
4274
- var Workspace = z145.object({
4275
- id: z145.string(),
4276
- profile: WorkspaceProfile,
4277
- subscription: Subscription,
4278
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4279
- sso: nullishToOptional(SsoProvider),
4280
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4281
- });
4282
- var WorkspaceWithDesignSystems = z145.object({
4283
- workspace: Workspace,
4284
- designSystems: z145.array(DesignSystem)
4285
- });
4286
- var WorkspaceDump = z146.object({
4346
+ var WorkspaceDump = z153.object({
4287
4347
  workspace: Workspace,
4288
4348
  designSystems: DesignSystemDump.array(),
4289
4349
  codeIntegration: CodeIntegrationDump,
4290
4350
  integrations: Integration.array()
4291
4351
  });
4292
- var UserDump = z147.object({
4352
+ var UserDump = z154.object({
4293
4353
  user: User,
4294
4354
  workspaces: WorkspaceDump.array()
4295
4355
  });
4296
- var NpmProxyToken = z148.object({
4297
- access: z148.string(),
4298
- expiresAt: z148.number()
4356
+ var NpmProxyToken = z155.object({
4357
+ access: z155.string(),
4358
+ expiresAt: z155.number()
4299
4359
  });
4300
- var SessionData = z148.object({
4301
- returnToUrl: z148.string().optional(),
4360
+ var SessionData = z155.object({
4361
+ returnToUrl: z155.string().optional(),
4302
4362
  npmProxyToken: NpmProxyToken.optional()
4303
4363
  });
4304
- var Session = z148.object({
4305
- id: z148.string(),
4306
- expiresAt: z148.coerce.date(),
4307
- userId: z148.string().nullable(),
4364
+ var Session = z155.object({
4365
+ id: z155.string(),
4366
+ expiresAt: z155.coerce.date(),
4367
+ userId: z155.string().nullable(),
4308
4368
  data: SessionData
4309
4369
  });
4310
- var AuthTokens = z148.object({
4311
- access: z148.string(),
4312
- refresh: z148.string()
4370
+ var AuthTokens = z155.object({
4371
+ access: z155.string(),
4372
+ refresh: z155.string()
4313
4373
  });
4314
- var UserSession = z148.object({
4374
+ var UserSession = z155.object({
4315
4375
  session: Session,
4316
4376
  user: User.nullable()
4317
4377
  });
4318
- var MAX_MEMBERS_COUNT = 100;
4319
- var UserInvite = z149.object({
4320
- email: z149.string().email().trim().transform((value) => value.toLowerCase()),
4321
- role: WorkspaceRoleSchema
4322
- });
4323
- var UserInvites = z149.array(UserInvite).max(MAX_MEMBERS_COUNT);
4324
- var WorkspaceConfigurationUpdate = z150.object({
4325
- id: z150.string(),
4326
- ipWhitelist: WorkspaceIpSettings.optional(),
4327
- sso: SsoProvider.optional(),
4328
- npmRegistrySettings: NpmRegistryConfig.optional(),
4329
- profile: WorkspaceProfileUpdate.optional()
4330
- });
4331
- var WorkspaceContext = z151.object({
4332
- workspaceId: z151.string(),
4333
- product: ProductCodeSchema,
4334
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4335
- publicDesignSystem: z151.boolean().optional()
4336
- });
4337
- var WORKSPACE_NAME_MIN_LENGTH = 2;
4338
- var WORKSPACE_NAME_MAX_LENGTH = 64;
4339
- var HANDLE_MIN_LENGTH = 2;
4340
- var HANDLE_MAX_LENGTH = 64;
4341
- var CreateWorkspaceInput = z152.object({
4342
- name: z152.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4343
- handle: z152.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4344
- });
4345
- var WorkspaceInvitation = z153.object({
4346
- id: z153.string(),
4347
- email: z153.string().email(),
4348
- createdAt: z153.coerce.date(),
4349
- resentAt: z153.coerce.date().nullish(),
4350
- role: z153.nativeEnum(WorkspaceRole),
4351
- workspaceId: z153.string(),
4352
- invitedBy: z153.string()
4353
- });
4354
- var WorkspaceMembership = z154.object({
4355
- id: z154.string(),
4356
- userId: z154.string(),
4357
- workspaceId: z154.string(),
4358
- workspaceRole: z154.nativeEnum(WorkspaceRole),
4359
- notificationSettings: UserNotificationSettings
4360
- });
4361
- var UpdateMembershipRolesInput = z154.object({
4362
- members: z154.array(
4363
- z154.object({
4364
- userId: z154.string(),
4365
- role: z154.nativeEnum(WorkspaceRole)
4366
- })
4367
- )
4368
- });
4369
- var DesignSystemInviteEmailRecipient = z155.object({
4370
- email: z155.string(),
4378
+ var DesignSystemInviteEmailRecipient = z156.object({
4379
+ email: z156.string(),
4371
4380
  role: WorkspaceRoleSchema
4372
4381
  });
4373
- var DesignSystemInviteEmailData = z155.object({
4382
+ var DesignSystemInviteEmailData = z156.object({
4374
4383
  workspace: Workspace,
4375
4384
  designSystem: DesignSystem,
4376
4385
  invitedBy: User,
4377
- documentationDomain: z155.string().optional()
4386
+ documentationDomain: z156.string().optional()
4378
4387
  });
4379
- var WorkspaceInviteEmailRecipient = z156.object({
4380
- email: z156.string(),
4388
+ var WorkspaceInviteEmailRecipient = z157.object({
4389
+ email: z157.string(),
4381
4390
  role: WorkspaceRoleSchema
4382
4391
  });
4383
- var WorkspaceInviteEmailData = z156.object({
4392
+ var WorkspaceInviteEmailData = z157.object({
4384
4393
  workspace: Workspace,
4385
4394
  invitedBy: User,
4386
- documentationDomain: z156.string().optional()
4387
- });
4388
- var EventDataSourceImported = z157.object({
4389
- type: z157.literal("DataSourceImported"),
4390
- workspaceId: z157.string(),
4391
- designSystemId: z157.string()
4395
+ documentationDomain: z157.string().optional()
4392
4396
  });
4393
- var EventVersionReleased = z158.object({
4394
- type: z158.literal("DesignSystemVersionReleased"),
4397
+ var EventDataSourceImported = z158.object({
4398
+ type: z158.literal("DataSourceImported"),
4395
4399
  workspaceId: z158.string(),
4396
- designSystemId: z158.string(),
4397
- versionId: z158.string()
4398
- });
4399
- var Event = z159.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4400
- var ExportJobDocumentationContext = z160.object({
4401
- isSingleVersionDocs: z160.boolean(),
4402
- versionSlug: z160.string(),
4400
+ designSystemId: z158.string()
4401
+ });
4402
+ var EventVersionReleased = z159.object({
4403
+ type: z159.literal("DesignSystemVersionReleased"),
4404
+ workspaceId: z159.string(),
4405
+ designSystemId: z159.string(),
4406
+ versionId: z159.string()
4407
+ });
4408
+ var Event = z160.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4409
+ var ExportJobDocumentationContext = z161.object({
4410
+ isSingleVersionDocs: z161.boolean(),
4411
+ versionSlug: z161.string(),
4403
4412
  environment: PublishedDocEnvironment
4404
4413
  });
4405
- var ExportJobContext = z160.object({
4406
- apiUrl: z160.string(),
4407
- accessToken: z160.string(),
4408
- designSystemId: z160.string(),
4409
- designSystemName: z160.string(),
4410
- exporterId: z160.string(),
4411
- versionId: z160.string(),
4412
- brandId: z160.string().optional(),
4413
- themeId: z160.string().optional(),
4414
- themePersistentIds: z160.string().array().optional(),
4415
- exporterName: z160.string(),
4416
- exporterPackageUrl: z160.string(),
4414
+ var ExportJobContext = z161.object({
4415
+ apiUrl: z161.string(),
4416
+ accessToken: z161.string(),
4417
+ designSystemId: z161.string(),
4418
+ designSystemName: z161.string(),
4419
+ exporterId: z161.string(),
4420
+ versionId: z161.string(),
4421
+ brandId: z161.string().optional(),
4422
+ themeId: z161.string().optional(),
4423
+ themePersistentIds: z161.string().array().optional(),
4424
+ exporterName: z161.string(),
4425
+ exporterPackageUrl: z161.string(),
4417
4426
  exporterPropertyValues: ExporterPropertyValue.array(),
4418
4427
  documentation: ExportJobDocumentationContext.optional()
4419
4428
  });
4420
- var ExporterFunctionPayload = z161.object({
4421
- exportJobId: z161.string(),
4422
- exportContextId: z161.string(),
4423
- designSystemId: z161.string(),
4424
- workspaceId: z161.string()
4429
+ var ExporterFunctionPayload = z162.object({
4430
+ exportJobId: z162.string(),
4431
+ exportContextId: z162.string(),
4432
+ designSystemId: z162.string(),
4433
+ workspaceId: z162.string()
4425
4434
  });
4426
- var ExportJobDestinationType = z162.enum([
4435
+ var ExportJobDestinationType = z163.enum([
4427
4436
  "s3",
4428
4437
  "webhookUrl",
4429
4438
  "github",
@@ -4432,30 +4441,30 @@ var ExportJobDestinationType = z162.enum([
4432
4441
  "gitlab",
4433
4442
  "bitbucket"
4434
4443
  ]);
4435
- var ExportJobStatus = z162.enum(["InProgress", "Success", "Failed", "Timeout"]);
4436
- var ExportJobLogEntryType = z162.enum(["success", "info", "warning", "error", "user"]);
4437
- var ExportJobLogEntry = z162.object({
4438
- id: z162.string().optional(),
4439
- time: z162.coerce.date(),
4444
+ var ExportJobStatus = z163.enum(["InProgress", "Success", "Failed", "Timeout"]);
4445
+ var ExportJobLogEntryType = z163.enum(["success", "info", "warning", "error", "user"]);
4446
+ var ExportJobLogEntry = z163.object({
4447
+ id: z163.string().optional(),
4448
+ time: z163.coerce.date(),
4440
4449
  type: ExportJobLogEntryType,
4441
- message: z162.string()
4450
+ message: z163.string()
4442
4451
  });
4443
- var ExportJobPullRequestDestinationResult = z162.object({
4444
- pullRequestUrl: z162.string()
4452
+ var ExportJobPullRequestDestinationResult = z163.object({
4453
+ pullRequestUrl: z163.string()
4445
4454
  });
4446
- var ExportJobS3DestinationResult = z162.object({
4447
- bucket: z162.string(),
4448
- urlPrefix: z162.string().optional(),
4449
- path: z162.string(),
4450
- files: z162.array(z162.string()),
4451
- url: nullishToOptional(z162.string()),
4452
- urls: nullishToOptional(z162.string().array())
4455
+ var ExportJobS3DestinationResult = z163.object({
4456
+ bucket: z163.string(),
4457
+ urlPrefix: z163.string().optional(),
4458
+ path: z163.string(),
4459
+ files: z163.array(z163.string()),
4460
+ url: nullishToOptional(z163.string()),
4461
+ urls: nullishToOptional(z163.string().array())
4453
4462
  });
4454
- var ExportJobDocsDestinationResult = z162.object({
4455
- url: z162.string()
4463
+ var ExportJobDocsDestinationResult = z163.object({
4464
+ url: z163.string()
4456
4465
  });
4457
- var ExportJobResult = z162.object({
4458
- error: z162.string().optional(),
4466
+ var ExportJobResult = z163.object({
4467
+ error: z163.string().optional(),
4459
4468
  s3: nullishToOptional(ExportJobS3DestinationResult),
4460
4469
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4461
4470
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4464,22 +4473,22 @@ var ExportJobResult = z162.object({
4464
4473
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4465
4474
  logs: nullishToOptional(ExportJobLogEntry.array())
4466
4475
  });
4467
- var ExportJob = z162.object({
4468
- id: z162.string(),
4469
- createdAt: z162.coerce.date(),
4470
- finishedAt: z162.coerce.date().optional(),
4471
- designSystemId: z162.string(),
4472
- designSystemVersionId: z162.string(),
4473
- workspaceId: z162.string(),
4474
- scheduleId: z162.string().nullish(),
4475
- exporterId: z162.string(),
4476
- brandId: z162.string().optional(),
4477
- themeId: z162.string().optional(),
4478
- themePersistentIds: z162.string().array().optional(),
4479
- estimatedExecutionTime: z162.number().optional(),
4476
+ var ExportJob = z163.object({
4477
+ id: z163.string(),
4478
+ createdAt: z163.coerce.date(),
4479
+ finishedAt: z163.coerce.date().optional(),
4480
+ designSystemId: z163.string(),
4481
+ designSystemVersionId: z163.string(),
4482
+ workspaceId: z163.string(),
4483
+ scheduleId: z163.string().nullish(),
4484
+ exporterId: z163.string(),
4485
+ brandId: z163.string().optional(),
4486
+ themeId: z163.string().optional(),
4487
+ themePersistentIds: z163.string().array().optional(),
4488
+ estimatedExecutionTime: z163.number().optional(),
4480
4489
  status: ExportJobStatus,
4481
4490
  result: ExportJobResult.optional(),
4482
- createdByUserId: z162.string().optional(),
4491
+ createdByUserId: z163.string().optional(),
4483
4492
  // Destinations
4484
4493
  ...ExportDestinationsMap.shape
4485
4494
  });
@@ -4493,24 +4502,24 @@ var ExportJobFindByFilter = ExportJob.pick({
4493
4502
  themeId: true,
4494
4503
  brandId: true
4495
4504
  }).extend({
4496
- destinations: z162.array(ExportJobDestinationType),
4505
+ destinations: z163.array(ExportJobDestinationType),
4497
4506
  docsEnvironment: PublishedDocEnvironment
4498
4507
  }).partial();
4499
- var ExporterWorkspaceMembershipRole = z163.enum(["Owner", "OwnerArchived", "User"]);
4500
- var ExporterWorkspaceMembership = z164.object({
4501
- id: z164.string(),
4502
- workspaceId: z164.string(),
4503
- exporterId: z164.string(),
4508
+ var ExporterWorkspaceMembershipRole = z164.enum(["Owner", "OwnerArchived", "User"]);
4509
+ var ExporterWorkspaceMembership = z165.object({
4510
+ id: z165.string(),
4511
+ workspaceId: z165.string(),
4512
+ exporterId: z165.string(),
4504
4513
  role: ExporterWorkspaceMembershipRole
4505
4514
  });
4506
- var FlaggedFeature = z165.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4507
- var FeatureFlagMap = z165.record(FlaggedFeature, z165.boolean());
4508
- var FeatureFlag = z165.object({
4509
- id: z165.string(),
4515
+ var FlaggedFeature = z166.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4516
+ var FeatureFlagMap = z166.record(FlaggedFeature, z166.boolean());
4517
+ var FeatureFlag = z166.object({
4518
+ id: z166.string(),
4510
4519
  feature: FlaggedFeature,
4511
- createdAt: z165.coerce.date(),
4512
- enabled: z165.boolean(),
4513
- designSystemId: z165.string().optional()
4520
+ createdAt: z166.coerce.date(),
4521
+ enabled: z166.boolean(),
4522
+ designSystemId: z166.string().optional()
4514
4523
  });
4515
4524
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4516
4525
  OAuthProviderNames2["Figma"] = "figma";
@@ -4520,107 +4529,107 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4520
4529
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4521
4530
  return OAuthProviderNames2;
4522
4531
  })(OAuthProviderNames || {});
4523
- var OAuthProviderSchema = z166.nativeEnum(OAuthProviderNames);
4532
+ var OAuthProviderSchema = z167.nativeEnum(OAuthProviderNames);
4524
4533
  var OAuthProvider = OAuthProviderSchema.enum;
4525
- var ExternalOAuthRequest = z167.object({
4526
- id: z167.string(),
4534
+ var ExternalOAuthRequest = z168.object({
4535
+ id: z168.string(),
4527
4536
  provider: OAuthProviderSchema,
4528
- userId: z167.string(),
4529
- state: z167.string(),
4530
- createdAt: z167.coerce.date()
4537
+ userId: z168.string(),
4538
+ state: z168.string(),
4539
+ createdAt: z168.coerce.date()
4531
4540
  });
4532
- var GitObjectsQuery = z168.object({
4533
- organization: z168.string().optional(),
4541
+ var GitObjectsQuery = z169.object({
4542
+ organization: z169.string().optional(),
4534
4543
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4535
- project: z168.string().optional(),
4544
+ project: z169.string().optional(),
4536
4545
  // Only for Bitbucket and Azure
4537
- repository: z168.string().optional(),
4546
+ repository: z169.string().optional(),
4538
4547
  // For all providers. For Gitlab, it's called "project".
4539
- branch: z168.string().optional(),
4548
+ branch: z169.string().optional(),
4540
4549
  // For all providers.
4541
- user: z168.string().optional()
4550
+ user: z169.string().optional()
4542
4551
  // Gitlab user
4543
4552
  });
4544
- var GitOrganization = z168.object({
4545
- id: z168.string(),
4546
- name: z168.string(),
4547
- url: z168.string(),
4548
- slug: z168.string()
4553
+ var GitOrganization = z169.object({
4554
+ id: z169.string(),
4555
+ name: z169.string(),
4556
+ url: z169.string(),
4557
+ slug: z169.string()
4549
4558
  });
4550
- var GitProject = z168.object({
4551
- id: z168.string(),
4552
- name: z168.string(),
4553
- url: z168.string(),
4554
- slug: z168.string()
4559
+ var GitProject = z169.object({
4560
+ id: z169.string(),
4561
+ name: z169.string(),
4562
+ url: z169.string(),
4563
+ slug: z169.string()
4555
4564
  });
4556
- var GitRepository = z168.object({
4557
- id: z168.string(),
4558
- name: z168.string(),
4559
- url: z168.string(),
4560
- slug: z168.string(),
4565
+ var GitRepository = z169.object({
4566
+ id: z169.string(),
4567
+ name: z169.string(),
4568
+ url: z169.string(),
4569
+ slug: z169.string(),
4561
4570
  /**
4562
4571
  * Can be undefined when:
4563
4572
  * - there are no branches in the repository yet
4564
4573
  * - Git provider doesn't expose this information on a repository via their API
4565
4574
  */
4566
- defaultBranch: z168.string().optional()
4575
+ defaultBranch: z169.string().optional()
4567
4576
  });
4568
- var GitBranch = z168.object({
4569
- name: z168.string(),
4570
- lastCommitId: z168.string()
4577
+ var GitBranch = z169.object({
4578
+ name: z169.string(),
4579
+ lastCommitId: z169.string()
4571
4580
  });
4572
- var IntegrationTokenSchemaOld = z169.object({
4573
- id: z169.string(),
4574
- provider: OAuthProviderSchema,
4575
- scope: z169.string(),
4576
- userId: z169.string(),
4577
- accessToken: z169.string(),
4578
- refreshToken: z169.string(),
4579
- expiresAt: z169.coerce.date(),
4580
- externalUserId: z169.string().nullish()
4581
- });
4582
- var WorkspaceOAuthRequestSchema = z170.object({
4581
+ var IntegrationTokenSchemaOld = z170.object({
4583
4582
  id: z170.string(),
4584
- workspaceId: z170.string(),
4585
4583
  provider: OAuthProviderSchema,
4584
+ scope: z170.string(),
4586
4585
  userId: z170.string(),
4587
- createdAt: z170.coerce.date()
4586
+ accessToken: z170.string(),
4587
+ refreshToken: z170.string(),
4588
+ expiresAt: z170.coerce.date(),
4589
+ externalUserId: z170.string().nullish()
4590
+ });
4591
+ var WorkspaceOAuthRequestSchema = z171.object({
4592
+ id: z171.string(),
4593
+ workspaceId: z171.string(),
4594
+ provider: OAuthProviderSchema,
4595
+ userId: z171.string(),
4596
+ createdAt: z171.coerce.date()
4588
4597
  });
4589
- var AnyRecord = z171.record(z171.any());
4598
+ var AnyRecord = z172.record(z172.any());
4590
4599
  var NpmPackageVersionDist = AnyRecord.and(
4591
- z171.object({
4592
- tarball: z171.string()
4600
+ z172.object({
4601
+ tarball: z172.string()
4593
4602
  })
4594
4603
  );
4595
4604
  var NpmPackageVersion = AnyRecord.and(
4596
- z171.object({
4605
+ z172.object({
4597
4606
  dist: NpmPackageVersionDist
4598
4607
  })
4599
4608
  );
4600
4609
  var NpmPackage = AnyRecord.and(
4601
- z171.object({
4602
- _id: z171.string(),
4603
- name: z171.string(),
4610
+ z172.object({
4611
+ _id: z172.string(),
4612
+ name: z172.string(),
4604
4613
  // e.g. "latest": "1.2.3"
4605
- "dist-tags": z171.record(z171.string(), z171.string()),
4614
+ "dist-tags": z172.record(z172.string(), z172.string()),
4606
4615
  // "1.2.3": {...}
4607
- versions: z171.record(NpmPackageVersion)
4616
+ versions: z172.record(NpmPackageVersion)
4608
4617
  })
4609
4618
  );
4610
- var NpmProxyTokenPayload = z172.object({
4611
- npmProxyRegistryConfigId: z172.string()
4619
+ var NpmProxyTokenPayload = z173.object({
4620
+ npmProxyRegistryConfigId: z173.string()
4612
4621
  });
4613
- var PersonalAccessToken = z173.object({
4614
- id: z173.string(),
4615
- userId: z173.string(),
4616
- workspaceId: z173.string().optional(),
4622
+ var PersonalAccessToken = z174.object({
4623
+ id: z174.string(),
4624
+ userId: z174.string(),
4625
+ workspaceId: z174.string().optional(),
4617
4626
  workspaceRole: WorkspaceRoleSchema.optional(),
4618
- name: z173.string(),
4619
- hidden: z173.boolean(),
4620
- token: z173.string(),
4621
- scope: z173.string().optional(),
4622
- createdAt: z173.coerce.date(),
4623
- expireAt: z173.coerce.date().optional()
4627
+ name: z174.string(),
4628
+ hidden: z174.boolean(),
4629
+ token: z174.string(),
4630
+ scope: z174.string().optional(),
4631
+ createdAt: z174.coerce.date(),
4632
+ expireAt: z174.coerce.date().optional()
4624
4633
  });
4625
4634
 
4626
4635
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
@@ -5037,136 +5046,136 @@ function integrationCredentialToDto(credential) {
5037
5046
  }
5038
5047
 
5039
5048
  // src/api/dto/aux/pagination.ts
5040
- import { z as z174 } from "zod";
5041
- var DTOPagination = z174.object({
5042
- limit: z174.string().optional(),
5043
- offset: z174.string().optional()
5049
+ import { z as z175 } from "zod";
5050
+ var DTOPagination = z175.object({
5051
+ limit: z175.string().optional(),
5052
+ offset: z175.string().optional()
5044
5053
  });
5045
5054
 
5046
5055
  // src/api/dto/bff/app-bootstrap-data.ts
5047
- import { z as z202 } from "zod";
5056
+ import { z as z203 } from "zod";
5048
5057
 
5049
5058
  // src/api/dto/design-systems/brand.ts
5050
- import { z as z175 } from "zod";
5051
- var DTOBrand = z175.object({
5052
- id: z175.string(),
5053
- designSystemVersionId: z175.string(),
5054
- persistentId: z175.string(),
5059
+ import { z as z176 } from "zod";
5060
+ var DTOBrand = z176.object({
5061
+ id: z176.string(),
5062
+ designSystemVersionId: z176.string(),
5063
+ persistentId: z176.string(),
5055
5064
  meta: ObjectMeta
5056
5065
  });
5057
- var DTOBrandGetResponse = z175.object({ brand: DTOBrand });
5058
- var DTOBrandCreateResponse = z175.object({
5066
+ var DTOBrandGetResponse = z176.object({ brand: DTOBrand });
5067
+ var DTOBrandCreateResponse = z176.object({
5059
5068
  brand: DTOBrand
5060
5069
  });
5061
- var DTOBrandsListResponse = z175.object({ brands: z175.array(DTOBrand) });
5070
+ var DTOBrandsListResponse = z176.object({ brands: z176.array(DTOBrand) });
5062
5071
 
5063
5072
  // src/api/dto/design-systems/data-source.ts
5064
- import { z as z176 } from "zod";
5065
- var DTODataSourceFigmaFileVersion = z176.object({
5066
- id: z176.string(),
5067
- created_at: z176.coerce.date(),
5068
- label: z176.string(),
5069
- description: z176.string()
5070
- });
5071
- var DTODataSourceFigmaCloud = z176.object({
5072
- fileId: z176.string(),
5073
+ import { z as z177 } from "zod";
5074
+ var DTODataSourceFigmaFileVersion = z177.object({
5075
+ id: z177.string(),
5076
+ created_at: z177.coerce.date(),
5077
+ label: z177.string(),
5078
+ description: z177.string()
5079
+ });
5080
+ var DTODataSourceFigmaCloud = z177.object({
5081
+ fileId: z177.string(),
5073
5082
  state: DataSourceFigmaState,
5074
5083
  autoImportMode: DataSourceAutoImportMode,
5075
- fileThumbnailUrl: z176.string().optional(),
5084
+ fileThumbnailUrl: z177.string().optional(),
5076
5085
  lastImportResult: SourceImportSummary.nullish(),
5077
- lastImportedAt: z176.date().nullish(),
5086
+ lastImportedAt: z177.date().nullish(),
5078
5087
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5079
- lastUpdatesCheckedAt: z176.date().nullish(),
5080
- ownerId: z176.string(),
5081
- ownerUserName: z176.string().optional(),
5082
- preferredCredentialId: z176.string().optional(),
5088
+ lastUpdatesCheckedAt: z177.date().nullish(),
5089
+ ownerId: z177.string(),
5090
+ ownerUserName: z177.string().optional(),
5091
+ preferredCredentialId: z177.string().optional(),
5083
5092
  stats: DataSourceStats
5084
5093
  });
5085
- var DTODataSourceFigma = z176.object({
5086
- id: z176.string(),
5087
- type: z176.literal(DataSourceRemoteType.Enum.Figma),
5088
- fileName: z176.string(),
5094
+ var DTODataSourceFigma = z177.object({
5095
+ id: z177.string(),
5096
+ type: z177.literal(DataSourceRemoteType.Enum.Figma),
5097
+ fileName: z177.string(),
5089
5098
  scope: DataSourceFigmaScope,
5090
- brandId: z176.string(),
5091
- themeId: z176.string().nullish(),
5099
+ brandId: z177.string(),
5100
+ themeId: z177.string().nullish(),
5092
5101
  cloud: DTODataSourceFigmaCloud.nullish(),
5093
- tokenStudio: z176.literal(null),
5094
- upload: z176.literal(null),
5095
- figmaVariablesPlugin: z176.literal(null)
5096
- });
5097
- var DTODataSourceTokenStudio = z176.object({
5098
- id: z176.string(),
5099
- type: z176.literal(DataSourceRemoteType.Enum.TokenStudio),
5100
- fileName: z176.string(),
5101
- brandId: z176.string(),
5102
- themeId: z176.string().nullish(),
5103
- cloud: z176.literal(null),
5104
- tokenStudio: z176.object({
5105
- settings: z176.object({
5106
- dryRun: z176.boolean(),
5107
- verbose: z176.boolean(),
5108
- preciseCopy: z176.boolean()
5102
+ tokenStudio: z177.literal(null),
5103
+ upload: z177.literal(null),
5104
+ figmaVariablesPlugin: z177.literal(null)
5105
+ });
5106
+ var DTODataSourceTokenStudio = z177.object({
5107
+ id: z177.string(),
5108
+ type: z177.literal(DataSourceRemoteType.Enum.TokenStudio),
5109
+ fileName: z177.string(),
5110
+ brandId: z177.string(),
5111
+ themeId: z177.string().nullish(),
5112
+ cloud: z177.literal(null),
5113
+ tokenStudio: z177.object({
5114
+ settings: z177.object({
5115
+ dryRun: z177.boolean(),
5116
+ verbose: z177.boolean(),
5117
+ preciseCopy: z177.boolean()
5109
5118
  }),
5110
- connectionName: z176.string(),
5111
- lastImportedAt: z176.date(),
5112
- lastImportedResults: z176.array(
5113
- z176.object({
5114
- mapping: z176.object({
5115
- tokenSets: z176.array(z176.string()),
5116
- supernovaBrand: z176.string(),
5117
- supernovaTheme: z176.string().optional()
5119
+ connectionName: z177.string(),
5120
+ lastImportedAt: z177.date(),
5121
+ lastImportedResults: z177.array(
5122
+ z177.object({
5123
+ mapping: z177.object({
5124
+ tokenSets: z177.array(z177.string()),
5125
+ supernovaBrand: z177.string(),
5126
+ supernovaTheme: z177.string().optional()
5118
5127
  }),
5119
- isFailed: z176.boolean(),
5120
- tokensCreated: z176.number(),
5121
- tokensDeleted: z176.number(),
5122
- tokensUpdated: z176.number()
5128
+ isFailed: z177.boolean(),
5129
+ tokensCreated: z177.number(),
5130
+ tokensDeleted: z177.number(),
5131
+ tokensUpdated: z177.number()
5123
5132
  })
5124
5133
  )
5125
5134
  }),
5126
- upload: z176.literal(null),
5127
- figmaVariablesPlugin: z176.literal(null)
5128
- });
5129
- var DTODataSourceFigmaVariablesPlugin = z176.object({
5130
- id: z176.string(),
5131
- type: z176.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5132
- fileName: z176.string(),
5133
- brandId: z176.string(),
5134
- themeId: z176.literal(null),
5135
- cloud: z176.literal(null),
5136
- tokenStudio: z176.literal(null),
5137
- upload: z176.object({
5138
- remoteId: z176.string(),
5135
+ upload: z177.literal(null),
5136
+ figmaVariablesPlugin: z177.literal(null)
5137
+ });
5138
+ var DTODataSourceFigmaVariablesPlugin = z177.object({
5139
+ id: z177.string(),
5140
+ type: z177.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5141
+ fileName: z177.string(),
5142
+ brandId: z177.string(),
5143
+ themeId: z177.literal(null),
5144
+ cloud: z177.literal(null),
5145
+ tokenStudio: z177.literal(null),
5146
+ upload: z177.object({
5147
+ remoteId: z177.string(),
5139
5148
  remoteSourceType: DataSourceUploadRemoteSource,
5140
- lastImportedAt: z176.date().optional(),
5149
+ lastImportedAt: z177.date().optional(),
5141
5150
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5142
5151
  }),
5143
- figmaVariablesPlugin: z176.object({
5144
- fileId: z176.string(),
5145
- lastImportedAt: z176.date().optional(),
5152
+ figmaVariablesPlugin: z177.object({
5153
+ fileId: z177.string(),
5154
+ lastImportedAt: z177.date().optional(),
5146
5155
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5147
5156
  })
5148
5157
  });
5149
- var DTODataSource = z176.discriminatedUnion("type", [
5158
+ var DTODataSource = z177.discriminatedUnion("type", [
5150
5159
  DTODataSourceFigma,
5151
5160
  DTODataSourceFigmaVariablesPlugin,
5152
5161
  DTODataSourceTokenStudio
5153
5162
  ]);
5154
- var DTODataSourcesListResponse = z176.object({
5155
- sources: z176.array(DTODataSource)
5163
+ var DTODataSourcesListResponse = z177.object({
5164
+ sources: z177.array(DTODataSource)
5156
5165
  });
5157
- var DTODataSourceCreationResponse = z176.object({
5166
+ var DTODataSourceCreationResponse = z177.object({
5158
5167
  source: DTODataSource
5159
5168
  });
5160
5169
 
5161
5170
  // src/api/dto/design-systems/design-system.ts
5162
- import { z as z179 } from "zod";
5171
+ import { z as z180 } from "zod";
5163
5172
 
5164
5173
  // src/api/dto/design-systems/members.ts
5165
- import { z as z178 } from "zod";
5174
+ import { z as z179 } from "zod";
5166
5175
 
5167
5176
  // src/api/dto/design-systems/role.ts
5168
- import { z as z177 } from "zod";
5169
- var DTODesignSystemRole = z177.enum([
5177
+ import { z as z178 } from "zod";
5178
+ var DTODesignSystemRole = z178.enum([
5170
5179
  WorkspaceRole.Admin,
5171
5180
  WorkspaceRole.Contributor,
5172
5181
  WorkspaceRole.Creator,
@@ -5174,29 +5183,29 @@ var DTODesignSystemRole = z177.enum([
5174
5183
  ]);
5175
5184
 
5176
5185
  // src/api/dto/design-systems/members.ts
5177
- var DTODesignSystemMember = z178.object({
5178
- userId: z178.string(),
5186
+ var DTODesignSystemMember = z179.object({
5187
+ userId: z179.string(),
5179
5188
  /**
5180
5189
  * Role that the member has in the design system,
5181
5190
  * undefined if set to inherit from workspace
5182
5191
  */
5183
5192
  designSystemRole: DTODesignSystemRole.optional()
5184
5193
  });
5185
- var DTODesignSystemInvitation = z178.object({
5186
- id: z178.string(),
5187
- workspaceInvitationId: z178.string(),
5194
+ var DTODesignSystemInvitation = z179.object({
5195
+ id: z179.string(),
5196
+ workspaceInvitationId: z179.string(),
5188
5197
  /**
5189
5198
  * Role that the invitation has in the design system,
5190
5199
  * undefined if set to inherit from workspace
5191
5200
  */
5192
5201
  designSystemRole: DTODesignSystemRole.optional()
5193
5202
  });
5194
- var DTODesignSystemMemberListResponse = z178.object({
5203
+ var DTODesignSystemMemberListResponse = z179.object({
5195
5204
  members: DTODesignSystemMember.array(),
5196
5205
  invitations: DTODesignSystemInvitation.array()
5197
5206
  });
5198
- var DTODesignSystemMembersUpdateResponse = z178.object({
5199
- ok: z178.literal(true)
5207
+ var DTODesignSystemMembersUpdateResponse = z179.object({
5208
+ ok: z179.literal(true)
5200
5209
  });
5201
5210
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5202
5211
 
@@ -5207,14 +5216,14 @@ var DTODesignSystem = DesignSystem.omit({
5207
5216
  docExporterId: true
5208
5217
  }).extend({
5209
5218
  meta: ObjectMeta,
5210
- docExporterId: z179.string(),
5211
- sources: z179.array(z179.any()),
5212
- isPublic: z179.literal(true),
5219
+ docExporterId: z180.string(),
5220
+ sources: z180.array(z180.any()),
5221
+ isPublic: z180.literal(true),
5213
5222
  /**
5214
5223
  * Whether or not user who is requesting the design system
5215
5224
  * has access to the design system's contents.
5216
5225
  */
5217
- isAvailableToUser: z179.boolean(),
5226
+ isAvailableToUser: z180.boolean(),
5218
5227
  /**
5219
5228
  * @deprecated
5220
5229
  */
@@ -5225,17 +5234,17 @@ var DTODesignSystem = DesignSystem.omit({
5225
5234
  */
5226
5235
  effectiveRole: DTODesignSystemRole.optional()
5227
5236
  });
5228
- var DTODesignSystemResponse = z179.object({
5237
+ var DTODesignSystemResponse = z180.object({
5229
5238
  designSystem: DTODesignSystem
5230
5239
  });
5231
- var DTODesignSystemsListResponse = z179.object({
5240
+ var DTODesignSystemsListResponse = z180.object({
5232
5241
  designSystems: DTODesignSystem.array()
5233
5242
  });
5234
- var DTODesignSystemCreateInput = z179.object({
5235
- workspaceId: z179.string(),
5243
+ var DTODesignSystemCreateInput = z180.object({
5244
+ workspaceId: z180.string(),
5236
5245
  meta: ObjectMeta.optional(),
5237
- name: z179.string().min(2).max(64).optional(),
5238
- description: z179.string().max(1024).optional(),
5246
+ name: z180.string().min(2).max(64).optional(),
5247
+ description: z180.string().max(1024).optional(),
5239
5248
  accessMode: DesignSystemAccessMode.optional(),
5240
5249
  invites: DTODesignSystemMembersUpdatePayload.pick({
5241
5250
  usersToInvite: true,
@@ -5245,62 +5254,62 @@ var DTODesignSystemCreateInput = z179.object({
5245
5254
  });
5246
5255
 
5247
5256
  // src/api/dto/design-systems/elements-diff.ts
5248
- import { z as z180 } from "zod";
5249
- var DTODiffCountBase = z180.object({
5250
- created: z180.number(),
5251
- updated: z180.number(),
5252
- deleted: z180.number()
5257
+ import { z as z181 } from "zod";
5258
+ var DTODiffCountBase = z181.object({
5259
+ created: z181.number(),
5260
+ updated: z181.number(),
5261
+ deleted: z181.number()
5253
5262
  });
5254
- var DTODesignElementsDataDiffResponse = z180.object({
5263
+ var DTODesignElementsDataDiffResponse = z181.object({
5255
5264
  tokens: DTODiffCountBase,
5256
5265
  assets: DTODiffCountBase
5257
5266
  });
5258
5267
 
5259
5268
  // src/api/dto/design-systems/exporter-property.ts
5260
- import { z as z181 } from "zod";
5261
- var DTOExporterProperty = z181.any({});
5262
- var DTOExporterPropertyListResponse = z181.object({ items: z181.array(DTOExporterProperty) });
5269
+ import { z as z182 } from "zod";
5270
+ var DTOExporterProperty = z182.any({});
5271
+ var DTOExporterPropertyListResponse = z182.object({ items: z182.array(DTOExporterProperty) });
5263
5272
 
5264
5273
  // src/api/dto/design-systems/stats.ts
5265
- import { z as z182 } from "zod";
5266
- var DTODesignSystemVersionStats = z182.object({
5267
- tokens: z182.number(),
5268
- designSystemComponents: z182.number(),
5269
- assets: z182.number(),
5270
- documentationPages: z182.number()
5274
+ import { z as z183 } from "zod";
5275
+ var DTODesignSystemVersionStats = z183.object({
5276
+ tokens: z183.number(),
5277
+ designSystemComponents: z183.number(),
5278
+ assets: z183.number(),
5279
+ documentationPages: z183.number()
5271
5280
  });
5272
- var DTODesignSystemVersionStatsQuery = z182.object({
5273
- brandId: z182.string().optional()
5281
+ var DTODesignSystemVersionStatsQuery = z183.object({
5282
+ brandId: z183.string().optional()
5274
5283
  });
5275
5284
 
5276
5285
  // src/api/dto/design-systems/version.ts
5277
- import { z as z194 } from "zod";
5286
+ import { z as z195 } from "zod";
5278
5287
 
5279
5288
  // src/api/payloads/design-systems/brand.ts
5280
- import { z as z183 } from "zod";
5281
- var DTOCreateBrandInput = z183.object({
5282
- persistentId: z183.string().uuid(),
5283
- meta: z183.object({
5284
- name: z183.string(),
5285
- description: z183.string()
5289
+ import { z as z184 } from "zod";
5290
+ var DTOCreateBrandInput = z184.object({
5291
+ persistentId: z184.string().uuid(),
5292
+ meta: z184.object({
5293
+ name: z184.string(),
5294
+ description: z184.string()
5286
5295
  })
5287
5296
  });
5288
5297
 
5289
5298
  // src/api/payloads/design-systems/theme.ts
5290
- import { z as z184 } from "zod";
5291
- var DTOCreateThemeInput = z184.object({
5299
+ import { z as z185 } from "zod";
5300
+ var DTOCreateThemeInput = z185.object({
5292
5301
  meta: ObjectMeta,
5293
- persistentId: z184.string(),
5294
- designSystemVersionId: z184.string(),
5295
- brandId: z184.string(),
5296
- codeName: z184.string(),
5297
- version: z184.string().optional(),
5298
- overrides: z184.array(z184.any())
5302
+ persistentId: z185.string(),
5303
+ designSystemVersionId: z185.string(),
5304
+ brandId: z185.string(),
5305
+ codeName: z185.string(),
5306
+ version: z185.string().optional(),
5307
+ overrides: z185.array(z185.any())
5299
5308
  // TODO Add actual overrides.
5300
5309
  });
5301
5310
 
5302
5311
  // src/api/payloads/design-systems/update-design-system.ts
5303
- import { z as z185 } from "zod";
5312
+ import { z as z186 } from "zod";
5304
5313
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5305
5314
  id: true,
5306
5315
  workspaceId: true,
@@ -5312,40 +5321,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5312
5321
  }).extend({
5313
5322
  meta: ObjectMeta.partial().optional()
5314
5323
  });
5315
- var DTODesignSystemUpdateAccessModeInput = z185.object({
5324
+ var DTODesignSystemUpdateAccessModeInput = z186.object({
5316
5325
  accessMode: DesignSystemAccessMode,
5317
- retain: z185.object({
5318
- userIds: z185.string().array(),
5319
- inviteIds: z185.string().array()
5326
+ retain: z186.object({
5327
+ userIds: z186.string().array(),
5328
+ inviteIds: z186.string().array()
5320
5329
  }).optional()
5321
5330
  });
5322
5331
 
5323
5332
  // src/api/payloads/design-systems/version.ts
5324
- import { z as z186 } from "zod";
5325
- var ObjectMeta2 = z186.object({
5326
- name: z186.string().max(150).optional(),
5327
- description: z186.string().max(2e3).optional()
5333
+ import { z as z187 } from "zod";
5334
+ var ObjectMeta2 = z187.object({
5335
+ name: z187.string().max(150).optional(),
5336
+ description: z187.string().max(2e3).optional()
5328
5337
  });
5329
5338
  function validateDesignSystemVersion(version) {
5330
5339
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5331
5340
  return urlCompliantRegex.test(version);
5332
5341
  }
5333
- var DTOCreateVersionInput = z186.object({
5342
+ var DTOCreateVersionInput = z187.object({
5334
5343
  meta: ObjectMeta2,
5335
- version: z186.string().refine(validateDesignSystemVersion, {
5344
+ version: z187.string().refine(validateDesignSystemVersion, {
5336
5345
  message: "Invalid semantic versioning format"
5337
5346
  }),
5338
- changeLog: z186.string().optional()
5347
+ changeLog: z187.string().optional()
5339
5348
  });
5340
- var DTOUpdateVersionInput = z186.object({
5349
+ var DTOUpdateVersionInput = z187.object({
5341
5350
  meta: ObjectMeta2,
5342
- version: z186.string(),
5351
+ version: z187.string(),
5343
5352
  // required for PUT, but not editable
5344
- changeLog: z186.string()
5353
+ changeLog: z187.string()
5345
5354
  });
5346
5355
 
5347
5356
  // src/api/payloads/documentation/block-definitions.ts
5348
- import { z as z187 } from "zod";
5357
+ import { z as z188 } from "zod";
5349
5358
 
5350
5359
  // src/api/dto/documentation/block-definition.ts
5351
5360
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5357,60 +5366,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5357
5366
  var DTOPageBlockDefinition = PageBlockDefinition;
5358
5367
 
5359
5368
  // src/api/payloads/documentation/block-definitions.ts
5360
- var DTOGetBlockDefinitionsOutput = z187.object({
5361
- definitions: z187.array(DTOPageBlockDefinition)
5369
+ var DTOGetBlockDefinitionsOutput = z188.object({
5370
+ definitions: z188.array(DTOPageBlockDefinition)
5362
5371
  });
5363
5372
 
5364
5373
  // src/api/payloads/documentation/design-data-doc-diff.ts
5365
- import { z as z188 } from "zod";
5366
- var DTODocumentationPublishTypeQueryParams = z188.object({
5367
- environment: z188.enum(["Live", "Preview"])
5374
+ import { z as z189 } from "zod";
5375
+ var DTODocumentationPublishTypeQueryParams = z189.object({
5376
+ environment: z189.enum(["Live", "Preview"])
5368
5377
  });
5369
5378
 
5370
5379
  // src/api/payloads/export/pipeline.ts
5371
- import { z as z189 } from "zod";
5372
- var DTOPipelineCreateBody = z189.object({
5373
- name: z189.string(),
5374
- exporterId: z189.string(),
5375
- designSystemId: z189.string(),
5376
- isEnabled: z189.boolean(),
5380
+ import { z as z190 } from "zod";
5381
+ var DTOPipelineCreateBody = z190.object({
5382
+ name: z190.string(),
5383
+ exporterId: z190.string(),
5384
+ designSystemId: z190.string(),
5385
+ isEnabled: z190.boolean(),
5377
5386
  eventType: PipelineEventType,
5378
- brandPersistentId: z189.string().optional(),
5379
- themePersistentId: z189.string().optional(),
5380
- themePersistentIds: z189.string().array().optional(),
5387
+ brandPersistentId: z190.string().optional(),
5388
+ themePersistentId: z190.string().optional(),
5389
+ themePersistentIds: z190.string().array().optional(),
5381
5390
  destination: PipelineDestinationType.optional(),
5382
5391
  gitQuery: GitObjectsQuery,
5383
- destinations: z189.object({
5392
+ destinations: z190.object({
5384
5393
  s3: ExporterDestinationS3.nullish(),
5385
5394
  azure: ExporterDestinationAzure.nullish(),
5386
5395
  bitbucket: ExporterDestinationBitbucket.nullish(),
5387
5396
  github: ExporterDestinationGithub.nullish(),
5388
5397
  gitlab: ExporterDestinationGitlab.nullish(),
5389
5398
  documentation: ExporterDestinationDocs.nullish(),
5390
- webhookUrl: z189.string().nullish()
5399
+ webhookUrl: z190.string().nullish()
5391
5400
  })
5392
5401
  });
5393
5402
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5394
- id: z189.string()
5403
+ id: z190.string()
5395
5404
  });
5396
- var DTOPipelineTriggerBody = z189.object({
5397
- designSystemVersionId: z189.string()
5405
+ var DTOPipelineTriggerBody = z190.object({
5406
+ designSystemVersionId: z190.string()
5398
5407
  });
5399
5408
 
5400
5409
  // src/api/payloads/liveblocks/auth.ts
5401
- import { z as z190 } from "zod";
5402
- var DTOLiveblocksAuthRequest = z190.object({
5403
- room: z190.string().optional()
5410
+ import { z as z191 } from "zod";
5411
+ var DTOLiveblocksAuthRequest = z191.object({
5412
+ room: z191.string().optional()
5404
5413
  });
5405
5414
 
5406
5415
  // src/api/payloads/users/notifications/notification-settings.ts
5407
- import { z as z191 } from "zod";
5408
- var DTOUpdateUserNotificationSettingsPayload = z191.object({
5416
+ import { z as z192 } from "zod";
5417
+ var DTOUpdateUserNotificationSettingsPayload = z192.object({
5409
5418
  notificationSettings: UserNotificationSettings
5410
5419
  });
5411
- var DTOUserNotificationSettingsResponse = z191.object({
5412
- userId: z191.string(),
5413
- workspaceId: z191.string(),
5420
+ var DTOUserNotificationSettingsResponse = z192.object({
5421
+ userId: z192.string(),
5422
+ workspaceId: z192.string(),
5414
5423
  notificationSettings: UserNotificationSettings
5415
5424
  });
5416
5425
 
@@ -5418,7 +5427,7 @@ var DTOUserNotificationSettingsResponse = z191.object({
5418
5427
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5419
5428
 
5420
5429
  // src/api/payloads/workspaces/workspace-configuration.ts
5421
- import { z as z192 } from "zod";
5430
+ import { z as z193 } from "zod";
5422
5431
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5423
5432
  function validateSsoPayload(ssoPayload) {
5424
5433
  const keys = [];
@@ -5441,21 +5450,21 @@ function validateSsoPayload(ssoPayload) {
5441
5450
  keys
5442
5451
  };
5443
5452
  }
5444
- var NpmRegistryInput = z192.object({
5445
- enabledScopes: z192.array(z192.string()),
5446
- customRegistryUrl: z192.string().optional(),
5447
- bypassProxy: z192.boolean().optional(),
5448
- npmProxyRegistryConfigId: z192.string().optional(),
5449
- npmProxyVersion: z192.number().optional(),
5450
- registryType: z192.string(),
5451
- authType: z192.string(),
5452
- authHeaderName: z192.string(),
5453
- authHeaderValue: z192.string(),
5454
- accessToken: z192.string(),
5455
- username: z192.string(),
5456
- password: z192.string()
5457
- });
5458
- var WorkspaceConfigurationPayload = z192.object({
5453
+ var NpmRegistryInput = z193.object({
5454
+ enabledScopes: z193.array(z193.string()),
5455
+ customRegistryUrl: z193.string().optional(),
5456
+ bypassProxy: z193.boolean().optional(),
5457
+ npmProxyRegistryConfigId: z193.string().optional(),
5458
+ npmProxyVersion: z193.number().optional(),
5459
+ registryType: z193.string(),
5460
+ authType: z193.string(),
5461
+ authHeaderName: z193.string(),
5462
+ authHeaderValue: z193.string(),
5463
+ accessToken: z193.string(),
5464
+ username: z193.string(),
5465
+ password: z193.string()
5466
+ });
5467
+ var WorkspaceConfigurationPayload = z193.object({
5459
5468
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5460
5469
  sso: SsoProvider.partial().optional(),
5461
5470
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5463,211 +5472,211 @@ var WorkspaceConfigurationPayload = z192.object({
5463
5472
  });
5464
5473
 
5465
5474
  // src/api/payloads/workspaces/workspace-integrations.ts
5466
- import { z as z193 } from "zod";
5467
- var DTOWorkspaceIntegrationOauthInput = z193.object({
5475
+ import { z as z194 } from "zod";
5476
+ var DTOWorkspaceIntegrationOauthInput = z194.object({
5468
5477
  type: IntegrationType
5469
5478
  });
5470
- var DTOWorkspaceIntegrationPATInput = z193.object({
5471
- userId: z193.string(),
5479
+ var DTOWorkspaceIntegrationPATInput = z194.object({
5480
+ userId: z194.string(),
5472
5481
  type: IntegrationType,
5473
5482
  token: IntegrationToken
5474
5483
  });
5475
- var DTOWorkspaceIntegrationGetGitObjectsInput = z193.object({
5476
- organization: z193.string().optional(),
5484
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z194.object({
5485
+ organization: z194.string().optional(),
5477
5486
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5478
- project: z193.string().optional(),
5487
+ project: z194.string().optional(),
5479
5488
  // Only for Bitbucket and Azure
5480
- repository: z193.string().optional(),
5489
+ repository: z194.string().optional(),
5481
5490
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5482
- branch: z193.string().optional(),
5491
+ branch: z194.string().optional(),
5483
5492
  // For all providers, useful for PR creations.
5484
- user: z193.string().optional()
5493
+ user: z194.string().optional()
5485
5494
  // Only for Gitlab User Repositories
5486
5495
  });
5487
5496
 
5488
5497
  // src/api/dto/design-systems/version.ts
5489
- var DTODesignSystemVersion = z194.object({
5490
- id: z194.string(),
5491
- createdAt: z194.coerce.date(),
5498
+ var DTODesignSystemVersion = z195.object({
5499
+ id: z195.string(),
5500
+ createdAt: z195.coerce.date(),
5492
5501
  meta: ObjectMeta,
5493
- version: z194.string(),
5494
- isReadonly: z194.boolean(),
5495
- changeLog: z194.string(),
5496
- designSystemId: z194.string()
5502
+ version: z195.string(),
5503
+ isReadonly: z195.boolean(),
5504
+ changeLog: z195.string(),
5505
+ designSystemId: z195.string()
5497
5506
  });
5498
- var DTODesignSystemVersionsListResponse = z194.object({
5499
- designSystemVersions: z194.array(DTODesignSystemVersion)
5507
+ var DTODesignSystemVersionsListResponse = z195.object({
5508
+ designSystemVersions: z195.array(DTODesignSystemVersion)
5500
5509
  });
5501
- var DTODesignSystemVersionGetResponse = z194.object({
5510
+ var DTODesignSystemVersionGetResponse = z195.object({
5502
5511
  designSystemVersion: DTODesignSystemVersion
5503
5512
  });
5504
- var DTODesignSystemVersionCreationResponse = z194.object({
5513
+ var DTODesignSystemVersionCreationResponse = z195.object({
5505
5514
  meta: ObjectMeta,
5506
- version: z194.string(),
5507
- changeLog: z194.string(),
5508
- isReadOnly: z194.boolean(),
5509
- designSystemId: z194.string(),
5510
- jobId: z194.string()
5511
- });
5512
- var VersionSQSPayload = z194.object({
5513
- jobId: z194.string(),
5514
- designSystemId: z194.string(),
5515
+ version: z195.string(),
5516
+ changeLog: z195.string(),
5517
+ isReadOnly: z195.boolean(),
5518
+ designSystemId: z195.string(),
5519
+ jobId: z195.string()
5520
+ });
5521
+ var VersionSQSPayload = z195.object({
5522
+ jobId: z195.string(),
5523
+ designSystemId: z195.string(),
5515
5524
  input: DTOCreateVersionInput
5516
5525
  });
5517
- var DTODesignSystemVersionJobsResponse = z194.object({
5518
- jobs: z194.array(VersionCreationJob)
5526
+ var DTODesignSystemVersionJobsResponse = z195.object({
5527
+ jobs: z195.array(VersionCreationJob)
5519
5528
  });
5520
- var DTODesignSystemVersionJobStatusResponse = z194.object({
5529
+ var DTODesignSystemVersionJobStatusResponse = z195.object({
5521
5530
  job: VersionCreationJob
5522
5531
  });
5523
5532
 
5524
5533
  // src/api/dto/design-systems/view.ts
5525
- import { z as z195 } from "zod";
5526
- var DTOElementViewColumnSharedAttributes = z195.object({
5527
- id: z195.string(),
5528
- persistentId: z195.string(),
5529
- width: z195.number()
5534
+ import { z as z196 } from "zod";
5535
+ var DTOElementViewColumnSharedAttributes = z196.object({
5536
+ id: z196.string(),
5537
+ persistentId: z196.string(),
5538
+ width: z196.number()
5530
5539
  });
5531
5540
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5532
- type: z195.literal("BaseProperty"),
5541
+ type: z196.literal("BaseProperty"),
5533
5542
  basePropertyType: ElementViewBaseColumnType
5534
5543
  });
5535
5544
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5536
- type: z195.literal("PropertyDefinition"),
5537
- propertyDefinitionId: z195.string()
5545
+ type: z196.literal("PropertyDefinition"),
5546
+ propertyDefinitionId: z196.string()
5538
5547
  });
5539
5548
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5540
- type: z195.literal("Theme"),
5541
- themeId: z195.string()
5549
+ type: z196.literal("Theme"),
5550
+ themeId: z196.string()
5542
5551
  });
5543
- var DTOElementViewColumn = z195.discriminatedUnion("type", [
5552
+ var DTOElementViewColumn = z196.discriminatedUnion("type", [
5544
5553
  DTOElementViewBasePropertyColumn,
5545
5554
  DTOElementViewPropertyDefinitionColumn,
5546
5555
  DTOElementViewThemeColumn
5547
5556
  ]);
5548
- var DTOElementView = z195.object({
5557
+ var DTOElementView = z196.object({
5549
5558
  meta: ObjectMeta,
5550
- persistentId: z195.string(),
5559
+ persistentId: z196.string(),
5551
5560
  targetElementType: ElementPropertyTargetType,
5552
- id: z195.string(),
5553
- isDefault: z195.boolean(),
5554
- columns: z195.array(DTOElementViewColumn)
5561
+ id: z196.string(),
5562
+ isDefault: z196.boolean(),
5563
+ columns: z196.array(DTOElementViewColumn)
5555
5564
  });
5556
- var DTOElementViewsListResponse = z195.object({
5557
- elementDataViews: z195.array(DTOElementView)
5565
+ var DTOElementViewsListResponse = z196.object({
5566
+ elementDataViews: z196.array(DTOElementView)
5558
5567
  });
5559
5568
 
5560
5569
  // src/api/dto/workspaces/git.ts
5561
- import { z as z196 } from "zod";
5562
- var DTOGitOrganization = z196.object({
5563
- id: z196.string(),
5564
- name: z196.string(),
5565
- url: z196.string(),
5566
- slug: z196.string()
5570
+ import { z as z197 } from "zod";
5571
+ var DTOGitOrganization = z197.object({
5572
+ id: z197.string(),
5573
+ name: z197.string(),
5574
+ url: z197.string(),
5575
+ slug: z197.string()
5567
5576
  });
5568
- var DTOGitProject = z196.object({
5569
- id: z196.string(),
5570
- name: z196.string(),
5571
- url: z196.string(),
5572
- slug: z196.string()
5577
+ var DTOGitProject = z197.object({
5578
+ id: z197.string(),
5579
+ name: z197.string(),
5580
+ url: z197.string(),
5581
+ slug: z197.string()
5573
5582
  });
5574
- var DTOGitRepository = z196.object({
5575
- id: z196.string(),
5576
- name: z196.string(),
5577
- url: z196.string(),
5578
- slug: z196.string(),
5579
- defaultBranch: z196.string().optional()
5583
+ var DTOGitRepository = z197.object({
5584
+ id: z197.string(),
5585
+ name: z197.string(),
5586
+ url: z197.string(),
5587
+ slug: z197.string(),
5588
+ defaultBranch: z197.string().optional()
5580
5589
  });
5581
- var DTOGitBranch = z196.object({
5582
- name: z196.string(),
5583
- lastCommitId: z196.string()
5590
+ var DTOGitBranch = z197.object({
5591
+ name: z197.string(),
5592
+ lastCommitId: z197.string()
5584
5593
  });
5585
5594
 
5586
5595
  // src/api/dto/workspaces/integrations.ts
5587
- import { z as z197 } from "zod";
5596
+ import { z as z198 } from "zod";
5588
5597
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5589
5598
  accessToken: true,
5590
5599
  refreshToken: true
5591
5600
  });
5592
- var DTOIntegration = z197.object({
5593
- id: z197.string(),
5594
- workspaceId: z197.string(),
5601
+ var DTOIntegration = z198.object({
5602
+ id: z198.string(),
5603
+ workspaceId: z198.string(),
5595
5604
  type: ExtendedIntegrationType,
5596
- createdAt: z197.coerce.date(),
5597
- integrationCredentials: z197.array(DTOIntegrationCredentials).optional(),
5598
- integrationDesignSystems: z197.array(IntegrationDesignSystem).optional()
5605
+ createdAt: z198.coerce.date(),
5606
+ integrationCredentials: z198.array(DTOIntegrationCredentials).optional(),
5607
+ integrationDesignSystems: z198.array(IntegrationDesignSystem).optional()
5599
5608
  });
5600
- var DTOIntegrationOAuthGetResponse = z197.object({
5601
- url: z197.string()
5609
+ var DTOIntegrationOAuthGetResponse = z198.object({
5610
+ url: z198.string()
5602
5611
  });
5603
- var DTOIntegrationPostResponse = z197.object({
5612
+ var DTOIntegrationPostResponse = z198.object({
5604
5613
  integration: DTOIntegration
5605
5614
  });
5606
- var DTOIntegrationsGetListResponse = z197.object({
5615
+ var DTOIntegrationsGetListResponse = z198.object({
5607
5616
  integrations: DTOIntegration.array()
5608
5617
  });
5609
5618
 
5610
5619
  // src/api/dto/workspaces/invitations.ts
5611
- import { z as z198 } from "zod";
5612
- var DTOWorkspaceInvitationInput = z198.object({
5613
- email: z198.string().email(),
5620
+ import { z as z199 } from "zod";
5621
+ var DTOWorkspaceInvitationInput = z199.object({
5622
+ email: z199.string().email(),
5614
5623
  role: WorkspaceRoleSchema
5615
5624
  });
5616
- var DTOWorkspaceInvitationsListInput = z198.object({
5625
+ var DTOWorkspaceInvitationsListInput = z199.object({
5617
5626
  invites: DTOWorkspaceInvitationInput.array().max(100),
5618
- designSystemId: z198.string().optional()
5627
+ designSystemId: z199.string().optional()
5619
5628
  });
5620
- var DTOWorkspaceInvitationsResponse = z198.object({
5629
+ var DTOWorkspaceInvitationsResponse = z199.object({
5621
5630
  invitations: WorkspaceInvitation.array()
5622
5631
  });
5623
5632
 
5624
5633
  // src/api/dto/workspaces/membership.ts
5625
- import { z as z201 } from "zod";
5634
+ import { z as z202 } from "zod";
5626
5635
 
5627
5636
  // src/api/dto/workspaces/workspace.ts
5628
- import { z as z200 } from "zod";
5637
+ import { z as z201 } from "zod";
5629
5638
 
5630
5639
  // src/api/dto/workspaces/npm-registry.ts
5631
- import { z as z199 } from "zod";
5640
+ import { z as z200 } from "zod";
5632
5641
  var DTONpmRegistryConfigConstants = {
5633
5642
  passwordPlaceholder: "redacted"
5634
5643
  };
5635
- var DTONpmRegistryConfig = z199.object({
5644
+ var DTONpmRegistryConfig = z200.object({
5636
5645
  // Registry basic configuration
5637
5646
  registryType: NpmRegistryType,
5638
- registryUrl: z199.string(),
5639
- customRegistryUrl: z199.string().optional(),
5647
+ registryUrl: z200.string(),
5648
+ customRegistryUrl: z200.string().optional(),
5640
5649
  // URL of Supernova NPM packages proxy
5641
- proxyUrl: z199.string(),
5650
+ proxyUrl: z200.string(),
5642
5651
  // Auth configuration
5643
5652
  authType: NpmRegistryAuthType,
5644
- accessToken: z199.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5645
- username: z199.string().optional(),
5646
- password: z199.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5653
+ accessToken: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5654
+ username: z200.string().optional(),
5655
+ password: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5647
5656
  // NPM package scopes for whih the proxy should be enabled
5648
- enabledScopes: z199.array(z199.string()),
5657
+ enabledScopes: z200.array(z200.string()),
5649
5658
  // True if client should bypass Supernova proxy and connect directly to the registry
5650
5659
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5651
- bypassProxy: z199.boolean()
5660
+ bypassProxy: z200.boolean()
5652
5661
  });
5653
5662
 
5654
5663
  // src/api/dto/workspaces/workspace.ts
5655
- var DTOWorkspace = z200.object({
5656
- id: z200.string(),
5664
+ var DTOWorkspace = z201.object({
5665
+ id: z201.string(),
5657
5666
  profile: WorkspaceProfile,
5658
5667
  subscription: Subscription,
5659
5668
  npmRegistry: DTONpmRegistryConfig.optional()
5660
5669
  });
5661
- var DTOWorkspaceCreateInput = z200.object({
5662
- name: z200.string()
5670
+ var DTOWorkspaceCreateInput = z201.object({
5671
+ name: z201.string()
5663
5672
  });
5664
- var DTOWorkspaceResponse = z200.object({
5673
+ var DTOWorkspaceResponse = z201.object({
5665
5674
  workspace: DTOWorkspace
5666
5675
  });
5667
5676
 
5668
5677
  // src/api/dto/workspaces/membership.ts
5669
- var DTOWorkspaceRole = z201.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5670
- var DTOUserWorkspaceMembership = z201.object({
5678
+ var DTOWorkspaceRole = z202.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5679
+ var DTOUserWorkspaceMembership = z202.object({
5671
5680
  // Workspace the user is a member of
5672
5681
  workspace: DTOWorkspace,
5673
5682
  // Assigned role the user has in the workspace
@@ -5677,18 +5686,18 @@ var DTOUserWorkspaceMembership = z201.object({
5677
5686
  // when a workspace's subscription is downgraded to free tier
5678
5687
  effectiveRole: DTOWorkspaceRole
5679
5688
  });
5680
- var DTOUserWorkspaceMembershipsResponse = z201.object({
5681
- membership: z201.array(DTOUserWorkspaceMembership)
5689
+ var DTOUserWorkspaceMembershipsResponse = z202.object({
5690
+ membership: z202.array(DTOUserWorkspaceMembership)
5682
5691
  });
5683
5692
 
5684
5693
  // src/api/dto/bff/app-bootstrap-data.ts
5685
- var DTOAppBootstrapDataQuery = z202.object({
5686
- preferredWorkspaceId: z202.string().optional(),
5687
- preferredDesignSystemId: z202.string().optional(),
5688
- preferredVersionId: z202.string().optional(),
5689
- preferredBrandId: z202.string().optional()
5694
+ var DTOAppBootstrapDataQuery = z203.object({
5695
+ preferredWorkspaceId: z203.string().optional(),
5696
+ preferredDesignSystemId: z203.string().optional(),
5697
+ preferredVersionId: z203.string().optional(),
5698
+ preferredBrandId: z203.string().optional()
5690
5699
  });
5691
- var DTOAppBootstrapDataResponse = z202.object({
5700
+ var DTOAppBootstrapDataResponse = z203.object({
5692
5701
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5693
5702
  designSystem: DTODesignSystem.optional(),
5694
5703
  version: DTODesignSystemVersion.optional(),
@@ -5696,37 +5705,37 @@ var DTOAppBootstrapDataResponse = z202.object({
5696
5705
  });
5697
5706
 
5698
5707
  // src/api/dto/collections/collection.ts
5699
- import { z as z203 } from "zod";
5700
- var DTOTokenCollection = z203.object({
5701
- id: z203.string(),
5702
- persistentId: z203.string(),
5703
- designSystemVersionId: z203.string(),
5708
+ import { z as z204 } from "zod";
5709
+ var DTOTokenCollection = z204.object({
5710
+ id: z204.string(),
5711
+ persistentId: z204.string(),
5712
+ designSystemVersionId: z204.string(),
5704
5713
  meta: ObjectMeta,
5705
- createdAt: z203.coerce.date(),
5706
- updatedAt: z203.coerce.date(),
5707
- origin: z203.object({
5708
- id: z203.string(),
5709
- sourceId: z203.string()
5714
+ createdAt: z204.coerce.date(),
5715
+ updatedAt: z204.coerce.date(),
5716
+ origin: z204.object({
5717
+ id: z204.string(),
5718
+ sourceId: z204.string()
5710
5719
  })
5711
5720
  });
5712
- var DTOTokenCollectionsListReponse = z203.object({
5721
+ var DTOTokenCollectionsListReponse = z204.object({
5713
5722
  collections: DTOTokenCollection.array()
5714
5723
  });
5715
5724
 
5716
5725
  // src/api/dto/documentation/anchor.ts
5717
- import { z as z204 } from "zod";
5726
+ import { z as z205 } from "zod";
5718
5727
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5719
- var DTOGetDocumentationPageAnchorsResponse = z204.object({
5720
- anchors: z204.array(DTODocumentationPageAnchor)
5728
+ var DTOGetDocumentationPageAnchorsResponse = z205.object({
5729
+ anchors: z205.array(DTODocumentationPageAnchor)
5721
5730
  });
5722
5731
 
5723
5732
  // src/api/dto/documentation/approvals.ts
5724
- import { z as z205 } from "zod";
5733
+ import { z as z206 } from "zod";
5725
5734
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5726
- var DTODocumentationGroupApprovalState = z205.object({
5727
- persistentId: z205.string(),
5728
- groupId: z205.string(),
5729
- designSystemVersionId: z205.string(),
5735
+ var DTODocumentationGroupApprovalState = z206.object({
5736
+ persistentId: z206.string(),
5737
+ groupId: z206.string(),
5738
+ designSystemVersionId: z206.string(),
5730
5739
  approvalState: DocumentationPageApprovalState
5731
5740
  });
5732
5741
 
@@ -5734,68 +5743,68 @@ var DTODocumentationGroupApprovalState = z205.object({
5734
5743
  var DTOPageBlockItemV2 = PageBlockItemV2;
5735
5744
 
5736
5745
  // src/api/dto/documentation/documentation-page-snapshot.ts
5737
- import { z as z210 } from "zod";
5746
+ import { z as z211 } from "zod";
5738
5747
 
5739
5748
  // src/api/dto/elements/documentation/page-v2.ts
5740
- import { z as z209 } from "zod";
5749
+ import { z as z210 } from "zod";
5741
5750
 
5742
5751
  // src/api/dto/elements/documentation/draft-state.ts
5743
- import { z as z207 } from "zod";
5752
+ import { z as z208 } from "zod";
5744
5753
 
5745
5754
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5746
- import { z as z206 } from "zod";
5755
+ import { z as z207 } from "zod";
5747
5756
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5748
- var DTODocumentationItemConfigurationV2 = z206.object({
5749
- showSidebar: z206.boolean(),
5750
- isPrivate: z206.boolean(),
5751
- isHidden: z206.boolean(),
5757
+ var DTODocumentationItemConfigurationV2 = z207.object({
5758
+ showSidebar: z207.boolean(),
5759
+ isPrivate: z207.boolean(),
5760
+ isHidden: z207.boolean(),
5752
5761
  header: DTODocumentationItemHeaderV2
5753
5762
  });
5754
5763
 
5755
5764
  // src/api/dto/elements/documentation/draft-state.ts
5756
- var DTODocumentationDraftChangeType = z207.enum(["Created", "Updated", "Deleted"]);
5757
- var DTODocumentationDraftStateCreated = z207.object({
5758
- changeType: z207.literal(DTODocumentationDraftChangeType.enum.Created)
5759
- });
5760
- var DTODocumentationDraftStateUpdated = z207.object({
5761
- changeType: z207.literal(DTODocumentationDraftChangeType.enum.Updated),
5762
- changes: z207.object({
5763
- previousTitle: z207.string().optional(),
5765
+ var DTODocumentationDraftChangeType = z208.enum(["Created", "Updated", "Deleted"]);
5766
+ var DTODocumentationDraftStateCreated = z208.object({
5767
+ changeType: z208.literal(DTODocumentationDraftChangeType.enum.Created)
5768
+ });
5769
+ var DTODocumentationDraftStateUpdated = z208.object({
5770
+ changeType: z208.literal(DTODocumentationDraftChangeType.enum.Updated),
5771
+ changes: z208.object({
5772
+ previousTitle: z208.string().optional(),
5764
5773
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5765
- previousContentHash: z207.string().optional()
5774
+ previousContentHash: z208.string().optional()
5766
5775
  })
5767
5776
  });
5768
- var DTODocumentationDraftStateDeleted = z207.object({
5769
- changeType: z207.literal(DTODocumentationDraftChangeType.enum.Deleted),
5770
- deletedAt: z207.coerce.date(),
5771
- deletedByUserId: z207.string()
5777
+ var DTODocumentationDraftStateDeleted = z208.object({
5778
+ changeType: z208.literal(DTODocumentationDraftChangeType.enum.Deleted),
5779
+ deletedAt: z208.coerce.date(),
5780
+ deletedByUserId: z208.string()
5772
5781
  });
5773
- var DTODocumentationDraftState = z207.discriminatedUnion("changeType", [
5782
+ var DTODocumentationDraftState = z208.discriminatedUnion("changeType", [
5774
5783
  DTODocumentationDraftStateCreated,
5775
5784
  DTODocumentationDraftStateUpdated,
5776
5785
  DTODocumentationDraftStateDeleted
5777
5786
  ]);
5778
5787
 
5779
5788
  // src/api/dto/elements/documentation/metadata.ts
5780
- import { z as z208 } from "zod";
5781
- var DTODocumentationPublishMetadata = z208.object({
5782
- lastPublishedByUserId: z208.string(),
5783
- lastPublishedAt: z208.coerce.date()
5789
+ import { z as z209 } from "zod";
5790
+ var DTODocumentationPublishMetadata = z209.object({
5791
+ lastPublishedByUserId: z209.string(),
5792
+ lastPublishedAt: z209.coerce.date()
5784
5793
  });
5785
5794
 
5786
5795
  // src/api/dto/elements/documentation/page-v2.ts
5787
- var DTODocumentationPageV2 = z209.object({
5788
- id: z209.string(),
5789
- persistentId: z209.string(),
5790
- designSystemVersionId: z209.string(),
5791
- title: z209.string(),
5796
+ var DTODocumentationPageV2 = z210.object({
5797
+ id: z210.string(),
5798
+ persistentId: z210.string(),
5799
+ designSystemVersionId: z210.string(),
5800
+ title: z210.string(),
5792
5801
  configuration: DTODocumentationItemConfigurationV2,
5793
- shortPersistentId: z209.string(),
5794
- slug: z209.string().optional(),
5795
- userSlug: z209.string().optional(),
5796
- createdAt: z209.coerce.date(),
5797
- updatedAt: z209.coerce.date(),
5798
- path: z209.string(),
5802
+ shortPersistentId: z210.string(),
5803
+ slug: z210.string().optional(),
5804
+ userSlug: z210.string().optional(),
5805
+ createdAt: z210.coerce.date(),
5806
+ updatedAt: z210.coerce.date(),
5807
+ path: z210.string(),
5799
5808
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5800
5809
  draftState: DTODocumentationDraftState.optional(),
5801
5810
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5803,197 +5812,197 @@ var DTODocumentationPageV2 = z209.object({
5803
5812
  /** Defines the approval state of the documentation page */
5804
5813
  approvalState: DTODocumentationPageApprovalState.optional(),
5805
5814
  // Backward compatibility
5806
- type: z209.literal("Page")
5815
+ type: z210.literal("Page")
5807
5816
  });
5808
- var DTOCreateDocumentationPageInputV2 = z209.object({
5817
+ var DTOCreateDocumentationPageInputV2 = z210.object({
5809
5818
  // Identifier
5810
- persistentId: z209.string().uuid(),
5819
+ persistentId: z210.string().uuid(),
5811
5820
  // Page properties
5812
- title: z209.string(),
5821
+ title: z210.string(),
5813
5822
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5814
5823
  // Page placement properties
5815
- parentPersistentId: z209.string().uuid(),
5816
- afterPersistentId: z209.string().uuid().nullish()
5824
+ parentPersistentId: z210.string().uuid(),
5825
+ afterPersistentId: z210.string().uuid().nullish()
5817
5826
  });
5818
- var DTOUpdateDocumentationPageInputV2 = z209.object({
5827
+ var DTOUpdateDocumentationPageInputV2 = z210.object({
5819
5828
  // Identifier of the group to update
5820
- id: z209.string(),
5829
+ id: z210.string(),
5821
5830
  // Page properties
5822
- title: z209.string().optional(),
5831
+ title: z210.string().optional(),
5823
5832
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5824
5833
  });
5825
- var DTOMoveDocumentationPageInputV2 = z209.object({
5834
+ var DTOMoveDocumentationPageInputV2 = z210.object({
5826
5835
  // Identifier of the group to update
5827
- id: z209.string(),
5836
+ id: z210.string(),
5828
5837
  // Page placement properties
5829
- parentPersistentId: z209.string().uuid(),
5830
- afterPersistentId: z209.string().uuid().nullish()
5838
+ parentPersistentId: z210.string().uuid(),
5839
+ afterPersistentId: z210.string().uuid().nullish()
5831
5840
  });
5832
- var DTODuplicateDocumentationPageInputV2 = z209.object({
5841
+ var DTODuplicateDocumentationPageInputV2 = z210.object({
5833
5842
  // Identifier of the page to duplicate from
5834
- id: z209.string(),
5843
+ id: z210.string(),
5835
5844
  // New page persistent id
5836
- persistentId: z209.string().uuid(),
5845
+ persistentId: z210.string().uuid(),
5837
5846
  // Page placement properties
5838
- parentPersistentId: z209.string().uuid(),
5839
- afterPersistentId: z209.string().uuid().nullish()
5847
+ parentPersistentId: z210.string().uuid(),
5848
+ afterPersistentId: z210.string().uuid().nullish()
5840
5849
  });
5841
- var DTODeleteDocumentationPageInputV2 = z209.object({
5850
+ var DTODeleteDocumentationPageInputV2 = z210.object({
5842
5851
  // Identifier
5843
- id: z209.string()
5852
+ id: z210.string()
5844
5853
  });
5845
- var DTORestoreDocumentationPageInput = z209.object({
5846
- persistentId: z209.string(),
5847
- snapshotId: z209.string().optional()
5854
+ var DTORestoreDocumentationPageInput = z210.object({
5855
+ persistentId: z210.string(),
5856
+ snapshotId: z210.string().optional()
5848
5857
  });
5849
- var DTORestoreDocumentationGroupInput = z209.object({
5850
- persistentId: z209.string(),
5851
- snapshotId: z209.string().optional()
5858
+ var DTORestoreDocumentationGroupInput = z210.object({
5859
+ persistentId: z210.string(),
5860
+ snapshotId: z210.string().optional()
5852
5861
  });
5853
- var DTODocumentationPageApprovalStateChangeInput = z209.object({
5854
- persistentId: z209.string(),
5862
+ var DTODocumentationPageApprovalStateChangeInput = z210.object({
5863
+ persistentId: z210.string(),
5855
5864
  approvalState: DocumentationPageApprovalState.optional()
5856
5865
  });
5857
5866
 
5858
5867
  // src/api/dto/documentation/documentation-page-snapshot.ts
5859
- var DTODocumentationPageSnapshot = z210.object({
5860
- id: z210.string(),
5861
- designSystemVersionId: z210.string(),
5862
- createdAt: z210.string(),
5863
- updatedAt: z210.string(),
5868
+ var DTODocumentationPageSnapshot = z211.object({
5869
+ id: z211.string(),
5870
+ designSystemVersionId: z211.string(),
5871
+ createdAt: z211.string(),
5872
+ updatedAt: z211.string(),
5864
5873
  documentationPage: DTODocumentationPageV2,
5865
- pageContentHash: z210.string(),
5874
+ pageContentHash: z211.string(),
5866
5875
  reason: DesignElementSnapshotReason
5867
5876
  });
5868
5877
 
5869
5878
  // src/api/dto/documentation/link-preview.ts
5870
- import { z as z211 } from "zod";
5871
- var DTODocumentationLinkPreviewResponse = z211.object({
5879
+ import { z as z212 } from "zod";
5880
+ var DTODocumentationLinkPreviewResponse = z212.object({
5872
5881
  linkPreview: DocumentationLinkPreview
5873
5882
  });
5874
- var DTODocumentationLinkPreviewRequest = z211.object({
5875
- url: z211.string().optional(),
5876
- documentationItemPersistentId: z211.string().optional()
5883
+ var DTODocumentationLinkPreviewRequest = z212.object({
5884
+ url: z212.string().optional(),
5885
+ documentationItemPersistentId: z212.string().optional()
5877
5886
  });
5878
5887
 
5879
5888
  // src/api/dto/documentation/publish.ts
5880
- import { z as z215 } from "zod";
5889
+ import { z as z216 } from "zod";
5881
5890
 
5882
5891
  // src/api/dto/export/exporter.ts
5883
- import { z as z212 } from "zod";
5884
- var DTOExporterType = z212.enum(["documentation", "code"]);
5885
- var DTOExporterSource = z212.enum(["git", "upload"]);
5886
- var DTOExporterMembershipRole = z212.enum(["Owner", "OwnerArchived", "User"]);
5887
- var DTOExporter = z212.object({
5888
- id: z212.string(),
5889
- name: z212.string(),
5890
- isPrivate: z212.boolean(),
5892
+ import { z as z213 } from "zod";
5893
+ var DTOExporterType = z213.enum(["documentation", "code"]);
5894
+ var DTOExporterSource = z213.enum(["git", "upload"]);
5895
+ var DTOExporterMembershipRole = z213.enum(["Owner", "OwnerArchived", "User"]);
5896
+ var DTOExporter = z213.object({
5897
+ id: z213.string(),
5898
+ name: z213.string(),
5899
+ isPrivate: z213.boolean(),
5891
5900
  exporterType: DTOExporterType,
5892
- isDefaultDocumentationExporter: z212.boolean(),
5893
- iconURL: z212.string().optional(),
5901
+ isDefaultDocumentationExporter: z213.boolean(),
5902
+ iconURL: z213.string().optional(),
5894
5903
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5895
5904
  customBlocks: PulsarCustomBlock.array(),
5896
- blockVariants: z212.record(z212.string(), PulsarContributionVariant.array()),
5897
- usesBrands: z212.boolean(),
5898
- usesThemes: z212.boolean(),
5905
+ blockVariants: z213.record(z213.string(), PulsarContributionVariant.array()),
5906
+ usesBrands: z213.boolean(),
5907
+ usesThemes: z213.boolean(),
5899
5908
  source: DTOExporterSource,
5900
- gitUrl: z212.string().optional(),
5901
- gitBranch: z212.string().optional(),
5902
- gitDirectory: z212.string().optional()
5909
+ gitUrl: z213.string().optional(),
5910
+ gitBranch: z213.string().optional(),
5911
+ gitDirectory: z213.string().optional()
5903
5912
  });
5904
- var DTOExporterMembership = z212.object({
5905
- workspaceId: z212.string(),
5906
- exporterId: z212.string(),
5913
+ var DTOExporterMembership = z213.object({
5914
+ workspaceId: z213.string(),
5915
+ exporterId: z213.string(),
5907
5916
  role: DTOExporterMembershipRole
5908
5917
  });
5909
- var DTOExporterCreateOutput = z212.object({
5918
+ var DTOExporterCreateOutput = z213.object({
5910
5919
  exporter: DTOExporter,
5911
5920
  membership: DTOExporterMembership
5912
5921
  });
5913
- var DTOExporterGitProviderEnum = z212.enum(["github", "gitlab", "bitbucket", "azure"]);
5914
- var DTOExporterCreateInput = z212.object({
5915
- url: z212.string(),
5922
+ var DTOExporterGitProviderEnum = z213.enum(["github", "gitlab", "bitbucket", "azure"]);
5923
+ var DTOExporterCreateInput = z213.object({
5924
+ url: z213.string(),
5916
5925
  provider: DTOExporterGitProviderEnum
5917
5926
  });
5918
- var DTOExporterUpdateInput = z212.object({
5919
- url: z212.string().optional()
5927
+ var DTOExporterUpdateInput = z213.object({
5928
+ url: z213.string().optional()
5920
5929
  });
5921
5930
 
5922
5931
  // src/api/dto/export/filter.ts
5923
5932
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5924
5933
 
5925
5934
  // src/api/dto/export/job.ts
5926
- import { z as z213 } from "zod";
5927
- var DTOExportJobCreatedBy = z213.object({
5928
- userId: z213.string(),
5929
- userName: z213.string()
5935
+ import { z as z214 } from "zod";
5936
+ var DTOExportJobCreatedBy = z214.object({
5937
+ userId: z214.string(),
5938
+ userName: z214.string()
5930
5939
  });
5931
- var DTOExportJobDesignSystemPreview = z213.object({
5932
- id: z213.string(),
5940
+ var DTOExportJobDesignSystemPreview = z214.object({
5941
+ id: z214.string(),
5933
5942
  meta: ObjectMeta
5934
5943
  });
5935
- var DTOExportJobDesignSystemVersionPreview = z213.object({
5936
- id: z213.string(),
5944
+ var DTOExportJobDesignSystemVersionPreview = z214.object({
5945
+ id: z214.string(),
5937
5946
  meta: ObjectMeta,
5938
- version: z213.string(),
5939
- isReadonly: z213.boolean()
5947
+ version: z214.string(),
5948
+ isReadonly: z214.boolean()
5940
5949
  });
5941
- var DTOExportJobDestinations = z213.object({
5950
+ var DTOExportJobDestinations = z214.object({
5942
5951
  s3: ExporterDestinationS3.optional(),
5943
5952
  azure: ExporterDestinationAzure.optional(),
5944
5953
  bitbucket: ExporterDestinationBitbucket.optional(),
5945
5954
  github: ExporterDestinationGithub.optional(),
5946
5955
  gitlab: ExporterDestinationGitlab.optional(),
5947
5956
  documentation: ExporterDestinationDocs.optional(),
5948
- webhookUrl: z213.string().optional()
5957
+ webhookUrl: z214.string().optional()
5949
5958
  });
5950
5959
  var DTOExportJobResult = ExportJobResult.omit({
5951
5960
  sndocs: true
5952
5961
  }).extend({
5953
5962
  documentation: ExportJobDocsDestinationResult.optional()
5954
5963
  });
5955
- var DTOExportJob = z213.object({
5956
- id: z213.string(),
5957
- createdAt: z213.coerce.date(),
5958
- finishedAt: z213.coerce.date().optional(),
5959
- index: z213.number().optional(),
5964
+ var DTOExportJob = z214.object({
5965
+ id: z214.string(),
5966
+ createdAt: z214.coerce.date(),
5967
+ finishedAt: z214.coerce.date().optional(),
5968
+ index: z214.number().optional(),
5960
5969
  status: ExportJobStatus,
5961
- estimatedExecutionTime: z213.number().optional(),
5970
+ estimatedExecutionTime: z214.number().optional(),
5962
5971
  createdBy: DTOExportJobCreatedBy.optional(),
5963
5972
  designSystem: DTOExportJobDesignSystemPreview,
5964
5973
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5965
5974
  destinations: DTOExportJobDestinations,
5966
- exporterId: z213.string(),
5967
- scheduleId: z213.string().optional(),
5975
+ exporterId: z214.string(),
5976
+ scheduleId: z214.string().optional(),
5968
5977
  result: DTOExportJobResult.optional(),
5969
- brandPersistentId: z213.string().optional(),
5970
- themePersistentId: z213.string().optional(),
5971
- themePersistentIds: z213.string().array().optional()
5978
+ brandPersistentId: z214.string().optional(),
5979
+ themePersistentId: z214.string().optional(),
5980
+ themePersistentIds: z214.string().array().optional()
5972
5981
  });
5973
- var DTOExportJobResponse = z213.object({
5982
+ var DTOExportJobResponse = z214.object({
5974
5983
  job: DTOExportJob
5975
5984
  });
5976
5985
 
5977
5986
  // src/api/dto/export/pipeline.ts
5978
- import { z as z214 } from "zod";
5979
- var DTOPipeline = z214.object({
5980
- id: z214.string(),
5981
- name: z214.string(),
5987
+ import { z as z215 } from "zod";
5988
+ var DTOPipeline = z215.object({
5989
+ id: z215.string(),
5990
+ name: z215.string(),
5982
5991
  eventType: PipelineEventType,
5983
- isEnabled: z214.boolean(),
5984
- workspaceId: z214.string(),
5985
- designSystemId: z214.string(),
5986
- exporterId: z214.string(),
5987
- brandPersistentId: z214.string().optional(),
5988
- themePersistentId: z214.string().optional(),
5989
- themePersistentIds: z214.string().array().optional(),
5992
+ isEnabled: z215.boolean(),
5993
+ workspaceId: z215.string(),
5994
+ designSystemId: z215.string(),
5995
+ exporterId: z215.string(),
5996
+ brandPersistentId: z215.string().optional(),
5997
+ themePersistentId: z215.string().optional(),
5998
+ themePersistentIds: z215.string().array().optional(),
5990
5999
  ...ExportDestinationsMap.shape,
5991
6000
  latestJobs: DTOExportJob.array()
5992
6001
  });
5993
6002
 
5994
6003
  // src/api/dto/documentation/publish.ts
5995
6004
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5996
- var DTOPublishDocumentationRequest = z215.object({
6005
+ var DTOPublishDocumentationRequest = z216.object({
5997
6006
  environment: PublishedDocEnvironment,
5998
6007
  /**
5999
6008
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6001,42 +6010,42 @@ var DTOPublishDocumentationRequest = z215.object({
6001
6010
  */
6002
6011
  changes: DTOPublishDocumentationChanges.optional()
6003
6012
  });
6004
- var DTOPublishDocumentationResponse = z215.object({
6013
+ var DTOPublishDocumentationResponse = z216.object({
6005
6014
  job: DTOExportJob
6006
6015
  });
6007
6016
 
6008
6017
  // src/api/dto/elements/components/figma-component.ts
6009
- import { z as z216 } from "zod";
6018
+ import { z as z217 } from "zod";
6010
6019
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6011
- var DTOFigmaComponentPropertyMap = z216.record(DTOFigmaComponentProperty);
6012
- var DTOFigmaComponent = z216.object({
6013
- id: z216.string(),
6014
- persistentId: z216.string(),
6015
- designSystemVersionId: z216.string(),
6016
- brandId: z216.string(),
6017
- thumbnailUrl: z216.string().optional(),
6018
- svgUrl: z216.string().optional(),
6019
- exportProperties: z216.object({
6020
- isAsset: z216.boolean()
6020
+ var DTOFigmaComponentPropertyMap = z217.record(DTOFigmaComponentProperty);
6021
+ var DTOFigmaComponent = z217.object({
6022
+ id: z217.string(),
6023
+ persistentId: z217.string(),
6024
+ designSystemVersionId: z217.string(),
6025
+ brandId: z217.string(),
6026
+ thumbnailUrl: z217.string().optional(),
6027
+ svgUrl: z217.string().optional(),
6028
+ exportProperties: z217.object({
6029
+ isAsset: z217.boolean()
6021
6030
  }),
6022
- createdAt: z216.coerce.date(),
6023
- updatedAt: z216.coerce.date(),
6031
+ createdAt: z217.coerce.date(),
6032
+ updatedAt: z217.coerce.date(),
6024
6033
  meta: ObjectMeta,
6025
6034
  originComponent: FigmaComponentOrigin.optional(),
6026
- parentComponentPersistentId: z216.string().optional(),
6027
- childrenPersistentIds: z216.string().array().optional(),
6035
+ parentComponentPersistentId: z217.string().optional(),
6036
+ childrenPersistentIds: z217.string().array().optional(),
6028
6037
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6029
- variantPropertyValues: z216.record(z216.string()).optional()
6038
+ variantPropertyValues: z217.record(z217.string()).optional()
6030
6039
  });
6031
- var DTOFigmaComponentListResponse = z216.object({
6040
+ var DTOFigmaComponentListResponse = z217.object({
6032
6041
  components: DTOFigmaComponent.array()
6033
6042
  });
6034
6043
 
6035
6044
  // src/api/dto/elements/documentation/group-action.ts
6036
- import { z as z218 } from "zod";
6045
+ import { z as z219 } from "zod";
6037
6046
 
6038
6047
  // src/api/dto/elements/documentation/group-v2.ts
6039
- import { z as z217 } from "zod";
6048
+ import { z as z218 } from "zod";
6040
6049
  var DTODocumentationGroupV2 = ElementGroup.omit({
6041
6050
  sortOrder: true,
6042
6051
  parentPersistentId: true,
@@ -6046,13 +6055,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6046
6055
  data: true,
6047
6056
  shortPersistentId: true
6048
6057
  }).extend({
6049
- title: z217.string(),
6050
- isRoot: z217.boolean(),
6051
- childrenIds: z217.array(z217.string()),
6058
+ title: z218.string(),
6059
+ isRoot: z218.boolean(),
6060
+ childrenIds: z218.array(z218.string()),
6052
6061
  groupBehavior: DocumentationGroupBehavior,
6053
- shortPersistentId: z217.string(),
6062
+ shortPersistentId: z218.string(),
6054
6063
  configuration: DTODocumentationItemConfigurationV2,
6055
- type: z217.literal("Group"),
6064
+ type: z218.literal("Group"),
6056
6065
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6057
6066
  draftState: DTODocumentationDraftState.optional(),
6058
6067
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6060,127 +6069,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6060
6069
  //** An approval state for frontend to utilize. */
6061
6070
  approvalState: DTODocumentationGroupApprovalState.optional()
6062
6071
  });
6063
- var DTOCreateDocumentationGroupInput = z217.object({
6072
+ var DTOCreateDocumentationGroupInput = z218.object({
6064
6073
  // Identifier
6065
- persistentId: z217.string().uuid(),
6074
+ persistentId: z218.string().uuid(),
6066
6075
  // Group properties
6067
- title: z217.string(),
6076
+ title: z218.string(),
6068
6077
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6069
6078
  // Group placement properties
6070
- afterPersistentId: z217.string().uuid().nullish(),
6071
- parentPersistentId: z217.string().uuid()
6079
+ afterPersistentId: z218.string().uuid().nullish(),
6080
+ parentPersistentId: z218.string().uuid()
6072
6081
  });
6073
- var DTOUpdateDocumentationGroupInput = z217.object({
6082
+ var DTOUpdateDocumentationGroupInput = z218.object({
6074
6083
  // Identifier of the group to update
6075
- id: z217.string(),
6084
+ id: z218.string(),
6076
6085
  // Group properties
6077
- title: z217.string().optional(),
6086
+ title: z218.string().optional(),
6078
6087
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6079
6088
  });
6080
- var DTOMoveDocumentationGroupInput = z217.object({
6089
+ var DTOMoveDocumentationGroupInput = z218.object({
6081
6090
  // Identifier of the group to update
6082
- id: z217.string(),
6091
+ id: z218.string(),
6083
6092
  // Group placement properties
6084
- parentPersistentId: z217.string().uuid(),
6085
- afterPersistentId: z217.string().uuid().nullish()
6093
+ parentPersistentId: z218.string().uuid(),
6094
+ afterPersistentId: z218.string().uuid().nullish()
6086
6095
  });
6087
- var DTODuplicateDocumentationGroupInput = z217.object({
6096
+ var DTODuplicateDocumentationGroupInput = z218.object({
6088
6097
  // Identifier of the group to duplicate from
6089
- id: z217.string(),
6098
+ id: z218.string(),
6090
6099
  // New group persistent id
6091
- persistentId: z217.string().uuid(),
6100
+ persistentId: z218.string().uuid(),
6092
6101
  // Group placement properties
6093
- afterPersistentId: z217.string().uuid().nullish(),
6094
- parentPersistentId: z217.string().uuid()
6102
+ afterPersistentId: z218.string().uuid().nullish(),
6103
+ parentPersistentId: z218.string().uuid()
6095
6104
  });
6096
- var DTOCreateDocumentationTabInput = z217.object({
6105
+ var DTOCreateDocumentationTabInput = z218.object({
6097
6106
  // New group persistent id
6098
- persistentId: z217.string().uuid(),
6107
+ persistentId: z218.string().uuid(),
6099
6108
  // If this is page, we will attempt to convert it to tab
6100
6109
  // If this is tab group, we will add a new tab to it
6101
- fromItemPersistentId: z217.string(),
6102
- tabName: z217.string()
6110
+ fromItemPersistentId: z218.string(),
6111
+ tabName: z218.string()
6103
6112
  });
6104
- var DTODeleteDocumentationTabGroupInput = z217.object({
6113
+ var DTODeleteDocumentationTabGroupInput = z218.object({
6105
6114
  // Deleted group id
6106
- id: z217.string()
6115
+ id: z218.string()
6107
6116
  });
6108
- var DTODeleteDocumentationGroupInput = z217.object({
6117
+ var DTODeleteDocumentationGroupInput = z218.object({
6109
6118
  // Identifier
6110
- id: z217.string(),
6119
+ id: z218.string(),
6111
6120
  // Deletion options
6112
- deleteSubtree: z217.boolean().default(false)
6121
+ deleteSubtree: z218.boolean().default(false)
6113
6122
  });
6114
6123
 
6115
6124
  // src/api/dto/elements/documentation/group-action.ts
6116
- var SuccessPayload = z218.object({
6117
- success: z218.literal(true)
6125
+ var SuccessPayload = z219.object({
6126
+ success: z219.literal(true)
6118
6127
  });
6119
- var DTODocumentationGroupCreateActionOutputV2 = z218.object({
6120
- type: z218.literal("DocumentationGroupCreate"),
6128
+ var DTODocumentationGroupCreateActionOutputV2 = z219.object({
6129
+ type: z219.literal("DocumentationGroupCreate"),
6121
6130
  output: SuccessPayload
6122
6131
  });
6123
- var DTODocumentationTabCreateActionOutputV2 = z218.object({
6124
- type: z218.literal("DocumentationTabCreate"),
6132
+ var DTODocumentationTabCreateActionOutputV2 = z219.object({
6133
+ type: z219.literal("DocumentationTabCreate"),
6125
6134
  output: SuccessPayload
6126
6135
  });
6127
- var DTODocumentationGroupUpdateActionOutputV2 = z218.object({
6128
- type: z218.literal("DocumentationGroupUpdate"),
6136
+ var DTODocumentationGroupUpdateActionOutputV2 = z219.object({
6137
+ type: z219.literal("DocumentationGroupUpdate"),
6129
6138
  output: SuccessPayload
6130
6139
  });
6131
- var DTODocumentationGroupMoveActionOutputV2 = z218.object({
6132
- type: z218.literal("DocumentationGroupMove"),
6140
+ var DTODocumentationGroupMoveActionOutputV2 = z219.object({
6141
+ type: z219.literal("DocumentationGroupMove"),
6133
6142
  output: SuccessPayload
6134
6143
  });
6135
- var DTODocumentationGroupDuplicateActionOutputV2 = z218.object({
6136
- type: z218.literal("DocumentationGroupDuplicate"),
6144
+ var DTODocumentationGroupDuplicateActionOutputV2 = z219.object({
6145
+ type: z219.literal("DocumentationGroupDuplicate"),
6137
6146
  output: SuccessPayload
6138
6147
  });
6139
- var DTODocumentationGroupDeleteActionOutputV2 = z218.object({
6140
- type: z218.literal("DocumentationGroupDelete"),
6148
+ var DTODocumentationGroupDeleteActionOutputV2 = z219.object({
6149
+ type: z219.literal("DocumentationGroupDelete"),
6141
6150
  output: SuccessPayload
6142
6151
  });
6143
- var DTODocumentationTabGroupDeleteActionOutputV2 = z218.object({
6144
- type: z218.literal("DocumentationTabGroupDelete"),
6152
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z219.object({
6153
+ type: z219.literal("DocumentationTabGroupDelete"),
6145
6154
  output: SuccessPayload
6146
6155
  });
6147
- var DTODocumentationGroupCreateActionInputV2 = z218.object({
6148
- type: z218.literal("DocumentationGroupCreate"),
6156
+ var DTODocumentationGroupCreateActionInputV2 = z219.object({
6157
+ type: z219.literal("DocumentationGroupCreate"),
6149
6158
  input: DTOCreateDocumentationGroupInput
6150
6159
  });
6151
- var DTODocumentationTabCreateActionInputV2 = z218.object({
6152
- type: z218.literal("DocumentationTabCreate"),
6160
+ var DTODocumentationTabCreateActionInputV2 = z219.object({
6161
+ type: z219.literal("DocumentationTabCreate"),
6153
6162
  input: DTOCreateDocumentationTabInput
6154
6163
  });
6155
- var DTODocumentationGroupUpdateActionInputV2 = z218.object({
6156
- type: z218.literal("DocumentationGroupUpdate"),
6164
+ var DTODocumentationGroupUpdateActionInputV2 = z219.object({
6165
+ type: z219.literal("DocumentationGroupUpdate"),
6157
6166
  input: DTOUpdateDocumentationGroupInput
6158
6167
  });
6159
- var DTODocumentationGroupMoveActionInputV2 = z218.object({
6160
- type: z218.literal("DocumentationGroupMove"),
6168
+ var DTODocumentationGroupMoveActionInputV2 = z219.object({
6169
+ type: z219.literal("DocumentationGroupMove"),
6161
6170
  input: DTOMoveDocumentationGroupInput
6162
6171
  });
6163
- var DTODocumentationGroupDuplicateActionInputV2 = z218.object({
6164
- type: z218.literal("DocumentationGroupDuplicate"),
6172
+ var DTODocumentationGroupDuplicateActionInputV2 = z219.object({
6173
+ type: z219.literal("DocumentationGroupDuplicate"),
6165
6174
  input: DTODuplicateDocumentationGroupInput
6166
6175
  });
6167
- var DTODocumentationGroupDeleteActionInputV2 = z218.object({
6168
- type: z218.literal("DocumentationGroupDelete"),
6176
+ var DTODocumentationGroupDeleteActionInputV2 = z219.object({
6177
+ type: z219.literal("DocumentationGroupDelete"),
6169
6178
  input: DTODeleteDocumentationGroupInput
6170
6179
  });
6171
- var DTODocumentationTabGroupDeleteActionInputV2 = z218.object({
6172
- type: z218.literal("DocumentationTabGroupDelete"),
6180
+ var DTODocumentationTabGroupDeleteActionInputV2 = z219.object({
6181
+ type: z219.literal("DocumentationTabGroupDelete"),
6173
6182
  input: DTODeleteDocumentationTabGroupInput
6174
6183
  });
6175
6184
 
6176
6185
  // src/api/dto/elements/documentation/group-v1.ts
6177
- import { z as z220 } from "zod";
6186
+ import { z as z221 } from "zod";
6178
6187
 
6179
6188
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6180
- import { z as z219 } from "zod";
6181
- var DocumentationColorV1 = z219.object({
6182
- aliasTo: z219.string().optional(),
6183
- value: z219.string().optional()
6189
+ import { z as z220 } from "zod";
6190
+ var DocumentationColorV1 = z220.object({
6191
+ aliasTo: z220.string().optional(),
6192
+ value: z220.string().optional()
6184
6193
  });
6185
6194
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6186
6195
  foregroundColor: true,
@@ -6189,10 +6198,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6189
6198
  foregroundColor: DocumentationColorV1.optional(),
6190
6199
  backgroundColor: DocumentationColorV1.optional()
6191
6200
  });
6192
- var DTODocumentationItemConfigurationV1 = z219.object({
6193
- showSidebar: z219.boolean(),
6194
- isPrivate: z219.boolean(),
6195
- isHidden: z219.boolean(),
6201
+ var DTODocumentationItemConfigurationV1 = z220.object({
6202
+ showSidebar: z220.boolean(),
6203
+ isPrivate: z220.boolean(),
6204
+ isHidden: z220.boolean(),
6196
6205
  header: DTODocumentationItemHeaderV1
6197
6206
  });
6198
6207
 
@@ -6206,27 +6215,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6206
6215
  data: true,
6207
6216
  shortPersistentId: true
6208
6217
  }).extend({
6209
- title: z220.string(),
6210
- isRoot: z220.boolean(),
6211
- childrenIds: z220.array(z220.string()),
6218
+ title: z221.string(),
6219
+ isRoot: z221.boolean(),
6220
+ childrenIds: z221.array(z221.string()),
6212
6221
  groupBehavior: DocumentationGroupBehavior,
6213
- shortPersistentId: z220.string(),
6214
- type: z220.literal("Group")
6222
+ shortPersistentId: z221.string(),
6223
+ type: z221.literal("Group")
6215
6224
  });
6216
6225
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6217
6226
  configuration: DTODocumentationItemConfigurationV1
6218
6227
  });
6219
6228
 
6220
6229
  // src/api/dto/elements/documentation/hierarchy.ts
6221
- import { z as z221 } from "zod";
6222
- var DTODocumentationHierarchyV2 = z221.object({
6223
- pages: z221.array(
6230
+ import { z as z222 } from "zod";
6231
+ var DTODocumentationHierarchyV2 = z222.object({
6232
+ pages: z222.array(
6224
6233
  DTODocumentationPageV2.extend({
6225
6234
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6226
6235
  draftState: DTODocumentationDraftState.optional()
6227
6236
  })
6228
6237
  ),
6229
- groups: z221.array(
6238
+ groups: z222.array(
6230
6239
  DTODocumentationGroupV2.extend({
6231
6240
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6232
6241
  draftState: DTODocumentationDraftState.optional()
@@ -6235,84 +6244,84 @@ var DTODocumentationHierarchyV2 = z221.object({
6235
6244
  });
6236
6245
 
6237
6246
  // src/api/dto/elements/documentation/page-actions-v2.ts
6238
- import { z as z222 } from "zod";
6239
- var SuccessPayload2 = z222.object({
6240
- success: z222.literal(true)
6247
+ import { z as z223 } from "zod";
6248
+ var SuccessPayload2 = z223.object({
6249
+ success: z223.literal(true)
6241
6250
  });
6242
- var DTODocumentationPageCreateActionOutputV2 = z222.object({
6243
- type: z222.literal("DocumentationPageCreate"),
6251
+ var DTODocumentationPageCreateActionOutputV2 = z223.object({
6252
+ type: z223.literal("DocumentationPageCreate"),
6244
6253
  output: SuccessPayload2
6245
6254
  });
6246
- var DTODocumentationPageUpdateActionOutputV2 = z222.object({
6247
- type: z222.literal("DocumentationPageUpdate"),
6255
+ var DTODocumentationPageUpdateActionOutputV2 = z223.object({
6256
+ type: z223.literal("DocumentationPageUpdate"),
6248
6257
  output: SuccessPayload2
6249
6258
  });
6250
- var DTODocumentationPageMoveActionOutputV2 = z222.object({
6251
- type: z222.literal("DocumentationPageMove"),
6259
+ var DTODocumentationPageMoveActionOutputV2 = z223.object({
6260
+ type: z223.literal("DocumentationPageMove"),
6252
6261
  output: SuccessPayload2
6253
6262
  });
6254
- var DTODocumentationPageDuplicateActionOutputV2 = z222.object({
6255
- type: z222.literal("DocumentationPageDuplicate"),
6263
+ var DTODocumentationPageDuplicateActionOutputV2 = z223.object({
6264
+ type: z223.literal("DocumentationPageDuplicate"),
6256
6265
  output: SuccessPayload2
6257
6266
  });
6258
- var DTODocumentationPageDeleteActionOutputV2 = z222.object({
6259
- type: z222.literal("DocumentationPageDelete"),
6267
+ var DTODocumentationPageDeleteActionOutputV2 = z223.object({
6268
+ type: z223.literal("DocumentationPageDelete"),
6260
6269
  output: SuccessPayload2
6261
6270
  });
6262
- var DTODocumentationPageRestoreActionOutput = z222.object({
6263
- type: z222.literal("DocumentationPageRestore"),
6271
+ var DTODocumentationPageRestoreActionOutput = z223.object({
6272
+ type: z223.literal("DocumentationPageRestore"),
6264
6273
  output: SuccessPayload2
6265
6274
  });
6266
- var DTODocumentationGroupRestoreActionOutput = z222.object({
6267
- type: z222.literal("DocumentationGroupRestore"),
6275
+ var DTODocumentationGroupRestoreActionOutput = z223.object({
6276
+ type: z223.literal("DocumentationGroupRestore"),
6268
6277
  output: SuccessPayload2
6269
6278
  });
6270
- var DTODocumentationPageApprovalStateChangeActionOutput = z222.object({
6271
- type: z222.literal("DocumentationPageApprovalStateChange"),
6279
+ var DTODocumentationPageApprovalStateChangeActionOutput = z223.object({
6280
+ type: z223.literal("DocumentationPageApprovalStateChange"),
6272
6281
  output: SuccessPayload2
6273
6282
  });
6274
- var DTODocumentationPageCreateActionInputV2 = z222.object({
6275
- type: z222.literal("DocumentationPageCreate"),
6283
+ var DTODocumentationPageCreateActionInputV2 = z223.object({
6284
+ type: z223.literal("DocumentationPageCreate"),
6276
6285
  input: DTOCreateDocumentationPageInputV2
6277
6286
  });
6278
- var DTODocumentationPageUpdateActionInputV2 = z222.object({
6279
- type: z222.literal("DocumentationPageUpdate"),
6287
+ var DTODocumentationPageUpdateActionInputV2 = z223.object({
6288
+ type: z223.literal("DocumentationPageUpdate"),
6280
6289
  input: DTOUpdateDocumentationPageInputV2
6281
6290
  });
6282
- var DTODocumentationPageMoveActionInputV2 = z222.object({
6283
- type: z222.literal("DocumentationPageMove"),
6291
+ var DTODocumentationPageMoveActionInputV2 = z223.object({
6292
+ type: z223.literal("DocumentationPageMove"),
6284
6293
  input: DTOMoveDocumentationPageInputV2
6285
6294
  });
6286
- var DTODocumentationPageDuplicateActionInputV2 = z222.object({
6287
- type: z222.literal("DocumentationPageDuplicate"),
6295
+ var DTODocumentationPageDuplicateActionInputV2 = z223.object({
6296
+ type: z223.literal("DocumentationPageDuplicate"),
6288
6297
  input: DTODuplicateDocumentationPageInputV2
6289
6298
  });
6290
- var DTODocumentationPageDeleteActionInputV2 = z222.object({
6291
- type: z222.literal("DocumentationPageDelete"),
6299
+ var DTODocumentationPageDeleteActionInputV2 = z223.object({
6300
+ type: z223.literal("DocumentationPageDelete"),
6292
6301
  input: DTODeleteDocumentationPageInputV2
6293
6302
  });
6294
- var DTODocumentationPageRestoreActionInput = z222.object({
6295
- type: z222.literal("DocumentationPageRestore"),
6303
+ var DTODocumentationPageRestoreActionInput = z223.object({
6304
+ type: z223.literal("DocumentationPageRestore"),
6296
6305
  input: DTORestoreDocumentationPageInput
6297
6306
  });
6298
- var DTODocumentationGroupRestoreActionInput = z222.object({
6299
- type: z222.literal("DocumentationGroupRestore"),
6307
+ var DTODocumentationGroupRestoreActionInput = z223.object({
6308
+ type: z223.literal("DocumentationGroupRestore"),
6300
6309
  input: DTORestoreDocumentationGroupInput
6301
6310
  });
6302
- var DTODocumentationPageApprovalStateChangeActionInput = z222.object({
6303
- type: z222.literal("DocumentationPageApprovalStateChange"),
6311
+ var DTODocumentationPageApprovalStateChangeActionInput = z223.object({
6312
+ type: z223.literal("DocumentationPageApprovalStateChange"),
6304
6313
  input: DTODocumentationPageApprovalStateChangeInput
6305
6314
  });
6306
6315
 
6307
6316
  // src/api/dto/elements/documentation/page-content.ts
6308
- import { z as z223 } from "zod";
6317
+ import { z as z224 } from "zod";
6309
6318
  var DTODocumentationPageContent = DocumentationPageContent;
6310
- var DTODocumentationPageContentGetResponse = z223.object({
6319
+ var DTODocumentationPageContentGetResponse = z224.object({
6311
6320
  pageContent: DTODocumentationPageContent
6312
6321
  });
6313
6322
 
6314
6323
  // src/api/dto/elements/documentation/page-v1.ts
6315
- import { z as z224 } from "zod";
6324
+ import { z as z225 } from "zod";
6316
6325
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6317
6326
  data: true,
6318
6327
  meta: true,
@@ -6320,32 +6329,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6320
6329
  sortOrder: true
6321
6330
  }).extend({
6322
6331
  configuration: DTODocumentationItemConfigurationV1,
6323
- blocks: z224.array(PageBlockV1),
6324
- title: z224.string(),
6325
- path: z224.string()
6332
+ blocks: z225.array(PageBlockV1),
6333
+ title: z225.string(),
6334
+ path: z225.string()
6326
6335
  });
6327
6336
 
6328
6337
  // src/api/dto/elements/figma-nodes/figma-node.ts
6329
- import { z as z225 } from "zod";
6338
+ import { z as z226 } from "zod";
6330
6339
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6331
- var DTOFigmaNodeOrigin = z225.object({
6332
- sourceId: z225.string(),
6333
- fileId: z225.string().optional(),
6334
- parentName: z225.string().optional()
6340
+ var DTOFigmaNodeOrigin = z226.object({
6341
+ sourceId: z226.string(),
6342
+ fileId: z226.string().optional(),
6343
+ parentName: z226.string().optional()
6335
6344
  });
6336
- var DTOFigmaNodeData = z225.object({
6345
+ var DTOFigmaNodeData = z226.object({
6337
6346
  // Id of the node in the Figma file
6338
- figmaNodeId: z225.string(),
6347
+ figmaNodeId: z226.string(),
6339
6348
  // Validity
6340
- isValid: z225.boolean(),
6349
+ isValid: z226.boolean(),
6341
6350
  // Asset data
6342
- assetId: z225.string(),
6343
- assetUrl: z225.string(),
6351
+ assetId: z226.string(),
6352
+ assetUrl: z226.string(),
6344
6353
  assetFormat: DTOFigmaNodeRenderFormat,
6345
6354
  // Asset metadata
6346
- assetScale: z225.number(),
6347
- assetWidth: z225.number().optional(),
6348
- assetHeight: z225.number().optional()
6355
+ assetScale: z226.number(),
6356
+ assetWidth: z226.number().optional(),
6357
+ assetHeight: z226.number().optional()
6349
6358
  });
6350
6359
  var DTOFigmaNode = FigmaNodeReference.omit({
6351
6360
  data: true,
@@ -6354,15 +6363,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6354
6363
  data: DTOFigmaNodeData,
6355
6364
  origin: DTOFigmaNodeOrigin
6356
6365
  });
6357
- var DTOFigmaNodeRenderInput = z225.object({
6366
+ var DTOFigmaNodeRenderInput = z226.object({
6358
6367
  /**
6359
6368
  * Id of a design system's data source representing a linked Figma file
6360
6369
  */
6361
- sourceId: z225.string(),
6370
+ sourceId: z226.string(),
6362
6371
  /**
6363
6372
  * Id of a node within the Figma file
6364
6373
  */
6365
- figmaFileNodeId: z225.string(),
6374
+ figmaFileNodeId: z226.string(),
6366
6375
  /**
6367
6376
  * Format in which the node must be rendered, png by default.
6368
6377
  */
@@ -6370,97 +6379,97 @@ var DTOFigmaNodeRenderInput = z225.object({
6370
6379
  });
6371
6380
 
6372
6381
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6373
- import { z as z226 } from "zod";
6374
- var DTOFigmaNodeRenderActionOutput = z226.object({
6375
- type: z226.literal("FigmaNodeRender"),
6376
- figmaNodes: z226.array(DTOFigmaNode)
6382
+ import { z as z227 } from "zod";
6383
+ var DTOFigmaNodeRenderActionOutput = z227.object({
6384
+ type: z227.literal("FigmaNodeRender"),
6385
+ figmaNodes: z227.array(DTOFigmaNode)
6377
6386
  });
6378
- var DTOFigmaNodeRenderActionInput = z226.object({
6379
- type: z226.literal("FigmaNodeRender"),
6387
+ var DTOFigmaNodeRenderActionInput = z227.object({
6388
+ type: z227.literal("FigmaNodeRender"),
6380
6389
  input: DTOFigmaNodeRenderInput.array()
6381
6390
  });
6382
6391
 
6383
6392
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6384
- import { z as z228 } from "zod";
6393
+ import { z as z229 } from "zod";
6385
6394
 
6386
6395
  // src/api/dto/elements/properties/property-definitions.ts
6387
- import { z as z227 } from "zod";
6396
+ import { z as z228 } from "zod";
6388
6397
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6389
- var DTOElementPropertyDefinition = z227.object({
6390
- id: z227.string(),
6391
- designSystemVersionId: z227.string(),
6398
+ var DTOElementPropertyDefinition = z228.object({
6399
+ id: z228.string(),
6400
+ designSystemVersionId: z228.string(),
6392
6401
  meta: ObjectMeta,
6393
- persistentId: z227.string(),
6402
+ persistentId: z228.string(),
6394
6403
  type: ElementPropertyTypeSchema,
6395
6404
  targetElementType: ElementPropertyTargetType,
6396
- codeName: z227.string().regex(CODE_NAME_REGEX2),
6397
- options: z227.array(ElementPropertyDefinitionOption).optional(),
6405
+ codeName: z228.string().regex(CODE_NAME_REGEX2),
6406
+ options: z228.array(ElementPropertyDefinitionOption).optional(),
6398
6407
  linkElementType: ElementPropertyLinkType.optional()
6399
6408
  });
6400
- var DTOElementPropertyDefinitionsGetResponse = z227.object({
6401
- definitions: z227.array(DTOElementPropertyDefinition)
6409
+ var DTOElementPropertyDefinitionsGetResponse = z228.object({
6410
+ definitions: z228.array(DTOElementPropertyDefinition)
6402
6411
  });
6403
6412
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6404
6413
  id: true,
6405
6414
  designSystemVersionId: true
6406
6415
  });
6407
- var DTOUpdateElementPropertyDefinitionInputV2 = z227.object({
6408
- id: z227.string(),
6409
- name: z227.string().optional(),
6410
- description: z227.string().optional(),
6411
- codeName: z227.string().regex(CODE_NAME_REGEX2).optional(),
6412
- options: z227.array(ElementPropertyDefinitionOption).optional()
6416
+ var DTOUpdateElementPropertyDefinitionInputV2 = z228.object({
6417
+ id: z228.string(),
6418
+ name: z228.string().optional(),
6419
+ description: z228.string().optional(),
6420
+ codeName: z228.string().regex(CODE_NAME_REGEX2).optional(),
6421
+ options: z228.array(ElementPropertyDefinitionOption).optional()
6413
6422
  });
6414
- var DTODeleteElementPropertyDefinitionInputV2 = z227.object({
6415
- id: z227.string()
6423
+ var DTODeleteElementPropertyDefinitionInputV2 = z228.object({
6424
+ id: z228.string()
6416
6425
  });
6417
6426
 
6418
6427
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6419
- var SuccessPayload3 = z228.object({
6420
- success: z228.literal(true)
6428
+ var SuccessPayload3 = z229.object({
6429
+ success: z229.literal(true)
6421
6430
  });
6422
- var DTOPropertyDefinitionCreateActionOutputV2 = z228.object({
6423
- type: z228.literal("PropertyDefinitionCreate"),
6431
+ var DTOPropertyDefinitionCreateActionOutputV2 = z229.object({
6432
+ type: z229.literal("PropertyDefinitionCreate"),
6424
6433
  definition: DTOElementPropertyDefinition
6425
6434
  });
6426
- var DTOPropertyDefinitionUpdateActionOutputV2 = z228.object({
6427
- type: z228.literal("PropertyDefinitionUpdate"),
6435
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z229.object({
6436
+ type: z229.literal("PropertyDefinitionUpdate"),
6428
6437
  definition: DTOElementPropertyDefinition
6429
6438
  });
6430
- var DTOPropertyDefinitionDeleteActionOutputV2 = z228.object({
6431
- type: z228.literal("PropertyDefinitionDelete"),
6439
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z229.object({
6440
+ type: z229.literal("PropertyDefinitionDelete"),
6432
6441
  output: SuccessPayload3
6433
6442
  });
6434
- var DTOPropertyDefinitionCreateActionInputV2 = z228.object({
6435
- type: z228.literal("PropertyDefinitionCreate"),
6443
+ var DTOPropertyDefinitionCreateActionInputV2 = z229.object({
6444
+ type: z229.literal("PropertyDefinitionCreate"),
6436
6445
  input: DTOCreateElementPropertyDefinitionInputV2
6437
6446
  });
6438
- var DTOPropertyDefinitionUpdateActionInputV2 = z228.object({
6439
- type: z228.literal("PropertyDefinitionUpdate"),
6447
+ var DTOPropertyDefinitionUpdateActionInputV2 = z229.object({
6448
+ type: z229.literal("PropertyDefinitionUpdate"),
6440
6449
  input: DTOUpdateElementPropertyDefinitionInputV2
6441
6450
  });
6442
- var DTOPropertyDefinitionDeleteActionInputV2 = z228.object({
6443
- type: z228.literal("PropertyDefinitionDelete"),
6451
+ var DTOPropertyDefinitionDeleteActionInputV2 = z229.object({
6452
+ type: z229.literal("PropertyDefinitionDelete"),
6444
6453
  input: DTODeleteElementPropertyDefinitionInputV2
6445
6454
  });
6446
6455
 
6447
6456
  // src/api/dto/elements/properties/property-values.ts
6448
- import { z as z229 } from "zod";
6449
- var DTOElementPropertyValue = z229.object({
6450
- id: z229.string(),
6451
- designSystemVersionId: z229.string(),
6452
- definitionId: z229.string(),
6453
- targetElementId: z229.string(),
6454
- value: z229.union([z229.string(), z229.number(), z229.boolean()]).optional(),
6455
- valuePreview: z229.string().optional()
6457
+ import { z as z230 } from "zod";
6458
+ var DTOElementPropertyValue = z230.object({
6459
+ id: z230.string(),
6460
+ designSystemVersionId: z230.string(),
6461
+ definitionId: z230.string(),
6462
+ targetElementId: z230.string(),
6463
+ value: z230.union([z230.string(), z230.number(), z230.boolean()]).optional(),
6464
+ valuePreview: z230.string().optional()
6456
6465
  });
6457
- var DTOElementPropertyValuesGetResponse = z229.object({
6458
- values: z229.array(DTOElementPropertyValue)
6466
+ var DTOElementPropertyValuesGetResponse = z230.object({
6467
+ values: z230.array(DTOElementPropertyValue)
6459
6468
  });
6460
6469
 
6461
6470
  // src/api/dto/elements/elements-action-v2.ts
6462
- import { z as z230 } from "zod";
6463
- var DTOElementActionOutput = z230.discriminatedUnion("type", [
6471
+ import { z as z231 } from "zod";
6472
+ var DTOElementActionOutput = z231.discriminatedUnion("type", [
6464
6473
  // Documentation pages
6465
6474
  DTODocumentationPageCreateActionOutputV2,
6466
6475
  DTODocumentationPageUpdateActionOutputV2,
@@ -6487,7 +6496,7 @@ var DTOElementActionOutput = z230.discriminatedUnion("type", [
6487
6496
  // Approvals
6488
6497
  DTODocumentationPageApprovalStateChangeActionOutput
6489
6498
  ]);
6490
- var DTOElementActionInput = z230.discriminatedUnion("type", [
6499
+ var DTOElementActionInput = z231.discriminatedUnion("type", [
6491
6500
  // Documentation pages
6492
6501
  DTODocumentationPageCreateActionInputV2,
6493
6502
  DTODocumentationPageUpdateActionInputV2,
@@ -6516,60 +6525,60 @@ var DTOElementActionInput = z230.discriminatedUnion("type", [
6516
6525
  ]);
6517
6526
 
6518
6527
  // src/api/dto/elements/get-elements-v2.ts
6519
- import { z as z231 } from "zod";
6520
- var DTOElementsGetTypeFilter = z231.enum(["FigmaNode"]);
6521
- var DTOElementsGetQuerySchema = z231.object({
6522
- types: z231.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6528
+ import { z as z232 } from "zod";
6529
+ var DTOElementsGetTypeFilter = z232.enum(["FigmaNode"]);
6530
+ var DTOElementsGetQuerySchema = z232.object({
6531
+ types: z232.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6523
6532
  });
6524
- var DTOElementsGetOutput = z231.object({
6525
- figmaNodes: z231.array(DTOFigmaNode).optional()
6533
+ var DTOElementsGetOutput = z232.object({
6534
+ figmaNodes: z232.array(DTOFigmaNode).optional()
6526
6535
  });
6527
6536
 
6528
6537
  // src/api/dto/figma-components/assets/download.ts
6529
- import { z as z232 } from "zod";
6530
- var DTOAssetRenderConfiguration = z232.object({
6531
- prefix: z232.string().optional(),
6532
- suffix: z232.string().optional(),
6533
- scale: z232.enum(["x1", "x2", "x3", "x4"]),
6534
- format: z232.enum(["png", "pdf", "svg"])
6535
- });
6536
- var DTORenderedAssetFile = z232.object({
6537
- assetId: z232.string(),
6538
- fileName: z232.string(),
6539
- sourceUrl: z232.string(),
6538
+ import { z as z233 } from "zod";
6539
+ var DTOAssetRenderConfiguration = z233.object({
6540
+ prefix: z233.string().optional(),
6541
+ suffix: z233.string().optional(),
6542
+ scale: z233.enum(["x1", "x2", "x3", "x4"]),
6543
+ format: z233.enum(["png", "pdf", "svg"])
6544
+ });
6545
+ var DTORenderedAssetFile = z233.object({
6546
+ assetId: z233.string(),
6547
+ fileName: z233.string(),
6548
+ sourceUrl: z233.string(),
6540
6549
  settings: DTOAssetRenderConfiguration,
6541
- originalName: z232.string()
6550
+ originalName: z233.string()
6542
6551
  });
6543
- var DTODownloadAssetsRequest = z232.object({
6544
- persistentIds: z232.array(z232.string().uuid()).optional(),
6552
+ var DTODownloadAssetsRequest = z233.object({
6553
+ persistentIds: z233.array(z233.string().uuid()).optional(),
6545
6554
  settings: DTOAssetRenderConfiguration.array()
6546
6555
  });
6547
- var DTODownloadAssetsResponse = z232.object({
6556
+ var DTODownloadAssetsResponse = z233.object({
6548
6557
  items: DTORenderedAssetFile.array()
6549
6558
  });
6550
6559
 
6551
6560
  // src/api/dto/liveblocks/auth-response.ts
6552
- import { z as z233 } from "zod";
6553
- var DTOLiveblocksAuthResponse = z233.object({
6554
- token: z233.string()
6561
+ import { z as z234 } from "zod";
6562
+ var DTOLiveblocksAuthResponse = z234.object({
6563
+ token: z234.string()
6555
6564
  });
6556
6565
 
6557
6566
  // src/api/dto/users/authenticated-user.ts
6558
- import { z as z235 } from "zod";
6567
+ import { z as z236 } from "zod";
6559
6568
 
6560
6569
  // src/api/dto/users/user.ts
6561
- import { z as z234 } from "zod";
6562
- var DTOUserProfile = z234.object({
6563
- name: z234.string(),
6564
- nickname: z234.string().optional(),
6565
- avatar: z234.string().optional()
6566
- });
6567
- var DTOUser = z234.object({
6568
- id: z234.string(),
6569
- email: z234.string(),
6570
+ import { z as z235 } from "zod";
6571
+ var DTOUserProfile = z235.object({
6572
+ name: z235.string(),
6573
+ nickname: z235.string().optional(),
6574
+ avatar: z235.string().optional()
6575
+ });
6576
+ var DTOUser = z235.object({
6577
+ id: z235.string(),
6578
+ email: z235.string(),
6570
6579
  profile: DTOUserProfile
6571
6580
  });
6572
- var DTOUserGetResponse = z234.object({
6581
+ var DTOUserGetResponse = z235.object({
6573
6582
  user: DTOUser
6574
6583
  });
6575
6584
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -6578,39 +6587,39 @@ var DTOUserProfileUpdate = UserProfileUpdate;
6578
6587
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
6579
6588
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
6580
6589
  var DTOUserSource = UserSource;
6581
- var DTOUserOnboarding = z235.object({
6582
- companyName: z235.string().optional(),
6583
- numberOfPeopleInOrg: z235.string().optional(),
6584
- numberOfPeopleInDesignTeam: z235.string().optional(),
6590
+ var DTOUserOnboarding = z236.object({
6591
+ companyName: z236.string().optional(),
6592
+ numberOfPeopleInOrg: z236.string().optional(),
6593
+ numberOfPeopleInDesignTeam: z236.string().optional(),
6585
6594
  department: DTOUserOnboardingDepartment.optional(),
6586
- jobTitle: z235.string().optional(),
6587
- phase: z235.string().optional(),
6595
+ jobTitle: z236.string().optional(),
6596
+ phase: z236.string().optional(),
6588
6597
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6589
- designSystemName: z235.string().optional(),
6590
- defaultDestination: z235.string().optional(),
6591
- isPageDraftOnboardingFinished: z235.boolean().optional()
6598
+ designSystemName: z236.string().optional(),
6599
+ defaultDestination: z236.string().optional(),
6600
+ isPageDraftOnboardingFinished: z236.boolean().optional()
6592
6601
  });
6593
6602
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
6594
6603
  onboarding: DTOUserOnboarding.optional()
6595
6604
  });
6596
6605
  var DTOAuthenticatedUser = DTOUser.extend({
6597
6606
  profile: DTOAuthenticatedUserProfile,
6598
- createdAt: z235.coerce.date(),
6599
- loggedOutAt: z235.coerce.date().optional(),
6607
+ createdAt: z236.coerce.date(),
6608
+ loggedOutAt: z236.coerce.date().optional(),
6600
6609
  source: DTOUserSource.optional()
6601
6610
  });
6602
- var DTOAuthenticatedUserResponse = z235.object({
6611
+ var DTOAuthenticatedUserResponse = z236.object({
6603
6612
  user: DTOAuthenticatedUser
6604
6613
  });
6605
6614
 
6606
6615
  // src/api/dto/users/update.ts
6607
- import { z as z236 } from "zod";
6608
- var DTOUserProfileUpdateResponse = z236.object({
6616
+ import { z as z237 } from "zod";
6617
+ var DTOUserProfileUpdateResponse = z237.object({
6609
6618
  user: User
6610
6619
  });
6611
6620
 
6612
6621
  // src/api/endpoints/design-system/versions/brands.ts
6613
- import { z as z237 } from "zod";
6622
+ import { z as z238 } from "zod";
6614
6623
  var BrandsEndpoint = class {
6615
6624
  constructor(requestExecutor) {
6616
6625
  this.requestExecutor = requestExecutor;
@@ -6618,16 +6627,16 @@ var BrandsEndpoint = class {
6618
6627
  get(designSystemId, versionId, brandId) {
6619
6628
  return this.requestExecutor.json(
6620
6629
  `/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
6621
- z237.any()
6630
+ z238.any()
6622
6631
  );
6623
6632
  }
6624
6633
  list(designSystemId, versionId) {
6625
- return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z237.any());
6634
+ return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z238.any());
6626
6635
  }
6627
6636
  };
6628
6637
 
6629
6638
  // src/api/endpoints/design-system/versions/overrides.ts
6630
- import { z as z238 } from "zod";
6639
+ import { z as z239 } from "zod";
6631
6640
  var OverridesEndpoint = class {
6632
6641
  constructor(requestExecutor) {
6633
6642
  this.requestExecutor = requestExecutor;
@@ -6635,7 +6644,7 @@ var OverridesEndpoint = class {
6635
6644
  create(dsId, versionId, themeId, body) {
6636
6645
  return this.requestExecutor.json(
6637
6646
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
6638
- z238.any(),
6647
+ z239.any(),
6639
6648
  {
6640
6649
  method: "POST",
6641
6650
  body
@@ -6657,7 +6666,7 @@ var VersionStatsEndpoint = class {
6657
6666
  };
6658
6667
 
6659
6668
  // src/api/endpoints/design-system/versions/themes.ts
6660
- import { z as z239 } from "zod";
6669
+ import { z as z240 } from "zod";
6661
6670
  var ThemesEndpoint = class {
6662
6671
  constructor(requestExecutor) {
6663
6672
  this.requestExecutor = requestExecutor;
@@ -6665,26 +6674,26 @@ var ThemesEndpoint = class {
6665
6674
  this.overrides = new OverridesEndpoint(requestExecutor);
6666
6675
  }
6667
6676
  create(dsId, versionId, body) {
6668
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z239.any(), {
6677
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z240.any(), {
6669
6678
  method: "POST",
6670
6679
  body
6671
6680
  });
6672
6681
  }
6673
6682
  delete(dsId, versionId, themeId) {
6674
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z239.any(), {
6683
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z240.any(), {
6675
6684
  method: "DELETE"
6676
6685
  });
6677
6686
  }
6678
6687
  };
6679
6688
 
6680
6689
  // src/api/endpoints/design-system/versions/tokens.ts
6681
- import { z as z240 } from "zod";
6690
+ import { z as z241 } from "zod";
6682
6691
  var TokensEndpoint = class {
6683
6692
  constructor(requestExecutor) {
6684
6693
  this.requestExecutor = requestExecutor;
6685
6694
  }
6686
6695
  create(dsId, versionId, body) {
6687
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z240.any(), {
6696
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z241.any(), {
6688
6697
  method: "POST",
6689
6698
  body
6690
6699
  });
@@ -6728,7 +6737,7 @@ var DesignSystemVersionsEndpoint = class {
6728
6737
  };
6729
6738
 
6730
6739
  // src/api/endpoints/design-system/design-systems.ts
6731
- import { z as z241 } from "zod";
6740
+ import { z as z242 } from "zod";
6732
6741
  var DesignSystemsEndpoint = class {
6733
6742
  constructor(requestExecutor) {
6734
6743
  this.requestExecutor = requestExecutor;
@@ -6744,10 +6753,10 @@ var DesignSystemsEndpoint = class {
6744
6753
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
6745
6754
  }
6746
6755
  get(dsId) {
6747
- return this.requestExecutor.json(`/design-systems/${dsId}`, z241.any());
6756
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z242.any());
6748
6757
  }
6749
6758
  delete(dsId) {
6750
- return this.requestExecutor.json(`/design-systems/${dsId}`, z241.any(), { method: "DELETE" });
6759
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z242.any(), { method: "DELETE" });
6751
6760
  }
6752
6761
  update(dsId, body) {
6753
6762
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -6781,7 +6790,7 @@ var WorkspaceInvitationsEndpoint = class {
6781
6790
  };
6782
6791
 
6783
6792
  // src/api/endpoints/workspaces/workspace-members.ts
6784
- import { z as z242 } from "zod";
6793
+ import { z as z243 } from "zod";
6785
6794
  var WorkspaceMembersEndpoint = class {
6786
6795
  constructor(requestExecutor) {
6787
6796
  this.requestExecutor = requestExecutor;
@@ -6798,7 +6807,7 @@ var WorkspaceMembersEndpoint = class {
6798
6807
  });
6799
6808
  }
6800
6809
  invite(workspaceId, body) {
6801
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z242.any(), { method: "POST", body });
6810
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z243.any(), { method: "POST", body });
6802
6811
  }
6803
6812
  delete(workspaceId, userId) {
6804
6813
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -6808,7 +6817,7 @@ var WorkspaceMembersEndpoint = class {
6808
6817
  };
6809
6818
 
6810
6819
  // src/api/endpoints/workspaces/workspaces.ts
6811
- import { z as z243 } from "zod";
6820
+ import { z as z244 } from "zod";
6812
6821
  var WorkspacesEndpoint = class {
6813
6822
  constructor(requestExecutor) {
6814
6823
  this.requestExecutor = requestExecutor;
@@ -6828,10 +6837,10 @@ var WorkspacesEndpoint = class {
6828
6837
  });
6829
6838
  }
6830
6839
  delete(workspaceId) {
6831
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z243.any(), { method: "DELETE" });
6840
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z244.any(), { method: "DELETE" });
6832
6841
  }
6833
6842
  subscription(workspaceId) {
6834
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z243.any(), { method: "GET" });
6843
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z244.any(), { method: "GET" });
6835
6844
  }
6836
6845
  };
6837
6846
 
@@ -6925,9 +6934,9 @@ ${bodyText}`,
6925
6934
 
6926
6935
  // src/api/transport/request-executor.ts
6927
6936
  import fetch from "node-fetch";
6928
- import { z as z244 } from "zod";
6929
- var ResponseWrapper = z244.object({
6930
- result: z244.record(z244.any())
6937
+ import { z as z245 } from "zod";
6938
+ var ResponseWrapper = z245.object({
6939
+ result: z245.record(z245.any())
6931
6940
  });
6932
6941
  var RequestExecutor = class {
6933
6942
  constructor(testServerConfig) {
@@ -7053,7 +7062,7 @@ function generateHash(input, debug = false) {
7053
7062
  }
7054
7063
 
7055
7064
  // src/yjs/design-system-content/documentation-hierarchy.ts
7056
- import { z as z245 } from "zod";
7065
+ import { z as z246 } from "zod";
7057
7066
 
7058
7067
  // src/yjs/version-room/base.ts
7059
7068
  var VersionRoomBaseYDoc = class {
@@ -7583,24 +7592,24 @@ var FrontendVersionRoomYDoc = class {
7583
7592
  };
7584
7593
 
7585
7594
  // src/yjs/design-system-content/documentation-hierarchy.ts
7586
- var DocumentationHierarchySettings = z245.object({
7587
- routingVersion: z245.string(),
7588
- isDraftFeatureAdopted: z245.boolean(),
7589
- isApprovalFeatureEnabled: z245.boolean(),
7590
- approvalRequiredForPublishing: z245.boolean()
7595
+ var DocumentationHierarchySettings = z246.object({
7596
+ routingVersion: z246.string(),
7597
+ isDraftFeatureAdopted: z246.boolean(),
7598
+ isApprovalFeatureEnabled: z246.boolean(),
7599
+ approvalRequiredForPublishing: z246.boolean()
7591
7600
  });
7592
7601
  function yjsToDocumentationHierarchy(doc) {
7593
7602
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
7594
7603
  }
7595
7604
 
7596
7605
  // src/yjs/design-system-content/item-configuration.ts
7597
- import { z as z246 } from "zod";
7598
- var DTODocumentationPageRoomHeaderData = z246.object({
7599
- title: z246.string(),
7606
+ import { z as z247 } from "zod";
7607
+ var DTODocumentationPageRoomHeaderData = z247.object({
7608
+ title: z247.string(),
7600
7609
  configuration: DTODocumentationItemConfigurationV2
7601
7610
  });
7602
- var DTODocumentationPageRoomHeaderDataUpdate = z246.object({
7603
- title: z246.string().optional(),
7611
+ var DTODocumentationPageRoomHeaderDataUpdate = z247.object({
7612
+ title: z247.string().optional(),
7604
7613
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
7605
7614
  });
7606
7615
  function itemConfigurationToYjs(yDoc, item) {
@@ -7651,7 +7660,7 @@ function yjsToItemConfiguration(yDoc) {
7651
7660
  header: rawHeader
7652
7661
  };
7653
7662
  return {
7654
- title: z246.string().parse(title),
7663
+ title: z247.string().parse(title),
7655
7664
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7656
7665
  };
7657
7666
  }
@@ -7661,9 +7670,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7661
7670
  var PageSectionEditorModel = PageSectionEditorModelV2;
7662
7671
 
7663
7672
  // src/yjs/docs-editor/model/page.ts
7664
- import { z as z247 } from "zod";
7665
- var DocumentationPageEditorModel = z247.object({
7666
- blocks: z247.array(DocumentationPageContentItem)
7673
+ import { z as z248 } from "zod";
7674
+ var DocumentationPageEditorModel = z248.object({
7675
+ blocks: z248.array(DocumentationPageContentItem)
7667
7676
  });
7668
7677
 
7669
7678
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -11183,7 +11192,7 @@ var blocks = [
11183
11192
 
11184
11193
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
11185
11194
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
11186
- import { z as z248 } from "zod";
11195
+ import { z as z249 } from "zod";
11187
11196
  function yDocToPage(yDoc, definitions) {
11188
11197
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
11189
11198
  }
@@ -11263,7 +11272,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
11263
11272
  return null;
11264
11273
  return {
11265
11274
  id,
11266
- title: getProsemirrorAttribute(prosemirrorNode, "title", z248.string()) ?? "",
11275
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z249.string()) ?? "",
11267
11276
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
11268
11277
  };
11269
11278
  }
@@ -11298,7 +11307,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11298
11307
  });
11299
11308
  }
11300
11309
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11301
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z248.string());
11310
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z249.string());
11302
11311
  if (!definitionId) {
11303
11312
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11304
11313
  return [];
@@ -11340,7 +11349,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11340
11349
  if (!id)
11341
11350
  return null;
11342
11351
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11343
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z248.string().optional()));
11352
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z249.string().optional()));
11344
11353
  return {
11345
11354
  id,
11346
11355
  type: "Block",
@@ -11468,10 +11477,10 @@ function parseRichTextAttribute(mark) {
11468
11477
  return null;
11469
11478
  }
11470
11479
  function parseProsemirrorLink(mark) {
11471
- const href = getProsemirrorAttribute(mark, "href", z248.string().optional());
11480
+ const href = getProsemirrorAttribute(mark, "href", z249.string().optional());
11472
11481
  if (!href)
11473
11482
  return null;
11474
- const target = getProsemirrorAttribute(mark, "target", z248.string().optional());
11483
+ const target = getProsemirrorAttribute(mark, "target", z249.string().optional());
11475
11484
  const openInNewTab = target === "_blank";
11476
11485
  if (href.startsWith("@")) {
11477
11486
  return {
@@ -11490,10 +11499,10 @@ function parseProsemirrorLink(mark) {
11490
11499
  }
11491
11500
  }
11492
11501
  function parseProsemirrorCommentHighlight(mark) {
11493
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z248.string().optional());
11502
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z249.string().optional());
11494
11503
  if (!highlightId)
11495
11504
  return null;
11496
- const isResolved = getProsemirrorAttribute(mark, "resolved", z248.boolean().optional()) ?? false;
11505
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z249.boolean().optional()) ?? false;
11497
11506
  return {
11498
11507
  type: "Comment",
11499
11508
  commentHighlightId: highlightId,
@@ -11505,7 +11514,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11505
11514
  if (!id)
11506
11515
  return null;
11507
11516
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11508
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z248.boolean().optional()) !== false;
11517
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z249.boolean().optional()) !== false;
11509
11518
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11510
11519
  if (!tableChild) {
11511
11520
  return emptyTable(id, variantId, 0);
@@ -11552,9 +11561,9 @@ function parseAsTableCell(prosemirrorNode) {
11552
11561
  const id = getProsemirrorBlockId(prosemirrorNode);
11553
11562
  if (!id)
11554
11563
  return null;
11555
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z248.string().optional());
11564
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z249.string().optional());
11556
11565
  let columnWidth;
11557
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z248.array(z248.number()).nullish());
11566
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z249.array(z249.number()).nullish());
11558
11567
  if (columnWidthArray) {
11559
11568
  columnWidth = roundDimension(columnWidthArray[0]);
11560
11569
  }
@@ -11592,7 +11601,7 @@ function parseAsTableNode(prosemirrorNode) {
11592
11601
  value: parseRichText(prosemirrorNode.content ?? [])
11593
11602
  };
11594
11603
  case "image":
11595
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z248.string());
11604
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z249.string());
11596
11605
  if (!items)
11597
11606
  return null;
11598
11607
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11712,7 +11721,7 @@ function definitionExpectsPlaceholderItem(definition) {
11712
11721
  );
11713
11722
  }
11714
11723
  function parseBlockItems(prosemirrorNode, definition) {
11715
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z248.string());
11724
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z249.string());
11716
11725
  if (!itemsString)
11717
11726
  return null;
11718
11727
  const itemsJson = JSON.parse(itemsString);
@@ -11724,18 +11733,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11724
11733
  }
11725
11734
  function parseAppearance(prosemirrorNode) {
11726
11735
  let appearance = {};
11727
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z248.string().optional());
11736
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z249.string().optional());
11728
11737
  if (rawAppearanceString) {
11729
11738
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11730
11739
  if (parsedAppearance.success) {
11731
11740
  appearance = parsedAppearance.data;
11732
11741
  }
11733
11742
  }
11734
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z248.number().optional());
11743
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z249.number().optional());
11735
11744
  if (columns) {
11736
11745
  appearance.numberOfColumns = columns;
11737
11746
  }
11738
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z248.string().optional());
11747
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z249.string().optional());
11739
11748
  if (backgroundColor) {
11740
11749
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11741
11750
  if (parsedColor.success) {
@@ -11830,13 +11839,13 @@ function valueSchemaForPropertyType(type) {
11830
11839
  }
11831
11840
  }
11832
11841
  function getProsemirrorBlockId(prosemirrorNode) {
11833
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z248.string());
11842
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z249.string());
11834
11843
  if (!id)
11835
11844
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11836
11845
  return id;
11837
11846
  }
11838
11847
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11839
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z248.string()));
11848
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z249.string()));
11840
11849
  }
11841
11850
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11842
11851
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);