@supernova-studio/client 1.0.4 → 1.0.6

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
@@ -180,14 +180,15 @@ import { z as z169 } from "zod";
180
180
  import { z as z170 } from "zod";
181
181
  import { z as z171 } from "zod";
182
182
  import { z as z172 } from "zod";
183
- import { z as z174 } from "zod";
184
183
  import { z as z173 } from "zod";
185
184
  import { z as z175 } from "zod";
185
+ import { z as z174 } from "zod";
186
186
  import { z as z176 } from "zod";
187
187
  import { z as z177 } from "zod";
188
188
  import { z as z178 } from "zod";
189
189
  import { z as z179 } from "zod";
190
190
  import { z as z180 } from "zod";
191
+ import { z as z181 } from "zod";
191
192
  var __defProp2 = Object.defineProperty;
192
193
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
193
194
  var __publicField2 = (obj, key, value) => {
@@ -4766,7 +4767,14 @@ var ExporterWorkspaceMembership = z171.object({
4766
4767
  exporterId: z171.string(),
4767
4768
  role: ExporterWorkspaceMembershipRole
4768
4769
  });
4769
- var FlaggedFeature = z172.enum([
4770
+ var ExporterType2 = z172.enum(["documentation", "code"]);
4771
+ var ListExporterQuery = z172.object({
4772
+ limit: z172.number().optional(),
4773
+ offset: z172.number().optional(),
4774
+ type: ExporterType2.optional(),
4775
+ search: z172.string().optional()
4776
+ });
4777
+ var FlaggedFeature = z173.enum([
4770
4778
  "FigmaImporterV2",
4771
4779
  "ShadowOpacityOptional",
4772
4780
  "DisableImporter",
@@ -4776,13 +4784,13 @@ var FlaggedFeature = z172.enum([
4776
4784
  "ShadowPropsKeepAliases",
4777
4785
  "NonCompatibleTypeChanges"
4778
4786
  ]);
4779
- var FeatureFlagMap = z172.record(FlaggedFeature, z172.boolean());
4780
- var FeatureFlag = z172.object({
4781
- id: z172.string(),
4787
+ var FeatureFlagMap = z173.record(FlaggedFeature, z173.boolean());
4788
+ var FeatureFlag = z173.object({
4789
+ id: z173.string(),
4782
4790
  feature: FlaggedFeature,
4783
- createdAt: z172.coerce.date(),
4784
- enabled: z172.boolean(),
4785
- designSystemId: z172.string().optional()
4791
+ createdAt: z173.coerce.date(),
4792
+ enabled: z173.boolean(),
4793
+ designSystemId: z173.string().optional()
4786
4794
  });
4787
4795
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4788
4796
  OAuthProviderNames2["Figma"] = "figma";
@@ -4792,108 +4800,108 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4792
4800
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4793
4801
  return OAuthProviderNames2;
4794
4802
  })(OAuthProviderNames || {});
4795
- var OAuthProviderSchema = z173.nativeEnum(OAuthProviderNames);
4803
+ var OAuthProviderSchema = z174.nativeEnum(OAuthProviderNames);
4796
4804
  var OAuthProvider = OAuthProviderSchema.enum;
4797
- var ExternalOAuthRequest = z174.object({
4798
- id: z174.string(),
4805
+ var ExternalOAuthRequest = z175.object({
4806
+ id: z175.string(),
4799
4807
  provider: OAuthProviderSchema,
4800
- userId: z174.string(),
4801
- state: z174.string(),
4802
- createdAt: z174.coerce.date()
4808
+ userId: z175.string(),
4809
+ state: z175.string(),
4810
+ createdAt: z175.coerce.date()
4803
4811
  });
4804
- var GitObjectsQuery = z175.object({
4805
- organization: z175.string().optional(),
4812
+ var GitObjectsQuery = z176.object({
4813
+ organization: z176.string().optional(),
4806
4814
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4807
- project: z175.string().optional(),
4815
+ project: z176.string().optional(),
4808
4816
  // Only for Bitbucket and Azure
4809
- repository: z175.string().optional(),
4817
+ repository: z176.string().optional(),
4810
4818
  // For all providers. For Gitlab, it's called "project".
4811
- branch: z175.string().optional(),
4819
+ branch: z176.string().optional(),
4812
4820
  // For all providers.
4813
- user: z175.string().optional()
4821
+ user: z176.string().optional()
4814
4822
  // Gitlab user
4815
4823
  });
4816
- var GitOrganization = z175.object({
4817
- id: z175.string(),
4818
- name: z175.string(),
4819
- url: z175.string(),
4820
- slug: z175.string()
4824
+ var GitOrganization = z176.object({
4825
+ id: z176.string(),
4826
+ name: z176.string(),
4827
+ url: z176.string(),
4828
+ slug: z176.string()
4821
4829
  });
4822
- var GitProject = z175.object({
4823
- id: z175.string(),
4824
- name: z175.string(),
4825
- url: z175.string(),
4826
- slug: z175.string()
4830
+ var GitProject = z176.object({
4831
+ id: z176.string(),
4832
+ name: z176.string(),
4833
+ url: z176.string(),
4834
+ slug: z176.string()
4827
4835
  });
4828
- var GitRepository = z175.object({
4829
- id: z175.string(),
4830
- name: z175.string(),
4831
- url: z175.string(),
4832
- slug: z175.string(),
4836
+ var GitRepository = z176.object({
4837
+ id: z176.string(),
4838
+ name: z176.string(),
4839
+ url: z176.string(),
4840
+ slug: z176.string(),
4833
4841
  /**
4834
4842
  * Can be undefined when:
4835
4843
  * - there are no branches in the repository yet
4836
4844
  * - Git provider doesn't expose this information on a repository via their API
4837
4845
  */
4838
- defaultBranch: z175.string().optional()
4846
+ defaultBranch: z176.string().optional()
4839
4847
  });
4840
- var GitBranch = z175.object({
4841
- name: z175.string(),
4842
- lastCommitId: z175.string()
4848
+ var GitBranch = z176.object({
4849
+ name: z176.string(),
4850
+ lastCommitId: z176.string()
4843
4851
  });
4844
- var IntegrationTokenSchemaOld = z176.object({
4845
- id: z176.string(),
4846
- provider: OAuthProviderSchema,
4847
- scope: z176.string(),
4848
- userId: z176.string(),
4849
- accessToken: z176.string(),
4850
- refreshToken: z176.string(),
4851
- expiresAt: z176.coerce.date(),
4852
- externalUserId: z176.string().nullish()
4853
- });
4854
- var WorkspaceOAuthRequestSchema = z177.object({
4852
+ var IntegrationTokenSchemaOld = z177.object({
4855
4853
  id: z177.string(),
4856
- workspaceId: z177.string(),
4857
4854
  provider: OAuthProviderSchema,
4855
+ scope: z177.string(),
4858
4856
  userId: z177.string(),
4859
- createdAt: z177.coerce.date()
4857
+ accessToken: z177.string(),
4858
+ refreshToken: z177.string(),
4859
+ expiresAt: z177.coerce.date(),
4860
+ externalUserId: z177.string().nullish()
4861
+ });
4862
+ var WorkspaceOAuthRequestSchema = z178.object({
4863
+ id: z178.string(),
4864
+ workspaceId: z178.string(),
4865
+ provider: OAuthProviderSchema,
4866
+ userId: z178.string(),
4867
+ createdAt: z178.coerce.date()
4860
4868
  });
4861
- var AnyRecord = z178.record(z178.any());
4869
+ var AnyRecord = z179.record(z179.any());
4862
4870
  var NpmPackageVersionDist = AnyRecord.and(
4863
- z178.object({
4864
- tarball: z178.string()
4871
+ z179.object({
4872
+ tarball: z179.string()
4865
4873
  })
4866
4874
  );
4867
4875
  var NpmPackageVersion = AnyRecord.and(
4868
- z178.object({
4876
+ z179.object({
4869
4877
  dist: NpmPackageVersionDist
4870
4878
  })
4871
4879
  );
4872
4880
  var NpmPackage = AnyRecord.and(
4873
- z178.object({
4874
- _id: z178.string(),
4875
- name: z178.string(),
4881
+ z179.object({
4882
+ _id: z179.string(),
4883
+ name: z179.string(),
4876
4884
  // e.g. "latest": "1.2.3"
4877
- "dist-tags": z178.record(z178.string(), z178.string()),
4885
+ "dist-tags": z179.record(z179.string(), z179.string()),
4878
4886
  // "1.2.3": {...}
4879
- versions: z178.record(NpmPackageVersion)
4887
+ versions: z179.record(NpmPackageVersion)
4880
4888
  })
4881
4889
  );
4882
- var NpmProxyTokenPayload = z179.object({
4883
- npmProxyRegistryConfigId: z179.string()
4884
- });
4885
- var PersonalAccessToken = z180.object({
4886
- id: z180.string(),
4887
- userId: z180.string(),
4888
- workspaceId: z180.string().optional(),
4889
- designSystemId: z180.string().optional(),
4890
+ var NpmProxyTokenPayload = z180.object({
4891
+ npmProxyRegistryConfigId: z180.string()
4892
+ });
4893
+ var PersonalAccessToken = z181.object({
4894
+ id: z181.string(),
4895
+ userId: z181.string(),
4896
+ workspaceId: z181.string().optional(),
4897
+ designSystemId: z181.string().optional(),
4890
4898
  workspaceRole: WorkspaceRoleSchema.optional(),
4891
- name: z180.string(),
4892
- hidden: z180.boolean(),
4893
- token: z180.string(),
4894
- scope: z180.string().optional(),
4895
- createdAt: z180.coerce.date(),
4896
- expireAt: z180.coerce.date().optional()
4899
+ name: z181.string(),
4900
+ hidden: z181.boolean(),
4901
+ token: z181.string(),
4902
+ scope: z181.string().optional(),
4903
+ createdAt: z181.coerce.date(),
4904
+ expireAt: z181.coerce.date().optional()
4897
4905
  });
4898
4906
 
4899
4907
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
@@ -5315,93 +5323,93 @@ function integrationCredentialToDto(credential) {
5315
5323
  }
5316
5324
 
5317
5325
  // src/api/dto/aux/color.ts
5318
- import { z as z181 } from "zod";
5319
- var DTOColorTokenInlineData = z181.object({
5320
- value: z181.string().regex(/^#[a-f0-9]{6,8}$/)
5326
+ import { z as z182 } from "zod";
5327
+ var DTOColorTokenInlineData = z182.object({
5328
+ value: z182.string().regex(/^#[a-f0-9]{6,8}$/)
5321
5329
  });
5322
5330
 
5323
5331
  // src/api/dto/aux/meta.ts
5324
- import { z as z182 } from "zod";
5325
- var DTOObjectMeta = z182.object({
5326
- name: z182.string().max(512),
5327
- description: z182.string().max(2048).optional()
5332
+ import { z as z183 } from "zod";
5333
+ var DTOObjectMeta = z183.object({
5334
+ name: z183.string().max(512),
5335
+ description: z183.string().max(2048).optional()
5328
5336
  });
5329
5337
 
5330
5338
  // src/api/dto/aux/pagination.ts
5331
- import { z as z183 } from "zod";
5332
- var DTOPagination = z183.object({
5333
- limit: z183.string().optional(),
5334
- offset: z183.string().optional()
5339
+ import { z as z184 } from "zod";
5340
+ var DTOPagination = z184.object({
5341
+ limit: z184.string().optional(),
5342
+ offset: z184.string().optional()
5335
5343
  });
5336
5344
 
5337
5345
  // src/api/dto/bff/app-bootstrap-data.ts
5338
- import { z as z219 } from "zod";
5346
+ import { z as z220 } from "zod";
5339
5347
 
5340
5348
  // src/api/dto/design-systems/brand.ts
5341
- import { z as z184 } from "zod";
5342
- var DTOBrand = z184.object({
5343
- id: z184.string(),
5344
- designSystemVersionId: z184.string(),
5345
- persistentId: z184.string(),
5349
+ import { z as z185 } from "zod";
5350
+ var DTOBrand = z185.object({
5351
+ id: z185.string(),
5352
+ designSystemVersionId: z185.string(),
5353
+ persistentId: z185.string(),
5346
5354
  meta: ObjectMeta
5347
5355
  });
5348
- var DTOBrandGetResponse = z184.object({ brand: DTOBrand });
5349
- var DTOBrandCreateResponse = z184.object({
5356
+ var DTOBrandGetResponse = z185.object({ brand: DTOBrand });
5357
+ var DTOBrandCreateResponse = z185.object({
5350
5358
  brand: DTOBrand
5351
5359
  });
5352
- var DTOBrandsListResponse = z184.object({ brands: z184.array(DTOBrand) });
5353
- var DTOBrandCreatePayload = z184.object({
5354
- persistentId: z184.string().uuid(),
5360
+ var DTOBrandsListResponse = z185.object({ brands: z185.array(DTOBrand) });
5361
+ var DTOBrandCreatePayload = z185.object({
5362
+ persistentId: z185.string().uuid(),
5355
5363
  meta: DTOObjectMeta
5356
5364
  });
5357
- var DTOBrandUpdatePayload = z184.object({
5365
+ var DTOBrandUpdatePayload = z185.object({
5358
5366
  meta: DTOObjectMeta.optional(),
5359
- persistentId: z184.string()
5367
+ persistentId: z185.string()
5360
5368
  });
5361
5369
 
5362
5370
  // src/api/dto/design-systems/component.ts
5363
- import { z as z185 } from "zod";
5364
- var DTODesignSystemComponent = z185.object({
5365
- id: z185.string(),
5366
- persistentId: z185.string(),
5367
- designSystemVersionId: z185.string(),
5368
- brandId: z185.string(),
5371
+ import { z as z186 } from "zod";
5372
+ var DTODesignSystemComponent = z186.object({
5373
+ id: z186.string(),
5374
+ persistentId: z186.string(),
5375
+ designSystemVersionId: z186.string(),
5376
+ brandId: z186.string(),
5369
5377
  meta: DTOObjectMeta,
5370
- createdAt: z185.coerce.date(),
5371
- updatedAt: z185.coerce.date()
5378
+ createdAt: z186.coerce.date(),
5379
+ updatedAt: z186.coerce.date()
5372
5380
  });
5373
- var DTODesignSystemComponentResponse = z185.object({
5381
+ var DTODesignSystemComponentResponse = z186.object({
5374
5382
  designSystemComponent: DTODesignSystemComponent
5375
5383
  });
5376
- var DTODesignSystemComponentListResponse = z185.object({
5384
+ var DTODesignSystemComponentListResponse = z186.object({
5377
5385
  designSystemComponents: DTODesignSystemComponent.array()
5378
5386
  });
5379
- var DTODesignSystemComponentCreateInput = z185.object({
5380
- brandId: z185.string(),
5387
+ var DTODesignSystemComponentCreateInput = z186.object({
5388
+ brandId: z186.string(),
5381
5389
  // Persistent ID,
5382
- persistentId: z185.string(),
5390
+ persistentId: z186.string(),
5383
5391
  meta: DTOObjectMeta
5384
5392
  });
5385
5393
 
5386
5394
  // src/api/dto/design-systems/contact.ts
5387
- import { z as z189 } from "zod";
5395
+ import { z as z190 } from "zod";
5388
5396
 
5389
5397
  // src/api/dto/users/authenticated-user.ts
5390
- import { z as z187 } from "zod";
5398
+ import { z as z188 } from "zod";
5391
5399
 
5392
5400
  // src/api/dto/users/user.ts
5393
- import { z as z186 } from "zod";
5394
- var DTOUserProfile = z186.object({
5395
- name: z186.string(),
5396
- nickname: z186.string().optional(),
5397
- avatar: z186.string().optional()
5398
- });
5399
- var DTOUser = z186.object({
5400
- id: z186.string(),
5401
- email: z186.string(),
5401
+ import { z as z187 } from "zod";
5402
+ var DTOUserProfile = z187.object({
5403
+ name: z187.string(),
5404
+ nickname: z187.string().optional(),
5405
+ avatar: z187.string().optional()
5406
+ });
5407
+ var DTOUser = z187.object({
5408
+ id: z187.string(),
5409
+ email: z187.string(),
5402
5410
  profile: DTOUserProfile
5403
5411
  });
5404
- var DTOUserGetResponse = z186.object({
5412
+ var DTOUserGetResponse = z187.object({
5405
5413
  user: DTOUser
5406
5414
  });
5407
5415
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -5411,17 +5419,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
5411
5419
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
5412
5420
  var DTOUserSource = UserSource;
5413
5421
  var DTOUserTheme = UserTheme;
5414
- var DTOUserOnboarding = z187.object({
5415
- companyName: z187.string().optional(),
5416
- numberOfPeopleInOrg: z187.string().optional(),
5417
- numberOfPeopleInDesignTeam: z187.string().optional(),
5422
+ var DTOUserOnboarding = z188.object({
5423
+ companyName: z188.string().optional(),
5424
+ numberOfPeopleInOrg: z188.string().optional(),
5425
+ numberOfPeopleInDesignTeam: z188.string().optional(),
5418
5426
  department: DTOUserOnboardingDepartment.optional(),
5419
- jobTitle: z187.string().optional(),
5420
- phase: z187.string().optional(),
5427
+ jobTitle: z188.string().optional(),
5428
+ phase: z188.string().optional(),
5421
5429
  jobLevel: DTOUserOnboardingJobLevel.optional(),
5422
- designSystemName: z187.string().optional(),
5423
- defaultDestination: z187.string().optional(),
5424
- isPageDraftOnboardingFinished: z187.boolean().optional()
5430
+ designSystemName: z188.string().optional(),
5431
+ defaultDestination: z188.string().optional(),
5432
+ isPageDraftOnboardingFinished: z188.boolean().optional()
5425
5433
  });
5426
5434
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5427
5435
  onboarding: DTOUserOnboarding.optional(),
@@ -5429,139 +5437,139 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5429
5437
  });
5430
5438
  var DTOAuthenticatedUser = DTOUser.extend({
5431
5439
  profile: DTOAuthenticatedUserProfile,
5432
- createdAt: z187.coerce.date(),
5433
- loggedOutAt: z187.coerce.date().optional(),
5440
+ createdAt: z188.coerce.date(),
5441
+ loggedOutAt: z188.coerce.date().optional(),
5434
5442
  source: DTOUserSource.optional()
5435
5443
  });
5436
- var DTOAuthenticatedUserResponse = z187.object({
5444
+ var DTOAuthenticatedUserResponse = z188.object({
5437
5445
  user: DTOAuthenticatedUser
5438
5446
  });
5439
5447
 
5440
5448
  // src/api/dto/users/update.ts
5441
- import { z as z188 } from "zod";
5442
- var DTOUserProfileUpdateResponse = z188.object({
5449
+ import { z as z189 } from "zod";
5450
+ var DTOUserProfileUpdateResponse = z189.object({
5443
5451
  user: User
5444
5452
  });
5445
5453
 
5446
5454
  // src/api/dto/design-systems/contact.ts
5447
- var DTODesignSystemContactsResponse = z189.object({
5448
- contacts: z189.object({
5449
- workspace: z189.array(DTOUser),
5450
- designSystem: z189.array(DTOUser)
5455
+ var DTODesignSystemContactsResponse = z190.object({
5456
+ contacts: z190.object({
5457
+ workspace: z190.array(DTOUser),
5458
+ designSystem: z190.array(DTOUser)
5451
5459
  })
5452
5460
  });
5453
5461
 
5454
5462
  // src/api/dto/design-systems/data-source.ts
5455
- import { z as z190 } from "zod";
5463
+ import { z as z191 } from "zod";
5456
5464
  var DTODataSourceFigmaScope = DataSourceFigmaScope;
5457
- var DTODataSourceFigmaFileVersion = z190.object({
5458
- id: z190.string(),
5459
- created_at: z190.coerce.date(),
5460
- label: z190.string(),
5461
- description: z190.string()
5462
- });
5463
- var DTODataSourceFigmaCloud = z190.object({
5464
- fileId: z190.string(),
5465
+ var DTODataSourceFigmaFileVersion = z191.object({
5466
+ id: z191.string(),
5467
+ created_at: z191.coerce.date(),
5468
+ label: z191.string(),
5469
+ description: z191.string()
5470
+ });
5471
+ var DTODataSourceFigmaCloud = z191.object({
5472
+ fileId: z191.string(),
5465
5473
  state: DataSourceFigmaState,
5466
5474
  autoImportMode: DataSourceAutoImportMode,
5467
- fileThumbnailUrl: z190.string().optional(),
5475
+ fileThumbnailUrl: z191.string().optional(),
5468
5476
  lastImportResult: SourceImportSummary.nullish(),
5469
- lastImportedAt: z190.coerce.date().nullish(),
5477
+ lastImportedAt: z191.coerce.date().nullish(),
5470
5478
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5471
- lastUpdatesCheckedAt: z190.date().nullish(),
5472
- ownerId: z190.string(),
5473
- ownerUserName: z190.string().optional(),
5474
- preferredCredentialId: z190.string().optional(),
5479
+ lastUpdatesCheckedAt: z191.date().nullish(),
5480
+ ownerId: z191.string(),
5481
+ ownerUserName: z191.string().optional(),
5482
+ preferredCredentialId: z191.string().optional(),
5475
5483
  stats: DataSourceStats
5476
5484
  });
5477
- var DTODataSourceFigma = z190.object({
5478
- id: z190.string(),
5479
- type: z190.literal(DataSourceRemoteType.Enum.Figma),
5480
- fileName: z190.string(),
5485
+ var DTODataSourceFigma = z191.object({
5486
+ id: z191.string(),
5487
+ type: z191.literal(DataSourceRemoteType.Enum.Figma),
5488
+ fileName: z191.string(),
5481
5489
  scope: DTODataSourceFigmaScope,
5482
- brandId: z190.string(),
5483
- themeId: z190.string().nullish(),
5490
+ brandId: z191.string(),
5491
+ themeId: z191.string().nullish(),
5484
5492
  cloud: DTODataSourceFigmaCloud.nullish()
5485
5493
  });
5486
- var DTODataSourceTokenStudio = z190.object({
5487
- id: z190.string(),
5488
- type: z190.literal(DataSourceRemoteType.Enum.TokenStudio),
5489
- fileName: z190.string(),
5490
- brandId: z190.string(),
5491
- themeId: z190.string().nullish(),
5492
- tokenStudio: z190.object({
5493
- settings: z190.object({
5494
- dryRun: z190.boolean(),
5495
- verbose: z190.boolean(),
5496
- preciseCopy: z190.boolean()
5494
+ var DTODataSourceTokenStudio = z191.object({
5495
+ id: z191.string(),
5496
+ type: z191.literal(DataSourceRemoteType.Enum.TokenStudio),
5497
+ fileName: z191.string(),
5498
+ brandId: z191.string(),
5499
+ themeId: z191.string().nullish(),
5500
+ tokenStudio: z191.object({
5501
+ settings: z191.object({
5502
+ dryRun: z191.boolean(),
5503
+ verbose: z191.boolean(),
5504
+ preciseCopy: z191.boolean()
5497
5505
  }),
5498
- connectionName: z190.string(),
5499
- lastImportedAt: z190.coerce.date(),
5500
- lastImportedResults: z190.array(
5501
- z190.object({
5502
- mapping: z190.object({
5503
- tokenSets: z190.array(z190.string()),
5504
- supernovaBrand: z190.string(),
5505
- supernovaTheme: z190.string().optional()
5506
+ connectionName: z191.string(),
5507
+ lastImportedAt: z191.coerce.date(),
5508
+ lastImportedResults: z191.array(
5509
+ z191.object({
5510
+ mapping: z191.object({
5511
+ tokenSets: z191.array(z191.string()),
5512
+ supernovaBrand: z191.string(),
5513
+ supernovaTheme: z191.string().optional()
5506
5514
  }),
5507
- isFailed: z190.boolean(),
5508
- tokensCreated: z190.number(),
5509
- tokensDeleted: z190.number(),
5510
- tokensUpdated: z190.number()
5515
+ isFailed: z191.boolean(),
5516
+ tokensCreated: z191.number(),
5517
+ tokensDeleted: z191.number(),
5518
+ tokensUpdated: z191.number()
5511
5519
  })
5512
5520
  )
5513
5521
  })
5514
5522
  });
5515
- var DTODataSourceFigmaVariablesPlugin = z190.object({
5516
- id: z190.string(),
5517
- type: z190.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5518
- fileName: z190.string(),
5519
- brandId: z190.string(),
5520
- upload: z190.object({
5521
- remoteId: z190.string(),
5523
+ var DTODataSourceFigmaVariablesPlugin = z191.object({
5524
+ id: z191.string(),
5525
+ type: z191.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5526
+ fileName: z191.string(),
5527
+ brandId: z191.string(),
5528
+ upload: z191.object({
5529
+ remoteId: z191.string(),
5522
5530
  remoteSourceType: DataSourceUploadRemoteSource,
5523
- lastImportedAt: z190.coerce.date().optional(),
5531
+ lastImportedAt: z191.coerce.date().optional(),
5524
5532
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5525
- isTokenTypeSplitEnabled: z190.boolean()
5533
+ isTokenTypeSplitEnabled: z191.boolean()
5526
5534
  }),
5527
- figmaVariablesPlugin: z190.object({
5528
- fileId: z190.string(),
5529
- lastImportedAt: z190.coerce.date().optional(),
5535
+ figmaVariablesPlugin: z191.object({
5536
+ fileId: z191.string(),
5537
+ lastImportedAt: z191.coerce.date().optional(),
5530
5538
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5531
- isTokenTypeSplitEnabled: z190.boolean(),
5532
- isCollectionsMigrationCompleted: z190.boolean().default(false)
5539
+ isTokenTypeSplitEnabled: z191.boolean(),
5540
+ isCollectionsMigrationCompleted: z191.boolean().default(false)
5533
5541
  })
5534
5542
  });
5535
- var DTODataSource = z190.discriminatedUnion("type", [
5543
+ var DTODataSource = z191.discriminatedUnion("type", [
5536
5544
  DTODataSourceFigma,
5537
5545
  DTODataSourceFigmaVariablesPlugin,
5538
5546
  DTODataSourceTokenStudio
5539
5547
  ]);
5540
- var DTODataSourcesListResponse = z190.object({
5541
- sources: z190.array(DTODataSource)
5548
+ var DTODataSourcesListResponse = z191.object({
5549
+ sources: z191.array(DTODataSource)
5542
5550
  });
5543
- var DTODataSourceResponse = z190.object({
5551
+ var DTODataSourceResponse = z191.object({
5544
5552
  source: DTODataSource
5545
5553
  });
5546
- var DTODataSourceFigmaCreatePayload = z190.object({
5547
- brandPersistentId: z190.string(),
5548
- figmaFileUrl: z190.string(),
5554
+ var DTODataSourceFigmaCreatePayload = z191.object({
5555
+ brandPersistentId: z191.string(),
5556
+ figmaFileUrl: z191.string(),
5549
5557
  scope: DTODataSourceFigmaScope,
5550
5558
  autoImportMode: DataSourceAutoImportMode
5551
5559
  });
5552
- var DTODataSourceFigmaImportPayload = z190.object({
5553
- sourceIds: z190.array(z190.string())
5560
+ var DTODataSourceFigmaImportPayload = z191.object({
5561
+ sourceIds: z191.array(z191.string())
5554
5562
  });
5555
5563
 
5556
5564
  // src/api/dto/design-systems/design-system.ts
5557
- import { z as z193 } from "zod";
5565
+ import { z as z194 } from "zod";
5558
5566
 
5559
5567
  // src/api/dto/design-systems/members.ts
5560
- import { z as z192 } from "zod";
5568
+ import { z as z193 } from "zod";
5561
5569
 
5562
5570
  // src/api/dto/design-systems/role.ts
5563
- import { z as z191 } from "zod";
5564
- var DTODesignSystemRole = z191.enum([
5571
+ import { z as z192 } from "zod";
5572
+ var DTODesignSystemRole = z192.enum([
5565
5573
  WorkspaceRole.Admin,
5566
5574
  WorkspaceRole.Contributor,
5567
5575
  WorkspaceRole.Creator,
@@ -5569,29 +5577,29 @@ var DTODesignSystemRole = z191.enum([
5569
5577
  ]);
5570
5578
 
5571
5579
  // src/api/dto/design-systems/members.ts
5572
- var DTODesignSystemMember = z192.object({
5573
- userId: z192.string(),
5580
+ var DTODesignSystemMember = z193.object({
5581
+ userId: z193.string(),
5574
5582
  /**
5575
5583
  * Role that the member has in the design system,
5576
5584
  * undefined if set to inherit from workspace
5577
5585
  */
5578
5586
  designSystemRole: DTODesignSystemRole.optional()
5579
5587
  });
5580
- var DTODesignSystemInvitation = z192.object({
5581
- id: z192.string(),
5582
- workspaceInvitationId: z192.string(),
5588
+ var DTODesignSystemInvitation = z193.object({
5589
+ id: z193.string(),
5590
+ workspaceInvitationId: z193.string(),
5583
5591
  /**
5584
5592
  * Role that the invitation has in the design system,
5585
5593
  * undefined if set to inherit from workspace
5586
5594
  */
5587
5595
  designSystemRole: DTODesignSystemRole.optional()
5588
5596
  });
5589
- var DTODesignSystemMemberListResponse = z192.object({
5597
+ var DTODesignSystemMemberListResponse = z193.object({
5590
5598
  members: DTODesignSystemMember.array(),
5591
5599
  invitations: DTODesignSystemInvitation.array()
5592
5600
  });
5593
- var DTODesignSystemMembersUpdateResponse = z192.object({
5594
- ok: z192.literal(true)
5601
+ var DTODesignSystemMembersUpdateResponse = z193.object({
5602
+ ok: z193.literal(true)
5595
5603
  });
5596
5604
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5597
5605
 
@@ -5602,14 +5610,14 @@ var DTODesignSystem = DesignSystem.omit({
5602
5610
  docExporterId: true
5603
5611
  }).extend({
5604
5612
  meta: ObjectMeta,
5605
- docExporterId: z193.string(),
5606
- sources: z193.array(z193.any()),
5607
- isPublic: z193.literal(true),
5613
+ docExporterId: z194.string(),
5614
+ sources: z194.array(z194.any()),
5615
+ isPublic: z194.literal(true),
5608
5616
  /**
5609
5617
  * Whether or not user who is requesting the design system
5610
5618
  * has access to the design system's contents.
5611
5619
  */
5612
- isAvailableToUser: z193.boolean(),
5620
+ isAvailableToUser: z194.boolean(),
5613
5621
  /**
5614
5622
  * @deprecated
5615
5623
  */
@@ -5620,17 +5628,17 @@ var DTODesignSystem = DesignSystem.omit({
5620
5628
  */
5621
5629
  effectiveRole: DTODesignSystemRole.optional()
5622
5630
  });
5623
- var DTODesignSystemResponse = z193.object({
5631
+ var DTODesignSystemResponse = z194.object({
5624
5632
  designSystem: DTODesignSystem
5625
5633
  });
5626
- var DTODesignSystemsListResponse = z193.object({
5634
+ var DTODesignSystemsListResponse = z194.object({
5627
5635
  designSystems: DTODesignSystem.array()
5628
5636
  });
5629
- var DTODesignSystemCreateInput = z193.object({
5630
- workspaceId: z193.string(),
5637
+ var DTODesignSystemCreateInput = z194.object({
5638
+ workspaceId: z194.string(),
5631
5639
  meta: ObjectMeta.optional(),
5632
- name: z193.string().min(2).max(64).optional(),
5633
- description: z193.string().max(1024).optional(),
5640
+ name: z194.string().min(2).max(64).optional(),
5641
+ description: z194.string().max(1024).optional(),
5634
5642
  accessMode: DesignSystemAccessMode.optional(),
5635
5643
  invites: DTODesignSystemMembersUpdatePayload.pick({
5636
5644
  usersToInvite: true,
@@ -5640,20 +5648,20 @@ var DTODesignSystemCreateInput = z193.object({
5640
5648
  });
5641
5649
 
5642
5650
  // src/api/dto/design-systems/elements-diff.ts
5643
- import { z as z194 } from "zod";
5644
- var DTODiffCountBase = z194.object({
5645
- created: z194.number(),
5646
- updated: z194.number(),
5647
- deleted: z194.number()
5651
+ import { z as z195 } from "zod";
5652
+ var DTODiffCountBase = z195.object({
5653
+ created: z195.number(),
5654
+ updated: z195.number(),
5655
+ deleted: z195.number()
5648
5656
  });
5649
- var DTODesignElementsDataDiffResponse = z194.object({
5657
+ var DTODesignElementsDataDiffResponse = z195.object({
5650
5658
  tokens: DTODiffCountBase,
5651
5659
  assets: DTODiffCountBase
5652
5660
  });
5653
5661
 
5654
5662
  // src/api/dto/design-systems/figma-variables.ts
5655
- import { z as z195 } from "zod";
5656
- var DimensionsVariableScopeSchema = z195.enum([
5663
+ import { z as z196 } from "zod";
5664
+ var DimensionsVariableScopeSchema = z196.enum([
5657
5665
  "CORNER_RADIUS",
5658
5666
  "WIDTH_HEIGHT",
5659
5667
  "GAP",
@@ -5667,155 +5675,155 @@ var DimensionsVariableScopeSchema = z195.enum([
5667
5675
  "PARAGRAPH_INDENT",
5668
5676
  "FONT_WEIGHT"
5669
5677
  ]);
5670
- var StringVariableScopeSchema = z195.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5678
+ var StringVariableScopeSchema = z196.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5671
5679
  var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
5672
5680
  var StringVariableScopeType = StringVariableScopeSchema.enum;
5673
- var VariableScope = z195.string();
5674
- var ReferencedVariableOrigin = z195.object({
5675
- name: z195.string(),
5676
- remote: z195.boolean()
5681
+ var VariableScope = z196.string();
5682
+ var ReferencedVariableOrigin = z196.object({
5683
+ name: z196.string(),
5684
+ remote: z196.boolean()
5677
5685
  });
5678
- var RGB = z195.object({
5679
- r: z195.number(),
5680
- g: z195.number(),
5681
- b: z195.number()
5686
+ var RGB = z196.object({
5687
+ r: z196.number(),
5688
+ g: z196.number(),
5689
+ b: z196.number()
5682
5690
  });
5683
5691
  var RGBA = RGB.extend({
5684
- a: z195.number()
5685
- });
5686
- var VariableAlias = z195.object({
5687
- type: z195.literal("VARIABLE_ALIAS"),
5688
- id: z195.string(),
5689
- resolvedValue: z195.boolean().or(z195.number()).or(z195.string()).or(RGBA).or(RGB).optional(),
5690
- referenceOrigin: ReferencedVariableOrigin.optional().or(z195.null())
5691
- });
5692
- var VariableValue = z195.boolean().or(z195.number()).or(z195.string()).or(RGBA).or(RGB).or(VariableAlias);
5693
- var ResolvedVariableType = z195.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5694
- var Variable = z195.object({
5695
- id: z195.string(),
5696
- name: z195.string(),
5697
- key: z195.string(),
5698
- variableCollectionId: z195.string(),
5692
+ a: z196.number()
5693
+ });
5694
+ var VariableAlias = z196.object({
5695
+ type: z196.literal("VARIABLE_ALIAS"),
5696
+ id: z196.string(),
5697
+ resolvedValue: z196.boolean().or(z196.number()).or(z196.string()).or(RGBA).or(RGB).optional(),
5698
+ referenceOrigin: ReferencedVariableOrigin.optional().or(z196.null())
5699
+ });
5700
+ var VariableValue = z196.boolean().or(z196.number()).or(z196.string()).or(RGBA).or(RGB).or(VariableAlias);
5701
+ var ResolvedVariableType = z196.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5702
+ var Variable = z196.object({
5703
+ id: z196.string(),
5704
+ name: z196.string(),
5705
+ key: z196.string(),
5706
+ variableCollectionId: z196.string(),
5699
5707
  resolvedType: ResolvedVariableType,
5700
- valuesByMode: z195.record(VariableValue),
5701
- remote: z195.boolean(),
5702
- description: z195.string(),
5703
- hiddenFromPublishing: z195.boolean(),
5704
- scopes: z195.array(VariableScope),
5705
- codeSyntax: z195.record(z195.any()).optional()
5706
- });
5707
- var VariableMode = z195.object({
5708
- modeId: z195.string(),
5709
- name: z195.string()
5710
- });
5711
- var Collection2 = z195.object({
5712
- id: z195.string(),
5713
- name: z195.string(),
5714
- modes: z195.array(VariableMode),
5715
- defaultModeId: z195.string(),
5716
- remote: z195.boolean(),
5717
- hiddenFromPublishing: z195.boolean()
5718
- });
5719
- var VariablesMapping = z195.object({
5720
- variableCollections: z195.array(z195.string()).min(1),
5721
- variableMode: z195.string().min(1),
5722
- supernovaBrand: z195.string().min(1),
5723
- supernovaTheme: z195.string().min(1).optional().or(z195.null())
5724
- });
5725
- var FormattedCollections = z195.object({
5726
- variables: z195.record(z195.string(), Variable),
5727
- variableCollections: z195.record(z195.string(), Collection2),
5728
- mappings: z195.array(VariablesMapping).optional(),
5729
- variablesOrder: z195.string().array().optional()
5708
+ valuesByMode: z196.record(VariableValue),
5709
+ remote: z196.boolean(),
5710
+ description: z196.string(),
5711
+ hiddenFromPublishing: z196.boolean(),
5712
+ scopes: z196.array(VariableScope),
5713
+ codeSyntax: z196.record(z196.any()).optional()
5714
+ });
5715
+ var VariableMode = z196.object({
5716
+ modeId: z196.string(),
5717
+ name: z196.string()
5718
+ });
5719
+ var Collection2 = z196.object({
5720
+ id: z196.string(),
5721
+ name: z196.string(),
5722
+ modes: z196.array(VariableMode),
5723
+ defaultModeId: z196.string(),
5724
+ remote: z196.boolean(),
5725
+ hiddenFromPublishing: z196.boolean()
5726
+ });
5727
+ var VariablesMapping = z196.object({
5728
+ variableCollections: z196.array(z196.string()).min(1),
5729
+ variableMode: z196.string().min(1),
5730
+ supernovaBrand: z196.string().min(1),
5731
+ supernovaTheme: z196.string().min(1).optional().or(z196.null())
5732
+ });
5733
+ var FormattedCollections = z196.object({
5734
+ variables: z196.record(z196.string(), Variable),
5735
+ variableCollections: z196.record(z196.string(), Collection2),
5736
+ mappings: z196.array(VariablesMapping).optional(),
5737
+ variablesOrder: z196.string().array().optional()
5730
5738
  });
5731
5739
 
5732
5740
  // src/api/dto/design-systems/import-job.ts
5733
- import { z as z196 } from "zod";
5734
- var DTOImportJob = z196.object({
5735
- id: z196.string(),
5736
- designSystemId: z196.string(),
5737
- designSystemVersionId: z196.string(),
5738
- operation: z196.literal("Import"),
5739
- createdAt: z196.coerce.date(),
5740
- stateChangedAt: z196.coerce.date(),
5741
+ import { z as z197 } from "zod";
5742
+ var DTOImportJob = z197.object({
5743
+ id: z197.string(),
5744
+ designSystemId: z197.string(),
5745
+ designSystemVersionId: z197.string(),
5746
+ operation: z197.literal("Import"),
5747
+ createdAt: z197.coerce.date(),
5748
+ stateChangedAt: z197.coerce.date(),
5741
5749
  state: ImportJobState,
5742
- sourceIds: z196.string().array()
5750
+ sourceIds: z197.string().array()
5743
5751
  });
5744
- var DTOImportJobResponse = z196.object({
5752
+ var DTOImportJobResponse = z197.object({
5745
5753
  job: DTOImportJob
5746
5754
  });
5747
- var DTOBffFigmaImportRequestBody = z196.object({
5748
- type: z196.literal(DataSourceRemoteType.Enum.Figma),
5749
- brandPersistentId: z196.string().optional(),
5750
- fileId: z196.string(),
5755
+ var DTOBffFigmaImportRequestBody = z197.object({
5756
+ type: z197.literal(DataSourceRemoteType.Enum.Figma),
5757
+ brandPersistentId: z197.string().optional(),
5758
+ fileId: z197.string(),
5751
5759
  scope: DataSourceFigmaScope,
5752
5760
  autoImportMode: DataSourceAutoImportMode
5753
5761
  });
5754
- var DTOBffUploadImportRequestBody = z196.object({
5755
- type: z196.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5756
- brandPersistentId: z196.string().optional(),
5757
- sourceName: z196.string().optional(),
5758
- remoteId: z196.string(),
5759
- isTokenTypeSplitEnabled: z196.boolean().optional(),
5760
- payload: z196.any()
5762
+ var DTOBffUploadImportRequestBody = z197.object({
5763
+ type: z197.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5764
+ brandPersistentId: z197.string().optional(),
5765
+ sourceName: z197.string().optional(),
5766
+ remoteId: z197.string(),
5767
+ isTokenTypeSplitEnabled: z197.boolean().optional(),
5768
+ payload: z197.any()
5761
5769
  });
5762
- var DTOBffImportRequestBody = z196.discriminatedUnion("type", [
5770
+ var DTOBffImportRequestBody = z197.discriminatedUnion("type", [
5763
5771
  DTOBffFigmaImportRequestBody,
5764
5772
  DTOBffUploadImportRequestBody
5765
5773
  ]);
5766
5774
 
5767
5775
  // src/api/dto/design-systems/redirects.ts
5768
- import { z as z197 } from "zod";
5769
- var DTOPageRedirectCreateBody = z197.object({
5770
- pagePersistentId: z197.string(),
5771
- path: z197.string()
5776
+ import { z as z198 } from "zod";
5777
+ var DTOPageRedirectCreateBody = z198.object({
5778
+ pagePersistentId: z198.string(),
5779
+ path: z198.string()
5772
5780
  });
5773
5781
  var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
5774
- var DTOPageRedirect = z197.object({
5775
- id: z197.string(),
5776
- pagePersistentId: z197.string(),
5777
- path: z197.string()
5782
+ var DTOPageRedirect = z198.object({
5783
+ id: z198.string(),
5784
+ pagePersistentId: z198.string(),
5785
+ path: z198.string()
5778
5786
  });
5779
- var DTOPageRedirectListResponse = z197.object({
5787
+ var DTOPageRedirectListResponse = z198.object({
5780
5788
  redirects: DTOPageRedirect.array()
5781
5789
  });
5782
- var DTOPageRedirectResponse = z197.object({
5790
+ var DTOPageRedirectResponse = z198.object({
5783
5791
  redirect: DTOPageRedirect
5784
5792
  });
5785
- var DTOPageRedirectDeleteResponse = z197.object({
5786
- success: z197.boolean()
5793
+ var DTOPageRedirectDeleteResponse = z198.object({
5794
+ success: z198.boolean()
5787
5795
  });
5788
5796
 
5789
5797
  // src/api/dto/design-systems/stats.ts
5790
- import { z as z198 } from "zod";
5791
- var DTODesignSystemVersionStats = z198.object({
5792
- tokens: z198.number(),
5793
- designSystemComponents: z198.number(),
5794
- assets: z198.number(),
5795
- documentationPages: z198.number(),
5796
- figmaComponents: z198.number()
5797
- });
5798
- var DTODesignSystemVersionStatsQuery = z198.object({
5798
+ import { z as z199 } from "zod";
5799
+ var DTODesignSystemVersionStats = z199.object({
5800
+ tokens: z199.number(),
5801
+ designSystemComponents: z199.number(),
5802
+ assets: z199.number(),
5803
+ documentationPages: z199.number(),
5804
+ figmaComponents: z199.number()
5805
+ });
5806
+ var DTODesignSystemVersionStatsQuery = z199.object({
5799
5807
  /**
5800
5808
  * Unique ID across versions (non-persistent ID)
5801
5809
  */
5802
- brandId: z198.string().optional()
5810
+ brandId: z199.string().optional()
5803
5811
  });
5804
5812
 
5805
5813
  // src/api/dto/design-systems/version-room.ts
5806
- import { z as z199 } from "zod";
5807
- var DTODesignSystemVersionRoom = z199.object({
5808
- id: z199.string()
5814
+ import { z as z200 } from "zod";
5815
+ var DTODesignSystemVersionRoom = z200.object({
5816
+ id: z200.string()
5809
5817
  });
5810
- var DTODesignSystemVersionRoomResponse = z199.object({
5818
+ var DTODesignSystemVersionRoomResponse = z200.object({
5811
5819
  room: DTODesignSystemVersionRoom
5812
5820
  });
5813
5821
 
5814
5822
  // src/api/dto/design-systems/version.ts
5815
- import { z as z211 } from "zod";
5823
+ import { z as z212 } from "zod";
5816
5824
 
5817
5825
  // src/api/payloads/design-systems/update-design-system.ts
5818
- import { z as z200 } from "zod";
5826
+ import { z as z201 } from "zod";
5819
5827
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5820
5828
  id: true,
5821
5829
  workspaceId: true,
@@ -5827,40 +5835,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5827
5835
  }).extend({
5828
5836
  meta: ObjectMeta.partial().optional()
5829
5837
  });
5830
- var DTODesignSystemUpdateAccessModeInput = z200.object({
5838
+ var DTODesignSystemUpdateAccessModeInput = z201.object({
5831
5839
  accessMode: DesignSystemAccessMode,
5832
- retain: z200.object({
5833
- userIds: z200.string().array(),
5834
- inviteIds: z200.string().array()
5840
+ retain: z201.object({
5841
+ userIds: z201.string().array(),
5842
+ inviteIds: z201.string().array()
5835
5843
  }).optional()
5836
5844
  });
5837
5845
 
5838
5846
  // src/api/payloads/design-systems/version.ts
5839
- import { z as z201 } from "zod";
5840
- var ObjectMeta2 = z201.object({
5841
- name: z201.string().max(150).optional(),
5842
- description: z201.string().max(2e3).optional()
5847
+ import { z as z202 } from "zod";
5848
+ var ObjectMeta2 = z202.object({
5849
+ name: z202.string().max(150).optional(),
5850
+ description: z202.string().max(2e3).optional()
5843
5851
  });
5844
5852
  function validateDesignSystemVersion(version) {
5845
5853
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5846
5854
  return urlCompliantRegex.test(version);
5847
5855
  }
5848
- var DTOCreateVersionInput = z201.object({
5856
+ var DTOCreateVersionInput = z202.object({
5849
5857
  meta: ObjectMeta2,
5850
- version: z201.string().refine(validateDesignSystemVersion, {
5858
+ version: z202.string().refine(validateDesignSystemVersion, {
5851
5859
  message: "Invalid semantic versioning format"
5852
5860
  }),
5853
- changeLog: z201.string().optional()
5861
+ changeLog: z202.string().optional()
5854
5862
  });
5855
- var DTOUpdateVersionInput = z201.object({
5863
+ var DTOUpdateVersionInput = z202.object({
5856
5864
  meta: ObjectMeta2,
5857
- version: z201.string(),
5865
+ version: z202.string(),
5858
5866
  // required for PUT, but not editable
5859
- changeLog: z201.string()
5867
+ changeLog: z202.string()
5860
5868
  });
5861
5869
 
5862
5870
  // src/api/payloads/documentation/block-definitions.ts
5863
- import { z as z202 } from "zod";
5871
+ import { z as z203 } from "zod";
5864
5872
 
5865
5873
  // src/api/dto/documentation/block-definition.ts
5866
5874
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5872,70 +5880,70 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5872
5880
  var DTOPageBlockDefinition = PageBlockDefinition;
5873
5881
 
5874
5882
  // src/api/payloads/documentation/block-definitions.ts
5875
- var DTOGetBlockDefinitionsOutput = z202.object({
5876
- definitions: z202.array(DTOPageBlockDefinition)
5883
+ var DTOGetBlockDefinitionsOutput = z203.object({
5884
+ definitions: z203.array(DTOPageBlockDefinition)
5877
5885
  });
5878
5886
 
5879
5887
  // src/api/payloads/documentation/design-data-doc-diff.ts
5880
- import { z as z203 } from "zod";
5881
- var DTODocumentationPublishTypeQueryParams = z203.object({
5882
- environment: z203.enum(["Live", "Preview"])
5888
+ import { z as z204 } from "zod";
5889
+ var DTODocumentationPublishTypeQueryParams = z204.object({
5890
+ environment: z204.enum(["Live", "Preview"])
5883
5891
  });
5884
5892
 
5885
5893
  // src/api/payloads/export/pipeline.ts
5886
- import { z as z205 } from "zod";
5894
+ import { z as z206 } from "zod";
5887
5895
 
5888
5896
  // src/api/dto/export/exporter-property.ts
5889
- import { z as z204 } from "zod";
5890
- var PrimitiveValue2 = z204.number().or(z204.boolean()).or(z204.string());
5891
- var ArrayValue2 = z204.array(z204.string());
5892
- var ObjectValue2 = z204.record(z204.string());
5897
+ import { z as z205 } from "zod";
5898
+ var PrimitiveValue2 = z205.number().or(z205.boolean()).or(z205.string());
5899
+ var ArrayValue2 = z205.array(z205.string());
5900
+ var ObjectValue2 = z205.record(z205.string());
5893
5901
  var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
5894
- var DTOExporterPropertyType = z204.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
5895
- var PropertyDefinitionBase2 = z204.object({
5896
- key: z204.string(),
5897
- title: z204.string(),
5898
- description: z204.string(),
5899
- category: z204.string().optional(),
5900
- dependsOn: z204.record(z204.boolean()).optional()
5901
- });
5902
- var DTOExporterPropertyDefinitionEnumOption = z204.object({
5903
- label: z204.string(),
5904
- description: z204.string()
5902
+ var DTOExporterPropertyType = z205.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
5903
+ var PropertyDefinitionBase2 = z205.object({
5904
+ key: z205.string(),
5905
+ title: z205.string(),
5906
+ description: z205.string(),
5907
+ category: z205.string().optional(),
5908
+ dependsOn: z205.record(z205.boolean()).optional()
5909
+ });
5910
+ var DTOExporterPropertyDefinitionEnumOption = z205.object({
5911
+ label: z205.string(),
5912
+ description: z205.string()
5905
5913
  });
5906
5914
  var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
5907
- type: z204.literal(DTOExporterPropertyType.Enum.Enum),
5908
- options: z204.record(DTOExporterPropertyDefinitionEnumOption),
5909
- default: z204.string()
5915
+ type: z205.literal(DTOExporterPropertyType.Enum.Enum),
5916
+ options: z205.record(DTOExporterPropertyDefinitionEnumOption),
5917
+ default: z205.string()
5910
5918
  });
5911
5919
  var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
5912
- type: z204.literal(DTOExporterPropertyType.Enum.Boolean),
5913
- default: z204.boolean()
5920
+ type: z205.literal(DTOExporterPropertyType.Enum.Boolean),
5921
+ default: z205.boolean()
5914
5922
  });
5915
5923
  var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
5916
- type: z204.literal(DTOExporterPropertyType.Enum.String),
5917
- default: z204.string()
5924
+ type: z205.literal(DTOExporterPropertyType.Enum.String),
5925
+ default: z205.string()
5918
5926
  });
5919
5927
  var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
5920
- type: z204.literal(DTOExporterPropertyType.Enum.Number),
5921
- default: z204.number()
5928
+ type: z205.literal(DTOExporterPropertyType.Enum.Number),
5929
+ default: z205.number()
5922
5930
  });
5923
5931
  var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
5924
- type: z204.literal(DTOExporterPropertyType.Enum.Array),
5932
+ type: z205.literal(DTOExporterPropertyType.Enum.Array),
5925
5933
  default: ArrayValue2
5926
5934
  });
5927
5935
  var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
5928
- type: z204.literal(DTOExporterPropertyType.Enum.Object),
5936
+ type: z205.literal(DTOExporterPropertyType.Enum.Object),
5929
5937
  default: ObjectValue2,
5930
- allowedKeys: z204.object({
5931
- options: z204.string().array(),
5932
- type: z204.string()
5938
+ allowedKeys: z205.object({
5939
+ options: z205.string().array(),
5940
+ type: z205.string()
5933
5941
  }).optional(),
5934
- allowedValues: z204.object({
5935
- type: z204.string()
5942
+ allowedValues: z205.object({
5943
+ type: z205.string()
5936
5944
  }).optional()
5937
5945
  });
5938
- var DTOExporterPropertyDefinition = z204.discriminatedUnion("type", [
5946
+ var DTOExporterPropertyDefinition = z205.discriminatedUnion("type", [
5939
5947
  DTOExporterPropertyDefinitionEnum,
5940
5948
  DTOExporterPropertyDefinitionBoolean,
5941
5949
  DTOExporterPropertyDefinitionString,
@@ -5943,73 +5951,73 @@ var DTOExporterPropertyDefinition = z204.discriminatedUnion("type", [
5943
5951
  DTOExporterPropertyDefinitionArray,
5944
5952
  DTOExporterPropertyDefinitionObject
5945
5953
  ]);
5946
- var DTOExporterPropertyDefinitionsResponse = z204.object({
5954
+ var DTOExporterPropertyDefinitionsResponse = z205.object({
5947
5955
  properties: DTOExporterPropertyDefinition.array()
5948
5956
  });
5949
- var DTOExporterPropertyValueMap = z204.record(DTOExporterPropertyValue);
5957
+ var DTOExporterPropertyValueMap = z205.record(DTOExporterPropertyValue);
5950
5958
 
5951
5959
  // src/api/payloads/export/pipeline.ts
5952
- var DTOPipelineCreateBody = z205.object({
5953
- name: z205.string(),
5954
- exporterId: z205.string(),
5955
- designSystemId: z205.string(),
5956
- isEnabled: z205.boolean(),
5960
+ var DTOPipelineCreateBody = z206.object({
5961
+ name: z206.string(),
5962
+ exporterId: z206.string(),
5963
+ designSystemId: z206.string(),
5964
+ isEnabled: z206.boolean(),
5957
5965
  eventType: PipelineEventType,
5958
- brandPersistentId: z205.string().optional(),
5959
- themePersistentId: z205.string().optional(),
5960
- themePersistentIds: z205.string().array().optional(),
5966
+ brandPersistentId: z206.string().optional(),
5967
+ themePersistentId: z206.string().optional(),
5968
+ themePersistentIds: z206.string().array().optional(),
5961
5969
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
5962
5970
  destination: PipelineDestinationType.optional(),
5963
5971
  gitQuery: GitObjectsQuery,
5964
- destinations: z205.object({
5972
+ destinations: z206.object({
5965
5973
  s3: ExporterDestinationS3.nullish(),
5966
5974
  azure: ExporterDestinationAzure.nullish(),
5967
5975
  bitbucket: ExporterDestinationBitbucket.nullish(),
5968
5976
  github: ExporterDestinationGithub.nullish(),
5969
5977
  gitlab: ExporterDestinationGitlab.nullish(),
5970
5978
  documentation: ExporterDestinationDocs.nullish(),
5971
- webhookUrl: z205.string().nullish()
5979
+ webhookUrl: z206.string().nullish()
5972
5980
  })
5973
5981
  });
5974
- var DTOPipelineUpdateBody = z205.object({
5975
- exporterId: z205.string().optional(),
5976
- name: z205.string().optional(),
5977
- isEnabled: z205.boolean().optional(),
5982
+ var DTOPipelineUpdateBody = z206.object({
5983
+ exporterId: z206.string().optional(),
5984
+ name: z206.string().optional(),
5985
+ isEnabled: z206.boolean().optional(),
5978
5986
  eventType: PipelineEventType.optional(),
5979
- brandPersistentId: z205.string().optional(),
5980
- themePersistentId: z205.string().optional(),
5981
- themePersistentIds: z205.string().array().optional(),
5987
+ brandPersistentId: z206.string().optional(),
5988
+ themePersistentId: z206.string().optional(),
5989
+ themePersistentIds: z206.string().array().optional(),
5982
5990
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
5983
5991
  destination: PipelineDestinationType.optional(),
5984
5992
  gitQuery: GitObjectsQuery.optional(),
5985
- destinations: z205.object({
5993
+ destinations: z206.object({
5986
5994
  s3: ExporterDestinationS3.nullish(),
5987
5995
  azure: ExporterDestinationAzure.nullish(),
5988
5996
  bitbucket: ExporterDestinationBitbucket.nullish(),
5989
5997
  github: ExporterDestinationGithub.nullish(),
5990
5998
  gitlab: ExporterDestinationGitlab.nullish(),
5991
5999
  documentation: ExporterDestinationDocs.nullish(),
5992
- webhookUrl: z205.string().nullish()
6000
+ webhookUrl: z206.string().nullish()
5993
6001
  }).optional()
5994
6002
  });
5995
- var DTOPipelineTriggerBody = z205.object({
5996
- designSystemVersionId: z205.string()
6003
+ var DTOPipelineTriggerBody = z206.object({
6004
+ designSystemVersionId: z206.string()
5997
6005
  });
5998
6006
 
5999
6007
  // src/api/payloads/liveblocks/auth.ts
6000
- import { z as z206 } from "zod";
6001
- var DTOLiveblocksAuthRequest = z206.object({
6002
- room: z206.string().optional()
6008
+ import { z as z207 } from "zod";
6009
+ var DTOLiveblocksAuthRequest = z207.object({
6010
+ room: z207.string().optional()
6003
6011
  });
6004
6012
 
6005
6013
  // src/api/payloads/users/notifications/notification-settings.ts
6006
- import { z as z207 } from "zod";
6007
- var DTOUpdateUserNotificationSettingsPayload = z207.object({
6014
+ import { z as z208 } from "zod";
6015
+ var DTOUpdateUserNotificationSettingsPayload = z208.object({
6008
6016
  notificationSettings: UserNotificationSettings
6009
6017
  });
6010
- var DTOUserNotificationSettingsResponse = z207.object({
6011
- userId: z207.string(),
6012
- workspaceId: z207.string(),
6018
+ var DTOUserNotificationSettingsResponse = z208.object({
6019
+ userId: z208.string(),
6020
+ workspaceId: z208.string(),
6013
6021
  notificationSettings: UserNotificationSettings
6014
6022
  });
6015
6023
 
@@ -6017,13 +6025,13 @@ var DTOUserNotificationSettingsResponse = z207.object({
6017
6025
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
6018
6026
 
6019
6027
  // src/api/payloads/workspaces/transfer-ownership.ts
6020
- import { z as z208 } from "zod";
6021
- var DTOTransferOwnershipPayload = z208.object({
6022
- newOwnerId: z208.string()
6028
+ import { z as z209 } from "zod";
6029
+ var DTOTransferOwnershipPayload = z209.object({
6030
+ newOwnerId: z209.string()
6023
6031
  });
6024
6032
 
6025
6033
  // src/api/payloads/workspaces/workspace-configuration.ts
6026
- import { z as z209 } from "zod";
6034
+ import { z as z210 } from "zod";
6027
6035
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
6028
6036
  function validateSsoPayload(ssoPayload) {
6029
6037
  const keys = [];
@@ -6046,21 +6054,21 @@ function validateSsoPayload(ssoPayload) {
6046
6054
  keys
6047
6055
  };
6048
6056
  }
6049
- var NpmRegistryInput = z209.object({
6050
- enabledScopes: z209.array(z209.string()),
6051
- customRegistryUrl: z209.string().optional(),
6052
- bypassProxy: z209.boolean().optional(),
6053
- npmProxyRegistryConfigId: z209.string().optional(),
6054
- npmProxyVersion: z209.number().optional(),
6055
- registryType: z209.string(),
6056
- authType: z209.string(),
6057
- authHeaderName: z209.string(),
6058
- authHeaderValue: z209.string(),
6059
- accessToken: z209.string(),
6060
- username: z209.string(),
6061
- password: z209.string()
6062
- });
6063
- var WorkspaceConfigurationPayload = z209.object({
6057
+ var NpmRegistryInput = z210.object({
6058
+ enabledScopes: z210.array(z210.string()),
6059
+ customRegistryUrl: z210.string().optional(),
6060
+ bypassProxy: z210.boolean().optional(),
6061
+ npmProxyRegistryConfigId: z210.string().optional(),
6062
+ npmProxyVersion: z210.number().optional(),
6063
+ registryType: z210.string(),
6064
+ authType: z210.string(),
6065
+ authHeaderName: z210.string(),
6066
+ authHeaderValue: z210.string(),
6067
+ accessToken: z210.string(),
6068
+ username: z210.string(),
6069
+ password: z210.string()
6070
+ });
6071
+ var WorkspaceConfigurationPayload = z210.object({
6064
6072
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
6065
6073
  sso: SsoProvider.partial().optional(),
6066
6074
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -6068,218 +6076,218 @@ var WorkspaceConfigurationPayload = z209.object({
6068
6076
  });
6069
6077
 
6070
6078
  // src/api/payloads/workspaces/workspace-integrations.ts
6071
- import { z as z210 } from "zod";
6072
- var DTOWorkspaceIntegrationOauthInput = z210.object({
6079
+ import { z as z211 } from "zod";
6080
+ var DTOWorkspaceIntegrationOauthInput = z211.object({
6073
6081
  type: IntegrationType
6074
6082
  });
6075
- var DTOWorkspaceIntegrationPATInput = z210.object({
6076
- userId: z210.string(),
6083
+ var DTOWorkspaceIntegrationPATInput = z211.object({
6084
+ userId: z211.string(),
6077
6085
  type: IntegrationType,
6078
6086
  token: IntegrationToken
6079
6087
  });
6080
- var DTOWorkspaceIntegrationGetGitObjectsInput = z210.object({
6081
- organization: z210.string().optional(),
6088
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z211.object({
6089
+ organization: z211.string().optional(),
6082
6090
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
6083
- project: z210.string().optional(),
6091
+ project: z211.string().optional(),
6084
6092
  // Only for Bitbucket and Azure
6085
- repository: z210.string().optional(),
6093
+ repository: z211.string().optional(),
6086
6094
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
6087
- branch: z210.string().optional(),
6095
+ branch: z211.string().optional(),
6088
6096
  // For all providers, useful for PR creations.
6089
- user: z210.string().optional()
6097
+ user: z211.string().optional()
6090
6098
  // Only for Gitlab User Repositories
6091
6099
  });
6092
6100
 
6093
6101
  // src/api/dto/design-systems/version.ts
6094
- var DTODesignSystemVersion = z211.object({
6095
- id: z211.string(),
6096
- createdAt: z211.coerce.date(),
6102
+ var DTODesignSystemVersion = z212.object({
6103
+ id: z212.string(),
6104
+ createdAt: z212.coerce.date(),
6097
6105
  meta: ObjectMeta,
6098
- version: z211.string(),
6099
- isReadonly: z211.boolean(),
6100
- changeLog: z211.string(),
6101
- designSystemId: z211.string()
6106
+ version: z212.string(),
6107
+ isReadonly: z212.boolean(),
6108
+ changeLog: z212.string(),
6109
+ designSystemId: z212.string()
6102
6110
  });
6103
- var DTODesignSystemVersionsListResponse = z211.object({
6104
- designSystemVersions: z211.array(DTODesignSystemVersion)
6111
+ var DTODesignSystemVersionsListResponse = z212.object({
6112
+ designSystemVersions: z212.array(DTODesignSystemVersion)
6105
6113
  });
6106
- var DTODesignSystemVersionGetResponse = z211.object({
6114
+ var DTODesignSystemVersionGetResponse = z212.object({
6107
6115
  designSystemVersion: DTODesignSystemVersion
6108
6116
  });
6109
- var DTODesignSystemVersionCreationResponse = z211.object({
6117
+ var DTODesignSystemVersionCreationResponse = z212.object({
6110
6118
  meta: ObjectMeta,
6111
- version: z211.string(),
6112
- changeLog: z211.string(),
6113
- isReadOnly: z211.boolean(),
6114
- designSystemId: z211.string(),
6115
- jobId: z211.string()
6116
- });
6117
- var VersionSQSPayload = z211.object({
6118
- jobId: z211.string(),
6119
- designSystemId: z211.string(),
6119
+ version: z212.string(),
6120
+ changeLog: z212.string(),
6121
+ isReadOnly: z212.boolean(),
6122
+ designSystemId: z212.string(),
6123
+ jobId: z212.string()
6124
+ });
6125
+ var VersionSQSPayload = z212.object({
6126
+ jobId: z212.string(),
6127
+ designSystemId: z212.string(),
6120
6128
  input: DTOCreateVersionInput
6121
6129
  });
6122
- var DTODesignSystemVersionJobsResponse = z211.object({
6123
- jobs: z211.array(VersionCreationJob)
6130
+ var DTODesignSystemVersionJobsResponse = z212.object({
6131
+ jobs: z212.array(VersionCreationJob)
6124
6132
  });
6125
- var DTODesignSystemVersionJobStatusResponse = z211.object({
6133
+ var DTODesignSystemVersionJobStatusResponse = z212.object({
6126
6134
  job: VersionCreationJob
6127
6135
  });
6128
6136
 
6129
6137
  // src/api/dto/design-systems/view.ts
6130
- import { z as z212 } from "zod";
6131
- var DTOElementViewColumnSharedAttributes = z212.object({
6132
- id: z212.string(),
6133
- persistentId: z212.string(),
6134
- width: z212.number()
6138
+ import { z as z213 } from "zod";
6139
+ var DTOElementViewColumnSharedAttributes = z213.object({
6140
+ id: z213.string(),
6141
+ persistentId: z213.string(),
6142
+ width: z213.number()
6135
6143
  });
6136
6144
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
6137
- type: z212.literal("BaseProperty"),
6145
+ type: z213.literal("BaseProperty"),
6138
6146
  basePropertyType: ElementViewBaseColumnType
6139
6147
  });
6140
6148
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
6141
- type: z212.literal("PropertyDefinition"),
6142
- propertyDefinitionId: z212.string()
6149
+ type: z213.literal("PropertyDefinition"),
6150
+ propertyDefinitionId: z213.string()
6143
6151
  });
6144
6152
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
6145
- type: z212.literal("Theme"),
6146
- themeId: z212.string()
6153
+ type: z213.literal("Theme"),
6154
+ themeId: z213.string()
6147
6155
  });
6148
- var DTOElementViewColumn = z212.discriminatedUnion("type", [
6156
+ var DTOElementViewColumn = z213.discriminatedUnion("type", [
6149
6157
  DTOElementViewBasePropertyColumn,
6150
6158
  DTOElementViewPropertyDefinitionColumn,
6151
6159
  DTOElementViewThemeColumn
6152
6160
  ]);
6153
- var DTOElementView = z212.object({
6161
+ var DTOElementView = z213.object({
6154
6162
  meta: ObjectMeta,
6155
- persistentId: z212.string(),
6163
+ persistentId: z213.string(),
6156
6164
  targetElementType: ElementPropertyTargetType,
6157
- id: z212.string(),
6158
- isDefault: z212.boolean(),
6159
- columns: z212.array(DTOElementViewColumn)
6165
+ id: z213.string(),
6166
+ isDefault: z213.boolean(),
6167
+ columns: z213.array(DTOElementViewColumn)
6160
6168
  });
6161
- var DTOElementViewsListResponse = z212.object({
6162
- elementDataViews: z212.array(DTOElementView)
6169
+ var DTOElementViewsListResponse = z213.object({
6170
+ elementDataViews: z213.array(DTOElementView)
6163
6171
  });
6164
6172
 
6165
6173
  // src/api/dto/workspaces/git.ts
6166
- import { z as z213 } from "zod";
6167
- var DTOGitOrganization = z213.object({
6168
- id: z213.string(),
6169
- name: z213.string(),
6170
- url: z213.string(),
6171
- slug: z213.string()
6174
+ import { z as z214 } from "zod";
6175
+ var DTOGitOrganization = z214.object({
6176
+ id: z214.string(),
6177
+ name: z214.string(),
6178
+ url: z214.string(),
6179
+ slug: z214.string()
6172
6180
  });
6173
- var DTOGitProject = z213.object({
6174
- id: z213.string(),
6175
- name: z213.string(),
6176
- url: z213.string(),
6177
- slug: z213.string()
6181
+ var DTOGitProject = z214.object({
6182
+ id: z214.string(),
6183
+ name: z214.string(),
6184
+ url: z214.string(),
6185
+ slug: z214.string()
6178
6186
  });
6179
- var DTOGitRepository = z213.object({
6180
- id: z213.string(),
6181
- name: z213.string(),
6182
- url: z213.string(),
6183
- slug: z213.string(),
6184
- defaultBranch: z213.string().optional()
6187
+ var DTOGitRepository = z214.object({
6188
+ id: z214.string(),
6189
+ name: z214.string(),
6190
+ url: z214.string(),
6191
+ slug: z214.string(),
6192
+ defaultBranch: z214.string().optional()
6185
6193
  });
6186
- var DTOGitBranch = z213.object({
6187
- name: z213.string(),
6188
- lastCommitId: z213.string()
6194
+ var DTOGitBranch = z214.object({
6195
+ name: z214.string(),
6196
+ lastCommitId: z214.string()
6189
6197
  });
6190
6198
 
6191
6199
  // src/api/dto/workspaces/integrations.ts
6192
- import { z as z214 } from "zod";
6200
+ import { z as z215 } from "zod";
6193
6201
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
6194
6202
  accessToken: true,
6195
6203
  refreshToken: true
6196
6204
  });
6197
- var DTOIntegration = z214.object({
6198
- id: z214.string(),
6199
- workspaceId: z214.string(),
6205
+ var DTOIntegration = z215.object({
6206
+ id: z215.string(),
6207
+ workspaceId: z215.string(),
6200
6208
  type: ExtendedIntegrationType,
6201
- createdAt: z214.coerce.date(),
6202
- integrationCredentials: z214.array(DTOIntegrationCredentials).optional(),
6203
- integrationDesignSystems: z214.array(IntegrationDesignSystem).optional()
6209
+ createdAt: z215.coerce.date(),
6210
+ integrationCredentials: z215.array(DTOIntegrationCredentials).optional(),
6211
+ integrationDesignSystems: z215.array(IntegrationDesignSystem).optional()
6204
6212
  });
6205
- var DTOIntegrationOAuthGetResponse = z214.object({
6206
- url: z214.string()
6213
+ var DTOIntegrationOAuthGetResponse = z215.object({
6214
+ url: z215.string()
6207
6215
  });
6208
- var DTOIntegrationPostResponse = z214.object({
6216
+ var DTOIntegrationPostResponse = z215.object({
6209
6217
  integration: DTOIntegration
6210
6218
  });
6211
- var DTOIntegrationsGetListResponse = z214.object({
6219
+ var DTOIntegrationsGetListResponse = z215.object({
6212
6220
  integrations: DTOIntegration.array()
6213
6221
  });
6214
6222
 
6215
6223
  // src/api/dto/workspaces/invitations.ts
6216
- import { z as z215 } from "zod";
6217
- var DTOWorkspaceInvitationInput = z215.object({
6218
- email: z215.string().email(),
6224
+ import { z as z216 } from "zod";
6225
+ var DTOWorkspaceInvitationInput = z216.object({
6226
+ email: z216.string().email(),
6219
6227
  role: WorkspaceRoleSchema
6220
6228
  });
6221
- var DTOWorkspaceInvitationsListInput = z215.object({
6229
+ var DTOWorkspaceInvitationsListInput = z216.object({
6222
6230
  invites: DTOWorkspaceInvitationInput.array().max(100),
6223
- designSystemId: z215.string().optional()
6231
+ designSystemId: z216.string().optional()
6224
6232
  });
6225
- var DTOWorkspaceInvitationsResponse = z215.object({
6233
+ var DTOWorkspaceInvitationsResponse = z216.object({
6226
6234
  invitations: WorkspaceInvitation.array()
6227
6235
  });
6228
- var DTOWorkspaceInviteUpdate = z215.object({
6236
+ var DTOWorkspaceInviteUpdate = z216.object({
6229
6237
  role: WorkspaceRoleSchema
6230
6238
  });
6231
- var DTOWorkspaceInvitationUpdateResponse = z215.object({
6239
+ var DTOWorkspaceInvitationUpdateResponse = z216.object({
6232
6240
  invitation: WorkspaceInvitation
6233
6241
  });
6234
6242
 
6235
6243
  // src/api/dto/workspaces/membership.ts
6236
- import { z as z218 } from "zod";
6244
+ import { z as z219 } from "zod";
6237
6245
 
6238
6246
  // src/api/dto/workspaces/workspace.ts
6239
- import { z as z217 } from "zod";
6247
+ import { z as z218 } from "zod";
6240
6248
 
6241
6249
  // src/api/dto/workspaces/npm-registry.ts
6242
- import { z as z216 } from "zod";
6250
+ import { z as z217 } from "zod";
6243
6251
  var DTONpmRegistryConfigConstants = {
6244
6252
  passwordPlaceholder: "redacted"
6245
6253
  };
6246
- var DTONpmRegistryConfig = z216.object({
6254
+ var DTONpmRegistryConfig = z217.object({
6247
6255
  // Registry basic configuration
6248
6256
  registryType: NpmRegistryType,
6249
- registryUrl: z216.string(),
6250
- customRegistryUrl: z216.string().optional(),
6257
+ registryUrl: z217.string(),
6258
+ customRegistryUrl: z217.string().optional(),
6251
6259
  // URL of Supernova NPM packages proxy
6252
- proxyUrl: z216.string(),
6260
+ proxyUrl: z217.string(),
6253
6261
  // Auth configuration
6254
6262
  authType: NpmRegistryAuthType,
6255
- accessToken: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6256
- username: z216.string().optional(),
6257
- password: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6263
+ accessToken: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6264
+ username: z217.string().optional(),
6265
+ password: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6258
6266
  // NPM package scopes for whih the proxy should be enabled
6259
- enabledScopes: z216.array(z216.string()),
6267
+ enabledScopes: z217.array(z217.string()),
6260
6268
  // True if client should bypass Supernova proxy and connect directly to the registry
6261
6269
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6262
- bypassProxy: z216.boolean()
6270
+ bypassProxy: z217.boolean()
6263
6271
  });
6264
6272
 
6265
6273
  // src/api/dto/workspaces/workspace.ts
6266
6274
  var DTOWorkspaceProfile = WorkspaceProfile;
6267
- var DTOWorkspace = z217.object({
6268
- id: z217.string(),
6275
+ var DTOWorkspace = z218.object({
6276
+ id: z218.string(),
6269
6277
  profile: DTOWorkspaceProfile,
6270
6278
  subscription: Subscription,
6271
6279
  npmRegistry: DTONpmRegistryConfig.optional()
6272
6280
  });
6273
- var DTOWorkspaceCreateInput = z217.object({
6274
- name: z217.string()
6281
+ var DTOWorkspaceCreateInput = z218.object({
6282
+ name: z218.string()
6275
6283
  });
6276
- var DTOWorkspaceResponse = z217.object({
6284
+ var DTOWorkspaceResponse = z218.object({
6277
6285
  workspace: DTOWorkspace
6278
6286
  });
6279
6287
 
6280
6288
  // src/api/dto/workspaces/membership.ts
6281
- var DTOWorkspaceRole = z218.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6282
- var DTOUserWorkspaceMembership = z218.object({
6289
+ var DTOWorkspaceRole = z219.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6290
+ var DTOUserWorkspaceMembership = z219.object({
6283
6291
  // Workspace the user is a member of
6284
6292
  workspace: DTOWorkspace,
6285
6293
  // Assigned role the user has in the workspace
@@ -6289,26 +6297,26 @@ var DTOUserWorkspaceMembership = z218.object({
6289
6297
  // when a workspace's subscription is downgraded to free tier
6290
6298
  effectiveRole: DTOWorkspaceRole
6291
6299
  });
6292
- var DTOWorkspaceMember = z218.object({
6300
+ var DTOWorkspaceMember = z219.object({
6293
6301
  user: User,
6294
6302
  role: WorkspaceRoleSchema,
6295
6303
  effectiveRole: WorkspaceRoleSchema
6296
6304
  });
6297
- var DTOUserWorkspaceMembershipsResponse = z218.object({
6298
- membership: z218.array(DTOUserWorkspaceMembership)
6305
+ var DTOUserWorkspaceMembershipsResponse = z219.object({
6306
+ membership: z219.array(DTOUserWorkspaceMembership)
6299
6307
  });
6300
- var DTOWorkspaceMembersListResponse = z218.object({
6301
- members: z218.array(DTOWorkspaceMember)
6308
+ var DTOWorkspaceMembersListResponse = z219.object({
6309
+ members: z219.array(DTOWorkspaceMember)
6302
6310
  });
6303
6311
 
6304
6312
  // src/api/dto/bff/app-bootstrap-data.ts
6305
- var DTOAppBootstrapDataQuery = z219.object({
6306
- preferredWorkspaceId: z219.string().optional(),
6307
- preferredDesignSystemId: z219.string().optional(),
6308
- preferredVersionId: z219.string().optional(),
6309
- preferredBrandId: z219.string().optional()
6313
+ var DTOAppBootstrapDataQuery = z220.object({
6314
+ preferredWorkspaceId: z220.string().optional(),
6315
+ preferredDesignSystemId: z220.string().optional(),
6316
+ preferredVersionId: z220.string().optional(),
6317
+ preferredBrandId: z220.string().optional()
6310
6318
  });
6311
- var DTOAppBootstrapDataResponse = z219.object({
6319
+ var DTOAppBootstrapDataResponse = z220.object({
6312
6320
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
6313
6321
  designSystem: DTODesignSystem.optional(),
6314
6322
  version: DTODesignSystemVersion.optional(),
@@ -6316,95 +6324,95 @@ var DTOAppBootstrapDataResponse = z219.object({
6316
6324
  });
6317
6325
 
6318
6326
  // src/api/dto/collections/token-collection.ts
6319
- import { z as z220 } from "zod";
6320
- var DTOTokenCollection = z220.object({
6321
- id: z220.string(),
6322
- persistentId: z220.string(),
6323
- designSystemVersionId: z220.string(),
6327
+ import { z as z221 } from "zod";
6328
+ var DTOTokenCollection = z221.object({
6329
+ id: z221.string(),
6330
+ persistentId: z221.string(),
6331
+ designSystemVersionId: z221.string(),
6324
6332
  meta: ObjectMeta,
6325
6333
  backgroundColor: ColorTokenInlineData.optional(),
6326
- elementPropertyOptionId: z220.string(),
6327
- createdAt: z220.coerce.date(),
6328
- updatedAt: z220.coerce.date(),
6334
+ elementPropertyOptionId: z221.string(),
6335
+ createdAt: z221.coerce.date(),
6336
+ updatedAt: z221.coerce.date(),
6329
6337
  origin: CollectionOrigin.optional()
6330
6338
  });
6331
- var DTOTokenCollectionsListReponse = z220.object({
6339
+ var DTOTokenCollectionsListReponse = z221.object({
6332
6340
  collections: DTOTokenCollection.array()
6333
6341
  });
6334
6342
 
6335
6343
  // src/api/dto/design-tokens/design-token.ts
6336
- import { z as z221 } from "zod";
6344
+ import { z as z222 } from "zod";
6337
6345
  var DTODesignToken = DesignTokenTypedData.and(
6338
- z221.object({
6339
- id: z221.string(),
6340
- persistentId: z221.string(),
6341
- designSystemVersionId: z221.string(),
6346
+ z222.object({
6347
+ id: z222.string(),
6348
+ persistentId: z222.string(),
6349
+ designSystemVersionId: z222.string(),
6342
6350
  meta: ObjectMeta,
6343
6351
  originStyle: DesignTokenOrigin.optional(),
6344
- brandId: z221.string(),
6345
- collectionId: z221.string().optional(),
6346
- updatedAt: z221.coerce.date()
6352
+ brandId: z222.string(),
6353
+ collectionId: z222.string().optional(),
6354
+ updatedAt: z222.coerce.date()
6347
6355
  })
6348
6356
  );
6349
- var DTODesignTokenListResponse = z221.object({
6357
+ var DTODesignTokenListResponse = z222.object({
6350
6358
  tokens: DTODesignToken.array()
6351
6359
  });
6352
- var DTODesignTokenResponse = z221.object({
6360
+ var DTODesignTokenResponse = z222.object({
6353
6361
  token: DTODesignToken
6354
6362
  });
6355
- var DTODesignTokenGroup = z221.object({
6356
- id: z221.string(),
6363
+ var DTODesignTokenGroup = z222.object({
6364
+ id: z222.string(),
6357
6365
  tokenType: DesignTokenType,
6358
- persistentId: z221.string(),
6359
- isRoot: z221.boolean(),
6360
- brandId: z221.string(),
6366
+ persistentId: z222.string(),
6367
+ isRoot: z222.boolean(),
6368
+ brandId: z222.string(),
6361
6369
  meta: ObjectMeta,
6362
- childrenIds: z221.string().array()
6370
+ childrenIds: z222.string().array()
6363
6371
  });
6364
- var DTODesignTokenGroupListResponse = z221.object({
6372
+ var DTODesignTokenGroupListResponse = z222.object({
6365
6373
  groups: DTODesignTokenGroup.array()
6366
6374
  });
6367
- var DTODesignTokenGroupResponse = z221.object({
6375
+ var DTODesignTokenGroupResponse = z222.object({
6368
6376
  group: DTODesignTokenGroup
6369
6377
  });
6370
6378
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6371
- z221.object({
6372
- persistentId: z221.string(),
6379
+ z222.object({
6380
+ persistentId: z222.string(),
6373
6381
  meta: ObjectMeta,
6374
- brandId: z221.string(),
6375
- groupPersistentId: z221.string().optional()
6382
+ brandId: z222.string(),
6383
+ groupPersistentId: z222.string().optional()
6376
6384
  })
6377
6385
  );
6378
- var DTODesignTokenGroupCreatePayload = z221.object({
6379
- persistentId: z221.string(),
6386
+ var DTODesignTokenGroupCreatePayload = z222.object({
6387
+ persistentId: z222.string(),
6380
6388
  meta: ObjectMeta,
6381
- brandId: z221.string(),
6382
- parentId: z221.string().optional(),
6389
+ brandId: z222.string(),
6390
+ parentId: z222.string().optional(),
6383
6391
  tokenType: DesignTokenType,
6384
- childrenIds: z221.string().array()
6392
+ childrenIds: z222.string().array()
6385
6393
  });
6386
6394
 
6387
6395
  // src/api/dto/documentation/anchor.ts
6388
- import { z as z222 } from "zod";
6396
+ import { z as z223 } from "zod";
6389
6397
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6390
- var DTOGetDocumentationPageAnchorsResponse = z222.object({
6391
- anchors: z222.array(DTODocumentationPageAnchor)
6398
+ var DTOGetDocumentationPageAnchorsResponse = z223.object({
6399
+ anchors: z223.array(DTODocumentationPageAnchor)
6392
6400
  });
6393
6401
 
6394
6402
  // src/api/dto/documentation/approvals.ts
6395
- import { z as z223 } from "zod";
6396
- var DTODocumentationPageApprovalState = z223.object({
6403
+ import { z as z224 } from "zod";
6404
+ var DTODocumentationPageApprovalState = z224.object({
6397
6405
  approvalState: DocumentationPageApprovalState,
6398
- pagePersistentId: z223.string(),
6399
- updatedByUserId: z223.string(),
6400
- designSystemVersionId: z223.string(),
6401
- updatedAt: z223.coerce.date(),
6402
- createdAt: z223.coerce.date()
6403
- });
6404
- var DTODocumentationGroupApprovalState = z223.object({
6405
- persistentId: z223.string(),
6406
- groupPersistentId: z223.string(),
6407
- designSystemVersionId: z223.string(),
6406
+ pagePersistentId: z224.string(),
6407
+ updatedByUserId: z224.string(),
6408
+ designSystemVersionId: z224.string(),
6409
+ updatedAt: z224.coerce.date(),
6410
+ createdAt: z224.coerce.date()
6411
+ });
6412
+ var DTODocumentationGroupApprovalState = z224.object({
6413
+ persistentId: z224.string(),
6414
+ groupPersistentId: z224.string(),
6415
+ designSystemVersionId: z224.string(),
6408
6416
  approvalState: DocumentationPageApprovalState
6409
6417
  });
6410
6418
 
@@ -6412,68 +6420,68 @@ var DTODocumentationGroupApprovalState = z223.object({
6412
6420
  var DTOPageBlockItemV2 = PageBlockItemV2;
6413
6421
 
6414
6422
  // src/api/dto/documentation/documentation-page-snapshot.ts
6415
- import { z as z228 } from "zod";
6423
+ import { z as z229 } from "zod";
6416
6424
 
6417
6425
  // src/api/dto/elements/documentation/page-v2.ts
6418
- import { z as z227 } from "zod";
6426
+ import { z as z228 } from "zod";
6419
6427
 
6420
6428
  // src/api/dto/elements/documentation/draft-state.ts
6421
- import { z as z225 } from "zod";
6429
+ import { z as z226 } from "zod";
6422
6430
 
6423
6431
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6424
- import { z as z224 } from "zod";
6432
+ import { z as z225 } from "zod";
6425
6433
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6426
- var DTODocumentationItemConfigurationV2 = z224.object({
6427
- showSidebar: z224.boolean(),
6428
- isPrivate: z224.boolean(),
6429
- isHidden: z224.boolean(),
6434
+ var DTODocumentationItemConfigurationV2 = z225.object({
6435
+ showSidebar: z225.boolean(),
6436
+ isPrivate: z225.boolean(),
6437
+ isHidden: z225.boolean(),
6430
6438
  header: DTODocumentationItemHeaderV2
6431
6439
  });
6432
6440
 
6433
6441
  // src/api/dto/elements/documentation/draft-state.ts
6434
- var DTODocumentationDraftChangeType = z225.enum(["Created", "Updated", "Deleted"]);
6435
- var DTODocumentationDraftStateCreated = z225.object({
6436
- changeType: z225.literal(DTODocumentationDraftChangeType.enum.Created)
6437
- });
6438
- var DTODocumentationDraftStateUpdated = z225.object({
6439
- changeType: z225.literal(DTODocumentationDraftChangeType.enum.Updated),
6440
- changes: z225.object({
6441
- previousTitle: z225.string().optional(),
6442
+ var DTODocumentationDraftChangeType = z226.enum(["Created", "Updated", "Deleted"]);
6443
+ var DTODocumentationDraftStateCreated = z226.object({
6444
+ changeType: z226.literal(DTODocumentationDraftChangeType.enum.Created)
6445
+ });
6446
+ var DTODocumentationDraftStateUpdated = z226.object({
6447
+ changeType: z226.literal(DTODocumentationDraftChangeType.enum.Updated),
6448
+ changes: z226.object({
6449
+ previousTitle: z226.string().optional(),
6442
6450
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6443
- previousContentHash: z225.string().optional()
6451
+ previousContentHash: z226.string().optional()
6444
6452
  })
6445
6453
  });
6446
- var DTODocumentationDraftStateDeleted = z225.object({
6447
- changeType: z225.literal(DTODocumentationDraftChangeType.enum.Deleted),
6448
- deletedAt: z225.coerce.date(),
6449
- deletedByUserId: z225.string()
6454
+ var DTODocumentationDraftStateDeleted = z226.object({
6455
+ changeType: z226.literal(DTODocumentationDraftChangeType.enum.Deleted),
6456
+ deletedAt: z226.coerce.date(),
6457
+ deletedByUserId: z226.string()
6450
6458
  });
6451
- var DTODocumentationDraftState = z225.discriminatedUnion("changeType", [
6459
+ var DTODocumentationDraftState = z226.discriminatedUnion("changeType", [
6452
6460
  DTODocumentationDraftStateCreated,
6453
6461
  DTODocumentationDraftStateUpdated,
6454
6462
  DTODocumentationDraftStateDeleted
6455
6463
  ]);
6456
6464
 
6457
6465
  // src/api/dto/elements/documentation/metadata.ts
6458
- import { z as z226 } from "zod";
6459
- var DTODocumentationPublishMetadata = z226.object({
6460
- lastPublishedByUserId: z226.string(),
6461
- lastPublishedAt: z226.coerce.date()
6466
+ import { z as z227 } from "zod";
6467
+ var DTODocumentationPublishMetadata = z227.object({
6468
+ lastPublishedByUserId: z227.string(),
6469
+ lastPublishedAt: z227.coerce.date()
6462
6470
  });
6463
6471
 
6464
6472
  // src/api/dto/elements/documentation/page-v2.ts
6465
- var DTODocumentationPageV2 = z227.object({
6466
- id: z227.string(),
6467
- persistentId: z227.string(),
6468
- designSystemVersionId: z227.string(),
6469
- title: z227.string(),
6473
+ var DTODocumentationPageV2 = z228.object({
6474
+ id: z228.string(),
6475
+ persistentId: z228.string(),
6476
+ designSystemVersionId: z228.string(),
6477
+ title: z228.string(),
6470
6478
  configuration: DTODocumentationItemConfigurationV2,
6471
- shortPersistentId: z227.string(),
6472
- slug: z227.string().optional(),
6473
- userSlug: z227.string().optional(),
6474
- createdAt: z227.coerce.date(),
6475
- updatedAt: z227.coerce.date(),
6476
- path: z227.string(),
6479
+ shortPersistentId: z228.string(),
6480
+ slug: z228.string().optional(),
6481
+ userSlug: z228.string().optional(),
6482
+ createdAt: z228.coerce.date(),
6483
+ updatedAt: z228.coerce.date(),
6484
+ path: z228.string(),
6477
6485
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6478
6486
  draftState: DTODocumentationDraftState.optional(),
6479
6487
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -6481,251 +6489,255 @@ var DTODocumentationPageV2 = z227.object({
6481
6489
  /** Defines the approval state of the documentation page */
6482
6490
  approvalState: DTODocumentationPageApprovalState.optional(),
6483
6491
  /** Id of the page document room */
6484
- liveblocksRoomId: z227.string().optional(),
6492
+ liveblocksRoomId: z228.string().optional(),
6485
6493
  // Backward compatibility
6486
- type: z227.literal("Page")
6494
+ type: z228.literal("Page")
6487
6495
  });
6488
- var DTOCreateDocumentationPageInputV2 = z227.object({
6496
+ var DTOCreateDocumentationPageInputV2 = z228.object({
6489
6497
  // Identifier
6490
- persistentId: z227.string(),
6498
+ persistentId: z228.string(),
6491
6499
  // Page properties
6492
- title: z227.string(),
6500
+ title: z228.string(),
6493
6501
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6494
6502
  // Page placement properties
6495
- parentPersistentId: z227.string(),
6496
- afterPersistentId: z227.string().nullish()
6503
+ parentPersistentId: z228.string(),
6504
+ afterPersistentId: z228.string().nullish()
6497
6505
  });
6498
- var DTOUpdateDocumentationPageInputV2 = z227.object({
6506
+ var DTOUpdateDocumentationPageInputV2 = z228.object({
6499
6507
  // Identifier of the page to update
6500
- id: z227.string(),
6508
+ id: z228.string(),
6501
6509
  // Page properties
6502
- title: z227.string().optional(),
6510
+ title: z228.string().optional(),
6503
6511
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6504
6512
  });
6505
- var DTOUpdateDocumentationPageDocumentInputV2 = z227.object({
6513
+ var DTOUpdateDocumentationPageDocumentInputV2 = z228.object({
6506
6514
  // Identifier of the page to update
6507
- id: z227.string(),
6515
+ id: z228.string(),
6508
6516
  // Page properties
6509
- documentItems: z227.array(DocumentationPageContentItem)
6517
+ documentItems: z228.array(DocumentationPageContentItem)
6510
6518
  });
6511
- var DTOMoveDocumentationPageInputV2 = z227.object({
6519
+ var DTOMoveDocumentationPageInputV2 = z228.object({
6512
6520
  // Identifier of the group to update
6513
- id: z227.string(),
6521
+ id: z228.string(),
6514
6522
  // Page placement properties
6515
- parentPersistentId: z227.string(),
6516
- afterPersistentId: z227.string().nullish()
6523
+ parentPersistentId: z228.string(),
6524
+ afterPersistentId: z228.string().nullish()
6517
6525
  });
6518
- var DTODuplicateDocumentationPageInputV2 = z227.object({
6526
+ var DTODuplicateDocumentationPageInputV2 = z228.object({
6519
6527
  // Identifier of the page to duplicate from
6520
- id: z227.string(),
6528
+ id: z228.string(),
6521
6529
  // New page persistent id
6522
- persistentId: z227.string(),
6530
+ persistentId: z228.string(),
6523
6531
  // Page placement properties
6524
- parentPersistentId: z227.string(),
6525
- afterPersistentId: z227.string().nullish()
6532
+ parentPersistentId: z228.string(),
6533
+ afterPersistentId: z228.string().nullish()
6526
6534
  });
6527
- var DTODeleteDocumentationPageInputV2 = z227.object({
6535
+ var DTODeleteDocumentationPageInputV2 = z228.object({
6528
6536
  // Identifier
6529
- id: z227.string()
6537
+ id: z228.string()
6530
6538
  });
6531
- var DTORestoreDocumentationPageInput = z227.object({
6532
- persistentId: z227.string(),
6533
- snapshotId: z227.string().optional()
6539
+ var DTORestoreDocumentationPageInput = z228.object({
6540
+ persistentId: z228.string(),
6541
+ snapshotId: z228.string().optional()
6534
6542
  });
6535
- var DTORestoreDocumentationGroupInput = z227.object({
6536
- persistentId: z227.string(),
6537
- snapshotId: z227.string().optional()
6543
+ var DTORestoreDocumentationGroupInput = z228.object({
6544
+ persistentId: z228.string(),
6545
+ snapshotId: z228.string().optional()
6538
6546
  });
6539
- var DTODocumentationPageApprovalStateChangeInput = z227.object({
6540
- persistentId: z227.string(),
6547
+ var DTODocumentationPageApprovalStateChangeInput = z228.object({
6548
+ persistentId: z228.string(),
6541
6549
  approvalState: DocumentationPageApprovalState.optional()
6542
6550
  });
6543
6551
 
6544
6552
  // src/api/dto/documentation/documentation-page-snapshot.ts
6545
- var DTODocumentationPageSnapshot = z228.object({
6546
- id: z228.string(),
6547
- designSystemVersionId: z228.string(),
6548
- createdAt: z228.string(),
6549
- updatedAt: z228.string(),
6553
+ var DTODocumentationPageSnapshot = z229.object({
6554
+ id: z229.string(),
6555
+ designSystemVersionId: z229.string(),
6556
+ createdAt: z229.string(),
6557
+ updatedAt: z229.string(),
6550
6558
  documentationPage: DTODocumentationPageV2,
6551
- pageContentHash: z228.string(),
6559
+ pageContentHash: z229.string(),
6552
6560
  reason: DesignElementSnapshotReason
6553
6561
  });
6554
6562
 
6555
6563
  // src/api/dto/documentation/link-preview.ts
6556
- import { z as z229 } from "zod";
6557
- var DTODocumentationLinkPreviewResponse = z229.object({
6564
+ import { z as z230 } from "zod";
6565
+ var DTODocumentationLinkPreviewResponse = z230.object({
6558
6566
  linkPreview: DocumentationLinkPreview
6559
6567
  });
6560
- var DTODocumentationLinkPreviewRequest = z229.object({
6561
- url: z229.string().optional(),
6562
- documentationItemPersistentId: z229.string().optional()
6568
+ var DTODocumentationLinkPreviewRequest = z230.object({
6569
+ url: z230.string().optional(),
6570
+ documentationItemPersistentId: z230.string().optional()
6563
6571
  });
6564
6572
 
6565
6573
  // src/api/dto/documentation/publish.ts
6566
- import { z as z233 } from "zod";
6574
+ import { z as z234 } from "zod";
6567
6575
 
6568
6576
  // src/api/dto/export/exporter.ts
6569
- import { z as z230 } from "zod";
6570
- var DTOExporterType = z230.enum(["documentation", "code"]);
6571
- var DTOExporterSource = z230.enum(["git", "upload"]);
6572
- var DTOExporterMembershipRole = z230.enum(["Owner", "OwnerArchived", "User"]);
6573
- var DTOExporterListQuery = z230.object({
6574
- limit: z230.coerce.number().optional()
6575
- });
6576
- var DTOExporter = z230.object({
6577
- id: z230.string(),
6578
- name: z230.string(),
6579
- isPrivate: z230.boolean(),
6577
+ import { z as z231 } from "zod";
6578
+ var DTOExporterType = z231.enum(["documentation", "code"]);
6579
+ var DTOExporterSource = z231.enum(["git", "upload"]);
6580
+ var DTOExporterMembershipRole = z231.enum(["Owner", "OwnerArchived", "User"]);
6581
+ var DTOExporterListQuery = z231.object({
6582
+ limit: z231.coerce.number().optional(),
6583
+ offset: z231.coerce.number().optional(),
6584
+ type: DTOExporterType.optional(),
6585
+ search: z231.string().optional()
6586
+ });
6587
+ var DTOExporter = z231.object({
6588
+ id: z231.string(),
6589
+ name: z231.string(),
6590
+ isPrivate: z231.boolean(),
6580
6591
  exporterType: DTOExporterType,
6581
- isDefaultDocumentationExporter: z230.boolean(),
6582
- iconURL: z230.string().optional(),
6592
+ isDefaultDocumentationExporter: z231.boolean(),
6593
+ iconURL: z231.string().optional(),
6583
6594
  configurationProperties: PulsarContributionConfigurationProperty.array(),
6584
6595
  properties: DTOExporterPropertyDefinition.array().optional(),
6585
6596
  customBlocks: PulsarCustomBlock.array(),
6586
- blockVariants: z230.record(z230.string(), PulsarContributionVariant.array()),
6587
- usesBrands: z230.boolean(),
6588
- usesThemes: z230.boolean(),
6597
+ blockVariants: z231.record(z231.string(), PulsarContributionVariant.array()),
6598
+ usesBrands: z231.boolean(),
6599
+ usesThemes: z231.boolean(),
6589
6600
  source: DTOExporterSource,
6590
- gitUrl: nullishToOptional(z230.string()),
6591
- gitBranch: nullishToOptional(z230.string()),
6592
- gitDirectory: nullishToOptional(z230.string()),
6593
- isDeprecated: z230.boolean(),
6594
- deprecationNote: z230.string().optional(),
6595
- replacementExporterId: z230.string().optional()
6596
- });
6597
- var DTOExporterMembership = z230.object({
6598
- workspaceId: z230.string(),
6599
- exporterId: z230.string(),
6601
+ gitUrl: nullishToOptional(z231.string()),
6602
+ gitBranch: nullishToOptional(z231.string()),
6603
+ gitDirectory: nullishToOptional(z231.string()),
6604
+ isDeprecated: z231.boolean(),
6605
+ deprecationNote: z231.string().optional(),
6606
+ replacementExporterId: z231.string().optional()
6607
+ });
6608
+ var DTOExporterMembership = z231.object({
6609
+ workspaceId: z231.string(),
6610
+ exporterId: z231.string(),
6600
6611
  role: DTOExporterMembershipRole
6601
6612
  });
6602
- var DTOExporterResponse = z230.object({
6613
+ var DTOExporterResponse = z231.object({
6603
6614
  exporter: DTOExporter,
6604
6615
  membership: DTOExporterMembership
6605
6616
  });
6606
- var DTOExporterListResponse = z230.object({
6617
+ var DTOExporterListResponse = z231.object({
6607
6618
  exporters: DTOExporter.array(),
6608
- membership: DTOExporterMembership.array()
6619
+ membership: DTOExporterMembership.array(),
6620
+ total: z231.number()
6609
6621
  });
6610
- var DTOExporterGitProviderEnum = z230.enum(["github", "gitlab", "bitbucket", "azure"]);
6611
- var DTOExporterCreateInput = z230.object({
6612
- url: z230.string(),
6622
+ var DTOExporterGitProviderEnum = z231.enum(["github", "gitlab", "bitbucket", "azure"]);
6623
+ var DTOExporterCreateInput = z231.object({
6624
+ url: z231.string(),
6613
6625
  provider: DTOExporterGitProviderEnum
6614
6626
  });
6615
- var DTOExporterUpdateInput = z230.object({
6616
- url: z230.string().optional()
6627
+ var DTOExporterUpdateInput = z231.object({
6628
+ url: z231.string().optional()
6617
6629
  });
6618
- var DTOExporterDeprecationInput = z230.object({
6619
- isDeprecated: z230.boolean(),
6620
- deprecationNote: z230.string().optional(),
6621
- replacementExporterId: z230.string().optional()
6630
+ var DTOExporterDeprecationInput = z231.object({
6631
+ isDeprecated: z231.boolean(),
6632
+ deprecationNote: z231.string().optional(),
6633
+ replacementExporterId: z231.string().optional()
6622
6634
  });
6623
6635
 
6624
6636
  // src/api/dto/export/filter.ts
6625
6637
  var DTOExportJobsListFilter = ExportJobFindByFilter;
6626
6638
 
6627
6639
  // src/api/dto/export/job.ts
6628
- import { z as z231 } from "zod";
6629
- var DTOExportJobCreatedBy = z231.object({
6630
- userId: z231.string(),
6631
- userName: z231.string()
6640
+ import { z as z232 } from "zod";
6641
+ var DTOExportJobCreatedBy = z232.object({
6642
+ userId: z232.string(),
6643
+ userName: z232.string()
6632
6644
  });
6633
- var DTOExportJobDesignSystemPreview = z231.object({
6634
- id: z231.string(),
6645
+ var DTOExportJobDesignSystemPreview = z232.object({
6646
+ id: z232.string(),
6635
6647
  meta: ObjectMeta
6636
6648
  });
6637
- var DTOExportJobDesignSystemVersionPreview = z231.object({
6638
- id: z231.string(),
6649
+ var DTOExportJobDesignSystemVersionPreview = z232.object({
6650
+ id: z232.string(),
6639
6651
  meta: ObjectMeta,
6640
- version: z231.string(),
6641
- isReadonly: z231.boolean()
6652
+ version: z232.string(),
6653
+ isReadonly: z232.boolean()
6642
6654
  });
6643
- var DTOExportJobDestinations = z231.object({
6655
+ var DTOExportJobDestinations = z232.object({
6644
6656
  s3: ExporterDestinationS3.optional(),
6645
6657
  azure: ExporterDestinationAzure.optional(),
6646
6658
  bitbucket: ExporterDestinationBitbucket.optional(),
6647
6659
  github: ExporterDestinationGithub.optional(),
6648
6660
  gitlab: ExporterDestinationGitlab.optional(),
6649
6661
  documentation: ExporterDestinationDocs.optional(),
6650
- webhookUrl: z231.string().optional()
6662
+ webhookUrl: z232.string().optional()
6651
6663
  });
6652
6664
  var DTOExportJobResult = ExportJobResult.omit({
6653
6665
  sndocs: true
6654
6666
  }).extend({
6655
6667
  documentation: ExportJobDocsDestinationResult.optional()
6656
6668
  });
6657
- var DTOExportJob = z231.object({
6658
- id: z231.string(),
6659
- createdAt: z231.coerce.date(),
6660
- finishedAt: z231.coerce.date().optional(),
6661
- index: z231.number().optional(),
6669
+ var DTOExportJob = z232.object({
6670
+ id: z232.string(),
6671
+ createdAt: z232.coerce.date(),
6672
+ finishedAt: z232.coerce.date().optional(),
6673
+ index: z232.number().optional(),
6662
6674
  status: ExportJobStatus,
6663
- estimatedExecutionTime: z231.number().optional(),
6675
+ estimatedExecutionTime: z232.number().optional(),
6664
6676
  createdBy: DTOExportJobCreatedBy.optional(),
6665
6677
  designSystem: DTOExportJobDesignSystemPreview,
6666
6678
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
6667
6679
  destinations: DTOExportJobDestinations,
6668
- exporterId: z231.string(),
6669
- scheduleId: z231.string().optional(),
6680
+ exporterId: z232.string(),
6681
+ scheduleId: z232.string().optional(),
6670
6682
  result: DTOExportJobResult.optional(),
6671
- brandPersistentId: z231.string().optional(),
6672
- themePersistentId: z231.string().optional(),
6673
- themePersistentIds: z231.string().array().optional(),
6683
+ brandPersistentId: z232.string().optional(),
6684
+ themePersistentId: z232.string().optional(),
6685
+ themePersistentIds: z232.string().array().optional(),
6674
6686
  exporterPropertyValues: DTOExporterPropertyValueMap.optional()
6675
6687
  });
6676
- var DTOExportJobResponse = z231.object({
6688
+ var DTOExportJobResponse = z232.object({
6677
6689
  job: DTOExportJob
6678
6690
  });
6679
- var DTOExportJobResponseLegacy = z231.object({
6680
- job: z231.object({
6681
- id: z231.string(),
6691
+ var DTOExportJobResponseLegacy = z232.object({
6692
+ job: z232.object({
6693
+ id: z232.string(),
6682
6694
  status: ExportJobStatus
6683
6695
  })
6684
6696
  });
6685
- var DTOExportJobCreateInput = z231.object({
6686
- designSystemId: z231.string(),
6687
- designSystemVersionId: z231.string(),
6688
- exporterId: z231.string(),
6689
- brandId: z231.string().optional(),
6690
- themeId: z231.string().optional(),
6691
- themePersistentIds: z231.string().array().optional(),
6697
+ var DTOExportJobCreateInput = z232.object({
6698
+ designSystemId: z232.string(),
6699
+ designSystemVersionId: z232.string(),
6700
+ exporterId: z232.string(),
6701
+ brandId: z232.string().optional(),
6702
+ themeId: z232.string().optional(),
6703
+ themePersistentIds: z232.string().array().optional(),
6692
6704
  destinations: DTOExportJobDestinations,
6693
6705
  exporterPropertyValues: DTOExporterPropertyValueMap.optional()
6694
6706
  });
6695
6707
 
6696
6708
  // src/api/dto/export/pipeline.ts
6697
- import { z as z232 } from "zod";
6698
- var DTOPipelineListQuery = z232.object({
6699
- designSystemId: z232.string().optional(),
6700
- exporterId: z232.string().optional(),
6701
- latestJobsLimit: z232.coerce.number().optional()
6702
- });
6703
- var DTOPipeline = z232.object({
6704
- id: z232.string(),
6705
- name: z232.string(),
6709
+ import { z as z233 } from "zod";
6710
+ var DTOPipelineListQuery = z233.object({
6711
+ designSystemId: z233.string().optional(),
6712
+ exporterId: z233.string().optional(),
6713
+ latestJobsLimit: z233.coerce.number().optional()
6714
+ });
6715
+ var DTOPipeline = z233.object({
6716
+ id: z233.string(),
6717
+ name: z233.string(),
6706
6718
  eventType: PipelineEventType,
6707
- isEnabled: z232.boolean(),
6708
- workspaceId: z232.string(),
6709
- designSystemId: z232.string(),
6710
- exporterId: z232.string(),
6711
- brandPersistentId: z232.string().optional(),
6712
- themePersistentId: z232.string().optional(),
6713
- themePersistentIds: z232.string().array().optional(),
6719
+ isEnabled: z233.boolean(),
6720
+ workspaceId: z233.string(),
6721
+ designSystemId: z233.string(),
6722
+ exporterId: z233.string(),
6723
+ brandPersistentId: z233.string().optional(),
6724
+ themePersistentId: z233.string().optional(),
6725
+ themePersistentIds: z233.string().array().optional(),
6714
6726
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6715
6727
  ...ExportDestinationsMap.shape,
6716
6728
  latestJobs: DTOExportJob.array(),
6717
- isExporterDeprecated: z232.boolean()
6729
+ isExporterDeprecated: z233.boolean()
6718
6730
  });
6719
- var DTOPipelineListResponse = z232.object({
6731
+ var DTOPipelineListResponse = z233.object({
6720
6732
  pipelines: DTOPipeline.array()
6721
6733
  });
6722
- var DTOPipelineResponse = z232.object({
6734
+ var DTOPipelineResponse = z233.object({
6723
6735
  pipeline: DTOPipeline
6724
6736
  });
6725
6737
 
6726
6738
  // src/api/dto/documentation/publish.ts
6727
6739
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6728
- var DTOPublishDocumentationRequest = z233.object({
6740
+ var DTOPublishDocumentationRequest = z234.object({
6729
6741
  environment: PublishedDocEnvironment,
6730
6742
  /**
6731
6743
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6733,66 +6745,66 @@ var DTOPublishDocumentationRequest = z233.object({
6733
6745
  */
6734
6746
  changes: DTOPublishDocumentationChanges.optional()
6735
6747
  });
6736
- var DTOPublishDocumentationResponse = z233.object({
6748
+ var DTOPublishDocumentationResponse = z234.object({
6737
6749
  job: DTOExportJob
6738
6750
  });
6739
6751
 
6740
6752
  // src/api/dto/documentation/room.ts
6741
- import { z as z234 } from "zod";
6742
- var DTODocumentationPageRoom = z234.object({
6743
- id: z234.string()
6753
+ import { z as z235 } from "zod";
6754
+ var DTODocumentationPageRoom = z235.object({
6755
+ id: z235.string()
6744
6756
  });
6745
- var DTODocumentationPageRoomResponse = z234.object({
6757
+ var DTODocumentationPageRoomResponse = z235.object({
6746
6758
  room: DTODocumentationPageRoom
6747
6759
  });
6748
6760
 
6749
6761
  // src/api/dto/elements/components/figma-component-group.ts
6750
- import z235 from "zod";
6751
- var DTOFigmaComponentGroup = z235.object({
6752
- id: z235.string(),
6753
- designSystemVersionId: z235.string(),
6754
- persistentId: z235.string(),
6755
- isRoot: z235.boolean(),
6756
- brandId: z235.string(),
6762
+ import z236 from "zod";
6763
+ var DTOFigmaComponentGroup = z236.object({
6764
+ id: z236.string(),
6765
+ designSystemVersionId: z236.string(),
6766
+ persistentId: z236.string(),
6767
+ isRoot: z236.boolean(),
6768
+ brandId: z236.string(),
6757
6769
  meta: DTOObjectMeta,
6758
- childrenIds: z235.string().array()
6770
+ childrenIds: z236.string().array()
6759
6771
  });
6760
- var DTOFigmaComponentGroupListResponse = z235.object({
6772
+ var DTOFigmaComponentGroupListResponse = z236.object({
6761
6773
  groups: DTOFigmaComponentGroup.array()
6762
6774
  });
6763
6775
 
6764
6776
  // src/api/dto/elements/components/figma-component.ts
6765
- import { z as z236 } from "zod";
6777
+ import { z as z237 } from "zod";
6766
6778
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6767
- var DTOFigmaComponentPropertyMap = z236.record(DTOFigmaComponentProperty);
6768
- var DTOFigmaComponent = z236.object({
6769
- id: z236.string(),
6770
- persistentId: z236.string(),
6771
- designSystemVersionId: z236.string(),
6772
- brandId: z236.string(),
6773
- thumbnailUrl: z236.string().optional(),
6774
- svgUrl: z236.string().optional(),
6775
- exportProperties: z236.object({
6776
- isAsset: z236.boolean()
6779
+ var DTOFigmaComponentPropertyMap = z237.record(DTOFigmaComponentProperty);
6780
+ var DTOFigmaComponent = z237.object({
6781
+ id: z237.string(),
6782
+ persistentId: z237.string(),
6783
+ designSystemVersionId: z237.string(),
6784
+ brandId: z237.string(),
6785
+ thumbnailUrl: z237.string().optional(),
6786
+ svgUrl: z237.string().optional(),
6787
+ exportProperties: z237.object({
6788
+ isAsset: z237.boolean()
6777
6789
  }),
6778
- createdAt: z236.coerce.date(),
6779
- updatedAt: z236.coerce.date(),
6790
+ createdAt: z237.coerce.date(),
6791
+ updatedAt: z237.coerce.date(),
6780
6792
  meta: ObjectMeta,
6781
6793
  originComponent: FigmaComponentOrigin.optional(),
6782
- parentComponentPersistentId: z236.string().optional(),
6783
- childrenPersistentIds: z236.string().array().optional(),
6794
+ parentComponentPersistentId: z237.string().optional(),
6795
+ childrenPersistentIds: z237.string().array().optional(),
6784
6796
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6785
- variantPropertyValues: z236.record(z236.string()).optional()
6797
+ variantPropertyValues: z237.record(z237.string()).optional()
6786
6798
  });
6787
- var DTOFigmaComponentListResponse = z236.object({
6799
+ var DTOFigmaComponentListResponse = z237.object({
6788
6800
  components: DTOFigmaComponent.array()
6789
6801
  });
6790
6802
 
6791
6803
  // src/api/dto/elements/documentation/group-action.ts
6792
- import { z as z238 } from "zod";
6804
+ import { z as z239 } from "zod";
6793
6805
 
6794
6806
  // src/api/dto/elements/documentation/group-v2.ts
6795
- import { z as z237 } from "zod";
6807
+ import { z as z238 } from "zod";
6796
6808
  var DTODocumentationGroupV2 = ElementGroup.omit({
6797
6809
  sortOrder: true,
6798
6810
  parentPersistentId: true,
@@ -6802,13 +6814,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6802
6814
  data: true,
6803
6815
  shortPersistentId: true
6804
6816
  }).extend({
6805
- title: z237.string(),
6806
- isRoot: z237.boolean(),
6807
- childrenIds: z237.array(z237.string()),
6817
+ title: z238.string(),
6818
+ isRoot: z238.boolean(),
6819
+ childrenIds: z238.array(z238.string()),
6808
6820
  groupBehavior: DocumentationGroupBehavior,
6809
- shortPersistentId: z237.string(),
6821
+ shortPersistentId: z238.string(),
6810
6822
  configuration: DTODocumentationItemConfigurationV2,
6811
- type: z237.literal("Group"),
6823
+ type: z238.literal("Group"),
6812
6824
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6813
6825
  draftState: DTODocumentationDraftState.optional(),
6814
6826
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6816,127 +6828,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6816
6828
  //** An approval state for frontend to utilize. */
6817
6829
  approvalState: DTODocumentationGroupApprovalState.optional()
6818
6830
  });
6819
- var DTOCreateDocumentationGroupInput = z237.object({
6831
+ var DTOCreateDocumentationGroupInput = z238.object({
6820
6832
  // Identifier
6821
- persistentId: z237.string(),
6833
+ persistentId: z238.string(),
6822
6834
  // Group properties
6823
- title: z237.string(),
6835
+ title: z238.string(),
6824
6836
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6825
6837
  // Group placement properties
6826
- afterPersistentId: z237.string().nullish(),
6827
- parentPersistentId: z237.string()
6838
+ afterPersistentId: z238.string().nullish(),
6839
+ parentPersistentId: z238.string()
6828
6840
  });
6829
- var DTOUpdateDocumentationGroupInput = z237.object({
6841
+ var DTOUpdateDocumentationGroupInput = z238.object({
6830
6842
  // Identifier of the group to update
6831
- id: z237.string(),
6843
+ id: z238.string(),
6832
6844
  // Group properties
6833
- title: z237.string().optional(),
6845
+ title: z238.string().optional(),
6834
6846
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6835
6847
  });
6836
- var DTOMoveDocumentationGroupInput = z237.object({
6848
+ var DTOMoveDocumentationGroupInput = z238.object({
6837
6849
  // Identifier of the group to update
6838
- id: z237.string(),
6850
+ id: z238.string(),
6839
6851
  // Group placement properties
6840
- parentPersistentId: z237.string(),
6841
- afterPersistentId: z237.string().nullish()
6852
+ parentPersistentId: z238.string(),
6853
+ afterPersistentId: z238.string().nullish()
6842
6854
  });
6843
- var DTODuplicateDocumentationGroupInput = z237.object({
6855
+ var DTODuplicateDocumentationGroupInput = z238.object({
6844
6856
  // Identifier of the group to duplicate from
6845
- id: z237.string(),
6857
+ id: z238.string(),
6846
6858
  // New group persistent id
6847
- persistentId: z237.string(),
6859
+ persistentId: z238.string(),
6848
6860
  // Group placement properties
6849
- afterPersistentId: z237.string().nullish(),
6850
- parentPersistentId: z237.string()
6861
+ afterPersistentId: z238.string().nullish(),
6862
+ parentPersistentId: z238.string()
6851
6863
  });
6852
- var DTOCreateDocumentationTabInput = z237.object({
6864
+ var DTOCreateDocumentationTabInput = z238.object({
6853
6865
  // New group persistent id
6854
- persistentId: z237.string(),
6866
+ persistentId: z238.string(),
6855
6867
  // If this is page, we will attempt to convert it to tab
6856
6868
  // If this is tab group, we will add a new tab to it
6857
- fromItemPersistentId: z237.string(),
6858
- tabName: z237.string()
6869
+ fromItemPersistentId: z238.string(),
6870
+ tabName: z238.string()
6859
6871
  });
6860
- var DTODeleteDocumentationTabGroupInput = z237.object({
6872
+ var DTODeleteDocumentationTabGroupInput = z238.object({
6861
6873
  // Deleted group id
6862
- id: z237.string()
6874
+ id: z238.string()
6863
6875
  });
6864
- var DTODeleteDocumentationGroupInput = z237.object({
6876
+ var DTODeleteDocumentationGroupInput = z238.object({
6865
6877
  // Identifier
6866
- id: z237.string(),
6878
+ id: z238.string(),
6867
6879
  // Deletion options
6868
- deleteSubtree: z237.boolean().default(false)
6880
+ deleteSubtree: z238.boolean().default(false)
6869
6881
  });
6870
6882
 
6871
6883
  // src/api/dto/elements/documentation/group-action.ts
6872
- var SuccessPayload = z238.object({
6873
- success: z238.literal(true)
6884
+ var SuccessPayload = z239.object({
6885
+ success: z239.literal(true)
6874
6886
  });
6875
- var DTODocumentationGroupCreateActionOutputV2 = z238.object({
6876
- type: z238.literal("DocumentationGroupCreate"),
6887
+ var DTODocumentationGroupCreateActionOutputV2 = z239.object({
6888
+ type: z239.literal("DocumentationGroupCreate"),
6877
6889
  output: SuccessPayload
6878
6890
  });
6879
- var DTODocumentationTabCreateActionOutputV2 = z238.object({
6880
- type: z238.literal("DocumentationTabCreate"),
6891
+ var DTODocumentationTabCreateActionOutputV2 = z239.object({
6892
+ type: z239.literal("DocumentationTabCreate"),
6881
6893
  output: SuccessPayload
6882
6894
  });
6883
- var DTODocumentationGroupUpdateActionOutputV2 = z238.object({
6884
- type: z238.literal("DocumentationGroupUpdate"),
6895
+ var DTODocumentationGroupUpdateActionOutputV2 = z239.object({
6896
+ type: z239.literal("DocumentationGroupUpdate"),
6885
6897
  output: SuccessPayload
6886
6898
  });
6887
- var DTODocumentationGroupMoveActionOutputV2 = z238.object({
6888
- type: z238.literal("DocumentationGroupMove"),
6899
+ var DTODocumentationGroupMoveActionOutputV2 = z239.object({
6900
+ type: z239.literal("DocumentationGroupMove"),
6889
6901
  output: SuccessPayload
6890
6902
  });
6891
- var DTODocumentationGroupDuplicateActionOutputV2 = z238.object({
6892
- type: z238.literal("DocumentationGroupDuplicate"),
6903
+ var DTODocumentationGroupDuplicateActionOutputV2 = z239.object({
6904
+ type: z239.literal("DocumentationGroupDuplicate"),
6893
6905
  output: SuccessPayload
6894
6906
  });
6895
- var DTODocumentationGroupDeleteActionOutputV2 = z238.object({
6896
- type: z238.literal("DocumentationGroupDelete"),
6907
+ var DTODocumentationGroupDeleteActionOutputV2 = z239.object({
6908
+ type: z239.literal("DocumentationGroupDelete"),
6897
6909
  output: SuccessPayload
6898
6910
  });
6899
- var DTODocumentationTabGroupDeleteActionOutputV2 = z238.object({
6900
- type: z238.literal("DocumentationTabGroupDelete"),
6911
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z239.object({
6912
+ type: z239.literal("DocumentationTabGroupDelete"),
6901
6913
  output: SuccessPayload
6902
6914
  });
6903
- var DTODocumentationGroupCreateActionInputV2 = z238.object({
6904
- type: z238.literal("DocumentationGroupCreate"),
6915
+ var DTODocumentationGroupCreateActionInputV2 = z239.object({
6916
+ type: z239.literal("DocumentationGroupCreate"),
6905
6917
  input: DTOCreateDocumentationGroupInput
6906
6918
  });
6907
- var DTODocumentationTabCreateActionInputV2 = z238.object({
6908
- type: z238.literal("DocumentationTabCreate"),
6919
+ var DTODocumentationTabCreateActionInputV2 = z239.object({
6920
+ type: z239.literal("DocumentationTabCreate"),
6909
6921
  input: DTOCreateDocumentationTabInput
6910
6922
  });
6911
- var DTODocumentationGroupUpdateActionInputV2 = z238.object({
6912
- type: z238.literal("DocumentationGroupUpdate"),
6923
+ var DTODocumentationGroupUpdateActionInputV2 = z239.object({
6924
+ type: z239.literal("DocumentationGroupUpdate"),
6913
6925
  input: DTOUpdateDocumentationGroupInput
6914
6926
  });
6915
- var DTODocumentationGroupMoveActionInputV2 = z238.object({
6916
- type: z238.literal("DocumentationGroupMove"),
6927
+ var DTODocumentationGroupMoveActionInputV2 = z239.object({
6928
+ type: z239.literal("DocumentationGroupMove"),
6917
6929
  input: DTOMoveDocumentationGroupInput
6918
6930
  });
6919
- var DTODocumentationGroupDuplicateActionInputV2 = z238.object({
6920
- type: z238.literal("DocumentationGroupDuplicate"),
6931
+ var DTODocumentationGroupDuplicateActionInputV2 = z239.object({
6932
+ type: z239.literal("DocumentationGroupDuplicate"),
6921
6933
  input: DTODuplicateDocumentationGroupInput
6922
6934
  });
6923
- var DTODocumentationGroupDeleteActionInputV2 = z238.object({
6924
- type: z238.literal("DocumentationGroupDelete"),
6935
+ var DTODocumentationGroupDeleteActionInputV2 = z239.object({
6936
+ type: z239.literal("DocumentationGroupDelete"),
6925
6937
  input: DTODeleteDocumentationGroupInput
6926
6938
  });
6927
- var DTODocumentationTabGroupDeleteActionInputV2 = z238.object({
6928
- type: z238.literal("DocumentationTabGroupDelete"),
6939
+ var DTODocumentationTabGroupDeleteActionInputV2 = z239.object({
6940
+ type: z239.literal("DocumentationTabGroupDelete"),
6929
6941
  input: DTODeleteDocumentationTabGroupInput
6930
6942
  });
6931
6943
 
6932
6944
  // src/api/dto/elements/documentation/group-v1.ts
6933
- import { z as z240 } from "zod";
6945
+ import { z as z241 } from "zod";
6934
6946
 
6935
6947
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6936
- import { z as z239 } from "zod";
6937
- var DocumentationColorV1 = z239.object({
6938
- aliasTo: z239.string().optional(),
6939
- value: z239.string().optional()
6948
+ import { z as z240 } from "zod";
6949
+ var DocumentationColorV1 = z240.object({
6950
+ aliasTo: z240.string().optional(),
6951
+ value: z240.string().optional()
6940
6952
  });
6941
6953
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6942
6954
  foregroundColor: true,
@@ -6945,10 +6957,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6945
6957
  foregroundColor: DocumentationColorV1.optional(),
6946
6958
  backgroundColor: DocumentationColorV1.optional()
6947
6959
  });
6948
- var DTODocumentationItemConfigurationV1 = z239.object({
6949
- showSidebar: z239.boolean(),
6950
- isPrivate: z239.boolean(),
6951
- isHidden: z239.boolean(),
6960
+ var DTODocumentationItemConfigurationV1 = z240.object({
6961
+ showSidebar: z240.boolean(),
6962
+ isPrivate: z240.boolean(),
6963
+ isHidden: z240.boolean(),
6952
6964
  header: DTODocumentationItemHeaderV1
6953
6965
  });
6954
6966
 
@@ -6962,123 +6974,123 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6962
6974
  data: true,
6963
6975
  shortPersistentId: true
6964
6976
  }).extend({
6965
- title: z240.string(),
6966
- isRoot: z240.boolean(),
6967
- childrenIds: z240.array(z240.string()),
6977
+ title: z241.string(),
6978
+ isRoot: z241.boolean(),
6979
+ childrenIds: z241.array(z241.string()),
6968
6980
  groupBehavior: DocumentationGroupBehavior,
6969
- shortPersistentId: z240.string(),
6970
- type: z240.literal("Group")
6981
+ shortPersistentId: z241.string(),
6982
+ type: z241.literal("Group")
6971
6983
  });
6972
6984
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6973
6985
  configuration: DTODocumentationItemConfigurationV1
6974
6986
  });
6975
6987
 
6976
6988
  // src/api/dto/elements/documentation/hierarchy.ts
6977
- import { z as z241 } from "zod";
6978
- var DTODocumentationHierarchyV2 = z241.object({
6979
- pages: z241.array(
6989
+ import { z as z242 } from "zod";
6990
+ var DTODocumentationHierarchyV2 = z242.object({
6991
+ pages: z242.array(
6980
6992
  DTODocumentationPageV2.extend({
6981
6993
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6982
6994
  draftState: DTODocumentationDraftState.optional()
6983
6995
  })
6984
6996
  ),
6985
- groups: z241.array(
6997
+ groups: z242.array(
6986
6998
  DTODocumentationGroupV2.extend({
6987
6999
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6988
7000
  draftState: DTODocumentationDraftState.optional()
6989
7001
  })
6990
7002
  ),
6991
7003
  /** True if the documentation was already published, false otherwise. */
6992
- hasPublishedDocumentationContent: z241.boolean()
7004
+ hasPublishedDocumentationContent: z242.boolean()
6993
7005
  });
6994
7006
 
6995
7007
  // src/api/dto/elements/documentation/page-actions-v2.ts
6996
- import { z as z242 } from "zod";
6997
- var SuccessPayload2 = z242.object({
6998
- success: z242.literal(true)
7008
+ import { z as z243 } from "zod";
7009
+ var SuccessPayload2 = z243.object({
7010
+ success: z243.literal(true)
6999
7011
  });
7000
- var DTODocumentationPageCreateActionOutputV2 = z242.object({
7001
- type: z242.literal("DocumentationPageCreate"),
7012
+ var DTODocumentationPageCreateActionOutputV2 = z243.object({
7013
+ type: z243.literal("DocumentationPageCreate"),
7002
7014
  output: SuccessPayload2
7003
7015
  });
7004
- var DTODocumentationPageUpdateActionOutputV2 = z242.object({
7005
- type: z242.literal("DocumentationPageUpdate"),
7016
+ var DTODocumentationPageUpdateActionOutputV2 = z243.object({
7017
+ type: z243.literal("DocumentationPageUpdate"),
7006
7018
  output: SuccessPayload2
7007
7019
  });
7008
- var DTODocumentationPageUpdateDocumentActionOutputV2 = z242.object({
7009
- type: z242.literal("DocumentationPageUpdateDocument"),
7020
+ var DTODocumentationPageUpdateDocumentActionOutputV2 = z243.object({
7021
+ type: z243.literal("DocumentationPageUpdateDocument"),
7010
7022
  output: SuccessPayload2
7011
7023
  });
7012
- var DTODocumentationPageMoveActionOutputV2 = z242.object({
7013
- type: z242.literal("DocumentationPageMove"),
7024
+ var DTODocumentationPageMoveActionOutputV2 = z243.object({
7025
+ type: z243.literal("DocumentationPageMove"),
7014
7026
  output: SuccessPayload2
7015
7027
  });
7016
- var DTODocumentationPageDuplicateActionOutputV2 = z242.object({
7017
- type: z242.literal("DocumentationPageDuplicate"),
7028
+ var DTODocumentationPageDuplicateActionOutputV2 = z243.object({
7029
+ type: z243.literal("DocumentationPageDuplicate"),
7018
7030
  output: SuccessPayload2
7019
7031
  });
7020
- var DTODocumentationPageDeleteActionOutputV2 = z242.object({
7021
- type: z242.literal("DocumentationPageDelete"),
7032
+ var DTODocumentationPageDeleteActionOutputV2 = z243.object({
7033
+ type: z243.literal("DocumentationPageDelete"),
7022
7034
  output: SuccessPayload2
7023
7035
  });
7024
- var DTODocumentationPageRestoreActionOutput = z242.object({
7025
- type: z242.literal("DocumentationPageRestore"),
7036
+ var DTODocumentationPageRestoreActionOutput = z243.object({
7037
+ type: z243.literal("DocumentationPageRestore"),
7026
7038
  output: SuccessPayload2
7027
7039
  });
7028
- var DTODocumentationGroupRestoreActionOutput = z242.object({
7029
- type: z242.literal("DocumentationGroupRestore"),
7040
+ var DTODocumentationGroupRestoreActionOutput = z243.object({
7041
+ type: z243.literal("DocumentationGroupRestore"),
7030
7042
  output: SuccessPayload2
7031
7043
  });
7032
- var DTODocumentationPageApprovalStateChangeActionOutput = z242.object({
7033
- type: z242.literal("DocumentationPageApprovalStateChange"),
7044
+ var DTODocumentationPageApprovalStateChangeActionOutput = z243.object({
7045
+ type: z243.literal("DocumentationPageApprovalStateChange"),
7034
7046
  output: SuccessPayload2
7035
7047
  });
7036
- var DTODocumentationPageCreateActionInputV2 = z242.object({
7037
- type: z242.literal("DocumentationPageCreate"),
7048
+ var DTODocumentationPageCreateActionInputV2 = z243.object({
7049
+ type: z243.literal("DocumentationPageCreate"),
7038
7050
  input: DTOCreateDocumentationPageInputV2
7039
7051
  });
7040
- var DTODocumentationPageUpdateActionInputV2 = z242.object({
7041
- type: z242.literal("DocumentationPageUpdate"),
7052
+ var DTODocumentationPageUpdateActionInputV2 = z243.object({
7053
+ type: z243.literal("DocumentationPageUpdate"),
7042
7054
  input: DTOUpdateDocumentationPageInputV2
7043
7055
  });
7044
- var DTODocumentationPageUpdateDocumentActionInputV2 = z242.object({
7045
- type: z242.literal("DocumentationPageUpdateDocument"),
7056
+ var DTODocumentationPageUpdateDocumentActionInputV2 = z243.object({
7057
+ type: z243.literal("DocumentationPageUpdateDocument"),
7046
7058
  input: DTOUpdateDocumentationPageDocumentInputV2
7047
7059
  });
7048
- var DTODocumentationPageMoveActionInputV2 = z242.object({
7049
- type: z242.literal("DocumentationPageMove"),
7060
+ var DTODocumentationPageMoveActionInputV2 = z243.object({
7061
+ type: z243.literal("DocumentationPageMove"),
7050
7062
  input: DTOMoveDocumentationPageInputV2
7051
7063
  });
7052
- var DTODocumentationPageDuplicateActionInputV2 = z242.object({
7053
- type: z242.literal("DocumentationPageDuplicate"),
7064
+ var DTODocumentationPageDuplicateActionInputV2 = z243.object({
7065
+ type: z243.literal("DocumentationPageDuplicate"),
7054
7066
  input: DTODuplicateDocumentationPageInputV2
7055
7067
  });
7056
- var DTODocumentationPageDeleteActionInputV2 = z242.object({
7057
- type: z242.literal("DocumentationPageDelete"),
7068
+ var DTODocumentationPageDeleteActionInputV2 = z243.object({
7069
+ type: z243.literal("DocumentationPageDelete"),
7058
7070
  input: DTODeleteDocumentationPageInputV2
7059
7071
  });
7060
- var DTODocumentationPageRestoreActionInput = z242.object({
7061
- type: z242.literal("DocumentationPageRestore"),
7072
+ var DTODocumentationPageRestoreActionInput = z243.object({
7073
+ type: z243.literal("DocumentationPageRestore"),
7062
7074
  input: DTORestoreDocumentationPageInput
7063
7075
  });
7064
- var DTODocumentationGroupRestoreActionInput = z242.object({
7065
- type: z242.literal("DocumentationGroupRestore"),
7076
+ var DTODocumentationGroupRestoreActionInput = z243.object({
7077
+ type: z243.literal("DocumentationGroupRestore"),
7066
7078
  input: DTORestoreDocumentationGroupInput
7067
7079
  });
7068
- var DTODocumentationPageApprovalStateChangeActionInput = z242.object({
7069
- type: z242.literal("DocumentationPageApprovalStateChange"),
7080
+ var DTODocumentationPageApprovalStateChangeActionInput = z243.object({
7081
+ type: z243.literal("DocumentationPageApprovalStateChange"),
7070
7082
  input: DTODocumentationPageApprovalStateChangeInput
7071
7083
  });
7072
7084
 
7073
7085
  // src/api/dto/elements/documentation/page-content.ts
7074
- import { z as z243 } from "zod";
7086
+ import { z as z244 } from "zod";
7075
7087
  var DTODocumentationPageContent = DocumentationPageContent;
7076
- var DTODocumentationPageContentGetResponse = z243.object({
7088
+ var DTODocumentationPageContentGetResponse = z244.object({
7077
7089
  pageContent: DTODocumentationPageContent
7078
7090
  });
7079
7091
 
7080
7092
  // src/api/dto/elements/documentation/page-v1.ts
7081
- import { z as z244 } from "zod";
7093
+ import { z as z245 } from "zod";
7082
7094
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
7083
7095
  data: true,
7084
7096
  meta: true,
@@ -7086,62 +7098,62 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
7086
7098
  sortOrder: true
7087
7099
  }).extend({
7088
7100
  configuration: DTODocumentationItemConfigurationV1,
7089
- blocks: z244.array(PageBlockV1),
7090
- title: z244.string(),
7091
- path: z244.string()
7101
+ blocks: z245.array(PageBlockV1),
7102
+ title: z245.string(),
7103
+ path: z245.string()
7092
7104
  });
7093
7105
 
7094
7106
  // src/api/dto/elements/documentation/settings.ts
7095
- import { z as z245 } from "zod";
7096
- var DTODocumentationSettings = z245.object({
7097
- isDraftFeatureAdopted: z245.boolean(),
7098
- isApprovalsFeatureEnabled: z245.boolean(),
7099
- isApprovalRequiredForPublishing: z245.boolean()
7107
+ import { z as z246 } from "zod";
7108
+ var DTODocumentationSettings = z246.object({
7109
+ isDraftFeatureAdopted: z246.boolean(),
7110
+ isApprovalsFeatureEnabled: z246.boolean(),
7111
+ isApprovalRequiredForPublishing: z246.boolean()
7100
7112
  });
7101
7113
 
7102
7114
  // src/api/dto/elements/documentation/structure.ts
7103
- import { z as z246 } from "zod";
7104
- var DTODocumentationStructureItemType = z246.enum(["Group", "Page"]);
7105
- var DTODocumentationStructureItemBase = z246.object({
7115
+ import { z as z247 } from "zod";
7116
+ var DTODocumentationStructureItemType = z247.enum(["Group", "Page"]);
7117
+ var DTODocumentationStructureItemBase = z247.object({
7106
7118
  type: DTODocumentationStructureItemType,
7107
- id: z246.string(),
7108
- designSystemVersionId: z246.string(),
7109
- shortPersistentId: z246.string(),
7110
- persistentId: z246.string(),
7111
- title: z246.string(),
7112
- createdAt: z246.coerce.date(),
7113
- updatedAt: z246.coerce.date()
7119
+ id: z247.string(),
7120
+ designSystemVersionId: z247.string(),
7121
+ shortPersistentId: z247.string(),
7122
+ persistentId: z247.string(),
7123
+ title: z247.string(),
7124
+ createdAt: z247.coerce.date(),
7125
+ updatedAt: z247.coerce.date()
7114
7126
  });
7115
7127
  var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
7116
- type: z246.literal(DTODocumentationStructureItemType.enum.Group),
7117
- groupBehavior: z246.string(),
7118
- childrenIds: z246.string().array(),
7119
- isRoot: z246.boolean()
7128
+ type: z247.literal(DTODocumentationStructureItemType.enum.Group),
7129
+ groupBehavior: z247.string(),
7130
+ childrenIds: z247.string().array(),
7131
+ isRoot: z247.boolean()
7120
7132
  });
7121
7133
  var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
7122
- type: z246.literal(DTODocumentationStructureItemType.enum.Page),
7123
- path: z246.string()
7134
+ type: z247.literal(DTODocumentationStructureItemType.enum.Page),
7135
+ path: z247.string()
7124
7136
  });
7125
- var DTODocumentationStructureItem = z246.discriminatedUnion("type", [
7137
+ var DTODocumentationStructureItem = z247.discriminatedUnion("type", [
7126
7138
  DTODocumentationStructureGroupItem,
7127
7139
  DTODocumentationStructurePageItem
7128
7140
  ]);
7129
- var DTODocumentationStructure = z246.object({
7130
- items: z246.array(DTODocumentationStructureItem)
7141
+ var DTODocumentationStructure = z247.object({
7142
+ items: z247.array(DTODocumentationStructureItem)
7131
7143
  });
7132
7144
 
7133
7145
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7134
- import { z as z248 } from "zod";
7146
+ import { z as z249 } from "zod";
7135
7147
 
7136
7148
  // src/api/dto/elements/figma-nodes/figma-node.ts
7137
- import { z as z247 } from "zod";
7149
+ import { z as z248 } from "zod";
7138
7150
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
7139
- var DTOFigmaNodeOrigin = z247.object({
7140
- sourceId: z247.string(),
7141
- fileId: z247.string().optional(),
7142
- parentName: z247.string().optional()
7151
+ var DTOFigmaNodeOrigin = z248.object({
7152
+ sourceId: z248.string(),
7153
+ fileId: z248.string().optional(),
7154
+ parentName: z248.string().optional()
7143
7155
  });
7144
- var DTOFigmaNodeRenderInputBase = z247.object({
7156
+ var DTOFigmaNodeRenderInputBase = z248.object({
7145
7157
  /**
7146
7158
  * Format in which the node must be rendered, png by default.
7147
7159
  */
@@ -7149,57 +7161,57 @@ var DTOFigmaNodeRenderInputBase = z247.object({
7149
7161
  /**
7150
7162
  * Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
7151
7163
  */
7152
- scale: z247.number().optional()
7164
+ scale: z248.number().optional()
7153
7165
  });
7154
7166
  var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
7155
- inputType: z247.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7167
+ inputType: z248.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7156
7168
  /**
7157
7169
  * Id of a design system's data source representing a linked Figma file
7158
7170
  */
7159
- sourceId: z247.string(),
7171
+ sourceId: z248.string(),
7160
7172
  /**
7161
7173
  * Id of a node within the Figma file
7162
7174
  */
7163
- figmaFileNodeId: z247.string()
7175
+ figmaFileNodeId: z248.string()
7164
7176
  });
7165
7177
  var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
7166
- inputType: z247.literal("URL"),
7178
+ inputType: z248.literal("URL"),
7167
7179
  /**
7168
7180
  * Id of a design system's data source representing a linked Figma file
7169
7181
  */
7170
- figmaNodeUrl: z247.string(),
7182
+ figmaNodeUrl: z248.string(),
7171
7183
  /**
7172
7184
  * Brand persistent id to use in case a source has to be created for this render
7173
7185
  */
7174
- brandPersistentId: z247.string()
7186
+ brandPersistentId: z248.string()
7175
7187
  });
7176
- var DTOFigmaNodeRerenderInput = z247.object({
7177
- inputType: z247.literal("Rerender"),
7188
+ var DTOFigmaNodeRerenderInput = z248.object({
7189
+ inputType: z248.literal("Rerender"),
7178
7190
  /**
7179
7191
  * Persistent ID of an existing Figma node
7180
7192
  */
7181
- figmaNodePersistentId: z247.string()
7193
+ figmaNodePersistentId: z248.string()
7182
7194
  });
7183
- var DTOFigmaNodeRenderInput = z247.discriminatedUnion("inputType", [
7195
+ var DTOFigmaNodeRenderInput = z248.discriminatedUnion("inputType", [
7184
7196
  DTOFigmaNodeRenderIdInput,
7185
7197
  DTOFigmaNodeRenderUrlInput,
7186
7198
  DTOFigmaNodeRerenderInput
7187
7199
  ]);
7188
7200
 
7189
7201
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7190
- var DTOFigmaNodeData = z248.object({
7202
+ var DTOFigmaNodeData = z249.object({
7191
7203
  // Id of the node in the Figma file
7192
- figmaNodeId: z248.string(),
7204
+ figmaNodeId: z249.string(),
7193
7205
  // Validity
7194
- isValid: z248.boolean(),
7206
+ isValid: z249.boolean(),
7195
7207
  // Asset data
7196
- assetId: z248.string(),
7197
- assetUrl: z248.string(),
7208
+ assetId: z249.string(),
7209
+ assetUrl: z249.string(),
7198
7210
  assetFormat: DTOFigmaNodeRenderFormat,
7199
7211
  // Asset metadata
7200
- assetScale: z248.number(),
7201
- assetWidth: z248.number().optional(),
7202
- assetHeight: z248.number().optional()
7212
+ assetScale: z249.number(),
7213
+ assetWidth: z249.number().optional(),
7214
+ assetHeight: z249.number().optional()
7203
7215
  });
7204
7216
  var DTOFigmaNode = FigmaNodeReference.omit({
7205
7217
  data: true,
@@ -7210,15 +7222,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
7210
7222
  });
7211
7223
 
7212
7224
  // src/api/dto/elements/figma-nodes/figma-node-v2.ts
7213
- import { z as z249 } from "zod";
7214
- var DTOFigmaNodeDataV2 = z249.object({
7215
- sceneNodeId: z249.string(),
7225
+ import { z as z250 } from "zod";
7226
+ var DTOFigmaNodeDataV2 = z250.object({
7227
+ sceneNodeId: z250.string(),
7216
7228
  format: FigmaNodeRenderFormat,
7217
- scale: z249.number().optional(),
7229
+ scale: z250.number().optional(),
7218
7230
  renderState: FigmaNodeRenderState,
7219
7231
  renderedImage: FigmaNodeRenderedImage.optional(),
7220
7232
  renderError: FigmaNodeRenderError.optional(),
7221
- hasSource: z249.boolean()
7233
+ hasSource: z250.boolean()
7222
7234
  });
7223
7235
  var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7224
7236
  data: true,
@@ -7229,105 +7241,105 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7229
7241
  });
7230
7242
 
7231
7243
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
7232
- import { z as z250 } from "zod";
7233
- var DTOFigmaNodeRenderActionOutput = z250.object({
7234
- type: z250.literal("FigmaNodeRender"),
7235
- figmaNodes: z250.array(DTOFigmaNode)
7244
+ import { z as z251 } from "zod";
7245
+ var DTOFigmaNodeRenderActionOutput = z251.object({
7246
+ type: z251.literal("FigmaNodeRender"),
7247
+ figmaNodes: z251.array(DTOFigmaNode)
7236
7248
  });
7237
- var DTOFigmaNodeRenderAsyncActionOutput = z250.object({
7238
- type: z250.literal("FigmaNodeRenderAsync"),
7239
- figmaNodes: z250.array(DTOFigmaNodeV2)
7249
+ var DTOFigmaNodeRenderAsyncActionOutput = z251.object({
7250
+ type: z251.literal("FigmaNodeRenderAsync"),
7251
+ figmaNodes: z251.array(DTOFigmaNodeV2)
7240
7252
  });
7241
- var DTOFigmaNodeRenderActionInput = z250.object({
7242
- type: z250.literal("FigmaNodeRender"),
7253
+ var DTOFigmaNodeRenderActionInput = z251.object({
7254
+ type: z251.literal("FigmaNodeRender"),
7243
7255
  input: DTOFigmaNodeRenderIdInput.array()
7244
7256
  });
7245
- var DTOFigmaNodeRenderAsyncActionInput = z250.object({
7246
- type: z250.literal("FigmaNodeRenderAsync"),
7257
+ var DTOFigmaNodeRenderAsyncActionInput = z251.object({
7258
+ type: z251.literal("FigmaNodeRenderAsync"),
7247
7259
  nodes: DTOFigmaNodeRenderInput.array()
7248
7260
  });
7249
7261
 
7250
7262
  // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
7251
- import { z as z251 } from "zod";
7252
- var DTOFrameNodeStructure = z251.object({
7253
- id: z251.string(),
7254
- persistentId: z251.string(),
7255
- designSystemVersionId: z251.string(),
7263
+ import { z as z252 } from "zod";
7264
+ var DTOFrameNodeStructure = z252.object({
7265
+ id: z252.string(),
7266
+ persistentId: z252.string(),
7267
+ designSystemVersionId: z252.string(),
7256
7268
  origin: FigmaFileStructureOrigin,
7257
7269
  assetsInFile: FigmaFileStructureStatistics
7258
7270
  });
7259
- var DTOFrameNodeStructureListResponse = z251.object({
7271
+ var DTOFrameNodeStructureListResponse = z252.object({
7260
7272
  structures: DTOFrameNodeStructure.array()
7261
7273
  });
7262
7274
 
7263
7275
  // src/api/dto/elements/properties/property-definitions.ts
7264
- import { z as z252 } from "zod";
7276
+ import { z as z253 } from "zod";
7265
7277
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
7266
- var DTOElementPropertyDefinitionOption = z252.object({
7267
- id: z252.string(),
7268
- name: z252.string(),
7278
+ var DTOElementPropertyDefinitionOption = z253.object({
7279
+ id: z253.string(),
7280
+ name: z253.string(),
7269
7281
  backgroundColor: DTOColorTokenInlineData.optional()
7270
7282
  });
7271
- var DTOElementPropertyDefinition = z252.object({
7272
- id: z252.string(),
7273
- designSystemVersionId: z252.string(),
7283
+ var DTOElementPropertyDefinition = z253.object({
7284
+ id: z253.string(),
7285
+ designSystemVersionId: z253.string(),
7274
7286
  meta: DTOObjectMeta,
7275
- persistentId: z252.string(),
7287
+ persistentId: z253.string(),
7276
7288
  type: ElementPropertyTypeSchema,
7277
7289
  targetElementType: ElementPropertyTargetType,
7278
- codeName: z252.string().regex(CODE_NAME_REGEX2),
7279
- options: nullishToOptional(z252.array(DTOElementPropertyDefinitionOption)),
7290
+ codeName: z253.string().regex(CODE_NAME_REGEX2),
7291
+ options: nullishToOptional(z253.array(DTOElementPropertyDefinitionOption)),
7280
7292
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7281
- isImmutable: z252.boolean(),
7293
+ isImmutable: z253.boolean(),
7282
7294
  immutablePropertyType: ElementPropertyImmutableType.optional()
7283
7295
  });
7284
- var DTOElementPropertyDefinitionListResponse = z252.object({
7285
- definitions: z252.array(DTOElementPropertyDefinition)
7296
+ var DTOElementPropertyDefinitionListResponse = z253.object({
7297
+ definitions: z253.array(DTOElementPropertyDefinition)
7286
7298
  });
7287
- var DTOElementPropertyDefinitionResponse = z252.object({
7299
+ var DTOElementPropertyDefinitionResponse = z253.object({
7288
7300
  definition: DTOElementPropertyDefinition
7289
7301
  });
7290
- var DTOElementPropertyDefinitionCreatePayload = z252.object({
7302
+ var DTOElementPropertyDefinitionCreatePayload = z253.object({
7291
7303
  meta: DTOObjectMeta,
7292
- persistentId: z252.string(),
7304
+ persistentId: z253.string(),
7293
7305
  type: ElementPropertyTypeSchema,
7294
7306
  targetElementType: ElementPropertyTargetType,
7295
- codeName: z252.string().regex(CODE_NAME_REGEX2),
7296
- options: nullishToOptional(z252.array(DTOElementPropertyDefinitionOption)),
7307
+ codeName: z253.string().regex(CODE_NAME_REGEX2),
7308
+ options: nullishToOptional(z253.array(DTOElementPropertyDefinitionOption)),
7297
7309
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7298
- columnWidth: z252.number().max(1024).optional()
7310
+ columnWidth: z253.number().max(1024).optional()
7299
7311
  });
7300
- var DTOElementPropertyDefinitionUpdatePayload = z252.object({
7312
+ var DTOElementPropertyDefinitionUpdatePayload = z253.object({
7301
7313
  meta: DTOObjectMeta.optional(),
7302
- codeName: z252.string().regex(CODE_NAME_REGEX2).optional(),
7303
- options: z252.array(DTOElementPropertyDefinitionOption).optional()
7314
+ codeName: z253.string().regex(CODE_NAME_REGEX2).optional(),
7315
+ options: z253.array(DTOElementPropertyDefinitionOption).optional()
7304
7316
  });
7305
7317
 
7306
7318
  // src/api/dto/elements/properties/property-values.ts
7307
- import { z as z253 } from "zod";
7308
- var DTOElementPropertyValue = z253.object({
7309
- id: z253.string(),
7310
- designSystemVersionId: z253.string(),
7311
- definitionId: z253.string(),
7312
- targetElementId: z253.string(),
7313
- value: z253.union([z253.string(), z253.number(), z253.boolean()]).optional(),
7314
- valuePreview: z253.string().optional()
7315
- });
7316
- var DTOElementPropertyValueListResponse = z253.object({
7317
- values: z253.array(DTOElementPropertyValue)
7318
- });
7319
- var DTOElementPropertyValueResponse = z253.object({
7319
+ import { z as z254 } from "zod";
7320
+ var DTOElementPropertyValue = z254.object({
7321
+ id: z254.string(),
7322
+ designSystemVersionId: z254.string(),
7323
+ definitionId: z254.string(),
7324
+ targetElementId: z254.string(),
7325
+ value: z254.union([z254.string(), z254.number(), z254.boolean()]).optional(),
7326
+ valuePreview: z254.string().optional()
7327
+ });
7328
+ var DTOElementPropertyValueListResponse = z254.object({
7329
+ values: z254.array(DTOElementPropertyValue)
7330
+ });
7331
+ var DTOElementPropertyValueResponse = z254.object({
7320
7332
  value: DTOElementPropertyValue
7321
7333
  });
7322
- var DTOElementPropertyValueUpsertPaylod = z253.object({
7323
- definitionId: z253.string(),
7324
- targetElementId: z253.string(),
7325
- value: z253.string().or(z253.number()).or(z253.boolean())
7334
+ var DTOElementPropertyValueUpsertPaylod = z254.object({
7335
+ definitionId: z254.string(),
7336
+ targetElementId: z254.string(),
7337
+ value: z254.string().or(z254.number()).or(z254.boolean())
7326
7338
  });
7327
7339
 
7328
7340
  // src/api/dto/elements/elements-action-v2.ts
7329
- import { z as z254 } from "zod";
7330
- var DTOElementActionOutput = z254.discriminatedUnion("type", [
7341
+ import { z as z255 } from "zod";
7342
+ var DTOElementActionOutput = z255.discriminatedUnion("type", [
7331
7343
  // Documentation pages
7332
7344
  DTODocumentationPageCreateActionOutputV2,
7333
7345
  DTODocumentationPageUpdateActionOutputV2,
@@ -7352,7 +7364,7 @@ var DTOElementActionOutput = z254.discriminatedUnion("type", [
7352
7364
  // Approvals
7353
7365
  DTODocumentationPageApprovalStateChangeActionOutput
7354
7366
  ]);
7355
- var DTOElementActionInput = z254.discriminatedUnion("type", [
7367
+ var DTOElementActionInput = z255.discriminatedUnion("type", [
7356
7368
  // Documentation pages
7357
7369
  DTODocumentationPageCreateActionInputV2,
7358
7370
  DTODocumentationPageUpdateActionInputV2,
@@ -7377,90 +7389,90 @@ var DTOElementActionInput = z254.discriminatedUnion("type", [
7377
7389
  // Approval
7378
7390
  DTODocumentationPageApprovalStateChangeActionInput
7379
7391
  ]).and(
7380
- z254.object({
7381
- tId: z254.string().optional()
7392
+ z255.object({
7393
+ tId: z255.string().optional()
7382
7394
  })
7383
7395
  );
7384
7396
 
7385
7397
  // src/api/dto/elements/get-elements-v2.ts
7386
- import { z as z255 } from "zod";
7387
- var DTOElementsGetTypeFilter = z255.enum(["FigmaNode"]);
7388
- var DTOElementsGetQuerySchema = z255.object({
7389
- types: z255.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
7390
- responseVersion: z255.coerce.number().default(1)
7398
+ import { z as z256 } from "zod";
7399
+ var DTOElementsGetTypeFilter = z256.enum(["FigmaNode"]);
7400
+ var DTOElementsGetQuerySchema = z256.object({
7401
+ types: z256.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
7402
+ responseVersion: z256.coerce.number().default(1)
7391
7403
  });
7392
- var DTOElementsGetOutput = z255.object({
7393
- figmaNodes: z255.array(DTOFigmaNode).optional()
7404
+ var DTOElementsGetOutput = z256.object({
7405
+ figmaNodes: z256.array(DTOFigmaNode).optional()
7394
7406
  });
7395
- var DTOElementsGetOutputV2 = z255.object({
7396
- figmaNodes: z255.array(DTOFigmaNodeV2).optional()
7407
+ var DTOElementsGetOutputV2 = z256.object({
7408
+ figmaNodes: z256.array(DTOFigmaNodeV2).optional()
7397
7409
  });
7398
7410
 
7399
7411
  // src/api/dto/figma-components/assets/download.ts
7400
- import { z as z256 } from "zod";
7401
- var DTOAssetRenderConfiguration = z256.object({
7402
- prefix: z256.string().optional(),
7403
- suffix: z256.string().optional(),
7404
- scale: z256.enum(["x1", "x2", "x3", "x4"]),
7405
- format: z256.enum(["png", "pdf", "svg"])
7406
- });
7407
- var DTORenderedAssetFile = z256.object({
7408
- assetId: z256.string(),
7409
- fileName: z256.string(),
7410
- sourceUrl: z256.string(),
7412
+ import { z as z257 } from "zod";
7413
+ var DTOAssetRenderConfiguration = z257.object({
7414
+ prefix: z257.string().optional(),
7415
+ suffix: z257.string().optional(),
7416
+ scale: z257.enum(["x1", "x2", "x3", "x4"]),
7417
+ format: z257.enum(["png", "pdf", "svg"])
7418
+ });
7419
+ var DTORenderedAssetFile = z257.object({
7420
+ assetId: z257.string(),
7421
+ fileName: z257.string(),
7422
+ sourceUrl: z257.string(),
7411
7423
  settings: DTOAssetRenderConfiguration,
7412
- originalName: z256.string()
7424
+ originalName: z257.string()
7413
7425
  });
7414
- var DTODownloadAssetsRequest = z256.object({
7415
- persistentIds: z256.array(z256.string().uuid()).optional(),
7426
+ var DTODownloadAssetsRequest = z257.object({
7427
+ persistentIds: z257.array(z257.string().uuid()).optional(),
7416
7428
  settings: DTOAssetRenderConfiguration.array()
7417
7429
  });
7418
- var DTODownloadAssetsResponse = z256.object({
7430
+ var DTODownloadAssetsResponse = z257.object({
7419
7431
  items: DTORenderedAssetFile.array()
7420
7432
  });
7421
7433
 
7422
7434
  // src/api/dto/liveblocks/auth-response.ts
7423
- import { z as z257 } from "zod";
7424
- var DTOLiveblocksAuthResponse = z257.object({
7425
- token: z257.string()
7435
+ import { z as z258 } from "zod";
7436
+ var DTOLiveblocksAuthResponse = z258.object({
7437
+ token: z258.string()
7426
7438
  });
7427
7439
 
7428
7440
  // src/api/dto/themes/override.ts
7429
- import { z as z258 } from "zod";
7441
+ import { z as z259 } from "zod";
7430
7442
  var DTOThemeOverride = DesignTokenTypedData.and(
7431
- z258.object({
7432
- tokenPersistentId: z258.string(),
7443
+ z259.object({
7444
+ tokenPersistentId: z259.string(),
7433
7445
  origin: ThemeOverrideOrigin.optional()
7434
7446
  })
7435
7447
  );
7436
7448
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
7437
- z258.object({
7438
- tokenPersistentId: z258.string()
7449
+ z259.object({
7450
+ tokenPersistentId: z259.string()
7439
7451
  })
7440
7452
  );
7441
7453
 
7442
7454
  // src/api/dto/themes/theme.ts
7443
- import { z as z259 } from "zod";
7444
- var DTOTheme = z259.object({
7445
- id: z259.string(),
7446
- persistentId: z259.string(),
7447
- designSystemVersionId: z259.string(),
7448
- brandId: z259.string(),
7455
+ import { z as z260 } from "zod";
7456
+ var DTOTheme = z260.object({
7457
+ id: z260.string(),
7458
+ persistentId: z260.string(),
7459
+ designSystemVersionId: z260.string(),
7460
+ brandId: z260.string(),
7449
7461
  meta: ObjectMeta,
7450
- codeName: z259.string(),
7462
+ codeName: z260.string(),
7451
7463
  overrides: DTOThemeOverride.array()
7452
7464
  });
7453
- var DTOThemeResponse = z259.object({
7465
+ var DTOThemeResponse = z260.object({
7454
7466
  theme: DTOTheme
7455
7467
  });
7456
- var DTOThemeListResponse = z259.object({
7468
+ var DTOThemeListResponse = z260.object({
7457
7469
  themes: DTOTheme.array()
7458
7470
  });
7459
- var DTOThemeCreatePayload = z259.object({
7471
+ var DTOThemeCreatePayload = z260.object({
7460
7472
  meta: ObjectMeta,
7461
- persistentId: z259.string(),
7462
- brandId: z259.string(),
7463
- codeName: z259.string(),
7473
+ persistentId: z260.string(),
7474
+ brandId: z260.string(),
7475
+ codeName: z260.string(),
7464
7476
  overrides: DTOThemeOverride.array()
7465
7477
  });
7466
7478
 
@@ -7667,7 +7679,7 @@ var ExportersEndpoint = class {
7667
7679
  }
7668
7680
  list(workspaceId, query) {
7669
7681
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterListResponse, {
7670
- query: serializeQuery(query)
7682
+ query: query ? serializeQuery(query) : void 0
7671
7683
  });
7672
7684
  }
7673
7685
  get(workspaceId, exporterId) {
@@ -7676,13 +7688,13 @@ var ExportersEndpoint = class {
7676
7688
  };
7677
7689
 
7678
7690
  // src/api/endpoints/codegen/jobs.ts
7679
- import { z as z260 } from "zod";
7691
+ import { z as z261 } from "zod";
7680
7692
  var ExporterJobsEndpoint = class {
7681
7693
  constructor(requestExecutor) {
7682
7694
  this.requestExecutor = requestExecutor;
7683
7695
  }
7684
7696
  list(workspaceId) {
7685
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z260.any());
7697
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z261.any());
7686
7698
  }
7687
7699
  get(workspaceId, jobId) {
7688
7700
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -7740,7 +7752,7 @@ var CodegenEndpoint = class {
7740
7752
  };
7741
7753
 
7742
7754
  // src/api/endpoints/design-system/versions/brands.ts
7743
- import { z as z261 } from "zod";
7755
+ import { z as z262 } from "zod";
7744
7756
  var BrandsEndpoint = class {
7745
7757
  constructor(requestExecutor) {
7746
7758
  this.requestExecutor = requestExecutor;
@@ -7774,7 +7786,7 @@ var BrandsEndpoint = class {
7774
7786
  });
7775
7787
  }
7776
7788
  delete(dsId, vId, brandId) {
7777
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z261.any(), {
7789
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z262.any(), {
7778
7790
  method: "DELETE"
7779
7791
  });
7780
7792
  }
@@ -7943,7 +7955,7 @@ var ImportJobsEndpoint = class {
7943
7955
  };
7944
7956
 
7945
7957
  // src/api/endpoints/design-system/versions/overrides.ts
7946
- import { z as z262 } from "zod";
7958
+ import { z as z263 } from "zod";
7947
7959
  var OverridesEndpoint = class {
7948
7960
  constructor(requestExecutor) {
7949
7961
  this.requestExecutor = requestExecutor;
@@ -7951,7 +7963,7 @@ var OverridesEndpoint = class {
7951
7963
  create(dsId, versionId, themeId, body) {
7952
7964
  return this.requestExecutor.json(
7953
7965
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
7954
- z262.any(),
7966
+ z263.any(),
7955
7967
  {
7956
7968
  method: "POST",
7957
7969
  body
@@ -7961,7 +7973,7 @@ var OverridesEndpoint = class {
7961
7973
  };
7962
7974
 
7963
7975
  // src/api/endpoints/design-system/versions/property-definitions.ts
7964
- import { z as z263 } from "zod";
7976
+ import { z as z264 } from "zod";
7965
7977
  var ElementPropertyDefinitionsEndpoint = class {
7966
7978
  constructor(requestExecutor) {
7967
7979
  this.requestExecutor = requestExecutor;
@@ -7989,7 +8001,7 @@ var ElementPropertyDefinitionsEndpoint = class {
7989
8001
  delete(designSystemId, versionId, defId) {
7990
8002
  return this.requestExecutor.json(
7991
8003
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
7992
- z263.any(),
8004
+ z264.any(),
7993
8005
  { method: "DELETE" }
7994
8006
  );
7995
8007
  }
@@ -8028,7 +8040,7 @@ var VersionStatsEndpoint = class {
8028
8040
  };
8029
8041
 
8030
8042
  // src/api/endpoints/design-system/versions/themes.ts
8031
- import { z as z264 } from "zod";
8043
+ import { z as z265 } from "zod";
8032
8044
  var ThemesEndpoint = class {
8033
8045
  constructor(requestExecutor) {
8034
8046
  this.requestExecutor = requestExecutor;
@@ -8051,7 +8063,7 @@ var ThemesEndpoint = class {
8051
8063
  });
8052
8064
  }
8053
8065
  delete(dsId, versionId, themeId) {
8054
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z264.any(), {
8066
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z265.any(), {
8055
8067
  method: "DELETE"
8056
8068
  });
8057
8069
  }
@@ -8204,7 +8216,7 @@ var DesignSystemContactsEndpoint = class {
8204
8216
  };
8205
8217
 
8206
8218
  // src/api/endpoints/design-system/design-systems.ts
8207
- import { z as z266 } from "zod";
8219
+ import { z as z267 } from "zod";
8208
8220
 
8209
8221
  // src/api/endpoints/design-system/members.ts
8210
8222
  var DesignSystemMembersEndpoint = class {
@@ -8225,7 +8237,7 @@ var DesignSystemMembersEndpoint = class {
8225
8237
  };
8226
8238
 
8227
8239
  // src/api/endpoints/design-system/sources.ts
8228
- import { z as z265 } from "zod";
8240
+ import { z as z266 } from "zod";
8229
8241
  var DesignSystemSourcesEndpoint = class {
8230
8242
  constructor(requestExecutor) {
8231
8243
  this.requestExecutor = requestExecutor;
@@ -8240,7 +8252,7 @@ var DesignSystemSourcesEndpoint = class {
8240
8252
  return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
8241
8253
  }
8242
8254
  delete(dsId, sourceId) {
8243
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z265.any(), { method: "DELETE" });
8255
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z266.any(), { method: "DELETE" });
8244
8256
  }
8245
8257
  figmaImport(dsId, payload) {
8246
8258
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
@@ -8314,7 +8326,7 @@ var DesignSystemsEndpoint = class {
8314
8326
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
8315
8327
  }
8316
8328
  delete(dsId) {
8317
- return this.requestExecutor.json(`/design-systems/${dsId}`, z266.any(), { method: "DELETE" });
8329
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z267.any(), { method: "DELETE" });
8318
8330
  }
8319
8331
  update(dsId, body) {
8320
8332
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -8358,7 +8370,7 @@ var WorkspaceInvitationsEndpoint = class {
8358
8370
  };
8359
8371
 
8360
8372
  // src/api/endpoints/workspaces/workspace-members.ts
8361
- import { z as z267 } from "zod";
8373
+ import { z as z268 } from "zod";
8362
8374
  var WorkspaceMembersEndpoint = class {
8363
8375
  constructor(requestExecutor) {
8364
8376
  this.requestExecutor = requestExecutor;
@@ -8375,7 +8387,7 @@ var WorkspaceMembersEndpoint = class {
8375
8387
  });
8376
8388
  }
8377
8389
  invite(workspaceId, body) {
8378
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z267.any(), { method: "POST", body });
8390
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z268.any(), { method: "POST", body });
8379
8391
  }
8380
8392
  delete(workspaceId, userId) {
8381
8393
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -8385,7 +8397,7 @@ var WorkspaceMembersEndpoint = class {
8385
8397
  };
8386
8398
 
8387
8399
  // src/api/endpoints/workspaces/workspaces.ts
8388
- import { z as z268 } from "zod";
8400
+ import { z as z269 } from "zod";
8389
8401
  var WorkspacesEndpoint = class {
8390
8402
  constructor(requestExecutor) {
8391
8403
  this.requestExecutor = requestExecutor;
@@ -8408,10 +8420,10 @@ var WorkspacesEndpoint = class {
8408
8420
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
8409
8421
  }
8410
8422
  delete(workspaceId) {
8411
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z268.any(), { method: "DELETE" });
8423
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z269.any(), { method: "DELETE" });
8412
8424
  }
8413
8425
  subscription(workspaceId) {
8414
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z268.any(), { method: "GET" });
8426
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z269.any(), { method: "GET" });
8415
8427
  }
8416
8428
  transferOwnership(workspaceId, body) {
8417
8429
  return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
@@ -8511,9 +8523,9 @@ ${bodyText}`,
8511
8523
 
8512
8524
  // src/api/transport/request-executor.ts
8513
8525
  import fetch from "node-fetch";
8514
- import { z as z269 } from "zod";
8515
- var ResponseWrapper = z269.object({
8516
- result: z269.record(z269.any())
8526
+ import { z as z270 } from "zod";
8527
+ var ResponseWrapper = z270.object({
8528
+ result: z270.record(z270.any())
8517
8529
  });
8518
8530
  var RequestExecutor = class {
8519
8531
  constructor(testServerConfig) {
@@ -8590,31 +8602,31 @@ var SupernovaApiClient = class {
8590
8602
  };
8591
8603
 
8592
8604
  // src/events/design-system.ts
8593
- import { z as z270 } from "zod";
8594
- var DTOEventFigmaNodesRendered = z270.object({
8595
- type: z270.literal("DesignSystem.FigmaNodesRendered"),
8596
- designSystemId: z270.string(),
8597
- versionId: z270.string(),
8598
- figmaNodePersistentIds: z270.string().array()
8599
- });
8600
- var DTOEventDataSourcesImported = z270.object({
8601
- type: z270.literal("DesignSystem.ImportJobFinished"),
8602
- designSystemId: z270.string(),
8603
- versionId: z270.string(),
8604
- importJobId: z270.string(),
8605
+ import { z as z271 } from "zod";
8606
+ var DTOEventFigmaNodesRendered = z271.object({
8607
+ type: z271.literal("DesignSystem.FigmaNodesRendered"),
8608
+ designSystemId: z271.string(),
8609
+ versionId: z271.string(),
8610
+ figmaNodePersistentIds: z271.string().array()
8611
+ });
8612
+ var DTOEventDataSourcesImported = z271.object({
8613
+ type: z271.literal("DesignSystem.ImportJobFinished"),
8614
+ designSystemId: z271.string(),
8615
+ versionId: z271.string(),
8616
+ importJobId: z271.string(),
8605
8617
  dataSourceType: DataSourceRemoteType,
8606
- dataSourceIds: z270.string().array()
8618
+ dataSourceIds: z271.string().array()
8607
8619
  });
8608
8620
 
8609
8621
  // src/events/event.ts
8610
- import { z as z271 } from "zod";
8611
- var DTOEvent = z271.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
8622
+ import { z as z272 } from "zod";
8623
+ var DTOEvent = z272.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
8612
8624
 
8613
8625
  // src/sync/docs-structure-repo.ts
8614
8626
  import PQueue from "p-queue";
8615
8627
 
8616
8628
  // src/yjs/design-system-content/documentation-hierarchy.ts
8617
- import { z as z272 } from "zod";
8629
+ import { z as z273 } from "zod";
8618
8630
 
8619
8631
  // src/yjs/version-room/base.ts
8620
8632
  var VersionRoomBaseYDoc = class {
@@ -9179,24 +9191,24 @@ var FrontendVersionRoomYDoc = class {
9179
9191
  };
9180
9192
 
9181
9193
  // src/yjs/design-system-content/documentation-hierarchy.ts
9182
- var DocumentationHierarchySettings = z272.object({
9183
- routingVersion: z272.string(),
9184
- isDraftFeatureAdopted: z272.boolean(),
9185
- isApprovalFeatureEnabled: z272.boolean(),
9186
- approvalRequiredForPublishing: z272.boolean()
9194
+ var DocumentationHierarchySettings = z273.object({
9195
+ routingVersion: z273.string(),
9196
+ isDraftFeatureAdopted: z273.boolean(),
9197
+ isApprovalFeatureEnabled: z273.boolean(),
9198
+ approvalRequiredForPublishing: z273.boolean()
9187
9199
  });
9188
9200
  function yjsToDocumentationHierarchy(doc) {
9189
9201
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
9190
9202
  }
9191
9203
 
9192
9204
  // src/yjs/design-system-content/item-configuration.ts
9193
- import { z as z273 } from "zod";
9194
- var DTODocumentationPageRoomHeaderData = z273.object({
9195
- title: z273.string(),
9205
+ import { z as z274 } from "zod";
9206
+ var DTODocumentationPageRoomHeaderData = z274.object({
9207
+ title: z274.string(),
9196
9208
  configuration: DTODocumentationItemConfigurationV2
9197
9209
  });
9198
- var DTODocumentationPageRoomHeaderDataUpdate = z273.object({
9199
- title: z273.string().optional(),
9210
+ var DTODocumentationPageRoomHeaderDataUpdate = z274.object({
9211
+ title: z274.string().optional(),
9200
9212
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
9201
9213
  });
9202
9214
  function itemConfigurationToYjs(yDoc, item) {
@@ -9247,7 +9259,7 @@ function yjsToItemConfiguration(yDoc) {
9247
9259
  header: rawHeader
9248
9260
  };
9249
9261
  return {
9250
- title: z273.string().parse(title),
9262
+ title: z274.string().parse(title),
9251
9263
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
9252
9264
  };
9253
9265
  }
@@ -9257,9 +9269,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
9257
9269
  var PageSectionEditorModel = PageSectionEditorModelV2;
9258
9270
 
9259
9271
  // src/yjs/docs-editor/model/page.ts
9260
- import { z as z274 } from "zod";
9261
- var DocumentationPageEditorModel = z274.object({
9262
- blocks: z274.array(DocumentationPageContentItem)
9272
+ import { z as z275 } from "zod";
9273
+ var DocumentationPageEditorModel = z275.object({
9274
+ blocks: z275.array(DocumentationPageContentItem)
9263
9275
  });
9264
9276
 
9265
9277
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -12818,7 +12830,7 @@ var blocks = [
12818
12830
 
12819
12831
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
12820
12832
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
12821
- import { z as z275 } from "zod";
12833
+ import { z as z276 } from "zod";
12822
12834
  function yDocToPage(yDoc, definitions) {
12823
12835
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
12824
12836
  }
@@ -12898,7 +12910,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
12898
12910
  return null;
12899
12911
  return {
12900
12912
  id,
12901
- title: getProsemirrorAttribute(prosemirrorNode, "title", z275.string()) ?? "",
12913
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z276.string()) ?? "",
12902
12914
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
12903
12915
  };
12904
12916
  }
@@ -12933,7 +12945,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
12933
12945
  });
12934
12946
  }
12935
12947
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
12936
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z275.string());
12948
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z276.string());
12937
12949
  if (!definitionId) {
12938
12950
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
12939
12951
  return [];
@@ -12975,7 +12987,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
12975
12987
  if (!id)
12976
12988
  return null;
12977
12989
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
12978
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z275.string().optional()));
12990
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z276.string().optional()));
12979
12991
  return {
12980
12992
  id,
12981
12993
  type: "Block",
@@ -13103,10 +13115,10 @@ function parseRichTextAttribute(mark) {
13103
13115
  return null;
13104
13116
  }
13105
13117
  function parseProsemirrorLink(mark) {
13106
- const href = getProsemirrorAttribute(mark, "href", z275.string().optional());
13118
+ const href = getProsemirrorAttribute(mark, "href", z276.string().optional());
13107
13119
  if (!href)
13108
13120
  return null;
13109
- const target = getProsemirrorAttribute(mark, "target", z275.string().optional());
13121
+ const target = getProsemirrorAttribute(mark, "target", z276.string().optional());
13110
13122
  const openInNewTab = target === "_blank";
13111
13123
  if (href.startsWith("@")) {
13112
13124
  return {
@@ -13125,10 +13137,10 @@ function parseProsemirrorLink(mark) {
13125
13137
  }
13126
13138
  }
13127
13139
  function parseProsemirrorCommentHighlight(mark) {
13128
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z275.string().optional());
13140
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z276.string().optional());
13129
13141
  if (!highlightId)
13130
13142
  return null;
13131
- const isResolved = getProsemirrorAttribute(mark, "resolved", z275.boolean().optional()) ?? false;
13143
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z276.boolean().optional()) ?? false;
13132
13144
  return {
13133
13145
  type: "Comment",
13134
13146
  commentHighlightId: highlightId,
@@ -13140,7 +13152,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
13140
13152
  if (!id)
13141
13153
  return null;
13142
13154
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13143
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z275.boolean().optional()) !== false;
13155
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z276.boolean().optional()) !== false;
13144
13156
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
13145
13157
  if (!tableChild) {
13146
13158
  return emptyTable(id, variantId, 0);
@@ -13187,9 +13199,9 @@ function parseAsTableCell(prosemirrorNode) {
13187
13199
  const id = getProsemirrorBlockId(prosemirrorNode);
13188
13200
  if (!id)
13189
13201
  return null;
13190
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z275.string().optional());
13202
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z276.string().optional());
13191
13203
  let columnWidth;
13192
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z275.array(z275.number()).nullish());
13204
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z276.array(z276.number()).nullish());
13193
13205
  if (columnWidthArray) {
13194
13206
  columnWidth = roundDimension(columnWidthArray[0]);
13195
13207
  }
@@ -13227,7 +13239,7 @@ function parseAsTableNode(prosemirrorNode) {
13227
13239
  value: parseRichText(prosemirrorNode.content ?? [])
13228
13240
  };
13229
13241
  case "image":
13230
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z275.string());
13242
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z276.string());
13231
13243
  if (!items)
13232
13244
  return null;
13233
13245
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -13347,7 +13359,7 @@ function definitionExpectsPlaceholderItem(definition) {
13347
13359
  );
13348
13360
  }
13349
13361
  function parseBlockItems(prosemirrorNode, definition) {
13350
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z275.string());
13362
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z276.string());
13351
13363
  if (!itemsString)
13352
13364
  return null;
13353
13365
  const itemsJson = JSON.parse(itemsString);
@@ -13359,18 +13371,18 @@ function parseBlockItems(prosemirrorNode, definition) {
13359
13371
  }
13360
13372
  function parseAppearance(prosemirrorNode) {
13361
13373
  let appearance = {};
13362
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z275.string().optional());
13374
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z276.string().optional());
13363
13375
  if (rawAppearanceString) {
13364
13376
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
13365
13377
  if (parsedAppearance.success) {
13366
13378
  appearance = parsedAppearance.data;
13367
13379
  }
13368
13380
  }
13369
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z275.number().optional());
13381
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z276.number().optional());
13370
13382
  if (columns) {
13371
13383
  appearance.numberOfColumns = columns;
13372
13384
  }
13373
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z275.string().optional());
13385
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z276.string().optional());
13374
13386
  if (backgroundColor) {
13375
13387
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
13376
13388
  if (parsedColor.success) {
@@ -13465,13 +13477,13 @@ function valueSchemaForPropertyType(type) {
13465
13477
  }
13466
13478
  }
13467
13479
  function getProsemirrorBlockId(prosemirrorNode) {
13468
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z275.string());
13480
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z276.string());
13469
13481
  if (!id)
13470
13482
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
13471
13483
  return id;
13472
13484
  }
13473
13485
  function getProsemirrorBlockVariantId(prosemirrorNode) {
13474
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z275.string()));
13486
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z276.string()));
13475
13487
  }
13476
13488
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
13477
13489
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -13879,7 +13891,7 @@ var DocsStructureRepository = class {
13879
13891
  }
13880
13892
  async executeInternalAction(action) {
13881
13893
  try {
13882
- return this.transactionExecutor(action.action);
13894
+ return await this.transactionExecutor(action.action);
13883
13895
  } catch (e) {
13884
13896
  this.errorObservers.forEach((o) => o(e, action.metadata));
13885
13897
  }