@supernova-studio/client 0.47.15 → 0.47.16

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
@@ -4341,79 +4341,177 @@ var DTOBrandCreateResponse = z156.object({
4341
4341
  });
4342
4342
  var DTOBrandsListResponse = z156.object({ brands: z156.array(DTOBrand) });
4343
4343
 
4344
- // src/api/dto/design-systems/design-system.ts
4344
+ // src/api/dto/design-systems/data-source.ts
4345
4345
  import { z as z157 } from "zod";
4346
+ var DTODataSourceFigmaFileVersion = z157.object({
4347
+ id: z157.string(),
4348
+ created_at: z157.coerce.date(),
4349
+ label: z157.string(),
4350
+ description: z157.string()
4351
+ });
4352
+ var DTODataSourceFigmaCloud = z157.object({
4353
+ fileId: z157.string(),
4354
+ state: DataSourceFigmaState,
4355
+ autoImportMode: DataSourceAutoImportMode,
4356
+ fileThumbnailUrl: z157.string().optional(),
4357
+ lastImportResult: SourceImportSummary.nullish(),
4358
+ lastImportedAt: z157.date().nullish(),
4359
+ lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4360
+ lastUpdatesCheckedAt: z157.date().nullish(),
4361
+ ownerId: z157.string(),
4362
+ ownerUserName: z157.string().optional(),
4363
+ preferredCredentialId: z157.string().optional(),
4364
+ stats: DataSourceStats
4365
+ });
4366
+ var DTODataSourceFigma = z157.object({
4367
+ id: z157.string(),
4368
+ type: z157.literal(DataSourceRemoteType.Enum.Figma),
4369
+ fileName: z157.string(),
4370
+ scope: DataSourceFigmaScope,
4371
+ brandId: z157.string(),
4372
+ themeId: z157.string().nullish(),
4373
+ cloud: DTODataSourceFigmaCloud.nullish(),
4374
+ tokenStudio: z157.literal(null),
4375
+ upload: z157.literal(null),
4376
+ figmaVariablesPlugin: z157.literal(null)
4377
+ });
4378
+ var DTODataSourceTokenStudio = z157.object({
4379
+ id: z157.string(),
4380
+ type: z157.literal(DataSourceRemoteType.Enum.TokenStudio),
4381
+ fileName: z157.string(),
4382
+ brandId: z157.string(),
4383
+ themeId: z157.string().nullish(),
4384
+ cloud: z157.literal(null),
4385
+ tokenStudio: z157.object({
4386
+ settings: z157.object({
4387
+ dryRun: z157.boolean(),
4388
+ verbose: z157.boolean(),
4389
+ preciseCopy: z157.boolean()
4390
+ }),
4391
+ connectionName: z157.string(),
4392
+ lastImportedAt: z157.date(),
4393
+ lastImportedResults: z157.array(
4394
+ z157.object({
4395
+ mapping: z157.object({
4396
+ tokenSets: z157.array(z157.string()),
4397
+ supernovaBrand: z157.string(),
4398
+ supernovaTheme: z157.string().optional()
4399
+ }),
4400
+ isFailed: z157.boolean(),
4401
+ tokensCreated: z157.number(),
4402
+ tokensDeleted: z157.number(),
4403
+ tokensUpdated: z157.number()
4404
+ })
4405
+ )
4406
+ }),
4407
+ upload: z157.literal(null),
4408
+ figmaVariablesPlugin: z157.literal(null)
4409
+ });
4410
+ var DTODataSourceFigmaVariablesPlugin = z157.object({
4411
+ id: z157.string(),
4412
+ type: z157.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4413
+ fileName: z157.string(),
4414
+ brandId: z157.string(),
4415
+ themeId: z157.literal(null),
4416
+ cloud: z157.literal(null),
4417
+ tokenStudio: z157.literal(null),
4418
+ upload: z157.object({
4419
+ remoteId: z157.string(),
4420
+ remoteSourceType: DataSourceUploadRemoteSource,
4421
+ lastImportedAt: z157.date().optional(),
4422
+ lastImportMetadata: DataSourceUploadImportMetadata.optional()
4423
+ }),
4424
+ figmaVariablesPlugin: z157.object({
4425
+ fileId: z157.string(),
4426
+ lastImportedAt: z157.date().optional(),
4427
+ lastImportMetadata: DataSourceUploadImportMetadata.optional()
4428
+ })
4429
+ });
4430
+ var DTODataSource = z157.discriminatedUnion("type", [
4431
+ DTODataSourceFigma,
4432
+ DTODataSourceFigmaVariablesPlugin,
4433
+ DTODataSourceTokenStudio
4434
+ ]);
4435
+ var DTODataSourcesListResponse = z157.object({
4436
+ sources: z157.array(DTODataSource)
4437
+ });
4438
+ var DTODataSourceCreationResponse = z157.object({
4439
+ source: DTODataSource
4440
+ });
4441
+
4442
+ // src/api/dto/design-systems/design-system.ts
4443
+ import { z as z158 } from "zod";
4346
4444
  var DTODesignSystem = DesignSystem.omit({
4347
4445
  name: true,
4348
4446
  description: true,
4349
4447
  docExporterId: true
4350
4448
  }).extend({
4351
4449
  meta: ObjectMeta,
4352
- docExporterId: z157.string()
4450
+ docExporterId: z158.string()
4353
4451
  });
4354
4452
 
4355
4453
  // src/api/dto/design-systems/exporter-property.ts
4356
- import { z as z158 } from "zod";
4357
- var DTOExporterProperty = z158.any({});
4358
- var DTOExporterPropertyListResponse = z158.object({ items: z158.array(DTOExporterProperty) });
4454
+ import { z as z159 } from "zod";
4455
+ var DTOExporterProperty = z159.any({});
4456
+ var DTOExporterPropertyListResponse = z159.object({ items: z159.array(DTOExporterProperty) });
4359
4457
 
4360
4458
  // src/api/dto/design-systems/version.ts
4361
- import { z as z166 } from "zod";
4459
+ import { z as z167 } from "zod";
4362
4460
 
4363
4461
  // src/api/payloads/design-systems/brand.ts
4364
- import { z as z159 } from "zod";
4365
- var DTOCreateBrandInput = z159.object({
4366
- persistentId: z159.string().uuid(),
4367
- meta: z159.object({
4368
- name: z159.string(),
4369
- description: z159.string()
4462
+ import { z as z160 } from "zod";
4463
+ var DTOCreateBrandInput = z160.object({
4464
+ persistentId: z160.string().uuid(),
4465
+ meta: z160.object({
4466
+ name: z160.string(),
4467
+ description: z160.string()
4370
4468
  })
4371
4469
  });
4372
4470
 
4373
4471
  // src/api/payloads/design-systems/version.ts
4374
- import { z as z160 } from "zod";
4375
- var ObjectMeta2 = z160.object({
4376
- name: z160.string().max(150).optional(),
4377
- description: z160.string().max(2e3).optional()
4472
+ import { z as z161 } from "zod";
4473
+ var ObjectMeta2 = z161.object({
4474
+ name: z161.string().max(150).optional(),
4475
+ description: z161.string().max(2e3).optional()
4378
4476
  });
4379
4477
  function validateDesignSystemVersion(version) {
4380
4478
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
4381
4479
  return urlCompliantRegex.test(version);
4382
4480
  }
4383
- var DTOCreateVersionInput = z160.object({
4481
+ var DTOCreateVersionInput = z161.object({
4384
4482
  meta: ObjectMeta2,
4385
- version: z160.string().refine(validateDesignSystemVersion, {
4483
+ version: z161.string().refine(validateDesignSystemVersion, {
4386
4484
  message: "Invalid semantic versioning format"
4387
4485
  }),
4388
- changeLog: z160.string().optional()
4486
+ changeLog: z161.string().optional()
4389
4487
  });
4390
- var DTOUpdateVersionInput = z160.object({
4488
+ var DTOUpdateVersionInput = z161.object({
4391
4489
  meta: ObjectMeta2,
4392
- version: z160.string(),
4490
+ version: z161.string(),
4393
4491
  // required for PUT, but not editable
4394
- changeLog: z160.string()
4492
+ changeLog: z161.string()
4395
4493
  });
4396
4494
 
4397
4495
  // src/api/payloads/documentation/block-definitions.ts
4398
- import { z as z161 } from "zod";
4399
- var DTOGetBlockDefinitionsOutput = z161.object({
4400
- definitions: z161.array(PageBlockDefinition)
4496
+ import { z as z162 } from "zod";
4497
+ var DTOGetBlockDefinitionsOutput = z162.object({
4498
+ definitions: z162.array(PageBlockDefinition)
4401
4499
  });
4402
4500
 
4403
4501
  // src/api/payloads/liveblocks/auth.ts
4404
- import { z as z162 } from "zod";
4405
- var DTOLiveblocksAuthRequest = z162.object({
4406
- room: z162.string().optional()
4502
+ import { z as z163 } from "zod";
4503
+ var DTOLiveblocksAuthRequest = z163.object({
4504
+ room: z163.string().optional()
4407
4505
  });
4408
4506
 
4409
4507
  // src/api/payloads/users/notifications/notification-settings.ts
4410
- import { z as z163 } from "zod";
4411
- var DTOUpdateUserNotificationSettingsPayload = z163.object({
4508
+ import { z as z164 } from "zod";
4509
+ var DTOUpdateUserNotificationSettingsPayload = z164.object({
4412
4510
  notificationSettings: UserNotificationSettings
4413
4511
  });
4414
- var DTOUserNotificationSettingsResponse = z163.object({
4415
- userId: z163.string(),
4416
- workspaceId: z163.string(),
4512
+ var DTOUserNotificationSettingsResponse = z164.object({
4513
+ userId: z164.string(),
4514
+ workspaceId: z164.string(),
4417
4515
  notificationSettings: UserNotificationSettings
4418
4516
  });
4419
4517
 
@@ -4421,7 +4519,7 @@ var DTOUserNotificationSettingsResponse = z163.object({
4421
4519
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
4422
4520
 
4423
4521
  // src/api/payloads/workspaces/workspace-configuration.ts
4424
- import { z as z164 } from "zod";
4522
+ import { z as z165 } from "zod";
4425
4523
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4426
4524
  function validateSsoPayload(ssoPayload) {
4427
4525
  const keys = [];
@@ -4444,21 +4542,21 @@ function validateSsoPayload(ssoPayload) {
4444
4542
  keys
4445
4543
  };
4446
4544
  }
4447
- var NpmRegistryInput = z164.object({
4448
- enabledScopes: z164.array(z164.string()),
4449
- customRegistryUrl: z164.string().optional(),
4450
- bypassProxy: z164.boolean().optional(),
4451
- npmProxyRegistryConfigId: z164.string().optional(),
4452
- npmProxyVersion: z164.number().optional(),
4453
- registryType: z164.string(),
4454
- authType: z164.string(),
4455
- authHeaderName: z164.string(),
4456
- authHeaderValue: z164.string(),
4457
- accessToken: z164.string(),
4458
- username: z164.string(),
4459
- password: z164.string()
4460
- });
4461
- var WorkspaceConfigurationPayload = z164.object({
4545
+ var NpmRegistryInput = z165.object({
4546
+ enabledScopes: z165.array(z165.string()),
4547
+ customRegistryUrl: z165.string().optional(),
4548
+ bypassProxy: z165.boolean().optional(),
4549
+ npmProxyRegistryConfigId: z165.string().optional(),
4550
+ npmProxyVersion: z165.number().optional(),
4551
+ registryType: z165.string(),
4552
+ authType: z165.string(),
4553
+ authHeaderName: z165.string(),
4554
+ authHeaderValue: z165.string(),
4555
+ accessToken: z165.string(),
4556
+ username: z165.string(),
4557
+ password: z165.string()
4558
+ });
4559
+ var WorkspaceConfigurationPayload = z165.object({
4462
4560
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4463
4561
  sso: SsoProvider.partial().optional(),
4464
4562
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4466,130 +4564,130 @@ var WorkspaceConfigurationPayload = z164.object({
4466
4564
  });
4467
4565
 
4468
4566
  // src/api/payloads/workspaces/workspace-integrations.ts
4469
- import { z as z165 } from "zod";
4470
- var DTOWorkspaceIntegrationOauthInput = z165.object({
4567
+ import { z as z166 } from "zod";
4568
+ var DTOWorkspaceIntegrationOauthInput = z166.object({
4471
4569
  type: IntegrationType
4472
4570
  });
4473
- var DTOWorkspaceIntegrationPATInput = z165.object({
4474
- userId: z165.string(),
4571
+ var DTOWorkspaceIntegrationPATInput = z166.object({
4572
+ userId: z166.string(),
4475
4573
  type: IntegrationType,
4476
4574
  token: IntegrationToken
4477
4575
  });
4478
- var DTOWorkspaceIntegrationGetGitObjectsInput = z165.object({
4479
- organization: z165.string().optional(),
4576
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z166.object({
4577
+ organization: z166.string().optional(),
4480
4578
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4481
- project: z165.string().optional(),
4579
+ project: z166.string().optional(),
4482
4580
  // Only for Bitbucket and Azure
4483
- repository: z165.string().optional(),
4581
+ repository: z166.string().optional(),
4484
4582
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
4485
- branch: z165.string().optional(),
4583
+ branch: z166.string().optional(),
4486
4584
  // For all providers.
4487
- user: z165.string().optional()
4585
+ user: z166.string().optional()
4488
4586
  // Only for Gitlab
4489
4587
  });
4490
4588
 
4491
4589
  // src/api/dto/design-systems/version.ts
4492
- var DTODesignSystemVersion = z166.object({
4493
- id: z166.string(),
4494
- createdAt: z166.date(),
4590
+ var DTODesignSystemVersion = z167.object({
4591
+ id: z167.string(),
4592
+ createdAt: z167.date(),
4495
4593
  meta: ObjectMeta,
4496
- version: z166.string(),
4497
- isReadonly: z166.boolean(),
4498
- changeLog: z166.string(),
4499
- designSystemId: z166.string()
4594
+ version: z167.string(),
4595
+ isReadonly: z167.boolean(),
4596
+ changeLog: z167.string(),
4597
+ designSystemId: z167.string()
4500
4598
  });
4501
- var DTODesignSystemVersionsListResponse = z166.object({
4502
- designSystemVersions: z166.array(DTODesignSystemVersion)
4599
+ var DTODesignSystemVersionsListResponse = z167.object({
4600
+ designSystemVersions: z167.array(DTODesignSystemVersion)
4503
4601
  });
4504
- var DTODesignSystemVersionGetResponse = z166.object({
4602
+ var DTODesignSystemVersionGetResponse = z167.object({
4505
4603
  designSystemVersion: DTODesignSystemVersion
4506
4604
  });
4507
- var DTODesignSystemVersionCreationResponse = z166.object({
4605
+ var DTODesignSystemVersionCreationResponse = z167.object({
4508
4606
  meta: ObjectMeta,
4509
- version: z166.string(),
4510
- changeLog: z166.string(),
4511
- isReadOnly: z166.boolean(),
4512
- designSystemId: z166.string(),
4513
- jobId: z166.string()
4514
- });
4515
- var VersionSQSPayload = z166.object({
4516
- jobId: z166.string(),
4517
- designSystemId: z166.string(),
4607
+ version: z167.string(),
4608
+ changeLog: z167.string(),
4609
+ isReadOnly: z167.boolean(),
4610
+ designSystemId: z167.string(),
4611
+ jobId: z167.string()
4612
+ });
4613
+ var VersionSQSPayload = z167.object({
4614
+ jobId: z167.string(),
4615
+ designSystemId: z167.string(),
4518
4616
  input: DTOCreateVersionInput
4519
4617
  });
4520
- var DTODesignSystemVersionJobsResponse = z166.object({
4521
- jobs: z166.array(VersionCreationJob)
4618
+ var DTODesignSystemVersionJobsResponse = z167.object({
4619
+ jobs: z167.array(VersionCreationJob)
4522
4620
  });
4523
- var DTODesignSystemVersionJobStatusResponse = z166.object({
4621
+ var DTODesignSystemVersionJobStatusResponse = z167.object({
4524
4622
  job: VersionCreationJob
4525
4623
  });
4526
4624
 
4527
4625
  // src/api/dto/design-systems/view.ts
4528
- import { z as z167 } from "zod";
4529
- var DTOElementViewColumnSharedAttributes = z167.object({
4530
- id: z167.string(),
4531
- persistentId: z167.string(),
4532
- width: z167.number()
4626
+ import { z as z168 } from "zod";
4627
+ var DTOElementViewColumnSharedAttributes = z168.object({
4628
+ id: z168.string(),
4629
+ persistentId: z168.string(),
4630
+ width: z168.number()
4533
4631
  });
4534
4632
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
4535
- type: z167.literal("BaseProperty"),
4633
+ type: z168.literal("BaseProperty"),
4536
4634
  basePropertyType: ElementViewBaseColumnType
4537
4635
  });
4538
4636
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
4539
- type: z167.literal("PropertyDefinition"),
4540
- propertyDefinitionId: z167.string()
4637
+ type: z168.literal("PropertyDefinition"),
4638
+ propertyDefinitionId: z168.string()
4541
4639
  });
4542
4640
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
4543
- type: z167.literal("Theme"),
4544
- themeId: z167.string()
4641
+ type: z168.literal("Theme"),
4642
+ themeId: z168.string()
4545
4643
  });
4546
- var DTOElementViewColumn = z167.discriminatedUnion("type", [
4644
+ var DTOElementViewColumn = z168.discriminatedUnion("type", [
4547
4645
  DTOElementViewBasePropertyColumn,
4548
4646
  DTOElementViewPropertyDefinitionColumn,
4549
4647
  DTOElementViewThemeColumn
4550
4648
  ]);
4551
- var DTOElementView = z167.object({
4649
+ var DTOElementView = z168.object({
4552
4650
  meta: ObjectMeta,
4553
- persistentId: z167.string(),
4651
+ persistentId: z168.string(),
4554
4652
  targetElementType: ElementPropertyTargetType,
4555
- id: z167.string(),
4556
- isDefault: z167.boolean(),
4557
- columns: z167.array(DTOElementViewColumn)
4653
+ id: z168.string(),
4654
+ isDefault: z168.boolean(),
4655
+ columns: z168.array(DTOElementViewColumn)
4558
4656
  });
4559
- var DTOElementViewsListResponse = z167.object({
4560
- elementDataViews: z167.array(DTOElementView)
4657
+ var DTOElementViewsListResponse = z168.object({
4658
+ elementDataViews: z168.array(DTOElementView)
4561
4659
  });
4562
4660
 
4563
4661
  // src/api/dto/documentation/anchor.ts
4564
- import { z as z168 } from "zod";
4662
+ import { z as z169 } from "zod";
4565
4663
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
4566
- var DTOGetDocumentationPageAnchorsResponse = z168.object({
4567
- anchors: z168.array(DTODocumentationPageAnchor)
4664
+ var DTOGetDocumentationPageAnchorsResponse = z169.object({
4665
+ anchors: z169.array(DTODocumentationPageAnchor)
4568
4666
  });
4569
4667
 
4570
4668
  // src/api/dto/documentation/link-preview.ts
4571
- import { z as z169 } from "zod";
4572
- var DTODocumentationLinkPreviewResponse = z169.object({
4669
+ import { z as z170 } from "zod";
4670
+ var DTODocumentationLinkPreviewResponse = z170.object({
4573
4671
  linkPreview: DocumentationLinkPreview
4574
4672
  });
4575
- var DTODocumentationLinkPreviewRequest = z169.object({
4576
- url: z169.string().optional(),
4577
- documentationItemPersistentId: z169.string().optional()
4673
+ var DTODocumentationLinkPreviewRequest = z170.object({
4674
+ url: z170.string().optional(),
4675
+ documentationItemPersistentId: z170.string().optional()
4578
4676
  });
4579
4677
 
4580
4678
  // src/api/dto/elements/documentation/group-action.ts
4581
- import { z as z172 } from "zod";
4679
+ import { z as z173 } from "zod";
4582
4680
 
4583
4681
  // src/api/dto/elements/documentation/group-v2.ts
4584
- import { z as z171 } from "zod";
4682
+ import { z as z172 } from "zod";
4585
4683
 
4586
4684
  // src/api/dto/elements/documentation/item-configuration-v2.ts
4587
- import { z as z170 } from "zod";
4685
+ import { z as z171 } from "zod";
4588
4686
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4589
- var DTODocumentationItemConfigurationV2 = z170.object({
4590
- showSidebar: z170.boolean(),
4591
- isPrivate: z170.boolean(),
4592
- isHidden: z170.boolean(),
4687
+ var DTODocumentationItemConfigurationV2 = z171.object({
4688
+ showSidebar: z171.boolean(),
4689
+ isPrivate: z171.boolean(),
4690
+ isHidden: z171.boolean(),
4593
4691
  header: DTODocumentationItemHeaderV2
4594
4692
  });
4595
4693
 
@@ -4603,136 +4701,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4603
4701
  data: true,
4604
4702
  shortPersistentId: true
4605
4703
  }).extend({
4606
- title: z171.string(),
4607
- isRoot: z171.boolean(),
4608
- childrenIds: z171.array(z171.string()),
4704
+ title: z172.string(),
4705
+ isRoot: z172.boolean(),
4706
+ childrenIds: z172.array(z172.string()),
4609
4707
  groupBehavior: DocumentationGroupBehavior,
4610
- shortPersistentId: z171.string(),
4708
+ shortPersistentId: z172.string(),
4611
4709
  configuration: DTODocumentationItemConfigurationV2,
4612
- type: z171.literal("Group")
4710
+ type: z172.literal("Group")
4613
4711
  });
4614
4712
  var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4615
- var DTOCreateDocumentationGroupInput = z171.object({
4713
+ var DTOCreateDocumentationGroupInput = z172.object({
4616
4714
  // Identifier
4617
- persistentId: z171.string().uuid(),
4715
+ persistentId: z172.string().uuid(),
4618
4716
  // Group properties
4619
- title: z171.string(),
4717
+ title: z172.string(),
4620
4718
  configuration: DTODocumentationItemConfigurationV2.optional(),
4621
4719
  // Group placement properties
4622
- afterPersistentId: z171.string().uuid().nullish(),
4623
- parentPersistentId: z171.string().uuid()
4720
+ afterPersistentId: z172.string().uuid().nullish(),
4721
+ parentPersistentId: z172.string().uuid()
4624
4722
  });
4625
- var DTOUpdateDocumentationGroupInput = z171.object({
4723
+ var DTOUpdateDocumentationGroupInput = z172.object({
4626
4724
  // Identifier of the group to update
4627
- id: z171.string(),
4725
+ id: z172.string(),
4628
4726
  // Group properties
4629
- title: z171.string().optional(),
4727
+ title: z172.string().optional(),
4630
4728
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4631
4729
  });
4632
- var DTOMoveDocumentationGroupInput = z171.object({
4730
+ var DTOMoveDocumentationGroupInput = z172.object({
4633
4731
  // Identifier of the group to update
4634
- id: z171.string(),
4732
+ id: z172.string(),
4635
4733
  // Group placement properties
4636
- parentPersistentId: z171.string().uuid(),
4637
- afterPersistentId: z171.string().uuid().nullish()
4734
+ parentPersistentId: z172.string().uuid(),
4735
+ afterPersistentId: z172.string().uuid().nullish()
4638
4736
  });
4639
- var DTODuplicateDocumentationGroupInput = z171.object({
4737
+ var DTODuplicateDocumentationGroupInput = z172.object({
4640
4738
  // Identifier of the group to duplicate from
4641
- id: z171.string(),
4739
+ id: z172.string(),
4642
4740
  // New group persistent id
4643
- persistentId: z171.string().uuid(),
4741
+ persistentId: z172.string().uuid(),
4644
4742
  // Group placement properties
4645
- afterPersistentId: z171.string().uuid().nullish(),
4646
- parentPersistentId: z171.string().uuid()
4743
+ afterPersistentId: z172.string().uuid().nullish(),
4744
+ parentPersistentId: z172.string().uuid()
4647
4745
  });
4648
- var DTOCreateDocumentationTabInput = z171.object({
4746
+ var DTOCreateDocumentationTabInput = z172.object({
4649
4747
  // New group persistent id
4650
- persistentId: z171.string().uuid(),
4748
+ persistentId: z172.string().uuid(),
4651
4749
  // If this is page, we will attempt to convert it to tab
4652
4750
  // If this is tab group, we will add a new tab to it
4653
- fromItemPersistentId: z171.string(),
4654
- tabName: z171.string()
4751
+ fromItemPersistentId: z172.string(),
4752
+ tabName: z172.string()
4655
4753
  });
4656
- var DTODeleteDocumentationTabGroupInput = z171.object({
4754
+ var DTODeleteDocumentationTabGroupInput = z172.object({
4657
4755
  // Deleted group id
4658
- id: z171.string()
4756
+ id: z172.string()
4659
4757
  });
4660
- var DTODeleteDocumentationGroupInput = z171.object({
4758
+ var DTODeleteDocumentationGroupInput = z172.object({
4661
4759
  // Identifier
4662
- id: z171.string(),
4760
+ id: z172.string(),
4663
4761
  // Deletion options
4664
- deleteSubtree: z171.boolean().default(false)
4762
+ deleteSubtree: z172.boolean().default(false)
4665
4763
  });
4666
4764
 
4667
4765
  // src/api/dto/elements/documentation/group-action.ts
4668
- var SuccessPayload = z172.object({
4669
- success: z172.literal(true)
4766
+ var SuccessPayload = z173.object({
4767
+ success: z173.literal(true)
4670
4768
  });
4671
- var DTODocumentationGroupCreateActionOutputV2 = z172.object({
4672
- type: z172.literal("DocumentationGroupCreate"),
4769
+ var DTODocumentationGroupCreateActionOutputV2 = z173.object({
4770
+ type: z173.literal("DocumentationGroupCreate"),
4673
4771
  output: SuccessPayload
4674
4772
  });
4675
- var DTODocumentationTabCreateActionOutputV2 = z172.object({
4676
- type: z172.literal("DocumentationTabCreate"),
4773
+ var DTODocumentationTabCreateActionOutputV2 = z173.object({
4774
+ type: z173.literal("DocumentationTabCreate"),
4677
4775
  output: SuccessPayload
4678
4776
  });
4679
- var DTODocumentationGroupUpdateActionOutputV2 = z172.object({
4680
- type: z172.literal("DocumentationGroupUpdate"),
4777
+ var DTODocumentationGroupUpdateActionOutputV2 = z173.object({
4778
+ type: z173.literal("DocumentationGroupUpdate"),
4681
4779
  output: SuccessPayload
4682
4780
  });
4683
- var DTODocumentationGroupMoveActionOutputV2 = z172.object({
4684
- type: z172.literal("DocumentationGroupMove"),
4781
+ var DTODocumentationGroupMoveActionOutputV2 = z173.object({
4782
+ type: z173.literal("DocumentationGroupMove"),
4685
4783
  output: SuccessPayload
4686
4784
  });
4687
- var DTODocumentationGroupDuplicateActionOutputV2 = z172.object({
4688
- type: z172.literal("DocumentationGroupDuplicate"),
4785
+ var DTODocumentationGroupDuplicateActionOutputV2 = z173.object({
4786
+ type: z173.literal("DocumentationGroupDuplicate"),
4689
4787
  output: SuccessPayload
4690
4788
  });
4691
- var DTODocumentationGroupDeleteActionOutputV2 = z172.object({
4692
- type: z172.literal("DocumentationGroupDelete"),
4789
+ var DTODocumentationGroupDeleteActionOutputV2 = z173.object({
4790
+ type: z173.literal("DocumentationGroupDelete"),
4693
4791
  output: SuccessPayload
4694
4792
  });
4695
- var DTODocumentationTabGroupDeleteActionOutputV2 = z172.object({
4696
- type: z172.literal("DocumentationTabGroupDelete"),
4793
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z173.object({
4794
+ type: z173.literal("DocumentationTabGroupDelete"),
4697
4795
  output: SuccessPayload
4698
4796
  });
4699
- var DTODocumentationGroupCreateActionInputV2 = z172.object({
4700
- type: z172.literal("DocumentationGroupCreate"),
4797
+ var DTODocumentationGroupCreateActionInputV2 = z173.object({
4798
+ type: z173.literal("DocumentationGroupCreate"),
4701
4799
  input: DTOCreateDocumentationGroupInput
4702
4800
  });
4703
- var DTODocumentationTabCreateActionInputV2 = z172.object({
4704
- type: z172.literal("DocumentationTabCreate"),
4801
+ var DTODocumentationTabCreateActionInputV2 = z173.object({
4802
+ type: z173.literal("DocumentationTabCreate"),
4705
4803
  input: DTOCreateDocumentationTabInput
4706
4804
  });
4707
- var DTODocumentationGroupUpdateActionInputV2 = z172.object({
4708
- type: z172.literal("DocumentationGroupUpdate"),
4805
+ var DTODocumentationGroupUpdateActionInputV2 = z173.object({
4806
+ type: z173.literal("DocumentationGroupUpdate"),
4709
4807
  input: DTOUpdateDocumentationGroupInput
4710
4808
  });
4711
- var DTODocumentationGroupMoveActionInputV2 = z172.object({
4712
- type: z172.literal("DocumentationGroupMove"),
4809
+ var DTODocumentationGroupMoveActionInputV2 = z173.object({
4810
+ type: z173.literal("DocumentationGroupMove"),
4713
4811
  input: DTOMoveDocumentationGroupInput
4714
4812
  });
4715
- var DTODocumentationGroupDuplicateActionInputV2 = z172.object({
4716
- type: z172.literal("DocumentationGroupDuplicate"),
4813
+ var DTODocumentationGroupDuplicateActionInputV2 = z173.object({
4814
+ type: z173.literal("DocumentationGroupDuplicate"),
4717
4815
  input: DTODuplicateDocumentationGroupInput
4718
4816
  });
4719
- var DTODocumentationGroupDeleteActionInputV2 = z172.object({
4720
- type: z172.literal("DocumentationGroupDelete"),
4817
+ var DTODocumentationGroupDeleteActionInputV2 = z173.object({
4818
+ type: z173.literal("DocumentationGroupDelete"),
4721
4819
  input: DTODeleteDocumentationGroupInput
4722
4820
  });
4723
- var DTODocumentationTabGroupDeleteActionInputV2 = z172.object({
4724
- type: z172.literal("DocumentationTabGroupDelete"),
4821
+ var DTODocumentationTabGroupDeleteActionInputV2 = z173.object({
4822
+ type: z173.literal("DocumentationTabGroupDelete"),
4725
4823
  input: DTODeleteDocumentationTabGroupInput
4726
4824
  });
4727
4825
 
4728
4826
  // src/api/dto/elements/documentation/group-v1.ts
4729
- import { z as z174 } from "zod";
4827
+ import { z as z175 } from "zod";
4730
4828
 
4731
4829
  // src/api/dto/elements/documentation/item-configuration-v1.ts
4732
- import { z as z173 } from "zod";
4733
- var DocumentationColorV1 = z173.object({
4734
- aliasTo: z173.string().optional(),
4735
- value: z173.string().optional()
4830
+ import { z as z174 } from "zod";
4831
+ var DocumentationColorV1 = z174.object({
4832
+ aliasTo: z174.string().optional(),
4833
+ value: z174.string().optional()
4736
4834
  });
4737
4835
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4738
4836
  foregroundColor: true,
@@ -4741,10 +4839,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4741
4839
  foregroundColor: DocumentationColorV1.optional(),
4742
4840
  backgroundColor: DocumentationColorV1.optional()
4743
4841
  });
4744
- var DTODocumentationItemConfigurationV1 = z173.object({
4745
- showSidebar: z173.boolean(),
4746
- isPrivate: z173.boolean(),
4747
- isHidden: z173.boolean(),
4842
+ var DTODocumentationItemConfigurationV1 = z174.object({
4843
+ showSidebar: z174.boolean(),
4844
+ isPrivate: z174.boolean(),
4845
+ isHidden: z174.boolean(),
4748
4846
  header: DTODocumentationItemHeaderV1
4749
4847
  });
4750
4848
 
@@ -4758,130 +4856,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
4758
4856
  data: true,
4759
4857
  shortPersistentId: true
4760
4858
  }).extend({
4761
- title: z174.string(),
4762
- isRoot: z174.boolean(),
4763
- childrenIds: z174.array(z174.string()),
4859
+ title: z175.string(),
4860
+ isRoot: z175.boolean(),
4861
+ childrenIds: z175.array(z175.string()),
4764
4862
  groupBehavior: DocumentationGroupBehavior,
4765
- shortPersistentId: z174.string(),
4766
- type: z174.literal("Group")
4863
+ shortPersistentId: z175.string(),
4864
+ type: z175.literal("Group")
4767
4865
  });
4768
4866
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
4769
4867
  configuration: DTODocumentationItemConfigurationV1
4770
4868
  });
4771
4869
 
4772
4870
  // src/api/dto/elements/documentation/page-actions-v2.ts
4773
- import { z as z176 } from "zod";
4871
+ import { z as z177 } from "zod";
4774
4872
 
4775
4873
  // src/api/dto/elements/documentation/page-v2.ts
4776
- import { z as z175 } from "zod";
4874
+ import { z as z176 } from "zod";
4777
4875
  var DTODocumentationPageV2 = DocumentationPageV2.omit({
4778
4876
  data: true,
4779
4877
  meta: true,
4780
4878
  parentPersistentId: true,
4781
4879
  sortOrder: true
4782
4880
  }).extend({
4783
- title: z175.string(),
4784
- path: z175.string(),
4785
- type: z175.literal("Page"),
4881
+ title: z176.string(),
4882
+ path: z176.string(),
4883
+ type: z176.literal("Page"),
4786
4884
  configuration: DTODocumentationItemConfigurationV2
4787
4885
  });
4788
4886
  var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
4789
- var DTODocumentationHierarchyV2 = z175.object({
4790
- pages: z175.array(DTODocumentationPageStructureV2),
4791
- groups: z175.array(DTODocumentationGroupStructureV2)
4887
+ var DTODocumentationHierarchyV2 = z176.object({
4888
+ pages: z176.array(DTODocumentationPageStructureV2),
4889
+ groups: z176.array(DTODocumentationGroupStructureV2)
4792
4890
  });
4793
- var DTOCreateDocumentationPageInputV2 = z175.object({
4891
+ var DTOCreateDocumentationPageInputV2 = z176.object({
4794
4892
  // Identifier
4795
- persistentId: z175.string().uuid(),
4893
+ persistentId: z176.string().uuid(),
4796
4894
  // Page properties
4797
- title: z175.string(),
4895
+ title: z176.string(),
4798
4896
  configuration: DTODocumentationItemConfigurationV2.optional(),
4799
4897
  // Page placement properties
4800
- parentPersistentId: z175.string().uuid(),
4801
- afterPersistentId: z175.string().uuid().nullish()
4898
+ parentPersistentId: z176.string().uuid(),
4899
+ afterPersistentId: z176.string().uuid().nullish()
4802
4900
  });
4803
- var DTOUpdateDocumentationPageInputV2 = z175.object({
4901
+ var DTOUpdateDocumentationPageInputV2 = z176.object({
4804
4902
  // Identifier of the group to update
4805
- id: z175.string(),
4903
+ id: z176.string(),
4806
4904
  // Page properties
4807
- title: z175.string().optional(),
4905
+ title: z176.string().optional(),
4808
4906
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4809
4907
  });
4810
- var DTOMoveDocumentationPageInputV2 = z175.object({
4908
+ var DTOMoveDocumentationPageInputV2 = z176.object({
4811
4909
  // Identifier of the group to update
4812
- id: z175.string(),
4910
+ id: z176.string(),
4813
4911
  // Page placement properties
4814
- parentPersistentId: z175.string().uuid(),
4815
- afterPersistentId: z175.string().uuid().nullish()
4912
+ parentPersistentId: z176.string().uuid(),
4913
+ afterPersistentId: z176.string().uuid().nullish()
4816
4914
  });
4817
- var DTODuplicateDocumentationPageInputV2 = z175.object({
4915
+ var DTODuplicateDocumentationPageInputV2 = z176.object({
4818
4916
  // Identifier of the page to duplicate from
4819
- id: z175.string(),
4917
+ id: z176.string(),
4820
4918
  // New page persistent id
4821
- persistentId: z175.string().uuid(),
4919
+ persistentId: z176.string().uuid(),
4822
4920
  // Page placement properties
4823
- parentPersistentId: z175.string().uuid(),
4824
- afterPersistentId: z175.string().uuid().nullish()
4921
+ parentPersistentId: z176.string().uuid(),
4922
+ afterPersistentId: z176.string().uuid().nullish()
4825
4923
  });
4826
- var DTODeleteDocumentationPageInputV2 = z175.object({
4924
+ var DTODeleteDocumentationPageInputV2 = z176.object({
4827
4925
  // Identifier
4828
- id: z175.string()
4926
+ id: z176.string()
4829
4927
  });
4830
4928
 
4831
4929
  // src/api/dto/elements/documentation/page-actions-v2.ts
4832
- var SuccessPayload2 = z176.object({
4833
- success: z176.literal(true)
4930
+ var SuccessPayload2 = z177.object({
4931
+ success: z177.literal(true)
4834
4932
  });
4835
- var DTODocumentationPageCreateActionOutputV2 = z176.object({
4836
- type: z176.literal("DocumentationPageCreate"),
4933
+ var DTODocumentationPageCreateActionOutputV2 = z177.object({
4934
+ type: z177.literal("DocumentationPageCreate"),
4837
4935
  output: SuccessPayload2
4838
4936
  });
4839
- var DTODocumentationPageUpdateActionOutputV2 = z176.object({
4840
- type: z176.literal("DocumentationPageUpdate"),
4937
+ var DTODocumentationPageUpdateActionOutputV2 = z177.object({
4938
+ type: z177.literal("DocumentationPageUpdate"),
4841
4939
  output: SuccessPayload2
4842
4940
  });
4843
- var DTODocumentationPageMoveActionOutputV2 = z176.object({
4844
- type: z176.literal("DocumentationPageMove"),
4941
+ var DTODocumentationPageMoveActionOutputV2 = z177.object({
4942
+ type: z177.literal("DocumentationPageMove"),
4845
4943
  output: SuccessPayload2
4846
4944
  });
4847
- var DTODocumentationPageDuplicateActionOutputV2 = z176.object({
4848
- type: z176.literal("DocumentationPageDuplicate"),
4945
+ var DTODocumentationPageDuplicateActionOutputV2 = z177.object({
4946
+ type: z177.literal("DocumentationPageDuplicate"),
4849
4947
  output: SuccessPayload2
4850
4948
  });
4851
- var DTODocumentationPageDeleteActionOutputV2 = z176.object({
4852
- type: z176.literal("DocumentationPageDelete"),
4949
+ var DTODocumentationPageDeleteActionOutputV2 = z177.object({
4950
+ type: z177.literal("DocumentationPageDelete"),
4853
4951
  output: SuccessPayload2
4854
4952
  });
4855
- var DTODocumentationPageCreateActionInputV2 = z176.object({
4856
- type: z176.literal("DocumentationPageCreate"),
4953
+ var DTODocumentationPageCreateActionInputV2 = z177.object({
4954
+ type: z177.literal("DocumentationPageCreate"),
4857
4955
  input: DTOCreateDocumentationPageInputV2
4858
4956
  });
4859
- var DTODocumentationPageUpdateActionInputV2 = z176.object({
4860
- type: z176.literal("DocumentationPageUpdate"),
4957
+ var DTODocumentationPageUpdateActionInputV2 = z177.object({
4958
+ type: z177.literal("DocumentationPageUpdate"),
4861
4959
  input: DTOUpdateDocumentationPageInputV2
4862
4960
  });
4863
- var DTODocumentationPageMoveActionInputV2 = z176.object({
4864
- type: z176.literal("DocumentationPageMove"),
4961
+ var DTODocumentationPageMoveActionInputV2 = z177.object({
4962
+ type: z177.literal("DocumentationPageMove"),
4865
4963
  input: DTOMoveDocumentationPageInputV2
4866
4964
  });
4867
- var DTODocumentationPageDuplicateActionInputV2 = z176.object({
4868
- type: z176.literal("DocumentationPageDuplicate"),
4965
+ var DTODocumentationPageDuplicateActionInputV2 = z177.object({
4966
+ type: z177.literal("DocumentationPageDuplicate"),
4869
4967
  input: DTODuplicateDocumentationPageInputV2
4870
4968
  });
4871
- var DTODocumentationPageDeleteActionInputV2 = z176.object({
4872
- type: z176.literal("DocumentationPageDelete"),
4969
+ var DTODocumentationPageDeleteActionInputV2 = z177.object({
4970
+ type: z177.literal("DocumentationPageDelete"),
4873
4971
  input: DTODeleteDocumentationPageInputV2
4874
4972
  });
4875
4973
 
4876
4974
  // src/api/dto/elements/documentation/page-content.ts
4877
- import { z as z177 } from "zod";
4975
+ import { z as z178 } from "zod";
4878
4976
  var DTODocumentationPageContent = DocumentationPageContent;
4879
- var DTODocumentationPageContentGetResponse = z177.object({
4977
+ var DTODocumentationPageContentGetResponse = z178.object({
4880
4978
  pageContent: DTODocumentationPageContent
4881
4979
  });
4882
4980
 
4883
4981
  // src/api/dto/elements/documentation/page-v1.ts
4884
- import { z as z178 } from "zod";
4982
+ import { z as z179 } from "zod";
4885
4983
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
4886
4984
  data: true,
4887
4985
  meta: true,
@@ -4889,30 +4987,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
4889
4987
  sortOrder: true
4890
4988
  }).extend({
4891
4989
  configuration: DTODocumentationItemConfigurationV1,
4892
- blocks: z178.array(PageBlockV1),
4893
- title: z178.string(),
4894
- path: z178.string()
4990
+ blocks: z179.array(PageBlockV1),
4991
+ title: z179.string(),
4992
+ path: z179.string()
4895
4993
  });
4896
4994
 
4897
4995
  // src/api/dto/elements/figma-nodes/figma-node.ts
4898
- import { z as z179 } from "zod";
4899
- var DTOFigmaNodeOrigin = z179.object({
4900
- sourceId: z179.string(),
4901
- fileId: z179.string().optional(),
4902
- parentName: z179.string().optional()
4996
+ import { z as z180 } from "zod";
4997
+ var DTOFigmaNodeOrigin = z180.object({
4998
+ sourceId: z180.string(),
4999
+ fileId: z180.string().optional(),
5000
+ parentName: z180.string().optional()
4903
5001
  });
4904
- var DTOFigmaNodeData = z179.object({
5002
+ var DTOFigmaNodeData = z180.object({
4905
5003
  // Id of the node in the Figma file
4906
- figmaNodeId: z179.string(),
5004
+ figmaNodeId: z180.string(),
4907
5005
  // Validity
4908
- isValid: z179.boolean(),
5006
+ isValid: z180.boolean(),
4909
5007
  // Asset data
4910
- assetId: z179.string(),
4911
- assetUrl: z179.string(),
5008
+ assetId: z180.string(),
5009
+ assetUrl: z180.string(),
4912
5010
  // Asset metadata
4913
- assetScale: z179.number(),
4914
- assetWidth: z179.number().optional(),
4915
- assetHeight: z179.number().optional()
5011
+ assetScale: z180.number(),
5012
+ assetWidth: z180.number().optional(),
5013
+ assetHeight: z180.number().optional()
4916
5014
  });
4917
5015
  var DTOFigmaNode = FigmaFileStructure.omit({
4918
5016
  data: true,
@@ -4921,105 +5019,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
4921
5019
  data: DTOFigmaNodeData,
4922
5020
  origin: DTOFigmaNodeOrigin
4923
5021
  });
4924
- var DTOFigmaNodeRenderInput = z179.object({
5022
+ var DTOFigmaNodeRenderInput = z180.object({
4925
5023
  // Id of a design system's data source representing a linked Figma file
4926
- sourceId: z179.string(),
5024
+ sourceId: z180.string(),
4927
5025
  // Id of a node within the Figma file
4928
- figmaFileNodeId: z179.string()
5026
+ figmaFileNodeId: z180.string()
4929
5027
  });
4930
5028
 
4931
5029
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
4932
- import { z as z180 } from "zod";
4933
- var DTOFigmaNodeRenderActionOutput = z180.object({
4934
- type: z180.literal("FigmaNodeRender"),
4935
- figmaNodes: z180.array(DTOFigmaNode)
5030
+ import { z as z181 } from "zod";
5031
+ var DTOFigmaNodeRenderActionOutput = z181.object({
5032
+ type: z181.literal("FigmaNodeRender"),
5033
+ figmaNodes: z181.array(DTOFigmaNode)
4936
5034
  });
4937
- var DTOFigmaNodeRenderActionInput = z180.object({
4938
- type: z180.literal("FigmaNodeRender"),
5035
+ var DTOFigmaNodeRenderActionInput = z181.object({
5036
+ type: z181.literal("FigmaNodeRender"),
4939
5037
  input: DTOFigmaNodeRenderInput.array()
4940
5038
  });
4941
5039
 
4942
5040
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4943
- import { z as z182 } from "zod";
5041
+ import { z as z183 } from "zod";
4944
5042
 
4945
5043
  // src/api/dto/elements/properties/property-definitions.ts
4946
- import { z as z181 } from "zod";
5044
+ import { z as z182 } from "zod";
4947
5045
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
4948
- var DTOElementPropertyDefinition = z181.object({
4949
- id: z181.string(),
4950
- designSystemVersionId: z181.string(),
5046
+ var DTOElementPropertyDefinition = z182.object({
5047
+ id: z182.string(),
5048
+ designSystemVersionId: z182.string(),
4951
5049
  meta: ObjectMeta,
4952
- persistentId: z181.string(),
5050
+ persistentId: z182.string(),
4953
5051
  type: ElementPropertyTypeSchema,
4954
5052
  targetElementType: ElementPropertyTargetType,
4955
- codeName: z181.string().regex(CODE_NAME_REGEX2),
4956
- options: z181.array(ElementPropertyDefinitionOption).optional(),
5053
+ codeName: z182.string().regex(CODE_NAME_REGEX2),
5054
+ options: z182.array(ElementPropertyDefinitionOption).optional(),
4957
5055
  linkElementType: ElementPropertyLinkType.optional()
4958
5056
  });
4959
- var DTOElementPropertyDefinitionsGetResponse = z181.object({
4960
- definitions: z181.array(DTOElementPropertyDefinition)
5057
+ var DTOElementPropertyDefinitionsGetResponse = z182.object({
5058
+ definitions: z182.array(DTOElementPropertyDefinition)
4961
5059
  });
4962
5060
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
4963
5061
  id: true,
4964
5062
  designSystemVersionId: true
4965
5063
  });
4966
- var DTOUpdateElementPropertyDefinitionInputV2 = z181.object({
4967
- id: z181.string(),
4968
- name: z181.string().optional(),
4969
- description: z181.string().optional(),
4970
- codeName: z181.string().regex(CODE_NAME_REGEX2).optional(),
4971
- options: z181.array(ElementPropertyDefinitionOption).optional()
5064
+ var DTOUpdateElementPropertyDefinitionInputV2 = z182.object({
5065
+ id: z182.string(),
5066
+ name: z182.string().optional(),
5067
+ description: z182.string().optional(),
5068
+ codeName: z182.string().regex(CODE_NAME_REGEX2).optional(),
5069
+ options: z182.array(ElementPropertyDefinitionOption).optional()
4972
5070
  });
4973
- var DTODeleteElementPropertyDefinitionInputV2 = z181.object({
4974
- id: z181.string()
5071
+ var DTODeleteElementPropertyDefinitionInputV2 = z182.object({
5072
+ id: z182.string()
4975
5073
  });
4976
5074
 
4977
5075
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4978
- var SuccessPayload3 = z182.object({
4979
- success: z182.literal(true)
5076
+ var SuccessPayload3 = z183.object({
5077
+ success: z183.literal(true)
4980
5078
  });
4981
- var DTOPropertyDefinitionCreateActionOutputV2 = z182.object({
4982
- type: z182.literal("PropertyDefinitionCreate"),
5079
+ var DTOPropertyDefinitionCreateActionOutputV2 = z183.object({
5080
+ type: z183.literal("PropertyDefinitionCreate"),
4983
5081
  definition: DTOElementPropertyDefinition
4984
5082
  });
4985
- var DTOPropertyDefinitionUpdateActionOutputV2 = z182.object({
4986
- type: z182.literal("PropertyDefinitionUpdate"),
5083
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z183.object({
5084
+ type: z183.literal("PropertyDefinitionUpdate"),
4987
5085
  definition: DTOElementPropertyDefinition
4988
5086
  });
4989
- var DTOPropertyDefinitionDeleteActionOutputV2 = z182.object({
4990
- type: z182.literal("PropertyDefinitionDelete"),
5087
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z183.object({
5088
+ type: z183.literal("PropertyDefinitionDelete"),
4991
5089
  output: SuccessPayload3
4992
5090
  });
4993
- var DTOPropertyDefinitionCreateActionInputV2 = z182.object({
4994
- type: z182.literal("PropertyDefinitionCreate"),
5091
+ var DTOPropertyDefinitionCreateActionInputV2 = z183.object({
5092
+ type: z183.literal("PropertyDefinitionCreate"),
4995
5093
  input: DTOCreateElementPropertyDefinitionInputV2
4996
5094
  });
4997
- var DTOPropertyDefinitionUpdateActionInputV2 = z182.object({
4998
- type: z182.literal("PropertyDefinitionUpdate"),
5095
+ var DTOPropertyDefinitionUpdateActionInputV2 = z183.object({
5096
+ type: z183.literal("PropertyDefinitionUpdate"),
4999
5097
  input: DTOUpdateElementPropertyDefinitionInputV2
5000
5098
  });
5001
- var DTOPropertyDefinitionDeleteActionInputV2 = z182.object({
5002
- type: z182.literal("PropertyDefinitionDelete"),
5099
+ var DTOPropertyDefinitionDeleteActionInputV2 = z183.object({
5100
+ type: z183.literal("PropertyDefinitionDelete"),
5003
5101
  input: DTODeleteElementPropertyDefinitionInputV2
5004
5102
  });
5005
5103
 
5006
5104
  // src/api/dto/elements/properties/property-values.ts
5007
- import { z as z183 } from "zod";
5008
- var DTOElementPropertyValue = z183.object({
5009
- id: z183.string(),
5010
- designSystemVersionId: z183.string(),
5011
- definitionId: z183.string(),
5012
- targetElementId: z183.string(),
5013
- value: z183.union([z183.string(), z183.number(), z183.boolean()]).optional(),
5014
- valuePreview: z183.string().optional()
5105
+ import { z as z184 } from "zod";
5106
+ var DTOElementPropertyValue = z184.object({
5107
+ id: z184.string(),
5108
+ designSystemVersionId: z184.string(),
5109
+ definitionId: z184.string(),
5110
+ targetElementId: z184.string(),
5111
+ value: z184.union([z184.string(), z184.number(), z184.boolean()]).optional(),
5112
+ valuePreview: z184.string().optional()
5015
5113
  });
5016
- var DTOElementPropertyValuesGetResponse = z183.object({
5017
- values: z183.array(DTOElementPropertyValue)
5114
+ var DTOElementPropertyValuesGetResponse = z184.object({
5115
+ values: z184.array(DTOElementPropertyValue)
5018
5116
  });
5019
5117
 
5020
5118
  // src/api/dto/elements/elements-action-v2.ts
5021
- import { z as z184 } from "zod";
5022
- var DTOElementActionOutput = z184.discriminatedUnion("type", [
5119
+ import { z as z185 } from "zod";
5120
+ var DTOElementActionOutput = z185.discriminatedUnion("type", [
5023
5121
  // Documentation pages
5024
5122
  DTODocumentationPageCreateActionOutputV2,
5025
5123
  DTODocumentationPageUpdateActionOutputV2,
@@ -5041,7 +5139,7 @@ var DTOElementActionOutput = z184.discriminatedUnion("type", [
5041
5139
  DTOPropertyDefinitionUpdateActionOutputV2,
5042
5140
  DTOPropertyDefinitionDeleteActionOutputV2
5043
5141
  ]);
5044
- var DTOElementActionInput = z184.discriminatedUnion("type", [
5142
+ var DTOElementActionInput = z185.discriminatedUnion("type", [
5045
5143
  // Documentation pages
5046
5144
  DTODocumentationPageCreateActionInputV2,
5047
5145
  DTODocumentationPageUpdateActionInputV2,
@@ -5065,152 +5163,152 @@ var DTOElementActionInput = z184.discriminatedUnion("type", [
5065
5163
  ]);
5066
5164
 
5067
5165
  // src/api/dto/elements/get-elements-v2.ts
5068
- import { z as z185 } from "zod";
5069
- var DTOElementsGetTypeFilter = z185.enum(["FigmaNode"]);
5070
- var DTOElementsGetQuerySchema = z185.object({
5071
- types: z185.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5166
+ import { z as z186 } from "zod";
5167
+ var DTOElementsGetTypeFilter = z186.enum(["FigmaNode"]);
5168
+ var DTOElementsGetQuerySchema = z186.object({
5169
+ types: z186.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5072
5170
  });
5073
- var DTOElementsGetOutput = z185.object({
5074
- figmaNodes: z185.array(DTOFigmaNode).optional()
5171
+ var DTOElementsGetOutput = z186.object({
5172
+ figmaNodes: z186.array(DTOFigmaNode).optional()
5075
5173
  });
5076
5174
 
5077
5175
  // src/api/dto/export/job.ts
5078
- import { z as z186 } from "zod";
5079
- var DTOExportJobCreatedBy = z186.object({
5080
- userId: z186.string(),
5081
- userName: z186.string()
5176
+ import { z as z187 } from "zod";
5177
+ var DTOExportJobCreatedBy = z187.object({
5178
+ userId: z187.string(),
5179
+ userName: z187.string()
5082
5180
  });
5083
- var DTOExportJobDesignSystemPreview = z186.object({
5084
- id: z186.string(),
5181
+ var DTOExportJobDesignSystemPreview = z187.object({
5182
+ id: z187.string(),
5085
5183
  meta: ObjectMeta
5086
5184
  });
5087
- var DTOExportJobDesignSystemVersionPreview = z186.object({
5088
- id: z186.string(),
5185
+ var DTOExportJobDesignSystemVersionPreview = z187.object({
5186
+ id: z187.string(),
5089
5187
  meta: ObjectMeta,
5090
- version: z186.string(),
5091
- isReadonly: z186.boolean()
5188
+ version: z187.string(),
5189
+ isReadonly: z187.boolean()
5092
5190
  });
5093
- var DTOExportJobDestinations = z186.object({
5191
+ var DTOExportJobDestinations = z187.object({
5094
5192
  s3: ExporterDestinationS3.optional(),
5095
5193
  azure: ExporterDestinationAzure.optional(),
5096
5194
  bitbucket: ExporterDestinationBitbucket.optional(),
5097
5195
  github: ExporterDestinationGithub.optional(),
5098
5196
  gitlab: ExporterDestinationGitlab.optional(),
5099
5197
  documentation: ExporterDestinationDocs.optional(),
5100
- webhookUrl: z186.string().optional()
5198
+ webhookUrl: z187.string().optional()
5101
5199
  });
5102
- var DTOExportJob = z186.object({
5103
- id: z186.string(),
5104
- createdAt: z186.date(),
5105
- finishedAt: z186.date().optional(),
5106
- index: z186.number().optional(),
5200
+ var DTOExportJob = z187.object({
5201
+ id: z187.string(),
5202
+ createdAt: z187.date(),
5203
+ finishedAt: z187.date().optional(),
5204
+ index: z187.number().optional(),
5107
5205
  status: ExportJobStatus,
5108
- estimatedExecutionTime: z186.number().optional(),
5206
+ estimatedExecutionTime: z187.number().optional(),
5109
5207
  createdBy: DTOExportJobCreatedBy,
5110
5208
  designSystem: DTOExportJobDesignSystemPreview,
5111
5209
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5112
5210
  destinations: DTOExportJobDestinations,
5113
- exporterId: z186.string(),
5114
- scheduleId: z186.string(),
5211
+ exporterId: z187.string(),
5212
+ scheduleId: z187.string(),
5115
5213
  result: ExportJobResult.optional()
5116
5214
  });
5117
5215
 
5118
5216
  // src/api/dto/liveblocks/auth-response.ts
5119
- import { z as z187 } from "zod";
5120
- var DTOLiveblocksAuthResponse = z187.object({
5121
- token: z187.string()
5217
+ import { z as z188 } from "zod";
5218
+ var DTOLiveblocksAuthResponse = z188.object({
5219
+ token: z188.string()
5122
5220
  });
5123
5221
 
5124
5222
  // src/api/dto/users/profile/update.ts
5125
- import { z as z188 } from "zod";
5126
- var DTOUserProfileUpdateResponse = z188.object({
5223
+ import { z as z189 } from "zod";
5224
+ var DTOUserProfileUpdateResponse = z189.object({
5127
5225
  user: User
5128
5226
  });
5129
5227
 
5130
5228
  // src/api/dto/workspaces/git.ts
5131
- import { z as z189 } from "zod";
5132
- var DTOGitOrganization = z189.object({
5133
- id: z189.string(),
5134
- name: z189.string(),
5135
- url: z189.string()
5136
- });
5137
- var DTOGitProject = z189.object({
5138
- id: z189.string(),
5139
- name: z189.string(),
5140
- url: z189.string()
5141
- });
5142
- var DTOGitRepository = z189.object({
5143
- id: z189.string(),
5144
- name: z189.string(),
5145
- url: z189.string(),
5146
- defaultBranch: z189.string()
5147
- });
5148
- var DTOGitBranch = z189.object({
5149
- name: z189.string(),
5150
- lastCommitId: z189.string()
5229
+ import { z as z190 } from "zod";
5230
+ var DTOGitOrganization = z190.object({
5231
+ id: z190.string(),
5232
+ name: z190.string(),
5233
+ url: z190.string()
5234
+ });
5235
+ var DTOGitProject = z190.object({
5236
+ id: z190.string(),
5237
+ name: z190.string(),
5238
+ url: z190.string()
5239
+ });
5240
+ var DTOGitRepository = z190.object({
5241
+ id: z190.string(),
5242
+ name: z190.string(),
5243
+ url: z190.string(),
5244
+ defaultBranch: z190.string()
5245
+ });
5246
+ var DTOGitBranch = z190.object({
5247
+ name: z190.string(),
5248
+ lastCommitId: z190.string()
5151
5249
  });
5152
5250
 
5153
5251
  // src/api/dto/workspaces/integrations.ts
5154
- import { z as z190 } from "zod";
5155
- var DTOIntegration = z190.object({
5156
- id: z190.string(),
5157
- workspaceId: z190.string(),
5252
+ import { z as z191 } from "zod";
5253
+ var DTOIntegration = z191.object({
5254
+ id: z191.string(),
5255
+ workspaceId: z191.string(),
5158
5256
  type: ExtendedIntegrationType,
5159
- createdAt: z190.coerce.date(),
5160
- integrationCredentials: z190.array(IntegrationCredentials).optional(),
5161
- integrationDesignSystems: z190.array(IntegrationDesignSystem).optional()
5257
+ createdAt: z191.coerce.date(),
5258
+ integrationCredentials: z191.array(IntegrationCredentials).optional(),
5259
+ integrationDesignSystems: z191.array(IntegrationDesignSystem).optional()
5162
5260
  });
5163
- var DTOIntegrationOAuthGetResponse = z190.object({
5164
- url: z190.string()
5261
+ var DTOIntegrationOAuthGetResponse = z191.object({
5262
+ url: z191.string()
5165
5263
  });
5166
- var DTOIntegrationPostResponse = z190.object({
5264
+ var DTOIntegrationPostResponse = z191.object({
5167
5265
  integration: DTOIntegration
5168
5266
  });
5169
- var DTOIntegrationsGetListResponse = z190.object({
5267
+ var DTOIntegrationsGetListResponse = z191.object({
5170
5268
  integrations: DTOIntegration.array()
5171
5269
  });
5172
5270
 
5173
5271
  // src/api/dto/workspaces/membership.ts
5174
- import { z as z193 } from "zod";
5272
+ import { z as z194 } from "zod";
5175
5273
 
5176
5274
  // src/api/dto/workspaces/workspace.ts
5177
- import { z as z192 } from "zod";
5275
+ import { z as z193 } from "zod";
5178
5276
 
5179
5277
  // src/api/dto/workspaces/npm-registry.ts
5180
- import { z as z191 } from "zod";
5278
+ import { z as z192 } from "zod";
5181
5279
  var DTONpmRegistryConfigConstants = {
5182
5280
  passwordPlaceholder: "redacted"
5183
5281
  };
5184
- var DTONpmRegistryConfig = z191.object({
5282
+ var DTONpmRegistryConfig = z192.object({
5185
5283
  // Registry basic configuration
5186
5284
  registryType: NpmRegistryType,
5187
- registryUrl: z191.string(),
5188
- customRegistryUrl: z191.string().optional(),
5285
+ registryUrl: z192.string(),
5286
+ customRegistryUrl: z192.string().optional(),
5189
5287
  // URL of Supernova NPM packages proxy
5190
- proxyUrl: z191.string(),
5288
+ proxyUrl: z192.string(),
5191
5289
  // Auth configuration
5192
5290
  authType: NpmRegistryAuthType,
5193
- accessToken: z191.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5194
- username: z191.string().optional(),
5195
- password: z191.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5291
+ accessToken: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5292
+ username: z192.string().optional(),
5293
+ password: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5196
5294
  // NPM package scopes for whih the proxy should be enabled
5197
- enabledScopes: z191.array(z191.string()),
5295
+ enabledScopes: z192.array(z192.string()),
5198
5296
  // True if client should bypass Supernova proxy and connect directly to the registry
5199
5297
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5200
- bypassProxy: z191.boolean()
5298
+ bypassProxy: z192.boolean()
5201
5299
  });
5202
5300
 
5203
5301
  // src/api/dto/workspaces/workspace.ts
5204
- var DTOWorkspace = z192.object({
5205
- id: z192.string(),
5302
+ var DTOWorkspace = z193.object({
5303
+ id: z193.string(),
5206
5304
  profile: WorkspaceProfile,
5207
5305
  subscription: Subscription,
5208
5306
  npmRegistry: DTONpmRegistryConfig.optional()
5209
5307
  });
5210
5308
 
5211
5309
  // src/api/dto/workspaces/membership.ts
5212
- var DTOWorkspaceRole = z193.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5213
- var DTOUserWorkspaceMembership = z193.object({
5310
+ var DTOWorkspaceRole = z194.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5311
+ var DTOUserWorkspaceMembership = z194.object({
5214
5312
  // Workspace the user is a member of
5215
5313
  workspace: DTOWorkspace,
5216
5314
  // Assigned role the user has in the workspace
@@ -5220,14 +5318,14 @@ var DTOUserWorkspaceMembership = z193.object({
5220
5318
  // when a workspace's subscription is downgraded to free tier
5221
5319
  effectiveRole: DTOWorkspaceRole
5222
5320
  });
5223
- var DTOUserWorkspaceMembershipsResponse = z193.object({
5224
- membership: z193.array(DTOUserWorkspaceMembership)
5321
+ var DTOUserWorkspaceMembershipsResponse = z194.object({
5322
+ membership: z194.array(DTOUserWorkspaceMembership)
5225
5323
  });
5226
5324
 
5227
5325
  // src/yjs/design-system-content/documentation-hierarchy.ts
5228
- import { z as z194 } from "zod";
5229
- var DocumentationHierarchySettings = z194.object({
5230
- routingVersion: z194.string()
5326
+ import { z as z195 } from "zod";
5327
+ var DocumentationHierarchySettings = z195.object({
5328
+ routingVersion: z195.string()
5231
5329
  });
5232
5330
  function documentationHierarchyToYjs(doc, transaction) {
5233
5331
  doc.transact((trx) => {
@@ -5298,13 +5396,13 @@ function getInternalSettingsYMap(doc) {
5298
5396
  }
5299
5397
 
5300
5398
  // src/yjs/design-system-content/item-configuration.ts
5301
- import { z as z195 } from "zod";
5302
- var DTODocumentationPageRoomHeaderData = z195.object({
5303
- title: z195.string(),
5399
+ import { z as z196 } from "zod";
5400
+ var DTODocumentationPageRoomHeaderData = z196.object({
5401
+ title: z196.string(),
5304
5402
  configuration: DTODocumentationItemConfigurationV2
5305
5403
  });
5306
- var DTODocumentationPageRoomHeaderDataUpdate = z195.object({
5307
- title: z195.string().optional(),
5404
+ var DTODocumentationPageRoomHeaderDataUpdate = z196.object({
5405
+ title: z196.string().optional(),
5308
5406
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
5309
5407
  });
5310
5408
  function itemConfigurationToYjs(yDoc, item) {
@@ -5355,7 +5453,7 @@ function yjsToItemConfiguration(yDoc) {
5355
5453
  header: rawHeader
5356
5454
  };
5357
5455
  return {
5358
- title: z195.string().parse(title),
5456
+ title: z196.string().parse(title),
5359
5457
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
5360
5458
  };
5361
5459
  }
@@ -5365,9 +5463,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
5365
5463
  var PageSectionEditorModel = PageSectionEditorModelV2;
5366
5464
 
5367
5465
  // src/yjs/docs-editor/model/page.ts
5368
- import { z as z196 } from "zod";
5369
- var DocumentationPageEditorModel = z196.object({
5370
- blocks: z196.array(PageBlockEditorModel.or(PageSectionEditorModel))
5466
+ import { z as z197 } from "zod";
5467
+ var DocumentationPageEditorModel = z197.object({
5468
+ blocks: z197.array(PageBlockEditorModel.or(PageSectionEditorModel))
5371
5469
  });
5372
5470
 
5373
5471
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -8339,7 +8437,7 @@ var blocks = [
8339
8437
 
8340
8438
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
8341
8439
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
8342
- import { z as z197 } from "zod";
8440
+ import { z as z198 } from "zod";
8343
8441
  function yDocToPage(yDoc, definitions) {
8344
8442
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
8345
8443
  }
@@ -8382,7 +8480,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
8382
8480
  return null;
8383
8481
  return {
8384
8482
  id,
8385
- title: getProsemirrorAttribute(prosemirrorNode, "title", z197.string()) ?? "",
8483
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z198.string()) ?? "",
8386
8484
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
8387
8485
  };
8388
8486
  }
@@ -8417,7 +8515,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
8417
8515
  });
8418
8516
  }
8419
8517
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
8420
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z197.string());
8518
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z198.string());
8421
8519
  if (!definitionId) {
8422
8520
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
8423
8521
  return [];
@@ -8459,7 +8557,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
8459
8557
  if (!id)
8460
8558
  return null;
8461
8559
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8462
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z197.string().optional()));
8560
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z198.string().optional()));
8463
8561
  return {
8464
8562
  // TODO Artem: indent
8465
8563
  id,
@@ -8586,10 +8684,10 @@ function parseRichTextAttribute(mark) {
8586
8684
  return null;
8587
8685
  }
8588
8686
  function parseProsemirrorLink(mark) {
8589
- const href = getProsemirrorAttribute(mark, "href", z197.string().optional());
8687
+ const href = getProsemirrorAttribute(mark, "href", z198.string().optional());
8590
8688
  if (!href)
8591
8689
  return null;
8592
- const target = getProsemirrorAttribute(mark, "target", z197.string().optional());
8690
+ const target = getProsemirrorAttribute(mark, "target", z198.string().optional());
8593
8691
  const openInNewTab = target === "_blank";
8594
8692
  if (href.startsWith("@")) {
8595
8693
  return {
@@ -8612,7 +8710,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
8612
8710
  if (!id)
8613
8711
  return null;
8614
8712
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8615
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z197.boolean().optional()) !== false;
8713
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z198.boolean().optional()) !== false;
8616
8714
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
8617
8715
  if (!tableChild) {
8618
8716
  return emptyTable(id, variantId, 0);
@@ -8659,9 +8757,9 @@ function parseAsTableCell(prosemirrorNode) {
8659
8757
  const id = getProsemirrorBlockId(prosemirrorNode);
8660
8758
  if (!id)
8661
8759
  return null;
8662
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z197.string().optional());
8760
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z198.string().optional());
8663
8761
  let columnWidth;
8664
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z197.array(z197.number()).optional());
8762
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z198.array(z198.number()).optional());
8665
8763
  if (columnWidthArray) {
8666
8764
  columnWidth = columnWidthArray[0];
8667
8765
  }
@@ -8699,7 +8797,7 @@ function parseAsTableNode(prosemirrorNode) {
8699
8797
  value: parseRichText(prosemirrorNode.content ?? [])
8700
8798
  };
8701
8799
  case "image":
8702
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z197.string());
8800
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z198.string());
8703
8801
  if (!items)
8704
8802
  return null;
8705
8803
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -8804,7 +8902,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
8804
8902
  };
8805
8903
  }
8806
8904
  function parseBlockItems(prosemirrorNode, definition) {
8807
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z197.string());
8905
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z198.string());
8808
8906
  if (!itemsString)
8809
8907
  return null;
8810
8908
  const itemsJson = JSON.parse(itemsString);
@@ -8816,18 +8914,18 @@ function parseBlockItems(prosemirrorNode, definition) {
8816
8914
  }
8817
8915
  function parseAppearance(prosemirrorNode) {
8818
8916
  let appearance = {};
8819
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z197.string().optional());
8917
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z198.string().optional());
8820
8918
  if (rawAppearanceString) {
8821
8919
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
8822
8920
  if (parsedAppearance.success) {
8823
8921
  appearance = parsedAppearance.data;
8824
8922
  }
8825
8923
  }
8826
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z197.number().optional());
8924
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z198.number().optional());
8827
8925
  if (columns) {
8828
8926
  appearance.numberOfColumns = columns;
8829
8927
  }
8830
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z197.string().optional());
8928
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z198.string().optional());
8831
8929
  if (backgroundColor) {
8832
8930
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
8833
8931
  if (parsedColor.success) {
@@ -8918,13 +9016,13 @@ function valueSchemaForPropertyType(type) {
8918
9016
  }
8919
9017
  }
8920
9018
  function getProsemirrorBlockId(prosemirrorNode) {
8921
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z197.string());
9019
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z198.string());
8922
9020
  if (!id)
8923
9021
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
8924
9022
  return id;
8925
9023
  }
8926
9024
  function getProsemirrorBlockVariantId(prosemirrorNode) {
8927
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z197.string()));
9025
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z198.string()));
8928
9026
  }
8929
9027
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8930
9028
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -8959,6 +9057,13 @@ export {
8959
9057
  DTOCreateDocumentationTabInput,
8960
9058
  DTOCreateElementPropertyDefinitionInputV2,
8961
9059
  DTOCreateVersionInput,
9060
+ DTODataSource,
9061
+ DTODataSourceCreationResponse,
9062
+ DTODataSourceFigma,
9063
+ DTODataSourceFigmaCloud,
9064
+ DTODataSourceFigmaVariablesPlugin,
9065
+ DTODataSourceTokenStudio,
9066
+ DTODataSourcesListResponse,
8962
9067
  DTODeleteDocumentationGroupInput,
8963
9068
  DTODeleteDocumentationPageInputV2,
8964
9069
  DTODeleteDocumentationTabGroupInput,