@supernova-studio/client 0.54.32 → 0.54.33

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 z124 } from "zod";
23
+ import { z as z143 } 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 z123 } from "zod";
28
- import { z as z122 } from "zod";
27
+ import { z as z142 } from "zod";
28
+ import { z as z141 } 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,24 +122,27 @@ 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
126
  import { z as z113 } from "zod";
126
127
  import { z as z114 } from "zod";
127
- import { z as z115 } from "zod";
128
128
  import { z as z116 } from "zod";
129
- import { z as z117 } from "zod";
129
+ import { z as z115 } from "zod";
130
130
  import { z as z118 } from "zod";
131
+ import IPCIDR from "ip-cidr";
132
+ import { z as z117 } from "zod";
131
133
  import { z as z119 } from "zod";
132
134
  import { z as z120 } from "zod";
133
135
  import { z as z121 } from "zod";
134
- import { z as z131 } from "zod";
135
- import { z as z130 } from "zod";
136
+ import { z as z122 } from "zod";
137
+ import { z as z123 } from "zod";
138
+ import { z as z124 } from "zod";
136
139
  import { z as z125 } from "zod";
137
140
  import { z as z126 } from "zod";
138
141
  import { z as z127 } from "zod";
139
142
  import { z as z128 } from "zod";
140
143
  import { z as z129 } from "zod";
141
- import { z as z145 } from "zod";
142
- import { z as z132 } from "zod";
144
+ import { z as z130 } from "zod";
145
+ import { z as z131 } from "zod";
143
146
  import { z as z133 } from "zod";
144
147
  import { z as z134 } from "zod";
145
148
  import { z as z135 } from "zod";
@@ -147,37 +150,35 @@ import { z as z136 } from "zod";
147
150
  import { z as z137 } from "zod";
148
151
  import { z as z138 } from "zod";
149
152
  import { z as z139 } from "zod";
150
- import { z as z144 } from "zod";
151
153
  import { z as z140 } from "zod";
152
- import IPCIDR from "ip-cidr";
153
- import { z as z143 } from "zod";
154
- import { z as z141 } from "zod";
155
- import { z as z142 } from "zod";
156
- import { z as z146 } from "zod";
154
+ import { z as z150 } from "zod";
157
155
  import { z as z149 } from "zod";
156
+ import { z as z144 } from "zod";
157
+ import { z as z145 } from "zod";
158
+ import { z as z146 } from "zod";
158
159
  import { z as z147 } from "zod";
159
160
  import { z as z148 } from "zod";
160
- import { z as z150 } from "zod";
161
- import { z as z151 } from "zod";
162
- import { z as z152 } from "zod";
163
161
  import { z as z153 } from "zod";
162
+ import { z as z152 } from "zod";
163
+ import { z as z151 } from "zod";
164
164
  import { z as z154 } from "zod";
165
- import { z as z155 } from "zod";
166
165
  import { z as z157 } from "zod";
166
+ import { z as z155 } from "zod";
167
167
  import { z as z156 } from "zod";
168
168
  import { z as z158 } from "zod";
169
169
  import { z as z159 } from "zod";
170
170
  import { z as z160 } from "zod";
171
171
  import { z as z161 } from "zod";
172
172
  import { z as z162 } from "zod";
173
- import { z as z170 } from "zod";
174
- import { z as z164 } from "zod";
175
173
  import { z as z163 } from "zod";
176
174
  import { z as z165 } from "zod";
175
+ import { z as z164 } from "zod";
177
176
  import { z as z166 } from "zod";
178
177
  import { z as z167 } from "zod";
179
178
  import { z as z168 } from "zod";
180
179
  import { z as z169 } from "zod";
180
+ import { z as z170 } from "zod";
181
+ import { z as z171 } from "zod";
181
182
  var __defProp2 = Object.defineProperty;
182
183
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
183
184
  var __publicField2 = (obj, key, value) => {
@@ -3557,239 +3558,501 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
3557
3558
  function pickLatestGroupSnapshots(snapshots) {
3558
3559
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
3559
3560
  }
3560
- var DesignSystemMembership = z113.object({
3561
- id: z113.string(),
3562
- userId: z113.string(),
3563
- designSystemId: z113.string(),
3564
- workspaceMembershipId: z113.string()
3565
- });
3566
- var ElementViewBaseColumnType = z114.enum(["Name", "Description", "Value", "UpdatedAt"]);
3567
- var ElementViewColumnType = z114.union([
3568
- z114.literal("BaseProperty"),
3569
- z114.literal("PropertyDefinition"),
3570
- z114.literal("Theme")
3561
+ var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
3562
+ var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3563
+ var NpmRegistryBasicAuthConfig = z113.object({
3564
+ authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
3565
+ username: z113.string(),
3566
+ password: z113.string()
3567
+ });
3568
+ var NpmRegistryBearerAuthConfig = z113.object({
3569
+ authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
3570
+ accessToken: z113.string()
3571
+ });
3572
+ var NpmRegistryNoAuthConfig = z113.object({
3573
+ authType: z113.literal(NpmRegistryAuthType.Enum.None)
3574
+ });
3575
+ var NpmRegistrCustomAuthConfig = z113.object({
3576
+ authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
3577
+ authHeaderName: z113.string(),
3578
+ authHeaderValue: z113.string()
3579
+ });
3580
+ var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
3581
+ NpmRegistryBasicAuthConfig,
3582
+ NpmRegistryBearerAuthConfig,
3583
+ NpmRegistryNoAuthConfig,
3584
+ NpmRegistrCustomAuthConfig
3585
+ ]);
3586
+ var NpmRegistryConfigBase = z113.object({
3587
+ registryType: NpmRegistryType,
3588
+ enabledScopes: z113.array(z113.string()),
3589
+ customRegistryUrl: z113.string().optional(),
3590
+ bypassProxy: z113.boolean().default(false),
3591
+ npmProxyRegistryConfigId: z113.string().optional(),
3592
+ npmProxyVersion: z113.number().optional()
3593
+ });
3594
+ var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
3595
+ var SsoProvider = z114.object({
3596
+ providerId: z114.string(),
3597
+ defaultAutoInviteValue: z114.boolean(),
3598
+ autoInviteDomains: z114.record(z114.string(), z114.boolean()),
3599
+ skipDocsSupernovaLogin: z114.boolean(),
3600
+ areInvitesDisabled: z114.boolean(),
3601
+ isTestMode: z114.boolean(),
3602
+ emailDomains: z114.array(z114.string()),
3603
+ metadataXml: z114.string().nullish()
3604
+ });
3605
+ var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
3606
+ var WorkspaceRole = WorkspaceRoleSchema.enum;
3607
+ var MAX_MEMBERS_COUNT = 100;
3608
+ var UserInvite = z116.object({
3609
+ email: z116.string().email().trim().transform((value) => value.toLowerCase()),
3610
+ role: WorkspaceRoleSchema
3611
+ });
3612
+ var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
3613
+ var isValidCIDR = (value) => {
3614
+ return IPCIDR.isValidAddress(value);
3615
+ };
3616
+ var WorkspaceIpWhitelistEntry = z117.object({
3617
+ isEnabled: z117.boolean(),
3618
+ name: z117.string(),
3619
+ range: z117.string().refine(isValidCIDR, {
3620
+ message: "Invalid IP CIDR"
3621
+ })
3622
+ });
3623
+ var WorkspaceIpSettings = z117.object({
3624
+ isEnabledForCloud: z117.boolean(),
3625
+ isEnabledForDocs: z117.boolean(),
3626
+ entries: z117.array(WorkspaceIpWhitelistEntry)
3627
+ });
3628
+ var WorkspaceProfile = z117.object({
3629
+ name: z117.string(),
3630
+ handle: z117.string(),
3631
+ color: z117.string(),
3632
+ avatar: nullishToOptional(z117.string()),
3633
+ billingDetails: nullishToOptional(BillingDetails)
3634
+ });
3635
+ var WorkspaceProfileUpdate = WorkspaceProfile.omit({
3636
+ avatar: true
3637
+ });
3638
+ var Workspace = z117.object({
3639
+ id: z117.string(),
3640
+ profile: WorkspaceProfile,
3641
+ subscription: Subscription,
3642
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3643
+ sso: nullishToOptional(SsoProvider),
3644
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
3645
+ });
3646
+ var WorkspaceWithDesignSystems = z117.object({
3647
+ workspace: Workspace,
3648
+ designSystems: z117.array(DesignSystem)
3649
+ });
3650
+ var WorkspaceConfigurationUpdate = z118.object({
3651
+ id: z118.string(),
3652
+ ipWhitelist: WorkspaceIpSettings.optional(),
3653
+ sso: SsoProvider.optional(),
3654
+ npmRegistrySettings: NpmRegistryConfig.optional(),
3655
+ profile: WorkspaceProfileUpdate.optional()
3656
+ });
3657
+ var WorkspaceContext = z119.object({
3658
+ workspaceId: z119.string(),
3659
+ product: ProductCodeSchema,
3660
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3661
+ publicDesignSystem: z119.boolean().optional()
3662
+ });
3663
+ var WORKSPACE_NAME_MIN_LENGTH = 2;
3664
+ var WORKSPACE_NAME_MAX_LENGTH = 64;
3665
+ var HANDLE_MIN_LENGTH = 2;
3666
+ var HANDLE_MAX_LENGTH = 64;
3667
+ var CreateWorkspaceInput = z120.object({
3668
+ name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
3669
+ product: ProductCodeSchema,
3670
+ priceId: z120.string(),
3671
+ billingEmail: z120.string().email().optional(),
3672
+ handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
3673
+ invites: UserInvites.optional(),
3674
+ promoCode: z120.string().optional(),
3675
+ status: InternalStatusSchema.optional(),
3676
+ planInterval: BillingIntervalSchema.optional(),
3677
+ seats: z120.number().optional(),
3678
+ seatLimit: z120.number().optional(),
3679
+ card: CardSchema.optional(),
3680
+ sso: SsoProvider.optional(),
3681
+ npmRegistrySettings: NpmRegistryConfig.optional(),
3682
+ ipWhitelist: WorkspaceIpSettings.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")
3700
+ ]);
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()
3727
+ });
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({
3809
+ members: DesignSystemMembership.array(),
3810
+ invitations: DesignSystemInvitation.array()
3811
+ });
3812
+ var DesignSystemPendingMemberInvitation = z132.object({
3813
+ inviteId: z132.string()
3814
+ });
3815
+ var DesignSystemUserInvitation = z132.object({
3816
+ userId: z132.string()
3817
+ });
3818
+ var DesignSystemInvite = z132.object({
3819
+ email: z132.string(),
3820
+ workspaceRole: WorkspaceRoleSchema
3821
+ });
3822
+ var DesignSystemMembershipUpdates = z132.object({
3823
+ usersToInvite: DesignSystemUserInvitation.array().optional(),
3824
+ invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
3825
+ 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")
3571
3834
  ]);
3572
- var ElementViewColumnSharedAttributes = z114.object({
3573
- id: z114.string(),
3574
- persistentId: z114.string(),
3575
- elementDataViewId: z114.string(),
3576
- sortPosition: z114.number(),
3577
- width: z114.number()
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()
3578
3841
  });
3579
3842
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
3580
- type: z114.literal("BaseProperty"),
3843
+ type: z133.literal("BaseProperty"),
3581
3844
  basePropertyType: ElementViewBaseColumnType
3582
3845
  });
3583
3846
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3584
- type: z114.literal("PropertyDefinition"),
3585
- propertyDefinitionId: z114.string()
3847
+ type: z133.literal("PropertyDefinition"),
3848
+ propertyDefinitionId: z133.string()
3586
3849
  });
3587
3850
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3588
- type: z114.literal("Theme"),
3589
- themeId: z114.string()
3851
+ type: z133.literal("Theme"),
3852
+ themeId: z133.string()
3590
3853
  });
3591
- var ElementViewColumn = z114.discriminatedUnion("type", [
3854
+ var ElementViewColumn = z133.discriminatedUnion("type", [
3592
3855
  ElementViewBasePropertyColumn,
3593
3856
  ElementViewPropertyDefinitionColumn,
3594
3857
  ElementViewThemeColumn
3595
3858
  ]);
3596
- var ElementView = z115.object({
3597
- id: z115.string(),
3598
- persistentId: z115.string(),
3599
- designSystemVersionId: z115.string(),
3600
- name: z115.string(),
3601
- description: z115.string(),
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(),
3602
3865
  targetElementType: ElementPropertyTargetType,
3603
- isDefault: z115.boolean()
3604
- });
3605
- var Brand = z116.object({
3606
- id: z116.string(),
3607
- designSystemVersionId: z116.string(),
3608
- persistentId: z116.string(),
3609
- name: z116.string(),
3610
- description: z116.string()
3866
+ isDefault: z134.boolean()
3611
3867
  });
3612
- var DesignSystemAccessMode = z117.enum(["Open", "InviteOnly"]);
3613
- var DesignSystemSwitcher = z117.object({
3614
- isEnabled: z117.boolean(),
3615
- designSystemIds: z117.array(z117.string())
3616
- });
3617
- var DesignSystem = z117.object({
3618
- id: z117.string(),
3619
- workspaceId: z117.string(),
3620
- name: z117.string(),
3621
- description: z117.string(),
3622
- docExporterId: nullishToOptional(z117.string()),
3623
- docSlug: z117.string(),
3624
- docUserSlug: nullishToOptional(z117.string()),
3625
- docSlugDeprecated: z117.string(),
3626
- isPublic: z117.boolean(),
3627
- isMultibrand: z117.boolean(),
3628
- docViewUrl: nullishToOptional(z117.string()),
3629
- basePrefixes: z117.array(z117.string()),
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()
3874
+ });
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()),
3630
3893
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3631
- isApprovalFeatureEnabled: z117.boolean(),
3632
- approvalRequiredForPublishing: z117.boolean(),
3894
+ isApprovalFeatureEnabled: z136.boolean(),
3895
+ approvalRequiredForPublishing: z136.boolean(),
3633
3896
  accessMode: DesignSystemAccessMode,
3634
- membersGenerated: z117.boolean(),
3635
- createdAt: z117.coerce.date(),
3636
- updatedAt: z117.coerce.date()
3897
+ membersGenerated: z136.boolean(),
3898
+ createdAt: z136.coerce.date(),
3899
+ updatedAt: z136.coerce.date()
3637
3900
  });
3638
- var ExporterPropertyImageValue = z118.object({
3901
+ var ExporterPropertyImageValue = z137.object({
3639
3902
  asset: PageBlockAsset.optional(),
3640
- assetId: z118.string().optional(),
3641
- assetUrl: z118.string().optional()
3642
- });
3643
- var ExporterPropertyValue = z118.object({
3644
- key: z118.string(),
3645
- value: z118.union([
3646
- z118.number(),
3647
- z118.string(),
3648
- z118.boolean(),
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(),
3649
3912
  ExporterPropertyImageValue,
3650
3913
  ColorTokenData,
3651
3914
  TypographyTokenData
3652
3915
  ])
3653
3916
  });
3654
- var ExporterPropertyValuesCollection = z118.object({
3655
- id: z118.string(),
3656
- designSystemId: z118.string(),
3657
- exporterId: z118.string(),
3658
- values: z118.array(ExporterPropertyValue)
3659
- });
3660
- var PublishedDocPage = z119.object({
3661
- id: z119.string(),
3662
- publishedDocId: z119.string(),
3663
- pageShortPersistentId: z119.string(),
3664
- pathV1: z119.string(),
3665
- pathV2: z119.string(),
3666
- storagePath: z119.string(),
3667
- locale: z119.string().optional(),
3668
- isPrivate: z119.boolean(),
3669
- isHidden: z119.boolean(),
3670
- createdAt: z119.coerce.date(),
3671
- updatedAt: z119.coerce.date()
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()
3672
3935
  });
3673
3936
  var publishedDocEnvironments = ["Live", "Preview"];
3674
- var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
3675
- var PublishedDocsChecksums = z120.record(z120.string());
3676
- var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
3677
- var PublishedDoc = z120.object({
3678
- id: z120.string(),
3679
- designSystemVersionId: z120.string(),
3680
- createdAt: z120.coerce.date(),
3681
- updatedAt: z120.coerce.date(),
3682
- lastPublishedAt: z120.coerce.date(),
3683
- isDefault: z120.boolean(),
3684
- isPublic: z120.boolean(),
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(),
3685
3948
  environment: PublishedDocEnvironment,
3686
3949
  checksums: PublishedDocsChecksums,
3687
- storagePath: z120.string(),
3688
- wasMigrated: z120.boolean(),
3950
+ storagePath: z139.string(),
3951
+ wasMigrated: z139.boolean(),
3689
3952
  routingVersion: PublishedDocRoutingVersion,
3690
- usesLocalizations: z120.boolean(),
3691
- wasPublishedWithLocalizations: z120.boolean(),
3692
- tokenCount: z120.number(),
3693
- assetCount: z120.number()
3953
+ usesLocalizations: z139.boolean(),
3954
+ wasPublishedWithLocalizations: z139.boolean(),
3955
+ tokenCount: z139.number(),
3956
+ assetCount: z139.number()
3694
3957
  });
3695
- var DesignSystemVersion = z121.object({
3696
- id: z121.string(),
3697
- version: z121.string(),
3698
- createdAt: z121.coerce.date(),
3699
- designSystemId: z121.string(),
3700
- name: z121.string(),
3701
- comment: z121.string(),
3702
- isReadonly: z121.boolean(),
3703
- changeLog: z121.string(),
3704
- parentId: z121.string().optional(),
3705
- isDraftsFeatureAdopted: z121.boolean()
3706
- });
3707
- var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
3708
- var VersionCreationJob = z121.object({
3709
- id: z121.string(),
3710
- version: z121.string(),
3711
- designSystemId: z121.string(),
3712
- designSystemVersionId: nullishToOptional(z121.string()),
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()),
3713
3976
  status: VersionCreationJobStatus,
3714
- errorMessage: nullishToOptional(z121.string())
3977
+ errorMessage: nullishToOptional(z140.string())
3715
3978
  });
3716
3979
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3717
3980
  var BITBUCKET_MAX_LENGTH = 64;
3718
- var ExportJobDocumentationChanges = z122.object({
3719
- pagePersistentIds: z122.string().array(),
3720
- groupPersistentIds: z122.string().array()
3981
+ var ExportJobDocumentationChanges = z141.object({
3982
+ pagePersistentIds: z141.string().array(),
3983
+ groupPersistentIds: z141.string().array()
3721
3984
  });
3722
- var ExporterDestinationDocs = z122.object({
3985
+ var ExporterDestinationDocs = z141.object({
3723
3986
  environment: PublishedDocEnvironment,
3724
3987
  changes: nullishToOptional(ExportJobDocumentationChanges)
3725
3988
  });
3726
- var ExporterDestinationS3 = z122.object({});
3727
- var ExporterDestinationGithub = z122.object({
3728
- credentialId: z122.string().optional(),
3989
+ var ExporterDestinationS3 = z141.object({});
3990
+ var ExporterDestinationGithub = z141.object({
3991
+ credentialId: z141.string().optional(),
3729
3992
  // Repository
3730
- url: z122.string(),
3993
+ url: z141.string(),
3731
3994
  // Location
3732
- branch: z122.string(),
3733
- relativePath: nullishToOptional(z122.string()),
3995
+ branch: z141.string(),
3996
+ relativePath: nullishToOptional(z141.string()),
3734
3997
  // Commit metadata
3735
- commitAuthorName: nullishToOptional(z122.string()),
3736
- commitAuthorEmail: nullishToOptional(z122.string()),
3998
+ commitAuthorName: nullishToOptional(z141.string()),
3999
+ commitAuthorEmail: nullishToOptional(z141.string()),
3737
4000
  // Legacy deprecated fields. Use `credentialId` instead
3738
- connectionId: nullishToOptional(z122.string()),
3739
- userId: nullishToOptional(z122.number())
4001
+ connectionId: nullishToOptional(z141.string()),
4002
+ userId: nullishToOptional(z141.number())
3740
4003
  });
3741
- var ExporterDestinationAzure = z122.object({
3742
- credentialId: z122.string().optional(),
4004
+ var ExporterDestinationAzure = z141.object({
4005
+ credentialId: z141.string().optional(),
3743
4006
  // Repository
3744
- organizationId: z122.string(),
3745
- projectId: z122.string(),
3746
- repositoryId: z122.string(),
4007
+ organizationId: z141.string(),
4008
+ projectId: z141.string(),
4009
+ repositoryId: z141.string(),
3747
4010
  // Commit metadata
3748
- commitAuthorName: nullishToOptional(z122.string()),
3749
- commitAuthorEmail: nullishToOptional(z122.string()),
4011
+ commitAuthorName: nullishToOptional(z141.string()),
4012
+ commitAuthorEmail: nullishToOptional(z141.string()),
3750
4013
  // Location
3751
- branch: z122.string(),
3752
- relativePath: nullishToOptional(z122.string()),
4014
+ branch: z141.string(),
4015
+ relativePath: nullishToOptional(z141.string()),
3753
4016
  // Maybe not needed
3754
- url: nullishToOptional(z122.string()),
4017
+ url: nullishToOptional(z141.string()),
3755
4018
  // Legacy deprecated fields. Use `credentialId` instead
3756
- connectionId: nullishToOptional(z122.string()),
3757
- userId: nullishToOptional(z122.number())
4019
+ connectionId: nullishToOptional(z141.string()),
4020
+ userId: nullishToOptional(z141.number())
3758
4021
  });
3759
- var ExporterDestinationGitlab = z122.object({
3760
- credentialId: z122.string().optional(),
4022
+ var ExporterDestinationGitlab = z141.object({
4023
+ credentialId: z141.string().optional(),
3761
4024
  // Repository
3762
- projectId: z122.string(),
4025
+ projectId: z141.string(),
3763
4026
  // Commit metadata
3764
- commitAuthorName: nullishToOptional(z122.string()),
3765
- commitAuthorEmail: nullishToOptional(z122.string()),
4027
+ commitAuthorName: nullishToOptional(z141.string()),
4028
+ commitAuthorEmail: nullishToOptional(z141.string()),
3766
4029
  // Location
3767
- branch: z122.string(),
3768
- relativePath: nullishToOptional(z122.string()),
4030
+ branch: z141.string(),
4031
+ relativePath: nullishToOptional(z141.string()),
3769
4032
  // Maybe not needed
3770
- url: nullishToOptional(z122.string()),
4033
+ url: nullishToOptional(z141.string()),
3771
4034
  // Legacy deprecated fields. Use `credentialId` instead
3772
- connectionId: nullishToOptional(z122.string()),
3773
- userId: nullishToOptional(z122.number())
4035
+ connectionId: nullishToOptional(z141.string()),
4036
+ userId: nullishToOptional(z141.number())
3774
4037
  });
3775
- var ExporterDestinationBitbucket = z122.object({
3776
- credentialId: z122.string().optional(),
4038
+ var ExporterDestinationBitbucket = z141.object({
4039
+ credentialId: z141.string().optional(),
3777
4040
  // Repository
3778
- workspaceSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3779
- projectKey: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3780
- repoSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
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),
3781
4044
  // Commit metadata
3782
- commitAuthorName: nullishToOptional(z122.string()),
3783
- commitAuthorEmail: nullishToOptional(z122.string()),
4045
+ commitAuthorName: nullishToOptional(z141.string()),
4046
+ commitAuthorEmail: nullishToOptional(z141.string()),
3784
4047
  // Location
3785
- branch: z122.string(),
3786
- relativePath: nullishToOptional(z122.string()),
4048
+ branch: z141.string(),
4049
+ relativePath: nullishToOptional(z141.string()),
3787
4050
  // Legacy deprecated fields. Use `credentialId` instead
3788
- connectionId: nullishToOptional(z122.string()),
3789
- userId: nullishToOptional(z122.number())
4051
+ connectionId: nullishToOptional(z141.string()),
4052
+ userId: nullishToOptional(z141.number())
3790
4053
  });
3791
- var ExportDestinationsMap = z122.object({
3792
- webhookUrl: z122.string().optional(),
4054
+ var ExportDestinationsMap = z141.object({
4055
+ webhookUrl: z141.string().optional(),
3793
4056
  destinationSnDocs: ExporterDestinationDocs.optional(),
3794
4057
  destinationS3: ExporterDestinationS3.optional(),
3795
4058
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3797,93 +4060,93 @@ var ExportDestinationsMap = z122.object({
3797
4060
  destinationGitlab: ExporterDestinationGitlab.optional(),
3798
4061
  destinationBitbucket: ExporterDestinationBitbucket.optional()
3799
4062
  });
3800
- var PipelineEventType = z123.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3801
- var PipelineDestinationGitType = z123.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3802
- var PipelineDestinationExtraType = z123.enum(["WebhookUrl", "S3", "Documentation"]);
3803
- var PipelineDestinationType = z123.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3804
- var Pipeline = z123.object({
3805
- id: z123.string(),
3806
- name: z123.string(),
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(),
3807
4070
  eventType: PipelineEventType,
3808
- isEnabled: z123.boolean(),
3809
- workspaceId: z123.string(),
3810
- designSystemId: z123.string(),
3811
- exporterId: z123.string(),
3812
- brandPersistentId: z123.string().optional(),
3813
- themePersistentId: z123.string().optional(),
3814
- themePersistentIds: z123.string().array().optional(),
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(),
3815
4078
  // Destinations
3816
4079
  ...ExportDestinationsMap.shape
3817
4080
  });
3818
- var ExportJobDump = z124.object({
3819
- id: z124.string(),
3820
- createdAt: z124.coerce.date(),
3821
- finishedAt: z124.coerce.date(),
3822
- exportArtefacts: z124.string()
4081
+ var ExportJobDump = z143.object({
4082
+ id: z143.string(),
4083
+ createdAt: z143.coerce.date(),
4084
+ finishedAt: z143.coerce.date(),
4085
+ exportArtefacts: z143.string()
3823
4086
  });
3824
- var CodeIntegrationDump = z124.object({
4087
+ var CodeIntegrationDump = z143.object({
3825
4088
  exporters: Exporter.array(),
3826
4089
  pipelines: Pipeline.array(),
3827
4090
  exportJobs: ExportJobDump.array()
3828
4091
  });
3829
4092
  var DesignSystemVersionRoom = Entity.extend({
3830
- designSystemVersionId: z125.string(),
3831
- liveblocksId: z125.string()
3832
- });
3833
- var DesignSystemVersionRoomInternalSettings = z125.object({
3834
- routingVersion: z125.string(),
3835
- isDraftFeatureAdopted: z125.boolean(),
3836
- isApprovalFeatureEnabled: z125.boolean(),
3837
- approvalRequiredForPublishing: z125.boolean()
3838
- });
3839
- var DesignSystemVersionRoomInitialState = z125.object({
3840
- pages: z125.array(DocumentationPageV2),
3841
- groups: z125.array(ElementGroup),
3842
- pageSnapshots: z125.array(DocumentationPageSnapshot),
3843
- groupSnapshots: z125.array(ElementGroupSnapshot),
3844
- pageApprovals: z125.array(DocumentationPageApproval),
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),
3845
4108
  internalSettings: DesignSystemVersionRoomInternalSettings
3846
4109
  });
3847
- var DesignSystemVersionRoomUpdate = z125.object({
3848
- pages: z125.array(DocumentationPageV2),
3849
- groups: z125.array(ElementGroup),
3850
- pageIdsToDelete: z125.array(z125.string()),
3851
- groupIdsToDelete: z125.array(z125.string()),
3852
- pageSnapshots: z125.array(DocumentationPageSnapshot),
3853
- groupSnapshots: z125.array(ElementGroupSnapshot),
3854
- pageSnapshotIdsToDelete: z125.array(z125.string()),
3855
- groupSnapshotIdsToDelete: z125.array(z125.string()),
3856
- pageHashesToUpdate: z125.record(z125.string(), z125.string()),
3857
- pageApprovals: z125.array(DocumentationPageApproval),
3858
- pageApprovalIdsToDelete: z125.array(z125.string())
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())
3859
4122
  });
3860
4123
  var DocumentationPageRoom = Entity.extend({
3861
- designSystemVersionId: z126.string(),
3862
- documentationPageId: z126.string(),
3863
- liveblocksId: z126.string(),
3864
- isDirty: z126.boolean()
4124
+ designSystemVersionId: z145.string(),
4125
+ documentationPageId: z145.string(),
4126
+ liveblocksId: z145.string(),
4127
+ isDirty: z145.boolean()
3865
4128
  });
3866
- var DocumentationPageRoomState = z126.object({
3867
- pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4129
+ var DocumentationPageRoomState = z145.object({
4130
+ pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3868
4131
  itemConfiguration: DocumentationItemConfigurationV2
3869
4132
  });
3870
- var DocumentationPageRoomRoomUpdate = z126.object({
4133
+ var DocumentationPageRoomRoomUpdate = z145.object({
3871
4134
  page: DocumentationPageV2,
3872
4135
  pageParent: ElementGroup
3873
4136
  });
3874
4137
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3875
- pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3876
- blockDefinitions: z126.array(PageBlockDefinition)
4138
+ pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4139
+ blockDefinitions: z145.array(PageBlockDefinition)
3877
4140
  });
3878
- var RestoredDocumentationPage = z126.object({
4141
+ var RestoredDocumentationPage = z145.object({
3879
4142
  page: DocumentationPageV2,
3880
4143
  pageParent: ElementGroup,
3881
4144
  pageContent: DocumentationPageContentData,
3882
- contentHash: z126.string(),
3883
- snapshotId: z126.string(),
3884
- roomId: z126.string().optional()
4145
+ contentHash: z145.string(),
4146
+ snapshotId: z145.string(),
4147
+ roomId: z145.string().optional()
3885
4148
  });
3886
- var RestoredDocumentationGroup = z126.object({
4149
+ var RestoredDocumentationGroup = z145.object({
3887
4150
  group: ElementGroup,
3888
4151
  parent: ElementGroup
3889
4152
  });
@@ -3893,28 +4156,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3893
4156
  RoomTypeEnum2["Workspace"] = "workspace";
3894
4157
  return RoomTypeEnum2;
3895
4158
  })(RoomTypeEnum || {});
3896
- var RoomTypeSchema = z127.nativeEnum(RoomTypeEnum);
4159
+ var RoomTypeSchema = z146.nativeEnum(RoomTypeEnum);
3897
4160
  var RoomType = RoomTypeSchema.enum;
3898
4161
  var WorkspaceRoom = Entity.extend({
3899
- workspaceId: z128.string(),
3900
- liveblocksId: z128.string()
4162
+ workspaceId: z147.string(),
4163
+ liveblocksId: z147.string()
3901
4164
  });
3902
- var PublishedDocsDump = z129.object({
4165
+ var PublishedDocsDump = z148.object({
3903
4166
  documentation: PublishedDoc,
3904
4167
  pages: PublishedDocPage.array()
3905
4168
  });
3906
- var DocumentationThreadDump = z130.object({
4169
+ var DocumentationThreadDump = z149.object({
3907
4170
  thread: DocumentationCommentThread,
3908
4171
  comments: DocumentationComment.array()
3909
4172
  });
3910
- var DocumentationPageRoomDump = z130.object({
4173
+ var DocumentationPageRoomDump = z149.object({
3911
4174
  room: DocumentationPageRoom,
3912
4175
  threads: DocumentationThreadDump.array()
3913
4176
  });
3914
- var DesignSystemVersionMultiplayerDump = z130.object({
4177
+ var DesignSystemVersionMultiplayerDump = z149.object({
3915
4178
  documentationPages: DocumentationPageRoomDump.array()
3916
4179
  });
3917
- var DesignSystemVersionDump = z130.object({
4180
+ var DesignSystemVersionDump = z149.object({
3918
4181
  version: DesignSystemVersion,
3919
4182
  brands: Brand.array(),
3920
4183
  elements: DesignElement.array(),
@@ -3927,139 +4190,50 @@ var DesignSystemVersionDump = z130.object({
3927
4190
  publishedDocumentations: PublishedDocsDump.array(),
3928
4191
  assetReferences: AssetReference.array()
3929
4192
  });
3930
- var DesignSystemDump = z131.object({
4193
+ var DesignSystemDump = z150.object({
3931
4194
  designSystem: DesignSystem,
3932
4195
  dataSources: DataSource.array(),
3933
4196
  versions: DesignSystemVersionDump.array(),
3934
4197
  customDomain: CustomDomain.optional(),
3935
4198
  files: Asset.array()
3936
4199
  });
3937
- var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
3938
- var ExternalServiceType = z132.union([
3939
- z132.literal("figma"),
3940
- z132.literal("github"),
3941
- z132.literal("azure"),
3942
- z132.literal("gitlab"),
3943
- z132.literal("bitbucket")
3944
- ]);
3945
- var IntegrationUserInfo = z132.object({
3946
- id: z132.string(),
3947
- handle: z132.string().optional(),
3948
- avatarUrl: z132.string().optional(),
3949
- email: z132.string().optional(),
3950
- authType: IntegrationAuthType.optional(),
3951
- customUrl: z132.string().optional()
3952
- });
3953
- var UserLinkedIntegrations = z132.object({
3954
- figma: IntegrationUserInfo.optional(),
3955
- github: IntegrationUserInfo.array().optional(),
3956
- azure: IntegrationUserInfo.array().optional(),
3957
- gitlab: IntegrationUserInfo.array().optional(),
3958
- bitbucket: IntegrationUserInfo.array().optional()
3959
- });
3960
- var UserAnalyticsCleanupSchedule = z133.object({
3961
- userId: z133.string(),
3962
- createdAt: z133.coerce.date(),
3963
- deleteAt: z133.coerce.date()
3964
- });
3965
- var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3966
- createdAt: true
3967
- });
3968
- var UserIdentity = z134.object({
3969
- id: z134.string(),
3970
- userId: z134.string()
3971
- });
3972
- var UserMinified = z135.object({
3973
- id: z135.string(),
3974
- name: z135.string(),
3975
- email: z135.string(),
3976
- avatar: z135.string().optional()
3977
- });
3978
- var LiveblocksNotificationSettings = z136.object({
3979
- sendCommentNotificationEmails: z136.boolean()
3980
- });
3981
- var UserNotificationSettings = z136.object({
3982
- liveblocksNotificationSettings: LiveblocksNotificationSettings
3983
- });
3984
- var UserOnboardingDepartment = z137.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3985
- var UserOnboardingJobLevel = z137.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3986
- var UserOnboarding = z137.object({
3987
- companyName: z137.string().optional(),
3988
- numberOfPeopleInOrg: z137.string().optional(),
3989
- numberOfPeopleInDesignTeam: z137.string().optional(),
3990
- department: UserOnboardingDepartment.optional(),
3991
- jobTitle: z137.string().optional(),
3992
- phase: z137.string().optional(),
3993
- jobLevel: UserOnboardingJobLevel.optional(),
3994
- designSystemName: z137.string().optional(),
3995
- defaultDestination: z137.string().optional(),
3996
- figmaUrl: z137.string().optional(),
3997
- isPageDraftOnboardingFinished: z137.boolean().optional(),
3998
- isApprovalsOnboardingFinished: z137.boolean().optional()
3999
- });
4000
- var UserProfile = z137.object({
4001
- name: z137.string(),
4002
- avatar: z137.string().optional(),
4003
- nickname: z137.string().optional(),
4004
- onboarding: UserOnboarding.optional()
4005
- });
4006
- var UserProfileUpdate = UserProfile.partial().omit({
4007
- avatar: true
4008
- });
4009
- var UserTest = z138.object({
4010
- id: z138.string(),
4011
- email: z138.string()
4012
- });
4013
- var UserSource = z139.enum(["SignUp", "Invite", "SSO"]);
4014
- var User = z139.object({
4015
- id: z139.string(),
4016
- email: z139.string(),
4017
- emailVerified: z139.boolean(),
4018
- createdAt: z139.coerce.date(),
4019
- trialExpiresAt: z139.coerce.date().optional(),
4020
- profile: UserProfile,
4021
- linkedIntegrations: UserLinkedIntegrations.optional(),
4022
- loggedOutAt: z139.coerce.date().optional(),
4023
- isProtected: z139.boolean(),
4024
- source: UserSource.optional()
4025
- });
4026
- var IntegrationDesignSystem = z140.object({
4027
- designSystemId: z140.string(),
4028
- brandId: z140.string(),
4029
- title: z140.string().optional(),
4030
- userId: z140.string().optional(),
4031
- date: z140.coerce.date().optional()
4032
- });
4033
- var IntegrationCredentialsType = z140.enum(["OAuth2", "PAT", "GithubApp"]);
4034
- var IntegrationCredentialsState = z140.enum(["Active", "Inactive"]);
4035
- var IntegrationCredentialsProfile = z140.object({
4036
- id: nullishToOptional(z140.string()),
4037
- email: nullishToOptional(z140.string()),
4038
- handle: nullishToOptional(z140.string()),
4039
- type: nullishToOptional(z140.string()),
4040
- avatarUrl: nullishToOptional(z140.string()),
4041
- organization: nullishToOptional(z140.string()),
4042
- collection: nullishToOptional(z140.string())
4043
- });
4044
- var IntegrationCredentials = z140.object({
4045
- id: z140.string(),
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(),
4046
4220
  type: IntegrationCredentialsType,
4047
- integrationId: z140.string(),
4048
- accessToken: z140.string(),
4049
- userId: z140.string(),
4050
- createdAt: z140.coerce.date(),
4051
- refreshToken: z140.string().optional(),
4052
- tokenName: z140.string().optional(),
4053
- expiresAt: z140.coerce.date().optional(),
4054
- refreshedAt: z140.coerce.date().optional(),
4055
- username: z140.string().optional(),
4056
- appInstallationId: z140.string().optional(),
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(),
4057
4231
  profile: IntegrationCredentialsProfile.optional(),
4058
- customUrl: z140.string().optional(),
4232
+ customUrl: z151.string().optional(),
4059
4233
  state: IntegrationCredentialsState,
4060
4234
  user: UserMinified.optional()
4061
4235
  });
4062
- var ExtendedIntegrationType = z140.enum([
4236
+ var ExtendedIntegrationType = z151.enum([
4063
4237
  "Figma",
4064
4238
  "Github",
4065
4239
  "Gitlab",
@@ -4070,26 +4244,26 @@ var ExtendedIntegrationType = z140.enum([
4070
4244
  ]);
4071
4245
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4072
4246
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4073
- var Integration = z140.object({
4074
- id: z140.string(),
4075
- workspaceId: z140.string(),
4247
+ var Integration = z151.object({
4248
+ id: z151.string(),
4249
+ workspaceId: z151.string(),
4076
4250
  type: IntegrationType,
4077
- createdAt: z140.coerce.date(),
4078
- integrationCredentials: z140.array(IntegrationCredentials).optional()
4079
- });
4080
- var IntegrationToken = z140.object({
4081
- access_token: z140.string(),
4082
- refresh_token: z140.string().optional(),
4083
- expires_in: z140.union([z140.number().optional(), z140.string().optional()]),
4084
- token_type: z140.string().optional(),
4085
- token_name: z140.string().optional(),
4086
- token_azure_organization_name: z140.string().optional(),
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(),
4087
4261
  // Azure Cloud PAT only
4088
- token_azure_collection_name: z140.string().optional(),
4262
+ token_azure_collection_name: z151.string().optional(),
4089
4263
  // Azure Server PAT only
4090
- token_bitbucket_username: z140.string().optional(),
4264
+ token_bitbucket_username: z151.string().optional(),
4091
4265
  // Bitbucket only
4092
- custom_url: z140.string().optional().transform((value) => {
4266
+ custom_url: z151.string().optional().transform((value) => {
4093
4267
  if (!value?.trim())
4094
4268
  return void 0;
4095
4269
  return formatCustomUrl(value);
@@ -4125,158 +4299,77 @@ function formatCustomUrl(url) {
4125
4299
  }
4126
4300
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
4127
4301
  }
4128
- var NpmRegistryAuthType = z141.enum(["Basic", "Bearer", "None", "Custom"]);
4129
- var NpmRegistryType = z141.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4130
- var NpmRegistryBasicAuthConfig = z141.object({
4131
- authType: z141.literal(NpmRegistryAuthType.Enum.Basic),
4132
- username: z141.string(),
4133
- password: z141.string()
4134
- });
4135
- var NpmRegistryBearerAuthConfig = z141.object({
4136
- authType: z141.literal(NpmRegistryAuthType.Enum.Bearer),
4137
- accessToken: z141.string()
4138
- });
4139
- var NpmRegistryNoAuthConfig = z141.object({
4140
- authType: z141.literal(NpmRegistryAuthType.Enum.None)
4141
- });
4142
- var NpmRegistrCustomAuthConfig = z141.object({
4143
- authType: z141.literal(NpmRegistryAuthType.Enum.Custom),
4144
- authHeaderName: z141.string(),
4145
- authHeaderValue: z141.string()
4146
- });
4147
- var NpmRegistryAuthConfig = z141.discriminatedUnion("authType", [
4148
- NpmRegistryBasicAuthConfig,
4149
- NpmRegistryBearerAuthConfig,
4150
- NpmRegistryNoAuthConfig,
4151
- NpmRegistrCustomAuthConfig
4152
- ]);
4153
- var NpmRegistryConfigBase = z141.object({
4154
- registryType: NpmRegistryType,
4155
- enabledScopes: z141.array(z141.string()),
4156
- customRegistryUrl: z141.string().optional(),
4157
- bypassProxy: z141.boolean().default(false),
4158
- npmProxyRegistryConfigId: z141.string().optional(),
4159
- npmProxyVersion: z141.number().optional()
4160
- });
4161
- var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4162
- var SsoProvider = z142.object({
4163
- providerId: z142.string(),
4164
- defaultAutoInviteValue: z142.boolean(),
4165
- autoInviteDomains: z142.record(z142.string(), z142.boolean()),
4166
- skipDocsSupernovaLogin: z142.boolean(),
4167
- areInvitesDisabled: z142.boolean(),
4168
- isTestMode: z142.boolean(),
4169
- emailDomains: z142.array(z142.string()),
4170
- metadataXml: z142.string().nullish()
4171
- });
4172
- var isValidCIDR = (value) => {
4173
- return IPCIDR.isValidAddress(value);
4174
- };
4175
- var WorkspaceIpWhitelistEntry = z143.object({
4176
- isEnabled: z143.boolean(),
4177
- name: z143.string(),
4178
- range: z143.string().refine(isValidCIDR, {
4179
- message: "Invalid IP CIDR"
4180
- })
4181
- });
4182
- var WorkspaceIpSettings = z143.object({
4183
- isEnabledForCloud: z143.boolean(),
4184
- isEnabledForDocs: z143.boolean(),
4185
- entries: z143.array(WorkspaceIpWhitelistEntry)
4186
- });
4187
- var WorkspaceProfile = z143.object({
4188
- name: z143.string(),
4189
- handle: z143.string(),
4190
- color: z143.string(),
4191
- avatar: nullishToOptional(z143.string()),
4192
- billingDetails: nullishToOptional(BillingDetails)
4193
- });
4194
- var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4195
- avatar: true
4196
- });
4197
- var Workspace = z143.object({
4198
- id: z143.string(),
4199
- profile: WorkspaceProfile,
4200
- subscription: Subscription,
4201
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4202
- sso: nullishToOptional(SsoProvider),
4203
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4204
- });
4205
- var WorkspaceWithDesignSystems = z143.object({
4206
- workspace: Workspace,
4207
- designSystems: z143.array(DesignSystem)
4208
- });
4209
- var WorkspaceDump = z144.object({
4302
+ var WorkspaceDump = z152.object({
4210
4303
  workspace: Workspace,
4211
4304
  designSystems: DesignSystemDump.array(),
4212
4305
  codeIntegration: CodeIntegrationDump,
4213
4306
  integrations: Integration.array()
4214
4307
  });
4215
- var UserDump = z145.object({
4308
+ var UserDump = z153.object({
4216
4309
  user: User,
4217
4310
  workspaces: WorkspaceDump.array()
4218
4311
  });
4219
- var NpmProxyToken = z146.object({
4220
- access: z146.string(),
4221
- expiresAt: z146.number()
4312
+ var NpmProxyToken = z154.object({
4313
+ access: z154.string(),
4314
+ expiresAt: z154.number()
4222
4315
  });
4223
- var SessionData = z146.object({
4224
- returnToUrl: z146.string().optional(),
4316
+ var SessionData = z154.object({
4317
+ returnToUrl: z154.string().optional(),
4225
4318
  npmProxyToken: NpmProxyToken.optional()
4226
4319
  });
4227
- var Session = z146.object({
4228
- id: z146.string(),
4229
- expiresAt: z146.coerce.date(),
4230
- userId: z146.string().nullable(),
4320
+ var Session = z154.object({
4321
+ id: z154.string(),
4322
+ expiresAt: z154.coerce.date(),
4323
+ userId: z154.string().nullable(),
4231
4324
  data: SessionData
4232
4325
  });
4233
- var AuthTokens = z146.object({
4234
- access: z146.string(),
4235
- refresh: z146.string()
4326
+ var AuthTokens = z154.object({
4327
+ access: z154.string(),
4328
+ refresh: z154.string()
4236
4329
  });
4237
- var UserSession = z146.object({
4330
+ var UserSession = z154.object({
4238
4331
  session: Session,
4239
4332
  user: User.nullable()
4240
4333
  });
4241
- var EventDataSourceImported = z147.object({
4242
- type: z147.literal("DataSourceImported"),
4243
- workspaceId: z147.string(),
4244
- designSystemId: z147.string()
4245
- });
4246
- var EventVersionReleased = z148.object({
4247
- type: z148.literal("DesignSystemVersionReleased"),
4248
- workspaceId: z148.string(),
4249
- designSystemId: z148.string(),
4250
- versionId: z148.string()
4251
- });
4252
- var Event = z149.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4253
- var ExportJobDocumentationContext = z150.object({
4254
- isSingleVersionDocs: z150.boolean(),
4255
- versionSlug: z150.string(),
4334
+ var EventDataSourceImported = z155.object({
4335
+ type: z155.literal("DataSourceImported"),
4336
+ workspaceId: z155.string(),
4337
+ designSystemId: z155.string()
4338
+ });
4339
+ var EventVersionReleased = z156.object({
4340
+ type: z156.literal("DesignSystemVersionReleased"),
4341
+ workspaceId: z156.string(),
4342
+ designSystemId: z156.string(),
4343
+ versionId: z156.string()
4344
+ });
4345
+ var Event = z157.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4346
+ var ExportJobDocumentationContext = z158.object({
4347
+ isSingleVersionDocs: z158.boolean(),
4348
+ versionSlug: z158.string(),
4256
4349
  environment: PublishedDocEnvironment
4257
4350
  });
4258
- var ExportJobContext = z150.object({
4259
- apiUrl: z150.string(),
4260
- accessToken: z150.string(),
4261
- designSystemId: z150.string(),
4262
- designSystemName: z150.string(),
4263
- exporterId: z150.string(),
4264
- versionId: z150.string(),
4265
- brandId: z150.string().optional(),
4266
- themeId: z150.string().optional(),
4267
- themePersistentIds: z150.string().array().optional(),
4268
- exporterName: z150.string(),
4269
- exporterPackageUrl: z150.string(),
4351
+ var ExportJobContext = z158.object({
4352
+ apiUrl: z158.string(),
4353
+ accessToken: z158.string(),
4354
+ designSystemId: z158.string(),
4355
+ designSystemName: z158.string(),
4356
+ exporterId: z158.string(),
4357
+ versionId: z158.string(),
4358
+ brandId: z158.string().optional(),
4359
+ themeId: z158.string().optional(),
4360
+ themePersistentIds: z158.string().array().optional(),
4361
+ exporterName: z158.string(),
4362
+ exporterPackageUrl: z158.string(),
4270
4363
  exporterPropertyValues: ExporterPropertyValue.array(),
4271
4364
  documentation: ExportJobDocumentationContext.optional()
4272
4365
  });
4273
- var ExporterFunctionPayload = z151.object({
4274
- exportJobId: z151.string(),
4275
- exportContextId: z151.string(),
4276
- designSystemId: z151.string(),
4277
- workspaceId: z151.string()
4366
+ var ExporterFunctionPayload = z159.object({
4367
+ exportJobId: z159.string(),
4368
+ exportContextId: z159.string(),
4369
+ designSystemId: z159.string(),
4370
+ workspaceId: z159.string()
4278
4371
  });
4279
- var ExportJobDestinationType = z152.enum([
4372
+ var ExportJobDestinationType = z160.enum([
4280
4373
  "s3",
4281
4374
  "webhookUrl",
4282
4375
  "github",
@@ -4285,30 +4378,30 @@ var ExportJobDestinationType = z152.enum([
4285
4378
  "gitlab",
4286
4379
  "bitbucket"
4287
4380
  ]);
4288
- var ExportJobStatus = z152.enum(["InProgress", "Success", "Failed", "Timeout"]);
4289
- var ExportJobLogEntryType = z152.enum(["success", "info", "warning", "error", "user"]);
4290
- var ExportJobLogEntry = z152.object({
4291
- id: z152.string().optional(),
4292
- time: z152.coerce.date(),
4381
+ var ExportJobStatus = z160.enum(["InProgress", "Success", "Failed", "Timeout"]);
4382
+ var ExportJobLogEntryType = z160.enum(["success", "info", "warning", "error", "user"]);
4383
+ var ExportJobLogEntry = z160.object({
4384
+ id: z160.string().optional(),
4385
+ time: z160.coerce.date(),
4293
4386
  type: ExportJobLogEntryType,
4294
- message: z152.string()
4387
+ message: z160.string()
4295
4388
  });
4296
- var ExportJobPullRequestDestinationResult = z152.object({
4297
- pullRequestUrl: z152.string()
4389
+ var ExportJobPullRequestDestinationResult = z160.object({
4390
+ pullRequestUrl: z160.string()
4298
4391
  });
4299
- var ExportJobS3DestinationResult = z152.object({
4300
- bucket: z152.string(),
4301
- urlPrefix: z152.string().optional(),
4302
- path: z152.string(),
4303
- files: z152.array(z152.string()),
4304
- url: nullishToOptional(z152.string()),
4305
- urls: nullishToOptional(z152.string().array())
4392
+ var ExportJobS3DestinationResult = z160.object({
4393
+ bucket: z160.string(),
4394
+ urlPrefix: z160.string().optional(),
4395
+ path: z160.string(),
4396
+ files: z160.array(z160.string()),
4397
+ url: nullishToOptional(z160.string()),
4398
+ urls: nullishToOptional(z160.string().array())
4306
4399
  });
4307
- var ExportJobDocsDestinationResult = z152.object({
4308
- url: z152.string()
4400
+ var ExportJobDocsDestinationResult = z160.object({
4401
+ url: z160.string()
4309
4402
  });
4310
- var ExportJobResult = z152.object({
4311
- error: z152.string().optional(),
4403
+ var ExportJobResult = z160.object({
4404
+ error: z160.string().optional(),
4312
4405
  s3: nullishToOptional(ExportJobS3DestinationResult),
4313
4406
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4314
4407
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4317,22 +4410,22 @@ var ExportJobResult = z152.object({
4317
4410
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4318
4411
  logs: nullishToOptional(ExportJobLogEntry.array())
4319
4412
  });
4320
- var ExportJob = z152.object({
4321
- id: z152.string(),
4322
- createdAt: z152.coerce.date(),
4323
- finishedAt: z152.coerce.date().optional(),
4324
- designSystemId: z152.string(),
4325
- designSystemVersionId: z152.string(),
4326
- workspaceId: z152.string(),
4327
- scheduleId: z152.string().nullish(),
4328
- exporterId: z152.string(),
4329
- brandId: z152.string().optional(),
4330
- themeId: z152.string().optional(),
4331
- themePersistentIds: z152.string().array().optional(),
4332
- estimatedExecutionTime: z152.number().optional(),
4413
+ var ExportJob = z160.object({
4414
+ id: z160.string(),
4415
+ createdAt: z160.coerce.date(),
4416
+ finishedAt: z160.coerce.date().optional(),
4417
+ designSystemId: z160.string(),
4418
+ designSystemVersionId: z160.string(),
4419
+ workspaceId: z160.string(),
4420
+ scheduleId: z160.string().nullish(),
4421
+ exporterId: z160.string(),
4422
+ brandId: z160.string().optional(),
4423
+ themeId: z160.string().optional(),
4424
+ themePersistentIds: z160.string().array().optional(),
4425
+ estimatedExecutionTime: z160.number().optional(),
4333
4426
  status: ExportJobStatus,
4334
4427
  result: ExportJobResult.optional(),
4335
- createdByUserId: z152.string().optional(),
4428
+ createdByUserId: z160.string().optional(),
4336
4429
  // Destinations
4337
4430
  ...ExportDestinationsMap.shape
4338
4431
  });
@@ -4346,24 +4439,24 @@ var ExportJobFindByFilter = ExportJob.pick({
4346
4439
  themeId: true,
4347
4440
  brandId: true
4348
4441
  }).extend({
4349
- destinations: z152.array(ExportJobDestinationType),
4442
+ destinations: z160.array(ExportJobDestinationType),
4350
4443
  docsEnvironment: PublishedDocEnvironment
4351
4444
  }).partial();
4352
- var ExporterWorkspaceMembershipRole = z153.enum(["Owner", "OwnerArchived", "User"]);
4353
- var ExporterWorkspaceMembership = z154.object({
4354
- id: z154.string(),
4355
- workspaceId: z154.string(),
4356
- exporterId: z154.string(),
4445
+ var ExporterWorkspaceMembershipRole = z161.enum(["Owner", "OwnerArchived", "User"]);
4446
+ var ExporterWorkspaceMembership = z162.object({
4447
+ id: z162.string(),
4448
+ workspaceId: z162.string(),
4449
+ exporterId: z162.string(),
4357
4450
  role: ExporterWorkspaceMembershipRole
4358
4451
  });
4359
- var FlaggedFeature = z155.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4360
- var FeatureFlagMap = z155.record(FlaggedFeature, z155.boolean());
4361
- var FeatureFlag = z155.object({
4362
- id: z155.string(),
4452
+ var FlaggedFeature = z163.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4453
+ var FeatureFlagMap = z163.record(FlaggedFeature, z163.boolean());
4454
+ var FeatureFlag = z163.object({
4455
+ id: z163.string(),
4363
4456
  feature: FlaggedFeature,
4364
- createdAt: z155.coerce.date(),
4365
- enabled: z155.boolean(),
4366
- designSystemId: z155.string().optional()
4457
+ createdAt: z163.coerce.date(),
4458
+ enabled: z163.boolean(),
4459
+ designSystemId: z163.string().optional()
4367
4460
  });
4368
4461
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4369
4462
  OAuthProviderNames2["Figma"] = "figma";
@@ -4373,173 +4466,107 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4373
4466
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4374
4467
  return OAuthProviderNames2;
4375
4468
  })(OAuthProviderNames || {});
4376
- var OAuthProviderSchema = z156.nativeEnum(OAuthProviderNames);
4469
+ var OAuthProviderSchema = z164.nativeEnum(OAuthProviderNames);
4377
4470
  var OAuthProvider = OAuthProviderSchema.enum;
4378
- var ExternalOAuthRequest = z157.object({
4379
- id: z157.string(),
4471
+ var ExternalOAuthRequest = z165.object({
4472
+ id: z165.string(),
4380
4473
  provider: OAuthProviderSchema,
4381
- userId: z157.string(),
4382
- state: z157.string(),
4383
- createdAt: z157.coerce.date()
4474
+ userId: z165.string(),
4475
+ state: z165.string(),
4476
+ createdAt: z165.coerce.date()
4384
4477
  });
4385
- var GitObjectsQuery = z158.object({
4386
- organization: z158.string().optional(),
4478
+ var GitObjectsQuery = z166.object({
4479
+ organization: z166.string().optional(),
4387
4480
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4388
- project: z158.string().optional(),
4481
+ project: z166.string().optional(),
4389
4482
  // Only for Bitbucket and Azure
4390
- repository: z158.string().optional(),
4483
+ repository: z166.string().optional(),
4391
4484
  // For all providers. For Gitlab, it's called "project".
4392
- branch: z158.string().optional(),
4485
+ branch: z166.string().optional(),
4393
4486
  // For all providers.
4394
- user: z158.string().optional()
4487
+ user: z166.string().optional()
4395
4488
  // Gitlab user
4396
4489
  });
4397
- var GitOrganization = z158.object({
4398
- id: z158.string(),
4399
- name: z158.string(),
4400
- url: z158.string(),
4401
- slug: z158.string()
4402
- });
4403
- var GitProject = z158.object({
4404
- id: z158.string(),
4405
- name: z158.string(),
4406
- url: z158.string(),
4407
- slug: z158.string()
4408
- });
4409
- var GitRepository = z158.object({
4410
- id: z158.string(),
4411
- name: z158.string(),
4412
- url: z158.string(),
4413
- slug: z158.string(),
4490
+ var GitOrganization = z166.object({
4491
+ id: z166.string(),
4492
+ name: z166.string(),
4493
+ url: z166.string(),
4494
+ slug: z166.string()
4495
+ });
4496
+ var GitProject = z166.object({
4497
+ id: z166.string(),
4498
+ name: z166.string(),
4499
+ url: z166.string(),
4500
+ slug: z166.string()
4501
+ });
4502
+ var GitRepository = z166.object({
4503
+ id: z166.string(),
4504
+ name: z166.string(),
4505
+ url: z166.string(),
4506
+ slug: z166.string(),
4414
4507
  /**
4415
4508
  * Can be undefined when:
4416
4509
  * - there are no branches in the repository yet
4417
4510
  * - Git provider doesn't expose this information on a repository via their API
4418
4511
  */
4419
- defaultBranch: z158.string().optional()
4512
+ defaultBranch: z166.string().optional()
4420
4513
  });
4421
- var GitBranch = z158.object({
4422
- name: z158.string(),
4423
- lastCommitId: z158.string()
4514
+ var GitBranch = z166.object({
4515
+ name: z166.string(),
4516
+ lastCommitId: z166.string()
4424
4517
  });
4425
- var IntegrationTokenSchemaOld = z159.object({
4426
- id: z159.string(),
4518
+ var IntegrationTokenSchemaOld = z167.object({
4519
+ id: z167.string(),
4427
4520
  provider: OAuthProviderSchema,
4428
- scope: z159.string(),
4429
- userId: z159.string(),
4430
- accessToken: z159.string(),
4431
- refreshToken: z159.string(),
4432
- expiresAt: z159.coerce.date(),
4433
- externalUserId: z159.string().nullish()
4434
- });
4435
- var WorkspaceOAuthRequestSchema = z160.object({
4436
- id: z160.string(),
4437
- workspaceId: z160.string(),
4521
+ scope: z167.string(),
4522
+ userId: z167.string(),
4523
+ accessToken: z167.string(),
4524
+ refreshToken: z167.string(),
4525
+ expiresAt: z167.coerce.date(),
4526
+ externalUserId: z167.string().nullish()
4527
+ });
4528
+ var WorkspaceOAuthRequestSchema = z168.object({
4529
+ id: z168.string(),
4530
+ workspaceId: z168.string(),
4438
4531
  provider: OAuthProviderSchema,
4439
- userId: z160.string(),
4440
- createdAt: z160.coerce.date()
4532
+ userId: z168.string(),
4533
+ createdAt: z168.coerce.date()
4441
4534
  });
4442
- var AnyRecord = z161.record(z161.any());
4535
+ var AnyRecord = z169.record(z169.any());
4443
4536
  var NpmPackageVersionDist = AnyRecord.and(
4444
- z161.object({
4445
- tarball: z161.string()
4537
+ z169.object({
4538
+ tarball: z169.string()
4446
4539
  })
4447
4540
  );
4448
4541
  var NpmPackageVersion = AnyRecord.and(
4449
- z161.object({
4542
+ z169.object({
4450
4543
  dist: NpmPackageVersionDist
4451
4544
  })
4452
4545
  );
4453
4546
  var NpmPackage = AnyRecord.and(
4454
- z161.object({
4455
- _id: z161.string(),
4456
- name: z161.string(),
4547
+ z169.object({
4548
+ _id: z169.string(),
4549
+ name: z169.string(),
4457
4550
  // e.g. "latest": "1.2.3"
4458
- "dist-tags": z161.record(z161.string(), z161.string()),
4551
+ "dist-tags": z169.record(z169.string(), z169.string()),
4459
4552
  // "1.2.3": {...}
4460
- versions: z161.record(NpmPackageVersion)
4553
+ versions: z169.record(NpmPackageVersion)
4461
4554
  })
4462
4555
  );
4463
- var NpmProxyTokenPayload = z162.object({
4464
- npmProxyRegistryConfigId: z162.string()
4465
- });
4466
- var WorkspaceRoleSchema = z163.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4467
- var WorkspaceRole = WorkspaceRoleSchema.enum;
4468
- var MAX_MEMBERS_COUNT = 100;
4469
- var UserInvite = z164.object({
4470
- email: z164.string().email().trim().transform((value) => value.toLowerCase()),
4471
- role: WorkspaceRoleSchema
4472
- });
4473
- var UserInvites = z164.array(UserInvite).max(MAX_MEMBERS_COUNT);
4474
- var WorkspaceConfigurationUpdate = z165.object({
4475
- id: z165.string(),
4476
- ipWhitelist: WorkspaceIpSettings.optional(),
4477
- sso: SsoProvider.optional(),
4478
- npmRegistrySettings: NpmRegistryConfig.optional(),
4479
- profile: WorkspaceProfileUpdate.optional()
4480
- });
4481
- var WorkspaceContext = z166.object({
4482
- workspaceId: z166.string(),
4483
- product: ProductCodeSchema,
4484
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4485
- publicDesignSystem: z166.boolean().optional()
4486
- });
4487
- var WORKSPACE_NAME_MIN_LENGTH = 2;
4488
- var WORKSPACE_NAME_MAX_LENGTH = 64;
4489
- var HANDLE_MIN_LENGTH = 2;
4490
- var HANDLE_MAX_LENGTH = 64;
4491
- var CreateWorkspaceInput = z167.object({
4492
- name: z167.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4493
- product: ProductCodeSchema,
4494
- priceId: z167.string(),
4495
- billingEmail: z167.string().email().optional(),
4496
- handle: z167.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4497
- invites: UserInvites.optional(),
4498
- promoCode: z167.string().optional(),
4499
- status: InternalStatusSchema.optional(),
4500
- planInterval: BillingIntervalSchema.optional(),
4501
- seats: z167.number().optional(),
4502
- seatLimit: z167.number().optional(),
4503
- card: CardSchema.optional(),
4504
- sso: SsoProvider.optional(),
4505
- npmRegistrySettings: NpmRegistryConfig.optional(),
4506
- ipWhitelist: WorkspaceIpSettings.optional()
4507
- });
4508
- var WorkspaceInvitation = z168.object({
4509
- id: z168.string(),
4510
- email: z168.string().email(),
4511
- createdAt: z168.coerce.date(),
4512
- resentAt: z168.coerce.date().nullish(),
4513
- role: z168.nativeEnum(WorkspaceRole),
4514
- workspaceId: z168.string(),
4515
- invitedBy: z168.string()
4516
- });
4517
- var WorkspaceMembership = z169.object({
4518
- id: z169.string(),
4519
- userId: z169.string(),
4520
- workspaceId: z169.string(),
4521
- workspaceRole: z169.nativeEnum(WorkspaceRole),
4522
- notificationSettings: UserNotificationSettings
4556
+ var NpmProxyTokenPayload = z170.object({
4557
+ npmProxyRegistryConfigId: z170.string()
4523
4558
  });
4524
- var UpdateMembershipRolesInput = z169.object({
4525
- members: z169.array(
4526
- z169.object({
4527
- userId: z169.string(),
4528
- role: z169.nativeEnum(WorkspaceRole)
4529
- })
4530
- )
4531
- });
4532
- var PersonalAccessToken = z170.object({
4533
- id: z170.string(),
4534
- userId: z170.string(),
4535
- workspaceId: z170.string().optional(),
4559
+ var PersonalAccessToken = z171.object({
4560
+ id: z171.string(),
4561
+ userId: z171.string(),
4562
+ workspaceId: z171.string().optional(),
4536
4563
  workspaceRole: WorkspaceRoleSchema.optional(),
4537
- name: z170.string(),
4538
- hidden: z170.boolean(),
4539
- token: z170.string(),
4540
- scope: z170.string().optional(),
4541
- createdAt: z170.coerce.date(),
4542
- expireAt: z170.coerce.date().optional()
4564
+ name: z171.string(),
4565
+ hidden: z171.boolean(),
4566
+ token: z171.string(),
4567
+ scope: z171.string().optional(),
4568
+ createdAt: z171.coerce.date(),
4569
+ expireAt: z171.coerce.date().optional()
4543
4570
  });
4544
4571
 
4545
4572
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
@@ -4956,238 +4983,249 @@ function integrationCredentialToDto(credential) {
4956
4983
  }
4957
4984
 
4958
4985
  // src/api/dto/aux/pagination.ts
4959
- import { z as z171 } from "zod";
4960
- var DTOPagination = z171.object({
4961
- limit: z171.string().optional(),
4962
- offset: z171.string().optional()
4986
+ import { z as z172 } from "zod";
4987
+ var DTOPagination = z172.object({
4988
+ limit: z172.string().optional(),
4989
+ offset: z172.string().optional()
4963
4990
  });
4964
4991
 
4965
4992
  // src/api/dto/bff/app-bootstrap-data.ts
4966
- import { z as z195 } from "zod";
4993
+ import { z as z197 } from "zod";
4967
4994
 
4968
4995
  // src/api/dto/design-systems/brand.ts
4969
- import { z as z172 } from "zod";
4970
- var DTOBrand = z172.object({
4971
- id: z172.string(),
4972
- designSystemVersionId: z172.string(),
4973
- persistentId: z172.string(),
4996
+ import { z as z173 } from "zod";
4997
+ var DTOBrand = z173.object({
4998
+ id: z173.string(),
4999
+ designSystemVersionId: z173.string(),
5000
+ persistentId: z173.string(),
4974
5001
  meta: ObjectMeta
4975
5002
  });
4976
- var DTOBrandGetResponse = z172.object({ brand: DTOBrand });
4977
- var DTOBrandCreateResponse = z172.object({
5003
+ var DTOBrandGetResponse = z173.object({ brand: DTOBrand });
5004
+ var DTOBrandCreateResponse = z173.object({
4978
5005
  brand: DTOBrand
4979
5006
  });
4980
- var DTOBrandsListResponse = z172.object({ brands: z172.array(DTOBrand) });
5007
+ var DTOBrandsListResponse = z173.object({ brands: z173.array(DTOBrand) });
4981
5008
 
4982
5009
  // src/api/dto/design-systems/data-source.ts
4983
- import { z as z173 } from "zod";
4984
- var DTODataSourceFigmaFileVersion = z173.object({
4985
- id: z173.string(),
4986
- created_at: z173.coerce.date(),
4987
- label: z173.string(),
4988
- description: z173.string()
4989
- });
4990
- var DTODataSourceFigmaCloud = z173.object({
4991
- fileId: z173.string(),
5010
+ import { z as z174 } from "zod";
5011
+ var DTODataSourceFigmaFileVersion = z174.object({
5012
+ id: z174.string(),
5013
+ created_at: z174.coerce.date(),
5014
+ label: z174.string(),
5015
+ description: z174.string()
5016
+ });
5017
+ var DTODataSourceFigmaCloud = z174.object({
5018
+ fileId: z174.string(),
4992
5019
  state: DataSourceFigmaState,
4993
5020
  autoImportMode: DataSourceAutoImportMode,
4994
- fileThumbnailUrl: z173.string().optional(),
5021
+ fileThumbnailUrl: z174.string().optional(),
4995
5022
  lastImportResult: SourceImportSummary.nullish(),
4996
- lastImportedAt: z173.date().nullish(),
5023
+ lastImportedAt: z174.date().nullish(),
4997
5024
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4998
- lastUpdatesCheckedAt: z173.date().nullish(),
4999
- ownerId: z173.string(),
5000
- ownerUserName: z173.string().optional(),
5001
- preferredCredentialId: z173.string().optional(),
5025
+ lastUpdatesCheckedAt: z174.date().nullish(),
5026
+ ownerId: z174.string(),
5027
+ ownerUserName: z174.string().optional(),
5028
+ preferredCredentialId: z174.string().optional(),
5002
5029
  stats: DataSourceStats
5003
5030
  });
5004
- var DTODataSourceFigma = z173.object({
5005
- id: z173.string(),
5006
- type: z173.literal(DataSourceRemoteType.Enum.Figma),
5007
- fileName: z173.string(),
5031
+ var DTODataSourceFigma = z174.object({
5032
+ id: z174.string(),
5033
+ type: z174.literal(DataSourceRemoteType.Enum.Figma),
5034
+ fileName: z174.string(),
5008
5035
  scope: DataSourceFigmaScope,
5009
- brandId: z173.string(),
5010
- themeId: z173.string().nullish(),
5036
+ brandId: z174.string(),
5037
+ themeId: z174.string().nullish(),
5011
5038
  cloud: DTODataSourceFigmaCloud.nullish(),
5012
- tokenStudio: z173.literal(null),
5013
- upload: z173.literal(null),
5014
- figmaVariablesPlugin: z173.literal(null)
5015
- });
5016
- var DTODataSourceTokenStudio = z173.object({
5017
- id: z173.string(),
5018
- type: z173.literal(DataSourceRemoteType.Enum.TokenStudio),
5019
- fileName: z173.string(),
5020
- brandId: z173.string(),
5021
- themeId: z173.string().nullish(),
5022
- cloud: z173.literal(null),
5023
- tokenStudio: z173.object({
5024
- settings: z173.object({
5025
- dryRun: z173.boolean(),
5026
- verbose: z173.boolean(),
5027
- preciseCopy: z173.boolean()
5039
+ tokenStudio: z174.literal(null),
5040
+ upload: z174.literal(null),
5041
+ figmaVariablesPlugin: z174.literal(null)
5042
+ });
5043
+ var DTODataSourceTokenStudio = z174.object({
5044
+ id: z174.string(),
5045
+ type: z174.literal(DataSourceRemoteType.Enum.TokenStudio),
5046
+ fileName: z174.string(),
5047
+ brandId: z174.string(),
5048
+ themeId: z174.string().nullish(),
5049
+ cloud: z174.literal(null),
5050
+ tokenStudio: z174.object({
5051
+ settings: z174.object({
5052
+ dryRun: z174.boolean(),
5053
+ verbose: z174.boolean(),
5054
+ preciseCopy: z174.boolean()
5028
5055
  }),
5029
- connectionName: z173.string(),
5030
- lastImportedAt: z173.date(),
5031
- lastImportedResults: z173.array(
5032
- z173.object({
5033
- mapping: z173.object({
5034
- tokenSets: z173.array(z173.string()),
5035
- supernovaBrand: z173.string(),
5036
- supernovaTheme: z173.string().optional()
5056
+ connectionName: z174.string(),
5057
+ lastImportedAt: z174.date(),
5058
+ lastImportedResults: z174.array(
5059
+ z174.object({
5060
+ mapping: z174.object({
5061
+ tokenSets: z174.array(z174.string()),
5062
+ supernovaBrand: z174.string(),
5063
+ supernovaTheme: z174.string().optional()
5037
5064
  }),
5038
- isFailed: z173.boolean(),
5039
- tokensCreated: z173.number(),
5040
- tokensDeleted: z173.number(),
5041
- tokensUpdated: z173.number()
5065
+ isFailed: z174.boolean(),
5066
+ tokensCreated: z174.number(),
5067
+ tokensDeleted: z174.number(),
5068
+ tokensUpdated: z174.number()
5042
5069
  })
5043
5070
  )
5044
5071
  }),
5045
- upload: z173.literal(null),
5046
- figmaVariablesPlugin: z173.literal(null)
5047
- });
5048
- var DTODataSourceFigmaVariablesPlugin = z173.object({
5049
- id: z173.string(),
5050
- type: z173.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5051
- fileName: z173.string(),
5052
- brandId: z173.string(),
5053
- themeId: z173.literal(null),
5054
- cloud: z173.literal(null),
5055
- tokenStudio: z173.literal(null),
5056
- upload: z173.object({
5057
- remoteId: z173.string(),
5072
+ upload: z174.literal(null),
5073
+ figmaVariablesPlugin: z174.literal(null)
5074
+ });
5075
+ var DTODataSourceFigmaVariablesPlugin = z174.object({
5076
+ id: z174.string(),
5077
+ type: z174.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5078
+ fileName: z174.string(),
5079
+ brandId: z174.string(),
5080
+ themeId: z174.literal(null),
5081
+ cloud: z174.literal(null),
5082
+ tokenStudio: z174.literal(null),
5083
+ upload: z174.object({
5084
+ remoteId: z174.string(),
5058
5085
  remoteSourceType: DataSourceUploadRemoteSource,
5059
- lastImportedAt: z173.date().optional(),
5086
+ lastImportedAt: z174.date().optional(),
5060
5087
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5061
5088
  }),
5062
- figmaVariablesPlugin: z173.object({
5063
- fileId: z173.string(),
5064
- lastImportedAt: z173.date().optional(),
5089
+ figmaVariablesPlugin: z174.object({
5090
+ fileId: z174.string(),
5091
+ lastImportedAt: z174.date().optional(),
5065
5092
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5066
5093
  })
5067
5094
  });
5068
- var DTODataSource = z173.discriminatedUnion("type", [
5095
+ var DTODataSource = z174.discriminatedUnion("type", [
5069
5096
  DTODataSourceFigma,
5070
5097
  DTODataSourceFigmaVariablesPlugin,
5071
5098
  DTODataSourceTokenStudio
5072
5099
  ]);
5073
- var DTODataSourcesListResponse = z173.object({
5074
- sources: z173.array(DTODataSource)
5100
+ var DTODataSourcesListResponse = z174.object({
5101
+ sources: z174.array(DTODataSource)
5075
5102
  });
5076
- var DTODataSourceCreationResponse = z173.object({
5103
+ var DTODataSourceCreationResponse = z174.object({
5077
5104
  source: DTODataSource
5078
5105
  });
5079
5106
 
5080
5107
  // src/api/dto/design-systems/design-system.ts
5081
- import { z as z174 } from "zod";
5108
+ import { z as z175 } from "zod";
5082
5109
  var DTODesignSystem = DesignSystem.omit({
5083
5110
  name: true,
5084
5111
  description: true,
5085
5112
  docExporterId: true
5086
5113
  }).extend({
5087
5114
  meta: ObjectMeta,
5088
- docExporterId: z174.string(),
5089
- sources: z174.array(z174.any()),
5115
+ docExporterId: z175.string(),
5116
+ sources: z175.array(z175.any()),
5090
5117
  role: WorkspaceRoleSchema.optional()
5091
5118
  });
5092
- var DTODesignSystemResponse = z174.object({
5119
+ var DTODesignSystemResponse = z175.object({
5093
5120
  designSystem: DTODesignSystem
5094
5121
  });
5095
- var DTODesignSystemsListResponse = z174.object({
5122
+ var DTODesignSystemsListResponse = z175.object({
5096
5123
  designSystems: DTODesignSystem.array()
5097
5124
  });
5098
- var DTODesignSystemCreateInput = z174.object({
5099
- workspaceId: z174.string(),
5125
+ var DTODesignSystemCreateInput = z175.object({
5126
+ workspaceId: z175.string(),
5100
5127
  meta: ObjectMeta.optional(),
5101
- name: z174.string().min(2).max(64).optional(),
5102
- description: z174.string().max(1024).optional(),
5128
+ name: z175.string().min(2).max(64).optional(),
5129
+ description: z175.string().max(1024).optional(),
5103
5130
  accessMode: DesignSystemAccessMode.optional(),
5104
- inviteUserIds: z174.string().array().optional()
5131
+ inviteUserIds: z175.string().array().optional()
5105
5132
  });
5106
5133
 
5107
5134
  // src/api/dto/design-systems/elements-diff.ts
5108
- import { z as z175 } from "zod";
5109
- var DTODiffCountBase = z175.object({
5110
- created: z175.number(),
5111
- updated: z175.number(),
5112
- deleted: z175.number()
5135
+ import { z as z176 } from "zod";
5136
+ var DTODiffCountBase = z176.object({
5137
+ created: z176.number(),
5138
+ updated: z176.number(),
5139
+ deleted: z176.number()
5113
5140
  });
5114
- var DTODesignElementsDataDiffResponse = z175.object({
5141
+ var DTODesignElementsDataDiffResponse = z176.object({
5115
5142
  tokens: DTODiffCountBase,
5116
5143
  assets: DTODiffCountBase
5117
5144
  });
5118
5145
 
5119
5146
  // src/api/dto/design-systems/exporter-property.ts
5120
- import { z as z176 } from "zod";
5121
- var DTOExporterProperty = z176.any({});
5122
- var DTOExporterPropertyListResponse = z176.object({ items: z176.array(DTOExporterProperty) });
5147
+ import { z as z177 } from "zod";
5148
+ var DTOExporterProperty = z177.any({});
5149
+ var DTOExporterPropertyListResponse = z177.object({ items: z177.array(DTOExporterProperty) });
5123
5150
 
5124
5151
  // src/api/dto/design-systems/members.ts
5125
- import { z as z177 } from "zod";
5126
- var DTODesignSystemMember = z177.object({
5127
- userId: z177.string()
5152
+ import { z as z178 } from "zod";
5153
+ var DTODesignSystemMember = z178.object({
5154
+ userId: z178.string()
5128
5155
  });
5129
- var DTODesignSystemMemberListResponse = z177.object({
5130
- members: DTODesignSystemMember.array()
5156
+ var DTODesignSystemInvitation = z178.object({
5157
+ id: z178.string(),
5158
+ workspaceInvitationId: z178.string()
5131
5159
  });
5132
- var DTODesignSystemMembersUpdateResponse = z177.object({
5133
- ok: z177.literal(true)
5160
+ var DTODesignSystemMemberListResponse = z178.object({
5161
+ members: DTODesignSystemMember.array(),
5162
+ invitations: DTODesignSystemInvitation.array()
5134
5163
  });
5135
- var DTODesignSystemMembersUpdatePayload = z177.object({
5136
- inviteUserIds: z177.string().array().optional(),
5137
- removeUserIds: z177.string().array().optional()
5164
+ var DTODesignSystemMembersUpdateResponse = z178.object({
5165
+ ok: z178.literal(true)
5138
5166
  });
5167
+ var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5139
5168
 
5140
5169
  // src/api/dto/design-systems/version.ts
5141
- import { z as z187 } from "zod";
5170
+ import { z as z189 } from "zod";
5142
5171
 
5143
5172
  // src/api/payloads/design-systems/brand.ts
5144
- import { z as z178 } from "zod";
5145
- var DTOCreateBrandInput = z178.object({
5146
- persistentId: z178.string().uuid(),
5147
- meta: z178.object({
5148
- name: z178.string(),
5149
- description: z178.string()
5173
+ import { z as z179 } from "zod";
5174
+ var DTOCreateBrandInput = z179.object({
5175
+ persistentId: z179.string().uuid(),
5176
+ meta: z179.object({
5177
+ name: z179.string(),
5178
+ description: z179.string()
5150
5179
  })
5151
5180
  });
5152
5181
 
5153
5182
  // src/api/payloads/design-systems/update-design-system.ts
5183
+ import { z as z180 } from "zod";
5154
5184
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5155
5185
  id: true,
5156
5186
  workspaceId: true,
5157
5187
  createdAt: true,
5158
5188
  updatedAt: true,
5159
5189
  docSlug: true,
5160
- docViewUrl: true
5190
+ docViewUrl: true,
5191
+ accessMode: true
5161
5192
  }).extend({
5162
5193
  meta: ObjectMeta.partial().optional()
5163
5194
  });
5195
+ var DTODesignSystemUpdateAccessModeInput = z180.object({
5196
+ accessMode: DesignSystemAccessMode,
5197
+ retain: z180.object({
5198
+ userIds: z180.string().array(),
5199
+ inviteIds: z180.string().array()
5200
+ }).optional()
5201
+ });
5164
5202
 
5165
5203
  // src/api/payloads/design-systems/version.ts
5166
- import { z as z179 } from "zod";
5167
- var ObjectMeta2 = z179.object({
5168
- name: z179.string().max(150).optional(),
5169
- description: z179.string().max(2e3).optional()
5204
+ import { z as z181 } from "zod";
5205
+ var ObjectMeta2 = z181.object({
5206
+ name: z181.string().max(150).optional(),
5207
+ description: z181.string().max(2e3).optional()
5170
5208
  });
5171
5209
  function validateDesignSystemVersion(version) {
5172
5210
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5173
5211
  return urlCompliantRegex.test(version);
5174
5212
  }
5175
- var DTOCreateVersionInput = z179.object({
5213
+ var DTOCreateVersionInput = z181.object({
5176
5214
  meta: ObjectMeta2,
5177
- version: z179.string().refine(validateDesignSystemVersion, {
5215
+ version: z181.string().refine(validateDesignSystemVersion, {
5178
5216
  message: "Invalid semantic versioning format"
5179
5217
  }),
5180
- changeLog: z179.string().optional()
5218
+ changeLog: z181.string().optional()
5181
5219
  });
5182
- var DTOUpdateVersionInput = z179.object({
5220
+ var DTOUpdateVersionInput = z181.object({
5183
5221
  meta: ObjectMeta2,
5184
- version: z179.string(),
5222
+ version: z181.string(),
5185
5223
  // required for PUT, but not editable
5186
- changeLog: z179.string()
5224
+ changeLog: z181.string()
5187
5225
  });
5188
5226
 
5189
5227
  // src/api/payloads/documentation/block-definitions.ts
5190
- import { z as z180 } from "zod";
5228
+ import { z as z182 } from "zod";
5191
5229
 
5192
5230
  // src/api/dto/documentation/block-definition.ts
5193
5231
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5199,60 +5237,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5199
5237
  var DTOPageBlockDefinition = PageBlockDefinition;
5200
5238
 
5201
5239
  // src/api/payloads/documentation/block-definitions.ts
5202
- var DTOGetBlockDefinitionsOutput = z180.object({
5203
- definitions: z180.array(DTOPageBlockDefinition)
5240
+ var DTOGetBlockDefinitionsOutput = z182.object({
5241
+ definitions: z182.array(DTOPageBlockDefinition)
5204
5242
  });
5205
5243
 
5206
5244
  // src/api/payloads/documentation/design-data-doc-diff.ts
5207
- import { z as z181 } from "zod";
5208
- var DTODocumentationPublishTypeQueryParams = z181.object({
5209
- environment: z181.enum(["Live", "Preview"])
5245
+ import { z as z183 } from "zod";
5246
+ var DTODocumentationPublishTypeQueryParams = z183.object({
5247
+ environment: z183.enum(["Live", "Preview"])
5210
5248
  });
5211
5249
 
5212
5250
  // src/api/payloads/export/pipeline.ts
5213
- import { z as z182 } from "zod";
5214
- var DTOPipelineCreateBody = z182.object({
5215
- name: z182.string(),
5216
- exporterId: z182.string(),
5217
- designSystemId: z182.string(),
5218
- isEnabled: z182.boolean(),
5251
+ import { z as z184 } from "zod";
5252
+ var DTOPipelineCreateBody = z184.object({
5253
+ name: z184.string(),
5254
+ exporterId: z184.string(),
5255
+ designSystemId: z184.string(),
5256
+ isEnabled: z184.boolean(),
5219
5257
  eventType: PipelineEventType,
5220
- brandPersistentId: z182.string().optional(),
5221
- themePersistentId: z182.string().optional(),
5222
- themePersistentIds: z182.string().array().optional(),
5258
+ brandPersistentId: z184.string().optional(),
5259
+ themePersistentId: z184.string().optional(),
5260
+ themePersistentIds: z184.string().array().optional(),
5223
5261
  destination: PipelineDestinationType.optional(),
5224
5262
  gitQuery: GitObjectsQuery,
5225
- destinations: z182.object({
5263
+ destinations: z184.object({
5226
5264
  s3: ExporterDestinationS3.nullish(),
5227
5265
  azure: ExporterDestinationAzure.nullish(),
5228
5266
  bitbucket: ExporterDestinationBitbucket.nullish(),
5229
5267
  github: ExporterDestinationGithub.nullish(),
5230
5268
  gitlab: ExporterDestinationGitlab.nullish(),
5231
5269
  documentation: ExporterDestinationDocs.nullish(),
5232
- webhookUrl: z182.string().nullish()
5270
+ webhookUrl: z184.string().nullish()
5233
5271
  })
5234
5272
  });
5235
5273
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5236
- id: z182.string()
5274
+ id: z184.string()
5237
5275
  });
5238
- var DTOPipelineTriggerBody = z182.object({
5239
- designSystemVersionId: z182.string()
5276
+ var DTOPipelineTriggerBody = z184.object({
5277
+ designSystemVersionId: z184.string()
5240
5278
  });
5241
5279
 
5242
5280
  // src/api/payloads/liveblocks/auth.ts
5243
- import { z as z183 } from "zod";
5244
- var DTOLiveblocksAuthRequest = z183.object({
5245
- room: z183.string().optional()
5281
+ import { z as z185 } from "zod";
5282
+ var DTOLiveblocksAuthRequest = z185.object({
5283
+ room: z185.string().optional()
5246
5284
  });
5247
5285
 
5248
5286
  // src/api/payloads/users/notifications/notification-settings.ts
5249
- import { z as z184 } from "zod";
5250
- var DTOUpdateUserNotificationSettingsPayload = z184.object({
5287
+ import { z as z186 } from "zod";
5288
+ var DTOUpdateUserNotificationSettingsPayload = z186.object({
5251
5289
  notificationSettings: UserNotificationSettings
5252
5290
  });
5253
- var DTOUserNotificationSettingsResponse = z184.object({
5254
- userId: z184.string(),
5255
- workspaceId: z184.string(),
5291
+ var DTOUserNotificationSettingsResponse = z186.object({
5292
+ userId: z186.string(),
5293
+ workspaceId: z186.string(),
5256
5294
  notificationSettings: UserNotificationSettings
5257
5295
  });
5258
5296
 
@@ -5260,7 +5298,7 @@ var DTOUserNotificationSettingsResponse = z184.object({
5260
5298
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5261
5299
 
5262
5300
  // src/api/payloads/workspaces/workspace-configuration.ts
5263
- import { z as z185 } from "zod";
5301
+ import { z as z187 } from "zod";
5264
5302
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5265
5303
  function validateSsoPayload(ssoPayload) {
5266
5304
  const keys = [];
@@ -5283,21 +5321,21 @@ function validateSsoPayload(ssoPayload) {
5283
5321
  keys
5284
5322
  };
5285
5323
  }
5286
- var NpmRegistryInput = z185.object({
5287
- enabledScopes: z185.array(z185.string()),
5288
- customRegistryUrl: z185.string().optional(),
5289
- bypassProxy: z185.boolean().optional(),
5290
- npmProxyRegistryConfigId: z185.string().optional(),
5291
- npmProxyVersion: z185.number().optional(),
5292
- registryType: z185.string(),
5293
- authType: z185.string(),
5294
- authHeaderName: z185.string(),
5295
- authHeaderValue: z185.string(),
5296
- accessToken: z185.string(),
5297
- username: z185.string(),
5298
- password: z185.string()
5299
- });
5300
- var WorkspaceConfigurationPayload = z185.object({
5324
+ var NpmRegistryInput = z187.object({
5325
+ enabledScopes: z187.array(z187.string()),
5326
+ customRegistryUrl: z187.string().optional(),
5327
+ bypassProxy: z187.boolean().optional(),
5328
+ npmProxyRegistryConfigId: z187.string().optional(),
5329
+ npmProxyVersion: z187.number().optional(),
5330
+ registryType: z187.string(),
5331
+ authType: z187.string(),
5332
+ authHeaderName: z187.string(),
5333
+ authHeaderValue: z187.string(),
5334
+ accessToken: z187.string(),
5335
+ username: z187.string(),
5336
+ password: z187.string()
5337
+ });
5338
+ var WorkspaceConfigurationPayload = z187.object({
5301
5339
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5302
5340
  sso: SsoProvider.partial().optional(),
5303
5341
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5305,208 +5343,211 @@ var WorkspaceConfigurationPayload = z185.object({
5305
5343
  });
5306
5344
 
5307
5345
  // src/api/payloads/workspaces/workspace-integrations.ts
5308
- import { z as z186 } from "zod";
5309
- var DTOWorkspaceIntegrationOauthInput = z186.object({
5346
+ import { z as z188 } from "zod";
5347
+ var DTOWorkspaceIntegrationOauthInput = z188.object({
5310
5348
  type: IntegrationType
5311
5349
  });
5312
- var DTOWorkspaceIntegrationPATInput = z186.object({
5313
- userId: z186.string(),
5350
+ var DTOWorkspaceIntegrationPATInput = z188.object({
5351
+ userId: z188.string(),
5314
5352
  type: IntegrationType,
5315
5353
  token: IntegrationToken
5316
5354
  });
5317
- var DTOWorkspaceIntegrationGetGitObjectsInput = z186.object({
5318
- organization: z186.string().optional(),
5355
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z188.object({
5356
+ organization: z188.string().optional(),
5319
5357
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5320
- project: z186.string().optional(),
5358
+ project: z188.string().optional(),
5321
5359
  // Only for Bitbucket and Azure
5322
- repository: z186.string().optional(),
5360
+ repository: z188.string().optional(),
5323
5361
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5324
- branch: z186.string().optional(),
5362
+ branch: z188.string().optional(),
5325
5363
  // For all providers, useful for PR creations.
5326
- user: z186.string().optional()
5364
+ user: z188.string().optional()
5327
5365
  // Only for Gitlab User Repositories
5328
5366
  });
5329
5367
 
5330
5368
  // src/api/dto/design-systems/version.ts
5331
- var DTODesignSystemVersion = z187.object({
5332
- id: z187.string(),
5333
- createdAt: z187.date(),
5369
+ var DTODesignSystemVersion = z189.object({
5370
+ id: z189.string(),
5371
+ createdAt: z189.date(),
5334
5372
  meta: ObjectMeta,
5335
- version: z187.string(),
5336
- isReadonly: z187.boolean(),
5337
- changeLog: z187.string(),
5338
- designSystemId: z187.string()
5373
+ version: z189.string(),
5374
+ isReadonly: z189.boolean(),
5375
+ changeLog: z189.string(),
5376
+ designSystemId: z189.string()
5339
5377
  });
5340
- var DTODesignSystemVersionsListResponse = z187.object({
5341
- designSystemVersions: z187.array(DTODesignSystemVersion)
5378
+ var DTODesignSystemVersionsListResponse = z189.object({
5379
+ designSystemVersions: z189.array(DTODesignSystemVersion)
5342
5380
  });
5343
- var DTODesignSystemVersionGetResponse = z187.object({
5381
+ var DTODesignSystemVersionGetResponse = z189.object({
5344
5382
  designSystemVersion: DTODesignSystemVersion
5345
5383
  });
5346
- var DTODesignSystemVersionCreationResponse = z187.object({
5384
+ var DTODesignSystemVersionCreationResponse = z189.object({
5347
5385
  meta: ObjectMeta,
5348
- version: z187.string(),
5349
- changeLog: z187.string(),
5350
- isReadOnly: z187.boolean(),
5351
- designSystemId: z187.string(),
5352
- jobId: z187.string()
5353
- });
5354
- var VersionSQSPayload = z187.object({
5355
- jobId: z187.string(),
5356
- designSystemId: z187.string(),
5386
+ version: z189.string(),
5387
+ changeLog: z189.string(),
5388
+ isReadOnly: z189.boolean(),
5389
+ designSystemId: z189.string(),
5390
+ jobId: z189.string()
5391
+ });
5392
+ var VersionSQSPayload = z189.object({
5393
+ jobId: z189.string(),
5394
+ designSystemId: z189.string(),
5357
5395
  input: DTOCreateVersionInput
5358
5396
  });
5359
- var DTODesignSystemVersionJobsResponse = z187.object({
5360
- jobs: z187.array(VersionCreationJob)
5397
+ var DTODesignSystemVersionJobsResponse = z189.object({
5398
+ jobs: z189.array(VersionCreationJob)
5361
5399
  });
5362
- var DTODesignSystemVersionJobStatusResponse = z187.object({
5400
+ var DTODesignSystemVersionJobStatusResponse = z189.object({
5363
5401
  job: VersionCreationJob
5364
5402
  });
5365
5403
 
5366
5404
  // src/api/dto/design-systems/view.ts
5367
- import { z as z188 } from "zod";
5368
- var DTOElementViewColumnSharedAttributes = z188.object({
5369
- id: z188.string(),
5370
- persistentId: z188.string(),
5371
- width: z188.number()
5405
+ import { z as z190 } from "zod";
5406
+ var DTOElementViewColumnSharedAttributes = z190.object({
5407
+ id: z190.string(),
5408
+ persistentId: z190.string(),
5409
+ width: z190.number()
5372
5410
  });
5373
5411
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5374
- type: z188.literal("BaseProperty"),
5412
+ type: z190.literal("BaseProperty"),
5375
5413
  basePropertyType: ElementViewBaseColumnType
5376
5414
  });
5377
5415
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5378
- type: z188.literal("PropertyDefinition"),
5379
- propertyDefinitionId: z188.string()
5416
+ type: z190.literal("PropertyDefinition"),
5417
+ propertyDefinitionId: z190.string()
5380
5418
  });
5381
5419
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5382
- type: z188.literal("Theme"),
5383
- themeId: z188.string()
5420
+ type: z190.literal("Theme"),
5421
+ themeId: z190.string()
5384
5422
  });
5385
- var DTOElementViewColumn = z188.discriminatedUnion("type", [
5423
+ var DTOElementViewColumn = z190.discriminatedUnion("type", [
5386
5424
  DTOElementViewBasePropertyColumn,
5387
5425
  DTOElementViewPropertyDefinitionColumn,
5388
5426
  DTOElementViewThemeColumn
5389
5427
  ]);
5390
- var DTOElementView = z188.object({
5428
+ var DTOElementView = z190.object({
5391
5429
  meta: ObjectMeta,
5392
- persistentId: z188.string(),
5430
+ persistentId: z190.string(),
5393
5431
  targetElementType: ElementPropertyTargetType,
5394
- id: z188.string(),
5395
- isDefault: z188.boolean(),
5396
- columns: z188.array(DTOElementViewColumn)
5432
+ id: z190.string(),
5433
+ isDefault: z190.boolean(),
5434
+ columns: z190.array(DTOElementViewColumn)
5397
5435
  });
5398
- var DTOElementViewsListResponse = z188.object({
5399
- elementDataViews: z188.array(DTOElementView)
5436
+ var DTOElementViewsListResponse = z190.object({
5437
+ elementDataViews: z190.array(DTOElementView)
5400
5438
  });
5401
5439
 
5402
5440
  // src/api/dto/workspaces/git.ts
5403
- import { z as z189 } from "zod";
5404
- var DTOGitOrganization = z189.object({
5405
- id: z189.string(),
5406
- name: z189.string(),
5407
- url: z189.string(),
5408
- slug: z189.string()
5409
- });
5410
- var DTOGitProject = z189.object({
5411
- id: z189.string(),
5412
- name: z189.string(),
5413
- url: z189.string(),
5414
- slug: z189.string()
5415
- });
5416
- var DTOGitRepository = z189.object({
5417
- id: z189.string(),
5418
- name: z189.string(),
5419
- url: z189.string(),
5420
- slug: z189.string(),
5421
- defaultBranch: z189.string().optional()
5422
- });
5423
- var DTOGitBranch = z189.object({
5424
- name: z189.string(),
5425
- lastCommitId: z189.string()
5441
+ import { z as z191 } from "zod";
5442
+ var DTOGitOrganization = z191.object({
5443
+ id: z191.string(),
5444
+ name: z191.string(),
5445
+ url: z191.string(),
5446
+ slug: z191.string()
5447
+ });
5448
+ var DTOGitProject = z191.object({
5449
+ id: z191.string(),
5450
+ name: z191.string(),
5451
+ url: z191.string(),
5452
+ slug: z191.string()
5453
+ });
5454
+ var DTOGitRepository = z191.object({
5455
+ id: z191.string(),
5456
+ name: z191.string(),
5457
+ url: z191.string(),
5458
+ slug: z191.string(),
5459
+ defaultBranch: z191.string().optional()
5460
+ });
5461
+ var DTOGitBranch = z191.object({
5462
+ name: z191.string(),
5463
+ lastCommitId: z191.string()
5426
5464
  });
5427
5465
 
5428
5466
  // src/api/dto/workspaces/integrations.ts
5429
- import { z as z190 } from "zod";
5467
+ import { z as z192 } from "zod";
5430
5468
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5431
5469
  accessToken: true,
5432
5470
  refreshToken: true
5433
5471
  });
5434
- var DTOIntegration = z190.object({
5435
- id: z190.string(),
5436
- workspaceId: z190.string(),
5472
+ var DTOIntegration = z192.object({
5473
+ id: z192.string(),
5474
+ workspaceId: z192.string(),
5437
5475
  type: ExtendedIntegrationType,
5438
- createdAt: z190.coerce.date(),
5439
- integrationCredentials: z190.array(DTOIntegrationCredentials).optional(),
5440
- integrationDesignSystems: z190.array(IntegrationDesignSystem).optional()
5476
+ createdAt: z192.coerce.date(),
5477
+ integrationCredentials: z192.array(DTOIntegrationCredentials).optional(),
5478
+ integrationDesignSystems: z192.array(IntegrationDesignSystem).optional()
5441
5479
  });
5442
- var DTOIntegrationOAuthGetResponse = z190.object({
5443
- url: z190.string()
5480
+ var DTOIntegrationOAuthGetResponse = z192.object({
5481
+ url: z192.string()
5444
5482
  });
5445
- var DTOIntegrationPostResponse = z190.object({
5483
+ var DTOIntegrationPostResponse = z192.object({
5446
5484
  integration: DTOIntegration
5447
5485
  });
5448
- var DTOIntegrationsGetListResponse = z190.object({
5486
+ var DTOIntegrationsGetListResponse = z192.object({
5449
5487
  integrations: DTOIntegration.array()
5450
5488
  });
5451
5489
 
5452
5490
  // src/api/dto/workspaces/invitations.ts
5453
- import { z as z191 } from "zod";
5454
- var DTOWorkspaceInvitationInput = z191.object({
5455
- email: z191.string().email(),
5491
+ import { z as z193 } from "zod";
5492
+ var DTOWorkspaceInvitationInput = z193.object({
5493
+ email: z193.string().email(),
5456
5494
  role: WorkspaceRoleSchema
5457
5495
  });
5458
- var DTOWorkspaceInvitationsListInput = z191.object({
5496
+ var DTOWorkspaceInvitationsListInput = z193.object({
5459
5497
  invites: DTOWorkspaceInvitationInput.array().max(100),
5460
- designSystemId: z191.string().optional()
5498
+ designSystemId: z193.string().optional()
5499
+ });
5500
+ var DTOWorkspaceInvitationsResponse = z193.object({
5501
+ invitations: WorkspaceInvitation.array()
5461
5502
  });
5462
5503
 
5463
5504
  // src/api/dto/workspaces/membership.ts
5464
- import { z as z194 } from "zod";
5505
+ import { z as z196 } from "zod";
5465
5506
 
5466
5507
  // src/api/dto/workspaces/workspace.ts
5467
- import { z as z193 } from "zod";
5508
+ import { z as z195 } from "zod";
5468
5509
 
5469
5510
  // src/api/dto/workspaces/npm-registry.ts
5470
- import { z as z192 } from "zod";
5511
+ import { z as z194 } from "zod";
5471
5512
  var DTONpmRegistryConfigConstants = {
5472
5513
  passwordPlaceholder: "redacted"
5473
5514
  };
5474
- var DTONpmRegistryConfig = z192.object({
5515
+ var DTONpmRegistryConfig = z194.object({
5475
5516
  // Registry basic configuration
5476
5517
  registryType: NpmRegistryType,
5477
- registryUrl: z192.string(),
5478
- customRegistryUrl: z192.string().optional(),
5518
+ registryUrl: z194.string(),
5519
+ customRegistryUrl: z194.string().optional(),
5479
5520
  // URL of Supernova NPM packages proxy
5480
- proxyUrl: z192.string(),
5521
+ proxyUrl: z194.string(),
5481
5522
  // Auth configuration
5482
5523
  authType: NpmRegistryAuthType,
5483
- accessToken: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5484
- username: z192.string().optional(),
5485
- password: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5524
+ accessToken: z194.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5525
+ username: z194.string().optional(),
5526
+ password: z194.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5486
5527
  // NPM package scopes for whih the proxy should be enabled
5487
- enabledScopes: z192.array(z192.string()),
5528
+ enabledScopes: z194.array(z194.string()),
5488
5529
  // True if client should bypass Supernova proxy and connect directly to the registry
5489
5530
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5490
- bypassProxy: z192.boolean()
5531
+ bypassProxy: z194.boolean()
5491
5532
  });
5492
5533
 
5493
5534
  // src/api/dto/workspaces/workspace.ts
5494
- var DTOWorkspace = z193.object({
5495
- id: z193.string(),
5535
+ var DTOWorkspace = z195.object({
5536
+ id: z195.string(),
5496
5537
  profile: WorkspaceProfile,
5497
5538
  subscription: Subscription,
5498
5539
  npmRegistry: DTONpmRegistryConfig.optional()
5499
5540
  });
5500
- var DTOWorkspaceCreateInput = z193.object({
5501
- name: z193.string()
5541
+ var DTOWorkspaceCreateInput = z195.object({
5542
+ name: z195.string()
5502
5543
  });
5503
- var DTOWorkspaceResponse = z193.object({
5544
+ var DTOWorkspaceResponse = z195.object({
5504
5545
  workspace: DTOWorkspace
5505
5546
  });
5506
5547
 
5507
5548
  // src/api/dto/workspaces/membership.ts
5508
- var DTOWorkspaceRole = z194.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5509
- var DTOUserWorkspaceMembership = z194.object({
5549
+ var DTOWorkspaceRole = z196.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5550
+ var DTOUserWorkspaceMembership = z196.object({
5510
5551
  // Workspace the user is a member of
5511
5552
  workspace: DTOWorkspace,
5512
5553
  // Assigned role the user has in the workspace
@@ -5516,18 +5557,18 @@ var DTOUserWorkspaceMembership = z194.object({
5516
5557
  // when a workspace's subscription is downgraded to free tier
5517
5558
  effectiveRole: DTOWorkspaceRole
5518
5559
  });
5519
- var DTOUserWorkspaceMembershipsResponse = z194.object({
5520
- membership: z194.array(DTOUserWorkspaceMembership)
5560
+ var DTOUserWorkspaceMembershipsResponse = z196.object({
5561
+ membership: z196.array(DTOUserWorkspaceMembership)
5521
5562
  });
5522
5563
 
5523
5564
  // src/api/dto/bff/app-bootstrap-data.ts
5524
- var DTOAppBootstrapDataQuery = z195.object({
5525
- preferredWorkspaceId: z195.string().optional(),
5526
- preferredDesignSystemId: z195.string().optional(),
5527
- preferredVersionId: z195.string().optional(),
5528
- preferredBrandId: z195.string().optional()
5565
+ var DTOAppBootstrapDataQuery = z197.object({
5566
+ preferredWorkspaceId: z197.string().optional(),
5567
+ preferredDesignSystemId: z197.string().optional(),
5568
+ preferredVersionId: z197.string().optional(),
5569
+ preferredBrandId: z197.string().optional()
5529
5570
  });
5530
- var DTOAppBootstrapDataResponse = z195.object({
5571
+ var DTOAppBootstrapDataResponse = z197.object({
5531
5572
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5532
5573
  designSystem: DTODesignSystem.optional(),
5533
5574
  version: DTODesignSystemVersion.optional(),
@@ -5535,19 +5576,19 @@ var DTOAppBootstrapDataResponse = z195.object({
5535
5576
  });
5536
5577
 
5537
5578
  // src/api/dto/documentation/anchor.ts
5538
- import { z as z196 } from "zod";
5579
+ import { z as z198 } from "zod";
5539
5580
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5540
- var DTOGetDocumentationPageAnchorsResponse = z196.object({
5541
- anchors: z196.array(DTODocumentationPageAnchor)
5581
+ var DTOGetDocumentationPageAnchorsResponse = z198.object({
5582
+ anchors: z198.array(DTODocumentationPageAnchor)
5542
5583
  });
5543
5584
 
5544
5585
  // src/api/dto/documentation/approvals.ts
5545
- import { z as z197 } from "zod";
5586
+ import { z as z199 } from "zod";
5546
5587
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5547
- var DTODocumentationGroupApprovalState = z197.object({
5548
- persistentId: z197.string(),
5549
- groupId: z197.string(),
5550
- designSystemVersionId: z197.string(),
5588
+ var DTODocumentationGroupApprovalState = z199.object({
5589
+ persistentId: z199.string(),
5590
+ groupId: z199.string(),
5591
+ designSystemVersionId: z199.string(),
5551
5592
  approvalState: DocumentationPageApprovalState
5552
5593
  });
5553
5594
 
@@ -5555,68 +5596,68 @@ var DTODocumentationGroupApprovalState = z197.object({
5555
5596
  var DTOPageBlockItemV2 = PageBlockItemV2;
5556
5597
 
5557
5598
  // src/api/dto/documentation/documentation-page-snapshot.ts
5558
- import { z as z202 } from "zod";
5599
+ import { z as z204 } from "zod";
5559
5600
 
5560
5601
  // src/api/dto/elements/documentation/page-v2.ts
5561
- import { z as z201 } from "zod";
5602
+ import { z as z203 } from "zod";
5562
5603
 
5563
5604
  // src/api/dto/elements/documentation/draft-state.ts
5564
- import { z as z199 } from "zod";
5605
+ import { z as z201 } from "zod";
5565
5606
 
5566
5607
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5567
- import { z as z198 } from "zod";
5608
+ import { z as z200 } from "zod";
5568
5609
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5569
- var DTODocumentationItemConfigurationV2 = z198.object({
5570
- showSidebar: z198.boolean(),
5571
- isPrivate: z198.boolean(),
5572
- isHidden: z198.boolean(),
5610
+ var DTODocumentationItemConfigurationV2 = z200.object({
5611
+ showSidebar: z200.boolean(),
5612
+ isPrivate: z200.boolean(),
5613
+ isHidden: z200.boolean(),
5573
5614
  header: DTODocumentationItemHeaderV2
5574
5615
  });
5575
5616
 
5576
5617
  // src/api/dto/elements/documentation/draft-state.ts
5577
- var DTODocumentationDraftChangeType = z199.enum(["Created", "Updated", "Deleted"]);
5578
- var DTODocumentationDraftStateCreated = z199.object({
5579
- changeType: z199.literal(DTODocumentationDraftChangeType.enum.Created)
5580
- });
5581
- var DTODocumentationDraftStateUpdated = z199.object({
5582
- changeType: z199.literal(DTODocumentationDraftChangeType.enum.Updated),
5583
- changes: z199.object({
5584
- previousTitle: z199.string().optional(),
5618
+ var DTODocumentationDraftChangeType = z201.enum(["Created", "Updated", "Deleted"]);
5619
+ var DTODocumentationDraftStateCreated = z201.object({
5620
+ changeType: z201.literal(DTODocumentationDraftChangeType.enum.Created)
5621
+ });
5622
+ var DTODocumentationDraftStateUpdated = z201.object({
5623
+ changeType: z201.literal(DTODocumentationDraftChangeType.enum.Updated),
5624
+ changes: z201.object({
5625
+ previousTitle: z201.string().optional(),
5585
5626
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5586
- previousContentHash: z199.string().optional()
5627
+ previousContentHash: z201.string().optional()
5587
5628
  })
5588
5629
  });
5589
- var DTODocumentationDraftStateDeleted = z199.object({
5590
- changeType: z199.literal(DTODocumentationDraftChangeType.enum.Deleted),
5591
- deletedAt: z199.coerce.date(),
5592
- deletedByUserId: z199.string()
5630
+ var DTODocumentationDraftStateDeleted = z201.object({
5631
+ changeType: z201.literal(DTODocumentationDraftChangeType.enum.Deleted),
5632
+ deletedAt: z201.coerce.date(),
5633
+ deletedByUserId: z201.string()
5593
5634
  });
5594
- var DTODocumentationDraftState = z199.discriminatedUnion("changeType", [
5635
+ var DTODocumentationDraftState = z201.discriminatedUnion("changeType", [
5595
5636
  DTODocumentationDraftStateCreated,
5596
5637
  DTODocumentationDraftStateUpdated,
5597
5638
  DTODocumentationDraftStateDeleted
5598
5639
  ]);
5599
5640
 
5600
5641
  // src/api/dto/elements/documentation/metadata.ts
5601
- import { z as z200 } from "zod";
5602
- var DTODocumentationPublishMetadata = z200.object({
5603
- lastPublishedByUserId: z200.string(),
5604
- lastPublishedAt: z200.coerce.date()
5642
+ import { z as z202 } from "zod";
5643
+ var DTODocumentationPublishMetadata = z202.object({
5644
+ lastPublishedByUserId: z202.string(),
5645
+ lastPublishedAt: z202.coerce.date()
5605
5646
  });
5606
5647
 
5607
5648
  // src/api/dto/elements/documentation/page-v2.ts
5608
- var DTODocumentationPageV2 = z201.object({
5609
- id: z201.string(),
5610
- persistentId: z201.string(),
5611
- designSystemVersionId: z201.string(),
5612
- title: z201.string(),
5649
+ var DTODocumentationPageV2 = z203.object({
5650
+ id: z203.string(),
5651
+ persistentId: z203.string(),
5652
+ designSystemVersionId: z203.string(),
5653
+ title: z203.string(),
5613
5654
  configuration: DTODocumentationItemConfigurationV2,
5614
- shortPersistentId: z201.string(),
5615
- slug: z201.string().optional(),
5616
- userSlug: z201.string().optional(),
5617
- createdAt: z201.coerce.date(),
5618
- updatedAt: z201.coerce.date(),
5619
- path: z201.string(),
5655
+ shortPersistentId: z203.string(),
5656
+ slug: z203.string().optional(),
5657
+ userSlug: z203.string().optional(),
5658
+ createdAt: z203.coerce.date(),
5659
+ updatedAt: z203.coerce.date(),
5660
+ path: z203.string(),
5620
5661
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5621
5662
  draftState: DTODocumentationDraftState.optional(),
5622
5663
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5624,197 +5665,197 @@ var DTODocumentationPageV2 = z201.object({
5624
5665
  /** Defines the approval state of the documentation page */
5625
5666
  approvalState: DTODocumentationPageApprovalState.optional(),
5626
5667
  // Backward compatibility
5627
- type: z201.literal("Page")
5668
+ type: z203.literal("Page")
5628
5669
  });
5629
- var DTOCreateDocumentationPageInputV2 = z201.object({
5670
+ var DTOCreateDocumentationPageInputV2 = z203.object({
5630
5671
  // Identifier
5631
- persistentId: z201.string().uuid(),
5672
+ persistentId: z203.string().uuid(),
5632
5673
  // Page properties
5633
- title: z201.string(),
5674
+ title: z203.string(),
5634
5675
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5635
5676
  // Page placement properties
5636
- parentPersistentId: z201.string().uuid(),
5637
- afterPersistentId: z201.string().uuid().nullish()
5677
+ parentPersistentId: z203.string().uuid(),
5678
+ afterPersistentId: z203.string().uuid().nullish()
5638
5679
  });
5639
- var DTOUpdateDocumentationPageInputV2 = z201.object({
5680
+ var DTOUpdateDocumentationPageInputV2 = z203.object({
5640
5681
  // Identifier of the group to update
5641
- id: z201.string(),
5682
+ id: z203.string(),
5642
5683
  // Page properties
5643
- title: z201.string().optional(),
5684
+ title: z203.string().optional(),
5644
5685
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5645
5686
  });
5646
- var DTOMoveDocumentationPageInputV2 = z201.object({
5687
+ var DTOMoveDocumentationPageInputV2 = z203.object({
5647
5688
  // Identifier of the group to update
5648
- id: z201.string(),
5689
+ id: z203.string(),
5649
5690
  // Page placement properties
5650
- parentPersistentId: z201.string().uuid(),
5651
- afterPersistentId: z201.string().uuid().nullish()
5691
+ parentPersistentId: z203.string().uuid(),
5692
+ afterPersistentId: z203.string().uuid().nullish()
5652
5693
  });
5653
- var DTODuplicateDocumentationPageInputV2 = z201.object({
5694
+ var DTODuplicateDocumentationPageInputV2 = z203.object({
5654
5695
  // Identifier of the page to duplicate from
5655
- id: z201.string(),
5696
+ id: z203.string(),
5656
5697
  // New page persistent id
5657
- persistentId: z201.string().uuid(),
5698
+ persistentId: z203.string().uuid(),
5658
5699
  // Page placement properties
5659
- parentPersistentId: z201.string().uuid(),
5660
- afterPersistentId: z201.string().uuid().nullish()
5700
+ parentPersistentId: z203.string().uuid(),
5701
+ afterPersistentId: z203.string().uuid().nullish()
5661
5702
  });
5662
- var DTODeleteDocumentationPageInputV2 = z201.object({
5703
+ var DTODeleteDocumentationPageInputV2 = z203.object({
5663
5704
  // Identifier
5664
- id: z201.string()
5705
+ id: z203.string()
5665
5706
  });
5666
- var DTORestoreDocumentationPageInput = z201.object({
5667
- persistentId: z201.string(),
5668
- snapshotId: z201.string().optional()
5707
+ var DTORestoreDocumentationPageInput = z203.object({
5708
+ persistentId: z203.string(),
5709
+ snapshotId: z203.string().optional()
5669
5710
  });
5670
- var DTORestoreDocumentationGroupInput = z201.object({
5671
- persistentId: z201.string(),
5672
- snapshotId: z201.string().optional()
5711
+ var DTORestoreDocumentationGroupInput = z203.object({
5712
+ persistentId: z203.string(),
5713
+ snapshotId: z203.string().optional()
5673
5714
  });
5674
- var DTODocumentationPageApprovalStateChangeInput = z201.object({
5675
- persistentId: z201.string(),
5715
+ var DTODocumentationPageApprovalStateChangeInput = z203.object({
5716
+ persistentId: z203.string(),
5676
5717
  approvalState: DocumentationPageApprovalState.optional()
5677
5718
  });
5678
5719
 
5679
5720
  // src/api/dto/documentation/documentation-page-snapshot.ts
5680
- var DTODocumentationPageSnapshot = z202.object({
5681
- id: z202.string(),
5682
- designSystemVersionId: z202.string(),
5683
- createdAt: z202.string(),
5684
- updatedAt: z202.string(),
5721
+ var DTODocumentationPageSnapshot = z204.object({
5722
+ id: z204.string(),
5723
+ designSystemVersionId: z204.string(),
5724
+ createdAt: z204.string(),
5725
+ updatedAt: z204.string(),
5685
5726
  documentationPage: DTODocumentationPageV2,
5686
- pageContentHash: z202.string(),
5727
+ pageContentHash: z204.string(),
5687
5728
  reason: DesignElementSnapshotReason
5688
5729
  });
5689
5730
 
5690
5731
  // src/api/dto/documentation/link-preview.ts
5691
- import { z as z203 } from "zod";
5692
- var DTODocumentationLinkPreviewResponse = z203.object({
5732
+ import { z as z205 } from "zod";
5733
+ var DTODocumentationLinkPreviewResponse = z205.object({
5693
5734
  linkPreview: DocumentationLinkPreview
5694
5735
  });
5695
- var DTODocumentationLinkPreviewRequest = z203.object({
5696
- url: z203.string().optional(),
5697
- documentationItemPersistentId: z203.string().optional()
5736
+ var DTODocumentationLinkPreviewRequest = z205.object({
5737
+ url: z205.string().optional(),
5738
+ documentationItemPersistentId: z205.string().optional()
5698
5739
  });
5699
5740
 
5700
5741
  // src/api/dto/documentation/publish.ts
5701
- import { z as z207 } from "zod";
5742
+ import { z as z209 } from "zod";
5702
5743
 
5703
5744
  // src/api/dto/export/exporter.ts
5704
- import { z as z204 } from "zod";
5705
- var DTOExporterType = z204.enum(["documentation", "code"]);
5706
- var DTOExporterSource = z204.enum(["git", "upload"]);
5707
- var DTOExporterMembershipRole = z204.enum(["Owner", "OwnerArchived", "User"]);
5708
- var DTOExporter = z204.object({
5709
- id: z204.string(),
5710
- name: z204.string(),
5711
- isPrivate: z204.boolean(),
5745
+ import { z as z206 } from "zod";
5746
+ var DTOExporterType = z206.enum(["documentation", "code"]);
5747
+ var DTOExporterSource = z206.enum(["git", "upload"]);
5748
+ var DTOExporterMembershipRole = z206.enum(["Owner", "OwnerArchived", "User"]);
5749
+ var DTOExporter = z206.object({
5750
+ id: z206.string(),
5751
+ name: z206.string(),
5752
+ isPrivate: z206.boolean(),
5712
5753
  exporterType: DTOExporterType,
5713
- isDefaultDocumentationExporter: z204.boolean(),
5714
- iconURL: z204.string().optional(),
5754
+ isDefaultDocumentationExporter: z206.boolean(),
5755
+ iconURL: z206.string().optional(),
5715
5756
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5716
5757
  customBlocks: PulsarCustomBlock.array(),
5717
- blockVariants: z204.record(z204.string(), PulsarContributionVariant.array()),
5718
- usesBrands: z204.boolean(),
5719
- usesThemes: z204.boolean(),
5758
+ blockVariants: z206.record(z206.string(), PulsarContributionVariant.array()),
5759
+ usesBrands: z206.boolean(),
5760
+ usesThemes: z206.boolean(),
5720
5761
  source: DTOExporterSource,
5721
- gitUrl: z204.string().optional(),
5722
- gitBranch: z204.string().optional(),
5723
- gitDirectory: z204.string().optional()
5762
+ gitUrl: z206.string().optional(),
5763
+ gitBranch: z206.string().optional(),
5764
+ gitDirectory: z206.string().optional()
5724
5765
  });
5725
- var DTOExporterMembership = z204.object({
5726
- workspaceId: z204.string(),
5727
- exporterId: z204.string(),
5766
+ var DTOExporterMembership = z206.object({
5767
+ workspaceId: z206.string(),
5768
+ exporterId: z206.string(),
5728
5769
  role: DTOExporterMembershipRole
5729
5770
  });
5730
- var DTOExporterCreateOutput = z204.object({
5771
+ var DTOExporterCreateOutput = z206.object({
5731
5772
  exporter: DTOExporter,
5732
5773
  membership: DTOExporterMembership
5733
5774
  });
5734
- var DTOExporterGitProviderEnum = z204.enum(["github", "gitlab", "bitbucket", "azure"]);
5735
- var DTOExporterCreateInput = z204.object({
5736
- url: z204.string(),
5775
+ var DTOExporterGitProviderEnum = z206.enum(["github", "gitlab", "bitbucket", "azure"]);
5776
+ var DTOExporterCreateInput = z206.object({
5777
+ url: z206.string(),
5737
5778
  provider: DTOExporterGitProviderEnum
5738
5779
  });
5739
- var DTOExporterUpdateInput = z204.object({
5740
- url: z204.string().optional()
5780
+ var DTOExporterUpdateInput = z206.object({
5781
+ url: z206.string().optional()
5741
5782
  });
5742
5783
 
5743
5784
  // src/api/dto/export/filter.ts
5744
5785
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5745
5786
 
5746
5787
  // src/api/dto/export/job.ts
5747
- import { z as z205 } from "zod";
5748
- var DTOExportJobCreatedBy = z205.object({
5749
- userId: z205.string(),
5750
- userName: z205.string()
5788
+ import { z as z207 } from "zod";
5789
+ var DTOExportJobCreatedBy = z207.object({
5790
+ userId: z207.string(),
5791
+ userName: z207.string()
5751
5792
  });
5752
- var DTOExportJobDesignSystemPreview = z205.object({
5753
- id: z205.string(),
5793
+ var DTOExportJobDesignSystemPreview = z207.object({
5794
+ id: z207.string(),
5754
5795
  meta: ObjectMeta
5755
5796
  });
5756
- var DTOExportJobDesignSystemVersionPreview = z205.object({
5757
- id: z205.string(),
5797
+ var DTOExportJobDesignSystemVersionPreview = z207.object({
5798
+ id: z207.string(),
5758
5799
  meta: ObjectMeta,
5759
- version: z205.string(),
5760
- isReadonly: z205.boolean()
5800
+ version: z207.string(),
5801
+ isReadonly: z207.boolean()
5761
5802
  });
5762
- var DTOExportJobDestinations = z205.object({
5803
+ var DTOExportJobDestinations = z207.object({
5763
5804
  s3: ExporterDestinationS3.optional(),
5764
5805
  azure: ExporterDestinationAzure.optional(),
5765
5806
  bitbucket: ExporterDestinationBitbucket.optional(),
5766
5807
  github: ExporterDestinationGithub.optional(),
5767
5808
  gitlab: ExporterDestinationGitlab.optional(),
5768
5809
  documentation: ExporterDestinationDocs.optional(),
5769
- webhookUrl: z205.string().optional()
5810
+ webhookUrl: z207.string().optional()
5770
5811
  });
5771
5812
  var DTOExportJobResult = ExportJobResult.omit({
5772
5813
  sndocs: true
5773
5814
  }).extend({
5774
5815
  documentation: ExportJobDocsDestinationResult.optional()
5775
5816
  });
5776
- var DTOExportJob = z205.object({
5777
- id: z205.string(),
5778
- createdAt: z205.coerce.date(),
5779
- finishedAt: z205.coerce.date().optional(),
5780
- index: z205.number().optional(),
5817
+ var DTOExportJob = z207.object({
5818
+ id: z207.string(),
5819
+ createdAt: z207.coerce.date(),
5820
+ finishedAt: z207.coerce.date().optional(),
5821
+ index: z207.number().optional(),
5781
5822
  status: ExportJobStatus,
5782
- estimatedExecutionTime: z205.number().optional(),
5823
+ estimatedExecutionTime: z207.number().optional(),
5783
5824
  createdBy: DTOExportJobCreatedBy.optional(),
5784
5825
  designSystem: DTOExportJobDesignSystemPreview,
5785
5826
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5786
5827
  destinations: DTOExportJobDestinations,
5787
- exporterId: z205.string(),
5788
- scheduleId: z205.string().optional(),
5828
+ exporterId: z207.string(),
5829
+ scheduleId: z207.string().optional(),
5789
5830
  result: DTOExportJobResult.optional(),
5790
- brandPersistentId: z205.string().optional(),
5791
- themePersistentId: z205.string().optional(),
5792
- themePersistentIds: z205.string().array().optional()
5831
+ brandPersistentId: z207.string().optional(),
5832
+ themePersistentId: z207.string().optional(),
5833
+ themePersistentIds: z207.string().array().optional()
5793
5834
  });
5794
- var DTOExportJobResponse = z205.object({
5835
+ var DTOExportJobResponse = z207.object({
5795
5836
  job: DTOExportJob
5796
5837
  });
5797
5838
 
5798
5839
  // src/api/dto/export/pipeline.ts
5799
- import { z as z206 } from "zod";
5800
- var DTOPipeline = z206.object({
5801
- id: z206.string(),
5802
- name: z206.string(),
5840
+ import { z as z208 } from "zod";
5841
+ var DTOPipeline = z208.object({
5842
+ id: z208.string(),
5843
+ name: z208.string(),
5803
5844
  eventType: PipelineEventType,
5804
- isEnabled: z206.boolean(),
5805
- workspaceId: z206.string(),
5806
- designSystemId: z206.string(),
5807
- exporterId: z206.string(),
5808
- brandPersistentId: z206.string().optional(),
5809
- themePersistentId: z206.string().optional(),
5810
- themePersistentIds: z206.string().array().optional(),
5845
+ isEnabled: z208.boolean(),
5846
+ workspaceId: z208.string(),
5847
+ designSystemId: z208.string(),
5848
+ exporterId: z208.string(),
5849
+ brandPersistentId: z208.string().optional(),
5850
+ themePersistentId: z208.string().optional(),
5851
+ themePersistentIds: z208.string().array().optional(),
5811
5852
  ...ExportDestinationsMap.shape,
5812
5853
  latestJobs: DTOExportJob.array()
5813
5854
  });
5814
5855
 
5815
5856
  // src/api/dto/documentation/publish.ts
5816
5857
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5817
- var DTOPublishDocumentationRequest = z207.object({
5858
+ var DTOPublishDocumentationRequest = z209.object({
5818
5859
  environment: PublishedDocEnvironment,
5819
5860
  /**
5820
5861
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5822,42 +5863,42 @@ var DTOPublishDocumentationRequest = z207.object({
5822
5863
  */
5823
5864
  changes: DTOPublishDocumentationChanges.optional()
5824
5865
  });
5825
- var DTOPublishDocumentationResponse = z207.object({
5866
+ var DTOPublishDocumentationResponse = z209.object({
5826
5867
  job: DTOExportJob
5827
5868
  });
5828
5869
 
5829
5870
  // src/api/dto/elements/components/figma-component.ts
5830
- import { z as z208 } from "zod";
5871
+ import { z as z210 } from "zod";
5831
5872
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5832
- var DTOFigmaComponentPropertyMap = z208.record(DTOFigmaComponentProperty);
5833
- var DTOFigmaComponent = z208.object({
5834
- id: z208.string(),
5835
- persistentId: z208.string(),
5836
- designSystemVersionId: z208.string(),
5837
- brandId: z208.string(),
5838
- thumbnailUrl: z208.string().optional(),
5839
- svgUrl: z208.string().optional(),
5840
- exportProperties: z208.object({
5841
- isAsset: z208.boolean()
5873
+ var DTOFigmaComponentPropertyMap = z210.record(DTOFigmaComponentProperty);
5874
+ var DTOFigmaComponent = z210.object({
5875
+ id: z210.string(),
5876
+ persistentId: z210.string(),
5877
+ designSystemVersionId: z210.string(),
5878
+ brandId: z210.string(),
5879
+ thumbnailUrl: z210.string().optional(),
5880
+ svgUrl: z210.string().optional(),
5881
+ exportProperties: z210.object({
5882
+ isAsset: z210.boolean()
5842
5883
  }),
5843
- createdAt: z208.coerce.date(),
5844
- updatedAt: z208.coerce.date(),
5884
+ createdAt: z210.coerce.date(),
5885
+ updatedAt: z210.coerce.date(),
5845
5886
  meta: ObjectMeta,
5846
5887
  originComponent: FigmaComponentOrigin.optional(),
5847
- parentComponentPersistentId: z208.string().optional(),
5848
- childrenPersistentIds: z208.string().array().optional(),
5888
+ parentComponentPersistentId: z210.string().optional(),
5889
+ childrenPersistentIds: z210.string().array().optional(),
5849
5890
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5850
- variantPropertyValues: z208.record(z208.string()).optional()
5891
+ variantPropertyValues: z210.record(z210.string()).optional()
5851
5892
  });
5852
- var DTOFigmaComponentListResponse = z208.object({
5893
+ var DTOFigmaComponentListResponse = z210.object({
5853
5894
  components: DTOFigmaComponent.array()
5854
5895
  });
5855
5896
 
5856
5897
  // src/api/dto/elements/documentation/group-action.ts
5857
- import { z as z210 } from "zod";
5898
+ import { z as z212 } from "zod";
5858
5899
 
5859
5900
  // src/api/dto/elements/documentation/group-v2.ts
5860
- import { z as z209 } from "zod";
5901
+ import { z as z211 } from "zod";
5861
5902
  var DTODocumentationGroupV2 = ElementGroup.omit({
5862
5903
  sortOrder: true,
5863
5904
  parentPersistentId: true,
@@ -5867,13 +5908,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5867
5908
  data: true,
5868
5909
  shortPersistentId: true
5869
5910
  }).extend({
5870
- title: z209.string(),
5871
- isRoot: z209.boolean(),
5872
- childrenIds: z209.array(z209.string()),
5911
+ title: z211.string(),
5912
+ isRoot: z211.boolean(),
5913
+ childrenIds: z211.array(z211.string()),
5873
5914
  groupBehavior: DocumentationGroupBehavior,
5874
- shortPersistentId: z209.string(),
5915
+ shortPersistentId: z211.string(),
5875
5916
  configuration: DTODocumentationItemConfigurationV2,
5876
- type: z209.literal("Group"),
5917
+ type: z211.literal("Group"),
5877
5918
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5878
5919
  draftState: DTODocumentationDraftState.optional(),
5879
5920
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -5881,127 +5922,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5881
5922
  //** An approval state for frontend to utilize. */
5882
5923
  approvalState: DTODocumentationGroupApprovalState.optional()
5883
5924
  });
5884
- var DTOCreateDocumentationGroupInput = z209.object({
5925
+ var DTOCreateDocumentationGroupInput = z211.object({
5885
5926
  // Identifier
5886
- persistentId: z209.string().uuid(),
5927
+ persistentId: z211.string().uuid(),
5887
5928
  // Group properties
5888
- title: z209.string(),
5929
+ title: z211.string(),
5889
5930
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5890
5931
  // Group placement properties
5891
- afterPersistentId: z209.string().uuid().nullish(),
5892
- parentPersistentId: z209.string().uuid()
5932
+ afterPersistentId: z211.string().uuid().nullish(),
5933
+ parentPersistentId: z211.string().uuid()
5893
5934
  });
5894
- var DTOUpdateDocumentationGroupInput = z209.object({
5935
+ var DTOUpdateDocumentationGroupInput = z211.object({
5895
5936
  // Identifier of the group to update
5896
- id: z209.string(),
5937
+ id: z211.string(),
5897
5938
  // Group properties
5898
- title: z209.string().optional(),
5939
+ title: z211.string().optional(),
5899
5940
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5900
5941
  });
5901
- var DTOMoveDocumentationGroupInput = z209.object({
5942
+ var DTOMoveDocumentationGroupInput = z211.object({
5902
5943
  // Identifier of the group to update
5903
- id: z209.string(),
5944
+ id: z211.string(),
5904
5945
  // Group placement properties
5905
- parentPersistentId: z209.string().uuid(),
5906
- afterPersistentId: z209.string().uuid().nullish()
5946
+ parentPersistentId: z211.string().uuid(),
5947
+ afterPersistentId: z211.string().uuid().nullish()
5907
5948
  });
5908
- var DTODuplicateDocumentationGroupInput = z209.object({
5949
+ var DTODuplicateDocumentationGroupInput = z211.object({
5909
5950
  // Identifier of the group to duplicate from
5910
- id: z209.string(),
5951
+ id: z211.string(),
5911
5952
  // New group persistent id
5912
- persistentId: z209.string().uuid(),
5953
+ persistentId: z211.string().uuid(),
5913
5954
  // Group placement properties
5914
- afterPersistentId: z209.string().uuid().nullish(),
5915
- parentPersistentId: z209.string().uuid()
5955
+ afterPersistentId: z211.string().uuid().nullish(),
5956
+ parentPersistentId: z211.string().uuid()
5916
5957
  });
5917
- var DTOCreateDocumentationTabInput = z209.object({
5958
+ var DTOCreateDocumentationTabInput = z211.object({
5918
5959
  // New group persistent id
5919
- persistentId: z209.string().uuid(),
5960
+ persistentId: z211.string().uuid(),
5920
5961
  // If this is page, we will attempt to convert it to tab
5921
5962
  // If this is tab group, we will add a new tab to it
5922
- fromItemPersistentId: z209.string(),
5923
- tabName: z209.string()
5963
+ fromItemPersistentId: z211.string(),
5964
+ tabName: z211.string()
5924
5965
  });
5925
- var DTODeleteDocumentationTabGroupInput = z209.object({
5966
+ var DTODeleteDocumentationTabGroupInput = z211.object({
5926
5967
  // Deleted group id
5927
- id: z209.string()
5968
+ id: z211.string()
5928
5969
  });
5929
- var DTODeleteDocumentationGroupInput = z209.object({
5970
+ var DTODeleteDocumentationGroupInput = z211.object({
5930
5971
  // Identifier
5931
- id: z209.string(),
5972
+ id: z211.string(),
5932
5973
  // Deletion options
5933
- deleteSubtree: z209.boolean().default(false)
5974
+ deleteSubtree: z211.boolean().default(false)
5934
5975
  });
5935
5976
 
5936
5977
  // src/api/dto/elements/documentation/group-action.ts
5937
- var SuccessPayload = z210.object({
5938
- success: z210.literal(true)
5978
+ var SuccessPayload = z212.object({
5979
+ success: z212.literal(true)
5939
5980
  });
5940
- var DTODocumentationGroupCreateActionOutputV2 = z210.object({
5941
- type: z210.literal("DocumentationGroupCreate"),
5981
+ var DTODocumentationGroupCreateActionOutputV2 = z212.object({
5982
+ type: z212.literal("DocumentationGroupCreate"),
5942
5983
  output: SuccessPayload
5943
5984
  });
5944
- var DTODocumentationTabCreateActionOutputV2 = z210.object({
5945
- type: z210.literal("DocumentationTabCreate"),
5985
+ var DTODocumentationTabCreateActionOutputV2 = z212.object({
5986
+ type: z212.literal("DocumentationTabCreate"),
5946
5987
  output: SuccessPayload
5947
5988
  });
5948
- var DTODocumentationGroupUpdateActionOutputV2 = z210.object({
5949
- type: z210.literal("DocumentationGroupUpdate"),
5989
+ var DTODocumentationGroupUpdateActionOutputV2 = z212.object({
5990
+ type: z212.literal("DocumentationGroupUpdate"),
5950
5991
  output: SuccessPayload
5951
5992
  });
5952
- var DTODocumentationGroupMoveActionOutputV2 = z210.object({
5953
- type: z210.literal("DocumentationGroupMove"),
5993
+ var DTODocumentationGroupMoveActionOutputV2 = z212.object({
5994
+ type: z212.literal("DocumentationGroupMove"),
5954
5995
  output: SuccessPayload
5955
5996
  });
5956
- var DTODocumentationGroupDuplicateActionOutputV2 = z210.object({
5957
- type: z210.literal("DocumentationGroupDuplicate"),
5997
+ var DTODocumentationGroupDuplicateActionOutputV2 = z212.object({
5998
+ type: z212.literal("DocumentationGroupDuplicate"),
5958
5999
  output: SuccessPayload
5959
6000
  });
5960
- var DTODocumentationGroupDeleteActionOutputV2 = z210.object({
5961
- type: z210.literal("DocumentationGroupDelete"),
6001
+ var DTODocumentationGroupDeleteActionOutputV2 = z212.object({
6002
+ type: z212.literal("DocumentationGroupDelete"),
5962
6003
  output: SuccessPayload
5963
6004
  });
5964
- var DTODocumentationTabGroupDeleteActionOutputV2 = z210.object({
5965
- type: z210.literal("DocumentationTabGroupDelete"),
6005
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z212.object({
6006
+ type: z212.literal("DocumentationTabGroupDelete"),
5966
6007
  output: SuccessPayload
5967
6008
  });
5968
- var DTODocumentationGroupCreateActionInputV2 = z210.object({
5969
- type: z210.literal("DocumentationGroupCreate"),
6009
+ var DTODocumentationGroupCreateActionInputV2 = z212.object({
6010
+ type: z212.literal("DocumentationGroupCreate"),
5970
6011
  input: DTOCreateDocumentationGroupInput
5971
6012
  });
5972
- var DTODocumentationTabCreateActionInputV2 = z210.object({
5973
- type: z210.literal("DocumentationTabCreate"),
6013
+ var DTODocumentationTabCreateActionInputV2 = z212.object({
6014
+ type: z212.literal("DocumentationTabCreate"),
5974
6015
  input: DTOCreateDocumentationTabInput
5975
6016
  });
5976
- var DTODocumentationGroupUpdateActionInputV2 = z210.object({
5977
- type: z210.literal("DocumentationGroupUpdate"),
6017
+ var DTODocumentationGroupUpdateActionInputV2 = z212.object({
6018
+ type: z212.literal("DocumentationGroupUpdate"),
5978
6019
  input: DTOUpdateDocumentationGroupInput
5979
6020
  });
5980
- var DTODocumentationGroupMoveActionInputV2 = z210.object({
5981
- type: z210.literal("DocumentationGroupMove"),
6021
+ var DTODocumentationGroupMoveActionInputV2 = z212.object({
6022
+ type: z212.literal("DocumentationGroupMove"),
5982
6023
  input: DTOMoveDocumentationGroupInput
5983
6024
  });
5984
- var DTODocumentationGroupDuplicateActionInputV2 = z210.object({
5985
- type: z210.literal("DocumentationGroupDuplicate"),
6025
+ var DTODocumentationGroupDuplicateActionInputV2 = z212.object({
6026
+ type: z212.literal("DocumentationGroupDuplicate"),
5986
6027
  input: DTODuplicateDocumentationGroupInput
5987
6028
  });
5988
- var DTODocumentationGroupDeleteActionInputV2 = z210.object({
5989
- type: z210.literal("DocumentationGroupDelete"),
6029
+ var DTODocumentationGroupDeleteActionInputV2 = z212.object({
6030
+ type: z212.literal("DocumentationGroupDelete"),
5990
6031
  input: DTODeleteDocumentationGroupInput
5991
6032
  });
5992
- var DTODocumentationTabGroupDeleteActionInputV2 = z210.object({
5993
- type: z210.literal("DocumentationTabGroupDelete"),
6033
+ var DTODocumentationTabGroupDeleteActionInputV2 = z212.object({
6034
+ type: z212.literal("DocumentationTabGroupDelete"),
5994
6035
  input: DTODeleteDocumentationTabGroupInput
5995
6036
  });
5996
6037
 
5997
6038
  // src/api/dto/elements/documentation/group-v1.ts
5998
- import { z as z212 } from "zod";
6039
+ import { z as z214 } from "zod";
5999
6040
 
6000
6041
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6001
- import { z as z211 } from "zod";
6002
- var DocumentationColorV1 = z211.object({
6003
- aliasTo: z211.string().optional(),
6004
- value: z211.string().optional()
6042
+ import { z as z213 } from "zod";
6043
+ var DocumentationColorV1 = z213.object({
6044
+ aliasTo: z213.string().optional(),
6045
+ value: z213.string().optional()
6005
6046
  });
6006
6047
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6007
6048
  foregroundColor: true,
@@ -6010,10 +6051,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6010
6051
  foregroundColor: DocumentationColorV1.optional(),
6011
6052
  backgroundColor: DocumentationColorV1.optional()
6012
6053
  });
6013
- var DTODocumentationItemConfigurationV1 = z211.object({
6014
- showSidebar: z211.boolean(),
6015
- isPrivate: z211.boolean(),
6016
- isHidden: z211.boolean(),
6054
+ var DTODocumentationItemConfigurationV1 = z213.object({
6055
+ showSidebar: z213.boolean(),
6056
+ isPrivate: z213.boolean(),
6057
+ isHidden: z213.boolean(),
6017
6058
  header: DTODocumentationItemHeaderV1
6018
6059
  });
6019
6060
 
@@ -6027,27 +6068,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6027
6068
  data: true,
6028
6069
  shortPersistentId: true
6029
6070
  }).extend({
6030
- title: z212.string(),
6031
- isRoot: z212.boolean(),
6032
- childrenIds: z212.array(z212.string()),
6071
+ title: z214.string(),
6072
+ isRoot: z214.boolean(),
6073
+ childrenIds: z214.array(z214.string()),
6033
6074
  groupBehavior: DocumentationGroupBehavior,
6034
- shortPersistentId: z212.string(),
6035
- type: z212.literal("Group")
6075
+ shortPersistentId: z214.string(),
6076
+ type: z214.literal("Group")
6036
6077
  });
6037
6078
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6038
6079
  configuration: DTODocumentationItemConfigurationV1
6039
6080
  });
6040
6081
 
6041
6082
  // src/api/dto/elements/documentation/hierarchy.ts
6042
- import { z as z213 } from "zod";
6043
- var DTODocumentationHierarchyV2 = z213.object({
6044
- pages: z213.array(
6083
+ import { z as z215 } from "zod";
6084
+ var DTODocumentationHierarchyV2 = z215.object({
6085
+ pages: z215.array(
6045
6086
  DTODocumentationPageV2.extend({
6046
6087
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6047
6088
  draftState: DTODocumentationDraftState.optional()
6048
6089
  })
6049
6090
  ),
6050
- groups: z213.array(
6091
+ groups: z215.array(
6051
6092
  DTODocumentationGroupV2.extend({
6052
6093
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6053
6094
  draftState: DTODocumentationDraftState.optional()
@@ -6056,84 +6097,84 @@ var DTODocumentationHierarchyV2 = z213.object({
6056
6097
  });
6057
6098
 
6058
6099
  // src/api/dto/elements/documentation/page-actions-v2.ts
6059
- import { z as z214 } from "zod";
6060
- var SuccessPayload2 = z214.object({
6061
- success: z214.literal(true)
6100
+ import { z as z216 } from "zod";
6101
+ var SuccessPayload2 = z216.object({
6102
+ success: z216.literal(true)
6062
6103
  });
6063
- var DTODocumentationPageCreateActionOutputV2 = z214.object({
6064
- type: z214.literal("DocumentationPageCreate"),
6104
+ var DTODocumentationPageCreateActionOutputV2 = z216.object({
6105
+ type: z216.literal("DocumentationPageCreate"),
6065
6106
  output: SuccessPayload2
6066
6107
  });
6067
- var DTODocumentationPageUpdateActionOutputV2 = z214.object({
6068
- type: z214.literal("DocumentationPageUpdate"),
6108
+ var DTODocumentationPageUpdateActionOutputV2 = z216.object({
6109
+ type: z216.literal("DocumentationPageUpdate"),
6069
6110
  output: SuccessPayload2
6070
6111
  });
6071
- var DTODocumentationPageMoveActionOutputV2 = z214.object({
6072
- type: z214.literal("DocumentationPageMove"),
6112
+ var DTODocumentationPageMoveActionOutputV2 = z216.object({
6113
+ type: z216.literal("DocumentationPageMove"),
6073
6114
  output: SuccessPayload2
6074
6115
  });
6075
- var DTODocumentationPageDuplicateActionOutputV2 = z214.object({
6076
- type: z214.literal("DocumentationPageDuplicate"),
6116
+ var DTODocumentationPageDuplicateActionOutputV2 = z216.object({
6117
+ type: z216.literal("DocumentationPageDuplicate"),
6077
6118
  output: SuccessPayload2
6078
6119
  });
6079
- var DTODocumentationPageDeleteActionOutputV2 = z214.object({
6080
- type: z214.literal("DocumentationPageDelete"),
6120
+ var DTODocumentationPageDeleteActionOutputV2 = z216.object({
6121
+ type: z216.literal("DocumentationPageDelete"),
6081
6122
  output: SuccessPayload2
6082
6123
  });
6083
- var DTODocumentationPageRestoreActionOutput = z214.object({
6084
- type: z214.literal("DocumentationPageRestore"),
6124
+ var DTODocumentationPageRestoreActionOutput = z216.object({
6125
+ type: z216.literal("DocumentationPageRestore"),
6085
6126
  output: SuccessPayload2
6086
6127
  });
6087
- var DTODocumentationGroupRestoreActionOutput = z214.object({
6088
- type: z214.literal("DocumentationGroupRestore"),
6128
+ var DTODocumentationGroupRestoreActionOutput = z216.object({
6129
+ type: z216.literal("DocumentationGroupRestore"),
6089
6130
  output: SuccessPayload2
6090
6131
  });
6091
- var DTODocumentationPageApprovalStateChangeActionOutput = z214.object({
6092
- type: z214.literal("DocumentationPageApprovalStateChange"),
6132
+ var DTODocumentationPageApprovalStateChangeActionOutput = z216.object({
6133
+ type: z216.literal("DocumentationPageApprovalStateChange"),
6093
6134
  output: SuccessPayload2
6094
6135
  });
6095
- var DTODocumentationPageCreateActionInputV2 = z214.object({
6096
- type: z214.literal("DocumentationPageCreate"),
6136
+ var DTODocumentationPageCreateActionInputV2 = z216.object({
6137
+ type: z216.literal("DocumentationPageCreate"),
6097
6138
  input: DTOCreateDocumentationPageInputV2
6098
6139
  });
6099
- var DTODocumentationPageUpdateActionInputV2 = z214.object({
6100
- type: z214.literal("DocumentationPageUpdate"),
6140
+ var DTODocumentationPageUpdateActionInputV2 = z216.object({
6141
+ type: z216.literal("DocumentationPageUpdate"),
6101
6142
  input: DTOUpdateDocumentationPageInputV2
6102
6143
  });
6103
- var DTODocumentationPageMoveActionInputV2 = z214.object({
6104
- type: z214.literal("DocumentationPageMove"),
6144
+ var DTODocumentationPageMoveActionInputV2 = z216.object({
6145
+ type: z216.literal("DocumentationPageMove"),
6105
6146
  input: DTOMoveDocumentationPageInputV2
6106
6147
  });
6107
- var DTODocumentationPageDuplicateActionInputV2 = z214.object({
6108
- type: z214.literal("DocumentationPageDuplicate"),
6148
+ var DTODocumentationPageDuplicateActionInputV2 = z216.object({
6149
+ type: z216.literal("DocumentationPageDuplicate"),
6109
6150
  input: DTODuplicateDocumentationPageInputV2
6110
6151
  });
6111
- var DTODocumentationPageDeleteActionInputV2 = z214.object({
6112
- type: z214.literal("DocumentationPageDelete"),
6152
+ var DTODocumentationPageDeleteActionInputV2 = z216.object({
6153
+ type: z216.literal("DocumentationPageDelete"),
6113
6154
  input: DTODeleteDocumentationPageInputV2
6114
6155
  });
6115
- var DTODocumentationPageRestoreActionInput = z214.object({
6116
- type: z214.literal("DocumentationPageRestore"),
6156
+ var DTODocumentationPageRestoreActionInput = z216.object({
6157
+ type: z216.literal("DocumentationPageRestore"),
6117
6158
  input: DTORestoreDocumentationPageInput
6118
6159
  });
6119
- var DTODocumentationGroupRestoreActionInput = z214.object({
6120
- type: z214.literal("DocumentationGroupRestore"),
6160
+ var DTODocumentationGroupRestoreActionInput = z216.object({
6161
+ type: z216.literal("DocumentationGroupRestore"),
6121
6162
  input: DTORestoreDocumentationGroupInput
6122
6163
  });
6123
- var DTODocumentationPageApprovalStateChangeActionInput = z214.object({
6124
- type: z214.literal("DocumentationPageApprovalStateChange"),
6164
+ var DTODocumentationPageApprovalStateChangeActionInput = z216.object({
6165
+ type: z216.literal("DocumentationPageApprovalStateChange"),
6125
6166
  input: DTODocumentationPageApprovalStateChangeInput
6126
6167
  });
6127
6168
 
6128
6169
  // src/api/dto/elements/documentation/page-content.ts
6129
- import { z as z215 } from "zod";
6170
+ import { z as z217 } from "zod";
6130
6171
  var DTODocumentationPageContent = DocumentationPageContent;
6131
- var DTODocumentationPageContentGetResponse = z215.object({
6172
+ var DTODocumentationPageContentGetResponse = z217.object({
6132
6173
  pageContent: DTODocumentationPageContent
6133
6174
  });
6134
6175
 
6135
6176
  // src/api/dto/elements/documentation/page-v1.ts
6136
- import { z as z216 } from "zod";
6177
+ import { z as z218 } from "zod";
6137
6178
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6138
6179
  data: true,
6139
6180
  meta: true,
@@ -6141,32 +6182,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6141
6182
  sortOrder: true
6142
6183
  }).extend({
6143
6184
  configuration: DTODocumentationItemConfigurationV1,
6144
- blocks: z216.array(PageBlockV1),
6145
- title: z216.string(),
6146
- path: z216.string()
6185
+ blocks: z218.array(PageBlockV1),
6186
+ title: z218.string(),
6187
+ path: z218.string()
6147
6188
  });
6148
6189
 
6149
6190
  // src/api/dto/elements/figma-nodes/figma-node.ts
6150
- import { z as z217 } from "zod";
6191
+ import { z as z219 } from "zod";
6151
6192
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6152
- var DTOFigmaNodeOrigin = z217.object({
6153
- sourceId: z217.string(),
6154
- fileId: z217.string().optional(),
6155
- parentName: z217.string().optional()
6193
+ var DTOFigmaNodeOrigin = z219.object({
6194
+ sourceId: z219.string(),
6195
+ fileId: z219.string().optional(),
6196
+ parentName: z219.string().optional()
6156
6197
  });
6157
- var DTOFigmaNodeData = z217.object({
6198
+ var DTOFigmaNodeData = z219.object({
6158
6199
  // Id of the node in the Figma file
6159
- figmaNodeId: z217.string(),
6200
+ figmaNodeId: z219.string(),
6160
6201
  // Validity
6161
- isValid: z217.boolean(),
6202
+ isValid: z219.boolean(),
6162
6203
  // Asset data
6163
- assetId: z217.string(),
6164
- assetUrl: z217.string(),
6204
+ assetId: z219.string(),
6205
+ assetUrl: z219.string(),
6165
6206
  assetFormat: DTOFigmaNodeRenderFormat,
6166
6207
  // Asset metadata
6167
- assetScale: z217.number(),
6168
- assetWidth: z217.number().optional(),
6169
- assetHeight: z217.number().optional()
6208
+ assetScale: z219.number(),
6209
+ assetWidth: z219.number().optional(),
6210
+ assetHeight: z219.number().optional()
6170
6211
  });
6171
6212
  var DTOFigmaNode = FigmaNodeReference.omit({
6172
6213
  data: true,
@@ -6175,15 +6216,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6175
6216
  data: DTOFigmaNodeData,
6176
6217
  origin: DTOFigmaNodeOrigin
6177
6218
  });
6178
- var DTOFigmaNodeRenderInput = z217.object({
6219
+ var DTOFigmaNodeRenderInput = z219.object({
6179
6220
  /**
6180
6221
  * Id of a design system's data source representing a linked Figma file
6181
6222
  */
6182
- sourceId: z217.string(),
6223
+ sourceId: z219.string(),
6183
6224
  /**
6184
6225
  * Id of a node within the Figma file
6185
6226
  */
6186
- figmaFileNodeId: z217.string(),
6227
+ figmaFileNodeId: z219.string(),
6187
6228
  /**
6188
6229
  * Format in which the node must be rendered, png by default.
6189
6230
  */
@@ -6191,97 +6232,97 @@ var DTOFigmaNodeRenderInput = z217.object({
6191
6232
  });
6192
6233
 
6193
6234
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6194
- import { z as z218 } from "zod";
6195
- var DTOFigmaNodeRenderActionOutput = z218.object({
6196
- type: z218.literal("FigmaNodeRender"),
6197
- figmaNodes: z218.array(DTOFigmaNode)
6235
+ import { z as z220 } from "zod";
6236
+ var DTOFigmaNodeRenderActionOutput = z220.object({
6237
+ type: z220.literal("FigmaNodeRender"),
6238
+ figmaNodes: z220.array(DTOFigmaNode)
6198
6239
  });
6199
- var DTOFigmaNodeRenderActionInput = z218.object({
6200
- type: z218.literal("FigmaNodeRender"),
6240
+ var DTOFigmaNodeRenderActionInput = z220.object({
6241
+ type: z220.literal("FigmaNodeRender"),
6201
6242
  input: DTOFigmaNodeRenderInput.array()
6202
6243
  });
6203
6244
 
6204
6245
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6205
- import { z as z220 } from "zod";
6246
+ import { z as z222 } from "zod";
6206
6247
 
6207
6248
  // src/api/dto/elements/properties/property-definitions.ts
6208
- import { z as z219 } from "zod";
6249
+ import { z as z221 } from "zod";
6209
6250
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6210
- var DTOElementPropertyDefinition = z219.object({
6211
- id: z219.string(),
6212
- designSystemVersionId: z219.string(),
6251
+ var DTOElementPropertyDefinition = z221.object({
6252
+ id: z221.string(),
6253
+ designSystemVersionId: z221.string(),
6213
6254
  meta: ObjectMeta,
6214
- persistentId: z219.string(),
6255
+ persistentId: z221.string(),
6215
6256
  type: ElementPropertyTypeSchema,
6216
6257
  targetElementType: ElementPropertyTargetType,
6217
- codeName: z219.string().regex(CODE_NAME_REGEX2),
6218
- options: z219.array(ElementPropertyDefinitionOption).optional(),
6258
+ codeName: z221.string().regex(CODE_NAME_REGEX2),
6259
+ options: z221.array(ElementPropertyDefinitionOption).optional(),
6219
6260
  linkElementType: ElementPropertyLinkType.optional()
6220
6261
  });
6221
- var DTOElementPropertyDefinitionsGetResponse = z219.object({
6222
- definitions: z219.array(DTOElementPropertyDefinition)
6262
+ var DTOElementPropertyDefinitionsGetResponse = z221.object({
6263
+ definitions: z221.array(DTOElementPropertyDefinition)
6223
6264
  });
6224
6265
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6225
6266
  id: true,
6226
6267
  designSystemVersionId: true
6227
6268
  });
6228
- var DTOUpdateElementPropertyDefinitionInputV2 = z219.object({
6229
- id: z219.string(),
6230
- name: z219.string().optional(),
6231
- description: z219.string().optional(),
6232
- codeName: z219.string().regex(CODE_NAME_REGEX2).optional(),
6233
- options: z219.array(ElementPropertyDefinitionOption).optional()
6269
+ var DTOUpdateElementPropertyDefinitionInputV2 = z221.object({
6270
+ id: z221.string(),
6271
+ name: z221.string().optional(),
6272
+ description: z221.string().optional(),
6273
+ codeName: z221.string().regex(CODE_NAME_REGEX2).optional(),
6274
+ options: z221.array(ElementPropertyDefinitionOption).optional()
6234
6275
  });
6235
- var DTODeleteElementPropertyDefinitionInputV2 = z219.object({
6236
- id: z219.string()
6276
+ var DTODeleteElementPropertyDefinitionInputV2 = z221.object({
6277
+ id: z221.string()
6237
6278
  });
6238
6279
 
6239
6280
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6240
- var SuccessPayload3 = z220.object({
6241
- success: z220.literal(true)
6281
+ var SuccessPayload3 = z222.object({
6282
+ success: z222.literal(true)
6242
6283
  });
6243
- var DTOPropertyDefinitionCreateActionOutputV2 = z220.object({
6244
- type: z220.literal("PropertyDefinitionCreate"),
6284
+ var DTOPropertyDefinitionCreateActionOutputV2 = z222.object({
6285
+ type: z222.literal("PropertyDefinitionCreate"),
6245
6286
  definition: DTOElementPropertyDefinition
6246
6287
  });
6247
- var DTOPropertyDefinitionUpdateActionOutputV2 = z220.object({
6248
- type: z220.literal("PropertyDefinitionUpdate"),
6288
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z222.object({
6289
+ type: z222.literal("PropertyDefinitionUpdate"),
6249
6290
  definition: DTOElementPropertyDefinition
6250
6291
  });
6251
- var DTOPropertyDefinitionDeleteActionOutputV2 = z220.object({
6252
- type: z220.literal("PropertyDefinitionDelete"),
6292
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z222.object({
6293
+ type: z222.literal("PropertyDefinitionDelete"),
6253
6294
  output: SuccessPayload3
6254
6295
  });
6255
- var DTOPropertyDefinitionCreateActionInputV2 = z220.object({
6256
- type: z220.literal("PropertyDefinitionCreate"),
6296
+ var DTOPropertyDefinitionCreateActionInputV2 = z222.object({
6297
+ type: z222.literal("PropertyDefinitionCreate"),
6257
6298
  input: DTOCreateElementPropertyDefinitionInputV2
6258
6299
  });
6259
- var DTOPropertyDefinitionUpdateActionInputV2 = z220.object({
6260
- type: z220.literal("PropertyDefinitionUpdate"),
6300
+ var DTOPropertyDefinitionUpdateActionInputV2 = z222.object({
6301
+ type: z222.literal("PropertyDefinitionUpdate"),
6261
6302
  input: DTOUpdateElementPropertyDefinitionInputV2
6262
6303
  });
6263
- var DTOPropertyDefinitionDeleteActionInputV2 = z220.object({
6264
- type: z220.literal("PropertyDefinitionDelete"),
6304
+ var DTOPropertyDefinitionDeleteActionInputV2 = z222.object({
6305
+ type: z222.literal("PropertyDefinitionDelete"),
6265
6306
  input: DTODeleteElementPropertyDefinitionInputV2
6266
6307
  });
6267
6308
 
6268
6309
  // src/api/dto/elements/properties/property-values.ts
6269
- import { z as z221 } from "zod";
6270
- var DTOElementPropertyValue = z221.object({
6271
- id: z221.string(),
6272
- designSystemVersionId: z221.string(),
6273
- definitionId: z221.string(),
6274
- targetElementId: z221.string(),
6275
- value: z221.union([z221.string(), z221.number(), z221.boolean()]).optional(),
6276
- valuePreview: z221.string().optional()
6310
+ import { z as z223 } from "zod";
6311
+ var DTOElementPropertyValue = z223.object({
6312
+ id: z223.string(),
6313
+ designSystemVersionId: z223.string(),
6314
+ definitionId: z223.string(),
6315
+ targetElementId: z223.string(),
6316
+ value: z223.union([z223.string(), z223.number(), z223.boolean()]).optional(),
6317
+ valuePreview: z223.string().optional()
6277
6318
  });
6278
- var DTOElementPropertyValuesGetResponse = z221.object({
6279
- values: z221.array(DTOElementPropertyValue)
6319
+ var DTOElementPropertyValuesGetResponse = z223.object({
6320
+ values: z223.array(DTOElementPropertyValue)
6280
6321
  });
6281
6322
 
6282
6323
  // src/api/dto/elements/elements-action-v2.ts
6283
- import { z as z222 } from "zod";
6284
- var DTOElementActionOutput = z222.discriminatedUnion("type", [
6324
+ import { z as z224 } from "zod";
6325
+ var DTOElementActionOutput = z224.discriminatedUnion("type", [
6285
6326
  // Documentation pages
6286
6327
  DTODocumentationPageCreateActionOutputV2,
6287
6328
  DTODocumentationPageUpdateActionOutputV2,
@@ -6308,7 +6349,7 @@ var DTOElementActionOutput = z222.discriminatedUnion("type", [
6308
6349
  // Approvals
6309
6350
  DTODocumentationPageApprovalStateChangeActionOutput
6310
6351
  ]);
6311
- var DTOElementActionInput = z222.discriminatedUnion("type", [
6352
+ var DTOElementActionInput = z224.discriminatedUnion("type", [
6312
6353
  // Documentation pages
6313
6354
  DTODocumentationPageCreateActionInputV2,
6314
6355
  DTODocumentationPageUpdateActionInputV2,
@@ -6337,60 +6378,60 @@ var DTOElementActionInput = z222.discriminatedUnion("type", [
6337
6378
  ]);
6338
6379
 
6339
6380
  // src/api/dto/elements/get-elements-v2.ts
6340
- import { z as z223 } from "zod";
6341
- var DTOElementsGetTypeFilter = z223.enum(["FigmaNode"]);
6342
- var DTOElementsGetQuerySchema = z223.object({
6343
- types: z223.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6381
+ import { z as z225 } from "zod";
6382
+ var DTOElementsGetTypeFilter = z225.enum(["FigmaNode"]);
6383
+ var DTOElementsGetQuerySchema = z225.object({
6384
+ types: z225.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6344
6385
  });
6345
- var DTOElementsGetOutput = z223.object({
6346
- figmaNodes: z223.array(DTOFigmaNode).optional()
6386
+ var DTOElementsGetOutput = z225.object({
6387
+ figmaNodes: z225.array(DTOFigmaNode).optional()
6347
6388
  });
6348
6389
 
6349
6390
  // src/api/dto/figma-components/assets/download.ts
6350
- import { z as z224 } from "zod";
6351
- var DTOAssetRenderConfiguration = z224.object({
6352
- prefix: z224.string().optional(),
6353
- suffix: z224.string().optional(),
6354
- scale: z224.enum(["x1", "x2", "x3", "x4"]),
6355
- format: z224.enum(["png", "pdf", "svg"])
6356
- });
6357
- var DTORenderedAssetFile = z224.object({
6358
- assetId: z224.string(),
6359
- fileName: z224.string(),
6360
- sourceUrl: z224.string(),
6391
+ import { z as z226 } from "zod";
6392
+ var DTOAssetRenderConfiguration = z226.object({
6393
+ prefix: z226.string().optional(),
6394
+ suffix: z226.string().optional(),
6395
+ scale: z226.enum(["x1", "x2", "x3", "x4"]),
6396
+ format: z226.enum(["png", "pdf", "svg"])
6397
+ });
6398
+ var DTORenderedAssetFile = z226.object({
6399
+ assetId: z226.string(),
6400
+ fileName: z226.string(),
6401
+ sourceUrl: z226.string(),
6361
6402
  settings: DTOAssetRenderConfiguration,
6362
- originalName: z224.string()
6403
+ originalName: z226.string()
6363
6404
  });
6364
- var DTODownloadAssetsRequest = z224.object({
6365
- persistentIds: z224.array(z224.string().uuid()).optional(),
6405
+ var DTODownloadAssetsRequest = z226.object({
6406
+ persistentIds: z226.array(z226.string().uuid()).optional(),
6366
6407
  settings: DTOAssetRenderConfiguration.array()
6367
6408
  });
6368
- var DTODownloadAssetsResponse = z224.object({
6409
+ var DTODownloadAssetsResponse = z226.object({
6369
6410
  items: DTORenderedAssetFile.array()
6370
6411
  });
6371
6412
 
6372
6413
  // src/api/dto/liveblocks/auth-response.ts
6373
- import { z as z225 } from "zod";
6374
- var DTOLiveblocksAuthResponse = z225.object({
6375
- token: z225.string()
6414
+ import { z as z227 } from "zod";
6415
+ var DTOLiveblocksAuthResponse = z227.object({
6416
+ token: z227.string()
6376
6417
  });
6377
6418
 
6378
6419
  // src/api/dto/users/authenticated-user.ts
6379
- import { z as z227 } from "zod";
6420
+ import { z as z229 } from "zod";
6380
6421
 
6381
6422
  // src/api/dto/users/user.ts
6382
- import { z as z226 } from "zod";
6383
- var DTOUserProfile = z226.object({
6384
- name: z226.string(),
6385
- nickname: z226.string().optional(),
6386
- avatar: z226.string().optional()
6387
- });
6388
- var DTOUser = z226.object({
6389
- id: z226.string(),
6390
- email: z226.string(),
6423
+ import { z as z228 } from "zod";
6424
+ var DTOUserProfile = z228.object({
6425
+ name: z228.string(),
6426
+ nickname: z228.string().optional(),
6427
+ avatar: z228.string().optional()
6428
+ });
6429
+ var DTOUser = z228.object({
6430
+ id: z228.string(),
6431
+ email: z228.string(),
6391
6432
  profile: DTOUserProfile
6392
6433
  });
6393
- var DTOUserGetResponse = z226.object({
6434
+ var DTOUserGetResponse = z228.object({
6394
6435
  user: DTOUser
6395
6436
  });
6396
6437
 
@@ -6398,34 +6439,34 @@ var DTOUserGetResponse = z226.object({
6398
6439
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
6399
6440
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
6400
6441
  var DTOUserSource = UserSource;
6401
- var DTOUserOnboarding = z227.object({
6402
- companyName: z227.string().optional(),
6403
- numberOfPeopleInOrg: z227.string().optional(),
6404
- numberOfPeopleInDesignTeam: z227.string().optional(),
6442
+ var DTOUserOnboarding = z229.object({
6443
+ companyName: z229.string().optional(),
6444
+ numberOfPeopleInOrg: z229.string().optional(),
6445
+ numberOfPeopleInDesignTeam: z229.string().optional(),
6405
6446
  department: DTOUserOnboardingDepartment.optional(),
6406
- jobTitle: z227.string().optional(),
6407
- phase: z227.string().optional(),
6447
+ jobTitle: z229.string().optional(),
6448
+ phase: z229.string().optional(),
6408
6449
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6409
- designSystemName: z227.string().optional(),
6410
- defaultDestination: z227.string().optional(),
6411
- isPageDraftOnboardingFinished: z227.boolean().optional()
6450
+ designSystemName: z229.string().optional(),
6451
+ defaultDestination: z229.string().optional(),
6452
+ isPageDraftOnboardingFinished: z229.boolean().optional()
6412
6453
  });
6413
6454
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
6414
6455
  onboarding: DTOUserOnboarding.optional()
6415
6456
  });
6416
6457
  var DTOAuthenticatedUser = DTOUser.extend({
6417
6458
  profile: DTOAuthenticatedUserProfile,
6418
- createdAt: z227.coerce.date(),
6419
- loggedOutAt: z227.coerce.date().optional(),
6459
+ createdAt: z229.coerce.date(),
6460
+ loggedOutAt: z229.coerce.date().optional(),
6420
6461
  source: DTOUserSource.optional()
6421
6462
  });
6422
- var DTOAuthenticatedUserResponse = z227.object({
6463
+ var DTOAuthenticatedUserResponse = z229.object({
6423
6464
  user: DTOAuthenticatedUser
6424
6465
  });
6425
6466
 
6426
6467
  // src/api/dto/users/update.ts
6427
- import { z as z228 } from "zod";
6428
- var DTOUserProfileUpdateResponse = z228.object({
6468
+ import { z as z230 } from "zod";
6469
+ var DTOUserProfileUpdateResponse = z230.object({
6429
6470
  user: User
6430
6471
  });
6431
6472
 
@@ -6448,7 +6489,7 @@ var DesignSystemMembersEndpoint = class {
6448
6489
  };
6449
6490
 
6450
6491
  // src/api/endpoints/design-systems.ts
6451
- import { z as z229 } from "zod";
6492
+ import { z as z231 } from "zod";
6452
6493
  var DesignSystemsEndpoint = class {
6453
6494
  constructor(requestExecutor) {
6454
6495
  this.requestExecutor = requestExecutor;
@@ -6462,10 +6503,10 @@ var DesignSystemsEndpoint = class {
6462
6503
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
6463
6504
  }
6464
6505
  get(dsId) {
6465
- return this.requestExecutor.json(`/design-systems/${dsId}`, z229.any());
6506
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z231.any());
6466
6507
  }
6467
6508
  delete(dsId) {
6468
- return this.requestExecutor.json(`/design-systems/${dsId}`, z229.any(), { method: "DELETE" });
6509
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z231.any(), { method: "DELETE" });
6469
6510
  }
6470
6511
  update(dsId, body) {
6471
6512
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -6473,6 +6514,12 @@ var DesignSystemsEndpoint = class {
6473
6514
  body
6474
6515
  });
6475
6516
  }
6517
+ updateAccessMode(dsId, body) {
6518
+ return this.requestExecutor.json(`/design-systems/${dsId}/access-mode`, DTODesignSystemResponse, {
6519
+ method: "PUT",
6520
+ body
6521
+ });
6522
+ }
6476
6523
  };
6477
6524
 
6478
6525
  // src/api/endpoints/users.ts
@@ -6491,8 +6538,20 @@ var UsersEndpoint = class {
6491
6538
  }
6492
6539
  };
6493
6540
 
6541
+ // src/api/endpoints/workspace-invites.ts
6542
+ var WorkspaceInvitationsEndpoint = class {
6543
+ constructor(requestExecutor) {
6544
+ this.requestExecutor = requestExecutor;
6545
+ }
6546
+ list(workspaceId) {
6547
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/invitations`, DTOWorkspaceInvitationsResponse, {
6548
+ method: "GET"
6549
+ });
6550
+ }
6551
+ };
6552
+
6494
6553
  // src/api/endpoints/workspace-members.ts
6495
- import { z as z230 } from "zod";
6554
+ import { z as z232 } from "zod";
6496
6555
  var WorkspaceMembersEndpoint = class {
6497
6556
  constructor(requestExecutor) {
6498
6557
  this.requestExecutor = requestExecutor;
@@ -6509,7 +6568,7 @@ var WorkspaceMembersEndpoint = class {
6509
6568
  });
6510
6569
  }
6511
6570
  invite(workspaceId, body) {
6512
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z230.any(), { method: "POST", body });
6571
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z232.any(), { method: "POST", body });
6513
6572
  }
6514
6573
  delete(workspaceId, userId) {
6515
6574
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -6519,12 +6578,14 @@ var WorkspaceMembersEndpoint = class {
6519
6578
  };
6520
6579
 
6521
6580
  // src/api/endpoints/workspaces.ts
6522
- import { z as z231 } from "zod";
6581
+ import { z as z233 } from "zod";
6523
6582
  var WorkspacesEndpoint = class {
6524
6583
  constructor(requestExecutor) {
6525
6584
  this.requestExecutor = requestExecutor;
6526
6585
  __publicField(this, "members");
6586
+ __publicField(this, "invitations");
6527
6587
  this.members = new WorkspaceMembersEndpoint(requestExecutor);
6588
+ this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
6528
6589
  }
6529
6590
  create(body) {
6530
6591
  return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
@@ -6537,10 +6598,10 @@ var WorkspacesEndpoint = class {
6537
6598
  });
6538
6599
  }
6539
6600
  delete(workspaceId) {
6540
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z231.any(), { method: "DELETE" });
6601
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z233.any(), { method: "DELETE" });
6541
6602
  }
6542
6603
  subscription(workspaceId) {
6543
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z231.any(), { method: "GET" });
6604
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z233.any(), { method: "GET" });
6544
6605
  }
6545
6606
  };
6546
6607
 
@@ -6562,9 +6623,9 @@ ${bodyText}`);
6562
6623
 
6563
6624
  // src/api/transport/request-executor.ts
6564
6625
  import fetch from "node-fetch";
6565
- import { z as z232 } from "zod";
6566
- var ResponseWrapper = z232.object({
6567
- result: z232.record(z232.any())
6626
+ import { z as z234 } from "zod";
6627
+ var ResponseWrapper = z234.object({
6628
+ result: z234.record(z234.any())
6568
6629
  });
6569
6630
  var RequestExecutor = class {
6570
6631
  constructor(testServerConfig) {
@@ -6686,7 +6747,7 @@ function generateHash(input, debug = false) {
6686
6747
  }
6687
6748
 
6688
6749
  // src/yjs/design-system-content/documentation-hierarchy.ts
6689
- import { z as z233 } from "zod";
6750
+ import { z as z235 } from "zod";
6690
6751
 
6691
6752
  // src/yjs/version-room/base.ts
6692
6753
  var VersionRoomBaseYDoc = class {
@@ -7215,24 +7276,24 @@ var FrontendVersionRoomYDoc = class {
7215
7276
  };
7216
7277
 
7217
7278
  // src/yjs/design-system-content/documentation-hierarchy.ts
7218
- var DocumentationHierarchySettings = z233.object({
7219
- routingVersion: z233.string(),
7220
- isDraftFeatureAdopted: z233.boolean(),
7221
- isApprovalFeatureEnabled: z233.boolean(),
7222
- approvalRequiredForPublishing: z233.boolean()
7279
+ var DocumentationHierarchySettings = z235.object({
7280
+ routingVersion: z235.string(),
7281
+ isDraftFeatureAdopted: z235.boolean(),
7282
+ isApprovalFeatureEnabled: z235.boolean(),
7283
+ approvalRequiredForPublishing: z235.boolean()
7223
7284
  });
7224
7285
  function yjsToDocumentationHierarchy(doc) {
7225
7286
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
7226
7287
  }
7227
7288
 
7228
7289
  // src/yjs/design-system-content/item-configuration.ts
7229
- import { z as z234 } from "zod";
7230
- var DTODocumentationPageRoomHeaderData = z234.object({
7231
- title: z234.string(),
7290
+ import { z as z236 } from "zod";
7291
+ var DTODocumentationPageRoomHeaderData = z236.object({
7292
+ title: z236.string(),
7232
7293
  configuration: DTODocumentationItemConfigurationV2
7233
7294
  });
7234
- var DTODocumentationPageRoomHeaderDataUpdate = z234.object({
7235
- title: z234.string().optional(),
7295
+ var DTODocumentationPageRoomHeaderDataUpdate = z236.object({
7296
+ title: z236.string().optional(),
7236
7297
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
7237
7298
  });
7238
7299
  function itemConfigurationToYjs(yDoc, item) {
@@ -7283,7 +7344,7 @@ function yjsToItemConfiguration(yDoc) {
7283
7344
  header: rawHeader
7284
7345
  };
7285
7346
  return {
7286
- title: z234.string().parse(title),
7347
+ title: z236.string().parse(title),
7287
7348
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7288
7349
  };
7289
7350
  }
@@ -7293,9 +7354,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7293
7354
  var PageSectionEditorModel = PageSectionEditorModelV2;
7294
7355
 
7295
7356
  // src/yjs/docs-editor/model/page.ts
7296
- import { z as z235 } from "zod";
7297
- var DocumentationPageEditorModel = z235.object({
7298
- blocks: z235.array(DocumentationPageContentItem)
7357
+ import { z as z237 } from "zod";
7358
+ var DocumentationPageEditorModel = z237.object({
7359
+ blocks: z237.array(DocumentationPageContentItem)
7299
7360
  });
7300
7361
 
7301
7362
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -10646,7 +10707,7 @@ var blocks = [
10646
10707
 
10647
10708
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10648
10709
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10649
- import { z as z236 } from "zod";
10710
+ import { z as z238 } from "zod";
10650
10711
  function yDocToPage(yDoc, definitions) {
10651
10712
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10652
10713
  }
@@ -10726,7 +10787,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10726
10787
  return null;
10727
10788
  return {
10728
10789
  id,
10729
- title: getProsemirrorAttribute(prosemirrorNode, "title", z236.string()) ?? "",
10790
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z238.string()) ?? "",
10730
10791
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10731
10792
  };
10732
10793
  }
@@ -10761,7 +10822,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
10761
10822
  });
10762
10823
  }
10763
10824
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
10764
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z236.string());
10825
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z238.string());
10765
10826
  if (!definitionId) {
10766
10827
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
10767
10828
  return [];
@@ -10803,7 +10864,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
10803
10864
  if (!id)
10804
10865
  return null;
10805
10866
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10806
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z236.string().optional()));
10867
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z238.string().optional()));
10807
10868
  return {
10808
10869
  id,
10809
10870
  type: "Block",
@@ -10931,10 +10992,10 @@ function parseRichTextAttribute(mark) {
10931
10992
  return null;
10932
10993
  }
10933
10994
  function parseProsemirrorLink(mark) {
10934
- const href = getProsemirrorAttribute(mark, "href", z236.string().optional());
10995
+ const href = getProsemirrorAttribute(mark, "href", z238.string().optional());
10935
10996
  if (!href)
10936
10997
  return null;
10937
- const target = getProsemirrorAttribute(mark, "target", z236.string().optional());
10998
+ const target = getProsemirrorAttribute(mark, "target", z238.string().optional());
10938
10999
  const openInNewTab = target === "_blank";
10939
11000
  if (href.startsWith("@")) {
10940
11001
  return {
@@ -10953,10 +11014,10 @@ function parseProsemirrorLink(mark) {
10953
11014
  }
10954
11015
  }
10955
11016
  function parseProsemirrorCommentHighlight(mark) {
10956
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z236.string().optional());
11017
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z238.string().optional());
10957
11018
  if (!highlightId)
10958
11019
  return null;
10959
- const isResolved = getProsemirrorAttribute(mark, "resolved", z236.boolean().optional()) ?? false;
11020
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z238.boolean().optional()) ?? false;
10960
11021
  return {
10961
11022
  type: "Comment",
10962
11023
  commentHighlightId: highlightId,
@@ -10968,7 +11029,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
10968
11029
  if (!id)
10969
11030
  return null;
10970
11031
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10971
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z236.boolean().optional()) !== false;
11032
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z238.boolean().optional()) !== false;
10972
11033
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
10973
11034
  if (!tableChild) {
10974
11035
  return emptyTable(id, variantId, 0);
@@ -11015,9 +11076,9 @@ function parseAsTableCell(prosemirrorNode) {
11015
11076
  const id = getProsemirrorBlockId(prosemirrorNode);
11016
11077
  if (!id)
11017
11078
  return null;
11018
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z236.string().optional());
11079
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z238.string().optional());
11019
11080
  let columnWidth;
11020
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z236.array(z236.number()).nullish());
11081
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z238.array(z238.number()).nullish());
11021
11082
  if (columnWidthArray) {
11022
11083
  columnWidth = roundDimension(columnWidthArray[0]);
11023
11084
  }
@@ -11055,7 +11116,7 @@ function parseAsTableNode(prosemirrorNode) {
11055
11116
  value: parseRichText(prosemirrorNode.content ?? [])
11056
11117
  };
11057
11118
  case "image":
11058
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z236.string());
11119
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z238.string());
11059
11120
  if (!items)
11060
11121
  return null;
11061
11122
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11175,7 +11236,7 @@ function definitionExpectsPlaceholderItem(definition) {
11175
11236
  );
11176
11237
  }
11177
11238
  function parseBlockItems(prosemirrorNode, definition) {
11178
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z236.string());
11239
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z238.string());
11179
11240
  if (!itemsString)
11180
11241
  return null;
11181
11242
  const itemsJson = JSON.parse(itemsString);
@@ -11187,18 +11248,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11187
11248
  }
11188
11249
  function parseAppearance(prosemirrorNode) {
11189
11250
  let appearance = {};
11190
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z236.string().optional());
11251
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z238.string().optional());
11191
11252
  if (rawAppearanceString) {
11192
11253
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11193
11254
  if (parsedAppearance.success) {
11194
11255
  appearance = parsedAppearance.data;
11195
11256
  }
11196
11257
  }
11197
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z236.number().optional());
11258
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z238.number().optional());
11198
11259
  if (columns) {
11199
11260
  appearance.numberOfColumns = columns;
11200
11261
  }
11201
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z236.string().optional());
11262
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z238.string().optional());
11202
11263
  if (backgroundColor) {
11203
11264
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11204
11265
  if (parsedColor.success) {
@@ -11293,13 +11354,13 @@ function valueSchemaForPropertyType(type) {
11293
11354
  }
11294
11355
  }
11295
11356
  function getProsemirrorBlockId(prosemirrorNode) {
11296
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z236.string());
11357
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z238.string());
11297
11358
  if (!id)
11298
11359
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11299
11360
  return id;
11300
11361
  }
11301
11362
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11302
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z236.string()));
11363
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z238.string()));
11303
11364
  }
11304
11365
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11305
11366
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11383,11 +11444,13 @@ export {
11383
11444
  DTODesignElementsDataDiffResponse,
11384
11445
  DTODesignSystem,
11385
11446
  DTODesignSystemCreateInput,
11447
+ DTODesignSystemInvitation,
11386
11448
  DTODesignSystemMember,
11387
11449
  DTODesignSystemMemberListResponse,
11388
11450
  DTODesignSystemMembersUpdatePayload,
11389
11451
  DTODesignSystemMembersUpdateResponse,
11390
11452
  DTODesignSystemResponse,
11453
+ DTODesignSystemUpdateAccessModeInput,
11391
11454
  DTODesignSystemUpdateInput,
11392
11455
  DTODesignSystemVersion,
11393
11456
  DTODesignSystemVersionCreationResponse,
@@ -11567,6 +11630,7 @@ export {
11567
11630
  DTOWorkspaceIntegrationPATInput,
11568
11631
  DTOWorkspaceInvitationInput,
11569
11632
  DTOWorkspaceInvitationsListInput,
11633
+ DTOWorkspaceInvitationsResponse,
11570
11634
  DTOWorkspaceResponse,
11571
11635
  DTOWorkspaceRole,
11572
11636
  DesignSystemMembersEndpoint,
@@ -11587,6 +11651,7 @@ export {
11587
11651
  VersionRoomBaseYDoc,
11588
11652
  VersionSQSPayload,
11589
11653
  WorkspaceConfigurationPayload,
11654
+ WorkspaceInvitationsEndpoint,
11590
11655
  WorkspaceMembersEndpoint,
11591
11656
  WorkspacesEndpoint,
11592
11657
  applyPrivacyConfigurationToNestedItems,