@supernova-studio/client 0.55.0 → 0.55.2

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