@supernova-studio/client 0.55.16 → 0.55.18

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