@supernova-studio/client 0.48.30 → 0.48.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -20,12 +20,12 @@ import { z as z11 } from "zod";
20
20
  import { z as z12 } from "zod";
21
21
  import { z as z13 } from "zod";
22
22
  import { z as z14 } from "zod";
23
- import { z as z124 } from "zod";
23
+ import { z as z125 } 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 z124 } from "zod";
27
28
  import { z as z123 } from "zod";
28
- import { z as z122 } from "zod";
29
29
  import { z as z18 } from "zod";
30
30
  import { z as z19 } from "zod";
31
31
  import { z as z20 } from "zod";
@@ -122,26 +122,26 @@ import { z as z108 } from "zod";
122
122
  import { z as z109 } from "zod";
123
123
  import { z as z110 } from "zod";
124
124
  import { z as z111 } from "zod";
125
+ import { z as z112 } from "zod";
126
+ import { z as z117 } from "zod";
125
127
  import { z as z116 } from "zod";
126
- import { z as z115 } from "zod";
127
128
  import IPCIDR from "ip-cidr";
128
- import { z as z114 } from "zod";
129
- import { z as z112 } from "zod";
129
+ import { z as z115 } from "zod";
130
130
  import { z as z113 } from "zod";
131
- import { z as z117 } from "zod";
131
+ import { z as z114 } from "zod";
132
132
  import { z as z118 } from "zod";
133
133
  import { z as z119 } from "zod";
134
134
  import { z as z120 } from "zod";
135
135
  import { z as z121 } from "zod";
136
+ import { z as z122 } from "zod";
137
+ import { z as z132 } from "zod";
136
138
  import { z as z131 } from "zod";
137
- import { z as z130 } from "zod";
138
- import { z as z125 } from "zod";
139
139
  import { z as z126 } from "zod";
140
140
  import { z as z127 } from "zod";
141
141
  import { z as z128 } from "zod";
142
142
  import { z as z129 } from "zod";
143
- import { z as z143 } from "zod";
144
- import { z as z132 } from "zod";
143
+ import { z as z130 } from "zod";
144
+ import { z as z144 } from "zod";
145
145
  import { z as z133 } from "zod";
146
146
  import { z as z134 } from "zod";
147
147
  import { z as z135 } from "zod";
@@ -150,33 +150,34 @@ import { z as z137 } from "zod";
150
150
  import { z as z138 } from "zod";
151
151
  import { z as z139 } from "zod";
152
152
  import { z as z140 } from "zod";
153
- import { z as z142 } from "zod";
154
153
  import { z as z141 } from "zod";
155
- import { z as z144 } from "zod";
156
- import { z as z147 } from "zod";
154
+ import { z as z143 } from "zod";
155
+ import { z as z142 } from "zod";
157
156
  import { z as z145 } from "zod";
158
- import { z as z146 } from "zod";
159
157
  import { z as z148 } from "zod";
158
+ import { z as z146 } from "zod";
159
+ import { z as z147 } from "zod";
160
160
  import { z as z149 } from "zod";
161
161
  import { z as z150 } from "zod";
162
162
  import { z as z151 } from "zod";
163
163
  import { z as z152 } from "zod";
164
164
  import { z as z153 } from "zod";
165
- import { z as z155 } from "zod";
166
165
  import { z as z154 } from "zod";
167
166
  import { z as z156 } from "zod";
167
+ import { z as z155 } from "zod";
168
168
  import { z as z157 } from "zod";
169
169
  import { z as z158 } from "zod";
170
170
  import { z as z159 } from "zod";
171
171
  import { z as z160 } from "zod";
172
- import { z as z168 } from "zod";
173
- import { z as z162 } from "zod";
174
172
  import { z as z161 } from "zod";
173
+ import { z as z169 } from "zod";
175
174
  import { z as z163 } from "zod";
175
+ import { z as z162 } from "zod";
176
176
  import { z as z164 } from "zod";
177
177
  import { z as z165 } from "zod";
178
178
  import { z as z166 } from "zod";
179
179
  import { z as z167 } from "zod";
180
+ import { z as z168 } from "zod";
180
181
  var __defProp2 = Object.defineProperty;
181
182
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
182
183
  var __publicField2 = (obj, key, value) => {
@@ -3410,37 +3411,50 @@ var DocumentationPage = z105.object({
3410
3411
  createdAt: z105.coerce.date(),
3411
3412
  updatedAt: z105.coerce.date()
3412
3413
  });
3413
- var DocumentationComment = z106.object({
3414
- id: z106.string(),
3415
- authorId: z106.string(),
3416
- threadId: z106.string(),
3417
- roomId: z106.string(),
3418
- createdAt: z106.coerce.date(),
3419
- editedAt: z106.coerce.date().optional(),
3420
- deletedAt: z106.coerce.date().optional(),
3421
- body: z106.string()
3422
- });
3423
- var DocumentationCommentThread = z106.object({
3424
- id: z106.string(),
3425
- roomId: z106.string(),
3426
- pagePersistentId: z106.string(),
3427
- brandId: z106.string(),
3414
+ var DocumentationSettings = z106.object({
3415
+ // Basic
3428
3416
  designSystemVersionId: z106.string(),
3429
- designSystemId: z106.string(),
3430
- blockId: z106.string().optional(),
3431
- resolved: z106.boolean(),
3432
3417
  createdAt: z106.coerce.date(),
3433
- updatedAt: z106.coerce.date()
3418
+ updatedAt: z106.coerce.date(),
3419
+ // Configuration
3420
+ isTabbedLayoutEnabled: z106.boolean(),
3421
+ storybookEmbedErrorMessage: z106.string().optional(),
3422
+ renderCodePackageJson: z106.string().optional(),
3423
+ selectedBrandPersistentId: z106.string().optional(),
3424
+ serveDefaultVersionOnly: z106.boolean(),
3425
+ isPublic: z106.boolean()
3426
+ });
3427
+ var DocumentationComment = z107.object({
3428
+ id: z107.string(),
3429
+ authorId: z107.string(),
3430
+ threadId: z107.string(),
3431
+ roomId: z107.string(),
3432
+ createdAt: z107.coerce.date(),
3433
+ editedAt: z107.coerce.date().optional(),
3434
+ deletedAt: z107.coerce.date().optional(),
3435
+ body: z107.string()
3434
3436
  });
3435
- var DesignElementSnapshotReason = z107.enum(["Publish", "Deletion"]);
3436
- var DesignElementSnapshotBase = z107.object({
3437
+ var DocumentationCommentThread = z107.object({
3437
3438
  id: z107.string(),
3438
- persistentId: z107.string(),
3439
+ roomId: z107.string(),
3440
+ pagePersistentId: z107.string(),
3441
+ brandId: z107.string(),
3439
3442
  designSystemVersionId: z107.string(),
3443
+ designSystemId: z107.string(),
3444
+ blockId: z107.string().optional(),
3445
+ resolved: z107.boolean(),
3440
3446
  createdAt: z107.coerce.date(),
3441
- updatedAt: z107.coerce.date(),
3447
+ updatedAt: z107.coerce.date()
3448
+ });
3449
+ var DesignElementSnapshotReason = z108.enum(["Publish", "Deletion"]);
3450
+ var DesignElementSnapshotBase = z108.object({
3451
+ id: z108.string(),
3452
+ persistentId: z108.string(),
3453
+ designSystemVersionId: z108.string(),
3454
+ createdAt: z108.coerce.date(),
3455
+ updatedAt: z108.coerce.date(),
3442
3456
  reason: DesignElementSnapshotReason,
3443
- createdByUserId: z107.string()
3457
+ createdByUserId: z108.string()
3444
3458
  });
3445
3459
  function pickLatestSnapshots(snapshots, getSnapshotElementId) {
3446
3460
  const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
@@ -3451,8 +3465,8 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
3451
3465
  }
3452
3466
  var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
3453
3467
  page: DocumentationPageV2,
3454
- pageContentHash: z108.string(),
3455
- pageContentStorageKey: z108.string()
3468
+ pageContentHash: z109.string(),
3469
+ pageContentStorageKey: z109.string()
3456
3470
  });
3457
3471
  function pickLatestPageSnapshots(snapshots) {
3458
3472
  return pickLatestSnapshots(snapshots, (s) => s.page.id);
@@ -3463,164 +3477,164 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
3463
3477
  function pickLatestGroupSnapshots(snapshots) {
3464
3478
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
3465
3479
  }
3466
- var ElementViewBaseColumnType = z109.enum(["Name", "Description", "Value", "UpdatedAt"]);
3467
- var ElementViewColumnType = z109.union([
3468
- z109.literal("BaseProperty"),
3469
- z109.literal("PropertyDefinition"),
3470
- z109.literal("Theme")
3480
+ var ElementViewBaseColumnType = z110.enum(["Name", "Description", "Value", "UpdatedAt"]);
3481
+ var ElementViewColumnType = z110.union([
3482
+ z110.literal("BaseProperty"),
3483
+ z110.literal("PropertyDefinition"),
3484
+ z110.literal("Theme")
3471
3485
  ]);
3472
- var ElementViewColumnSharedAttributes = z109.object({
3473
- id: z109.string(),
3474
- persistentId: z109.string(),
3475
- elementDataViewId: z109.string(),
3476
- sortPosition: z109.number(),
3477
- width: z109.number()
3486
+ var ElementViewColumnSharedAttributes = z110.object({
3487
+ id: z110.string(),
3488
+ persistentId: z110.string(),
3489
+ elementDataViewId: z110.string(),
3490
+ sortPosition: z110.number(),
3491
+ width: z110.number()
3478
3492
  });
3479
3493
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
3480
- type: z109.literal("BaseProperty"),
3494
+ type: z110.literal("BaseProperty"),
3481
3495
  basePropertyType: ElementViewBaseColumnType
3482
3496
  });
3483
3497
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3484
- type: z109.literal("PropertyDefinition"),
3485
- propertyDefinitionId: z109.string()
3498
+ type: z110.literal("PropertyDefinition"),
3499
+ propertyDefinitionId: z110.string()
3486
3500
  });
3487
3501
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3488
- type: z109.literal("Theme"),
3489
- themeId: z109.string()
3502
+ type: z110.literal("Theme"),
3503
+ themeId: z110.string()
3490
3504
  });
3491
- var ElementViewColumn = z109.discriminatedUnion("type", [
3505
+ var ElementViewColumn = z110.discriminatedUnion("type", [
3492
3506
  ElementViewBasePropertyColumn,
3493
3507
  ElementViewPropertyDefinitionColumn,
3494
3508
  ElementViewThemeColumn
3495
3509
  ]);
3496
- var ElementView = z110.object({
3497
- id: z110.string(),
3498
- persistentId: z110.string(),
3499
- designSystemVersionId: z110.string(),
3500
- name: z110.string(),
3501
- description: z110.string(),
3502
- targetElementType: ElementPropertyTargetType,
3503
- isDefault: z110.boolean()
3504
- });
3505
- var Brand = z111.object({
3510
+ var ElementView = z111.object({
3506
3511
  id: z111.string(),
3507
- designSystemVersionId: z111.string(),
3508
3512
  persistentId: z111.string(),
3513
+ designSystemVersionId: z111.string(),
3509
3514
  name: z111.string(),
3510
- description: z111.string()
3511
- });
3512
- var NpmRegistryAuthType = z112.enum(["Basic", "Bearer", "None", "Custom"]);
3513
- var NpmRegistryType = z112.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3514
- var NpmRegistryBasicAuthConfig = z112.object({
3515
- authType: z112.literal(NpmRegistryAuthType.Enum.Basic),
3516
- username: z112.string(),
3517
- password: z112.string()
3518
- });
3519
- var NpmRegistryBearerAuthConfig = z112.object({
3520
- authType: z112.literal(NpmRegistryAuthType.Enum.Bearer),
3521
- accessToken: z112.string()
3522
- });
3523
- var NpmRegistryNoAuthConfig = z112.object({
3524
- authType: z112.literal(NpmRegistryAuthType.Enum.None)
3525
- });
3526
- var NpmRegistrCustomAuthConfig = z112.object({
3527
- authType: z112.literal(NpmRegistryAuthType.Enum.Custom),
3528
- authHeaderName: z112.string(),
3529
- authHeaderValue: z112.string()
3530
- });
3531
- var NpmRegistryAuthConfig = z112.discriminatedUnion("authType", [
3515
+ description: z111.string(),
3516
+ targetElementType: ElementPropertyTargetType,
3517
+ isDefault: z111.boolean()
3518
+ });
3519
+ var Brand = z112.object({
3520
+ id: z112.string(),
3521
+ designSystemVersionId: z112.string(),
3522
+ persistentId: z112.string(),
3523
+ name: z112.string(),
3524
+ description: z112.string()
3525
+ });
3526
+ var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
3527
+ var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3528
+ var NpmRegistryBasicAuthConfig = z113.object({
3529
+ authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
3530
+ username: z113.string(),
3531
+ password: z113.string()
3532
+ });
3533
+ var NpmRegistryBearerAuthConfig = z113.object({
3534
+ authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
3535
+ accessToken: z113.string()
3536
+ });
3537
+ var NpmRegistryNoAuthConfig = z113.object({
3538
+ authType: z113.literal(NpmRegistryAuthType.Enum.None)
3539
+ });
3540
+ var NpmRegistrCustomAuthConfig = z113.object({
3541
+ authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
3542
+ authHeaderName: z113.string(),
3543
+ authHeaderValue: z113.string()
3544
+ });
3545
+ var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
3532
3546
  NpmRegistryBasicAuthConfig,
3533
3547
  NpmRegistryBearerAuthConfig,
3534
3548
  NpmRegistryNoAuthConfig,
3535
3549
  NpmRegistrCustomAuthConfig
3536
3550
  ]);
3537
- var NpmRegistryConfigBase = z112.object({
3551
+ var NpmRegistryConfigBase = z113.object({
3538
3552
  registryType: NpmRegistryType,
3539
- enabledScopes: z112.array(z112.string()),
3540
- customRegistryUrl: z112.string().optional(),
3541
- bypassProxy: z112.boolean().default(false),
3542
- npmProxyRegistryConfigId: z112.string().optional(),
3543
- npmProxyVersion: z112.number().optional()
3553
+ enabledScopes: z113.array(z113.string()),
3554
+ customRegistryUrl: z113.string().optional(),
3555
+ bypassProxy: z113.boolean().default(false),
3556
+ npmProxyRegistryConfigId: z113.string().optional(),
3557
+ npmProxyVersion: z113.number().optional()
3544
3558
  });
3545
3559
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
3546
- var SsoProvider = z113.object({
3547
- providerId: z113.string(),
3548
- defaultAutoInviteValue: z113.boolean(),
3549
- autoInviteDomains: z113.record(z113.string(), z113.boolean()),
3550
- skipDocsSupernovaLogin: z113.boolean(),
3551
- areInvitesDisabled: z113.boolean(),
3552
- isTestMode: z113.boolean(),
3553
- emailDomains: z113.array(z113.string()),
3554
- metadataXml: z113.string().nullish()
3560
+ var SsoProvider = z114.object({
3561
+ providerId: z114.string(),
3562
+ defaultAutoInviteValue: z114.boolean(),
3563
+ autoInviteDomains: z114.record(z114.string(), z114.boolean()),
3564
+ skipDocsSupernovaLogin: z114.boolean(),
3565
+ areInvitesDisabled: z114.boolean(),
3566
+ isTestMode: z114.boolean(),
3567
+ emailDomains: z114.array(z114.string()),
3568
+ metadataXml: z114.string().nullish()
3555
3569
  });
3556
3570
  var isValidCIDR = (value) => {
3557
3571
  return IPCIDR.isValidAddress(value);
3558
3572
  };
3559
- var WorkspaceIpWhitelistEntry = z114.object({
3560
- isEnabled: z114.boolean(),
3561
- name: z114.string(),
3562
- range: z114.string().refine(isValidCIDR, {
3573
+ var WorkspaceIpWhitelistEntry = z115.object({
3574
+ isEnabled: z115.boolean(),
3575
+ name: z115.string(),
3576
+ range: z115.string().refine(isValidCIDR, {
3563
3577
  message: "Invalid IP CIDR"
3564
3578
  })
3565
3579
  });
3566
- var WorkspaceIpSettings = z114.object({
3567
- isEnabledForCloud: z114.boolean(),
3568
- isEnabledForDocs: z114.boolean(),
3569
- entries: z114.array(WorkspaceIpWhitelistEntry)
3580
+ var WorkspaceIpSettings = z115.object({
3581
+ isEnabledForCloud: z115.boolean(),
3582
+ isEnabledForDocs: z115.boolean(),
3583
+ entries: z115.array(WorkspaceIpWhitelistEntry)
3570
3584
  });
3571
- var WorkspaceProfile = z114.object({
3572
- name: z114.string(),
3573
- handle: z114.string(),
3574
- color: z114.string(),
3575
- avatar: nullishToOptional(z114.string()),
3585
+ var WorkspaceProfile = z115.object({
3586
+ name: z115.string(),
3587
+ handle: z115.string(),
3588
+ color: z115.string(),
3589
+ avatar: nullishToOptional(z115.string()),
3576
3590
  billingDetails: nullishToOptional(BillingDetails)
3577
3591
  });
3578
3592
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
3579
3593
  avatar: true
3580
3594
  });
3581
- var Workspace = z114.object({
3582
- id: z114.string(),
3595
+ var Workspace = z115.object({
3596
+ id: z115.string(),
3583
3597
  profile: WorkspaceProfile,
3584
3598
  subscription: Subscription,
3585
3599
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3586
3600
  sso: nullishToOptional(SsoProvider),
3587
3601
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
3588
3602
  });
3589
- var WorkspaceWithDesignSystems = z114.object({
3603
+ var WorkspaceWithDesignSystems = z115.object({
3590
3604
  workspace: Workspace,
3591
- designSystems: z114.array(DesignSystem)
3592
- });
3593
- var DesignSystemSwitcher = z115.object({
3594
- isEnabled: z115.boolean(),
3595
- designSystemIds: z115.array(z115.string())
3596
- });
3597
- var DesignSystem = z115.object({
3598
- id: z115.string(),
3599
- workspaceId: z115.string(),
3600
- name: z115.string(),
3601
- description: z115.string(),
3602
- docExporterId: nullishToOptional(z115.string()),
3603
- docSlug: z115.string(),
3604
- docUserSlug: nullishToOptional(z115.string()),
3605
- docSlugDeprecated: z115.string(),
3606
- isPublic: z115.boolean(),
3607
- isMultibrand: z115.boolean(),
3608
- docViewUrl: nullishToOptional(z115.string()),
3609
- basePrefixes: z115.array(z115.string()),
3605
+ designSystems: z115.array(DesignSystem)
3606
+ });
3607
+ var DesignSystemSwitcher = z116.object({
3608
+ isEnabled: z116.boolean(),
3609
+ designSystemIds: z116.array(z116.string())
3610
+ });
3611
+ var DesignSystem = z116.object({
3612
+ id: z116.string(),
3613
+ workspaceId: z116.string(),
3614
+ name: z116.string(),
3615
+ description: z116.string(),
3616
+ docExporterId: nullishToOptional(z116.string()),
3617
+ docSlug: z116.string(),
3618
+ docUserSlug: nullishToOptional(z116.string()),
3619
+ docSlugDeprecated: z116.string(),
3620
+ isPublic: z116.boolean(),
3621
+ isMultibrand: z116.boolean(),
3622
+ docViewUrl: nullishToOptional(z116.string()),
3623
+ basePrefixes: z116.array(z116.string()),
3610
3624
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3611
- createdAt: z115.coerce.date(),
3612
- updatedAt: z115.coerce.date()
3625
+ createdAt: z116.coerce.date(),
3626
+ updatedAt: z116.coerce.date()
3613
3627
  });
3614
- var DesignSystemWithWorkspace = z115.object({
3628
+ var DesignSystemWithWorkspace = z116.object({
3615
3629
  designSystem: DesignSystem,
3616
3630
  workspace: Workspace
3617
3631
  });
3618
3632
  var DS_NAME_MIN_LENGTH = 2;
3619
3633
  var DS_NAME_MAX_LENGTH = 64;
3620
3634
  var DS_DESC_MAX_LENGTH = 2048;
3621
- var DesignSystemUpdateInputMetadata = z116.object({
3622
- name: z116.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
3623
- description: z116.string().max(DS_DESC_MAX_LENGTH).trim().optional()
3635
+ var DesignSystemUpdateInputMetadata = z117.object({
3636
+ name: z117.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
3637
+ description: z117.string().max(DS_DESC_MAX_LENGTH).trim().optional()
3624
3638
  });
3625
3639
  var DesignSystemUpdateInput = DesignSystem.partial().omit({
3626
3640
  id: true,
@@ -3635,161 +3649,161 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
3635
3649
  var DS_NAME_MIN_LENGTH2 = 2;
3636
3650
  var DS_NAME_MAX_LENGTH2 = 64;
3637
3651
  var DS_DESC_MAX_LENGTH2 = 64;
3638
- var DesignSystemCreateInputMetadata = z117.object({
3639
- name: z117.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
3640
- description: z117.string().max(DS_DESC_MAX_LENGTH2).trim()
3652
+ var DesignSystemCreateInputMetadata = z118.object({
3653
+ name: z118.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
3654
+ description: z118.string().max(DS_DESC_MAX_LENGTH2).trim()
3641
3655
  });
3642
- var DesignSystemCreateInput = z117.object({
3656
+ var DesignSystemCreateInput = z118.object({
3643
3657
  meta: DesignSystemCreateInputMetadata,
3644
- workspaceId: z117.string(),
3645
- isPublic: z117.boolean().optional(),
3646
- basePrefixes: z117.array(z117.string()).optional(),
3647
- docUserSlug: z117.string().nullish().optional(),
3648
- source: z117.array(z117.string()).optional()
3658
+ workspaceId: z118.string(),
3659
+ isPublic: z118.boolean().optional(),
3660
+ basePrefixes: z118.array(z118.string()).optional(),
3661
+ docUserSlug: z118.string().nullish().optional(),
3662
+ source: z118.array(z118.string()).optional()
3649
3663
  });
3650
- var ExporterPropertyImageValue = z118.object({
3664
+ var ExporterPropertyImageValue = z119.object({
3651
3665
  asset: PageBlockAsset.optional(),
3652
- assetId: z118.string().optional(),
3653
- assetUrl: z118.string().optional()
3654
- });
3655
- var ExporterPropertyValue = z118.object({
3656
- key: z118.string(),
3657
- value: z118.union([
3658
- z118.number(),
3659
- z118.string(),
3660
- z118.boolean(),
3666
+ assetId: z119.string().optional(),
3667
+ assetUrl: z119.string().optional()
3668
+ });
3669
+ var ExporterPropertyValue = z119.object({
3670
+ key: z119.string(),
3671
+ value: z119.union([
3672
+ z119.number(),
3673
+ z119.string(),
3674
+ z119.boolean(),
3661
3675
  ExporterPropertyImageValue,
3662
3676
  ColorTokenData,
3663
3677
  TypographyTokenData
3664
3678
  ])
3665
3679
  });
3666
- var ExporterPropertyValuesCollection = z118.object({
3667
- id: z118.string(),
3668
- designSystemId: z118.string(),
3669
- exporterId: z118.string(),
3670
- values: z118.array(ExporterPropertyValue)
3671
- });
3672
- var PublishedDocPage = z119.object({
3680
+ var ExporterPropertyValuesCollection = z119.object({
3673
3681
  id: z119.string(),
3674
- publishedDocId: z119.string(),
3675
- pageShortPersistentId: z119.string(),
3676
- pathV1: z119.string(),
3677
- pathV2: z119.string(),
3678
- storagePath: z119.string(),
3679
- locale: z119.string().optional(),
3680
- isPrivate: z119.boolean(),
3681
- isHidden: z119.boolean(),
3682
- createdAt: z119.coerce.date(),
3683
- updatedAt: z119.coerce.date()
3682
+ designSystemId: z119.string(),
3683
+ exporterId: z119.string(),
3684
+ values: z119.array(ExporterPropertyValue)
3684
3685
  });
3685
- var publishedDocEnvironments = ["Live", "Preview"];
3686
- var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
3687
- var PublishedDocsChecksums = z120.record(z120.string());
3688
- var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
3689
- var PublishedDoc = z120.object({
3686
+ var PublishedDocPage = z120.object({
3690
3687
  id: z120.string(),
3691
- designSystemVersionId: z120.string(),
3688
+ publishedDocId: z120.string(),
3689
+ pageShortPersistentId: z120.string(),
3690
+ pathV1: z120.string(),
3691
+ pathV2: z120.string(),
3692
+ storagePath: z120.string(),
3693
+ locale: z120.string().optional(),
3694
+ isPrivate: z120.boolean(),
3695
+ isHidden: z120.boolean(),
3692
3696
  createdAt: z120.coerce.date(),
3693
- updatedAt: z120.coerce.date(),
3694
- lastPublishedAt: z120.coerce.date(),
3695
- isDefault: z120.boolean(),
3696
- isPublic: z120.boolean(),
3697
+ updatedAt: z120.coerce.date()
3698
+ });
3699
+ var publishedDocEnvironments = ["Live", "Preview"];
3700
+ var PublishedDocEnvironment = z121.enum(publishedDocEnvironments);
3701
+ var PublishedDocsChecksums = z121.record(z121.string());
3702
+ var PublishedDocRoutingVersion = z121.enum(["1", "2"]);
3703
+ var PublishedDoc = z121.object({
3704
+ id: z121.string(),
3705
+ designSystemVersionId: z121.string(),
3706
+ createdAt: z121.coerce.date(),
3707
+ updatedAt: z121.coerce.date(),
3708
+ lastPublishedAt: z121.coerce.date(),
3709
+ isDefault: z121.boolean(),
3710
+ isPublic: z121.boolean(),
3697
3711
  environment: PublishedDocEnvironment,
3698
3712
  checksums: PublishedDocsChecksums,
3699
- storagePath: z120.string(),
3700
- wasMigrated: z120.boolean(),
3713
+ storagePath: z121.string(),
3714
+ wasMigrated: z121.boolean(),
3701
3715
  routingVersion: PublishedDocRoutingVersion,
3702
- usesLocalizations: z120.boolean(),
3703
- wasPublishedWithLocalizations: z120.boolean(),
3704
- tokenCount: z120.number(),
3705
- assetCount: z120.number()
3706
- });
3707
- var DesignSystemVersion = z121.object({
3708
- id: z121.string(),
3709
- version: z121.string(),
3710
- createdAt: z121.date(),
3711
- designSystemId: z121.string(),
3712
- name: z121.string(),
3713
- comment: z121.string(),
3714
- isReadonly: z121.boolean(),
3715
- changeLog: z121.string(),
3716
- parentId: z121.string().optional(),
3717
- isDraftsFeatureAdopted: z121.boolean()
3718
- });
3719
- var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
3720
- var VersionCreationJob = z121.object({
3721
- id: z121.string(),
3722
- version: z121.string(),
3723
- designSystemId: z121.string(),
3724
- designSystemVersionId: nullishToOptional(z121.string()),
3716
+ usesLocalizations: z121.boolean(),
3717
+ wasPublishedWithLocalizations: z121.boolean(),
3718
+ tokenCount: z121.number(),
3719
+ assetCount: z121.number()
3720
+ });
3721
+ var DesignSystemVersion = z122.object({
3722
+ id: z122.string(),
3723
+ version: z122.string(),
3724
+ createdAt: z122.date(),
3725
+ designSystemId: z122.string(),
3726
+ name: z122.string(),
3727
+ comment: z122.string(),
3728
+ isReadonly: z122.boolean(),
3729
+ changeLog: z122.string(),
3730
+ parentId: z122.string().optional(),
3731
+ isDraftsFeatureAdopted: z122.boolean()
3732
+ });
3733
+ var VersionCreationJobStatus = z122.enum(["Success", "InProgress", "Error"]);
3734
+ var VersionCreationJob = z122.object({
3735
+ id: z122.string(),
3736
+ version: z122.string(),
3737
+ designSystemId: z122.string(),
3738
+ designSystemVersionId: nullishToOptional(z122.string()),
3725
3739
  status: VersionCreationJobStatus,
3726
- errorMessage: nullishToOptional(z121.string())
3740
+ errorMessage: nullishToOptional(z122.string())
3727
3741
  });
3728
3742
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3729
3743
  var BITBUCKET_MAX_LENGTH = 64;
3730
- var ExportJobDocumentationChanges = z122.object({
3731
- pagePersistentIds: z122.string().array(),
3732
- groupPersistentIds: z122.string().array()
3744
+ var ExportJobDocumentationChanges = z123.object({
3745
+ pagePersistentIds: z123.string().array(),
3746
+ groupPersistentIds: z123.string().array()
3733
3747
  });
3734
- var ExporterDestinationDocs = z122.object({
3748
+ var ExporterDestinationDocs = z123.object({
3735
3749
  environment: PublishedDocEnvironment,
3736
3750
  changes: nullishToOptional(ExportJobDocumentationChanges)
3737
3751
  });
3738
- var ExporterDestinationS3 = z122.object({});
3739
- var ExporterDestinationGithub = z122.object({
3740
- credentialId: z122.string().optional(),
3752
+ var ExporterDestinationS3 = z123.object({});
3753
+ var ExporterDestinationGithub = z123.object({
3754
+ credentialId: z123.string().optional(),
3741
3755
  // Repository
3742
- url: z122.string(),
3756
+ url: z123.string(),
3743
3757
  // Location
3744
- branch: z122.string(),
3745
- relativePath: nullishToOptional(z122.string()),
3758
+ branch: z123.string(),
3759
+ relativePath: nullishToOptional(z123.string()),
3746
3760
  // Legacy deprecated fields. Use `credentialId` instead
3747
- connectionId: nullishToOptional(z122.string()),
3748
- userId: nullishToOptional(z122.number())
3761
+ connectionId: nullishToOptional(z123.string()),
3762
+ userId: nullishToOptional(z123.number())
3749
3763
  });
3750
- var ExporterDestinationAzure = z122.object({
3751
- credentialId: z122.string().optional(),
3764
+ var ExporterDestinationAzure = z123.object({
3765
+ credentialId: z123.string().optional(),
3752
3766
  // Repository
3753
- organizationId: z122.string(),
3754
- projectId: z122.string(),
3755
- repositoryId: z122.string(),
3767
+ organizationId: z123.string(),
3768
+ projectId: z123.string(),
3769
+ repositoryId: z123.string(),
3756
3770
  // Location
3757
- branch: z122.string(),
3758
- relativePath: nullishToOptional(z122.string()),
3771
+ branch: z123.string(),
3772
+ relativePath: nullishToOptional(z123.string()),
3759
3773
  // Maybe not needed
3760
- url: nullishToOptional(z122.string()),
3774
+ url: nullishToOptional(z123.string()),
3761
3775
  // Legacy deprecated fields. Use `credentialId` instead
3762
- connectionId: nullishToOptional(z122.string()),
3763
- userId: nullishToOptional(z122.number())
3776
+ connectionId: nullishToOptional(z123.string()),
3777
+ userId: nullishToOptional(z123.number())
3764
3778
  });
3765
- var ExporterDestinationGitlab = z122.object({
3766
- credentialId: z122.string().optional(),
3779
+ var ExporterDestinationGitlab = z123.object({
3780
+ credentialId: z123.string().optional(),
3767
3781
  // Repository
3768
- projectId: z122.string(),
3782
+ projectId: z123.string(),
3769
3783
  // Location
3770
- branch: z122.string(),
3771
- relativePath: nullishToOptional(z122.string()),
3784
+ branch: z123.string(),
3785
+ relativePath: nullishToOptional(z123.string()),
3772
3786
  // Maybe not needed
3773
- url: nullishToOptional(z122.string()),
3787
+ url: nullishToOptional(z123.string()),
3774
3788
  // Legacy deprecated fields. Use `credentialId` instead
3775
- connectionId: nullishToOptional(z122.string()),
3776
- userId: nullishToOptional(z122.number())
3789
+ connectionId: nullishToOptional(z123.string()),
3790
+ userId: nullishToOptional(z123.number())
3777
3791
  });
3778
- var ExporterDestinationBitbucket = z122.object({
3779
- credentialId: z122.string().optional(),
3792
+ var ExporterDestinationBitbucket = z123.object({
3793
+ credentialId: z123.string().optional(),
3780
3794
  // Repository
3781
- workspaceSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3782
- projectKey: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3783
- repoSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3795
+ workspaceSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3796
+ projectKey: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3797
+ repoSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3784
3798
  // Location
3785
- branch: z122.string(),
3786
- relativePath: nullishToOptional(z122.string()),
3799
+ branch: z123.string(),
3800
+ relativePath: nullishToOptional(z123.string()),
3787
3801
  // Legacy deprecated fields. Use `credentialId` instead
3788
- connectionId: nullishToOptional(z122.string()),
3789
- userId: nullishToOptional(z122.number())
3802
+ connectionId: nullishToOptional(z123.string()),
3803
+ userId: nullishToOptional(z123.number())
3790
3804
  });
3791
- var ExportDestinationsMap = z122.object({
3792
- webhookUrl: z122.string().optional(),
3805
+ var ExportDestinationsMap = z123.object({
3806
+ webhookUrl: z123.string().optional(),
3793
3807
  destinationSnDocs: ExporterDestinationDocs.optional(),
3794
3808
  destinationS3: ExporterDestinationS3.optional(),
3795
3809
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3797,87 +3811,87 @@ var ExportDestinationsMap = z122.object({
3797
3811
  destinationGitlab: ExporterDestinationGitlab.optional(),
3798
3812
  destinationBitbucket: ExporterDestinationBitbucket.optional()
3799
3813
  });
3800
- var PipelineEventType = z123.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3801
- var PipelineDestinationGitType = z123.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3802
- var PipelineDestinationExtraType = z123.enum(["WebhookUrl", "S3", "Documentation"]);
3803
- var PipelineDestinationType = z123.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3804
- var Pipeline = z123.object({
3805
- id: z123.string(),
3806
- name: z123.string(),
3814
+ var PipelineEventType = z124.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3815
+ var PipelineDestinationGitType = z124.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3816
+ var PipelineDestinationExtraType = z124.enum(["WebhookUrl", "S3", "Documentation"]);
3817
+ var PipelineDestinationType = z124.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3818
+ var Pipeline = z124.object({
3819
+ id: z124.string(),
3820
+ name: z124.string(),
3807
3821
  eventType: PipelineEventType,
3808
- isEnabled: z123.boolean(),
3809
- workspaceId: z123.string(),
3810
- designSystemId: z123.string(),
3811
- exporterId: z123.string(),
3812
- brandPersistentId: z123.string().optional(),
3813
- themePersistentId: z123.string().optional(),
3822
+ isEnabled: z124.boolean(),
3823
+ workspaceId: z124.string(),
3824
+ designSystemId: z124.string(),
3825
+ exporterId: z124.string(),
3826
+ brandPersistentId: z124.string().optional(),
3827
+ themePersistentId: z124.string().optional(),
3814
3828
  // Destinations
3815
3829
  ...ExportDestinationsMap.shape
3816
3830
  });
3817
- var ExportJobDump = z124.object({
3818
- id: z124.string(),
3819
- createdAt: z124.coerce.date(),
3820
- finishedAt: z124.coerce.date(),
3821
- exportArtefacts: z124.string()
3831
+ var ExportJobDump = z125.object({
3832
+ id: z125.string(),
3833
+ createdAt: z125.coerce.date(),
3834
+ finishedAt: z125.coerce.date(),
3835
+ exportArtefacts: z125.string()
3822
3836
  });
3823
- var CodeIntegrationDump = z124.object({
3837
+ var CodeIntegrationDump = z125.object({
3824
3838
  exporters: Exporter.array(),
3825
3839
  pipelines: Pipeline.array(),
3826
3840
  exportJobs: ExportJobDump.array()
3827
3841
  });
3828
3842
  var DesignSystemVersionRoom = Entity.extend({
3829
- designSystemVersionId: z125.string(),
3830
- liveblocksId: z125.string()
3831
- });
3832
- var DesignSystemVersionRoomInternalSettings = z125.object({
3833
- routingVersion: z125.string(),
3834
- isDraftFeatureAdopted: z125.boolean()
3835
- });
3836
- var DesignSystemVersionRoomInitialState = z125.object({
3837
- pages: z125.array(DocumentationPageV2),
3838
- groups: z125.array(ElementGroup),
3839
- pageSnapshots: z125.array(DocumentationPageSnapshot),
3840
- groupSnapshots: z125.array(ElementGroupSnapshot),
3843
+ designSystemVersionId: z126.string(),
3844
+ liveblocksId: z126.string()
3845
+ });
3846
+ var DesignSystemVersionRoomInternalSettings = z126.object({
3847
+ routingVersion: z126.string(),
3848
+ isDraftFeatureAdopted: z126.boolean()
3849
+ });
3850
+ var DesignSystemVersionRoomInitialState = z126.object({
3851
+ pages: z126.array(DocumentationPageV2),
3852
+ groups: z126.array(ElementGroup),
3853
+ pageSnapshots: z126.array(DocumentationPageSnapshot),
3854
+ groupSnapshots: z126.array(ElementGroupSnapshot),
3841
3855
  internalSettings: DesignSystemVersionRoomInternalSettings
3842
3856
  });
3843
- var DesignSystemVersionRoomUpdate = z125.object({
3844
- pages: z125.array(DocumentationPageV2),
3845
- groups: z125.array(ElementGroup),
3846
- pageIdsToDelete: z125.array(z125.string()),
3847
- groupIdsToDelete: z125.array(z125.string()),
3848
- pageSnapshots: z125.array(DocumentationPageSnapshot),
3849
- groupSnapshots: z125.array(ElementGroupSnapshot),
3850
- pageSnapshotIdsToDelete: z125.array(z125.string()),
3851
- groupSnapshotIdsToDelete: z125.array(z125.string()),
3852
- pageHashesToUpdate: z125.record(z125.string(), z125.string())
3857
+ var DesignSystemVersionRoomUpdate = z126.object({
3858
+ pages: z126.array(DocumentationPageV2),
3859
+ groups: z126.array(ElementGroup),
3860
+ pageIdsToDelete: z126.array(z126.string()),
3861
+ groupIdsToDelete: z126.array(z126.string()),
3862
+ pageSnapshots: z126.array(DocumentationPageSnapshot),
3863
+ groupSnapshots: z126.array(ElementGroupSnapshot),
3864
+ pageSnapshotIdsToDelete: z126.array(z126.string()),
3865
+ groupSnapshotIdsToDelete: z126.array(z126.string()),
3866
+ pageHashesToUpdate: z126.record(z126.string(), z126.string())
3853
3867
  });
3854
3868
  var DocumentationPageRoom = Entity.extend({
3855
- designSystemVersionId: z126.string(),
3856
- documentationPageId: z126.string(),
3857
- liveblocksId: z126.string(),
3858
- isDirty: z126.boolean()
3869
+ designSystemVersionId: z127.string(),
3870
+ documentationPageId: z127.string(),
3871
+ liveblocksId: z127.string(),
3872
+ isDirty: z127.boolean()
3859
3873
  });
3860
- var DocumentationPageRoomState = z126.object({
3861
- pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3874
+ var DocumentationPageRoomState = z127.object({
3875
+ pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3862
3876
  itemConfiguration: DocumentationItemConfigurationV2
3863
3877
  });
3864
- var DocumentationPageRoomRoomUpdate = z126.object({
3878
+ var DocumentationPageRoomRoomUpdate = z127.object({
3865
3879
  page: DocumentationPageV2,
3866
3880
  pageParent: ElementGroup
3867
3881
  });
3868
3882
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3869
- pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3870
- blockDefinitions: z126.array(PageBlockDefinition)
3883
+ pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3884
+ blockDefinitions: z127.array(PageBlockDefinition)
3871
3885
  });
3872
- var RestoredDocumentationPage = z126.object({
3886
+ var RestoredDocumentationPage = z127.object({
3873
3887
  page: DocumentationPageV2,
3874
3888
  pageParent: ElementGroup,
3875
3889
  pageContent: DocumentationPageContentData,
3876
- contentHash: z126.string(),
3877
- snapshotId: z126.string(),
3878
- roomId: z126.string().optional()
3890
+ contentHash: z127.string(),
3891
+ snapshotId: z127.string(),
3892
+ roomId: z127.string().optional()
3879
3893
  });
3880
- var RestoredDocumentationGroup = z126.object({
3894
+ var RestoredDocumentationGroup = z127.object({
3881
3895
  group: ElementGroup,
3882
3896
  parent: ElementGroup
3883
3897
  });
@@ -3887,28 +3901,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3887
3901
  RoomTypeEnum2["Workspace"] = "workspace";
3888
3902
  return RoomTypeEnum2;
3889
3903
  })(RoomTypeEnum || {});
3890
- var RoomTypeSchema = z127.nativeEnum(RoomTypeEnum);
3904
+ var RoomTypeSchema = z128.nativeEnum(RoomTypeEnum);
3891
3905
  var RoomType = RoomTypeSchema.enum;
3892
3906
  var WorkspaceRoom = Entity.extend({
3893
- workspaceId: z128.string(),
3894
- liveblocksId: z128.string()
3907
+ workspaceId: z129.string(),
3908
+ liveblocksId: z129.string()
3895
3909
  });
3896
- var PublishedDocsDump = z129.object({
3910
+ var PublishedDocsDump = z130.object({
3897
3911
  documentation: PublishedDoc,
3898
3912
  pages: PublishedDocPage.array()
3899
3913
  });
3900
- var DocumentationThreadDump = z130.object({
3914
+ var DocumentationThreadDump = z131.object({
3901
3915
  thread: DocumentationCommentThread,
3902
3916
  comments: DocumentationComment.array()
3903
3917
  });
3904
- var DocumentationPageRoomDump = z130.object({
3918
+ var DocumentationPageRoomDump = z131.object({
3905
3919
  room: DocumentationPageRoom,
3906
3920
  threads: DocumentationThreadDump.array()
3907
3921
  });
3908
- var DesignSystemVersionMultiplayerDump = z130.object({
3922
+ var DesignSystemVersionMultiplayerDump = z131.object({
3909
3923
  documentationPages: DocumentationPageRoomDump.array()
3910
3924
  });
3911
- var DesignSystemVersionDump = z130.object({
3925
+ var DesignSystemVersionDump = z131.object({
3912
3926
  version: DesignSystemVersion,
3913
3927
  brands: Brand.array(),
3914
3928
  elements: DesignElement.array(),
@@ -3921,141 +3935,141 @@ var DesignSystemVersionDump = z130.object({
3921
3935
  publishedDocumentations: PublishedDocsDump.array(),
3922
3936
  assetReferences: AssetReference.array()
3923
3937
  });
3924
- var DesignSystemDump = z131.object({
3938
+ var DesignSystemDump = z132.object({
3925
3939
  designSystem: DesignSystem,
3926
3940
  dataSources: DataSource.array(),
3927
3941
  versions: DesignSystemVersionDump.array(),
3928
3942
  customDomain: CustomDomain.optional(),
3929
3943
  files: Asset.array()
3930
3944
  });
3931
- var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
3932
- var ExternalServiceType = z132.union([
3933
- z132.literal("figma"),
3934
- z132.literal("github"),
3935
- z132.literal("azure"),
3936
- z132.literal("gitlab"),
3937
- z132.literal("bitbucket")
3945
+ var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
3946
+ var ExternalServiceType = z133.union([
3947
+ z133.literal("figma"),
3948
+ z133.literal("github"),
3949
+ z133.literal("azure"),
3950
+ z133.literal("gitlab"),
3951
+ z133.literal("bitbucket")
3938
3952
  ]);
3939
- var IntegrationUserInfo = z132.object({
3940
- id: z132.string(),
3941
- handle: z132.string().optional(),
3942
- avatarUrl: z132.string().optional(),
3943
- email: z132.string().optional(),
3953
+ var IntegrationUserInfo = z133.object({
3954
+ id: z133.string(),
3955
+ handle: z133.string().optional(),
3956
+ avatarUrl: z133.string().optional(),
3957
+ email: z133.string().optional(),
3944
3958
  authType: IntegrationAuthType.optional(),
3945
- customUrl: z132.string().optional()
3959
+ customUrl: z133.string().optional()
3946
3960
  });
3947
- var UserLinkedIntegrations = z132.object({
3961
+ var UserLinkedIntegrations = z133.object({
3948
3962
  figma: IntegrationUserInfo.optional(),
3949
3963
  github: IntegrationUserInfo.array().optional(),
3950
3964
  azure: IntegrationUserInfo.array().optional(),
3951
3965
  gitlab: IntegrationUserInfo.array().optional(),
3952
3966
  bitbucket: IntegrationUserInfo.array().optional()
3953
3967
  });
3954
- var UserAnalyticsCleanupSchedule = z133.object({
3955
- userId: z133.string(),
3956
- createdAt: z133.coerce.date(),
3957
- deleteAt: z133.coerce.date()
3968
+ var UserAnalyticsCleanupSchedule = z134.object({
3969
+ userId: z134.string(),
3970
+ createdAt: z134.coerce.date(),
3971
+ deleteAt: z134.coerce.date()
3958
3972
  });
3959
3973
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3960
3974
  createdAt: true
3961
3975
  });
3962
- var CreateUserInput = z134.object({
3963
- email: z134.string(),
3964
- name: z134.string(),
3965
- username: z134.string()
3976
+ var CreateUserInput = z135.object({
3977
+ email: z135.string(),
3978
+ name: z135.string(),
3979
+ username: z135.string()
3966
3980
  });
3967
- var UserIdentity = z135.object({
3968
- id: z135.string(),
3969
- userId: z135.string()
3970
- });
3971
- var UserMinified = z136.object({
3981
+ var UserIdentity = z136.object({
3972
3982
  id: z136.string(),
3973
- name: z136.string(),
3974
- email: z136.string(),
3975
- avatar: z136.string().optional()
3983
+ userId: z136.string()
3984
+ });
3985
+ var UserMinified = z137.object({
3986
+ id: z137.string(),
3987
+ name: z137.string(),
3988
+ email: z137.string(),
3989
+ avatar: z137.string().optional()
3976
3990
  });
3977
- var LiveblocksNotificationSettings = z137.object({
3978
- sendCommentNotificationEmails: z137.boolean()
3991
+ var LiveblocksNotificationSettings = z138.object({
3992
+ sendCommentNotificationEmails: z138.boolean()
3979
3993
  });
3980
- var UserNotificationSettings = z137.object({
3994
+ var UserNotificationSettings = z138.object({
3981
3995
  liveblocksNotificationSettings: LiveblocksNotificationSettings
3982
3996
  });
3983
- var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3984
- var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3985
- var UserOnboarding = z138.object({
3986
- companyName: z138.string().optional(),
3987
- numberOfPeopleInOrg: z138.string().optional(),
3988
- numberOfPeopleInDesignTeam: z138.string().optional(),
3997
+ var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3998
+ var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3999
+ var UserOnboarding = z139.object({
4000
+ companyName: z139.string().optional(),
4001
+ numberOfPeopleInOrg: z139.string().optional(),
4002
+ numberOfPeopleInDesignTeam: z139.string().optional(),
3989
4003
  department: UserOnboardingDepartment.optional(),
3990
- jobTitle: z138.string().optional(),
3991
- phase: z138.string().optional(),
4004
+ jobTitle: z139.string().optional(),
4005
+ phase: z139.string().optional(),
3992
4006
  jobLevel: UserOnboardingJobLevel.optional(),
3993
- designSystemName: z138.string().optional(),
3994
- defaultDestination: z138.string().optional(),
3995
- figmaUrl: z138.string().optional(),
3996
- isPageDraftOnboardingFinished: z138.boolean().optional()
3997
- });
3998
- var UserProfile = z138.object({
3999
- name: z138.string(),
4000
- avatar: z138.string().optional(),
4001
- nickname: z138.string().optional(),
4007
+ designSystemName: z139.string().optional(),
4008
+ defaultDestination: z139.string().optional(),
4009
+ figmaUrl: z139.string().optional(),
4010
+ isPageDraftOnboardingFinished: z139.boolean().optional()
4011
+ });
4012
+ var UserProfile = z139.object({
4013
+ name: z139.string(),
4014
+ avatar: z139.string().optional(),
4015
+ nickname: z139.string().optional(),
4002
4016
  onboarding: UserOnboarding.optional()
4003
4017
  });
4004
4018
  var UserProfileUpdate = UserProfile.partial().omit({
4005
4019
  avatar: true
4006
4020
  });
4007
- var UserTest = z139.object({
4008
- id: z139.string(),
4009
- email: z139.string()
4010
- });
4011
- var User = z140.object({
4021
+ var UserTest = z140.object({
4012
4022
  id: z140.string(),
4013
- email: z140.string(),
4014
- emailVerified: z140.boolean(),
4015
- createdAt: z140.coerce.date(),
4016
- trialExpiresAt: z140.coerce.date().optional(),
4023
+ email: z140.string()
4024
+ });
4025
+ var User = z141.object({
4026
+ id: z141.string(),
4027
+ email: z141.string(),
4028
+ emailVerified: z141.boolean(),
4029
+ createdAt: z141.coerce.date(),
4030
+ trialExpiresAt: z141.coerce.date().optional(),
4017
4031
  profile: UserProfile,
4018
4032
  linkedIntegrations: UserLinkedIntegrations.optional(),
4019
- loggedOutAt: z140.coerce.date().optional(),
4020
- isProtected: z140.boolean()
4021
- });
4022
- var IntegrationDesignSystem = z141.object({
4023
- designSystemId: z141.string(),
4024
- brandId: z141.string(),
4025
- title: z141.string().optional(),
4026
- userId: z141.string().optional(),
4027
- date: z141.coerce.date().optional()
4028
- });
4029
- var IntegrationCredentialsType = z141.enum(["OAuth2", "PAT", "GithubApp"]);
4030
- var IntegrationCredentialsState = z141.enum(["Active", "Inactive"]);
4031
- var IntegrationCredentialsProfile = z141.object({
4032
- id: nullishToOptional(z141.string()),
4033
- email: nullishToOptional(z141.string()),
4034
- handle: nullishToOptional(z141.string()),
4035
- type: nullishToOptional(z141.string()),
4036
- avatarUrl: nullishToOptional(z141.string()),
4037
- organization: nullishToOptional(z141.string()),
4038
- collection: nullishToOptional(z141.string())
4039
- });
4040
- var IntegrationCredentials = z141.object({
4041
- id: z141.string(),
4033
+ loggedOutAt: z141.coerce.date().optional(),
4034
+ isProtected: z141.boolean()
4035
+ });
4036
+ var IntegrationDesignSystem = z142.object({
4037
+ designSystemId: z142.string(),
4038
+ brandId: z142.string(),
4039
+ title: z142.string().optional(),
4040
+ userId: z142.string().optional(),
4041
+ date: z142.coerce.date().optional()
4042
+ });
4043
+ var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
4044
+ var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
4045
+ var IntegrationCredentialsProfile = z142.object({
4046
+ id: nullishToOptional(z142.string()),
4047
+ email: nullishToOptional(z142.string()),
4048
+ handle: nullishToOptional(z142.string()),
4049
+ type: nullishToOptional(z142.string()),
4050
+ avatarUrl: nullishToOptional(z142.string()),
4051
+ organization: nullishToOptional(z142.string()),
4052
+ collection: nullishToOptional(z142.string())
4053
+ });
4054
+ var IntegrationCredentials = z142.object({
4055
+ id: z142.string(),
4042
4056
  type: IntegrationCredentialsType,
4043
- integrationId: z141.string(),
4044
- accessToken: z141.string(),
4045
- userId: z141.string(),
4046
- createdAt: z141.coerce.date(),
4047
- refreshToken: z141.string().optional(),
4048
- tokenName: z141.string().optional(),
4049
- expiresAt: z141.coerce.date().optional(),
4050
- refreshedAt: z141.coerce.date().optional(),
4051
- username: z141.string().optional(),
4052
- appInstallationId: z141.string().optional(),
4057
+ integrationId: z142.string(),
4058
+ accessToken: z142.string(),
4059
+ userId: z142.string(),
4060
+ createdAt: z142.coerce.date(),
4061
+ refreshToken: z142.string().optional(),
4062
+ tokenName: z142.string().optional(),
4063
+ expiresAt: z142.coerce.date().optional(),
4064
+ refreshedAt: z142.coerce.date().optional(),
4065
+ username: z142.string().optional(),
4066
+ appInstallationId: z142.string().optional(),
4053
4067
  profile: IntegrationCredentialsProfile.optional(),
4054
- customUrl: z141.string().optional(),
4068
+ customUrl: z142.string().optional(),
4055
4069
  state: IntegrationCredentialsState,
4056
4070
  user: UserMinified.optional()
4057
4071
  });
4058
- var ExtendedIntegrationType = z141.enum([
4072
+ var ExtendedIntegrationType = z142.enum([
4059
4073
  "Figma",
4060
4074
  "Github",
4061
4075
  "Gitlab",
@@ -4066,26 +4080,26 @@ var ExtendedIntegrationType = z141.enum([
4066
4080
  ]);
4067
4081
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4068
4082
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4069
- var Integration = z141.object({
4070
- id: z141.string(),
4071
- workspaceId: z141.string(),
4083
+ var Integration = z142.object({
4084
+ id: z142.string(),
4085
+ workspaceId: z142.string(),
4072
4086
  type: IntegrationType,
4073
- createdAt: z141.coerce.date(),
4074
- integrationCredentials: z141.array(IntegrationCredentials).optional()
4075
- });
4076
- var IntegrationToken = z141.object({
4077
- access_token: z141.string(),
4078
- refresh_token: z141.string().optional(),
4079
- expires_in: z141.union([z141.number().optional(), z141.string().optional()]),
4080
- token_type: z141.string().optional(),
4081
- token_name: z141.string().optional(),
4082
- token_azure_organization_name: z141.string().optional(),
4087
+ createdAt: z142.coerce.date(),
4088
+ integrationCredentials: z142.array(IntegrationCredentials).optional()
4089
+ });
4090
+ var IntegrationToken = z142.object({
4091
+ access_token: z142.string(),
4092
+ refresh_token: z142.string().optional(),
4093
+ expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
4094
+ token_type: z142.string().optional(),
4095
+ token_name: z142.string().optional(),
4096
+ token_azure_organization_name: z142.string().optional(),
4083
4097
  // Azure Cloud PAT only
4084
- token_azure_collection_name: z141.string().optional(),
4098
+ token_azure_collection_name: z142.string().optional(),
4085
4099
  // Azure Server PAT only
4086
- token_bitbucket_username: z141.string().optional(),
4100
+ token_bitbucket_username: z142.string().optional(),
4087
4101
  // Bitbucket only
4088
- custom_url: z141.string().optional().transform((value) => {
4102
+ custom_url: z142.string().optional().transform((value) => {
4089
4103
  if (!value?.trim())
4090
4104
  return void 0;
4091
4105
  return formatCustomUrl(value);
@@ -4121,76 +4135,76 @@ function formatCustomUrl(url) {
4121
4135
  }
4122
4136
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
4123
4137
  }
4124
- var WorkspaceDump = z142.object({
4138
+ var WorkspaceDump = z143.object({
4125
4139
  workspace: Workspace,
4126
4140
  designSystems: DesignSystemDump.array(),
4127
4141
  codeIntegration: CodeIntegrationDump,
4128
4142
  integrations: Integration.array()
4129
4143
  });
4130
- var UserDump = z143.object({
4144
+ var UserDump = z144.object({
4131
4145
  user: User,
4132
4146
  workspaces: WorkspaceDump.array()
4133
4147
  });
4134
- var NpmProxyToken = z144.object({
4135
- access: z144.string(),
4136
- expiresAt: z144.number()
4148
+ var NpmProxyToken = z145.object({
4149
+ access: z145.string(),
4150
+ expiresAt: z145.number()
4137
4151
  });
4138
- var SessionData = z144.object({
4139
- returnToUrl: z144.string().optional(),
4152
+ var SessionData = z145.object({
4153
+ returnToUrl: z145.string().optional(),
4140
4154
  npmProxyToken: NpmProxyToken.optional()
4141
4155
  });
4142
- var Session = z144.object({
4143
- id: z144.string(),
4144
- expiresAt: z144.coerce.date(),
4145
- userId: z144.string().nullable(),
4156
+ var Session = z145.object({
4157
+ id: z145.string(),
4158
+ expiresAt: z145.coerce.date(),
4159
+ userId: z145.string().nullable(),
4146
4160
  data: SessionData
4147
4161
  });
4148
- var AuthTokens = z144.object({
4149
- access: z144.string(),
4150
- refresh: z144.string()
4162
+ var AuthTokens = z145.object({
4163
+ access: z145.string(),
4164
+ refresh: z145.string()
4151
4165
  });
4152
- var UserSession = z144.object({
4166
+ var UserSession = z145.object({
4153
4167
  session: Session,
4154
4168
  user: User.nullable()
4155
4169
  });
4156
- var EventDataSourceImported = z145.object({
4157
- type: z145.literal("DataSourceImported"),
4158
- workspaceId: z145.string(),
4159
- designSystemId: z145.string()
4160
- });
4161
- var EventVersionReleased = z146.object({
4162
- type: z146.literal("DesignSystemVersionReleased"),
4170
+ var EventDataSourceImported = z146.object({
4171
+ type: z146.literal("DataSourceImported"),
4163
4172
  workspaceId: z146.string(),
4164
- designSystemId: z146.string(),
4165
- versionId: z146.string()
4166
- });
4167
- var Event = z147.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4168
- var ExportJobDocumentationContext = z148.object({
4169
- isSingleVersionDocs: z148.boolean(),
4170
- versionSlug: z148.string(),
4173
+ designSystemId: z146.string()
4174
+ });
4175
+ var EventVersionReleased = z147.object({
4176
+ type: z147.literal("DesignSystemVersionReleased"),
4177
+ workspaceId: z147.string(),
4178
+ designSystemId: z147.string(),
4179
+ versionId: z147.string()
4180
+ });
4181
+ var Event = z148.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4182
+ var ExportJobDocumentationContext = z149.object({
4183
+ isSingleVersionDocs: z149.boolean(),
4184
+ versionSlug: z149.string(),
4171
4185
  environment: PublishedDocEnvironment
4172
4186
  });
4173
- var ExportJobContext = z148.object({
4174
- apiUrl: z148.string(),
4175
- accessToken: z148.string(),
4176
- designSystemId: z148.string(),
4177
- designSystemName: z148.string(),
4178
- exporterId: z148.string(),
4179
- versionId: z148.string(),
4180
- brandId: z148.string().optional(),
4181
- themeId: z148.string().optional(),
4182
- exporterName: z148.string(),
4183
- exporterPackageUrl: z148.string(),
4187
+ var ExportJobContext = z149.object({
4188
+ apiUrl: z149.string(),
4189
+ accessToken: z149.string(),
4190
+ designSystemId: z149.string(),
4191
+ designSystemName: z149.string(),
4192
+ exporterId: z149.string(),
4193
+ versionId: z149.string(),
4194
+ brandId: z149.string().optional(),
4195
+ themeId: z149.string().optional(),
4196
+ exporterName: z149.string(),
4197
+ exporterPackageUrl: z149.string(),
4184
4198
  exporterPropertyValues: ExporterPropertyValue.array(),
4185
4199
  documentation: ExportJobDocumentationContext.optional()
4186
4200
  });
4187
- var ExporterFunctionPayload = z149.object({
4188
- exportJobId: z149.string(),
4189
- exportContextId: z149.string(),
4190
- designSystemId: z149.string(),
4191
- workspaceId: z149.string()
4201
+ var ExporterFunctionPayload = z150.object({
4202
+ exportJobId: z150.string(),
4203
+ exportContextId: z150.string(),
4204
+ designSystemId: z150.string(),
4205
+ workspaceId: z150.string()
4192
4206
  });
4193
- var ExportJobDestinationType = z150.enum([
4207
+ var ExportJobDestinationType = z151.enum([
4194
4208
  "s3",
4195
4209
  "webhookUrl",
4196
4210
  "github",
@@ -4199,30 +4213,30 @@ var ExportJobDestinationType = z150.enum([
4199
4213
  "gitlab",
4200
4214
  "bitbucket"
4201
4215
  ]);
4202
- var ExportJobStatus = z150.enum(["InProgress", "Success", "Failed", "Timeout"]);
4203
- var ExportJobLogEntryType = z150.enum(["success", "info", "warning", "error", "user"]);
4204
- var ExportJobLogEntry = z150.object({
4205
- id: z150.string().optional(),
4206
- time: z150.coerce.date(),
4216
+ var ExportJobStatus = z151.enum(["InProgress", "Success", "Failed", "Timeout"]);
4217
+ var ExportJobLogEntryType = z151.enum(["success", "info", "warning", "error", "user"]);
4218
+ var ExportJobLogEntry = z151.object({
4219
+ id: z151.string().optional(),
4220
+ time: z151.coerce.date(),
4207
4221
  type: ExportJobLogEntryType,
4208
- message: z150.string()
4222
+ message: z151.string()
4209
4223
  });
4210
- var ExportJobPullRequestDestinationResult = z150.object({
4211
- pullRequestUrl: z150.string()
4224
+ var ExportJobPullRequestDestinationResult = z151.object({
4225
+ pullRequestUrl: z151.string()
4212
4226
  });
4213
- var ExportJobS3DestinationResult = z150.object({
4214
- bucket: z150.string(),
4215
- urlPrefix: z150.string().optional(),
4216
- path: z150.string(),
4217
- files: z150.array(z150.string()),
4218
- url: nullishToOptional(z150.string()),
4219
- urls: nullishToOptional(z150.string().array())
4227
+ var ExportJobS3DestinationResult = z151.object({
4228
+ bucket: z151.string(),
4229
+ urlPrefix: z151.string().optional(),
4230
+ path: z151.string(),
4231
+ files: z151.array(z151.string()),
4232
+ url: nullishToOptional(z151.string()),
4233
+ urls: nullishToOptional(z151.string().array())
4220
4234
  });
4221
- var ExportJobDocsDestinationResult = z150.object({
4222
- url: z150.string()
4235
+ var ExportJobDocsDestinationResult = z151.object({
4236
+ url: z151.string()
4223
4237
  });
4224
- var ExportJobResult = z150.object({
4225
- error: z150.string().optional(),
4238
+ var ExportJobResult = z151.object({
4239
+ error: z151.string().optional(),
4226
4240
  s3: nullishToOptional(ExportJobS3DestinationResult),
4227
4241
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4228
4242
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4231,21 +4245,21 @@ var ExportJobResult = z150.object({
4231
4245
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4232
4246
  logs: nullishToOptional(ExportJobLogEntry.array())
4233
4247
  });
4234
- var ExportJob = z150.object({
4235
- id: z150.string(),
4236
- createdAt: z150.coerce.date(),
4237
- finishedAt: z150.coerce.date().optional(),
4238
- designSystemId: z150.string(),
4239
- designSystemVersionId: z150.string(),
4240
- workspaceId: z150.string(),
4241
- scheduleId: z150.string().nullish(),
4242
- exporterId: z150.string(),
4243
- brandId: z150.string().optional(),
4244
- themeId: z150.string().optional(),
4245
- estimatedExecutionTime: z150.number().optional(),
4248
+ var ExportJob = z151.object({
4249
+ id: z151.string(),
4250
+ createdAt: z151.coerce.date(),
4251
+ finishedAt: z151.coerce.date().optional(),
4252
+ designSystemId: z151.string(),
4253
+ designSystemVersionId: z151.string(),
4254
+ workspaceId: z151.string(),
4255
+ scheduleId: z151.string().nullish(),
4256
+ exporterId: z151.string(),
4257
+ brandId: z151.string().optional(),
4258
+ themeId: z151.string().optional(),
4259
+ estimatedExecutionTime: z151.number().optional(),
4246
4260
  status: ExportJobStatus,
4247
4261
  result: ExportJobResult.optional(),
4248
- createdByUserId: z150.string().optional(),
4262
+ createdByUserId: z151.string().optional(),
4249
4263
  // Destinations
4250
4264
  ...ExportDestinationsMap.shape
4251
4265
  });
@@ -4259,24 +4273,24 @@ var ExportJobFindByFilter = ExportJob.pick({
4259
4273
  themeId: true,
4260
4274
  brandId: true
4261
4275
  }).extend({
4262
- destinations: z150.array(ExportJobDestinationType),
4276
+ destinations: z151.array(ExportJobDestinationType),
4263
4277
  docsEnvironment: PublishedDocEnvironment
4264
4278
  }).partial();
4265
- var ExporterWorkspaceMembershipRole = z151.enum(["Owner", "OwnerArchived", "User"]);
4266
- var ExporterWorkspaceMembership = z152.object({
4267
- id: z152.string(),
4268
- workspaceId: z152.string(),
4269
- exporterId: z152.string(),
4279
+ var ExporterWorkspaceMembershipRole = z152.enum(["Owner", "OwnerArchived", "User"]);
4280
+ var ExporterWorkspaceMembership = z153.object({
4281
+ id: z153.string(),
4282
+ workspaceId: z153.string(),
4283
+ exporterId: z153.string(),
4270
4284
  role: ExporterWorkspaceMembershipRole
4271
4285
  });
4272
- var FlaggedFeature = z153.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4273
- var FeatureFlagMap = z153.record(FlaggedFeature, z153.boolean());
4274
- var FeatureFlag = z153.object({
4275
- id: z153.string(),
4286
+ var FlaggedFeature = z154.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4287
+ var FeatureFlagMap = z154.record(FlaggedFeature, z154.boolean());
4288
+ var FeatureFlag = z154.object({
4289
+ id: z154.string(),
4276
4290
  feature: FlaggedFeature,
4277
- createdAt: z153.coerce.date(),
4278
- enabled: z153.boolean(),
4279
- designSystemId: z153.string().optional()
4291
+ createdAt: z154.coerce.date(),
4292
+ enabled: z154.boolean(),
4293
+ designSystemId: z154.string().optional()
4280
4294
  });
4281
4295
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4282
4296
  OAuthProviderNames2["Figma"] = "figma";
@@ -4286,173 +4300,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4286
4300
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4287
4301
  return OAuthProviderNames2;
4288
4302
  })(OAuthProviderNames || {});
4289
- var OAuthProviderSchema = z154.nativeEnum(OAuthProviderNames);
4303
+ var OAuthProviderSchema = z155.nativeEnum(OAuthProviderNames);
4290
4304
  var OAuthProvider = OAuthProviderSchema.enum;
4291
- var ExternalOAuthRequest = z155.object({
4292
- id: z155.string(),
4305
+ var ExternalOAuthRequest = z156.object({
4306
+ id: z156.string(),
4293
4307
  provider: OAuthProviderSchema,
4294
- userId: z155.string(),
4295
- state: z155.string(),
4296
- createdAt: z155.coerce.date()
4308
+ userId: z156.string(),
4309
+ state: z156.string(),
4310
+ createdAt: z156.coerce.date()
4297
4311
  });
4298
- var GitObjectsQuery = z156.object({
4299
- organization: z156.string().optional(),
4312
+ var GitObjectsQuery = z157.object({
4313
+ organization: z157.string().optional(),
4300
4314
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4301
- project: z156.string().optional(),
4315
+ project: z157.string().optional(),
4302
4316
  // Only for Bitbucket and Azure
4303
- repository: z156.string().optional(),
4317
+ repository: z157.string().optional(),
4304
4318
  // For all providers. For Gitlab, it's called "project".
4305
- branch: z156.string().optional(),
4319
+ branch: z157.string().optional(),
4306
4320
  // For all providers.
4307
- user: z156.string().optional()
4321
+ user: z157.string().optional()
4308
4322
  // Gitlab user
4309
4323
  });
4310
- var GitOrganization = z156.object({
4311
- id: z156.string(),
4312
- name: z156.string(),
4313
- url: z156.string(),
4314
- slug: z156.string()
4324
+ var GitOrganization = z157.object({
4325
+ id: z157.string(),
4326
+ name: z157.string(),
4327
+ url: z157.string(),
4328
+ slug: z157.string()
4315
4329
  });
4316
- var GitProject = z156.object({
4317
- id: z156.string(),
4318
- name: z156.string(),
4319
- url: z156.string(),
4320
- slug: z156.string()
4330
+ var GitProject = z157.object({
4331
+ id: z157.string(),
4332
+ name: z157.string(),
4333
+ url: z157.string(),
4334
+ slug: z157.string()
4321
4335
  });
4322
- var GitRepository = z156.object({
4323
- id: z156.string(),
4324
- name: z156.string(),
4325
- url: z156.string(),
4326
- slug: z156.string(),
4336
+ var GitRepository = z157.object({
4337
+ id: z157.string(),
4338
+ name: z157.string(),
4339
+ url: z157.string(),
4340
+ slug: z157.string(),
4327
4341
  /**
4328
4342
  * Can be undefined when:
4329
4343
  * - there are no branches in the repository yet
4330
4344
  * - Git provider doesn't expose this information on a repository via their API
4331
4345
  */
4332
- defaultBranch: z156.string().optional()
4346
+ defaultBranch: z157.string().optional()
4333
4347
  });
4334
- var GitBranch = z156.object({
4335
- name: z156.string(),
4336
- lastCommitId: z156.string()
4348
+ var GitBranch = z157.object({
4349
+ name: z157.string(),
4350
+ lastCommitId: z157.string()
4337
4351
  });
4338
- var IntegrationTokenSchemaOld = z157.object({
4339
- id: z157.string(),
4340
- provider: OAuthProviderSchema,
4341
- scope: z157.string(),
4342
- userId: z157.string(),
4343
- accessToken: z157.string(),
4344
- refreshToken: z157.string(),
4345
- expiresAt: z157.coerce.date(),
4346
- externalUserId: z157.string().nullish()
4347
- });
4348
- var WorkspaceOAuthRequestSchema = z158.object({
4352
+ var IntegrationTokenSchemaOld = z158.object({
4349
4353
  id: z158.string(),
4350
- workspaceId: z158.string(),
4351
4354
  provider: OAuthProviderSchema,
4355
+ scope: z158.string(),
4352
4356
  userId: z158.string(),
4353
- createdAt: z158.coerce.date()
4357
+ accessToken: z158.string(),
4358
+ refreshToken: z158.string(),
4359
+ expiresAt: z158.coerce.date(),
4360
+ externalUserId: z158.string().nullish()
4361
+ });
4362
+ var WorkspaceOAuthRequestSchema = z159.object({
4363
+ id: z159.string(),
4364
+ workspaceId: z159.string(),
4365
+ provider: OAuthProviderSchema,
4366
+ userId: z159.string(),
4367
+ createdAt: z159.coerce.date()
4354
4368
  });
4355
- var AnyRecord = z159.record(z159.any());
4369
+ var AnyRecord = z160.record(z160.any());
4356
4370
  var NpmPackageVersionDist = AnyRecord.and(
4357
- z159.object({
4358
- tarball: z159.string()
4371
+ z160.object({
4372
+ tarball: z160.string()
4359
4373
  })
4360
4374
  );
4361
4375
  var NpmPackageVersion = AnyRecord.and(
4362
- z159.object({
4376
+ z160.object({
4363
4377
  dist: NpmPackageVersionDist
4364
4378
  })
4365
4379
  );
4366
4380
  var NpmPackage = AnyRecord.and(
4367
- z159.object({
4368
- _id: z159.string(),
4369
- name: z159.string(),
4381
+ z160.object({
4382
+ _id: z160.string(),
4383
+ name: z160.string(),
4370
4384
  // e.g. "latest": "1.2.3"
4371
- "dist-tags": z159.record(z159.string(), z159.string()),
4385
+ "dist-tags": z160.record(z160.string(), z160.string()),
4372
4386
  // "1.2.3": {...}
4373
- versions: z159.record(NpmPackageVersion)
4387
+ versions: z160.record(NpmPackageVersion)
4374
4388
  })
4375
4389
  );
4376
- var NpmProxyTokenPayload = z160.object({
4377
- npmProxyRegistryConfigId: z160.string()
4390
+ var NpmProxyTokenPayload = z161.object({
4391
+ npmProxyRegistryConfigId: z161.string()
4378
4392
  });
4379
- var WorkspaceRoleSchema = z161.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4393
+ var WorkspaceRoleSchema = z162.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
4380
4394
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4381
4395
  var MAX_MEMBERS_COUNT = 100;
4382
- var UserInvite = z162.object({
4383
- email: z162.string().email().trim().transform((value) => value.toLowerCase()),
4396
+ var UserInvite = z163.object({
4397
+ email: z163.string().email().trim().transform((value) => value.toLowerCase()),
4384
4398
  role: WorkspaceRoleSchema
4385
4399
  });
4386
- var UserInvites = z162.array(UserInvite).max(MAX_MEMBERS_COUNT);
4387
- var WorkspaceConfigurationUpdate = z163.object({
4388
- id: z163.string(),
4400
+ var UserInvites = z163.array(UserInvite).max(MAX_MEMBERS_COUNT);
4401
+ var WorkspaceConfigurationUpdate = z164.object({
4402
+ id: z164.string(),
4389
4403
  ipWhitelist: WorkspaceIpSettings.optional(),
4390
4404
  sso: SsoProvider.optional(),
4391
4405
  npmRegistrySettings: NpmRegistryConfig.optional(),
4392
4406
  profile: WorkspaceProfileUpdate.optional()
4393
4407
  });
4394
- var WorkspaceContext = z164.object({
4395
- workspaceId: z164.string(),
4408
+ var WorkspaceContext = z165.object({
4409
+ workspaceId: z165.string(),
4396
4410
  product: ProductCodeSchema,
4397
4411
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4398
- publicDesignSystem: z164.boolean().optional()
4412
+ publicDesignSystem: z165.boolean().optional()
4399
4413
  });
4400
4414
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4401
4415
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4402
4416
  var HANDLE_MIN_LENGTH = 2;
4403
4417
  var HANDLE_MAX_LENGTH = 64;
4404
- var CreateWorkspaceInput = z165.object({
4405
- name: z165.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4418
+ var CreateWorkspaceInput = z166.object({
4419
+ name: z166.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4406
4420
  product: ProductCodeSchema,
4407
- priceId: z165.string(),
4408
- billingEmail: z165.string().email().optional(),
4409
- handle: z165.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4421
+ priceId: z166.string(),
4422
+ billingEmail: z166.string().email().optional(),
4423
+ handle: z166.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
4410
4424
  invites: UserInvites.optional(),
4411
- promoCode: z165.string().optional(),
4425
+ promoCode: z166.string().optional(),
4412
4426
  status: InternalStatusSchema.optional(),
4413
4427
  planInterval: BillingIntervalSchema.optional(),
4414
- seats: z165.number().optional(),
4415
- seatLimit: z165.number().optional(),
4428
+ seats: z166.number().optional(),
4429
+ seatLimit: z166.number().optional(),
4416
4430
  card: CardSchema.optional(),
4417
4431
  sso: SsoProvider.optional(),
4418
4432
  npmRegistrySettings: NpmRegistryConfig.optional(),
4419
4433
  ipWhitelist: WorkspaceIpSettings.optional()
4420
4434
  });
4421
- var WorkspaceInvitation = z166.object({
4422
- id: z166.string(),
4423
- email: z166.string().email(),
4424
- createdAt: z166.coerce.date(),
4425
- resentAt: z166.coerce.date().nullish(),
4426
- role: z166.nativeEnum(WorkspaceRole),
4427
- workspaceId: z166.string(),
4428
- invitedBy: z166.string()
4429
- });
4430
- var WorkspaceMembership = z167.object({
4435
+ var WorkspaceInvitation = z167.object({
4431
4436
  id: z167.string(),
4432
- userId: z167.string(),
4437
+ email: z167.string().email(),
4438
+ createdAt: z167.coerce.date(),
4439
+ resentAt: z167.coerce.date().nullish(),
4440
+ role: z167.nativeEnum(WorkspaceRole),
4433
4441
  workspaceId: z167.string(),
4434
- workspaceRole: z167.nativeEnum(WorkspaceRole),
4442
+ invitedBy: z167.string()
4443
+ });
4444
+ var WorkspaceMembership = z168.object({
4445
+ id: z168.string(),
4446
+ userId: z168.string(),
4447
+ workspaceId: z168.string(),
4448
+ workspaceRole: z168.nativeEnum(WorkspaceRole),
4435
4449
  notificationSettings: UserNotificationSettings
4436
4450
  });
4437
- var UpdateMembershipRolesInput = z167.object({
4438
- members: z167.array(
4439
- z167.object({
4440
- userId: z167.string(),
4441
- role: z167.nativeEnum(WorkspaceRole)
4451
+ var UpdateMembershipRolesInput = z168.object({
4452
+ members: z168.array(
4453
+ z168.object({
4454
+ userId: z168.string(),
4455
+ role: z168.nativeEnum(WorkspaceRole)
4442
4456
  })
4443
4457
  )
4444
4458
  });
4445
- var PersonalAccessToken = z168.object({
4446
- id: z168.string(),
4447
- userId: z168.string(),
4448
- workspaceId: z168.string().optional(),
4459
+ var PersonalAccessToken = z169.object({
4460
+ id: z169.string(),
4461
+ userId: z169.string(),
4462
+ workspaceId: z169.string().optional(),
4449
4463
  workspaceRole: WorkspaceRoleSchema.optional(),
4450
- name: z168.string(),
4451
- hidden: z168.boolean(),
4452
- token: z168.string(),
4453
- scope: z168.string().optional(),
4454
- createdAt: z168.coerce.date(),
4455
- expireAt: z168.coerce.date().optional()
4464
+ name: z169.string(),
4465
+ hidden: z169.boolean(),
4466
+ token: z169.string(),
4467
+ scope: z169.string().optional(),
4468
+ createdAt: z169.coerce.date(),
4469
+ expireAt: z169.coerce.date().optional()
4456
4470
  });
4457
4471
 
4458
4472
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
@@ -4868,163 +4882,163 @@ function integrationCredentialToDto(credential) {
4868
4882
  }
4869
4883
 
4870
4884
  // src/api/dto/aux/pagination.ts
4871
- import { z as z169 } from "zod";
4872
- var DTOPagination = z169.object({
4873
- limit: z169.string().optional(),
4874
- offset: z169.string().optional()
4885
+ import { z as z170 } from "zod";
4886
+ var DTOPagination = z170.object({
4887
+ limit: z170.string().optional(),
4888
+ offset: z170.string().optional()
4875
4889
  });
4876
4890
 
4877
4891
  // src/api/dto/design-systems/brand.ts
4878
- import { z as z170 } from "zod";
4879
- var DTOBrand = z170.object({
4880
- id: z170.string(),
4881
- designSystemVersionId: z170.string(),
4882
- persistentId: z170.string(),
4892
+ import { z as z171 } from "zod";
4893
+ var DTOBrand = z171.object({
4894
+ id: z171.string(),
4895
+ designSystemVersionId: z171.string(),
4896
+ persistentId: z171.string(),
4883
4897
  meta: ObjectMeta
4884
4898
  });
4885
- var DTOBrandGetResponse = z170.object({ brand: DTOBrand });
4886
- var DTOBrandCreateResponse = z170.object({
4899
+ var DTOBrandGetResponse = z171.object({ brand: DTOBrand });
4900
+ var DTOBrandCreateResponse = z171.object({
4887
4901
  brand: DTOBrand
4888
4902
  });
4889
- var DTOBrandsListResponse = z170.object({ brands: z170.array(DTOBrand) });
4903
+ var DTOBrandsListResponse = z171.object({ brands: z171.array(DTOBrand) });
4890
4904
 
4891
4905
  // src/api/dto/design-systems/data-source.ts
4892
- import { z as z171 } from "zod";
4893
- var DTODataSourceFigmaFileVersion = z171.object({
4894
- id: z171.string(),
4895
- created_at: z171.coerce.date(),
4896
- label: z171.string(),
4897
- description: z171.string()
4898
- });
4899
- var DTODataSourceFigmaCloud = z171.object({
4900
- fileId: z171.string(),
4906
+ import { z as z172 } from "zod";
4907
+ var DTODataSourceFigmaFileVersion = z172.object({
4908
+ id: z172.string(),
4909
+ created_at: z172.coerce.date(),
4910
+ label: z172.string(),
4911
+ description: z172.string()
4912
+ });
4913
+ var DTODataSourceFigmaCloud = z172.object({
4914
+ fileId: z172.string(),
4901
4915
  state: DataSourceFigmaState,
4902
4916
  autoImportMode: DataSourceAutoImportMode,
4903
- fileThumbnailUrl: z171.string().optional(),
4917
+ fileThumbnailUrl: z172.string().optional(),
4904
4918
  lastImportResult: SourceImportSummary.nullish(),
4905
- lastImportedAt: z171.date().nullish(),
4919
+ lastImportedAt: z172.date().nullish(),
4906
4920
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4907
- lastUpdatesCheckedAt: z171.date().nullish(),
4908
- ownerId: z171.string(),
4909
- ownerUserName: z171.string().optional(),
4910
- preferredCredentialId: z171.string().optional(),
4921
+ lastUpdatesCheckedAt: z172.date().nullish(),
4922
+ ownerId: z172.string(),
4923
+ ownerUserName: z172.string().optional(),
4924
+ preferredCredentialId: z172.string().optional(),
4911
4925
  stats: DataSourceStats
4912
4926
  });
4913
- var DTODataSourceFigma = z171.object({
4914
- id: z171.string(),
4915
- type: z171.literal(DataSourceRemoteType.Enum.Figma),
4916
- fileName: z171.string(),
4927
+ var DTODataSourceFigma = z172.object({
4928
+ id: z172.string(),
4929
+ type: z172.literal(DataSourceRemoteType.Enum.Figma),
4930
+ fileName: z172.string(),
4917
4931
  scope: DataSourceFigmaScope,
4918
- brandId: z171.string(),
4919
- themeId: z171.string().nullish(),
4932
+ brandId: z172.string(),
4933
+ themeId: z172.string().nullish(),
4920
4934
  cloud: DTODataSourceFigmaCloud.nullish(),
4921
- tokenStudio: z171.literal(null),
4922
- upload: z171.literal(null),
4923
- figmaVariablesPlugin: z171.literal(null)
4924
- });
4925
- var DTODataSourceTokenStudio = z171.object({
4926
- id: z171.string(),
4927
- type: z171.literal(DataSourceRemoteType.Enum.TokenStudio),
4928
- fileName: z171.string(),
4929
- brandId: z171.string(),
4930
- themeId: z171.string().nullish(),
4931
- cloud: z171.literal(null),
4932
- tokenStudio: z171.object({
4933
- settings: z171.object({
4934
- dryRun: z171.boolean(),
4935
- verbose: z171.boolean(),
4936
- preciseCopy: z171.boolean()
4935
+ tokenStudio: z172.literal(null),
4936
+ upload: z172.literal(null),
4937
+ figmaVariablesPlugin: z172.literal(null)
4938
+ });
4939
+ var DTODataSourceTokenStudio = z172.object({
4940
+ id: z172.string(),
4941
+ type: z172.literal(DataSourceRemoteType.Enum.TokenStudio),
4942
+ fileName: z172.string(),
4943
+ brandId: z172.string(),
4944
+ themeId: z172.string().nullish(),
4945
+ cloud: z172.literal(null),
4946
+ tokenStudio: z172.object({
4947
+ settings: z172.object({
4948
+ dryRun: z172.boolean(),
4949
+ verbose: z172.boolean(),
4950
+ preciseCopy: z172.boolean()
4937
4951
  }),
4938
- connectionName: z171.string(),
4939
- lastImportedAt: z171.date(),
4940
- lastImportedResults: z171.array(
4941
- z171.object({
4942
- mapping: z171.object({
4943
- tokenSets: z171.array(z171.string()),
4944
- supernovaBrand: z171.string(),
4945
- supernovaTheme: z171.string().optional()
4952
+ connectionName: z172.string(),
4953
+ lastImportedAt: z172.date(),
4954
+ lastImportedResults: z172.array(
4955
+ z172.object({
4956
+ mapping: z172.object({
4957
+ tokenSets: z172.array(z172.string()),
4958
+ supernovaBrand: z172.string(),
4959
+ supernovaTheme: z172.string().optional()
4946
4960
  }),
4947
- isFailed: z171.boolean(),
4948
- tokensCreated: z171.number(),
4949
- tokensDeleted: z171.number(),
4950
- tokensUpdated: z171.number()
4961
+ isFailed: z172.boolean(),
4962
+ tokensCreated: z172.number(),
4963
+ tokensDeleted: z172.number(),
4964
+ tokensUpdated: z172.number()
4951
4965
  })
4952
4966
  )
4953
4967
  }),
4954
- upload: z171.literal(null),
4955
- figmaVariablesPlugin: z171.literal(null)
4956
- });
4957
- var DTODataSourceFigmaVariablesPlugin = z171.object({
4958
- id: z171.string(),
4959
- type: z171.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4960
- fileName: z171.string(),
4961
- brandId: z171.string(),
4962
- themeId: z171.literal(null),
4963
- cloud: z171.literal(null),
4964
- tokenStudio: z171.literal(null),
4965
- upload: z171.object({
4966
- remoteId: z171.string(),
4968
+ upload: z172.literal(null),
4969
+ figmaVariablesPlugin: z172.literal(null)
4970
+ });
4971
+ var DTODataSourceFigmaVariablesPlugin = z172.object({
4972
+ id: z172.string(),
4973
+ type: z172.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4974
+ fileName: z172.string(),
4975
+ brandId: z172.string(),
4976
+ themeId: z172.literal(null),
4977
+ cloud: z172.literal(null),
4978
+ tokenStudio: z172.literal(null),
4979
+ upload: z172.object({
4980
+ remoteId: z172.string(),
4967
4981
  remoteSourceType: DataSourceUploadRemoteSource,
4968
- lastImportedAt: z171.date().optional(),
4982
+ lastImportedAt: z172.date().optional(),
4969
4983
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4970
4984
  }),
4971
- figmaVariablesPlugin: z171.object({
4972
- fileId: z171.string(),
4973
- lastImportedAt: z171.date().optional(),
4985
+ figmaVariablesPlugin: z172.object({
4986
+ fileId: z172.string(),
4987
+ lastImportedAt: z172.date().optional(),
4974
4988
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4975
4989
  })
4976
4990
  });
4977
- var DTODataSource = z171.discriminatedUnion("type", [
4991
+ var DTODataSource = z172.discriminatedUnion("type", [
4978
4992
  DTODataSourceFigma,
4979
4993
  DTODataSourceFigmaVariablesPlugin,
4980
4994
  DTODataSourceTokenStudio
4981
4995
  ]);
4982
- var DTODataSourcesListResponse = z171.object({
4983
- sources: z171.array(DTODataSource)
4996
+ var DTODataSourcesListResponse = z172.object({
4997
+ sources: z172.array(DTODataSource)
4984
4998
  });
4985
- var DTODataSourceCreationResponse = z171.object({
4999
+ var DTODataSourceCreationResponse = z172.object({
4986
5000
  source: DTODataSource
4987
5001
  });
4988
5002
 
4989
5003
  // src/api/dto/design-systems/design-system.ts
4990
- import { z as z172 } from "zod";
5004
+ import { z as z173 } from "zod";
4991
5005
  var DTODesignSystem = DesignSystem.omit({
4992
5006
  name: true,
4993
5007
  description: true,
4994
5008
  docExporterId: true
4995
5009
  }).extend({
4996
5010
  meta: ObjectMeta,
4997
- docExporterId: z172.string(),
4998
- sources: z172.array(z172.any())
5011
+ docExporterId: z173.string(),
5012
+ sources: z173.array(z173.any())
4999
5013
  });
5000
5014
 
5001
5015
  // src/api/dto/design-systems/elements-diff.ts
5002
- import { z as z173 } from "zod";
5003
- var DTODiffCountBase = z173.object({
5004
- created: z173.number(),
5005
- updated: z173.number(),
5006
- deleted: z173.number()
5016
+ import { z as z174 } from "zod";
5017
+ var DTODiffCountBase = z174.object({
5018
+ created: z174.number(),
5019
+ updated: z174.number(),
5020
+ deleted: z174.number()
5007
5021
  });
5008
- var DTODesignElementsDataDiffResponse = z173.object({
5022
+ var DTODesignElementsDataDiffResponse = z174.object({
5009
5023
  tokens: DTODiffCountBase,
5010
5024
  assets: DTODiffCountBase
5011
5025
  });
5012
5026
 
5013
5027
  // src/api/dto/design-systems/exporter-property.ts
5014
- import { z as z174 } from "zod";
5015
- var DTOExporterProperty = z174.any({});
5016
- var DTOExporterPropertyListResponse = z174.object({ items: z174.array(DTOExporterProperty) });
5028
+ import { z as z175 } from "zod";
5029
+ var DTOExporterProperty = z175.any({});
5030
+ var DTOExporterPropertyListResponse = z175.object({ items: z175.array(DTOExporterProperty) });
5017
5031
 
5018
5032
  // src/api/dto/design-systems/version.ts
5019
- import { z as z184 } from "zod";
5033
+ import { z as z185 } from "zod";
5020
5034
 
5021
5035
  // src/api/payloads/design-systems/brand.ts
5022
- import { z as z175 } from "zod";
5023
- var DTOCreateBrandInput = z175.object({
5024
- persistentId: z175.string().uuid(),
5025
- meta: z175.object({
5026
- name: z175.string(),
5027
- description: z175.string()
5036
+ import { z as z176 } from "zod";
5037
+ var DTOCreateBrandInput = z176.object({
5038
+ persistentId: z176.string().uuid(),
5039
+ meta: z176.object({
5040
+ name: z176.string(),
5041
+ description: z176.string()
5028
5042
  })
5029
5043
  });
5030
5044
 
@@ -5032,31 +5046,31 @@ var DTOCreateBrandInput = z175.object({
5032
5046
  var DTODesignSystemUpdateInput = DesignSystemUpdateInput;
5033
5047
 
5034
5048
  // src/api/payloads/design-systems/version.ts
5035
- import { z as z176 } from "zod";
5036
- var ObjectMeta2 = z176.object({
5037
- name: z176.string().max(150).optional(),
5038
- description: z176.string().max(2e3).optional()
5049
+ import { z as z177 } from "zod";
5050
+ var ObjectMeta2 = z177.object({
5051
+ name: z177.string().max(150).optional(),
5052
+ description: z177.string().max(2e3).optional()
5039
5053
  });
5040
5054
  function validateDesignSystemVersion(version) {
5041
5055
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5042
5056
  return urlCompliantRegex.test(version);
5043
5057
  }
5044
- var DTOCreateVersionInput = z176.object({
5058
+ var DTOCreateVersionInput = z177.object({
5045
5059
  meta: ObjectMeta2,
5046
- version: z176.string().refine(validateDesignSystemVersion, {
5060
+ version: z177.string().refine(validateDesignSystemVersion, {
5047
5061
  message: "Invalid semantic versioning format"
5048
5062
  }),
5049
- changeLog: z176.string().optional()
5063
+ changeLog: z177.string().optional()
5050
5064
  });
5051
- var DTOUpdateVersionInput = z176.object({
5065
+ var DTOUpdateVersionInput = z177.object({
5052
5066
  meta: ObjectMeta2,
5053
- version: z176.string(),
5067
+ version: z177.string(),
5054
5068
  // required for PUT, but not editable
5055
- changeLog: z176.string()
5069
+ changeLog: z177.string()
5056
5070
  });
5057
5071
 
5058
5072
  // src/api/payloads/documentation/block-definitions.ts
5059
- import { z as z177 } from "zod";
5073
+ import { z as z178 } from "zod";
5060
5074
 
5061
5075
  // src/api/dto/documentation/block-definition.ts
5062
5076
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5068,59 +5082,59 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5068
5082
  var DTOPageBlockDefinition = PageBlockDefinition;
5069
5083
 
5070
5084
  // src/api/payloads/documentation/block-definitions.ts
5071
- var DTOGetBlockDefinitionsOutput = z177.object({
5072
- definitions: z177.array(DTOPageBlockDefinition)
5085
+ var DTOGetBlockDefinitionsOutput = z178.object({
5086
+ definitions: z178.array(DTOPageBlockDefinition)
5073
5087
  });
5074
5088
 
5075
5089
  // src/api/payloads/documentation/design-data-doc-diff.ts
5076
- import { z as z178 } from "zod";
5077
- var DTODocumentationPublishTypeQueryParams = z178.object({
5078
- environment: z178.enum(["Live", "Preview"])
5090
+ import { z as z179 } from "zod";
5091
+ var DTODocumentationPublishTypeQueryParams = z179.object({
5092
+ environment: z179.enum(["Live", "Preview"])
5079
5093
  });
5080
5094
 
5081
5095
  // src/api/payloads/export/pipeline.ts
5082
- import { z as z179 } from "zod";
5083
- var DTOPipelineCreateBody = z179.object({
5084
- name: z179.string(),
5085
- exporterId: z179.string(),
5086
- designSystemId: z179.string(),
5087
- isEnabled: z179.boolean(),
5096
+ import { z as z180 } from "zod";
5097
+ var DTOPipelineCreateBody = z180.object({
5098
+ name: z180.string(),
5099
+ exporterId: z180.string(),
5100
+ designSystemId: z180.string(),
5101
+ isEnabled: z180.boolean(),
5088
5102
  eventType: PipelineEventType,
5089
- brandPersistentId: z179.string().optional(),
5090
- themePersistentId: z179.string().optional(),
5103
+ brandPersistentId: z180.string().optional(),
5104
+ themePersistentId: z180.string().optional(),
5091
5105
  destination: PipelineDestinationType.optional(),
5092
5106
  gitQuery: GitObjectsQuery,
5093
- destinations: z179.object({
5107
+ destinations: z180.object({
5094
5108
  s3: ExporterDestinationS3.nullish(),
5095
5109
  azure: ExporterDestinationAzure.nullish(),
5096
5110
  bitbucket: ExporterDestinationBitbucket.nullish(),
5097
5111
  github: ExporterDestinationGithub.nullish(),
5098
5112
  gitlab: ExporterDestinationGitlab.nullish(),
5099
5113
  documentation: ExporterDestinationDocs.nullish(),
5100
- webhookUrl: z179.string().nullish()
5114
+ webhookUrl: z180.string().nullish()
5101
5115
  })
5102
5116
  });
5103
5117
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5104
- id: z179.string()
5118
+ id: z180.string()
5105
5119
  });
5106
- var DTOPipelineTriggerBody = z179.object({
5107
- designSystemVersionId: z179.string()
5120
+ var DTOPipelineTriggerBody = z180.object({
5121
+ designSystemVersionId: z180.string()
5108
5122
  });
5109
5123
 
5110
5124
  // src/api/payloads/liveblocks/auth.ts
5111
- import { z as z180 } from "zod";
5112
- var DTOLiveblocksAuthRequest = z180.object({
5113
- room: z180.string().optional()
5125
+ import { z as z181 } from "zod";
5126
+ var DTOLiveblocksAuthRequest = z181.object({
5127
+ room: z181.string().optional()
5114
5128
  });
5115
5129
 
5116
5130
  // src/api/payloads/users/notifications/notification-settings.ts
5117
- import { z as z181 } from "zod";
5118
- var DTOUpdateUserNotificationSettingsPayload = z181.object({
5131
+ import { z as z182 } from "zod";
5132
+ var DTOUpdateUserNotificationSettingsPayload = z182.object({
5119
5133
  notificationSettings: UserNotificationSettings
5120
5134
  });
5121
- var DTOUserNotificationSettingsResponse = z181.object({
5122
- userId: z181.string(),
5123
- workspaceId: z181.string(),
5135
+ var DTOUserNotificationSettingsResponse = z182.object({
5136
+ userId: z182.string(),
5137
+ workspaceId: z182.string(),
5124
5138
  notificationSettings: UserNotificationSettings
5125
5139
  });
5126
5140
 
@@ -5128,7 +5142,7 @@ var DTOUserNotificationSettingsResponse = z181.object({
5128
5142
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5129
5143
 
5130
5144
  // src/api/payloads/workspaces/workspace-configuration.ts
5131
- import { z as z182 } from "zod";
5145
+ import { z as z183 } from "zod";
5132
5146
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5133
5147
  function validateSsoPayload(ssoPayload) {
5134
5148
  const keys = [];
@@ -5151,21 +5165,21 @@ function validateSsoPayload(ssoPayload) {
5151
5165
  keys
5152
5166
  };
5153
5167
  }
5154
- var NpmRegistryInput = z182.object({
5155
- enabledScopes: z182.array(z182.string()),
5156
- customRegistryUrl: z182.string().optional(),
5157
- bypassProxy: z182.boolean().optional(),
5158
- npmProxyRegistryConfigId: z182.string().optional(),
5159
- npmProxyVersion: z182.number().optional(),
5160
- registryType: z182.string(),
5161
- authType: z182.string(),
5162
- authHeaderName: z182.string(),
5163
- authHeaderValue: z182.string(),
5164
- accessToken: z182.string(),
5165
- username: z182.string(),
5166
- password: z182.string()
5167
- });
5168
- var WorkspaceConfigurationPayload = z182.object({
5168
+ var NpmRegistryInput = z183.object({
5169
+ enabledScopes: z183.array(z183.string()),
5170
+ customRegistryUrl: z183.string().optional(),
5171
+ bypassProxy: z183.boolean().optional(),
5172
+ npmProxyRegistryConfigId: z183.string().optional(),
5173
+ npmProxyVersion: z183.number().optional(),
5174
+ registryType: z183.string(),
5175
+ authType: z183.string(),
5176
+ authHeaderName: z183.string(),
5177
+ authHeaderValue: z183.string(),
5178
+ accessToken: z183.string(),
5179
+ username: z183.string(),
5180
+ password: z183.string()
5181
+ });
5182
+ var WorkspaceConfigurationPayload = z183.object({
5169
5183
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5170
5184
  sso: SsoProvider.partial().optional(),
5171
5185
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5173,363 +5187,363 @@ var WorkspaceConfigurationPayload = z182.object({
5173
5187
  });
5174
5188
 
5175
5189
  // src/api/payloads/workspaces/workspace-integrations.ts
5176
- import { z as z183 } from "zod";
5177
- var DTOWorkspaceIntegrationOauthInput = z183.object({
5190
+ import { z as z184 } from "zod";
5191
+ var DTOWorkspaceIntegrationOauthInput = z184.object({
5178
5192
  type: IntegrationType
5179
5193
  });
5180
- var DTOWorkspaceIntegrationPATInput = z183.object({
5181
- userId: z183.string(),
5194
+ var DTOWorkspaceIntegrationPATInput = z184.object({
5195
+ userId: z184.string(),
5182
5196
  type: IntegrationType,
5183
5197
  token: IntegrationToken
5184
5198
  });
5185
- var DTOWorkspaceIntegrationGetGitObjectsInput = z183.object({
5186
- organization: z183.string().optional(),
5199
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z184.object({
5200
+ organization: z184.string().optional(),
5187
5201
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5188
- project: z183.string().optional(),
5202
+ project: z184.string().optional(),
5189
5203
  // Only for Bitbucket and Azure
5190
- repository: z183.string().optional(),
5204
+ repository: z184.string().optional(),
5191
5205
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5192
- branch: z183.string().optional(),
5206
+ branch: z184.string().optional(),
5193
5207
  // For all providers, useful for PR creations.
5194
- user: z183.string().optional()
5208
+ user: z184.string().optional()
5195
5209
  // Only for Gitlab User Repositories
5196
5210
  });
5197
5211
 
5198
5212
  // src/api/dto/design-systems/version.ts
5199
- var DTODesignSystemVersion = z184.object({
5200
- id: z184.string(),
5201
- createdAt: z184.date(),
5213
+ var DTODesignSystemVersion = z185.object({
5214
+ id: z185.string(),
5215
+ createdAt: z185.date(),
5202
5216
  meta: ObjectMeta,
5203
- version: z184.string(),
5204
- isReadonly: z184.boolean(),
5205
- changeLog: z184.string(),
5206
- designSystemId: z184.string()
5217
+ version: z185.string(),
5218
+ isReadonly: z185.boolean(),
5219
+ changeLog: z185.string(),
5220
+ designSystemId: z185.string()
5207
5221
  });
5208
- var DTODesignSystemVersionsListResponse = z184.object({
5209
- designSystemVersions: z184.array(DTODesignSystemVersion)
5222
+ var DTODesignSystemVersionsListResponse = z185.object({
5223
+ designSystemVersions: z185.array(DTODesignSystemVersion)
5210
5224
  });
5211
- var DTODesignSystemVersionGetResponse = z184.object({
5225
+ var DTODesignSystemVersionGetResponse = z185.object({
5212
5226
  designSystemVersion: DTODesignSystemVersion
5213
5227
  });
5214
- var DTODesignSystemVersionCreationResponse = z184.object({
5228
+ var DTODesignSystemVersionCreationResponse = z185.object({
5215
5229
  meta: ObjectMeta,
5216
- version: z184.string(),
5217
- changeLog: z184.string(),
5218
- isReadOnly: z184.boolean(),
5219
- designSystemId: z184.string(),
5220
- jobId: z184.string()
5221
- });
5222
- var VersionSQSPayload = z184.object({
5223
- jobId: z184.string(),
5224
- designSystemId: z184.string(),
5230
+ version: z185.string(),
5231
+ changeLog: z185.string(),
5232
+ isReadOnly: z185.boolean(),
5233
+ designSystemId: z185.string(),
5234
+ jobId: z185.string()
5235
+ });
5236
+ var VersionSQSPayload = z185.object({
5237
+ jobId: z185.string(),
5238
+ designSystemId: z185.string(),
5225
5239
  input: DTOCreateVersionInput
5226
5240
  });
5227
- var DTODesignSystemVersionJobsResponse = z184.object({
5228
- jobs: z184.array(VersionCreationJob)
5241
+ var DTODesignSystemVersionJobsResponse = z185.object({
5242
+ jobs: z185.array(VersionCreationJob)
5229
5243
  });
5230
- var DTODesignSystemVersionJobStatusResponse = z184.object({
5244
+ var DTODesignSystemVersionJobStatusResponse = z185.object({
5231
5245
  job: VersionCreationJob
5232
5246
  });
5233
5247
 
5234
5248
  // src/api/dto/design-systems/view.ts
5235
- import { z as z185 } from "zod";
5236
- var DTOElementViewColumnSharedAttributes = z185.object({
5237
- id: z185.string(),
5238
- persistentId: z185.string(),
5239
- width: z185.number()
5249
+ import { z as z186 } from "zod";
5250
+ var DTOElementViewColumnSharedAttributes = z186.object({
5251
+ id: z186.string(),
5252
+ persistentId: z186.string(),
5253
+ width: z186.number()
5240
5254
  });
5241
5255
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5242
- type: z185.literal("BaseProperty"),
5256
+ type: z186.literal("BaseProperty"),
5243
5257
  basePropertyType: ElementViewBaseColumnType
5244
5258
  });
5245
5259
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5246
- type: z185.literal("PropertyDefinition"),
5247
- propertyDefinitionId: z185.string()
5260
+ type: z186.literal("PropertyDefinition"),
5261
+ propertyDefinitionId: z186.string()
5248
5262
  });
5249
5263
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5250
- type: z185.literal("Theme"),
5251
- themeId: z185.string()
5264
+ type: z186.literal("Theme"),
5265
+ themeId: z186.string()
5252
5266
  });
5253
- var DTOElementViewColumn = z185.discriminatedUnion("type", [
5267
+ var DTOElementViewColumn = z186.discriminatedUnion("type", [
5254
5268
  DTOElementViewBasePropertyColumn,
5255
5269
  DTOElementViewPropertyDefinitionColumn,
5256
5270
  DTOElementViewThemeColumn
5257
5271
  ]);
5258
- var DTOElementView = z185.object({
5272
+ var DTOElementView = z186.object({
5259
5273
  meta: ObjectMeta,
5260
- persistentId: z185.string(),
5274
+ persistentId: z186.string(),
5261
5275
  targetElementType: ElementPropertyTargetType,
5262
- id: z185.string(),
5263
- isDefault: z185.boolean(),
5264
- columns: z185.array(DTOElementViewColumn)
5276
+ id: z186.string(),
5277
+ isDefault: z186.boolean(),
5278
+ columns: z186.array(DTOElementViewColumn)
5265
5279
  });
5266
- var DTOElementViewsListResponse = z185.object({
5267
- elementDataViews: z185.array(DTOElementView)
5280
+ var DTOElementViewsListResponse = z186.object({
5281
+ elementDataViews: z186.array(DTOElementView)
5268
5282
  });
5269
5283
 
5270
5284
  // src/api/dto/documentation/anchor.ts
5271
- import { z as z186 } from "zod";
5285
+ import { z as z187 } from "zod";
5272
5286
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5273
- var DTOGetDocumentationPageAnchorsResponse = z186.object({
5274
- anchors: z186.array(DTODocumentationPageAnchor)
5287
+ var DTOGetDocumentationPageAnchorsResponse = z187.object({
5288
+ anchors: z187.array(DTODocumentationPageAnchor)
5275
5289
  });
5276
5290
 
5277
5291
  // src/api/dto/documentation/block.ts
5278
5292
  var DTOPageBlockItemV2 = PageBlockItemV2;
5279
5293
 
5280
5294
  // src/api/dto/documentation/documentation-page-snapshot.ts
5281
- import { z as z191 } from "zod";
5295
+ import { z as z192 } from "zod";
5282
5296
 
5283
5297
  // src/api/dto/elements/documentation/page-v2.ts
5284
- import { z as z190 } from "zod";
5298
+ import { z as z191 } from "zod";
5285
5299
 
5286
5300
  // src/api/dto/elements/documentation/draft-state.ts
5287
- import { z as z188 } from "zod";
5301
+ import { z as z189 } from "zod";
5288
5302
 
5289
5303
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5290
- import { z as z187 } from "zod";
5304
+ import { z as z188 } from "zod";
5291
5305
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5292
- var DTODocumentationItemConfigurationV2 = z187.object({
5293
- showSidebar: z187.boolean(),
5294
- isPrivate: z187.boolean(),
5295
- isHidden: z187.boolean(),
5306
+ var DTODocumentationItemConfigurationV2 = z188.object({
5307
+ showSidebar: z188.boolean(),
5308
+ isPrivate: z188.boolean(),
5309
+ isHidden: z188.boolean(),
5296
5310
  header: DTODocumentationItemHeaderV2
5297
5311
  });
5298
5312
 
5299
5313
  // src/api/dto/elements/documentation/draft-state.ts
5300
- var DTODocumentationDraftChangeType = z188.enum(["Created", "Updated", "Deleted"]);
5301
- var DTODocumentationDraftStateCreated = z188.object({
5302
- changeType: z188.literal(DTODocumentationDraftChangeType.enum.Created)
5303
- });
5304
- var DTODocumentationDraftStateUpdated = z188.object({
5305
- changeType: z188.literal(DTODocumentationDraftChangeType.enum.Updated),
5306
- changes: z188.object({
5307
- previousTitle: z188.string().optional(),
5314
+ var DTODocumentationDraftChangeType = z189.enum(["Created", "Updated", "Deleted"]);
5315
+ var DTODocumentationDraftStateCreated = z189.object({
5316
+ changeType: z189.literal(DTODocumentationDraftChangeType.enum.Created)
5317
+ });
5318
+ var DTODocumentationDraftStateUpdated = z189.object({
5319
+ changeType: z189.literal(DTODocumentationDraftChangeType.enum.Updated),
5320
+ changes: z189.object({
5321
+ previousTitle: z189.string().optional(),
5308
5322
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5309
- previousContentHash: z188.string().optional()
5323
+ previousContentHash: z189.string().optional()
5310
5324
  })
5311
5325
  });
5312
- var DTODocumentationDraftStateDeleted = z188.object({
5313
- changeType: z188.literal(DTODocumentationDraftChangeType.enum.Deleted),
5314
- deletedAt: z188.coerce.date(),
5315
- deletedByUserId: z188.string()
5326
+ var DTODocumentationDraftStateDeleted = z189.object({
5327
+ changeType: z189.literal(DTODocumentationDraftChangeType.enum.Deleted),
5328
+ deletedAt: z189.coerce.date(),
5329
+ deletedByUserId: z189.string()
5316
5330
  });
5317
- var DTODocumentationDraftState = z188.discriminatedUnion("changeType", [
5331
+ var DTODocumentationDraftState = z189.discriminatedUnion("changeType", [
5318
5332
  DTODocumentationDraftStateCreated,
5319
5333
  DTODocumentationDraftStateUpdated,
5320
5334
  DTODocumentationDraftStateDeleted
5321
5335
  ]);
5322
5336
 
5323
5337
  // src/api/dto/elements/documentation/metadata.ts
5324
- import { z as z189 } from "zod";
5325
- var DTODocumentationPublishMetadata = z189.object({
5326
- lastPublishedByUserId: z189.string(),
5327
- lastPublishedAt: z189.coerce.date()
5338
+ import { z as z190 } from "zod";
5339
+ var DTODocumentationPublishMetadata = z190.object({
5340
+ lastPublishedByUserId: z190.string(),
5341
+ lastPublishedAt: z190.coerce.date()
5328
5342
  });
5329
5343
 
5330
5344
  // src/api/dto/elements/documentation/page-v2.ts
5331
- var DTODocumentationPageV2 = z190.object({
5332
- id: z190.string(),
5333
- persistentId: z190.string(),
5334
- designSystemVersionId: z190.string(),
5335
- title: z190.string(),
5345
+ var DTODocumentationPageV2 = z191.object({
5346
+ id: z191.string(),
5347
+ persistentId: z191.string(),
5348
+ designSystemVersionId: z191.string(),
5349
+ title: z191.string(),
5336
5350
  configuration: DTODocumentationItemConfigurationV2,
5337
- shortPersistentId: z190.string(),
5338
- slug: z190.string().optional(),
5339
- userSlug: z190.string().optional(),
5340
- createdAt: z190.coerce.date(),
5341
- updatedAt: z190.coerce.date(),
5342
- path: z190.string(),
5351
+ shortPersistentId: z191.string(),
5352
+ slug: z191.string().optional(),
5353
+ userSlug: z191.string().optional(),
5354
+ createdAt: z191.coerce.date(),
5355
+ updatedAt: z191.coerce.date(),
5356
+ path: z191.string(),
5343
5357
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5344
5358
  draftState: DTODocumentationDraftState.optional(),
5345
5359
  /** Defined if a page was published at least once and contains metadata about last publish */
5346
5360
  publishMetadata: DTODocumentationPublishMetadata.optional(),
5347
5361
  // Backward compatibility
5348
- type: z190.literal("Page")
5362
+ type: z191.literal("Page")
5349
5363
  });
5350
- var DTOCreateDocumentationPageInputV2 = z190.object({
5364
+ var DTOCreateDocumentationPageInputV2 = z191.object({
5351
5365
  // Identifier
5352
- persistentId: z190.string().uuid(),
5366
+ persistentId: z191.string().uuid(),
5353
5367
  // Page properties
5354
- title: z190.string(),
5368
+ title: z191.string(),
5355
5369
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5356
5370
  // Page placement properties
5357
- parentPersistentId: z190.string().uuid(),
5358
- afterPersistentId: z190.string().uuid().nullish()
5371
+ parentPersistentId: z191.string().uuid(),
5372
+ afterPersistentId: z191.string().uuid().nullish()
5359
5373
  });
5360
- var DTOUpdateDocumentationPageInputV2 = z190.object({
5374
+ var DTOUpdateDocumentationPageInputV2 = z191.object({
5361
5375
  // Identifier of the group to update
5362
- id: z190.string(),
5376
+ id: z191.string(),
5363
5377
  // Page properties
5364
- title: z190.string().optional(),
5378
+ title: z191.string().optional(),
5365
5379
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5366
5380
  });
5367
- var DTOMoveDocumentationPageInputV2 = z190.object({
5381
+ var DTOMoveDocumentationPageInputV2 = z191.object({
5368
5382
  // Identifier of the group to update
5369
- id: z190.string(),
5383
+ id: z191.string(),
5370
5384
  // Page placement properties
5371
- parentPersistentId: z190.string().uuid(),
5372
- afterPersistentId: z190.string().uuid().nullish()
5385
+ parentPersistentId: z191.string().uuid(),
5386
+ afterPersistentId: z191.string().uuid().nullish()
5373
5387
  });
5374
- var DTODuplicateDocumentationPageInputV2 = z190.object({
5388
+ var DTODuplicateDocumentationPageInputV2 = z191.object({
5375
5389
  // Identifier of the page to duplicate from
5376
- id: z190.string(),
5390
+ id: z191.string(),
5377
5391
  // New page persistent id
5378
- persistentId: z190.string().uuid(),
5392
+ persistentId: z191.string().uuid(),
5379
5393
  // Page placement properties
5380
- parentPersistentId: z190.string().uuid(),
5381
- afterPersistentId: z190.string().uuid().nullish()
5394
+ parentPersistentId: z191.string().uuid(),
5395
+ afterPersistentId: z191.string().uuid().nullish()
5382
5396
  });
5383
- var DTODeleteDocumentationPageInputV2 = z190.object({
5397
+ var DTODeleteDocumentationPageInputV2 = z191.object({
5384
5398
  // Identifier
5385
- id: z190.string()
5399
+ id: z191.string()
5386
5400
  });
5387
- var DTORestoreDocumentationPageInput = z190.object({
5388
- persistentId: z190.string(),
5389
- snapshotId: z190.string().optional()
5401
+ var DTORestoreDocumentationPageInput = z191.object({
5402
+ persistentId: z191.string(),
5403
+ snapshotId: z191.string().optional()
5390
5404
  });
5391
- var DTORestoreDocumentationGroupInput = z190.object({
5392
- persistentId: z190.string(),
5393
- snapshotId: z190.string().optional()
5405
+ var DTORestoreDocumentationGroupInput = z191.object({
5406
+ persistentId: z191.string(),
5407
+ snapshotId: z191.string().optional()
5394
5408
  });
5395
5409
 
5396
5410
  // src/api/dto/documentation/documentation-page-snapshot.ts
5397
- var DTODocumentationPageSnapshot = z191.object({
5398
- id: z191.string(),
5399
- designSystemVersionId: z191.string(),
5400
- createdAt: z191.string(),
5401
- updatedAt: z191.string(),
5411
+ var DTODocumentationPageSnapshot = z192.object({
5412
+ id: z192.string(),
5413
+ designSystemVersionId: z192.string(),
5414
+ createdAt: z192.string(),
5415
+ updatedAt: z192.string(),
5402
5416
  documentationPage: DTODocumentationPageV2,
5403
- pageContentHash: z191.string(),
5417
+ pageContentHash: z192.string(),
5404
5418
  reason: DesignElementSnapshotReason
5405
5419
  });
5406
5420
 
5407
5421
  // src/api/dto/documentation/link-preview.ts
5408
- import { z as z192 } from "zod";
5409
- var DTODocumentationLinkPreviewResponse = z192.object({
5422
+ import { z as z193 } from "zod";
5423
+ var DTODocumentationLinkPreviewResponse = z193.object({
5410
5424
  linkPreview: DocumentationLinkPreview
5411
5425
  });
5412
- var DTODocumentationLinkPreviewRequest = z192.object({
5413
- url: z192.string().optional(),
5414
- documentationItemPersistentId: z192.string().optional()
5426
+ var DTODocumentationLinkPreviewRequest = z193.object({
5427
+ url: z193.string().optional(),
5428
+ documentationItemPersistentId: z193.string().optional()
5415
5429
  });
5416
5430
 
5417
5431
  // src/api/dto/documentation/publish.ts
5418
- import { z as z196 } from "zod";
5432
+ import { z as z197 } from "zod";
5419
5433
 
5420
5434
  // src/api/dto/export/exporter.ts
5421
- import { z as z193 } from "zod";
5422
- var DTOExporterType = z193.enum(["documentation", "code"]);
5423
- var DTOExporterSource = z193.enum(["git", "upload"]);
5424
- var DTOExporterMembershipRole = z193.enum(["Owner", "OwnerArchived", "User"]);
5425
- var DTOExporter = z193.object({
5426
- id: z193.string(),
5427
- name: z193.string(),
5428
- isPrivate: z193.boolean(),
5435
+ import { z as z194 } from "zod";
5436
+ var DTOExporterType = z194.enum(["documentation", "code"]);
5437
+ var DTOExporterSource = z194.enum(["git", "upload"]);
5438
+ var DTOExporterMembershipRole = z194.enum(["Owner", "OwnerArchived", "User"]);
5439
+ var DTOExporter = z194.object({
5440
+ id: z194.string(),
5441
+ name: z194.string(),
5442
+ isPrivate: z194.boolean(),
5429
5443
  exporterType: DTOExporterType,
5430
- isDefaultDocumentationExporter: z193.boolean(),
5431
- iconURL: z193.string().optional(),
5444
+ isDefaultDocumentationExporter: z194.boolean(),
5445
+ iconURL: z194.string().optional(),
5432
5446
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5433
5447
  customBlocks: PulsarCustomBlock.array(),
5434
- blockVariants: z193.record(z193.string(), PulsarContributionVariant.array()),
5435
- usesBrands: z193.boolean(),
5436
- usesThemes: z193.boolean(),
5448
+ blockVariants: z194.record(z194.string(), PulsarContributionVariant.array()),
5449
+ usesBrands: z194.boolean(),
5450
+ usesThemes: z194.boolean(),
5437
5451
  source: DTOExporterSource,
5438
- gitUrl: z193.string().optional(),
5439
- gitBranch: z193.string().optional(),
5440
- gitDirectory: z193.string().optional()
5452
+ gitUrl: z194.string().optional(),
5453
+ gitBranch: z194.string().optional(),
5454
+ gitDirectory: z194.string().optional()
5441
5455
  });
5442
- var DTOExporterMembership = z193.object({
5443
- workspaceId: z193.string(),
5444
- exporterId: z193.string(),
5456
+ var DTOExporterMembership = z194.object({
5457
+ workspaceId: z194.string(),
5458
+ exporterId: z194.string(),
5445
5459
  role: DTOExporterMembershipRole
5446
5460
  });
5447
- var DTOExporterCreateOutput = z193.object({
5461
+ var DTOExporterCreateOutput = z194.object({
5448
5462
  exporter: DTOExporter,
5449
5463
  membership: DTOExporterMembership
5450
5464
  });
5451
- var DTOExporterGitProviderEnum = z193.enum(["github", "gitlab", "bitbucket", "azure"]);
5452
- var DTOExporterCreateInput = z193.object({
5453
- url: z193.string(),
5465
+ var DTOExporterGitProviderEnum = z194.enum(["github", "gitlab", "bitbucket", "azure"]);
5466
+ var DTOExporterCreateInput = z194.object({
5467
+ url: z194.string(),
5454
5468
  provider: DTOExporterGitProviderEnum
5455
5469
  });
5456
- var DTOExporterUpdateInput = z193.object({
5457
- url: z193.string().optional()
5470
+ var DTOExporterUpdateInput = z194.object({
5471
+ url: z194.string().optional()
5458
5472
  });
5459
5473
 
5460
5474
  // src/api/dto/export/filter.ts
5461
5475
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5462
5476
 
5463
5477
  // src/api/dto/export/job.ts
5464
- import { z as z194 } from "zod";
5465
- var DTOExportJobCreatedBy = z194.object({
5466
- userId: z194.string(),
5467
- userName: z194.string()
5478
+ import { z as z195 } from "zod";
5479
+ var DTOExportJobCreatedBy = z195.object({
5480
+ userId: z195.string(),
5481
+ userName: z195.string()
5468
5482
  });
5469
- var DTOExportJobDesignSystemPreview = z194.object({
5470
- id: z194.string(),
5483
+ var DTOExportJobDesignSystemPreview = z195.object({
5484
+ id: z195.string(),
5471
5485
  meta: ObjectMeta
5472
5486
  });
5473
- var DTOExportJobDesignSystemVersionPreview = z194.object({
5474
- id: z194.string(),
5487
+ var DTOExportJobDesignSystemVersionPreview = z195.object({
5488
+ id: z195.string(),
5475
5489
  meta: ObjectMeta,
5476
- version: z194.string(),
5477
- isReadonly: z194.boolean()
5490
+ version: z195.string(),
5491
+ isReadonly: z195.boolean()
5478
5492
  });
5479
- var DTOExportJobDestinations = z194.object({
5493
+ var DTOExportJobDestinations = z195.object({
5480
5494
  s3: ExporterDestinationS3.optional(),
5481
5495
  azure: ExporterDestinationAzure.optional(),
5482
5496
  bitbucket: ExporterDestinationBitbucket.optional(),
5483
5497
  github: ExporterDestinationGithub.optional(),
5484
5498
  gitlab: ExporterDestinationGitlab.optional(),
5485
5499
  documentation: ExporterDestinationDocs.optional(),
5486
- webhookUrl: z194.string().optional()
5500
+ webhookUrl: z195.string().optional()
5487
5501
  });
5488
5502
  var DTOExportJobResult = ExportJobResult.omit({
5489
5503
  sndocs: true
5490
5504
  }).extend({
5491
5505
  documentation: ExportJobDocsDestinationResult.optional()
5492
5506
  });
5493
- var DTOExportJob = z194.object({
5494
- id: z194.string(),
5495
- createdAt: z194.coerce.date(),
5496
- finishedAt: z194.coerce.date().optional(),
5497
- index: z194.number().optional(),
5507
+ var DTOExportJob = z195.object({
5508
+ id: z195.string(),
5509
+ createdAt: z195.coerce.date(),
5510
+ finishedAt: z195.coerce.date().optional(),
5511
+ index: z195.number().optional(),
5498
5512
  status: ExportJobStatus,
5499
- estimatedExecutionTime: z194.number().optional(),
5513
+ estimatedExecutionTime: z195.number().optional(),
5500
5514
  createdBy: DTOExportJobCreatedBy.optional(),
5501
5515
  designSystem: DTOExportJobDesignSystemPreview,
5502
5516
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5503
5517
  destinations: DTOExportJobDestinations,
5504
- exporterId: z194.string(),
5505
- scheduleId: z194.string().optional(),
5518
+ exporterId: z195.string(),
5519
+ scheduleId: z195.string().optional(),
5506
5520
  result: DTOExportJobResult.optional(),
5507
- brandPersistentId: z194.string().optional(),
5508
- themePersistentId: z194.string().optional()
5521
+ brandPersistentId: z195.string().optional(),
5522
+ themePersistentId: z195.string().optional()
5509
5523
  });
5510
- var DTOExportJobResponse = z194.object({
5524
+ var DTOExportJobResponse = z195.object({
5511
5525
  job: DTOExportJob
5512
5526
  });
5513
5527
 
5514
5528
  // src/api/dto/export/pipeline.ts
5515
- import { z as z195 } from "zod";
5516
- var DTOPipeline = z195.object({
5517
- id: z195.string(),
5518
- name: z195.string(),
5529
+ import { z as z196 } from "zod";
5530
+ var DTOPipeline = z196.object({
5531
+ id: z196.string(),
5532
+ name: z196.string(),
5519
5533
  eventType: PipelineEventType,
5520
- isEnabled: z195.boolean(),
5521
- workspaceId: z195.string(),
5522
- designSystemId: z195.string(),
5523
- exporterId: z195.string(),
5524
- brandPersistentId: z195.string().optional(),
5525
- themePersistentId: z195.string().optional(),
5534
+ isEnabled: z196.boolean(),
5535
+ workspaceId: z196.string(),
5536
+ designSystemId: z196.string(),
5537
+ exporterId: z196.string(),
5538
+ brandPersistentId: z196.string().optional(),
5539
+ themePersistentId: z196.string().optional(),
5526
5540
  ...ExportDestinationsMap.shape,
5527
5541
  latestJobs: DTOExportJob.array()
5528
5542
  });
5529
5543
 
5530
5544
  // src/api/dto/documentation/publish.ts
5531
5545
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5532
- var DTOPublishDocumentationRequest = z196.object({
5546
+ var DTOPublishDocumentationRequest = z197.object({
5533
5547
  environment: PublishedDocEnvironment,
5534
5548
  /**
5535
5549
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5537,15 +5551,15 @@ var DTOPublishDocumentationRequest = z196.object({
5537
5551
  */
5538
5552
  changes: DTOPublishDocumentationChanges.optional()
5539
5553
  });
5540
- var DTOPublishDocumentationResponse = z196.object({
5554
+ var DTOPublishDocumentationResponse = z197.object({
5541
5555
  job: DTOExportJob
5542
5556
  });
5543
5557
 
5544
5558
  // src/api/dto/elements/documentation/group-action.ts
5545
- import { z as z198 } from "zod";
5559
+ import { z as z199 } from "zod";
5546
5560
 
5547
5561
  // src/api/dto/elements/documentation/group-v2.ts
5548
- import { z as z197 } from "zod";
5562
+ import { z as z198 } from "zod";
5549
5563
  var DTODocumentationGroupV2 = ElementGroup.omit({
5550
5564
  sortOrder: true,
5551
5565
  parentPersistentId: true,
@@ -5555,139 +5569,139 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5555
5569
  data: true,
5556
5570
  shortPersistentId: true
5557
5571
  }).extend({
5558
- title: z197.string(),
5559
- isRoot: z197.boolean(),
5560
- childrenIds: z197.array(z197.string()),
5572
+ title: z198.string(),
5573
+ isRoot: z198.boolean(),
5574
+ childrenIds: z198.array(z198.string()),
5561
5575
  groupBehavior: DocumentationGroupBehavior,
5562
- shortPersistentId: z197.string(),
5576
+ shortPersistentId: z198.string(),
5563
5577
  configuration: DTODocumentationItemConfigurationV2,
5564
- type: z197.literal("Group"),
5578
+ type: z198.literal("Group"),
5565
5579
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5566
5580
  draftState: DTODocumentationDraftState.optional(),
5567
5581
  /** Defined if a group was published at least once and contains metadata about last publish */
5568
5582
  publishMetadata: DTODocumentationPublishMetadata.optional()
5569
5583
  });
5570
- var DTOCreateDocumentationGroupInput = z197.object({
5584
+ var DTOCreateDocumentationGroupInput = z198.object({
5571
5585
  // Identifier
5572
- persistentId: z197.string().uuid(),
5586
+ persistentId: z198.string().uuid(),
5573
5587
  // Group properties
5574
- title: z197.string(),
5588
+ title: z198.string(),
5575
5589
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5576
5590
  // Group placement properties
5577
- afterPersistentId: z197.string().uuid().nullish(),
5578
- parentPersistentId: z197.string().uuid()
5591
+ afterPersistentId: z198.string().uuid().nullish(),
5592
+ parentPersistentId: z198.string().uuid()
5579
5593
  });
5580
- var DTOUpdateDocumentationGroupInput = z197.object({
5594
+ var DTOUpdateDocumentationGroupInput = z198.object({
5581
5595
  // Identifier of the group to update
5582
- id: z197.string(),
5596
+ id: z198.string(),
5583
5597
  // Group properties
5584
- title: z197.string().optional(),
5598
+ title: z198.string().optional(),
5585
5599
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5586
5600
  });
5587
- var DTOMoveDocumentationGroupInput = z197.object({
5601
+ var DTOMoveDocumentationGroupInput = z198.object({
5588
5602
  // Identifier of the group to update
5589
- id: z197.string(),
5603
+ id: z198.string(),
5590
5604
  // Group placement properties
5591
- parentPersistentId: z197.string().uuid(),
5592
- afterPersistentId: z197.string().uuid().nullish()
5605
+ parentPersistentId: z198.string().uuid(),
5606
+ afterPersistentId: z198.string().uuid().nullish()
5593
5607
  });
5594
- var DTODuplicateDocumentationGroupInput = z197.object({
5608
+ var DTODuplicateDocumentationGroupInput = z198.object({
5595
5609
  // Identifier of the group to duplicate from
5596
- id: z197.string(),
5610
+ id: z198.string(),
5597
5611
  // New group persistent id
5598
- persistentId: z197.string().uuid(),
5612
+ persistentId: z198.string().uuid(),
5599
5613
  // Group placement properties
5600
- afterPersistentId: z197.string().uuid().nullish(),
5601
- parentPersistentId: z197.string().uuid()
5614
+ afterPersistentId: z198.string().uuid().nullish(),
5615
+ parentPersistentId: z198.string().uuid()
5602
5616
  });
5603
- var DTOCreateDocumentationTabInput = z197.object({
5617
+ var DTOCreateDocumentationTabInput = z198.object({
5604
5618
  // New group persistent id
5605
- persistentId: z197.string().uuid(),
5619
+ persistentId: z198.string().uuid(),
5606
5620
  // If this is page, we will attempt to convert it to tab
5607
5621
  // If this is tab group, we will add a new tab to it
5608
- fromItemPersistentId: z197.string(),
5609
- tabName: z197.string()
5622
+ fromItemPersistentId: z198.string(),
5623
+ tabName: z198.string()
5610
5624
  });
5611
- var DTODeleteDocumentationTabGroupInput = z197.object({
5625
+ var DTODeleteDocumentationTabGroupInput = z198.object({
5612
5626
  // Deleted group id
5613
- id: z197.string()
5627
+ id: z198.string()
5614
5628
  });
5615
- var DTODeleteDocumentationGroupInput = z197.object({
5629
+ var DTODeleteDocumentationGroupInput = z198.object({
5616
5630
  // Identifier
5617
- id: z197.string(),
5631
+ id: z198.string(),
5618
5632
  // Deletion options
5619
- deleteSubtree: z197.boolean().default(false)
5633
+ deleteSubtree: z198.boolean().default(false)
5620
5634
  });
5621
5635
 
5622
5636
  // src/api/dto/elements/documentation/group-action.ts
5623
- var SuccessPayload = z198.object({
5624
- success: z198.literal(true)
5637
+ var SuccessPayload = z199.object({
5638
+ success: z199.literal(true)
5625
5639
  });
5626
- var DTODocumentationGroupCreateActionOutputV2 = z198.object({
5627
- type: z198.literal("DocumentationGroupCreate"),
5640
+ var DTODocumentationGroupCreateActionOutputV2 = z199.object({
5641
+ type: z199.literal("DocumentationGroupCreate"),
5628
5642
  output: SuccessPayload
5629
5643
  });
5630
- var DTODocumentationTabCreateActionOutputV2 = z198.object({
5631
- type: z198.literal("DocumentationTabCreate"),
5644
+ var DTODocumentationTabCreateActionOutputV2 = z199.object({
5645
+ type: z199.literal("DocumentationTabCreate"),
5632
5646
  output: SuccessPayload
5633
5647
  });
5634
- var DTODocumentationGroupUpdateActionOutputV2 = z198.object({
5635
- type: z198.literal("DocumentationGroupUpdate"),
5648
+ var DTODocumentationGroupUpdateActionOutputV2 = z199.object({
5649
+ type: z199.literal("DocumentationGroupUpdate"),
5636
5650
  output: SuccessPayload
5637
5651
  });
5638
- var DTODocumentationGroupMoveActionOutputV2 = z198.object({
5639
- type: z198.literal("DocumentationGroupMove"),
5652
+ var DTODocumentationGroupMoveActionOutputV2 = z199.object({
5653
+ type: z199.literal("DocumentationGroupMove"),
5640
5654
  output: SuccessPayload
5641
5655
  });
5642
- var DTODocumentationGroupDuplicateActionOutputV2 = z198.object({
5643
- type: z198.literal("DocumentationGroupDuplicate"),
5656
+ var DTODocumentationGroupDuplicateActionOutputV2 = z199.object({
5657
+ type: z199.literal("DocumentationGroupDuplicate"),
5644
5658
  output: SuccessPayload
5645
5659
  });
5646
- var DTODocumentationGroupDeleteActionOutputV2 = z198.object({
5647
- type: z198.literal("DocumentationGroupDelete"),
5660
+ var DTODocumentationGroupDeleteActionOutputV2 = z199.object({
5661
+ type: z199.literal("DocumentationGroupDelete"),
5648
5662
  output: SuccessPayload
5649
5663
  });
5650
- var DTODocumentationTabGroupDeleteActionOutputV2 = z198.object({
5651
- type: z198.literal("DocumentationTabGroupDelete"),
5664
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z199.object({
5665
+ type: z199.literal("DocumentationTabGroupDelete"),
5652
5666
  output: SuccessPayload
5653
5667
  });
5654
- var DTODocumentationGroupCreateActionInputV2 = z198.object({
5655
- type: z198.literal("DocumentationGroupCreate"),
5668
+ var DTODocumentationGroupCreateActionInputV2 = z199.object({
5669
+ type: z199.literal("DocumentationGroupCreate"),
5656
5670
  input: DTOCreateDocumentationGroupInput
5657
5671
  });
5658
- var DTODocumentationTabCreateActionInputV2 = z198.object({
5659
- type: z198.literal("DocumentationTabCreate"),
5672
+ var DTODocumentationTabCreateActionInputV2 = z199.object({
5673
+ type: z199.literal("DocumentationTabCreate"),
5660
5674
  input: DTOCreateDocumentationTabInput
5661
5675
  });
5662
- var DTODocumentationGroupUpdateActionInputV2 = z198.object({
5663
- type: z198.literal("DocumentationGroupUpdate"),
5676
+ var DTODocumentationGroupUpdateActionInputV2 = z199.object({
5677
+ type: z199.literal("DocumentationGroupUpdate"),
5664
5678
  input: DTOUpdateDocumentationGroupInput
5665
5679
  });
5666
- var DTODocumentationGroupMoveActionInputV2 = z198.object({
5667
- type: z198.literal("DocumentationGroupMove"),
5680
+ var DTODocumentationGroupMoveActionInputV2 = z199.object({
5681
+ type: z199.literal("DocumentationGroupMove"),
5668
5682
  input: DTOMoveDocumentationGroupInput
5669
5683
  });
5670
- var DTODocumentationGroupDuplicateActionInputV2 = z198.object({
5671
- type: z198.literal("DocumentationGroupDuplicate"),
5684
+ var DTODocumentationGroupDuplicateActionInputV2 = z199.object({
5685
+ type: z199.literal("DocumentationGroupDuplicate"),
5672
5686
  input: DTODuplicateDocumentationGroupInput
5673
5687
  });
5674
- var DTODocumentationGroupDeleteActionInputV2 = z198.object({
5675
- type: z198.literal("DocumentationGroupDelete"),
5688
+ var DTODocumentationGroupDeleteActionInputV2 = z199.object({
5689
+ type: z199.literal("DocumentationGroupDelete"),
5676
5690
  input: DTODeleteDocumentationGroupInput
5677
5691
  });
5678
- var DTODocumentationTabGroupDeleteActionInputV2 = z198.object({
5679
- type: z198.literal("DocumentationTabGroupDelete"),
5692
+ var DTODocumentationTabGroupDeleteActionInputV2 = z199.object({
5693
+ type: z199.literal("DocumentationTabGroupDelete"),
5680
5694
  input: DTODeleteDocumentationTabGroupInput
5681
5695
  });
5682
5696
 
5683
5697
  // src/api/dto/elements/documentation/group-v1.ts
5684
- import { z as z200 } from "zod";
5698
+ import { z as z201 } from "zod";
5685
5699
 
5686
5700
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5687
- import { z as z199 } from "zod";
5688
- var DocumentationColorV1 = z199.object({
5689
- aliasTo: z199.string().optional(),
5690
- value: z199.string().optional()
5701
+ import { z as z200 } from "zod";
5702
+ var DocumentationColorV1 = z200.object({
5703
+ aliasTo: z200.string().optional(),
5704
+ value: z200.string().optional()
5691
5705
  });
5692
5706
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5693
5707
  foregroundColor: true,
@@ -5696,10 +5710,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5696
5710
  foregroundColor: DocumentationColorV1.optional(),
5697
5711
  backgroundColor: DocumentationColorV1.optional()
5698
5712
  });
5699
- var DTODocumentationItemConfigurationV1 = z199.object({
5700
- showSidebar: z199.boolean(),
5701
- isPrivate: z199.boolean(),
5702
- isHidden: z199.boolean(),
5713
+ var DTODocumentationItemConfigurationV1 = z200.object({
5714
+ showSidebar: z200.boolean(),
5715
+ isPrivate: z200.boolean(),
5716
+ isHidden: z200.boolean(),
5703
5717
  header: DTODocumentationItemHeaderV1
5704
5718
  });
5705
5719
 
@@ -5713,27 +5727,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5713
5727
  data: true,
5714
5728
  shortPersistentId: true
5715
5729
  }).extend({
5716
- title: z200.string(),
5717
- isRoot: z200.boolean(),
5718
- childrenIds: z200.array(z200.string()),
5730
+ title: z201.string(),
5731
+ isRoot: z201.boolean(),
5732
+ childrenIds: z201.array(z201.string()),
5719
5733
  groupBehavior: DocumentationGroupBehavior,
5720
- shortPersistentId: z200.string(),
5721
- type: z200.literal("Group")
5734
+ shortPersistentId: z201.string(),
5735
+ type: z201.literal("Group")
5722
5736
  });
5723
5737
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5724
5738
  configuration: DTODocumentationItemConfigurationV1
5725
5739
  });
5726
5740
 
5727
5741
  // src/api/dto/elements/documentation/hierarchy.ts
5728
- import { z as z201 } from "zod";
5729
- var DTODocumentationHierarchyV2 = z201.object({
5730
- pages: z201.array(
5742
+ import { z as z202 } from "zod";
5743
+ var DTODocumentationHierarchyV2 = z202.object({
5744
+ pages: z202.array(
5731
5745
  DTODocumentationPageV2.extend({
5732
5746
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5733
5747
  draftState: DTODocumentationDraftState.optional()
5734
5748
  })
5735
5749
  ),
5736
- groups: z201.array(
5750
+ groups: z202.array(
5737
5751
  DTODocumentationGroupV2.extend({
5738
5752
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5739
5753
  draftState: DTODocumentationDraftState.optional()
@@ -5742,76 +5756,76 @@ var DTODocumentationHierarchyV2 = z201.object({
5742
5756
  });
5743
5757
 
5744
5758
  // src/api/dto/elements/documentation/page-actions-v2.ts
5745
- import { z as z202 } from "zod";
5746
- var SuccessPayload2 = z202.object({
5747
- success: z202.literal(true)
5759
+ import { z as z203 } from "zod";
5760
+ var SuccessPayload2 = z203.object({
5761
+ success: z203.literal(true)
5748
5762
  });
5749
- var DTODocumentationPageCreateActionOutputV2 = z202.object({
5750
- type: z202.literal("DocumentationPageCreate"),
5763
+ var DTODocumentationPageCreateActionOutputV2 = z203.object({
5764
+ type: z203.literal("DocumentationPageCreate"),
5751
5765
  output: SuccessPayload2
5752
5766
  });
5753
- var DTODocumentationPageUpdateActionOutputV2 = z202.object({
5754
- type: z202.literal("DocumentationPageUpdate"),
5767
+ var DTODocumentationPageUpdateActionOutputV2 = z203.object({
5768
+ type: z203.literal("DocumentationPageUpdate"),
5755
5769
  output: SuccessPayload2
5756
5770
  });
5757
- var DTODocumentationPageMoveActionOutputV2 = z202.object({
5758
- type: z202.literal("DocumentationPageMove"),
5771
+ var DTODocumentationPageMoveActionOutputV2 = z203.object({
5772
+ type: z203.literal("DocumentationPageMove"),
5759
5773
  output: SuccessPayload2
5760
5774
  });
5761
- var DTODocumentationPageDuplicateActionOutputV2 = z202.object({
5762
- type: z202.literal("DocumentationPageDuplicate"),
5775
+ var DTODocumentationPageDuplicateActionOutputV2 = z203.object({
5776
+ type: z203.literal("DocumentationPageDuplicate"),
5763
5777
  output: SuccessPayload2
5764
5778
  });
5765
- var DTODocumentationPageDeleteActionOutputV2 = z202.object({
5766
- type: z202.literal("DocumentationPageDelete"),
5779
+ var DTODocumentationPageDeleteActionOutputV2 = z203.object({
5780
+ type: z203.literal("DocumentationPageDelete"),
5767
5781
  output: SuccessPayload2
5768
5782
  });
5769
- var DTODocumentationPageRestoreActionOutput = z202.object({
5770
- type: z202.literal("DocumentationPageRestore"),
5783
+ var DTODocumentationPageRestoreActionOutput = z203.object({
5784
+ type: z203.literal("DocumentationPageRestore"),
5771
5785
  output: SuccessPayload2
5772
5786
  });
5773
- var DTODocumentationGroupRestoreActionOutput = z202.object({
5774
- type: z202.literal("DocumentationGroupRestore"),
5787
+ var DTODocumentationGroupRestoreActionOutput = z203.object({
5788
+ type: z203.literal("DocumentationGroupRestore"),
5775
5789
  output: SuccessPayload2
5776
5790
  });
5777
- var DTODocumentationPageCreateActionInputV2 = z202.object({
5778
- type: z202.literal("DocumentationPageCreate"),
5791
+ var DTODocumentationPageCreateActionInputV2 = z203.object({
5792
+ type: z203.literal("DocumentationPageCreate"),
5779
5793
  input: DTOCreateDocumentationPageInputV2
5780
5794
  });
5781
- var DTODocumentationPageUpdateActionInputV2 = z202.object({
5782
- type: z202.literal("DocumentationPageUpdate"),
5795
+ var DTODocumentationPageUpdateActionInputV2 = z203.object({
5796
+ type: z203.literal("DocumentationPageUpdate"),
5783
5797
  input: DTOUpdateDocumentationPageInputV2
5784
5798
  });
5785
- var DTODocumentationPageMoveActionInputV2 = z202.object({
5786
- type: z202.literal("DocumentationPageMove"),
5799
+ var DTODocumentationPageMoveActionInputV2 = z203.object({
5800
+ type: z203.literal("DocumentationPageMove"),
5787
5801
  input: DTOMoveDocumentationPageInputV2
5788
5802
  });
5789
- var DTODocumentationPageDuplicateActionInputV2 = z202.object({
5790
- type: z202.literal("DocumentationPageDuplicate"),
5803
+ var DTODocumentationPageDuplicateActionInputV2 = z203.object({
5804
+ type: z203.literal("DocumentationPageDuplicate"),
5791
5805
  input: DTODuplicateDocumentationPageInputV2
5792
5806
  });
5793
- var DTODocumentationPageDeleteActionInputV2 = z202.object({
5794
- type: z202.literal("DocumentationPageDelete"),
5807
+ var DTODocumentationPageDeleteActionInputV2 = z203.object({
5808
+ type: z203.literal("DocumentationPageDelete"),
5795
5809
  input: DTODeleteDocumentationPageInputV2
5796
5810
  });
5797
- var DTODocumentationPageRestoreActionInput = z202.object({
5798
- type: z202.literal("DocumentationPageRestore"),
5811
+ var DTODocumentationPageRestoreActionInput = z203.object({
5812
+ type: z203.literal("DocumentationPageRestore"),
5799
5813
  input: DTORestoreDocumentationPageInput
5800
5814
  });
5801
- var DTODocumentationGroupRestoreActionInput = z202.object({
5802
- type: z202.literal("DocumentationGroupRestore"),
5815
+ var DTODocumentationGroupRestoreActionInput = z203.object({
5816
+ type: z203.literal("DocumentationGroupRestore"),
5803
5817
  input: DTORestoreDocumentationGroupInput
5804
5818
  });
5805
5819
 
5806
5820
  // src/api/dto/elements/documentation/page-content.ts
5807
- import { z as z203 } from "zod";
5821
+ import { z as z204 } from "zod";
5808
5822
  var DTODocumentationPageContent = DocumentationPageContent;
5809
- var DTODocumentationPageContentGetResponse = z203.object({
5823
+ var DTODocumentationPageContentGetResponse = z204.object({
5810
5824
  pageContent: DTODocumentationPageContent
5811
5825
  });
5812
5826
 
5813
5827
  // src/api/dto/elements/documentation/page-v1.ts
5814
- import { z as z204 } from "zod";
5828
+ import { z as z205 } from "zod";
5815
5829
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
5816
5830
  data: true,
5817
5831
  meta: true,
@@ -5819,30 +5833,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5819
5833
  sortOrder: true
5820
5834
  }).extend({
5821
5835
  configuration: DTODocumentationItemConfigurationV1,
5822
- blocks: z204.array(PageBlockV1),
5823
- title: z204.string(),
5824
- path: z204.string()
5836
+ blocks: z205.array(PageBlockV1),
5837
+ title: z205.string(),
5838
+ path: z205.string()
5825
5839
  });
5826
5840
 
5827
5841
  // src/api/dto/elements/figma-nodes/figma-node.ts
5828
- import { z as z205 } from "zod";
5829
- var DTOFigmaNodeOrigin = z205.object({
5830
- sourceId: z205.string(),
5831
- fileId: z205.string().optional(),
5832
- parentName: z205.string().optional()
5842
+ import { z as z206 } from "zod";
5843
+ var DTOFigmaNodeOrigin = z206.object({
5844
+ sourceId: z206.string(),
5845
+ fileId: z206.string().optional(),
5846
+ parentName: z206.string().optional()
5833
5847
  });
5834
- var DTOFigmaNodeData = z205.object({
5848
+ var DTOFigmaNodeData = z206.object({
5835
5849
  // Id of the node in the Figma file
5836
- figmaNodeId: z205.string(),
5850
+ figmaNodeId: z206.string(),
5837
5851
  // Validity
5838
- isValid: z205.boolean(),
5852
+ isValid: z206.boolean(),
5839
5853
  // Asset data
5840
- assetId: z205.string(),
5841
- assetUrl: z205.string(),
5854
+ assetId: z206.string(),
5855
+ assetUrl: z206.string(),
5842
5856
  // Asset metadata
5843
- assetScale: z205.number(),
5844
- assetWidth: z205.number().optional(),
5845
- assetHeight: z205.number().optional()
5857
+ assetScale: z206.number(),
5858
+ assetWidth: z206.number().optional(),
5859
+ assetHeight: z206.number().optional()
5846
5860
  });
5847
5861
  var DTOFigmaNode = FigmaFileStructure.omit({
5848
5862
  data: true,
@@ -5851,105 +5865,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5851
5865
  data: DTOFigmaNodeData,
5852
5866
  origin: DTOFigmaNodeOrigin
5853
5867
  });
5854
- var DTOFigmaNodeRenderInput = z205.object({
5868
+ var DTOFigmaNodeRenderInput = z206.object({
5855
5869
  // Id of a design system's data source representing a linked Figma file
5856
- sourceId: z205.string(),
5870
+ sourceId: z206.string(),
5857
5871
  // Id of a node within the Figma file
5858
- figmaFileNodeId: z205.string()
5872
+ figmaFileNodeId: z206.string()
5859
5873
  });
5860
5874
 
5861
5875
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5862
- import { z as z206 } from "zod";
5863
- var DTOFigmaNodeRenderActionOutput = z206.object({
5864
- type: z206.literal("FigmaNodeRender"),
5865
- figmaNodes: z206.array(DTOFigmaNode)
5876
+ import { z as z207 } from "zod";
5877
+ var DTOFigmaNodeRenderActionOutput = z207.object({
5878
+ type: z207.literal("FigmaNodeRender"),
5879
+ figmaNodes: z207.array(DTOFigmaNode)
5866
5880
  });
5867
- var DTOFigmaNodeRenderActionInput = z206.object({
5868
- type: z206.literal("FigmaNodeRender"),
5881
+ var DTOFigmaNodeRenderActionInput = z207.object({
5882
+ type: z207.literal("FigmaNodeRender"),
5869
5883
  input: DTOFigmaNodeRenderInput.array()
5870
5884
  });
5871
5885
 
5872
5886
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5873
- import { z as z208 } from "zod";
5887
+ import { z as z209 } from "zod";
5874
5888
 
5875
5889
  // src/api/dto/elements/properties/property-definitions.ts
5876
- import { z as z207 } from "zod";
5890
+ import { z as z208 } from "zod";
5877
5891
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5878
- var DTOElementPropertyDefinition = z207.object({
5879
- id: z207.string(),
5880
- designSystemVersionId: z207.string(),
5892
+ var DTOElementPropertyDefinition = z208.object({
5893
+ id: z208.string(),
5894
+ designSystemVersionId: z208.string(),
5881
5895
  meta: ObjectMeta,
5882
- persistentId: z207.string(),
5896
+ persistentId: z208.string(),
5883
5897
  type: ElementPropertyTypeSchema,
5884
5898
  targetElementType: ElementPropertyTargetType,
5885
- codeName: z207.string().regex(CODE_NAME_REGEX2),
5886
- options: z207.array(ElementPropertyDefinitionOption).optional(),
5899
+ codeName: z208.string().regex(CODE_NAME_REGEX2),
5900
+ options: z208.array(ElementPropertyDefinitionOption).optional(),
5887
5901
  linkElementType: ElementPropertyLinkType.optional()
5888
5902
  });
5889
- var DTOElementPropertyDefinitionsGetResponse = z207.object({
5890
- definitions: z207.array(DTOElementPropertyDefinition)
5903
+ var DTOElementPropertyDefinitionsGetResponse = z208.object({
5904
+ definitions: z208.array(DTOElementPropertyDefinition)
5891
5905
  });
5892
5906
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5893
5907
  id: true,
5894
5908
  designSystemVersionId: true
5895
5909
  });
5896
- var DTOUpdateElementPropertyDefinitionInputV2 = z207.object({
5897
- id: z207.string(),
5898
- name: z207.string().optional(),
5899
- description: z207.string().optional(),
5900
- codeName: z207.string().regex(CODE_NAME_REGEX2).optional(),
5901
- options: z207.array(ElementPropertyDefinitionOption).optional()
5910
+ var DTOUpdateElementPropertyDefinitionInputV2 = z208.object({
5911
+ id: z208.string(),
5912
+ name: z208.string().optional(),
5913
+ description: z208.string().optional(),
5914
+ codeName: z208.string().regex(CODE_NAME_REGEX2).optional(),
5915
+ options: z208.array(ElementPropertyDefinitionOption).optional()
5902
5916
  });
5903
- var DTODeleteElementPropertyDefinitionInputV2 = z207.object({
5904
- id: z207.string()
5917
+ var DTODeleteElementPropertyDefinitionInputV2 = z208.object({
5918
+ id: z208.string()
5905
5919
  });
5906
5920
 
5907
5921
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5908
- var SuccessPayload3 = z208.object({
5909
- success: z208.literal(true)
5922
+ var SuccessPayload3 = z209.object({
5923
+ success: z209.literal(true)
5910
5924
  });
5911
- var DTOPropertyDefinitionCreateActionOutputV2 = z208.object({
5912
- type: z208.literal("PropertyDefinitionCreate"),
5925
+ var DTOPropertyDefinitionCreateActionOutputV2 = z209.object({
5926
+ type: z209.literal("PropertyDefinitionCreate"),
5913
5927
  definition: DTOElementPropertyDefinition
5914
5928
  });
5915
- var DTOPropertyDefinitionUpdateActionOutputV2 = z208.object({
5916
- type: z208.literal("PropertyDefinitionUpdate"),
5929
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z209.object({
5930
+ type: z209.literal("PropertyDefinitionUpdate"),
5917
5931
  definition: DTOElementPropertyDefinition
5918
5932
  });
5919
- var DTOPropertyDefinitionDeleteActionOutputV2 = z208.object({
5920
- type: z208.literal("PropertyDefinitionDelete"),
5933
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z209.object({
5934
+ type: z209.literal("PropertyDefinitionDelete"),
5921
5935
  output: SuccessPayload3
5922
5936
  });
5923
- var DTOPropertyDefinitionCreateActionInputV2 = z208.object({
5924
- type: z208.literal("PropertyDefinitionCreate"),
5937
+ var DTOPropertyDefinitionCreateActionInputV2 = z209.object({
5938
+ type: z209.literal("PropertyDefinitionCreate"),
5925
5939
  input: DTOCreateElementPropertyDefinitionInputV2
5926
5940
  });
5927
- var DTOPropertyDefinitionUpdateActionInputV2 = z208.object({
5928
- type: z208.literal("PropertyDefinitionUpdate"),
5941
+ var DTOPropertyDefinitionUpdateActionInputV2 = z209.object({
5942
+ type: z209.literal("PropertyDefinitionUpdate"),
5929
5943
  input: DTOUpdateElementPropertyDefinitionInputV2
5930
5944
  });
5931
- var DTOPropertyDefinitionDeleteActionInputV2 = z208.object({
5932
- type: z208.literal("PropertyDefinitionDelete"),
5945
+ var DTOPropertyDefinitionDeleteActionInputV2 = z209.object({
5946
+ type: z209.literal("PropertyDefinitionDelete"),
5933
5947
  input: DTODeleteElementPropertyDefinitionInputV2
5934
5948
  });
5935
5949
 
5936
5950
  // src/api/dto/elements/properties/property-values.ts
5937
- import { z as z209 } from "zod";
5938
- var DTOElementPropertyValue = z209.object({
5939
- id: z209.string(),
5940
- designSystemVersionId: z209.string(),
5941
- definitionId: z209.string(),
5942
- targetElementId: z209.string(),
5943
- value: z209.union([z209.string(), z209.number(), z209.boolean()]).optional(),
5944
- valuePreview: z209.string().optional()
5951
+ import { z as z210 } from "zod";
5952
+ var DTOElementPropertyValue = z210.object({
5953
+ id: z210.string(),
5954
+ designSystemVersionId: z210.string(),
5955
+ definitionId: z210.string(),
5956
+ targetElementId: z210.string(),
5957
+ value: z210.union([z210.string(), z210.number(), z210.boolean()]).optional(),
5958
+ valuePreview: z210.string().optional()
5945
5959
  });
5946
- var DTOElementPropertyValuesGetResponse = z209.object({
5947
- values: z209.array(DTOElementPropertyValue)
5960
+ var DTOElementPropertyValuesGetResponse = z210.object({
5961
+ values: z210.array(DTOElementPropertyValue)
5948
5962
  });
5949
5963
 
5950
5964
  // src/api/dto/elements/elements-action-v2.ts
5951
- import { z as z210 } from "zod";
5952
- var DTOElementActionOutput = z210.discriminatedUnion("type", [
5965
+ import { z as z211 } from "zod";
5966
+ var DTOElementActionOutput = z211.discriminatedUnion("type", [
5953
5967
  // Documentation pages
5954
5968
  DTODocumentationPageCreateActionOutputV2,
5955
5969
  DTODocumentationPageUpdateActionOutputV2,
@@ -5974,7 +5988,7 @@ var DTOElementActionOutput = z210.discriminatedUnion("type", [
5974
5988
  DTODocumentationPageRestoreActionOutput,
5975
5989
  DTODocumentationGroupRestoreActionOutput
5976
5990
  ]);
5977
- var DTOElementActionInput = z210.discriminatedUnion("type", [
5991
+ var DTOElementActionInput = z211.discriminatedUnion("type", [
5978
5992
  // Documentation pages
5979
5993
  DTODocumentationPageCreateActionInputV2,
5980
5994
  DTODocumentationPageUpdateActionInputV2,
@@ -6001,141 +6015,141 @@ var DTOElementActionInput = z210.discriminatedUnion("type", [
6001
6015
  ]);
6002
6016
 
6003
6017
  // src/api/dto/elements/get-elements-v2.ts
6004
- import { z as z211 } from "zod";
6005
- var DTOElementsGetTypeFilter = z211.enum(["FigmaNode"]);
6006
- var DTOElementsGetQuerySchema = z211.object({
6007
- types: z211.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6018
+ import { z as z212 } from "zod";
6019
+ var DTOElementsGetTypeFilter = z212.enum(["FigmaNode"]);
6020
+ var DTOElementsGetQuerySchema = z212.object({
6021
+ types: z212.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6008
6022
  });
6009
- var DTOElementsGetOutput = z211.object({
6010
- figmaNodes: z211.array(DTOFigmaNode).optional()
6023
+ var DTOElementsGetOutput = z212.object({
6024
+ figmaNodes: z212.array(DTOFigmaNode).optional()
6011
6025
  });
6012
6026
 
6013
6027
  // src/api/dto/figma-components/assets/download.ts
6014
- import { z as z212 } from "zod";
6015
- var DTOAssetRenderConfiguration = z212.object({
6016
- prefix: z212.string().optional(),
6017
- suffix: z212.string().optional(),
6018
- scale: z212.enum(["x1", "x2", "x3", "x4"]),
6019
- format: z212.enum(["png", "pdf", "svg"])
6020
- });
6021
- var DTORenderedAssetFile = z212.object({
6022
- assetId: z212.string(),
6023
- fileName: z212.string(),
6024
- sourceUrl: z212.string(),
6028
+ import { z as z213 } from "zod";
6029
+ var DTOAssetRenderConfiguration = z213.object({
6030
+ prefix: z213.string().optional(),
6031
+ suffix: z213.string().optional(),
6032
+ scale: z213.enum(["x1", "x2", "x3", "x4"]),
6033
+ format: z213.enum(["png", "pdf", "svg"])
6034
+ });
6035
+ var DTORenderedAssetFile = z213.object({
6036
+ assetId: z213.string(),
6037
+ fileName: z213.string(),
6038
+ sourceUrl: z213.string(),
6025
6039
  settings: DTOAssetRenderConfiguration,
6026
- originalName: z212.string()
6040
+ originalName: z213.string()
6027
6041
  });
6028
- var DTODownloadAssetsRequest = z212.object({
6029
- persistentIds: z212.array(z212.string().uuid()).optional(),
6042
+ var DTODownloadAssetsRequest = z213.object({
6043
+ persistentIds: z213.array(z213.string().uuid()).optional(),
6030
6044
  settings: DTOAssetRenderConfiguration.array()
6031
6045
  });
6032
- var DTODownloadAssetsResponse = z212.object({
6046
+ var DTODownloadAssetsResponse = z213.object({
6033
6047
  items: DTORenderedAssetFile.array()
6034
6048
  });
6035
6049
 
6036
6050
  // src/api/dto/liveblocks/auth-response.ts
6037
- import { z as z213 } from "zod";
6038
- var DTOLiveblocksAuthResponse = z213.object({
6039
- token: z213.string()
6051
+ import { z as z214 } from "zod";
6052
+ var DTOLiveblocksAuthResponse = z214.object({
6053
+ token: z214.string()
6040
6054
  });
6041
6055
 
6042
6056
  // src/api/dto/users/profile/update.ts
6043
- import { z as z214 } from "zod";
6044
- var DTOUserProfileUpdateResponse = z214.object({
6057
+ import { z as z215 } from "zod";
6058
+ var DTOUserProfileUpdateResponse = z215.object({
6045
6059
  user: User
6046
6060
  });
6047
6061
 
6048
6062
  // src/api/dto/workspaces/git.ts
6049
- import { z as z215 } from "zod";
6050
- var DTOGitOrganization = z215.object({
6051
- id: z215.string(),
6052
- name: z215.string(),
6053
- url: z215.string(),
6054
- slug: z215.string()
6055
- });
6056
- var DTOGitProject = z215.object({
6057
- id: z215.string(),
6058
- name: z215.string(),
6059
- url: z215.string(),
6060
- slug: z215.string()
6061
- });
6062
- var DTOGitRepository = z215.object({
6063
- id: z215.string(),
6064
- name: z215.string(),
6065
- url: z215.string(),
6066
- slug: z215.string(),
6067
- defaultBranch: z215.string().optional()
6068
- });
6069
- var DTOGitBranch = z215.object({
6070
- name: z215.string(),
6071
- lastCommitId: z215.string()
6063
+ import { z as z216 } from "zod";
6064
+ var DTOGitOrganization = z216.object({
6065
+ id: z216.string(),
6066
+ name: z216.string(),
6067
+ url: z216.string(),
6068
+ slug: z216.string()
6069
+ });
6070
+ var DTOGitProject = z216.object({
6071
+ id: z216.string(),
6072
+ name: z216.string(),
6073
+ url: z216.string(),
6074
+ slug: z216.string()
6075
+ });
6076
+ var DTOGitRepository = z216.object({
6077
+ id: z216.string(),
6078
+ name: z216.string(),
6079
+ url: z216.string(),
6080
+ slug: z216.string(),
6081
+ defaultBranch: z216.string().optional()
6082
+ });
6083
+ var DTOGitBranch = z216.object({
6084
+ name: z216.string(),
6085
+ lastCommitId: z216.string()
6072
6086
  });
6073
6087
 
6074
6088
  // src/api/dto/workspaces/integrations.ts
6075
- import { z as z216 } from "zod";
6089
+ import { z as z217 } from "zod";
6076
6090
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
6077
6091
  accessToken: true,
6078
6092
  refreshToken: true
6079
6093
  });
6080
- var DTOIntegration = z216.object({
6081
- id: z216.string(),
6082
- workspaceId: z216.string(),
6094
+ var DTOIntegration = z217.object({
6095
+ id: z217.string(),
6096
+ workspaceId: z217.string(),
6083
6097
  type: ExtendedIntegrationType,
6084
- createdAt: z216.coerce.date(),
6085
- integrationCredentials: z216.array(DTOIntegrationCredentials).optional(),
6086
- integrationDesignSystems: z216.array(IntegrationDesignSystem).optional()
6098
+ createdAt: z217.coerce.date(),
6099
+ integrationCredentials: z217.array(DTOIntegrationCredentials).optional(),
6100
+ integrationDesignSystems: z217.array(IntegrationDesignSystem).optional()
6087
6101
  });
6088
- var DTOIntegrationOAuthGetResponse = z216.object({
6089
- url: z216.string()
6102
+ var DTOIntegrationOAuthGetResponse = z217.object({
6103
+ url: z217.string()
6090
6104
  });
6091
- var DTOIntegrationPostResponse = z216.object({
6105
+ var DTOIntegrationPostResponse = z217.object({
6092
6106
  integration: DTOIntegration
6093
6107
  });
6094
- var DTOIntegrationsGetListResponse = z216.object({
6108
+ var DTOIntegrationsGetListResponse = z217.object({
6095
6109
  integrations: DTOIntegration.array()
6096
6110
  });
6097
6111
 
6098
6112
  // src/api/dto/workspaces/membership.ts
6099
- import { z as z219 } from "zod";
6113
+ import { z as z220 } from "zod";
6100
6114
 
6101
6115
  // src/api/dto/workspaces/workspace.ts
6102
- import { z as z218 } from "zod";
6116
+ import { z as z219 } from "zod";
6103
6117
 
6104
6118
  // src/api/dto/workspaces/npm-registry.ts
6105
- import { z as z217 } from "zod";
6119
+ import { z as z218 } from "zod";
6106
6120
  var DTONpmRegistryConfigConstants = {
6107
6121
  passwordPlaceholder: "redacted"
6108
6122
  };
6109
- var DTONpmRegistryConfig = z217.object({
6123
+ var DTONpmRegistryConfig = z218.object({
6110
6124
  // Registry basic configuration
6111
6125
  registryType: NpmRegistryType,
6112
- registryUrl: z217.string(),
6113
- customRegistryUrl: z217.string().optional(),
6126
+ registryUrl: z218.string(),
6127
+ customRegistryUrl: z218.string().optional(),
6114
6128
  // URL of Supernova NPM packages proxy
6115
- proxyUrl: z217.string(),
6129
+ proxyUrl: z218.string(),
6116
6130
  // Auth configuration
6117
6131
  authType: NpmRegistryAuthType,
6118
- accessToken: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6119
- username: z217.string().optional(),
6120
- password: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6132
+ accessToken: z218.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6133
+ username: z218.string().optional(),
6134
+ password: z218.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6121
6135
  // NPM package scopes for whih the proxy should be enabled
6122
- enabledScopes: z217.array(z217.string()),
6136
+ enabledScopes: z218.array(z218.string()),
6123
6137
  // True if client should bypass Supernova proxy and connect directly to the registry
6124
6138
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6125
- bypassProxy: z217.boolean()
6139
+ bypassProxy: z218.boolean()
6126
6140
  });
6127
6141
 
6128
6142
  // src/api/dto/workspaces/workspace.ts
6129
- var DTOWorkspace = z218.object({
6130
- id: z218.string(),
6143
+ var DTOWorkspace = z219.object({
6144
+ id: z219.string(),
6131
6145
  profile: WorkspaceProfile,
6132
6146
  subscription: Subscription,
6133
6147
  npmRegistry: DTONpmRegistryConfig.optional()
6134
6148
  });
6135
6149
 
6136
6150
  // src/api/dto/workspaces/membership.ts
6137
- var DTOWorkspaceRole = z219.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
6138
- var DTOUserWorkspaceMembership = z219.object({
6151
+ var DTOWorkspaceRole = z220.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
6152
+ var DTOUserWorkspaceMembership = z220.object({
6139
6153
  // Workspace the user is a member of
6140
6154
  workspace: DTOWorkspace,
6141
6155
  // Assigned role the user has in the workspace
@@ -6145,8 +6159,8 @@ var DTOUserWorkspaceMembership = z219.object({
6145
6159
  // when a workspace's subscription is downgraded to free tier
6146
6160
  effectiveRole: DTOWorkspaceRole
6147
6161
  });
6148
- var DTOUserWorkspaceMembershipsResponse = z219.object({
6149
- membership: z219.array(DTOUserWorkspaceMembership)
6162
+ var DTOUserWorkspaceMembershipsResponse = z220.object({
6163
+ membership: z220.array(DTOUserWorkspaceMembership)
6150
6164
  });
6151
6165
 
6152
6166
  // src/utils/hash.ts
@@ -6208,7 +6222,7 @@ function generateHash(input, debug = false) {
6208
6222
  }
6209
6223
 
6210
6224
  // src/yjs/design-system-content/documentation-hierarchy.ts
6211
- import { z as z220 } from "zod";
6225
+ import { z as z221 } from "zod";
6212
6226
 
6213
6227
  // src/yjs/version-room/base.ts
6214
6228
  var VersionRoomBaseYDoc = class {
@@ -6385,6 +6399,19 @@ function removeCommentSpansFromPage(content, definitions) {
6385
6399
  value: multiRichTextValue.value.map(removeCommentSpans)
6386
6400
  };
6387
6401
  }
6402
+ if (prop.type === "Table") {
6403
+ const tableValue = value;
6404
+ tableValue.value.forEach((r) => {
6405
+ r.cells.forEach((c) => {
6406
+ c.nodes.forEach((n) => {
6407
+ if (n.type === "RichText") {
6408
+ n.value = removeCommentSpans(n.value);
6409
+ }
6410
+ });
6411
+ });
6412
+ });
6413
+ return tableValue;
6414
+ }
6388
6415
  return value;
6389
6416
  });
6390
6417
  return content;
@@ -6650,22 +6677,22 @@ var FrontendVersionRoomYDoc = class {
6650
6677
  };
6651
6678
 
6652
6679
  // src/yjs/design-system-content/documentation-hierarchy.ts
6653
- var DocumentationHierarchySettings = z220.object({
6654
- routingVersion: z220.string(),
6655
- isDraftFeatureAdopted: z220.boolean()
6680
+ var DocumentationHierarchySettings = z221.object({
6681
+ routingVersion: z221.string(),
6682
+ isDraftFeatureAdopted: z221.boolean()
6656
6683
  });
6657
6684
  function yjsToDocumentationHierarchy(doc) {
6658
6685
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
6659
6686
  }
6660
6687
 
6661
6688
  // src/yjs/design-system-content/item-configuration.ts
6662
- import { z as z221 } from "zod";
6663
- var DTODocumentationPageRoomHeaderData = z221.object({
6664
- title: z221.string(),
6689
+ import { z as z222 } from "zod";
6690
+ var DTODocumentationPageRoomHeaderData = z222.object({
6691
+ title: z222.string(),
6665
6692
  configuration: DTODocumentationItemConfigurationV2
6666
6693
  });
6667
- var DTODocumentationPageRoomHeaderDataUpdate = z221.object({
6668
- title: z221.string().optional(),
6694
+ var DTODocumentationPageRoomHeaderDataUpdate = z222.object({
6695
+ title: z222.string().optional(),
6669
6696
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
6670
6697
  });
6671
6698
  function itemConfigurationToYjs(yDoc, item) {
@@ -6716,7 +6743,7 @@ function yjsToItemConfiguration(yDoc) {
6716
6743
  header: rawHeader
6717
6744
  };
6718
6745
  return {
6719
- title: z221.string().parse(title),
6746
+ title: z222.string().parse(title),
6720
6747
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
6721
6748
  };
6722
6749
  }
@@ -6726,9 +6753,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
6726
6753
  var PageSectionEditorModel = PageSectionEditorModelV2;
6727
6754
 
6728
6755
  // src/yjs/docs-editor/model/page.ts
6729
- import { z as z222 } from "zod";
6730
- var DocumentationPageEditorModel = z222.object({
6731
- blocks: z222.array(DocumentationPageContentItem)
6756
+ import { z as z223 } from "zod";
6757
+ var DocumentationPageEditorModel = z223.object({
6758
+ blocks: z223.array(DocumentationPageContentItem)
6732
6759
  });
6733
6760
 
6734
6761
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -10514,7 +10541,7 @@ var blocks = [
10514
10541
 
10515
10542
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10516
10543
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10517
- import { z as z223 } from "zod";
10544
+ import { z as z224 } from "zod";
10518
10545
  function yDocToPage(yDoc, definitions) {
10519
10546
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10520
10547
  }
@@ -10557,7 +10584,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10557
10584
  return null;
10558
10585
  return {
10559
10586
  id,
10560
- title: getProsemirrorAttribute(prosemirrorNode, "title", z223.string()) ?? "",
10587
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z224.string()) ?? "",
10561
10588
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10562
10589
  };
10563
10590
  }
@@ -10592,7 +10619,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
10592
10619
  });
10593
10620
  }
10594
10621
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
10595
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z223.string());
10622
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z224.string());
10596
10623
  if (!definitionId) {
10597
10624
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
10598
10625
  return [];
@@ -10634,7 +10661,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
10634
10661
  if (!id)
10635
10662
  return null;
10636
10663
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10637
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z223.string().optional()));
10664
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z224.string().optional()));
10638
10665
  return {
10639
10666
  id,
10640
10667
  type: "Block",
@@ -10762,10 +10789,10 @@ function parseRichTextAttribute(mark) {
10762
10789
  return null;
10763
10790
  }
10764
10791
  function parseProsemirrorLink(mark) {
10765
- const href = getProsemirrorAttribute(mark, "href", z223.string().optional());
10792
+ const href = getProsemirrorAttribute(mark, "href", z224.string().optional());
10766
10793
  if (!href)
10767
10794
  return null;
10768
- const target = getProsemirrorAttribute(mark, "target", z223.string().optional());
10795
+ const target = getProsemirrorAttribute(mark, "target", z224.string().optional());
10769
10796
  const openInNewTab = target === "_blank";
10770
10797
  if (href.startsWith("@")) {
10771
10798
  return {
@@ -10784,10 +10811,10 @@ function parseProsemirrorLink(mark) {
10784
10811
  }
10785
10812
  }
10786
10813
  function parseProsemirrorCommentHighlight(mark) {
10787
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z223.string().optional());
10814
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z224.string().optional());
10788
10815
  if (!highlightId)
10789
10816
  return null;
10790
- const isResolved = getProsemirrorAttribute(mark, "resolved", z223.boolean().optional()) ?? false;
10817
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z224.boolean().optional()) ?? false;
10791
10818
  return {
10792
10819
  type: "Comment",
10793
10820
  commentHighlightId: highlightId,
@@ -10799,7 +10826,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
10799
10826
  if (!id)
10800
10827
  return null;
10801
10828
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10802
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z223.boolean().optional()) !== false;
10829
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z224.boolean().optional()) !== false;
10803
10830
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
10804
10831
  if (!tableChild) {
10805
10832
  return emptyTable(id, variantId, 0);
@@ -10846,9 +10873,9 @@ function parseAsTableCell(prosemirrorNode) {
10846
10873
  const id = getProsemirrorBlockId(prosemirrorNode);
10847
10874
  if (!id)
10848
10875
  return null;
10849
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z223.string().optional());
10876
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z224.string().optional());
10850
10877
  let columnWidth;
10851
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z223.array(z223.number()).optional());
10878
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z224.array(z224.number()).optional());
10852
10879
  if (columnWidthArray) {
10853
10880
  columnWidth = roundDimension(columnWidthArray[0]);
10854
10881
  }
@@ -10886,7 +10913,7 @@ function parseAsTableNode(prosemirrorNode) {
10886
10913
  value: parseRichText(prosemirrorNode.content ?? [])
10887
10914
  };
10888
10915
  case "image":
10889
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z223.string());
10916
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z224.string());
10890
10917
  if (!items)
10891
10918
  return null;
10892
10919
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11003,7 +11030,7 @@ function definitionExpectsPlaceholderItem(definition) {
11003
11030
  );
11004
11031
  }
11005
11032
  function parseBlockItems(prosemirrorNode, definition) {
11006
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z223.string());
11033
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z224.string());
11007
11034
  if (!itemsString)
11008
11035
  return null;
11009
11036
  const itemsJson = JSON.parse(itemsString);
@@ -11015,18 +11042,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11015
11042
  }
11016
11043
  function parseAppearance(prosemirrorNode) {
11017
11044
  let appearance = {};
11018
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z223.string().optional());
11045
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z224.string().optional());
11019
11046
  if (rawAppearanceString) {
11020
11047
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11021
11048
  if (parsedAppearance.success) {
11022
11049
  appearance = parsedAppearance.data;
11023
11050
  }
11024
11051
  }
11025
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z223.number().optional());
11052
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z224.number().optional());
11026
11053
  if (columns) {
11027
11054
  appearance.numberOfColumns = columns;
11028
11055
  }
11029
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z223.string().optional());
11056
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z224.string().optional());
11030
11057
  if (backgroundColor) {
11031
11058
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11032
11059
  if (parsedColor.success) {
@@ -11119,13 +11146,13 @@ function valueSchemaForPropertyType(type) {
11119
11146
  }
11120
11147
  }
11121
11148
  function getProsemirrorBlockId(prosemirrorNode) {
11122
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z223.string());
11149
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z224.string());
11123
11150
  if (!id)
11124
11151
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11125
11152
  return id;
11126
11153
  }
11127
11154
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11128
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z223.string()));
11155
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z224.string()));
11129
11156
  }
11130
11157
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11131
11158
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);