@supernova-studio/client 1.4.6 → 1.4.8

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
@@ -5375,7 +5375,7 @@ var DTOPagination = z188.object({
5375
5375
  });
5376
5376
 
5377
5377
  // src/api/dto/bff/app-bootstrap-data.ts
5378
- import { z as z224 } from "zod";
5378
+ import { z as z225 } from "zod";
5379
5379
 
5380
5380
  // src/api/dto/design-systems/brand.ts
5381
5381
  import { z as z189 } from "zod";
@@ -5399,49 +5399,96 @@ var DTOBrandUpdatePayload = z189.object({
5399
5399
  persistentId: z189.string()
5400
5400
  });
5401
5401
 
5402
- // src/api/dto/design-systems/component.ts
5402
+ // src/api/dto/design-systems/code-component.ts
5403
5403
  import { z as z190 } from "zod";
5404
- var DTODesignSystemComponent = z190.object({
5404
+ var DTOComponentPropertyControlType = z190.enum([
5405
+ "Boolean",
5406
+ "Function",
5407
+ "Number",
5408
+ "Object",
5409
+ "Slot",
5410
+ "String",
5411
+ "Unknown"
5412
+ ]);
5413
+ var DTOControlTypeInfo = z190.object({
5414
+ isArray: z190.boolean(),
5415
+ type: DTOComponentPropertyControlType
5416
+ });
5417
+ var DTOCodeComponentProperty = z190.object({
5418
+ control: DTOControlTypeInfo,
5419
+ defaultValue: z190.string().optional(),
5420
+ name: z190.string(),
5421
+ required: z190.boolean(),
5422
+ type: z190.string()
5423
+ });
5424
+ var DTOCodeComponent = z190.object({
5405
5425
  id: z190.string(),
5406
- persistentId: z190.string(),
5407
5426
  designSystemVersionId: z190.string(),
5408
- brandId: z190.string(),
5409
- meta: DTOObjectMeta,
5427
+ persistentId: z190.string(),
5410
5428
  createdAt: z190.coerce.date(),
5411
- updatedAt: z190.coerce.date()
5429
+ updatedAt: z190.coerce.date(),
5430
+ exportName: z190.string(),
5431
+ properties: z190.record(z190.string(), DTOCodeComponentProperty),
5432
+ versionId: z190.string()
5433
+ });
5434
+ var DTOCodeComponentResponse = z190.object({
5435
+ codeComponent: DTOCodeComponent
5436
+ });
5437
+ var DTOCodeComponentListResponse = z190.object({
5438
+ codeComponents: DTOCodeComponent.array()
5439
+ });
5440
+ var DTOCodeComponentCreateInput = z190.object({
5441
+ persistentId: z190.string(),
5442
+ exportName: z190.string(),
5443
+ properties: z190.record(z190.string(), DTOCodeComponentProperty)
5444
+ });
5445
+ var DTOCodeComponentsCreateInput = z190.object({
5446
+ codeComponents: DTOCodeComponentCreateInput.array()
5447
+ });
5448
+
5449
+ // src/api/dto/design-systems/component.ts
5450
+ import { z as z191 } from "zod";
5451
+ var DTODesignSystemComponent = z191.object({
5452
+ id: z191.string(),
5453
+ persistentId: z191.string(),
5454
+ designSystemVersionId: z191.string(),
5455
+ brandId: z191.string(),
5456
+ meta: DTOObjectMeta,
5457
+ createdAt: z191.coerce.date(),
5458
+ updatedAt: z191.coerce.date()
5412
5459
  });
5413
- var DTODesignSystemComponentResponse = z190.object({
5460
+ var DTODesignSystemComponentResponse = z191.object({
5414
5461
  designSystemComponent: DTODesignSystemComponent
5415
5462
  });
5416
- var DTODesignSystemComponentListResponse = z190.object({
5463
+ var DTODesignSystemComponentListResponse = z191.object({
5417
5464
  designSystemComponents: DTODesignSystemComponent.array()
5418
5465
  });
5419
- var DTODesignSystemComponentCreateInput = z190.object({
5420
- brandId: z190.string(),
5466
+ var DTODesignSystemComponentCreateInput = z191.object({
5467
+ brandId: z191.string(),
5421
5468
  // Persistent ID,
5422
- persistentId: z190.string(),
5469
+ persistentId: z191.string(),
5423
5470
  meta: DTOObjectMeta
5424
5471
  });
5425
5472
 
5426
5473
  // src/api/dto/design-systems/contact.ts
5427
- import { z as z194 } from "zod";
5474
+ import { z as z195 } from "zod";
5428
5475
 
5429
5476
  // src/api/dto/users/authenticated-user.ts
5430
- import { z as z192 } from "zod";
5477
+ import { z as z193 } from "zod";
5431
5478
 
5432
5479
  // src/api/dto/users/user.ts
5433
- import { z as z191 } from "zod";
5434
- var DTOUserProfile = z191.object({
5435
- name: z191.string(),
5436
- nickname: z191.string().optional(),
5437
- avatar: z191.string().optional()
5438
- });
5439
- var DTOUser = z191.object({
5440
- id: z191.string(),
5441
- email: z191.string(),
5480
+ import { z as z192 } from "zod";
5481
+ var DTOUserProfile = z192.object({
5482
+ name: z192.string(),
5483
+ nickname: z192.string().optional(),
5484
+ avatar: z192.string().optional()
5485
+ });
5486
+ var DTOUser = z192.object({
5487
+ id: z192.string(),
5488
+ email: z192.string(),
5442
5489
  profile: DTOUserProfile
5443
5490
  });
5444
- var DTOUserGetResponse = z191.object({
5491
+ var DTOUserGetResponse = z192.object({
5445
5492
  user: DTOUser
5446
5493
  });
5447
5494
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -5451,17 +5498,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
5451
5498
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
5452
5499
  var DTOUserSource = UserSource;
5453
5500
  var DTOUserTheme = UserTheme;
5454
- var DTOUserOnboarding = z192.object({
5455
- companyName: z192.string().optional(),
5456
- numberOfPeopleInOrg: z192.string().optional(),
5457
- numberOfPeopleInDesignTeam: z192.string().optional(),
5501
+ var DTOUserOnboarding = z193.object({
5502
+ companyName: z193.string().optional(),
5503
+ numberOfPeopleInOrg: z193.string().optional(),
5504
+ numberOfPeopleInDesignTeam: z193.string().optional(),
5458
5505
  department: DTOUserOnboardingDepartment.optional(),
5459
- jobTitle: z192.string().optional(),
5460
- phase: z192.string().optional(),
5506
+ jobTitle: z193.string().optional(),
5507
+ phase: z193.string().optional(),
5461
5508
  jobLevel: DTOUserOnboardingJobLevel.optional(),
5462
- designSystemName: z192.string().optional(),
5463
- defaultDestination: z192.string().optional(),
5464
- isPageDraftOnboardingFinished: z192.boolean().optional()
5509
+ designSystemName: z193.string().optional(),
5510
+ defaultDestination: z193.string().optional(),
5511
+ isPageDraftOnboardingFinished: z193.boolean().optional()
5465
5512
  });
5466
5513
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5467
5514
  onboarding: DTOUserOnboarding.optional(),
@@ -5469,139 +5516,139 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5469
5516
  });
5470
5517
  var DTOAuthenticatedUser = DTOUser.extend({
5471
5518
  profile: DTOAuthenticatedUserProfile,
5472
- createdAt: z192.coerce.date(),
5473
- loggedOutAt: z192.coerce.date().optional(),
5519
+ createdAt: z193.coerce.date(),
5520
+ loggedOutAt: z193.coerce.date().optional(),
5474
5521
  source: DTOUserSource.optional()
5475
5522
  });
5476
- var DTOAuthenticatedUserResponse = z192.object({
5523
+ var DTOAuthenticatedUserResponse = z193.object({
5477
5524
  user: DTOAuthenticatedUser
5478
5525
  });
5479
5526
 
5480
5527
  // src/api/dto/users/update.ts
5481
- import { z as z193 } from "zod";
5482
- var DTOUserProfileUpdateResponse = z193.object({
5528
+ import { z as z194 } from "zod";
5529
+ var DTOUserProfileUpdateResponse = z194.object({
5483
5530
  user: User
5484
5531
  });
5485
5532
 
5486
5533
  // src/api/dto/design-systems/contact.ts
5487
- var DTODesignSystemContactsResponse = z194.object({
5488
- contacts: z194.object({
5489
- workspace: z194.array(DTOUser),
5490
- designSystem: z194.array(DTOUser)
5534
+ var DTODesignSystemContactsResponse = z195.object({
5535
+ contacts: z195.object({
5536
+ workspace: z195.array(DTOUser),
5537
+ designSystem: z195.array(DTOUser)
5491
5538
  })
5492
5539
  });
5493
5540
 
5494
5541
  // src/api/dto/design-systems/data-source.ts
5495
- import { z as z195 } from "zod";
5542
+ import { z as z196 } from "zod";
5496
5543
  var DTODataSourceFigmaScope = DataSourceFigmaScope;
5497
- var DTODataSourceFigmaFileVersion = z195.object({
5498
- id: z195.string(),
5499
- created_at: z195.coerce.date(),
5500
- label: z195.string(),
5501
- description: z195.string()
5502
- });
5503
- var DTODataSourceFigmaCloud = z195.object({
5504
- fileId: z195.string(),
5544
+ var DTODataSourceFigmaFileVersion = z196.object({
5545
+ id: z196.string(),
5546
+ created_at: z196.coerce.date(),
5547
+ label: z196.string(),
5548
+ description: z196.string()
5549
+ });
5550
+ var DTODataSourceFigmaCloud = z196.object({
5551
+ fileId: z196.string(),
5505
5552
  state: DataSourceFigmaState,
5506
5553
  autoImportMode: DataSourceAutoImportMode,
5507
- fileThumbnailUrl: z195.string().optional(),
5554
+ fileThumbnailUrl: z196.string().optional(),
5508
5555
  lastImportResult: SourceImportSummary.nullish(),
5509
- lastImportedAt: z195.coerce.date().nullish(),
5556
+ lastImportedAt: z196.coerce.date().nullish(),
5510
5557
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5511
- lastUpdatesCheckedAt: z195.date().nullish(),
5512
- ownerId: z195.string(),
5513
- ownerUserName: z195.string().optional(),
5514
- preferredCredentialId: z195.string().optional(),
5558
+ lastUpdatesCheckedAt: z196.date().nullish(),
5559
+ ownerId: z196.string(),
5560
+ ownerUserName: z196.string().optional(),
5561
+ preferredCredentialId: z196.string().optional(),
5515
5562
  stats: DataSourceStats
5516
5563
  });
5517
- var DTODataSourceFigma = z195.object({
5518
- id: z195.string(),
5519
- type: z195.literal(DataSourceRemoteType.Enum.Figma),
5520
- fileName: z195.string(),
5564
+ var DTODataSourceFigma = z196.object({
5565
+ id: z196.string(),
5566
+ type: z196.literal(DataSourceRemoteType.Enum.Figma),
5567
+ fileName: z196.string(),
5521
5568
  scope: DTODataSourceFigmaScope,
5522
- brandId: z195.string(),
5523
- themeId: z195.string().nullish(),
5569
+ brandId: z196.string(),
5570
+ themeId: z196.string().nullish(),
5524
5571
  cloud: DTODataSourceFigmaCloud.nullish()
5525
5572
  });
5526
- var DTODataSourceTokenStudio = z195.object({
5527
- id: z195.string(),
5528
- type: z195.literal(DataSourceRemoteType.Enum.TokenStudio),
5529
- fileName: z195.string(),
5530
- brandId: z195.string(),
5531
- themeId: z195.string().nullish(),
5532
- tokenStudio: z195.object({
5533
- settings: z195.object({
5534
- dryRun: z195.boolean(),
5535
- verbose: z195.boolean(),
5536
- preciseCopy: z195.boolean()
5573
+ var DTODataSourceTokenStudio = z196.object({
5574
+ id: z196.string(),
5575
+ type: z196.literal(DataSourceRemoteType.Enum.TokenStudio),
5576
+ fileName: z196.string(),
5577
+ brandId: z196.string(),
5578
+ themeId: z196.string().nullish(),
5579
+ tokenStudio: z196.object({
5580
+ settings: z196.object({
5581
+ dryRun: z196.boolean(),
5582
+ verbose: z196.boolean(),
5583
+ preciseCopy: z196.boolean()
5537
5584
  }),
5538
- connectionName: z195.string(),
5539
- lastImportedAt: z195.coerce.date(),
5540
- lastImportedResults: z195.array(
5541
- z195.object({
5542
- mapping: z195.object({
5543
- tokenSets: z195.array(z195.string()),
5544
- supernovaBrand: z195.string(),
5545
- supernovaTheme: z195.string().optional()
5585
+ connectionName: z196.string(),
5586
+ lastImportedAt: z196.coerce.date(),
5587
+ lastImportedResults: z196.array(
5588
+ z196.object({
5589
+ mapping: z196.object({
5590
+ tokenSets: z196.array(z196.string()),
5591
+ supernovaBrand: z196.string(),
5592
+ supernovaTheme: z196.string().optional()
5546
5593
  }),
5547
- isFailed: z195.boolean(),
5548
- tokensCreated: z195.number(),
5549
- tokensDeleted: z195.number(),
5550
- tokensUpdated: z195.number()
5594
+ isFailed: z196.boolean(),
5595
+ tokensCreated: z196.number(),
5596
+ tokensDeleted: z196.number(),
5597
+ tokensUpdated: z196.number()
5551
5598
  })
5552
5599
  )
5553
5600
  })
5554
5601
  });
5555
- var DTODataSourceFigmaVariablesPlugin = z195.object({
5556
- id: z195.string(),
5557
- type: z195.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5558
- fileName: z195.string(),
5559
- brandId: z195.string(),
5560
- upload: z195.object({
5561
- remoteId: z195.string(),
5602
+ var DTODataSourceFigmaVariablesPlugin = z196.object({
5603
+ id: z196.string(),
5604
+ type: z196.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5605
+ fileName: z196.string(),
5606
+ brandId: z196.string(),
5607
+ upload: z196.object({
5608
+ remoteId: z196.string(),
5562
5609
  remoteSourceType: DataSourceUploadRemoteSource,
5563
- lastImportedAt: z195.coerce.date().optional(),
5610
+ lastImportedAt: z196.coerce.date().optional(),
5564
5611
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5565
- isTokenTypeSplitEnabled: z195.boolean()
5612
+ isTokenTypeSplitEnabled: z196.boolean()
5566
5613
  }),
5567
- figmaVariablesPlugin: z195.object({
5568
- fileId: z195.string(),
5569
- lastImportedAt: z195.coerce.date().optional(),
5614
+ figmaVariablesPlugin: z196.object({
5615
+ fileId: z196.string(),
5616
+ lastImportedAt: z196.coerce.date().optional(),
5570
5617
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5571
- isTokenTypeSplitEnabled: z195.boolean(),
5572
- isCollectionsMigrationCompleted: z195.boolean().default(false)
5618
+ isTokenTypeSplitEnabled: z196.boolean(),
5619
+ isCollectionsMigrationCompleted: z196.boolean().default(false)
5573
5620
  })
5574
5621
  });
5575
- var DTODataSource = z195.discriminatedUnion("type", [
5622
+ var DTODataSource = z196.discriminatedUnion("type", [
5576
5623
  DTODataSourceFigma,
5577
5624
  DTODataSourceFigmaVariablesPlugin,
5578
5625
  DTODataSourceTokenStudio
5579
5626
  ]);
5580
- var DTODataSourcesListResponse = z195.object({
5581
- sources: z195.array(DTODataSource)
5627
+ var DTODataSourcesListResponse = z196.object({
5628
+ sources: z196.array(DTODataSource)
5582
5629
  });
5583
- var DTODataSourceResponse = z195.object({
5630
+ var DTODataSourceResponse = z196.object({
5584
5631
  source: DTODataSource
5585
5632
  });
5586
- var DTODataSourceFigmaCreatePayload = z195.object({
5587
- brandPersistentId: z195.string(),
5588
- figmaFileUrl: z195.string(),
5633
+ var DTODataSourceFigmaCreatePayload = z196.object({
5634
+ brandPersistentId: z196.string(),
5635
+ figmaFileUrl: z196.string(),
5589
5636
  scope: DTODataSourceFigmaScope,
5590
5637
  autoImportMode: DataSourceAutoImportMode
5591
5638
  });
5592
- var DTODataSourceFigmaImportPayload = z195.object({
5593
- sourceIds: z195.array(z195.string())
5639
+ var DTODataSourceFigmaImportPayload = z196.object({
5640
+ sourceIds: z196.array(z196.string())
5594
5641
  });
5595
5642
 
5596
5643
  // src/api/dto/design-systems/design-system.ts
5597
- import { z as z198 } from "zod";
5644
+ import { z as z199 } from "zod";
5598
5645
 
5599
5646
  // src/api/dto/design-systems/members.ts
5600
- import { z as z197 } from "zod";
5647
+ import { z as z198 } from "zod";
5601
5648
 
5602
5649
  // src/api/dto/design-systems/role.ts
5603
- import { z as z196 } from "zod";
5604
- var DTODesignSystemRole = z196.enum([
5650
+ import { z as z197 } from "zod";
5651
+ var DTODesignSystemRole = z197.enum([
5605
5652
  WorkspaceRole.Admin,
5606
5653
  WorkspaceRole.Contributor,
5607
5654
  WorkspaceRole.Creator,
@@ -5609,29 +5656,29 @@ var DTODesignSystemRole = z196.enum([
5609
5656
  ]);
5610
5657
 
5611
5658
  // src/api/dto/design-systems/members.ts
5612
- var DTODesignSystemMember = z197.object({
5613
- userId: z197.string(),
5659
+ var DTODesignSystemMember = z198.object({
5660
+ userId: z198.string(),
5614
5661
  /**
5615
5662
  * Role that the member has in the design system,
5616
5663
  * undefined if set to inherit from workspace
5617
5664
  */
5618
5665
  designSystemRole: DTODesignSystemRole.optional()
5619
5666
  });
5620
- var DTODesignSystemInvitation = z197.object({
5621
- id: z197.string(),
5622
- workspaceInvitationId: z197.string(),
5667
+ var DTODesignSystemInvitation = z198.object({
5668
+ id: z198.string(),
5669
+ workspaceInvitationId: z198.string(),
5623
5670
  /**
5624
5671
  * Role that the invitation has in the design system,
5625
5672
  * undefined if set to inherit from workspace
5626
5673
  */
5627
5674
  designSystemRole: DTODesignSystemRole.optional()
5628
5675
  });
5629
- var DTODesignSystemMemberListResponse = z197.object({
5676
+ var DTODesignSystemMemberListResponse = z198.object({
5630
5677
  members: DTODesignSystemMember.array(),
5631
5678
  invitations: DTODesignSystemInvitation.array()
5632
5679
  });
5633
- var DTODesignSystemMembersUpdateResponse = z197.object({
5634
- ok: z197.literal(true)
5680
+ var DTODesignSystemMembersUpdateResponse = z198.object({
5681
+ ok: z198.literal(true)
5635
5682
  });
5636
5683
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5637
5684
 
@@ -5642,14 +5689,14 @@ var DTODesignSystem = DesignSystem.omit({
5642
5689
  docExporterId: true
5643
5690
  }).extend({
5644
5691
  meta: ObjectMeta,
5645
- docExporterId: z198.string(),
5646
- sources: z198.array(z198.any()),
5647
- isPublic: z198.literal(true),
5692
+ docExporterId: z199.string(),
5693
+ sources: z199.array(z199.any()),
5694
+ isPublic: z199.literal(true),
5648
5695
  /**
5649
5696
  * Whether or not user who is requesting the design system
5650
5697
  * has access to the design system's contents.
5651
5698
  */
5652
- isAvailableToUser: z198.boolean(),
5699
+ isAvailableToUser: z199.boolean(),
5653
5700
  /**
5654
5701
  * @deprecated
5655
5702
  */
@@ -5660,17 +5707,17 @@ var DTODesignSystem = DesignSystem.omit({
5660
5707
  */
5661
5708
  effectiveRole: DTODesignSystemRole.optional()
5662
5709
  });
5663
- var DTODesignSystemResponse = z198.object({
5710
+ var DTODesignSystemResponse = z199.object({
5664
5711
  designSystem: DTODesignSystem
5665
5712
  });
5666
- var DTODesignSystemsListResponse = z198.object({
5713
+ var DTODesignSystemsListResponse = z199.object({
5667
5714
  designSystems: DTODesignSystem.array()
5668
5715
  });
5669
- var DTODesignSystemCreateInput = z198.object({
5670
- workspaceId: z198.string(),
5716
+ var DTODesignSystemCreateInput = z199.object({
5717
+ workspaceId: z199.string(),
5671
5718
  meta: ObjectMeta.optional(),
5672
- name: z198.string().min(2).max(64).optional(),
5673
- description: z198.string().max(1024).optional(),
5719
+ name: z199.string().min(2).max(64).optional(),
5720
+ description: z199.string().max(1024).optional(),
5674
5721
  accessMode: DesignSystemAccessMode.optional(),
5675
5722
  invites: DTODesignSystemMembersUpdatePayload.pick({
5676
5723
  usersToInvite: true,
@@ -5680,20 +5727,20 @@ var DTODesignSystemCreateInput = z198.object({
5680
5727
  });
5681
5728
 
5682
5729
  // src/api/dto/design-systems/elements-diff.ts
5683
- import { z as z199 } from "zod";
5684
- var DTODiffCountBase = z199.object({
5685
- created: z199.number(),
5686
- updated: z199.number(),
5687
- deleted: z199.number()
5730
+ import { z as z200 } from "zod";
5731
+ var DTODiffCountBase = z200.object({
5732
+ created: z200.number(),
5733
+ updated: z200.number(),
5734
+ deleted: z200.number()
5688
5735
  });
5689
- var DTODesignElementsDataDiffResponse = z199.object({
5736
+ var DTODesignElementsDataDiffResponse = z200.object({
5690
5737
  tokens: DTODiffCountBase,
5691
5738
  assets: DTODiffCountBase
5692
5739
  });
5693
5740
 
5694
5741
  // src/api/dto/design-systems/figma-variables.ts
5695
- import { z as z200 } from "zod";
5696
- var DimensionsVariableScopeSchema = z200.enum([
5742
+ import { z as z201 } from "zod";
5743
+ var DimensionsVariableScopeSchema = z201.enum([
5697
5744
  "CORNER_RADIUS",
5698
5745
  "WIDTH_HEIGHT",
5699
5746
  "GAP",
@@ -5707,155 +5754,155 @@ var DimensionsVariableScopeSchema = z200.enum([
5707
5754
  "PARAGRAPH_INDENT",
5708
5755
  "FONT_WEIGHT"
5709
5756
  ]);
5710
- var StringVariableScopeSchema = z200.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5757
+ var StringVariableScopeSchema = z201.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5711
5758
  var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
5712
5759
  var StringVariableScopeType = StringVariableScopeSchema.enum;
5713
- var VariableScope = z200.string();
5714
- var ReferencedVariableOrigin = z200.object({
5715
- name: z200.string(),
5716
- remote: z200.boolean()
5760
+ var VariableScope = z201.string();
5761
+ var ReferencedVariableOrigin = z201.object({
5762
+ name: z201.string(),
5763
+ remote: z201.boolean()
5717
5764
  });
5718
- var RGB = z200.object({
5719
- r: z200.number(),
5720
- g: z200.number(),
5721
- b: z200.number()
5765
+ var RGB = z201.object({
5766
+ r: z201.number(),
5767
+ g: z201.number(),
5768
+ b: z201.number()
5722
5769
  });
5723
5770
  var RGBA = RGB.extend({
5724
- a: z200.number()
5725
- });
5726
- var VariableAlias = z200.object({
5727
- type: z200.literal("VARIABLE_ALIAS"),
5728
- id: z200.string(),
5729
- resolvedValue: z200.boolean().or(z200.number()).or(z200.string()).or(RGBA).or(RGB).optional(),
5730
- referenceOrigin: ReferencedVariableOrigin.optional().or(z200.null())
5731
- });
5732
- var VariableValue = z200.boolean().or(z200.number()).or(z200.string()).or(RGBA).or(RGB).or(VariableAlias);
5733
- var ResolvedVariableType = z200.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5734
- var Variable = z200.object({
5735
- id: z200.string(),
5736
- name: z200.string(),
5737
- key: z200.string(),
5738
- variableCollectionId: z200.string(),
5771
+ a: z201.number()
5772
+ });
5773
+ var VariableAlias = z201.object({
5774
+ type: z201.literal("VARIABLE_ALIAS"),
5775
+ id: z201.string(),
5776
+ resolvedValue: z201.boolean().or(z201.number()).or(z201.string()).or(RGBA).or(RGB).optional(),
5777
+ referenceOrigin: ReferencedVariableOrigin.optional().or(z201.null())
5778
+ });
5779
+ var VariableValue = z201.boolean().or(z201.number()).or(z201.string()).or(RGBA).or(RGB).or(VariableAlias);
5780
+ var ResolvedVariableType = z201.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5781
+ var Variable = z201.object({
5782
+ id: z201.string(),
5783
+ name: z201.string(),
5784
+ key: z201.string(),
5785
+ variableCollectionId: z201.string(),
5739
5786
  resolvedType: ResolvedVariableType,
5740
- valuesByMode: z200.record(VariableValue),
5741
- remote: z200.boolean(),
5742
- description: z200.string(),
5743
- hiddenFromPublishing: z200.boolean(),
5744
- scopes: z200.array(VariableScope),
5745
- codeSyntax: z200.record(z200.any()).optional()
5746
- });
5747
- var VariableMode = z200.object({
5748
- modeId: z200.string(),
5749
- name: z200.string()
5750
- });
5751
- var Collection2 = z200.object({
5752
- id: z200.string(),
5753
- name: z200.string(),
5754
- modes: z200.array(VariableMode),
5755
- defaultModeId: z200.string(),
5756
- remote: z200.boolean(),
5757
- hiddenFromPublishing: z200.boolean()
5758
- });
5759
- var VariablesMapping = z200.object({
5760
- variableCollections: z200.array(z200.string()).min(1),
5761
- variableMode: z200.string().min(1),
5762
- supernovaBrand: z200.string().min(1),
5763
- supernovaTheme: z200.string().min(1).optional().or(z200.null())
5764
- });
5765
- var FormattedCollections = z200.object({
5766
- variables: z200.record(z200.string(), Variable),
5767
- variableCollections: z200.record(z200.string(), Collection2),
5768
- mappings: z200.array(VariablesMapping).optional(),
5769
- variablesOrder: z200.string().array().optional()
5787
+ valuesByMode: z201.record(VariableValue),
5788
+ remote: z201.boolean(),
5789
+ description: z201.string(),
5790
+ hiddenFromPublishing: z201.boolean(),
5791
+ scopes: z201.array(VariableScope),
5792
+ codeSyntax: z201.record(z201.any()).optional()
5793
+ });
5794
+ var VariableMode = z201.object({
5795
+ modeId: z201.string(),
5796
+ name: z201.string()
5797
+ });
5798
+ var Collection2 = z201.object({
5799
+ id: z201.string(),
5800
+ name: z201.string(),
5801
+ modes: z201.array(VariableMode),
5802
+ defaultModeId: z201.string(),
5803
+ remote: z201.boolean(),
5804
+ hiddenFromPublishing: z201.boolean()
5805
+ });
5806
+ var VariablesMapping = z201.object({
5807
+ variableCollections: z201.array(z201.string()).min(1),
5808
+ variableMode: z201.string().min(1),
5809
+ supernovaBrand: z201.string().min(1),
5810
+ supernovaTheme: z201.string().min(1).optional().or(z201.null())
5811
+ });
5812
+ var FormattedCollections = z201.object({
5813
+ variables: z201.record(z201.string(), Variable),
5814
+ variableCollections: z201.record(z201.string(), Collection2),
5815
+ mappings: z201.array(VariablesMapping).optional(),
5816
+ variablesOrder: z201.string().array().optional()
5770
5817
  });
5771
5818
 
5772
5819
  // src/api/dto/design-systems/import-job.ts
5773
- import { z as z201 } from "zod";
5774
- var DTOImportJob = z201.object({
5775
- id: z201.string(),
5776
- designSystemId: z201.string(),
5777
- designSystemVersionId: z201.string(),
5778
- operation: z201.literal("Import"),
5779
- createdAt: z201.coerce.date(),
5780
- stateChangedAt: z201.coerce.date(),
5820
+ import { z as z202 } from "zod";
5821
+ var DTOImportJob = z202.object({
5822
+ id: z202.string(),
5823
+ designSystemId: z202.string(),
5824
+ designSystemVersionId: z202.string(),
5825
+ operation: z202.literal("Import"),
5826
+ createdAt: z202.coerce.date(),
5827
+ stateChangedAt: z202.coerce.date(),
5781
5828
  state: ImportJobState,
5782
- sourceIds: z201.string().array()
5829
+ sourceIds: z202.string().array()
5783
5830
  });
5784
- var DTOImportJobResponse = z201.object({
5831
+ var DTOImportJobResponse = z202.object({
5785
5832
  job: DTOImportJob
5786
5833
  });
5787
- var DTOBffFigmaImportRequestBody = z201.object({
5788
- type: z201.literal(DataSourceRemoteType.Enum.Figma),
5789
- brandPersistentId: z201.string().optional(),
5790
- fileId: z201.string(),
5834
+ var DTOBffFigmaImportRequestBody = z202.object({
5835
+ type: z202.literal(DataSourceRemoteType.Enum.Figma),
5836
+ brandPersistentId: z202.string().optional(),
5837
+ fileId: z202.string(),
5791
5838
  scope: DataSourceFigmaScope,
5792
5839
  autoImportMode: DataSourceAutoImportMode
5793
5840
  });
5794
- var DTOBffUploadImportRequestBody = z201.object({
5795
- type: z201.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5796
- brandPersistentId: z201.string().optional(),
5797
- sourceName: z201.string().optional(),
5798
- remoteId: z201.string(),
5799
- isTokenTypeSplitEnabled: z201.boolean().optional(),
5800
- payload: z201.any()
5841
+ var DTOBffUploadImportRequestBody = z202.object({
5842
+ type: z202.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5843
+ brandPersistentId: z202.string().optional(),
5844
+ sourceName: z202.string().optional(),
5845
+ remoteId: z202.string(),
5846
+ isTokenTypeSplitEnabled: z202.boolean().optional(),
5847
+ payload: z202.any()
5801
5848
  });
5802
- var DTOBffImportRequestBody = z201.discriminatedUnion("type", [
5849
+ var DTOBffImportRequestBody = z202.discriminatedUnion("type", [
5803
5850
  DTOBffFigmaImportRequestBody,
5804
5851
  DTOBffUploadImportRequestBody
5805
5852
  ]);
5806
5853
 
5807
5854
  // src/api/dto/design-systems/redirects.ts
5808
- import { z as z202 } from "zod";
5809
- var DTOPageRedirectCreateBody = z202.object({
5810
- pagePersistentId: z202.string(),
5811
- path: z202.string()
5855
+ import { z as z203 } from "zod";
5856
+ var DTOPageRedirectCreateBody = z203.object({
5857
+ pagePersistentId: z203.string(),
5858
+ path: z203.string()
5812
5859
  });
5813
5860
  var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
5814
- var DTOPageRedirect = z202.object({
5815
- id: z202.string(),
5816
- pagePersistentId: z202.string(),
5817
- path: z202.string()
5861
+ var DTOPageRedirect = z203.object({
5862
+ id: z203.string(),
5863
+ pagePersistentId: z203.string(),
5864
+ path: z203.string()
5818
5865
  });
5819
- var DTOPageRedirectListResponse = z202.object({
5866
+ var DTOPageRedirectListResponse = z203.object({
5820
5867
  redirects: DTOPageRedirect.array()
5821
5868
  });
5822
- var DTOPageRedirectResponse = z202.object({
5869
+ var DTOPageRedirectResponse = z203.object({
5823
5870
  redirect: DTOPageRedirect
5824
5871
  });
5825
- var DTOPageRedirectDeleteResponse = z202.object({
5826
- success: z202.boolean()
5872
+ var DTOPageRedirectDeleteResponse = z203.object({
5873
+ success: z203.boolean()
5827
5874
  });
5828
5875
 
5829
5876
  // src/api/dto/design-systems/stats.ts
5830
- import { z as z203 } from "zod";
5831
- var DTODesignSystemVersionStats = z203.object({
5832
- tokens: z203.number(),
5833
- designSystemComponents: z203.number(),
5834
- assets: z203.number(),
5835
- documentationPages: z203.number(),
5836
- figmaComponents: z203.number()
5837
- });
5838
- var DTODesignSystemVersionStatsQuery = z203.object({
5877
+ import { z as z204 } from "zod";
5878
+ var DTODesignSystemVersionStats = z204.object({
5879
+ tokens: z204.number(),
5880
+ designSystemComponents: z204.number(),
5881
+ assets: z204.number(),
5882
+ documentationPages: z204.number(),
5883
+ figmaComponents: z204.number()
5884
+ });
5885
+ var DTODesignSystemVersionStatsQuery = z204.object({
5839
5886
  /**
5840
5887
  * Unique ID across versions (non-persistent ID)
5841
5888
  */
5842
- brandId: z203.string().optional()
5889
+ brandId: z204.string().optional()
5843
5890
  });
5844
5891
 
5845
5892
  // src/api/dto/design-systems/version-room.ts
5846
- import { z as z204 } from "zod";
5847
- var DTODesignSystemVersionRoom = z204.object({
5848
- id: z204.string()
5893
+ import { z as z205 } from "zod";
5894
+ var DTODesignSystemVersionRoom = z205.object({
5895
+ id: z205.string()
5849
5896
  });
5850
- var DTODesignSystemVersionRoomResponse = z204.object({
5897
+ var DTODesignSystemVersionRoomResponse = z205.object({
5851
5898
  room: DTODesignSystemVersionRoom
5852
5899
  });
5853
5900
 
5854
5901
  // src/api/dto/design-systems/version.ts
5855
- import { z as z216 } from "zod";
5902
+ import { z as z217 } from "zod";
5856
5903
 
5857
5904
  // src/api/payloads/design-systems/update-design-system.ts
5858
- import { z as z205 } from "zod";
5905
+ import { z as z206 } from "zod";
5859
5906
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5860
5907
  id: true,
5861
5908
  workspaceId: true,
@@ -5867,40 +5914,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5867
5914
  }).extend({
5868
5915
  meta: ObjectMeta.partial().optional()
5869
5916
  });
5870
- var DTODesignSystemUpdateAccessModeInput = z205.object({
5917
+ var DTODesignSystemUpdateAccessModeInput = z206.object({
5871
5918
  accessMode: DesignSystemAccessMode,
5872
- retain: z205.object({
5873
- userIds: z205.string().array(),
5874
- inviteIds: z205.string().array()
5919
+ retain: z206.object({
5920
+ userIds: z206.string().array(),
5921
+ inviteIds: z206.string().array()
5875
5922
  }).optional()
5876
5923
  });
5877
5924
 
5878
5925
  // src/api/payloads/design-systems/version.ts
5879
- import { z as z206 } from "zod";
5880
- var ObjectMeta2 = z206.object({
5881
- name: z206.string().max(150).optional(),
5882
- description: z206.string().max(2e3).optional()
5926
+ import { z as z207 } from "zod";
5927
+ var ObjectMeta2 = z207.object({
5928
+ name: z207.string().max(150).optional(),
5929
+ description: z207.string().max(2e3).optional()
5883
5930
  });
5884
5931
  function validateDesignSystemVersion(version) {
5885
5932
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5886
5933
  return urlCompliantRegex.test(version);
5887
5934
  }
5888
- var DTOCreateVersionInput = z206.object({
5935
+ var DTOCreateVersionInput = z207.object({
5889
5936
  meta: ObjectMeta2,
5890
- version: z206.string().refine(validateDesignSystemVersion, {
5937
+ version: z207.string().refine(validateDesignSystemVersion, {
5891
5938
  message: "Invalid semantic versioning format"
5892
5939
  }),
5893
- changeLog: z206.string().optional()
5940
+ changeLog: z207.string().optional()
5894
5941
  });
5895
- var DTOUpdateVersionInput = z206.object({
5942
+ var DTOUpdateVersionInput = z207.object({
5896
5943
  meta: ObjectMeta2,
5897
- version: z206.string(),
5944
+ version: z207.string(),
5898
5945
  // required for PUT, but not editable
5899
- changeLog: z206.string()
5946
+ changeLog: z207.string()
5900
5947
  });
5901
5948
 
5902
5949
  // src/api/payloads/documentation/block-definitions.ts
5903
- import { z as z207 } from "zod";
5950
+ import { z as z208 } from "zod";
5904
5951
 
5905
5952
  // src/api/dto/documentation/block-definition.ts
5906
5953
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5912,76 +5959,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5912
5959
  var DTOPageBlockDefinition = PageBlockDefinition;
5913
5960
 
5914
5961
  // src/api/payloads/documentation/block-definitions.ts
5915
- var DTOGetBlockDefinitionsOutput = z207.object({
5916
- definitions: z207.array(DTOPageBlockDefinition)
5962
+ var DTOGetBlockDefinitionsOutput = z208.object({
5963
+ definitions: z208.array(DTOPageBlockDefinition)
5917
5964
  });
5918
5965
 
5919
5966
  // src/api/payloads/documentation/design-data-doc-diff.ts
5920
- import { z as z208 } from "zod";
5921
- var DTODocumentationPublishTypeQueryParams = z208.object({
5922
- environment: z208.enum(["Live", "Preview"])
5967
+ import { z as z209 } from "zod";
5968
+ var DTODocumentationPublishTypeQueryParams = z209.object({
5969
+ environment: z209.enum(["Live", "Preview"])
5923
5970
  });
5924
5971
 
5925
5972
  // src/api/payloads/export/pipeline.ts
5926
- import { z as z210 } from "zod";
5973
+ import { z as z211 } from "zod";
5927
5974
 
5928
5975
  // src/api/dto/export/exporter-property.ts
5929
- import { z as z209 } from "zod";
5930
- var PrimitiveValue2 = z209.number().or(z209.boolean()).or(z209.string());
5931
- var ArrayValue2 = z209.array(z209.string());
5932
- var ObjectValue2 = z209.record(z209.string());
5976
+ import { z as z210 } from "zod";
5977
+ var PrimitiveValue2 = z210.number().or(z210.boolean()).or(z210.string());
5978
+ var ArrayValue2 = z210.array(z210.string());
5979
+ var ObjectValue2 = z210.record(z210.string());
5933
5980
  var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
5934
- var DTOExporterPropertyType = z209.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
5935
- var PropertyDefinitionBase2 = z209.object({
5936
- key: z209.string(),
5937
- title: z209.string(),
5938
- description: z209.string(),
5939
- category: z209.string().optional(),
5940
- dependsOn: z209.record(z209.boolean()).optional()
5941
- });
5942
- var DTOExporterPropertyDefinitionEnumOption = z209.object({
5943
- label: z209.string(),
5944
- description: z209.string()
5981
+ var DTOExporterPropertyType = z210.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
5982
+ var PropertyDefinitionBase2 = z210.object({
5983
+ key: z210.string(),
5984
+ title: z210.string(),
5985
+ description: z210.string(),
5986
+ category: z210.string().optional(),
5987
+ dependsOn: z210.record(z210.boolean()).optional()
5988
+ });
5989
+ var DTOExporterPropertyDefinitionEnumOption = z210.object({
5990
+ label: z210.string(),
5991
+ description: z210.string()
5945
5992
  });
5946
5993
  var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
5947
- type: z209.literal(DTOExporterPropertyType.Enum.Enum),
5948
- options: z209.record(DTOExporterPropertyDefinitionEnumOption),
5949
- default: z209.string()
5994
+ type: z210.literal(DTOExporterPropertyType.Enum.Enum),
5995
+ options: z210.record(DTOExporterPropertyDefinitionEnumOption),
5996
+ default: z210.string()
5950
5997
  });
5951
5998
  var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
5952
- type: z209.literal(DTOExporterPropertyType.Enum.Boolean),
5953
- default: z209.boolean()
5999
+ type: z210.literal(DTOExporterPropertyType.Enum.Boolean),
6000
+ default: z210.boolean()
5954
6001
  });
5955
6002
  var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
5956
- type: z209.literal(DTOExporterPropertyType.Enum.String),
5957
- default: z209.string(),
5958
- isMultiline: z209.boolean().optional()
6003
+ type: z210.literal(DTOExporterPropertyType.Enum.String),
6004
+ default: z210.string(),
6005
+ isMultiline: z210.boolean().optional()
5959
6006
  });
5960
6007
  var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
5961
- type: z209.literal(DTOExporterPropertyType.Enum.Number),
5962
- default: z209.number()
6008
+ type: z210.literal(DTOExporterPropertyType.Enum.Number),
6009
+ default: z210.number()
5963
6010
  });
5964
6011
  var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
5965
- type: z209.literal(DTOExporterPropertyType.Enum.Array),
6012
+ type: z210.literal(DTOExporterPropertyType.Enum.Array),
5966
6013
  default: ArrayValue2
5967
6014
  });
5968
6015
  var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
5969
- type: z209.literal(DTOExporterPropertyType.Enum.Object),
6016
+ type: z210.literal(DTOExporterPropertyType.Enum.Object),
5970
6017
  default: ObjectValue2,
5971
- allowedKeys: z209.object({
5972
- options: z209.string().array(),
5973
- type: z209.string()
6018
+ allowedKeys: z210.object({
6019
+ options: z210.string().array(),
6020
+ type: z210.string()
5974
6021
  }).optional(),
5975
- allowedValues: z209.object({
5976
- type: z209.string()
6022
+ allowedValues: z210.object({
6023
+ type: z210.string()
5977
6024
  }).optional()
5978
6025
  });
5979
6026
  var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
5980
- type: z209.literal(DTOExporterPropertyType.Enum.Code),
5981
- language: z209.string(),
5982
- default: z209.string()
6027
+ type: z210.literal(DTOExporterPropertyType.Enum.Code),
6028
+ language: z210.string(),
6029
+ default: z210.string()
5983
6030
  });
5984
- var DTOExporterPropertyDefinition = z209.discriminatedUnion("type", [
6031
+ var DTOExporterPropertyDefinition = z210.discriminatedUnion("type", [
5985
6032
  DTOExporterPropertyDefinitionEnum,
5986
6033
  DTOExporterPropertyDefinitionBoolean,
5987
6034
  DTOExporterPropertyDefinitionString,
@@ -5990,84 +6037,84 @@ var DTOExporterPropertyDefinition = z209.discriminatedUnion("type", [
5990
6037
  DTOExporterPropertyDefinitionObject,
5991
6038
  DTOExporterPropertyDefinitionCode
5992
6039
  ]);
5993
- var DTOExporterPropertyDefinitionsResponse = z209.object({
6040
+ var DTOExporterPropertyDefinitionsResponse = z210.object({
5994
6041
  properties: DTOExporterPropertyDefinition.array()
5995
6042
  });
5996
- var DTOExporterPropertyValueMap = z209.record(DTOExporterPropertyValue);
6043
+ var DTOExporterPropertyValueMap = z210.record(DTOExporterPropertyValue);
5997
6044
 
5998
6045
  // src/api/payloads/export/pipeline.ts
5999
- var GitDestinationOptions = z210.object({
6000
- branch: z210.string().min(1).optional(),
6001
- commitMessage: z210.string().min(1).optional(),
6002
- commitAuthorName: z210.string().min(1).optional(),
6003
- commitAuthorEmail: z210.string().email().optional(),
6004
- pullRequestTitle: z210.string().min(1).optional(),
6005
- pullRequestDescription: z210.string().min(1).optional(),
6006
- relativePath: z210.string().optional(),
6007
- purgeDirectory: z210.boolean().optional()
6008
- });
6009
- var DTOPipelineCreateBody = z210.object({
6010
- name: z210.string(),
6011
- exporterId: z210.string(),
6012
- designSystemId: z210.string(),
6013
- isEnabled: z210.boolean(),
6046
+ var GitDestinationOptions = z211.object({
6047
+ branch: z211.string().min(1).optional(),
6048
+ commitMessage: z211.string().min(1).optional(),
6049
+ commitAuthorName: z211.string().min(1).optional(),
6050
+ commitAuthorEmail: z211.string().email().optional(),
6051
+ pullRequestTitle: z211.string().min(1).optional(),
6052
+ pullRequestDescription: z211.string().min(1).optional(),
6053
+ relativePath: z211.string().optional(),
6054
+ purgeDirectory: z211.boolean().optional()
6055
+ });
6056
+ var DTOPipelineCreateBody = z211.object({
6057
+ name: z211.string(),
6058
+ exporterId: z211.string(),
6059
+ designSystemId: z211.string(),
6060
+ isEnabled: z211.boolean(),
6014
6061
  eventType: PipelineEventType,
6015
- brandPersistentId: z210.string().optional(),
6016
- themePersistentId: z210.string().optional(),
6017
- themePersistentIds: z210.string().array().optional(),
6062
+ brandPersistentId: z211.string().optional(),
6063
+ themePersistentId: z211.string().optional(),
6064
+ themePersistentIds: z211.string().array().optional(),
6018
6065
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6019
6066
  destination: PipelineDestinationType.optional(),
6020
6067
  gitQuery: GitObjectsQuery,
6021
- destinations: z210.object({
6068
+ destinations: z211.object({
6022
6069
  s3: ExporterDestinationS3.nullish(),
6023
6070
  azure: ExporterDestinationAzure.nullish(),
6024
6071
  bitbucket: ExporterDestinationBitbucket.nullish(),
6025
6072
  github: ExporterDestinationGithub.nullish(),
6026
6073
  gitlab: ExporterDestinationGitlab.nullish(),
6027
6074
  documentation: ExporterDestinationDocs.nullish(),
6028
- webhookUrl: z210.string().nullish()
6075
+ webhookUrl: z211.string().nullish()
6029
6076
  })
6030
6077
  });
6031
- var DTOPipelineUpdateBody = z210.object({
6032
- exporterId: z210.string().optional(),
6033
- name: z210.string().optional(),
6034
- isEnabled: z210.boolean().optional(),
6078
+ var DTOPipelineUpdateBody = z211.object({
6079
+ exporterId: z211.string().optional(),
6080
+ name: z211.string().optional(),
6081
+ isEnabled: z211.boolean().optional(),
6035
6082
  eventType: PipelineEventType.optional(),
6036
- brandPersistentId: z210.string().optional(),
6037
- themePersistentId: z210.string().optional(),
6038
- themePersistentIds: z210.string().array().optional(),
6083
+ brandPersistentId: z211.string().optional(),
6084
+ themePersistentId: z211.string().optional(),
6085
+ themePersistentIds: z211.string().array().optional(),
6039
6086
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6040
6087
  destination: PipelineDestinationType.optional(),
6041
6088
  gitQuery: GitObjectsQuery.optional(),
6042
- destinations: z210.object({
6089
+ destinations: z211.object({
6043
6090
  s3: ExporterDestinationS3.nullish(),
6044
6091
  azure: ExporterDestinationAzure.nullish(),
6045
6092
  bitbucket: ExporterDestinationBitbucket.nullish(),
6046
6093
  github: ExporterDestinationGithub.nullish(),
6047
6094
  gitlab: ExporterDestinationGitlab.nullish(),
6048
6095
  documentation: ExporterDestinationDocs.nullish(),
6049
- webhookUrl: z210.string().nullish()
6096
+ webhookUrl: z211.string().nullish()
6050
6097
  }).optional(),
6051
6098
  gitDestinationOptions: GitDestinationOptions.partial().optional()
6052
6099
  });
6053
- var DTOPipelineTriggerBody = z210.object({
6054
- designSystemVersionId: z210.string()
6100
+ var DTOPipelineTriggerBody = z211.object({
6101
+ designSystemVersionId: z211.string()
6055
6102
  });
6056
6103
 
6057
6104
  // src/api/payloads/liveblocks/auth.ts
6058
- import { z as z211 } from "zod";
6059
- var DTOLiveblocksAuthRequest = z211.object({
6060
- room: z211.string().optional()
6105
+ import { z as z212 } from "zod";
6106
+ var DTOLiveblocksAuthRequest = z212.object({
6107
+ room: z212.string().optional()
6061
6108
  });
6062
6109
 
6063
6110
  // src/api/payloads/users/notifications/notification-settings.ts
6064
- import { z as z212 } from "zod";
6065
- var DTOUpdateUserNotificationSettingsPayload = z212.object({
6111
+ import { z as z213 } from "zod";
6112
+ var DTOUpdateUserNotificationSettingsPayload = z213.object({
6066
6113
  notificationSettings: UserNotificationSettings
6067
6114
  });
6068
- var DTOUserNotificationSettingsResponse = z212.object({
6069
- userId: z212.string(),
6070
- workspaceId: z212.string(),
6115
+ var DTOUserNotificationSettingsResponse = z213.object({
6116
+ userId: z213.string(),
6117
+ workspaceId: z213.string(),
6071
6118
  notificationSettings: UserNotificationSettings
6072
6119
  });
6073
6120
 
@@ -6075,13 +6122,13 @@ var DTOUserNotificationSettingsResponse = z212.object({
6075
6122
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
6076
6123
 
6077
6124
  // src/api/payloads/workspaces/transfer-ownership.ts
6078
- import { z as z213 } from "zod";
6079
- var DTOTransferOwnershipPayload = z213.object({
6080
- newOwnerId: z213.string()
6125
+ import { z as z214 } from "zod";
6126
+ var DTOTransferOwnershipPayload = z214.object({
6127
+ newOwnerId: z214.string()
6081
6128
  });
6082
6129
 
6083
6130
  // src/api/payloads/workspaces/workspace-configuration.ts
6084
- import { z as z214 } from "zod";
6131
+ import { z as z215 } from "zod";
6085
6132
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
6086
6133
  function validateSsoPayload(ssoPayload) {
6087
6134
  const keys = [];
@@ -6104,21 +6151,21 @@ function validateSsoPayload(ssoPayload) {
6104
6151
  keys
6105
6152
  };
6106
6153
  }
6107
- var NpmRegistryInput = z214.object({
6108
- enabledScopes: z214.array(z214.string()),
6109
- customRegistryUrl: z214.string().optional(),
6110
- bypassProxy: z214.boolean().optional(),
6111
- npmProxyRegistryConfigId: z214.string().optional(),
6112
- npmProxyVersion: z214.number().optional(),
6113
- registryType: z214.string(),
6114
- authType: z214.string(),
6115
- authHeaderName: z214.string(),
6116
- authHeaderValue: z214.string(),
6117
- accessToken: z214.string(),
6118
- username: z214.string(),
6119
- password: z214.string()
6120
- });
6121
- var WorkspaceConfigurationPayload = z214.object({
6154
+ var NpmRegistryInput = z215.object({
6155
+ enabledScopes: z215.array(z215.string()),
6156
+ customRegistryUrl: z215.string().optional(),
6157
+ bypassProxy: z215.boolean().optional(),
6158
+ npmProxyRegistryConfigId: z215.string().optional(),
6159
+ npmProxyVersion: z215.number().optional(),
6160
+ registryType: z215.string(),
6161
+ authType: z215.string(),
6162
+ authHeaderName: z215.string(),
6163
+ authHeaderValue: z215.string(),
6164
+ accessToken: z215.string(),
6165
+ username: z215.string(),
6166
+ password: z215.string()
6167
+ });
6168
+ var WorkspaceConfigurationPayload = z215.object({
6122
6169
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
6123
6170
  sso: SsoProvider.partial().optional(),
6124
6171
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -6126,218 +6173,218 @@ var WorkspaceConfigurationPayload = z214.object({
6126
6173
  });
6127
6174
 
6128
6175
  // src/api/payloads/workspaces/workspace-integrations.ts
6129
- import { z as z215 } from "zod";
6130
- var DTOWorkspaceIntegrationOauthInput = z215.object({
6176
+ import { z as z216 } from "zod";
6177
+ var DTOWorkspaceIntegrationOauthInput = z216.object({
6131
6178
  type: IntegrationType
6132
6179
  });
6133
- var DTOWorkspaceIntegrationPATInput = z215.object({
6134
- userId: z215.string(),
6180
+ var DTOWorkspaceIntegrationPATInput = z216.object({
6181
+ userId: z216.string(),
6135
6182
  type: IntegrationType,
6136
6183
  token: IntegrationToken
6137
6184
  });
6138
- var DTOWorkspaceIntegrationGetGitObjectsInput = z215.object({
6139
- organization: z215.string().optional(),
6185
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z216.object({
6186
+ organization: z216.string().optional(),
6140
6187
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
6141
- project: z215.string().optional(),
6188
+ project: z216.string().optional(),
6142
6189
  // Only for Bitbucket and Azure
6143
- repository: z215.string().optional(),
6190
+ repository: z216.string().optional(),
6144
6191
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
6145
- branch: z215.string().optional(),
6192
+ branch: z216.string().optional(),
6146
6193
  // For all providers, useful for PR creations.
6147
- user: z215.string().optional()
6194
+ user: z216.string().optional()
6148
6195
  // Only for Gitlab User Repositories
6149
6196
  });
6150
6197
 
6151
6198
  // src/api/dto/design-systems/version.ts
6152
- var DTODesignSystemVersion = z216.object({
6153
- id: z216.string(),
6154
- createdAt: z216.coerce.date(),
6199
+ var DTODesignSystemVersion = z217.object({
6200
+ id: z217.string(),
6201
+ createdAt: z217.coerce.date(),
6155
6202
  meta: ObjectMeta,
6156
- version: z216.string(),
6157
- isReadonly: z216.boolean(),
6158
- changeLog: z216.string(),
6159
- designSystemId: z216.string()
6203
+ version: z217.string(),
6204
+ isReadonly: z217.boolean(),
6205
+ changeLog: z217.string(),
6206
+ designSystemId: z217.string()
6160
6207
  });
6161
- var DTODesignSystemVersionsListResponse = z216.object({
6162
- designSystemVersions: z216.array(DTODesignSystemVersion)
6208
+ var DTODesignSystemVersionsListResponse = z217.object({
6209
+ designSystemVersions: z217.array(DTODesignSystemVersion)
6163
6210
  });
6164
- var DTODesignSystemVersionGetResponse = z216.object({
6211
+ var DTODesignSystemVersionGetResponse = z217.object({
6165
6212
  designSystemVersion: DTODesignSystemVersion
6166
6213
  });
6167
- var DTODesignSystemVersionCreationResponse = z216.object({
6214
+ var DTODesignSystemVersionCreationResponse = z217.object({
6168
6215
  meta: ObjectMeta,
6169
- version: z216.string(),
6170
- changeLog: z216.string(),
6171
- isReadOnly: z216.boolean(),
6172
- designSystemId: z216.string(),
6173
- jobId: z216.string()
6174
- });
6175
- var VersionSQSPayload = z216.object({
6176
- jobId: z216.string(),
6177
- designSystemId: z216.string(),
6216
+ version: z217.string(),
6217
+ changeLog: z217.string(),
6218
+ isReadOnly: z217.boolean(),
6219
+ designSystemId: z217.string(),
6220
+ jobId: z217.string()
6221
+ });
6222
+ var VersionSQSPayload = z217.object({
6223
+ jobId: z217.string(),
6224
+ designSystemId: z217.string(),
6178
6225
  input: DTOCreateVersionInput
6179
6226
  });
6180
- var DTODesignSystemVersionJobsResponse = z216.object({
6181
- jobs: z216.array(VersionCreationJob)
6227
+ var DTODesignSystemVersionJobsResponse = z217.object({
6228
+ jobs: z217.array(VersionCreationJob)
6182
6229
  });
6183
- var DTODesignSystemVersionJobStatusResponse = z216.object({
6230
+ var DTODesignSystemVersionJobStatusResponse = z217.object({
6184
6231
  job: VersionCreationJob
6185
6232
  });
6186
6233
 
6187
6234
  // src/api/dto/design-systems/view.ts
6188
- import { z as z217 } from "zod";
6189
- var DTOElementViewColumnSharedAttributes = z217.object({
6190
- id: z217.string(),
6191
- persistentId: z217.string(),
6192
- width: z217.number()
6235
+ import { z as z218 } from "zod";
6236
+ var DTOElementViewColumnSharedAttributes = z218.object({
6237
+ id: z218.string(),
6238
+ persistentId: z218.string(),
6239
+ width: z218.number()
6193
6240
  });
6194
6241
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
6195
- type: z217.literal("BaseProperty"),
6242
+ type: z218.literal("BaseProperty"),
6196
6243
  basePropertyType: ElementViewBaseColumnType
6197
6244
  });
6198
6245
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
6199
- type: z217.literal("PropertyDefinition"),
6200
- propertyDefinitionId: z217.string()
6246
+ type: z218.literal("PropertyDefinition"),
6247
+ propertyDefinitionId: z218.string()
6201
6248
  });
6202
6249
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
6203
- type: z217.literal("Theme"),
6204
- themeId: z217.string()
6250
+ type: z218.literal("Theme"),
6251
+ themeId: z218.string()
6205
6252
  });
6206
- var DTOElementViewColumn = z217.discriminatedUnion("type", [
6253
+ var DTOElementViewColumn = z218.discriminatedUnion("type", [
6207
6254
  DTOElementViewBasePropertyColumn,
6208
6255
  DTOElementViewPropertyDefinitionColumn,
6209
6256
  DTOElementViewThemeColumn
6210
6257
  ]);
6211
- var DTOElementView = z217.object({
6258
+ var DTOElementView = z218.object({
6212
6259
  meta: ObjectMeta,
6213
- persistentId: z217.string(),
6260
+ persistentId: z218.string(),
6214
6261
  targetElementType: ElementPropertyTargetType,
6215
- id: z217.string(),
6216
- isDefault: z217.boolean(),
6217
- columns: z217.array(DTOElementViewColumn)
6262
+ id: z218.string(),
6263
+ isDefault: z218.boolean(),
6264
+ columns: z218.array(DTOElementViewColumn)
6218
6265
  });
6219
- var DTOElementViewsListResponse = z217.object({
6220
- elementDataViews: z217.array(DTOElementView)
6266
+ var DTOElementViewsListResponse = z218.object({
6267
+ elementDataViews: z218.array(DTOElementView)
6221
6268
  });
6222
6269
 
6223
6270
  // src/api/dto/workspaces/git.ts
6224
- import { z as z218 } from "zod";
6225
- var DTOGitOrganization = z218.object({
6226
- id: z218.string(),
6227
- name: z218.string(),
6228
- url: z218.string(),
6229
- slug: z218.string()
6271
+ import { z as z219 } from "zod";
6272
+ var DTOGitOrganization = z219.object({
6273
+ id: z219.string(),
6274
+ name: z219.string(),
6275
+ url: z219.string(),
6276
+ slug: z219.string()
6230
6277
  });
6231
- var DTOGitProject = z218.object({
6232
- id: z218.string(),
6233
- name: z218.string(),
6234
- url: z218.string(),
6235
- slug: z218.string()
6278
+ var DTOGitProject = z219.object({
6279
+ id: z219.string(),
6280
+ name: z219.string(),
6281
+ url: z219.string(),
6282
+ slug: z219.string()
6236
6283
  });
6237
- var DTOGitRepository = z218.object({
6238
- id: z218.string(),
6239
- name: z218.string(),
6240
- url: z218.string(),
6241
- slug: z218.string(),
6242
- defaultBranch: z218.string().optional()
6284
+ var DTOGitRepository = z219.object({
6285
+ id: z219.string(),
6286
+ name: z219.string(),
6287
+ url: z219.string(),
6288
+ slug: z219.string(),
6289
+ defaultBranch: z219.string().optional()
6243
6290
  });
6244
- var DTOGitBranch = z218.object({
6245
- name: z218.string(),
6246
- lastCommitId: z218.string()
6291
+ var DTOGitBranch = z219.object({
6292
+ name: z219.string(),
6293
+ lastCommitId: z219.string()
6247
6294
  });
6248
6295
 
6249
6296
  // src/api/dto/workspaces/integrations.ts
6250
- import { z as z219 } from "zod";
6297
+ import { z as z220 } from "zod";
6251
6298
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
6252
6299
  accessToken: true,
6253
6300
  refreshToken: true
6254
6301
  });
6255
- var DTOIntegration = z219.object({
6256
- id: z219.string(),
6257
- workspaceId: z219.string(),
6302
+ var DTOIntegration = z220.object({
6303
+ id: z220.string(),
6304
+ workspaceId: z220.string(),
6258
6305
  type: ExtendedIntegrationType,
6259
- createdAt: z219.coerce.date(),
6260
- integrationCredentials: z219.array(DTOIntegrationCredentials).optional(),
6261
- integrationDesignSystems: z219.array(IntegrationDesignSystem).optional()
6306
+ createdAt: z220.coerce.date(),
6307
+ integrationCredentials: z220.array(DTOIntegrationCredentials).optional(),
6308
+ integrationDesignSystems: z220.array(IntegrationDesignSystem).optional()
6262
6309
  });
6263
- var DTOIntegrationOAuthGetResponse = z219.object({
6264
- url: z219.string()
6310
+ var DTOIntegrationOAuthGetResponse = z220.object({
6311
+ url: z220.string()
6265
6312
  });
6266
- var DTOIntegrationPostResponse = z219.object({
6313
+ var DTOIntegrationPostResponse = z220.object({
6267
6314
  integration: DTOIntegration
6268
6315
  });
6269
- var DTOIntegrationsGetListResponse = z219.object({
6316
+ var DTOIntegrationsGetListResponse = z220.object({
6270
6317
  integrations: DTOIntegration.array()
6271
6318
  });
6272
6319
 
6273
6320
  // src/api/dto/workspaces/invitations.ts
6274
- import { z as z220 } from "zod";
6275
- var DTOWorkspaceInvitationInput = z220.object({
6276
- email: z220.string().email(),
6321
+ import { z as z221 } from "zod";
6322
+ var DTOWorkspaceInvitationInput = z221.object({
6323
+ email: z221.string().email(),
6277
6324
  role: WorkspaceRoleSchema
6278
6325
  });
6279
- var DTOWorkspaceInvitationsListInput = z220.object({
6326
+ var DTOWorkspaceInvitationsListInput = z221.object({
6280
6327
  invites: DTOWorkspaceInvitationInput.array().max(100),
6281
- designSystemId: z220.string().optional()
6328
+ designSystemId: z221.string().optional()
6282
6329
  });
6283
- var DTOWorkspaceInvitationsResponse = z220.object({
6330
+ var DTOWorkspaceInvitationsResponse = z221.object({
6284
6331
  invitations: WorkspaceInvitation.array()
6285
6332
  });
6286
- var DTOWorkspaceInviteUpdate = z220.object({
6333
+ var DTOWorkspaceInviteUpdate = z221.object({
6287
6334
  role: WorkspaceRoleSchema
6288
6335
  });
6289
- var DTOWorkspaceInvitationUpdateResponse = z220.object({
6336
+ var DTOWorkspaceInvitationUpdateResponse = z221.object({
6290
6337
  invitation: WorkspaceInvitation
6291
6338
  });
6292
6339
 
6293
6340
  // src/api/dto/workspaces/membership.ts
6294
- import { z as z223 } from "zod";
6341
+ import { z as z224 } from "zod";
6295
6342
 
6296
6343
  // src/api/dto/workspaces/workspace.ts
6297
- import { z as z222 } from "zod";
6344
+ import { z as z223 } from "zod";
6298
6345
 
6299
6346
  // src/api/dto/workspaces/npm-registry.ts
6300
- import { z as z221 } from "zod";
6347
+ import { z as z222 } from "zod";
6301
6348
  var DTONpmRegistryConfigConstants = {
6302
6349
  passwordPlaceholder: "redacted"
6303
6350
  };
6304
- var DTONpmRegistryConfig = z221.object({
6351
+ var DTONpmRegistryConfig = z222.object({
6305
6352
  // Registry basic configuration
6306
6353
  registryType: NpmRegistryType,
6307
- registryUrl: z221.string(),
6308
- customRegistryUrl: z221.string().optional(),
6354
+ registryUrl: z222.string(),
6355
+ customRegistryUrl: z222.string().optional(),
6309
6356
  // URL of Supernova NPM packages proxy
6310
- proxyUrl: z221.string(),
6357
+ proxyUrl: z222.string(),
6311
6358
  // Auth configuration
6312
6359
  authType: NpmRegistryAuthType,
6313
- accessToken: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6314
- username: z221.string().optional(),
6315
- password: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6360
+ accessToken: z222.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6361
+ username: z222.string().optional(),
6362
+ password: z222.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6316
6363
  // NPM package scopes for whih the proxy should be enabled
6317
- enabledScopes: z221.array(z221.string()),
6364
+ enabledScopes: z222.array(z222.string()),
6318
6365
  // True if client should bypass Supernova proxy and connect directly to the registry
6319
6366
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6320
- bypassProxy: z221.boolean()
6367
+ bypassProxy: z222.boolean()
6321
6368
  });
6322
6369
 
6323
6370
  // src/api/dto/workspaces/workspace.ts
6324
6371
  var DTOWorkspaceProfile = WorkspaceProfile;
6325
- var DTOWorkspace = z222.object({
6326
- id: z222.string(),
6372
+ var DTOWorkspace = z223.object({
6373
+ id: z223.string(),
6327
6374
  profile: DTOWorkspaceProfile,
6328
6375
  subscription: Subscription,
6329
6376
  npmRegistry: DTONpmRegistryConfig.optional()
6330
6377
  });
6331
- var DTOWorkspaceCreateInput = z222.object({
6332
- name: z222.string()
6378
+ var DTOWorkspaceCreateInput = z223.object({
6379
+ name: z223.string()
6333
6380
  });
6334
- var DTOWorkspaceResponse = z222.object({
6381
+ var DTOWorkspaceResponse = z223.object({
6335
6382
  workspace: DTOWorkspace
6336
6383
  });
6337
6384
 
6338
6385
  // src/api/dto/workspaces/membership.ts
6339
- var DTOWorkspaceRole = z223.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6340
- var DTOUserWorkspaceMembership = z223.object({
6386
+ var DTOWorkspaceRole = z224.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6387
+ var DTOUserWorkspaceMembership = z224.object({
6341
6388
  // Workspace the user is a member of
6342
6389
  workspace: DTOWorkspace,
6343
6390
  // Assigned role the user has in the workspace
@@ -6347,26 +6394,26 @@ var DTOUserWorkspaceMembership = z223.object({
6347
6394
  // when a workspace's subscription is downgraded to free tier
6348
6395
  effectiveRole: DTOWorkspaceRole
6349
6396
  });
6350
- var DTOWorkspaceMember = z223.object({
6397
+ var DTOWorkspaceMember = z224.object({
6351
6398
  user: User,
6352
6399
  role: WorkspaceRoleSchema,
6353
6400
  effectiveRole: WorkspaceRoleSchema
6354
6401
  });
6355
- var DTOUserWorkspaceMembershipsResponse = z223.object({
6356
- membership: z223.array(DTOUserWorkspaceMembership)
6402
+ var DTOUserWorkspaceMembershipsResponse = z224.object({
6403
+ membership: z224.array(DTOUserWorkspaceMembership)
6357
6404
  });
6358
- var DTOWorkspaceMembersListResponse = z223.object({
6359
- members: z223.array(DTOWorkspaceMember)
6405
+ var DTOWorkspaceMembersListResponse = z224.object({
6406
+ members: z224.array(DTOWorkspaceMember)
6360
6407
  });
6361
6408
 
6362
6409
  // src/api/dto/bff/app-bootstrap-data.ts
6363
- var DTOAppBootstrapDataQuery = z224.object({
6364
- preferredWorkspaceId: z224.string().optional(),
6365
- preferredDesignSystemId: z224.string().optional(),
6366
- preferredVersionId: z224.string().optional(),
6367
- preferredBrandId: z224.string().optional()
6410
+ var DTOAppBootstrapDataQuery = z225.object({
6411
+ preferredWorkspaceId: z225.string().optional(),
6412
+ preferredDesignSystemId: z225.string().optional(),
6413
+ preferredVersionId: z225.string().optional(),
6414
+ preferredBrandId: z225.string().optional()
6368
6415
  });
6369
- var DTOAppBootstrapDataResponse = z224.object({
6416
+ var DTOAppBootstrapDataResponse = z225.object({
6370
6417
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
6371
6418
  designSystem: DTODesignSystem.optional(),
6372
6419
  version: DTODesignSystemVersion.optional(),
@@ -6374,95 +6421,95 @@ var DTOAppBootstrapDataResponse = z224.object({
6374
6421
  });
6375
6422
 
6376
6423
  // src/api/dto/collections/token-collection.ts
6377
- import { z as z225 } from "zod";
6378
- var DTOTokenCollection = z225.object({
6379
- id: z225.string(),
6380
- persistentId: z225.string(),
6381
- designSystemVersionId: z225.string(),
6424
+ import { z as z226 } from "zod";
6425
+ var DTOTokenCollection = z226.object({
6426
+ id: z226.string(),
6427
+ persistentId: z226.string(),
6428
+ designSystemVersionId: z226.string(),
6382
6429
  meta: ObjectMeta,
6383
6430
  backgroundColor: ColorTokenInlineData.optional(),
6384
- elementPropertyOptionId: z225.string(),
6385
- createdAt: z225.coerce.date(),
6386
- updatedAt: z225.coerce.date(),
6431
+ elementPropertyOptionId: z226.string(),
6432
+ createdAt: z226.coerce.date(),
6433
+ updatedAt: z226.coerce.date(),
6387
6434
  origin: CollectionOrigin.optional()
6388
6435
  });
6389
- var DTOTokenCollectionsListReponse = z225.object({
6436
+ var DTOTokenCollectionsListReponse = z226.object({
6390
6437
  collections: DTOTokenCollection.array()
6391
6438
  });
6392
6439
 
6393
6440
  // src/api/dto/design-tokens/design-token.ts
6394
- import { z as z226 } from "zod";
6441
+ import { z as z227 } from "zod";
6395
6442
  var DTODesignToken = DesignTokenTypedData.and(
6396
- z226.object({
6397
- id: z226.string(),
6398
- persistentId: z226.string(),
6399
- designSystemVersionId: z226.string(),
6443
+ z227.object({
6444
+ id: z227.string(),
6445
+ persistentId: z227.string(),
6446
+ designSystemVersionId: z227.string(),
6400
6447
  meta: ObjectMeta,
6401
6448
  originStyle: DesignTokenOrigin.optional(),
6402
- brandId: z226.string(),
6403
- collectionId: z226.string().optional(),
6404
- updatedAt: z226.coerce.date()
6449
+ brandId: z227.string(),
6450
+ collectionId: z227.string().optional(),
6451
+ updatedAt: z227.coerce.date()
6405
6452
  })
6406
6453
  );
6407
- var DTODesignTokenListResponse = z226.object({
6454
+ var DTODesignTokenListResponse = z227.object({
6408
6455
  tokens: DTODesignToken.array()
6409
6456
  });
6410
- var DTODesignTokenResponse = z226.object({
6457
+ var DTODesignTokenResponse = z227.object({
6411
6458
  token: DTODesignToken
6412
6459
  });
6413
- var DTODesignTokenGroup = z226.object({
6414
- id: z226.string(),
6460
+ var DTODesignTokenGroup = z227.object({
6461
+ id: z227.string(),
6415
6462
  tokenType: DesignTokenType,
6416
- persistentId: z226.string(),
6417
- isRoot: z226.boolean(),
6418
- brandId: z226.string(),
6463
+ persistentId: z227.string(),
6464
+ isRoot: z227.boolean(),
6465
+ brandId: z227.string(),
6419
6466
  meta: ObjectMeta,
6420
- childrenIds: z226.string().array()
6467
+ childrenIds: z227.string().array()
6421
6468
  });
6422
- var DTODesignTokenGroupListResponse = z226.object({
6469
+ var DTODesignTokenGroupListResponse = z227.object({
6423
6470
  groups: DTODesignTokenGroup.array()
6424
6471
  });
6425
- var DTODesignTokenGroupResponse = z226.object({
6472
+ var DTODesignTokenGroupResponse = z227.object({
6426
6473
  group: DTODesignTokenGroup
6427
6474
  });
6428
6475
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6429
- z226.object({
6430
- persistentId: z226.string(),
6476
+ z227.object({
6477
+ persistentId: z227.string(),
6431
6478
  meta: ObjectMeta,
6432
- brandId: z226.string(),
6433
- groupPersistentId: z226.string().optional()
6479
+ brandId: z227.string(),
6480
+ groupPersistentId: z227.string().optional()
6434
6481
  })
6435
6482
  );
6436
- var DTODesignTokenGroupCreatePayload = z226.object({
6437
- persistentId: z226.string(),
6483
+ var DTODesignTokenGroupCreatePayload = z227.object({
6484
+ persistentId: z227.string(),
6438
6485
  meta: ObjectMeta,
6439
- brandId: z226.string(),
6440
- parentId: z226.string().optional(),
6486
+ brandId: z227.string(),
6487
+ parentId: z227.string().optional(),
6441
6488
  tokenType: DesignTokenType,
6442
- childrenIds: z226.string().array()
6489
+ childrenIds: z227.string().array()
6443
6490
  });
6444
6491
 
6445
6492
  // src/api/dto/documentation/anchor.ts
6446
- import { z as z227 } from "zod";
6493
+ import { z as z228 } from "zod";
6447
6494
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6448
- var DTOGetDocumentationPageAnchorsResponse = z227.object({
6449
- anchors: z227.array(DTODocumentationPageAnchor)
6495
+ var DTOGetDocumentationPageAnchorsResponse = z228.object({
6496
+ anchors: z228.array(DTODocumentationPageAnchor)
6450
6497
  });
6451
6498
 
6452
6499
  // src/api/dto/documentation/approvals.ts
6453
- import { z as z228 } from "zod";
6454
- var DTODocumentationPageApprovalState = z228.object({
6500
+ import { z as z229 } from "zod";
6501
+ var DTODocumentationPageApprovalState = z229.object({
6455
6502
  approvalState: DocumentationPageApprovalState,
6456
- pagePersistentId: z228.string(),
6457
- updatedByUserId: z228.string(),
6458
- designSystemVersionId: z228.string(),
6459
- updatedAt: z228.coerce.date(),
6460
- createdAt: z228.coerce.date()
6461
- });
6462
- var DTODocumentationGroupApprovalState = z228.object({
6463
- persistentId: z228.string(),
6464
- groupPersistentId: z228.string(),
6465
- designSystemVersionId: z228.string(),
6503
+ pagePersistentId: z229.string(),
6504
+ updatedByUserId: z229.string(),
6505
+ designSystemVersionId: z229.string(),
6506
+ updatedAt: z229.coerce.date(),
6507
+ createdAt: z229.coerce.date()
6508
+ });
6509
+ var DTODocumentationGroupApprovalState = z229.object({
6510
+ persistentId: z229.string(),
6511
+ groupPersistentId: z229.string(),
6512
+ designSystemVersionId: z229.string(),
6466
6513
  approvalState: DocumentationPageApprovalState
6467
6514
  });
6468
6515
 
@@ -6470,68 +6517,68 @@ var DTODocumentationGroupApprovalState = z228.object({
6470
6517
  var DTOPageBlockItemV2 = PageBlockItemV2;
6471
6518
 
6472
6519
  // src/api/dto/documentation/documentation-page-snapshot.ts
6473
- import { z as z233 } from "zod";
6520
+ import { z as z234 } from "zod";
6474
6521
 
6475
6522
  // src/api/dto/elements/documentation/page-v2.ts
6476
- import { z as z232 } from "zod";
6523
+ import { z as z233 } from "zod";
6477
6524
 
6478
6525
  // src/api/dto/elements/documentation/draft-state.ts
6479
- import { z as z230 } from "zod";
6526
+ import { z as z231 } from "zod";
6480
6527
 
6481
6528
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6482
- import { z as z229 } from "zod";
6529
+ import { z as z230 } from "zod";
6483
6530
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6484
- var DTODocumentationItemConfigurationV2 = z229.object({
6485
- showSidebar: z229.boolean(),
6486
- isPrivate: z229.boolean(),
6487
- isHidden: z229.boolean(),
6531
+ var DTODocumentationItemConfigurationV2 = z230.object({
6532
+ showSidebar: z230.boolean(),
6533
+ isPrivate: z230.boolean(),
6534
+ isHidden: z230.boolean(),
6488
6535
  header: DTODocumentationItemHeaderV2
6489
6536
  });
6490
6537
 
6491
6538
  // src/api/dto/elements/documentation/draft-state.ts
6492
- var DTODocumentationDraftChangeType = z230.enum(["Created", "Updated", "Deleted"]);
6493
- var DTODocumentationDraftStateCreated = z230.object({
6494
- changeType: z230.literal(DTODocumentationDraftChangeType.enum.Created)
6495
- });
6496
- var DTODocumentationDraftStateUpdated = z230.object({
6497
- changeType: z230.literal(DTODocumentationDraftChangeType.enum.Updated),
6498
- changes: z230.object({
6499
- previousTitle: z230.string().optional(),
6539
+ var DTODocumentationDraftChangeType = z231.enum(["Created", "Updated", "Deleted"]);
6540
+ var DTODocumentationDraftStateCreated = z231.object({
6541
+ changeType: z231.literal(DTODocumentationDraftChangeType.enum.Created)
6542
+ });
6543
+ var DTODocumentationDraftStateUpdated = z231.object({
6544
+ changeType: z231.literal(DTODocumentationDraftChangeType.enum.Updated),
6545
+ changes: z231.object({
6546
+ previousTitle: z231.string().optional(),
6500
6547
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6501
- previousContentHash: z230.string().optional()
6548
+ previousContentHash: z231.string().optional()
6502
6549
  })
6503
6550
  });
6504
- var DTODocumentationDraftStateDeleted = z230.object({
6505
- changeType: z230.literal(DTODocumentationDraftChangeType.enum.Deleted),
6506
- deletedAt: z230.coerce.date(),
6507
- deletedByUserId: z230.string()
6551
+ var DTODocumentationDraftStateDeleted = z231.object({
6552
+ changeType: z231.literal(DTODocumentationDraftChangeType.enum.Deleted),
6553
+ deletedAt: z231.coerce.date(),
6554
+ deletedByUserId: z231.string()
6508
6555
  });
6509
- var DTODocumentationDraftState = z230.discriminatedUnion("changeType", [
6556
+ var DTODocumentationDraftState = z231.discriminatedUnion("changeType", [
6510
6557
  DTODocumentationDraftStateCreated,
6511
6558
  DTODocumentationDraftStateUpdated,
6512
6559
  DTODocumentationDraftStateDeleted
6513
6560
  ]);
6514
6561
 
6515
6562
  // src/api/dto/elements/documentation/metadata.ts
6516
- import { z as z231 } from "zod";
6517
- var DTODocumentationPublishMetadata = z231.object({
6518
- lastPublishedByUserId: z231.string(),
6519
- lastPublishedAt: z231.coerce.date()
6563
+ import { z as z232 } from "zod";
6564
+ var DTODocumentationPublishMetadata = z232.object({
6565
+ lastPublishedByUserId: z232.string(),
6566
+ lastPublishedAt: z232.coerce.date()
6520
6567
  });
6521
6568
 
6522
6569
  // src/api/dto/elements/documentation/page-v2.ts
6523
- var DTODocumentationPageV2 = z232.object({
6524
- id: z232.string(),
6525
- persistentId: z232.string(),
6526
- designSystemVersionId: z232.string(),
6527
- title: z232.string(),
6570
+ var DTODocumentationPageV2 = z233.object({
6571
+ id: z233.string(),
6572
+ persistentId: z233.string(),
6573
+ designSystemVersionId: z233.string(),
6574
+ title: z233.string(),
6528
6575
  configuration: DTODocumentationItemConfigurationV2,
6529
- shortPersistentId: z232.string(),
6530
- slug: z232.string().optional(),
6531
- userSlug: z232.string().optional(),
6532
- createdAt: z232.coerce.date(),
6533
- updatedAt: z232.coerce.date(),
6534
- path: z232.string(),
6576
+ shortPersistentId: z233.string(),
6577
+ slug: z233.string().optional(),
6578
+ userSlug: z233.string().optional(),
6579
+ createdAt: z233.coerce.date(),
6580
+ updatedAt: z233.coerce.date(),
6581
+ path: z233.string(),
6535
6582
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6536
6583
  draftState: DTODocumentationDraftState.optional(),
6537
6584
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -6539,266 +6586,266 @@ var DTODocumentationPageV2 = z232.object({
6539
6586
  /** Defines the approval state of the documentation page */
6540
6587
  approvalState: DTODocumentationPageApprovalState.optional(),
6541
6588
  /** Id of the page document room */
6542
- liveblocksRoomId: z232.string().optional(),
6589
+ liveblocksRoomId: z233.string().optional(),
6543
6590
  // Backward compatibility
6544
- type: z232.literal("Page")
6591
+ type: z233.literal("Page")
6545
6592
  });
6546
- var DTOCreateDocumentationPageInputV2 = z232.object({
6593
+ var DTOCreateDocumentationPageInputV2 = z233.object({
6547
6594
  // Identifier
6548
- persistentId: z232.string(),
6595
+ persistentId: z233.string(),
6549
6596
  // Page properties
6550
- title: z232.string(),
6597
+ title: z233.string(),
6551
6598
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6552
6599
  // Page placement properties
6553
- parentPersistentId: z232.string(),
6554
- afterPersistentId: z232.string().nullish()
6600
+ parentPersistentId: z233.string(),
6601
+ afterPersistentId: z233.string().nullish()
6555
6602
  });
6556
- var DTOUpdateDocumentationPageInputV2 = z232.object({
6603
+ var DTOUpdateDocumentationPageInputV2 = z233.object({
6557
6604
  // Identifier of the page to update
6558
- id: z232.string(),
6605
+ id: z233.string(),
6559
6606
  // Page properties
6560
- title: z232.string().optional(),
6607
+ title: z233.string().optional(),
6561
6608
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6562
6609
  });
6563
- var DTOUpdateDocumentationPageDocumentInputV2 = z232.object({
6610
+ var DTOUpdateDocumentationPageDocumentInputV2 = z233.object({
6564
6611
  // Identifier of the page to update
6565
- id: z232.string(),
6612
+ id: z233.string(),
6566
6613
  // Page properties
6567
- documentItems: z232.array(DocumentationPageContentItem)
6614
+ documentItems: z233.array(DocumentationPageContentItem)
6568
6615
  });
6569
- var DTOMoveDocumentationPageInputV2 = z232.object({
6616
+ var DTOMoveDocumentationPageInputV2 = z233.object({
6570
6617
  // Identifier of the group to update
6571
- id: z232.string(),
6618
+ id: z233.string(),
6572
6619
  // Page placement properties
6573
- parentPersistentId: z232.string(),
6574
- afterPersistentId: z232.string().nullish()
6620
+ parentPersistentId: z233.string(),
6621
+ afterPersistentId: z233.string().nullish()
6575
6622
  });
6576
- var DTODuplicateDocumentationPageInputV2 = z232.object({
6623
+ var DTODuplicateDocumentationPageInputV2 = z233.object({
6577
6624
  // Identifier of the page to duplicate from
6578
- id: z232.string(),
6625
+ id: z233.string(),
6579
6626
  // New page persistent id
6580
- persistentId: z232.string(),
6627
+ persistentId: z233.string(),
6581
6628
  // Page placement properties
6582
- parentPersistentId: z232.string(),
6583
- afterPersistentId: z232.string().nullish()
6629
+ parentPersistentId: z233.string(),
6630
+ afterPersistentId: z233.string().nullish()
6584
6631
  });
6585
- var DTODeleteDocumentationPageInputV2 = z232.object({
6632
+ var DTODeleteDocumentationPageInputV2 = z233.object({
6586
6633
  // Identifier
6587
- id: z232.string()
6634
+ id: z233.string()
6588
6635
  });
6589
- var DTORestoreDocumentationPageInput = z232.object({
6590
- persistentId: z232.string(),
6591
- snapshotId: z232.string().optional()
6636
+ var DTORestoreDocumentationPageInput = z233.object({
6637
+ persistentId: z233.string(),
6638
+ snapshotId: z233.string().optional()
6592
6639
  });
6593
- var DTORestoreDocumentationGroupInput = z232.object({
6594
- persistentId: z232.string(),
6595
- snapshotId: z232.string().optional()
6640
+ var DTORestoreDocumentationGroupInput = z233.object({
6641
+ persistentId: z233.string(),
6642
+ snapshotId: z233.string().optional()
6596
6643
  });
6597
- var DTODocumentationPageApprovalStateChangeInput = z232.object({
6598
- persistentId: z232.string(),
6644
+ var DTODocumentationPageApprovalStateChangeInput = z233.object({
6645
+ persistentId: z233.string(),
6599
6646
  approvalState: DocumentationPageApprovalState.optional()
6600
6647
  });
6601
6648
 
6602
6649
  // src/api/dto/documentation/documentation-page-snapshot.ts
6603
- var DTODocumentationPageSnapshot = z233.object({
6604
- id: z233.string(),
6605
- designSystemVersionId: z233.string(),
6606
- createdAt: z233.string(),
6607
- updatedAt: z233.string(),
6650
+ var DTODocumentationPageSnapshot = z234.object({
6651
+ id: z234.string(),
6652
+ designSystemVersionId: z234.string(),
6653
+ createdAt: z234.string(),
6654
+ updatedAt: z234.string(),
6608
6655
  documentationPage: DTODocumentationPageV2,
6609
- pageContentHash: z233.string(),
6656
+ pageContentHash: z234.string(),
6610
6657
  reason: DesignElementSnapshotReason
6611
6658
  });
6612
6659
 
6613
6660
  // src/api/dto/documentation/link-preview.ts
6614
- import { z as z234 } from "zod";
6615
- var DTODocumentationLinkPreviewResponse = z234.object({
6661
+ import { z as z235 } from "zod";
6662
+ var DTODocumentationLinkPreviewResponse = z235.object({
6616
6663
  linkPreview: DocumentationLinkPreview
6617
6664
  });
6618
- var DTODocumentationLinkPreviewRequest = z234.object({
6619
- url: z234.string().optional(),
6620
- documentationItemPersistentId: z234.string().optional()
6665
+ var DTODocumentationLinkPreviewRequest = z235.object({
6666
+ url: z235.string().optional(),
6667
+ documentationItemPersistentId: z235.string().optional()
6621
6668
  });
6622
6669
 
6623
6670
  // src/api/dto/documentation/publish.ts
6624
- import { z as z238 } from "zod";
6671
+ import { z as z239 } from "zod";
6625
6672
 
6626
6673
  // src/api/dto/export/exporter.ts
6627
- import { z as z235 } from "zod";
6628
- var DTOExporterType = z235.enum(["documentation", "code"]);
6629
- var DTOExporterSource = z235.enum(["git", "upload"]);
6630
- var DTOExporterMembershipRole = z235.enum(["Owner", "OwnerArchived", "User"]);
6631
- var DTOExporterListQuery = z235.object({
6632
- limit: z235.coerce.number().optional(),
6633
- offset: z235.coerce.number().optional(),
6674
+ import { z as z236 } from "zod";
6675
+ var DTOExporterType = z236.enum(["documentation", "code"]);
6676
+ var DTOExporterSource = z236.enum(["git", "upload"]);
6677
+ var DTOExporterMembershipRole = z236.enum(["Owner", "OwnerArchived", "User"]);
6678
+ var DTOExporterListQuery = z236.object({
6679
+ limit: z236.coerce.number().optional(),
6680
+ offset: z236.coerce.number().optional(),
6634
6681
  type: DTOExporterType.optional(),
6635
- search: z235.string().optional()
6682
+ search: z236.string().optional()
6636
6683
  });
6637
- var DTOExporter = z235.object({
6638
- id: z235.string(),
6639
- name: z235.string(),
6640
- isPrivate: z235.boolean(),
6684
+ var DTOExporter = z236.object({
6685
+ id: z236.string(),
6686
+ name: z236.string(),
6687
+ isPrivate: z236.boolean(),
6641
6688
  exporterType: DTOExporterType,
6642
- isDefaultDocumentationExporter: z235.boolean(),
6643
- iconURL: z235.string().optional(),
6689
+ isDefaultDocumentationExporter: z236.boolean(),
6690
+ iconURL: z236.string().optional(),
6644
6691
  configurationProperties: PulsarContributionConfigurationProperty.array(),
6645
6692
  properties: DTOExporterPropertyDefinition.array().optional(),
6646
6693
  customBlocks: PulsarCustomBlock.array(),
6647
- blockVariants: z235.record(z235.string(), PulsarContributionVariant.array()),
6648
- homepage: z235.string().optional(),
6649
- organization: z235.string().optional(),
6650
- packageId: z235.string().optional(),
6651
- tags: z235.array(z235.string()),
6652
- author: z235.string().optional(),
6653
- version: z235.string(),
6654
- description: z235.string(),
6655
- usesLocale: z235.boolean(),
6656
- usesBrands: z235.boolean(),
6657
- usesThemes: z235.boolean(),
6658
- readme: z235.string().optional(),
6659
- routingVersion: z235.string().optional(),
6694
+ blockVariants: z236.record(z236.string(), PulsarContributionVariant.array()),
6695
+ homepage: z236.string().optional(),
6696
+ organization: z236.string().optional(),
6697
+ packageId: z236.string().optional(),
6698
+ tags: z236.array(z236.string()),
6699
+ author: z236.string().optional(),
6700
+ version: z236.string(),
6701
+ description: z236.string(),
6702
+ usesLocale: z236.boolean(),
6703
+ usesBrands: z236.boolean(),
6704
+ usesThemes: z236.boolean(),
6705
+ readme: z236.string().optional(),
6706
+ routingVersion: z236.string().optional(),
6660
6707
  source: DTOExporterSource,
6661
- gitProvider: z235.string().optional(),
6662
- gitUrl: nullishToOptional(z235.string()),
6663
- gitBranch: nullishToOptional(z235.string()),
6664
- gitDirectory: nullishToOptional(z235.string()),
6665
- isDeprecated: z235.boolean(),
6666
- deprecationNote: z235.string().optional(),
6667
- replacementExporterId: z235.string().optional()
6668
- });
6669
- var DTOExporterMembership = z235.object({
6670
- workspaceId: z235.string(),
6671
- exporterId: z235.string(),
6708
+ gitProvider: z236.string().optional(),
6709
+ gitUrl: nullishToOptional(z236.string()),
6710
+ gitBranch: nullishToOptional(z236.string()),
6711
+ gitDirectory: nullishToOptional(z236.string()),
6712
+ isDeprecated: z236.boolean(),
6713
+ deprecationNote: z236.string().optional(),
6714
+ replacementExporterId: z236.string().optional()
6715
+ });
6716
+ var DTOExporterMembership = z236.object({
6717
+ workspaceId: z236.string(),
6718
+ exporterId: z236.string(),
6672
6719
  role: DTOExporterMembershipRole
6673
6720
  });
6674
- var DTOExporterResponse = z235.object({
6721
+ var DTOExporterResponse = z236.object({
6675
6722
  exporter: DTOExporter,
6676
6723
  membership: DTOExporterMembership
6677
6724
  });
6678
- var DTOExporterListResponse = z235.object({
6725
+ var DTOExporterListResponse = z236.object({
6679
6726
  exporters: DTOExporter.array(),
6680
6727
  membership: DTOExporterMembership.array(),
6681
- total: z235.number()
6728
+ total: z236.number()
6682
6729
  });
6683
- var DTOExporterGitProviderEnum = z235.enum(["github", "gitlab", "bitbucket", "azure"]);
6684
- var DTOExporterCreateInput = z235.object({
6685
- url: z235.string(),
6730
+ var DTOExporterGitProviderEnum = z236.enum(["github", "gitlab", "bitbucket", "azure"]);
6731
+ var DTOExporterCreateInput = z236.object({
6732
+ url: z236.string(),
6686
6733
  provider: DTOExporterGitProviderEnum
6687
6734
  });
6688
- var DTOExporterUpdateInput = z235.object({
6689
- url: z235.string().optional()
6735
+ var DTOExporterUpdateInput = z236.object({
6736
+ url: z236.string().optional()
6690
6737
  });
6691
- var DTOExporterDeprecationInput = z235.object({
6692
- isDeprecated: z235.boolean(),
6693
- deprecationNote: z235.string().optional(),
6694
- replacementExporterId: z235.string().optional()
6738
+ var DTOExporterDeprecationInput = z236.object({
6739
+ isDeprecated: z236.boolean(),
6740
+ deprecationNote: z236.string().optional(),
6741
+ replacementExporterId: z236.string().optional()
6695
6742
  });
6696
6743
 
6697
6744
  // src/api/dto/export/filter.ts
6698
6745
  var DTOExportJobsListFilter = ExportJobFindByFilter;
6699
6746
 
6700
6747
  // src/api/dto/export/job.ts
6701
- import { z as z236 } from "zod";
6702
- var DTOExportJobCreatedBy = z236.object({
6703
- userId: z236.string(),
6704
- userName: z236.string()
6748
+ import { z as z237 } from "zod";
6749
+ var DTOExportJobCreatedBy = z237.object({
6750
+ userId: z237.string(),
6751
+ userName: z237.string()
6705
6752
  });
6706
- var DTOExportJobDesignSystemPreview = z236.object({
6707
- id: z236.string(),
6753
+ var DTOExportJobDesignSystemPreview = z237.object({
6754
+ id: z237.string(),
6708
6755
  meta: ObjectMeta
6709
6756
  });
6710
- var DTOExportJobDesignSystemVersionPreview = z236.object({
6711
- id: z236.string(),
6757
+ var DTOExportJobDesignSystemVersionPreview = z237.object({
6758
+ id: z237.string(),
6712
6759
  meta: ObjectMeta,
6713
- version: z236.string(),
6714
- isReadonly: z236.boolean()
6760
+ version: z237.string(),
6761
+ isReadonly: z237.boolean()
6715
6762
  });
6716
- var DTOExportJobDestinations = z236.object({
6763
+ var DTOExportJobDestinations = z237.object({
6717
6764
  s3: ExporterDestinationS3.optional(),
6718
6765
  azure: ExporterDestinationAzure.optional(),
6719
6766
  bitbucket: ExporterDestinationBitbucket.optional(),
6720
6767
  github: ExporterDestinationGithub.optional(),
6721
6768
  gitlab: ExporterDestinationGitlab.optional(),
6722
6769
  documentation: ExporterDestinationDocs.optional(),
6723
- webhookUrl: z236.string().optional()
6770
+ webhookUrl: z237.string().optional()
6724
6771
  });
6725
6772
  var DTOExportJobResult = ExportJobResult.omit({
6726
6773
  sndocs: true
6727
6774
  }).extend({
6728
6775
  documentation: ExportJobDocsDestinationResult.optional()
6729
6776
  });
6730
- var DTOExportJob = z236.object({
6731
- id: z236.string(),
6732
- createdAt: z236.coerce.date(),
6733
- finishedAt: z236.coerce.date().optional(),
6734
- index: z236.number().optional(),
6777
+ var DTOExportJob = z237.object({
6778
+ id: z237.string(),
6779
+ createdAt: z237.coerce.date(),
6780
+ finishedAt: z237.coerce.date().optional(),
6781
+ index: z237.number().optional(),
6735
6782
  status: ExportJobStatus,
6736
- estimatedExecutionTime: z236.number().optional(),
6783
+ estimatedExecutionTime: z237.number().optional(),
6737
6784
  createdBy: DTOExportJobCreatedBy.optional(),
6738
6785
  designSystem: DTOExportJobDesignSystemPreview,
6739
6786
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
6740
6787
  destinations: DTOExportJobDestinations,
6741
- exporterId: z236.string(),
6742
- scheduleId: z236.string().optional(),
6788
+ exporterId: z237.string(),
6789
+ scheduleId: z237.string().optional(),
6743
6790
  result: DTOExportJobResult.optional(),
6744
- brandPersistentId: z236.string().optional(),
6745
- themePersistentId: z236.string().optional(),
6746
- themePersistentIds: z236.string().array().optional(),
6791
+ brandPersistentId: z237.string().optional(),
6792
+ themePersistentId: z237.string().optional(),
6793
+ themePersistentIds: z237.string().array().optional(),
6747
6794
  exporterPropertyValues: DTOExporterPropertyValueMap.optional()
6748
6795
  });
6749
- var DTOExportJobResponse = z236.object({
6796
+ var DTOExportJobResponse = z237.object({
6750
6797
  job: DTOExportJob
6751
6798
  });
6752
- var DTOExportJobResponseLegacy = z236.object({
6753
- job: z236.object({
6754
- id: z236.string(),
6799
+ var DTOExportJobResponseLegacy = z237.object({
6800
+ job: z237.object({
6801
+ id: z237.string(),
6755
6802
  status: ExportJobStatus
6756
6803
  })
6757
6804
  });
6758
- var DTOExportJobCreateInput = z236.object({
6759
- designSystemId: z236.string(),
6760
- designSystemVersionId: z236.string(),
6761
- exporterId: z236.string(),
6762
- brandId: z236.string().optional(),
6763
- themeId: z236.string().optional(),
6764
- themePersistentIds: z236.string().array().optional(),
6805
+ var DTOExportJobCreateInput = z237.object({
6806
+ designSystemId: z237.string(),
6807
+ designSystemVersionId: z237.string(),
6808
+ exporterId: z237.string(),
6809
+ brandId: z237.string().optional(),
6810
+ themeId: z237.string().optional(),
6811
+ themePersistentIds: z237.string().array().optional(),
6765
6812
  destinations: DTOExportJobDestinations,
6766
6813
  exporterPropertyValues: DTOExporterPropertyValueMap.optional()
6767
6814
  });
6768
6815
 
6769
6816
  // src/api/dto/export/pipeline.ts
6770
- import { z as z237 } from "zod";
6771
- var DTOPipelineListQuery = z237.object({
6772
- designSystemId: z237.string().optional(),
6773
- exporterId: z237.string().optional(),
6774
- latestJobsLimit: z237.coerce.number().optional()
6775
- });
6776
- var DTOPipeline = z237.object({
6777
- id: z237.string(),
6778
- name: z237.string(),
6817
+ import { z as z238 } from "zod";
6818
+ var DTOPipelineListQuery = z238.object({
6819
+ designSystemId: z238.string().optional(),
6820
+ exporterId: z238.string().optional(),
6821
+ latestJobsLimit: z238.coerce.number().optional()
6822
+ });
6823
+ var DTOPipeline = z238.object({
6824
+ id: z238.string(),
6825
+ name: z238.string(),
6779
6826
  eventType: PipelineEventType,
6780
- isEnabled: z237.boolean(),
6781
- workspaceId: z237.string(),
6782
- designSystemId: z237.string(),
6783
- exporterId: z237.string(),
6784
- brandPersistentId: z237.string().optional(),
6785
- themePersistentId: z237.string().optional(),
6786
- themePersistentIds: z237.string().array().optional(),
6827
+ isEnabled: z238.boolean(),
6828
+ workspaceId: z238.string(),
6829
+ designSystemId: z238.string(),
6830
+ exporterId: z238.string(),
6831
+ brandPersistentId: z238.string().optional(),
6832
+ themePersistentId: z238.string().optional(),
6833
+ themePersistentIds: z238.string().array().optional(),
6787
6834
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6788
6835
  ...ExportDestinationsMap.shape,
6789
6836
  latestJobs: DTOExportJob.array(),
6790
- isExporterDeprecated: z237.boolean()
6837
+ isExporterDeprecated: z238.boolean()
6791
6838
  });
6792
- var DTOPipelineListResponse = z237.object({
6839
+ var DTOPipelineListResponse = z238.object({
6793
6840
  pipelines: DTOPipeline.array()
6794
6841
  });
6795
- var DTOPipelineResponse = z237.object({
6842
+ var DTOPipelineResponse = z238.object({
6796
6843
  pipeline: DTOPipeline
6797
6844
  });
6798
6845
 
6799
6846
  // src/api/dto/documentation/publish.ts
6800
6847
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6801
- var DTOPublishDocumentationRequest = z238.object({
6848
+ var DTOPublishDocumentationRequest = z239.object({
6802
6849
  environment: PublishedDocEnvironment,
6803
6850
  /**
6804
6851
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6806,66 +6853,66 @@ var DTOPublishDocumentationRequest = z238.object({
6806
6853
  */
6807
6854
  changes: DTOPublishDocumentationChanges.optional()
6808
6855
  });
6809
- var DTOPublishDocumentationResponse = z238.object({
6856
+ var DTOPublishDocumentationResponse = z239.object({
6810
6857
  job: DTOExportJob
6811
6858
  });
6812
6859
 
6813
6860
  // src/api/dto/documentation/room.ts
6814
- import { z as z239 } from "zod";
6815
- var DTODocumentationPageRoom = z239.object({
6816
- id: z239.string()
6861
+ import { z as z240 } from "zod";
6862
+ var DTODocumentationPageRoom = z240.object({
6863
+ id: z240.string()
6817
6864
  });
6818
- var DTODocumentationPageRoomResponse = z239.object({
6865
+ var DTODocumentationPageRoomResponse = z240.object({
6819
6866
  room: DTODocumentationPageRoom
6820
6867
  });
6821
6868
 
6822
6869
  // src/api/dto/elements/components/figma-component-group.ts
6823
- import z240 from "zod";
6824
- var DTOFigmaComponentGroup = z240.object({
6825
- id: z240.string(),
6826
- designSystemVersionId: z240.string(),
6827
- persistentId: z240.string(),
6828
- isRoot: z240.boolean(),
6829
- brandId: z240.string(),
6870
+ import z241 from "zod";
6871
+ var DTOFigmaComponentGroup = z241.object({
6872
+ id: z241.string(),
6873
+ designSystemVersionId: z241.string(),
6874
+ persistentId: z241.string(),
6875
+ isRoot: z241.boolean(),
6876
+ brandId: z241.string(),
6830
6877
  meta: DTOObjectMeta,
6831
- childrenIds: z240.string().array()
6878
+ childrenIds: z241.string().array()
6832
6879
  });
6833
- var DTOFigmaComponentGroupListResponse = z240.object({
6880
+ var DTOFigmaComponentGroupListResponse = z241.object({
6834
6881
  groups: DTOFigmaComponentGroup.array()
6835
6882
  });
6836
6883
 
6837
6884
  // src/api/dto/elements/components/figma-component.ts
6838
- import { z as z241 } from "zod";
6885
+ import { z as z242 } from "zod";
6839
6886
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6840
- var DTOFigmaComponentPropertyMap = z241.record(DTOFigmaComponentProperty);
6841
- var DTOFigmaComponent = z241.object({
6842
- id: z241.string(),
6843
- persistentId: z241.string(),
6844
- designSystemVersionId: z241.string(),
6845
- brandId: z241.string(),
6846
- thumbnailUrl: z241.string().optional(),
6847
- svgUrl: z241.string().optional(),
6848
- exportProperties: z241.object({
6849
- isAsset: z241.boolean()
6887
+ var DTOFigmaComponentPropertyMap = z242.record(DTOFigmaComponentProperty);
6888
+ var DTOFigmaComponent = z242.object({
6889
+ id: z242.string(),
6890
+ persistentId: z242.string(),
6891
+ designSystemVersionId: z242.string(),
6892
+ brandId: z242.string(),
6893
+ thumbnailUrl: z242.string().optional(),
6894
+ svgUrl: z242.string().optional(),
6895
+ exportProperties: z242.object({
6896
+ isAsset: z242.boolean()
6850
6897
  }),
6851
- createdAt: z241.coerce.date(),
6852
- updatedAt: z241.coerce.date(),
6898
+ createdAt: z242.coerce.date(),
6899
+ updatedAt: z242.coerce.date(),
6853
6900
  meta: ObjectMeta,
6854
6901
  originComponent: FigmaComponentOrigin.optional(),
6855
- parentComponentPersistentId: z241.string().optional(),
6856
- childrenPersistentIds: z241.string().array().optional(),
6902
+ parentComponentPersistentId: z242.string().optional(),
6903
+ childrenPersistentIds: z242.string().array().optional(),
6857
6904
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6858
- variantPropertyValues: z241.record(z241.string()).optional()
6905
+ variantPropertyValues: z242.record(z242.string()).optional()
6859
6906
  });
6860
- var DTOFigmaComponentListResponse = z241.object({
6907
+ var DTOFigmaComponentListResponse = z242.object({
6861
6908
  components: DTOFigmaComponent.array()
6862
6909
  });
6863
6910
 
6864
6911
  // src/api/dto/elements/documentation/group-action.ts
6865
- import { z as z243 } from "zod";
6912
+ import { z as z244 } from "zod";
6866
6913
 
6867
6914
  // src/api/dto/elements/documentation/group-v2.ts
6868
- import { z as z242 } from "zod";
6915
+ import { z as z243 } from "zod";
6869
6916
  var DTODocumentationGroupV2 = ElementGroup.omit({
6870
6917
  sortOrder: true,
6871
6918
  parentPersistentId: true,
@@ -6875,13 +6922,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6875
6922
  data: true,
6876
6923
  shortPersistentId: true
6877
6924
  }).extend({
6878
- title: z242.string(),
6879
- isRoot: z242.boolean(),
6880
- childrenIds: z242.array(z242.string()),
6925
+ title: z243.string(),
6926
+ isRoot: z243.boolean(),
6927
+ childrenIds: z243.array(z243.string()),
6881
6928
  groupBehavior: DocumentationGroupBehavior,
6882
- shortPersistentId: z242.string(),
6929
+ shortPersistentId: z243.string(),
6883
6930
  configuration: DTODocumentationItemConfigurationV2,
6884
- type: z242.literal("Group"),
6931
+ type: z243.literal("Group"),
6885
6932
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6886
6933
  draftState: DTODocumentationDraftState.optional(),
6887
6934
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6889,127 +6936,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6889
6936
  //** An approval state for frontend to utilize. */
6890
6937
  approvalState: DTODocumentationGroupApprovalState.optional()
6891
6938
  });
6892
- var DTOCreateDocumentationGroupInput = z242.object({
6939
+ var DTOCreateDocumentationGroupInput = z243.object({
6893
6940
  // Identifier
6894
- persistentId: z242.string(),
6941
+ persistentId: z243.string(),
6895
6942
  // Group properties
6896
- title: z242.string(),
6943
+ title: z243.string(),
6897
6944
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6898
6945
  // Group placement properties
6899
- afterPersistentId: z242.string().nullish(),
6900
- parentPersistentId: z242.string()
6946
+ afterPersistentId: z243.string().nullish(),
6947
+ parentPersistentId: z243.string()
6901
6948
  });
6902
- var DTOUpdateDocumentationGroupInput = z242.object({
6949
+ var DTOUpdateDocumentationGroupInput = z243.object({
6903
6950
  // Identifier of the group to update
6904
- id: z242.string(),
6951
+ id: z243.string(),
6905
6952
  // Group properties
6906
- title: z242.string().optional(),
6953
+ title: z243.string().optional(),
6907
6954
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6908
6955
  });
6909
- var DTOMoveDocumentationGroupInput = z242.object({
6956
+ var DTOMoveDocumentationGroupInput = z243.object({
6910
6957
  // Identifier of the group to update
6911
- id: z242.string(),
6958
+ id: z243.string(),
6912
6959
  // Group placement properties
6913
- parentPersistentId: z242.string(),
6914
- afterPersistentId: z242.string().nullish()
6960
+ parentPersistentId: z243.string(),
6961
+ afterPersistentId: z243.string().nullish()
6915
6962
  });
6916
- var DTODuplicateDocumentationGroupInput = z242.object({
6963
+ var DTODuplicateDocumentationGroupInput = z243.object({
6917
6964
  // Identifier of the group to duplicate from
6918
- id: z242.string(),
6965
+ id: z243.string(),
6919
6966
  // New group persistent id
6920
- persistentId: z242.string(),
6967
+ persistentId: z243.string(),
6921
6968
  // Group placement properties
6922
- afterPersistentId: z242.string().nullish(),
6923
- parentPersistentId: z242.string()
6969
+ afterPersistentId: z243.string().nullish(),
6970
+ parentPersistentId: z243.string()
6924
6971
  });
6925
- var DTOCreateDocumentationTabInput = z242.object({
6972
+ var DTOCreateDocumentationTabInput = z243.object({
6926
6973
  // New group persistent id
6927
- persistentId: z242.string(),
6974
+ persistentId: z243.string(),
6928
6975
  // If this is page, we will attempt to convert it to tab
6929
6976
  // If this is tab group, we will add a new tab to it
6930
- fromItemPersistentId: z242.string(),
6931
- tabName: z242.string()
6977
+ fromItemPersistentId: z243.string(),
6978
+ tabName: z243.string()
6932
6979
  });
6933
- var DTODeleteDocumentationTabGroupInput = z242.object({
6980
+ var DTODeleteDocumentationTabGroupInput = z243.object({
6934
6981
  // Deleted group id
6935
- id: z242.string()
6982
+ id: z243.string()
6936
6983
  });
6937
- var DTODeleteDocumentationGroupInput = z242.object({
6984
+ var DTODeleteDocumentationGroupInput = z243.object({
6938
6985
  // Identifier
6939
- id: z242.string(),
6986
+ id: z243.string(),
6940
6987
  // Deletion options
6941
- deleteSubtree: z242.boolean().default(false)
6988
+ deleteSubtree: z243.boolean().default(false)
6942
6989
  });
6943
6990
 
6944
6991
  // src/api/dto/elements/documentation/group-action.ts
6945
- var SuccessPayload = z243.object({
6946
- success: z243.literal(true)
6992
+ var SuccessPayload = z244.object({
6993
+ success: z244.literal(true)
6947
6994
  });
6948
- var DTODocumentationGroupCreateActionOutputV2 = z243.object({
6949
- type: z243.literal("DocumentationGroupCreate"),
6995
+ var DTODocumentationGroupCreateActionOutputV2 = z244.object({
6996
+ type: z244.literal("DocumentationGroupCreate"),
6950
6997
  output: SuccessPayload
6951
6998
  });
6952
- var DTODocumentationTabCreateActionOutputV2 = z243.object({
6953
- type: z243.literal("DocumentationTabCreate"),
6999
+ var DTODocumentationTabCreateActionOutputV2 = z244.object({
7000
+ type: z244.literal("DocumentationTabCreate"),
6954
7001
  output: SuccessPayload
6955
7002
  });
6956
- var DTODocumentationGroupUpdateActionOutputV2 = z243.object({
6957
- type: z243.literal("DocumentationGroupUpdate"),
7003
+ var DTODocumentationGroupUpdateActionOutputV2 = z244.object({
7004
+ type: z244.literal("DocumentationGroupUpdate"),
6958
7005
  output: SuccessPayload
6959
7006
  });
6960
- var DTODocumentationGroupMoveActionOutputV2 = z243.object({
6961
- type: z243.literal("DocumentationGroupMove"),
7007
+ var DTODocumentationGroupMoveActionOutputV2 = z244.object({
7008
+ type: z244.literal("DocumentationGroupMove"),
6962
7009
  output: SuccessPayload
6963
7010
  });
6964
- var DTODocumentationGroupDuplicateActionOutputV2 = z243.object({
6965
- type: z243.literal("DocumentationGroupDuplicate"),
7011
+ var DTODocumentationGroupDuplicateActionOutputV2 = z244.object({
7012
+ type: z244.literal("DocumentationGroupDuplicate"),
6966
7013
  output: SuccessPayload
6967
7014
  });
6968
- var DTODocumentationGroupDeleteActionOutputV2 = z243.object({
6969
- type: z243.literal("DocumentationGroupDelete"),
7015
+ var DTODocumentationGroupDeleteActionOutputV2 = z244.object({
7016
+ type: z244.literal("DocumentationGroupDelete"),
6970
7017
  output: SuccessPayload
6971
7018
  });
6972
- var DTODocumentationTabGroupDeleteActionOutputV2 = z243.object({
6973
- type: z243.literal("DocumentationTabGroupDelete"),
7019
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z244.object({
7020
+ type: z244.literal("DocumentationTabGroupDelete"),
6974
7021
  output: SuccessPayload
6975
7022
  });
6976
- var DTODocumentationGroupCreateActionInputV2 = z243.object({
6977
- type: z243.literal("DocumentationGroupCreate"),
7023
+ var DTODocumentationGroupCreateActionInputV2 = z244.object({
7024
+ type: z244.literal("DocumentationGroupCreate"),
6978
7025
  input: DTOCreateDocumentationGroupInput
6979
7026
  });
6980
- var DTODocumentationTabCreateActionInputV2 = z243.object({
6981
- type: z243.literal("DocumentationTabCreate"),
7027
+ var DTODocumentationTabCreateActionInputV2 = z244.object({
7028
+ type: z244.literal("DocumentationTabCreate"),
6982
7029
  input: DTOCreateDocumentationTabInput
6983
7030
  });
6984
- var DTODocumentationGroupUpdateActionInputV2 = z243.object({
6985
- type: z243.literal("DocumentationGroupUpdate"),
7031
+ var DTODocumentationGroupUpdateActionInputV2 = z244.object({
7032
+ type: z244.literal("DocumentationGroupUpdate"),
6986
7033
  input: DTOUpdateDocumentationGroupInput
6987
7034
  });
6988
- var DTODocumentationGroupMoveActionInputV2 = z243.object({
6989
- type: z243.literal("DocumentationGroupMove"),
7035
+ var DTODocumentationGroupMoveActionInputV2 = z244.object({
7036
+ type: z244.literal("DocumentationGroupMove"),
6990
7037
  input: DTOMoveDocumentationGroupInput
6991
7038
  });
6992
- var DTODocumentationGroupDuplicateActionInputV2 = z243.object({
6993
- type: z243.literal("DocumentationGroupDuplicate"),
7039
+ var DTODocumentationGroupDuplicateActionInputV2 = z244.object({
7040
+ type: z244.literal("DocumentationGroupDuplicate"),
6994
7041
  input: DTODuplicateDocumentationGroupInput
6995
7042
  });
6996
- var DTODocumentationGroupDeleteActionInputV2 = z243.object({
6997
- type: z243.literal("DocumentationGroupDelete"),
7043
+ var DTODocumentationGroupDeleteActionInputV2 = z244.object({
7044
+ type: z244.literal("DocumentationGroupDelete"),
6998
7045
  input: DTODeleteDocumentationGroupInput
6999
7046
  });
7000
- var DTODocumentationTabGroupDeleteActionInputV2 = z243.object({
7001
- type: z243.literal("DocumentationTabGroupDelete"),
7047
+ var DTODocumentationTabGroupDeleteActionInputV2 = z244.object({
7048
+ type: z244.literal("DocumentationTabGroupDelete"),
7002
7049
  input: DTODeleteDocumentationTabGroupInput
7003
7050
  });
7004
7051
 
7005
7052
  // src/api/dto/elements/documentation/group-v1.ts
7006
- import { z as z245 } from "zod";
7053
+ import { z as z246 } from "zod";
7007
7054
 
7008
7055
  // src/api/dto/elements/documentation/item-configuration-v1.ts
7009
- import { z as z244 } from "zod";
7010
- var DocumentationColorV1 = z244.object({
7011
- aliasTo: z244.string().optional(),
7012
- value: z244.string().optional()
7056
+ import { z as z245 } from "zod";
7057
+ var DocumentationColorV1 = z245.object({
7058
+ aliasTo: z245.string().optional(),
7059
+ value: z245.string().optional()
7013
7060
  });
7014
7061
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7015
7062
  foregroundColor: true,
@@ -7018,10 +7065,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7018
7065
  foregroundColor: DocumentationColorV1.optional(),
7019
7066
  backgroundColor: DocumentationColorV1.optional()
7020
7067
  });
7021
- var DTODocumentationItemConfigurationV1 = z244.object({
7022
- showSidebar: z244.boolean(),
7023
- isPrivate: z244.boolean(),
7024
- isHidden: z244.boolean(),
7068
+ var DTODocumentationItemConfigurationV1 = z245.object({
7069
+ showSidebar: z245.boolean(),
7070
+ isPrivate: z245.boolean(),
7071
+ isHidden: z245.boolean(),
7025
7072
  header: DTODocumentationItemHeaderV1
7026
7073
  });
7027
7074
 
@@ -7035,123 +7082,123 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
7035
7082
  data: true,
7036
7083
  shortPersistentId: true
7037
7084
  }).extend({
7038
- title: z245.string(),
7039
- isRoot: z245.boolean(),
7040
- childrenIds: z245.array(z245.string()),
7085
+ title: z246.string(),
7086
+ isRoot: z246.boolean(),
7087
+ childrenIds: z246.array(z246.string()),
7041
7088
  groupBehavior: DocumentationGroupBehavior,
7042
- shortPersistentId: z245.string(),
7043
- type: z245.literal("Group")
7089
+ shortPersistentId: z246.string(),
7090
+ type: z246.literal("Group")
7044
7091
  });
7045
7092
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
7046
7093
  configuration: DTODocumentationItemConfigurationV1
7047
7094
  });
7048
7095
 
7049
7096
  // src/api/dto/elements/documentation/hierarchy.ts
7050
- import { z as z246 } from "zod";
7051
- var DTODocumentationHierarchyV2 = z246.object({
7052
- pages: z246.array(
7097
+ import { z as z247 } from "zod";
7098
+ var DTODocumentationHierarchyV2 = z247.object({
7099
+ pages: z247.array(
7053
7100
  DTODocumentationPageV2.extend({
7054
7101
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7055
7102
  draftState: DTODocumentationDraftState.optional()
7056
7103
  })
7057
7104
  ),
7058
- groups: z246.array(
7105
+ groups: z247.array(
7059
7106
  DTODocumentationGroupV2.extend({
7060
7107
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7061
7108
  draftState: DTODocumentationDraftState.optional()
7062
7109
  })
7063
7110
  ),
7064
7111
  /** True if the documentation was already published, false otherwise. */
7065
- hasPublishedDocumentationContent: z246.boolean()
7112
+ hasPublishedDocumentationContent: z247.boolean()
7066
7113
  });
7067
7114
 
7068
7115
  // src/api/dto/elements/documentation/page-actions-v2.ts
7069
- import { z as z247 } from "zod";
7070
- var SuccessPayload2 = z247.object({
7071
- success: z247.literal(true)
7116
+ import { z as z248 } from "zod";
7117
+ var SuccessPayload2 = z248.object({
7118
+ success: z248.literal(true)
7072
7119
  });
7073
- var DTODocumentationPageCreateActionOutputV2 = z247.object({
7074
- type: z247.literal("DocumentationPageCreate"),
7120
+ var DTODocumentationPageCreateActionOutputV2 = z248.object({
7121
+ type: z248.literal("DocumentationPageCreate"),
7075
7122
  output: SuccessPayload2
7076
7123
  });
7077
- var DTODocumentationPageUpdateActionOutputV2 = z247.object({
7078
- type: z247.literal("DocumentationPageUpdate"),
7124
+ var DTODocumentationPageUpdateActionOutputV2 = z248.object({
7125
+ type: z248.literal("DocumentationPageUpdate"),
7079
7126
  output: SuccessPayload2
7080
7127
  });
7081
- var DTODocumentationPageUpdateDocumentActionOutputV2 = z247.object({
7082
- type: z247.literal("DocumentationPageUpdateDocument"),
7128
+ var DTODocumentationPageUpdateDocumentActionOutputV2 = z248.object({
7129
+ type: z248.literal("DocumentationPageUpdateDocument"),
7083
7130
  output: SuccessPayload2
7084
7131
  });
7085
- var DTODocumentationPageMoveActionOutputV2 = z247.object({
7086
- type: z247.literal("DocumentationPageMove"),
7132
+ var DTODocumentationPageMoveActionOutputV2 = z248.object({
7133
+ type: z248.literal("DocumentationPageMove"),
7087
7134
  output: SuccessPayload2
7088
7135
  });
7089
- var DTODocumentationPageDuplicateActionOutputV2 = z247.object({
7090
- type: z247.literal("DocumentationPageDuplicate"),
7136
+ var DTODocumentationPageDuplicateActionOutputV2 = z248.object({
7137
+ type: z248.literal("DocumentationPageDuplicate"),
7091
7138
  output: SuccessPayload2
7092
7139
  });
7093
- var DTODocumentationPageDeleteActionOutputV2 = z247.object({
7094
- type: z247.literal("DocumentationPageDelete"),
7140
+ var DTODocumentationPageDeleteActionOutputV2 = z248.object({
7141
+ type: z248.literal("DocumentationPageDelete"),
7095
7142
  output: SuccessPayload2
7096
7143
  });
7097
- var DTODocumentationPageRestoreActionOutput = z247.object({
7098
- type: z247.literal("DocumentationPageRestore"),
7144
+ var DTODocumentationPageRestoreActionOutput = z248.object({
7145
+ type: z248.literal("DocumentationPageRestore"),
7099
7146
  output: SuccessPayload2
7100
7147
  });
7101
- var DTODocumentationGroupRestoreActionOutput = z247.object({
7102
- type: z247.literal("DocumentationGroupRestore"),
7148
+ var DTODocumentationGroupRestoreActionOutput = z248.object({
7149
+ type: z248.literal("DocumentationGroupRestore"),
7103
7150
  output: SuccessPayload2
7104
7151
  });
7105
- var DTODocumentationPageApprovalStateChangeActionOutput = z247.object({
7106
- type: z247.literal("DocumentationPageApprovalStateChange"),
7152
+ var DTODocumentationPageApprovalStateChangeActionOutput = z248.object({
7153
+ type: z248.literal("DocumentationPageApprovalStateChange"),
7107
7154
  output: SuccessPayload2
7108
7155
  });
7109
- var DTODocumentationPageCreateActionInputV2 = z247.object({
7110
- type: z247.literal("DocumentationPageCreate"),
7156
+ var DTODocumentationPageCreateActionInputV2 = z248.object({
7157
+ type: z248.literal("DocumentationPageCreate"),
7111
7158
  input: DTOCreateDocumentationPageInputV2
7112
7159
  });
7113
- var DTODocumentationPageUpdateActionInputV2 = z247.object({
7114
- type: z247.literal("DocumentationPageUpdate"),
7160
+ var DTODocumentationPageUpdateActionInputV2 = z248.object({
7161
+ type: z248.literal("DocumentationPageUpdate"),
7115
7162
  input: DTOUpdateDocumentationPageInputV2
7116
7163
  });
7117
- var DTODocumentationPageUpdateDocumentActionInputV2 = z247.object({
7118
- type: z247.literal("DocumentationPageUpdateDocument"),
7164
+ var DTODocumentationPageUpdateDocumentActionInputV2 = z248.object({
7165
+ type: z248.literal("DocumentationPageUpdateDocument"),
7119
7166
  input: DTOUpdateDocumentationPageDocumentInputV2
7120
7167
  });
7121
- var DTODocumentationPageMoveActionInputV2 = z247.object({
7122
- type: z247.literal("DocumentationPageMove"),
7168
+ var DTODocumentationPageMoveActionInputV2 = z248.object({
7169
+ type: z248.literal("DocumentationPageMove"),
7123
7170
  input: DTOMoveDocumentationPageInputV2
7124
7171
  });
7125
- var DTODocumentationPageDuplicateActionInputV2 = z247.object({
7126
- type: z247.literal("DocumentationPageDuplicate"),
7172
+ var DTODocumentationPageDuplicateActionInputV2 = z248.object({
7173
+ type: z248.literal("DocumentationPageDuplicate"),
7127
7174
  input: DTODuplicateDocumentationPageInputV2
7128
7175
  });
7129
- var DTODocumentationPageDeleteActionInputV2 = z247.object({
7130
- type: z247.literal("DocumentationPageDelete"),
7176
+ var DTODocumentationPageDeleteActionInputV2 = z248.object({
7177
+ type: z248.literal("DocumentationPageDelete"),
7131
7178
  input: DTODeleteDocumentationPageInputV2
7132
7179
  });
7133
- var DTODocumentationPageRestoreActionInput = z247.object({
7134
- type: z247.literal("DocumentationPageRestore"),
7180
+ var DTODocumentationPageRestoreActionInput = z248.object({
7181
+ type: z248.literal("DocumentationPageRestore"),
7135
7182
  input: DTORestoreDocumentationPageInput
7136
7183
  });
7137
- var DTODocumentationGroupRestoreActionInput = z247.object({
7138
- type: z247.literal("DocumentationGroupRestore"),
7184
+ var DTODocumentationGroupRestoreActionInput = z248.object({
7185
+ type: z248.literal("DocumentationGroupRestore"),
7139
7186
  input: DTORestoreDocumentationGroupInput
7140
7187
  });
7141
- var DTODocumentationPageApprovalStateChangeActionInput = z247.object({
7142
- type: z247.literal("DocumentationPageApprovalStateChange"),
7188
+ var DTODocumentationPageApprovalStateChangeActionInput = z248.object({
7189
+ type: z248.literal("DocumentationPageApprovalStateChange"),
7143
7190
  input: DTODocumentationPageApprovalStateChangeInput
7144
7191
  });
7145
7192
 
7146
7193
  // src/api/dto/elements/documentation/page-content.ts
7147
- import { z as z248 } from "zod";
7194
+ import { z as z249 } from "zod";
7148
7195
  var DTODocumentationPageContent = DocumentationPageContent;
7149
- var DTODocumentationPageContentGetResponse = z248.object({
7196
+ var DTODocumentationPageContentGetResponse = z249.object({
7150
7197
  pageContent: DTODocumentationPageContent
7151
7198
  });
7152
7199
 
7153
7200
  // src/api/dto/elements/documentation/page-v1.ts
7154
- import { z as z249 } from "zod";
7201
+ import { z as z250 } from "zod";
7155
7202
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
7156
7203
  data: true,
7157
7204
  meta: true,
@@ -7159,81 +7206,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
7159
7206
  sortOrder: true
7160
7207
  }).extend({
7161
7208
  configuration: DTODocumentationItemConfigurationV1,
7162
- blocks: z249.array(PageBlockV1),
7163
- title: z249.string(),
7164
- path: z249.string()
7209
+ blocks: z250.array(PageBlockV1),
7210
+ title: z250.string(),
7211
+ path: z250.string()
7165
7212
  });
7166
7213
 
7167
7214
  // src/api/dto/elements/documentation/settings.ts
7168
- import { z as z250 } from "zod";
7169
- var DTODocumentationSettings = z250.object({
7170
- isDraftFeatureAdopted: z250.boolean(),
7171
- isApprovalsFeatureEnabled: z250.boolean(),
7172
- isApprovalRequiredForPublishing: z250.boolean()
7215
+ import { z as z251 } from "zod";
7216
+ var DTODocumentationSettings = z251.object({
7217
+ isDraftFeatureAdopted: z251.boolean(),
7218
+ isApprovalsFeatureEnabled: z251.boolean(),
7219
+ isApprovalRequiredForPublishing: z251.boolean()
7173
7220
  });
7174
7221
 
7175
7222
  // src/api/dto/elements/documentation/structure.ts
7176
- import { z as z251 } from "zod";
7177
- var DTODocumentationStructureItemType = z251.enum(["Group", "Page"]);
7178
- var DTODocumentationStructureItemBase = z251.object({
7223
+ import { z as z252 } from "zod";
7224
+ var DTODocumentationStructureItemType = z252.enum(["Group", "Page"]);
7225
+ var DTODocumentationStructureItemBase = z252.object({
7179
7226
  type: DTODocumentationStructureItemType,
7180
- id: z251.string(),
7181
- designSystemVersionId: z251.string(),
7182
- shortPersistentId: z251.string(),
7183
- persistentId: z251.string(),
7184
- title: z251.string(),
7185
- createdAt: z251.coerce.date(),
7186
- updatedAt: z251.coerce.date()
7227
+ id: z252.string(),
7228
+ designSystemVersionId: z252.string(),
7229
+ shortPersistentId: z252.string(),
7230
+ persistentId: z252.string(),
7231
+ title: z252.string(),
7232
+ createdAt: z252.coerce.date(),
7233
+ updatedAt: z252.coerce.date()
7187
7234
  });
7188
7235
  var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
7189
- type: z251.literal(DTODocumentationStructureItemType.enum.Group),
7190
- groupBehavior: z251.string(),
7191
- childrenIds: z251.string().array(),
7192
- isRoot: z251.boolean()
7236
+ type: z252.literal(DTODocumentationStructureItemType.enum.Group),
7237
+ groupBehavior: z252.string(),
7238
+ childrenIds: z252.string().array(),
7239
+ isRoot: z252.boolean()
7193
7240
  });
7194
7241
  var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
7195
- type: z251.literal(DTODocumentationStructureItemType.enum.Page),
7196
- path: z251.string()
7242
+ type: z252.literal(DTODocumentationStructureItemType.enum.Page),
7243
+ path: z252.string()
7197
7244
  });
7198
- var DTODocumentationStructureItem = z251.discriminatedUnion("type", [
7245
+ var DTODocumentationStructureItem = z252.discriminatedUnion("type", [
7199
7246
  DTODocumentationStructureGroupItem,
7200
7247
  DTODocumentationStructurePageItem
7201
7248
  ]);
7202
- var DTODocumentationStructure = z251.object({
7203
- items: z251.array(DTODocumentationStructureItem)
7249
+ var DTODocumentationStructure = z252.object({
7250
+ items: z252.array(DTODocumentationStructureItem)
7204
7251
  });
7205
7252
 
7206
7253
  // src/api/dto/elements/figma-nodes/figma-node-structure.ts
7207
- import { z as z252 } from "zod";
7208
- var DTOFigmaNodeStructure = z252.object({
7209
- id: z252.string(),
7210
- sourceId: z252.string(),
7254
+ import { z as z253 } from "zod";
7255
+ var DTOFigmaNodeStructure = z253.object({
7256
+ id: z253.string(),
7257
+ sourceId: z253.string(),
7211
7258
  importState: FigmaNodeStructureStateV2,
7212
- createdAt: z252.coerce.date(),
7213
- updatedAt: z252.coerce.date()
7259
+ createdAt: z253.coerce.date(),
7260
+ updatedAt: z253.coerce.date()
7214
7261
  });
7215
7262
  var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
7216
7263
  rootNode: FigmaFileStructureNode
7217
7264
  });
7218
- var DTOFigmaNodeStructureListResponse = z252.object({
7265
+ var DTOFigmaNodeStructureListResponse = z253.object({
7219
7266
  structures: DTOFigmaNodeStructure.array()
7220
7267
  });
7221
- var DTOFigmaNodeStructureDetailResponse = z252.object({
7268
+ var DTOFigmaNodeStructureDetailResponse = z253.object({
7222
7269
  structure: DTOFigmaNodeStructureDetail
7223
7270
  });
7224
7271
 
7225
7272
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7226
- import { z as z254 } from "zod";
7273
+ import { z as z255 } from "zod";
7227
7274
 
7228
7275
  // src/api/dto/elements/figma-nodes/figma-node.ts
7229
- import { z as z253 } from "zod";
7276
+ import { z as z254 } from "zod";
7230
7277
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
7231
- var DTOFigmaNodeOrigin = z253.object({
7232
- sourceId: z253.string(),
7233
- fileId: z253.string().optional(),
7234
- parentName: z253.string().optional()
7278
+ var DTOFigmaNodeOrigin = z254.object({
7279
+ sourceId: z254.string(),
7280
+ fileId: z254.string().optional(),
7281
+ parentName: z254.string().optional()
7235
7282
  });
7236
- var DTOFigmaNodeRenderInputBase = z253.object({
7283
+ var DTOFigmaNodeRenderInputBase = z254.object({
7237
7284
  /**
7238
7285
  * Format in which the node must be rendered, png by default.
7239
7286
  */
@@ -7241,57 +7288,57 @@ var DTOFigmaNodeRenderInputBase = z253.object({
7241
7288
  /**
7242
7289
  * Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
7243
7290
  */
7244
- scale: z253.number().optional()
7291
+ scale: z254.number().optional()
7245
7292
  });
7246
7293
  var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
7247
- inputType: z253.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7294
+ inputType: z254.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7248
7295
  /**
7249
7296
  * Id of a design system's data source representing a linked Figma file
7250
7297
  */
7251
- sourceId: z253.string(),
7298
+ sourceId: z254.string(),
7252
7299
  /**
7253
7300
  * Id of a node within the Figma file
7254
7301
  */
7255
- figmaFileNodeId: z253.string()
7302
+ figmaFileNodeId: z254.string()
7256
7303
  });
7257
7304
  var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
7258
- inputType: z253.literal("URL"),
7305
+ inputType: z254.literal("URL"),
7259
7306
  /**
7260
7307
  * Id of a design system's data source representing a linked Figma file
7261
7308
  */
7262
- figmaNodeUrl: z253.string(),
7309
+ figmaNodeUrl: z254.string(),
7263
7310
  /**
7264
7311
  * Brand persistent id to use in case a source has to be created for this render
7265
7312
  */
7266
- brandPersistentId: z253.string()
7313
+ brandPersistentId: z254.string()
7267
7314
  });
7268
- var DTOFigmaNodeRerenderInput = z253.object({
7269
- inputType: z253.literal("Rerender"),
7315
+ var DTOFigmaNodeRerenderInput = z254.object({
7316
+ inputType: z254.literal("Rerender"),
7270
7317
  /**
7271
7318
  * Persistent ID of an existing Figma node
7272
7319
  */
7273
- figmaNodePersistentId: z253.string()
7320
+ figmaNodePersistentId: z254.string()
7274
7321
  });
7275
- var DTOFigmaNodeRenderInput = z253.discriminatedUnion("inputType", [
7322
+ var DTOFigmaNodeRenderInput = z254.discriminatedUnion("inputType", [
7276
7323
  DTOFigmaNodeRenderIdInput,
7277
7324
  DTOFigmaNodeRenderUrlInput,
7278
7325
  DTOFigmaNodeRerenderInput
7279
7326
  ]);
7280
7327
 
7281
7328
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7282
- var DTOFigmaNodeData = z254.object({
7329
+ var DTOFigmaNodeData = z255.object({
7283
7330
  // Id of the node in the Figma file
7284
- figmaNodeId: z254.string(),
7331
+ figmaNodeId: z255.string(),
7285
7332
  // Validity
7286
- isValid: z254.boolean(),
7333
+ isValid: z255.boolean(),
7287
7334
  // Asset data
7288
- assetId: z254.string(),
7289
- assetUrl: z254.string(),
7335
+ assetId: z255.string(),
7336
+ assetUrl: z255.string(),
7290
7337
  assetFormat: DTOFigmaNodeRenderFormat,
7291
7338
  // Asset metadata
7292
- assetScale: z254.number(),
7293
- assetWidth: z254.number().optional(),
7294
- assetHeight: z254.number().optional()
7339
+ assetScale: z255.number(),
7340
+ assetWidth: z255.number().optional(),
7341
+ assetHeight: z255.number().optional()
7295
7342
  });
7296
7343
  var DTOFigmaNode = FigmaNodeReference.omit({
7297
7344
  data: true,
@@ -7302,15 +7349,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
7302
7349
  });
7303
7350
 
7304
7351
  // src/api/dto/elements/figma-nodes/figma-node-v2.ts
7305
- import { z as z255 } from "zod";
7306
- var DTOFigmaNodeDataV2 = z255.object({
7307
- sceneNodeId: z255.string(),
7352
+ import { z as z256 } from "zod";
7353
+ var DTOFigmaNodeDataV2 = z256.object({
7354
+ sceneNodeId: z256.string(),
7308
7355
  format: FigmaNodeRenderFormat,
7309
- scale: z255.number().optional(),
7356
+ scale: z256.number().optional(),
7310
7357
  renderState: FigmaNodeRenderState,
7311
7358
  renderedImage: FigmaNodeRenderedImage.optional(),
7312
7359
  renderError: FigmaNodeRenderError.optional(),
7313
- hasSource: z255.boolean()
7360
+ hasSource: z256.boolean()
7314
7361
  });
7315
7362
  var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7316
7363
  data: true,
@@ -7321,105 +7368,105 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7321
7368
  });
7322
7369
 
7323
7370
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
7324
- import { z as z256 } from "zod";
7325
- var DTOFigmaNodeRenderActionOutput = z256.object({
7326
- type: z256.literal("FigmaNodeRender"),
7327
- figmaNodes: z256.array(DTOFigmaNode)
7371
+ import { z as z257 } from "zod";
7372
+ var DTOFigmaNodeRenderActionOutput = z257.object({
7373
+ type: z257.literal("FigmaNodeRender"),
7374
+ figmaNodes: z257.array(DTOFigmaNode)
7328
7375
  });
7329
- var DTOFigmaNodeRenderAsyncActionOutput = z256.object({
7330
- type: z256.literal("FigmaNodeRenderAsync"),
7331
- figmaNodes: z256.array(DTOFigmaNodeV2)
7376
+ var DTOFigmaNodeRenderAsyncActionOutput = z257.object({
7377
+ type: z257.literal("FigmaNodeRenderAsync"),
7378
+ figmaNodes: z257.array(DTOFigmaNodeV2)
7332
7379
  });
7333
- var DTOFigmaNodeRenderActionInput = z256.object({
7334
- type: z256.literal("FigmaNodeRender"),
7380
+ var DTOFigmaNodeRenderActionInput = z257.object({
7381
+ type: z257.literal("FigmaNodeRender"),
7335
7382
  input: DTOFigmaNodeRenderIdInput.array()
7336
7383
  });
7337
- var DTOFigmaNodeRenderAsyncActionInput = z256.object({
7338
- type: z256.literal("FigmaNodeRenderAsync"),
7384
+ var DTOFigmaNodeRenderAsyncActionInput = z257.object({
7385
+ type: z257.literal("FigmaNodeRenderAsync"),
7339
7386
  nodes: DTOFigmaNodeRenderInput.array()
7340
7387
  });
7341
7388
 
7342
7389
  // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
7343
- import { z as z257 } from "zod";
7344
- var DTOFrameNodeStructure = z257.object({
7345
- id: z257.string(),
7346
- persistentId: z257.string(),
7347
- designSystemVersionId: z257.string(),
7390
+ import { z as z258 } from "zod";
7391
+ var DTOFrameNodeStructure = z258.object({
7392
+ id: z258.string(),
7393
+ persistentId: z258.string(),
7394
+ designSystemVersionId: z258.string(),
7348
7395
  origin: FigmaFileStructureOrigin,
7349
7396
  assetsInFile: FigmaFileStructureStatistics
7350
7397
  });
7351
- var DTOFrameNodeStructureListResponse = z257.object({
7398
+ var DTOFrameNodeStructureListResponse = z258.object({
7352
7399
  structures: DTOFrameNodeStructure.array()
7353
7400
  });
7354
7401
 
7355
7402
  // src/api/dto/elements/properties/property-definitions.ts
7356
- import { z as z258 } from "zod";
7403
+ import { z as z259 } from "zod";
7357
7404
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
7358
- var DTOElementPropertyDefinitionOption = z258.object({
7359
- id: z258.string(),
7360
- name: z258.string(),
7405
+ var DTOElementPropertyDefinitionOption = z259.object({
7406
+ id: z259.string(),
7407
+ name: z259.string(),
7361
7408
  backgroundColor: DTOColorTokenInlineData.optional()
7362
7409
  });
7363
- var DTOElementPropertyDefinition = z258.object({
7364
- id: z258.string(),
7365
- designSystemVersionId: z258.string(),
7410
+ var DTOElementPropertyDefinition = z259.object({
7411
+ id: z259.string(),
7412
+ designSystemVersionId: z259.string(),
7366
7413
  meta: DTOObjectMeta,
7367
- persistentId: z258.string(),
7414
+ persistentId: z259.string(),
7368
7415
  type: ElementPropertyTypeSchema,
7369
7416
  targetElementType: ElementPropertyTargetType,
7370
- codeName: z258.string().regex(CODE_NAME_REGEX2),
7371
- options: nullishToOptional(z258.array(DTOElementPropertyDefinitionOption)),
7417
+ codeName: z259.string().regex(CODE_NAME_REGEX2),
7418
+ options: nullishToOptional(z259.array(DTOElementPropertyDefinitionOption)),
7372
7419
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7373
- isImmutable: z258.boolean(),
7420
+ isImmutable: z259.boolean(),
7374
7421
  immutablePropertyType: ElementPropertyImmutableType.optional()
7375
7422
  });
7376
- var DTOElementPropertyDefinitionListResponse = z258.object({
7377
- definitions: z258.array(DTOElementPropertyDefinition)
7423
+ var DTOElementPropertyDefinitionListResponse = z259.object({
7424
+ definitions: z259.array(DTOElementPropertyDefinition)
7378
7425
  });
7379
- var DTOElementPropertyDefinitionResponse = z258.object({
7426
+ var DTOElementPropertyDefinitionResponse = z259.object({
7380
7427
  definition: DTOElementPropertyDefinition
7381
7428
  });
7382
- var DTOElementPropertyDefinitionCreatePayload = z258.object({
7429
+ var DTOElementPropertyDefinitionCreatePayload = z259.object({
7383
7430
  meta: DTOObjectMeta,
7384
- persistentId: z258.string(),
7431
+ persistentId: z259.string(),
7385
7432
  type: ElementPropertyTypeSchema,
7386
7433
  targetElementType: ElementPropertyTargetType,
7387
- codeName: z258.string().regex(CODE_NAME_REGEX2),
7388
- options: nullishToOptional(z258.array(DTOElementPropertyDefinitionOption)),
7434
+ codeName: z259.string().regex(CODE_NAME_REGEX2),
7435
+ options: nullishToOptional(z259.array(DTOElementPropertyDefinitionOption)),
7389
7436
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7390
- columnWidth: z258.number().max(1024).optional()
7437
+ columnWidth: z259.number().max(1024).optional()
7391
7438
  });
7392
- var DTOElementPropertyDefinitionUpdatePayload = z258.object({
7439
+ var DTOElementPropertyDefinitionUpdatePayload = z259.object({
7393
7440
  meta: DTOObjectMeta.optional(),
7394
- codeName: z258.string().regex(CODE_NAME_REGEX2).optional(),
7395
- options: z258.array(DTOElementPropertyDefinitionOption).optional()
7441
+ codeName: z259.string().regex(CODE_NAME_REGEX2).optional(),
7442
+ options: z259.array(DTOElementPropertyDefinitionOption).optional()
7396
7443
  });
7397
7444
 
7398
7445
  // src/api/dto/elements/properties/property-values.ts
7399
- import { z as z259 } from "zod";
7400
- var DTOElementPropertyValue = z259.object({
7401
- id: z259.string(),
7402
- designSystemVersionId: z259.string(),
7403
- definitionId: z259.string(),
7404
- targetElementId: z259.string(),
7405
- value: z259.union([z259.string(), z259.number(), z259.boolean()]).optional(),
7406
- valuePreview: z259.string().optional()
7407
- });
7408
- var DTOElementPropertyValueListResponse = z259.object({
7409
- values: z259.array(DTOElementPropertyValue)
7410
- });
7411
- var DTOElementPropertyValueResponse = z259.object({
7446
+ import { z as z260 } from "zod";
7447
+ var DTOElementPropertyValue = z260.object({
7448
+ id: z260.string(),
7449
+ designSystemVersionId: z260.string(),
7450
+ definitionId: z260.string(),
7451
+ targetElementId: z260.string(),
7452
+ value: z260.union([z260.string(), z260.number(), z260.boolean()]).optional(),
7453
+ valuePreview: z260.string().optional()
7454
+ });
7455
+ var DTOElementPropertyValueListResponse = z260.object({
7456
+ values: z260.array(DTOElementPropertyValue)
7457
+ });
7458
+ var DTOElementPropertyValueResponse = z260.object({
7412
7459
  value: DTOElementPropertyValue
7413
7460
  });
7414
- var DTOElementPropertyValueUpsertPaylod = z259.object({
7415
- definitionId: z259.string(),
7416
- targetElementId: z259.string(),
7417
- value: z259.string().or(z259.number()).or(z259.boolean())
7461
+ var DTOElementPropertyValueUpsertPaylod = z260.object({
7462
+ definitionId: z260.string(),
7463
+ targetElementId: z260.string(),
7464
+ value: z260.string().or(z260.number()).or(z260.boolean())
7418
7465
  });
7419
7466
 
7420
7467
  // src/api/dto/elements/elements-action-v2.ts
7421
- import { z as z260 } from "zod";
7422
- var DTOElementActionOutput = z260.discriminatedUnion("type", [
7468
+ import { z as z261 } from "zod";
7469
+ var DTOElementActionOutput = z261.discriminatedUnion("type", [
7423
7470
  // Documentation pages
7424
7471
  DTODocumentationPageCreateActionOutputV2,
7425
7472
  DTODocumentationPageUpdateActionOutputV2,
@@ -7444,7 +7491,7 @@ var DTOElementActionOutput = z260.discriminatedUnion("type", [
7444
7491
  // Approvals
7445
7492
  DTODocumentationPageApprovalStateChangeActionOutput
7446
7493
  ]);
7447
- var DTOElementActionInput = z260.discriminatedUnion("type", [
7494
+ var DTOElementActionInput = z261.discriminatedUnion("type", [
7448
7495
  // Documentation pages
7449
7496
  DTODocumentationPageCreateActionInputV2,
7450
7497
  DTODocumentationPageUpdateActionInputV2,
@@ -7469,90 +7516,90 @@ var DTOElementActionInput = z260.discriminatedUnion("type", [
7469
7516
  // Approval
7470
7517
  DTODocumentationPageApprovalStateChangeActionInput
7471
7518
  ]).and(
7472
- z260.object({
7473
- tId: z260.string().optional()
7519
+ z261.object({
7520
+ tId: z261.string().optional()
7474
7521
  })
7475
7522
  );
7476
7523
 
7477
7524
  // src/api/dto/elements/get-elements-v2.ts
7478
- import { z as z261 } from "zod";
7479
- var DTOElementsGetTypeFilter = z261.enum(["FigmaNode"]);
7480
- var DTOElementsGetQuerySchema = z261.object({
7481
- types: z261.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
7482
- responseVersion: z261.coerce.number().default(1)
7525
+ import { z as z262 } from "zod";
7526
+ var DTOElementsGetTypeFilter = z262.enum(["FigmaNode"]);
7527
+ var DTOElementsGetQuerySchema = z262.object({
7528
+ types: z262.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
7529
+ responseVersion: z262.coerce.number().default(1)
7483
7530
  });
7484
- var DTOElementsGetOutput = z261.object({
7485
- figmaNodes: z261.array(DTOFigmaNode).optional()
7531
+ var DTOElementsGetOutput = z262.object({
7532
+ figmaNodes: z262.array(DTOFigmaNode).optional()
7486
7533
  });
7487
- var DTOElementsGetOutputV2 = z261.object({
7488
- figmaNodes: z261.array(DTOFigmaNodeV2).optional()
7534
+ var DTOElementsGetOutputV2 = z262.object({
7535
+ figmaNodes: z262.array(DTOFigmaNodeV2).optional()
7489
7536
  });
7490
7537
 
7491
7538
  // src/api/dto/figma-components/assets/download.ts
7492
- import { z as z262 } from "zod";
7493
- var DTOAssetRenderConfiguration = z262.object({
7494
- prefix: z262.string().optional(),
7495
- suffix: z262.string().optional(),
7496
- scale: z262.enum(["x1", "x2", "x3", "x4"]),
7497
- format: z262.enum(["png", "pdf", "svg"])
7498
- });
7499
- var DTORenderedAssetFile = z262.object({
7500
- assetId: z262.string(),
7501
- fileName: z262.string(),
7502
- sourceUrl: z262.string(),
7539
+ import { z as z263 } from "zod";
7540
+ var DTOAssetRenderConfiguration = z263.object({
7541
+ prefix: z263.string().optional(),
7542
+ suffix: z263.string().optional(),
7543
+ scale: z263.enum(["x1", "x2", "x3", "x4"]),
7544
+ format: z263.enum(["png", "pdf", "svg"])
7545
+ });
7546
+ var DTORenderedAssetFile = z263.object({
7547
+ assetId: z263.string(),
7548
+ fileName: z263.string(),
7549
+ sourceUrl: z263.string(),
7503
7550
  settings: DTOAssetRenderConfiguration,
7504
- originalName: z262.string()
7551
+ originalName: z263.string()
7505
7552
  });
7506
- var DTODownloadAssetsRequest = z262.object({
7507
- persistentIds: z262.array(z262.string().uuid()).optional(),
7553
+ var DTODownloadAssetsRequest = z263.object({
7554
+ persistentIds: z263.array(z263.string().uuid()).optional(),
7508
7555
  settings: DTOAssetRenderConfiguration.array()
7509
7556
  });
7510
- var DTODownloadAssetsResponse = z262.object({
7557
+ var DTODownloadAssetsResponse = z263.object({
7511
7558
  items: DTORenderedAssetFile.array()
7512
7559
  });
7513
7560
 
7514
7561
  // src/api/dto/liveblocks/auth-response.ts
7515
- import { z as z263 } from "zod";
7516
- var DTOLiveblocksAuthResponse = z263.object({
7517
- token: z263.string()
7562
+ import { z as z264 } from "zod";
7563
+ var DTOLiveblocksAuthResponse = z264.object({
7564
+ token: z264.string()
7518
7565
  });
7519
7566
 
7520
7567
  // src/api/dto/themes/override.ts
7521
- import { z as z264 } from "zod";
7568
+ import { z as z265 } from "zod";
7522
7569
  var DTOThemeOverride = DesignTokenTypedData.and(
7523
- z264.object({
7524
- tokenPersistentId: z264.string(),
7570
+ z265.object({
7571
+ tokenPersistentId: z265.string(),
7525
7572
  origin: ThemeOverrideOrigin.optional()
7526
7573
  })
7527
7574
  );
7528
7575
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
7529
- z264.object({
7530
- tokenPersistentId: z264.string()
7576
+ z265.object({
7577
+ tokenPersistentId: z265.string()
7531
7578
  })
7532
7579
  );
7533
7580
 
7534
7581
  // src/api/dto/themes/theme.ts
7535
- import { z as z265 } from "zod";
7536
- var DTOTheme = z265.object({
7537
- id: z265.string(),
7538
- persistentId: z265.string(),
7539
- designSystemVersionId: z265.string(),
7540
- brandId: z265.string(),
7582
+ import { z as z266 } from "zod";
7583
+ var DTOTheme = z266.object({
7584
+ id: z266.string(),
7585
+ persistentId: z266.string(),
7586
+ designSystemVersionId: z266.string(),
7587
+ brandId: z266.string(),
7541
7588
  meta: ObjectMeta,
7542
- codeName: z265.string(),
7589
+ codeName: z266.string(),
7543
7590
  overrides: DTOThemeOverride.array()
7544
7591
  });
7545
- var DTOThemeResponse = z265.object({
7592
+ var DTOThemeResponse = z266.object({
7546
7593
  theme: DTOTheme
7547
7594
  });
7548
- var DTOThemeListResponse = z265.object({
7595
+ var DTOThemeListResponse = z266.object({
7549
7596
  themes: DTOTheme.array()
7550
7597
  });
7551
- var DTOThemeCreatePayload = z265.object({
7598
+ var DTOThemeCreatePayload = z266.object({
7552
7599
  meta: ObjectMeta,
7553
- persistentId: z265.string(),
7554
- brandId: z265.string(),
7555
- codeName: z265.string(),
7600
+ persistentId: z266.string(),
7601
+ brandId: z266.string(),
7602
+ codeName: z266.string(),
7556
7603
  overrides: DTOThemeOverride.array()
7557
7604
  });
7558
7605
 
@@ -7788,13 +7835,13 @@ var ExportersEndpoint = class {
7788
7835
  };
7789
7836
 
7790
7837
  // src/api/endpoints/codegen/jobs.ts
7791
- import { z as z266 } from "zod";
7838
+ import { z as z267 } from "zod";
7792
7839
  var ExporterJobsEndpoint = class {
7793
7840
  constructor(requestExecutor) {
7794
7841
  this.requestExecutor = requestExecutor;
7795
7842
  }
7796
7843
  list(workspaceId) {
7797
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z266.any());
7844
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z267.any());
7798
7845
  }
7799
7846
  get(workspaceId, jobId) {
7800
7847
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -7852,7 +7899,7 @@ var CodegenEndpoint = class {
7852
7899
  };
7853
7900
 
7854
7901
  // src/api/endpoints/design-system/versions/brands.ts
7855
- import { z as z267 } from "zod";
7902
+ import { z as z268 } from "zod";
7856
7903
  var BrandsEndpoint = class {
7857
7904
  constructor(requestExecutor) {
7858
7905
  this.requestExecutor = requestExecutor;
@@ -7886,12 +7933,44 @@ var BrandsEndpoint = class {
7886
7933
  });
7887
7934
  }
7888
7935
  delete(dsId, vId, brandId) {
7889
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z267.any(), {
7936
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z268.any(), {
7890
7937
  method: "DELETE"
7891
7938
  });
7892
7939
  }
7893
7940
  };
7894
7941
 
7942
+ // src/api/endpoints/design-system/versions/code-components.ts
7943
+ var CodeComponentsEndpoint = class {
7944
+ constructor(requestExecutor) {
7945
+ this.requestExecutor = requestExecutor;
7946
+ }
7947
+ async import(dsId, vId, body) {
7948
+ return this.requestExecutor.json(
7949
+ `/design-systems/${dsId}/versions/${vId}/code-components`,
7950
+ DTOCodeComponentListResponse,
7951
+ {
7952
+ body,
7953
+ method: "POST"
7954
+ }
7955
+ );
7956
+ }
7957
+ async list(dsId, vId) {
7958
+ return this.requestExecutor.json(
7959
+ `/design-systems/${dsId}/versions/${vId}/code-components`,
7960
+ DTOCodeComponentListResponse
7961
+ );
7962
+ }
7963
+ async deleteAll(dsId, vId) {
7964
+ return this.requestExecutor.json(
7965
+ `/design-systems/${dsId}/versions/${vId}/code-components`,
7966
+ DTOCodeComponentListResponse,
7967
+ {
7968
+ method: "DELETE"
7969
+ }
7970
+ );
7971
+ }
7972
+ };
7973
+
7895
7974
  // src/api/endpoints/design-system/versions/documentation.ts
7896
7975
  var DocumentationEndpoint = class {
7897
7976
  constructor(requestExecutor) {
@@ -8064,7 +8143,7 @@ var ImportJobsEndpoint = class {
8064
8143
  };
8065
8144
 
8066
8145
  // src/api/endpoints/design-system/versions/overrides.ts
8067
- import { z as z268 } from "zod";
8146
+ import { z as z269 } from "zod";
8068
8147
  var OverridesEndpoint = class {
8069
8148
  constructor(requestExecutor) {
8070
8149
  this.requestExecutor = requestExecutor;
@@ -8072,7 +8151,7 @@ var OverridesEndpoint = class {
8072
8151
  create(dsId, versionId, themeId, body) {
8073
8152
  return this.requestExecutor.json(
8074
8153
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
8075
- z268.any(),
8154
+ z269.any(),
8076
8155
  {
8077
8156
  method: "POST",
8078
8157
  body
@@ -8082,7 +8161,7 @@ var OverridesEndpoint = class {
8082
8161
  };
8083
8162
 
8084
8163
  // src/api/endpoints/design-system/versions/property-definitions.ts
8085
- import { z as z269 } from "zod";
8164
+ import { z as z270 } from "zod";
8086
8165
  var ElementPropertyDefinitionsEndpoint = class {
8087
8166
  constructor(requestExecutor) {
8088
8167
  this.requestExecutor = requestExecutor;
@@ -8110,7 +8189,7 @@ var ElementPropertyDefinitionsEndpoint = class {
8110
8189
  delete(designSystemId, versionId, defId) {
8111
8190
  return this.requestExecutor.json(
8112
8191
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
8113
- z269.any(),
8192
+ z270.any(),
8114
8193
  { method: "DELETE" }
8115
8194
  );
8116
8195
  }
@@ -8149,7 +8228,7 @@ var VersionStatsEndpoint = class {
8149
8228
  };
8150
8229
 
8151
8230
  // src/api/endpoints/design-system/versions/themes.ts
8152
- import { z as z270 } from "zod";
8231
+ import { z as z271 } from "zod";
8153
8232
  var ThemesEndpoint = class {
8154
8233
  constructor(requestExecutor) {
8155
8234
  this.requestExecutor = requestExecutor;
@@ -8172,7 +8251,7 @@ var ThemesEndpoint = class {
8172
8251
  });
8173
8252
  }
8174
8253
  delete(dsId, versionId, themeId) {
8175
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z270.any(), {
8254
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z271.any(), {
8176
8255
  method: "DELETE"
8177
8256
  });
8178
8257
  }
@@ -8259,6 +8338,7 @@ var DesignSystemVersionsEndpoint = class {
8259
8338
  __publicField(this, "elements");
8260
8339
  __publicField(this, "designSystemComponents");
8261
8340
  __publicField(this, "documentation");
8341
+ __publicField(this, "codeComponents");
8262
8342
  this.themes = new ThemesEndpoint(requestExecutor);
8263
8343
  this.brands = new BrandsEndpoint(requestExecutor);
8264
8344
  this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
@@ -8275,6 +8355,7 @@ var DesignSystemVersionsEndpoint = class {
8275
8355
  this.elements = new ElementsEndpoint(requestExecutor);
8276
8356
  this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
8277
8357
  this.documentation = new DocumentationEndpoint(requestExecutor);
8358
+ this.codeComponents = new CodeComponentsEndpoint(requestExecutor);
8278
8359
  }
8279
8360
  list(dsId) {
8280
8361
  return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
@@ -8325,7 +8406,7 @@ var DesignSystemContactsEndpoint = class {
8325
8406
  };
8326
8407
 
8327
8408
  // src/api/endpoints/design-system/design-systems.ts
8328
- import { z as z272 } from "zod";
8409
+ import { z as z273 } from "zod";
8329
8410
 
8330
8411
  // src/api/endpoints/design-system/figma-node-structures.ts
8331
8412
  var FigmaNodeStructuresEndpoint = class {
@@ -8402,7 +8483,7 @@ var DesignSystemPageRedirectsEndpoint = class {
8402
8483
  };
8403
8484
 
8404
8485
  // src/api/endpoints/design-system/sources.ts
8405
- import { z as z271 } from "zod";
8486
+ import { z as z272 } from "zod";
8406
8487
  var DesignSystemSourcesEndpoint = class {
8407
8488
  constructor(requestExecutor) {
8408
8489
  this.requestExecutor = requestExecutor;
@@ -8417,7 +8498,7 @@ var DesignSystemSourcesEndpoint = class {
8417
8498
  return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
8418
8499
  }
8419
8500
  delete(dsId, sourceId) {
8420
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z271.any(), { method: "DELETE" });
8501
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z272.any(), { method: "DELETE" });
8421
8502
  }
8422
8503
  figmaImport(dsId, payload) {
8423
8504
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
@@ -8456,7 +8537,7 @@ var DesignSystemsEndpoint = class {
8456
8537
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
8457
8538
  }
8458
8539
  delete(dsId) {
8459
- return this.requestExecutor.json(`/design-systems/${dsId}`, z272.any(), { method: "DELETE" });
8540
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z273.any(), { method: "DELETE" });
8460
8541
  }
8461
8542
  update(dsId, body) {
8462
8543
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -8473,7 +8554,7 @@ var DesignSystemsEndpoint = class {
8473
8554
  };
8474
8555
 
8475
8556
  // src/api/endpoints/workspaces/integrations.ts
8476
- import { z as z273 } from "zod";
8557
+ import { z as z274 } from "zod";
8477
8558
  var WorkspaceIntegrationsEndpoint = class {
8478
8559
  constructor(requestExecutor) {
8479
8560
  this.requestExecutor = requestExecutor;
@@ -8482,7 +8563,7 @@ var WorkspaceIntegrationsEndpoint = class {
8482
8563
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
8483
8564
  }
8484
8565
  delete(wsId, iId) {
8485
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z273.unknown(), { method: "DELETE" });
8566
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z274.unknown(), { method: "DELETE" });
8486
8567
  }
8487
8568
  };
8488
8569
 
@@ -8514,7 +8595,7 @@ var WorkspaceInvitationsEndpoint = class {
8514
8595
  };
8515
8596
 
8516
8597
  // src/api/endpoints/workspaces/members.ts
8517
- import { z as z274 } from "zod";
8598
+ import { z as z275 } from "zod";
8518
8599
  var WorkspaceMembersEndpoint = class {
8519
8600
  constructor(requestExecutor) {
8520
8601
  this.requestExecutor = requestExecutor;
@@ -8531,7 +8612,7 @@ var WorkspaceMembersEndpoint = class {
8531
8612
  });
8532
8613
  }
8533
8614
  invite(workspaceId, body) {
8534
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z274.any(), { method: "POST", body });
8615
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z275.any(), { method: "POST", body });
8535
8616
  }
8536
8617
  delete(workspaceId, userId) {
8537
8618
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -8541,7 +8622,7 @@ var WorkspaceMembersEndpoint = class {
8541
8622
  };
8542
8623
 
8543
8624
  // src/api/endpoints/workspaces/workspaces.ts
8544
- import { z as z275 } from "zod";
8625
+ import { z as z276 } from "zod";
8545
8626
  var WorkspacesEndpoint = class {
8546
8627
  constructor(requestExecutor) {
8547
8628
  this.requestExecutor = requestExecutor;
@@ -8566,10 +8647,10 @@ var WorkspacesEndpoint = class {
8566
8647
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
8567
8648
  }
8568
8649
  delete(workspaceId) {
8569
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z275.any(), { method: "DELETE" });
8650
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z276.any(), { method: "DELETE" });
8570
8651
  }
8571
8652
  subscription(workspaceId) {
8572
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z275.any(), { method: "GET" });
8653
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z276.any(), { method: "GET" });
8573
8654
  }
8574
8655
  transferOwnership(workspaceId, body) {
8575
8656
  return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
@@ -8669,9 +8750,9 @@ ${bodyText}`,
8669
8750
 
8670
8751
  // src/api/transport/request-executor.ts
8671
8752
  import fetch from "node-fetch";
8672
- import { z as z276 } from "zod";
8673
- var ResponseWrapper = z276.object({
8674
- result: z276.record(z276.any())
8753
+ import { z as z277 } from "zod";
8754
+ var ResponseWrapper = z277.object({
8755
+ result: z277.record(z277.any())
8675
8756
  });
8676
8757
  var RequestExecutor = class {
8677
8758
  constructor(testServerConfig) {
@@ -8748,31 +8829,31 @@ var SupernovaApiClient = class {
8748
8829
  };
8749
8830
 
8750
8831
  // src/events/design-system.ts
8751
- import { z as z277 } from "zod";
8752
- var DTOEventFigmaNodesRendered = z277.object({
8753
- type: z277.literal("DesignSystem.FigmaNodesRendered"),
8754
- designSystemId: z277.string(),
8755
- versionId: z277.string(),
8756
- figmaNodePersistentIds: z277.string().array()
8757
- });
8758
- var DTOEventDataSourcesImported = z277.object({
8759
- type: z277.literal("DesignSystem.ImportJobFinished"),
8760
- designSystemId: z277.string(),
8761
- versionId: z277.string(),
8762
- importJobId: z277.string(),
8832
+ import { z as z278 } from "zod";
8833
+ var DTOEventFigmaNodesRendered = z278.object({
8834
+ type: z278.literal("DesignSystem.FigmaNodesRendered"),
8835
+ designSystemId: z278.string(),
8836
+ versionId: z278.string(),
8837
+ figmaNodePersistentIds: z278.string().array()
8838
+ });
8839
+ var DTOEventDataSourcesImported = z278.object({
8840
+ type: z278.literal("DesignSystem.ImportJobFinished"),
8841
+ designSystemId: z278.string(),
8842
+ versionId: z278.string(),
8843
+ importJobId: z278.string(),
8763
8844
  dataSourceType: DataSourceRemoteType,
8764
- dataSourceIds: z277.string().array()
8845
+ dataSourceIds: z278.string().array()
8765
8846
  });
8766
8847
 
8767
8848
  // src/events/event.ts
8768
- import { z as z278 } from "zod";
8769
- var DTOEvent = z278.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
8849
+ import { z as z279 } from "zod";
8850
+ var DTOEvent = z279.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
8770
8851
 
8771
8852
  // src/sync/docs-structure-repo.ts
8772
8853
  import PQueue from "p-queue";
8773
8854
 
8774
8855
  // src/yjs/design-system-content/documentation-hierarchy.ts
8775
- import { z as z279 } from "zod";
8856
+ import { z as z280 } from "zod";
8776
8857
 
8777
8858
  // src/yjs/version-room/base.ts
8778
8859
  var VersionRoomBaseYDoc = class {
@@ -9337,24 +9418,24 @@ var FrontendVersionRoomYDoc = class {
9337
9418
  };
9338
9419
 
9339
9420
  // src/yjs/design-system-content/documentation-hierarchy.ts
9340
- var DocumentationHierarchySettings = z279.object({
9341
- routingVersion: z279.string(),
9342
- isDraftFeatureAdopted: z279.boolean(),
9343
- isApprovalFeatureEnabled: z279.boolean(),
9344
- approvalRequiredForPublishing: z279.boolean()
9421
+ var DocumentationHierarchySettings = z280.object({
9422
+ routingVersion: z280.string(),
9423
+ isDraftFeatureAdopted: z280.boolean(),
9424
+ isApprovalFeatureEnabled: z280.boolean(),
9425
+ approvalRequiredForPublishing: z280.boolean()
9345
9426
  });
9346
9427
  function yjsToDocumentationHierarchy(doc) {
9347
9428
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
9348
9429
  }
9349
9430
 
9350
9431
  // src/yjs/design-system-content/item-configuration.ts
9351
- import { z as z280 } from "zod";
9352
- var DTODocumentationPageRoomHeaderData = z280.object({
9353
- title: z280.string(),
9432
+ import { z as z281 } from "zod";
9433
+ var DTODocumentationPageRoomHeaderData = z281.object({
9434
+ title: z281.string(),
9354
9435
  configuration: DTODocumentationItemConfigurationV2
9355
9436
  });
9356
- var DTODocumentationPageRoomHeaderDataUpdate = z280.object({
9357
- title: z280.string().optional(),
9437
+ var DTODocumentationPageRoomHeaderDataUpdate = z281.object({
9438
+ title: z281.string().optional(),
9358
9439
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
9359
9440
  });
9360
9441
  function itemConfigurationToYjs(yDoc, item) {
@@ -9405,7 +9486,7 @@ function yjsToItemConfiguration(yDoc) {
9405
9486
  header: rawHeader
9406
9487
  };
9407
9488
  return {
9408
- title: z280.string().parse(title),
9489
+ title: z281.string().parse(title),
9409
9490
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
9410
9491
  };
9411
9492
  }
@@ -9415,9 +9496,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
9415
9496
  var PageSectionEditorModel = PageSectionEditorModelV2;
9416
9497
 
9417
9498
  // src/yjs/docs-editor/model/page.ts
9418
- import { z as z281 } from "zod";
9419
- var DocumentationPageEditorModel = z281.object({
9420
- blocks: z281.array(DocumentationPageContentItem)
9499
+ import { z as z282 } from "zod";
9500
+ var DocumentationPageEditorModel = z282.object({
9501
+ blocks: z282.array(DocumentationPageContentItem)
9421
9502
  });
9422
9503
 
9423
9504
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -12976,7 +13057,7 @@ var blocks = [
12976
13057
 
12977
13058
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
12978
13059
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
12979
- import { z as z282 } from "zod";
13060
+ import { z as z283 } from "zod";
12980
13061
  function yDocToPage(yDoc, definitions) {
12981
13062
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
12982
13063
  }
@@ -13056,7 +13137,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
13056
13137
  return null;
13057
13138
  return {
13058
13139
  id,
13059
- title: getProsemirrorAttribute(prosemirrorNode, "title", z282.string()) ?? "",
13140
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z283.string()) ?? "",
13060
13141
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
13061
13142
  };
13062
13143
  }
@@ -13091,7 +13172,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
13091
13172
  });
13092
13173
  }
13093
13174
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
13094
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z282.string());
13175
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z283.string());
13095
13176
  if (!definitionId) {
13096
13177
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
13097
13178
  return [];
@@ -13133,7 +13214,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
13133
13214
  if (!id)
13134
13215
  return null;
13135
13216
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13136
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z282.string().optional()));
13217
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z283.string().optional()));
13137
13218
  return {
13138
13219
  id,
13139
13220
  type: "Block",
@@ -13261,10 +13342,10 @@ function parseRichTextAttribute(mark) {
13261
13342
  return null;
13262
13343
  }
13263
13344
  function parseProsemirrorLink(mark) {
13264
- const href = getProsemirrorAttribute(mark, "href", z282.string().optional());
13345
+ const href = getProsemirrorAttribute(mark, "href", z283.string().optional());
13265
13346
  if (!href)
13266
13347
  return null;
13267
- const target = getProsemirrorAttribute(mark, "target", z282.string().optional());
13348
+ const target = getProsemirrorAttribute(mark, "target", z283.string().optional());
13268
13349
  const openInNewTab = target === "_blank";
13269
13350
  if (href.startsWith("@")) {
13270
13351
  return {
@@ -13283,10 +13364,10 @@ function parseProsemirrorLink(mark) {
13283
13364
  }
13284
13365
  }
13285
13366
  function parseProsemirrorCommentHighlight(mark) {
13286
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z282.string().optional());
13367
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z283.string().optional());
13287
13368
  if (!highlightId)
13288
13369
  return null;
13289
- const isResolved = getProsemirrorAttribute(mark, "resolved", z282.boolean().optional()) ?? false;
13370
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z283.boolean().optional()) ?? false;
13290
13371
  return {
13291
13372
  type: "Comment",
13292
13373
  commentHighlightId: highlightId,
@@ -13298,7 +13379,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
13298
13379
  if (!id)
13299
13380
  return null;
13300
13381
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13301
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z282.boolean().optional()) !== false;
13382
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z283.boolean().optional()) !== false;
13302
13383
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
13303
13384
  if (!tableChild) {
13304
13385
  return emptyTable(id, variantId, 0);
@@ -13345,9 +13426,9 @@ function parseAsTableCell(prosemirrorNode) {
13345
13426
  const id = getProsemirrorBlockId(prosemirrorNode);
13346
13427
  if (!id)
13347
13428
  return null;
13348
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z282.string().optional());
13429
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z283.string().optional());
13349
13430
  let columnWidth;
13350
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z282.array(z282.number()).nullish());
13431
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z283.array(z283.number()).nullish());
13351
13432
  if (columnWidthArray) {
13352
13433
  columnWidth = roundDimension(columnWidthArray[0]);
13353
13434
  }
@@ -13385,7 +13466,7 @@ function parseAsTableNode(prosemirrorNode) {
13385
13466
  value: parseRichText(prosemirrorNode.content ?? [])
13386
13467
  };
13387
13468
  case "image":
13388
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z282.string());
13469
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z283.string());
13389
13470
  if (!items)
13390
13471
  return null;
13391
13472
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -13505,7 +13586,7 @@ function definitionExpectsPlaceholderItem(definition) {
13505
13586
  );
13506
13587
  }
13507
13588
  function parseBlockItems(prosemirrorNode, definition) {
13508
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z282.string());
13589
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z283.string());
13509
13590
  if (!itemsString)
13510
13591
  return null;
13511
13592
  const itemsJson = JSON.parse(itemsString);
@@ -13517,18 +13598,18 @@ function parseBlockItems(prosemirrorNode, definition) {
13517
13598
  }
13518
13599
  function parseAppearance(prosemirrorNode) {
13519
13600
  let appearance = {};
13520
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z282.string().optional());
13601
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z283.string().optional());
13521
13602
  if (rawAppearanceString) {
13522
13603
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
13523
13604
  if (parsedAppearance.success) {
13524
13605
  appearance = parsedAppearance.data;
13525
13606
  }
13526
13607
  }
13527
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z282.number().optional());
13608
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z283.number().optional());
13528
13609
  if (columns) {
13529
13610
  appearance.numberOfColumns = columns;
13530
13611
  }
13531
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z282.string().optional());
13612
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z283.string().optional());
13532
13613
  if (backgroundColor) {
13533
13614
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
13534
13615
  if (parsedColor.success) {
@@ -13623,13 +13704,13 @@ function valueSchemaForPropertyType(type) {
13623
13704
  }
13624
13705
  }
13625
13706
  function getProsemirrorBlockId(prosemirrorNode) {
13626
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z282.string());
13707
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z283.string());
13627
13708
  if (!id)
13628
13709
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
13629
13710
  return id;
13630
13711
  }
13631
13712
  function getProsemirrorBlockVariantId(prosemirrorNode) {
13632
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z282.string()));
13713
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z283.string()));
13633
13714
  }
13634
13715
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
13635
13716
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -14171,6 +14252,7 @@ export {
14171
14252
  BlockDefinitionUtils,
14172
14253
  BlockParsingUtils,
14173
14254
  BrandsEndpoint,
14255
+ CodeComponentsEndpoint,
14174
14256
  CodegenEndpoint,
14175
14257
  Collection2 as Collection,
14176
14258
  DTOAppBootstrapDataQuery,
@@ -14188,7 +14270,15 @@ export {
14188
14270
  DTOBrandGetResponse,
14189
14271
  DTOBrandUpdatePayload,
14190
14272
  DTOBrandsListResponse,
14273
+ DTOCodeComponent,
14274
+ DTOCodeComponentCreateInput,
14275
+ DTOCodeComponentListResponse,
14276
+ DTOCodeComponentProperty,
14277
+ DTOCodeComponentResponse,
14278
+ DTOCodeComponentsCreateInput,
14191
14279
  DTOColorTokenInlineData,
14280
+ DTOComponentPropertyControlType,
14281
+ DTOControlTypeInfo,
14192
14282
  DTOCreateDocumentationGroupInput,
14193
14283
  DTOCreateDocumentationPageInputV2,
14194
14284
  DTOCreateDocumentationTabInput,