@supernova-studio/client 0.55.15 → 0.55.17

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