@supernova-studio/client 0.55.16 → 0.55.17

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 z143 } from "zod";
23
+ import { z as z126 } 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 z142 } from "zod";
28
- import { z as z141 } from "zod";
27
+ import { z as z125 } from "zod";
28
+ import { z as z124 } 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,28 +122,25 @@ 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 z132 } from "zod";
125
+ import { z as z115 } 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 z115 } from "zod";
130
- import { z as z118 } from "zod";
131
- import IPCIDR from "ip-cidr";
132
129
  import { z as z117 } from "zod";
130
+ import { z as z118 } from "zod";
133
131
  import { z as z119 } from "zod";
134
132
  import { z as z120 } from "zod";
135
133
  import { z as z121 } from "zod";
136
- import { z as z130 } from "zod";
137
134
  import { z as z122 } from "zod";
138
135
  import { z as z123 } from "zod";
139
- import { z as z124 } from "zod";
140
- import { z as z125 } from "zod";
141
- import { z as z126 } from "zod";
136
+ import { z as z133 } from "zod";
137
+ import { z as z132 } from "zod";
142
138
  import { z as z127 } from "zod";
143
139
  import { z as z128 } from "zod";
144
140
  import { z as z129 } from "zod";
141
+ import { z as z130 } from "zod";
145
142
  import { z as z131 } from "zod";
146
- import { z as z133 } from "zod";
143
+ import { z as z147 } from "zod";
147
144
  import { z as z134 } from "zod";
148
145
  import { z as z135 } from "zod";
149
146
  import { z as z136 } from "zod";
@@ -151,18 +148,21 @@ import { z as z137 } from "zod";
151
148
  import { z as z138 } from "zod";
152
149
  import { z as z139 } from "zod";
153
150
  import { z as z140 } from "zod";
154
- import { z as z150 } from "zod";
155
- import { z as z149 } from "zod";
156
- import { z as z144 } from "zod";
157
- import { z as z145 } from "zod";
151
+ import { z as z141 } from "zod";
158
152
  import { z as z146 } from "zod";
159
- import { z as z147 } from "zod";
153
+ import { z as z142 } from "zod";
154
+ import IPCIDR from "ip-cidr";
155
+ import { z as z145 } from "zod";
156
+ import { z as z143 } from "zod";
157
+ import { z as z144 } from "zod";
160
158
  import { z as z148 } from "zod";
161
- import { z as z153 } from "zod";
162
- import { z as z152 } from "zod";
159
+ import { z as z155 } from "zod";
160
+ import { z as z149 } from "zod";
161
+ import { z as z150 } from "zod";
163
162
  import { z as z151 } from "zod";
163
+ import { z as z152 } from "zod";
164
+ import { z as z153 } from "zod";
164
165
  import { z as z154 } from "zod";
165
- import { z as z155 } from "zod";
166
166
  import { z as z156 } from "zod";
167
167
  import { z as z159 } from "zod";
168
168
  import { z as z157 } from "zod";
@@ -3573,488 +3573,288 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
3573
3573
  function pickLatestGroupSnapshots(snapshots) {
3574
3574
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
3575
3575
  }
3576
- var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
3577
- var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3578
- var NpmRegistryBasicAuthConfig = z113.object({
3579
- authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
3580
- username: z113.string(),
3581
- password: z113.string()
3582
- });
3583
- var NpmRegistryBearerAuthConfig = z113.object({
3584
- authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
3585
- accessToken: z113.string()
3586
- });
3587
- var NpmRegistryNoAuthConfig = z113.object({
3588
- authType: z113.literal(NpmRegistryAuthType.Enum.None)
3589
- });
3590
- var NpmRegistrCustomAuthConfig = z113.object({
3591
- authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
3592
- authHeaderName: z113.string(),
3593
- authHeaderValue: z113.string()
3594
- });
3595
- var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
3596
- NpmRegistryBasicAuthConfig,
3597
- NpmRegistryBearerAuthConfig,
3598
- NpmRegistryNoAuthConfig,
3599
- NpmRegistrCustomAuthConfig
3600
- ]);
3601
- var NpmRegistryConfigBase = z113.object({
3602
- registryType: NpmRegistryType,
3603
- enabledScopes: z113.array(z113.string()),
3604
- customRegistryUrl: z113.string().optional(),
3605
- bypassProxy: z113.boolean().default(false),
3606
- npmProxyRegistryConfigId: z113.string().optional(),
3607
- npmProxyVersion: z113.number().optional()
3608
- });
3609
- var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
3610
- var SsoProvider = z114.object({
3611
- providerId: z114.string(),
3612
- defaultAutoInviteValue: z114.boolean(),
3613
- autoInviteDomains: z114.record(z114.string(), z114.boolean()),
3614
- skipDocsSupernovaLogin: z114.boolean(),
3615
- areInvitesDisabled: z114.boolean(),
3616
- isTestMode: z114.boolean(),
3617
- emailDomains: z114.array(z114.string()),
3618
- metadataXml: z114.string().nullish()
3619
- });
3620
- var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
3576
+ var WorkspaceRoleSchema = z113.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
3621
3577
  var WorkspaceRole = WorkspaceRoleSchema.enum;
3622
- var MAX_MEMBERS_COUNT = 100;
3623
- var UserInvite = z116.object({
3624
- email: z116.string().email().trim().transform((value) => value.toLowerCase()),
3625
- role: WorkspaceRoleSchema
3626
- });
3627
- var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
3628
- var isValidCIDR = (value) => {
3629
- return IPCIDR.isValidAddress(value);
3630
- };
3631
- var WorkspaceIpWhitelistEntry = z117.object({
3632
- isEnabled: z117.boolean(),
3633
- name: z117.string(),
3634
- range: z117.string().refine(isValidCIDR, {
3635
- message: "Invalid IP CIDR"
3636
- })
3637
- });
3638
- var WorkspaceIpSettings = z117.object({
3639
- isEnabledForCloud: z117.boolean(),
3640
- isEnabledForDocs: z117.boolean(),
3641
- entries: z117.array(WorkspaceIpWhitelistEntry)
3642
- });
3643
- var WorkspaceProfile = z117.object({
3644
- name: z117.string(),
3645
- handle: z117.string(),
3646
- color: z117.string(),
3647
- avatar: nullishToOptional(z117.string()),
3648
- billingDetails: nullishToOptional(BillingDetails)
3649
- });
3650
- var WorkspaceProfileUpdate = WorkspaceProfile.omit({
3651
- avatar: true
3652
- });
3653
- var Workspace = z117.object({
3654
- id: z117.string(),
3655
- profile: WorkspaceProfile,
3656
- subscription: Subscription,
3657
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3658
- sso: nullishToOptional(SsoProvider),
3659
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
3660
- });
3661
- var WorkspaceWithDesignSystems = z117.object({
3662
- workspace: Workspace,
3663
- designSystems: z117.array(DesignSystem)
3664
- });
3665
- var WorkspaceConfigurationUpdate = z118.object({
3666
- id: z118.string(),
3667
- ipWhitelist: WorkspaceIpSettings.optional(),
3668
- sso: SsoProvider.optional(),
3669
- npmRegistrySettings: NpmRegistryConfig.optional(),
3670
- profile: WorkspaceProfileUpdate.optional()
3671
- });
3672
- var WorkspaceContext = z119.object({
3673
- workspaceId: z119.string(),
3674
- product: ProductCodeSchema,
3675
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3676
- publicDesignSystem: z119.boolean().optional()
3677
- });
3678
- var WORKSPACE_NAME_MIN_LENGTH = 2;
3679
- var WORKSPACE_NAME_MAX_LENGTH = 64;
3680
- var HANDLE_MIN_LENGTH = 2;
3681
- var HANDLE_MAX_LENGTH = 64;
3682
- var CreateWorkspaceInput = z120.object({
3683
- name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
3684
- handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
3685
- });
3686
- var WorkspaceInvitation = z121.object({
3687
- id: z121.string(),
3688
- email: z121.string().email(),
3689
- createdAt: z121.coerce.date(),
3690
- resentAt: z121.coerce.date().nullish(),
3691
- role: z121.nativeEnum(WorkspaceRole),
3692
- workspaceId: z121.string(),
3693
- invitedBy: z121.string()
3694
- });
3695
- var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
3696
- var ExternalServiceType = z122.union([
3697
- z122.literal("figma"),
3698
- z122.literal("github"),
3699
- z122.literal("azure"),
3700
- z122.literal("gitlab"),
3701
- z122.literal("bitbucket")
3578
+ var DesignSystemInvitation = z114.object({
3579
+ id: z114.string(),
3580
+ designSystemId: z114.string(),
3581
+ workspaceInvitationId: z114.string()
3582
+ });
3583
+ var DesignSystemRole = z115.enum([
3584
+ WorkspaceRole.Admin,
3585
+ WorkspaceRole.Contributor,
3586
+ WorkspaceRole.Creator,
3587
+ WorkspaceRole.Viewer
3702
3588
  ]);
3703
- var IntegrationUserInfo = z122.object({
3704
- id: z122.string(),
3705
- handle: z122.string().optional(),
3706
- avatarUrl: z122.string().optional(),
3707
- email: z122.string().optional(),
3708
- authType: IntegrationAuthType.optional(),
3709
- customUrl: z122.string().optional()
3710
- });
3711
- var UserLinkedIntegrations = z122.object({
3712
- figma: IntegrationUserInfo.optional(),
3713
- github: IntegrationUserInfo.array().optional(),
3714
- azure: IntegrationUserInfo.array().optional(),
3715
- gitlab: IntegrationUserInfo.array().optional(),
3716
- bitbucket: IntegrationUserInfo.array().optional()
3717
- });
3718
- var UserAnalyticsCleanupSchedule = z123.object({
3719
- userId: z123.string(),
3720
- createdAt: z123.coerce.date(),
3721
- deleteAt: z123.coerce.date()
3722
- });
3723
- var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3724
- createdAt: true
3725
- });
3726
- var UserIdentity = z124.object({
3727
- id: z124.string(),
3728
- userId: z124.string()
3729
- });
3730
- var UserMinified = z125.object({
3731
- id: z125.string(),
3732
- name: z125.string(),
3733
- email: z125.string(),
3734
- avatar: z125.string().optional()
3735
- });
3736
- var LiveblocksNotificationSettings = z126.object({
3737
- sendCommentNotificationEmails: z126.boolean()
3738
- });
3739
- var UserNotificationSettings = z126.object({
3740
- liveblocksNotificationSettings: LiveblocksNotificationSettings
3741
- });
3742
- var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3743
- var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3744
- var UserOnboarding = z127.object({
3745
- companyName: z127.string().optional(),
3746
- numberOfPeopleInOrg: z127.string().optional(),
3747
- numberOfPeopleInDesignTeam: z127.string().optional(),
3748
- department: UserOnboardingDepartment.optional(),
3749
- jobTitle: z127.string().optional(),
3750
- phase: z127.string().optional(),
3751
- jobLevel: UserOnboardingJobLevel.optional(),
3752
- designSystemName: z127.string().optional(),
3753
- defaultDestination: z127.string().optional(),
3754
- figmaUrl: z127.string().optional(),
3755
- isPageDraftOnboardingFinished: z127.boolean().optional(),
3756
- isApprovalsOnboardingFinished: z127.boolean().optional()
3757
- });
3758
- var UserProfile = z127.object({
3759
- name: z127.string(),
3760
- avatar: z127.string().optional(),
3761
- nickname: z127.string().optional(),
3762
- onboarding: UserOnboarding.optional()
3763
- });
3764
- var UserProfileUpdate = UserProfile.partial().omit({
3765
- avatar: true
3766
- });
3767
- var UserTest = z128.object({
3768
- id: z128.string(),
3769
- email: z128.string()
3770
- });
3771
- var UserSource = z129.enum(["SignUp", "Invite", "SSO"]);
3772
- var User = z129.object({
3773
- id: z129.string(),
3774
- email: z129.string(),
3775
- emailVerified: z129.boolean(),
3776
- createdAt: z129.coerce.date(),
3777
- trialExpiresAt: z129.coerce.date().optional(),
3778
- profile: UserProfile,
3779
- linkedIntegrations: UserLinkedIntegrations.optional(),
3780
- loggedOutAt: z129.coerce.date().optional(),
3781
- isProtected: z129.boolean(),
3782
- source: UserSource.optional()
3783
- });
3784
- var WorkspaceMembership = z130.object({
3785
- id: z130.string(),
3786
- userId: z130.string(),
3787
- workspaceId: z130.string(),
3788
- workspaceRole: z130.nativeEnum(WorkspaceRole),
3789
- notificationSettings: UserNotificationSettings
3790
- });
3791
- var UpdateMembershipRolesInput = z130.object({
3792
- members: z130.array(
3793
- z130.object({
3794
- userId: z130.string(),
3795
- role: z130.nativeEnum(WorkspaceRole)
3796
- })
3797
- )
3798
- });
3799
- var DesignSystemInvitation = z131.object({
3800
- id: z131.string(),
3801
- designSystemId: z131.string(),
3802
- workspaceInvitationId: z131.string()
3589
+ var DesignSystemMembership = z115.object({
3590
+ id: z115.string(),
3591
+ userId: z115.string(),
3592
+ designSystemId: z115.string(),
3593
+ workspaceMembershipId: z115.string()
3803
3594
  });
3804
- var DesignSystemMembership = z132.object({
3805
- id: z132.string(),
3806
- userId: z132.string(),
3807
- designSystemId: z132.string(),
3808
- workspaceMembershipId: z132.string()
3809
- });
3810
- var DesignSystemMembers = z132.object({
3595
+ var DesignSystemMembers = z115.object({
3811
3596
  members: DesignSystemMembership.array(),
3812
3597
  invitations: DesignSystemInvitation.array()
3813
3598
  });
3814
- var DesignSystemPendingMemberInvitation = z132.object({
3815
- inviteId: z132.string()
3599
+ var DesignSystemPendingMemberInvitation = z115.object({
3600
+ inviteId: z115.string(),
3601
+ /**
3602
+ * Role that the user will have in the design system, undefined
3603
+ * if it should be inherited from the workspace
3604
+ */
3605
+ designSystemRole: DesignSystemRole.optional()
3816
3606
  });
3817
- var DesignSystemUserInvitation = z132.object({
3818
- userId: z132.string()
3607
+ var DesignSystemUserInvitation = z115.object({
3608
+ userId: z115.string(),
3609
+ /**
3610
+ * Role that the user will have in the design system, undefined
3611
+ * if it should be inherited from the workspace
3612
+ */
3613
+ designSystemRole: DesignSystemRole.optional()
3819
3614
  });
3820
- var DesignSystemInvite = z132.object({
3821
- email: z132.string(),
3822
- workspaceRole: WorkspaceRoleSchema
3615
+ var DesignSystemInvite = z115.object({
3616
+ email: z115.string(),
3617
+ workspaceRole: WorkspaceRoleSchema,
3618
+ /**
3619
+ * Role that the user will have in the design system, undefined
3620
+ * if it should be inherited from the workspace
3621
+ */
3622
+ designSystemRole: DesignSystemRole.optional()
3823
3623
  });
3824
- var DesignSystemMembershipUpdates = z132.object({
3624
+ var DesignSystemMembershipUpdates = z115.object({
3825
3625
  usersToInvite: DesignSystemUserInvitation.array().optional(),
3826
3626
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
3827
3627
  emailsToInvite: DesignSystemInvite.array().optional(),
3828
- removeUserIds: z132.string().array().optional(),
3829
- deleteInvitationIds: z132.string().array().optional()
3830
- });
3831
- var ElementViewBaseColumnType = z133.enum(["Name", "Description", "Value", "UpdatedAt"]);
3832
- var ElementViewColumnType = z133.union([
3833
- z133.literal("BaseProperty"),
3834
- z133.literal("PropertyDefinition"),
3835
- z133.literal("Theme")
3628
+ removeUserIds: z115.string().array().optional(),
3629
+ deleteInvitationIds: z115.string().array().optional()
3630
+ });
3631
+ var ElementViewBaseColumnType = z116.enum(["Name", "Description", "Value", "UpdatedAt"]);
3632
+ var ElementViewColumnType = z116.union([
3633
+ z116.literal("BaseProperty"),
3634
+ z116.literal("PropertyDefinition"),
3635
+ z116.literal("Theme")
3836
3636
  ]);
3837
- var ElementViewColumnSharedAttributes = z133.object({
3838
- id: z133.string(),
3839
- persistentId: z133.string(),
3840
- elementDataViewId: z133.string(),
3841
- sortPosition: z133.number(),
3842
- width: z133.number()
3637
+ var ElementViewColumnSharedAttributes = z116.object({
3638
+ id: z116.string(),
3639
+ persistentId: z116.string(),
3640
+ elementDataViewId: z116.string(),
3641
+ sortPosition: z116.number(),
3642
+ width: z116.number()
3843
3643
  });
3844
3644
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
3845
- type: z133.literal("BaseProperty"),
3645
+ type: z116.literal("BaseProperty"),
3846
3646
  basePropertyType: ElementViewBaseColumnType
3847
3647
  });
3848
3648
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3849
- type: z133.literal("PropertyDefinition"),
3850
- propertyDefinitionId: z133.string()
3649
+ type: z116.literal("PropertyDefinition"),
3650
+ propertyDefinitionId: z116.string()
3851
3651
  });
3852
3652
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3853
- type: z133.literal("Theme"),
3854
- themeId: z133.string()
3653
+ type: z116.literal("Theme"),
3654
+ themeId: z116.string()
3855
3655
  });
3856
- var ElementViewColumn = z133.discriminatedUnion("type", [
3656
+ var ElementViewColumn = z116.discriminatedUnion("type", [
3857
3657
  ElementViewBasePropertyColumn,
3858
3658
  ElementViewPropertyDefinitionColumn,
3859
3659
  ElementViewThemeColumn
3860
3660
  ]);
3861
- var ElementView = z134.object({
3862
- id: z134.string(),
3863
- persistentId: z134.string(),
3864
- designSystemVersionId: z134.string(),
3865
- name: z134.string(),
3866
- description: z134.string(),
3661
+ var ElementView = z117.object({
3662
+ id: z117.string(),
3663
+ persistentId: z117.string(),
3664
+ designSystemVersionId: z117.string(),
3665
+ name: z117.string(),
3666
+ description: z117.string(),
3867
3667
  targetElementType: ElementPropertyTargetType,
3868
- isDefault: z134.boolean()
3869
- });
3870
- var Brand = z135.object({
3871
- id: z135.string(),
3872
- designSystemVersionId: z135.string(),
3873
- persistentId: z135.string(),
3874
- name: z135.string(),
3875
- description: z135.string()
3876
- });
3877
- var DesignSystemAccessMode = z136.enum(["Open", "InviteOnly"]);
3878
- var DesignSystemSwitcher = z136.object({
3879
- isEnabled: z136.boolean(),
3880
- designSystemIds: z136.array(z136.string())
3668
+ isDefault: z117.boolean()
3881
3669
  });
3882
- var DesignSystem = z136.object({
3883
- id: z136.string(),
3884
- workspaceId: z136.string(),
3885
- name: z136.string(),
3886
- description: z136.string(),
3887
- docExporterId: nullishToOptional(z136.string()),
3888
- docSlug: z136.string(),
3889
- docUserSlug: nullishToOptional(z136.string()),
3890
- docSlugDeprecated: z136.string(),
3891
- isPublic: z136.boolean(),
3892
- isMultibrand: z136.boolean(),
3893
- docViewUrl: nullishToOptional(z136.string()),
3894
- basePrefixes: z136.array(z136.string()),
3670
+ var Brand = z118.object({
3671
+ id: z118.string(),
3672
+ designSystemVersionId: z118.string(),
3673
+ persistentId: z118.string(),
3674
+ name: z118.string(),
3675
+ description: z118.string()
3676
+ });
3677
+ var DesignSystemAccessMode = z119.enum(["Open", "InviteOnly"]);
3678
+ var DesignSystemSwitcher = z119.object({
3679
+ isEnabled: z119.boolean(),
3680
+ designSystemIds: z119.array(z119.string())
3681
+ });
3682
+ var DesignSystem = z119.object({
3683
+ id: z119.string(),
3684
+ workspaceId: z119.string(),
3685
+ name: z119.string(),
3686
+ description: z119.string(),
3687
+ docExporterId: nullishToOptional(z119.string()),
3688
+ docSlug: z119.string(),
3689
+ docUserSlug: nullishToOptional(z119.string()),
3690
+ docSlugDeprecated: z119.string(),
3691
+ isPublic: z119.boolean(),
3692
+ isMultibrand: z119.boolean(),
3693
+ docViewUrl: nullishToOptional(z119.string()),
3694
+ basePrefixes: z119.array(z119.string()),
3895
3695
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3896
- isApprovalFeatureEnabled: z136.boolean(),
3897
- approvalRequiredForPublishing: z136.boolean(),
3696
+ isApprovalFeatureEnabled: z119.boolean(),
3697
+ approvalRequiredForPublishing: z119.boolean(),
3898
3698
  accessMode: DesignSystemAccessMode,
3899
- membersGenerated: z136.boolean(),
3900
- createdAt: z136.coerce.date(),
3901
- updatedAt: z136.coerce.date()
3699
+ membersGenerated: z119.boolean(),
3700
+ createdAt: z119.coerce.date(),
3701
+ updatedAt: z119.coerce.date()
3902
3702
  });
3903
- var ExporterPropertyImageValue = z137.object({
3703
+ var ExporterPropertyImageValue = z120.object({
3904
3704
  asset: PageBlockAsset.optional(),
3905
- assetId: z137.string().optional(),
3906
- assetUrl: z137.string().optional()
3907
- });
3908
- var ExporterPropertyValue = z137.object({
3909
- key: z137.string(),
3910
- value: z137.union([
3911
- z137.number(),
3912
- z137.string(),
3913
- z137.boolean(),
3705
+ assetId: z120.string().optional(),
3706
+ assetUrl: z120.string().optional()
3707
+ });
3708
+ var ExporterPropertyValue = z120.object({
3709
+ key: z120.string(),
3710
+ value: z120.union([
3711
+ z120.number(),
3712
+ z120.string(),
3713
+ z120.boolean(),
3914
3714
  ExporterPropertyImageValue,
3915
3715
  ColorTokenData,
3916
3716
  TypographyTokenData
3917
3717
  ])
3918
3718
  });
3919
- var ExporterPropertyValuesCollection = z137.object({
3920
- id: z137.string(),
3921
- designSystemId: z137.string(),
3922
- exporterId: z137.string(),
3923
- values: z137.array(ExporterPropertyValue)
3924
- });
3925
- var PublishedDocPage = z138.object({
3926
- id: z138.string(),
3927
- publishedDocId: z138.string(),
3928
- pageShortPersistentId: z138.string(),
3929
- pathV1: z138.string(),
3930
- pathV2: z138.string(),
3931
- storagePath: z138.string(),
3932
- locale: z138.string().optional(),
3933
- isPrivate: z138.boolean(),
3934
- isHidden: z138.boolean(),
3935
- createdAt: z138.coerce.date(),
3936
- updatedAt: z138.coerce.date()
3719
+ var ExporterPropertyValuesCollection = z120.object({
3720
+ id: z120.string(),
3721
+ designSystemId: z120.string(),
3722
+ exporterId: z120.string(),
3723
+ values: z120.array(ExporterPropertyValue)
3724
+ });
3725
+ var PublishedDocPage = z121.object({
3726
+ id: z121.string(),
3727
+ publishedDocId: z121.string(),
3728
+ pageShortPersistentId: z121.string(),
3729
+ pathV1: z121.string(),
3730
+ pathV2: z121.string(),
3731
+ storagePath: z121.string(),
3732
+ locale: z121.string().optional(),
3733
+ isPrivate: z121.boolean(),
3734
+ isHidden: z121.boolean(),
3735
+ createdAt: z121.coerce.date(),
3736
+ updatedAt: z121.coerce.date()
3937
3737
  });
3938
3738
  var publishedDocEnvironments = ["Live", "Preview"];
3939
- var PublishedDocEnvironment = z139.enum(publishedDocEnvironments);
3940
- var PublishedDocsChecksums = z139.record(z139.string());
3941
- var PublishedDocRoutingVersion = z139.enum(["1", "2"]);
3942
- var PublishedDoc = z139.object({
3943
- id: z139.string(),
3944
- designSystemVersionId: z139.string(),
3945
- createdAt: z139.coerce.date(),
3946
- updatedAt: z139.coerce.date(),
3947
- lastPublishedAt: z139.coerce.date(),
3948
- isDefault: z139.boolean(),
3949
- isPublic: z139.boolean(),
3739
+ var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
3740
+ var PublishedDocsChecksums = z122.record(z122.string());
3741
+ var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
3742
+ var PublishedDoc = z122.object({
3743
+ id: z122.string(),
3744
+ designSystemVersionId: z122.string(),
3745
+ createdAt: z122.coerce.date(),
3746
+ updatedAt: z122.coerce.date(),
3747
+ lastPublishedAt: z122.coerce.date(),
3748
+ isDefault: z122.boolean(),
3749
+ isPublic: z122.boolean(),
3950
3750
  environment: PublishedDocEnvironment,
3951
3751
  checksums: PublishedDocsChecksums,
3952
- storagePath: z139.string(),
3953
- wasMigrated: z139.boolean(),
3752
+ storagePath: z122.string(),
3753
+ wasMigrated: z122.boolean(),
3954
3754
  routingVersion: PublishedDocRoutingVersion,
3955
- usesLocalizations: z139.boolean(),
3956
- wasPublishedWithLocalizations: z139.boolean(),
3957
- tokenCount: z139.number(),
3958
- assetCount: z139.number()
3959
- });
3960
- var DesignSystemVersion = z140.object({
3961
- id: z140.string(),
3962
- version: z140.string(),
3963
- createdAt: z140.coerce.date(),
3964
- designSystemId: z140.string(),
3965
- name: z140.string(),
3966
- comment: z140.string(),
3967
- isReadonly: z140.boolean(),
3968
- changeLog: z140.string(),
3969
- parentId: z140.string().optional(),
3970
- isDraftsFeatureAdopted: z140.boolean()
3971
- });
3972
- var VersionCreationJobStatus = z140.enum(["Success", "InProgress", "Error"]);
3973
- var VersionCreationJob = z140.object({
3974
- id: z140.string(),
3975
- version: z140.string(),
3976
- designSystemId: z140.string(),
3977
- designSystemVersionId: nullishToOptional(z140.string()),
3755
+ usesLocalizations: z122.boolean(),
3756
+ wasPublishedWithLocalizations: z122.boolean(),
3757
+ tokenCount: z122.number(),
3758
+ assetCount: z122.number()
3759
+ });
3760
+ var DesignSystemVersion = z123.object({
3761
+ id: z123.string(),
3762
+ version: z123.string(),
3763
+ createdAt: z123.coerce.date(),
3764
+ designSystemId: z123.string(),
3765
+ name: z123.string(),
3766
+ comment: z123.string(),
3767
+ isReadonly: z123.boolean(),
3768
+ changeLog: z123.string(),
3769
+ parentId: z123.string().optional(),
3770
+ isDraftsFeatureAdopted: z123.boolean()
3771
+ });
3772
+ var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
3773
+ var VersionCreationJob = z123.object({
3774
+ id: z123.string(),
3775
+ version: z123.string(),
3776
+ designSystemId: z123.string(),
3777
+ designSystemVersionId: nullishToOptional(z123.string()),
3978
3778
  status: VersionCreationJobStatus,
3979
- errorMessage: nullishToOptional(z140.string())
3779
+ errorMessage: nullishToOptional(z123.string())
3980
3780
  });
3981
3781
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3982
3782
  var BITBUCKET_MAX_LENGTH = 64;
3983
- var ExportJobDocumentationChanges = z141.object({
3984
- pagePersistentIds: z141.string().array(),
3985
- groupPersistentIds: z141.string().array()
3783
+ var ExportJobDocumentationChanges = z124.object({
3784
+ pagePersistentIds: z124.string().array(),
3785
+ groupPersistentIds: z124.string().array()
3986
3786
  });
3987
- var ExporterDestinationDocs = z141.object({
3787
+ var ExporterDestinationDocs = z124.object({
3988
3788
  environment: PublishedDocEnvironment,
3989
3789
  changes: nullishToOptional(ExportJobDocumentationChanges)
3990
3790
  });
3991
- var ExporterDestinationS3 = z141.object({});
3992
- var ExporterDestinationGithub = z141.object({
3993
- credentialId: z141.string().optional(),
3791
+ var ExporterDestinationS3 = z124.object({});
3792
+ var ExporterDestinationGithub = z124.object({
3793
+ credentialId: z124.string().optional(),
3994
3794
  // Repository
3995
- url: z141.string(),
3795
+ url: z124.string(),
3996
3796
  // Location
3997
- branch: z141.string(),
3998
- relativePath: nullishToOptional(z141.string()),
3797
+ branch: z124.string(),
3798
+ relativePath: nullishToOptional(z124.string()),
3999
3799
  // Commit metadata
4000
- commitAuthorName: nullishToOptional(z141.string()),
4001
- commitAuthorEmail: nullishToOptional(z141.string()),
3800
+ commitAuthorName: nullishToOptional(z124.string()),
3801
+ commitAuthorEmail: nullishToOptional(z124.string()),
4002
3802
  // Legacy deprecated fields. Use `credentialId` instead
4003
- connectionId: nullishToOptional(z141.string()),
4004
- userId: nullishToOptional(z141.number())
3803
+ connectionId: nullishToOptional(z124.string()),
3804
+ userId: nullishToOptional(z124.number())
4005
3805
  });
4006
- var ExporterDestinationAzure = z141.object({
4007
- credentialId: z141.string().optional(),
3806
+ var ExporterDestinationAzure = z124.object({
3807
+ credentialId: z124.string().optional(),
4008
3808
  // Repository
4009
- organizationId: z141.string(),
4010
- projectId: z141.string(),
4011
- repositoryId: z141.string(),
3809
+ organizationId: z124.string(),
3810
+ projectId: z124.string(),
3811
+ repositoryId: z124.string(),
4012
3812
  // Commit metadata
4013
- commitAuthorName: nullishToOptional(z141.string()),
4014
- commitAuthorEmail: nullishToOptional(z141.string()),
3813
+ commitAuthorName: nullishToOptional(z124.string()),
3814
+ commitAuthorEmail: nullishToOptional(z124.string()),
4015
3815
  // Location
4016
- branch: z141.string(),
4017
- relativePath: nullishToOptional(z141.string()),
3816
+ branch: z124.string(),
3817
+ relativePath: nullishToOptional(z124.string()),
4018
3818
  // Maybe not needed
4019
- url: nullishToOptional(z141.string()),
3819
+ url: nullishToOptional(z124.string()),
4020
3820
  // Legacy deprecated fields. Use `credentialId` instead
4021
- connectionId: nullishToOptional(z141.string()),
4022
- userId: nullishToOptional(z141.number())
3821
+ connectionId: nullishToOptional(z124.string()),
3822
+ userId: nullishToOptional(z124.number())
4023
3823
  });
4024
- var ExporterDestinationGitlab = z141.object({
4025
- credentialId: z141.string().optional(),
3824
+ var ExporterDestinationGitlab = z124.object({
3825
+ credentialId: z124.string().optional(),
4026
3826
  // Repository
4027
- projectId: z141.string(),
3827
+ projectId: z124.string(),
4028
3828
  // Commit metadata
4029
- commitAuthorName: nullishToOptional(z141.string()),
4030
- commitAuthorEmail: nullishToOptional(z141.string()),
3829
+ commitAuthorName: nullishToOptional(z124.string()),
3830
+ commitAuthorEmail: nullishToOptional(z124.string()),
4031
3831
  // Location
4032
- branch: z141.string(),
4033
- relativePath: nullishToOptional(z141.string()),
3832
+ branch: z124.string(),
3833
+ relativePath: nullishToOptional(z124.string()),
4034
3834
  // Maybe not needed
4035
- url: nullishToOptional(z141.string()),
3835
+ url: nullishToOptional(z124.string()),
4036
3836
  // Legacy deprecated fields. Use `credentialId` instead
4037
- connectionId: nullishToOptional(z141.string()),
4038
- userId: nullishToOptional(z141.number())
3837
+ connectionId: nullishToOptional(z124.string()),
3838
+ userId: nullishToOptional(z124.number())
4039
3839
  });
4040
- var ExporterDestinationBitbucket = z141.object({
4041
- credentialId: z141.string().optional(),
3840
+ var ExporterDestinationBitbucket = z124.object({
3841
+ credentialId: z124.string().optional(),
4042
3842
  // Repository
4043
- workspaceSlug: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4044
- projectKey: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4045
- repoSlug: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3843
+ workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3844
+ projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3845
+ repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4046
3846
  // Commit metadata
4047
- commitAuthorName: nullishToOptional(z141.string()),
4048
- commitAuthorEmail: nullishToOptional(z141.string()),
3847
+ commitAuthorName: nullishToOptional(z124.string()),
3848
+ commitAuthorEmail: nullishToOptional(z124.string()),
4049
3849
  // Location
4050
- branch: z141.string(),
4051
- relativePath: nullishToOptional(z141.string()),
3850
+ branch: z124.string(),
3851
+ relativePath: nullishToOptional(z124.string()),
4052
3852
  // Legacy deprecated fields. Use `credentialId` instead
4053
- connectionId: nullishToOptional(z141.string()),
4054
- userId: nullishToOptional(z141.number())
3853
+ connectionId: nullishToOptional(z124.string()),
3854
+ userId: nullishToOptional(z124.number())
4055
3855
  });
4056
- var ExportDestinationsMap = z141.object({
4057
- webhookUrl: z141.string().optional(),
3856
+ var ExportDestinationsMap = z124.object({
3857
+ webhookUrl: z124.string().optional(),
4058
3858
  destinationSnDocs: ExporterDestinationDocs.optional(),
4059
3859
  destinationS3: ExporterDestinationS3.optional(),
4060
3860
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4062,93 +3862,93 @@ var ExportDestinationsMap = z141.object({
4062
3862
  destinationGitlab: ExporterDestinationGitlab.optional(),
4063
3863
  destinationBitbucket: ExporterDestinationBitbucket.optional()
4064
3864
  });
4065
- var PipelineEventType = z142.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4066
- var PipelineDestinationGitType = z142.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4067
- var PipelineDestinationExtraType = z142.enum(["WebhookUrl", "S3", "Documentation"]);
4068
- var PipelineDestinationType = z142.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4069
- var Pipeline = z142.object({
4070
- id: z142.string(),
4071
- name: z142.string(),
3865
+ var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3866
+ var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3867
+ var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
3868
+ var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3869
+ var Pipeline = z125.object({
3870
+ id: z125.string(),
3871
+ name: z125.string(),
4072
3872
  eventType: PipelineEventType,
4073
- isEnabled: z142.boolean(),
4074
- workspaceId: z142.string(),
4075
- designSystemId: z142.string(),
4076
- exporterId: z142.string(),
4077
- brandPersistentId: z142.string().optional(),
4078
- themePersistentId: z142.string().optional(),
4079
- themePersistentIds: z142.string().array().optional(),
3873
+ isEnabled: z125.boolean(),
3874
+ workspaceId: z125.string(),
3875
+ designSystemId: z125.string(),
3876
+ exporterId: z125.string(),
3877
+ brandPersistentId: z125.string().optional(),
3878
+ themePersistentId: z125.string().optional(),
3879
+ themePersistentIds: z125.string().array().optional(),
4080
3880
  // Destinations
4081
3881
  ...ExportDestinationsMap.shape
4082
3882
  });
4083
- var ExportJobDump = z143.object({
4084
- id: z143.string(),
4085
- createdAt: z143.coerce.date(),
4086
- finishedAt: z143.coerce.date(),
4087
- exportArtefacts: z143.string()
3883
+ var ExportJobDump = z126.object({
3884
+ id: z126.string(),
3885
+ createdAt: z126.coerce.date(),
3886
+ finishedAt: z126.coerce.date(),
3887
+ exportArtefacts: z126.string()
4088
3888
  });
4089
- var CodeIntegrationDump = z143.object({
3889
+ var CodeIntegrationDump = z126.object({
4090
3890
  exporters: Exporter.array(),
4091
3891
  pipelines: Pipeline.array(),
4092
3892
  exportJobs: ExportJobDump.array()
4093
3893
  });
4094
3894
  var DesignSystemVersionRoom = Entity.extend({
4095
- designSystemVersionId: z144.string(),
4096
- liveblocksId: z144.string()
4097
- });
4098
- var DesignSystemVersionRoomInternalSettings = z144.object({
4099
- routingVersion: z144.string(),
4100
- isDraftFeatureAdopted: z144.boolean(),
4101
- isApprovalFeatureEnabled: z144.boolean(),
4102
- approvalRequiredForPublishing: z144.boolean()
4103
- });
4104
- var DesignSystemVersionRoomInitialState = z144.object({
4105
- pages: z144.array(DocumentationPageV2),
4106
- groups: z144.array(ElementGroup),
4107
- pageSnapshots: z144.array(DocumentationPageSnapshot),
4108
- groupSnapshots: z144.array(ElementGroupSnapshot),
4109
- pageApprovals: z144.array(DocumentationPageApproval),
3895
+ designSystemVersionId: z127.string(),
3896
+ liveblocksId: z127.string()
3897
+ });
3898
+ var DesignSystemVersionRoomInternalSettings = z127.object({
3899
+ routingVersion: z127.string(),
3900
+ isDraftFeatureAdopted: z127.boolean(),
3901
+ isApprovalFeatureEnabled: z127.boolean(),
3902
+ approvalRequiredForPublishing: z127.boolean()
3903
+ });
3904
+ var DesignSystemVersionRoomInitialState = z127.object({
3905
+ pages: z127.array(DocumentationPageV2),
3906
+ groups: z127.array(ElementGroup),
3907
+ pageSnapshots: z127.array(DocumentationPageSnapshot),
3908
+ groupSnapshots: z127.array(ElementGroupSnapshot),
3909
+ pageApprovals: z127.array(DocumentationPageApproval),
4110
3910
  internalSettings: DesignSystemVersionRoomInternalSettings
4111
3911
  });
4112
- var DesignSystemVersionRoomUpdate = z144.object({
4113
- pages: z144.array(DocumentationPageV2),
4114
- groups: z144.array(ElementGroup),
4115
- pageIdsToDelete: z144.array(z144.string()),
4116
- groupIdsToDelete: z144.array(z144.string()),
4117
- pageSnapshots: z144.array(DocumentationPageSnapshot),
4118
- groupSnapshots: z144.array(ElementGroupSnapshot),
4119
- pageSnapshotIdsToDelete: z144.array(z144.string()),
4120
- groupSnapshotIdsToDelete: z144.array(z144.string()),
4121
- pageHashesToUpdate: z144.record(z144.string(), z144.string()),
4122
- pageApprovals: z144.array(DocumentationPageApproval),
4123
- pageApprovalIdsToDelete: z144.array(z144.string())
3912
+ var DesignSystemVersionRoomUpdate = z127.object({
3913
+ pages: z127.array(DocumentationPageV2),
3914
+ groups: z127.array(ElementGroup),
3915
+ pageIdsToDelete: z127.array(z127.string()),
3916
+ groupIdsToDelete: z127.array(z127.string()),
3917
+ pageSnapshots: z127.array(DocumentationPageSnapshot),
3918
+ groupSnapshots: z127.array(ElementGroupSnapshot),
3919
+ pageSnapshotIdsToDelete: z127.array(z127.string()),
3920
+ groupSnapshotIdsToDelete: z127.array(z127.string()),
3921
+ pageHashesToUpdate: z127.record(z127.string(), z127.string()),
3922
+ pageApprovals: z127.array(DocumentationPageApproval),
3923
+ pageApprovalIdsToDelete: z127.array(z127.string())
4124
3924
  });
4125
3925
  var DocumentationPageRoom = Entity.extend({
4126
- designSystemVersionId: z145.string(),
4127
- documentationPageId: z145.string(),
4128
- liveblocksId: z145.string(),
4129
- isDirty: z145.boolean()
3926
+ designSystemVersionId: z128.string(),
3927
+ documentationPageId: z128.string(),
3928
+ liveblocksId: z128.string(),
3929
+ isDirty: z128.boolean()
4130
3930
  });
4131
- var DocumentationPageRoomState = z145.object({
4132
- pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3931
+ var DocumentationPageRoomState = z128.object({
3932
+ pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4133
3933
  itemConfiguration: DocumentationItemConfigurationV2
4134
3934
  });
4135
- var DocumentationPageRoomRoomUpdate = z145.object({
3935
+ var DocumentationPageRoomRoomUpdate = z128.object({
4136
3936
  page: DocumentationPageV2,
4137
3937
  pageParent: ElementGroup
4138
3938
  });
4139
3939
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4140
- pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4141
- blockDefinitions: z145.array(PageBlockDefinition)
3940
+ pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3941
+ blockDefinitions: z128.array(PageBlockDefinition)
4142
3942
  });
4143
- var RestoredDocumentationPage = z145.object({
3943
+ var RestoredDocumentationPage = z128.object({
4144
3944
  page: DocumentationPageV2,
4145
3945
  pageParent: ElementGroup,
4146
3946
  pageContent: DocumentationPageContentData,
4147
- contentHash: z145.string(),
4148
- snapshotId: z145.string(),
4149
- roomId: z145.string().optional()
3947
+ contentHash: z128.string(),
3948
+ snapshotId: z128.string(),
3949
+ roomId: z128.string().optional()
4150
3950
  });
4151
- var RestoredDocumentationGroup = z145.object({
3951
+ var RestoredDocumentationGroup = z128.object({
4152
3952
  group: ElementGroup,
4153
3953
  parent: ElementGroup
4154
3954
  });
@@ -4158,28 +3958,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4158
3958
  RoomTypeEnum2["Workspace"] = "workspace";
4159
3959
  return RoomTypeEnum2;
4160
3960
  })(RoomTypeEnum || {});
4161
- var RoomTypeSchema = z146.nativeEnum(RoomTypeEnum);
3961
+ var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
4162
3962
  var RoomType = RoomTypeSchema.enum;
4163
3963
  var WorkspaceRoom = Entity.extend({
4164
- workspaceId: z147.string(),
4165
- liveblocksId: z147.string()
3964
+ workspaceId: z130.string(),
3965
+ liveblocksId: z130.string()
4166
3966
  });
4167
- var PublishedDocsDump = z148.object({
3967
+ var PublishedDocsDump = z131.object({
4168
3968
  documentation: PublishedDoc,
4169
3969
  pages: PublishedDocPage.array()
4170
3970
  });
4171
- var DocumentationThreadDump = z149.object({
3971
+ var DocumentationThreadDump = z132.object({
4172
3972
  thread: DocumentationCommentThread,
4173
3973
  comments: DocumentationComment.array()
4174
3974
  });
4175
- var DocumentationPageRoomDump = z149.object({
3975
+ var DocumentationPageRoomDump = z132.object({
4176
3976
  room: DocumentationPageRoom,
4177
3977
  threads: DocumentationThreadDump.array()
4178
3978
  });
4179
- var DesignSystemVersionMultiplayerDump = z149.object({
3979
+ var DesignSystemVersionMultiplayerDump = z132.object({
4180
3980
  documentationPages: DocumentationPageRoomDump.array()
4181
3981
  });
4182
- var DesignSystemVersionDump = z149.object({
3982
+ var DesignSystemVersionDump = z132.object({
4183
3983
  version: DesignSystemVersion,
4184
3984
  brands: Brand.array(),
4185
3985
  elements: DesignElement.array(),
@@ -4192,50 +3992,139 @@ var DesignSystemVersionDump = z149.object({
4192
3992
  publishedDocumentations: PublishedDocsDump.array(),
4193
3993
  assetReferences: AssetReference.array()
4194
3994
  });
4195
- var DesignSystemDump = z150.object({
3995
+ var DesignSystemDump = z133.object({
4196
3996
  designSystem: DesignSystem,
4197
3997
  dataSources: DataSource.array(),
4198
3998
  versions: DesignSystemVersionDump.array(),
4199
3999
  customDomain: CustomDomain.optional(),
4200
4000
  files: Asset.array()
4201
4001
  });
4202
- var IntegrationDesignSystem = z151.object({
4203
- designSystemId: z151.string(),
4204
- brandId: z151.string(),
4205
- title: z151.string().optional(),
4206
- userId: z151.string().optional(),
4207
- date: z151.coerce.date().optional()
4208
- });
4209
- var IntegrationCredentialsType = z151.enum(["OAuth2", "PAT", "GithubApp"]);
4210
- var IntegrationCredentialsState = z151.enum(["Active", "Inactive"]);
4211
- var IntegrationCredentialsProfile = z151.object({
4212
- id: nullishToOptional(z151.string()),
4213
- email: nullishToOptional(z151.string()),
4214
- handle: nullishToOptional(z151.string()),
4215
- type: nullishToOptional(z151.string()),
4216
- avatarUrl: nullishToOptional(z151.string()),
4217
- organization: nullishToOptional(z151.string()),
4218
- collection: nullishToOptional(z151.string())
4219
- });
4220
- var IntegrationCredentials = z151.object({
4221
- id: z151.string(),
4002
+ var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
4003
+ var ExternalServiceType = z134.union([
4004
+ z134.literal("figma"),
4005
+ z134.literal("github"),
4006
+ z134.literal("azure"),
4007
+ z134.literal("gitlab"),
4008
+ z134.literal("bitbucket")
4009
+ ]);
4010
+ var IntegrationUserInfo = z134.object({
4011
+ id: z134.string(),
4012
+ handle: z134.string().optional(),
4013
+ avatarUrl: z134.string().optional(),
4014
+ email: z134.string().optional(),
4015
+ authType: IntegrationAuthType.optional(),
4016
+ customUrl: z134.string().optional()
4017
+ });
4018
+ var UserLinkedIntegrations = z134.object({
4019
+ figma: IntegrationUserInfo.optional(),
4020
+ github: IntegrationUserInfo.array().optional(),
4021
+ azure: IntegrationUserInfo.array().optional(),
4022
+ gitlab: IntegrationUserInfo.array().optional(),
4023
+ bitbucket: IntegrationUserInfo.array().optional()
4024
+ });
4025
+ var UserAnalyticsCleanupSchedule = z135.object({
4026
+ userId: z135.string(),
4027
+ createdAt: z135.coerce.date(),
4028
+ deleteAt: z135.coerce.date()
4029
+ });
4030
+ var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4031
+ createdAt: true
4032
+ });
4033
+ var UserIdentity = z136.object({
4034
+ id: z136.string(),
4035
+ userId: z136.string()
4036
+ });
4037
+ var UserMinified = z137.object({
4038
+ id: z137.string(),
4039
+ name: z137.string(),
4040
+ email: z137.string(),
4041
+ avatar: z137.string().optional()
4042
+ });
4043
+ var LiveblocksNotificationSettings = z138.object({
4044
+ sendCommentNotificationEmails: z138.boolean()
4045
+ });
4046
+ var UserNotificationSettings = z138.object({
4047
+ liveblocksNotificationSettings: LiveblocksNotificationSettings
4048
+ });
4049
+ var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4050
+ var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4051
+ var UserOnboarding = z139.object({
4052
+ companyName: z139.string().optional(),
4053
+ numberOfPeopleInOrg: z139.string().optional(),
4054
+ numberOfPeopleInDesignTeam: z139.string().optional(),
4055
+ department: UserOnboardingDepartment.optional(),
4056
+ jobTitle: z139.string().optional(),
4057
+ phase: z139.string().optional(),
4058
+ jobLevel: UserOnboardingJobLevel.optional(),
4059
+ designSystemName: z139.string().optional(),
4060
+ defaultDestination: z139.string().optional(),
4061
+ figmaUrl: z139.string().optional(),
4062
+ isPageDraftOnboardingFinished: z139.boolean().optional(),
4063
+ isApprovalsOnboardingFinished: z139.boolean().optional()
4064
+ });
4065
+ var UserProfile = z139.object({
4066
+ name: z139.string(),
4067
+ avatar: z139.string().optional(),
4068
+ nickname: z139.string().optional(),
4069
+ onboarding: UserOnboarding.optional()
4070
+ });
4071
+ var UserProfileUpdate = UserProfile.partial().omit({
4072
+ avatar: true
4073
+ });
4074
+ var UserTest = z140.object({
4075
+ id: z140.string(),
4076
+ email: z140.string()
4077
+ });
4078
+ var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
4079
+ var User = z141.object({
4080
+ id: z141.string(),
4081
+ email: z141.string(),
4082
+ emailVerified: z141.boolean(),
4083
+ createdAt: z141.coerce.date(),
4084
+ trialExpiresAt: z141.coerce.date().optional(),
4085
+ profile: UserProfile,
4086
+ linkedIntegrations: UserLinkedIntegrations.optional(),
4087
+ loggedOutAt: z141.coerce.date().optional(),
4088
+ isProtected: z141.boolean(),
4089
+ source: UserSource.optional()
4090
+ });
4091
+ var IntegrationDesignSystem = z142.object({
4092
+ designSystemId: z142.string(),
4093
+ brandId: z142.string(),
4094
+ title: z142.string().optional(),
4095
+ userId: z142.string().optional(),
4096
+ date: z142.coerce.date().optional()
4097
+ });
4098
+ var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
4099
+ var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
4100
+ var IntegrationCredentialsProfile = z142.object({
4101
+ id: nullishToOptional(z142.string()),
4102
+ email: nullishToOptional(z142.string()),
4103
+ handle: nullishToOptional(z142.string()),
4104
+ type: nullishToOptional(z142.string()),
4105
+ avatarUrl: nullishToOptional(z142.string()),
4106
+ organization: nullishToOptional(z142.string()),
4107
+ collection: nullishToOptional(z142.string())
4108
+ });
4109
+ var IntegrationCredentials = z142.object({
4110
+ id: z142.string(),
4222
4111
  type: IntegrationCredentialsType,
4223
- integrationId: z151.string(),
4224
- accessToken: z151.string(),
4225
- userId: z151.string(),
4226
- createdAt: z151.coerce.date(),
4227
- refreshToken: z151.string().optional(),
4228
- tokenName: z151.string().optional(),
4229
- expiresAt: z151.coerce.date().optional(),
4230
- refreshedAt: z151.coerce.date().optional(),
4231
- username: z151.string().optional(),
4232
- appInstallationId: z151.string().optional(),
4112
+ integrationId: z142.string(),
4113
+ accessToken: z142.string(),
4114
+ userId: z142.string(),
4115
+ createdAt: z142.coerce.date(),
4116
+ refreshToken: z142.string().optional(),
4117
+ tokenName: z142.string().optional(),
4118
+ expiresAt: z142.coerce.date().optional(),
4119
+ refreshedAt: z142.coerce.date().optional(),
4120
+ username: z142.string().optional(),
4121
+ appInstallationId: z142.string().optional(),
4233
4122
  profile: IntegrationCredentialsProfile.optional(),
4234
- customUrl: z151.string().optional(),
4123
+ customUrl: z142.string().optional(),
4235
4124
  state: IntegrationCredentialsState,
4236
4125
  user: UserMinified.optional()
4237
4126
  });
4238
- var ExtendedIntegrationType = z151.enum([
4127
+ var ExtendedIntegrationType = z142.enum([
4239
4128
  "Figma",
4240
4129
  "Github",
4241
4130
  "Gitlab",
@@ -4246,26 +4135,26 @@ var ExtendedIntegrationType = z151.enum([
4246
4135
  ]);
4247
4136
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4248
4137
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4249
- var Integration = z151.object({
4250
- id: z151.string(),
4251
- workspaceId: z151.string(),
4138
+ var Integration = z142.object({
4139
+ id: z142.string(),
4140
+ workspaceId: z142.string(),
4252
4141
  type: IntegrationType,
4253
- createdAt: z151.coerce.date(),
4254
- integrationCredentials: z151.array(IntegrationCredentials).optional()
4255
- });
4256
- var IntegrationToken = z151.object({
4257
- access_token: z151.string(),
4258
- refresh_token: z151.string().optional(),
4259
- expires_in: z151.union([z151.number().optional(), z151.string().optional()]),
4260
- token_type: z151.string().optional(),
4261
- token_name: z151.string().optional(),
4262
- token_azure_organization_name: z151.string().optional(),
4142
+ createdAt: z142.coerce.date(),
4143
+ integrationCredentials: z142.array(IntegrationCredentials).optional()
4144
+ });
4145
+ var IntegrationToken = z142.object({
4146
+ access_token: z142.string(),
4147
+ refresh_token: z142.string().optional(),
4148
+ expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
4149
+ token_type: z142.string().optional(),
4150
+ token_name: z142.string().optional(),
4151
+ token_azure_organization_name: z142.string().optional(),
4263
4152
  // Azure Cloud PAT only
4264
- token_azure_collection_name: z151.string().optional(),
4153
+ token_azure_collection_name: z142.string().optional(),
4265
4154
  // Azure Server PAT only
4266
- token_bitbucket_username: z151.string().optional(),
4155
+ token_bitbucket_username: z142.string().optional(),
4267
4156
  // Bitbucket only
4268
- custom_url: z151.string().optional().transform((value) => {
4157
+ custom_url: z142.string().optional().transform((value) => {
4269
4158
  if (!value?.trim())
4270
4159
  return void 0;
4271
4160
  return formatCustomUrl(value);
@@ -4301,38 +4190,170 @@ function formatCustomUrl(url) {
4301
4190
  }
4302
4191
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
4303
4192
  }
4304
- var WorkspaceDump = z152.object({
4193
+ var NpmRegistryAuthType = z143.enum(["Basic", "Bearer", "None", "Custom"]);
4194
+ var NpmRegistryType = z143.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4195
+ var NpmRegistryBasicAuthConfig = z143.object({
4196
+ authType: z143.literal(NpmRegistryAuthType.Enum.Basic),
4197
+ username: z143.string(),
4198
+ password: z143.string()
4199
+ });
4200
+ var NpmRegistryBearerAuthConfig = z143.object({
4201
+ authType: z143.literal(NpmRegistryAuthType.Enum.Bearer),
4202
+ accessToken: z143.string()
4203
+ });
4204
+ var NpmRegistryNoAuthConfig = z143.object({
4205
+ authType: z143.literal(NpmRegistryAuthType.Enum.None)
4206
+ });
4207
+ var NpmRegistrCustomAuthConfig = z143.object({
4208
+ authType: z143.literal(NpmRegistryAuthType.Enum.Custom),
4209
+ authHeaderName: z143.string(),
4210
+ authHeaderValue: z143.string()
4211
+ });
4212
+ var NpmRegistryAuthConfig = z143.discriminatedUnion("authType", [
4213
+ NpmRegistryBasicAuthConfig,
4214
+ NpmRegistryBearerAuthConfig,
4215
+ NpmRegistryNoAuthConfig,
4216
+ NpmRegistrCustomAuthConfig
4217
+ ]);
4218
+ var NpmRegistryConfigBase = z143.object({
4219
+ registryType: NpmRegistryType,
4220
+ enabledScopes: z143.array(z143.string()),
4221
+ customRegistryUrl: z143.string().optional(),
4222
+ bypassProxy: z143.boolean().default(false),
4223
+ npmProxyRegistryConfigId: z143.string().optional(),
4224
+ npmProxyVersion: z143.number().optional()
4225
+ });
4226
+ var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4227
+ var SsoProvider = z144.object({
4228
+ providerId: z144.string(),
4229
+ defaultAutoInviteValue: z144.boolean(),
4230
+ autoInviteDomains: z144.record(z144.string(), z144.boolean()),
4231
+ skipDocsSupernovaLogin: z144.boolean(),
4232
+ areInvitesDisabled: z144.boolean(),
4233
+ isTestMode: z144.boolean(),
4234
+ emailDomains: z144.array(z144.string()),
4235
+ metadataXml: z144.string().nullish()
4236
+ });
4237
+ var isValidCIDR = (value) => {
4238
+ return IPCIDR.isValidAddress(value);
4239
+ };
4240
+ var WorkspaceIpWhitelistEntry = z145.object({
4241
+ isEnabled: z145.boolean(),
4242
+ name: z145.string(),
4243
+ range: z145.string().refine(isValidCIDR, {
4244
+ message: "Invalid IP CIDR"
4245
+ })
4246
+ });
4247
+ var WorkspaceIpSettings = z145.object({
4248
+ isEnabledForCloud: z145.boolean(),
4249
+ isEnabledForDocs: z145.boolean(),
4250
+ entries: z145.array(WorkspaceIpWhitelistEntry)
4251
+ });
4252
+ var WorkspaceProfile = z145.object({
4253
+ name: z145.string(),
4254
+ handle: z145.string(),
4255
+ color: z145.string(),
4256
+ avatar: nullishToOptional(z145.string()),
4257
+ billingDetails: nullishToOptional(BillingDetails)
4258
+ });
4259
+ var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4260
+ avatar: true
4261
+ });
4262
+ var Workspace = z145.object({
4263
+ id: z145.string(),
4264
+ profile: WorkspaceProfile,
4265
+ subscription: Subscription,
4266
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4267
+ sso: nullishToOptional(SsoProvider),
4268
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4269
+ });
4270
+ var WorkspaceWithDesignSystems = z145.object({
4271
+ workspace: Workspace,
4272
+ designSystems: z145.array(DesignSystem)
4273
+ });
4274
+ var WorkspaceDump = z146.object({
4305
4275
  workspace: Workspace,
4306
4276
  designSystems: DesignSystemDump.array(),
4307
4277
  codeIntegration: CodeIntegrationDump,
4308
4278
  integrations: Integration.array()
4309
4279
  });
4310
- var UserDump = z153.object({
4280
+ var UserDump = z147.object({
4311
4281
  user: User,
4312
4282
  workspaces: WorkspaceDump.array()
4313
4283
  });
4314
- var NpmProxyToken = z154.object({
4315
- access: z154.string(),
4316
- expiresAt: z154.number()
4284
+ var NpmProxyToken = z148.object({
4285
+ access: z148.string(),
4286
+ expiresAt: z148.number()
4317
4287
  });
4318
- var SessionData = z154.object({
4319
- returnToUrl: z154.string().optional(),
4288
+ var SessionData = z148.object({
4289
+ returnToUrl: z148.string().optional(),
4320
4290
  npmProxyToken: NpmProxyToken.optional()
4321
4291
  });
4322
- var Session = z154.object({
4323
- id: z154.string(),
4324
- expiresAt: z154.coerce.date(),
4325
- userId: z154.string().nullable(),
4292
+ var Session = z148.object({
4293
+ id: z148.string(),
4294
+ expiresAt: z148.coerce.date(),
4295
+ userId: z148.string().nullable(),
4326
4296
  data: SessionData
4327
4297
  });
4328
- var AuthTokens = z154.object({
4329
- access: z154.string(),
4330
- refresh: z154.string()
4298
+ var AuthTokens = z148.object({
4299
+ access: z148.string(),
4300
+ refresh: z148.string()
4331
4301
  });
4332
- var UserSession = z154.object({
4302
+ var UserSession = z148.object({
4333
4303
  session: Session,
4334
4304
  user: User.nullable()
4335
4305
  });
4306
+ var MAX_MEMBERS_COUNT = 100;
4307
+ var UserInvite = z149.object({
4308
+ email: z149.string().email().trim().transform((value) => value.toLowerCase()),
4309
+ role: WorkspaceRoleSchema
4310
+ });
4311
+ var UserInvites = z149.array(UserInvite).max(MAX_MEMBERS_COUNT);
4312
+ var WorkspaceConfigurationUpdate = z150.object({
4313
+ id: z150.string(),
4314
+ ipWhitelist: WorkspaceIpSettings.optional(),
4315
+ sso: SsoProvider.optional(),
4316
+ npmRegistrySettings: NpmRegistryConfig.optional(),
4317
+ profile: WorkspaceProfileUpdate.optional()
4318
+ });
4319
+ var WorkspaceContext = z151.object({
4320
+ workspaceId: z151.string(),
4321
+ product: ProductCodeSchema,
4322
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4323
+ publicDesignSystem: z151.boolean().optional()
4324
+ });
4325
+ var WORKSPACE_NAME_MIN_LENGTH = 2;
4326
+ var WORKSPACE_NAME_MAX_LENGTH = 64;
4327
+ var HANDLE_MIN_LENGTH = 2;
4328
+ var HANDLE_MAX_LENGTH = 64;
4329
+ var CreateWorkspaceInput = z152.object({
4330
+ name: z152.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4331
+ handle: z152.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4332
+ });
4333
+ var WorkspaceInvitation = z153.object({
4334
+ id: z153.string(),
4335
+ email: z153.string().email(),
4336
+ createdAt: z153.coerce.date(),
4337
+ resentAt: z153.coerce.date().nullish(),
4338
+ role: z153.nativeEnum(WorkspaceRole),
4339
+ workspaceId: z153.string(),
4340
+ invitedBy: z153.string()
4341
+ });
4342
+ var WorkspaceMembership = z154.object({
4343
+ id: z154.string(),
4344
+ userId: z154.string(),
4345
+ workspaceId: z154.string(),
4346
+ workspaceRole: z154.nativeEnum(WorkspaceRole),
4347
+ notificationSettings: UserNotificationSettings
4348
+ });
4349
+ var UpdateMembershipRolesInput = z154.object({
4350
+ members: z154.array(
4351
+ z154.object({
4352
+ userId: z154.string(),
4353
+ role: z154.nativeEnum(WorkspaceRole)
4354
+ })
4355
+ )
4356
+ });
4336
4357
  var DesignSystemInviteEmailRecipient = z155.object({
4337
4358
  email: z155.string(),
4338
4359
  role: WorkspaceRoleSchema
@@ -5011,7 +5032,7 @@ var DTOPagination = z174.object({
5011
5032
  });
5012
5033
 
5013
5034
  // src/api/dto/bff/app-bootstrap-data.ts
5014
- import { z as z199 } from "zod";
5035
+ import { z as z200 } from "zod";
5015
5036
 
5016
5037
  // src/api/dto/design-systems/brand.ts
5017
5038
  import { z as z175 } from "zod";
@@ -5126,23 +5147,44 @@ var DTODataSourceCreationResponse = z176.object({
5126
5147
  });
5127
5148
 
5128
5149
  // src/api/dto/design-systems/design-system.ts
5129
- import { z as z178 } from "zod";
5150
+ import { z as z179 } from "zod";
5130
5151
 
5131
5152
  // src/api/dto/design-systems/members.ts
5153
+ import { z as z178 } from "zod";
5154
+
5155
+ // src/api/dto/design-systems/role.ts
5132
5156
  import { z as z177 } from "zod";
5133
- var DTODesignSystemMember = z177.object({
5134
- userId: z177.string()
5157
+ var DTODesignSystemRole = z177.enum([
5158
+ WorkspaceRole.Admin,
5159
+ WorkspaceRole.Contributor,
5160
+ WorkspaceRole.Creator,
5161
+ WorkspaceRole.Viewer
5162
+ ]);
5163
+
5164
+ // src/api/dto/design-systems/members.ts
5165
+ var DTODesignSystemMember = z178.object({
5166
+ userId: z178.string(),
5167
+ /**
5168
+ * Role that the member has in the design system,
5169
+ * undefined if set to inherit from workspace
5170
+ */
5171
+ designSystemRole: DTODesignSystemRole.optional()
5135
5172
  });
5136
- var DTODesignSystemInvitation = z177.object({
5137
- id: z177.string(),
5138
- workspaceInvitationId: z177.string()
5173
+ var DTODesignSystemInvitation = z178.object({
5174
+ id: z178.string(),
5175
+ workspaceInvitationId: z178.string(),
5176
+ /**
5177
+ * Role that the invitation has in the design system,
5178
+ * undefined if set to inherit from workspace
5179
+ */
5180
+ designSystemRole: DTODesignSystemRole.optional()
5139
5181
  });
5140
- var DTODesignSystemMemberListResponse = z177.object({
5182
+ var DTODesignSystemMemberListResponse = z178.object({
5141
5183
  members: DTODesignSystemMember.array(),
5142
5184
  invitations: DTODesignSystemInvitation.array()
5143
5185
  });
5144
- var DTODesignSystemMembersUpdateResponse = z177.object({
5145
- ok: z177.literal(true)
5186
+ var DTODesignSystemMembersUpdateResponse = z178.object({
5187
+ ok: z178.literal(true)
5146
5188
  });
5147
5189
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5148
5190
 
@@ -5153,26 +5195,34 @@ var DTODesignSystem = DesignSystem.omit({
5153
5195
  docExporterId: true
5154
5196
  }).extend({
5155
5197
  meta: ObjectMeta,
5156
- docExporterId: z178.string(),
5157
- sources: z178.array(z178.any()),
5198
+ docExporterId: z179.string(),
5199
+ sources: z179.array(z179.any()),
5158
5200
  /**
5159
5201
  * Whether or not user who is requesting the design system
5160
5202
  * has access to the design system's contents.
5161
5203
  */
5162
- isAvailableToUser: z178.boolean(),
5163
- role: WorkspaceRoleSchema.optional()
5204
+ isAvailableToUser: z179.boolean(),
5205
+ /**
5206
+ * @deprecated
5207
+ */
5208
+ role: WorkspaceRoleSchema.optional(),
5209
+ /**
5210
+ * User's role within the design system that can come either from
5211
+ * the design system or workspace.
5212
+ */
5213
+ effectiveRole: DTODesignSystemRole.optional()
5164
5214
  });
5165
- var DTODesignSystemResponse = z178.object({
5215
+ var DTODesignSystemResponse = z179.object({
5166
5216
  designSystem: DTODesignSystem
5167
5217
  });
5168
- var DTODesignSystemsListResponse = z178.object({
5218
+ var DTODesignSystemsListResponse = z179.object({
5169
5219
  designSystems: DTODesignSystem.array()
5170
5220
  });
5171
- var DTODesignSystemCreateInput = z178.object({
5172
- workspaceId: z178.string(),
5221
+ var DTODesignSystemCreateInput = z179.object({
5222
+ workspaceId: z179.string(),
5173
5223
  meta: ObjectMeta.optional(),
5174
- name: z178.string().min(2).max(64).optional(),
5175
- description: z178.string().max(1024).optional(),
5224
+ name: z179.string().min(2).max(64).optional(),
5225
+ description: z179.string().max(1024).optional(),
5176
5226
  accessMode: DesignSystemAccessMode.optional(),
5177
5227
  invites: DTODesignSystemMembersUpdatePayload.pick({
5178
5228
  usersToInvite: true,
@@ -5182,37 +5232,37 @@ var DTODesignSystemCreateInput = z178.object({
5182
5232
  });
5183
5233
 
5184
5234
  // src/api/dto/design-systems/elements-diff.ts
5185
- import { z as z179 } from "zod";
5186
- var DTODiffCountBase = z179.object({
5187
- created: z179.number(),
5188
- updated: z179.number(),
5189
- deleted: z179.number()
5235
+ import { z as z180 } from "zod";
5236
+ var DTODiffCountBase = z180.object({
5237
+ created: z180.number(),
5238
+ updated: z180.number(),
5239
+ deleted: z180.number()
5190
5240
  });
5191
- var DTODesignElementsDataDiffResponse = z179.object({
5241
+ var DTODesignElementsDataDiffResponse = z180.object({
5192
5242
  tokens: DTODiffCountBase,
5193
5243
  assets: DTODiffCountBase
5194
5244
  });
5195
5245
 
5196
5246
  // src/api/dto/design-systems/exporter-property.ts
5197
- import { z as z180 } from "zod";
5198
- var DTOExporterProperty = z180.any({});
5199
- var DTOExporterPropertyListResponse = z180.object({ items: z180.array(DTOExporterProperty) });
5247
+ import { z as z181 } from "zod";
5248
+ var DTOExporterProperty = z181.any({});
5249
+ var DTOExporterPropertyListResponse = z181.object({ items: z181.array(DTOExporterProperty) });
5200
5250
 
5201
5251
  // src/api/dto/design-systems/version.ts
5202
- import { z as z191 } from "zod";
5252
+ import { z as z192 } from "zod";
5203
5253
 
5204
5254
  // src/api/payloads/design-systems/brand.ts
5205
- import { z as z181 } from "zod";
5206
- var DTOCreateBrandInput = z181.object({
5207
- persistentId: z181.string().uuid(),
5208
- meta: z181.object({
5209
- name: z181.string(),
5210
- description: z181.string()
5255
+ import { z as z182 } from "zod";
5256
+ var DTOCreateBrandInput = z182.object({
5257
+ persistentId: z182.string().uuid(),
5258
+ meta: z182.object({
5259
+ name: z182.string(),
5260
+ description: z182.string()
5211
5261
  })
5212
5262
  });
5213
5263
 
5214
5264
  // src/api/payloads/design-systems/update-design-system.ts
5215
- import { z as z182 } from "zod";
5265
+ import { z as z183 } from "zod";
5216
5266
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5217
5267
  id: true,
5218
5268
  workspaceId: true,
@@ -5224,40 +5274,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5224
5274
  }).extend({
5225
5275
  meta: ObjectMeta.partial().optional()
5226
5276
  });
5227
- var DTODesignSystemUpdateAccessModeInput = z182.object({
5277
+ var DTODesignSystemUpdateAccessModeInput = z183.object({
5228
5278
  accessMode: DesignSystemAccessMode,
5229
- retain: z182.object({
5230
- userIds: z182.string().array(),
5231
- inviteIds: z182.string().array()
5279
+ retain: z183.object({
5280
+ userIds: z183.string().array(),
5281
+ inviteIds: z183.string().array()
5232
5282
  }).optional()
5233
5283
  });
5234
5284
 
5235
5285
  // src/api/payloads/design-systems/version.ts
5236
- import { z as z183 } from "zod";
5237
- var ObjectMeta2 = z183.object({
5238
- name: z183.string().max(150).optional(),
5239
- description: z183.string().max(2e3).optional()
5286
+ import { z as z184 } from "zod";
5287
+ var ObjectMeta2 = z184.object({
5288
+ name: z184.string().max(150).optional(),
5289
+ description: z184.string().max(2e3).optional()
5240
5290
  });
5241
5291
  function validateDesignSystemVersion(version) {
5242
5292
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5243
5293
  return urlCompliantRegex.test(version);
5244
5294
  }
5245
- var DTOCreateVersionInput = z183.object({
5295
+ var DTOCreateVersionInput = z184.object({
5246
5296
  meta: ObjectMeta2,
5247
- version: z183.string().refine(validateDesignSystemVersion, {
5297
+ version: z184.string().refine(validateDesignSystemVersion, {
5248
5298
  message: "Invalid semantic versioning format"
5249
5299
  }),
5250
- changeLog: z183.string().optional()
5300
+ changeLog: z184.string().optional()
5251
5301
  });
5252
- var DTOUpdateVersionInput = z183.object({
5302
+ var DTOUpdateVersionInput = z184.object({
5253
5303
  meta: ObjectMeta2,
5254
- version: z183.string(),
5304
+ version: z184.string(),
5255
5305
  // required for PUT, but not editable
5256
- changeLog: z183.string()
5306
+ changeLog: z184.string()
5257
5307
  });
5258
5308
 
5259
5309
  // src/api/payloads/documentation/block-definitions.ts
5260
- import { z as z184 } from "zod";
5310
+ import { z as z185 } from "zod";
5261
5311
 
5262
5312
  // src/api/dto/documentation/block-definition.ts
5263
5313
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5269,60 +5319,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5269
5319
  var DTOPageBlockDefinition = PageBlockDefinition;
5270
5320
 
5271
5321
  // src/api/payloads/documentation/block-definitions.ts
5272
- var DTOGetBlockDefinitionsOutput = z184.object({
5273
- definitions: z184.array(DTOPageBlockDefinition)
5322
+ var DTOGetBlockDefinitionsOutput = z185.object({
5323
+ definitions: z185.array(DTOPageBlockDefinition)
5274
5324
  });
5275
5325
 
5276
5326
  // src/api/payloads/documentation/design-data-doc-diff.ts
5277
- import { z as z185 } from "zod";
5278
- var DTODocumentationPublishTypeQueryParams = z185.object({
5279
- environment: z185.enum(["Live", "Preview"])
5327
+ import { z as z186 } from "zod";
5328
+ var DTODocumentationPublishTypeQueryParams = z186.object({
5329
+ environment: z186.enum(["Live", "Preview"])
5280
5330
  });
5281
5331
 
5282
5332
  // src/api/payloads/export/pipeline.ts
5283
- import { z as z186 } from "zod";
5284
- var DTOPipelineCreateBody = z186.object({
5285
- name: z186.string(),
5286
- exporterId: z186.string(),
5287
- designSystemId: z186.string(),
5288
- isEnabled: z186.boolean(),
5333
+ import { z as z187 } from "zod";
5334
+ var DTOPipelineCreateBody = z187.object({
5335
+ name: z187.string(),
5336
+ exporterId: z187.string(),
5337
+ designSystemId: z187.string(),
5338
+ isEnabled: z187.boolean(),
5289
5339
  eventType: PipelineEventType,
5290
- brandPersistentId: z186.string().optional(),
5291
- themePersistentId: z186.string().optional(),
5292
- themePersistentIds: z186.string().array().optional(),
5340
+ brandPersistentId: z187.string().optional(),
5341
+ themePersistentId: z187.string().optional(),
5342
+ themePersistentIds: z187.string().array().optional(),
5293
5343
  destination: PipelineDestinationType.optional(),
5294
5344
  gitQuery: GitObjectsQuery,
5295
- destinations: z186.object({
5345
+ destinations: z187.object({
5296
5346
  s3: ExporterDestinationS3.nullish(),
5297
5347
  azure: ExporterDestinationAzure.nullish(),
5298
5348
  bitbucket: ExporterDestinationBitbucket.nullish(),
5299
5349
  github: ExporterDestinationGithub.nullish(),
5300
5350
  gitlab: ExporterDestinationGitlab.nullish(),
5301
5351
  documentation: ExporterDestinationDocs.nullish(),
5302
- webhookUrl: z186.string().nullish()
5352
+ webhookUrl: z187.string().nullish()
5303
5353
  })
5304
5354
  });
5305
5355
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5306
- id: z186.string()
5356
+ id: z187.string()
5307
5357
  });
5308
- var DTOPipelineTriggerBody = z186.object({
5309
- designSystemVersionId: z186.string()
5358
+ var DTOPipelineTriggerBody = z187.object({
5359
+ designSystemVersionId: z187.string()
5310
5360
  });
5311
5361
 
5312
5362
  // src/api/payloads/liveblocks/auth.ts
5313
- import { z as z187 } from "zod";
5314
- var DTOLiveblocksAuthRequest = z187.object({
5315
- room: z187.string().optional()
5363
+ import { z as z188 } from "zod";
5364
+ var DTOLiveblocksAuthRequest = z188.object({
5365
+ room: z188.string().optional()
5316
5366
  });
5317
5367
 
5318
5368
  // src/api/payloads/users/notifications/notification-settings.ts
5319
- import { z as z188 } from "zod";
5320
- var DTOUpdateUserNotificationSettingsPayload = z188.object({
5369
+ import { z as z189 } from "zod";
5370
+ var DTOUpdateUserNotificationSettingsPayload = z189.object({
5321
5371
  notificationSettings: UserNotificationSettings
5322
5372
  });
5323
- var DTOUserNotificationSettingsResponse = z188.object({
5324
- userId: z188.string(),
5325
- workspaceId: z188.string(),
5373
+ var DTOUserNotificationSettingsResponse = z189.object({
5374
+ userId: z189.string(),
5375
+ workspaceId: z189.string(),
5326
5376
  notificationSettings: UserNotificationSettings
5327
5377
  });
5328
5378
 
@@ -5330,7 +5380,7 @@ var DTOUserNotificationSettingsResponse = z188.object({
5330
5380
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5331
5381
 
5332
5382
  // src/api/payloads/workspaces/workspace-configuration.ts
5333
- import { z as z189 } from "zod";
5383
+ import { z as z190 } from "zod";
5334
5384
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5335
5385
  function validateSsoPayload(ssoPayload) {
5336
5386
  const keys = [];
@@ -5353,21 +5403,21 @@ function validateSsoPayload(ssoPayload) {
5353
5403
  keys
5354
5404
  };
5355
5405
  }
5356
- var NpmRegistryInput = z189.object({
5357
- enabledScopes: z189.array(z189.string()),
5358
- customRegistryUrl: z189.string().optional(),
5359
- bypassProxy: z189.boolean().optional(),
5360
- npmProxyRegistryConfigId: z189.string().optional(),
5361
- npmProxyVersion: z189.number().optional(),
5362
- registryType: z189.string(),
5363
- authType: z189.string(),
5364
- authHeaderName: z189.string(),
5365
- authHeaderValue: z189.string(),
5366
- accessToken: z189.string(),
5367
- username: z189.string(),
5368
- password: z189.string()
5369
- });
5370
- var WorkspaceConfigurationPayload = z189.object({
5406
+ var NpmRegistryInput = z190.object({
5407
+ enabledScopes: z190.array(z190.string()),
5408
+ customRegistryUrl: z190.string().optional(),
5409
+ bypassProxy: z190.boolean().optional(),
5410
+ npmProxyRegistryConfigId: z190.string().optional(),
5411
+ npmProxyVersion: z190.number().optional(),
5412
+ registryType: z190.string(),
5413
+ authType: z190.string(),
5414
+ authHeaderName: z190.string(),
5415
+ authHeaderValue: z190.string(),
5416
+ accessToken: z190.string(),
5417
+ username: z190.string(),
5418
+ password: z190.string()
5419
+ });
5420
+ var WorkspaceConfigurationPayload = z190.object({
5371
5421
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5372
5422
  sso: SsoProvider.partial().optional(),
5373
5423
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5375,211 +5425,211 @@ var WorkspaceConfigurationPayload = z189.object({
5375
5425
  });
5376
5426
 
5377
5427
  // src/api/payloads/workspaces/workspace-integrations.ts
5378
- import { z as z190 } from "zod";
5379
- var DTOWorkspaceIntegrationOauthInput = z190.object({
5428
+ import { z as z191 } from "zod";
5429
+ var DTOWorkspaceIntegrationOauthInput = z191.object({
5380
5430
  type: IntegrationType
5381
5431
  });
5382
- var DTOWorkspaceIntegrationPATInput = z190.object({
5383
- userId: z190.string(),
5432
+ var DTOWorkspaceIntegrationPATInput = z191.object({
5433
+ userId: z191.string(),
5384
5434
  type: IntegrationType,
5385
5435
  token: IntegrationToken
5386
5436
  });
5387
- var DTOWorkspaceIntegrationGetGitObjectsInput = z190.object({
5388
- organization: z190.string().optional(),
5437
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z191.object({
5438
+ organization: z191.string().optional(),
5389
5439
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5390
- project: z190.string().optional(),
5440
+ project: z191.string().optional(),
5391
5441
  // Only for Bitbucket and Azure
5392
- repository: z190.string().optional(),
5442
+ repository: z191.string().optional(),
5393
5443
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5394
- branch: z190.string().optional(),
5444
+ branch: z191.string().optional(),
5395
5445
  // For all providers, useful for PR creations.
5396
- user: z190.string().optional()
5446
+ user: z191.string().optional()
5397
5447
  // Only for Gitlab User Repositories
5398
5448
  });
5399
5449
 
5400
5450
  // src/api/dto/design-systems/version.ts
5401
- var DTODesignSystemVersion = z191.object({
5402
- id: z191.string(),
5403
- createdAt: z191.coerce.date(),
5451
+ var DTODesignSystemVersion = z192.object({
5452
+ id: z192.string(),
5453
+ createdAt: z192.coerce.date(),
5404
5454
  meta: ObjectMeta,
5405
- version: z191.string(),
5406
- isReadonly: z191.boolean(),
5407
- changeLog: z191.string(),
5408
- designSystemId: z191.string()
5455
+ version: z192.string(),
5456
+ isReadonly: z192.boolean(),
5457
+ changeLog: z192.string(),
5458
+ designSystemId: z192.string()
5409
5459
  });
5410
- var DTODesignSystemVersionsListResponse = z191.object({
5411
- designSystemVersions: z191.array(DTODesignSystemVersion)
5460
+ var DTODesignSystemVersionsListResponse = z192.object({
5461
+ designSystemVersions: z192.array(DTODesignSystemVersion)
5412
5462
  });
5413
- var DTODesignSystemVersionGetResponse = z191.object({
5463
+ var DTODesignSystemVersionGetResponse = z192.object({
5414
5464
  designSystemVersion: DTODesignSystemVersion
5415
5465
  });
5416
- var DTODesignSystemVersionCreationResponse = z191.object({
5466
+ var DTODesignSystemVersionCreationResponse = z192.object({
5417
5467
  meta: ObjectMeta,
5418
- version: z191.string(),
5419
- changeLog: z191.string(),
5420
- isReadOnly: z191.boolean(),
5421
- designSystemId: z191.string(),
5422
- jobId: z191.string()
5423
- });
5424
- var VersionSQSPayload = z191.object({
5425
- jobId: z191.string(),
5426
- designSystemId: z191.string(),
5468
+ version: z192.string(),
5469
+ changeLog: z192.string(),
5470
+ isReadOnly: z192.boolean(),
5471
+ designSystemId: z192.string(),
5472
+ jobId: z192.string()
5473
+ });
5474
+ var VersionSQSPayload = z192.object({
5475
+ jobId: z192.string(),
5476
+ designSystemId: z192.string(),
5427
5477
  input: DTOCreateVersionInput
5428
5478
  });
5429
- var DTODesignSystemVersionJobsResponse = z191.object({
5430
- jobs: z191.array(VersionCreationJob)
5479
+ var DTODesignSystemVersionJobsResponse = z192.object({
5480
+ jobs: z192.array(VersionCreationJob)
5431
5481
  });
5432
- var DTODesignSystemVersionJobStatusResponse = z191.object({
5482
+ var DTODesignSystemVersionJobStatusResponse = z192.object({
5433
5483
  job: VersionCreationJob
5434
5484
  });
5435
5485
 
5436
5486
  // src/api/dto/design-systems/view.ts
5437
- import { z as z192 } from "zod";
5438
- var DTOElementViewColumnSharedAttributes = z192.object({
5439
- id: z192.string(),
5440
- persistentId: z192.string(),
5441
- width: z192.number()
5487
+ import { z as z193 } from "zod";
5488
+ var DTOElementViewColumnSharedAttributes = z193.object({
5489
+ id: z193.string(),
5490
+ persistentId: z193.string(),
5491
+ width: z193.number()
5442
5492
  });
5443
5493
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5444
- type: z192.literal("BaseProperty"),
5494
+ type: z193.literal("BaseProperty"),
5445
5495
  basePropertyType: ElementViewBaseColumnType
5446
5496
  });
5447
5497
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5448
- type: z192.literal("PropertyDefinition"),
5449
- propertyDefinitionId: z192.string()
5498
+ type: z193.literal("PropertyDefinition"),
5499
+ propertyDefinitionId: z193.string()
5450
5500
  });
5451
5501
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5452
- type: z192.literal("Theme"),
5453
- themeId: z192.string()
5502
+ type: z193.literal("Theme"),
5503
+ themeId: z193.string()
5454
5504
  });
5455
- var DTOElementViewColumn = z192.discriminatedUnion("type", [
5505
+ var DTOElementViewColumn = z193.discriminatedUnion("type", [
5456
5506
  DTOElementViewBasePropertyColumn,
5457
5507
  DTOElementViewPropertyDefinitionColumn,
5458
5508
  DTOElementViewThemeColumn
5459
5509
  ]);
5460
- var DTOElementView = z192.object({
5510
+ var DTOElementView = z193.object({
5461
5511
  meta: ObjectMeta,
5462
- persistentId: z192.string(),
5512
+ persistentId: z193.string(),
5463
5513
  targetElementType: ElementPropertyTargetType,
5464
- id: z192.string(),
5465
- isDefault: z192.boolean(),
5466
- columns: z192.array(DTOElementViewColumn)
5514
+ id: z193.string(),
5515
+ isDefault: z193.boolean(),
5516
+ columns: z193.array(DTOElementViewColumn)
5467
5517
  });
5468
- var DTOElementViewsListResponse = z192.object({
5469
- elementDataViews: z192.array(DTOElementView)
5518
+ var DTOElementViewsListResponse = z193.object({
5519
+ elementDataViews: z193.array(DTOElementView)
5470
5520
  });
5471
5521
 
5472
5522
  // src/api/dto/workspaces/git.ts
5473
- import { z as z193 } from "zod";
5474
- var DTOGitOrganization = z193.object({
5475
- id: z193.string(),
5476
- name: z193.string(),
5477
- url: z193.string(),
5478
- slug: z193.string()
5523
+ import { z as z194 } from "zod";
5524
+ var DTOGitOrganization = z194.object({
5525
+ id: z194.string(),
5526
+ name: z194.string(),
5527
+ url: z194.string(),
5528
+ slug: z194.string()
5479
5529
  });
5480
- var DTOGitProject = z193.object({
5481
- id: z193.string(),
5482
- name: z193.string(),
5483
- url: z193.string(),
5484
- slug: z193.string()
5530
+ var DTOGitProject = z194.object({
5531
+ id: z194.string(),
5532
+ name: z194.string(),
5533
+ url: z194.string(),
5534
+ slug: z194.string()
5485
5535
  });
5486
- var DTOGitRepository = z193.object({
5487
- id: z193.string(),
5488
- name: z193.string(),
5489
- url: z193.string(),
5490
- slug: z193.string(),
5491
- defaultBranch: z193.string().optional()
5536
+ var DTOGitRepository = z194.object({
5537
+ id: z194.string(),
5538
+ name: z194.string(),
5539
+ url: z194.string(),
5540
+ slug: z194.string(),
5541
+ defaultBranch: z194.string().optional()
5492
5542
  });
5493
- var DTOGitBranch = z193.object({
5494
- name: z193.string(),
5495
- lastCommitId: z193.string()
5543
+ var DTOGitBranch = z194.object({
5544
+ name: z194.string(),
5545
+ lastCommitId: z194.string()
5496
5546
  });
5497
5547
 
5498
5548
  // src/api/dto/workspaces/integrations.ts
5499
- import { z as z194 } from "zod";
5549
+ import { z as z195 } from "zod";
5500
5550
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5501
5551
  accessToken: true,
5502
5552
  refreshToken: true
5503
5553
  });
5504
- var DTOIntegration = z194.object({
5505
- id: z194.string(),
5506
- workspaceId: z194.string(),
5554
+ var DTOIntegration = z195.object({
5555
+ id: z195.string(),
5556
+ workspaceId: z195.string(),
5507
5557
  type: ExtendedIntegrationType,
5508
- createdAt: z194.coerce.date(),
5509
- integrationCredentials: z194.array(DTOIntegrationCredentials).optional(),
5510
- integrationDesignSystems: z194.array(IntegrationDesignSystem).optional()
5558
+ createdAt: z195.coerce.date(),
5559
+ integrationCredentials: z195.array(DTOIntegrationCredentials).optional(),
5560
+ integrationDesignSystems: z195.array(IntegrationDesignSystem).optional()
5511
5561
  });
5512
- var DTOIntegrationOAuthGetResponse = z194.object({
5513
- url: z194.string()
5562
+ var DTOIntegrationOAuthGetResponse = z195.object({
5563
+ url: z195.string()
5514
5564
  });
5515
- var DTOIntegrationPostResponse = z194.object({
5565
+ var DTOIntegrationPostResponse = z195.object({
5516
5566
  integration: DTOIntegration
5517
5567
  });
5518
- var DTOIntegrationsGetListResponse = z194.object({
5568
+ var DTOIntegrationsGetListResponse = z195.object({
5519
5569
  integrations: DTOIntegration.array()
5520
5570
  });
5521
5571
 
5522
5572
  // src/api/dto/workspaces/invitations.ts
5523
- import { z as z195 } from "zod";
5524
- var DTOWorkspaceInvitationInput = z195.object({
5525
- email: z195.string().email(),
5573
+ import { z as z196 } from "zod";
5574
+ var DTOWorkspaceInvitationInput = z196.object({
5575
+ email: z196.string().email(),
5526
5576
  role: WorkspaceRoleSchema
5527
5577
  });
5528
- var DTOWorkspaceInvitationsListInput = z195.object({
5578
+ var DTOWorkspaceInvitationsListInput = z196.object({
5529
5579
  invites: DTOWorkspaceInvitationInput.array().max(100),
5530
- designSystemId: z195.string().optional()
5580
+ designSystemId: z196.string().optional()
5531
5581
  });
5532
- var DTOWorkspaceInvitationsResponse = z195.object({
5582
+ var DTOWorkspaceInvitationsResponse = z196.object({
5533
5583
  invitations: WorkspaceInvitation.array()
5534
5584
  });
5535
5585
 
5536
5586
  // src/api/dto/workspaces/membership.ts
5537
- import { z as z198 } from "zod";
5587
+ import { z as z199 } from "zod";
5538
5588
 
5539
5589
  // src/api/dto/workspaces/workspace.ts
5540
- import { z as z197 } from "zod";
5590
+ import { z as z198 } from "zod";
5541
5591
 
5542
5592
  // src/api/dto/workspaces/npm-registry.ts
5543
- import { z as z196 } from "zod";
5593
+ import { z as z197 } from "zod";
5544
5594
  var DTONpmRegistryConfigConstants = {
5545
5595
  passwordPlaceholder: "redacted"
5546
5596
  };
5547
- var DTONpmRegistryConfig = z196.object({
5597
+ var DTONpmRegistryConfig = z197.object({
5548
5598
  // Registry basic configuration
5549
5599
  registryType: NpmRegistryType,
5550
- registryUrl: z196.string(),
5551
- customRegistryUrl: z196.string().optional(),
5600
+ registryUrl: z197.string(),
5601
+ customRegistryUrl: z197.string().optional(),
5552
5602
  // URL of Supernova NPM packages proxy
5553
- proxyUrl: z196.string(),
5603
+ proxyUrl: z197.string(),
5554
5604
  // Auth configuration
5555
5605
  authType: NpmRegistryAuthType,
5556
- accessToken: z196.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5557
- username: z196.string().optional(),
5558
- password: z196.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5606
+ accessToken: z197.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5607
+ username: z197.string().optional(),
5608
+ password: z197.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5559
5609
  // NPM package scopes for whih the proxy should be enabled
5560
- enabledScopes: z196.array(z196.string()),
5610
+ enabledScopes: z197.array(z197.string()),
5561
5611
  // True if client should bypass Supernova proxy and connect directly to the registry
5562
5612
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5563
- bypassProxy: z196.boolean()
5613
+ bypassProxy: z197.boolean()
5564
5614
  });
5565
5615
 
5566
5616
  // src/api/dto/workspaces/workspace.ts
5567
- var DTOWorkspace = z197.object({
5568
- id: z197.string(),
5617
+ var DTOWorkspace = z198.object({
5618
+ id: z198.string(),
5569
5619
  profile: WorkspaceProfile,
5570
5620
  subscription: Subscription,
5571
5621
  npmRegistry: DTONpmRegistryConfig.optional()
5572
5622
  });
5573
- var DTOWorkspaceCreateInput = z197.object({
5574
- name: z197.string()
5623
+ var DTOWorkspaceCreateInput = z198.object({
5624
+ name: z198.string()
5575
5625
  });
5576
- var DTOWorkspaceResponse = z197.object({
5626
+ var DTOWorkspaceResponse = z198.object({
5577
5627
  workspace: DTOWorkspace
5578
5628
  });
5579
5629
 
5580
5630
  // src/api/dto/workspaces/membership.ts
5581
- var DTOWorkspaceRole = z198.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5582
- var DTOUserWorkspaceMembership = z198.object({
5631
+ var DTOWorkspaceRole = z199.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5632
+ var DTOUserWorkspaceMembership = z199.object({
5583
5633
  // Workspace the user is a member of
5584
5634
  workspace: DTOWorkspace,
5585
5635
  // Assigned role the user has in the workspace
@@ -5589,38 +5639,56 @@ var DTOUserWorkspaceMembership = z198.object({
5589
5639
  // when a workspace's subscription is downgraded to free tier
5590
5640
  effectiveRole: DTOWorkspaceRole
5591
5641
  });
5592
- var DTOUserWorkspaceMembershipsResponse = z198.object({
5593
- membership: z198.array(DTOUserWorkspaceMembership)
5642
+ var DTOUserWorkspaceMembershipsResponse = z199.object({
5643
+ membership: z199.array(DTOUserWorkspaceMembership)
5594
5644
  });
5595
5645
 
5596
5646
  // src/api/dto/bff/app-bootstrap-data.ts
5597
- var DTOAppBootstrapDataQuery = z199.object({
5598
- preferredWorkspaceId: z199.string().optional(),
5599
- preferredDesignSystemId: z199.string().optional(),
5600
- preferredVersionId: z199.string().optional(),
5601
- preferredBrandId: z199.string().optional()
5647
+ var DTOAppBootstrapDataQuery = z200.object({
5648
+ preferredWorkspaceId: z200.string().optional(),
5649
+ preferredDesignSystemId: z200.string().optional(),
5650
+ preferredVersionId: z200.string().optional(),
5651
+ preferredBrandId: z200.string().optional()
5602
5652
  });
5603
- var DTOAppBootstrapDataResponse = z199.object({
5653
+ var DTOAppBootstrapDataResponse = z200.object({
5604
5654
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5605
5655
  designSystem: DTODesignSystem.optional(),
5606
5656
  version: DTODesignSystemVersion.optional(),
5607
5657
  brand: DTOBrand.optional()
5608
5658
  });
5609
5659
 
5660
+ // src/api/dto/collections/collection.ts
5661
+ import { z as z201 } from "zod";
5662
+ var DTOTokenCollection = z201.object({
5663
+ id: z201.string(),
5664
+ persistentId: z201.string(),
5665
+ designSystemVersionId: z201.string(),
5666
+ meta: ObjectMeta,
5667
+ createdAt: z201.coerce.date(),
5668
+ updatedAt: z201.coerce.date(),
5669
+ origin: z201.object({
5670
+ id: z201.string(),
5671
+ sourceId: z201.string()
5672
+ })
5673
+ });
5674
+ var DTOTokenCollectionsListReponse = z201.object({
5675
+ collections: DTOTokenCollection.array()
5676
+ });
5677
+
5610
5678
  // src/api/dto/documentation/anchor.ts
5611
- import { z as z200 } from "zod";
5679
+ import { z as z202 } from "zod";
5612
5680
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5613
- var DTOGetDocumentationPageAnchorsResponse = z200.object({
5614
- anchors: z200.array(DTODocumentationPageAnchor)
5681
+ var DTOGetDocumentationPageAnchorsResponse = z202.object({
5682
+ anchors: z202.array(DTODocumentationPageAnchor)
5615
5683
  });
5616
5684
 
5617
5685
  // src/api/dto/documentation/approvals.ts
5618
- import { z as z201 } from "zod";
5686
+ import { z as z203 } from "zod";
5619
5687
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5620
- var DTODocumentationGroupApprovalState = z201.object({
5621
- persistentId: z201.string(),
5622
- groupId: z201.string(),
5623
- designSystemVersionId: z201.string(),
5688
+ var DTODocumentationGroupApprovalState = z203.object({
5689
+ persistentId: z203.string(),
5690
+ groupId: z203.string(),
5691
+ designSystemVersionId: z203.string(),
5624
5692
  approvalState: DocumentationPageApprovalState
5625
5693
  });
5626
5694
 
@@ -5628,68 +5696,68 @@ var DTODocumentationGroupApprovalState = z201.object({
5628
5696
  var DTOPageBlockItemV2 = PageBlockItemV2;
5629
5697
 
5630
5698
  // src/api/dto/documentation/documentation-page-snapshot.ts
5631
- import { z as z206 } from "zod";
5699
+ import { z as z208 } from "zod";
5632
5700
 
5633
5701
  // src/api/dto/elements/documentation/page-v2.ts
5634
- import { z as z205 } from "zod";
5702
+ import { z as z207 } from "zod";
5635
5703
 
5636
5704
  // src/api/dto/elements/documentation/draft-state.ts
5637
- import { z as z203 } from "zod";
5705
+ import { z as z205 } from "zod";
5638
5706
 
5639
5707
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5640
- import { z as z202 } from "zod";
5708
+ import { z as z204 } from "zod";
5641
5709
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5642
- var DTODocumentationItemConfigurationV2 = z202.object({
5643
- showSidebar: z202.boolean(),
5644
- isPrivate: z202.boolean(),
5645
- isHidden: z202.boolean(),
5710
+ var DTODocumentationItemConfigurationV2 = z204.object({
5711
+ showSidebar: z204.boolean(),
5712
+ isPrivate: z204.boolean(),
5713
+ isHidden: z204.boolean(),
5646
5714
  header: DTODocumentationItemHeaderV2
5647
5715
  });
5648
5716
 
5649
5717
  // src/api/dto/elements/documentation/draft-state.ts
5650
- var DTODocumentationDraftChangeType = z203.enum(["Created", "Updated", "Deleted"]);
5651
- var DTODocumentationDraftStateCreated = z203.object({
5652
- changeType: z203.literal(DTODocumentationDraftChangeType.enum.Created)
5653
- });
5654
- var DTODocumentationDraftStateUpdated = z203.object({
5655
- changeType: z203.literal(DTODocumentationDraftChangeType.enum.Updated),
5656
- changes: z203.object({
5657
- previousTitle: z203.string().optional(),
5718
+ var DTODocumentationDraftChangeType = z205.enum(["Created", "Updated", "Deleted"]);
5719
+ var DTODocumentationDraftStateCreated = z205.object({
5720
+ changeType: z205.literal(DTODocumentationDraftChangeType.enum.Created)
5721
+ });
5722
+ var DTODocumentationDraftStateUpdated = z205.object({
5723
+ changeType: z205.literal(DTODocumentationDraftChangeType.enum.Updated),
5724
+ changes: z205.object({
5725
+ previousTitle: z205.string().optional(),
5658
5726
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5659
- previousContentHash: z203.string().optional()
5727
+ previousContentHash: z205.string().optional()
5660
5728
  })
5661
5729
  });
5662
- var DTODocumentationDraftStateDeleted = z203.object({
5663
- changeType: z203.literal(DTODocumentationDraftChangeType.enum.Deleted),
5664
- deletedAt: z203.coerce.date(),
5665
- deletedByUserId: z203.string()
5730
+ var DTODocumentationDraftStateDeleted = z205.object({
5731
+ changeType: z205.literal(DTODocumentationDraftChangeType.enum.Deleted),
5732
+ deletedAt: z205.coerce.date(),
5733
+ deletedByUserId: z205.string()
5666
5734
  });
5667
- var DTODocumentationDraftState = z203.discriminatedUnion("changeType", [
5735
+ var DTODocumentationDraftState = z205.discriminatedUnion("changeType", [
5668
5736
  DTODocumentationDraftStateCreated,
5669
5737
  DTODocumentationDraftStateUpdated,
5670
5738
  DTODocumentationDraftStateDeleted
5671
5739
  ]);
5672
5740
 
5673
5741
  // src/api/dto/elements/documentation/metadata.ts
5674
- import { z as z204 } from "zod";
5675
- var DTODocumentationPublishMetadata = z204.object({
5676
- lastPublishedByUserId: z204.string(),
5677
- lastPublishedAt: z204.coerce.date()
5742
+ import { z as z206 } from "zod";
5743
+ var DTODocumentationPublishMetadata = z206.object({
5744
+ lastPublishedByUserId: z206.string(),
5745
+ lastPublishedAt: z206.coerce.date()
5678
5746
  });
5679
5747
 
5680
5748
  // src/api/dto/elements/documentation/page-v2.ts
5681
- var DTODocumentationPageV2 = z205.object({
5682
- id: z205.string(),
5683
- persistentId: z205.string(),
5684
- designSystemVersionId: z205.string(),
5685
- title: z205.string(),
5749
+ var DTODocumentationPageV2 = z207.object({
5750
+ id: z207.string(),
5751
+ persistentId: z207.string(),
5752
+ designSystemVersionId: z207.string(),
5753
+ title: z207.string(),
5686
5754
  configuration: DTODocumentationItemConfigurationV2,
5687
- shortPersistentId: z205.string(),
5688
- slug: z205.string().optional(),
5689
- userSlug: z205.string().optional(),
5690
- createdAt: z205.coerce.date(),
5691
- updatedAt: z205.coerce.date(),
5692
- path: z205.string(),
5755
+ shortPersistentId: z207.string(),
5756
+ slug: z207.string().optional(),
5757
+ userSlug: z207.string().optional(),
5758
+ createdAt: z207.coerce.date(),
5759
+ updatedAt: z207.coerce.date(),
5760
+ path: z207.string(),
5693
5761
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5694
5762
  draftState: DTODocumentationDraftState.optional(),
5695
5763
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5697,197 +5765,197 @@ var DTODocumentationPageV2 = z205.object({
5697
5765
  /** Defines the approval state of the documentation page */
5698
5766
  approvalState: DTODocumentationPageApprovalState.optional(),
5699
5767
  // Backward compatibility
5700
- type: z205.literal("Page")
5768
+ type: z207.literal("Page")
5701
5769
  });
5702
- var DTOCreateDocumentationPageInputV2 = z205.object({
5770
+ var DTOCreateDocumentationPageInputV2 = z207.object({
5703
5771
  // Identifier
5704
- persistentId: z205.string().uuid(),
5772
+ persistentId: z207.string().uuid(),
5705
5773
  // Page properties
5706
- title: z205.string(),
5774
+ title: z207.string(),
5707
5775
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5708
5776
  // Page placement properties
5709
- parentPersistentId: z205.string().uuid(),
5710
- afterPersistentId: z205.string().uuid().nullish()
5777
+ parentPersistentId: z207.string().uuid(),
5778
+ afterPersistentId: z207.string().uuid().nullish()
5711
5779
  });
5712
- var DTOUpdateDocumentationPageInputV2 = z205.object({
5780
+ var DTOUpdateDocumentationPageInputV2 = z207.object({
5713
5781
  // Identifier of the group to update
5714
- id: z205.string(),
5782
+ id: z207.string(),
5715
5783
  // Page properties
5716
- title: z205.string().optional(),
5784
+ title: z207.string().optional(),
5717
5785
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5718
5786
  });
5719
- var DTOMoveDocumentationPageInputV2 = z205.object({
5787
+ var DTOMoveDocumentationPageInputV2 = z207.object({
5720
5788
  // Identifier of the group to update
5721
- id: z205.string(),
5789
+ id: z207.string(),
5722
5790
  // Page placement properties
5723
- parentPersistentId: z205.string().uuid(),
5724
- afterPersistentId: z205.string().uuid().nullish()
5791
+ parentPersistentId: z207.string().uuid(),
5792
+ afterPersistentId: z207.string().uuid().nullish()
5725
5793
  });
5726
- var DTODuplicateDocumentationPageInputV2 = z205.object({
5794
+ var DTODuplicateDocumentationPageInputV2 = z207.object({
5727
5795
  // Identifier of the page to duplicate from
5728
- id: z205.string(),
5796
+ id: z207.string(),
5729
5797
  // New page persistent id
5730
- persistentId: z205.string().uuid(),
5798
+ persistentId: z207.string().uuid(),
5731
5799
  // Page placement properties
5732
- parentPersistentId: z205.string().uuid(),
5733
- afterPersistentId: z205.string().uuid().nullish()
5800
+ parentPersistentId: z207.string().uuid(),
5801
+ afterPersistentId: z207.string().uuid().nullish()
5734
5802
  });
5735
- var DTODeleteDocumentationPageInputV2 = z205.object({
5803
+ var DTODeleteDocumentationPageInputV2 = z207.object({
5736
5804
  // Identifier
5737
- id: z205.string()
5805
+ id: z207.string()
5738
5806
  });
5739
- var DTORestoreDocumentationPageInput = z205.object({
5740
- persistentId: z205.string(),
5741
- snapshotId: z205.string().optional()
5807
+ var DTORestoreDocumentationPageInput = z207.object({
5808
+ persistentId: z207.string(),
5809
+ snapshotId: z207.string().optional()
5742
5810
  });
5743
- var DTORestoreDocumentationGroupInput = z205.object({
5744
- persistentId: z205.string(),
5745
- snapshotId: z205.string().optional()
5811
+ var DTORestoreDocumentationGroupInput = z207.object({
5812
+ persistentId: z207.string(),
5813
+ snapshotId: z207.string().optional()
5746
5814
  });
5747
- var DTODocumentationPageApprovalStateChangeInput = z205.object({
5748
- persistentId: z205.string(),
5815
+ var DTODocumentationPageApprovalStateChangeInput = z207.object({
5816
+ persistentId: z207.string(),
5749
5817
  approvalState: DocumentationPageApprovalState.optional()
5750
5818
  });
5751
5819
 
5752
5820
  // src/api/dto/documentation/documentation-page-snapshot.ts
5753
- var DTODocumentationPageSnapshot = z206.object({
5754
- id: z206.string(),
5755
- designSystemVersionId: z206.string(),
5756
- createdAt: z206.string(),
5757
- updatedAt: z206.string(),
5821
+ var DTODocumentationPageSnapshot = z208.object({
5822
+ id: z208.string(),
5823
+ designSystemVersionId: z208.string(),
5824
+ createdAt: z208.string(),
5825
+ updatedAt: z208.string(),
5758
5826
  documentationPage: DTODocumentationPageV2,
5759
- pageContentHash: z206.string(),
5827
+ pageContentHash: z208.string(),
5760
5828
  reason: DesignElementSnapshotReason
5761
5829
  });
5762
5830
 
5763
5831
  // src/api/dto/documentation/link-preview.ts
5764
- import { z as z207 } from "zod";
5765
- var DTODocumentationLinkPreviewResponse = z207.object({
5832
+ import { z as z209 } from "zod";
5833
+ var DTODocumentationLinkPreviewResponse = z209.object({
5766
5834
  linkPreview: DocumentationLinkPreview
5767
5835
  });
5768
- var DTODocumentationLinkPreviewRequest = z207.object({
5769
- url: z207.string().optional(),
5770
- documentationItemPersistentId: z207.string().optional()
5836
+ var DTODocumentationLinkPreviewRequest = z209.object({
5837
+ url: z209.string().optional(),
5838
+ documentationItemPersistentId: z209.string().optional()
5771
5839
  });
5772
5840
 
5773
5841
  // src/api/dto/documentation/publish.ts
5774
- import { z as z211 } from "zod";
5842
+ import { z as z213 } from "zod";
5775
5843
 
5776
5844
  // src/api/dto/export/exporter.ts
5777
- import { z as z208 } from "zod";
5778
- var DTOExporterType = z208.enum(["documentation", "code"]);
5779
- var DTOExporterSource = z208.enum(["git", "upload"]);
5780
- var DTOExporterMembershipRole = z208.enum(["Owner", "OwnerArchived", "User"]);
5781
- var DTOExporter = z208.object({
5782
- id: z208.string(),
5783
- name: z208.string(),
5784
- isPrivate: z208.boolean(),
5845
+ import { z as z210 } from "zod";
5846
+ var DTOExporterType = z210.enum(["documentation", "code"]);
5847
+ var DTOExporterSource = z210.enum(["git", "upload"]);
5848
+ var DTOExporterMembershipRole = z210.enum(["Owner", "OwnerArchived", "User"]);
5849
+ var DTOExporter = z210.object({
5850
+ id: z210.string(),
5851
+ name: z210.string(),
5852
+ isPrivate: z210.boolean(),
5785
5853
  exporterType: DTOExporterType,
5786
- isDefaultDocumentationExporter: z208.boolean(),
5787
- iconURL: z208.string().optional(),
5854
+ isDefaultDocumentationExporter: z210.boolean(),
5855
+ iconURL: z210.string().optional(),
5788
5856
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5789
5857
  customBlocks: PulsarCustomBlock.array(),
5790
- blockVariants: z208.record(z208.string(), PulsarContributionVariant.array()),
5791
- usesBrands: z208.boolean(),
5792
- usesThemes: z208.boolean(),
5858
+ blockVariants: z210.record(z210.string(), PulsarContributionVariant.array()),
5859
+ usesBrands: z210.boolean(),
5860
+ usesThemes: z210.boolean(),
5793
5861
  source: DTOExporterSource,
5794
- gitUrl: z208.string().optional(),
5795
- gitBranch: z208.string().optional(),
5796
- gitDirectory: z208.string().optional()
5862
+ gitUrl: z210.string().optional(),
5863
+ gitBranch: z210.string().optional(),
5864
+ gitDirectory: z210.string().optional()
5797
5865
  });
5798
- var DTOExporterMembership = z208.object({
5799
- workspaceId: z208.string(),
5800
- exporterId: z208.string(),
5866
+ var DTOExporterMembership = z210.object({
5867
+ workspaceId: z210.string(),
5868
+ exporterId: z210.string(),
5801
5869
  role: DTOExporterMembershipRole
5802
5870
  });
5803
- var DTOExporterCreateOutput = z208.object({
5871
+ var DTOExporterCreateOutput = z210.object({
5804
5872
  exporter: DTOExporter,
5805
5873
  membership: DTOExporterMembership
5806
5874
  });
5807
- var DTOExporterGitProviderEnum = z208.enum(["github", "gitlab", "bitbucket", "azure"]);
5808
- var DTOExporterCreateInput = z208.object({
5809
- url: z208.string(),
5875
+ var DTOExporterGitProviderEnum = z210.enum(["github", "gitlab", "bitbucket", "azure"]);
5876
+ var DTOExporterCreateInput = z210.object({
5877
+ url: z210.string(),
5810
5878
  provider: DTOExporterGitProviderEnum
5811
5879
  });
5812
- var DTOExporterUpdateInput = z208.object({
5813
- url: z208.string().optional()
5880
+ var DTOExporterUpdateInput = z210.object({
5881
+ url: z210.string().optional()
5814
5882
  });
5815
5883
 
5816
5884
  // src/api/dto/export/filter.ts
5817
5885
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5818
5886
 
5819
5887
  // src/api/dto/export/job.ts
5820
- import { z as z209 } from "zod";
5821
- var DTOExportJobCreatedBy = z209.object({
5822
- userId: z209.string(),
5823
- userName: z209.string()
5888
+ import { z as z211 } from "zod";
5889
+ var DTOExportJobCreatedBy = z211.object({
5890
+ userId: z211.string(),
5891
+ userName: z211.string()
5824
5892
  });
5825
- var DTOExportJobDesignSystemPreview = z209.object({
5826
- id: z209.string(),
5893
+ var DTOExportJobDesignSystemPreview = z211.object({
5894
+ id: z211.string(),
5827
5895
  meta: ObjectMeta
5828
5896
  });
5829
- var DTOExportJobDesignSystemVersionPreview = z209.object({
5830
- id: z209.string(),
5897
+ var DTOExportJobDesignSystemVersionPreview = z211.object({
5898
+ id: z211.string(),
5831
5899
  meta: ObjectMeta,
5832
- version: z209.string(),
5833
- isReadonly: z209.boolean()
5900
+ version: z211.string(),
5901
+ isReadonly: z211.boolean()
5834
5902
  });
5835
- var DTOExportJobDestinations = z209.object({
5903
+ var DTOExportJobDestinations = z211.object({
5836
5904
  s3: ExporterDestinationS3.optional(),
5837
5905
  azure: ExporterDestinationAzure.optional(),
5838
5906
  bitbucket: ExporterDestinationBitbucket.optional(),
5839
5907
  github: ExporterDestinationGithub.optional(),
5840
5908
  gitlab: ExporterDestinationGitlab.optional(),
5841
5909
  documentation: ExporterDestinationDocs.optional(),
5842
- webhookUrl: z209.string().optional()
5910
+ webhookUrl: z211.string().optional()
5843
5911
  });
5844
5912
  var DTOExportJobResult = ExportJobResult.omit({
5845
5913
  sndocs: true
5846
5914
  }).extend({
5847
5915
  documentation: ExportJobDocsDestinationResult.optional()
5848
5916
  });
5849
- var DTOExportJob = z209.object({
5850
- id: z209.string(),
5851
- createdAt: z209.coerce.date(),
5852
- finishedAt: z209.coerce.date().optional(),
5853
- index: z209.number().optional(),
5917
+ var DTOExportJob = z211.object({
5918
+ id: z211.string(),
5919
+ createdAt: z211.coerce.date(),
5920
+ finishedAt: z211.coerce.date().optional(),
5921
+ index: z211.number().optional(),
5854
5922
  status: ExportJobStatus,
5855
- estimatedExecutionTime: z209.number().optional(),
5923
+ estimatedExecutionTime: z211.number().optional(),
5856
5924
  createdBy: DTOExportJobCreatedBy.optional(),
5857
5925
  designSystem: DTOExportJobDesignSystemPreview,
5858
5926
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5859
5927
  destinations: DTOExportJobDestinations,
5860
- exporterId: z209.string(),
5861
- scheduleId: z209.string().optional(),
5928
+ exporterId: z211.string(),
5929
+ scheduleId: z211.string().optional(),
5862
5930
  result: DTOExportJobResult.optional(),
5863
- brandPersistentId: z209.string().optional(),
5864
- themePersistentId: z209.string().optional(),
5865
- themePersistentIds: z209.string().array().optional()
5931
+ brandPersistentId: z211.string().optional(),
5932
+ themePersistentId: z211.string().optional(),
5933
+ themePersistentIds: z211.string().array().optional()
5866
5934
  });
5867
- var DTOExportJobResponse = z209.object({
5935
+ var DTOExportJobResponse = z211.object({
5868
5936
  job: DTOExportJob
5869
5937
  });
5870
5938
 
5871
5939
  // src/api/dto/export/pipeline.ts
5872
- import { z as z210 } from "zod";
5873
- var DTOPipeline = z210.object({
5874
- id: z210.string(),
5875
- name: z210.string(),
5940
+ import { z as z212 } from "zod";
5941
+ var DTOPipeline = z212.object({
5942
+ id: z212.string(),
5943
+ name: z212.string(),
5876
5944
  eventType: PipelineEventType,
5877
- isEnabled: z210.boolean(),
5878
- workspaceId: z210.string(),
5879
- designSystemId: z210.string(),
5880
- exporterId: z210.string(),
5881
- brandPersistentId: z210.string().optional(),
5882
- themePersistentId: z210.string().optional(),
5883
- themePersistentIds: z210.string().array().optional(),
5945
+ isEnabled: z212.boolean(),
5946
+ workspaceId: z212.string(),
5947
+ designSystemId: z212.string(),
5948
+ exporterId: z212.string(),
5949
+ brandPersistentId: z212.string().optional(),
5950
+ themePersistentId: z212.string().optional(),
5951
+ themePersistentIds: z212.string().array().optional(),
5884
5952
  ...ExportDestinationsMap.shape,
5885
5953
  latestJobs: DTOExportJob.array()
5886
5954
  });
5887
5955
 
5888
5956
  // src/api/dto/documentation/publish.ts
5889
5957
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5890
- var DTOPublishDocumentationRequest = z211.object({
5958
+ var DTOPublishDocumentationRequest = z213.object({
5891
5959
  environment: PublishedDocEnvironment,
5892
5960
  /**
5893
5961
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5895,42 +5963,42 @@ var DTOPublishDocumentationRequest = z211.object({
5895
5963
  */
5896
5964
  changes: DTOPublishDocumentationChanges.optional()
5897
5965
  });
5898
- var DTOPublishDocumentationResponse = z211.object({
5966
+ var DTOPublishDocumentationResponse = z213.object({
5899
5967
  job: DTOExportJob
5900
5968
  });
5901
5969
 
5902
5970
  // src/api/dto/elements/components/figma-component.ts
5903
- import { z as z212 } from "zod";
5971
+ import { z as z214 } from "zod";
5904
5972
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5905
- var DTOFigmaComponentPropertyMap = z212.record(DTOFigmaComponentProperty);
5906
- var DTOFigmaComponent = z212.object({
5907
- id: z212.string(),
5908
- persistentId: z212.string(),
5909
- designSystemVersionId: z212.string(),
5910
- brandId: z212.string(),
5911
- thumbnailUrl: z212.string().optional(),
5912
- svgUrl: z212.string().optional(),
5913
- exportProperties: z212.object({
5914
- isAsset: z212.boolean()
5973
+ var DTOFigmaComponentPropertyMap = z214.record(DTOFigmaComponentProperty);
5974
+ var DTOFigmaComponent = z214.object({
5975
+ id: z214.string(),
5976
+ persistentId: z214.string(),
5977
+ designSystemVersionId: z214.string(),
5978
+ brandId: z214.string(),
5979
+ thumbnailUrl: z214.string().optional(),
5980
+ svgUrl: z214.string().optional(),
5981
+ exportProperties: z214.object({
5982
+ isAsset: z214.boolean()
5915
5983
  }),
5916
- createdAt: z212.coerce.date(),
5917
- updatedAt: z212.coerce.date(),
5984
+ createdAt: z214.coerce.date(),
5985
+ updatedAt: z214.coerce.date(),
5918
5986
  meta: ObjectMeta,
5919
5987
  originComponent: FigmaComponentOrigin.optional(),
5920
- parentComponentPersistentId: z212.string().optional(),
5921
- childrenPersistentIds: z212.string().array().optional(),
5988
+ parentComponentPersistentId: z214.string().optional(),
5989
+ childrenPersistentIds: z214.string().array().optional(),
5922
5990
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5923
- variantPropertyValues: z212.record(z212.string()).optional()
5991
+ variantPropertyValues: z214.record(z214.string()).optional()
5924
5992
  });
5925
- var DTOFigmaComponentListResponse = z212.object({
5993
+ var DTOFigmaComponentListResponse = z214.object({
5926
5994
  components: DTOFigmaComponent.array()
5927
5995
  });
5928
5996
 
5929
5997
  // src/api/dto/elements/documentation/group-action.ts
5930
- import { z as z214 } from "zod";
5998
+ import { z as z216 } from "zod";
5931
5999
 
5932
6000
  // src/api/dto/elements/documentation/group-v2.ts
5933
- import { z as z213 } from "zod";
6001
+ import { z as z215 } from "zod";
5934
6002
  var DTODocumentationGroupV2 = ElementGroup.omit({
5935
6003
  sortOrder: true,
5936
6004
  parentPersistentId: true,
@@ -5940,13 +6008,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5940
6008
  data: true,
5941
6009
  shortPersistentId: true
5942
6010
  }).extend({
5943
- title: z213.string(),
5944
- isRoot: z213.boolean(),
5945
- childrenIds: z213.array(z213.string()),
6011
+ title: z215.string(),
6012
+ isRoot: z215.boolean(),
6013
+ childrenIds: z215.array(z215.string()),
5946
6014
  groupBehavior: DocumentationGroupBehavior,
5947
- shortPersistentId: z213.string(),
6015
+ shortPersistentId: z215.string(),
5948
6016
  configuration: DTODocumentationItemConfigurationV2,
5949
- type: z213.literal("Group"),
6017
+ type: z215.literal("Group"),
5950
6018
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5951
6019
  draftState: DTODocumentationDraftState.optional(),
5952
6020
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -5954,127 +6022,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5954
6022
  //** An approval state for frontend to utilize. */
5955
6023
  approvalState: DTODocumentationGroupApprovalState.optional()
5956
6024
  });
5957
- var DTOCreateDocumentationGroupInput = z213.object({
6025
+ var DTOCreateDocumentationGroupInput = z215.object({
5958
6026
  // Identifier
5959
- persistentId: z213.string().uuid(),
6027
+ persistentId: z215.string().uuid(),
5960
6028
  // Group properties
5961
- title: z213.string(),
6029
+ title: z215.string(),
5962
6030
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5963
6031
  // Group placement properties
5964
- afterPersistentId: z213.string().uuid().nullish(),
5965
- parentPersistentId: z213.string().uuid()
6032
+ afterPersistentId: z215.string().uuid().nullish(),
6033
+ parentPersistentId: z215.string().uuid()
5966
6034
  });
5967
- var DTOUpdateDocumentationGroupInput = z213.object({
6035
+ var DTOUpdateDocumentationGroupInput = z215.object({
5968
6036
  // Identifier of the group to update
5969
- id: z213.string(),
6037
+ id: z215.string(),
5970
6038
  // Group properties
5971
- title: z213.string().optional(),
6039
+ title: z215.string().optional(),
5972
6040
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5973
6041
  });
5974
- var DTOMoveDocumentationGroupInput = z213.object({
6042
+ var DTOMoveDocumentationGroupInput = z215.object({
5975
6043
  // Identifier of the group to update
5976
- id: z213.string(),
6044
+ id: z215.string(),
5977
6045
  // Group placement properties
5978
- parentPersistentId: z213.string().uuid(),
5979
- afterPersistentId: z213.string().uuid().nullish()
6046
+ parentPersistentId: z215.string().uuid(),
6047
+ afterPersistentId: z215.string().uuid().nullish()
5980
6048
  });
5981
- var DTODuplicateDocumentationGroupInput = z213.object({
6049
+ var DTODuplicateDocumentationGroupInput = z215.object({
5982
6050
  // Identifier of the group to duplicate from
5983
- id: z213.string(),
6051
+ id: z215.string(),
5984
6052
  // New group persistent id
5985
- persistentId: z213.string().uuid(),
6053
+ persistentId: z215.string().uuid(),
5986
6054
  // Group placement properties
5987
- afterPersistentId: z213.string().uuid().nullish(),
5988
- parentPersistentId: z213.string().uuid()
6055
+ afterPersistentId: z215.string().uuid().nullish(),
6056
+ parentPersistentId: z215.string().uuid()
5989
6057
  });
5990
- var DTOCreateDocumentationTabInput = z213.object({
6058
+ var DTOCreateDocumentationTabInput = z215.object({
5991
6059
  // New group persistent id
5992
- persistentId: z213.string().uuid(),
6060
+ persistentId: z215.string().uuid(),
5993
6061
  // If this is page, we will attempt to convert it to tab
5994
6062
  // If this is tab group, we will add a new tab to it
5995
- fromItemPersistentId: z213.string(),
5996
- tabName: z213.string()
6063
+ fromItemPersistentId: z215.string(),
6064
+ tabName: z215.string()
5997
6065
  });
5998
- var DTODeleteDocumentationTabGroupInput = z213.object({
6066
+ var DTODeleteDocumentationTabGroupInput = z215.object({
5999
6067
  // Deleted group id
6000
- id: z213.string()
6068
+ id: z215.string()
6001
6069
  });
6002
- var DTODeleteDocumentationGroupInput = z213.object({
6070
+ var DTODeleteDocumentationGroupInput = z215.object({
6003
6071
  // Identifier
6004
- id: z213.string(),
6072
+ id: z215.string(),
6005
6073
  // Deletion options
6006
- deleteSubtree: z213.boolean().default(false)
6074
+ deleteSubtree: z215.boolean().default(false)
6007
6075
  });
6008
6076
 
6009
6077
  // src/api/dto/elements/documentation/group-action.ts
6010
- var SuccessPayload = z214.object({
6011
- success: z214.literal(true)
6078
+ var SuccessPayload = z216.object({
6079
+ success: z216.literal(true)
6012
6080
  });
6013
- var DTODocumentationGroupCreateActionOutputV2 = z214.object({
6014
- type: z214.literal("DocumentationGroupCreate"),
6081
+ var DTODocumentationGroupCreateActionOutputV2 = z216.object({
6082
+ type: z216.literal("DocumentationGroupCreate"),
6015
6083
  output: SuccessPayload
6016
6084
  });
6017
- var DTODocumentationTabCreateActionOutputV2 = z214.object({
6018
- type: z214.literal("DocumentationTabCreate"),
6085
+ var DTODocumentationTabCreateActionOutputV2 = z216.object({
6086
+ type: z216.literal("DocumentationTabCreate"),
6019
6087
  output: SuccessPayload
6020
6088
  });
6021
- var DTODocumentationGroupUpdateActionOutputV2 = z214.object({
6022
- type: z214.literal("DocumentationGroupUpdate"),
6089
+ var DTODocumentationGroupUpdateActionOutputV2 = z216.object({
6090
+ type: z216.literal("DocumentationGroupUpdate"),
6023
6091
  output: SuccessPayload
6024
6092
  });
6025
- var DTODocumentationGroupMoveActionOutputV2 = z214.object({
6026
- type: z214.literal("DocumentationGroupMove"),
6093
+ var DTODocumentationGroupMoveActionOutputV2 = z216.object({
6094
+ type: z216.literal("DocumentationGroupMove"),
6027
6095
  output: SuccessPayload
6028
6096
  });
6029
- var DTODocumentationGroupDuplicateActionOutputV2 = z214.object({
6030
- type: z214.literal("DocumentationGroupDuplicate"),
6097
+ var DTODocumentationGroupDuplicateActionOutputV2 = z216.object({
6098
+ type: z216.literal("DocumentationGroupDuplicate"),
6031
6099
  output: SuccessPayload
6032
6100
  });
6033
- var DTODocumentationGroupDeleteActionOutputV2 = z214.object({
6034
- type: z214.literal("DocumentationGroupDelete"),
6101
+ var DTODocumentationGroupDeleteActionOutputV2 = z216.object({
6102
+ type: z216.literal("DocumentationGroupDelete"),
6035
6103
  output: SuccessPayload
6036
6104
  });
6037
- var DTODocumentationTabGroupDeleteActionOutputV2 = z214.object({
6038
- type: z214.literal("DocumentationTabGroupDelete"),
6105
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z216.object({
6106
+ type: z216.literal("DocumentationTabGroupDelete"),
6039
6107
  output: SuccessPayload
6040
6108
  });
6041
- var DTODocumentationGroupCreateActionInputV2 = z214.object({
6042
- type: z214.literal("DocumentationGroupCreate"),
6109
+ var DTODocumentationGroupCreateActionInputV2 = z216.object({
6110
+ type: z216.literal("DocumentationGroupCreate"),
6043
6111
  input: DTOCreateDocumentationGroupInput
6044
6112
  });
6045
- var DTODocumentationTabCreateActionInputV2 = z214.object({
6046
- type: z214.literal("DocumentationTabCreate"),
6113
+ var DTODocumentationTabCreateActionInputV2 = z216.object({
6114
+ type: z216.literal("DocumentationTabCreate"),
6047
6115
  input: DTOCreateDocumentationTabInput
6048
6116
  });
6049
- var DTODocumentationGroupUpdateActionInputV2 = z214.object({
6050
- type: z214.literal("DocumentationGroupUpdate"),
6117
+ var DTODocumentationGroupUpdateActionInputV2 = z216.object({
6118
+ type: z216.literal("DocumentationGroupUpdate"),
6051
6119
  input: DTOUpdateDocumentationGroupInput
6052
6120
  });
6053
- var DTODocumentationGroupMoveActionInputV2 = z214.object({
6054
- type: z214.literal("DocumentationGroupMove"),
6121
+ var DTODocumentationGroupMoveActionInputV2 = z216.object({
6122
+ type: z216.literal("DocumentationGroupMove"),
6055
6123
  input: DTOMoveDocumentationGroupInput
6056
6124
  });
6057
- var DTODocumentationGroupDuplicateActionInputV2 = z214.object({
6058
- type: z214.literal("DocumentationGroupDuplicate"),
6125
+ var DTODocumentationGroupDuplicateActionInputV2 = z216.object({
6126
+ type: z216.literal("DocumentationGroupDuplicate"),
6059
6127
  input: DTODuplicateDocumentationGroupInput
6060
6128
  });
6061
- var DTODocumentationGroupDeleteActionInputV2 = z214.object({
6062
- type: z214.literal("DocumentationGroupDelete"),
6129
+ var DTODocumentationGroupDeleteActionInputV2 = z216.object({
6130
+ type: z216.literal("DocumentationGroupDelete"),
6063
6131
  input: DTODeleteDocumentationGroupInput
6064
6132
  });
6065
- var DTODocumentationTabGroupDeleteActionInputV2 = z214.object({
6066
- type: z214.literal("DocumentationTabGroupDelete"),
6133
+ var DTODocumentationTabGroupDeleteActionInputV2 = z216.object({
6134
+ type: z216.literal("DocumentationTabGroupDelete"),
6067
6135
  input: DTODeleteDocumentationTabGroupInput
6068
6136
  });
6069
6137
 
6070
6138
  // src/api/dto/elements/documentation/group-v1.ts
6071
- import { z as z216 } from "zod";
6139
+ import { z as z218 } from "zod";
6072
6140
 
6073
6141
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6074
- import { z as z215 } from "zod";
6075
- var DocumentationColorV1 = z215.object({
6076
- aliasTo: z215.string().optional(),
6077
- value: z215.string().optional()
6142
+ import { z as z217 } from "zod";
6143
+ var DocumentationColorV1 = z217.object({
6144
+ aliasTo: z217.string().optional(),
6145
+ value: z217.string().optional()
6078
6146
  });
6079
6147
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6080
6148
  foregroundColor: true,
@@ -6083,10 +6151,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6083
6151
  foregroundColor: DocumentationColorV1.optional(),
6084
6152
  backgroundColor: DocumentationColorV1.optional()
6085
6153
  });
6086
- var DTODocumentationItemConfigurationV1 = z215.object({
6087
- showSidebar: z215.boolean(),
6088
- isPrivate: z215.boolean(),
6089
- isHidden: z215.boolean(),
6154
+ var DTODocumentationItemConfigurationV1 = z217.object({
6155
+ showSidebar: z217.boolean(),
6156
+ isPrivate: z217.boolean(),
6157
+ isHidden: z217.boolean(),
6090
6158
  header: DTODocumentationItemHeaderV1
6091
6159
  });
6092
6160
 
@@ -6100,27 +6168,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6100
6168
  data: true,
6101
6169
  shortPersistentId: true
6102
6170
  }).extend({
6103
- title: z216.string(),
6104
- isRoot: z216.boolean(),
6105
- childrenIds: z216.array(z216.string()),
6171
+ title: z218.string(),
6172
+ isRoot: z218.boolean(),
6173
+ childrenIds: z218.array(z218.string()),
6106
6174
  groupBehavior: DocumentationGroupBehavior,
6107
- shortPersistentId: z216.string(),
6108
- type: z216.literal("Group")
6175
+ shortPersistentId: z218.string(),
6176
+ type: z218.literal("Group")
6109
6177
  });
6110
6178
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6111
6179
  configuration: DTODocumentationItemConfigurationV1
6112
6180
  });
6113
6181
 
6114
6182
  // src/api/dto/elements/documentation/hierarchy.ts
6115
- import { z as z217 } from "zod";
6116
- var DTODocumentationHierarchyV2 = z217.object({
6117
- pages: z217.array(
6183
+ import { z as z219 } from "zod";
6184
+ var DTODocumentationHierarchyV2 = z219.object({
6185
+ pages: z219.array(
6118
6186
  DTODocumentationPageV2.extend({
6119
6187
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6120
6188
  draftState: DTODocumentationDraftState.optional()
6121
6189
  })
6122
6190
  ),
6123
- groups: z217.array(
6191
+ groups: z219.array(
6124
6192
  DTODocumentationGroupV2.extend({
6125
6193
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6126
6194
  draftState: DTODocumentationDraftState.optional()
@@ -6129,84 +6197,84 @@ var DTODocumentationHierarchyV2 = z217.object({
6129
6197
  });
6130
6198
 
6131
6199
  // src/api/dto/elements/documentation/page-actions-v2.ts
6132
- import { z as z218 } from "zod";
6133
- var SuccessPayload2 = z218.object({
6134
- success: z218.literal(true)
6200
+ import { z as z220 } from "zod";
6201
+ var SuccessPayload2 = z220.object({
6202
+ success: z220.literal(true)
6135
6203
  });
6136
- var DTODocumentationPageCreateActionOutputV2 = z218.object({
6137
- type: z218.literal("DocumentationPageCreate"),
6204
+ var DTODocumentationPageCreateActionOutputV2 = z220.object({
6205
+ type: z220.literal("DocumentationPageCreate"),
6138
6206
  output: SuccessPayload2
6139
6207
  });
6140
- var DTODocumentationPageUpdateActionOutputV2 = z218.object({
6141
- type: z218.literal("DocumentationPageUpdate"),
6208
+ var DTODocumentationPageUpdateActionOutputV2 = z220.object({
6209
+ type: z220.literal("DocumentationPageUpdate"),
6142
6210
  output: SuccessPayload2
6143
6211
  });
6144
- var DTODocumentationPageMoveActionOutputV2 = z218.object({
6145
- type: z218.literal("DocumentationPageMove"),
6212
+ var DTODocumentationPageMoveActionOutputV2 = z220.object({
6213
+ type: z220.literal("DocumentationPageMove"),
6146
6214
  output: SuccessPayload2
6147
6215
  });
6148
- var DTODocumentationPageDuplicateActionOutputV2 = z218.object({
6149
- type: z218.literal("DocumentationPageDuplicate"),
6216
+ var DTODocumentationPageDuplicateActionOutputV2 = z220.object({
6217
+ type: z220.literal("DocumentationPageDuplicate"),
6150
6218
  output: SuccessPayload2
6151
6219
  });
6152
- var DTODocumentationPageDeleteActionOutputV2 = z218.object({
6153
- type: z218.literal("DocumentationPageDelete"),
6220
+ var DTODocumentationPageDeleteActionOutputV2 = z220.object({
6221
+ type: z220.literal("DocumentationPageDelete"),
6154
6222
  output: SuccessPayload2
6155
6223
  });
6156
- var DTODocumentationPageRestoreActionOutput = z218.object({
6157
- type: z218.literal("DocumentationPageRestore"),
6224
+ var DTODocumentationPageRestoreActionOutput = z220.object({
6225
+ type: z220.literal("DocumentationPageRestore"),
6158
6226
  output: SuccessPayload2
6159
6227
  });
6160
- var DTODocumentationGroupRestoreActionOutput = z218.object({
6161
- type: z218.literal("DocumentationGroupRestore"),
6228
+ var DTODocumentationGroupRestoreActionOutput = z220.object({
6229
+ type: z220.literal("DocumentationGroupRestore"),
6162
6230
  output: SuccessPayload2
6163
6231
  });
6164
- var DTODocumentationPageApprovalStateChangeActionOutput = z218.object({
6165
- type: z218.literal("DocumentationPageApprovalStateChange"),
6232
+ var DTODocumentationPageApprovalStateChangeActionOutput = z220.object({
6233
+ type: z220.literal("DocumentationPageApprovalStateChange"),
6166
6234
  output: SuccessPayload2
6167
6235
  });
6168
- var DTODocumentationPageCreateActionInputV2 = z218.object({
6169
- type: z218.literal("DocumentationPageCreate"),
6236
+ var DTODocumentationPageCreateActionInputV2 = z220.object({
6237
+ type: z220.literal("DocumentationPageCreate"),
6170
6238
  input: DTOCreateDocumentationPageInputV2
6171
6239
  });
6172
- var DTODocumentationPageUpdateActionInputV2 = z218.object({
6173
- type: z218.literal("DocumentationPageUpdate"),
6240
+ var DTODocumentationPageUpdateActionInputV2 = z220.object({
6241
+ type: z220.literal("DocumentationPageUpdate"),
6174
6242
  input: DTOUpdateDocumentationPageInputV2
6175
6243
  });
6176
- var DTODocumentationPageMoveActionInputV2 = z218.object({
6177
- type: z218.literal("DocumentationPageMove"),
6244
+ var DTODocumentationPageMoveActionInputV2 = z220.object({
6245
+ type: z220.literal("DocumentationPageMove"),
6178
6246
  input: DTOMoveDocumentationPageInputV2
6179
6247
  });
6180
- var DTODocumentationPageDuplicateActionInputV2 = z218.object({
6181
- type: z218.literal("DocumentationPageDuplicate"),
6248
+ var DTODocumentationPageDuplicateActionInputV2 = z220.object({
6249
+ type: z220.literal("DocumentationPageDuplicate"),
6182
6250
  input: DTODuplicateDocumentationPageInputV2
6183
6251
  });
6184
- var DTODocumentationPageDeleteActionInputV2 = z218.object({
6185
- type: z218.literal("DocumentationPageDelete"),
6252
+ var DTODocumentationPageDeleteActionInputV2 = z220.object({
6253
+ type: z220.literal("DocumentationPageDelete"),
6186
6254
  input: DTODeleteDocumentationPageInputV2
6187
6255
  });
6188
- var DTODocumentationPageRestoreActionInput = z218.object({
6189
- type: z218.literal("DocumentationPageRestore"),
6256
+ var DTODocumentationPageRestoreActionInput = z220.object({
6257
+ type: z220.literal("DocumentationPageRestore"),
6190
6258
  input: DTORestoreDocumentationPageInput
6191
6259
  });
6192
- var DTODocumentationGroupRestoreActionInput = z218.object({
6193
- type: z218.literal("DocumentationGroupRestore"),
6260
+ var DTODocumentationGroupRestoreActionInput = z220.object({
6261
+ type: z220.literal("DocumentationGroupRestore"),
6194
6262
  input: DTORestoreDocumentationGroupInput
6195
6263
  });
6196
- var DTODocumentationPageApprovalStateChangeActionInput = z218.object({
6197
- type: z218.literal("DocumentationPageApprovalStateChange"),
6264
+ var DTODocumentationPageApprovalStateChangeActionInput = z220.object({
6265
+ type: z220.literal("DocumentationPageApprovalStateChange"),
6198
6266
  input: DTODocumentationPageApprovalStateChangeInput
6199
6267
  });
6200
6268
 
6201
6269
  // src/api/dto/elements/documentation/page-content.ts
6202
- import { z as z219 } from "zod";
6270
+ import { z as z221 } from "zod";
6203
6271
  var DTODocumentationPageContent = DocumentationPageContent;
6204
- var DTODocumentationPageContentGetResponse = z219.object({
6272
+ var DTODocumentationPageContentGetResponse = z221.object({
6205
6273
  pageContent: DTODocumentationPageContent
6206
6274
  });
6207
6275
 
6208
6276
  // src/api/dto/elements/documentation/page-v1.ts
6209
- import { z as z220 } from "zod";
6277
+ import { z as z222 } from "zod";
6210
6278
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6211
6279
  data: true,
6212
6280
  meta: true,
@@ -6214,32 +6282,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6214
6282
  sortOrder: true
6215
6283
  }).extend({
6216
6284
  configuration: DTODocumentationItemConfigurationV1,
6217
- blocks: z220.array(PageBlockV1),
6218
- title: z220.string(),
6219
- path: z220.string()
6285
+ blocks: z222.array(PageBlockV1),
6286
+ title: z222.string(),
6287
+ path: z222.string()
6220
6288
  });
6221
6289
 
6222
6290
  // src/api/dto/elements/figma-nodes/figma-node.ts
6223
- import { z as z221 } from "zod";
6291
+ import { z as z223 } from "zod";
6224
6292
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6225
- var DTOFigmaNodeOrigin = z221.object({
6226
- sourceId: z221.string(),
6227
- fileId: z221.string().optional(),
6228
- parentName: z221.string().optional()
6293
+ var DTOFigmaNodeOrigin = z223.object({
6294
+ sourceId: z223.string(),
6295
+ fileId: z223.string().optional(),
6296
+ parentName: z223.string().optional()
6229
6297
  });
6230
- var DTOFigmaNodeData = z221.object({
6298
+ var DTOFigmaNodeData = z223.object({
6231
6299
  // Id of the node in the Figma file
6232
- figmaNodeId: z221.string(),
6300
+ figmaNodeId: z223.string(),
6233
6301
  // Validity
6234
- isValid: z221.boolean(),
6302
+ isValid: z223.boolean(),
6235
6303
  // Asset data
6236
- assetId: z221.string(),
6237
- assetUrl: z221.string(),
6304
+ assetId: z223.string(),
6305
+ assetUrl: z223.string(),
6238
6306
  assetFormat: DTOFigmaNodeRenderFormat,
6239
6307
  // Asset metadata
6240
- assetScale: z221.number(),
6241
- assetWidth: z221.number().optional(),
6242
- assetHeight: z221.number().optional()
6308
+ assetScale: z223.number(),
6309
+ assetWidth: z223.number().optional(),
6310
+ assetHeight: z223.number().optional()
6243
6311
  });
6244
6312
  var DTOFigmaNode = FigmaNodeReference.omit({
6245
6313
  data: true,
@@ -6248,15 +6316,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6248
6316
  data: DTOFigmaNodeData,
6249
6317
  origin: DTOFigmaNodeOrigin
6250
6318
  });
6251
- var DTOFigmaNodeRenderInput = z221.object({
6319
+ var DTOFigmaNodeRenderInput = z223.object({
6252
6320
  /**
6253
6321
  * Id of a design system's data source representing a linked Figma file
6254
6322
  */
6255
- sourceId: z221.string(),
6323
+ sourceId: z223.string(),
6256
6324
  /**
6257
6325
  * Id of a node within the Figma file
6258
6326
  */
6259
- figmaFileNodeId: z221.string(),
6327
+ figmaFileNodeId: z223.string(),
6260
6328
  /**
6261
6329
  * Format in which the node must be rendered, png by default.
6262
6330
  */
@@ -6264,97 +6332,97 @@ var DTOFigmaNodeRenderInput = z221.object({
6264
6332
  });
6265
6333
 
6266
6334
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6267
- import { z as z222 } from "zod";
6268
- var DTOFigmaNodeRenderActionOutput = z222.object({
6269
- type: z222.literal("FigmaNodeRender"),
6270
- figmaNodes: z222.array(DTOFigmaNode)
6335
+ import { z as z224 } from "zod";
6336
+ var DTOFigmaNodeRenderActionOutput = z224.object({
6337
+ type: z224.literal("FigmaNodeRender"),
6338
+ figmaNodes: z224.array(DTOFigmaNode)
6271
6339
  });
6272
- var DTOFigmaNodeRenderActionInput = z222.object({
6273
- type: z222.literal("FigmaNodeRender"),
6340
+ var DTOFigmaNodeRenderActionInput = z224.object({
6341
+ type: z224.literal("FigmaNodeRender"),
6274
6342
  input: DTOFigmaNodeRenderInput.array()
6275
6343
  });
6276
6344
 
6277
6345
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6278
- import { z as z224 } from "zod";
6346
+ import { z as z226 } from "zod";
6279
6347
 
6280
6348
  // src/api/dto/elements/properties/property-definitions.ts
6281
- import { z as z223 } from "zod";
6349
+ import { z as z225 } from "zod";
6282
6350
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6283
- var DTOElementPropertyDefinition = z223.object({
6284
- id: z223.string(),
6285
- designSystemVersionId: z223.string(),
6351
+ var DTOElementPropertyDefinition = z225.object({
6352
+ id: z225.string(),
6353
+ designSystemVersionId: z225.string(),
6286
6354
  meta: ObjectMeta,
6287
- persistentId: z223.string(),
6355
+ persistentId: z225.string(),
6288
6356
  type: ElementPropertyTypeSchema,
6289
6357
  targetElementType: ElementPropertyTargetType,
6290
- codeName: z223.string().regex(CODE_NAME_REGEX2),
6291
- options: z223.array(ElementPropertyDefinitionOption).optional(),
6358
+ codeName: z225.string().regex(CODE_NAME_REGEX2),
6359
+ options: z225.array(ElementPropertyDefinitionOption).optional(),
6292
6360
  linkElementType: ElementPropertyLinkType.optional()
6293
6361
  });
6294
- var DTOElementPropertyDefinitionsGetResponse = z223.object({
6295
- definitions: z223.array(DTOElementPropertyDefinition)
6362
+ var DTOElementPropertyDefinitionsGetResponse = z225.object({
6363
+ definitions: z225.array(DTOElementPropertyDefinition)
6296
6364
  });
6297
6365
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6298
6366
  id: true,
6299
6367
  designSystemVersionId: true
6300
6368
  });
6301
- var DTOUpdateElementPropertyDefinitionInputV2 = z223.object({
6302
- id: z223.string(),
6303
- name: z223.string().optional(),
6304
- description: z223.string().optional(),
6305
- codeName: z223.string().regex(CODE_NAME_REGEX2).optional(),
6306
- options: z223.array(ElementPropertyDefinitionOption).optional()
6369
+ var DTOUpdateElementPropertyDefinitionInputV2 = z225.object({
6370
+ id: z225.string(),
6371
+ name: z225.string().optional(),
6372
+ description: z225.string().optional(),
6373
+ codeName: z225.string().regex(CODE_NAME_REGEX2).optional(),
6374
+ options: z225.array(ElementPropertyDefinitionOption).optional()
6307
6375
  });
6308
- var DTODeleteElementPropertyDefinitionInputV2 = z223.object({
6309
- id: z223.string()
6376
+ var DTODeleteElementPropertyDefinitionInputV2 = z225.object({
6377
+ id: z225.string()
6310
6378
  });
6311
6379
 
6312
6380
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6313
- var SuccessPayload3 = z224.object({
6314
- success: z224.literal(true)
6381
+ var SuccessPayload3 = z226.object({
6382
+ success: z226.literal(true)
6315
6383
  });
6316
- var DTOPropertyDefinitionCreateActionOutputV2 = z224.object({
6317
- type: z224.literal("PropertyDefinitionCreate"),
6384
+ var DTOPropertyDefinitionCreateActionOutputV2 = z226.object({
6385
+ type: z226.literal("PropertyDefinitionCreate"),
6318
6386
  definition: DTOElementPropertyDefinition
6319
6387
  });
6320
- var DTOPropertyDefinitionUpdateActionOutputV2 = z224.object({
6321
- type: z224.literal("PropertyDefinitionUpdate"),
6388
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z226.object({
6389
+ type: z226.literal("PropertyDefinitionUpdate"),
6322
6390
  definition: DTOElementPropertyDefinition
6323
6391
  });
6324
- var DTOPropertyDefinitionDeleteActionOutputV2 = z224.object({
6325
- type: z224.literal("PropertyDefinitionDelete"),
6392
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z226.object({
6393
+ type: z226.literal("PropertyDefinitionDelete"),
6326
6394
  output: SuccessPayload3
6327
6395
  });
6328
- var DTOPropertyDefinitionCreateActionInputV2 = z224.object({
6329
- type: z224.literal("PropertyDefinitionCreate"),
6396
+ var DTOPropertyDefinitionCreateActionInputV2 = z226.object({
6397
+ type: z226.literal("PropertyDefinitionCreate"),
6330
6398
  input: DTOCreateElementPropertyDefinitionInputV2
6331
6399
  });
6332
- var DTOPropertyDefinitionUpdateActionInputV2 = z224.object({
6333
- type: z224.literal("PropertyDefinitionUpdate"),
6400
+ var DTOPropertyDefinitionUpdateActionInputV2 = z226.object({
6401
+ type: z226.literal("PropertyDefinitionUpdate"),
6334
6402
  input: DTOUpdateElementPropertyDefinitionInputV2
6335
6403
  });
6336
- var DTOPropertyDefinitionDeleteActionInputV2 = z224.object({
6337
- type: z224.literal("PropertyDefinitionDelete"),
6404
+ var DTOPropertyDefinitionDeleteActionInputV2 = z226.object({
6405
+ type: z226.literal("PropertyDefinitionDelete"),
6338
6406
  input: DTODeleteElementPropertyDefinitionInputV2
6339
6407
  });
6340
6408
 
6341
6409
  // src/api/dto/elements/properties/property-values.ts
6342
- import { z as z225 } from "zod";
6343
- var DTOElementPropertyValue = z225.object({
6344
- id: z225.string(),
6345
- designSystemVersionId: z225.string(),
6346
- definitionId: z225.string(),
6347
- targetElementId: z225.string(),
6348
- value: z225.union([z225.string(), z225.number(), z225.boolean()]).optional(),
6349
- valuePreview: z225.string().optional()
6410
+ import { z as z227 } from "zod";
6411
+ var DTOElementPropertyValue = z227.object({
6412
+ id: z227.string(),
6413
+ designSystemVersionId: z227.string(),
6414
+ definitionId: z227.string(),
6415
+ targetElementId: z227.string(),
6416
+ value: z227.union([z227.string(), z227.number(), z227.boolean()]).optional(),
6417
+ valuePreview: z227.string().optional()
6350
6418
  });
6351
- var DTOElementPropertyValuesGetResponse = z225.object({
6352
- values: z225.array(DTOElementPropertyValue)
6419
+ var DTOElementPropertyValuesGetResponse = z227.object({
6420
+ values: z227.array(DTOElementPropertyValue)
6353
6421
  });
6354
6422
 
6355
6423
  // src/api/dto/elements/elements-action-v2.ts
6356
- import { z as z226 } from "zod";
6357
- var DTOElementActionOutput = z226.discriminatedUnion("type", [
6424
+ import { z as z228 } from "zod";
6425
+ var DTOElementActionOutput = z228.discriminatedUnion("type", [
6358
6426
  // Documentation pages
6359
6427
  DTODocumentationPageCreateActionOutputV2,
6360
6428
  DTODocumentationPageUpdateActionOutputV2,
@@ -6381,7 +6449,7 @@ var DTOElementActionOutput = z226.discriminatedUnion("type", [
6381
6449
  // Approvals
6382
6450
  DTODocumentationPageApprovalStateChangeActionOutput
6383
6451
  ]);
6384
- var DTOElementActionInput = z226.discriminatedUnion("type", [
6452
+ var DTOElementActionInput = z228.discriminatedUnion("type", [
6385
6453
  // Documentation pages
6386
6454
  DTODocumentationPageCreateActionInputV2,
6387
6455
  DTODocumentationPageUpdateActionInputV2,
@@ -6410,60 +6478,60 @@ var DTOElementActionInput = z226.discriminatedUnion("type", [
6410
6478
  ]);
6411
6479
 
6412
6480
  // src/api/dto/elements/get-elements-v2.ts
6413
- import { z as z227 } from "zod";
6414
- var DTOElementsGetTypeFilter = z227.enum(["FigmaNode"]);
6415
- var DTOElementsGetQuerySchema = z227.object({
6416
- types: z227.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6481
+ import { z as z229 } from "zod";
6482
+ var DTOElementsGetTypeFilter = z229.enum(["FigmaNode"]);
6483
+ var DTOElementsGetQuerySchema = z229.object({
6484
+ types: z229.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6417
6485
  });
6418
- var DTOElementsGetOutput = z227.object({
6419
- figmaNodes: z227.array(DTOFigmaNode).optional()
6486
+ var DTOElementsGetOutput = z229.object({
6487
+ figmaNodes: z229.array(DTOFigmaNode).optional()
6420
6488
  });
6421
6489
 
6422
6490
  // src/api/dto/figma-components/assets/download.ts
6423
- import { z as z228 } from "zod";
6424
- var DTOAssetRenderConfiguration = z228.object({
6425
- prefix: z228.string().optional(),
6426
- suffix: z228.string().optional(),
6427
- scale: z228.enum(["x1", "x2", "x3", "x4"]),
6428
- format: z228.enum(["png", "pdf", "svg"])
6429
- });
6430
- var DTORenderedAssetFile = z228.object({
6431
- assetId: z228.string(),
6432
- fileName: z228.string(),
6433
- sourceUrl: z228.string(),
6491
+ import { z as z230 } from "zod";
6492
+ var DTOAssetRenderConfiguration = z230.object({
6493
+ prefix: z230.string().optional(),
6494
+ suffix: z230.string().optional(),
6495
+ scale: z230.enum(["x1", "x2", "x3", "x4"]),
6496
+ format: z230.enum(["png", "pdf", "svg"])
6497
+ });
6498
+ var DTORenderedAssetFile = z230.object({
6499
+ assetId: z230.string(),
6500
+ fileName: z230.string(),
6501
+ sourceUrl: z230.string(),
6434
6502
  settings: DTOAssetRenderConfiguration,
6435
- originalName: z228.string()
6503
+ originalName: z230.string()
6436
6504
  });
6437
- var DTODownloadAssetsRequest = z228.object({
6438
- persistentIds: z228.array(z228.string().uuid()).optional(),
6505
+ var DTODownloadAssetsRequest = z230.object({
6506
+ persistentIds: z230.array(z230.string().uuid()).optional(),
6439
6507
  settings: DTOAssetRenderConfiguration.array()
6440
6508
  });
6441
- var DTODownloadAssetsResponse = z228.object({
6509
+ var DTODownloadAssetsResponse = z230.object({
6442
6510
  items: DTORenderedAssetFile.array()
6443
6511
  });
6444
6512
 
6445
6513
  // src/api/dto/liveblocks/auth-response.ts
6446
- import { z as z229 } from "zod";
6447
- var DTOLiveblocksAuthResponse = z229.object({
6448
- token: z229.string()
6514
+ import { z as z231 } from "zod";
6515
+ var DTOLiveblocksAuthResponse = z231.object({
6516
+ token: z231.string()
6449
6517
  });
6450
6518
 
6451
6519
  // src/api/dto/users/authenticated-user.ts
6452
- import { z as z231 } from "zod";
6520
+ import { z as z233 } from "zod";
6453
6521
 
6454
6522
  // src/api/dto/users/user.ts
6455
- import { z as z230 } from "zod";
6456
- var DTOUserProfile = z230.object({
6457
- name: z230.string(),
6458
- nickname: z230.string().optional(),
6459
- avatar: z230.string().optional()
6460
- });
6461
- var DTOUser = z230.object({
6462
- id: z230.string(),
6463
- email: z230.string(),
6523
+ import { z as z232 } from "zod";
6524
+ var DTOUserProfile = z232.object({
6525
+ name: z232.string(),
6526
+ nickname: z232.string().optional(),
6527
+ avatar: z232.string().optional()
6528
+ });
6529
+ var DTOUser = z232.object({
6530
+ id: z232.string(),
6531
+ email: z232.string(),
6464
6532
  profile: DTOUserProfile
6465
6533
  });
6466
- var DTOUserGetResponse = z230.object({
6534
+ var DTOUserGetResponse = z232.object({
6467
6535
  user: DTOUser
6468
6536
  });
6469
6537
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -6472,34 +6540,34 @@ var DTOUserProfileUpdate = UserProfileUpdate;
6472
6540
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
6473
6541
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
6474
6542
  var DTOUserSource = UserSource;
6475
- var DTOUserOnboarding = z231.object({
6476
- companyName: z231.string().optional(),
6477
- numberOfPeopleInOrg: z231.string().optional(),
6478
- numberOfPeopleInDesignTeam: z231.string().optional(),
6543
+ var DTOUserOnboarding = z233.object({
6544
+ companyName: z233.string().optional(),
6545
+ numberOfPeopleInOrg: z233.string().optional(),
6546
+ numberOfPeopleInDesignTeam: z233.string().optional(),
6479
6547
  department: DTOUserOnboardingDepartment.optional(),
6480
- jobTitle: z231.string().optional(),
6481
- phase: z231.string().optional(),
6548
+ jobTitle: z233.string().optional(),
6549
+ phase: z233.string().optional(),
6482
6550
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6483
- designSystemName: z231.string().optional(),
6484
- defaultDestination: z231.string().optional(),
6485
- isPageDraftOnboardingFinished: z231.boolean().optional()
6551
+ designSystemName: z233.string().optional(),
6552
+ defaultDestination: z233.string().optional(),
6553
+ isPageDraftOnboardingFinished: z233.boolean().optional()
6486
6554
  });
6487
6555
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
6488
6556
  onboarding: DTOUserOnboarding.optional()
6489
6557
  });
6490
6558
  var DTOAuthenticatedUser = DTOUser.extend({
6491
6559
  profile: DTOAuthenticatedUserProfile,
6492
- createdAt: z231.coerce.date(),
6493
- loggedOutAt: z231.coerce.date().optional(),
6560
+ createdAt: z233.coerce.date(),
6561
+ loggedOutAt: z233.coerce.date().optional(),
6494
6562
  source: DTOUserSource.optional()
6495
6563
  });
6496
- var DTOAuthenticatedUserResponse = z231.object({
6564
+ var DTOAuthenticatedUserResponse = z233.object({
6497
6565
  user: DTOAuthenticatedUser
6498
6566
  });
6499
6567
 
6500
6568
  // src/api/dto/users/update.ts
6501
- import { z as z232 } from "zod";
6502
- var DTOUserProfileUpdateResponse = z232.object({
6569
+ import { z as z234 } from "zod";
6570
+ var DTOUserProfileUpdateResponse = z234.object({
6503
6571
  user: User
6504
6572
  });
6505
6573
 
@@ -6532,7 +6600,7 @@ var DesignSystemVersionsEndpoint = class {
6532
6600
  };
6533
6601
 
6534
6602
  // src/api/endpoints/design-systems.ts
6535
- import { z as z233 } from "zod";
6603
+ import { z as z235 } from "zod";
6536
6604
  var DesignSystemsEndpoint = class {
6537
6605
  constructor(requestExecutor) {
6538
6606
  this.requestExecutor = requestExecutor;
@@ -6548,10 +6616,10 @@ var DesignSystemsEndpoint = class {
6548
6616
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
6549
6617
  }
6550
6618
  get(dsId) {
6551
- return this.requestExecutor.json(`/design-systems/${dsId}`, z233.any());
6619
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z235.any());
6552
6620
  }
6553
6621
  delete(dsId) {
6554
- return this.requestExecutor.json(`/design-systems/${dsId}`, z233.any(), { method: "DELETE" });
6622
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z235.any(), { method: "DELETE" });
6555
6623
  }
6556
6624
  update(dsId, body) {
6557
6625
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -6567,6 +6635,19 @@ var DesignSystemsEndpoint = class {
6567
6635
  }
6568
6636
  };
6569
6637
 
6638
+ // src/api/endpoints/token-collections.ts
6639
+ var TokenCollectionsEndpoint = class {
6640
+ constructor(requestExecutor) {
6641
+ this.requestExecutor = requestExecutor;
6642
+ }
6643
+ list(dsId, vId) {
6644
+ return this.requestExecutor.json(
6645
+ `/design-systems/${dsId}/versions/${vId}/token-collections`,
6646
+ DTOTokenCollectionsListReponse
6647
+ );
6648
+ }
6649
+ };
6650
+
6570
6651
  // src/api/endpoints/users.ts
6571
6652
  var UsersEndpoint = class {
6572
6653
  constructor(requestExecutor) {
@@ -6607,7 +6688,7 @@ var WorkspaceInvitationsEndpoint = class {
6607
6688
  };
6608
6689
 
6609
6690
  // src/api/endpoints/workspace-members.ts
6610
- import { z as z234 } from "zod";
6691
+ import { z as z236 } from "zod";
6611
6692
  var WorkspaceMembersEndpoint = class {
6612
6693
  constructor(requestExecutor) {
6613
6694
  this.requestExecutor = requestExecutor;
@@ -6624,7 +6705,7 @@ var WorkspaceMembersEndpoint = class {
6624
6705
  });
6625
6706
  }
6626
6707
  invite(workspaceId, body) {
6627
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z234.any(), { method: "POST", body });
6708
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z236.any(), { method: "POST", body });
6628
6709
  }
6629
6710
  delete(workspaceId, userId) {
6630
6711
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -6634,7 +6715,7 @@ var WorkspaceMembersEndpoint = class {
6634
6715
  };
6635
6716
 
6636
6717
  // src/api/endpoints/workspaces.ts
6637
- import { z as z235 } from "zod";
6718
+ import { z as z237 } from "zod";
6638
6719
  var WorkspacesEndpoint = class {
6639
6720
  constructor(requestExecutor) {
6640
6721
  this.requestExecutor = requestExecutor;
@@ -6654,10 +6735,10 @@ var WorkspacesEndpoint = class {
6654
6735
  });
6655
6736
  }
6656
6737
  delete(workspaceId) {
6657
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z235.any(), { method: "DELETE" });
6738
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z237.any(), { method: "DELETE" });
6658
6739
  }
6659
6740
  subscription(workspaceId) {
6660
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z235.any(), { method: "GET" });
6741
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z237.any(), { method: "GET" });
6661
6742
  }
6662
6743
  };
6663
6744
 
@@ -6716,9 +6797,9 @@ ${bodyText}`,
6716
6797
 
6717
6798
  // src/api/transport/request-executor.ts
6718
6799
  import fetch from "node-fetch";
6719
- import { z as z236 } from "zod";
6720
- var ResponseWrapper = z236.object({
6721
- result: z236.record(z236.any())
6800
+ import { z as z238 } from "zod";
6801
+ var ResponseWrapper = z238.object({
6802
+ result: z238.record(z238.any())
6722
6803
  });
6723
6804
  var RequestExecutor = class {
6724
6805
  constructor(testServerConfig) {
@@ -6840,7 +6921,7 @@ function generateHash(input, debug = false) {
6840
6921
  }
6841
6922
 
6842
6923
  // src/yjs/design-system-content/documentation-hierarchy.ts
6843
- import { z as z237 } from "zod";
6924
+ import { z as z239 } from "zod";
6844
6925
 
6845
6926
  // src/yjs/version-room/base.ts
6846
6927
  var VersionRoomBaseYDoc = class {
@@ -7370,24 +7451,24 @@ var FrontendVersionRoomYDoc = class {
7370
7451
  };
7371
7452
 
7372
7453
  // src/yjs/design-system-content/documentation-hierarchy.ts
7373
- var DocumentationHierarchySettings = z237.object({
7374
- routingVersion: z237.string(),
7375
- isDraftFeatureAdopted: z237.boolean(),
7376
- isApprovalFeatureEnabled: z237.boolean(),
7377
- approvalRequiredForPublishing: z237.boolean()
7454
+ var DocumentationHierarchySettings = z239.object({
7455
+ routingVersion: z239.string(),
7456
+ isDraftFeatureAdopted: z239.boolean(),
7457
+ isApprovalFeatureEnabled: z239.boolean(),
7458
+ approvalRequiredForPublishing: z239.boolean()
7378
7459
  });
7379
7460
  function yjsToDocumentationHierarchy(doc) {
7380
7461
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
7381
7462
  }
7382
7463
 
7383
7464
  // src/yjs/design-system-content/item-configuration.ts
7384
- import { z as z238 } from "zod";
7385
- var DTODocumentationPageRoomHeaderData = z238.object({
7386
- title: z238.string(),
7465
+ import { z as z240 } from "zod";
7466
+ var DTODocumentationPageRoomHeaderData = z240.object({
7467
+ title: z240.string(),
7387
7468
  configuration: DTODocumentationItemConfigurationV2
7388
7469
  });
7389
- var DTODocumentationPageRoomHeaderDataUpdate = z238.object({
7390
- title: z238.string().optional(),
7470
+ var DTODocumentationPageRoomHeaderDataUpdate = z240.object({
7471
+ title: z240.string().optional(),
7391
7472
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
7392
7473
  });
7393
7474
  function itemConfigurationToYjs(yDoc, item) {
@@ -7438,7 +7519,7 @@ function yjsToItemConfiguration(yDoc) {
7438
7519
  header: rawHeader
7439
7520
  };
7440
7521
  return {
7441
- title: z238.string().parse(title),
7522
+ title: z240.string().parse(title),
7442
7523
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7443
7524
  };
7444
7525
  }
@@ -7448,9 +7529,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7448
7529
  var PageSectionEditorModel = PageSectionEditorModelV2;
7449
7530
 
7450
7531
  // src/yjs/docs-editor/model/page.ts
7451
- import { z as z239 } from "zod";
7452
- var DocumentationPageEditorModel = z239.object({
7453
- blocks: z239.array(DocumentationPageContentItem)
7532
+ import { z as z241 } from "zod";
7533
+ var DocumentationPageEditorModel = z241.object({
7534
+ blocks: z241.array(DocumentationPageContentItem)
7454
7535
  });
7455
7536
 
7456
7537
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -10970,7 +11051,7 @@ var blocks = [
10970
11051
 
10971
11052
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10972
11053
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10973
- import { z as z240 } from "zod";
11054
+ import { z as z242 } from "zod";
10974
11055
  function yDocToPage(yDoc, definitions) {
10975
11056
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10976
11057
  }
@@ -11050,7 +11131,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
11050
11131
  return null;
11051
11132
  return {
11052
11133
  id,
11053
- title: getProsemirrorAttribute(prosemirrorNode, "title", z240.string()) ?? "",
11134
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z242.string()) ?? "",
11054
11135
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
11055
11136
  };
11056
11137
  }
@@ -11085,7 +11166,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11085
11166
  });
11086
11167
  }
11087
11168
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11088
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z240.string());
11169
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z242.string());
11089
11170
  if (!definitionId) {
11090
11171
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11091
11172
  return [];
@@ -11127,7 +11208,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11127
11208
  if (!id)
11128
11209
  return null;
11129
11210
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11130
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z240.string().optional()));
11211
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z242.string().optional()));
11131
11212
  return {
11132
11213
  id,
11133
11214
  type: "Block",
@@ -11255,10 +11336,10 @@ function parseRichTextAttribute(mark) {
11255
11336
  return null;
11256
11337
  }
11257
11338
  function parseProsemirrorLink(mark) {
11258
- const href = getProsemirrorAttribute(mark, "href", z240.string().optional());
11339
+ const href = getProsemirrorAttribute(mark, "href", z242.string().optional());
11259
11340
  if (!href)
11260
11341
  return null;
11261
- const target = getProsemirrorAttribute(mark, "target", z240.string().optional());
11342
+ const target = getProsemirrorAttribute(mark, "target", z242.string().optional());
11262
11343
  const openInNewTab = target === "_blank";
11263
11344
  if (href.startsWith("@")) {
11264
11345
  return {
@@ -11277,10 +11358,10 @@ function parseProsemirrorLink(mark) {
11277
11358
  }
11278
11359
  }
11279
11360
  function parseProsemirrorCommentHighlight(mark) {
11280
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z240.string().optional());
11361
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z242.string().optional());
11281
11362
  if (!highlightId)
11282
11363
  return null;
11283
- const isResolved = getProsemirrorAttribute(mark, "resolved", z240.boolean().optional()) ?? false;
11364
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z242.boolean().optional()) ?? false;
11284
11365
  return {
11285
11366
  type: "Comment",
11286
11367
  commentHighlightId: highlightId,
@@ -11292,7 +11373,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11292
11373
  if (!id)
11293
11374
  return null;
11294
11375
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11295
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z240.boolean().optional()) !== false;
11376
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z242.boolean().optional()) !== false;
11296
11377
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11297
11378
  if (!tableChild) {
11298
11379
  return emptyTable(id, variantId, 0);
@@ -11339,9 +11420,9 @@ function parseAsTableCell(prosemirrorNode) {
11339
11420
  const id = getProsemirrorBlockId(prosemirrorNode);
11340
11421
  if (!id)
11341
11422
  return null;
11342
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z240.string().optional());
11423
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z242.string().optional());
11343
11424
  let columnWidth;
11344
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z240.array(z240.number()).nullish());
11425
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z242.array(z242.number()).nullish());
11345
11426
  if (columnWidthArray) {
11346
11427
  columnWidth = roundDimension(columnWidthArray[0]);
11347
11428
  }
@@ -11379,7 +11460,7 @@ function parseAsTableNode(prosemirrorNode) {
11379
11460
  value: parseRichText(prosemirrorNode.content ?? [])
11380
11461
  };
11381
11462
  case "image":
11382
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z240.string());
11463
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z242.string());
11383
11464
  if (!items)
11384
11465
  return null;
11385
11466
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11499,7 +11580,7 @@ function definitionExpectsPlaceholderItem(definition) {
11499
11580
  );
11500
11581
  }
11501
11582
  function parseBlockItems(prosemirrorNode, definition) {
11502
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z240.string());
11583
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z242.string());
11503
11584
  if (!itemsString)
11504
11585
  return null;
11505
11586
  const itemsJson = JSON.parse(itemsString);
@@ -11511,18 +11592,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11511
11592
  }
11512
11593
  function parseAppearance(prosemirrorNode) {
11513
11594
  let appearance = {};
11514
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z240.string().optional());
11595
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z242.string().optional());
11515
11596
  if (rawAppearanceString) {
11516
11597
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11517
11598
  if (parsedAppearance.success) {
11518
11599
  appearance = parsedAppearance.data;
11519
11600
  }
11520
11601
  }
11521
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z240.number().optional());
11602
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z242.number().optional());
11522
11603
  if (columns) {
11523
11604
  appearance.numberOfColumns = columns;
11524
11605
  }
11525
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z240.string().optional());
11606
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z242.string().optional());
11526
11607
  if (backgroundColor) {
11527
11608
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11528
11609
  if (parsedColor.success) {
@@ -11617,13 +11698,13 @@ function valueSchemaForPropertyType(type) {
11617
11698
  }
11618
11699
  }
11619
11700
  function getProsemirrorBlockId(prosemirrorNode) {
11620
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z240.string());
11701
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z242.string());
11621
11702
  if (!id)
11622
11703
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11623
11704
  return id;
11624
11705
  }
11625
11706
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11626
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z240.string()));
11707
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z242.string()));
11627
11708
  }
11628
11709
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11629
11710
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11720,6 +11801,7 @@ export {
11720
11801
  DTODesignSystemMembersUpdatePayload,
11721
11802
  DTODesignSystemMembersUpdateResponse,
11722
11803
  DTODesignSystemResponse,
11804
+ DTODesignSystemRole,
11723
11805
  DTODesignSystemUpdateAccessModeInput,
11724
11806
  DTODesignSystemUpdateInput,
11725
11807
  DTODesignSystemVersion,
@@ -11876,6 +11958,8 @@ export {
11876
11958
  DTORenderedAssetFile,
11877
11959
  DTORestoreDocumentationGroupInput,
11878
11960
  DTORestoreDocumentationPageInput,
11961
+ DTOTokenCollection,
11962
+ DTOTokenCollectionsListReponse,
11879
11963
  DTOUpdateDocumentationGroupInput,
11880
11964
  DTOUpdateDocumentationPageInputV2,
11881
11965
  DTOUpdateElementPropertyDefinitionInputV2,
@@ -11919,6 +12003,7 @@ export {
11919
12003
  RequestExecutor,
11920
12004
  RequestExecutorError,
11921
12005
  SupernovaApiClient,
12006
+ TokenCollectionsEndpoint,
11922
12007
  UsersEndpoint,
11923
12008
  VersionRoomBaseYDoc,
11924
12009
  VersionSQSPayload,