@supernova-studio/client 1.44.2 → 1.44.3

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
@@ -168,13 +168,13 @@ import { z as z157 } from "zod";
168
168
  import { z as z158 } from "zod";
169
169
  import { z as z159 } from "zod";
170
170
  import { z as z160 } from "zod";
171
+ import { z as z188 } from "zod";
171
172
  import { z as z187 } from "zod";
172
- import { z as z186 } from "zod";
173
173
  import { z as z164 } from "zod";
174
174
  import { z as z165 } from "zod";
175
175
  import { z as z166 } from "zod";
176
176
  import { z as z167 } from "zod";
177
- import { z as z182 } from "zod";
177
+ import { z as z183 } 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";
@@ -189,37 +189,38 @@ import { z as z178 } from "zod";
189
189
  import { z as z180 } from "zod";
190
190
  import { z as z179 } from "zod";
191
191
  import { z as z181 } from "zod";
192
- import { z as z183 } from "zod";
192
+ import { z as z182 } from "zod";
193
193
  import { z as z184 } from "zod";
194
194
  import { z as z185 } from "zod";
195
+ import { z as z186 } from "zod";
196
+ import { z as z191 } from "zod";
195
197
  import { z as z190 } from "zod";
196
198
  import { z as z189 } from "zod";
197
- import { z as z188 } from "zod";
198
- import { z as z191 } from "zod";
199
199
  import { z as z192 } from "zod";
200
200
  import { z as z193 } from "zod";
201
- import { z as z197 } from "zod";
202
201
  import { z as z194 } from "zod";
202
+ import { z as z198 } from "zod";
203
203
  import { z as z195 } from "zod";
204
204
  import { z as z196 } from "zod";
205
- import { z as z198 } from "zod";
205
+ import { z as z197 } from "zod";
206
206
  import { z as z199 } from "zod";
207
207
  import { z as z200 } from "zod";
208
208
  import { z as z201 } from "zod";
209
209
  import { z as z202 } from "zod";
210
210
  import { z as z203 } from "zod";
211
211
  import { z as z204 } from "zod";
212
- import { z as z206 } from "zod";
213
212
  import { z as z205 } from "zod";
214
213
  import { z as z207 } from "zod";
214
+ import { z as z206 } from "zod";
215
215
  import { z as z208 } from "zod";
216
216
  import { z as z209 } from "zod";
217
217
  import { z as z210 } from "zod";
218
218
  import { z as z211 } from "zod";
219
219
  import { z as z212 } from "zod";
220
220
  import { z as z213 } from "zod";
221
- import z214 from "zod";
222
- import { z as z215 } from "zod";
221
+ import { z as z214 } from "zod";
222
+ import z215 from "zod";
223
+ import { z as z216 } from "zod";
223
224
  var __defProp2 = Object.defineProperty;
224
225
  var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
225
226
  var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -4595,14 +4596,14 @@ var UserProfile = z143.object({
4595
4596
  theme: nullishToOptional(UserTheme),
4596
4597
  portalTheme: nullishToOptional(PortalTheme)
4597
4598
  });
4598
- var UserProfileUpdate = UserProfile.partial().omit({
4599
- avatar: true
4600
- });
4601
4599
  var UserTest = z144.object({
4602
4600
  id: z144.string(),
4603
4601
  email: z144.string()
4604
4602
  });
4605
4603
  var UserSource = z145.enum(["SignUp", "Invite", "SSO"]);
4604
+ var UserEmailSettings = z145.object({
4605
+ marketingEmails: z145.boolean()
4606
+ });
4606
4607
  var User = z145.object({
4607
4608
  id: z145.string(),
4608
4609
  email: z145.string(),
@@ -4610,7 +4611,8 @@ var User = z145.object({
4610
4611
  profile: UserProfile,
4611
4612
  loggedOutAt: z145.coerce.date().optional(),
4612
4613
  isProtected: z145.boolean(),
4613
- source: UserSource.optional()
4614
+ source: UserSource.optional(),
4615
+ emailSettings: UserEmailSettings
4614
4616
  });
4615
4617
  var WorkspaceMembership = z146.object({
4616
4618
  id: z146.string(),
@@ -5270,26 +5272,38 @@ var ForgeProjectIteration = z181.object({
5270
5272
  previousIterationId: z181.string().optional(),
5271
5273
  mergeMeta: ForgeProjectIterationMergeMeta.optional()
5272
5274
  });
5273
- var ForgeProjectRoom = Entity.extend({
5275
+ var ForgeRelationType = z182.enum(["Feature", "Document"]);
5276
+ var ForgeRelation = z182.object({
5277
+ id: z182.string(),
5274
5278
  projectId: z182.string(),
5275
- liveblocksId: z182.string()
5276
- });
5277
- var ForgeProjectRoomInitialState = z182.object({
5278
- artifacts: z182.array(ForgeProjectArtifact),
5279
- features: z182.array(ProjectFeature),
5280
- artifactSections: z182.array(ForgeSection),
5281
- featureSections: z182.array(ForgeSection)
5282
- });
5283
- var ForgeProjectRoomUpdate = z182.object({
5284
- artifacts: z182.array(ForgeProjectArtifact).optional(),
5285
- artifactIdsToDelete: z182.array(z182.string()).optional(),
5286
- features: z182.array(ProjectFeature).optional(),
5287
- featureIdsToDelete: z182.array(z182.string()).optional(),
5288
- artifactSections: z182.array(ForgeSection).optional(),
5289
- artifactSectionIdsToDelete: z182.array(z182.string()).optional(),
5290
- featureSections: z182.array(ForgeSection).optional(),
5291
- featureSectionIdsToDelete: z182.array(z182.string()).optional(),
5292
- executedTransactionIds: z182.string().array().optional()
5279
+ sourceItemId: z182.string().uuid(),
5280
+ sourceItemType: ForgeRelationType,
5281
+ targetItemId: z182.string().uuid(),
5282
+ targetItemType: ForgeRelationType,
5283
+ createdAt: z182.string()
5284
+ });
5285
+ var ForgeProjectRoom = Entity.extend({
5286
+ projectId: z183.string(),
5287
+ liveblocksId: z183.string()
5288
+ });
5289
+ var ForgeProjectRoomInitialState = z183.object({
5290
+ artifacts: z183.array(ForgeProjectArtifact),
5291
+ features: z183.array(ProjectFeature),
5292
+ artifactSections: z183.array(ForgeSection),
5293
+ featureSections: z183.array(ForgeSection),
5294
+ relations: z183.array(ForgeRelation)
5295
+ });
5296
+ var ForgeProjectRoomUpdate = z183.object({
5297
+ artifacts: z183.array(ForgeProjectArtifact).optional(),
5298
+ artifactIdsToDelete: z183.array(z183.string()).optional(),
5299
+ features: z183.array(ProjectFeature).optional(),
5300
+ featureIdsToDelete: z183.array(z183.string()).optional(),
5301
+ artifactSections: z183.array(ForgeSection).optional(),
5302
+ artifactSectionIdsToDelete: z183.array(z183.string()).optional(),
5303
+ featureSections: z183.array(ForgeSection).optional(),
5304
+ featureSectionIdsToDelete: z183.array(z183.string()).optional(),
5305
+ relations: z183.array(ForgeRelation).optional(),
5306
+ executedTransactionIds: z183.string().array().optional()
5293
5307
  });
5294
5308
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5295
5309
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
@@ -5301,28 +5315,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5301
5315
  RoomTypeEnum2["ForgeProjectFeature"] = "forge-project-feature";
5302
5316
  return RoomTypeEnum2;
5303
5317
  })(RoomTypeEnum || {});
5304
- var RoomTypeSchema = z183.nativeEnum(RoomTypeEnum);
5318
+ var RoomTypeSchema = z184.nativeEnum(RoomTypeEnum);
5305
5319
  var RoomType = RoomTypeSchema.enum;
5306
5320
  var WorkspaceRoom = Entity.extend({
5307
- workspaceId: z184.string(),
5308
- liveblocksId: z184.string()
5321
+ workspaceId: z185.string(),
5322
+ liveblocksId: z185.string()
5309
5323
  });
5310
- var PublishedDocsDump = z185.object({
5324
+ var PublishedDocsDump = z186.object({
5311
5325
  documentation: PublishedDoc,
5312
5326
  pages: PublishedDocPage.array()
5313
5327
  });
5314
- var DocumentationThreadDump = z186.object({
5328
+ var DocumentationThreadDump = z187.object({
5315
5329
  thread: DocumentationCommentThread,
5316
5330
  comments: DocumentationComment.array()
5317
5331
  });
5318
- var DocumentationPageRoomDump = z186.object({
5332
+ var DocumentationPageRoomDump = z187.object({
5319
5333
  room: DocumentationPageRoom,
5320
5334
  threads: DocumentationThreadDump.array()
5321
5335
  });
5322
- var DesignSystemVersionMultiplayerDump = z186.object({
5336
+ var DesignSystemVersionMultiplayerDump = z187.object({
5323
5337
  documentationPages: DocumentationPageRoomDump.array()
5324
5338
  });
5325
- var DesignSystemVersionDump = z186.object({
5339
+ var DesignSystemVersionDump = z187.object({
5326
5340
  version: DesignSystemVersion,
5327
5341
  brands: Brand.array(),
5328
5342
  elements: DesignElement.array(),
@@ -5335,50 +5349,50 @@ var DesignSystemVersionDump = z186.object({
5335
5349
  publishedDocumentations: PublishedDocsDump.array(),
5336
5350
  assetReferences: AssetReference.array()
5337
5351
  });
5338
- var DesignSystemDump = z187.object({
5352
+ var DesignSystemDump = z188.object({
5339
5353
  designSystem: DesignSystem,
5340
5354
  dataSources: DataSource.array(),
5341
5355
  versions: DesignSystemVersionDump.array(),
5342
5356
  customDomain: CustomDomain.optional(),
5343
5357
  files: Asset.array()
5344
5358
  });
5345
- var IntegrationDesignSystem = z188.object({
5346
- designSystemId: z188.string(),
5347
- brandId: z188.string(),
5348
- title: z188.string().optional(),
5349
- userId: z188.string().optional(),
5350
- date: z188.coerce.date().optional()
5351
- });
5352
- var IntegrationCredentialsType = z188.enum(["OAuth2", "PAT"]);
5353
- var IntegrationCredentialsState = z188.enum(["Active", "Inactive"]);
5354
- var IntegrationCredentialsProfile = z188.object({
5355
- id: nullishToOptional(z188.string()),
5356
- email: nullishToOptional(z188.string()),
5357
- handle: nullishToOptional(z188.string()),
5358
- type: nullishToOptional(z188.string()),
5359
- avatarUrl: nullishToOptional(z188.string()),
5360
- organization: nullishToOptional(z188.string()),
5361
- collection: nullishToOptional(z188.string())
5362
- });
5363
- var IntegrationCredentials = z188.object({
5364
- id: z188.string(),
5359
+ var IntegrationDesignSystem = z189.object({
5360
+ designSystemId: z189.string(),
5361
+ brandId: z189.string(),
5362
+ title: z189.string().optional(),
5363
+ userId: z189.string().optional(),
5364
+ date: z189.coerce.date().optional()
5365
+ });
5366
+ var IntegrationCredentialsType = z189.enum(["OAuth2", "PAT"]);
5367
+ var IntegrationCredentialsState = z189.enum(["Active", "Inactive"]);
5368
+ var IntegrationCredentialsProfile = z189.object({
5369
+ id: nullishToOptional(z189.string()),
5370
+ email: nullishToOptional(z189.string()),
5371
+ handle: nullishToOptional(z189.string()),
5372
+ type: nullishToOptional(z189.string()),
5373
+ avatarUrl: nullishToOptional(z189.string()),
5374
+ organization: nullishToOptional(z189.string()),
5375
+ collection: nullishToOptional(z189.string())
5376
+ });
5377
+ var IntegrationCredentials = z189.object({
5378
+ id: z189.string(),
5365
5379
  type: IntegrationCredentialsType,
5366
- integrationId: z188.string(),
5367
- accessToken: z188.string(),
5368
- userId: z188.string(),
5369
- createdAt: z188.coerce.date(),
5370
- refreshToken: z188.string().optional(),
5371
- tokenName: z188.string().optional(),
5372
- expiresAt: z188.coerce.date().optional(),
5373
- refreshedAt: z188.coerce.date().optional(),
5374
- username: z188.string().optional(),
5375
- appInstallationId: z188.string().optional(),
5380
+ integrationId: z189.string(),
5381
+ accessToken: z189.string(),
5382
+ userId: z189.string(),
5383
+ createdAt: z189.coerce.date(),
5384
+ refreshToken: z189.string().optional(),
5385
+ tokenName: z189.string().optional(),
5386
+ expiresAt: z189.coerce.date().optional(),
5387
+ refreshedAt: z189.coerce.date().optional(),
5388
+ username: z189.string().optional(),
5389
+ appInstallationId: z189.string().optional(),
5376
5390
  profile: IntegrationCredentialsProfile.optional(),
5377
- customUrl: z188.string().optional(),
5391
+ customUrl: z189.string().optional(),
5378
5392
  state: IntegrationCredentialsState,
5379
5393
  user: UserMinified.optional()
5380
5394
  });
5381
- var ExtendedIntegrationType = z188.enum([
5395
+ var ExtendedIntegrationType = z189.enum([
5382
5396
  "Figma",
5383
5397
  "Github",
5384
5398
  "Gitlab",
@@ -5389,26 +5403,26 @@ var ExtendedIntegrationType = z188.enum([
5389
5403
  ]);
5390
5404
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5391
5405
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5392
- var Integration = z188.object({
5393
- id: z188.string(),
5394
- workspaceId: z188.string(),
5406
+ var Integration = z189.object({
5407
+ id: z189.string(),
5408
+ workspaceId: z189.string(),
5395
5409
  type: IntegrationType,
5396
- createdAt: z188.coerce.date(),
5397
- integrationCredentials: z188.array(IntegrationCredentials).optional()
5398
- });
5399
- var IntegrationToken = z188.object({
5400
- access_token: z188.string(),
5401
- refresh_token: z188.string().optional(),
5402
- expires_in: z188.union([z188.number().optional(), z188.string().optional()]),
5403
- token_type: z188.string().optional(),
5404
- token_name: z188.string().optional(),
5405
- token_azure_organization_name: z188.string().optional(),
5410
+ createdAt: z189.coerce.date(),
5411
+ integrationCredentials: z189.array(IntegrationCredentials).optional()
5412
+ });
5413
+ var IntegrationToken = z189.object({
5414
+ access_token: z189.string(),
5415
+ refresh_token: z189.string().optional(),
5416
+ expires_in: z189.union([z189.number().optional(), z189.string().optional()]),
5417
+ token_type: z189.string().optional(),
5418
+ token_name: z189.string().optional(),
5419
+ token_azure_organization_name: z189.string().optional(),
5406
5420
  // Azure Cloud PAT only
5407
- token_azure_collection_name: z188.string().optional(),
5421
+ token_azure_collection_name: z189.string().optional(),
5408
5422
  // Azure Server PAT only
5409
- token_bitbucket_username: z188.string().optional(),
5423
+ token_bitbucket_username: z189.string().optional(),
5410
5424
  // Bitbucket only
5411
- custom_url: z188.string().optional().transform((value) => {
5425
+ custom_url: z189.string().optional().transform((value) => {
5412
5426
  if (!value?.trim()) return void 0;
5413
5427
  return formatCustomUrl(value);
5414
5428
  })
@@ -5443,122 +5457,122 @@ function formatCustomUrl(url) {
5443
5457
  }
5444
5458
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
5445
5459
  }
5446
- var WorkspaceDump = z189.object({
5460
+ var WorkspaceDump = z190.object({
5447
5461
  workspace: Workspace,
5448
5462
  designSystems: DesignSystemDump.array(),
5449
5463
  codeIntegration: CodeIntegrationDump,
5450
5464
  integrations: Integration.array()
5451
5465
  });
5452
- var UserDump = z190.object({
5466
+ var UserDump = z191.object({
5453
5467
  user: User,
5454
5468
  workspaces: WorkspaceDump.array()
5455
5469
  });
5456
- var NpmProxyToken = z191.object({
5457
- access: z191.string(),
5458
- expiresAt: z191.number()
5470
+ var NpmProxyToken = z192.object({
5471
+ access: z192.string(),
5472
+ expiresAt: z192.number()
5459
5473
  });
5460
- var SessionData = z191.object({
5461
- returnToUrl: z191.string().optional(),
5474
+ var SessionData = z192.object({
5475
+ returnToUrl: z192.string().optional(),
5462
5476
  npmProxyToken: NpmProxyToken.optional()
5463
5477
  });
5464
- var Session = z191.object({
5465
- id: z191.string(),
5466
- expiresAt: z191.coerce.date(),
5467
- userId: z191.string().nullable(),
5468
- anonymousId: z191.string().nullable(),
5478
+ var Session = z192.object({
5479
+ id: z192.string(),
5480
+ expiresAt: z192.coerce.date(),
5481
+ userId: z192.string().nullable(),
5482
+ anonymousId: z192.string().nullable(),
5469
5483
  data: SessionData
5470
5484
  });
5471
- var AuthTokens = z191.object({
5472
- access: z191.string(),
5473
- refresh: z191.string()
5485
+ var AuthTokens = z192.object({
5486
+ access: z192.string(),
5487
+ refresh: z192.string()
5474
5488
  });
5475
- var UserSession = z191.object({
5489
+ var UserSession = z192.object({
5476
5490
  session: Session,
5477
5491
  user: User.nullable()
5478
5492
  });
5479
- var DesignSystemInviteEmailRecipient = z192.object({
5480
- email: z192.string(),
5493
+ var DesignSystemInviteEmailRecipient = z193.object({
5494
+ email: z193.string(),
5481
5495
  role: WorkspaceRoleSchema
5482
5496
  });
5483
- var DesignSystemInviteEmailData = z192.object({
5497
+ var DesignSystemInviteEmailData = z193.object({
5484
5498
  workspace: Workspace,
5485
5499
  designSystem: DesignSystem,
5486
5500
  invitedBy: User,
5487
- documentationDomain: z192.string().optional()
5501
+ documentationDomain: z193.string().optional()
5488
5502
  });
5489
- var WorkspaceInviteEmailRecipient = z193.object({
5490
- email: z193.string(),
5503
+ var WorkspaceInviteEmailRecipient = z194.object({
5504
+ email: z194.string(),
5491
5505
  role: WorkspaceRoleSchema
5492
5506
  });
5493
- var WorkspaceInviteEmailData = z193.object({
5507
+ var WorkspaceInviteEmailData = z194.object({
5494
5508
  workspace: Workspace,
5495
5509
  invitedBy: User,
5496
- documentationDomain: z193.string().optional()
5497
- });
5498
- var EventDataSourceImported = z194.object({
5499
- type: z194.literal("DataSourceImported"),
5500
- workspaceId: z194.string(),
5501
- designSystemId: z194.string()
5510
+ documentationDomain: z194.string().optional()
5502
5511
  });
5503
- var EventVersionReleased = z195.object({
5504
- type: z195.literal("DesignSystemVersionReleased"),
5512
+ var EventDataSourceImported = z195.object({
5513
+ type: z195.literal("DataSourceImported"),
5505
5514
  workspaceId: z195.string(),
5506
- designSystemId: z195.string(),
5507
- versionId: z195.string()
5515
+ designSystemId: z195.string()
5508
5516
  });
5509
- var EventDocumentationPublished = z196.object({
5510
- type: z196.literal("DocumentationPublished"),
5517
+ var EventVersionReleased = z196.object({
5518
+ type: z196.literal("DesignSystemVersionReleased"),
5511
5519
  workspaceId: z196.string(),
5512
5520
  designSystemId: z196.string(),
5513
5521
  versionId: z196.string()
5514
5522
  });
5515
- var Event = z197.discriminatedUnion("type", [
5523
+ var EventDocumentationPublished = z197.object({
5524
+ type: z197.literal("DocumentationPublished"),
5525
+ workspaceId: z197.string(),
5526
+ designSystemId: z197.string(),
5527
+ versionId: z197.string()
5528
+ });
5529
+ var Event = z198.discriminatedUnion("type", [
5516
5530
  EventVersionReleased,
5517
5531
  EventDataSourceImported,
5518
5532
  EventDocumentationPublished
5519
5533
  ]);
5520
- var ExportJobDocumentationContext = z198.object({
5521
- isSingleVersionDocs: z198.boolean(),
5522
- versionSlug: z198.string(),
5534
+ var ExportJobDocumentationContext = z199.object({
5535
+ isSingleVersionDocs: z199.boolean(),
5536
+ versionSlug: z199.string(),
5523
5537
  environment: PublishedDocEnvironment
5524
5538
  });
5525
- var ExportJobDebugContext = z198.object({
5526
- debugMode: z198.boolean().optional(),
5527
- concurrency: z198.number().optional(),
5528
- preloadData: z198.string().optional(),
5529
- concurrencyMode: z198.string().optional(),
5530
- cacheSdk: z198.string().optional(),
5531
- logSdkNetwork: z198.boolean().optional(),
5532
- profilerMode: z198.string().optional()
5533
- });
5534
- var ExportJobContext = z198.object({
5535
- apiUrl: z198.string(),
5536
- accessToken: z198.string(),
5537
- designSystemId: z198.string(),
5538
- designSystemName: z198.string(),
5539
- exporterId: z198.string(),
5540
- versionId: z198.string(),
5541
- brandId: z198.string().optional(),
5542
- themeId: z198.string().optional(),
5543
- themePersistentIds: z198.string().array().optional(),
5544
- previewMode: z198.boolean().optional(),
5545
- exporterName: z198.string(),
5539
+ var ExportJobDebugContext = z199.object({
5540
+ debugMode: z199.boolean().optional(),
5541
+ concurrency: z199.number().optional(),
5542
+ preloadData: z199.string().optional(),
5543
+ concurrencyMode: z199.string().optional(),
5544
+ cacheSdk: z199.string().optional(),
5545
+ logSdkNetwork: z199.boolean().optional(),
5546
+ profilerMode: z199.string().optional()
5547
+ });
5548
+ var ExportJobContext = z199.object({
5549
+ apiUrl: z199.string(),
5550
+ accessToken: z199.string(),
5551
+ designSystemId: z199.string(),
5552
+ designSystemName: z199.string(),
5553
+ exporterId: z199.string(),
5554
+ versionId: z199.string(),
5555
+ brandId: z199.string().optional(),
5556
+ themeId: z199.string().optional(),
5557
+ themePersistentIds: z199.string().array().optional(),
5558
+ previewMode: z199.boolean().optional(),
5559
+ exporterName: z199.string(),
5546
5560
  documentation: ExportJobDocumentationContext.optional(),
5547
5561
  debug: ExportJobDebugContext.optional()
5548
5562
  });
5549
- var ExportJobExporterConfiguration = z198.object({
5550
- exporterPackageUrl: z198.string(),
5563
+ var ExportJobExporterConfiguration = z199.object({
5564
+ exporterPackageUrl: z199.string(),
5551
5565
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
5552
5566
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
5553
5567
  });
5554
- var ExporterFunctionPayload = z199.object({
5555
- exportJobId: z199.string(),
5556
- exportContextId: z199.string(),
5557
- designSystemId: z199.string(),
5558
- workspaceId: z199.string(),
5559
- exporterId: z199.string()
5568
+ var ExporterFunctionPayload = z200.object({
5569
+ exportJobId: z200.string(),
5570
+ exportContextId: z200.string(),
5571
+ designSystemId: z200.string(),
5572
+ workspaceId: z200.string(),
5573
+ exporterId: z200.string()
5560
5574
  });
5561
- var ExportJobDestinationType = z200.enum([
5575
+ var ExportJobDestinationType = z201.enum([
5562
5576
  "s3",
5563
5577
  "webhookUrl",
5564
5578
  "github",
@@ -5567,31 +5581,31 @@ var ExportJobDestinationType = z200.enum([
5567
5581
  "gitlab",
5568
5582
  "bitbucket"
5569
5583
  ]);
5570
- var ExportJobStatus = z200.enum(["InProgress", "Success", "Failed", "Timeout"]);
5571
- var ExportJobLogEntryType = z200.enum(["success", "info", "warning", "error", "user"]);
5572
- var ExportJobLogEntry = z200.object({
5573
- id: z200.string().optional(),
5574
- time: z200.coerce.date(),
5584
+ var ExportJobStatus = z201.enum(["InProgress", "Success", "Failed", "Timeout"]);
5585
+ var ExportJobLogEntryType = z201.enum(["success", "info", "warning", "error", "user"]);
5586
+ var ExportJobLogEntry = z201.object({
5587
+ id: z201.string().optional(),
5588
+ time: z201.coerce.date(),
5575
5589
  type: ExportJobLogEntryType,
5576
- message: z200.string()
5590
+ message: z201.string()
5577
5591
  });
5578
- var ExportJobPullRequestDestinationResult = z200.object({
5579
- pullRequestUrl: z200.string(),
5580
- sparseCheckoutUsed: nullishToOptional(z200.boolean())
5592
+ var ExportJobPullRequestDestinationResult = z201.object({
5593
+ pullRequestUrl: z201.string(),
5594
+ sparseCheckoutUsed: nullishToOptional(z201.boolean())
5581
5595
  });
5582
- var ExportJobS3DestinationResult = z200.object({
5583
- bucket: z200.string(),
5584
- urlPrefix: z200.string().optional(),
5585
- path: z200.string(),
5586
- files: z200.array(z200.string()),
5587
- url: nullishToOptional(z200.string()),
5588
- urls: nullishToOptional(z200.string().array())
5596
+ var ExportJobS3DestinationResult = z201.object({
5597
+ bucket: z201.string(),
5598
+ urlPrefix: z201.string().optional(),
5599
+ path: z201.string(),
5600
+ files: z201.array(z201.string()),
5601
+ url: nullishToOptional(z201.string()),
5602
+ urls: nullishToOptional(z201.string().array())
5589
5603
  });
5590
- var ExportJobDocsDestinationResult = z200.object({
5591
- url: z200.string()
5604
+ var ExportJobDocsDestinationResult = z201.object({
5605
+ url: z201.string()
5592
5606
  });
5593
- var ExportJobResult = z200.object({
5594
- error: z200.string().optional(),
5607
+ var ExportJobResult = z201.object({
5608
+ error: z201.string().optional(),
5595
5609
  s3: nullishToOptional(ExportJobS3DestinationResult),
5596
5610
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5597
5611
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5600,25 +5614,25 @@ var ExportJobResult = z200.object({
5600
5614
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5601
5615
  logs: nullishToOptional(ExportJobLogEntry.array())
5602
5616
  });
5603
- var ExportJob = z200.object({
5604
- id: z200.string(),
5605
- createdAt: z200.coerce.date(),
5606
- finishedAt: z200.coerce.date().optional(),
5607
- designSystemId: z200.string(),
5608
- designSystemVersionId: z200.string(),
5609
- workspaceId: z200.string(),
5610
- scheduleId: z200.string().nullish(),
5611
- exporterId: z200.string(),
5612
- brandId: z200.string().optional(),
5613
- themeId: z200.string().optional(),
5614
- themePersistentIds: z200.string().array().optional(),
5615
- estimatedExecutionTime: z200.number().optional(),
5617
+ var ExportJob = z201.object({
5618
+ id: z201.string(),
5619
+ createdAt: z201.coerce.date(),
5620
+ finishedAt: z201.coerce.date().optional(),
5621
+ designSystemId: z201.string(),
5622
+ designSystemVersionId: z201.string(),
5623
+ workspaceId: z201.string(),
5624
+ scheduleId: z201.string().nullish(),
5625
+ exporterId: z201.string(),
5626
+ brandId: z201.string().optional(),
5627
+ themeId: z201.string().optional(),
5628
+ themePersistentIds: z201.string().array().optional(),
5629
+ estimatedExecutionTime: z201.number().optional(),
5616
5630
  status: ExportJobStatus,
5617
5631
  result: ExportJobResult.optional(),
5618
- createdByUserId: z200.string().optional(),
5632
+ createdByUserId: z201.string().optional(),
5619
5633
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5620
- previewMode: z200.boolean().optional(),
5621
- exportContextId: z200.string().optional().nullable(),
5634
+ previewMode: z201.boolean().optional(),
5635
+ exportContextId: z201.string().optional().nullable(),
5622
5636
  // Destinations
5623
5637
  ...ExportDestinationsMap.shape
5624
5638
  });
@@ -5632,25 +5646,25 @@ var ExportJobFindByFilter = ExportJob.pick({
5632
5646
  themeId: true,
5633
5647
  brandId: true
5634
5648
  }).extend({
5635
- destinations: z200.array(ExportJobDestinationType),
5649
+ destinations: z201.array(ExportJobDestinationType),
5636
5650
  docsEnvironment: PublishedDocEnvironment,
5637
- selectivePublishing: z200.boolean().optional()
5651
+ selectivePublishing: z201.boolean().optional()
5638
5652
  }).partial();
5639
- var ExporterType2 = z201.enum(["documentation", "code"]);
5640
- var ListExporterQuery = z201.object({
5641
- limit: z201.number().optional(),
5642
- offset: z201.number().optional(),
5653
+ var ExporterType2 = z202.enum(["documentation", "code"]);
5654
+ var ListExporterQuery = z202.object({
5655
+ limit: z202.number().optional(),
5656
+ offset: z202.number().optional(),
5643
5657
  type: ExporterType2.optional(),
5644
- search: z201.string().optional()
5658
+ search: z202.string().optional()
5645
5659
  });
5646
- var ExporterWorkspaceMembershipRole = z202.enum(["Owner", "OwnerArchived", "User"]);
5647
- var ExporterWorkspaceMembership = z203.object({
5648
- id: z203.string(),
5649
- workspaceId: z203.string(),
5650
- exporterId: z203.string(),
5660
+ var ExporterWorkspaceMembershipRole = z203.enum(["Owner", "OwnerArchived", "User"]);
5661
+ var ExporterWorkspaceMembership = z204.object({
5662
+ id: z204.string(),
5663
+ workspaceId: z204.string(),
5664
+ exporterId: z204.string(),
5651
5665
  role: ExporterWorkspaceMembershipRole
5652
5666
  });
5653
- var FlaggedFeature = z204.enum([
5667
+ var FlaggedFeature = z205.enum([
5654
5668
  "FigmaImporterV2",
5655
5669
  "DisableImporter",
5656
5670
  "VariablesOrder",
@@ -5672,14 +5686,14 @@ var FlaggedFeature = z204.enum([
5672
5686
  "ForgeE2BTemplate",
5673
5687
  "ForgeOnDemandIterations"
5674
5688
  ]);
5675
- var FeatureFlagMap = z204.record(FlaggedFeature, z204.boolean());
5676
- var FeatureFlag = z204.object({
5677
- id: z204.string(),
5689
+ var FeatureFlagMap = z205.record(FlaggedFeature, z205.boolean());
5690
+ var FeatureFlag = z205.object({
5691
+ id: z205.string(),
5678
5692
  feature: FlaggedFeature,
5679
- createdAt: z204.coerce.date(),
5680
- enabled: z204.boolean(),
5681
- designSystemId: z204.string().optional(),
5682
- data: z204.record(z204.any()).nullable().optional()
5693
+ createdAt: z205.coerce.date(),
5694
+ enabled: z205.boolean(),
5695
+ designSystemId: z205.string().optional(),
5696
+ data: z205.record(z205.any()).nullable().optional()
5683
5697
  });
5684
5698
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5685
5699
  OAuthProviderNames2["Figma"] = "figma";
@@ -5689,160 +5703,160 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5689
5703
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5690
5704
  return OAuthProviderNames2;
5691
5705
  })(OAuthProviderNames || {});
5692
- var OAuthProviderSchema = z205.nativeEnum(OAuthProviderNames);
5706
+ var OAuthProviderSchema = z206.nativeEnum(OAuthProviderNames);
5693
5707
  var OAuthProvider = OAuthProviderSchema.enum;
5694
- var ExternalOAuthRequest = z206.object({
5695
- id: z206.string(),
5708
+ var ExternalOAuthRequest = z207.object({
5709
+ id: z207.string(),
5696
5710
  provider: OAuthProviderSchema,
5697
- userId: z206.string(),
5698
- state: z206.string(),
5699
- createdAt: z206.coerce.date()
5711
+ userId: z207.string(),
5712
+ state: z207.string(),
5713
+ createdAt: z207.coerce.date()
5700
5714
  });
5701
- var GitObjectsQuery = z207.object({
5702
- organization: z207.string().optional(),
5715
+ var GitObjectsQuery = z208.object({
5716
+ organization: z208.string().optional(),
5703
5717
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5704
- project: z207.string().optional(),
5718
+ project: z208.string().optional(),
5705
5719
  // Only for Bitbucket and Azure
5706
- repository: z207.string().optional(),
5720
+ repository: z208.string().optional(),
5707
5721
  // For all providers. For Gitlab, it's called "project".
5708
- branch: z207.string().optional(),
5722
+ branch: z208.string().optional(),
5709
5723
  // For all providers.
5710
- user: z207.string().optional()
5724
+ user: z208.string().optional()
5711
5725
  // Gitlab user
5712
5726
  });
5713
- var GitOrganization = z207.object({
5714
- id: z207.string(),
5715
- name: z207.string(),
5716
- url: z207.string(),
5717
- slug: z207.string()
5727
+ var GitOrganization = z208.object({
5728
+ id: z208.string(),
5729
+ name: z208.string(),
5730
+ url: z208.string(),
5731
+ slug: z208.string()
5718
5732
  });
5719
- var GitProject = z207.object({
5720
- id: z207.string(),
5721
- name: z207.string(),
5722
- url: z207.string(),
5723
- slug: z207.string()
5733
+ var GitProject = z208.object({
5734
+ id: z208.string(),
5735
+ name: z208.string(),
5736
+ url: z208.string(),
5737
+ slug: z208.string()
5724
5738
  });
5725
- var GitRepository = z207.object({
5726
- id: z207.string(),
5727
- name: z207.string(),
5728
- url: z207.string(),
5729
- slug: z207.string(),
5739
+ var GitRepository = z208.object({
5740
+ id: z208.string(),
5741
+ name: z208.string(),
5742
+ url: z208.string(),
5743
+ slug: z208.string(),
5730
5744
  /**
5731
5745
  * Can be undefined when:
5732
5746
  * - there are no branches in the repository yet
5733
5747
  * - Git provider doesn't expose this information on a repository via their API
5734
5748
  */
5735
- defaultBranch: z207.string().optional()
5749
+ defaultBranch: z208.string().optional()
5736
5750
  });
5737
- var GitBranch = z207.object({
5738
- name: z207.string(),
5739
- lastCommitId: z207.string()
5751
+ var GitBranch = z208.object({
5752
+ name: z208.string(),
5753
+ lastCommitId: z208.string()
5740
5754
  });
5741
- var IntegrationTokenSchemaOld = z208.object({
5742
- id: z208.string(),
5743
- provider: OAuthProviderSchema,
5744
- scope: z208.string(),
5745
- userId: z208.string(),
5746
- accessToken: z208.string(),
5747
- refreshToken: z208.string(),
5748
- expiresAt: z208.coerce.date(),
5749
- externalUserId: z208.string().nullish()
5750
- });
5751
- var WorkspaceOAuthRequestSchema = z209.object({
5755
+ var IntegrationTokenSchemaOld = z209.object({
5752
5756
  id: z209.string(),
5753
- workspaceId: z209.string(),
5754
5757
  provider: OAuthProviderSchema,
5758
+ scope: z209.string(),
5755
5759
  userId: z209.string(),
5756
- createdAt: z209.coerce.date()
5760
+ accessToken: z209.string(),
5761
+ refreshToken: z209.string(),
5762
+ expiresAt: z209.coerce.date(),
5763
+ externalUserId: z209.string().nullish()
5764
+ });
5765
+ var WorkspaceOAuthRequestSchema = z210.object({
5766
+ id: z210.string(),
5767
+ workspaceId: z210.string(),
5768
+ provider: OAuthProviderSchema,
5769
+ userId: z210.string(),
5770
+ createdAt: z210.coerce.date()
5757
5771
  });
5758
- var AnyRecord = z210.record(z210.any());
5772
+ var AnyRecord = z211.record(z211.any());
5759
5773
  var NpmPackageVersionDist = AnyRecord.and(
5760
- z210.object({
5761
- tarball: z210.string()
5774
+ z211.object({
5775
+ tarball: z211.string()
5762
5776
  })
5763
5777
  );
5764
5778
  var NpmPackageVersion = AnyRecord.and(
5765
- z210.object({
5779
+ z211.object({
5766
5780
  dist: NpmPackageVersionDist
5767
5781
  })
5768
5782
  );
5769
5783
  var NpmPackage = AnyRecord.and(
5770
- z210.object({
5771
- _id: z210.string(),
5772
- name: z210.string(),
5784
+ z211.object({
5785
+ _id: z211.string(),
5786
+ name: z211.string(),
5773
5787
  // e.g. "latest": "1.2.3"
5774
- "dist-tags": z210.record(z210.string(), z210.string()),
5788
+ "dist-tags": z211.record(z211.string(), z211.string()),
5775
5789
  // "1.2.3": {...}
5776
- versions: z210.record(NpmPackageVersion)
5790
+ versions: z211.record(NpmPackageVersion)
5777
5791
  })
5778
5792
  );
5779
- var NpmProxyTokenPayload = z211.object({
5780
- npmProxyRegistryConfigId: z211.string()
5781
- });
5782
- var PageScreenshotInput = z212.object({
5783
- url: z212.string().url(),
5784
- elementSelector: z212.string(),
5785
- uploadUrl: z212.string().url(),
5786
- viewportSize: z212.object({
5787
- width: z212.number().positive(),
5788
- height: z212.number().positive()
5793
+ var NpmProxyTokenPayload = z212.object({
5794
+ npmProxyRegistryConfigId: z212.string()
5795
+ });
5796
+ var PageScreenshotInput = z213.object({
5797
+ url: z213.string().url(),
5798
+ elementSelector: z213.string(),
5799
+ uploadUrl: z213.string().url(),
5800
+ viewportSize: z213.object({
5801
+ width: z213.number().positive(),
5802
+ height: z213.number().positive()
5789
5803
  }).optional(),
5790
- imageSize: z212.object({
5791
- width: z212.number().positive(),
5792
- height: z212.number().positive()
5804
+ imageSize: z213.object({
5805
+ width: z213.number().positive(),
5806
+ height: z213.number().positive()
5793
5807
  }).optional(),
5794
- supernovaAuth: z212.object({
5795
- accessToken: z212.string(),
5796
- authPageUrl: z212.string()
5808
+ supernovaAuth: z213.object({
5809
+ accessToken: z213.string(),
5810
+ authPageUrl: z213.string()
5797
5811
  }).optional()
5798
5812
  });
5799
- var PageScreenshotOutput = z212.discriminatedUnion("success", [
5800
- z212.object({
5801
- success: z212.literal(true),
5802
- fileSize: z212.number()
5813
+ var PageScreenshotOutput = z213.discriminatedUnion("success", [
5814
+ z213.object({
5815
+ success: z213.literal(true),
5816
+ fileSize: z213.number()
5803
5817
  }),
5804
- z212.object({
5805
- success: z212.literal(false),
5806
- error: z212.string()
5818
+ z213.object({
5819
+ success: z213.literal(false),
5820
+ error: z213.string()
5807
5821
  })
5808
5822
  ]);
5809
5823
  var PortalSettingsTheme = UserTheme;
5810
- var PortalSettingsSidebarLink = z213.object({
5811
- name: z213.string(),
5812
- url: z213.string(),
5813
- emoji: z213.string()
5814
- });
5815
- var PortalSettingsSidebarSection = z213.object({
5816
- sectionName: z213.string(),
5817
- links: z213.array(PortalSettingsSidebarLink)
5818
- });
5819
- var PortalSettingsSidebar = z213.array(PortalSettingsSidebarSection);
5820
- var PortalSettings = z213.object({
5821
- id: z213.string(),
5822
- workspaceId: z213.string(),
5823
- enabledDesignSystemIds: z213.array(z213.string()),
5824
- enabledBrandPersistentIds: z213.array(z213.string()),
5824
+ var PortalSettingsSidebarLink = z214.object({
5825
+ name: z214.string(),
5826
+ url: z214.string(),
5827
+ emoji: z214.string()
5828
+ });
5829
+ var PortalSettingsSidebarSection = z214.object({
5830
+ sectionName: z214.string(),
5831
+ links: z214.array(PortalSettingsSidebarLink)
5832
+ });
5833
+ var PortalSettingsSidebar = z214.array(PortalSettingsSidebarSection);
5834
+ var PortalSettings = z214.object({
5835
+ id: z214.string(),
5836
+ workspaceId: z214.string(),
5837
+ enabledDesignSystemIds: z214.array(z214.string()),
5838
+ enabledBrandPersistentIds: z214.array(z214.string()),
5825
5839
  theme: PortalSettingsTheme.nullish(),
5826
5840
  sidebar: PortalSettingsSidebar.nullish(),
5827
- createdAt: z213.coerce.date(),
5828
- updatedAt: z213.coerce.date()
5829
- });
5830
- var SentryTraceHeaders = z214.object({
5831
- sentryTrace: z214.string(),
5832
- baggage: z214.string()
5833
- });
5834
- var PersonalAccessToken = z215.object({
5835
- id: z215.string(),
5836
- userId: z215.string(),
5837
- workspaceId: z215.string().optional(),
5838
- designSystemId: z215.string().optional(),
5841
+ createdAt: z214.coerce.date(),
5842
+ updatedAt: z214.coerce.date()
5843
+ });
5844
+ var SentryTraceHeaders = z215.object({
5845
+ sentryTrace: z215.string(),
5846
+ baggage: z215.string()
5847
+ });
5848
+ var PersonalAccessToken = z216.object({
5849
+ id: z216.string(),
5850
+ userId: z216.string(),
5851
+ workspaceId: z216.string().optional(),
5852
+ designSystemId: z216.string().optional(),
5839
5853
  workspaceRole: WorkspaceRoleSchema.optional(),
5840
- name: z215.string(),
5841
- hidden: z215.boolean(),
5842
- token: z215.string(),
5843
- scope: z215.string().optional(),
5844
- createdAt: z215.coerce.date(),
5845
- expireAt: z215.coerce.date().optional()
5854
+ name: z216.string(),
5855
+ hidden: z216.boolean(),
5856
+ token: z216.string(),
5857
+ scope: z216.string().optional(),
5858
+ createdAt: z216.coerce.date(),
5859
+ expireAt: z216.coerce.date().optional()
5846
5860
  });
5847
5861
 
5848
5862
  // src/api/conversion/analytics/page-visits-to-dto.ts
@@ -6363,105 +6377,105 @@ function integrationCredentialToDto(credential) {
6363
6377
  }
6364
6378
 
6365
6379
  // src/api/dto/access-tokens/access-token.ts
6366
- import { z as z216 } from "zod";
6367
- var DTOAccessToken = z216.object({
6368
- id: z216.string(),
6369
- createdAt: z216.coerce.date(),
6370
- name: z216.string(),
6371
- scope: z216.string().optional()
6380
+ import { z as z217 } from "zod";
6381
+ var DTOAccessToken = z217.object({
6382
+ id: z217.string(),
6383
+ createdAt: z217.coerce.date(),
6384
+ name: z217.string(),
6385
+ scope: z217.string().optional()
6372
6386
  });
6373
6387
  var DTOAccessTokenFull = DTOAccessToken.extend({
6374
- token: z216.string()
6388
+ token: z217.string()
6375
6389
  });
6376
- var DTOAccessTokenListResponse = z216.object({
6390
+ var DTOAccessTokenListResponse = z217.object({
6377
6391
  tokens: DTOAccessToken.array()
6378
6392
  });
6379
- var DTOAccessTokenResponse = z216.object({
6393
+ var DTOAccessTokenResponse = z217.object({
6380
6394
  token: DTOAccessToken
6381
6395
  });
6382
- var DTOAccessTokenFullResponse = z216.object({
6396
+ var DTOAccessTokenFullResponse = z217.object({
6383
6397
  token: DTOAccessTokenFull
6384
6398
  });
6385
- var DTOAccessTokenCreatePayload = z216.object({
6386
- name: z216.string(),
6387
- scope: z216.string().optional()
6399
+ var DTOAccessTokenCreatePayload = z217.object({
6400
+ name: z217.string(),
6401
+ scope: z217.string().optional()
6388
6402
  });
6389
6403
 
6390
6404
  // src/api/dto/aux/color.ts
6391
- import { z as z217 } from "zod";
6392
- var DTOColorTokenInlineData = z217.object({
6393
- value: z217.string().regex(/^#[a-f0-9]{6,8}$/)
6405
+ import { z as z218 } from "zod";
6406
+ var DTOColorTokenInlineData = z218.object({
6407
+ value: z218.string().regex(/^#[a-f0-9]{6,8}$/)
6394
6408
  });
6395
6409
 
6396
6410
  // src/api/dto/aux/meta.ts
6397
- import { z as z218 } from "zod";
6398
- var DTOObjectMeta = z218.object({
6399
- name: z218.string().max(512),
6400
- description: z218.string().max(2048).optional()
6411
+ import { z as z219 } from "zod";
6412
+ var DTOObjectMeta = z219.object({
6413
+ name: z219.string().max(512),
6414
+ description: z219.string().max(2048).optional()
6401
6415
  });
6402
6416
 
6403
6417
  // src/api/dto/aux/pagination.ts
6404
- import { z as z219 } from "zod";
6405
- var DTOPagination = z219.object({
6406
- limit: z219.string().optional(),
6407
- offset: z219.string().optional()
6418
+ import { z as z220 } from "zod";
6419
+ var DTOPagination = z220.object({
6420
+ limit: z220.string().optional(),
6421
+ offset: z220.string().optional()
6408
6422
  });
6409
6423
 
6410
6424
  // src/api/dto/bff/app-bootstrap-data.ts
6411
6425
  import { z as z266 } from "zod";
6412
6426
 
6413
6427
  // src/api/dto/design-systems/brand.ts
6414
- import { z as z220 } from "zod";
6415
- var DTOBrand = z220.object({
6416
- id: z220.string(),
6417
- designSystemVersionId: z220.string(),
6418
- persistentId: z220.string(),
6428
+ import { z as z221 } from "zod";
6429
+ var DTOBrand = z221.object({
6430
+ id: z221.string(),
6431
+ designSystemVersionId: z221.string(),
6432
+ persistentId: z221.string(),
6419
6433
  meta: ObjectMeta
6420
6434
  });
6421
- var DTOBrandGetResponse = z220.object({ brand: DTOBrand });
6422
- var DTOBrandCreateResponse = z220.object({
6435
+ var DTOBrandGetResponse = z221.object({ brand: DTOBrand });
6436
+ var DTOBrandCreateResponse = z221.object({
6423
6437
  brand: DTOBrand
6424
6438
  });
6425
- var DTOBrandsListResponse = z220.object({ brands: z220.array(DTOBrand) });
6426
- var DTOBrandCreatePayload = z220.object({
6427
- persistentId: z220.string().uuid(),
6439
+ var DTOBrandsListResponse = z221.object({ brands: z221.array(DTOBrand) });
6440
+ var DTOBrandCreatePayload = z221.object({
6441
+ persistentId: z221.string().uuid(),
6428
6442
  meta: DTOObjectMeta
6429
6443
  });
6430
- var DTOBrandUpdatePayload = z220.object({
6444
+ var DTOBrandUpdatePayload = z221.object({
6431
6445
  meta: DTOObjectMeta.optional(),
6432
- persistentId: z220.string()
6446
+ persistentId: z221.string()
6433
6447
  });
6434
6448
 
6435
6449
  // src/api/dto/design-systems/code-component.ts
6436
- import { z as z221 } from "zod";
6450
+ import { z as z222 } from "zod";
6437
6451
  var DTOCodeComponentResolvedTypeKind = CodeComponentResolvedTypeKind;
6438
6452
  var DTOCodeComponentResolvedType = CodeComponentResolvedType;
6439
6453
  var DTOCodeComponentParentType = CodeComponentParentType;
6440
6454
  var DTOCodeComponentProperty = CodeComponentProperty;
6441
6455
  var DTOCodeComponent = CodeComponent;
6442
- var DTOCodeComponentResponse = z221.object({
6456
+ var DTOCodeComponentResponse = z222.object({
6443
6457
  codeComponent: DTOCodeComponent
6444
6458
  });
6445
- var DTOCodeComponentListResponse = z221.object({
6459
+ var DTOCodeComponentListResponse = z222.object({
6446
6460
  codeComponents: DTOCodeComponent.array()
6447
6461
  });
6448
- var DTOCodeComponentCreateInput = z221.object({
6449
- persistentId: z221.string(),
6450
- exportName: z221.string(),
6451
- componentPath: z221.string(),
6452
- description: z221.string(),
6453
- properties: z221.record(z221.string(), DTOCodeComponentProperty),
6454
- tags: z221.record(z221.string(), z221.string()).nullable()
6462
+ var DTOCodeComponentCreateInput = z222.object({
6463
+ persistentId: z222.string(),
6464
+ exportName: z222.string(),
6465
+ componentPath: z222.string(),
6466
+ description: z222.string(),
6467
+ properties: z222.record(z222.string(), DTOCodeComponentProperty),
6468
+ tags: z222.record(z222.string(), z222.string()).nullable()
6455
6469
  });
6456
- var DTOCodeComponentsCreateInput = z221.object({
6470
+ var DTOCodeComponentsCreateInput = z222.object({
6457
6471
  codeComponents: DTOCodeComponentCreateInput.array()
6458
6472
  });
6459
6473
  var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
6460
6474
  var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
6461
6475
  var DTODependencyDefinition = DependencyDefinition;
6462
6476
  var DTORegistry = Registry;
6463
- var DTOAnalyzeCodeComponentsInPackageResponse = z221.object({
6464
- ok: z221.literal(true)
6477
+ var DTOAnalyzeCodeComponentsInPackageResponse = z222.object({
6478
+ ok: z222.literal(true)
6465
6479
  });
6466
6480
  var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
6467
6481
  designSystemId: true,
@@ -6470,26 +6484,26 @@ var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit
6470
6484
  });
6471
6485
 
6472
6486
  // src/api/dto/design-systems/component.ts
6473
- import { z as z222 } from "zod";
6474
- var DTODesignSystemComponent = z222.object({
6475
- id: z222.string(),
6476
- persistentId: z222.string(),
6477
- designSystemVersionId: z222.string(),
6478
- brandId: z222.string(),
6487
+ import { z as z223 } from "zod";
6488
+ var DTODesignSystemComponent = z223.object({
6489
+ id: z223.string(),
6490
+ persistentId: z223.string(),
6491
+ designSystemVersionId: z223.string(),
6492
+ brandId: z223.string(),
6479
6493
  meta: DTOObjectMeta,
6480
- createdAt: z222.coerce.date(),
6481
- updatedAt: z222.coerce.date()
6494
+ createdAt: z223.coerce.date(),
6495
+ updatedAt: z223.coerce.date()
6482
6496
  });
6483
- var DTODesignSystemComponentResponse = z222.object({
6497
+ var DTODesignSystemComponentResponse = z223.object({
6484
6498
  designSystemComponent: DTODesignSystemComponent
6485
6499
  });
6486
- var DTODesignSystemComponentListResponse = z222.object({
6500
+ var DTODesignSystemComponentListResponse = z223.object({
6487
6501
  designSystemComponents: DTODesignSystemComponent.array()
6488
6502
  });
6489
- var DTODesignSystemComponentCreateInput = z222.object({
6490
- brandId: z222.string(),
6503
+ var DTODesignSystemComponentCreateInput = z223.object({
6504
+ brandId: z223.string(),
6491
6505
  // Persistent ID,
6492
- persistentId: z222.string(),
6506
+ persistentId: z223.string(),
6493
6507
  meta: DTOObjectMeta
6494
6508
  });
6495
6509
 
@@ -6497,60 +6511,70 @@ var DTODesignSystemComponentCreateInput = z222.object({
6497
6511
  import { z as z226 } from "zod";
6498
6512
 
6499
6513
  // src/api/dto/users/authenticated-user.ts
6500
- import { z as z224 } from "zod";
6514
+ import { z as z225 } from "zod";
6501
6515
 
6502
6516
  // src/api/dto/users/user.ts
6503
- import { z as z223 } from "zod";
6504
- var DTOUserProfile = z223.object({
6505
- name: z223.string(),
6506
- nickname: z223.string().optional(),
6507
- avatar: z223.string().optional()
6508
- });
6509
- var DTOUser = z223.object({
6510
- id: z223.string(),
6511
- email: z223.string(),
6517
+ import { z as z224 } from "zod";
6518
+ var DTOUserProfile = z224.object({
6519
+ name: z224.string(),
6520
+ nickname: z224.string().optional(),
6521
+ avatar: z224.string().optional()
6522
+ });
6523
+ var DTOUser = z224.object({
6524
+ id: z224.string(),
6525
+ email: z224.string(),
6512
6526
  profile: DTOUserProfile
6513
6527
  });
6514
- var DTOUserGetResponse = z223.object({
6528
+ var DTOUserGetResponse = z224.object({
6515
6529
  user: DTOUser
6516
6530
  });
6517
- var DTOUserProfileUpdate = UserProfileUpdate;
6518
6531
 
6519
6532
  // src/api/dto/users/authenticated-user.ts
6520
6533
  var DTOUserOnboardingDepartment = UserOnboardingDepartment;
6521
6534
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
6522
6535
  var DTOUserSource = UserSource;
6523
6536
  var DTOUserTheme = UserTheme;
6524
- var DTOUserOnboarding = z224.object({
6525
- companyName: z224.string().optional(),
6526
- numberOfPeopleInOrg: z224.string().optional(),
6527
- numberOfPeopleInDesignTeam: z224.string().optional(),
6537
+ var DTOUserPortalTheme = PortalTheme;
6538
+ var DTOUserOnboarding = z225.object({
6539
+ companyName: z225.string().optional(),
6540
+ numberOfPeopleInOrg: z225.string().optional(),
6541
+ numberOfPeopleInDesignTeam: z225.string().optional(),
6528
6542
  department: DTOUserOnboardingDepartment.optional(),
6529
- jobTitle: z224.string().optional(),
6530
- phase: z224.string().optional(),
6543
+ jobTitle: z225.string().optional(),
6544
+ phase: z225.string().optional(),
6531
6545
  jobLevel: DTOUserOnboardingJobLevel.optional(),
6532
- designSystemName: z224.string().optional(),
6533
- defaultDestination: z224.string().optional(),
6534
- isPageDraftOnboardingFinished: z224.boolean().optional()
6546
+ designSystemName: z225.string().optional(),
6547
+ defaultDestination: z225.string().optional(),
6548
+ isPageDraftOnboardingFinished: z225.boolean().optional(),
6549
+ figmaUrl: z225.string().optional(),
6550
+ isApprovalsOnboardingFinished: z225.boolean().optional()
6535
6551
  });
6536
6552
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
6537
6553
  onboarding: DTOUserOnboarding.optional(),
6538
- theme: DTOUserTheme.optional()
6554
+ theme: DTOUserTheme.optional(),
6555
+ portalTheme: DTOUserPortalTheme.optional()
6556
+ });
6557
+ var DTOUserEmailSettings = z225.object({
6558
+ marketingEmails: z225.boolean()
6539
6559
  });
6540
6560
  var DTOAuthenticatedUser = DTOUser.extend({
6541
6561
  profile: DTOAuthenticatedUserProfile,
6542
- createdAt: z224.coerce.date(),
6543
- loggedOutAt: z224.coerce.date().optional(),
6562
+ emailSettings: DTOUserEmailSettings,
6563
+ createdAt: z225.coerce.date(),
6564
+ loggedOutAt: z225.coerce.date().optional(),
6544
6565
  source: DTOUserSource.optional()
6545
6566
  });
6546
- var DTOAuthenticatedUserResponse = z224.object({
6547
- user: DTOAuthenticatedUser
6567
+ var DTOUserProfileUpdatePayload = DTOAuthenticatedUserProfile.partial().omit({
6568
+ avatar: true
6548
6569
  });
6549
-
6550
- // src/api/dto/users/update.ts
6551
- import { z as z225 } from "zod";
6552
- var DTOUserProfileUpdateResponse = z225.object({
6553
- user: User
6570
+ var DTOUserEmailSettingsUpdatePayload = DTOUserEmailSettings.partial();
6571
+ var DTOUserUpdatePayload = z225.object({
6572
+ profile: DTOUserProfileUpdatePayload.optional(),
6573
+ emailSettings: DTOUserEmailSettingsUpdatePayload.optional(),
6574
+ avatarFileId: z225.string().optional()
6575
+ });
6576
+ var DTOAuthenticatedUserResponse = z225.object({
6577
+ user: DTOAuthenticatedUser
6554
6578
  });
6555
6579
 
6556
6580
  // src/api/dto/design-systems/contact.ts
@@ -7736,9 +7760,6 @@ var DTOUserNotificationSettingsResponse = z261.object({
7736
7760
  notificationSettings: UserNotificationSettings
7737
7761
  });
7738
7762
 
7739
- // src/api/payloads/users/profile/update.ts
7740
- var DTOUserProfileUpdatePayload = UserProfileUpdate;
7741
-
7742
7763
  // src/api/payloads/workspaces/workspace-configuration.ts
7743
7764
  import { z as z262 } from "zod";
7744
7765
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
@@ -10397,14 +10418,19 @@ var DTOForgeProjectResponse = z330.object({
10397
10418
 
10398
10419
  // src/api/dto/forge/relation.ts
10399
10420
  import z331 from "zod";
10400
- var DTOForgeRelation = z331.object({
10401
- id: z331.string(),
10421
+ var DTOForgeRelationType = ForgeRelationType;
10422
+ var DTOForgeRelation = ForgeRelation;
10423
+ var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
10424
+ var DTOForgeRelationDelete = z331.object({
10425
+ sourceItemId: z331.string().uuid(),
10426
+ targetItemId: z331.string().uuid()
10427
+ });
10428
+ var DTOForgeRelationListInput = z331.object({
10402
10429
  projectId: z331.string(),
10403
- fromFeature: z331.string().optional(),
10404
- fromDocument: z331.string().optional(),
10405
- toFeature: z331.string().optional(),
10406
- toDocument: z331.string().optional(),
10407
- createdAt: z331.string()
10430
+ depth: z331.number().min(0).optional()
10431
+ });
10432
+ var DTOForgeRelationListResponse = z331.object({
10433
+ relations: z331.array(DTOForgeRelation)
10408
10434
  });
10409
10435
 
10410
10436
  // src/api/dto/forge/threads.ts
@@ -18169,6 +18195,7 @@ var ForgeProjectRoomBaseYDoc = class {
18169
18195
  const features = this.getFeatures();
18170
18196
  const artifactSections = this.getArtifactSections();
18171
18197
  const featureSections = this.getFeatureSections();
18198
+ const relations = this.getRelations();
18172
18199
  const executedTransactionIds = this.getExecutedTransactionIds();
18173
18200
  const isLoaded = true;
18174
18201
  return {
@@ -18177,6 +18204,7 @@ var ForgeProjectRoomBaseYDoc = class {
18177
18204
  features,
18178
18205
  artifactSections,
18179
18206
  featureSections,
18207
+ relations,
18180
18208
  executedTransactionIds
18181
18209
  };
18182
18210
  }
@@ -18225,6 +18253,9 @@ var ForgeProjectRoomBaseYDoc = class {
18225
18253
  get artifactSectionsYMap() {
18226
18254
  return this.yDoc.getMap("forgeProjectArtifactSections");
18227
18255
  }
18256
+ //
18257
+ // Feature Sections
18258
+ //
18228
18259
  getFeatureSections() {
18229
18260
  return this.getObjects(this.featureSectionsYMap, ForgeSection);
18230
18261
  }
@@ -18238,6 +18269,18 @@ var ForgeProjectRoomBaseYDoc = class {
18238
18269
  return this.yDoc.getMap("forgeProjectFeatureSections");
18239
18270
  }
18240
18271
  //
18272
+ // Relations
18273
+ //
18274
+ getRelations() {
18275
+ return this.getObjects(this.relationsYMap, ForgeRelation);
18276
+ }
18277
+ updateRelations(relations) {
18278
+ this.setObjects(this.relationsYMap, relations);
18279
+ }
18280
+ get relationsYMap() {
18281
+ return this.yDoc.getMap("forgeRelations");
18282
+ }
18283
+ //
18241
18284
  // Executed transactions
18242
18285
  //
18243
18286
  updateExecutedTransactionIds(transactionIds) {
@@ -18291,6 +18334,7 @@ var BackendForgeProjectRoomYDoc = class {
18291
18334
  transaction.artifactSections && yDoc.updateArtifactSections(transaction.artifactSections);
18292
18335
  transaction.featureSectionIdsToDelete && yDoc.deleteFeatureSections(transaction.featureSectionIdsToDelete);
18293
18336
  transaction.featureSections && yDoc.updateFeatureSections(transaction.featureSections);
18337
+ transaction.relations && yDoc.updateRelations(transaction.relations);
18294
18338
  transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
18295
18339
  });
18296
18340
  }
@@ -19553,6 +19597,11 @@ export {
19553
19597
  DTOForgeProjectTheme,
19554
19598
  DTOForgeProjectUpdate,
19555
19599
  DTOForgeRelation,
19600
+ DTOForgeRelationCreate,
19601
+ DTOForgeRelationDelete,
19602
+ DTOForgeRelationListInput,
19603
+ DTOForgeRelationListResponse,
19604
+ DTOForgeRelationType,
19556
19605
  DTOForgeSection,
19557
19606
  DTOForgeSectionCreateInput,
19558
19607
  DTOForgeSectionDeleteInput,
@@ -19716,17 +19765,19 @@ export {
19716
19765
  DTOUploadUrlItem,
19717
19766
  DTOUser,
19718
19767
  DTOUserDesignSystemsResponse,
19768
+ DTOUserEmailSettings,
19769
+ DTOUserEmailSettingsUpdatePayload,
19719
19770
  DTOUserGetResponse,
19720
19771
  DTOUserNotificationSettingsResponse,
19721
19772
  DTOUserOnboarding,
19722
19773
  DTOUserOnboardingDepartment,
19723
19774
  DTOUserOnboardingJobLevel,
19775
+ DTOUserPortalTheme,
19724
19776
  DTOUserProfile,
19725
- DTOUserProfileUpdate,
19726
19777
  DTOUserProfileUpdatePayload,
19727
- DTOUserProfileUpdateResponse,
19728
19778
  DTOUserSource,
19729
19779
  DTOUserTheme,
19780
+ DTOUserUpdatePayload,
19730
19781
  DTOUserWorkspaceMembership,
19731
19782
  DTOUserWorkspaceMembershipsResponse,
19732
19783
  DTOWorkspace,