@supernova-studio/client 0.54.19 → 0.54.20

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
@@ -4965,6 +4965,9 @@ var DTOPagination = z172.object({
4965
4965
  offset: z172.string().optional()
4966
4966
  });
4967
4967
 
4968
+ // src/api/dto/bff/app-bootstrap-data.ts
4969
+ import { z as z195 } from "zod";
4970
+
4968
4971
  // src/api/dto/design-systems/brand.ts
4969
4972
  import { z as z173 } from "zod";
4970
4973
  var DTOBrand = z173.object({
@@ -5399,20 +5402,138 @@ var DTOElementViewsListResponse = z189.object({
5399
5402
  elementDataViews: z189.array(DTOElementView)
5400
5403
  });
5401
5404
 
5402
- // src/api/dto/documentation/anchor.ts
5405
+ // src/api/dto/workspaces/git.ts
5403
5406
  import { z as z190 } from "zod";
5407
+ var DTOGitOrganization = z190.object({
5408
+ id: z190.string(),
5409
+ name: z190.string(),
5410
+ url: z190.string(),
5411
+ slug: z190.string()
5412
+ });
5413
+ var DTOGitProject = z190.object({
5414
+ id: z190.string(),
5415
+ name: z190.string(),
5416
+ url: z190.string(),
5417
+ slug: z190.string()
5418
+ });
5419
+ var DTOGitRepository = z190.object({
5420
+ id: z190.string(),
5421
+ name: z190.string(),
5422
+ url: z190.string(),
5423
+ slug: z190.string(),
5424
+ defaultBranch: z190.string().optional()
5425
+ });
5426
+ var DTOGitBranch = z190.object({
5427
+ name: z190.string(),
5428
+ lastCommitId: z190.string()
5429
+ });
5430
+
5431
+ // src/api/dto/workspaces/integrations.ts
5432
+ import { z as z191 } from "zod";
5433
+ var DTOIntegrationCredentials = IntegrationCredentials.omit({
5434
+ accessToken: true,
5435
+ refreshToken: true
5436
+ });
5437
+ var DTOIntegration = z191.object({
5438
+ id: z191.string(),
5439
+ workspaceId: z191.string(),
5440
+ type: ExtendedIntegrationType,
5441
+ createdAt: z191.coerce.date(),
5442
+ integrationCredentials: z191.array(DTOIntegrationCredentials).optional(),
5443
+ integrationDesignSystems: z191.array(IntegrationDesignSystem).optional()
5444
+ });
5445
+ var DTOIntegrationOAuthGetResponse = z191.object({
5446
+ url: z191.string()
5447
+ });
5448
+ var DTOIntegrationPostResponse = z191.object({
5449
+ integration: DTOIntegration
5450
+ });
5451
+ var DTOIntegrationsGetListResponse = z191.object({
5452
+ integrations: DTOIntegration.array()
5453
+ });
5454
+
5455
+ // src/api/dto/workspaces/membership.ts
5456
+ import { z as z194 } from "zod";
5457
+
5458
+ // src/api/dto/workspaces/workspace.ts
5459
+ import { z as z193 } from "zod";
5460
+
5461
+ // src/api/dto/workspaces/npm-registry.ts
5462
+ import { z as z192 } from "zod";
5463
+ var DTONpmRegistryConfigConstants = {
5464
+ passwordPlaceholder: "redacted"
5465
+ };
5466
+ var DTONpmRegistryConfig = z192.object({
5467
+ // Registry basic configuration
5468
+ registryType: NpmRegistryType,
5469
+ registryUrl: z192.string(),
5470
+ customRegistryUrl: z192.string().optional(),
5471
+ // URL of Supernova NPM packages proxy
5472
+ proxyUrl: z192.string(),
5473
+ // Auth configuration
5474
+ authType: NpmRegistryAuthType,
5475
+ accessToken: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5476
+ username: z192.string().optional(),
5477
+ password: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5478
+ // NPM package scopes for whih the proxy should be enabled
5479
+ enabledScopes: z192.array(z192.string()),
5480
+ // True if client should bypass Supernova proxy and connect directly to the registry
5481
+ // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5482
+ bypassProxy: z192.boolean()
5483
+ });
5484
+
5485
+ // src/api/dto/workspaces/workspace.ts
5486
+ var DTOWorkspace = z193.object({
5487
+ id: z193.string(),
5488
+ profile: WorkspaceProfile,
5489
+ subscription: Subscription,
5490
+ npmRegistry: DTONpmRegistryConfig.optional()
5491
+ });
5492
+
5493
+ // src/api/dto/workspaces/membership.ts
5494
+ var DTOWorkspaceRole = z194.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5495
+ var DTOUserWorkspaceMembership = z194.object({
5496
+ // Workspace the user is a member of
5497
+ workspace: DTOWorkspace,
5498
+ // Assigned role the user has in the workspace
5499
+ role: DTOWorkspaceRole,
5500
+ // Role that determines actual permissions the user has in the workspace
5501
+ // E.g. this is different from the default role when editors are downgraded to viewers
5502
+ // when a workspace's subscription is downgraded to free tier
5503
+ effectiveRole: DTOWorkspaceRole
5504
+ });
5505
+ var DTOUserWorkspaceMembershipsResponse = z194.object({
5506
+ membership: z194.array(DTOUserWorkspaceMembership)
5507
+ });
5508
+
5509
+ // src/api/dto/bff/app-bootstrap-data.ts
5510
+ var DTOAppBootstrapDataQuery = z195.object({
5511
+ preferredWorkspaceId: z195.string().optional(),
5512
+ preferredDesignSystemId: z195.string().optional(),
5513
+ preferredVersionId: z195.string().optional(),
5514
+ preferredBrandId: z195.string().optional()
5515
+ });
5516
+ var DTOAppBootstrapDataResponse = z195.object({
5517
+ workspaceMembership: DTOUserWorkspaceMembership.optional(),
5518
+ designSystem: DTODesignSystem.optional(),
5519
+ version: DTODesignSystemVersion.optional(),
5520
+ brand: DTOBrand.optional()
5521
+ });
5522
+
5523
+ // src/api/dto/documentation/anchor.ts
5524
+ import { z as z196 } from "zod";
5404
5525
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5405
- var DTOGetDocumentationPageAnchorsResponse = z190.object({
5406
- anchors: z190.array(DTODocumentationPageAnchor)
5526
+ var DTOGetDocumentationPageAnchorsResponse = z196.object({
5527
+ anchors: z196.array(DTODocumentationPageAnchor)
5407
5528
  });
5408
5529
 
5409
5530
  // src/api/dto/documentation/approvals.ts
5410
- import { z as z191 } from "zod";
5531
+ import { z as z197 } from "zod";
5411
5532
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5412
- var DTODocumentationGroupApprovalState = z191.object({
5413
- persistentId: z191.string(),
5414
- groupId: z191.string(),
5415
- designSystemVersionId: z191.string(),
5533
+ var DTODocumentationGroupApprovalState = z197.object({
5534
+ persistentId: z197.string(),
5535
+ groupId: z197.string(),
5536
+ designSystemVersionId: z197.string(),
5416
5537
  approvalState: DocumentationPageApprovalState
5417
5538
  });
5418
5539
 
@@ -5420,68 +5541,68 @@ var DTODocumentationGroupApprovalState = z191.object({
5420
5541
  var DTOPageBlockItemV2 = PageBlockItemV2;
5421
5542
 
5422
5543
  // src/api/dto/documentation/documentation-page-snapshot.ts
5423
- import { z as z196 } from "zod";
5544
+ import { z as z202 } from "zod";
5424
5545
 
5425
5546
  // src/api/dto/elements/documentation/page-v2.ts
5426
- import { z as z195 } from "zod";
5547
+ import { z as z201 } from "zod";
5427
5548
 
5428
5549
  // src/api/dto/elements/documentation/draft-state.ts
5429
- import { z as z193 } from "zod";
5550
+ import { z as z199 } from "zod";
5430
5551
 
5431
5552
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5432
- import { z as z192 } from "zod";
5553
+ import { z as z198 } from "zod";
5433
5554
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5434
- var DTODocumentationItemConfigurationV2 = z192.object({
5435
- showSidebar: z192.boolean(),
5436
- isPrivate: z192.boolean(),
5437
- isHidden: z192.boolean(),
5555
+ var DTODocumentationItemConfigurationV2 = z198.object({
5556
+ showSidebar: z198.boolean(),
5557
+ isPrivate: z198.boolean(),
5558
+ isHidden: z198.boolean(),
5438
5559
  header: DTODocumentationItemHeaderV2
5439
5560
  });
5440
5561
 
5441
5562
  // src/api/dto/elements/documentation/draft-state.ts
5442
- var DTODocumentationDraftChangeType = z193.enum(["Created", "Updated", "Deleted"]);
5443
- var DTODocumentationDraftStateCreated = z193.object({
5444
- changeType: z193.literal(DTODocumentationDraftChangeType.enum.Created)
5445
- });
5446
- var DTODocumentationDraftStateUpdated = z193.object({
5447
- changeType: z193.literal(DTODocumentationDraftChangeType.enum.Updated),
5448
- changes: z193.object({
5449
- previousTitle: z193.string().optional(),
5563
+ var DTODocumentationDraftChangeType = z199.enum(["Created", "Updated", "Deleted"]);
5564
+ var DTODocumentationDraftStateCreated = z199.object({
5565
+ changeType: z199.literal(DTODocumentationDraftChangeType.enum.Created)
5566
+ });
5567
+ var DTODocumentationDraftStateUpdated = z199.object({
5568
+ changeType: z199.literal(DTODocumentationDraftChangeType.enum.Updated),
5569
+ changes: z199.object({
5570
+ previousTitle: z199.string().optional(),
5450
5571
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5451
- previousContentHash: z193.string().optional()
5572
+ previousContentHash: z199.string().optional()
5452
5573
  })
5453
5574
  });
5454
- var DTODocumentationDraftStateDeleted = z193.object({
5455
- changeType: z193.literal(DTODocumentationDraftChangeType.enum.Deleted),
5456
- deletedAt: z193.coerce.date(),
5457
- deletedByUserId: z193.string()
5575
+ var DTODocumentationDraftStateDeleted = z199.object({
5576
+ changeType: z199.literal(DTODocumentationDraftChangeType.enum.Deleted),
5577
+ deletedAt: z199.coerce.date(),
5578
+ deletedByUserId: z199.string()
5458
5579
  });
5459
- var DTODocumentationDraftState = z193.discriminatedUnion("changeType", [
5580
+ var DTODocumentationDraftState = z199.discriminatedUnion("changeType", [
5460
5581
  DTODocumentationDraftStateCreated,
5461
5582
  DTODocumentationDraftStateUpdated,
5462
5583
  DTODocumentationDraftStateDeleted
5463
5584
  ]);
5464
5585
 
5465
5586
  // src/api/dto/elements/documentation/metadata.ts
5466
- import { z as z194 } from "zod";
5467
- var DTODocumentationPublishMetadata = z194.object({
5468
- lastPublishedByUserId: z194.string(),
5469
- lastPublishedAt: z194.coerce.date()
5587
+ import { z as z200 } from "zod";
5588
+ var DTODocumentationPublishMetadata = z200.object({
5589
+ lastPublishedByUserId: z200.string(),
5590
+ lastPublishedAt: z200.coerce.date()
5470
5591
  });
5471
5592
 
5472
5593
  // src/api/dto/elements/documentation/page-v2.ts
5473
- var DTODocumentationPageV2 = z195.object({
5474
- id: z195.string(),
5475
- persistentId: z195.string(),
5476
- designSystemVersionId: z195.string(),
5477
- title: z195.string(),
5594
+ var DTODocumentationPageV2 = z201.object({
5595
+ id: z201.string(),
5596
+ persistentId: z201.string(),
5597
+ designSystemVersionId: z201.string(),
5598
+ title: z201.string(),
5478
5599
  configuration: DTODocumentationItemConfigurationV2,
5479
- shortPersistentId: z195.string(),
5480
- slug: z195.string().optional(),
5481
- userSlug: z195.string().optional(),
5482
- createdAt: z195.coerce.date(),
5483
- updatedAt: z195.coerce.date(),
5484
- path: z195.string(),
5600
+ shortPersistentId: z201.string(),
5601
+ slug: z201.string().optional(),
5602
+ userSlug: z201.string().optional(),
5603
+ createdAt: z201.coerce.date(),
5604
+ updatedAt: z201.coerce.date(),
5605
+ path: z201.string(),
5485
5606
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5486
5607
  draftState: DTODocumentationDraftState.optional(),
5487
5608
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5489,197 +5610,197 @@ var DTODocumentationPageV2 = z195.object({
5489
5610
  /** Defines the approval state of the documentation page */
5490
5611
  approvalState: DTODocumentationPageApprovalState.optional(),
5491
5612
  // Backward compatibility
5492
- type: z195.literal("Page")
5613
+ type: z201.literal("Page")
5493
5614
  });
5494
- var DTOCreateDocumentationPageInputV2 = z195.object({
5615
+ var DTOCreateDocumentationPageInputV2 = z201.object({
5495
5616
  // Identifier
5496
- persistentId: z195.string().uuid(),
5617
+ persistentId: z201.string().uuid(),
5497
5618
  // Page properties
5498
- title: z195.string(),
5619
+ title: z201.string(),
5499
5620
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5500
5621
  // Page placement properties
5501
- parentPersistentId: z195.string().uuid(),
5502
- afterPersistentId: z195.string().uuid().nullish()
5622
+ parentPersistentId: z201.string().uuid(),
5623
+ afterPersistentId: z201.string().uuid().nullish()
5503
5624
  });
5504
- var DTOUpdateDocumentationPageInputV2 = z195.object({
5625
+ var DTOUpdateDocumentationPageInputV2 = z201.object({
5505
5626
  // Identifier of the group to update
5506
- id: z195.string(),
5627
+ id: z201.string(),
5507
5628
  // Page properties
5508
- title: z195.string().optional(),
5629
+ title: z201.string().optional(),
5509
5630
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5510
5631
  });
5511
- var DTOMoveDocumentationPageInputV2 = z195.object({
5632
+ var DTOMoveDocumentationPageInputV2 = z201.object({
5512
5633
  // Identifier of the group to update
5513
- id: z195.string(),
5634
+ id: z201.string(),
5514
5635
  // Page placement properties
5515
- parentPersistentId: z195.string().uuid(),
5516
- afterPersistentId: z195.string().uuid().nullish()
5636
+ parentPersistentId: z201.string().uuid(),
5637
+ afterPersistentId: z201.string().uuid().nullish()
5517
5638
  });
5518
- var DTODuplicateDocumentationPageInputV2 = z195.object({
5639
+ var DTODuplicateDocumentationPageInputV2 = z201.object({
5519
5640
  // Identifier of the page to duplicate from
5520
- id: z195.string(),
5641
+ id: z201.string(),
5521
5642
  // New page persistent id
5522
- persistentId: z195.string().uuid(),
5643
+ persistentId: z201.string().uuid(),
5523
5644
  // Page placement properties
5524
- parentPersistentId: z195.string().uuid(),
5525
- afterPersistentId: z195.string().uuid().nullish()
5645
+ parentPersistentId: z201.string().uuid(),
5646
+ afterPersistentId: z201.string().uuid().nullish()
5526
5647
  });
5527
- var DTODeleteDocumentationPageInputV2 = z195.object({
5648
+ var DTODeleteDocumentationPageInputV2 = z201.object({
5528
5649
  // Identifier
5529
- id: z195.string()
5650
+ id: z201.string()
5530
5651
  });
5531
- var DTORestoreDocumentationPageInput = z195.object({
5532
- persistentId: z195.string(),
5533
- snapshotId: z195.string().optional()
5652
+ var DTORestoreDocumentationPageInput = z201.object({
5653
+ persistentId: z201.string(),
5654
+ snapshotId: z201.string().optional()
5534
5655
  });
5535
- var DTORestoreDocumentationGroupInput = z195.object({
5536
- persistentId: z195.string(),
5537
- snapshotId: z195.string().optional()
5656
+ var DTORestoreDocumentationGroupInput = z201.object({
5657
+ persistentId: z201.string(),
5658
+ snapshotId: z201.string().optional()
5538
5659
  });
5539
- var DTODocumentationPageApprovalStateChangeInput = z195.object({
5540
- persistentId: z195.string(),
5660
+ var DTODocumentationPageApprovalStateChangeInput = z201.object({
5661
+ persistentId: z201.string(),
5541
5662
  approvalState: DocumentationPageApprovalState.optional()
5542
5663
  });
5543
5664
 
5544
5665
  // src/api/dto/documentation/documentation-page-snapshot.ts
5545
- var DTODocumentationPageSnapshot = z196.object({
5546
- id: z196.string(),
5547
- designSystemVersionId: z196.string(),
5548
- createdAt: z196.string(),
5549
- updatedAt: z196.string(),
5666
+ var DTODocumentationPageSnapshot = z202.object({
5667
+ id: z202.string(),
5668
+ designSystemVersionId: z202.string(),
5669
+ createdAt: z202.string(),
5670
+ updatedAt: z202.string(),
5550
5671
  documentationPage: DTODocumentationPageV2,
5551
- pageContentHash: z196.string(),
5672
+ pageContentHash: z202.string(),
5552
5673
  reason: DesignElementSnapshotReason
5553
5674
  });
5554
5675
 
5555
5676
  // src/api/dto/documentation/link-preview.ts
5556
- import { z as z197 } from "zod";
5557
- var DTODocumentationLinkPreviewResponse = z197.object({
5677
+ import { z as z203 } from "zod";
5678
+ var DTODocumentationLinkPreviewResponse = z203.object({
5558
5679
  linkPreview: DocumentationLinkPreview
5559
5680
  });
5560
- var DTODocumentationLinkPreviewRequest = z197.object({
5561
- url: z197.string().optional(),
5562
- documentationItemPersistentId: z197.string().optional()
5681
+ var DTODocumentationLinkPreviewRequest = z203.object({
5682
+ url: z203.string().optional(),
5683
+ documentationItemPersistentId: z203.string().optional()
5563
5684
  });
5564
5685
 
5565
5686
  // src/api/dto/documentation/publish.ts
5566
- import { z as z201 } from "zod";
5687
+ import { z as z207 } from "zod";
5567
5688
 
5568
5689
  // src/api/dto/export/exporter.ts
5569
- import { z as z198 } from "zod";
5570
- var DTOExporterType = z198.enum(["documentation", "code"]);
5571
- var DTOExporterSource = z198.enum(["git", "upload"]);
5572
- var DTOExporterMembershipRole = z198.enum(["Owner", "OwnerArchived", "User"]);
5573
- var DTOExporter = z198.object({
5574
- id: z198.string(),
5575
- name: z198.string(),
5576
- isPrivate: z198.boolean(),
5690
+ import { z as z204 } from "zod";
5691
+ var DTOExporterType = z204.enum(["documentation", "code"]);
5692
+ var DTOExporterSource = z204.enum(["git", "upload"]);
5693
+ var DTOExporterMembershipRole = z204.enum(["Owner", "OwnerArchived", "User"]);
5694
+ var DTOExporter = z204.object({
5695
+ id: z204.string(),
5696
+ name: z204.string(),
5697
+ isPrivate: z204.boolean(),
5577
5698
  exporterType: DTOExporterType,
5578
- isDefaultDocumentationExporter: z198.boolean(),
5579
- iconURL: z198.string().optional(),
5699
+ isDefaultDocumentationExporter: z204.boolean(),
5700
+ iconURL: z204.string().optional(),
5580
5701
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5581
5702
  customBlocks: PulsarCustomBlock.array(),
5582
- blockVariants: z198.record(z198.string(), PulsarContributionVariant.array()),
5583
- usesBrands: z198.boolean(),
5584
- usesThemes: z198.boolean(),
5703
+ blockVariants: z204.record(z204.string(), PulsarContributionVariant.array()),
5704
+ usesBrands: z204.boolean(),
5705
+ usesThemes: z204.boolean(),
5585
5706
  source: DTOExporterSource,
5586
- gitUrl: z198.string().optional(),
5587
- gitBranch: z198.string().optional(),
5588
- gitDirectory: z198.string().optional()
5707
+ gitUrl: z204.string().optional(),
5708
+ gitBranch: z204.string().optional(),
5709
+ gitDirectory: z204.string().optional()
5589
5710
  });
5590
- var DTOExporterMembership = z198.object({
5591
- workspaceId: z198.string(),
5592
- exporterId: z198.string(),
5711
+ var DTOExporterMembership = z204.object({
5712
+ workspaceId: z204.string(),
5713
+ exporterId: z204.string(),
5593
5714
  role: DTOExporterMembershipRole
5594
5715
  });
5595
- var DTOExporterCreateOutput = z198.object({
5716
+ var DTOExporterCreateOutput = z204.object({
5596
5717
  exporter: DTOExporter,
5597
5718
  membership: DTOExporterMembership
5598
5719
  });
5599
- var DTOExporterGitProviderEnum = z198.enum(["github", "gitlab", "bitbucket", "azure"]);
5600
- var DTOExporterCreateInput = z198.object({
5601
- url: z198.string(),
5720
+ var DTOExporterGitProviderEnum = z204.enum(["github", "gitlab", "bitbucket", "azure"]);
5721
+ var DTOExporterCreateInput = z204.object({
5722
+ url: z204.string(),
5602
5723
  provider: DTOExporterGitProviderEnum
5603
5724
  });
5604
- var DTOExporterUpdateInput = z198.object({
5605
- url: z198.string().optional()
5725
+ var DTOExporterUpdateInput = z204.object({
5726
+ url: z204.string().optional()
5606
5727
  });
5607
5728
 
5608
5729
  // src/api/dto/export/filter.ts
5609
5730
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5610
5731
 
5611
5732
  // src/api/dto/export/job.ts
5612
- import { z as z199 } from "zod";
5613
- var DTOExportJobCreatedBy = z199.object({
5614
- userId: z199.string(),
5615
- userName: z199.string()
5733
+ import { z as z205 } from "zod";
5734
+ var DTOExportJobCreatedBy = z205.object({
5735
+ userId: z205.string(),
5736
+ userName: z205.string()
5616
5737
  });
5617
- var DTOExportJobDesignSystemPreview = z199.object({
5618
- id: z199.string(),
5738
+ var DTOExportJobDesignSystemPreview = z205.object({
5739
+ id: z205.string(),
5619
5740
  meta: ObjectMeta
5620
5741
  });
5621
- var DTOExportJobDesignSystemVersionPreview = z199.object({
5622
- id: z199.string(),
5742
+ var DTOExportJobDesignSystemVersionPreview = z205.object({
5743
+ id: z205.string(),
5623
5744
  meta: ObjectMeta,
5624
- version: z199.string(),
5625
- isReadonly: z199.boolean()
5745
+ version: z205.string(),
5746
+ isReadonly: z205.boolean()
5626
5747
  });
5627
- var DTOExportJobDestinations = z199.object({
5748
+ var DTOExportJobDestinations = z205.object({
5628
5749
  s3: ExporterDestinationS3.optional(),
5629
5750
  azure: ExporterDestinationAzure.optional(),
5630
5751
  bitbucket: ExporterDestinationBitbucket.optional(),
5631
5752
  github: ExporterDestinationGithub.optional(),
5632
5753
  gitlab: ExporterDestinationGitlab.optional(),
5633
5754
  documentation: ExporterDestinationDocs.optional(),
5634
- webhookUrl: z199.string().optional()
5755
+ webhookUrl: z205.string().optional()
5635
5756
  });
5636
5757
  var DTOExportJobResult = ExportJobResult.omit({
5637
5758
  sndocs: true
5638
5759
  }).extend({
5639
5760
  documentation: ExportJobDocsDestinationResult.optional()
5640
5761
  });
5641
- var DTOExportJob = z199.object({
5642
- id: z199.string(),
5643
- createdAt: z199.coerce.date(),
5644
- finishedAt: z199.coerce.date().optional(),
5645
- index: z199.number().optional(),
5762
+ var DTOExportJob = z205.object({
5763
+ id: z205.string(),
5764
+ createdAt: z205.coerce.date(),
5765
+ finishedAt: z205.coerce.date().optional(),
5766
+ index: z205.number().optional(),
5646
5767
  status: ExportJobStatus,
5647
- estimatedExecutionTime: z199.number().optional(),
5768
+ estimatedExecutionTime: z205.number().optional(),
5648
5769
  createdBy: DTOExportJobCreatedBy.optional(),
5649
5770
  designSystem: DTOExportJobDesignSystemPreview,
5650
5771
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5651
5772
  destinations: DTOExportJobDestinations,
5652
- exporterId: z199.string(),
5653
- scheduleId: z199.string().optional(),
5773
+ exporterId: z205.string(),
5774
+ scheduleId: z205.string().optional(),
5654
5775
  result: DTOExportJobResult.optional(),
5655
- brandPersistentId: z199.string().optional(),
5656
- themePersistentId: z199.string().optional(),
5657
- themePersistentIds: z199.string().array().optional()
5776
+ brandPersistentId: z205.string().optional(),
5777
+ themePersistentId: z205.string().optional(),
5778
+ themePersistentIds: z205.string().array().optional()
5658
5779
  });
5659
- var DTOExportJobResponse = z199.object({
5780
+ var DTOExportJobResponse = z205.object({
5660
5781
  job: DTOExportJob
5661
5782
  });
5662
5783
 
5663
5784
  // src/api/dto/export/pipeline.ts
5664
- import { z as z200 } from "zod";
5665
- var DTOPipeline = z200.object({
5666
- id: z200.string(),
5667
- name: z200.string(),
5785
+ import { z as z206 } from "zod";
5786
+ var DTOPipeline = z206.object({
5787
+ id: z206.string(),
5788
+ name: z206.string(),
5668
5789
  eventType: PipelineEventType,
5669
- isEnabled: z200.boolean(),
5670
- workspaceId: z200.string(),
5671
- designSystemId: z200.string(),
5672
- exporterId: z200.string(),
5673
- brandPersistentId: z200.string().optional(),
5674
- themePersistentId: z200.string().optional(),
5675
- themePersistentIds: z200.string().array().optional(),
5790
+ isEnabled: z206.boolean(),
5791
+ workspaceId: z206.string(),
5792
+ designSystemId: z206.string(),
5793
+ exporterId: z206.string(),
5794
+ brandPersistentId: z206.string().optional(),
5795
+ themePersistentId: z206.string().optional(),
5796
+ themePersistentIds: z206.string().array().optional(),
5676
5797
  ...ExportDestinationsMap.shape,
5677
5798
  latestJobs: DTOExportJob.array()
5678
5799
  });
5679
5800
 
5680
5801
  // src/api/dto/documentation/publish.ts
5681
5802
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5682
- var DTOPublishDocumentationRequest = z201.object({
5803
+ var DTOPublishDocumentationRequest = z207.object({
5683
5804
  environment: PublishedDocEnvironment,
5684
5805
  /**
5685
5806
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5687,42 +5808,42 @@ var DTOPublishDocumentationRequest = z201.object({
5687
5808
  */
5688
5809
  changes: DTOPublishDocumentationChanges.optional()
5689
5810
  });
5690
- var DTOPublishDocumentationResponse = z201.object({
5811
+ var DTOPublishDocumentationResponse = z207.object({
5691
5812
  job: DTOExportJob
5692
5813
  });
5693
5814
 
5694
5815
  // src/api/dto/elements/components/figma-component.ts
5695
- import { z as z202 } from "zod";
5816
+ import { z as z208 } from "zod";
5696
5817
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5697
- var DTOFigmaComponentPropertyMap = z202.record(DTOFigmaComponentProperty);
5698
- var DTOFigmaComponent = z202.object({
5699
- id: z202.string(),
5700
- persistentId: z202.string(),
5701
- designSystemVersionId: z202.string(),
5702
- brandId: z202.string(),
5703
- thumbnailUrl: z202.string().optional(),
5704
- svgUrl: z202.string().optional(),
5705
- exportProperties: z202.object({
5706
- isAsset: z202.boolean()
5818
+ var DTOFigmaComponentPropertyMap = z208.record(DTOFigmaComponentProperty);
5819
+ var DTOFigmaComponent = z208.object({
5820
+ id: z208.string(),
5821
+ persistentId: z208.string(),
5822
+ designSystemVersionId: z208.string(),
5823
+ brandId: z208.string(),
5824
+ thumbnailUrl: z208.string().optional(),
5825
+ svgUrl: z208.string().optional(),
5826
+ exportProperties: z208.object({
5827
+ isAsset: z208.boolean()
5707
5828
  }),
5708
- createdAt: z202.coerce.date(),
5709
- updatedAt: z202.coerce.date(),
5829
+ createdAt: z208.coerce.date(),
5830
+ updatedAt: z208.coerce.date(),
5710
5831
  meta: ObjectMeta,
5711
5832
  originComponent: FigmaComponentOrigin.optional(),
5712
- parentComponentPersistentId: z202.string().optional(),
5713
- childrenPersistentIds: z202.string().array().optional(),
5833
+ parentComponentPersistentId: z208.string().optional(),
5834
+ childrenPersistentIds: z208.string().array().optional(),
5714
5835
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5715
- variantPropertyValues: z202.record(z202.string()).optional()
5836
+ variantPropertyValues: z208.record(z208.string()).optional()
5716
5837
  });
5717
- var DTOFigmaComponentListResponse = z202.object({
5838
+ var DTOFigmaComponentListResponse = z208.object({
5718
5839
  components: DTOFigmaComponent.array()
5719
5840
  });
5720
5841
 
5721
5842
  // src/api/dto/elements/documentation/group-action.ts
5722
- import { z as z204 } from "zod";
5843
+ import { z as z210 } from "zod";
5723
5844
 
5724
5845
  // src/api/dto/elements/documentation/group-v2.ts
5725
- import { z as z203 } from "zod";
5846
+ import { z as z209 } from "zod";
5726
5847
  var DTODocumentationGroupV2 = ElementGroup.omit({
5727
5848
  sortOrder: true,
5728
5849
  parentPersistentId: true,
@@ -5732,13 +5853,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5732
5853
  data: true,
5733
5854
  shortPersistentId: true
5734
5855
  }).extend({
5735
- title: z203.string(),
5736
- isRoot: z203.boolean(),
5737
- childrenIds: z203.array(z203.string()),
5856
+ title: z209.string(),
5857
+ isRoot: z209.boolean(),
5858
+ childrenIds: z209.array(z209.string()),
5738
5859
  groupBehavior: DocumentationGroupBehavior,
5739
- shortPersistentId: z203.string(),
5860
+ shortPersistentId: z209.string(),
5740
5861
  configuration: DTODocumentationItemConfigurationV2,
5741
- type: z203.literal("Group"),
5862
+ type: z209.literal("Group"),
5742
5863
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5743
5864
  draftState: DTODocumentationDraftState.optional(),
5744
5865
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -5746,127 +5867,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5746
5867
  //** An approval state for frontend to utilize. */
5747
5868
  approvalState: DTODocumentationGroupApprovalState.optional()
5748
5869
  });
5749
- var DTOCreateDocumentationGroupInput = z203.object({
5870
+ var DTOCreateDocumentationGroupInput = z209.object({
5750
5871
  // Identifier
5751
- persistentId: z203.string().uuid(),
5872
+ persistentId: z209.string().uuid(),
5752
5873
  // Group properties
5753
- title: z203.string(),
5874
+ title: z209.string(),
5754
5875
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5755
5876
  // Group placement properties
5756
- afterPersistentId: z203.string().uuid().nullish(),
5757
- parentPersistentId: z203.string().uuid()
5877
+ afterPersistentId: z209.string().uuid().nullish(),
5878
+ parentPersistentId: z209.string().uuid()
5758
5879
  });
5759
- var DTOUpdateDocumentationGroupInput = z203.object({
5880
+ var DTOUpdateDocumentationGroupInput = z209.object({
5760
5881
  // Identifier of the group to update
5761
- id: z203.string(),
5882
+ id: z209.string(),
5762
5883
  // Group properties
5763
- title: z203.string().optional(),
5884
+ title: z209.string().optional(),
5764
5885
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5765
5886
  });
5766
- var DTOMoveDocumentationGroupInput = z203.object({
5887
+ var DTOMoveDocumentationGroupInput = z209.object({
5767
5888
  // Identifier of the group to update
5768
- id: z203.string(),
5889
+ id: z209.string(),
5769
5890
  // Group placement properties
5770
- parentPersistentId: z203.string().uuid(),
5771
- afterPersistentId: z203.string().uuid().nullish()
5891
+ parentPersistentId: z209.string().uuid(),
5892
+ afterPersistentId: z209.string().uuid().nullish()
5772
5893
  });
5773
- var DTODuplicateDocumentationGroupInput = z203.object({
5894
+ var DTODuplicateDocumentationGroupInput = z209.object({
5774
5895
  // Identifier of the group to duplicate from
5775
- id: z203.string(),
5896
+ id: z209.string(),
5776
5897
  // New group persistent id
5777
- persistentId: z203.string().uuid(),
5898
+ persistentId: z209.string().uuid(),
5778
5899
  // Group placement properties
5779
- afterPersistentId: z203.string().uuid().nullish(),
5780
- parentPersistentId: z203.string().uuid()
5900
+ afterPersistentId: z209.string().uuid().nullish(),
5901
+ parentPersistentId: z209.string().uuid()
5781
5902
  });
5782
- var DTOCreateDocumentationTabInput = z203.object({
5903
+ var DTOCreateDocumentationTabInput = z209.object({
5783
5904
  // New group persistent id
5784
- persistentId: z203.string().uuid(),
5905
+ persistentId: z209.string().uuid(),
5785
5906
  // If this is page, we will attempt to convert it to tab
5786
5907
  // If this is tab group, we will add a new tab to it
5787
- fromItemPersistentId: z203.string(),
5788
- tabName: z203.string()
5908
+ fromItemPersistentId: z209.string(),
5909
+ tabName: z209.string()
5789
5910
  });
5790
- var DTODeleteDocumentationTabGroupInput = z203.object({
5911
+ var DTODeleteDocumentationTabGroupInput = z209.object({
5791
5912
  // Deleted group id
5792
- id: z203.string()
5913
+ id: z209.string()
5793
5914
  });
5794
- var DTODeleteDocumentationGroupInput = z203.object({
5915
+ var DTODeleteDocumentationGroupInput = z209.object({
5795
5916
  // Identifier
5796
- id: z203.string(),
5917
+ id: z209.string(),
5797
5918
  // Deletion options
5798
- deleteSubtree: z203.boolean().default(false)
5919
+ deleteSubtree: z209.boolean().default(false)
5799
5920
  });
5800
5921
 
5801
5922
  // src/api/dto/elements/documentation/group-action.ts
5802
- var SuccessPayload = z204.object({
5803
- success: z204.literal(true)
5923
+ var SuccessPayload = z210.object({
5924
+ success: z210.literal(true)
5804
5925
  });
5805
- var DTODocumentationGroupCreateActionOutputV2 = z204.object({
5806
- type: z204.literal("DocumentationGroupCreate"),
5926
+ var DTODocumentationGroupCreateActionOutputV2 = z210.object({
5927
+ type: z210.literal("DocumentationGroupCreate"),
5807
5928
  output: SuccessPayload
5808
5929
  });
5809
- var DTODocumentationTabCreateActionOutputV2 = z204.object({
5810
- type: z204.literal("DocumentationTabCreate"),
5930
+ var DTODocumentationTabCreateActionOutputV2 = z210.object({
5931
+ type: z210.literal("DocumentationTabCreate"),
5811
5932
  output: SuccessPayload
5812
5933
  });
5813
- var DTODocumentationGroupUpdateActionOutputV2 = z204.object({
5814
- type: z204.literal("DocumentationGroupUpdate"),
5934
+ var DTODocumentationGroupUpdateActionOutputV2 = z210.object({
5935
+ type: z210.literal("DocumentationGroupUpdate"),
5815
5936
  output: SuccessPayload
5816
5937
  });
5817
- var DTODocumentationGroupMoveActionOutputV2 = z204.object({
5818
- type: z204.literal("DocumentationGroupMove"),
5938
+ var DTODocumentationGroupMoveActionOutputV2 = z210.object({
5939
+ type: z210.literal("DocumentationGroupMove"),
5819
5940
  output: SuccessPayload
5820
5941
  });
5821
- var DTODocumentationGroupDuplicateActionOutputV2 = z204.object({
5822
- type: z204.literal("DocumentationGroupDuplicate"),
5942
+ var DTODocumentationGroupDuplicateActionOutputV2 = z210.object({
5943
+ type: z210.literal("DocumentationGroupDuplicate"),
5823
5944
  output: SuccessPayload
5824
5945
  });
5825
- var DTODocumentationGroupDeleteActionOutputV2 = z204.object({
5826
- type: z204.literal("DocumentationGroupDelete"),
5946
+ var DTODocumentationGroupDeleteActionOutputV2 = z210.object({
5947
+ type: z210.literal("DocumentationGroupDelete"),
5827
5948
  output: SuccessPayload
5828
5949
  });
5829
- var DTODocumentationTabGroupDeleteActionOutputV2 = z204.object({
5830
- type: z204.literal("DocumentationTabGroupDelete"),
5950
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z210.object({
5951
+ type: z210.literal("DocumentationTabGroupDelete"),
5831
5952
  output: SuccessPayload
5832
5953
  });
5833
- var DTODocumentationGroupCreateActionInputV2 = z204.object({
5834
- type: z204.literal("DocumentationGroupCreate"),
5954
+ var DTODocumentationGroupCreateActionInputV2 = z210.object({
5955
+ type: z210.literal("DocumentationGroupCreate"),
5835
5956
  input: DTOCreateDocumentationGroupInput
5836
5957
  });
5837
- var DTODocumentationTabCreateActionInputV2 = z204.object({
5838
- type: z204.literal("DocumentationTabCreate"),
5958
+ var DTODocumentationTabCreateActionInputV2 = z210.object({
5959
+ type: z210.literal("DocumentationTabCreate"),
5839
5960
  input: DTOCreateDocumentationTabInput
5840
5961
  });
5841
- var DTODocumentationGroupUpdateActionInputV2 = z204.object({
5842
- type: z204.literal("DocumentationGroupUpdate"),
5962
+ var DTODocumentationGroupUpdateActionInputV2 = z210.object({
5963
+ type: z210.literal("DocumentationGroupUpdate"),
5843
5964
  input: DTOUpdateDocumentationGroupInput
5844
5965
  });
5845
- var DTODocumentationGroupMoveActionInputV2 = z204.object({
5846
- type: z204.literal("DocumentationGroupMove"),
5966
+ var DTODocumentationGroupMoveActionInputV2 = z210.object({
5967
+ type: z210.literal("DocumentationGroupMove"),
5847
5968
  input: DTOMoveDocumentationGroupInput
5848
5969
  });
5849
- var DTODocumentationGroupDuplicateActionInputV2 = z204.object({
5850
- type: z204.literal("DocumentationGroupDuplicate"),
5970
+ var DTODocumentationGroupDuplicateActionInputV2 = z210.object({
5971
+ type: z210.literal("DocumentationGroupDuplicate"),
5851
5972
  input: DTODuplicateDocumentationGroupInput
5852
5973
  });
5853
- var DTODocumentationGroupDeleteActionInputV2 = z204.object({
5854
- type: z204.literal("DocumentationGroupDelete"),
5974
+ var DTODocumentationGroupDeleteActionInputV2 = z210.object({
5975
+ type: z210.literal("DocumentationGroupDelete"),
5855
5976
  input: DTODeleteDocumentationGroupInput
5856
5977
  });
5857
- var DTODocumentationTabGroupDeleteActionInputV2 = z204.object({
5858
- type: z204.literal("DocumentationTabGroupDelete"),
5978
+ var DTODocumentationTabGroupDeleteActionInputV2 = z210.object({
5979
+ type: z210.literal("DocumentationTabGroupDelete"),
5859
5980
  input: DTODeleteDocumentationTabGroupInput
5860
5981
  });
5861
5982
 
5862
5983
  // src/api/dto/elements/documentation/group-v1.ts
5863
- import { z as z206 } from "zod";
5984
+ import { z as z212 } from "zod";
5864
5985
 
5865
5986
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5866
- import { z as z205 } from "zod";
5867
- var DocumentationColorV1 = z205.object({
5868
- aliasTo: z205.string().optional(),
5869
- value: z205.string().optional()
5987
+ import { z as z211 } from "zod";
5988
+ var DocumentationColorV1 = z211.object({
5989
+ aliasTo: z211.string().optional(),
5990
+ value: z211.string().optional()
5870
5991
  });
5871
5992
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5872
5993
  foregroundColor: true,
@@ -5875,10 +5996,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5875
5996
  foregroundColor: DocumentationColorV1.optional(),
5876
5997
  backgroundColor: DocumentationColorV1.optional()
5877
5998
  });
5878
- var DTODocumentationItemConfigurationV1 = z205.object({
5879
- showSidebar: z205.boolean(),
5880
- isPrivate: z205.boolean(),
5881
- isHidden: z205.boolean(),
5999
+ var DTODocumentationItemConfigurationV1 = z211.object({
6000
+ showSidebar: z211.boolean(),
6001
+ isPrivate: z211.boolean(),
6002
+ isHidden: z211.boolean(),
5882
6003
  header: DTODocumentationItemHeaderV1
5883
6004
  });
5884
6005
 
@@ -5892,27 +6013,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5892
6013
  data: true,
5893
6014
  shortPersistentId: true
5894
6015
  }).extend({
5895
- title: z206.string(),
5896
- isRoot: z206.boolean(),
5897
- childrenIds: z206.array(z206.string()),
6016
+ title: z212.string(),
6017
+ isRoot: z212.boolean(),
6018
+ childrenIds: z212.array(z212.string()),
5898
6019
  groupBehavior: DocumentationGroupBehavior,
5899
- shortPersistentId: z206.string(),
5900
- type: z206.literal("Group")
6020
+ shortPersistentId: z212.string(),
6021
+ type: z212.literal("Group")
5901
6022
  });
5902
6023
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5903
6024
  configuration: DTODocumentationItemConfigurationV1
5904
6025
  });
5905
6026
 
5906
6027
  // src/api/dto/elements/documentation/hierarchy.ts
5907
- import { z as z207 } from "zod";
5908
- var DTODocumentationHierarchyV2 = z207.object({
5909
- pages: z207.array(
6028
+ import { z as z213 } from "zod";
6029
+ var DTODocumentationHierarchyV2 = z213.object({
6030
+ pages: z213.array(
5910
6031
  DTODocumentationPageV2.extend({
5911
6032
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5912
6033
  draftState: DTODocumentationDraftState.optional()
5913
6034
  })
5914
6035
  ),
5915
- groups: z207.array(
6036
+ groups: z213.array(
5916
6037
  DTODocumentationGroupV2.extend({
5917
6038
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5918
6039
  draftState: DTODocumentationDraftState.optional()
@@ -5921,84 +6042,84 @@ var DTODocumentationHierarchyV2 = z207.object({
5921
6042
  });
5922
6043
 
5923
6044
  // src/api/dto/elements/documentation/page-actions-v2.ts
5924
- import { z as z208 } from "zod";
5925
- var SuccessPayload2 = z208.object({
5926
- success: z208.literal(true)
6045
+ import { z as z214 } from "zod";
6046
+ var SuccessPayload2 = z214.object({
6047
+ success: z214.literal(true)
5927
6048
  });
5928
- var DTODocumentationPageCreateActionOutputV2 = z208.object({
5929
- type: z208.literal("DocumentationPageCreate"),
6049
+ var DTODocumentationPageCreateActionOutputV2 = z214.object({
6050
+ type: z214.literal("DocumentationPageCreate"),
5930
6051
  output: SuccessPayload2
5931
6052
  });
5932
- var DTODocumentationPageUpdateActionOutputV2 = z208.object({
5933
- type: z208.literal("DocumentationPageUpdate"),
6053
+ var DTODocumentationPageUpdateActionOutputV2 = z214.object({
6054
+ type: z214.literal("DocumentationPageUpdate"),
5934
6055
  output: SuccessPayload2
5935
6056
  });
5936
- var DTODocumentationPageMoveActionOutputV2 = z208.object({
5937
- type: z208.literal("DocumentationPageMove"),
6057
+ var DTODocumentationPageMoveActionOutputV2 = z214.object({
6058
+ type: z214.literal("DocumentationPageMove"),
5938
6059
  output: SuccessPayload2
5939
6060
  });
5940
- var DTODocumentationPageDuplicateActionOutputV2 = z208.object({
5941
- type: z208.literal("DocumentationPageDuplicate"),
6061
+ var DTODocumentationPageDuplicateActionOutputV2 = z214.object({
6062
+ type: z214.literal("DocumentationPageDuplicate"),
5942
6063
  output: SuccessPayload2
5943
6064
  });
5944
- var DTODocumentationPageDeleteActionOutputV2 = z208.object({
5945
- type: z208.literal("DocumentationPageDelete"),
6065
+ var DTODocumentationPageDeleteActionOutputV2 = z214.object({
6066
+ type: z214.literal("DocumentationPageDelete"),
5946
6067
  output: SuccessPayload2
5947
6068
  });
5948
- var DTODocumentationPageRestoreActionOutput = z208.object({
5949
- type: z208.literal("DocumentationPageRestore"),
6069
+ var DTODocumentationPageRestoreActionOutput = z214.object({
6070
+ type: z214.literal("DocumentationPageRestore"),
5950
6071
  output: SuccessPayload2
5951
6072
  });
5952
- var DTODocumentationGroupRestoreActionOutput = z208.object({
5953
- type: z208.literal("DocumentationGroupRestore"),
6073
+ var DTODocumentationGroupRestoreActionOutput = z214.object({
6074
+ type: z214.literal("DocumentationGroupRestore"),
5954
6075
  output: SuccessPayload2
5955
6076
  });
5956
- var DTODocumentationPageApprovalStateChangeActionOutput = z208.object({
5957
- type: z208.literal("DocumentationPageApprovalStateChange"),
6077
+ var DTODocumentationPageApprovalStateChangeActionOutput = z214.object({
6078
+ type: z214.literal("DocumentationPageApprovalStateChange"),
5958
6079
  output: SuccessPayload2
5959
6080
  });
5960
- var DTODocumentationPageCreateActionInputV2 = z208.object({
5961
- type: z208.literal("DocumentationPageCreate"),
6081
+ var DTODocumentationPageCreateActionInputV2 = z214.object({
6082
+ type: z214.literal("DocumentationPageCreate"),
5962
6083
  input: DTOCreateDocumentationPageInputV2
5963
6084
  });
5964
- var DTODocumentationPageUpdateActionInputV2 = z208.object({
5965
- type: z208.literal("DocumentationPageUpdate"),
6085
+ var DTODocumentationPageUpdateActionInputV2 = z214.object({
6086
+ type: z214.literal("DocumentationPageUpdate"),
5966
6087
  input: DTOUpdateDocumentationPageInputV2
5967
6088
  });
5968
- var DTODocumentationPageMoveActionInputV2 = z208.object({
5969
- type: z208.literal("DocumentationPageMove"),
6089
+ var DTODocumentationPageMoveActionInputV2 = z214.object({
6090
+ type: z214.literal("DocumentationPageMove"),
5970
6091
  input: DTOMoveDocumentationPageInputV2
5971
6092
  });
5972
- var DTODocumentationPageDuplicateActionInputV2 = z208.object({
5973
- type: z208.literal("DocumentationPageDuplicate"),
6093
+ var DTODocumentationPageDuplicateActionInputV2 = z214.object({
6094
+ type: z214.literal("DocumentationPageDuplicate"),
5974
6095
  input: DTODuplicateDocumentationPageInputV2
5975
6096
  });
5976
- var DTODocumentationPageDeleteActionInputV2 = z208.object({
5977
- type: z208.literal("DocumentationPageDelete"),
6097
+ var DTODocumentationPageDeleteActionInputV2 = z214.object({
6098
+ type: z214.literal("DocumentationPageDelete"),
5978
6099
  input: DTODeleteDocumentationPageInputV2
5979
6100
  });
5980
- var DTODocumentationPageRestoreActionInput = z208.object({
5981
- type: z208.literal("DocumentationPageRestore"),
6101
+ var DTODocumentationPageRestoreActionInput = z214.object({
6102
+ type: z214.literal("DocumentationPageRestore"),
5982
6103
  input: DTORestoreDocumentationPageInput
5983
6104
  });
5984
- var DTODocumentationGroupRestoreActionInput = z208.object({
5985
- type: z208.literal("DocumentationGroupRestore"),
6105
+ var DTODocumentationGroupRestoreActionInput = z214.object({
6106
+ type: z214.literal("DocumentationGroupRestore"),
5986
6107
  input: DTORestoreDocumentationGroupInput
5987
6108
  });
5988
- var DTODocumentationPageApprovalStateChangeActionInput = z208.object({
5989
- type: z208.literal("DocumentationPageApprovalStateChange"),
6109
+ var DTODocumentationPageApprovalStateChangeActionInput = z214.object({
6110
+ type: z214.literal("DocumentationPageApprovalStateChange"),
5990
6111
  input: DTODocumentationPageApprovalStateChangeInput
5991
6112
  });
5992
6113
 
5993
6114
  // src/api/dto/elements/documentation/page-content.ts
5994
- import { z as z209 } from "zod";
6115
+ import { z as z215 } from "zod";
5995
6116
  var DTODocumentationPageContent = DocumentationPageContent;
5996
- var DTODocumentationPageContentGetResponse = z209.object({
6117
+ var DTODocumentationPageContentGetResponse = z215.object({
5997
6118
  pageContent: DTODocumentationPageContent
5998
6119
  });
5999
6120
 
6000
6121
  // src/api/dto/elements/documentation/page-v1.ts
6001
- import { z as z210 } from "zod";
6122
+ import { z as z216 } from "zod";
6002
6123
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6003
6124
  data: true,
6004
6125
  meta: true,
@@ -6006,32 +6127,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6006
6127
  sortOrder: true
6007
6128
  }).extend({
6008
6129
  configuration: DTODocumentationItemConfigurationV1,
6009
- blocks: z210.array(PageBlockV1),
6010
- title: z210.string(),
6011
- path: z210.string()
6130
+ blocks: z216.array(PageBlockV1),
6131
+ title: z216.string(),
6132
+ path: z216.string()
6012
6133
  });
6013
6134
 
6014
6135
  // src/api/dto/elements/figma-nodes/figma-node.ts
6015
- import { z as z211 } from "zod";
6136
+ import { z as z217 } from "zod";
6016
6137
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6017
- var DTOFigmaNodeOrigin = z211.object({
6018
- sourceId: z211.string(),
6019
- fileId: z211.string().optional(),
6020
- parentName: z211.string().optional()
6138
+ var DTOFigmaNodeOrigin = z217.object({
6139
+ sourceId: z217.string(),
6140
+ fileId: z217.string().optional(),
6141
+ parentName: z217.string().optional()
6021
6142
  });
6022
- var DTOFigmaNodeData = z211.object({
6143
+ var DTOFigmaNodeData = z217.object({
6023
6144
  // Id of the node in the Figma file
6024
- figmaNodeId: z211.string(),
6145
+ figmaNodeId: z217.string(),
6025
6146
  // Validity
6026
- isValid: z211.boolean(),
6147
+ isValid: z217.boolean(),
6027
6148
  // Asset data
6028
- assetId: z211.string(),
6029
- assetUrl: z211.string(),
6149
+ assetId: z217.string(),
6150
+ assetUrl: z217.string(),
6030
6151
  assetFormat: DTOFigmaNodeRenderFormat,
6031
6152
  // Asset metadata
6032
- assetScale: z211.number(),
6033
- assetWidth: z211.number().optional(),
6034
- assetHeight: z211.number().optional()
6153
+ assetScale: z217.number(),
6154
+ assetWidth: z217.number().optional(),
6155
+ assetHeight: z217.number().optional()
6035
6156
  });
6036
6157
  var DTOFigmaNode = FigmaNodeReference.omit({
6037
6158
  data: true,
@@ -6040,15 +6161,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6040
6161
  data: DTOFigmaNodeData,
6041
6162
  origin: DTOFigmaNodeOrigin
6042
6163
  });
6043
- var DTOFigmaNodeRenderInput = z211.object({
6164
+ var DTOFigmaNodeRenderInput = z217.object({
6044
6165
  /**
6045
6166
  * Id of a design system's data source representing a linked Figma file
6046
6167
  */
6047
- sourceId: z211.string(),
6168
+ sourceId: z217.string(),
6048
6169
  /**
6049
6170
  * Id of a node within the Figma file
6050
6171
  */
6051
- figmaFileNodeId: z211.string(),
6172
+ figmaFileNodeId: z217.string(),
6052
6173
  /**
6053
6174
  * Format in which the node must be rendered, png by default.
6054
6175
  */
@@ -6056,97 +6177,97 @@ var DTOFigmaNodeRenderInput = z211.object({
6056
6177
  });
6057
6178
 
6058
6179
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6059
- import { z as z212 } from "zod";
6060
- var DTOFigmaNodeRenderActionOutput = z212.object({
6061
- type: z212.literal("FigmaNodeRender"),
6062
- figmaNodes: z212.array(DTOFigmaNode)
6180
+ import { z as z218 } from "zod";
6181
+ var DTOFigmaNodeRenderActionOutput = z218.object({
6182
+ type: z218.literal("FigmaNodeRender"),
6183
+ figmaNodes: z218.array(DTOFigmaNode)
6063
6184
  });
6064
- var DTOFigmaNodeRenderActionInput = z212.object({
6065
- type: z212.literal("FigmaNodeRender"),
6185
+ var DTOFigmaNodeRenderActionInput = z218.object({
6186
+ type: z218.literal("FigmaNodeRender"),
6066
6187
  input: DTOFigmaNodeRenderInput.array()
6067
6188
  });
6068
6189
 
6069
6190
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6070
- import { z as z214 } from "zod";
6191
+ import { z as z220 } from "zod";
6071
6192
 
6072
6193
  // src/api/dto/elements/properties/property-definitions.ts
6073
- import { z as z213 } from "zod";
6194
+ import { z as z219 } from "zod";
6074
6195
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6075
- var DTOElementPropertyDefinition = z213.object({
6076
- id: z213.string(),
6077
- designSystemVersionId: z213.string(),
6196
+ var DTOElementPropertyDefinition = z219.object({
6197
+ id: z219.string(),
6198
+ designSystemVersionId: z219.string(),
6078
6199
  meta: ObjectMeta,
6079
- persistentId: z213.string(),
6200
+ persistentId: z219.string(),
6080
6201
  type: ElementPropertyTypeSchema,
6081
6202
  targetElementType: ElementPropertyTargetType,
6082
- codeName: z213.string().regex(CODE_NAME_REGEX2),
6083
- options: z213.array(ElementPropertyDefinitionOption).optional(),
6203
+ codeName: z219.string().regex(CODE_NAME_REGEX2),
6204
+ options: z219.array(ElementPropertyDefinitionOption).optional(),
6084
6205
  linkElementType: ElementPropertyLinkType.optional()
6085
6206
  });
6086
- var DTOElementPropertyDefinitionsGetResponse = z213.object({
6087
- definitions: z213.array(DTOElementPropertyDefinition)
6207
+ var DTOElementPropertyDefinitionsGetResponse = z219.object({
6208
+ definitions: z219.array(DTOElementPropertyDefinition)
6088
6209
  });
6089
6210
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6090
6211
  id: true,
6091
6212
  designSystemVersionId: true
6092
6213
  });
6093
- var DTOUpdateElementPropertyDefinitionInputV2 = z213.object({
6094
- id: z213.string(),
6095
- name: z213.string().optional(),
6096
- description: z213.string().optional(),
6097
- codeName: z213.string().regex(CODE_NAME_REGEX2).optional(),
6098
- options: z213.array(ElementPropertyDefinitionOption).optional()
6214
+ var DTOUpdateElementPropertyDefinitionInputV2 = z219.object({
6215
+ id: z219.string(),
6216
+ name: z219.string().optional(),
6217
+ description: z219.string().optional(),
6218
+ codeName: z219.string().regex(CODE_NAME_REGEX2).optional(),
6219
+ options: z219.array(ElementPropertyDefinitionOption).optional()
6099
6220
  });
6100
- var DTODeleteElementPropertyDefinitionInputV2 = z213.object({
6101
- id: z213.string()
6221
+ var DTODeleteElementPropertyDefinitionInputV2 = z219.object({
6222
+ id: z219.string()
6102
6223
  });
6103
6224
 
6104
6225
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6105
- var SuccessPayload3 = z214.object({
6106
- success: z214.literal(true)
6226
+ var SuccessPayload3 = z220.object({
6227
+ success: z220.literal(true)
6107
6228
  });
6108
- var DTOPropertyDefinitionCreateActionOutputV2 = z214.object({
6109
- type: z214.literal("PropertyDefinitionCreate"),
6229
+ var DTOPropertyDefinitionCreateActionOutputV2 = z220.object({
6230
+ type: z220.literal("PropertyDefinitionCreate"),
6110
6231
  definition: DTOElementPropertyDefinition
6111
6232
  });
6112
- var DTOPropertyDefinitionUpdateActionOutputV2 = z214.object({
6113
- type: z214.literal("PropertyDefinitionUpdate"),
6233
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z220.object({
6234
+ type: z220.literal("PropertyDefinitionUpdate"),
6114
6235
  definition: DTOElementPropertyDefinition
6115
6236
  });
6116
- var DTOPropertyDefinitionDeleteActionOutputV2 = z214.object({
6117
- type: z214.literal("PropertyDefinitionDelete"),
6237
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z220.object({
6238
+ type: z220.literal("PropertyDefinitionDelete"),
6118
6239
  output: SuccessPayload3
6119
6240
  });
6120
- var DTOPropertyDefinitionCreateActionInputV2 = z214.object({
6121
- type: z214.literal("PropertyDefinitionCreate"),
6241
+ var DTOPropertyDefinitionCreateActionInputV2 = z220.object({
6242
+ type: z220.literal("PropertyDefinitionCreate"),
6122
6243
  input: DTOCreateElementPropertyDefinitionInputV2
6123
6244
  });
6124
- var DTOPropertyDefinitionUpdateActionInputV2 = z214.object({
6125
- type: z214.literal("PropertyDefinitionUpdate"),
6245
+ var DTOPropertyDefinitionUpdateActionInputV2 = z220.object({
6246
+ type: z220.literal("PropertyDefinitionUpdate"),
6126
6247
  input: DTOUpdateElementPropertyDefinitionInputV2
6127
6248
  });
6128
- var DTOPropertyDefinitionDeleteActionInputV2 = z214.object({
6129
- type: z214.literal("PropertyDefinitionDelete"),
6249
+ var DTOPropertyDefinitionDeleteActionInputV2 = z220.object({
6250
+ type: z220.literal("PropertyDefinitionDelete"),
6130
6251
  input: DTODeleteElementPropertyDefinitionInputV2
6131
6252
  });
6132
6253
 
6133
6254
  // src/api/dto/elements/properties/property-values.ts
6134
- import { z as z215 } from "zod";
6135
- var DTOElementPropertyValue = z215.object({
6136
- id: z215.string(),
6137
- designSystemVersionId: z215.string(),
6138
- definitionId: z215.string(),
6139
- targetElementId: z215.string(),
6140
- value: z215.union([z215.string(), z215.number(), z215.boolean()]).optional(),
6141
- valuePreview: z215.string().optional()
6255
+ import { z as z221 } from "zod";
6256
+ var DTOElementPropertyValue = z221.object({
6257
+ id: z221.string(),
6258
+ designSystemVersionId: z221.string(),
6259
+ definitionId: z221.string(),
6260
+ targetElementId: z221.string(),
6261
+ value: z221.union([z221.string(), z221.number(), z221.boolean()]).optional(),
6262
+ valuePreview: z221.string().optional()
6142
6263
  });
6143
- var DTOElementPropertyValuesGetResponse = z215.object({
6144
- values: z215.array(DTOElementPropertyValue)
6264
+ var DTOElementPropertyValuesGetResponse = z221.object({
6265
+ values: z221.array(DTOElementPropertyValue)
6145
6266
  });
6146
6267
 
6147
6268
  // src/api/dto/elements/elements-action-v2.ts
6148
- import { z as z216 } from "zod";
6149
- var DTOElementActionOutput = z216.discriminatedUnion("type", [
6269
+ import { z as z222 } from "zod";
6270
+ var DTOElementActionOutput = z222.discriminatedUnion("type", [
6150
6271
  // Documentation pages
6151
6272
  DTODocumentationPageCreateActionOutputV2,
6152
6273
  DTODocumentationPageUpdateActionOutputV2,
@@ -6173,7 +6294,7 @@ var DTOElementActionOutput = z216.discriminatedUnion("type", [
6173
6294
  // Approvals
6174
6295
  DTODocumentationPageApprovalStateChangeActionOutput
6175
6296
  ]);
6176
- var DTOElementActionInput = z216.discriminatedUnion("type", [
6297
+ var DTOElementActionInput = z222.discriminatedUnion("type", [
6177
6298
  // Documentation pages
6178
6299
  DTODocumentationPageCreateActionInputV2,
6179
6300
  DTODocumentationPageUpdateActionInputV2,
@@ -6202,167 +6323,63 @@ var DTOElementActionInput = z216.discriminatedUnion("type", [
6202
6323
  ]);
6203
6324
 
6204
6325
  // src/api/dto/elements/get-elements-v2.ts
6205
- import { z as z217 } from "zod";
6206
- var DTOElementsGetTypeFilter = z217.enum(["FigmaNode"]);
6207
- var DTOElementsGetQuerySchema = z217.object({
6208
- types: z217.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6326
+ import { z as z223 } from "zod";
6327
+ var DTOElementsGetTypeFilter = z223.enum(["FigmaNode"]);
6328
+ var DTOElementsGetQuerySchema = z223.object({
6329
+ types: z223.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6209
6330
  });
6210
- var DTOElementsGetOutput = z217.object({
6211
- figmaNodes: z217.array(DTOFigmaNode).optional()
6331
+ var DTOElementsGetOutput = z223.object({
6332
+ figmaNodes: z223.array(DTOFigmaNode).optional()
6212
6333
  });
6213
6334
 
6214
6335
  // src/api/dto/figma-components/assets/download.ts
6215
- import { z as z218 } from "zod";
6216
- var DTOAssetRenderConfiguration = z218.object({
6217
- prefix: z218.string().optional(),
6218
- suffix: z218.string().optional(),
6219
- scale: z218.enum(["x1", "x2", "x3", "x4"]),
6220
- format: z218.enum(["png", "pdf", "svg"])
6221
- });
6222
- var DTORenderedAssetFile = z218.object({
6223
- assetId: z218.string(),
6224
- fileName: z218.string(),
6225
- sourceUrl: z218.string(),
6336
+ import { z as z224 } from "zod";
6337
+ var DTOAssetRenderConfiguration = z224.object({
6338
+ prefix: z224.string().optional(),
6339
+ suffix: z224.string().optional(),
6340
+ scale: z224.enum(["x1", "x2", "x3", "x4"]),
6341
+ format: z224.enum(["png", "pdf", "svg"])
6342
+ });
6343
+ var DTORenderedAssetFile = z224.object({
6344
+ assetId: z224.string(),
6345
+ fileName: z224.string(),
6346
+ sourceUrl: z224.string(),
6226
6347
  settings: DTOAssetRenderConfiguration,
6227
- originalName: z218.string()
6348
+ originalName: z224.string()
6228
6349
  });
6229
- var DTODownloadAssetsRequest = z218.object({
6230
- persistentIds: z218.array(z218.string().uuid()).optional(),
6350
+ var DTODownloadAssetsRequest = z224.object({
6351
+ persistentIds: z224.array(z224.string().uuid()).optional(),
6231
6352
  settings: DTOAssetRenderConfiguration.array()
6232
6353
  });
6233
- var DTODownloadAssetsResponse = z218.object({
6354
+ var DTODownloadAssetsResponse = z224.object({
6234
6355
  items: DTORenderedAssetFile.array()
6235
6356
  });
6236
6357
 
6237
6358
  // src/api/dto/liveblocks/auth-response.ts
6238
- import { z as z219 } from "zod";
6239
- var DTOLiveblocksAuthResponse = z219.object({
6240
- token: z219.string()
6359
+ import { z as z225 } from "zod";
6360
+ var DTOLiveblocksAuthResponse = z225.object({
6361
+ token: z225.string()
6241
6362
  });
6242
6363
 
6243
6364
  // src/api/dto/users/update.ts
6244
- import { z as z220 } from "zod";
6245
- var DTOUserProfileUpdateResponse = z220.object({
6365
+ import { z as z226 } from "zod";
6366
+ var DTOUserProfileUpdateResponse = z226.object({
6246
6367
  user: User
6247
6368
  });
6248
6369
 
6249
6370
  // src/api/dto/users/user.ts
6250
- import { z as z221 } from "zod";
6251
- var DTOUserProfile = z221.object({
6252
- name: z221.string(),
6253
- nickname: z221.string().optional(),
6254
- avatar: z221.string().optional()
6255
- });
6256
- var DTOUser = z221.object({
6257
- id: z221.string(),
6258
- email: z221.string(),
6371
+ import { z as z227 } from "zod";
6372
+ var DTOUserProfile = z227.object({
6373
+ name: z227.string(),
6374
+ nickname: z227.string().optional(),
6375
+ avatar: z227.string().optional()
6376
+ });
6377
+ var DTOUser = z227.object({
6378
+ id: z227.string(),
6379
+ email: z227.string(),
6259
6380
  profile: DTOUserProfile
6260
6381
  });
6261
6382
 
6262
- // src/api/dto/workspaces/git.ts
6263
- import { z as z222 } from "zod";
6264
- var DTOGitOrganization = z222.object({
6265
- id: z222.string(),
6266
- name: z222.string(),
6267
- url: z222.string(),
6268
- slug: z222.string()
6269
- });
6270
- var DTOGitProject = z222.object({
6271
- id: z222.string(),
6272
- name: z222.string(),
6273
- url: z222.string(),
6274
- slug: z222.string()
6275
- });
6276
- var DTOGitRepository = z222.object({
6277
- id: z222.string(),
6278
- name: z222.string(),
6279
- url: z222.string(),
6280
- slug: z222.string(),
6281
- defaultBranch: z222.string().optional()
6282
- });
6283
- var DTOGitBranch = z222.object({
6284
- name: z222.string(),
6285
- lastCommitId: z222.string()
6286
- });
6287
-
6288
- // src/api/dto/workspaces/integrations.ts
6289
- import { z as z223 } from "zod";
6290
- var DTOIntegrationCredentials = IntegrationCredentials.omit({
6291
- accessToken: true,
6292
- refreshToken: true
6293
- });
6294
- var DTOIntegration = z223.object({
6295
- id: z223.string(),
6296
- workspaceId: z223.string(),
6297
- type: ExtendedIntegrationType,
6298
- createdAt: z223.coerce.date(),
6299
- integrationCredentials: z223.array(DTOIntegrationCredentials).optional(),
6300
- integrationDesignSystems: z223.array(IntegrationDesignSystem).optional()
6301
- });
6302
- var DTOIntegrationOAuthGetResponse = z223.object({
6303
- url: z223.string()
6304
- });
6305
- var DTOIntegrationPostResponse = z223.object({
6306
- integration: DTOIntegration
6307
- });
6308
- var DTOIntegrationsGetListResponse = z223.object({
6309
- integrations: DTOIntegration.array()
6310
- });
6311
-
6312
- // src/api/dto/workspaces/membership.ts
6313
- import { z as z226 } from "zod";
6314
-
6315
- // src/api/dto/workspaces/workspace.ts
6316
- import { z as z225 } from "zod";
6317
-
6318
- // src/api/dto/workspaces/npm-registry.ts
6319
- import { z as z224 } from "zod";
6320
- var DTONpmRegistryConfigConstants = {
6321
- passwordPlaceholder: "redacted"
6322
- };
6323
- var DTONpmRegistryConfig = z224.object({
6324
- // Registry basic configuration
6325
- registryType: NpmRegistryType,
6326
- registryUrl: z224.string(),
6327
- customRegistryUrl: z224.string().optional(),
6328
- // URL of Supernova NPM packages proxy
6329
- proxyUrl: z224.string(),
6330
- // Auth configuration
6331
- authType: NpmRegistryAuthType,
6332
- accessToken: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6333
- username: z224.string().optional(),
6334
- password: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6335
- // NPM package scopes for whih the proxy should be enabled
6336
- enabledScopes: z224.array(z224.string()),
6337
- // True if client should bypass Supernova proxy and connect directly to the registry
6338
- // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6339
- bypassProxy: z224.boolean()
6340
- });
6341
-
6342
- // src/api/dto/workspaces/workspace.ts
6343
- var DTOWorkspace = z225.object({
6344
- id: z225.string(),
6345
- profile: WorkspaceProfile,
6346
- subscription: Subscription,
6347
- npmRegistry: DTONpmRegistryConfig.optional()
6348
- });
6349
-
6350
- // src/api/dto/workspaces/membership.ts
6351
- var DTOWorkspaceRole = z226.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6352
- var DTOUserWorkspaceMembership = z226.object({
6353
- // Workspace the user is a member of
6354
- workspace: DTOWorkspace,
6355
- // Assigned role the user has in the workspace
6356
- role: DTOWorkspaceRole,
6357
- // Role that determines actual permissions the user has in the workspace
6358
- // E.g. this is different from the default role when editors are downgraded to viewers
6359
- // when a workspace's subscription is downgraded to free tier
6360
- effectiveRole: DTOWorkspaceRole
6361
- });
6362
- var DTOUserWorkspaceMembershipsResponse = z226.object({
6363
- membership: z226.array(DTOUserWorkspaceMembership)
6364
- });
6365
-
6366
6383
  // src/utils/hash.ts
6367
6384
  function hash(input) {
6368
6385
  return farmhash(input).toString(16);
@@ -6422,7 +6439,7 @@ function generateHash(input, debug = false) {
6422
6439
  }
6423
6440
 
6424
6441
  // src/yjs/design-system-content/documentation-hierarchy.ts
6425
- import { z as z227 } from "zod";
6442
+ import { z as z228 } from "zod";
6426
6443
 
6427
6444
  // src/yjs/version-room/base.ts
6428
6445
  var VersionRoomBaseYDoc = class {
@@ -6951,24 +6968,24 @@ var FrontendVersionRoomYDoc = class {
6951
6968
  };
6952
6969
 
6953
6970
  // src/yjs/design-system-content/documentation-hierarchy.ts
6954
- var DocumentationHierarchySettings = z227.object({
6955
- routingVersion: z227.string(),
6956
- isDraftFeatureAdopted: z227.boolean(),
6957
- isApprovalFeatureEnabled: z227.boolean(),
6958
- approvalRequiredForPublishing: z227.boolean()
6971
+ var DocumentationHierarchySettings = z228.object({
6972
+ routingVersion: z228.string(),
6973
+ isDraftFeatureAdopted: z228.boolean(),
6974
+ isApprovalFeatureEnabled: z228.boolean(),
6975
+ approvalRequiredForPublishing: z228.boolean()
6959
6976
  });
6960
6977
  function yjsToDocumentationHierarchy(doc) {
6961
6978
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
6962
6979
  }
6963
6980
 
6964
6981
  // src/yjs/design-system-content/item-configuration.ts
6965
- import { z as z228 } from "zod";
6966
- var DTODocumentationPageRoomHeaderData = z228.object({
6967
- title: z228.string(),
6982
+ import { z as z229 } from "zod";
6983
+ var DTODocumentationPageRoomHeaderData = z229.object({
6984
+ title: z229.string(),
6968
6985
  configuration: DTODocumentationItemConfigurationV2
6969
6986
  });
6970
- var DTODocumentationPageRoomHeaderDataUpdate = z228.object({
6971
- title: z228.string().optional(),
6987
+ var DTODocumentationPageRoomHeaderDataUpdate = z229.object({
6988
+ title: z229.string().optional(),
6972
6989
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
6973
6990
  });
6974
6991
  function itemConfigurationToYjs(yDoc, item) {
@@ -7019,7 +7036,7 @@ function yjsToItemConfiguration(yDoc) {
7019
7036
  header: rawHeader
7020
7037
  };
7021
7038
  return {
7022
- title: z228.string().parse(title),
7039
+ title: z229.string().parse(title),
7023
7040
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7024
7041
  };
7025
7042
  }
@@ -7029,9 +7046,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7029
7046
  var PageSectionEditorModel = PageSectionEditorModelV2;
7030
7047
 
7031
7048
  // src/yjs/docs-editor/model/page.ts
7032
- import { z as z229 } from "zod";
7033
- var DocumentationPageEditorModel = z229.object({
7034
- blocks: z229.array(DocumentationPageContentItem)
7049
+ import { z as z230 } from "zod";
7050
+ var DocumentationPageEditorModel = z230.object({
7051
+ blocks: z230.array(DocumentationPageContentItem)
7035
7052
  });
7036
7053
 
7037
7054
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -10895,7 +10912,7 @@ var blocks = [
10895
10912
 
10896
10913
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10897
10914
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10898
- import { z as z230 } from "zod";
10915
+ import { z as z231 } from "zod";
10899
10916
  function yDocToPage(yDoc, definitions) {
10900
10917
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10901
10918
  }
@@ -10975,7 +10992,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10975
10992
  return null;
10976
10993
  return {
10977
10994
  id,
10978
- title: getProsemirrorAttribute(prosemirrorNode, "title", z230.string()) ?? "",
10995
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z231.string()) ?? "",
10979
10996
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10980
10997
  };
10981
10998
  }
@@ -11010,7 +11027,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11010
11027
  });
11011
11028
  }
11012
11029
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11013
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z230.string());
11030
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z231.string());
11014
11031
  if (!definitionId) {
11015
11032
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11016
11033
  return [];
@@ -11052,7 +11069,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
11052
11069
  if (!id)
11053
11070
  return null;
11054
11071
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11055
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z230.string().optional()));
11072
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z231.string().optional()));
11056
11073
  return {
11057
11074
  id,
11058
11075
  type: "Block",
@@ -11180,10 +11197,10 @@ function parseRichTextAttribute(mark) {
11180
11197
  return null;
11181
11198
  }
11182
11199
  function parseProsemirrorLink(mark) {
11183
- const href = getProsemirrorAttribute(mark, "href", z230.string().optional());
11200
+ const href = getProsemirrorAttribute(mark, "href", z231.string().optional());
11184
11201
  if (!href)
11185
11202
  return null;
11186
- const target = getProsemirrorAttribute(mark, "target", z230.string().optional());
11203
+ const target = getProsemirrorAttribute(mark, "target", z231.string().optional());
11187
11204
  const openInNewTab = target === "_blank";
11188
11205
  if (href.startsWith("@")) {
11189
11206
  return {
@@ -11202,10 +11219,10 @@ function parseProsemirrorLink(mark) {
11202
11219
  }
11203
11220
  }
11204
11221
  function parseProsemirrorCommentHighlight(mark) {
11205
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z230.string().optional());
11222
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z231.string().optional());
11206
11223
  if (!highlightId)
11207
11224
  return null;
11208
- const isResolved = getProsemirrorAttribute(mark, "resolved", z230.boolean().optional()) ?? false;
11225
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z231.boolean().optional()) ?? false;
11209
11226
  return {
11210
11227
  type: "Comment",
11211
11228
  commentHighlightId: highlightId,
@@ -11217,7 +11234,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11217
11234
  if (!id)
11218
11235
  return null;
11219
11236
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11220
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z230.boolean().optional()) !== false;
11237
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z231.boolean().optional()) !== false;
11221
11238
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11222
11239
  if (!tableChild) {
11223
11240
  return emptyTable(id, variantId, 0);
@@ -11264,9 +11281,9 @@ function parseAsTableCell(prosemirrorNode) {
11264
11281
  const id = getProsemirrorBlockId(prosemirrorNode);
11265
11282
  if (!id)
11266
11283
  return null;
11267
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z230.string().optional());
11284
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z231.string().optional());
11268
11285
  let columnWidth;
11269
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z230.array(z230.number()).optional());
11286
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z231.array(z231.number()).optional());
11270
11287
  if (columnWidthArray) {
11271
11288
  columnWidth = roundDimension(columnWidthArray[0]);
11272
11289
  }
@@ -11304,7 +11321,7 @@ function parseAsTableNode(prosemirrorNode) {
11304
11321
  value: parseRichText(prosemirrorNode.content ?? [])
11305
11322
  };
11306
11323
  case "image":
11307
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z230.string());
11324
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z231.string());
11308
11325
  if (!items)
11309
11326
  return null;
11310
11327
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11424,7 +11441,7 @@ function definitionExpectsPlaceholderItem(definition) {
11424
11441
  );
11425
11442
  }
11426
11443
  function parseBlockItems(prosemirrorNode, definition) {
11427
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z230.string());
11444
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z231.string());
11428
11445
  if (!itemsString)
11429
11446
  return null;
11430
11447
  const itemsJson = JSON.parse(itemsString);
@@ -11436,18 +11453,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11436
11453
  }
11437
11454
  function parseAppearance(prosemirrorNode) {
11438
11455
  let appearance = {};
11439
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z230.string().optional());
11456
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z231.string().optional());
11440
11457
  if (rawAppearanceString) {
11441
11458
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11442
11459
  if (parsedAppearance.success) {
11443
11460
  appearance = parsedAppearance.data;
11444
11461
  }
11445
11462
  }
11446
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z230.number().optional());
11463
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z231.number().optional());
11447
11464
  if (columns) {
11448
11465
  appearance.numberOfColumns = columns;
11449
11466
  }
11450
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z230.string().optional());
11467
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z231.string().optional());
11451
11468
  if (backgroundColor) {
11452
11469
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11453
11470
  if (parsedColor.success) {
@@ -11542,13 +11559,13 @@ function valueSchemaForPropertyType(type) {
11542
11559
  }
11543
11560
  }
11544
11561
  function getProsemirrorBlockId(prosemirrorNode) {
11545
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z230.string());
11562
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z231.string());
11546
11563
  if (!id)
11547
11564
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11548
11565
  return id;
11549
11566
  }
11550
11567
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11551
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z230.string()));
11568
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z231.string()));
11552
11569
  }
11553
11570
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11554
11571
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11602,6 +11619,8 @@ export {
11602
11619
  BackendVersionRoomYDoc,
11603
11620
  BlockDefinitionUtils,
11604
11621
  BlockParsingUtils,
11622
+ DTOAppBootstrapDataQuery,
11623
+ DTOAppBootstrapDataResponse,
11605
11624
  DTOAssetRenderConfiguration,
11606
11625
  DTOBrand,
11607
11626
  DTOBrandCreateResponse,