@supernova-studio/client 0.54.5 → 0.54.6

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