@supernova-studio/client 0.54.13 → 0.54.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -20,12 +20,12 @@ import { z as z11 } from "zod";
20
20
  import { z as z12 } from "zod";
21
21
  import { z as z13 } from "zod";
22
22
  import { z as z14 } from "zod";
23
- import { z as z126 } from "zod";
23
+ import { z as z124 } from "zod";
24
24
  import { z as z17 } from "zod";
25
25
  import { z as z15 } from "zod";
26
26
  import { z as z16 } from "zod";
27
- import { z as z125 } from "zod";
28
- import { z as z124 } from "zod";
27
+ import { z as z123 } from "zod";
28
+ import { z as z122 } 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";
@@ -126,21 +126,21 @@ import { z as z113 } from "zod";
126
126
  import { z as z114 } from "zod";
127
127
  import { z as z115 } from "zod";
128
128
  import { z as z116 } from "zod";
129
- import { z as z118 } from "zod";
130
129
  import { z as z117 } from "zod";
130
+ import { z as z118 } from "zod";
131
131
  import { z as z119 } from "zod";
132
132
  import { z as z120 } from "zod";
133
133
  import { z as z121 } from "zod";
134
- import { z as z122 } from "zod";
135
- import { z as z123 } from "zod";
136
- import { z as z133 } from "zod";
137
- import { z as z132 } from "zod";
134
+ import { z as z131 } from "zod";
135
+ import { z as z130 } from "zod";
136
+ import { z as z125 } from "zod";
137
+ import { z as z126 } from "zod";
138
138
  import { z as z127 } from "zod";
139
139
  import { z as z128 } from "zod";
140
140
  import { z as z129 } from "zod";
141
- import { z as z130 } from "zod";
142
- import { z as z131 } from "zod";
143
- import { z as z148 } from "zod";
141
+ import { z as z146 } from "zod";
142
+ import { z as z132 } from "zod";
143
+ import { z as z133 } from "zod";
144
144
  import { z as z134 } from "zod";
145
145
  import { z as z135 } from "zod";
146
146
  import { z as z136 } from "zod";
@@ -148,39 +148,37 @@ import { z as z137 } from "zod";
148
148
  import { z as z138 } from "zod";
149
149
  import { z as z139 } from "zod";
150
150
  import { z as z140 } from "zod";
151
+ import { z as z145 } from "zod";
151
152
  import { z as z141 } from "zod";
152
- import { z as z142 } from "zod";
153
- import { z as z147 } from "zod";
154
- import { z as z143 } from "zod";
155
153
  import IPCIDR from "ip-cidr";
156
- import { z as z146 } from "zod";
157
154
  import { z as z144 } from "zod";
158
- import { z as z145 } from "zod";
159
- import { z as z149 } from "zod";
160
- import { z as z152 } from "zod";
155
+ import { z as z142 } from "zod";
156
+ import { z as z143 } from "zod";
157
+ import { z as z147 } from "zod";
161
158
  import { z as z150 } from "zod";
159
+ import { z as z148 } from "zod";
160
+ import { z as z149 } from "zod";
162
161
  import { z as z151 } from "zod";
162
+ import { z as z152 } from "zod";
163
163
  import { z as z153 } from "zod";
164
164
  import { z as z154 } from "zod";
165
165
  import { z as z155 } from "zod";
166
166
  import { z as z156 } from "zod";
167
- import { z as z157 } from "zod";
168
167
  import { z as z158 } from "zod";
169
- import { z as z160 } from "zod";
168
+ import { z as z157 } from "zod";
170
169
  import { z as z159 } from "zod";
170
+ import { z as z160 } from "zod";
171
171
  import { z as z161 } from "zod";
172
172
  import { z as z162 } from "zod";
173
173
  import { z as z163 } from "zod";
174
- import { z as z164 } from "zod";
174
+ import { z as z171 } from "zod";
175
175
  import { z as z165 } from "zod";
176
- import { z as z173 } from "zod";
177
- import { z as z167 } from "zod";
176
+ import { z as z164 } from "zod";
178
177
  import { z as z166 } from "zod";
178
+ import { z as z167 } from "zod";
179
179
  import { z as z168 } from "zod";
180
180
  import { z as z169 } from "zod";
181
181
  import { z as z170 } from "zod";
182
- import { z as z171 } from "zod";
183
- import { z as z172 } from "zod";
184
182
  var __defProp2 = Object.defineProperty;
185
183
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
186
184
  var __publicField2 = (obj, key, value) => {
@@ -1535,7 +1533,6 @@ var DesignTokenType = z39.enum([
1535
1533
  "ParagraphSpacing",
1536
1534
  "BorderWidth",
1537
1535
  "BorderRadius",
1538
- "Duration",
1539
1536
  "ZIndex",
1540
1537
  "Image",
1541
1538
  "String",
@@ -3634,193 +3631,161 @@ var DesignSystem = z117.object({
3634
3631
  createdAt: z117.coerce.date(),
3635
3632
  updatedAt: z117.coerce.date()
3636
3633
  });
3637
- var DS_NAME_MIN_LENGTH = 2;
3638
- var DS_NAME_MAX_LENGTH = 64;
3639
- var DS_DESC_MAX_LENGTH = 2048;
3640
- var DesignSystemUpdateInputMetadata = z118.object({
3641
- name: z118.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
3642
- description: z118.string().max(DS_DESC_MAX_LENGTH).trim().optional()
3643
- });
3644
- var DesignSystemUpdateInput = DesignSystem.partial().omit({
3645
- id: true,
3646
- workspaceId: true,
3647
- createdAt: true,
3648
- updatedAt: true,
3649
- docSlug: true,
3650
- docViewUrl: true
3651
- }).extend({
3652
- meta: DesignSystemUpdateInputMetadata.optional()
3653
- });
3654
- var DS_NAME_MIN_LENGTH2 = 2;
3655
- var DS_NAME_MAX_LENGTH2 = 64;
3656
- var DS_DESC_MAX_LENGTH2 = 64;
3657
- var DesignSystemCreateInputMetadata = z119.object({
3658
- name: z119.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
3659
- description: z119.string().max(DS_DESC_MAX_LENGTH2).trim()
3660
- });
3661
- var DesignSystemCreateInput = z119.object({
3662
- meta: DesignSystemCreateInputMetadata,
3663
- workspaceId: z119.string(),
3664
- isPublic: z119.boolean().optional(),
3665
- basePrefixes: z119.array(z119.string()).optional(),
3666
- docUserSlug: z119.string().nullish().optional(),
3667
- source: z119.array(z119.string()).optional()
3668
- });
3669
- var ExporterPropertyImageValue = z120.object({
3634
+ var ExporterPropertyImageValue = z118.object({
3670
3635
  asset: PageBlockAsset.optional(),
3671
- assetId: z120.string().optional(),
3672
- assetUrl: z120.string().optional()
3673
- });
3674
- var ExporterPropertyValue = z120.object({
3675
- key: z120.string(),
3676
- value: z120.union([
3677
- z120.number(),
3678
- z120.string(),
3679
- z120.boolean(),
3636
+ assetId: z118.string().optional(),
3637
+ assetUrl: z118.string().optional()
3638
+ });
3639
+ var ExporterPropertyValue = z118.object({
3640
+ key: z118.string(),
3641
+ value: z118.union([
3642
+ z118.number(),
3643
+ z118.string(),
3644
+ z118.boolean(),
3680
3645
  ExporterPropertyImageValue,
3681
3646
  ColorTokenData,
3682
3647
  TypographyTokenData
3683
3648
  ])
3684
3649
  });
3685
- var ExporterPropertyValuesCollection = z120.object({
3686
- id: z120.string(),
3687
- designSystemId: z120.string(),
3688
- exporterId: z120.string(),
3689
- values: z120.array(ExporterPropertyValue)
3690
- });
3691
- var PublishedDocPage = z121.object({
3692
- id: z121.string(),
3693
- publishedDocId: z121.string(),
3694
- pageShortPersistentId: z121.string(),
3695
- pathV1: z121.string(),
3696
- pathV2: z121.string(),
3697
- storagePath: z121.string(),
3698
- locale: z121.string().optional(),
3699
- isPrivate: z121.boolean(),
3700
- isHidden: z121.boolean(),
3701
- createdAt: z121.coerce.date(),
3702
- updatedAt: z121.coerce.date()
3650
+ var ExporterPropertyValuesCollection = z118.object({
3651
+ id: z118.string(),
3652
+ designSystemId: z118.string(),
3653
+ exporterId: z118.string(),
3654
+ values: z118.array(ExporterPropertyValue)
3655
+ });
3656
+ var PublishedDocPage = z119.object({
3657
+ id: z119.string(),
3658
+ publishedDocId: z119.string(),
3659
+ pageShortPersistentId: z119.string(),
3660
+ pathV1: z119.string(),
3661
+ pathV2: z119.string(),
3662
+ storagePath: z119.string(),
3663
+ locale: z119.string().optional(),
3664
+ isPrivate: z119.boolean(),
3665
+ isHidden: z119.boolean(),
3666
+ createdAt: z119.coerce.date(),
3667
+ updatedAt: z119.coerce.date()
3703
3668
  });
3704
3669
  var publishedDocEnvironments = ["Live", "Preview"];
3705
- var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
3706
- var PublishedDocsChecksums = z122.record(z122.string());
3707
- var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
3708
- var PublishedDoc = z122.object({
3709
- id: z122.string(),
3710
- designSystemVersionId: z122.string(),
3711
- createdAt: z122.coerce.date(),
3712
- updatedAt: z122.coerce.date(),
3713
- lastPublishedAt: z122.coerce.date(),
3714
- isDefault: z122.boolean(),
3715
- isPublic: z122.boolean(),
3670
+ var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
3671
+ var PublishedDocsChecksums = z120.record(z120.string());
3672
+ var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
3673
+ var PublishedDoc = z120.object({
3674
+ id: z120.string(),
3675
+ designSystemVersionId: z120.string(),
3676
+ createdAt: z120.coerce.date(),
3677
+ updatedAt: z120.coerce.date(),
3678
+ lastPublishedAt: z120.coerce.date(),
3679
+ isDefault: z120.boolean(),
3680
+ isPublic: z120.boolean(),
3716
3681
  environment: PublishedDocEnvironment,
3717
3682
  checksums: PublishedDocsChecksums,
3718
- storagePath: z122.string(),
3719
- wasMigrated: z122.boolean(),
3683
+ storagePath: z120.string(),
3684
+ wasMigrated: z120.boolean(),
3720
3685
  routingVersion: PublishedDocRoutingVersion,
3721
- usesLocalizations: z122.boolean(),
3722
- wasPublishedWithLocalizations: z122.boolean(),
3723
- tokenCount: z122.number(),
3724
- assetCount: z122.number()
3686
+ usesLocalizations: z120.boolean(),
3687
+ wasPublishedWithLocalizations: z120.boolean(),
3688
+ tokenCount: z120.number(),
3689
+ assetCount: z120.number()
3725
3690
  });
3726
- var DesignSystemVersion = z123.object({
3727
- id: z123.string(),
3728
- version: z123.string(),
3729
- createdAt: z123.coerce.date(),
3730
- designSystemId: z123.string(),
3731
- name: z123.string(),
3732
- comment: z123.string(),
3733
- isReadonly: z123.boolean(),
3734
- changeLog: z123.string(),
3735
- parentId: z123.string().optional(),
3736
- isDraftsFeatureAdopted: z123.boolean()
3737
- });
3738
- var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
3739
- var VersionCreationJob = z123.object({
3740
- id: z123.string(),
3741
- version: z123.string(),
3742
- designSystemId: z123.string(),
3743
- designSystemVersionId: nullishToOptional(z123.string()),
3691
+ var DesignSystemVersion = z121.object({
3692
+ id: z121.string(),
3693
+ version: z121.string(),
3694
+ createdAt: z121.coerce.date(),
3695
+ designSystemId: z121.string(),
3696
+ name: z121.string(),
3697
+ comment: z121.string(),
3698
+ isReadonly: z121.boolean(),
3699
+ changeLog: z121.string(),
3700
+ parentId: z121.string().optional(),
3701
+ isDraftsFeatureAdopted: z121.boolean()
3702
+ });
3703
+ var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
3704
+ var VersionCreationJob = z121.object({
3705
+ id: z121.string(),
3706
+ version: z121.string(),
3707
+ designSystemId: z121.string(),
3708
+ designSystemVersionId: nullishToOptional(z121.string()),
3744
3709
  status: VersionCreationJobStatus,
3745
- errorMessage: nullishToOptional(z123.string())
3710
+ errorMessage: nullishToOptional(z121.string())
3746
3711
  });
3747
3712
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3748
3713
  var BITBUCKET_MAX_LENGTH = 64;
3749
- var ExportJobDocumentationChanges = z124.object({
3750
- pagePersistentIds: z124.string().array(),
3751
- groupPersistentIds: z124.string().array()
3714
+ var ExportJobDocumentationChanges = z122.object({
3715
+ pagePersistentIds: z122.string().array(),
3716
+ groupPersistentIds: z122.string().array()
3752
3717
  });
3753
- var ExporterDestinationDocs = z124.object({
3718
+ var ExporterDestinationDocs = z122.object({
3754
3719
  environment: PublishedDocEnvironment,
3755
3720
  changes: nullishToOptional(ExportJobDocumentationChanges)
3756
3721
  });
3757
- var ExporterDestinationS3 = z124.object({});
3758
- var ExporterDestinationGithub = z124.object({
3759
- credentialId: z124.string().optional(),
3722
+ var ExporterDestinationS3 = z122.object({});
3723
+ var ExporterDestinationGithub = z122.object({
3724
+ credentialId: z122.string().optional(),
3760
3725
  // Repository
3761
- url: z124.string(),
3726
+ url: z122.string(),
3762
3727
  // Location
3763
- branch: z124.string(),
3764
- relativePath: nullishToOptional(z124.string()),
3728
+ branch: z122.string(),
3729
+ relativePath: nullishToOptional(z122.string()),
3765
3730
  // Commit metadata
3766
- commitAuthorName: nullishToOptional(z124.string()),
3767
- commitAuthorEmail: nullishToOptional(z124.string()),
3731
+ commitAuthorName: nullishToOptional(z122.string()),
3732
+ commitAuthorEmail: nullishToOptional(z122.string()),
3768
3733
  // Legacy deprecated fields. Use `credentialId` instead
3769
- connectionId: nullishToOptional(z124.string()),
3770
- userId: nullishToOptional(z124.number())
3734
+ connectionId: nullishToOptional(z122.string()),
3735
+ userId: nullishToOptional(z122.number())
3771
3736
  });
3772
- var ExporterDestinationAzure = z124.object({
3773
- credentialId: z124.string().optional(),
3737
+ var ExporterDestinationAzure = z122.object({
3738
+ credentialId: z122.string().optional(),
3774
3739
  // Repository
3775
- organizationId: z124.string(),
3776
- projectId: z124.string(),
3777
- repositoryId: z124.string(),
3740
+ organizationId: z122.string(),
3741
+ projectId: z122.string(),
3742
+ repositoryId: z122.string(),
3778
3743
  // Commit metadata
3779
- commitAuthorName: nullishToOptional(z124.string()),
3780
- commitAuthorEmail: nullishToOptional(z124.string()),
3744
+ commitAuthorName: nullishToOptional(z122.string()),
3745
+ commitAuthorEmail: nullishToOptional(z122.string()),
3781
3746
  // Location
3782
- branch: z124.string(),
3783
- relativePath: nullishToOptional(z124.string()),
3747
+ branch: z122.string(),
3748
+ relativePath: nullishToOptional(z122.string()),
3784
3749
  // Maybe not needed
3785
- url: nullishToOptional(z124.string()),
3750
+ url: nullishToOptional(z122.string()),
3786
3751
  // Legacy deprecated fields. Use `credentialId` instead
3787
- connectionId: nullishToOptional(z124.string()),
3788
- userId: nullishToOptional(z124.number())
3752
+ connectionId: nullishToOptional(z122.string()),
3753
+ userId: nullishToOptional(z122.number())
3789
3754
  });
3790
- var ExporterDestinationGitlab = z124.object({
3791
- credentialId: z124.string().optional(),
3755
+ var ExporterDestinationGitlab = z122.object({
3756
+ credentialId: z122.string().optional(),
3792
3757
  // Repository
3793
- projectId: z124.string(),
3758
+ projectId: z122.string(),
3794
3759
  // Commit metadata
3795
- commitAuthorName: nullishToOptional(z124.string()),
3796
- commitAuthorEmail: nullishToOptional(z124.string()),
3760
+ commitAuthorName: nullishToOptional(z122.string()),
3761
+ commitAuthorEmail: nullishToOptional(z122.string()),
3797
3762
  // Location
3798
- branch: z124.string(),
3799
- relativePath: nullishToOptional(z124.string()),
3763
+ branch: z122.string(),
3764
+ relativePath: nullishToOptional(z122.string()),
3800
3765
  // Maybe not needed
3801
- url: nullishToOptional(z124.string()),
3766
+ url: nullishToOptional(z122.string()),
3802
3767
  // Legacy deprecated fields. Use `credentialId` instead
3803
- connectionId: nullishToOptional(z124.string()),
3804
- userId: nullishToOptional(z124.number())
3768
+ connectionId: nullishToOptional(z122.string()),
3769
+ userId: nullishToOptional(z122.number())
3805
3770
  });
3806
- var ExporterDestinationBitbucket = z124.object({
3807
- credentialId: z124.string().optional(),
3771
+ var ExporterDestinationBitbucket = z122.object({
3772
+ credentialId: z122.string().optional(),
3808
3773
  // Repository
3809
- workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3810
- projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3811
- repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3774
+ workspaceSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3775
+ projectKey: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3776
+ repoSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3812
3777
  // Commit metadata
3813
- commitAuthorName: nullishToOptional(z124.string()),
3814
- commitAuthorEmail: nullishToOptional(z124.string()),
3778
+ commitAuthorName: nullishToOptional(z122.string()),
3779
+ commitAuthorEmail: nullishToOptional(z122.string()),
3815
3780
  // Location
3816
- branch: z124.string(),
3817
- relativePath: nullishToOptional(z124.string()),
3781
+ branch: z122.string(),
3782
+ relativePath: nullishToOptional(z122.string()),
3818
3783
  // Legacy deprecated fields. Use `credentialId` instead
3819
- connectionId: nullishToOptional(z124.string()),
3820
- userId: nullishToOptional(z124.number())
3784
+ connectionId: nullishToOptional(z122.string()),
3785
+ userId: nullishToOptional(z122.number())
3821
3786
  });
3822
- var ExportDestinationsMap = z124.object({
3823
- webhookUrl: z124.string().optional(),
3787
+ var ExportDestinationsMap = z122.object({
3788
+ webhookUrl: z122.string().optional(),
3824
3789
  destinationSnDocs: ExporterDestinationDocs.optional(),
3825
3790
  destinationS3: ExporterDestinationS3.optional(),
3826
3791
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3828,93 +3793,93 @@ var ExportDestinationsMap = z124.object({
3828
3793
  destinationGitlab: ExporterDestinationGitlab.optional(),
3829
3794
  destinationBitbucket: ExporterDestinationBitbucket.optional()
3830
3795
  });
3831
- var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3832
- var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3833
- var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
3834
- var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3835
- var Pipeline = z125.object({
3836
- id: z125.string(),
3837
- name: z125.string(),
3796
+ var PipelineEventType = z123.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3797
+ var PipelineDestinationGitType = z123.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3798
+ var PipelineDestinationExtraType = z123.enum(["WebhookUrl", "S3", "Documentation"]);
3799
+ var PipelineDestinationType = z123.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3800
+ var Pipeline = z123.object({
3801
+ id: z123.string(),
3802
+ name: z123.string(),
3838
3803
  eventType: PipelineEventType,
3839
- isEnabled: z125.boolean(),
3840
- workspaceId: z125.string(),
3841
- designSystemId: z125.string(),
3842
- exporterId: z125.string(),
3843
- brandPersistentId: z125.string().optional(),
3844
- themePersistentId: z125.string().optional(),
3845
- themePersistentIds: z125.string().array().optional(),
3804
+ isEnabled: z123.boolean(),
3805
+ workspaceId: z123.string(),
3806
+ designSystemId: z123.string(),
3807
+ exporterId: z123.string(),
3808
+ brandPersistentId: z123.string().optional(),
3809
+ themePersistentId: z123.string().optional(),
3810
+ themePersistentIds: z123.string().array().optional(),
3846
3811
  // Destinations
3847
3812
  ...ExportDestinationsMap.shape
3848
3813
  });
3849
- var ExportJobDump = z126.object({
3850
- id: z126.string(),
3851
- createdAt: z126.coerce.date(),
3852
- finishedAt: z126.coerce.date(),
3853
- exportArtefacts: z126.string()
3814
+ var ExportJobDump = z124.object({
3815
+ id: z124.string(),
3816
+ createdAt: z124.coerce.date(),
3817
+ finishedAt: z124.coerce.date(),
3818
+ exportArtefacts: z124.string()
3854
3819
  });
3855
- var CodeIntegrationDump = z126.object({
3820
+ var CodeIntegrationDump = z124.object({
3856
3821
  exporters: Exporter.array(),
3857
3822
  pipelines: Pipeline.array(),
3858
3823
  exportJobs: ExportJobDump.array()
3859
3824
  });
3860
3825
  var DesignSystemVersionRoom = Entity.extend({
3861
- designSystemVersionId: z127.string(),
3862
- liveblocksId: z127.string()
3863
- });
3864
- var DesignSystemVersionRoomInternalSettings = z127.object({
3865
- routingVersion: z127.string(),
3866
- isDraftFeatureAdopted: z127.boolean(),
3867
- isApprovalFeatureEnabled: z127.boolean(),
3868
- approvalRequiredForPublishing: z127.boolean()
3869
- });
3870
- var DesignSystemVersionRoomInitialState = z127.object({
3871
- pages: z127.array(DocumentationPageV2),
3872
- groups: z127.array(ElementGroup),
3873
- pageSnapshots: z127.array(DocumentationPageSnapshot),
3874
- groupSnapshots: z127.array(ElementGroupSnapshot),
3875
- pageApprovals: z127.array(DocumentationPageApproval),
3826
+ designSystemVersionId: z125.string(),
3827
+ liveblocksId: z125.string()
3828
+ });
3829
+ var DesignSystemVersionRoomInternalSettings = z125.object({
3830
+ routingVersion: z125.string(),
3831
+ isDraftFeatureAdopted: z125.boolean(),
3832
+ isApprovalFeatureEnabled: z125.boolean(),
3833
+ approvalRequiredForPublishing: z125.boolean()
3834
+ });
3835
+ var DesignSystemVersionRoomInitialState = z125.object({
3836
+ pages: z125.array(DocumentationPageV2),
3837
+ groups: z125.array(ElementGroup),
3838
+ pageSnapshots: z125.array(DocumentationPageSnapshot),
3839
+ groupSnapshots: z125.array(ElementGroupSnapshot),
3840
+ pageApprovals: z125.array(DocumentationPageApproval),
3876
3841
  internalSettings: DesignSystemVersionRoomInternalSettings
3877
3842
  });
3878
- var DesignSystemVersionRoomUpdate = z127.object({
3879
- pages: z127.array(DocumentationPageV2),
3880
- groups: z127.array(ElementGroup),
3881
- pageIdsToDelete: z127.array(z127.string()),
3882
- groupIdsToDelete: z127.array(z127.string()),
3883
- pageSnapshots: z127.array(DocumentationPageSnapshot),
3884
- groupSnapshots: z127.array(ElementGroupSnapshot),
3885
- pageSnapshotIdsToDelete: z127.array(z127.string()),
3886
- groupSnapshotIdsToDelete: z127.array(z127.string()),
3887
- pageHashesToUpdate: z127.record(z127.string(), z127.string()),
3888
- pageApprovals: z127.array(DocumentationPageApproval),
3889
- pageApprovalIdsToDelete: z127.array(z127.string())
3843
+ var DesignSystemVersionRoomUpdate = z125.object({
3844
+ pages: z125.array(DocumentationPageV2),
3845
+ groups: z125.array(ElementGroup),
3846
+ pageIdsToDelete: z125.array(z125.string()),
3847
+ groupIdsToDelete: z125.array(z125.string()),
3848
+ pageSnapshots: z125.array(DocumentationPageSnapshot),
3849
+ groupSnapshots: z125.array(ElementGroupSnapshot),
3850
+ pageSnapshotIdsToDelete: z125.array(z125.string()),
3851
+ groupSnapshotIdsToDelete: z125.array(z125.string()),
3852
+ pageHashesToUpdate: z125.record(z125.string(), z125.string()),
3853
+ pageApprovals: z125.array(DocumentationPageApproval),
3854
+ pageApprovalIdsToDelete: z125.array(z125.string())
3890
3855
  });
3891
3856
  var DocumentationPageRoom = Entity.extend({
3892
- designSystemVersionId: z128.string(),
3893
- documentationPageId: z128.string(),
3894
- liveblocksId: z128.string(),
3895
- isDirty: z128.boolean()
3857
+ designSystemVersionId: z126.string(),
3858
+ documentationPageId: z126.string(),
3859
+ liveblocksId: z126.string(),
3860
+ isDirty: z126.boolean()
3896
3861
  });
3897
- var DocumentationPageRoomState = z128.object({
3898
- pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3862
+ var DocumentationPageRoomState = z126.object({
3863
+ pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3899
3864
  itemConfiguration: DocumentationItemConfigurationV2
3900
3865
  });
3901
- var DocumentationPageRoomRoomUpdate = z128.object({
3866
+ var DocumentationPageRoomRoomUpdate = z126.object({
3902
3867
  page: DocumentationPageV2,
3903
3868
  pageParent: ElementGroup
3904
3869
  });
3905
3870
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3906
- pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3907
- blockDefinitions: z128.array(PageBlockDefinition)
3871
+ pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3872
+ blockDefinitions: z126.array(PageBlockDefinition)
3908
3873
  });
3909
- var RestoredDocumentationPage = z128.object({
3874
+ var RestoredDocumentationPage = z126.object({
3910
3875
  page: DocumentationPageV2,
3911
3876
  pageParent: ElementGroup,
3912
3877
  pageContent: DocumentationPageContentData,
3913
- contentHash: z128.string(),
3914
- snapshotId: z128.string(),
3915
- roomId: z128.string().optional()
3878
+ contentHash: z126.string(),
3879
+ snapshotId: z126.string(),
3880
+ roomId: z126.string().optional()
3916
3881
  });
3917
- var RestoredDocumentationGroup = z128.object({
3882
+ var RestoredDocumentationGroup = z126.object({
3918
3883
  group: ElementGroup,
3919
3884
  parent: ElementGroup
3920
3885
  });
@@ -3924,28 +3889,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3924
3889
  RoomTypeEnum2["Workspace"] = "workspace";
3925
3890
  return RoomTypeEnum2;
3926
3891
  })(RoomTypeEnum || {});
3927
- var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
3892
+ var RoomTypeSchema = z127.nativeEnum(RoomTypeEnum);
3928
3893
  var RoomType = RoomTypeSchema.enum;
3929
3894
  var WorkspaceRoom = Entity.extend({
3930
- workspaceId: z130.string(),
3931
- liveblocksId: z130.string()
3895
+ workspaceId: z128.string(),
3896
+ liveblocksId: z128.string()
3932
3897
  });
3933
- var PublishedDocsDump = z131.object({
3898
+ var PublishedDocsDump = z129.object({
3934
3899
  documentation: PublishedDoc,
3935
3900
  pages: PublishedDocPage.array()
3936
3901
  });
3937
- var DocumentationThreadDump = z132.object({
3902
+ var DocumentationThreadDump = z130.object({
3938
3903
  thread: DocumentationCommentThread,
3939
3904
  comments: DocumentationComment.array()
3940
3905
  });
3941
- var DocumentationPageRoomDump = z132.object({
3906
+ var DocumentationPageRoomDump = z130.object({
3942
3907
  room: DocumentationPageRoom,
3943
3908
  threads: DocumentationThreadDump.array()
3944
3909
  });
3945
- var DesignSystemVersionMultiplayerDump = z132.object({
3910
+ var DesignSystemVersionMultiplayerDump = z130.object({
3946
3911
  documentationPages: DocumentationPageRoomDump.array()
3947
3912
  });
3948
- var DesignSystemVersionDump = z132.object({
3913
+ var DesignSystemVersionDump = z130.object({
3949
3914
  version: DesignSystemVersion,
3950
3915
  brands: Brand.array(),
3951
3916
  elements: DesignElement.array(),
@@ -3958,142 +3923,142 @@ var DesignSystemVersionDump = z132.object({
3958
3923
  publishedDocumentations: PublishedDocsDump.array(),
3959
3924
  assetReferences: AssetReference.array()
3960
3925
  });
3961
- var DesignSystemDump = z133.object({
3926
+ var DesignSystemDump = z131.object({
3962
3927
  designSystem: DesignSystem,
3963
3928
  dataSources: DataSource.array(),
3964
3929
  versions: DesignSystemVersionDump.array(),
3965
3930
  customDomain: CustomDomain.optional(),
3966
3931
  files: Asset.array()
3967
3932
  });
3968
- var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
3969
- var ExternalServiceType = z134.union([
3970
- z134.literal("figma"),
3971
- z134.literal("github"),
3972
- z134.literal("azure"),
3973
- z134.literal("gitlab"),
3974
- z134.literal("bitbucket")
3933
+ var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
3934
+ var ExternalServiceType = z132.union([
3935
+ z132.literal("figma"),
3936
+ z132.literal("github"),
3937
+ z132.literal("azure"),
3938
+ z132.literal("gitlab"),
3939
+ z132.literal("bitbucket")
3975
3940
  ]);
3976
- var IntegrationUserInfo = z134.object({
3977
- id: z134.string(),
3978
- handle: z134.string().optional(),
3979
- avatarUrl: z134.string().optional(),
3980
- email: z134.string().optional(),
3941
+ var IntegrationUserInfo = z132.object({
3942
+ id: z132.string(),
3943
+ handle: z132.string().optional(),
3944
+ avatarUrl: z132.string().optional(),
3945
+ email: z132.string().optional(),
3981
3946
  authType: IntegrationAuthType.optional(),
3982
- customUrl: z134.string().optional()
3947
+ customUrl: z132.string().optional()
3983
3948
  });
3984
- var UserLinkedIntegrations = z134.object({
3949
+ var UserLinkedIntegrations = z132.object({
3985
3950
  figma: IntegrationUserInfo.optional(),
3986
3951
  github: IntegrationUserInfo.array().optional(),
3987
3952
  azure: IntegrationUserInfo.array().optional(),
3988
3953
  gitlab: IntegrationUserInfo.array().optional(),
3989
3954
  bitbucket: IntegrationUserInfo.array().optional()
3990
3955
  });
3991
- var UserAnalyticsCleanupSchedule = z135.object({
3992
- userId: z135.string(),
3993
- createdAt: z135.coerce.date(),
3994
- deleteAt: z135.coerce.date()
3956
+ var UserAnalyticsCleanupSchedule = z133.object({
3957
+ userId: z133.string(),
3958
+ createdAt: z133.coerce.date(),
3959
+ deleteAt: z133.coerce.date()
3995
3960
  });
3996
3961
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3997
3962
  createdAt: true
3998
3963
  });
3999
- var CreateUserInput = z136.object({
4000
- email: z136.string(),
4001
- name: z136.string(),
4002
- username: z136.string()
3964
+ var CreateUserInput = z134.object({
3965
+ email: z134.string(),
3966
+ name: z134.string(),
3967
+ username: z134.string()
4003
3968
  });
4004
- var UserIdentity = z137.object({
4005
- id: z137.string(),
4006
- userId: z137.string()
3969
+ var UserIdentity = z135.object({
3970
+ id: z135.string(),
3971
+ userId: z135.string()
4007
3972
  });
4008
- var UserMinified = z138.object({
4009
- id: z138.string(),
4010
- name: z138.string(),
4011
- email: z138.string(),
4012
- avatar: z138.string().optional()
3973
+ var UserMinified = z136.object({
3974
+ id: z136.string(),
3975
+ name: z136.string(),
3976
+ email: z136.string(),
3977
+ avatar: z136.string().optional()
4013
3978
  });
4014
- var LiveblocksNotificationSettings = z139.object({
4015
- sendCommentNotificationEmails: z139.boolean()
3979
+ var LiveblocksNotificationSettings = z137.object({
3980
+ sendCommentNotificationEmails: z137.boolean()
4016
3981
  });
4017
- var UserNotificationSettings = z139.object({
3982
+ var UserNotificationSettings = z137.object({
4018
3983
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4019
3984
  });
4020
- var UserOnboardingDepartment = z140.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4021
- var UserOnboardingJobLevel = z140.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4022
- var UserOnboarding = z140.object({
4023
- companyName: z140.string().optional(),
4024
- numberOfPeopleInOrg: z140.string().optional(),
4025
- numberOfPeopleInDesignTeam: z140.string().optional(),
3985
+ var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3986
+ var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3987
+ var UserOnboarding = z138.object({
3988
+ companyName: z138.string().optional(),
3989
+ numberOfPeopleInOrg: z138.string().optional(),
3990
+ numberOfPeopleInDesignTeam: z138.string().optional(),
4026
3991
  department: UserOnboardingDepartment.optional(),
4027
- jobTitle: z140.string().optional(),
4028
- phase: z140.string().optional(),
3992
+ jobTitle: z138.string().optional(),
3993
+ phase: z138.string().optional(),
4029
3994
  jobLevel: UserOnboardingJobLevel.optional(),
4030
- designSystemName: z140.string().optional(),
4031
- defaultDestination: z140.string().optional(),
4032
- figmaUrl: z140.string().optional(),
4033
- isPageDraftOnboardingFinished: z140.boolean().optional(),
4034
- isApprovalsOnboardingFinished: z140.boolean().optional()
4035
- });
4036
- var UserProfile = z140.object({
4037
- name: z140.string(),
4038
- avatar: z140.string().optional(),
4039
- nickname: z140.string().optional(),
3995
+ designSystemName: z138.string().optional(),
3996
+ defaultDestination: z138.string().optional(),
3997
+ figmaUrl: z138.string().optional(),
3998
+ isPageDraftOnboardingFinished: z138.boolean().optional(),
3999
+ isApprovalsOnboardingFinished: z138.boolean().optional()
4000
+ });
4001
+ var UserProfile = z138.object({
4002
+ name: z138.string(),
4003
+ avatar: z138.string().optional(),
4004
+ nickname: z138.string().optional(),
4040
4005
  onboarding: UserOnboarding.optional()
4041
4006
  });
4042
4007
  var UserProfileUpdate = UserProfile.partial().omit({
4043
4008
  avatar: true
4044
4009
  });
4045
- var UserTest = z141.object({
4046
- id: z141.string(),
4047
- email: z141.string()
4048
- });
4049
- var User = z142.object({
4050
- id: z142.string(),
4051
- email: z142.string(),
4052
- emailVerified: z142.boolean(),
4053
- createdAt: z142.coerce.date(),
4054
- trialExpiresAt: z142.coerce.date().optional(),
4010
+ var UserTest = z139.object({
4011
+ id: z139.string(),
4012
+ email: z139.string()
4013
+ });
4014
+ var User = z140.object({
4015
+ id: z140.string(),
4016
+ email: z140.string(),
4017
+ emailVerified: z140.boolean(),
4018
+ createdAt: z140.coerce.date(),
4019
+ trialExpiresAt: z140.coerce.date().optional(),
4055
4020
  profile: UserProfile,
4056
4021
  linkedIntegrations: UserLinkedIntegrations.optional(),
4057
- loggedOutAt: z142.coerce.date().optional(),
4058
- isProtected: z142.boolean()
4059
- });
4060
- var IntegrationDesignSystem = z143.object({
4061
- designSystemId: z143.string(),
4062
- brandId: z143.string(),
4063
- title: z143.string().optional(),
4064
- userId: z143.string().optional(),
4065
- date: z143.coerce.date().optional()
4066
- });
4067
- var IntegrationCredentialsType = z143.enum(["OAuth2", "PAT", "GithubApp"]);
4068
- var IntegrationCredentialsState = z143.enum(["Active", "Inactive"]);
4069
- var IntegrationCredentialsProfile = z143.object({
4070
- id: nullishToOptional(z143.string()),
4071
- email: nullishToOptional(z143.string()),
4072
- handle: nullishToOptional(z143.string()),
4073
- type: nullishToOptional(z143.string()),
4074
- avatarUrl: nullishToOptional(z143.string()),
4075
- organization: nullishToOptional(z143.string()),
4076
- collection: nullishToOptional(z143.string())
4077
- });
4078
- var IntegrationCredentials = z143.object({
4079
- id: z143.string(),
4022
+ loggedOutAt: z140.coerce.date().optional(),
4023
+ isProtected: z140.boolean()
4024
+ });
4025
+ var IntegrationDesignSystem = z141.object({
4026
+ designSystemId: z141.string(),
4027
+ brandId: z141.string(),
4028
+ title: z141.string().optional(),
4029
+ userId: z141.string().optional(),
4030
+ date: z141.coerce.date().optional()
4031
+ });
4032
+ var IntegrationCredentialsType = z141.enum(["OAuth2", "PAT", "GithubApp"]);
4033
+ var IntegrationCredentialsState = z141.enum(["Active", "Inactive"]);
4034
+ var IntegrationCredentialsProfile = z141.object({
4035
+ id: nullishToOptional(z141.string()),
4036
+ email: nullishToOptional(z141.string()),
4037
+ handle: nullishToOptional(z141.string()),
4038
+ type: nullishToOptional(z141.string()),
4039
+ avatarUrl: nullishToOptional(z141.string()),
4040
+ organization: nullishToOptional(z141.string()),
4041
+ collection: nullishToOptional(z141.string())
4042
+ });
4043
+ var IntegrationCredentials = z141.object({
4044
+ id: z141.string(),
4080
4045
  type: IntegrationCredentialsType,
4081
- integrationId: z143.string(),
4082
- accessToken: z143.string(),
4083
- userId: z143.string(),
4084
- createdAt: z143.coerce.date(),
4085
- refreshToken: z143.string().optional(),
4086
- tokenName: z143.string().optional(),
4087
- expiresAt: z143.coerce.date().optional(),
4088
- refreshedAt: z143.coerce.date().optional(),
4089
- username: z143.string().optional(),
4090
- appInstallationId: z143.string().optional(),
4046
+ integrationId: z141.string(),
4047
+ accessToken: z141.string(),
4048
+ userId: z141.string(),
4049
+ createdAt: z141.coerce.date(),
4050
+ refreshToken: z141.string().optional(),
4051
+ tokenName: z141.string().optional(),
4052
+ expiresAt: z141.coerce.date().optional(),
4053
+ refreshedAt: z141.coerce.date().optional(),
4054
+ username: z141.string().optional(),
4055
+ appInstallationId: z141.string().optional(),
4091
4056
  profile: IntegrationCredentialsProfile.optional(),
4092
- customUrl: z143.string().optional(),
4057
+ customUrl: z141.string().optional(),
4093
4058
  state: IntegrationCredentialsState,
4094
4059
  user: UserMinified.optional()
4095
4060
  });
4096
- var ExtendedIntegrationType = z143.enum([
4061
+ var ExtendedIntegrationType = z141.enum([
4097
4062
  "Figma",
4098
4063
  "Github",
4099
4064
  "Gitlab",
@@ -4104,26 +4069,26 @@ var ExtendedIntegrationType = z143.enum([
4104
4069
  ]);
4105
4070
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4106
4071
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4107
- var Integration = z143.object({
4108
- id: z143.string(),
4109
- workspaceId: z143.string(),
4072
+ var Integration = z141.object({
4073
+ id: z141.string(),
4074
+ workspaceId: z141.string(),
4110
4075
  type: IntegrationType,
4111
- createdAt: z143.coerce.date(),
4112
- integrationCredentials: z143.array(IntegrationCredentials).optional()
4113
- });
4114
- var IntegrationToken = z143.object({
4115
- access_token: z143.string(),
4116
- refresh_token: z143.string().optional(),
4117
- expires_in: z143.union([z143.number().optional(), z143.string().optional()]),
4118
- token_type: z143.string().optional(),
4119
- token_name: z143.string().optional(),
4120
- token_azure_organization_name: z143.string().optional(),
4076
+ createdAt: z141.coerce.date(),
4077
+ integrationCredentials: z141.array(IntegrationCredentials).optional()
4078
+ });
4079
+ var IntegrationToken = z141.object({
4080
+ access_token: z141.string(),
4081
+ refresh_token: z141.string().optional(),
4082
+ expires_in: z141.union([z141.number().optional(), z141.string().optional()]),
4083
+ token_type: z141.string().optional(),
4084
+ token_name: z141.string().optional(),
4085
+ token_azure_organization_name: z141.string().optional(),
4121
4086
  // Azure Cloud PAT only
4122
- token_azure_collection_name: z143.string().optional(),
4087
+ token_azure_collection_name: z141.string().optional(),
4123
4088
  // Azure Server PAT only
4124
- token_bitbucket_username: z143.string().optional(),
4089
+ token_bitbucket_username: z141.string().optional(),
4125
4090
  // Bitbucket only
4126
- custom_url: z143.string().optional().transform((value) => {
4091
+ custom_url: z141.string().optional().transform((value) => {
4127
4092
  if (!value?.trim())
4128
4093
  return void 0;
4129
4094
  return formatCustomUrl(value);
@@ -4159,158 +4124,158 @@ function formatCustomUrl(url) {
4159
4124
  }
4160
4125
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
4161
4126
  }
4162
- var NpmRegistryAuthType = z144.enum(["Basic", "Bearer", "None", "Custom"]);
4163
- var NpmRegistryType = z144.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4164
- var NpmRegistryBasicAuthConfig = z144.object({
4165
- authType: z144.literal(NpmRegistryAuthType.Enum.Basic),
4166
- username: z144.string(),
4167
- password: z144.string()
4127
+ var NpmRegistryAuthType = z142.enum(["Basic", "Bearer", "None", "Custom"]);
4128
+ var NpmRegistryType = z142.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4129
+ var NpmRegistryBasicAuthConfig = z142.object({
4130
+ authType: z142.literal(NpmRegistryAuthType.Enum.Basic),
4131
+ username: z142.string(),
4132
+ password: z142.string()
4168
4133
  });
4169
- var NpmRegistryBearerAuthConfig = z144.object({
4170
- authType: z144.literal(NpmRegistryAuthType.Enum.Bearer),
4171
- accessToken: z144.string()
4134
+ var NpmRegistryBearerAuthConfig = z142.object({
4135
+ authType: z142.literal(NpmRegistryAuthType.Enum.Bearer),
4136
+ accessToken: z142.string()
4172
4137
  });
4173
- var NpmRegistryNoAuthConfig = z144.object({
4174
- authType: z144.literal(NpmRegistryAuthType.Enum.None)
4138
+ var NpmRegistryNoAuthConfig = z142.object({
4139
+ authType: z142.literal(NpmRegistryAuthType.Enum.None)
4175
4140
  });
4176
- var NpmRegistrCustomAuthConfig = z144.object({
4177
- authType: z144.literal(NpmRegistryAuthType.Enum.Custom),
4178
- authHeaderName: z144.string(),
4179
- authHeaderValue: z144.string()
4141
+ var NpmRegistrCustomAuthConfig = z142.object({
4142
+ authType: z142.literal(NpmRegistryAuthType.Enum.Custom),
4143
+ authHeaderName: z142.string(),
4144
+ authHeaderValue: z142.string()
4180
4145
  });
4181
- var NpmRegistryAuthConfig = z144.discriminatedUnion("authType", [
4146
+ var NpmRegistryAuthConfig = z142.discriminatedUnion("authType", [
4182
4147
  NpmRegistryBasicAuthConfig,
4183
4148
  NpmRegistryBearerAuthConfig,
4184
4149
  NpmRegistryNoAuthConfig,
4185
4150
  NpmRegistrCustomAuthConfig
4186
4151
  ]);
4187
- var NpmRegistryConfigBase = z144.object({
4152
+ var NpmRegistryConfigBase = z142.object({
4188
4153
  registryType: NpmRegistryType,
4189
- enabledScopes: z144.array(z144.string()),
4190
- customRegistryUrl: z144.string().optional(),
4191
- bypassProxy: z144.boolean().default(false),
4192
- npmProxyRegistryConfigId: z144.string().optional(),
4193
- npmProxyVersion: z144.number().optional()
4154
+ enabledScopes: z142.array(z142.string()),
4155
+ customRegistryUrl: z142.string().optional(),
4156
+ bypassProxy: z142.boolean().default(false),
4157
+ npmProxyRegistryConfigId: z142.string().optional(),
4158
+ npmProxyVersion: z142.number().optional()
4194
4159
  });
4195
4160
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4196
- var SsoProvider = z145.object({
4197
- providerId: z145.string(),
4198
- defaultAutoInviteValue: z145.boolean(),
4199
- autoInviteDomains: z145.record(z145.string(), z145.boolean()),
4200
- skipDocsSupernovaLogin: z145.boolean(),
4201
- areInvitesDisabled: z145.boolean(),
4202
- isTestMode: z145.boolean(),
4203
- emailDomains: z145.array(z145.string()),
4204
- metadataXml: z145.string().nullish()
4161
+ var SsoProvider = z143.object({
4162
+ providerId: z143.string(),
4163
+ defaultAutoInviteValue: z143.boolean(),
4164
+ autoInviteDomains: z143.record(z143.string(), z143.boolean()),
4165
+ skipDocsSupernovaLogin: z143.boolean(),
4166
+ areInvitesDisabled: z143.boolean(),
4167
+ isTestMode: z143.boolean(),
4168
+ emailDomains: z143.array(z143.string()),
4169
+ metadataXml: z143.string().nullish()
4205
4170
  });
4206
4171
  var isValidCIDR = (value) => {
4207
4172
  return IPCIDR.isValidAddress(value);
4208
4173
  };
4209
- var WorkspaceIpWhitelistEntry = z146.object({
4210
- isEnabled: z146.boolean(),
4211
- name: z146.string(),
4212
- range: z146.string().refine(isValidCIDR, {
4174
+ var WorkspaceIpWhitelistEntry = z144.object({
4175
+ isEnabled: z144.boolean(),
4176
+ name: z144.string(),
4177
+ range: z144.string().refine(isValidCIDR, {
4213
4178
  message: "Invalid IP CIDR"
4214
4179
  })
4215
4180
  });
4216
- var WorkspaceIpSettings = z146.object({
4217
- isEnabledForCloud: z146.boolean(),
4218
- isEnabledForDocs: z146.boolean(),
4219
- entries: z146.array(WorkspaceIpWhitelistEntry)
4181
+ var WorkspaceIpSettings = z144.object({
4182
+ isEnabledForCloud: z144.boolean(),
4183
+ isEnabledForDocs: z144.boolean(),
4184
+ entries: z144.array(WorkspaceIpWhitelistEntry)
4220
4185
  });
4221
- var WorkspaceProfile = z146.object({
4222
- name: z146.string(),
4223
- handle: z146.string(),
4224
- color: z146.string(),
4225
- avatar: nullishToOptional(z146.string()),
4186
+ var WorkspaceProfile = z144.object({
4187
+ name: z144.string(),
4188
+ handle: z144.string(),
4189
+ color: z144.string(),
4190
+ avatar: nullishToOptional(z144.string()),
4226
4191
  billingDetails: nullishToOptional(BillingDetails)
4227
4192
  });
4228
4193
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4229
4194
  avatar: true
4230
4195
  });
4231
- var Workspace = z146.object({
4232
- id: z146.string(),
4196
+ var Workspace = z144.object({
4197
+ id: z144.string(),
4233
4198
  profile: WorkspaceProfile,
4234
4199
  subscription: Subscription,
4235
4200
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4236
4201
  sso: nullishToOptional(SsoProvider),
4237
4202
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4238
4203
  });
4239
- var WorkspaceWithDesignSystems = z146.object({
4204
+ var WorkspaceWithDesignSystems = z144.object({
4240
4205
  workspace: Workspace,
4241
- designSystems: z146.array(DesignSystem)
4206
+ designSystems: z144.array(DesignSystem)
4242
4207
  });
4243
- var WorkspaceDump = z147.object({
4208
+ var WorkspaceDump = z145.object({
4244
4209
  workspace: Workspace,
4245
4210
  designSystems: DesignSystemDump.array(),
4246
4211
  codeIntegration: CodeIntegrationDump,
4247
4212
  integrations: Integration.array()
4248
4213
  });
4249
- var UserDump = z148.object({
4214
+ var UserDump = z146.object({
4250
4215
  user: User,
4251
4216
  workspaces: WorkspaceDump.array()
4252
4217
  });
4253
- var NpmProxyToken = z149.object({
4254
- access: z149.string(),
4255
- expiresAt: z149.number()
4218
+ var NpmProxyToken = z147.object({
4219
+ access: z147.string(),
4220
+ expiresAt: z147.number()
4256
4221
  });
4257
- var SessionData = z149.object({
4258
- returnToUrl: z149.string().optional(),
4222
+ var SessionData = z147.object({
4223
+ returnToUrl: z147.string().optional(),
4259
4224
  npmProxyToken: NpmProxyToken.optional()
4260
4225
  });
4261
- var Session = z149.object({
4262
- id: z149.string(),
4263
- expiresAt: z149.coerce.date(),
4264
- userId: z149.string().nullable(),
4226
+ var Session = z147.object({
4227
+ id: z147.string(),
4228
+ expiresAt: z147.coerce.date(),
4229
+ userId: z147.string().nullable(),
4265
4230
  data: SessionData
4266
4231
  });
4267
- var AuthTokens = z149.object({
4268
- access: z149.string(),
4269
- refresh: z149.string()
4232
+ var AuthTokens = z147.object({
4233
+ access: z147.string(),
4234
+ refresh: z147.string()
4270
4235
  });
4271
- var UserSession = z149.object({
4236
+ var UserSession = z147.object({
4272
4237
  session: Session,
4273
4238
  user: User.nullable()
4274
4239
  });
4275
- var EventDataSourceImported = z150.object({
4276
- type: z150.literal("DataSourceImported"),
4277
- workspaceId: z150.string(),
4278
- designSystemId: z150.string()
4279
- });
4280
- var EventVersionReleased = z151.object({
4281
- type: z151.literal("DesignSystemVersionReleased"),
4282
- workspaceId: z151.string(),
4283
- designSystemId: z151.string(),
4284
- versionId: z151.string()
4285
- });
4286
- var Event = z152.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4287
- var ExportJobDocumentationContext = z153.object({
4288
- isSingleVersionDocs: z153.boolean(),
4289
- versionSlug: z153.string(),
4240
+ var EventDataSourceImported = z148.object({
4241
+ type: z148.literal("DataSourceImported"),
4242
+ workspaceId: z148.string(),
4243
+ designSystemId: z148.string()
4244
+ });
4245
+ var EventVersionReleased = z149.object({
4246
+ type: z149.literal("DesignSystemVersionReleased"),
4247
+ workspaceId: z149.string(),
4248
+ designSystemId: z149.string(),
4249
+ versionId: z149.string()
4250
+ });
4251
+ var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4252
+ var ExportJobDocumentationContext = z151.object({
4253
+ isSingleVersionDocs: z151.boolean(),
4254
+ versionSlug: z151.string(),
4290
4255
  environment: PublishedDocEnvironment
4291
4256
  });
4292
- var ExportJobContext = z153.object({
4293
- apiUrl: z153.string(),
4294
- accessToken: z153.string(),
4295
- designSystemId: z153.string(),
4296
- designSystemName: z153.string(),
4297
- exporterId: z153.string(),
4298
- versionId: z153.string(),
4299
- brandId: z153.string().optional(),
4300
- themeId: z153.string().optional(),
4301
- themePersistentIds: z153.string().array().optional(),
4302
- exporterName: z153.string(),
4303
- exporterPackageUrl: z153.string(),
4257
+ var ExportJobContext = z151.object({
4258
+ apiUrl: z151.string(),
4259
+ accessToken: z151.string(),
4260
+ designSystemId: z151.string(),
4261
+ designSystemName: z151.string(),
4262
+ exporterId: z151.string(),
4263
+ versionId: z151.string(),
4264
+ brandId: z151.string().optional(),
4265
+ themeId: z151.string().optional(),
4266
+ themePersistentIds: z151.string().array().optional(),
4267
+ exporterName: z151.string(),
4268
+ exporterPackageUrl: z151.string(),
4304
4269
  exporterPropertyValues: ExporterPropertyValue.array(),
4305
4270
  documentation: ExportJobDocumentationContext.optional()
4306
4271
  });
4307
- var ExporterFunctionPayload = z154.object({
4308
- exportJobId: z154.string(),
4309
- exportContextId: z154.string(),
4310
- designSystemId: z154.string(),
4311
- workspaceId: z154.string()
4272
+ var ExporterFunctionPayload = z152.object({
4273
+ exportJobId: z152.string(),
4274
+ exportContextId: z152.string(),
4275
+ designSystemId: z152.string(),
4276
+ workspaceId: z152.string()
4312
4277
  });
4313
- var ExportJobDestinationType = z155.enum([
4278
+ var ExportJobDestinationType = z153.enum([
4314
4279
  "s3",
4315
4280
  "webhookUrl",
4316
4281
  "github",
@@ -4319,30 +4284,30 @@ var ExportJobDestinationType = z155.enum([
4319
4284
  "gitlab",
4320
4285
  "bitbucket"
4321
4286
  ]);
4322
- var ExportJobStatus = z155.enum(["InProgress", "Success", "Failed", "Timeout"]);
4323
- var ExportJobLogEntryType = z155.enum(["success", "info", "warning", "error", "user"]);
4324
- var ExportJobLogEntry = z155.object({
4325
- id: z155.string().optional(),
4326
- time: z155.coerce.date(),
4287
+ var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
4288
+ var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
4289
+ var ExportJobLogEntry = z153.object({
4290
+ id: z153.string().optional(),
4291
+ time: z153.coerce.date(),
4327
4292
  type: ExportJobLogEntryType,
4328
- message: z155.string()
4293
+ message: z153.string()
4329
4294
  });
4330
- var ExportJobPullRequestDestinationResult = z155.object({
4331
- pullRequestUrl: z155.string()
4295
+ var ExportJobPullRequestDestinationResult = z153.object({
4296
+ pullRequestUrl: z153.string()
4332
4297
  });
4333
- var ExportJobS3DestinationResult = z155.object({
4334
- bucket: z155.string(),
4335
- urlPrefix: z155.string().optional(),
4336
- path: z155.string(),
4337
- files: z155.array(z155.string()),
4338
- url: nullishToOptional(z155.string()),
4339
- urls: nullishToOptional(z155.string().array())
4298
+ var ExportJobS3DestinationResult = z153.object({
4299
+ bucket: z153.string(),
4300
+ urlPrefix: z153.string().optional(),
4301
+ path: z153.string(),
4302
+ files: z153.array(z153.string()),
4303
+ url: nullishToOptional(z153.string()),
4304
+ urls: nullishToOptional(z153.string().array())
4340
4305
  });
4341
- var ExportJobDocsDestinationResult = z155.object({
4342
- url: z155.string()
4306
+ var ExportJobDocsDestinationResult = z153.object({
4307
+ url: z153.string()
4343
4308
  });
4344
- var ExportJobResult = z155.object({
4345
- error: z155.string().optional(),
4309
+ var ExportJobResult = z153.object({
4310
+ error: z153.string().optional(),
4346
4311
  s3: nullishToOptional(ExportJobS3DestinationResult),
4347
4312
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4348
4313
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4351,22 +4316,22 @@ var ExportJobResult = z155.object({
4351
4316
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4352
4317
  logs: nullishToOptional(ExportJobLogEntry.array())
4353
4318
  });
4354
- var ExportJob = z155.object({
4355
- id: z155.string(),
4356
- createdAt: z155.coerce.date(),
4357
- finishedAt: z155.coerce.date().optional(),
4358
- designSystemId: z155.string(),
4359
- designSystemVersionId: z155.string(),
4360
- workspaceId: z155.string(),
4361
- scheduleId: z155.string().nullish(),
4362
- exporterId: z155.string(),
4363
- brandId: z155.string().optional(),
4364
- themeId: z155.string().optional(),
4365
- themePersistentIds: z155.string().array().optional(),
4366
- estimatedExecutionTime: z155.number().optional(),
4319
+ var ExportJob = z153.object({
4320
+ id: z153.string(),
4321
+ createdAt: z153.coerce.date(),
4322
+ finishedAt: z153.coerce.date().optional(),
4323
+ designSystemId: z153.string(),
4324
+ designSystemVersionId: z153.string(),
4325
+ workspaceId: z153.string(),
4326
+ scheduleId: z153.string().nullish(),
4327
+ exporterId: z153.string(),
4328
+ brandId: z153.string().optional(),
4329
+ themeId: z153.string().optional(),
4330
+ themePersistentIds: z153.string().array().optional(),
4331
+ estimatedExecutionTime: z153.number().optional(),
4367
4332
  status: ExportJobStatus,
4368
4333
  result: ExportJobResult.optional(),
4369
- createdByUserId: z155.string().optional(),
4334
+ createdByUserId: z153.string().optional(),
4370
4335
  // Destinations
4371
4336
  ...ExportDestinationsMap.shape
4372
4337
  });
@@ -4380,24 +4345,24 @@ var ExportJobFindByFilter = ExportJob.pick({
4380
4345
  themeId: true,
4381
4346
  brandId: true
4382
4347
  }).extend({
4383
- destinations: z155.array(ExportJobDestinationType),
4348
+ destinations: z153.array(ExportJobDestinationType),
4384
4349
  docsEnvironment: PublishedDocEnvironment
4385
4350
  }).partial();
4386
- var ExporterWorkspaceMembershipRole = z156.enum(["Owner", "OwnerArchived", "User"]);
4387
- var ExporterWorkspaceMembership = z157.object({
4388
- id: z157.string(),
4389
- workspaceId: z157.string(),
4390
- exporterId: z157.string(),
4351
+ var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
4352
+ var ExporterWorkspaceMembership = z155.object({
4353
+ id: z155.string(),
4354
+ workspaceId: z155.string(),
4355
+ exporterId: z155.string(),
4391
4356
  role: ExporterWorkspaceMembershipRole
4392
4357
  });
4393
- var FlaggedFeature = z158.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4394
- var FeatureFlagMap = z158.record(FlaggedFeature, z158.boolean());
4395
- var FeatureFlag = z158.object({
4396
- id: z158.string(),
4358
+ var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4359
+ var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
4360
+ var FeatureFlag = z156.object({
4361
+ id: z156.string(),
4397
4362
  feature: FlaggedFeature,
4398
- createdAt: z158.coerce.date(),
4399
- enabled: z158.boolean(),
4400
- designSystemId: z158.string().optional()
4363
+ createdAt: z156.coerce.date(),
4364
+ enabled: z156.boolean(),
4365
+ designSystemId: z156.string().optional()
4401
4366
  });
4402
4367
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4403
4368
  OAuthProviderNames2["Figma"] = "figma";
@@ -4407,173 +4372,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4407
4372
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4408
4373
  return OAuthProviderNames2;
4409
4374
  })(OAuthProviderNames || {});
4410
- var OAuthProviderSchema = z159.nativeEnum(OAuthProviderNames);
4375
+ var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
4411
4376
  var OAuthProvider = OAuthProviderSchema.enum;
4412
- var ExternalOAuthRequest = z160.object({
4413
- id: z160.string(),
4377
+ var ExternalOAuthRequest = z158.object({
4378
+ id: z158.string(),
4414
4379
  provider: OAuthProviderSchema,
4415
- userId: z160.string(),
4416
- state: z160.string(),
4417
- createdAt: z160.coerce.date()
4380
+ userId: z158.string(),
4381
+ state: z158.string(),
4382
+ createdAt: z158.coerce.date()
4418
4383
  });
4419
- var GitObjectsQuery = z161.object({
4420
- organization: z161.string().optional(),
4384
+ var GitObjectsQuery = z159.object({
4385
+ organization: z159.string().optional(),
4421
4386
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4422
- project: z161.string().optional(),
4387
+ project: z159.string().optional(),
4423
4388
  // Only for Bitbucket and Azure
4424
- repository: z161.string().optional(),
4389
+ repository: z159.string().optional(),
4425
4390
  // For all providers. For Gitlab, it's called "project".
4426
- branch: z161.string().optional(),
4391
+ branch: z159.string().optional(),
4427
4392
  // For all providers.
4428
- user: z161.string().optional()
4393
+ user: z159.string().optional()
4429
4394
  // Gitlab user
4430
4395
  });
4431
- var GitOrganization = z161.object({
4432
- id: z161.string(),
4433
- name: z161.string(),
4434
- url: z161.string(),
4435
- slug: z161.string()
4436
- });
4437
- var GitProject = z161.object({
4438
- id: z161.string(),
4439
- name: z161.string(),
4440
- url: z161.string(),
4441
- slug: z161.string()
4442
- });
4443
- var GitRepository = z161.object({
4444
- id: z161.string(),
4445
- name: z161.string(),
4446
- url: z161.string(),
4447
- slug: z161.string(),
4396
+ var GitOrganization = z159.object({
4397
+ id: z159.string(),
4398
+ name: z159.string(),
4399
+ url: z159.string(),
4400
+ slug: z159.string()
4401
+ });
4402
+ var GitProject = z159.object({
4403
+ id: z159.string(),
4404
+ name: z159.string(),
4405
+ url: z159.string(),
4406
+ slug: z159.string()
4407
+ });
4408
+ var GitRepository = z159.object({
4409
+ id: z159.string(),
4410
+ name: z159.string(),
4411
+ url: z159.string(),
4412
+ slug: z159.string(),
4448
4413
  /**
4449
4414
  * Can be undefined when:
4450
4415
  * - there are no branches in the repository yet
4451
4416
  * - Git provider doesn't expose this information on a repository via their API
4452
4417
  */
4453
- defaultBranch: z161.string().optional()
4418
+ defaultBranch: z159.string().optional()
4454
4419
  });
4455
- var GitBranch = z161.object({
4456
- name: z161.string(),
4457
- lastCommitId: z161.string()
4420
+ var GitBranch = z159.object({
4421
+ name: z159.string(),
4422
+ lastCommitId: z159.string()
4458
4423
  });
4459
- var IntegrationTokenSchemaOld = z162.object({
4460
- id: z162.string(),
4424
+ var IntegrationTokenSchemaOld = z160.object({
4425
+ id: z160.string(),
4461
4426
  provider: OAuthProviderSchema,
4462
- scope: z162.string(),
4463
- userId: z162.string(),
4464
- accessToken: z162.string(),
4465
- refreshToken: z162.string(),
4466
- expiresAt: z162.coerce.date(),
4467
- externalUserId: z162.string().nullish()
4468
- });
4469
- var WorkspaceOAuthRequestSchema = z163.object({
4470
- id: z163.string(),
4471
- workspaceId: z163.string(),
4427
+ scope: z160.string(),
4428
+ userId: z160.string(),
4429
+ accessToken: z160.string(),
4430
+ refreshToken: z160.string(),
4431
+ expiresAt: z160.coerce.date(),
4432
+ externalUserId: z160.string().nullish()
4433
+ });
4434
+ var WorkspaceOAuthRequestSchema = z161.object({
4435
+ id: z161.string(),
4436
+ workspaceId: z161.string(),
4472
4437
  provider: OAuthProviderSchema,
4473
- userId: z163.string(),
4474
- createdAt: z163.coerce.date()
4438
+ userId: z161.string(),
4439
+ createdAt: z161.coerce.date()
4475
4440
  });
4476
- var AnyRecord = z164.record(z164.any());
4441
+ var AnyRecord = z162.record(z162.any());
4477
4442
  var NpmPackageVersionDist = AnyRecord.and(
4478
- z164.object({
4479
- tarball: z164.string()
4443
+ z162.object({
4444
+ tarball: z162.string()
4480
4445
  })
4481
4446
  );
4482
4447
  var NpmPackageVersion = AnyRecord.and(
4483
- z164.object({
4448
+ z162.object({
4484
4449
  dist: NpmPackageVersionDist
4485
4450
  })
4486
4451
  );
4487
4452
  var NpmPackage = AnyRecord.and(
4488
- z164.object({
4489
- _id: z164.string(),
4490
- name: z164.string(),
4453
+ z162.object({
4454
+ _id: z162.string(),
4455
+ name: z162.string(),
4491
4456
  // e.g. "latest": "1.2.3"
4492
- "dist-tags": z164.record(z164.string(), z164.string()),
4457
+ "dist-tags": z162.record(z162.string(), z162.string()),
4493
4458
  // "1.2.3": {...}
4494
- versions: z164.record(NpmPackageVersion)
4459
+ versions: z162.record(NpmPackageVersion)
4495
4460
  })
4496
4461
  );
4497
- var NpmProxyTokenPayload = z165.object({
4498
- npmProxyRegistryConfigId: z165.string()
4462
+ var NpmProxyTokenPayload = z163.object({
4463
+ npmProxyRegistryConfigId: z163.string()
4499
4464
  });
4500
- var WorkspaceRoleSchema = z166.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4465
+ var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4501
4466
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4502
4467
  var MAX_MEMBERS_COUNT = 100;
4503
- var UserInvite = z167.object({
4504
- email: z167.string().email().trim().transform((value) => value.toLowerCase()),
4468
+ var UserInvite = z165.object({
4469
+ email: z165.string().email().trim().transform((value) => value.toLowerCase()),
4505
4470
  role: WorkspaceRoleSchema
4506
4471
  });
4507
- var UserInvites = z167.array(UserInvite).max(MAX_MEMBERS_COUNT);
4508
- var WorkspaceConfigurationUpdate = z168.object({
4509
- id: z168.string(),
4472
+ var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
4473
+ var WorkspaceConfigurationUpdate = z166.object({
4474
+ id: z166.string(),
4510
4475
  ipWhitelist: WorkspaceIpSettings.optional(),
4511
4476
  sso: SsoProvider.optional(),
4512
4477
  npmRegistrySettings: NpmRegistryConfig.optional(),
4513
4478
  profile: WorkspaceProfileUpdate.optional()
4514
4479
  });
4515
- var WorkspaceContext = z169.object({
4516
- workspaceId: z169.string(),
4480
+ var WorkspaceContext = z167.object({
4481
+ workspaceId: z167.string(),
4517
4482
  product: ProductCodeSchema,
4518
4483
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4519
- publicDesignSystem: z169.boolean().optional()
4484
+ publicDesignSystem: z167.boolean().optional()
4520
4485
  });
4521
4486
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4522
4487
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4523
4488
  var HANDLE_MIN_LENGTH = 2;
4524
4489
  var HANDLE_MAX_LENGTH = 64;
4525
- var CreateWorkspaceInput = z170.object({
4526
- name: z170.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4490
+ var CreateWorkspaceInput = z168.object({
4491
+ name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4527
4492
  product: ProductCodeSchema,
4528
- priceId: z170.string(),
4529
- billingEmail: z170.string().email().optional(),
4530
- handle: z170.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4493
+ priceId: z168.string(),
4494
+ billingEmail: z168.string().email().optional(),
4495
+ handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4531
4496
  invites: UserInvites.optional(),
4532
- promoCode: z170.string().optional(),
4497
+ promoCode: z168.string().optional(),
4533
4498
  status: InternalStatusSchema.optional(),
4534
4499
  planInterval: BillingIntervalSchema.optional(),
4535
- seats: z170.number().optional(),
4536
- seatLimit: z170.number().optional(),
4500
+ seats: z168.number().optional(),
4501
+ seatLimit: z168.number().optional(),
4537
4502
  card: CardSchema.optional(),
4538
4503
  sso: SsoProvider.optional(),
4539
4504
  npmRegistrySettings: NpmRegistryConfig.optional(),
4540
4505
  ipWhitelist: WorkspaceIpSettings.optional()
4541
4506
  });
4542
- var WorkspaceInvitation = z171.object({
4543
- id: z171.string(),
4544
- email: z171.string().email(),
4545
- createdAt: z171.coerce.date(),
4546
- resentAt: z171.coerce.date().nullish(),
4547
- role: z171.nativeEnum(WorkspaceRole),
4548
- workspaceId: z171.string(),
4549
- invitedBy: z171.string()
4550
- });
4551
- var WorkspaceMembership = z172.object({
4552
- id: z172.string(),
4553
- userId: z172.string(),
4554
- workspaceId: z172.string(),
4555
- workspaceRole: z172.nativeEnum(WorkspaceRole),
4507
+ var WorkspaceInvitation = z169.object({
4508
+ id: z169.string(),
4509
+ email: z169.string().email(),
4510
+ createdAt: z169.coerce.date(),
4511
+ resentAt: z169.coerce.date().nullish(),
4512
+ role: z169.nativeEnum(WorkspaceRole),
4513
+ workspaceId: z169.string(),
4514
+ invitedBy: z169.string()
4515
+ });
4516
+ var WorkspaceMembership = z170.object({
4517
+ id: z170.string(),
4518
+ userId: z170.string(),
4519
+ workspaceId: z170.string(),
4520
+ workspaceRole: z170.nativeEnum(WorkspaceRole),
4556
4521
  notificationSettings: UserNotificationSettings
4557
4522
  });
4558
- var UpdateMembershipRolesInput = z172.object({
4559
- members: z172.array(
4560
- z172.object({
4561
- userId: z172.string(),
4562
- role: z172.nativeEnum(WorkspaceRole)
4523
+ var UpdateMembershipRolesInput = z170.object({
4524
+ members: z170.array(
4525
+ z170.object({
4526
+ userId: z170.string(),
4527
+ role: z170.nativeEnum(WorkspaceRole)
4563
4528
  })
4564
4529
  )
4565
4530
  });
4566
- var PersonalAccessToken = z173.object({
4567
- id: z173.string(),
4568
- userId: z173.string(),
4569
- workspaceId: z173.string().optional(),
4531
+ var PersonalAccessToken = z171.object({
4532
+ id: z171.string(),
4533
+ userId: z171.string(),
4534
+ workspaceId: z171.string().optional(),
4570
4535
  workspaceRole: WorkspaceRoleSchema.optional(),
4571
- name: z173.string(),
4572
- hidden: z173.boolean(),
4573
- token: z173.string(),
4574
- scope: z173.string().optional(),
4575
- createdAt: z173.coerce.date(),
4576
- expireAt: z173.coerce.date().optional()
4536
+ name: z171.string(),
4537
+ hidden: z171.boolean(),
4538
+ token: z171.string(),
4539
+ scope: z171.string().optional(),
4540
+ createdAt: z171.coerce.date(),
4541
+ expireAt: z171.coerce.date().optional()
4577
4542
  });
4578
4543
 
4579
4544
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
@@ -4990,211 +4955,231 @@ function integrationCredentialToDto(credential) {
4990
4955
  }
4991
4956
 
4992
4957
  // src/api/dto/aux/pagination.ts
4993
- import { z as z174 } from "zod";
4994
- var DTOPagination = z174.object({
4995
- limit: z174.string().optional(),
4996
- offset: z174.string().optional()
4958
+ import { z as z172 } from "zod";
4959
+ var DTOPagination = z172.object({
4960
+ limit: z172.string().optional(),
4961
+ offset: z172.string().optional()
4997
4962
  });
4998
4963
 
4999
4964
  // src/api/dto/design-systems/brand.ts
5000
- import { z as z175 } from "zod";
5001
- var DTOBrand = z175.object({
5002
- id: z175.string(),
5003
- designSystemVersionId: z175.string(),
5004
- persistentId: z175.string(),
4965
+ import { z as z173 } from "zod";
4966
+ var DTOBrand = z173.object({
4967
+ id: z173.string(),
4968
+ designSystemVersionId: z173.string(),
4969
+ persistentId: z173.string(),
5005
4970
  meta: ObjectMeta
5006
4971
  });
5007
- var DTOBrandGetResponse = z175.object({ brand: DTOBrand });
5008
- var DTOBrandCreateResponse = z175.object({
4972
+ var DTOBrandGetResponse = z173.object({ brand: DTOBrand });
4973
+ var DTOBrandCreateResponse = z173.object({
5009
4974
  brand: DTOBrand
5010
4975
  });
5011
- var DTOBrandsListResponse = z175.object({ brands: z175.array(DTOBrand) });
4976
+ var DTOBrandsListResponse = z173.object({ brands: z173.array(DTOBrand) });
5012
4977
 
5013
4978
  // src/api/dto/design-systems/data-source.ts
5014
- import { z as z176 } from "zod";
5015
- var DTODataSourceFigmaFileVersion = z176.object({
5016
- id: z176.string(),
5017
- created_at: z176.coerce.date(),
5018
- label: z176.string(),
5019
- description: z176.string()
5020
- });
5021
- var DTODataSourceFigmaCloud = z176.object({
5022
- fileId: z176.string(),
4979
+ import { z as z174 } from "zod";
4980
+ var DTODataSourceFigmaFileVersion = z174.object({
4981
+ id: z174.string(),
4982
+ created_at: z174.coerce.date(),
4983
+ label: z174.string(),
4984
+ description: z174.string()
4985
+ });
4986
+ var DTODataSourceFigmaCloud = z174.object({
4987
+ fileId: z174.string(),
5023
4988
  state: DataSourceFigmaState,
5024
4989
  autoImportMode: DataSourceAutoImportMode,
5025
- fileThumbnailUrl: z176.string().optional(),
4990
+ fileThumbnailUrl: z174.string().optional(),
5026
4991
  lastImportResult: SourceImportSummary.nullish(),
5027
- lastImportedAt: z176.date().nullish(),
4992
+ lastImportedAt: z174.date().nullish(),
5028
4993
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5029
- lastUpdatesCheckedAt: z176.date().nullish(),
5030
- ownerId: z176.string(),
5031
- ownerUserName: z176.string().optional(),
5032
- preferredCredentialId: z176.string().optional(),
4994
+ lastUpdatesCheckedAt: z174.date().nullish(),
4995
+ ownerId: z174.string(),
4996
+ ownerUserName: z174.string().optional(),
4997
+ preferredCredentialId: z174.string().optional(),
5033
4998
  stats: DataSourceStats
5034
4999
  });
5035
- var DTODataSourceFigma = z176.object({
5036
- id: z176.string(),
5037
- type: z176.literal(DataSourceRemoteType.Enum.Figma),
5038
- fileName: z176.string(),
5000
+ var DTODataSourceFigma = z174.object({
5001
+ id: z174.string(),
5002
+ type: z174.literal(DataSourceRemoteType.Enum.Figma),
5003
+ fileName: z174.string(),
5039
5004
  scope: DataSourceFigmaScope,
5040
- brandId: z176.string(),
5041
- themeId: z176.string().nullish(),
5005
+ brandId: z174.string(),
5006
+ themeId: z174.string().nullish(),
5042
5007
  cloud: DTODataSourceFigmaCloud.nullish(),
5043
- tokenStudio: z176.literal(null),
5044
- upload: z176.literal(null),
5045
- figmaVariablesPlugin: z176.literal(null)
5046
- });
5047
- var DTODataSourceTokenStudio = z176.object({
5048
- id: z176.string(),
5049
- type: z176.literal(DataSourceRemoteType.Enum.TokenStudio),
5050
- fileName: z176.string(),
5051
- brandId: z176.string(),
5052
- themeId: z176.string().nullish(),
5053
- cloud: z176.literal(null),
5054
- tokenStudio: z176.object({
5055
- settings: z176.object({
5056
- dryRun: z176.boolean(),
5057
- verbose: z176.boolean(),
5058
- preciseCopy: z176.boolean()
5008
+ tokenStudio: z174.literal(null),
5009
+ upload: z174.literal(null),
5010
+ figmaVariablesPlugin: z174.literal(null)
5011
+ });
5012
+ var DTODataSourceTokenStudio = z174.object({
5013
+ id: z174.string(),
5014
+ type: z174.literal(DataSourceRemoteType.Enum.TokenStudio),
5015
+ fileName: z174.string(),
5016
+ brandId: z174.string(),
5017
+ themeId: z174.string().nullish(),
5018
+ cloud: z174.literal(null),
5019
+ tokenStudio: z174.object({
5020
+ settings: z174.object({
5021
+ dryRun: z174.boolean(),
5022
+ verbose: z174.boolean(),
5023
+ preciseCopy: z174.boolean()
5059
5024
  }),
5060
- connectionName: z176.string(),
5061
- lastImportedAt: z176.date(),
5062
- lastImportedResults: z176.array(
5063
- z176.object({
5064
- mapping: z176.object({
5065
- tokenSets: z176.array(z176.string()),
5066
- supernovaBrand: z176.string(),
5067
- supernovaTheme: z176.string().optional()
5025
+ connectionName: z174.string(),
5026
+ lastImportedAt: z174.date(),
5027
+ lastImportedResults: z174.array(
5028
+ z174.object({
5029
+ mapping: z174.object({
5030
+ tokenSets: z174.array(z174.string()),
5031
+ supernovaBrand: z174.string(),
5032
+ supernovaTheme: z174.string().optional()
5068
5033
  }),
5069
- isFailed: z176.boolean(),
5070
- tokensCreated: z176.number(),
5071
- tokensDeleted: z176.number(),
5072
- tokensUpdated: z176.number()
5034
+ isFailed: z174.boolean(),
5035
+ tokensCreated: z174.number(),
5036
+ tokensDeleted: z174.number(),
5037
+ tokensUpdated: z174.number()
5073
5038
  })
5074
5039
  )
5075
5040
  }),
5076
- upload: z176.literal(null),
5077
- figmaVariablesPlugin: z176.literal(null)
5078
- });
5079
- var DTODataSourceFigmaVariablesPlugin = z176.object({
5080
- id: z176.string(),
5081
- type: z176.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5082
- fileName: z176.string(),
5083
- brandId: z176.string(),
5084
- themeId: z176.literal(null),
5085
- cloud: z176.literal(null),
5086
- tokenStudio: z176.literal(null),
5087
- upload: z176.object({
5088
- remoteId: z176.string(),
5041
+ upload: z174.literal(null),
5042
+ figmaVariablesPlugin: z174.literal(null)
5043
+ });
5044
+ var DTODataSourceFigmaVariablesPlugin = z174.object({
5045
+ id: z174.string(),
5046
+ type: z174.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5047
+ fileName: z174.string(),
5048
+ brandId: z174.string(),
5049
+ themeId: z174.literal(null),
5050
+ cloud: z174.literal(null),
5051
+ tokenStudio: z174.literal(null),
5052
+ upload: z174.object({
5053
+ remoteId: z174.string(),
5089
5054
  remoteSourceType: DataSourceUploadRemoteSource,
5090
- lastImportedAt: z176.date().optional(),
5055
+ lastImportedAt: z174.date().optional(),
5091
5056
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5092
5057
  }),
5093
- figmaVariablesPlugin: z176.object({
5094
- fileId: z176.string(),
5095
- lastImportedAt: z176.date().optional(),
5058
+ figmaVariablesPlugin: z174.object({
5059
+ fileId: z174.string(),
5060
+ lastImportedAt: z174.date().optional(),
5096
5061
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5097
5062
  })
5098
5063
  });
5099
- var DTODataSource = z176.discriminatedUnion("type", [
5064
+ var DTODataSource = z174.discriminatedUnion("type", [
5100
5065
  DTODataSourceFigma,
5101
5066
  DTODataSourceFigmaVariablesPlugin,
5102
5067
  DTODataSourceTokenStudio
5103
5068
  ]);
5104
- var DTODataSourcesListResponse = z176.object({
5105
- sources: z176.array(DTODataSource)
5069
+ var DTODataSourcesListResponse = z174.object({
5070
+ sources: z174.array(DTODataSource)
5106
5071
  });
5107
- var DTODataSourceCreationResponse = z176.object({
5072
+ var DTODataSourceCreationResponse = z174.object({
5108
5073
  source: DTODataSource
5109
5074
  });
5110
5075
 
5111
5076
  // src/api/dto/design-systems/design-system.ts
5112
- import { z as z177 } from "zod";
5077
+ import { z as z175 } from "zod";
5113
5078
  var DTODesignSystem = DesignSystem.omit({
5114
5079
  name: true,
5115
5080
  description: true,
5116
5081
  docExporterId: true
5117
5082
  }).extend({
5118
5083
  meta: ObjectMeta,
5119
- docExporterId: z177.string(),
5120
- sources: z177.array(z177.any())
5084
+ docExporterId: z175.string(),
5085
+ sources: z175.array(z175.any())
5086
+ });
5087
+ var DTODesignSystemCreateResponse = z175.object({
5088
+ designSystem: DTODesignSystem
5089
+ });
5090
+ var DTODesignSystemCreateInput = z175.object({
5091
+ workspaceId: z175.string(),
5092
+ meta: ObjectMeta.optional(),
5093
+ name: z175.string().min(2).max(64).optional(),
5094
+ description: z175.string().max(1024).optional(),
5095
+ accessMode: DesignSystemAccessMode.optional(),
5096
+ inviteUserIds: z175.string().array().optional()
5121
5097
  });
5122
5098
 
5123
5099
  // src/api/dto/design-systems/elements-diff.ts
5124
- import { z as z178 } from "zod";
5125
- var DTODiffCountBase = z178.object({
5126
- created: z178.number(),
5127
- updated: z178.number(),
5128
- deleted: z178.number()
5100
+ import { z as z176 } from "zod";
5101
+ var DTODiffCountBase = z176.object({
5102
+ created: z176.number(),
5103
+ updated: z176.number(),
5104
+ deleted: z176.number()
5129
5105
  });
5130
- var DTODesignElementsDataDiffResponse = z178.object({
5106
+ var DTODesignElementsDataDiffResponse = z176.object({
5131
5107
  tokens: DTODiffCountBase,
5132
5108
  assets: DTODiffCountBase
5133
5109
  });
5134
5110
 
5135
5111
  // src/api/dto/design-systems/exporter-property.ts
5136
- import { z as z179 } from "zod";
5137
- var DTOExporterProperty = z179.any({});
5138
- var DTOExporterPropertyListResponse = z179.object({ items: z179.array(DTOExporterProperty) });
5112
+ import { z as z177 } from "zod";
5113
+ var DTOExporterProperty = z177.any({});
5114
+ var DTOExporterPropertyListResponse = z177.object({ items: z177.array(DTOExporterProperty) });
5139
5115
 
5140
5116
  // src/api/dto/design-systems/members.ts
5141
- import { z as z180 } from "zod";
5142
- var DTODesignSystemMember = z180.object({
5143
- userId: z180.string()
5117
+ import { z as z178 } from "zod";
5118
+ var DTODesignSystemMember = z178.object({
5119
+ userId: z178.string()
5144
5120
  });
5145
- var DTODesignSystemMemberListResponse = z180.object({
5121
+ var DTODesignSystemMemberListResponse = z178.object({
5146
5122
  members: DTODesignSystemMember.array()
5147
5123
  });
5148
- var DTODesignSystemMembersUpdateResponse = z180.object({
5149
- ok: z180.literal(true)
5124
+ var DTODesignSystemMembersUpdateResponse = z178.object({
5125
+ ok: z178.literal(true)
5150
5126
  });
5151
- var DTODesignSystemMembersUpdatePayload = z180.object({
5152
- inviteUserIds: z180.string().array(),
5153
- removeUserIds: z180.string().array()
5127
+ var DTODesignSystemMembersUpdatePayload = z178.object({
5128
+ inviteUserIds: z178.string().array(),
5129
+ removeUserIds: z178.string().array()
5154
5130
  });
5155
5131
 
5156
5132
  // src/api/dto/design-systems/version.ts
5157
- import { z as z190 } from "zod";
5133
+ import { z as z188 } from "zod";
5158
5134
 
5159
5135
  // src/api/payloads/design-systems/brand.ts
5160
- import { z as z181 } from "zod";
5161
- var DTOCreateBrandInput = z181.object({
5162
- persistentId: z181.string().uuid(),
5163
- meta: z181.object({
5164
- name: z181.string(),
5165
- description: z181.string()
5136
+ import { z as z179 } from "zod";
5137
+ var DTOCreateBrandInput = z179.object({
5138
+ persistentId: z179.string().uuid(),
5139
+ meta: z179.object({
5140
+ name: z179.string(),
5141
+ description: z179.string()
5166
5142
  })
5167
5143
  });
5168
5144
 
5169
5145
  // src/api/payloads/design-systems/update-design-system.ts
5170
- var DTODesignSystemUpdateInput = DesignSystemUpdateInput;
5146
+ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5147
+ id: true,
5148
+ workspaceId: true,
5149
+ createdAt: true,
5150
+ updatedAt: true,
5151
+ docSlug: true,
5152
+ docViewUrl: true
5153
+ }).extend({
5154
+ meta: ObjectMeta.partial().optional()
5155
+ });
5171
5156
 
5172
5157
  // src/api/payloads/design-systems/version.ts
5173
- import { z as z182 } from "zod";
5174
- var ObjectMeta2 = z182.object({
5175
- name: z182.string().max(150).optional(),
5176
- description: z182.string().max(2e3).optional()
5158
+ import { z as z180 } from "zod";
5159
+ var ObjectMeta2 = z180.object({
5160
+ name: z180.string().max(150).optional(),
5161
+ description: z180.string().max(2e3).optional()
5177
5162
  });
5178
5163
  function validateDesignSystemVersion(version) {
5179
5164
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5180
5165
  return urlCompliantRegex.test(version);
5181
5166
  }
5182
- var DTOCreateVersionInput = z182.object({
5167
+ var DTOCreateVersionInput = z180.object({
5183
5168
  meta: ObjectMeta2,
5184
- version: z182.string().refine(validateDesignSystemVersion, {
5169
+ version: z180.string().refine(validateDesignSystemVersion, {
5185
5170
  message: "Invalid semantic versioning format"
5186
5171
  }),
5187
- changeLog: z182.string().optional()
5172
+ changeLog: z180.string().optional()
5188
5173
  });
5189
- var DTOUpdateVersionInput = z182.object({
5174
+ var DTOUpdateVersionInput = z180.object({
5190
5175
  meta: ObjectMeta2,
5191
- version: z182.string(),
5176
+ version: z180.string(),
5192
5177
  // required for PUT, but not editable
5193
- changeLog: z182.string()
5178
+ changeLog: z180.string()
5194
5179
  });
5195
5180
 
5196
5181
  // src/api/payloads/documentation/block-definitions.ts
5197
- import { z as z183 } from "zod";
5182
+ import { z as z181 } from "zod";
5198
5183
 
5199
5184
  // src/api/dto/documentation/block-definition.ts
5200
5185
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5206,60 +5191,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5206
5191
  var DTOPageBlockDefinition = PageBlockDefinition;
5207
5192
 
5208
5193
  // src/api/payloads/documentation/block-definitions.ts
5209
- var DTOGetBlockDefinitionsOutput = z183.object({
5210
- definitions: z183.array(DTOPageBlockDefinition)
5194
+ var DTOGetBlockDefinitionsOutput = z181.object({
5195
+ definitions: z181.array(DTOPageBlockDefinition)
5211
5196
  });
5212
5197
 
5213
5198
  // src/api/payloads/documentation/design-data-doc-diff.ts
5214
- import { z as z184 } from "zod";
5215
- var DTODocumentationPublishTypeQueryParams = z184.object({
5216
- environment: z184.enum(["Live", "Preview"])
5199
+ import { z as z182 } from "zod";
5200
+ var DTODocumentationPublishTypeQueryParams = z182.object({
5201
+ environment: z182.enum(["Live", "Preview"])
5217
5202
  });
5218
5203
 
5219
5204
  // src/api/payloads/export/pipeline.ts
5220
- import { z as z185 } from "zod";
5221
- var DTOPipelineCreateBody = z185.object({
5222
- name: z185.string(),
5223
- exporterId: z185.string(),
5224
- designSystemId: z185.string(),
5225
- isEnabled: z185.boolean(),
5205
+ import { z as z183 } from "zod";
5206
+ var DTOPipelineCreateBody = z183.object({
5207
+ name: z183.string(),
5208
+ exporterId: z183.string(),
5209
+ designSystemId: z183.string(),
5210
+ isEnabled: z183.boolean(),
5226
5211
  eventType: PipelineEventType,
5227
- brandPersistentId: z185.string().optional(),
5228
- themePersistentId: z185.string().optional(),
5229
- themePersistentIds: z185.string().array().optional(),
5212
+ brandPersistentId: z183.string().optional(),
5213
+ themePersistentId: z183.string().optional(),
5214
+ themePersistentIds: z183.string().array().optional(),
5230
5215
  destination: PipelineDestinationType.optional(),
5231
5216
  gitQuery: GitObjectsQuery,
5232
- destinations: z185.object({
5217
+ destinations: z183.object({
5233
5218
  s3: ExporterDestinationS3.nullish(),
5234
5219
  azure: ExporterDestinationAzure.nullish(),
5235
5220
  bitbucket: ExporterDestinationBitbucket.nullish(),
5236
5221
  github: ExporterDestinationGithub.nullish(),
5237
5222
  gitlab: ExporterDestinationGitlab.nullish(),
5238
5223
  documentation: ExporterDestinationDocs.nullish(),
5239
- webhookUrl: z185.string().nullish()
5224
+ webhookUrl: z183.string().nullish()
5240
5225
  })
5241
5226
  });
5242
5227
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5243
- id: z185.string()
5228
+ id: z183.string()
5244
5229
  });
5245
- var DTOPipelineTriggerBody = z185.object({
5246
- designSystemVersionId: z185.string()
5230
+ var DTOPipelineTriggerBody = z183.object({
5231
+ designSystemVersionId: z183.string()
5247
5232
  });
5248
5233
 
5249
5234
  // src/api/payloads/liveblocks/auth.ts
5250
- import { z as z186 } from "zod";
5251
- var DTOLiveblocksAuthRequest = z186.object({
5252
- room: z186.string().optional()
5235
+ import { z as z184 } from "zod";
5236
+ var DTOLiveblocksAuthRequest = z184.object({
5237
+ room: z184.string().optional()
5253
5238
  });
5254
5239
 
5255
5240
  // src/api/payloads/users/notifications/notification-settings.ts
5256
- import { z as z187 } from "zod";
5257
- var DTOUpdateUserNotificationSettingsPayload = z187.object({
5241
+ import { z as z185 } from "zod";
5242
+ var DTOUpdateUserNotificationSettingsPayload = z185.object({
5258
5243
  notificationSettings: UserNotificationSettings
5259
5244
  });
5260
- var DTOUserNotificationSettingsResponse = z187.object({
5261
- userId: z187.string(),
5262
- workspaceId: z187.string(),
5245
+ var DTOUserNotificationSettingsResponse = z185.object({
5246
+ userId: z185.string(),
5247
+ workspaceId: z185.string(),
5263
5248
  notificationSettings: UserNotificationSettings
5264
5249
  });
5265
5250
 
@@ -5267,7 +5252,7 @@ var DTOUserNotificationSettingsResponse = z187.object({
5267
5252
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5268
5253
 
5269
5254
  // src/api/payloads/workspaces/workspace-configuration.ts
5270
- import { z as z188 } from "zod";
5255
+ import { z as z186 } from "zod";
5271
5256
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5272
5257
  function validateSsoPayload(ssoPayload) {
5273
5258
  const keys = [];
@@ -5290,21 +5275,21 @@ function validateSsoPayload(ssoPayload) {
5290
5275
  keys
5291
5276
  };
5292
5277
  }
5293
- var NpmRegistryInput = z188.object({
5294
- enabledScopes: z188.array(z188.string()),
5295
- customRegistryUrl: z188.string().optional(),
5296
- bypassProxy: z188.boolean().optional(),
5297
- npmProxyRegistryConfigId: z188.string().optional(),
5298
- npmProxyVersion: z188.number().optional(),
5299
- registryType: z188.string(),
5300
- authType: z188.string(),
5301
- authHeaderName: z188.string(),
5302
- authHeaderValue: z188.string(),
5303
- accessToken: z188.string(),
5304
- username: z188.string(),
5305
- password: z188.string()
5306
- });
5307
- var WorkspaceConfigurationPayload = z188.object({
5278
+ var NpmRegistryInput = z186.object({
5279
+ enabledScopes: z186.array(z186.string()),
5280
+ customRegistryUrl: z186.string().optional(),
5281
+ bypassProxy: z186.boolean().optional(),
5282
+ npmProxyRegistryConfigId: z186.string().optional(),
5283
+ npmProxyVersion: z186.number().optional(),
5284
+ registryType: z186.string(),
5285
+ authType: z186.string(),
5286
+ authHeaderName: z186.string(),
5287
+ authHeaderValue: z186.string(),
5288
+ accessToken: z186.string(),
5289
+ username: z186.string(),
5290
+ password: z186.string()
5291
+ });
5292
+ var WorkspaceConfigurationPayload = z186.object({
5308
5293
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5309
5294
  sso: SsoProvider.partial().optional(),
5310
5295
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5312,114 +5297,114 @@ var WorkspaceConfigurationPayload = z188.object({
5312
5297
  });
5313
5298
 
5314
5299
  // src/api/payloads/workspaces/workspace-integrations.ts
5315
- import { z as z189 } from "zod";
5316
- var DTOWorkspaceIntegrationOauthInput = z189.object({
5300
+ import { z as z187 } from "zod";
5301
+ var DTOWorkspaceIntegrationOauthInput = z187.object({
5317
5302
  type: IntegrationType
5318
5303
  });
5319
- var DTOWorkspaceIntegrationPATInput = z189.object({
5320
- userId: z189.string(),
5304
+ var DTOWorkspaceIntegrationPATInput = z187.object({
5305
+ userId: z187.string(),
5321
5306
  type: IntegrationType,
5322
5307
  token: IntegrationToken
5323
5308
  });
5324
- var DTOWorkspaceIntegrationGetGitObjectsInput = z189.object({
5325
- organization: z189.string().optional(),
5309
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z187.object({
5310
+ organization: z187.string().optional(),
5326
5311
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5327
- project: z189.string().optional(),
5312
+ project: z187.string().optional(),
5328
5313
  // Only for Bitbucket and Azure
5329
- repository: z189.string().optional(),
5314
+ repository: z187.string().optional(),
5330
5315
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5331
- branch: z189.string().optional(),
5316
+ branch: z187.string().optional(),
5332
5317
  // For all providers, useful for PR creations.
5333
- user: z189.string().optional()
5318
+ user: z187.string().optional()
5334
5319
  // Only for Gitlab User Repositories
5335
5320
  });
5336
5321
 
5337
5322
  // src/api/dto/design-systems/version.ts
5338
- var DTODesignSystemVersion = z190.object({
5339
- id: z190.string(),
5340
- createdAt: z190.date(),
5323
+ var DTODesignSystemVersion = z188.object({
5324
+ id: z188.string(),
5325
+ createdAt: z188.date(),
5341
5326
  meta: ObjectMeta,
5342
- version: z190.string(),
5343
- isReadonly: z190.boolean(),
5344
- changeLog: z190.string(),
5345
- designSystemId: z190.string()
5327
+ version: z188.string(),
5328
+ isReadonly: z188.boolean(),
5329
+ changeLog: z188.string(),
5330
+ designSystemId: z188.string()
5346
5331
  });
5347
- var DTODesignSystemVersionsListResponse = z190.object({
5348
- designSystemVersions: z190.array(DTODesignSystemVersion)
5332
+ var DTODesignSystemVersionsListResponse = z188.object({
5333
+ designSystemVersions: z188.array(DTODesignSystemVersion)
5349
5334
  });
5350
- var DTODesignSystemVersionGetResponse = z190.object({
5335
+ var DTODesignSystemVersionGetResponse = z188.object({
5351
5336
  designSystemVersion: DTODesignSystemVersion
5352
5337
  });
5353
- var DTODesignSystemVersionCreationResponse = z190.object({
5338
+ var DTODesignSystemVersionCreationResponse = z188.object({
5354
5339
  meta: ObjectMeta,
5355
- version: z190.string(),
5356
- changeLog: z190.string(),
5357
- isReadOnly: z190.boolean(),
5358
- designSystemId: z190.string(),
5359
- jobId: z190.string()
5360
- });
5361
- var VersionSQSPayload = z190.object({
5362
- jobId: z190.string(),
5363
- designSystemId: z190.string(),
5340
+ version: z188.string(),
5341
+ changeLog: z188.string(),
5342
+ isReadOnly: z188.boolean(),
5343
+ designSystemId: z188.string(),
5344
+ jobId: z188.string()
5345
+ });
5346
+ var VersionSQSPayload = z188.object({
5347
+ jobId: z188.string(),
5348
+ designSystemId: z188.string(),
5364
5349
  input: DTOCreateVersionInput
5365
5350
  });
5366
- var DTODesignSystemVersionJobsResponse = z190.object({
5367
- jobs: z190.array(VersionCreationJob)
5351
+ var DTODesignSystemVersionJobsResponse = z188.object({
5352
+ jobs: z188.array(VersionCreationJob)
5368
5353
  });
5369
- var DTODesignSystemVersionJobStatusResponse = z190.object({
5354
+ var DTODesignSystemVersionJobStatusResponse = z188.object({
5370
5355
  job: VersionCreationJob
5371
5356
  });
5372
5357
 
5373
5358
  // src/api/dto/design-systems/view.ts
5374
- import { z as z191 } from "zod";
5375
- var DTOElementViewColumnSharedAttributes = z191.object({
5376
- id: z191.string(),
5377
- persistentId: z191.string(),
5378
- width: z191.number()
5359
+ import { z as z189 } from "zod";
5360
+ var DTOElementViewColumnSharedAttributes = z189.object({
5361
+ id: z189.string(),
5362
+ persistentId: z189.string(),
5363
+ width: z189.number()
5379
5364
  });
5380
5365
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5381
- type: z191.literal("BaseProperty"),
5366
+ type: z189.literal("BaseProperty"),
5382
5367
  basePropertyType: ElementViewBaseColumnType
5383
5368
  });
5384
5369
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5385
- type: z191.literal("PropertyDefinition"),
5386
- propertyDefinitionId: z191.string()
5370
+ type: z189.literal("PropertyDefinition"),
5371
+ propertyDefinitionId: z189.string()
5387
5372
  });
5388
5373
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5389
- type: z191.literal("Theme"),
5390
- themeId: z191.string()
5374
+ type: z189.literal("Theme"),
5375
+ themeId: z189.string()
5391
5376
  });
5392
- var DTOElementViewColumn = z191.discriminatedUnion("type", [
5377
+ var DTOElementViewColumn = z189.discriminatedUnion("type", [
5393
5378
  DTOElementViewBasePropertyColumn,
5394
5379
  DTOElementViewPropertyDefinitionColumn,
5395
5380
  DTOElementViewThemeColumn
5396
5381
  ]);
5397
- var DTOElementView = z191.object({
5382
+ var DTOElementView = z189.object({
5398
5383
  meta: ObjectMeta,
5399
- persistentId: z191.string(),
5384
+ persistentId: z189.string(),
5400
5385
  targetElementType: ElementPropertyTargetType,
5401
- id: z191.string(),
5402
- isDefault: z191.boolean(),
5403
- columns: z191.array(DTOElementViewColumn)
5386
+ id: z189.string(),
5387
+ isDefault: z189.boolean(),
5388
+ columns: z189.array(DTOElementViewColumn)
5404
5389
  });
5405
- var DTOElementViewsListResponse = z191.object({
5406
- elementDataViews: z191.array(DTOElementView)
5390
+ var DTOElementViewsListResponse = z189.object({
5391
+ elementDataViews: z189.array(DTOElementView)
5407
5392
  });
5408
5393
 
5409
5394
  // src/api/dto/documentation/anchor.ts
5410
- import { z as z192 } from "zod";
5395
+ import { z as z190 } from "zod";
5411
5396
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5412
- var DTOGetDocumentationPageAnchorsResponse = z192.object({
5413
- anchors: z192.array(DTODocumentationPageAnchor)
5397
+ var DTOGetDocumentationPageAnchorsResponse = z190.object({
5398
+ anchors: z190.array(DTODocumentationPageAnchor)
5414
5399
  });
5415
5400
 
5416
5401
  // src/api/dto/documentation/approvals.ts
5417
- import { z as z193 } from "zod";
5402
+ import { z as z191 } from "zod";
5418
5403
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5419
- var DTODocumentationGroupApprovalState = z193.object({
5420
- persistentId: z193.string(),
5421
- groupId: z193.string(),
5422
- designSystemVersionId: z193.string(),
5404
+ var DTODocumentationGroupApprovalState = z191.object({
5405
+ persistentId: z191.string(),
5406
+ groupId: z191.string(),
5407
+ designSystemVersionId: z191.string(),
5423
5408
  approvalState: DocumentationPageApprovalState
5424
5409
  });
5425
5410
 
@@ -5427,68 +5412,68 @@ var DTODocumentationGroupApprovalState = z193.object({
5427
5412
  var DTOPageBlockItemV2 = PageBlockItemV2;
5428
5413
 
5429
5414
  // src/api/dto/documentation/documentation-page-snapshot.ts
5430
- import { z as z198 } from "zod";
5415
+ import { z as z196 } from "zod";
5431
5416
 
5432
5417
  // src/api/dto/elements/documentation/page-v2.ts
5433
- import { z as z197 } from "zod";
5418
+ import { z as z195 } from "zod";
5434
5419
 
5435
5420
  // src/api/dto/elements/documentation/draft-state.ts
5436
- import { z as z195 } from "zod";
5421
+ import { z as z193 } from "zod";
5437
5422
 
5438
5423
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5439
- import { z as z194 } from "zod";
5424
+ import { z as z192 } from "zod";
5440
5425
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5441
- var DTODocumentationItemConfigurationV2 = z194.object({
5442
- showSidebar: z194.boolean(),
5443
- isPrivate: z194.boolean(),
5444
- isHidden: z194.boolean(),
5426
+ var DTODocumentationItemConfigurationV2 = z192.object({
5427
+ showSidebar: z192.boolean(),
5428
+ isPrivate: z192.boolean(),
5429
+ isHidden: z192.boolean(),
5445
5430
  header: DTODocumentationItemHeaderV2
5446
5431
  });
5447
5432
 
5448
5433
  // src/api/dto/elements/documentation/draft-state.ts
5449
- var DTODocumentationDraftChangeType = z195.enum(["Created", "Updated", "Deleted"]);
5450
- var DTODocumentationDraftStateCreated = z195.object({
5451
- changeType: z195.literal(DTODocumentationDraftChangeType.enum.Created)
5452
- });
5453
- var DTODocumentationDraftStateUpdated = z195.object({
5454
- changeType: z195.literal(DTODocumentationDraftChangeType.enum.Updated),
5455
- changes: z195.object({
5456
- previousTitle: z195.string().optional(),
5434
+ var DTODocumentationDraftChangeType = z193.enum(["Created", "Updated", "Deleted"]);
5435
+ var DTODocumentationDraftStateCreated = z193.object({
5436
+ changeType: z193.literal(DTODocumentationDraftChangeType.enum.Created)
5437
+ });
5438
+ var DTODocumentationDraftStateUpdated = z193.object({
5439
+ changeType: z193.literal(DTODocumentationDraftChangeType.enum.Updated),
5440
+ changes: z193.object({
5441
+ previousTitle: z193.string().optional(),
5457
5442
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5458
- previousContentHash: z195.string().optional()
5443
+ previousContentHash: z193.string().optional()
5459
5444
  })
5460
5445
  });
5461
- var DTODocumentationDraftStateDeleted = z195.object({
5462
- changeType: z195.literal(DTODocumentationDraftChangeType.enum.Deleted),
5463
- deletedAt: z195.coerce.date(),
5464
- deletedByUserId: z195.string()
5446
+ var DTODocumentationDraftStateDeleted = z193.object({
5447
+ changeType: z193.literal(DTODocumentationDraftChangeType.enum.Deleted),
5448
+ deletedAt: z193.coerce.date(),
5449
+ deletedByUserId: z193.string()
5465
5450
  });
5466
- var DTODocumentationDraftState = z195.discriminatedUnion("changeType", [
5451
+ var DTODocumentationDraftState = z193.discriminatedUnion("changeType", [
5467
5452
  DTODocumentationDraftStateCreated,
5468
5453
  DTODocumentationDraftStateUpdated,
5469
5454
  DTODocumentationDraftStateDeleted
5470
5455
  ]);
5471
5456
 
5472
5457
  // src/api/dto/elements/documentation/metadata.ts
5473
- import { z as z196 } from "zod";
5474
- var DTODocumentationPublishMetadata = z196.object({
5475
- lastPublishedByUserId: z196.string(),
5476
- lastPublishedAt: z196.coerce.date()
5458
+ import { z as z194 } from "zod";
5459
+ var DTODocumentationPublishMetadata = z194.object({
5460
+ lastPublishedByUserId: z194.string(),
5461
+ lastPublishedAt: z194.coerce.date()
5477
5462
  });
5478
5463
 
5479
5464
  // src/api/dto/elements/documentation/page-v2.ts
5480
- var DTODocumentationPageV2 = z197.object({
5481
- id: z197.string(),
5482
- persistentId: z197.string(),
5483
- designSystemVersionId: z197.string(),
5484
- title: z197.string(),
5465
+ var DTODocumentationPageV2 = z195.object({
5466
+ id: z195.string(),
5467
+ persistentId: z195.string(),
5468
+ designSystemVersionId: z195.string(),
5469
+ title: z195.string(),
5485
5470
  configuration: DTODocumentationItemConfigurationV2,
5486
- shortPersistentId: z197.string(),
5487
- slug: z197.string().optional(),
5488
- userSlug: z197.string().optional(),
5489
- createdAt: z197.coerce.date(),
5490
- updatedAt: z197.coerce.date(),
5491
- path: z197.string(),
5471
+ shortPersistentId: z195.string(),
5472
+ slug: z195.string().optional(),
5473
+ userSlug: z195.string().optional(),
5474
+ createdAt: z195.coerce.date(),
5475
+ updatedAt: z195.coerce.date(),
5476
+ path: z195.string(),
5492
5477
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5493
5478
  draftState: DTODocumentationDraftState.optional(),
5494
5479
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5496,197 +5481,197 @@ var DTODocumentationPageV2 = z197.object({
5496
5481
  /** Defines the approval state of the documentation page */
5497
5482
  approvalState: DTODocumentationPageApprovalState.optional(),
5498
5483
  // Backward compatibility
5499
- type: z197.literal("Page")
5484
+ type: z195.literal("Page")
5500
5485
  });
5501
- var DTOCreateDocumentationPageInputV2 = z197.object({
5486
+ var DTOCreateDocumentationPageInputV2 = z195.object({
5502
5487
  // Identifier
5503
- persistentId: z197.string().uuid(),
5488
+ persistentId: z195.string().uuid(),
5504
5489
  // Page properties
5505
- title: z197.string(),
5490
+ title: z195.string(),
5506
5491
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5507
5492
  // Page placement properties
5508
- parentPersistentId: z197.string().uuid(),
5509
- afterPersistentId: z197.string().uuid().nullish()
5493
+ parentPersistentId: z195.string().uuid(),
5494
+ afterPersistentId: z195.string().uuid().nullish()
5510
5495
  });
5511
- var DTOUpdateDocumentationPageInputV2 = z197.object({
5496
+ var DTOUpdateDocumentationPageInputV2 = z195.object({
5512
5497
  // Identifier of the group to update
5513
- id: z197.string(),
5498
+ id: z195.string(),
5514
5499
  // Page properties
5515
- title: z197.string().optional(),
5500
+ title: z195.string().optional(),
5516
5501
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5517
5502
  });
5518
- var DTOMoveDocumentationPageInputV2 = z197.object({
5503
+ var DTOMoveDocumentationPageInputV2 = z195.object({
5519
5504
  // Identifier of the group to update
5520
- id: z197.string(),
5505
+ id: z195.string(),
5521
5506
  // Page placement properties
5522
- parentPersistentId: z197.string().uuid(),
5523
- afterPersistentId: z197.string().uuid().nullish()
5507
+ parentPersistentId: z195.string().uuid(),
5508
+ afterPersistentId: z195.string().uuid().nullish()
5524
5509
  });
5525
- var DTODuplicateDocumentationPageInputV2 = z197.object({
5510
+ var DTODuplicateDocumentationPageInputV2 = z195.object({
5526
5511
  // Identifier of the page to duplicate from
5527
- id: z197.string(),
5512
+ id: z195.string(),
5528
5513
  // New page persistent id
5529
- persistentId: z197.string().uuid(),
5514
+ persistentId: z195.string().uuid(),
5530
5515
  // Page placement properties
5531
- parentPersistentId: z197.string().uuid(),
5532
- afterPersistentId: z197.string().uuid().nullish()
5516
+ parentPersistentId: z195.string().uuid(),
5517
+ afterPersistentId: z195.string().uuid().nullish()
5533
5518
  });
5534
- var DTODeleteDocumentationPageInputV2 = z197.object({
5519
+ var DTODeleteDocumentationPageInputV2 = z195.object({
5535
5520
  // Identifier
5536
- id: z197.string()
5521
+ id: z195.string()
5537
5522
  });
5538
- var DTORestoreDocumentationPageInput = z197.object({
5539
- persistentId: z197.string(),
5540
- snapshotId: z197.string().optional()
5523
+ var DTORestoreDocumentationPageInput = z195.object({
5524
+ persistentId: z195.string(),
5525
+ snapshotId: z195.string().optional()
5541
5526
  });
5542
- var DTORestoreDocumentationGroupInput = z197.object({
5543
- persistentId: z197.string(),
5544
- snapshotId: z197.string().optional()
5527
+ var DTORestoreDocumentationGroupInput = z195.object({
5528
+ persistentId: z195.string(),
5529
+ snapshotId: z195.string().optional()
5545
5530
  });
5546
- var DTODocumentationPageApprovalStateChangeInput = z197.object({
5547
- persistentId: z197.string(),
5531
+ var DTODocumentationPageApprovalStateChangeInput = z195.object({
5532
+ persistentId: z195.string(),
5548
5533
  approvalState: DocumentationPageApprovalState.optional()
5549
5534
  });
5550
5535
 
5551
5536
  // src/api/dto/documentation/documentation-page-snapshot.ts
5552
- var DTODocumentationPageSnapshot = z198.object({
5553
- id: z198.string(),
5554
- designSystemVersionId: z198.string(),
5555
- createdAt: z198.string(),
5556
- updatedAt: z198.string(),
5537
+ var DTODocumentationPageSnapshot = z196.object({
5538
+ id: z196.string(),
5539
+ designSystemVersionId: z196.string(),
5540
+ createdAt: z196.string(),
5541
+ updatedAt: z196.string(),
5557
5542
  documentationPage: DTODocumentationPageV2,
5558
- pageContentHash: z198.string(),
5543
+ pageContentHash: z196.string(),
5559
5544
  reason: DesignElementSnapshotReason
5560
5545
  });
5561
5546
 
5562
5547
  // src/api/dto/documentation/link-preview.ts
5563
- import { z as z199 } from "zod";
5564
- var DTODocumentationLinkPreviewResponse = z199.object({
5548
+ import { z as z197 } from "zod";
5549
+ var DTODocumentationLinkPreviewResponse = z197.object({
5565
5550
  linkPreview: DocumentationLinkPreview
5566
5551
  });
5567
- var DTODocumentationLinkPreviewRequest = z199.object({
5568
- url: z199.string().optional(),
5569
- documentationItemPersistentId: z199.string().optional()
5552
+ var DTODocumentationLinkPreviewRequest = z197.object({
5553
+ url: z197.string().optional(),
5554
+ documentationItemPersistentId: z197.string().optional()
5570
5555
  });
5571
5556
 
5572
5557
  // src/api/dto/documentation/publish.ts
5573
- import { z as z203 } from "zod";
5558
+ import { z as z201 } from "zod";
5574
5559
 
5575
5560
  // src/api/dto/export/exporter.ts
5576
- import { z as z200 } from "zod";
5577
- var DTOExporterType = z200.enum(["documentation", "code"]);
5578
- var DTOExporterSource = z200.enum(["git", "upload"]);
5579
- var DTOExporterMembershipRole = z200.enum(["Owner", "OwnerArchived", "User"]);
5580
- var DTOExporter = z200.object({
5581
- id: z200.string(),
5582
- name: z200.string(),
5583
- isPrivate: z200.boolean(),
5561
+ import { z as z198 } from "zod";
5562
+ var DTOExporterType = z198.enum(["documentation", "code"]);
5563
+ var DTOExporterSource = z198.enum(["git", "upload"]);
5564
+ var DTOExporterMembershipRole = z198.enum(["Owner", "OwnerArchived", "User"]);
5565
+ var DTOExporter = z198.object({
5566
+ id: z198.string(),
5567
+ name: z198.string(),
5568
+ isPrivate: z198.boolean(),
5584
5569
  exporterType: DTOExporterType,
5585
- isDefaultDocumentationExporter: z200.boolean(),
5586
- iconURL: z200.string().optional(),
5570
+ isDefaultDocumentationExporter: z198.boolean(),
5571
+ iconURL: z198.string().optional(),
5587
5572
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5588
5573
  customBlocks: PulsarCustomBlock.array(),
5589
- blockVariants: z200.record(z200.string(), PulsarContributionVariant.array()),
5590
- usesBrands: z200.boolean(),
5591
- usesThemes: z200.boolean(),
5574
+ blockVariants: z198.record(z198.string(), PulsarContributionVariant.array()),
5575
+ usesBrands: z198.boolean(),
5576
+ usesThemes: z198.boolean(),
5592
5577
  source: DTOExporterSource,
5593
- gitUrl: z200.string().optional(),
5594
- gitBranch: z200.string().optional(),
5595
- gitDirectory: z200.string().optional()
5578
+ gitUrl: z198.string().optional(),
5579
+ gitBranch: z198.string().optional(),
5580
+ gitDirectory: z198.string().optional()
5596
5581
  });
5597
- var DTOExporterMembership = z200.object({
5598
- workspaceId: z200.string(),
5599
- exporterId: z200.string(),
5582
+ var DTOExporterMembership = z198.object({
5583
+ workspaceId: z198.string(),
5584
+ exporterId: z198.string(),
5600
5585
  role: DTOExporterMembershipRole
5601
5586
  });
5602
- var DTOExporterCreateOutput = z200.object({
5587
+ var DTOExporterCreateOutput = z198.object({
5603
5588
  exporter: DTOExporter,
5604
5589
  membership: DTOExporterMembership
5605
5590
  });
5606
- var DTOExporterGitProviderEnum = z200.enum(["github", "gitlab", "bitbucket", "azure"]);
5607
- var DTOExporterCreateInput = z200.object({
5608
- url: z200.string(),
5591
+ var DTOExporterGitProviderEnum = z198.enum(["github", "gitlab", "bitbucket", "azure"]);
5592
+ var DTOExporterCreateInput = z198.object({
5593
+ url: z198.string(),
5609
5594
  provider: DTOExporterGitProviderEnum
5610
5595
  });
5611
- var DTOExporterUpdateInput = z200.object({
5612
- url: z200.string().optional()
5596
+ var DTOExporterUpdateInput = z198.object({
5597
+ url: z198.string().optional()
5613
5598
  });
5614
5599
 
5615
5600
  // src/api/dto/export/filter.ts
5616
5601
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5617
5602
 
5618
5603
  // src/api/dto/export/job.ts
5619
- import { z as z201 } from "zod";
5620
- var DTOExportJobCreatedBy = z201.object({
5621
- userId: z201.string(),
5622
- userName: z201.string()
5604
+ import { z as z199 } from "zod";
5605
+ var DTOExportJobCreatedBy = z199.object({
5606
+ userId: z199.string(),
5607
+ userName: z199.string()
5623
5608
  });
5624
- var DTOExportJobDesignSystemPreview = z201.object({
5625
- id: z201.string(),
5609
+ var DTOExportJobDesignSystemPreview = z199.object({
5610
+ id: z199.string(),
5626
5611
  meta: ObjectMeta
5627
5612
  });
5628
- var DTOExportJobDesignSystemVersionPreview = z201.object({
5629
- id: z201.string(),
5613
+ var DTOExportJobDesignSystemVersionPreview = z199.object({
5614
+ id: z199.string(),
5630
5615
  meta: ObjectMeta,
5631
- version: z201.string(),
5632
- isReadonly: z201.boolean()
5616
+ version: z199.string(),
5617
+ isReadonly: z199.boolean()
5633
5618
  });
5634
- var DTOExportJobDestinations = z201.object({
5619
+ var DTOExportJobDestinations = z199.object({
5635
5620
  s3: ExporterDestinationS3.optional(),
5636
5621
  azure: ExporterDestinationAzure.optional(),
5637
5622
  bitbucket: ExporterDestinationBitbucket.optional(),
5638
5623
  github: ExporterDestinationGithub.optional(),
5639
5624
  gitlab: ExporterDestinationGitlab.optional(),
5640
5625
  documentation: ExporterDestinationDocs.optional(),
5641
- webhookUrl: z201.string().optional()
5626
+ webhookUrl: z199.string().optional()
5642
5627
  });
5643
5628
  var DTOExportJobResult = ExportJobResult.omit({
5644
5629
  sndocs: true
5645
5630
  }).extend({
5646
5631
  documentation: ExportJobDocsDestinationResult.optional()
5647
5632
  });
5648
- var DTOExportJob = z201.object({
5649
- id: z201.string(),
5650
- createdAt: z201.coerce.date(),
5651
- finishedAt: z201.coerce.date().optional(),
5652
- index: z201.number().optional(),
5633
+ var DTOExportJob = z199.object({
5634
+ id: z199.string(),
5635
+ createdAt: z199.coerce.date(),
5636
+ finishedAt: z199.coerce.date().optional(),
5637
+ index: z199.number().optional(),
5653
5638
  status: ExportJobStatus,
5654
- estimatedExecutionTime: z201.number().optional(),
5639
+ estimatedExecutionTime: z199.number().optional(),
5655
5640
  createdBy: DTOExportJobCreatedBy.optional(),
5656
5641
  designSystem: DTOExportJobDesignSystemPreview,
5657
5642
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5658
5643
  destinations: DTOExportJobDestinations,
5659
- exporterId: z201.string(),
5660
- scheduleId: z201.string().optional(),
5644
+ exporterId: z199.string(),
5645
+ scheduleId: z199.string().optional(),
5661
5646
  result: DTOExportJobResult.optional(),
5662
- brandPersistentId: z201.string().optional(),
5663
- themePersistentId: z201.string().optional(),
5664
- themePersistentIds: z201.string().array().optional()
5647
+ brandPersistentId: z199.string().optional(),
5648
+ themePersistentId: z199.string().optional(),
5649
+ themePersistentIds: z199.string().array().optional()
5665
5650
  });
5666
- var DTOExportJobResponse = z201.object({
5651
+ var DTOExportJobResponse = z199.object({
5667
5652
  job: DTOExportJob
5668
5653
  });
5669
5654
 
5670
5655
  // src/api/dto/export/pipeline.ts
5671
- import { z as z202 } from "zod";
5672
- var DTOPipeline = z202.object({
5673
- id: z202.string(),
5674
- name: z202.string(),
5656
+ import { z as z200 } from "zod";
5657
+ var DTOPipeline = z200.object({
5658
+ id: z200.string(),
5659
+ name: z200.string(),
5675
5660
  eventType: PipelineEventType,
5676
- isEnabled: z202.boolean(),
5677
- workspaceId: z202.string(),
5678
- designSystemId: z202.string(),
5679
- exporterId: z202.string(),
5680
- brandPersistentId: z202.string().optional(),
5681
- themePersistentId: z202.string().optional(),
5682
- themePersistentIds: z202.string().array().optional(),
5661
+ isEnabled: z200.boolean(),
5662
+ workspaceId: z200.string(),
5663
+ designSystemId: z200.string(),
5664
+ exporterId: z200.string(),
5665
+ brandPersistentId: z200.string().optional(),
5666
+ themePersistentId: z200.string().optional(),
5667
+ themePersistentIds: z200.string().array().optional(),
5683
5668
  ...ExportDestinationsMap.shape,
5684
5669
  latestJobs: DTOExportJob.array()
5685
5670
  });
5686
5671
 
5687
5672
  // src/api/dto/documentation/publish.ts
5688
5673
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5689
- var DTOPublishDocumentationRequest = z203.object({
5674
+ var DTOPublishDocumentationRequest = z201.object({
5690
5675
  environment: PublishedDocEnvironment,
5691
5676
  /**
5692
5677
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5694,41 +5679,41 @@ var DTOPublishDocumentationRequest = z203.object({
5694
5679
  */
5695
5680
  changes: DTOPublishDocumentationChanges.optional()
5696
5681
  });
5697
- var DTOPublishDocumentationResponse = z203.object({
5682
+ var DTOPublishDocumentationResponse = z201.object({
5698
5683
  job: DTOExportJob
5699
5684
  });
5700
5685
 
5701
5686
  // src/api/dto/elements/components/figma-component.ts
5702
- import { z as z204 } from "zod";
5687
+ import { z as z202 } from "zod";
5703
5688
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5704
- var DTOFigmaComponentPropertyMap = z204.record(DTOFigmaComponentProperty);
5705
- var DTOFigmaComponent = z204.object({
5706
- id: z204.string(),
5707
- persistentId: z204.string(),
5708
- designSystemVersionId: z204.string(),
5709
- brandId: z204.string(),
5710
- thumbnailUrl: z204.string().optional(),
5711
- svgUrl: z204.string().optional(),
5712
- exportProperties: z204.object({
5713
- isAsset: z204.boolean()
5689
+ var DTOFigmaComponentPropertyMap = z202.record(DTOFigmaComponentProperty);
5690
+ var DTOFigmaComponent = z202.object({
5691
+ id: z202.string(),
5692
+ persistentId: z202.string(),
5693
+ designSystemVersionId: z202.string(),
5694
+ brandId: z202.string(),
5695
+ thumbnailUrl: z202.string().optional(),
5696
+ svgUrl: z202.string().optional(),
5697
+ exportProperties: z202.object({
5698
+ isAsset: z202.boolean()
5714
5699
  }),
5715
- createdAt: z204.coerce.date(),
5716
- updatedAt: z204.coerce.date(),
5700
+ createdAt: z202.coerce.date(),
5701
+ updatedAt: z202.coerce.date(),
5717
5702
  meta: ObjectMeta,
5718
5703
  originComponent: FigmaComponentOrigin.optional(),
5719
- parentComponentPersistentId: z204.string().optional(),
5704
+ parentComponentPersistentId: z202.string().optional(),
5720
5705
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5721
- childrenPersistentIds: z204.string().array().optional()
5706
+ childrenPersistentIds: z202.string().array().optional()
5722
5707
  });
5723
- var DTOFigmaComponentListResponse = z204.object({
5708
+ var DTOFigmaComponentListResponse = z202.object({
5724
5709
  components: DTOFigmaComponent.array()
5725
5710
  });
5726
5711
 
5727
5712
  // src/api/dto/elements/documentation/group-action.ts
5728
- import { z as z206 } from "zod";
5713
+ import { z as z204 } from "zod";
5729
5714
 
5730
5715
  // src/api/dto/elements/documentation/group-v2.ts
5731
- import { z as z205 } from "zod";
5716
+ import { z as z203 } from "zod";
5732
5717
  var DTODocumentationGroupV2 = ElementGroup.omit({
5733
5718
  sortOrder: true,
5734
5719
  parentPersistentId: true,
@@ -5738,13 +5723,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5738
5723
  data: true,
5739
5724
  shortPersistentId: true
5740
5725
  }).extend({
5741
- title: z205.string(),
5742
- isRoot: z205.boolean(),
5743
- childrenIds: z205.array(z205.string()),
5726
+ title: z203.string(),
5727
+ isRoot: z203.boolean(),
5728
+ childrenIds: z203.array(z203.string()),
5744
5729
  groupBehavior: DocumentationGroupBehavior,
5745
- shortPersistentId: z205.string(),
5730
+ shortPersistentId: z203.string(),
5746
5731
  configuration: DTODocumentationItemConfigurationV2,
5747
- type: z205.literal("Group"),
5732
+ type: z203.literal("Group"),
5748
5733
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5749
5734
  draftState: DTODocumentationDraftState.optional(),
5750
5735
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -5752,127 +5737,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5752
5737
  //** An approval state for frontend to utilize. */
5753
5738
  approvalState: DTODocumentationGroupApprovalState.optional()
5754
5739
  });
5755
- var DTOCreateDocumentationGroupInput = z205.object({
5740
+ var DTOCreateDocumentationGroupInput = z203.object({
5756
5741
  // Identifier
5757
- persistentId: z205.string().uuid(),
5742
+ persistentId: z203.string().uuid(),
5758
5743
  // Group properties
5759
- title: z205.string(),
5744
+ title: z203.string(),
5760
5745
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5761
5746
  // Group placement properties
5762
- afterPersistentId: z205.string().uuid().nullish(),
5763
- parentPersistentId: z205.string().uuid()
5747
+ afterPersistentId: z203.string().uuid().nullish(),
5748
+ parentPersistentId: z203.string().uuid()
5764
5749
  });
5765
- var DTOUpdateDocumentationGroupInput = z205.object({
5750
+ var DTOUpdateDocumentationGroupInput = z203.object({
5766
5751
  // Identifier of the group to update
5767
- id: z205.string(),
5752
+ id: z203.string(),
5768
5753
  // Group properties
5769
- title: z205.string().optional(),
5754
+ title: z203.string().optional(),
5770
5755
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5771
5756
  });
5772
- var DTOMoveDocumentationGroupInput = z205.object({
5757
+ var DTOMoveDocumentationGroupInput = z203.object({
5773
5758
  // Identifier of the group to update
5774
- id: z205.string(),
5759
+ id: z203.string(),
5775
5760
  // Group placement properties
5776
- parentPersistentId: z205.string().uuid(),
5777
- afterPersistentId: z205.string().uuid().nullish()
5761
+ parentPersistentId: z203.string().uuid(),
5762
+ afterPersistentId: z203.string().uuid().nullish()
5778
5763
  });
5779
- var DTODuplicateDocumentationGroupInput = z205.object({
5764
+ var DTODuplicateDocumentationGroupInput = z203.object({
5780
5765
  // Identifier of the group to duplicate from
5781
- id: z205.string(),
5766
+ id: z203.string(),
5782
5767
  // New group persistent id
5783
- persistentId: z205.string().uuid(),
5768
+ persistentId: z203.string().uuid(),
5784
5769
  // Group placement properties
5785
- afterPersistentId: z205.string().uuid().nullish(),
5786
- parentPersistentId: z205.string().uuid()
5770
+ afterPersistentId: z203.string().uuid().nullish(),
5771
+ parentPersistentId: z203.string().uuid()
5787
5772
  });
5788
- var DTOCreateDocumentationTabInput = z205.object({
5773
+ var DTOCreateDocumentationTabInput = z203.object({
5789
5774
  // New group persistent id
5790
- persistentId: z205.string().uuid(),
5775
+ persistentId: z203.string().uuid(),
5791
5776
  // If this is page, we will attempt to convert it to tab
5792
5777
  // If this is tab group, we will add a new tab to it
5793
- fromItemPersistentId: z205.string(),
5794
- tabName: z205.string()
5778
+ fromItemPersistentId: z203.string(),
5779
+ tabName: z203.string()
5795
5780
  });
5796
- var DTODeleteDocumentationTabGroupInput = z205.object({
5781
+ var DTODeleteDocumentationTabGroupInput = z203.object({
5797
5782
  // Deleted group id
5798
- id: z205.string()
5783
+ id: z203.string()
5799
5784
  });
5800
- var DTODeleteDocumentationGroupInput = z205.object({
5785
+ var DTODeleteDocumentationGroupInput = z203.object({
5801
5786
  // Identifier
5802
- id: z205.string(),
5787
+ id: z203.string(),
5803
5788
  // Deletion options
5804
- deleteSubtree: z205.boolean().default(false)
5789
+ deleteSubtree: z203.boolean().default(false)
5805
5790
  });
5806
5791
 
5807
5792
  // src/api/dto/elements/documentation/group-action.ts
5808
- var SuccessPayload = z206.object({
5809
- success: z206.literal(true)
5793
+ var SuccessPayload = z204.object({
5794
+ success: z204.literal(true)
5810
5795
  });
5811
- var DTODocumentationGroupCreateActionOutputV2 = z206.object({
5812
- type: z206.literal("DocumentationGroupCreate"),
5796
+ var DTODocumentationGroupCreateActionOutputV2 = z204.object({
5797
+ type: z204.literal("DocumentationGroupCreate"),
5813
5798
  output: SuccessPayload
5814
5799
  });
5815
- var DTODocumentationTabCreateActionOutputV2 = z206.object({
5816
- type: z206.literal("DocumentationTabCreate"),
5800
+ var DTODocumentationTabCreateActionOutputV2 = z204.object({
5801
+ type: z204.literal("DocumentationTabCreate"),
5817
5802
  output: SuccessPayload
5818
5803
  });
5819
- var DTODocumentationGroupUpdateActionOutputV2 = z206.object({
5820
- type: z206.literal("DocumentationGroupUpdate"),
5804
+ var DTODocumentationGroupUpdateActionOutputV2 = z204.object({
5805
+ type: z204.literal("DocumentationGroupUpdate"),
5821
5806
  output: SuccessPayload
5822
5807
  });
5823
- var DTODocumentationGroupMoveActionOutputV2 = z206.object({
5824
- type: z206.literal("DocumentationGroupMove"),
5808
+ var DTODocumentationGroupMoveActionOutputV2 = z204.object({
5809
+ type: z204.literal("DocumentationGroupMove"),
5825
5810
  output: SuccessPayload
5826
5811
  });
5827
- var DTODocumentationGroupDuplicateActionOutputV2 = z206.object({
5828
- type: z206.literal("DocumentationGroupDuplicate"),
5812
+ var DTODocumentationGroupDuplicateActionOutputV2 = z204.object({
5813
+ type: z204.literal("DocumentationGroupDuplicate"),
5829
5814
  output: SuccessPayload
5830
5815
  });
5831
- var DTODocumentationGroupDeleteActionOutputV2 = z206.object({
5832
- type: z206.literal("DocumentationGroupDelete"),
5816
+ var DTODocumentationGroupDeleteActionOutputV2 = z204.object({
5817
+ type: z204.literal("DocumentationGroupDelete"),
5833
5818
  output: SuccessPayload
5834
5819
  });
5835
- var DTODocumentationTabGroupDeleteActionOutputV2 = z206.object({
5836
- type: z206.literal("DocumentationTabGroupDelete"),
5820
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z204.object({
5821
+ type: z204.literal("DocumentationTabGroupDelete"),
5837
5822
  output: SuccessPayload
5838
5823
  });
5839
- var DTODocumentationGroupCreateActionInputV2 = z206.object({
5840
- type: z206.literal("DocumentationGroupCreate"),
5824
+ var DTODocumentationGroupCreateActionInputV2 = z204.object({
5825
+ type: z204.literal("DocumentationGroupCreate"),
5841
5826
  input: DTOCreateDocumentationGroupInput
5842
5827
  });
5843
- var DTODocumentationTabCreateActionInputV2 = z206.object({
5844
- type: z206.literal("DocumentationTabCreate"),
5828
+ var DTODocumentationTabCreateActionInputV2 = z204.object({
5829
+ type: z204.literal("DocumentationTabCreate"),
5845
5830
  input: DTOCreateDocumentationTabInput
5846
5831
  });
5847
- var DTODocumentationGroupUpdateActionInputV2 = z206.object({
5848
- type: z206.literal("DocumentationGroupUpdate"),
5832
+ var DTODocumentationGroupUpdateActionInputV2 = z204.object({
5833
+ type: z204.literal("DocumentationGroupUpdate"),
5849
5834
  input: DTOUpdateDocumentationGroupInput
5850
5835
  });
5851
- var DTODocumentationGroupMoveActionInputV2 = z206.object({
5852
- type: z206.literal("DocumentationGroupMove"),
5836
+ var DTODocumentationGroupMoveActionInputV2 = z204.object({
5837
+ type: z204.literal("DocumentationGroupMove"),
5853
5838
  input: DTOMoveDocumentationGroupInput
5854
5839
  });
5855
- var DTODocumentationGroupDuplicateActionInputV2 = z206.object({
5856
- type: z206.literal("DocumentationGroupDuplicate"),
5840
+ var DTODocumentationGroupDuplicateActionInputV2 = z204.object({
5841
+ type: z204.literal("DocumentationGroupDuplicate"),
5857
5842
  input: DTODuplicateDocumentationGroupInput
5858
5843
  });
5859
- var DTODocumentationGroupDeleteActionInputV2 = z206.object({
5860
- type: z206.literal("DocumentationGroupDelete"),
5844
+ var DTODocumentationGroupDeleteActionInputV2 = z204.object({
5845
+ type: z204.literal("DocumentationGroupDelete"),
5861
5846
  input: DTODeleteDocumentationGroupInput
5862
5847
  });
5863
- var DTODocumentationTabGroupDeleteActionInputV2 = z206.object({
5864
- type: z206.literal("DocumentationTabGroupDelete"),
5848
+ var DTODocumentationTabGroupDeleteActionInputV2 = z204.object({
5849
+ type: z204.literal("DocumentationTabGroupDelete"),
5865
5850
  input: DTODeleteDocumentationTabGroupInput
5866
5851
  });
5867
5852
 
5868
5853
  // src/api/dto/elements/documentation/group-v1.ts
5869
- import { z as z208 } from "zod";
5854
+ import { z as z206 } from "zod";
5870
5855
 
5871
5856
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5872
- import { z as z207 } from "zod";
5873
- var DocumentationColorV1 = z207.object({
5874
- aliasTo: z207.string().optional(),
5875
- value: z207.string().optional()
5857
+ import { z as z205 } from "zod";
5858
+ var DocumentationColorV1 = z205.object({
5859
+ aliasTo: z205.string().optional(),
5860
+ value: z205.string().optional()
5876
5861
  });
5877
5862
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5878
5863
  foregroundColor: true,
@@ -5881,10 +5866,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5881
5866
  foregroundColor: DocumentationColorV1.optional(),
5882
5867
  backgroundColor: DocumentationColorV1.optional()
5883
5868
  });
5884
- var DTODocumentationItemConfigurationV1 = z207.object({
5885
- showSidebar: z207.boolean(),
5886
- isPrivate: z207.boolean(),
5887
- isHidden: z207.boolean(),
5869
+ var DTODocumentationItemConfigurationV1 = z205.object({
5870
+ showSidebar: z205.boolean(),
5871
+ isPrivate: z205.boolean(),
5872
+ isHidden: z205.boolean(),
5888
5873
  header: DTODocumentationItemHeaderV1
5889
5874
  });
5890
5875
 
@@ -5898,27 +5883,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5898
5883
  data: true,
5899
5884
  shortPersistentId: true
5900
5885
  }).extend({
5901
- title: z208.string(),
5902
- isRoot: z208.boolean(),
5903
- childrenIds: z208.array(z208.string()),
5886
+ title: z206.string(),
5887
+ isRoot: z206.boolean(),
5888
+ childrenIds: z206.array(z206.string()),
5904
5889
  groupBehavior: DocumentationGroupBehavior,
5905
- shortPersistentId: z208.string(),
5906
- type: z208.literal("Group")
5890
+ shortPersistentId: z206.string(),
5891
+ type: z206.literal("Group")
5907
5892
  });
5908
5893
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5909
5894
  configuration: DTODocumentationItemConfigurationV1
5910
5895
  });
5911
5896
 
5912
5897
  // src/api/dto/elements/documentation/hierarchy.ts
5913
- import { z as z209 } from "zod";
5914
- var DTODocumentationHierarchyV2 = z209.object({
5915
- pages: z209.array(
5898
+ import { z as z207 } from "zod";
5899
+ var DTODocumentationHierarchyV2 = z207.object({
5900
+ pages: z207.array(
5916
5901
  DTODocumentationPageV2.extend({
5917
5902
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5918
5903
  draftState: DTODocumentationDraftState.optional()
5919
5904
  })
5920
5905
  ),
5921
- groups: z209.array(
5906
+ groups: z207.array(
5922
5907
  DTODocumentationGroupV2.extend({
5923
5908
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5924
5909
  draftState: DTODocumentationDraftState.optional()
@@ -5927,84 +5912,84 @@ var DTODocumentationHierarchyV2 = z209.object({
5927
5912
  });
5928
5913
 
5929
5914
  // src/api/dto/elements/documentation/page-actions-v2.ts
5930
- import { z as z210 } from "zod";
5931
- var SuccessPayload2 = z210.object({
5932
- success: z210.literal(true)
5915
+ import { z as z208 } from "zod";
5916
+ var SuccessPayload2 = z208.object({
5917
+ success: z208.literal(true)
5933
5918
  });
5934
- var DTODocumentationPageCreateActionOutputV2 = z210.object({
5935
- type: z210.literal("DocumentationPageCreate"),
5919
+ var DTODocumentationPageCreateActionOutputV2 = z208.object({
5920
+ type: z208.literal("DocumentationPageCreate"),
5936
5921
  output: SuccessPayload2
5937
5922
  });
5938
- var DTODocumentationPageUpdateActionOutputV2 = z210.object({
5939
- type: z210.literal("DocumentationPageUpdate"),
5923
+ var DTODocumentationPageUpdateActionOutputV2 = z208.object({
5924
+ type: z208.literal("DocumentationPageUpdate"),
5940
5925
  output: SuccessPayload2
5941
5926
  });
5942
- var DTODocumentationPageMoveActionOutputV2 = z210.object({
5943
- type: z210.literal("DocumentationPageMove"),
5927
+ var DTODocumentationPageMoveActionOutputV2 = z208.object({
5928
+ type: z208.literal("DocumentationPageMove"),
5944
5929
  output: SuccessPayload2
5945
5930
  });
5946
- var DTODocumentationPageDuplicateActionOutputV2 = z210.object({
5947
- type: z210.literal("DocumentationPageDuplicate"),
5931
+ var DTODocumentationPageDuplicateActionOutputV2 = z208.object({
5932
+ type: z208.literal("DocumentationPageDuplicate"),
5948
5933
  output: SuccessPayload2
5949
5934
  });
5950
- var DTODocumentationPageDeleteActionOutputV2 = z210.object({
5951
- type: z210.literal("DocumentationPageDelete"),
5935
+ var DTODocumentationPageDeleteActionOutputV2 = z208.object({
5936
+ type: z208.literal("DocumentationPageDelete"),
5952
5937
  output: SuccessPayload2
5953
5938
  });
5954
- var DTODocumentationPageRestoreActionOutput = z210.object({
5955
- type: z210.literal("DocumentationPageRestore"),
5939
+ var DTODocumentationPageRestoreActionOutput = z208.object({
5940
+ type: z208.literal("DocumentationPageRestore"),
5956
5941
  output: SuccessPayload2
5957
5942
  });
5958
- var DTODocumentationGroupRestoreActionOutput = z210.object({
5959
- type: z210.literal("DocumentationGroupRestore"),
5943
+ var DTODocumentationGroupRestoreActionOutput = z208.object({
5944
+ type: z208.literal("DocumentationGroupRestore"),
5960
5945
  output: SuccessPayload2
5961
5946
  });
5962
- var DTODocumentationPageApprovalStateChangeActionOutput = z210.object({
5963
- type: z210.literal("DocumentationPageApprovalStateChange"),
5947
+ var DTODocumentationPageApprovalStateChangeActionOutput = z208.object({
5948
+ type: z208.literal("DocumentationPageApprovalStateChange"),
5964
5949
  output: SuccessPayload2
5965
5950
  });
5966
- var DTODocumentationPageCreateActionInputV2 = z210.object({
5967
- type: z210.literal("DocumentationPageCreate"),
5951
+ var DTODocumentationPageCreateActionInputV2 = z208.object({
5952
+ type: z208.literal("DocumentationPageCreate"),
5968
5953
  input: DTOCreateDocumentationPageInputV2
5969
5954
  });
5970
- var DTODocumentationPageUpdateActionInputV2 = z210.object({
5971
- type: z210.literal("DocumentationPageUpdate"),
5955
+ var DTODocumentationPageUpdateActionInputV2 = z208.object({
5956
+ type: z208.literal("DocumentationPageUpdate"),
5972
5957
  input: DTOUpdateDocumentationPageInputV2
5973
5958
  });
5974
- var DTODocumentationPageMoveActionInputV2 = z210.object({
5975
- type: z210.literal("DocumentationPageMove"),
5959
+ var DTODocumentationPageMoveActionInputV2 = z208.object({
5960
+ type: z208.literal("DocumentationPageMove"),
5976
5961
  input: DTOMoveDocumentationPageInputV2
5977
5962
  });
5978
- var DTODocumentationPageDuplicateActionInputV2 = z210.object({
5979
- type: z210.literal("DocumentationPageDuplicate"),
5963
+ var DTODocumentationPageDuplicateActionInputV2 = z208.object({
5964
+ type: z208.literal("DocumentationPageDuplicate"),
5980
5965
  input: DTODuplicateDocumentationPageInputV2
5981
5966
  });
5982
- var DTODocumentationPageDeleteActionInputV2 = z210.object({
5983
- type: z210.literal("DocumentationPageDelete"),
5967
+ var DTODocumentationPageDeleteActionInputV2 = z208.object({
5968
+ type: z208.literal("DocumentationPageDelete"),
5984
5969
  input: DTODeleteDocumentationPageInputV2
5985
5970
  });
5986
- var DTODocumentationPageRestoreActionInput = z210.object({
5987
- type: z210.literal("DocumentationPageRestore"),
5971
+ var DTODocumentationPageRestoreActionInput = z208.object({
5972
+ type: z208.literal("DocumentationPageRestore"),
5988
5973
  input: DTORestoreDocumentationPageInput
5989
5974
  });
5990
- var DTODocumentationGroupRestoreActionInput = z210.object({
5991
- type: z210.literal("DocumentationGroupRestore"),
5975
+ var DTODocumentationGroupRestoreActionInput = z208.object({
5976
+ type: z208.literal("DocumentationGroupRestore"),
5992
5977
  input: DTORestoreDocumentationGroupInput
5993
5978
  });
5994
- var DTODocumentationPageApprovalStateChangeActionInput = z210.object({
5995
- type: z210.literal("DocumentationPageApprovalStateChange"),
5979
+ var DTODocumentationPageApprovalStateChangeActionInput = z208.object({
5980
+ type: z208.literal("DocumentationPageApprovalStateChange"),
5996
5981
  input: DTODocumentationPageApprovalStateChangeInput
5997
5982
  });
5998
5983
 
5999
5984
  // src/api/dto/elements/documentation/page-content.ts
6000
- import { z as z211 } from "zod";
5985
+ import { z as z209 } from "zod";
6001
5986
  var DTODocumentationPageContent = DocumentationPageContent;
6002
- var DTODocumentationPageContentGetResponse = z211.object({
5987
+ var DTODocumentationPageContentGetResponse = z209.object({
6003
5988
  pageContent: DTODocumentationPageContent
6004
5989
  });
6005
5990
 
6006
5991
  // src/api/dto/elements/documentation/page-v1.ts
6007
- import { z as z212 } from "zod";
5992
+ import { z as z210 } from "zod";
6008
5993
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6009
5994
  data: true,
6010
5995
  meta: true,
@@ -6012,32 +5997,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6012
5997
  sortOrder: true
6013
5998
  }).extend({
6014
5999
  configuration: DTODocumentationItemConfigurationV1,
6015
- blocks: z212.array(PageBlockV1),
6016
- title: z212.string(),
6017
- path: z212.string()
6000
+ blocks: z210.array(PageBlockV1),
6001
+ title: z210.string(),
6002
+ path: z210.string()
6018
6003
  });
6019
6004
 
6020
6005
  // src/api/dto/elements/figma-nodes/figma-node.ts
6021
- import { z as z213 } from "zod";
6006
+ import { z as z211 } from "zod";
6022
6007
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6023
- var DTOFigmaNodeOrigin = z213.object({
6024
- sourceId: z213.string(),
6025
- fileId: z213.string().optional(),
6026
- parentName: z213.string().optional()
6008
+ var DTOFigmaNodeOrigin = z211.object({
6009
+ sourceId: z211.string(),
6010
+ fileId: z211.string().optional(),
6011
+ parentName: z211.string().optional()
6027
6012
  });
6028
- var DTOFigmaNodeData = z213.object({
6013
+ var DTOFigmaNodeData = z211.object({
6029
6014
  // Id of the node in the Figma file
6030
- figmaNodeId: z213.string(),
6015
+ figmaNodeId: z211.string(),
6031
6016
  // Validity
6032
- isValid: z213.boolean(),
6017
+ isValid: z211.boolean(),
6033
6018
  // Asset data
6034
- assetId: z213.string(),
6035
- assetUrl: z213.string(),
6019
+ assetId: z211.string(),
6020
+ assetUrl: z211.string(),
6036
6021
  assetFormat: DTOFigmaNodeRenderFormat,
6037
6022
  // Asset metadata
6038
- assetScale: z213.number(),
6039
- assetWidth: z213.number().optional(),
6040
- assetHeight: z213.number().optional()
6023
+ assetScale: z211.number(),
6024
+ assetWidth: z211.number().optional(),
6025
+ assetHeight: z211.number().optional()
6041
6026
  });
6042
6027
  var DTOFigmaNode = FigmaNodeReference.omit({
6043
6028
  data: true,
@@ -6046,15 +6031,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6046
6031
  data: DTOFigmaNodeData,
6047
6032
  origin: DTOFigmaNodeOrigin
6048
6033
  });
6049
- var DTOFigmaNodeRenderInput = z213.object({
6034
+ var DTOFigmaNodeRenderInput = z211.object({
6050
6035
  /**
6051
6036
  * Id of a design system's data source representing a linked Figma file
6052
6037
  */
6053
- sourceId: z213.string(),
6038
+ sourceId: z211.string(),
6054
6039
  /**
6055
6040
  * Id of a node within the Figma file
6056
6041
  */
6057
- figmaFileNodeId: z213.string(),
6042
+ figmaFileNodeId: z211.string(),
6058
6043
  /**
6059
6044
  * Format in which the node must be rendered, png by default.
6060
6045
  */
@@ -6062,97 +6047,97 @@ var DTOFigmaNodeRenderInput = z213.object({
6062
6047
  });
6063
6048
 
6064
6049
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6065
- import { z as z214 } from "zod";
6066
- var DTOFigmaNodeRenderActionOutput = z214.object({
6067
- type: z214.literal("FigmaNodeRender"),
6068
- figmaNodes: z214.array(DTOFigmaNode)
6050
+ import { z as z212 } from "zod";
6051
+ var DTOFigmaNodeRenderActionOutput = z212.object({
6052
+ type: z212.literal("FigmaNodeRender"),
6053
+ figmaNodes: z212.array(DTOFigmaNode)
6069
6054
  });
6070
- var DTOFigmaNodeRenderActionInput = z214.object({
6071
- type: z214.literal("FigmaNodeRender"),
6055
+ var DTOFigmaNodeRenderActionInput = z212.object({
6056
+ type: z212.literal("FigmaNodeRender"),
6072
6057
  input: DTOFigmaNodeRenderInput.array()
6073
6058
  });
6074
6059
 
6075
6060
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6076
- import { z as z216 } from "zod";
6061
+ import { z as z214 } from "zod";
6077
6062
 
6078
6063
  // src/api/dto/elements/properties/property-definitions.ts
6079
- import { z as z215 } from "zod";
6064
+ import { z as z213 } from "zod";
6080
6065
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6081
- var DTOElementPropertyDefinition = z215.object({
6082
- id: z215.string(),
6083
- designSystemVersionId: z215.string(),
6066
+ var DTOElementPropertyDefinition = z213.object({
6067
+ id: z213.string(),
6068
+ designSystemVersionId: z213.string(),
6084
6069
  meta: ObjectMeta,
6085
- persistentId: z215.string(),
6070
+ persistentId: z213.string(),
6086
6071
  type: ElementPropertyTypeSchema,
6087
6072
  targetElementType: ElementPropertyTargetType,
6088
- codeName: z215.string().regex(CODE_NAME_REGEX2),
6089
- options: z215.array(ElementPropertyDefinitionOption).optional(),
6073
+ codeName: z213.string().regex(CODE_NAME_REGEX2),
6074
+ options: z213.array(ElementPropertyDefinitionOption).optional(),
6090
6075
  linkElementType: ElementPropertyLinkType.optional()
6091
6076
  });
6092
- var DTOElementPropertyDefinitionsGetResponse = z215.object({
6093
- definitions: z215.array(DTOElementPropertyDefinition)
6077
+ var DTOElementPropertyDefinitionsGetResponse = z213.object({
6078
+ definitions: z213.array(DTOElementPropertyDefinition)
6094
6079
  });
6095
6080
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6096
6081
  id: true,
6097
6082
  designSystemVersionId: true
6098
6083
  });
6099
- var DTOUpdateElementPropertyDefinitionInputV2 = z215.object({
6100
- id: z215.string(),
6101
- name: z215.string().optional(),
6102
- description: z215.string().optional(),
6103
- codeName: z215.string().regex(CODE_NAME_REGEX2).optional(),
6104
- options: z215.array(ElementPropertyDefinitionOption).optional()
6084
+ var DTOUpdateElementPropertyDefinitionInputV2 = z213.object({
6085
+ id: z213.string(),
6086
+ name: z213.string().optional(),
6087
+ description: z213.string().optional(),
6088
+ codeName: z213.string().regex(CODE_NAME_REGEX2).optional(),
6089
+ options: z213.array(ElementPropertyDefinitionOption).optional()
6105
6090
  });
6106
- var DTODeleteElementPropertyDefinitionInputV2 = z215.object({
6107
- id: z215.string()
6091
+ var DTODeleteElementPropertyDefinitionInputV2 = z213.object({
6092
+ id: z213.string()
6108
6093
  });
6109
6094
 
6110
6095
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6111
- var SuccessPayload3 = z216.object({
6112
- success: z216.literal(true)
6096
+ var SuccessPayload3 = z214.object({
6097
+ success: z214.literal(true)
6113
6098
  });
6114
- var DTOPropertyDefinitionCreateActionOutputV2 = z216.object({
6115
- type: z216.literal("PropertyDefinitionCreate"),
6099
+ var DTOPropertyDefinitionCreateActionOutputV2 = z214.object({
6100
+ type: z214.literal("PropertyDefinitionCreate"),
6116
6101
  definition: DTOElementPropertyDefinition
6117
6102
  });
6118
- var DTOPropertyDefinitionUpdateActionOutputV2 = z216.object({
6119
- type: z216.literal("PropertyDefinitionUpdate"),
6103
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z214.object({
6104
+ type: z214.literal("PropertyDefinitionUpdate"),
6120
6105
  definition: DTOElementPropertyDefinition
6121
6106
  });
6122
- var DTOPropertyDefinitionDeleteActionOutputV2 = z216.object({
6123
- type: z216.literal("PropertyDefinitionDelete"),
6107
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z214.object({
6108
+ type: z214.literal("PropertyDefinitionDelete"),
6124
6109
  output: SuccessPayload3
6125
6110
  });
6126
- var DTOPropertyDefinitionCreateActionInputV2 = z216.object({
6127
- type: z216.literal("PropertyDefinitionCreate"),
6111
+ var DTOPropertyDefinitionCreateActionInputV2 = z214.object({
6112
+ type: z214.literal("PropertyDefinitionCreate"),
6128
6113
  input: DTOCreateElementPropertyDefinitionInputV2
6129
6114
  });
6130
- var DTOPropertyDefinitionUpdateActionInputV2 = z216.object({
6131
- type: z216.literal("PropertyDefinitionUpdate"),
6115
+ var DTOPropertyDefinitionUpdateActionInputV2 = z214.object({
6116
+ type: z214.literal("PropertyDefinitionUpdate"),
6132
6117
  input: DTOUpdateElementPropertyDefinitionInputV2
6133
6118
  });
6134
- var DTOPropertyDefinitionDeleteActionInputV2 = z216.object({
6135
- type: z216.literal("PropertyDefinitionDelete"),
6119
+ var DTOPropertyDefinitionDeleteActionInputV2 = z214.object({
6120
+ type: z214.literal("PropertyDefinitionDelete"),
6136
6121
  input: DTODeleteElementPropertyDefinitionInputV2
6137
6122
  });
6138
6123
 
6139
6124
  // src/api/dto/elements/properties/property-values.ts
6140
- import { z as z217 } from "zod";
6141
- var DTOElementPropertyValue = z217.object({
6142
- id: z217.string(),
6143
- designSystemVersionId: z217.string(),
6144
- definitionId: z217.string(),
6145
- targetElementId: z217.string(),
6146
- value: z217.union([z217.string(), z217.number(), z217.boolean()]).optional(),
6147
- valuePreview: z217.string().optional()
6125
+ import { z as z215 } from "zod";
6126
+ var DTOElementPropertyValue = z215.object({
6127
+ id: z215.string(),
6128
+ designSystemVersionId: z215.string(),
6129
+ definitionId: z215.string(),
6130
+ targetElementId: z215.string(),
6131
+ value: z215.union([z215.string(), z215.number(), z215.boolean()]).optional(),
6132
+ valuePreview: z215.string().optional()
6148
6133
  });
6149
- var DTOElementPropertyValuesGetResponse = z217.object({
6150
- values: z217.array(DTOElementPropertyValue)
6134
+ var DTOElementPropertyValuesGetResponse = z215.object({
6135
+ values: z215.array(DTOElementPropertyValue)
6151
6136
  });
6152
6137
 
6153
6138
  // src/api/dto/elements/elements-action-v2.ts
6154
- import { z as z218 } from "zod";
6155
- var DTOElementActionOutput = z218.discriminatedUnion("type", [
6139
+ import { z as z216 } from "zod";
6140
+ var DTOElementActionOutput = z216.discriminatedUnion("type", [
6156
6141
  // Documentation pages
6157
6142
  DTODocumentationPageCreateActionOutputV2,
6158
6143
  DTODocumentationPageUpdateActionOutputV2,
@@ -6179,7 +6164,7 @@ var DTOElementActionOutput = z218.discriminatedUnion("type", [
6179
6164
  // Approvals
6180
6165
  DTODocumentationPageApprovalStateChangeActionOutput
6181
6166
  ]);
6182
- var DTOElementActionInput = z218.discriminatedUnion("type", [
6167
+ var DTOElementActionInput = z216.discriminatedUnion("type", [
6183
6168
  // Documentation pages
6184
6169
  DTODocumentationPageCreateActionInputV2,
6185
6170
  DTODocumentationPageUpdateActionInputV2,
@@ -6208,154 +6193,154 @@ var DTOElementActionInput = z218.discriminatedUnion("type", [
6208
6193
  ]);
6209
6194
 
6210
6195
  // src/api/dto/elements/get-elements-v2.ts
6211
- import { z as z219 } from "zod";
6212
- var DTOElementsGetTypeFilter = z219.enum(["FigmaNode"]);
6213
- var DTOElementsGetQuerySchema = z219.object({
6214
- types: z219.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6196
+ import { z as z217 } from "zod";
6197
+ var DTOElementsGetTypeFilter = z217.enum(["FigmaNode"]);
6198
+ var DTOElementsGetQuerySchema = z217.object({
6199
+ types: z217.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6215
6200
  });
6216
- var DTOElementsGetOutput = z219.object({
6217
- figmaNodes: z219.array(DTOFigmaNode).optional()
6201
+ var DTOElementsGetOutput = z217.object({
6202
+ figmaNodes: z217.array(DTOFigmaNode).optional()
6218
6203
  });
6219
6204
 
6220
6205
  // src/api/dto/figma-components/assets/download.ts
6221
- import { z as z220 } from "zod";
6222
- var DTOAssetRenderConfiguration = z220.object({
6223
- prefix: z220.string().optional(),
6224
- suffix: z220.string().optional(),
6225
- scale: z220.enum(["x1", "x2", "x3", "x4"]),
6226
- format: z220.enum(["png", "pdf", "svg"])
6227
- });
6228
- var DTORenderedAssetFile = z220.object({
6229
- assetId: z220.string(),
6230
- fileName: z220.string(),
6231
- sourceUrl: z220.string(),
6206
+ import { z as z218 } from "zod";
6207
+ var DTOAssetRenderConfiguration = z218.object({
6208
+ prefix: z218.string().optional(),
6209
+ suffix: z218.string().optional(),
6210
+ scale: z218.enum(["x1", "x2", "x3", "x4"]),
6211
+ format: z218.enum(["png", "pdf", "svg"])
6212
+ });
6213
+ var DTORenderedAssetFile = z218.object({
6214
+ assetId: z218.string(),
6215
+ fileName: z218.string(),
6216
+ sourceUrl: z218.string(),
6232
6217
  settings: DTOAssetRenderConfiguration,
6233
- originalName: z220.string()
6218
+ originalName: z218.string()
6234
6219
  });
6235
- var DTODownloadAssetsRequest = z220.object({
6236
- persistentIds: z220.array(z220.string().uuid()).optional(),
6220
+ var DTODownloadAssetsRequest = z218.object({
6221
+ persistentIds: z218.array(z218.string().uuid()).optional(),
6237
6222
  settings: DTOAssetRenderConfiguration.array()
6238
6223
  });
6239
- var DTODownloadAssetsResponse = z220.object({
6224
+ var DTODownloadAssetsResponse = z218.object({
6240
6225
  items: DTORenderedAssetFile.array()
6241
6226
  });
6242
6227
 
6243
6228
  // src/api/dto/liveblocks/auth-response.ts
6244
- import { z as z221 } from "zod";
6245
- var DTOLiveblocksAuthResponse = z221.object({
6246
- token: z221.string()
6229
+ import { z as z219 } from "zod";
6230
+ var DTOLiveblocksAuthResponse = z219.object({
6231
+ token: z219.string()
6247
6232
  });
6248
6233
 
6249
6234
  // src/api/dto/users/update.ts
6250
- import { z as z222 } from "zod";
6251
- var DTOUserProfileUpdateResponse = z222.object({
6235
+ import { z as z220 } from "zod";
6236
+ var DTOUserProfileUpdateResponse = z220.object({
6252
6237
  user: User
6253
6238
  });
6254
6239
 
6255
6240
  // src/api/dto/users/user.ts
6256
- import { z as z223 } from "zod";
6257
- var DTOUserProfile = z223.object({
6258
- name: z223.string(),
6259
- nickname: z223.string().optional(),
6260
- avatar: z223.string().optional()
6261
- });
6262
- var DTOUser = z223.object({
6263
- id: z223.string(),
6264
- email: z223.string(),
6241
+ import { z as z221 } from "zod";
6242
+ var DTOUserProfile = z221.object({
6243
+ name: z221.string(),
6244
+ nickname: z221.string().optional(),
6245
+ avatar: z221.string().optional()
6246
+ });
6247
+ var DTOUser = z221.object({
6248
+ id: z221.string(),
6249
+ email: z221.string(),
6265
6250
  profile: DTOUserProfile
6266
6251
  });
6267
6252
 
6268
6253
  // src/api/dto/workspaces/git.ts
6269
- import { z as z224 } from "zod";
6270
- var DTOGitOrganization = z224.object({
6271
- id: z224.string(),
6272
- name: z224.string(),
6273
- url: z224.string(),
6274
- slug: z224.string()
6275
- });
6276
- var DTOGitProject = z224.object({
6277
- id: z224.string(),
6278
- name: z224.string(),
6279
- url: z224.string(),
6280
- slug: z224.string()
6281
- });
6282
- var DTOGitRepository = z224.object({
6283
- id: z224.string(),
6284
- name: z224.string(),
6285
- url: z224.string(),
6286
- slug: z224.string(),
6287
- defaultBranch: z224.string().optional()
6288
- });
6289
- var DTOGitBranch = z224.object({
6290
- name: z224.string(),
6291
- lastCommitId: z224.string()
6254
+ import { z as z222 } from "zod";
6255
+ var DTOGitOrganization = z222.object({
6256
+ id: z222.string(),
6257
+ name: z222.string(),
6258
+ url: z222.string(),
6259
+ slug: z222.string()
6260
+ });
6261
+ var DTOGitProject = z222.object({
6262
+ id: z222.string(),
6263
+ name: z222.string(),
6264
+ url: z222.string(),
6265
+ slug: z222.string()
6266
+ });
6267
+ var DTOGitRepository = z222.object({
6268
+ id: z222.string(),
6269
+ name: z222.string(),
6270
+ url: z222.string(),
6271
+ slug: z222.string(),
6272
+ defaultBranch: z222.string().optional()
6273
+ });
6274
+ var DTOGitBranch = z222.object({
6275
+ name: z222.string(),
6276
+ lastCommitId: z222.string()
6292
6277
  });
6293
6278
 
6294
6279
  // src/api/dto/workspaces/integrations.ts
6295
- import { z as z225 } from "zod";
6280
+ import { z as z223 } from "zod";
6296
6281
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
6297
6282
  accessToken: true,
6298
6283
  refreshToken: true
6299
6284
  });
6300
- var DTOIntegration = z225.object({
6301
- id: z225.string(),
6302
- workspaceId: z225.string(),
6285
+ var DTOIntegration = z223.object({
6286
+ id: z223.string(),
6287
+ workspaceId: z223.string(),
6303
6288
  type: ExtendedIntegrationType,
6304
- createdAt: z225.coerce.date(),
6305
- integrationCredentials: z225.array(DTOIntegrationCredentials).optional(),
6306
- integrationDesignSystems: z225.array(IntegrationDesignSystem).optional()
6289
+ createdAt: z223.coerce.date(),
6290
+ integrationCredentials: z223.array(DTOIntegrationCredentials).optional(),
6291
+ integrationDesignSystems: z223.array(IntegrationDesignSystem).optional()
6307
6292
  });
6308
- var DTOIntegrationOAuthGetResponse = z225.object({
6309
- url: z225.string()
6293
+ var DTOIntegrationOAuthGetResponse = z223.object({
6294
+ url: z223.string()
6310
6295
  });
6311
- var DTOIntegrationPostResponse = z225.object({
6296
+ var DTOIntegrationPostResponse = z223.object({
6312
6297
  integration: DTOIntegration
6313
6298
  });
6314
- var DTOIntegrationsGetListResponse = z225.object({
6299
+ var DTOIntegrationsGetListResponse = z223.object({
6315
6300
  integrations: DTOIntegration.array()
6316
6301
  });
6317
6302
 
6318
6303
  // src/api/dto/workspaces/membership.ts
6319
- import { z as z228 } from "zod";
6304
+ import { z as z226 } from "zod";
6320
6305
 
6321
6306
  // src/api/dto/workspaces/workspace.ts
6322
- import { z as z227 } from "zod";
6307
+ import { z as z225 } from "zod";
6323
6308
 
6324
6309
  // src/api/dto/workspaces/npm-registry.ts
6325
- import { z as z226 } from "zod";
6310
+ import { z as z224 } from "zod";
6326
6311
  var DTONpmRegistryConfigConstants = {
6327
6312
  passwordPlaceholder: "redacted"
6328
6313
  };
6329
- var DTONpmRegistryConfig = z226.object({
6314
+ var DTONpmRegistryConfig = z224.object({
6330
6315
  // Registry basic configuration
6331
6316
  registryType: NpmRegistryType,
6332
- registryUrl: z226.string(),
6333
- customRegistryUrl: z226.string().optional(),
6317
+ registryUrl: z224.string(),
6318
+ customRegistryUrl: z224.string().optional(),
6334
6319
  // URL of Supernova NPM packages proxy
6335
- proxyUrl: z226.string(),
6320
+ proxyUrl: z224.string(),
6336
6321
  // Auth configuration
6337
6322
  authType: NpmRegistryAuthType,
6338
- accessToken: z226.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6339
- username: z226.string().optional(),
6340
- password: z226.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6323
+ accessToken: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6324
+ username: z224.string().optional(),
6325
+ password: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6341
6326
  // NPM package scopes for whih the proxy should be enabled
6342
- enabledScopes: z226.array(z226.string()),
6327
+ enabledScopes: z224.array(z224.string()),
6343
6328
  // True if client should bypass Supernova proxy and connect directly to the registry
6344
6329
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6345
- bypassProxy: z226.boolean()
6330
+ bypassProxy: z224.boolean()
6346
6331
  });
6347
6332
 
6348
6333
  // src/api/dto/workspaces/workspace.ts
6349
- var DTOWorkspace = z227.object({
6350
- id: z227.string(),
6334
+ var DTOWorkspace = z225.object({
6335
+ id: z225.string(),
6351
6336
  profile: WorkspaceProfile,
6352
6337
  subscription: Subscription,
6353
6338
  npmRegistry: DTONpmRegistryConfig.optional()
6354
6339
  });
6355
6340
 
6356
6341
  // src/api/dto/workspaces/membership.ts
6357
- var DTOWorkspaceRole = z228.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6358
- var DTOUserWorkspaceMembership = z228.object({
6342
+ var DTOWorkspaceRole = z226.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6343
+ var DTOUserWorkspaceMembership = z226.object({
6359
6344
  // Workspace the user is a member of
6360
6345
  workspace: DTOWorkspace,
6361
6346
  // Assigned role the user has in the workspace
@@ -6365,8 +6350,8 @@ var DTOUserWorkspaceMembership = z228.object({
6365
6350
  // when a workspace's subscription is downgraded to free tier
6366
6351
  effectiveRole: DTOWorkspaceRole
6367
6352
  });
6368
- var DTOUserWorkspaceMembershipsResponse = z228.object({
6369
- membership: z228.array(DTOUserWorkspaceMembership)
6353
+ var DTOUserWorkspaceMembershipsResponse = z226.object({
6354
+ membership: z226.array(DTOUserWorkspaceMembership)
6370
6355
  });
6371
6356
 
6372
6357
  // src/utils/hash.ts
@@ -6428,7 +6413,7 @@ function generateHash(input, debug = false) {
6428
6413
  }
6429
6414
 
6430
6415
  // src/yjs/design-system-content/documentation-hierarchy.ts
6431
- import { z as z229 } from "zod";
6416
+ import { z as z227 } from "zod";
6432
6417
 
6433
6418
  // src/yjs/version-room/base.ts
6434
6419
  var VersionRoomBaseYDoc = class {
@@ -6957,24 +6942,24 @@ var FrontendVersionRoomYDoc = class {
6957
6942
  };
6958
6943
 
6959
6944
  // src/yjs/design-system-content/documentation-hierarchy.ts
6960
- var DocumentationHierarchySettings = z229.object({
6961
- routingVersion: z229.string(),
6962
- isDraftFeatureAdopted: z229.boolean(),
6963
- isApprovalFeatureEnabled: z229.boolean(),
6964
- approvalRequiredForPublishing: z229.boolean()
6945
+ var DocumentationHierarchySettings = z227.object({
6946
+ routingVersion: z227.string(),
6947
+ isDraftFeatureAdopted: z227.boolean(),
6948
+ isApprovalFeatureEnabled: z227.boolean(),
6949
+ approvalRequiredForPublishing: z227.boolean()
6965
6950
  });
6966
6951
  function yjsToDocumentationHierarchy(doc) {
6967
6952
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
6968
6953
  }
6969
6954
 
6970
6955
  // src/yjs/design-system-content/item-configuration.ts
6971
- import { z as z230 } from "zod";
6972
- var DTODocumentationPageRoomHeaderData = z230.object({
6973
- title: z230.string(),
6956
+ import { z as z228 } from "zod";
6957
+ var DTODocumentationPageRoomHeaderData = z228.object({
6958
+ title: z228.string(),
6974
6959
  configuration: DTODocumentationItemConfigurationV2
6975
6960
  });
6976
- var DTODocumentationPageRoomHeaderDataUpdate = z230.object({
6977
- title: z230.string().optional(),
6961
+ var DTODocumentationPageRoomHeaderDataUpdate = z228.object({
6962
+ title: z228.string().optional(),
6978
6963
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
6979
6964
  });
6980
6965
  function itemConfigurationToYjs(yDoc, item) {
@@ -7025,7 +7010,7 @@ function yjsToItemConfiguration(yDoc) {
7025
7010
  header: rawHeader
7026
7011
  };
7027
7012
  return {
7028
- title: z230.string().parse(title),
7013
+ title: z228.string().parse(title),
7029
7014
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7030
7015
  };
7031
7016
  }
@@ -7035,9 +7020,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7035
7020
  var PageSectionEditorModel = PageSectionEditorModelV2;
7036
7021
 
7037
7022
  // src/yjs/docs-editor/model/page.ts
7038
- import { z as z231 } from "zod";
7039
- var DocumentationPageEditorModel = z231.object({
7040
- blocks: z231.array(DocumentationPageContentItem)
7023
+ import { z as z229 } from "zod";
7024
+ var DocumentationPageEditorModel = z229.object({
7025
+ blocks: z229.array(DocumentationPageContentItem)
7041
7026
  });
7042
7027
 
7043
7028
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -10901,7 +10886,7 @@ var blocks = [
10901
10886
 
10902
10887
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10903
10888
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10904
- import { z as z232 } from "zod";
10889
+ import { z as z230 } from "zod";
10905
10890
  function yDocToPage(yDoc, definitions) {
10906
10891
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10907
10892
  }
@@ -10981,7 +10966,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10981
10966
  return null;
10982
10967
  return {
10983
10968
  id,
10984
- title: getProsemirrorAttribute(prosemirrorNode, "title", z232.string()) ?? "",
10969
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z230.string()) ?? "",
10985
10970
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10986
10971
  };
10987
10972
  }
@@ -11016,7 +11001,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11016
11001
  });
11017
11002
  }
11018
11003
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11019
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z232.string());
11004
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z230.string());
11020
11005
  if (!definitionId) {
11021
11006
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11022
11007
  return [];
@@ -11058,7 +11043,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11058
11043
  if (!id)
11059
11044
  return null;
11060
11045
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11061
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z232.string().optional()));
11046
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z230.string().optional()));
11062
11047
  return {
11063
11048
  id,
11064
11049
  type: "Block",
@@ -11186,10 +11171,10 @@ function parseRichTextAttribute(mark) {
11186
11171
  return null;
11187
11172
  }
11188
11173
  function parseProsemirrorLink(mark) {
11189
- const href = getProsemirrorAttribute(mark, "href", z232.string().optional());
11174
+ const href = getProsemirrorAttribute(mark, "href", z230.string().optional());
11190
11175
  if (!href)
11191
11176
  return null;
11192
- const target = getProsemirrorAttribute(mark, "target", z232.string().optional());
11177
+ const target = getProsemirrorAttribute(mark, "target", z230.string().optional());
11193
11178
  const openInNewTab = target === "_blank";
11194
11179
  if (href.startsWith("@")) {
11195
11180
  return {
@@ -11208,10 +11193,10 @@ function parseProsemirrorLink(mark) {
11208
11193
  }
11209
11194
  }
11210
11195
  function parseProsemirrorCommentHighlight(mark) {
11211
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z232.string().optional());
11196
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z230.string().optional());
11212
11197
  if (!highlightId)
11213
11198
  return null;
11214
- const isResolved = getProsemirrorAttribute(mark, "resolved", z232.boolean().optional()) ?? false;
11199
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z230.boolean().optional()) ?? false;
11215
11200
  return {
11216
11201
  type: "Comment",
11217
11202
  commentHighlightId: highlightId,
@@ -11223,7 +11208,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11223
11208
  if (!id)
11224
11209
  return null;
11225
11210
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11226
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z232.boolean().optional()) !== false;
11211
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z230.boolean().optional()) !== false;
11227
11212
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11228
11213
  if (!tableChild) {
11229
11214
  return emptyTable(id, variantId, 0);
@@ -11270,9 +11255,9 @@ function parseAsTableCell(prosemirrorNode) {
11270
11255
  const id = getProsemirrorBlockId(prosemirrorNode);
11271
11256
  if (!id)
11272
11257
  return null;
11273
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z232.string().optional());
11258
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z230.string().optional());
11274
11259
  let columnWidth;
11275
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z232.array(z232.number()).optional());
11260
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z230.array(z230.number()).optional());
11276
11261
  if (columnWidthArray) {
11277
11262
  columnWidth = roundDimension(columnWidthArray[0]);
11278
11263
  }
@@ -11310,7 +11295,7 @@ function parseAsTableNode(prosemirrorNode) {
11310
11295
  value: parseRichText(prosemirrorNode.content ?? [])
11311
11296
  };
11312
11297
  case "image":
11313
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z232.string());
11298
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z230.string());
11314
11299
  if (!items)
11315
11300
  return null;
11316
11301
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11430,7 +11415,7 @@ function definitionExpectsPlaceholderItem(definition) {
11430
11415
  );
11431
11416
  }
11432
11417
  function parseBlockItems(prosemirrorNode, definition) {
11433
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z232.string());
11418
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z230.string());
11434
11419
  if (!itemsString)
11435
11420
  return null;
11436
11421
  const itemsJson = JSON.parse(itemsString);
@@ -11442,18 +11427,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11442
11427
  }
11443
11428
  function parseAppearance(prosemirrorNode) {
11444
11429
  let appearance = {};
11445
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z232.string().optional());
11430
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z230.string().optional());
11446
11431
  if (rawAppearanceString) {
11447
11432
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11448
11433
  if (parsedAppearance.success) {
11449
11434
  appearance = parsedAppearance.data;
11450
11435
  }
11451
11436
  }
11452
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z232.number().optional());
11437
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z230.number().optional());
11453
11438
  if (columns) {
11454
11439
  appearance.numberOfColumns = columns;
11455
11440
  }
11456
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z232.string().optional());
11441
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z230.string().optional());
11457
11442
  if (backgroundColor) {
11458
11443
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11459
11444
  if (parsedColor.success) {
@@ -11548,13 +11533,13 @@ function valueSchemaForPropertyType(type) {
11548
11533
  }
11549
11534
  }
11550
11535
  function getProsemirrorBlockId(prosemirrorNode) {
11551
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z232.string());
11536
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z230.string());
11552
11537
  if (!id)
11553
11538
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11554
11539
  return id;
11555
11540
  }
11556
11541
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11557
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z232.string()));
11542
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z230.string()));
11558
11543
  }
11559
11544
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11560
11545
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11632,6 +11617,8 @@ export {
11632
11617
  DTODeleteElementPropertyDefinitionInputV2,
11633
11618
  DTODesignElementsDataDiffResponse,
11634
11619
  DTODesignSystem,
11620
+ DTODesignSystemCreateInput,
11621
+ DTODesignSystemCreateResponse,
11635
11622
  DTODesignSystemMember,
11636
11623
  DTODesignSystemMemberListResponse,
11637
11624
  DTODesignSystemMembersUpdatePayload,