@supernova-studio/client 0.54.34 → 0.54.35

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
@@ -162,23 +162,24 @@ import { z as z153 } from "zod";
162
162
  import { z as z152 } from "zod";
163
163
  import { z as z151 } from "zod";
164
164
  import { z as z154 } from "zod";
165
- import { z as z157 } from "zod";
166
165
  import { z as z155 } from "zod";
167
- import { z as z156 } from "zod";
168
166
  import { z as z158 } from "zod";
167
+ import { z as z156 } from "zod";
168
+ import { z as z157 } from "zod";
169
169
  import { z as z159 } from "zod";
170
170
  import { z as z160 } from "zod";
171
171
  import { z as z161 } from "zod";
172
172
  import { z as z162 } from "zod";
173
173
  import { z as z163 } from "zod";
174
- import { z as z165 } from "zod";
175
174
  import { z as z164 } from "zod";
176
175
  import { z as z166 } from "zod";
176
+ import { z as z165 } from "zod";
177
177
  import { z as z167 } from "zod";
178
178
  import { z as z168 } from "zod";
179
179
  import { z as z169 } from "zod";
180
180
  import { z as z170 } from "zod";
181
181
  import { z as z171 } from "zod";
182
+ import { z as z172 } from "zod";
182
183
  var __defProp2 = Object.defineProperty;
183
184
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
184
185
  var __publicField2 = (obj, key, value) => {
@@ -4318,45 +4319,54 @@ var UserSession = z154.object({
4318
4319
  session: Session,
4319
4320
  user: User.nullable()
4320
4321
  });
4321
- var EventDataSourceImported = z155.object({
4322
- type: z155.literal("DataSourceImported"),
4323
- workspaceId: z155.string(),
4324
- designSystemId: z155.string()
4322
+ var DesignSystemInviteEmailRecipient = z155.object({
4323
+ email: z155.string(),
4324
+ role: WorkspaceRoleSchema
4325
4325
  });
4326
- var EventVersionReleased = z156.object({
4327
- type: z156.literal("DesignSystemVersionReleased"),
4328
- workspaceId: z156.string(),
4329
- designSystemId: z156.string(),
4330
- versionId: z156.string()
4326
+ var DesignSystemInviteEmailData = z155.object({
4327
+ designSystem: DesignSystem,
4328
+ invitedBy: User,
4329
+ documentationDomain: z155.string().optional()
4331
4330
  });
4332
- var Event = z157.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4333
- var ExportJobDocumentationContext = z158.object({
4334
- isSingleVersionDocs: z158.boolean(),
4335
- versionSlug: z158.string(),
4331
+ var EventDataSourceImported = z156.object({
4332
+ type: z156.literal("DataSourceImported"),
4333
+ workspaceId: z156.string(),
4334
+ designSystemId: z156.string()
4335
+ });
4336
+ var EventVersionReleased = z157.object({
4337
+ type: z157.literal("DesignSystemVersionReleased"),
4338
+ workspaceId: z157.string(),
4339
+ designSystemId: z157.string(),
4340
+ versionId: z157.string()
4341
+ });
4342
+ var Event = z158.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4343
+ var ExportJobDocumentationContext = z159.object({
4344
+ isSingleVersionDocs: z159.boolean(),
4345
+ versionSlug: z159.string(),
4336
4346
  environment: PublishedDocEnvironment
4337
4347
  });
4338
- var ExportJobContext = z158.object({
4339
- apiUrl: z158.string(),
4340
- accessToken: z158.string(),
4341
- designSystemId: z158.string(),
4342
- designSystemName: z158.string(),
4343
- exporterId: z158.string(),
4344
- versionId: z158.string(),
4345
- brandId: z158.string().optional(),
4346
- themeId: z158.string().optional(),
4347
- themePersistentIds: z158.string().array().optional(),
4348
- exporterName: z158.string(),
4349
- exporterPackageUrl: z158.string(),
4348
+ var ExportJobContext = z159.object({
4349
+ apiUrl: z159.string(),
4350
+ accessToken: z159.string(),
4351
+ designSystemId: z159.string(),
4352
+ designSystemName: z159.string(),
4353
+ exporterId: z159.string(),
4354
+ versionId: z159.string(),
4355
+ brandId: z159.string().optional(),
4356
+ themeId: z159.string().optional(),
4357
+ themePersistentIds: z159.string().array().optional(),
4358
+ exporterName: z159.string(),
4359
+ exporterPackageUrl: z159.string(),
4350
4360
  exporterPropertyValues: ExporterPropertyValue.array(),
4351
4361
  documentation: ExportJobDocumentationContext.optional()
4352
4362
  });
4353
- var ExporterFunctionPayload = z159.object({
4354
- exportJobId: z159.string(),
4355
- exportContextId: z159.string(),
4356
- designSystemId: z159.string(),
4357
- workspaceId: z159.string()
4363
+ var ExporterFunctionPayload = z160.object({
4364
+ exportJobId: z160.string(),
4365
+ exportContextId: z160.string(),
4366
+ designSystemId: z160.string(),
4367
+ workspaceId: z160.string()
4358
4368
  });
4359
- var ExportJobDestinationType = z160.enum([
4369
+ var ExportJobDestinationType = z161.enum([
4360
4370
  "s3",
4361
4371
  "webhookUrl",
4362
4372
  "github",
@@ -4365,30 +4375,30 @@ var ExportJobDestinationType = z160.enum([
4365
4375
  "gitlab",
4366
4376
  "bitbucket"
4367
4377
  ]);
4368
- var ExportJobStatus = z160.enum(["InProgress", "Success", "Failed", "Timeout"]);
4369
- var ExportJobLogEntryType = z160.enum(["success", "info", "warning", "error", "user"]);
4370
- var ExportJobLogEntry = z160.object({
4371
- id: z160.string().optional(),
4372
- time: z160.coerce.date(),
4378
+ var ExportJobStatus = z161.enum(["InProgress", "Success", "Failed", "Timeout"]);
4379
+ var ExportJobLogEntryType = z161.enum(["success", "info", "warning", "error", "user"]);
4380
+ var ExportJobLogEntry = z161.object({
4381
+ id: z161.string().optional(),
4382
+ time: z161.coerce.date(),
4373
4383
  type: ExportJobLogEntryType,
4374
- message: z160.string()
4384
+ message: z161.string()
4375
4385
  });
4376
- var ExportJobPullRequestDestinationResult = z160.object({
4377
- pullRequestUrl: z160.string()
4386
+ var ExportJobPullRequestDestinationResult = z161.object({
4387
+ pullRequestUrl: z161.string()
4378
4388
  });
4379
- var ExportJobS3DestinationResult = z160.object({
4380
- bucket: z160.string(),
4381
- urlPrefix: z160.string().optional(),
4382
- path: z160.string(),
4383
- files: z160.array(z160.string()),
4384
- url: nullishToOptional(z160.string()),
4385
- urls: nullishToOptional(z160.string().array())
4389
+ var ExportJobS3DestinationResult = z161.object({
4390
+ bucket: z161.string(),
4391
+ urlPrefix: z161.string().optional(),
4392
+ path: z161.string(),
4393
+ files: z161.array(z161.string()),
4394
+ url: nullishToOptional(z161.string()),
4395
+ urls: nullishToOptional(z161.string().array())
4386
4396
  });
4387
- var ExportJobDocsDestinationResult = z160.object({
4388
- url: z160.string()
4397
+ var ExportJobDocsDestinationResult = z161.object({
4398
+ url: z161.string()
4389
4399
  });
4390
- var ExportJobResult = z160.object({
4391
- error: z160.string().optional(),
4400
+ var ExportJobResult = z161.object({
4401
+ error: z161.string().optional(),
4392
4402
  s3: nullishToOptional(ExportJobS3DestinationResult),
4393
4403
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4394
4404
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4397,22 +4407,22 @@ var ExportJobResult = z160.object({
4397
4407
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4398
4408
  logs: nullishToOptional(ExportJobLogEntry.array())
4399
4409
  });
4400
- var ExportJob = z160.object({
4401
- id: z160.string(),
4402
- createdAt: z160.coerce.date(),
4403
- finishedAt: z160.coerce.date().optional(),
4404
- designSystemId: z160.string(),
4405
- designSystemVersionId: z160.string(),
4406
- workspaceId: z160.string(),
4407
- scheduleId: z160.string().nullish(),
4408
- exporterId: z160.string(),
4409
- brandId: z160.string().optional(),
4410
- themeId: z160.string().optional(),
4411
- themePersistentIds: z160.string().array().optional(),
4412
- estimatedExecutionTime: z160.number().optional(),
4410
+ var ExportJob = z161.object({
4411
+ id: z161.string(),
4412
+ createdAt: z161.coerce.date(),
4413
+ finishedAt: z161.coerce.date().optional(),
4414
+ designSystemId: z161.string(),
4415
+ designSystemVersionId: z161.string(),
4416
+ workspaceId: z161.string(),
4417
+ scheduleId: z161.string().nullish(),
4418
+ exporterId: z161.string(),
4419
+ brandId: z161.string().optional(),
4420
+ themeId: z161.string().optional(),
4421
+ themePersistentIds: z161.string().array().optional(),
4422
+ estimatedExecutionTime: z161.number().optional(),
4413
4423
  status: ExportJobStatus,
4414
4424
  result: ExportJobResult.optional(),
4415
- createdByUserId: z160.string().optional(),
4425
+ createdByUserId: z161.string().optional(),
4416
4426
  // Destinations
4417
4427
  ...ExportDestinationsMap.shape
4418
4428
  });
@@ -4426,24 +4436,24 @@ var ExportJobFindByFilter = ExportJob.pick({
4426
4436
  themeId: true,
4427
4437
  brandId: true
4428
4438
  }).extend({
4429
- destinations: z160.array(ExportJobDestinationType),
4439
+ destinations: z161.array(ExportJobDestinationType),
4430
4440
  docsEnvironment: PublishedDocEnvironment
4431
4441
  }).partial();
4432
- var ExporterWorkspaceMembershipRole = z161.enum(["Owner", "OwnerArchived", "User"]);
4433
- var ExporterWorkspaceMembership = z162.object({
4434
- id: z162.string(),
4435
- workspaceId: z162.string(),
4436
- exporterId: z162.string(),
4442
+ var ExporterWorkspaceMembershipRole = z162.enum(["Owner", "OwnerArchived", "User"]);
4443
+ var ExporterWorkspaceMembership = z163.object({
4444
+ id: z163.string(),
4445
+ workspaceId: z163.string(),
4446
+ exporterId: z163.string(),
4437
4447
  role: ExporterWorkspaceMembershipRole
4438
4448
  });
4439
- var FlaggedFeature = z163.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4440
- var FeatureFlagMap = z163.record(FlaggedFeature, z163.boolean());
4441
- var FeatureFlag = z163.object({
4442
- id: z163.string(),
4449
+ var FlaggedFeature = z164.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4450
+ var FeatureFlagMap = z164.record(FlaggedFeature, z164.boolean());
4451
+ var FeatureFlag = z164.object({
4452
+ id: z164.string(),
4443
4453
  feature: FlaggedFeature,
4444
- createdAt: z163.coerce.date(),
4445
- enabled: z163.boolean(),
4446
- designSystemId: z163.string().optional()
4454
+ createdAt: z164.coerce.date(),
4455
+ enabled: z164.boolean(),
4456
+ designSystemId: z164.string().optional()
4447
4457
  });
4448
4458
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4449
4459
  OAuthProviderNames2["Figma"] = "figma";
@@ -4453,107 +4463,107 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4453
4463
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4454
4464
  return OAuthProviderNames2;
4455
4465
  })(OAuthProviderNames || {});
4456
- var OAuthProviderSchema = z164.nativeEnum(OAuthProviderNames);
4466
+ var OAuthProviderSchema = z165.nativeEnum(OAuthProviderNames);
4457
4467
  var OAuthProvider = OAuthProviderSchema.enum;
4458
- var ExternalOAuthRequest = z165.object({
4459
- id: z165.string(),
4468
+ var ExternalOAuthRequest = z166.object({
4469
+ id: z166.string(),
4460
4470
  provider: OAuthProviderSchema,
4461
- userId: z165.string(),
4462
- state: z165.string(),
4463
- createdAt: z165.coerce.date()
4471
+ userId: z166.string(),
4472
+ state: z166.string(),
4473
+ createdAt: z166.coerce.date()
4464
4474
  });
4465
- var GitObjectsQuery = z166.object({
4466
- organization: z166.string().optional(),
4475
+ var GitObjectsQuery = z167.object({
4476
+ organization: z167.string().optional(),
4467
4477
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4468
- project: z166.string().optional(),
4478
+ project: z167.string().optional(),
4469
4479
  // Only for Bitbucket and Azure
4470
- repository: z166.string().optional(),
4480
+ repository: z167.string().optional(),
4471
4481
  // For all providers. For Gitlab, it's called "project".
4472
- branch: z166.string().optional(),
4482
+ branch: z167.string().optional(),
4473
4483
  // For all providers.
4474
- user: z166.string().optional()
4484
+ user: z167.string().optional()
4475
4485
  // Gitlab user
4476
4486
  });
4477
- var GitOrganization = z166.object({
4478
- id: z166.string(),
4479
- name: z166.string(),
4480
- url: z166.string(),
4481
- slug: z166.string()
4487
+ var GitOrganization = z167.object({
4488
+ id: z167.string(),
4489
+ name: z167.string(),
4490
+ url: z167.string(),
4491
+ slug: z167.string()
4482
4492
  });
4483
- var GitProject = z166.object({
4484
- id: z166.string(),
4485
- name: z166.string(),
4486
- url: z166.string(),
4487
- slug: z166.string()
4493
+ var GitProject = z167.object({
4494
+ id: z167.string(),
4495
+ name: z167.string(),
4496
+ url: z167.string(),
4497
+ slug: z167.string()
4488
4498
  });
4489
- var GitRepository = z166.object({
4490
- id: z166.string(),
4491
- name: z166.string(),
4492
- url: z166.string(),
4493
- slug: z166.string(),
4499
+ var GitRepository = z167.object({
4500
+ id: z167.string(),
4501
+ name: z167.string(),
4502
+ url: z167.string(),
4503
+ slug: z167.string(),
4494
4504
  /**
4495
4505
  * Can be undefined when:
4496
4506
  * - there are no branches in the repository yet
4497
4507
  * - Git provider doesn't expose this information on a repository via their API
4498
4508
  */
4499
- defaultBranch: z166.string().optional()
4509
+ defaultBranch: z167.string().optional()
4500
4510
  });
4501
- var GitBranch = z166.object({
4502
- name: z166.string(),
4503
- lastCommitId: z166.string()
4511
+ var GitBranch = z167.object({
4512
+ name: z167.string(),
4513
+ lastCommitId: z167.string()
4504
4514
  });
4505
- var IntegrationTokenSchemaOld = z167.object({
4506
- id: z167.string(),
4507
- provider: OAuthProviderSchema,
4508
- scope: z167.string(),
4509
- userId: z167.string(),
4510
- accessToken: z167.string(),
4511
- refreshToken: z167.string(),
4512
- expiresAt: z167.coerce.date(),
4513
- externalUserId: z167.string().nullish()
4514
- });
4515
- var WorkspaceOAuthRequestSchema = z168.object({
4515
+ var IntegrationTokenSchemaOld = z168.object({
4516
4516
  id: z168.string(),
4517
- workspaceId: z168.string(),
4518
4517
  provider: OAuthProviderSchema,
4518
+ scope: z168.string(),
4519
4519
  userId: z168.string(),
4520
- createdAt: z168.coerce.date()
4520
+ accessToken: z168.string(),
4521
+ refreshToken: z168.string(),
4522
+ expiresAt: z168.coerce.date(),
4523
+ externalUserId: z168.string().nullish()
4524
+ });
4525
+ var WorkspaceOAuthRequestSchema = z169.object({
4526
+ id: z169.string(),
4527
+ workspaceId: z169.string(),
4528
+ provider: OAuthProviderSchema,
4529
+ userId: z169.string(),
4530
+ createdAt: z169.coerce.date()
4521
4531
  });
4522
- var AnyRecord = z169.record(z169.any());
4532
+ var AnyRecord = z170.record(z170.any());
4523
4533
  var NpmPackageVersionDist = AnyRecord.and(
4524
- z169.object({
4525
- tarball: z169.string()
4534
+ z170.object({
4535
+ tarball: z170.string()
4526
4536
  })
4527
4537
  );
4528
4538
  var NpmPackageVersion = AnyRecord.and(
4529
- z169.object({
4539
+ z170.object({
4530
4540
  dist: NpmPackageVersionDist
4531
4541
  })
4532
4542
  );
4533
4543
  var NpmPackage = AnyRecord.and(
4534
- z169.object({
4535
- _id: z169.string(),
4536
- name: z169.string(),
4544
+ z170.object({
4545
+ _id: z170.string(),
4546
+ name: z170.string(),
4537
4547
  // e.g. "latest": "1.2.3"
4538
- "dist-tags": z169.record(z169.string(), z169.string()),
4548
+ "dist-tags": z170.record(z170.string(), z170.string()),
4539
4549
  // "1.2.3": {...}
4540
- versions: z169.record(NpmPackageVersion)
4550
+ versions: z170.record(NpmPackageVersion)
4541
4551
  })
4542
4552
  );
4543
- var NpmProxyTokenPayload = z170.object({
4544
- npmProxyRegistryConfigId: z170.string()
4553
+ var NpmProxyTokenPayload = z171.object({
4554
+ npmProxyRegistryConfigId: z171.string()
4545
4555
  });
4546
- var PersonalAccessToken = z171.object({
4547
- id: z171.string(),
4548
- userId: z171.string(),
4549
- workspaceId: z171.string().optional(),
4556
+ var PersonalAccessToken = z172.object({
4557
+ id: z172.string(),
4558
+ userId: z172.string(),
4559
+ workspaceId: z172.string().optional(),
4550
4560
  workspaceRole: WorkspaceRoleSchema.optional(),
4551
- name: z171.string(),
4552
- hidden: z171.boolean(),
4553
- token: z171.string(),
4554
- scope: z171.string().optional(),
4555
- createdAt: z171.coerce.date(),
4556
- expireAt: z171.coerce.date().optional()
4561
+ name: z172.string(),
4562
+ hidden: z172.boolean(),
4563
+ token: z172.string(),
4564
+ scope: z172.string().optional(),
4565
+ createdAt: z172.coerce.date(),
4566
+ expireAt: z172.coerce.date().optional()
4557
4567
  });
4558
4568
 
4559
4569
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
@@ -4970,204 +4980,204 @@ function integrationCredentialToDto(credential) {
4970
4980
  }
4971
4981
 
4972
4982
  // src/api/dto/aux/pagination.ts
4973
- import { z as z172 } from "zod";
4974
- var DTOPagination = z172.object({
4975
- limit: z172.string().optional(),
4976
- offset: z172.string().optional()
4983
+ import { z as z173 } from "zod";
4984
+ var DTOPagination = z173.object({
4985
+ limit: z173.string().optional(),
4986
+ offset: z173.string().optional()
4977
4987
  });
4978
4988
 
4979
4989
  // src/api/dto/bff/app-bootstrap-data.ts
4980
- import { z as z197 } from "zod";
4990
+ import { z as z198 } from "zod";
4981
4991
 
4982
4992
  // src/api/dto/design-systems/brand.ts
4983
- import { z as z173 } from "zod";
4984
- var DTOBrand = z173.object({
4985
- id: z173.string(),
4986
- designSystemVersionId: z173.string(),
4987
- persistentId: z173.string(),
4993
+ import { z as z174 } from "zod";
4994
+ var DTOBrand = z174.object({
4995
+ id: z174.string(),
4996
+ designSystemVersionId: z174.string(),
4997
+ persistentId: z174.string(),
4988
4998
  meta: ObjectMeta
4989
4999
  });
4990
- var DTOBrandGetResponse = z173.object({ brand: DTOBrand });
4991
- var DTOBrandCreateResponse = z173.object({
5000
+ var DTOBrandGetResponse = z174.object({ brand: DTOBrand });
5001
+ var DTOBrandCreateResponse = z174.object({
4992
5002
  brand: DTOBrand
4993
5003
  });
4994
- var DTOBrandsListResponse = z173.object({ brands: z173.array(DTOBrand) });
5004
+ var DTOBrandsListResponse = z174.object({ brands: z174.array(DTOBrand) });
4995
5005
 
4996
5006
  // src/api/dto/design-systems/data-source.ts
4997
- import { z as z174 } from "zod";
4998
- var DTODataSourceFigmaFileVersion = z174.object({
4999
- id: z174.string(),
5000
- created_at: z174.coerce.date(),
5001
- label: z174.string(),
5002
- description: z174.string()
5003
- });
5004
- var DTODataSourceFigmaCloud = z174.object({
5005
- fileId: z174.string(),
5007
+ import { z as z175 } from "zod";
5008
+ var DTODataSourceFigmaFileVersion = z175.object({
5009
+ id: z175.string(),
5010
+ created_at: z175.coerce.date(),
5011
+ label: z175.string(),
5012
+ description: z175.string()
5013
+ });
5014
+ var DTODataSourceFigmaCloud = z175.object({
5015
+ fileId: z175.string(),
5006
5016
  state: DataSourceFigmaState,
5007
5017
  autoImportMode: DataSourceAutoImportMode,
5008
- fileThumbnailUrl: z174.string().optional(),
5018
+ fileThumbnailUrl: z175.string().optional(),
5009
5019
  lastImportResult: SourceImportSummary.nullish(),
5010
- lastImportedAt: z174.date().nullish(),
5020
+ lastImportedAt: z175.date().nullish(),
5011
5021
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5012
- lastUpdatesCheckedAt: z174.date().nullish(),
5013
- ownerId: z174.string(),
5014
- ownerUserName: z174.string().optional(),
5015
- preferredCredentialId: z174.string().optional(),
5022
+ lastUpdatesCheckedAt: z175.date().nullish(),
5023
+ ownerId: z175.string(),
5024
+ ownerUserName: z175.string().optional(),
5025
+ preferredCredentialId: z175.string().optional(),
5016
5026
  stats: DataSourceStats
5017
5027
  });
5018
- var DTODataSourceFigma = z174.object({
5019
- id: z174.string(),
5020
- type: z174.literal(DataSourceRemoteType.Enum.Figma),
5021
- fileName: z174.string(),
5028
+ var DTODataSourceFigma = z175.object({
5029
+ id: z175.string(),
5030
+ type: z175.literal(DataSourceRemoteType.Enum.Figma),
5031
+ fileName: z175.string(),
5022
5032
  scope: DataSourceFigmaScope,
5023
- brandId: z174.string(),
5024
- themeId: z174.string().nullish(),
5033
+ brandId: z175.string(),
5034
+ themeId: z175.string().nullish(),
5025
5035
  cloud: DTODataSourceFigmaCloud.nullish(),
5026
- tokenStudio: z174.literal(null),
5027
- upload: z174.literal(null),
5028
- figmaVariablesPlugin: z174.literal(null)
5029
- });
5030
- var DTODataSourceTokenStudio = z174.object({
5031
- id: z174.string(),
5032
- type: z174.literal(DataSourceRemoteType.Enum.TokenStudio),
5033
- fileName: z174.string(),
5034
- brandId: z174.string(),
5035
- themeId: z174.string().nullish(),
5036
- cloud: z174.literal(null),
5037
- tokenStudio: z174.object({
5038
- settings: z174.object({
5039
- dryRun: z174.boolean(),
5040
- verbose: z174.boolean(),
5041
- preciseCopy: z174.boolean()
5036
+ tokenStudio: z175.literal(null),
5037
+ upload: z175.literal(null),
5038
+ figmaVariablesPlugin: z175.literal(null)
5039
+ });
5040
+ var DTODataSourceTokenStudio = z175.object({
5041
+ id: z175.string(),
5042
+ type: z175.literal(DataSourceRemoteType.Enum.TokenStudio),
5043
+ fileName: z175.string(),
5044
+ brandId: z175.string(),
5045
+ themeId: z175.string().nullish(),
5046
+ cloud: z175.literal(null),
5047
+ tokenStudio: z175.object({
5048
+ settings: z175.object({
5049
+ dryRun: z175.boolean(),
5050
+ verbose: z175.boolean(),
5051
+ preciseCopy: z175.boolean()
5042
5052
  }),
5043
- connectionName: z174.string(),
5044
- lastImportedAt: z174.date(),
5045
- lastImportedResults: z174.array(
5046
- z174.object({
5047
- mapping: z174.object({
5048
- tokenSets: z174.array(z174.string()),
5049
- supernovaBrand: z174.string(),
5050
- supernovaTheme: z174.string().optional()
5053
+ connectionName: z175.string(),
5054
+ lastImportedAt: z175.date(),
5055
+ lastImportedResults: z175.array(
5056
+ z175.object({
5057
+ mapping: z175.object({
5058
+ tokenSets: z175.array(z175.string()),
5059
+ supernovaBrand: z175.string(),
5060
+ supernovaTheme: z175.string().optional()
5051
5061
  }),
5052
- isFailed: z174.boolean(),
5053
- tokensCreated: z174.number(),
5054
- tokensDeleted: z174.number(),
5055
- tokensUpdated: z174.number()
5062
+ isFailed: z175.boolean(),
5063
+ tokensCreated: z175.number(),
5064
+ tokensDeleted: z175.number(),
5065
+ tokensUpdated: z175.number()
5056
5066
  })
5057
5067
  )
5058
5068
  }),
5059
- upload: z174.literal(null),
5060
- figmaVariablesPlugin: z174.literal(null)
5061
- });
5062
- var DTODataSourceFigmaVariablesPlugin = z174.object({
5063
- id: z174.string(),
5064
- type: z174.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5065
- fileName: z174.string(),
5066
- brandId: z174.string(),
5067
- themeId: z174.literal(null),
5068
- cloud: z174.literal(null),
5069
- tokenStudio: z174.literal(null),
5070
- upload: z174.object({
5071
- remoteId: z174.string(),
5069
+ upload: z175.literal(null),
5070
+ figmaVariablesPlugin: z175.literal(null)
5071
+ });
5072
+ var DTODataSourceFigmaVariablesPlugin = z175.object({
5073
+ id: z175.string(),
5074
+ type: z175.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5075
+ fileName: z175.string(),
5076
+ brandId: z175.string(),
5077
+ themeId: z175.literal(null),
5078
+ cloud: z175.literal(null),
5079
+ tokenStudio: z175.literal(null),
5080
+ upload: z175.object({
5081
+ remoteId: z175.string(),
5072
5082
  remoteSourceType: DataSourceUploadRemoteSource,
5073
- lastImportedAt: z174.date().optional(),
5083
+ lastImportedAt: z175.date().optional(),
5074
5084
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5075
5085
  }),
5076
- figmaVariablesPlugin: z174.object({
5077
- fileId: z174.string(),
5078
- lastImportedAt: z174.date().optional(),
5086
+ figmaVariablesPlugin: z175.object({
5087
+ fileId: z175.string(),
5088
+ lastImportedAt: z175.date().optional(),
5079
5089
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
5080
5090
  })
5081
5091
  });
5082
- var DTODataSource = z174.discriminatedUnion("type", [
5092
+ var DTODataSource = z175.discriminatedUnion("type", [
5083
5093
  DTODataSourceFigma,
5084
5094
  DTODataSourceFigmaVariablesPlugin,
5085
5095
  DTODataSourceTokenStudio
5086
5096
  ]);
5087
- var DTODataSourcesListResponse = z174.object({
5088
- sources: z174.array(DTODataSource)
5097
+ var DTODataSourcesListResponse = z175.object({
5098
+ sources: z175.array(DTODataSource)
5089
5099
  });
5090
- var DTODataSourceCreationResponse = z174.object({
5100
+ var DTODataSourceCreationResponse = z175.object({
5091
5101
  source: DTODataSource
5092
5102
  });
5093
5103
 
5094
5104
  // src/api/dto/design-systems/design-system.ts
5095
- import { z as z175 } from "zod";
5105
+ import { z as z176 } from "zod";
5096
5106
  var DTODesignSystem = DesignSystem.omit({
5097
5107
  name: true,
5098
5108
  description: true,
5099
5109
  docExporterId: true
5100
5110
  }).extend({
5101
5111
  meta: ObjectMeta,
5102
- docExporterId: z175.string(),
5103
- sources: z175.array(z175.any()),
5112
+ docExporterId: z176.string(),
5113
+ sources: z176.array(z176.any()),
5104
5114
  role: WorkspaceRoleSchema.optional()
5105
5115
  });
5106
- var DTODesignSystemResponse = z175.object({
5116
+ var DTODesignSystemResponse = z176.object({
5107
5117
  designSystem: DTODesignSystem
5108
5118
  });
5109
- var DTODesignSystemsListResponse = z175.object({
5119
+ var DTODesignSystemsListResponse = z176.object({
5110
5120
  designSystems: DTODesignSystem.array()
5111
5121
  });
5112
- var DTODesignSystemCreateInput = z175.object({
5113
- workspaceId: z175.string(),
5122
+ var DTODesignSystemCreateInput = z176.object({
5123
+ workspaceId: z176.string(),
5114
5124
  meta: ObjectMeta.optional(),
5115
- name: z175.string().min(2).max(64).optional(),
5116
- description: z175.string().max(1024).optional(),
5125
+ name: z176.string().min(2).max(64).optional(),
5126
+ description: z176.string().max(1024).optional(),
5117
5127
  accessMode: DesignSystemAccessMode.optional(),
5118
- inviteUserIds: z175.string().array().optional()
5128
+ inviteUserIds: z176.string().array().optional()
5119
5129
  });
5120
5130
 
5121
5131
  // src/api/dto/design-systems/elements-diff.ts
5122
- import { z as z176 } from "zod";
5123
- var DTODiffCountBase = z176.object({
5124
- created: z176.number(),
5125
- updated: z176.number(),
5126
- deleted: z176.number()
5132
+ import { z as z177 } from "zod";
5133
+ var DTODiffCountBase = z177.object({
5134
+ created: z177.number(),
5135
+ updated: z177.number(),
5136
+ deleted: z177.number()
5127
5137
  });
5128
- var DTODesignElementsDataDiffResponse = z176.object({
5138
+ var DTODesignElementsDataDiffResponse = z177.object({
5129
5139
  tokens: DTODiffCountBase,
5130
5140
  assets: DTODiffCountBase
5131
5141
  });
5132
5142
 
5133
5143
  // src/api/dto/design-systems/exporter-property.ts
5134
- import { z as z177 } from "zod";
5135
- var DTOExporterProperty = z177.any({});
5136
- var DTOExporterPropertyListResponse = z177.object({ items: z177.array(DTOExporterProperty) });
5144
+ import { z as z178 } from "zod";
5145
+ var DTOExporterProperty = z178.any({});
5146
+ var DTOExporterPropertyListResponse = z178.object({ items: z178.array(DTOExporterProperty) });
5137
5147
 
5138
5148
  // src/api/dto/design-systems/members.ts
5139
- import { z as z178 } from "zod";
5140
- var DTODesignSystemMember = z178.object({
5141
- userId: z178.string()
5149
+ import { z as z179 } from "zod";
5150
+ var DTODesignSystemMember = z179.object({
5151
+ userId: z179.string()
5142
5152
  });
5143
- var DTODesignSystemInvitation = z178.object({
5144
- id: z178.string(),
5145
- workspaceInvitationId: z178.string()
5153
+ var DTODesignSystemInvitation = z179.object({
5154
+ id: z179.string(),
5155
+ workspaceInvitationId: z179.string()
5146
5156
  });
5147
- var DTODesignSystemMemberListResponse = z178.object({
5157
+ var DTODesignSystemMemberListResponse = z179.object({
5148
5158
  members: DTODesignSystemMember.array(),
5149
5159
  invitations: DTODesignSystemInvitation.array()
5150
5160
  });
5151
- var DTODesignSystemMembersUpdateResponse = z178.object({
5152
- ok: z178.literal(true)
5161
+ var DTODesignSystemMembersUpdateResponse = z179.object({
5162
+ ok: z179.literal(true)
5153
5163
  });
5154
5164
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5155
5165
 
5156
5166
  // src/api/dto/design-systems/version.ts
5157
- import { z as z189 } from "zod";
5167
+ import { z as z190 } from "zod";
5158
5168
 
5159
5169
  // src/api/payloads/design-systems/brand.ts
5160
- import { z as z179 } from "zod";
5161
- var DTOCreateBrandInput = z179.object({
5162
- persistentId: z179.string().uuid(),
5163
- meta: z179.object({
5164
- name: z179.string(),
5165
- description: z179.string()
5170
+ import { z as z180 } from "zod";
5171
+ var DTOCreateBrandInput = z180.object({
5172
+ persistentId: z180.string().uuid(),
5173
+ meta: z180.object({
5174
+ name: z180.string(),
5175
+ description: z180.string()
5166
5176
  })
5167
5177
  });
5168
5178
 
5169
5179
  // src/api/payloads/design-systems/update-design-system.ts
5170
- import { z as z180 } from "zod";
5180
+ import { z as z181 } from "zod";
5171
5181
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5172
5182
  id: true,
5173
5183
  workspaceId: true,
@@ -5179,40 +5189,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5179
5189
  }).extend({
5180
5190
  meta: ObjectMeta.partial().optional()
5181
5191
  });
5182
- var DTODesignSystemUpdateAccessModeInput = z180.object({
5192
+ var DTODesignSystemUpdateAccessModeInput = z181.object({
5183
5193
  accessMode: DesignSystemAccessMode,
5184
- retain: z180.object({
5185
- userIds: z180.string().array(),
5186
- inviteIds: z180.string().array()
5194
+ retain: z181.object({
5195
+ userIds: z181.string().array(),
5196
+ inviteIds: z181.string().array()
5187
5197
  }).optional()
5188
5198
  });
5189
5199
 
5190
5200
  // src/api/payloads/design-systems/version.ts
5191
- import { z as z181 } from "zod";
5192
- var ObjectMeta2 = z181.object({
5193
- name: z181.string().max(150).optional(),
5194
- description: z181.string().max(2e3).optional()
5201
+ import { z as z182 } from "zod";
5202
+ var ObjectMeta2 = z182.object({
5203
+ name: z182.string().max(150).optional(),
5204
+ description: z182.string().max(2e3).optional()
5195
5205
  });
5196
5206
  function validateDesignSystemVersion(version) {
5197
5207
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5198
5208
  return urlCompliantRegex.test(version);
5199
5209
  }
5200
- var DTOCreateVersionInput = z181.object({
5210
+ var DTOCreateVersionInput = z182.object({
5201
5211
  meta: ObjectMeta2,
5202
- version: z181.string().refine(validateDesignSystemVersion, {
5212
+ version: z182.string().refine(validateDesignSystemVersion, {
5203
5213
  message: "Invalid semantic versioning format"
5204
5214
  }),
5205
- changeLog: z181.string().optional()
5215
+ changeLog: z182.string().optional()
5206
5216
  });
5207
- var DTOUpdateVersionInput = z181.object({
5217
+ var DTOUpdateVersionInput = z182.object({
5208
5218
  meta: ObjectMeta2,
5209
- version: z181.string(),
5219
+ version: z182.string(),
5210
5220
  // required for PUT, but not editable
5211
- changeLog: z181.string()
5221
+ changeLog: z182.string()
5212
5222
  });
5213
5223
 
5214
5224
  // src/api/payloads/documentation/block-definitions.ts
5215
- import { z as z182 } from "zod";
5225
+ import { z as z183 } from "zod";
5216
5226
 
5217
5227
  // src/api/dto/documentation/block-definition.ts
5218
5228
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5224,60 +5234,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5224
5234
  var DTOPageBlockDefinition = PageBlockDefinition;
5225
5235
 
5226
5236
  // src/api/payloads/documentation/block-definitions.ts
5227
- var DTOGetBlockDefinitionsOutput = z182.object({
5228
- definitions: z182.array(DTOPageBlockDefinition)
5237
+ var DTOGetBlockDefinitionsOutput = z183.object({
5238
+ definitions: z183.array(DTOPageBlockDefinition)
5229
5239
  });
5230
5240
 
5231
5241
  // src/api/payloads/documentation/design-data-doc-diff.ts
5232
- import { z as z183 } from "zod";
5233
- var DTODocumentationPublishTypeQueryParams = z183.object({
5234
- environment: z183.enum(["Live", "Preview"])
5242
+ import { z as z184 } from "zod";
5243
+ var DTODocumentationPublishTypeQueryParams = z184.object({
5244
+ environment: z184.enum(["Live", "Preview"])
5235
5245
  });
5236
5246
 
5237
5247
  // src/api/payloads/export/pipeline.ts
5238
- import { z as z184 } from "zod";
5239
- var DTOPipelineCreateBody = z184.object({
5240
- name: z184.string(),
5241
- exporterId: z184.string(),
5242
- designSystemId: z184.string(),
5243
- isEnabled: z184.boolean(),
5248
+ import { z as z185 } from "zod";
5249
+ var DTOPipelineCreateBody = z185.object({
5250
+ name: z185.string(),
5251
+ exporterId: z185.string(),
5252
+ designSystemId: z185.string(),
5253
+ isEnabled: z185.boolean(),
5244
5254
  eventType: PipelineEventType,
5245
- brandPersistentId: z184.string().optional(),
5246
- themePersistentId: z184.string().optional(),
5247
- themePersistentIds: z184.string().array().optional(),
5255
+ brandPersistentId: z185.string().optional(),
5256
+ themePersistentId: z185.string().optional(),
5257
+ themePersistentIds: z185.string().array().optional(),
5248
5258
  destination: PipelineDestinationType.optional(),
5249
5259
  gitQuery: GitObjectsQuery,
5250
- destinations: z184.object({
5260
+ destinations: z185.object({
5251
5261
  s3: ExporterDestinationS3.nullish(),
5252
5262
  azure: ExporterDestinationAzure.nullish(),
5253
5263
  bitbucket: ExporterDestinationBitbucket.nullish(),
5254
5264
  github: ExporterDestinationGithub.nullish(),
5255
5265
  gitlab: ExporterDestinationGitlab.nullish(),
5256
5266
  documentation: ExporterDestinationDocs.nullish(),
5257
- webhookUrl: z184.string().nullish()
5267
+ webhookUrl: z185.string().nullish()
5258
5268
  })
5259
5269
  });
5260
5270
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5261
- id: z184.string()
5271
+ id: z185.string()
5262
5272
  });
5263
- var DTOPipelineTriggerBody = z184.object({
5264
- designSystemVersionId: z184.string()
5273
+ var DTOPipelineTriggerBody = z185.object({
5274
+ designSystemVersionId: z185.string()
5265
5275
  });
5266
5276
 
5267
5277
  // src/api/payloads/liveblocks/auth.ts
5268
- import { z as z185 } from "zod";
5269
- var DTOLiveblocksAuthRequest = z185.object({
5270
- room: z185.string().optional()
5278
+ import { z as z186 } from "zod";
5279
+ var DTOLiveblocksAuthRequest = z186.object({
5280
+ room: z186.string().optional()
5271
5281
  });
5272
5282
 
5273
5283
  // src/api/payloads/users/notifications/notification-settings.ts
5274
- import { z as z186 } from "zod";
5275
- var DTOUpdateUserNotificationSettingsPayload = z186.object({
5284
+ import { z as z187 } from "zod";
5285
+ var DTOUpdateUserNotificationSettingsPayload = z187.object({
5276
5286
  notificationSettings: UserNotificationSettings
5277
5287
  });
5278
- var DTOUserNotificationSettingsResponse = z186.object({
5279
- userId: z186.string(),
5280
- workspaceId: z186.string(),
5288
+ var DTOUserNotificationSettingsResponse = z187.object({
5289
+ userId: z187.string(),
5290
+ workspaceId: z187.string(),
5281
5291
  notificationSettings: UserNotificationSettings
5282
5292
  });
5283
5293
 
@@ -5285,7 +5295,7 @@ var DTOUserNotificationSettingsResponse = z186.object({
5285
5295
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5286
5296
 
5287
5297
  // src/api/payloads/workspaces/workspace-configuration.ts
5288
- import { z as z187 } from "zod";
5298
+ import { z as z188 } from "zod";
5289
5299
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5290
5300
  function validateSsoPayload(ssoPayload) {
5291
5301
  const keys = [];
@@ -5308,21 +5318,21 @@ function validateSsoPayload(ssoPayload) {
5308
5318
  keys
5309
5319
  };
5310
5320
  }
5311
- var NpmRegistryInput = z187.object({
5312
- enabledScopes: z187.array(z187.string()),
5313
- customRegistryUrl: z187.string().optional(),
5314
- bypassProxy: z187.boolean().optional(),
5315
- npmProxyRegistryConfigId: z187.string().optional(),
5316
- npmProxyVersion: z187.number().optional(),
5317
- registryType: z187.string(),
5318
- authType: z187.string(),
5319
- authHeaderName: z187.string(),
5320
- authHeaderValue: z187.string(),
5321
- accessToken: z187.string(),
5322
- username: z187.string(),
5323
- password: z187.string()
5324
- });
5325
- var WorkspaceConfigurationPayload = z187.object({
5321
+ var NpmRegistryInput = z188.object({
5322
+ enabledScopes: z188.array(z188.string()),
5323
+ customRegistryUrl: z188.string().optional(),
5324
+ bypassProxy: z188.boolean().optional(),
5325
+ npmProxyRegistryConfigId: z188.string().optional(),
5326
+ npmProxyVersion: z188.number().optional(),
5327
+ registryType: z188.string(),
5328
+ authType: z188.string(),
5329
+ authHeaderName: z188.string(),
5330
+ authHeaderValue: z188.string(),
5331
+ accessToken: z188.string(),
5332
+ username: z188.string(),
5333
+ password: z188.string()
5334
+ });
5335
+ var WorkspaceConfigurationPayload = z188.object({
5326
5336
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5327
5337
  sso: SsoProvider.partial().optional(),
5328
5338
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5330,211 +5340,211 @@ var WorkspaceConfigurationPayload = z187.object({
5330
5340
  });
5331
5341
 
5332
5342
  // src/api/payloads/workspaces/workspace-integrations.ts
5333
- import { z as z188 } from "zod";
5334
- var DTOWorkspaceIntegrationOauthInput = z188.object({
5343
+ import { z as z189 } from "zod";
5344
+ var DTOWorkspaceIntegrationOauthInput = z189.object({
5335
5345
  type: IntegrationType
5336
5346
  });
5337
- var DTOWorkspaceIntegrationPATInput = z188.object({
5338
- userId: z188.string(),
5347
+ var DTOWorkspaceIntegrationPATInput = z189.object({
5348
+ userId: z189.string(),
5339
5349
  type: IntegrationType,
5340
5350
  token: IntegrationToken
5341
5351
  });
5342
- var DTOWorkspaceIntegrationGetGitObjectsInput = z188.object({
5343
- organization: z188.string().optional(),
5352
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z189.object({
5353
+ organization: z189.string().optional(),
5344
5354
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5345
- project: z188.string().optional(),
5355
+ project: z189.string().optional(),
5346
5356
  // Only for Bitbucket and Azure
5347
- repository: z188.string().optional(),
5357
+ repository: z189.string().optional(),
5348
5358
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5349
- branch: z188.string().optional(),
5359
+ branch: z189.string().optional(),
5350
5360
  // For all providers, useful for PR creations.
5351
- user: z188.string().optional()
5361
+ user: z189.string().optional()
5352
5362
  // Only for Gitlab User Repositories
5353
5363
  });
5354
5364
 
5355
5365
  // src/api/dto/design-systems/version.ts
5356
- var DTODesignSystemVersion = z189.object({
5357
- id: z189.string(),
5358
- createdAt: z189.date(),
5366
+ var DTODesignSystemVersion = z190.object({
5367
+ id: z190.string(),
5368
+ createdAt: z190.date(),
5359
5369
  meta: ObjectMeta,
5360
- version: z189.string(),
5361
- isReadonly: z189.boolean(),
5362
- changeLog: z189.string(),
5363
- designSystemId: z189.string()
5370
+ version: z190.string(),
5371
+ isReadonly: z190.boolean(),
5372
+ changeLog: z190.string(),
5373
+ designSystemId: z190.string()
5364
5374
  });
5365
- var DTODesignSystemVersionsListResponse = z189.object({
5366
- designSystemVersions: z189.array(DTODesignSystemVersion)
5375
+ var DTODesignSystemVersionsListResponse = z190.object({
5376
+ designSystemVersions: z190.array(DTODesignSystemVersion)
5367
5377
  });
5368
- var DTODesignSystemVersionGetResponse = z189.object({
5378
+ var DTODesignSystemVersionGetResponse = z190.object({
5369
5379
  designSystemVersion: DTODesignSystemVersion
5370
5380
  });
5371
- var DTODesignSystemVersionCreationResponse = z189.object({
5381
+ var DTODesignSystemVersionCreationResponse = z190.object({
5372
5382
  meta: ObjectMeta,
5373
- version: z189.string(),
5374
- changeLog: z189.string(),
5375
- isReadOnly: z189.boolean(),
5376
- designSystemId: z189.string(),
5377
- jobId: z189.string()
5378
- });
5379
- var VersionSQSPayload = z189.object({
5380
- jobId: z189.string(),
5381
- designSystemId: z189.string(),
5383
+ version: z190.string(),
5384
+ changeLog: z190.string(),
5385
+ isReadOnly: z190.boolean(),
5386
+ designSystemId: z190.string(),
5387
+ jobId: z190.string()
5388
+ });
5389
+ var VersionSQSPayload = z190.object({
5390
+ jobId: z190.string(),
5391
+ designSystemId: z190.string(),
5382
5392
  input: DTOCreateVersionInput
5383
5393
  });
5384
- var DTODesignSystemVersionJobsResponse = z189.object({
5385
- jobs: z189.array(VersionCreationJob)
5394
+ var DTODesignSystemVersionJobsResponse = z190.object({
5395
+ jobs: z190.array(VersionCreationJob)
5386
5396
  });
5387
- var DTODesignSystemVersionJobStatusResponse = z189.object({
5397
+ var DTODesignSystemVersionJobStatusResponse = z190.object({
5388
5398
  job: VersionCreationJob
5389
5399
  });
5390
5400
 
5391
5401
  // src/api/dto/design-systems/view.ts
5392
- import { z as z190 } from "zod";
5393
- var DTOElementViewColumnSharedAttributes = z190.object({
5394
- id: z190.string(),
5395
- persistentId: z190.string(),
5396
- width: z190.number()
5402
+ import { z as z191 } from "zod";
5403
+ var DTOElementViewColumnSharedAttributes = z191.object({
5404
+ id: z191.string(),
5405
+ persistentId: z191.string(),
5406
+ width: z191.number()
5397
5407
  });
5398
5408
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5399
- type: z190.literal("BaseProperty"),
5409
+ type: z191.literal("BaseProperty"),
5400
5410
  basePropertyType: ElementViewBaseColumnType
5401
5411
  });
5402
5412
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5403
- type: z190.literal("PropertyDefinition"),
5404
- propertyDefinitionId: z190.string()
5413
+ type: z191.literal("PropertyDefinition"),
5414
+ propertyDefinitionId: z191.string()
5405
5415
  });
5406
5416
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5407
- type: z190.literal("Theme"),
5408
- themeId: z190.string()
5417
+ type: z191.literal("Theme"),
5418
+ themeId: z191.string()
5409
5419
  });
5410
- var DTOElementViewColumn = z190.discriminatedUnion("type", [
5420
+ var DTOElementViewColumn = z191.discriminatedUnion("type", [
5411
5421
  DTOElementViewBasePropertyColumn,
5412
5422
  DTOElementViewPropertyDefinitionColumn,
5413
5423
  DTOElementViewThemeColumn
5414
5424
  ]);
5415
- var DTOElementView = z190.object({
5425
+ var DTOElementView = z191.object({
5416
5426
  meta: ObjectMeta,
5417
- persistentId: z190.string(),
5427
+ persistentId: z191.string(),
5418
5428
  targetElementType: ElementPropertyTargetType,
5419
- id: z190.string(),
5420
- isDefault: z190.boolean(),
5421
- columns: z190.array(DTOElementViewColumn)
5429
+ id: z191.string(),
5430
+ isDefault: z191.boolean(),
5431
+ columns: z191.array(DTOElementViewColumn)
5422
5432
  });
5423
- var DTOElementViewsListResponse = z190.object({
5424
- elementDataViews: z190.array(DTOElementView)
5433
+ var DTOElementViewsListResponse = z191.object({
5434
+ elementDataViews: z191.array(DTOElementView)
5425
5435
  });
5426
5436
 
5427
5437
  // src/api/dto/workspaces/git.ts
5428
- import { z as z191 } from "zod";
5429
- var DTOGitOrganization = z191.object({
5430
- id: z191.string(),
5431
- name: z191.string(),
5432
- url: z191.string(),
5433
- slug: z191.string()
5438
+ import { z as z192 } from "zod";
5439
+ var DTOGitOrganization = z192.object({
5440
+ id: z192.string(),
5441
+ name: z192.string(),
5442
+ url: z192.string(),
5443
+ slug: z192.string()
5434
5444
  });
5435
- var DTOGitProject = z191.object({
5436
- id: z191.string(),
5437
- name: z191.string(),
5438
- url: z191.string(),
5439
- slug: z191.string()
5445
+ var DTOGitProject = z192.object({
5446
+ id: z192.string(),
5447
+ name: z192.string(),
5448
+ url: z192.string(),
5449
+ slug: z192.string()
5440
5450
  });
5441
- var DTOGitRepository = z191.object({
5442
- id: z191.string(),
5443
- name: z191.string(),
5444
- url: z191.string(),
5445
- slug: z191.string(),
5446
- defaultBranch: z191.string().optional()
5451
+ var DTOGitRepository = z192.object({
5452
+ id: z192.string(),
5453
+ name: z192.string(),
5454
+ url: z192.string(),
5455
+ slug: z192.string(),
5456
+ defaultBranch: z192.string().optional()
5447
5457
  });
5448
- var DTOGitBranch = z191.object({
5449
- name: z191.string(),
5450
- lastCommitId: z191.string()
5458
+ var DTOGitBranch = z192.object({
5459
+ name: z192.string(),
5460
+ lastCommitId: z192.string()
5451
5461
  });
5452
5462
 
5453
5463
  // src/api/dto/workspaces/integrations.ts
5454
- import { z as z192 } from "zod";
5464
+ import { z as z193 } from "zod";
5455
5465
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5456
5466
  accessToken: true,
5457
5467
  refreshToken: true
5458
5468
  });
5459
- var DTOIntegration = z192.object({
5460
- id: z192.string(),
5461
- workspaceId: z192.string(),
5469
+ var DTOIntegration = z193.object({
5470
+ id: z193.string(),
5471
+ workspaceId: z193.string(),
5462
5472
  type: ExtendedIntegrationType,
5463
- createdAt: z192.coerce.date(),
5464
- integrationCredentials: z192.array(DTOIntegrationCredentials).optional(),
5465
- integrationDesignSystems: z192.array(IntegrationDesignSystem).optional()
5473
+ createdAt: z193.coerce.date(),
5474
+ integrationCredentials: z193.array(DTOIntegrationCredentials).optional(),
5475
+ integrationDesignSystems: z193.array(IntegrationDesignSystem).optional()
5466
5476
  });
5467
- var DTOIntegrationOAuthGetResponse = z192.object({
5468
- url: z192.string()
5477
+ var DTOIntegrationOAuthGetResponse = z193.object({
5478
+ url: z193.string()
5469
5479
  });
5470
- var DTOIntegrationPostResponse = z192.object({
5480
+ var DTOIntegrationPostResponse = z193.object({
5471
5481
  integration: DTOIntegration
5472
5482
  });
5473
- var DTOIntegrationsGetListResponse = z192.object({
5483
+ var DTOIntegrationsGetListResponse = z193.object({
5474
5484
  integrations: DTOIntegration.array()
5475
5485
  });
5476
5486
 
5477
5487
  // src/api/dto/workspaces/invitations.ts
5478
- import { z as z193 } from "zod";
5479
- var DTOWorkspaceInvitationInput = z193.object({
5480
- email: z193.string().email(),
5488
+ import { z as z194 } from "zod";
5489
+ var DTOWorkspaceInvitationInput = z194.object({
5490
+ email: z194.string().email(),
5481
5491
  role: WorkspaceRoleSchema
5482
5492
  });
5483
- var DTOWorkspaceInvitationsListInput = z193.object({
5493
+ var DTOWorkspaceInvitationsListInput = z194.object({
5484
5494
  invites: DTOWorkspaceInvitationInput.array().max(100),
5485
- designSystemId: z193.string().optional()
5495
+ designSystemId: z194.string().optional()
5486
5496
  });
5487
- var DTOWorkspaceInvitationsResponse = z193.object({
5497
+ var DTOWorkspaceInvitationsResponse = z194.object({
5488
5498
  invitations: WorkspaceInvitation.array()
5489
5499
  });
5490
5500
 
5491
5501
  // src/api/dto/workspaces/membership.ts
5492
- import { z as z196 } from "zod";
5502
+ import { z as z197 } from "zod";
5493
5503
 
5494
5504
  // src/api/dto/workspaces/workspace.ts
5495
- import { z as z195 } from "zod";
5505
+ import { z as z196 } from "zod";
5496
5506
 
5497
5507
  // src/api/dto/workspaces/npm-registry.ts
5498
- import { z as z194 } from "zod";
5508
+ import { z as z195 } from "zod";
5499
5509
  var DTONpmRegistryConfigConstants = {
5500
5510
  passwordPlaceholder: "redacted"
5501
5511
  };
5502
- var DTONpmRegistryConfig = z194.object({
5512
+ var DTONpmRegistryConfig = z195.object({
5503
5513
  // Registry basic configuration
5504
5514
  registryType: NpmRegistryType,
5505
- registryUrl: z194.string(),
5506
- customRegistryUrl: z194.string().optional(),
5515
+ registryUrl: z195.string(),
5516
+ customRegistryUrl: z195.string().optional(),
5507
5517
  // URL of Supernova NPM packages proxy
5508
- proxyUrl: z194.string(),
5518
+ proxyUrl: z195.string(),
5509
5519
  // Auth configuration
5510
5520
  authType: NpmRegistryAuthType,
5511
- accessToken: z194.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5512
- username: z194.string().optional(),
5513
- password: z194.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5521
+ accessToken: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5522
+ username: z195.string().optional(),
5523
+ password: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5514
5524
  // NPM package scopes for whih the proxy should be enabled
5515
- enabledScopes: z194.array(z194.string()),
5525
+ enabledScopes: z195.array(z195.string()),
5516
5526
  // True if client should bypass Supernova proxy and connect directly to the registry
5517
5527
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5518
- bypassProxy: z194.boolean()
5528
+ bypassProxy: z195.boolean()
5519
5529
  });
5520
5530
 
5521
5531
  // src/api/dto/workspaces/workspace.ts
5522
- var DTOWorkspace = z195.object({
5523
- id: z195.string(),
5532
+ var DTOWorkspace = z196.object({
5533
+ id: z196.string(),
5524
5534
  profile: WorkspaceProfile,
5525
5535
  subscription: Subscription,
5526
5536
  npmRegistry: DTONpmRegistryConfig.optional()
5527
5537
  });
5528
- var DTOWorkspaceCreateInput = z195.object({
5529
- name: z195.string()
5538
+ var DTOWorkspaceCreateInput = z196.object({
5539
+ name: z196.string()
5530
5540
  });
5531
- var DTOWorkspaceResponse = z195.object({
5541
+ var DTOWorkspaceResponse = z196.object({
5532
5542
  workspace: DTOWorkspace
5533
5543
  });
5534
5544
 
5535
5545
  // src/api/dto/workspaces/membership.ts
5536
- var DTOWorkspaceRole = z196.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5537
- var DTOUserWorkspaceMembership = z196.object({
5546
+ var DTOWorkspaceRole = z197.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5547
+ var DTOUserWorkspaceMembership = z197.object({
5538
5548
  // Workspace the user is a member of
5539
5549
  workspace: DTOWorkspace,
5540
5550
  // Assigned role the user has in the workspace
@@ -5544,18 +5554,18 @@ var DTOUserWorkspaceMembership = z196.object({
5544
5554
  // when a workspace's subscription is downgraded to free tier
5545
5555
  effectiveRole: DTOWorkspaceRole
5546
5556
  });
5547
- var DTOUserWorkspaceMembershipsResponse = z196.object({
5548
- membership: z196.array(DTOUserWorkspaceMembership)
5557
+ var DTOUserWorkspaceMembershipsResponse = z197.object({
5558
+ membership: z197.array(DTOUserWorkspaceMembership)
5549
5559
  });
5550
5560
 
5551
5561
  // src/api/dto/bff/app-bootstrap-data.ts
5552
- var DTOAppBootstrapDataQuery = z197.object({
5553
- preferredWorkspaceId: z197.string().optional(),
5554
- preferredDesignSystemId: z197.string().optional(),
5555
- preferredVersionId: z197.string().optional(),
5556
- preferredBrandId: z197.string().optional()
5562
+ var DTOAppBootstrapDataQuery = z198.object({
5563
+ preferredWorkspaceId: z198.string().optional(),
5564
+ preferredDesignSystemId: z198.string().optional(),
5565
+ preferredVersionId: z198.string().optional(),
5566
+ preferredBrandId: z198.string().optional()
5557
5567
  });
5558
- var DTOAppBootstrapDataResponse = z197.object({
5568
+ var DTOAppBootstrapDataResponse = z198.object({
5559
5569
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5560
5570
  designSystem: DTODesignSystem.optional(),
5561
5571
  version: DTODesignSystemVersion.optional(),
@@ -5563,19 +5573,19 @@ var DTOAppBootstrapDataResponse = z197.object({
5563
5573
  });
5564
5574
 
5565
5575
  // src/api/dto/documentation/anchor.ts
5566
- import { z as z198 } from "zod";
5576
+ import { z as z199 } from "zod";
5567
5577
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5568
- var DTOGetDocumentationPageAnchorsResponse = z198.object({
5569
- anchors: z198.array(DTODocumentationPageAnchor)
5578
+ var DTOGetDocumentationPageAnchorsResponse = z199.object({
5579
+ anchors: z199.array(DTODocumentationPageAnchor)
5570
5580
  });
5571
5581
 
5572
5582
  // src/api/dto/documentation/approvals.ts
5573
- import { z as z199 } from "zod";
5583
+ import { z as z200 } from "zod";
5574
5584
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
5575
- var DTODocumentationGroupApprovalState = z199.object({
5576
- persistentId: z199.string(),
5577
- groupId: z199.string(),
5578
- designSystemVersionId: z199.string(),
5585
+ var DTODocumentationGroupApprovalState = z200.object({
5586
+ persistentId: z200.string(),
5587
+ groupId: z200.string(),
5588
+ designSystemVersionId: z200.string(),
5579
5589
  approvalState: DocumentationPageApprovalState
5580
5590
  });
5581
5591
 
@@ -5583,68 +5593,68 @@ var DTODocumentationGroupApprovalState = z199.object({
5583
5593
  var DTOPageBlockItemV2 = PageBlockItemV2;
5584
5594
 
5585
5595
  // src/api/dto/documentation/documentation-page-snapshot.ts
5586
- import { z as z204 } from "zod";
5596
+ import { z as z205 } from "zod";
5587
5597
 
5588
5598
  // src/api/dto/elements/documentation/page-v2.ts
5589
- import { z as z203 } from "zod";
5599
+ import { z as z204 } from "zod";
5590
5600
 
5591
5601
  // src/api/dto/elements/documentation/draft-state.ts
5592
- import { z as z201 } from "zod";
5602
+ import { z as z202 } from "zod";
5593
5603
 
5594
5604
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5595
- import { z as z200 } from "zod";
5605
+ import { z as z201 } from "zod";
5596
5606
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5597
- var DTODocumentationItemConfigurationV2 = z200.object({
5598
- showSidebar: z200.boolean(),
5599
- isPrivate: z200.boolean(),
5600
- isHidden: z200.boolean(),
5607
+ var DTODocumentationItemConfigurationV2 = z201.object({
5608
+ showSidebar: z201.boolean(),
5609
+ isPrivate: z201.boolean(),
5610
+ isHidden: z201.boolean(),
5601
5611
  header: DTODocumentationItemHeaderV2
5602
5612
  });
5603
5613
 
5604
5614
  // src/api/dto/elements/documentation/draft-state.ts
5605
- var DTODocumentationDraftChangeType = z201.enum(["Created", "Updated", "Deleted"]);
5606
- var DTODocumentationDraftStateCreated = z201.object({
5607
- changeType: z201.literal(DTODocumentationDraftChangeType.enum.Created)
5608
- });
5609
- var DTODocumentationDraftStateUpdated = z201.object({
5610
- changeType: z201.literal(DTODocumentationDraftChangeType.enum.Updated),
5611
- changes: z201.object({
5612
- previousTitle: z201.string().optional(),
5615
+ var DTODocumentationDraftChangeType = z202.enum(["Created", "Updated", "Deleted"]);
5616
+ var DTODocumentationDraftStateCreated = z202.object({
5617
+ changeType: z202.literal(DTODocumentationDraftChangeType.enum.Created)
5618
+ });
5619
+ var DTODocumentationDraftStateUpdated = z202.object({
5620
+ changeType: z202.literal(DTODocumentationDraftChangeType.enum.Updated),
5621
+ changes: z202.object({
5622
+ previousTitle: z202.string().optional(),
5613
5623
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5614
- previousContentHash: z201.string().optional()
5624
+ previousContentHash: z202.string().optional()
5615
5625
  })
5616
5626
  });
5617
- var DTODocumentationDraftStateDeleted = z201.object({
5618
- changeType: z201.literal(DTODocumentationDraftChangeType.enum.Deleted),
5619
- deletedAt: z201.coerce.date(),
5620
- deletedByUserId: z201.string()
5627
+ var DTODocumentationDraftStateDeleted = z202.object({
5628
+ changeType: z202.literal(DTODocumentationDraftChangeType.enum.Deleted),
5629
+ deletedAt: z202.coerce.date(),
5630
+ deletedByUserId: z202.string()
5621
5631
  });
5622
- var DTODocumentationDraftState = z201.discriminatedUnion("changeType", [
5632
+ var DTODocumentationDraftState = z202.discriminatedUnion("changeType", [
5623
5633
  DTODocumentationDraftStateCreated,
5624
5634
  DTODocumentationDraftStateUpdated,
5625
5635
  DTODocumentationDraftStateDeleted
5626
5636
  ]);
5627
5637
 
5628
5638
  // src/api/dto/elements/documentation/metadata.ts
5629
- import { z as z202 } from "zod";
5630
- var DTODocumentationPublishMetadata = z202.object({
5631
- lastPublishedByUserId: z202.string(),
5632
- lastPublishedAt: z202.coerce.date()
5639
+ import { z as z203 } from "zod";
5640
+ var DTODocumentationPublishMetadata = z203.object({
5641
+ lastPublishedByUserId: z203.string(),
5642
+ lastPublishedAt: z203.coerce.date()
5633
5643
  });
5634
5644
 
5635
5645
  // src/api/dto/elements/documentation/page-v2.ts
5636
- var DTODocumentationPageV2 = z203.object({
5637
- id: z203.string(),
5638
- persistentId: z203.string(),
5639
- designSystemVersionId: z203.string(),
5640
- title: z203.string(),
5646
+ var DTODocumentationPageV2 = z204.object({
5647
+ id: z204.string(),
5648
+ persistentId: z204.string(),
5649
+ designSystemVersionId: z204.string(),
5650
+ title: z204.string(),
5641
5651
  configuration: DTODocumentationItemConfigurationV2,
5642
- shortPersistentId: z203.string(),
5643
- slug: z203.string().optional(),
5644
- userSlug: z203.string().optional(),
5645
- createdAt: z203.coerce.date(),
5646
- updatedAt: z203.coerce.date(),
5647
- path: z203.string(),
5652
+ shortPersistentId: z204.string(),
5653
+ slug: z204.string().optional(),
5654
+ userSlug: z204.string().optional(),
5655
+ createdAt: z204.coerce.date(),
5656
+ updatedAt: z204.coerce.date(),
5657
+ path: z204.string(),
5648
5658
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5649
5659
  draftState: DTODocumentationDraftState.optional(),
5650
5660
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -5652,197 +5662,197 @@ var DTODocumentationPageV2 = z203.object({
5652
5662
  /** Defines the approval state of the documentation page */
5653
5663
  approvalState: DTODocumentationPageApprovalState.optional(),
5654
5664
  // Backward compatibility
5655
- type: z203.literal("Page")
5665
+ type: z204.literal("Page")
5656
5666
  });
5657
- var DTOCreateDocumentationPageInputV2 = z203.object({
5667
+ var DTOCreateDocumentationPageInputV2 = z204.object({
5658
5668
  // Identifier
5659
- persistentId: z203.string().uuid(),
5669
+ persistentId: z204.string().uuid(),
5660
5670
  // Page properties
5661
- title: z203.string(),
5671
+ title: z204.string(),
5662
5672
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5663
5673
  // Page placement properties
5664
- parentPersistentId: z203.string().uuid(),
5665
- afterPersistentId: z203.string().uuid().nullish()
5674
+ parentPersistentId: z204.string().uuid(),
5675
+ afterPersistentId: z204.string().uuid().nullish()
5666
5676
  });
5667
- var DTOUpdateDocumentationPageInputV2 = z203.object({
5677
+ var DTOUpdateDocumentationPageInputV2 = z204.object({
5668
5678
  // Identifier of the group to update
5669
- id: z203.string(),
5679
+ id: z204.string(),
5670
5680
  // Page properties
5671
- title: z203.string().optional(),
5681
+ title: z204.string().optional(),
5672
5682
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5673
5683
  });
5674
- var DTOMoveDocumentationPageInputV2 = z203.object({
5684
+ var DTOMoveDocumentationPageInputV2 = z204.object({
5675
5685
  // Identifier of the group to update
5676
- id: z203.string(),
5686
+ id: z204.string(),
5677
5687
  // Page placement properties
5678
- parentPersistentId: z203.string().uuid(),
5679
- afterPersistentId: z203.string().uuid().nullish()
5688
+ parentPersistentId: z204.string().uuid(),
5689
+ afterPersistentId: z204.string().uuid().nullish()
5680
5690
  });
5681
- var DTODuplicateDocumentationPageInputV2 = z203.object({
5691
+ var DTODuplicateDocumentationPageInputV2 = z204.object({
5682
5692
  // Identifier of the page to duplicate from
5683
- id: z203.string(),
5693
+ id: z204.string(),
5684
5694
  // New page persistent id
5685
- persistentId: z203.string().uuid(),
5695
+ persistentId: z204.string().uuid(),
5686
5696
  // Page placement properties
5687
- parentPersistentId: z203.string().uuid(),
5688
- afterPersistentId: z203.string().uuid().nullish()
5697
+ parentPersistentId: z204.string().uuid(),
5698
+ afterPersistentId: z204.string().uuid().nullish()
5689
5699
  });
5690
- var DTODeleteDocumentationPageInputV2 = z203.object({
5700
+ var DTODeleteDocumentationPageInputV2 = z204.object({
5691
5701
  // Identifier
5692
- id: z203.string()
5702
+ id: z204.string()
5693
5703
  });
5694
- var DTORestoreDocumentationPageInput = z203.object({
5695
- persistentId: z203.string(),
5696
- snapshotId: z203.string().optional()
5704
+ var DTORestoreDocumentationPageInput = z204.object({
5705
+ persistentId: z204.string(),
5706
+ snapshotId: z204.string().optional()
5697
5707
  });
5698
- var DTORestoreDocumentationGroupInput = z203.object({
5699
- persistentId: z203.string(),
5700
- snapshotId: z203.string().optional()
5708
+ var DTORestoreDocumentationGroupInput = z204.object({
5709
+ persistentId: z204.string(),
5710
+ snapshotId: z204.string().optional()
5701
5711
  });
5702
- var DTODocumentationPageApprovalStateChangeInput = z203.object({
5703
- persistentId: z203.string(),
5712
+ var DTODocumentationPageApprovalStateChangeInput = z204.object({
5713
+ persistentId: z204.string(),
5704
5714
  approvalState: DocumentationPageApprovalState.optional()
5705
5715
  });
5706
5716
 
5707
5717
  // src/api/dto/documentation/documentation-page-snapshot.ts
5708
- var DTODocumentationPageSnapshot = z204.object({
5709
- id: z204.string(),
5710
- designSystemVersionId: z204.string(),
5711
- createdAt: z204.string(),
5712
- updatedAt: z204.string(),
5718
+ var DTODocumentationPageSnapshot = z205.object({
5719
+ id: z205.string(),
5720
+ designSystemVersionId: z205.string(),
5721
+ createdAt: z205.string(),
5722
+ updatedAt: z205.string(),
5713
5723
  documentationPage: DTODocumentationPageV2,
5714
- pageContentHash: z204.string(),
5724
+ pageContentHash: z205.string(),
5715
5725
  reason: DesignElementSnapshotReason
5716
5726
  });
5717
5727
 
5718
5728
  // src/api/dto/documentation/link-preview.ts
5719
- import { z as z205 } from "zod";
5720
- var DTODocumentationLinkPreviewResponse = z205.object({
5729
+ import { z as z206 } from "zod";
5730
+ var DTODocumentationLinkPreviewResponse = z206.object({
5721
5731
  linkPreview: DocumentationLinkPreview
5722
5732
  });
5723
- var DTODocumentationLinkPreviewRequest = z205.object({
5724
- url: z205.string().optional(),
5725
- documentationItemPersistentId: z205.string().optional()
5733
+ var DTODocumentationLinkPreviewRequest = z206.object({
5734
+ url: z206.string().optional(),
5735
+ documentationItemPersistentId: z206.string().optional()
5726
5736
  });
5727
5737
 
5728
5738
  // src/api/dto/documentation/publish.ts
5729
- import { z as z209 } from "zod";
5739
+ import { z as z210 } from "zod";
5730
5740
 
5731
5741
  // src/api/dto/export/exporter.ts
5732
- import { z as z206 } from "zod";
5733
- var DTOExporterType = z206.enum(["documentation", "code"]);
5734
- var DTOExporterSource = z206.enum(["git", "upload"]);
5735
- var DTOExporterMembershipRole = z206.enum(["Owner", "OwnerArchived", "User"]);
5736
- var DTOExporter = z206.object({
5737
- id: z206.string(),
5738
- name: z206.string(),
5739
- isPrivate: z206.boolean(),
5742
+ import { z as z207 } from "zod";
5743
+ var DTOExporterType = z207.enum(["documentation", "code"]);
5744
+ var DTOExporterSource = z207.enum(["git", "upload"]);
5745
+ var DTOExporterMembershipRole = z207.enum(["Owner", "OwnerArchived", "User"]);
5746
+ var DTOExporter = z207.object({
5747
+ id: z207.string(),
5748
+ name: z207.string(),
5749
+ isPrivate: z207.boolean(),
5740
5750
  exporterType: DTOExporterType,
5741
- isDefaultDocumentationExporter: z206.boolean(),
5742
- iconURL: z206.string().optional(),
5751
+ isDefaultDocumentationExporter: z207.boolean(),
5752
+ iconURL: z207.string().optional(),
5743
5753
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5744
5754
  customBlocks: PulsarCustomBlock.array(),
5745
- blockVariants: z206.record(z206.string(), PulsarContributionVariant.array()),
5746
- usesBrands: z206.boolean(),
5747
- usesThemes: z206.boolean(),
5755
+ blockVariants: z207.record(z207.string(), PulsarContributionVariant.array()),
5756
+ usesBrands: z207.boolean(),
5757
+ usesThemes: z207.boolean(),
5748
5758
  source: DTOExporterSource,
5749
- gitUrl: z206.string().optional(),
5750
- gitBranch: z206.string().optional(),
5751
- gitDirectory: z206.string().optional()
5759
+ gitUrl: z207.string().optional(),
5760
+ gitBranch: z207.string().optional(),
5761
+ gitDirectory: z207.string().optional()
5752
5762
  });
5753
- var DTOExporterMembership = z206.object({
5754
- workspaceId: z206.string(),
5755
- exporterId: z206.string(),
5763
+ var DTOExporterMembership = z207.object({
5764
+ workspaceId: z207.string(),
5765
+ exporterId: z207.string(),
5756
5766
  role: DTOExporterMembershipRole
5757
5767
  });
5758
- var DTOExporterCreateOutput = z206.object({
5768
+ var DTOExporterCreateOutput = z207.object({
5759
5769
  exporter: DTOExporter,
5760
5770
  membership: DTOExporterMembership
5761
5771
  });
5762
- var DTOExporterGitProviderEnum = z206.enum(["github", "gitlab", "bitbucket", "azure"]);
5763
- var DTOExporterCreateInput = z206.object({
5764
- url: z206.string(),
5772
+ var DTOExporterGitProviderEnum = z207.enum(["github", "gitlab", "bitbucket", "azure"]);
5773
+ var DTOExporterCreateInput = z207.object({
5774
+ url: z207.string(),
5765
5775
  provider: DTOExporterGitProviderEnum
5766
5776
  });
5767
- var DTOExporterUpdateInput = z206.object({
5768
- url: z206.string().optional()
5777
+ var DTOExporterUpdateInput = z207.object({
5778
+ url: z207.string().optional()
5769
5779
  });
5770
5780
 
5771
5781
  // src/api/dto/export/filter.ts
5772
5782
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5773
5783
 
5774
5784
  // src/api/dto/export/job.ts
5775
- import { z as z207 } from "zod";
5776
- var DTOExportJobCreatedBy = z207.object({
5777
- userId: z207.string(),
5778
- userName: z207.string()
5785
+ import { z as z208 } from "zod";
5786
+ var DTOExportJobCreatedBy = z208.object({
5787
+ userId: z208.string(),
5788
+ userName: z208.string()
5779
5789
  });
5780
- var DTOExportJobDesignSystemPreview = z207.object({
5781
- id: z207.string(),
5790
+ var DTOExportJobDesignSystemPreview = z208.object({
5791
+ id: z208.string(),
5782
5792
  meta: ObjectMeta
5783
5793
  });
5784
- var DTOExportJobDesignSystemVersionPreview = z207.object({
5785
- id: z207.string(),
5794
+ var DTOExportJobDesignSystemVersionPreview = z208.object({
5795
+ id: z208.string(),
5786
5796
  meta: ObjectMeta,
5787
- version: z207.string(),
5788
- isReadonly: z207.boolean()
5797
+ version: z208.string(),
5798
+ isReadonly: z208.boolean()
5789
5799
  });
5790
- var DTOExportJobDestinations = z207.object({
5800
+ var DTOExportJobDestinations = z208.object({
5791
5801
  s3: ExporterDestinationS3.optional(),
5792
5802
  azure: ExporterDestinationAzure.optional(),
5793
5803
  bitbucket: ExporterDestinationBitbucket.optional(),
5794
5804
  github: ExporterDestinationGithub.optional(),
5795
5805
  gitlab: ExporterDestinationGitlab.optional(),
5796
5806
  documentation: ExporterDestinationDocs.optional(),
5797
- webhookUrl: z207.string().optional()
5807
+ webhookUrl: z208.string().optional()
5798
5808
  });
5799
5809
  var DTOExportJobResult = ExportJobResult.omit({
5800
5810
  sndocs: true
5801
5811
  }).extend({
5802
5812
  documentation: ExportJobDocsDestinationResult.optional()
5803
5813
  });
5804
- var DTOExportJob = z207.object({
5805
- id: z207.string(),
5806
- createdAt: z207.coerce.date(),
5807
- finishedAt: z207.coerce.date().optional(),
5808
- index: z207.number().optional(),
5814
+ var DTOExportJob = z208.object({
5815
+ id: z208.string(),
5816
+ createdAt: z208.coerce.date(),
5817
+ finishedAt: z208.coerce.date().optional(),
5818
+ index: z208.number().optional(),
5809
5819
  status: ExportJobStatus,
5810
- estimatedExecutionTime: z207.number().optional(),
5820
+ estimatedExecutionTime: z208.number().optional(),
5811
5821
  createdBy: DTOExportJobCreatedBy.optional(),
5812
5822
  designSystem: DTOExportJobDesignSystemPreview,
5813
5823
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5814
5824
  destinations: DTOExportJobDestinations,
5815
- exporterId: z207.string(),
5816
- scheduleId: z207.string().optional(),
5825
+ exporterId: z208.string(),
5826
+ scheduleId: z208.string().optional(),
5817
5827
  result: DTOExportJobResult.optional(),
5818
- brandPersistentId: z207.string().optional(),
5819
- themePersistentId: z207.string().optional(),
5820
- themePersistentIds: z207.string().array().optional()
5828
+ brandPersistentId: z208.string().optional(),
5829
+ themePersistentId: z208.string().optional(),
5830
+ themePersistentIds: z208.string().array().optional()
5821
5831
  });
5822
- var DTOExportJobResponse = z207.object({
5832
+ var DTOExportJobResponse = z208.object({
5823
5833
  job: DTOExportJob
5824
5834
  });
5825
5835
 
5826
5836
  // src/api/dto/export/pipeline.ts
5827
- import { z as z208 } from "zod";
5828
- var DTOPipeline = z208.object({
5829
- id: z208.string(),
5830
- name: z208.string(),
5837
+ import { z as z209 } from "zod";
5838
+ var DTOPipeline = z209.object({
5839
+ id: z209.string(),
5840
+ name: z209.string(),
5831
5841
  eventType: PipelineEventType,
5832
- isEnabled: z208.boolean(),
5833
- workspaceId: z208.string(),
5834
- designSystemId: z208.string(),
5835
- exporterId: z208.string(),
5836
- brandPersistentId: z208.string().optional(),
5837
- themePersistentId: z208.string().optional(),
5838
- themePersistentIds: z208.string().array().optional(),
5842
+ isEnabled: z209.boolean(),
5843
+ workspaceId: z209.string(),
5844
+ designSystemId: z209.string(),
5845
+ exporterId: z209.string(),
5846
+ brandPersistentId: z209.string().optional(),
5847
+ themePersistentId: z209.string().optional(),
5848
+ themePersistentIds: z209.string().array().optional(),
5839
5849
  ...ExportDestinationsMap.shape,
5840
5850
  latestJobs: DTOExportJob.array()
5841
5851
  });
5842
5852
 
5843
5853
  // src/api/dto/documentation/publish.ts
5844
5854
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5845
- var DTOPublishDocumentationRequest = z209.object({
5855
+ var DTOPublishDocumentationRequest = z210.object({
5846
5856
  environment: PublishedDocEnvironment,
5847
5857
  /**
5848
5858
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5850,42 +5860,42 @@ var DTOPublishDocumentationRequest = z209.object({
5850
5860
  */
5851
5861
  changes: DTOPublishDocumentationChanges.optional()
5852
5862
  });
5853
- var DTOPublishDocumentationResponse = z209.object({
5863
+ var DTOPublishDocumentationResponse = z210.object({
5854
5864
  job: DTOExportJob
5855
5865
  });
5856
5866
 
5857
5867
  // src/api/dto/elements/components/figma-component.ts
5858
- import { z as z210 } from "zod";
5868
+ import { z as z211 } from "zod";
5859
5869
  var DTOFigmaComponentProperty = FigmaComponentProperty;
5860
- var DTOFigmaComponentPropertyMap = z210.record(DTOFigmaComponentProperty);
5861
- var DTOFigmaComponent = z210.object({
5862
- id: z210.string(),
5863
- persistentId: z210.string(),
5864
- designSystemVersionId: z210.string(),
5865
- brandId: z210.string(),
5866
- thumbnailUrl: z210.string().optional(),
5867
- svgUrl: z210.string().optional(),
5868
- exportProperties: z210.object({
5869
- isAsset: z210.boolean()
5870
+ var DTOFigmaComponentPropertyMap = z211.record(DTOFigmaComponentProperty);
5871
+ var DTOFigmaComponent = z211.object({
5872
+ id: z211.string(),
5873
+ persistentId: z211.string(),
5874
+ designSystemVersionId: z211.string(),
5875
+ brandId: z211.string(),
5876
+ thumbnailUrl: z211.string().optional(),
5877
+ svgUrl: z211.string().optional(),
5878
+ exportProperties: z211.object({
5879
+ isAsset: z211.boolean()
5870
5880
  }),
5871
- createdAt: z210.coerce.date(),
5872
- updatedAt: z210.coerce.date(),
5881
+ createdAt: z211.coerce.date(),
5882
+ updatedAt: z211.coerce.date(),
5873
5883
  meta: ObjectMeta,
5874
5884
  originComponent: FigmaComponentOrigin.optional(),
5875
- parentComponentPersistentId: z210.string().optional(),
5876
- childrenPersistentIds: z210.string().array().optional(),
5885
+ parentComponentPersistentId: z211.string().optional(),
5886
+ childrenPersistentIds: z211.string().array().optional(),
5877
5887
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
5878
- variantPropertyValues: z210.record(z210.string()).optional()
5888
+ variantPropertyValues: z211.record(z211.string()).optional()
5879
5889
  });
5880
- var DTOFigmaComponentListResponse = z210.object({
5890
+ var DTOFigmaComponentListResponse = z211.object({
5881
5891
  components: DTOFigmaComponent.array()
5882
5892
  });
5883
5893
 
5884
5894
  // src/api/dto/elements/documentation/group-action.ts
5885
- import { z as z212 } from "zod";
5895
+ import { z as z213 } from "zod";
5886
5896
 
5887
5897
  // src/api/dto/elements/documentation/group-v2.ts
5888
- import { z as z211 } from "zod";
5898
+ import { z as z212 } from "zod";
5889
5899
  var DTODocumentationGroupV2 = ElementGroup.omit({
5890
5900
  sortOrder: true,
5891
5901
  parentPersistentId: true,
@@ -5895,13 +5905,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5895
5905
  data: true,
5896
5906
  shortPersistentId: true
5897
5907
  }).extend({
5898
- title: z211.string(),
5899
- isRoot: z211.boolean(),
5900
- childrenIds: z211.array(z211.string()),
5908
+ title: z212.string(),
5909
+ isRoot: z212.boolean(),
5910
+ childrenIds: z212.array(z212.string()),
5901
5911
  groupBehavior: DocumentationGroupBehavior,
5902
- shortPersistentId: z211.string(),
5912
+ shortPersistentId: z212.string(),
5903
5913
  configuration: DTODocumentationItemConfigurationV2,
5904
- type: z211.literal("Group"),
5914
+ type: z212.literal("Group"),
5905
5915
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5906
5916
  draftState: DTODocumentationDraftState.optional(),
5907
5917
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -5909,127 +5919,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5909
5919
  //** An approval state for frontend to utilize. */
5910
5920
  approvalState: DTODocumentationGroupApprovalState.optional()
5911
5921
  });
5912
- var DTOCreateDocumentationGroupInput = z211.object({
5922
+ var DTOCreateDocumentationGroupInput = z212.object({
5913
5923
  // Identifier
5914
- persistentId: z211.string().uuid(),
5924
+ persistentId: z212.string().uuid(),
5915
5925
  // Group properties
5916
- title: z211.string(),
5926
+ title: z212.string(),
5917
5927
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5918
5928
  // Group placement properties
5919
- afterPersistentId: z211.string().uuid().nullish(),
5920
- parentPersistentId: z211.string().uuid()
5929
+ afterPersistentId: z212.string().uuid().nullish(),
5930
+ parentPersistentId: z212.string().uuid()
5921
5931
  });
5922
- var DTOUpdateDocumentationGroupInput = z211.object({
5932
+ var DTOUpdateDocumentationGroupInput = z212.object({
5923
5933
  // Identifier of the group to update
5924
- id: z211.string(),
5934
+ id: z212.string(),
5925
5935
  // Group properties
5926
- title: z211.string().optional(),
5936
+ title: z212.string().optional(),
5927
5937
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5928
5938
  });
5929
- var DTOMoveDocumentationGroupInput = z211.object({
5939
+ var DTOMoveDocumentationGroupInput = z212.object({
5930
5940
  // Identifier of the group to update
5931
- id: z211.string(),
5941
+ id: z212.string(),
5932
5942
  // Group placement properties
5933
- parentPersistentId: z211.string().uuid(),
5934
- afterPersistentId: z211.string().uuid().nullish()
5943
+ parentPersistentId: z212.string().uuid(),
5944
+ afterPersistentId: z212.string().uuid().nullish()
5935
5945
  });
5936
- var DTODuplicateDocumentationGroupInput = z211.object({
5946
+ var DTODuplicateDocumentationGroupInput = z212.object({
5937
5947
  // Identifier of the group to duplicate from
5938
- id: z211.string(),
5948
+ id: z212.string(),
5939
5949
  // New group persistent id
5940
- persistentId: z211.string().uuid(),
5950
+ persistentId: z212.string().uuid(),
5941
5951
  // Group placement properties
5942
- afterPersistentId: z211.string().uuid().nullish(),
5943
- parentPersistentId: z211.string().uuid()
5952
+ afterPersistentId: z212.string().uuid().nullish(),
5953
+ parentPersistentId: z212.string().uuid()
5944
5954
  });
5945
- var DTOCreateDocumentationTabInput = z211.object({
5955
+ var DTOCreateDocumentationTabInput = z212.object({
5946
5956
  // New group persistent id
5947
- persistentId: z211.string().uuid(),
5957
+ persistentId: z212.string().uuid(),
5948
5958
  // If this is page, we will attempt to convert it to tab
5949
5959
  // If this is tab group, we will add a new tab to it
5950
- fromItemPersistentId: z211.string(),
5951
- tabName: z211.string()
5960
+ fromItemPersistentId: z212.string(),
5961
+ tabName: z212.string()
5952
5962
  });
5953
- var DTODeleteDocumentationTabGroupInput = z211.object({
5963
+ var DTODeleteDocumentationTabGroupInput = z212.object({
5954
5964
  // Deleted group id
5955
- id: z211.string()
5965
+ id: z212.string()
5956
5966
  });
5957
- var DTODeleteDocumentationGroupInput = z211.object({
5967
+ var DTODeleteDocumentationGroupInput = z212.object({
5958
5968
  // Identifier
5959
- id: z211.string(),
5969
+ id: z212.string(),
5960
5970
  // Deletion options
5961
- deleteSubtree: z211.boolean().default(false)
5971
+ deleteSubtree: z212.boolean().default(false)
5962
5972
  });
5963
5973
 
5964
5974
  // src/api/dto/elements/documentation/group-action.ts
5965
- var SuccessPayload = z212.object({
5966
- success: z212.literal(true)
5975
+ var SuccessPayload = z213.object({
5976
+ success: z213.literal(true)
5967
5977
  });
5968
- var DTODocumentationGroupCreateActionOutputV2 = z212.object({
5969
- type: z212.literal("DocumentationGroupCreate"),
5978
+ var DTODocumentationGroupCreateActionOutputV2 = z213.object({
5979
+ type: z213.literal("DocumentationGroupCreate"),
5970
5980
  output: SuccessPayload
5971
5981
  });
5972
- var DTODocumentationTabCreateActionOutputV2 = z212.object({
5973
- type: z212.literal("DocumentationTabCreate"),
5982
+ var DTODocumentationTabCreateActionOutputV2 = z213.object({
5983
+ type: z213.literal("DocumentationTabCreate"),
5974
5984
  output: SuccessPayload
5975
5985
  });
5976
- var DTODocumentationGroupUpdateActionOutputV2 = z212.object({
5977
- type: z212.literal("DocumentationGroupUpdate"),
5986
+ var DTODocumentationGroupUpdateActionOutputV2 = z213.object({
5987
+ type: z213.literal("DocumentationGroupUpdate"),
5978
5988
  output: SuccessPayload
5979
5989
  });
5980
- var DTODocumentationGroupMoveActionOutputV2 = z212.object({
5981
- type: z212.literal("DocumentationGroupMove"),
5990
+ var DTODocumentationGroupMoveActionOutputV2 = z213.object({
5991
+ type: z213.literal("DocumentationGroupMove"),
5982
5992
  output: SuccessPayload
5983
5993
  });
5984
- var DTODocumentationGroupDuplicateActionOutputV2 = z212.object({
5985
- type: z212.literal("DocumentationGroupDuplicate"),
5994
+ var DTODocumentationGroupDuplicateActionOutputV2 = z213.object({
5995
+ type: z213.literal("DocumentationGroupDuplicate"),
5986
5996
  output: SuccessPayload
5987
5997
  });
5988
- var DTODocumentationGroupDeleteActionOutputV2 = z212.object({
5989
- type: z212.literal("DocumentationGroupDelete"),
5998
+ var DTODocumentationGroupDeleteActionOutputV2 = z213.object({
5999
+ type: z213.literal("DocumentationGroupDelete"),
5990
6000
  output: SuccessPayload
5991
6001
  });
5992
- var DTODocumentationTabGroupDeleteActionOutputV2 = z212.object({
5993
- type: z212.literal("DocumentationTabGroupDelete"),
6002
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z213.object({
6003
+ type: z213.literal("DocumentationTabGroupDelete"),
5994
6004
  output: SuccessPayload
5995
6005
  });
5996
- var DTODocumentationGroupCreateActionInputV2 = z212.object({
5997
- type: z212.literal("DocumentationGroupCreate"),
6006
+ var DTODocumentationGroupCreateActionInputV2 = z213.object({
6007
+ type: z213.literal("DocumentationGroupCreate"),
5998
6008
  input: DTOCreateDocumentationGroupInput
5999
6009
  });
6000
- var DTODocumentationTabCreateActionInputV2 = z212.object({
6001
- type: z212.literal("DocumentationTabCreate"),
6010
+ var DTODocumentationTabCreateActionInputV2 = z213.object({
6011
+ type: z213.literal("DocumentationTabCreate"),
6002
6012
  input: DTOCreateDocumentationTabInput
6003
6013
  });
6004
- var DTODocumentationGroupUpdateActionInputV2 = z212.object({
6005
- type: z212.literal("DocumentationGroupUpdate"),
6014
+ var DTODocumentationGroupUpdateActionInputV2 = z213.object({
6015
+ type: z213.literal("DocumentationGroupUpdate"),
6006
6016
  input: DTOUpdateDocumentationGroupInput
6007
6017
  });
6008
- var DTODocumentationGroupMoveActionInputV2 = z212.object({
6009
- type: z212.literal("DocumentationGroupMove"),
6018
+ var DTODocumentationGroupMoveActionInputV2 = z213.object({
6019
+ type: z213.literal("DocumentationGroupMove"),
6010
6020
  input: DTOMoveDocumentationGroupInput
6011
6021
  });
6012
- var DTODocumentationGroupDuplicateActionInputV2 = z212.object({
6013
- type: z212.literal("DocumentationGroupDuplicate"),
6022
+ var DTODocumentationGroupDuplicateActionInputV2 = z213.object({
6023
+ type: z213.literal("DocumentationGroupDuplicate"),
6014
6024
  input: DTODuplicateDocumentationGroupInput
6015
6025
  });
6016
- var DTODocumentationGroupDeleteActionInputV2 = z212.object({
6017
- type: z212.literal("DocumentationGroupDelete"),
6026
+ var DTODocumentationGroupDeleteActionInputV2 = z213.object({
6027
+ type: z213.literal("DocumentationGroupDelete"),
6018
6028
  input: DTODeleteDocumentationGroupInput
6019
6029
  });
6020
- var DTODocumentationTabGroupDeleteActionInputV2 = z212.object({
6021
- type: z212.literal("DocumentationTabGroupDelete"),
6030
+ var DTODocumentationTabGroupDeleteActionInputV2 = z213.object({
6031
+ type: z213.literal("DocumentationTabGroupDelete"),
6022
6032
  input: DTODeleteDocumentationTabGroupInput
6023
6033
  });
6024
6034
 
6025
6035
  // src/api/dto/elements/documentation/group-v1.ts
6026
- import { z as z214 } from "zod";
6036
+ import { z as z215 } from "zod";
6027
6037
 
6028
6038
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6029
- import { z as z213 } from "zod";
6030
- var DocumentationColorV1 = z213.object({
6031
- aliasTo: z213.string().optional(),
6032
- value: z213.string().optional()
6039
+ import { z as z214 } from "zod";
6040
+ var DocumentationColorV1 = z214.object({
6041
+ aliasTo: z214.string().optional(),
6042
+ value: z214.string().optional()
6033
6043
  });
6034
6044
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6035
6045
  foregroundColor: true,
@@ -6038,10 +6048,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6038
6048
  foregroundColor: DocumentationColorV1.optional(),
6039
6049
  backgroundColor: DocumentationColorV1.optional()
6040
6050
  });
6041
- var DTODocumentationItemConfigurationV1 = z213.object({
6042
- showSidebar: z213.boolean(),
6043
- isPrivate: z213.boolean(),
6044
- isHidden: z213.boolean(),
6051
+ var DTODocumentationItemConfigurationV1 = z214.object({
6052
+ showSidebar: z214.boolean(),
6053
+ isPrivate: z214.boolean(),
6054
+ isHidden: z214.boolean(),
6045
6055
  header: DTODocumentationItemHeaderV1
6046
6056
  });
6047
6057
 
@@ -6055,27 +6065,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6055
6065
  data: true,
6056
6066
  shortPersistentId: true
6057
6067
  }).extend({
6058
- title: z214.string(),
6059
- isRoot: z214.boolean(),
6060
- childrenIds: z214.array(z214.string()),
6068
+ title: z215.string(),
6069
+ isRoot: z215.boolean(),
6070
+ childrenIds: z215.array(z215.string()),
6061
6071
  groupBehavior: DocumentationGroupBehavior,
6062
- shortPersistentId: z214.string(),
6063
- type: z214.literal("Group")
6072
+ shortPersistentId: z215.string(),
6073
+ type: z215.literal("Group")
6064
6074
  });
6065
6075
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6066
6076
  configuration: DTODocumentationItemConfigurationV1
6067
6077
  });
6068
6078
 
6069
6079
  // src/api/dto/elements/documentation/hierarchy.ts
6070
- import { z as z215 } from "zod";
6071
- var DTODocumentationHierarchyV2 = z215.object({
6072
- pages: z215.array(
6080
+ import { z as z216 } from "zod";
6081
+ var DTODocumentationHierarchyV2 = z216.object({
6082
+ pages: z216.array(
6073
6083
  DTODocumentationPageV2.extend({
6074
6084
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6075
6085
  draftState: DTODocumentationDraftState.optional()
6076
6086
  })
6077
6087
  ),
6078
- groups: z215.array(
6088
+ groups: z216.array(
6079
6089
  DTODocumentationGroupV2.extend({
6080
6090
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6081
6091
  draftState: DTODocumentationDraftState.optional()
@@ -6084,84 +6094,84 @@ var DTODocumentationHierarchyV2 = z215.object({
6084
6094
  });
6085
6095
 
6086
6096
  // src/api/dto/elements/documentation/page-actions-v2.ts
6087
- import { z as z216 } from "zod";
6088
- var SuccessPayload2 = z216.object({
6089
- success: z216.literal(true)
6097
+ import { z as z217 } from "zod";
6098
+ var SuccessPayload2 = z217.object({
6099
+ success: z217.literal(true)
6090
6100
  });
6091
- var DTODocumentationPageCreateActionOutputV2 = z216.object({
6092
- type: z216.literal("DocumentationPageCreate"),
6101
+ var DTODocumentationPageCreateActionOutputV2 = z217.object({
6102
+ type: z217.literal("DocumentationPageCreate"),
6093
6103
  output: SuccessPayload2
6094
6104
  });
6095
- var DTODocumentationPageUpdateActionOutputV2 = z216.object({
6096
- type: z216.literal("DocumentationPageUpdate"),
6105
+ var DTODocumentationPageUpdateActionOutputV2 = z217.object({
6106
+ type: z217.literal("DocumentationPageUpdate"),
6097
6107
  output: SuccessPayload2
6098
6108
  });
6099
- var DTODocumentationPageMoveActionOutputV2 = z216.object({
6100
- type: z216.literal("DocumentationPageMove"),
6109
+ var DTODocumentationPageMoveActionOutputV2 = z217.object({
6110
+ type: z217.literal("DocumentationPageMove"),
6101
6111
  output: SuccessPayload2
6102
6112
  });
6103
- var DTODocumentationPageDuplicateActionOutputV2 = z216.object({
6104
- type: z216.literal("DocumentationPageDuplicate"),
6113
+ var DTODocumentationPageDuplicateActionOutputV2 = z217.object({
6114
+ type: z217.literal("DocumentationPageDuplicate"),
6105
6115
  output: SuccessPayload2
6106
6116
  });
6107
- var DTODocumentationPageDeleteActionOutputV2 = z216.object({
6108
- type: z216.literal("DocumentationPageDelete"),
6117
+ var DTODocumentationPageDeleteActionOutputV2 = z217.object({
6118
+ type: z217.literal("DocumentationPageDelete"),
6109
6119
  output: SuccessPayload2
6110
6120
  });
6111
- var DTODocumentationPageRestoreActionOutput = z216.object({
6112
- type: z216.literal("DocumentationPageRestore"),
6121
+ var DTODocumentationPageRestoreActionOutput = z217.object({
6122
+ type: z217.literal("DocumentationPageRestore"),
6113
6123
  output: SuccessPayload2
6114
6124
  });
6115
- var DTODocumentationGroupRestoreActionOutput = z216.object({
6116
- type: z216.literal("DocumentationGroupRestore"),
6125
+ var DTODocumentationGroupRestoreActionOutput = z217.object({
6126
+ type: z217.literal("DocumentationGroupRestore"),
6117
6127
  output: SuccessPayload2
6118
6128
  });
6119
- var DTODocumentationPageApprovalStateChangeActionOutput = z216.object({
6120
- type: z216.literal("DocumentationPageApprovalStateChange"),
6129
+ var DTODocumentationPageApprovalStateChangeActionOutput = z217.object({
6130
+ type: z217.literal("DocumentationPageApprovalStateChange"),
6121
6131
  output: SuccessPayload2
6122
6132
  });
6123
- var DTODocumentationPageCreateActionInputV2 = z216.object({
6124
- type: z216.literal("DocumentationPageCreate"),
6133
+ var DTODocumentationPageCreateActionInputV2 = z217.object({
6134
+ type: z217.literal("DocumentationPageCreate"),
6125
6135
  input: DTOCreateDocumentationPageInputV2
6126
6136
  });
6127
- var DTODocumentationPageUpdateActionInputV2 = z216.object({
6128
- type: z216.literal("DocumentationPageUpdate"),
6137
+ var DTODocumentationPageUpdateActionInputV2 = z217.object({
6138
+ type: z217.literal("DocumentationPageUpdate"),
6129
6139
  input: DTOUpdateDocumentationPageInputV2
6130
6140
  });
6131
- var DTODocumentationPageMoveActionInputV2 = z216.object({
6132
- type: z216.literal("DocumentationPageMove"),
6141
+ var DTODocumentationPageMoveActionInputV2 = z217.object({
6142
+ type: z217.literal("DocumentationPageMove"),
6133
6143
  input: DTOMoveDocumentationPageInputV2
6134
6144
  });
6135
- var DTODocumentationPageDuplicateActionInputV2 = z216.object({
6136
- type: z216.literal("DocumentationPageDuplicate"),
6145
+ var DTODocumentationPageDuplicateActionInputV2 = z217.object({
6146
+ type: z217.literal("DocumentationPageDuplicate"),
6137
6147
  input: DTODuplicateDocumentationPageInputV2
6138
6148
  });
6139
- var DTODocumentationPageDeleteActionInputV2 = z216.object({
6140
- type: z216.literal("DocumentationPageDelete"),
6149
+ var DTODocumentationPageDeleteActionInputV2 = z217.object({
6150
+ type: z217.literal("DocumentationPageDelete"),
6141
6151
  input: DTODeleteDocumentationPageInputV2
6142
6152
  });
6143
- var DTODocumentationPageRestoreActionInput = z216.object({
6144
- type: z216.literal("DocumentationPageRestore"),
6153
+ var DTODocumentationPageRestoreActionInput = z217.object({
6154
+ type: z217.literal("DocumentationPageRestore"),
6145
6155
  input: DTORestoreDocumentationPageInput
6146
6156
  });
6147
- var DTODocumentationGroupRestoreActionInput = z216.object({
6148
- type: z216.literal("DocumentationGroupRestore"),
6157
+ var DTODocumentationGroupRestoreActionInput = z217.object({
6158
+ type: z217.literal("DocumentationGroupRestore"),
6149
6159
  input: DTORestoreDocumentationGroupInput
6150
6160
  });
6151
- var DTODocumentationPageApprovalStateChangeActionInput = z216.object({
6152
- type: z216.literal("DocumentationPageApprovalStateChange"),
6161
+ var DTODocumentationPageApprovalStateChangeActionInput = z217.object({
6162
+ type: z217.literal("DocumentationPageApprovalStateChange"),
6153
6163
  input: DTODocumentationPageApprovalStateChangeInput
6154
6164
  });
6155
6165
 
6156
6166
  // src/api/dto/elements/documentation/page-content.ts
6157
- import { z as z217 } from "zod";
6167
+ import { z as z218 } from "zod";
6158
6168
  var DTODocumentationPageContent = DocumentationPageContent;
6159
- var DTODocumentationPageContentGetResponse = z217.object({
6169
+ var DTODocumentationPageContentGetResponse = z218.object({
6160
6170
  pageContent: DTODocumentationPageContent
6161
6171
  });
6162
6172
 
6163
6173
  // src/api/dto/elements/documentation/page-v1.ts
6164
- import { z as z218 } from "zod";
6174
+ import { z as z219 } from "zod";
6165
6175
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6166
6176
  data: true,
6167
6177
  meta: true,
@@ -6169,32 +6179,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6169
6179
  sortOrder: true
6170
6180
  }).extend({
6171
6181
  configuration: DTODocumentationItemConfigurationV1,
6172
- blocks: z218.array(PageBlockV1),
6173
- title: z218.string(),
6174
- path: z218.string()
6182
+ blocks: z219.array(PageBlockV1),
6183
+ title: z219.string(),
6184
+ path: z219.string()
6175
6185
  });
6176
6186
 
6177
6187
  // src/api/dto/elements/figma-nodes/figma-node.ts
6178
- import { z as z219 } from "zod";
6188
+ import { z as z220 } from "zod";
6179
6189
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6180
- var DTOFigmaNodeOrigin = z219.object({
6181
- sourceId: z219.string(),
6182
- fileId: z219.string().optional(),
6183
- parentName: z219.string().optional()
6190
+ var DTOFigmaNodeOrigin = z220.object({
6191
+ sourceId: z220.string(),
6192
+ fileId: z220.string().optional(),
6193
+ parentName: z220.string().optional()
6184
6194
  });
6185
- var DTOFigmaNodeData = z219.object({
6195
+ var DTOFigmaNodeData = z220.object({
6186
6196
  // Id of the node in the Figma file
6187
- figmaNodeId: z219.string(),
6197
+ figmaNodeId: z220.string(),
6188
6198
  // Validity
6189
- isValid: z219.boolean(),
6199
+ isValid: z220.boolean(),
6190
6200
  // Asset data
6191
- assetId: z219.string(),
6192
- assetUrl: z219.string(),
6201
+ assetId: z220.string(),
6202
+ assetUrl: z220.string(),
6193
6203
  assetFormat: DTOFigmaNodeRenderFormat,
6194
6204
  // Asset metadata
6195
- assetScale: z219.number(),
6196
- assetWidth: z219.number().optional(),
6197
- assetHeight: z219.number().optional()
6205
+ assetScale: z220.number(),
6206
+ assetWidth: z220.number().optional(),
6207
+ assetHeight: z220.number().optional()
6198
6208
  });
6199
6209
  var DTOFigmaNode = FigmaNodeReference.omit({
6200
6210
  data: true,
@@ -6203,15 +6213,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6203
6213
  data: DTOFigmaNodeData,
6204
6214
  origin: DTOFigmaNodeOrigin
6205
6215
  });
6206
- var DTOFigmaNodeRenderInput = z219.object({
6216
+ var DTOFigmaNodeRenderInput = z220.object({
6207
6217
  /**
6208
6218
  * Id of a design system's data source representing a linked Figma file
6209
6219
  */
6210
- sourceId: z219.string(),
6220
+ sourceId: z220.string(),
6211
6221
  /**
6212
6222
  * Id of a node within the Figma file
6213
6223
  */
6214
- figmaFileNodeId: z219.string(),
6224
+ figmaFileNodeId: z220.string(),
6215
6225
  /**
6216
6226
  * Format in which the node must be rendered, png by default.
6217
6227
  */
@@ -6219,97 +6229,97 @@ var DTOFigmaNodeRenderInput = z219.object({
6219
6229
  });
6220
6230
 
6221
6231
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6222
- import { z as z220 } from "zod";
6223
- var DTOFigmaNodeRenderActionOutput = z220.object({
6224
- type: z220.literal("FigmaNodeRender"),
6225
- figmaNodes: z220.array(DTOFigmaNode)
6232
+ import { z as z221 } from "zod";
6233
+ var DTOFigmaNodeRenderActionOutput = z221.object({
6234
+ type: z221.literal("FigmaNodeRender"),
6235
+ figmaNodes: z221.array(DTOFigmaNode)
6226
6236
  });
6227
- var DTOFigmaNodeRenderActionInput = z220.object({
6228
- type: z220.literal("FigmaNodeRender"),
6237
+ var DTOFigmaNodeRenderActionInput = z221.object({
6238
+ type: z221.literal("FigmaNodeRender"),
6229
6239
  input: DTOFigmaNodeRenderInput.array()
6230
6240
  });
6231
6241
 
6232
6242
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6233
- import { z as z222 } from "zod";
6243
+ import { z as z223 } from "zod";
6234
6244
 
6235
6245
  // src/api/dto/elements/properties/property-definitions.ts
6236
- import { z as z221 } from "zod";
6246
+ import { z as z222 } from "zod";
6237
6247
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6238
- var DTOElementPropertyDefinition = z221.object({
6239
- id: z221.string(),
6240
- designSystemVersionId: z221.string(),
6248
+ var DTOElementPropertyDefinition = z222.object({
6249
+ id: z222.string(),
6250
+ designSystemVersionId: z222.string(),
6241
6251
  meta: ObjectMeta,
6242
- persistentId: z221.string(),
6252
+ persistentId: z222.string(),
6243
6253
  type: ElementPropertyTypeSchema,
6244
6254
  targetElementType: ElementPropertyTargetType,
6245
- codeName: z221.string().regex(CODE_NAME_REGEX2),
6246
- options: z221.array(ElementPropertyDefinitionOption).optional(),
6255
+ codeName: z222.string().regex(CODE_NAME_REGEX2),
6256
+ options: z222.array(ElementPropertyDefinitionOption).optional(),
6247
6257
  linkElementType: ElementPropertyLinkType.optional()
6248
6258
  });
6249
- var DTOElementPropertyDefinitionsGetResponse = z221.object({
6250
- definitions: z221.array(DTOElementPropertyDefinition)
6259
+ var DTOElementPropertyDefinitionsGetResponse = z222.object({
6260
+ definitions: z222.array(DTOElementPropertyDefinition)
6251
6261
  });
6252
6262
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
6253
6263
  id: true,
6254
6264
  designSystemVersionId: true
6255
6265
  });
6256
- var DTOUpdateElementPropertyDefinitionInputV2 = z221.object({
6257
- id: z221.string(),
6258
- name: z221.string().optional(),
6259
- description: z221.string().optional(),
6260
- codeName: z221.string().regex(CODE_NAME_REGEX2).optional(),
6261
- options: z221.array(ElementPropertyDefinitionOption).optional()
6266
+ var DTOUpdateElementPropertyDefinitionInputV2 = z222.object({
6267
+ id: z222.string(),
6268
+ name: z222.string().optional(),
6269
+ description: z222.string().optional(),
6270
+ codeName: z222.string().regex(CODE_NAME_REGEX2).optional(),
6271
+ options: z222.array(ElementPropertyDefinitionOption).optional()
6262
6272
  });
6263
- var DTODeleteElementPropertyDefinitionInputV2 = z221.object({
6264
- id: z221.string()
6273
+ var DTODeleteElementPropertyDefinitionInputV2 = z222.object({
6274
+ id: z222.string()
6265
6275
  });
6266
6276
 
6267
6277
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6268
- var SuccessPayload3 = z222.object({
6269
- success: z222.literal(true)
6278
+ var SuccessPayload3 = z223.object({
6279
+ success: z223.literal(true)
6270
6280
  });
6271
- var DTOPropertyDefinitionCreateActionOutputV2 = z222.object({
6272
- type: z222.literal("PropertyDefinitionCreate"),
6281
+ var DTOPropertyDefinitionCreateActionOutputV2 = z223.object({
6282
+ type: z223.literal("PropertyDefinitionCreate"),
6273
6283
  definition: DTOElementPropertyDefinition
6274
6284
  });
6275
- var DTOPropertyDefinitionUpdateActionOutputV2 = z222.object({
6276
- type: z222.literal("PropertyDefinitionUpdate"),
6285
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z223.object({
6286
+ type: z223.literal("PropertyDefinitionUpdate"),
6277
6287
  definition: DTOElementPropertyDefinition
6278
6288
  });
6279
- var DTOPropertyDefinitionDeleteActionOutputV2 = z222.object({
6280
- type: z222.literal("PropertyDefinitionDelete"),
6289
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z223.object({
6290
+ type: z223.literal("PropertyDefinitionDelete"),
6281
6291
  output: SuccessPayload3
6282
6292
  });
6283
- var DTOPropertyDefinitionCreateActionInputV2 = z222.object({
6284
- type: z222.literal("PropertyDefinitionCreate"),
6293
+ var DTOPropertyDefinitionCreateActionInputV2 = z223.object({
6294
+ type: z223.literal("PropertyDefinitionCreate"),
6285
6295
  input: DTOCreateElementPropertyDefinitionInputV2
6286
6296
  });
6287
- var DTOPropertyDefinitionUpdateActionInputV2 = z222.object({
6288
- type: z222.literal("PropertyDefinitionUpdate"),
6297
+ var DTOPropertyDefinitionUpdateActionInputV2 = z223.object({
6298
+ type: z223.literal("PropertyDefinitionUpdate"),
6289
6299
  input: DTOUpdateElementPropertyDefinitionInputV2
6290
6300
  });
6291
- var DTOPropertyDefinitionDeleteActionInputV2 = z222.object({
6292
- type: z222.literal("PropertyDefinitionDelete"),
6301
+ var DTOPropertyDefinitionDeleteActionInputV2 = z223.object({
6302
+ type: z223.literal("PropertyDefinitionDelete"),
6293
6303
  input: DTODeleteElementPropertyDefinitionInputV2
6294
6304
  });
6295
6305
 
6296
6306
  // src/api/dto/elements/properties/property-values.ts
6297
- import { z as z223 } from "zod";
6298
- var DTOElementPropertyValue = z223.object({
6299
- id: z223.string(),
6300
- designSystemVersionId: z223.string(),
6301
- definitionId: z223.string(),
6302
- targetElementId: z223.string(),
6303
- value: z223.union([z223.string(), z223.number(), z223.boolean()]).optional(),
6304
- valuePreview: z223.string().optional()
6307
+ import { z as z224 } from "zod";
6308
+ var DTOElementPropertyValue = z224.object({
6309
+ id: z224.string(),
6310
+ designSystemVersionId: z224.string(),
6311
+ definitionId: z224.string(),
6312
+ targetElementId: z224.string(),
6313
+ value: z224.union([z224.string(), z224.number(), z224.boolean()]).optional(),
6314
+ valuePreview: z224.string().optional()
6305
6315
  });
6306
- var DTOElementPropertyValuesGetResponse = z223.object({
6307
- values: z223.array(DTOElementPropertyValue)
6316
+ var DTOElementPropertyValuesGetResponse = z224.object({
6317
+ values: z224.array(DTOElementPropertyValue)
6308
6318
  });
6309
6319
 
6310
6320
  // src/api/dto/elements/elements-action-v2.ts
6311
- import { z as z224 } from "zod";
6312
- var DTOElementActionOutput = z224.discriminatedUnion("type", [
6321
+ import { z as z225 } from "zod";
6322
+ var DTOElementActionOutput = z225.discriminatedUnion("type", [
6313
6323
  // Documentation pages
6314
6324
  DTODocumentationPageCreateActionOutputV2,
6315
6325
  DTODocumentationPageUpdateActionOutputV2,
@@ -6336,7 +6346,7 @@ var DTOElementActionOutput = z224.discriminatedUnion("type", [
6336
6346
  // Approvals
6337
6347
  DTODocumentationPageApprovalStateChangeActionOutput
6338
6348
  ]);
6339
- var DTOElementActionInput = z224.discriminatedUnion("type", [
6349
+ var DTOElementActionInput = z225.discriminatedUnion("type", [
6340
6350
  // Documentation pages
6341
6351
  DTODocumentationPageCreateActionInputV2,
6342
6352
  DTODocumentationPageUpdateActionInputV2,
@@ -6365,60 +6375,60 @@ var DTOElementActionInput = z224.discriminatedUnion("type", [
6365
6375
  ]);
6366
6376
 
6367
6377
  // src/api/dto/elements/get-elements-v2.ts
6368
- import { z as z225 } from "zod";
6369
- var DTOElementsGetTypeFilter = z225.enum(["FigmaNode"]);
6370
- var DTOElementsGetQuerySchema = z225.object({
6371
- types: z225.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6378
+ import { z as z226 } from "zod";
6379
+ var DTOElementsGetTypeFilter = z226.enum(["FigmaNode"]);
6380
+ var DTOElementsGetQuerySchema = z226.object({
6381
+ types: z226.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6372
6382
  });
6373
- var DTOElementsGetOutput = z225.object({
6374
- figmaNodes: z225.array(DTOFigmaNode).optional()
6383
+ var DTOElementsGetOutput = z226.object({
6384
+ figmaNodes: z226.array(DTOFigmaNode).optional()
6375
6385
  });
6376
6386
 
6377
6387
  // src/api/dto/figma-components/assets/download.ts
6378
- import { z as z226 } from "zod";
6379
- var DTOAssetRenderConfiguration = z226.object({
6380
- prefix: z226.string().optional(),
6381
- suffix: z226.string().optional(),
6382
- scale: z226.enum(["x1", "x2", "x3", "x4"]),
6383
- format: z226.enum(["png", "pdf", "svg"])
6384
- });
6385
- var DTORenderedAssetFile = z226.object({
6386
- assetId: z226.string(),
6387
- fileName: z226.string(),
6388
- sourceUrl: z226.string(),
6388
+ import { z as z227 } from "zod";
6389
+ var DTOAssetRenderConfiguration = z227.object({
6390
+ prefix: z227.string().optional(),
6391
+ suffix: z227.string().optional(),
6392
+ scale: z227.enum(["x1", "x2", "x3", "x4"]),
6393
+ format: z227.enum(["png", "pdf", "svg"])
6394
+ });
6395
+ var DTORenderedAssetFile = z227.object({
6396
+ assetId: z227.string(),
6397
+ fileName: z227.string(),
6398
+ sourceUrl: z227.string(),
6389
6399
  settings: DTOAssetRenderConfiguration,
6390
- originalName: z226.string()
6400
+ originalName: z227.string()
6391
6401
  });
6392
- var DTODownloadAssetsRequest = z226.object({
6393
- persistentIds: z226.array(z226.string().uuid()).optional(),
6402
+ var DTODownloadAssetsRequest = z227.object({
6403
+ persistentIds: z227.array(z227.string().uuid()).optional(),
6394
6404
  settings: DTOAssetRenderConfiguration.array()
6395
6405
  });
6396
- var DTODownloadAssetsResponse = z226.object({
6406
+ var DTODownloadAssetsResponse = z227.object({
6397
6407
  items: DTORenderedAssetFile.array()
6398
6408
  });
6399
6409
 
6400
6410
  // src/api/dto/liveblocks/auth-response.ts
6401
- import { z as z227 } from "zod";
6402
- var DTOLiveblocksAuthResponse = z227.object({
6403
- token: z227.string()
6411
+ import { z as z228 } from "zod";
6412
+ var DTOLiveblocksAuthResponse = z228.object({
6413
+ token: z228.string()
6404
6414
  });
6405
6415
 
6406
6416
  // src/api/dto/users/authenticated-user.ts
6407
- import { z as z229 } from "zod";
6417
+ import { z as z230 } from "zod";
6408
6418
 
6409
6419
  // src/api/dto/users/user.ts
6410
- import { z as z228 } from "zod";
6411
- var DTOUserProfile = z228.object({
6412
- name: z228.string(),
6413
- nickname: z228.string().optional(),
6414
- avatar: z228.string().optional()
6415
- });
6416
- var DTOUser = z228.object({
6417
- id: z228.string(),
6418
- email: z228.string(),
6420
+ import { z as z229 } from "zod";
6421
+ var DTOUserProfile = z229.object({
6422
+ name: z229.string(),
6423
+ nickname: z229.string().optional(),
6424
+ avatar: z229.string().optional()
6425
+ });
6426
+ var DTOUser = z229.object({
6427
+ id: z229.string(),
6428
+ email: z229.string(),
6419
6429
  profile: DTOUserProfile
6420
6430
  });
6421
- var DTOUserGetResponse = z228.object({
6431
+ var DTOUserGetResponse = z229.object({
6422
6432
  user: DTOUser
6423
6433
  });
6424
6434
 
@@ -6426,34 +6436,34 @@ var DTOUserGetResponse = z228.object({
6426
6436
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
6427
6437
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
6428
6438
  var DTOUserSource = UserSource;
6429
- var DTOUserOnboarding = z229.object({
6430
- companyName: z229.string().optional(),
6431
- numberOfPeopleInOrg: z229.string().optional(),
6432
- numberOfPeopleInDesignTeam: z229.string().optional(),
6439
+ var DTOUserOnboarding = z230.object({
6440
+ companyName: z230.string().optional(),
6441
+ numberOfPeopleInOrg: z230.string().optional(),
6442
+ numberOfPeopleInDesignTeam: z230.string().optional(),
6433
6443
  department: DTOUserOnboardingDepartment.optional(),
6434
- jobTitle: z229.string().optional(),
6435
- phase: z229.string().optional(),
6444
+ jobTitle: z230.string().optional(),
6445
+ phase: z230.string().optional(),
6436
6446
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6437
- designSystemName: z229.string().optional(),
6438
- defaultDestination: z229.string().optional(),
6439
- isPageDraftOnboardingFinished: z229.boolean().optional()
6447
+ designSystemName: z230.string().optional(),
6448
+ defaultDestination: z230.string().optional(),
6449
+ isPageDraftOnboardingFinished: z230.boolean().optional()
6440
6450
  });
6441
6451
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
6442
6452
  onboarding: DTOUserOnboarding.optional()
6443
6453
  });
6444
6454
  var DTOAuthenticatedUser = DTOUser.extend({
6445
6455
  profile: DTOAuthenticatedUserProfile,
6446
- createdAt: z229.coerce.date(),
6447
- loggedOutAt: z229.coerce.date().optional(),
6456
+ createdAt: z230.coerce.date(),
6457
+ loggedOutAt: z230.coerce.date().optional(),
6448
6458
  source: DTOUserSource.optional()
6449
6459
  });
6450
- var DTOAuthenticatedUserResponse = z229.object({
6460
+ var DTOAuthenticatedUserResponse = z230.object({
6451
6461
  user: DTOAuthenticatedUser
6452
6462
  });
6453
6463
 
6454
6464
  // src/api/dto/users/update.ts
6455
- import { z as z230 } from "zod";
6456
- var DTOUserProfileUpdateResponse = z230.object({
6465
+ import { z as z231 } from "zod";
6466
+ var DTOUserProfileUpdateResponse = z231.object({
6457
6467
  user: User
6458
6468
  });
6459
6469
 
@@ -6476,7 +6486,7 @@ var DesignSystemMembersEndpoint = class {
6476
6486
  };
6477
6487
 
6478
6488
  // src/api/endpoints/design-systems.ts
6479
- import { z as z231 } from "zod";
6489
+ import { z as z232 } from "zod";
6480
6490
  var DesignSystemsEndpoint = class {
6481
6491
  constructor(requestExecutor) {
6482
6492
  this.requestExecutor = requestExecutor;
@@ -6490,10 +6500,10 @@ var DesignSystemsEndpoint = class {
6490
6500
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
6491
6501
  }
6492
6502
  get(dsId) {
6493
- return this.requestExecutor.json(`/design-systems/${dsId}`, z231.any());
6503
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z232.any());
6494
6504
  }
6495
6505
  delete(dsId) {
6496
- return this.requestExecutor.json(`/design-systems/${dsId}`, z231.any(), { method: "DELETE" });
6506
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z232.any(), { method: "DELETE" });
6497
6507
  }
6498
6508
  update(dsId, body) {
6499
6509
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -6538,7 +6548,7 @@ var WorkspaceInvitationsEndpoint = class {
6538
6548
  };
6539
6549
 
6540
6550
  // src/api/endpoints/workspace-members.ts
6541
- import { z as z232 } from "zod";
6551
+ import { z as z233 } from "zod";
6542
6552
  var WorkspaceMembersEndpoint = class {
6543
6553
  constructor(requestExecutor) {
6544
6554
  this.requestExecutor = requestExecutor;
@@ -6555,7 +6565,7 @@ var WorkspaceMembersEndpoint = class {
6555
6565
  });
6556
6566
  }
6557
6567
  invite(workspaceId, body) {
6558
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z232.any(), { method: "POST", body });
6568
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z233.any(), { method: "POST", body });
6559
6569
  }
6560
6570
  delete(workspaceId, userId) {
6561
6571
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -6565,7 +6575,7 @@ var WorkspaceMembersEndpoint = class {
6565
6575
  };
6566
6576
 
6567
6577
  // src/api/endpoints/workspaces.ts
6568
- import { z as z233 } from "zod";
6578
+ import { z as z234 } from "zod";
6569
6579
  var WorkspacesEndpoint = class {
6570
6580
  constructor(requestExecutor) {
6571
6581
  this.requestExecutor = requestExecutor;
@@ -6585,10 +6595,10 @@ var WorkspacesEndpoint = class {
6585
6595
  });
6586
6596
  }
6587
6597
  delete(workspaceId) {
6588
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z233.any(), { method: "DELETE" });
6598
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z234.any(), { method: "DELETE" });
6589
6599
  }
6590
6600
  subscription(workspaceId) {
6591
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z233.any(), { method: "GET" });
6601
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z234.any(), { method: "GET" });
6592
6602
  }
6593
6603
  };
6594
6604
 
@@ -6632,9 +6642,9 @@ ${bodyText}`,
6632
6642
 
6633
6643
  // src/api/transport/request-executor.ts
6634
6644
  import fetch from "node-fetch";
6635
- import { z as z234 } from "zod";
6636
- var ResponseWrapper = z234.object({
6637
- result: z234.record(z234.any())
6645
+ import { z as z235 } from "zod";
6646
+ var ResponseWrapper = z235.object({
6647
+ result: z235.record(z235.any())
6638
6648
  });
6639
6649
  var RequestExecutor = class {
6640
6650
  constructor(testServerConfig) {
@@ -6756,7 +6766,7 @@ function generateHash(input, debug = false) {
6756
6766
  }
6757
6767
 
6758
6768
  // src/yjs/design-system-content/documentation-hierarchy.ts
6759
- import { z as z235 } from "zod";
6769
+ import { z as z236 } from "zod";
6760
6770
 
6761
6771
  // src/yjs/version-room/base.ts
6762
6772
  var VersionRoomBaseYDoc = class {
@@ -7285,24 +7295,24 @@ var FrontendVersionRoomYDoc = class {
7285
7295
  };
7286
7296
 
7287
7297
  // src/yjs/design-system-content/documentation-hierarchy.ts
7288
- var DocumentationHierarchySettings = z235.object({
7289
- routingVersion: z235.string(),
7290
- isDraftFeatureAdopted: z235.boolean(),
7291
- isApprovalFeatureEnabled: z235.boolean(),
7292
- approvalRequiredForPublishing: z235.boolean()
7298
+ var DocumentationHierarchySettings = z236.object({
7299
+ routingVersion: z236.string(),
7300
+ isDraftFeatureAdopted: z236.boolean(),
7301
+ isApprovalFeatureEnabled: z236.boolean(),
7302
+ approvalRequiredForPublishing: z236.boolean()
7293
7303
  });
7294
7304
  function yjsToDocumentationHierarchy(doc) {
7295
7305
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
7296
7306
  }
7297
7307
 
7298
7308
  // src/yjs/design-system-content/item-configuration.ts
7299
- import { z as z236 } from "zod";
7300
- var DTODocumentationPageRoomHeaderData = z236.object({
7301
- title: z236.string(),
7309
+ import { z as z237 } from "zod";
7310
+ var DTODocumentationPageRoomHeaderData = z237.object({
7311
+ title: z237.string(),
7302
7312
  configuration: DTODocumentationItemConfigurationV2
7303
7313
  });
7304
- var DTODocumentationPageRoomHeaderDataUpdate = z236.object({
7305
- title: z236.string().optional(),
7314
+ var DTODocumentationPageRoomHeaderDataUpdate = z237.object({
7315
+ title: z237.string().optional(),
7306
7316
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
7307
7317
  });
7308
7318
  function itemConfigurationToYjs(yDoc, item) {
@@ -7353,7 +7363,7 @@ function yjsToItemConfiguration(yDoc) {
7353
7363
  header: rawHeader
7354
7364
  };
7355
7365
  return {
7356
- title: z236.string().parse(title),
7366
+ title: z237.string().parse(title),
7357
7367
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
7358
7368
  };
7359
7369
  }
@@ -7363,9 +7373,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
7363
7373
  var PageSectionEditorModel = PageSectionEditorModelV2;
7364
7374
 
7365
7375
  // src/yjs/docs-editor/model/page.ts
7366
- import { z as z237 } from "zod";
7367
- var DocumentationPageEditorModel = z237.object({
7368
- blocks: z237.array(DocumentationPageContentItem)
7376
+ import { z as z238 } from "zod";
7377
+ var DocumentationPageEditorModel = z238.object({
7378
+ blocks: z238.array(DocumentationPageContentItem)
7369
7379
  });
7370
7380
 
7371
7381
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -10716,7 +10726,7 @@ var blocks = [
10716
10726
 
10717
10727
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10718
10728
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10719
- import { z as z238 } from "zod";
10729
+ import { z as z239 } from "zod";
10720
10730
  function yDocToPage(yDoc, definitions) {
10721
10731
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10722
10732
  }
@@ -10796,7 +10806,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10796
10806
  return null;
10797
10807
  return {
10798
10808
  id,
10799
- title: getProsemirrorAttribute(prosemirrorNode, "title", z238.string()) ?? "",
10809
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z239.string()) ?? "",
10800
10810
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10801
10811
  };
10802
10812
  }
@@ -10831,7 +10841,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
10831
10841
  });
10832
10842
  }
10833
10843
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
10834
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z238.string());
10844
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z239.string());
10835
10845
  if (!definitionId) {
10836
10846
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
10837
10847
  return [];
@@ -10873,7 +10883,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
10873
10883
  if (!id)
10874
10884
  return null;
10875
10885
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10876
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z238.string().optional()));
10886
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z239.string().optional()));
10877
10887
  return {
10878
10888
  id,
10879
10889
  type: "Block",
@@ -11001,10 +11011,10 @@ function parseRichTextAttribute(mark) {
11001
11011
  return null;
11002
11012
  }
11003
11013
  function parseProsemirrorLink(mark) {
11004
- const href = getProsemirrorAttribute(mark, "href", z238.string().optional());
11014
+ const href = getProsemirrorAttribute(mark, "href", z239.string().optional());
11005
11015
  if (!href)
11006
11016
  return null;
11007
- const target = getProsemirrorAttribute(mark, "target", z238.string().optional());
11017
+ const target = getProsemirrorAttribute(mark, "target", z239.string().optional());
11008
11018
  const openInNewTab = target === "_blank";
11009
11019
  if (href.startsWith("@")) {
11010
11020
  return {
@@ -11023,10 +11033,10 @@ function parseProsemirrorLink(mark) {
11023
11033
  }
11024
11034
  }
11025
11035
  function parseProsemirrorCommentHighlight(mark) {
11026
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z238.string().optional());
11036
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z239.string().optional());
11027
11037
  if (!highlightId)
11028
11038
  return null;
11029
- const isResolved = getProsemirrorAttribute(mark, "resolved", z238.boolean().optional()) ?? false;
11039
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z239.boolean().optional()) ?? false;
11030
11040
  return {
11031
11041
  type: "Comment",
11032
11042
  commentHighlightId: highlightId,
@@ -11038,7 +11048,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
11038
11048
  if (!id)
11039
11049
  return null;
11040
11050
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
11041
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z238.boolean().optional()) !== false;
11051
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z239.boolean().optional()) !== false;
11042
11052
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
11043
11053
  if (!tableChild) {
11044
11054
  return emptyTable(id, variantId, 0);
@@ -11085,9 +11095,9 @@ function parseAsTableCell(prosemirrorNode) {
11085
11095
  const id = getProsemirrorBlockId(prosemirrorNode);
11086
11096
  if (!id)
11087
11097
  return null;
11088
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z238.string().optional());
11098
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z239.string().optional());
11089
11099
  let columnWidth;
11090
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z238.array(z238.number()).nullish());
11100
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z239.array(z239.number()).nullish());
11091
11101
  if (columnWidthArray) {
11092
11102
  columnWidth = roundDimension(columnWidthArray[0]);
11093
11103
  }
@@ -11125,7 +11135,7 @@ function parseAsTableNode(prosemirrorNode) {
11125
11135
  value: parseRichText(prosemirrorNode.content ?? [])
11126
11136
  };
11127
11137
  case "image":
11128
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z238.string());
11138
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z239.string());
11129
11139
  if (!items)
11130
11140
  return null;
11131
11141
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11245,7 +11255,7 @@ function definitionExpectsPlaceholderItem(definition) {
11245
11255
  );
11246
11256
  }
11247
11257
  function parseBlockItems(prosemirrorNode, definition) {
11248
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z238.string());
11258
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z239.string());
11249
11259
  if (!itemsString)
11250
11260
  return null;
11251
11261
  const itemsJson = JSON.parse(itemsString);
@@ -11257,18 +11267,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11257
11267
  }
11258
11268
  function parseAppearance(prosemirrorNode) {
11259
11269
  let appearance = {};
11260
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z238.string().optional());
11270
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z239.string().optional());
11261
11271
  if (rawAppearanceString) {
11262
11272
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11263
11273
  if (parsedAppearance.success) {
11264
11274
  appearance = parsedAppearance.data;
11265
11275
  }
11266
11276
  }
11267
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z238.number().optional());
11277
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z239.number().optional());
11268
11278
  if (columns) {
11269
11279
  appearance.numberOfColumns = columns;
11270
11280
  }
11271
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z238.string().optional());
11281
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z239.string().optional());
11272
11282
  if (backgroundColor) {
11273
11283
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11274
11284
  if (parsedColor.success) {
@@ -11363,13 +11373,13 @@ function valueSchemaForPropertyType(type) {
11363
11373
  }
11364
11374
  }
11365
11375
  function getProsemirrorBlockId(prosemirrorNode) {
11366
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z238.string());
11376
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z239.string());
11367
11377
  if (!id)
11368
11378
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11369
11379
  return id;
11370
11380
  }
11371
11381
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11372
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z238.string()));
11382
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z239.string()));
11373
11383
  }
11374
11384
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11375
11385
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);