@supernova-studio/client 0.54.5 → 0.54.7

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