@supernova-studio/client 1.44.2 → 1.44.4

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);
@@ -382,7 +383,7 @@ var PostStripePortalSessionOutputSchema = z9.object({
382
383
  id: z9.string(),
383
384
  url: z9.string().nullish()
384
385
  });
385
- var BillingIntervalSchema = z10.enum(["daily", "monthly", "weekly", "yearly"]);
386
+ var BillingIntervalSchema = z10.enum(["daily", "monthly", "yearly"]);
386
387
  var PriceSchema = z10.object({
387
388
  stripePriceId: z10.string(),
388
389
  stripeProductId: z10.string(),
@@ -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()
5510
+ documentationDomain: z194.string().optional()
5497
5511
  });
5498
- var EventDataSourceImported = z194.object({
5499
- type: z194.literal("DataSourceImported"),
5500
- workspaceId: z194.string(),
5501
- designSystemId: z194.string()
5502
- });
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
@@ -7101,7 +7125,7 @@ import z239 from "zod";
7101
7125
  var DTOWorkspaceRole = z239.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
7102
7126
  var DTOWorkspaceSeatType = z239.enum(["Full", "Builder", "None"]);
7103
7127
  var DTOWorkspaceBilledSeatType = z239.enum(["Full", "Builder"]);
7104
- var DTOBillingInterval = z239.enum(["daily", "monthly", "weekly", "yearly"]);
7128
+ var DTOBillingInterval = z239.enum(["daily", "monthly", "yearly"]);
7105
7129
  var DTOProductCode = z239.enum(["free", "pro", "team", "company", "enterprise"]);
7106
7130
 
7107
7131
  // src/api/dto/workspaces/billing.ts
@@ -7459,6 +7483,22 @@ var DTOSubscriptionResponse = z248.object({
7459
7483
  creditBalance: DTOCreditBalance.optional(),
7460
7484
  creditsPrices: DTOCreditsPrices
7461
7485
  });
7486
+ var DTOSubscriptionUpdatePreview = z248.object({
7487
+ proration: z248.object({
7488
+ amount: z248.number()
7489
+ }),
7490
+ nextBillingCycle: z248.object({
7491
+ amount: z248.number()
7492
+ })
7493
+ });
7494
+ var DTOSubscriptionUpdatePreviewResponse = z248.object({
7495
+ preview: DTOSubscriptionUpdatePreview
7496
+ });
7497
+ var DTOSubscriptionUpdateInput = z248.object({
7498
+ additionalCredits: z248.number(),
7499
+ builderSeats: z248.number(),
7500
+ fullSeats: z248.number()
7501
+ });
7462
7502
 
7463
7503
  // src/api/dto/workspaces/transfer-ownership.ts
7464
7504
  import { z as z249 } from "zod";
@@ -7736,9 +7776,6 @@ var DTOUserNotificationSettingsResponse = z261.object({
7736
7776
  notificationSettings: UserNotificationSettings
7737
7777
  });
7738
7778
 
7739
- // src/api/payloads/users/profile/update.ts
7740
- var DTOUserProfileUpdatePayload = UserProfileUpdate;
7741
-
7742
7779
  // src/api/payloads/workspaces/workspace-configuration.ts
7743
7780
  import { z as z262 } from "zod";
7744
7781
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
@@ -10397,14 +10434,19 @@ var DTOForgeProjectResponse = z330.object({
10397
10434
 
10398
10435
  // src/api/dto/forge/relation.ts
10399
10436
  import z331 from "zod";
10400
- var DTOForgeRelation = z331.object({
10401
- id: z331.string(),
10437
+ var DTOForgeRelationType = ForgeRelationType;
10438
+ var DTOForgeRelation = ForgeRelation;
10439
+ var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
10440
+ var DTOForgeRelationDelete = z331.object({
10441
+ sourceItemId: z331.string().uuid(),
10442
+ targetItemId: z331.string().uuid()
10443
+ });
10444
+ var DTOForgeRelationListInput = z331.object({
10402
10445
  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()
10446
+ depth: z331.number().min(0).optional()
10447
+ });
10448
+ var DTOForgeRelationListResponse = z331.object({
10449
+ relations: z331.array(DTOForgeRelation)
10408
10450
  });
10409
10451
 
10410
10452
  // src/api/dto/forge/threads.ts
@@ -12400,7 +12442,38 @@ var WorkspaceNpmRegistryEndpoint = class {
12400
12442
  };
12401
12443
 
12402
12444
  // src/api/endpoints/workspaces/workspaces.ts
12445
+ import { z as z353 } from "zod";
12446
+
12447
+ // src/api/endpoints/workspaces/subscription.ts
12403
12448
  import { z as z352 } from "zod";
12449
+ var WorkspaceSubscriptionEndpoint = class {
12450
+ constructor(requestExecutor) {
12451
+ this.requestExecutor = requestExecutor;
12452
+ }
12453
+ get(workspaceId) {
12454
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, DTOSubscriptionResponse, {
12455
+ method: "GET"
12456
+ });
12457
+ }
12458
+ update(workspaceId, body) {
12459
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z352.any(), {
12460
+ method: "PUT",
12461
+ body
12462
+ });
12463
+ }
12464
+ previewUpdate(workspaceId, body) {
12465
+ return this.requestExecutor.json(
12466
+ `/workspaces/${workspaceId}/subscription/preview-update`,
12467
+ DTOSubscriptionUpdatePreviewResponse,
12468
+ {
12469
+ method: "POST",
12470
+ body
12471
+ }
12472
+ );
12473
+ }
12474
+ };
12475
+
12476
+ // src/api/endpoints/workspaces/workspaces.ts
12404
12477
  var WorkspacesEndpoint = class {
12405
12478
  constructor(requestExecutor) {
12406
12479
  this.requestExecutor = requestExecutor;
@@ -12409,11 +12482,13 @@ var WorkspacesEndpoint = class {
12409
12482
  __publicField(this, "npmRegistry");
12410
12483
  __publicField(this, "chatThreads");
12411
12484
  __publicField(this, "integrations");
12485
+ __publicField(this, "subscription");
12412
12486
  this.members = new WorkspaceMembersEndpoint(requestExecutor);
12413
12487
  this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
12414
12488
  this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
12415
12489
  this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
12416
12490
  this.chatThreads = new WorkspaceChatThreadsEndpoint(requestExecutor);
12491
+ this.subscription = new WorkspaceSubscriptionEndpoint(requestExecutor);
12417
12492
  }
12418
12493
  create(body) {
12419
12494
  return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
@@ -12432,10 +12507,7 @@ var WorkspacesEndpoint = class {
12432
12507
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
12433
12508
  }
12434
12509
  delete(workspaceId) {
12435
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z352.any(), { method: "DELETE" });
12436
- }
12437
- subscription(workspaceId) {
12438
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z352.any(), { method: "GET" });
12510
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z353.any(), { method: "DELETE" });
12439
12511
  }
12440
12512
  getPortalSettings(workspaceId) {
12441
12513
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -12593,9 +12665,9 @@ ${bodyText}`,
12593
12665
 
12594
12666
  // src/api/transport/request-executor.ts
12595
12667
  import fetch from "node-fetch";
12596
- import { z as z353 } from "zod";
12597
- var ResponseWrapper = z353.object({
12598
- result: z353.record(z353.any())
12668
+ import { z as z354 } from "zod";
12669
+ var ResponseWrapper = z354.object({
12670
+ result: z354.record(z354.any())
12599
12671
  });
12600
12672
  var RequestExecutor = class {
12601
12673
  constructor(testServerConfig) {
@@ -12676,25 +12748,25 @@ var SupernovaApiClient = class {
12676
12748
  };
12677
12749
 
12678
12750
  // src/events/design-system.ts
12679
- import { z as z354 } from "zod";
12680
- var DTOEventFigmaNodesRendered = z354.object({
12681
- type: z354.literal("DesignSystem.FigmaNodesRendered"),
12682
- designSystemId: z354.string(),
12683
- versionId: z354.string(),
12684
- figmaNodePersistentIds: z354.string().array()
12685
- });
12686
- var DTOEventDataSourcesImported = z354.object({
12687
- type: z354.literal("DesignSystem.ImportJobFinished"),
12688
- designSystemId: z354.string(),
12689
- versionId: z354.string(),
12690
- importJobId: z354.string(),
12751
+ import { z as z355 } from "zod";
12752
+ var DTOEventFigmaNodesRendered = z355.object({
12753
+ type: z355.literal("DesignSystem.FigmaNodesRendered"),
12754
+ designSystemId: z355.string(),
12755
+ versionId: z355.string(),
12756
+ figmaNodePersistentIds: z355.string().array()
12757
+ });
12758
+ var DTOEventDataSourcesImported = z355.object({
12759
+ type: z355.literal("DesignSystem.ImportJobFinished"),
12760
+ designSystemId: z355.string(),
12761
+ versionId: z355.string(),
12762
+ importJobId: z355.string(),
12691
12763
  dataSourceType: DataSourceRemoteType,
12692
- dataSourceIds: z354.string().array()
12764
+ dataSourceIds: z355.string().array()
12693
12765
  });
12694
12766
 
12695
12767
  // src/events/event.ts
12696
- import { z as z355 } from "zod";
12697
- var DTOEvent = z355.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12768
+ import { z as z356 } from "zod";
12769
+ var DTOEvent = z356.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
12698
12770
 
12699
12771
  // src/sync/docs-local-action-executor.ts
12700
12772
  function applyActionsLocally(input) {
@@ -12990,7 +13062,7 @@ var LocalDocsElementActionExecutor = class {
12990
13062
  import PQueue from "p-queue";
12991
13063
 
12992
13064
  // src/yjs/design-system-content/documentation-hierarchy.ts
12993
- import { z as z356 } from "zod";
13065
+ import { z as z357 } from "zod";
12994
13066
 
12995
13067
  // src/yjs/version-room/base.ts
12996
13068
  var VersionRoomBaseYDoc = class {
@@ -13540,24 +13612,24 @@ var FrontendVersionRoomYDoc = class {
13540
13612
  };
13541
13613
 
13542
13614
  // src/yjs/design-system-content/documentation-hierarchy.ts
13543
- var DocumentationHierarchySettings = z356.object({
13544
- routingVersion: z356.string(),
13545
- isDraftFeatureAdopted: z356.boolean(),
13546
- isApprovalFeatureEnabled: z356.boolean(),
13547
- approvalRequiredForPublishing: z356.boolean()
13615
+ var DocumentationHierarchySettings = z357.object({
13616
+ routingVersion: z357.string(),
13617
+ isDraftFeatureAdopted: z357.boolean(),
13618
+ isApprovalFeatureEnabled: z357.boolean(),
13619
+ approvalRequiredForPublishing: z357.boolean()
13548
13620
  });
13549
13621
  function yjsToDocumentationHierarchy(doc) {
13550
13622
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
13551
13623
  }
13552
13624
 
13553
13625
  // src/yjs/design-system-content/item-configuration.ts
13554
- import { z as z357 } from "zod";
13555
- var DTODocumentationPageRoomHeaderData = z357.object({
13556
- title: z357.string(),
13626
+ import { z as z358 } from "zod";
13627
+ var DTODocumentationPageRoomHeaderData = z358.object({
13628
+ title: z358.string(),
13557
13629
  configuration: DTODocumentationItemConfigurationV2
13558
13630
  });
13559
- var DTODocumentationPageRoomHeaderDataUpdate = z357.object({
13560
- title: z357.string().optional(),
13631
+ var DTODocumentationPageRoomHeaderDataUpdate = z358.object({
13632
+ title: z358.string().optional(),
13561
13633
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
13562
13634
  });
13563
13635
  function itemConfigurationToYjs(yDoc, item) {
@@ -13592,9 +13664,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
13592
13664
  var PageSectionEditorModel = PageSectionEditorModelV2;
13593
13665
 
13594
13666
  // src/yjs/docs-editor/model/page.ts
13595
- import { z as z358 } from "zod";
13596
- var DocumentationPageEditorModel = z358.object({
13597
- blocks: z358.array(DocumentationPageContentItem)
13667
+ import { z as z359 } from "zod";
13668
+ var DocumentationPageEditorModel = z359.object({
13669
+ blocks: z359.array(DocumentationPageContentItem)
13598
13670
  });
13599
13671
 
13600
13672
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -17271,7 +17343,7 @@ var blocks = [
17271
17343
 
17272
17344
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
17273
17345
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
17274
- import { z as z359 } from "zod";
17346
+ import { z as z360 } from "zod";
17275
17347
  function yDocToPage(yDoc, definitions) {
17276
17348
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
17277
17349
  }
@@ -17347,7 +17419,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
17347
17419
  if (!id) return null;
17348
17420
  return {
17349
17421
  id,
17350
- title: getProsemirrorAttribute(prosemirrorNode, "title", z359.string()) ?? "",
17422
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z360.string()) ?? "",
17351
17423
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
17352
17424
  };
17353
17425
  }
@@ -17381,7 +17453,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
17381
17453
  });
17382
17454
  }
17383
17455
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
17384
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z359.string());
17456
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z360.string());
17385
17457
  if (!definitionId) {
17386
17458
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
17387
17459
  return [];
@@ -17422,7 +17494,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
17422
17494
  const id = getProsemirrorBlockId(prosemirrorNode);
17423
17495
  if (!id) return null;
17424
17496
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
17425
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z359.string().optional()));
17497
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z360.string().optional()));
17426
17498
  return {
17427
17499
  id,
17428
17500
  type: "Block",
@@ -17545,9 +17617,9 @@ function parseRichTextAttribute(mark) {
17545
17617
  return null;
17546
17618
  }
17547
17619
  function parseProsemirrorLink(mark) {
17548
- const href = getProsemirrorAttribute(mark, "href", z359.string().optional());
17620
+ const href = getProsemirrorAttribute(mark, "href", z360.string().optional());
17549
17621
  if (!href) return null;
17550
- const target = getProsemirrorAttribute(mark, "target", z359.string().optional());
17622
+ const target = getProsemirrorAttribute(mark, "target", z360.string().optional());
17551
17623
  const openInNewTab = target === "_blank";
17552
17624
  if (href.startsWith("@")) {
17553
17625
  return {
@@ -17566,9 +17638,9 @@ function parseProsemirrorLink(mark) {
17566
17638
  }
17567
17639
  }
17568
17640
  function parseProsemirrorCommentHighlight(mark) {
17569
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z359.string().optional());
17641
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z360.string().optional());
17570
17642
  if (!highlightId) return null;
17571
- const isResolved = getProsemirrorAttribute(mark, "resolved", z359.boolean().optional()) ?? false;
17643
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z360.boolean().optional()) ?? false;
17572
17644
  return {
17573
17645
  type: "Comment",
17574
17646
  commentHighlightId: highlightId,
@@ -17579,7 +17651,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
17579
17651
  const id = getProsemirrorBlockId(prosemirrorNode);
17580
17652
  if (!id) return null;
17581
17653
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
17582
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z359.boolean().optional()) !== false;
17654
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z360.boolean().optional()) !== false;
17583
17655
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
17584
17656
  if (!tableChild) {
17585
17657
  return emptyTable(id, variantId, 0);
@@ -17625,9 +17697,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
17625
17697
  function parseAsTableCell(prosemirrorNode) {
17626
17698
  const id = getProsemirrorBlockId(prosemirrorNode);
17627
17699
  if (!id) return null;
17628
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z359.string().optional());
17700
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z360.string().optional());
17629
17701
  let columnWidth;
17630
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z359.array(z359.number()).nullish());
17702
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z360.array(z360.number()).nullish());
17631
17703
  if (columnWidthArray) {
17632
17704
  columnWidth = roundDimension(columnWidthArray[0]);
17633
17705
  }
@@ -17663,7 +17735,7 @@ function parseAsTableNode(prosemirrorNode) {
17663
17735
  value: parseRichText(prosemirrorNode.content ?? [])
17664
17736
  };
17665
17737
  case "image":
17666
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z359.string());
17738
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z360.string());
17667
17739
  if (!items) return null;
17668
17740
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
17669
17741
  if (!parsedItems.success) return null;
@@ -17777,7 +17849,7 @@ function definitionExpectsPlaceholderItem(definition) {
17777
17849
  );
17778
17850
  }
17779
17851
  function parseBlockItems(prosemirrorNode, definition) {
17780
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z359.string());
17852
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z360.string());
17781
17853
  if (!itemsString) return null;
17782
17854
  const itemsJson = JSON.parse(itemsString);
17783
17855
  if (!Array.isArray(itemsJson)) {
@@ -17788,18 +17860,18 @@ function parseBlockItems(prosemirrorNode, definition) {
17788
17860
  }
17789
17861
  function parseAppearance(prosemirrorNode) {
17790
17862
  let appearance = {};
17791
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z359.string().optional());
17863
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z360.string().optional());
17792
17864
  if (rawAppearanceString) {
17793
17865
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
17794
17866
  if (parsedAppearance.success) {
17795
17867
  appearance = parsedAppearance.data;
17796
17868
  }
17797
17869
  }
17798
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z359.number().optional());
17870
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z360.number().optional());
17799
17871
  if (columns) {
17800
17872
  appearance.numberOfColumns = columns;
17801
17873
  }
17802
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z359.string().optional());
17874
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z360.string().optional());
17803
17875
  if (backgroundColor) {
17804
17876
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
17805
17877
  if (parsedColor.success) {
@@ -17900,12 +17972,12 @@ function valueSchemaForPropertyType(type) {
17900
17972
  }
17901
17973
  }
17902
17974
  function getProsemirrorBlockId(prosemirrorNode) {
17903
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z359.string());
17975
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z360.string());
17904
17976
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
17905
17977
  return id;
17906
17978
  }
17907
17979
  function getProsemirrorBlockVariantId(prosemirrorNode) {
17908
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z359.string()));
17980
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z360.string()));
17909
17981
  }
17910
17982
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
17911
17983
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -18169,6 +18241,7 @@ var ForgeProjectRoomBaseYDoc = class {
18169
18241
  const features = this.getFeatures();
18170
18242
  const artifactSections = this.getArtifactSections();
18171
18243
  const featureSections = this.getFeatureSections();
18244
+ const relations = this.getRelations();
18172
18245
  const executedTransactionIds = this.getExecutedTransactionIds();
18173
18246
  const isLoaded = true;
18174
18247
  return {
@@ -18177,6 +18250,7 @@ var ForgeProjectRoomBaseYDoc = class {
18177
18250
  features,
18178
18251
  artifactSections,
18179
18252
  featureSections,
18253
+ relations,
18180
18254
  executedTransactionIds
18181
18255
  };
18182
18256
  }
@@ -18225,6 +18299,9 @@ var ForgeProjectRoomBaseYDoc = class {
18225
18299
  get artifactSectionsYMap() {
18226
18300
  return this.yDoc.getMap("forgeProjectArtifactSections");
18227
18301
  }
18302
+ //
18303
+ // Feature Sections
18304
+ //
18228
18305
  getFeatureSections() {
18229
18306
  return this.getObjects(this.featureSectionsYMap, ForgeSection);
18230
18307
  }
@@ -18238,6 +18315,18 @@ var ForgeProjectRoomBaseYDoc = class {
18238
18315
  return this.yDoc.getMap("forgeProjectFeatureSections");
18239
18316
  }
18240
18317
  //
18318
+ // Relations
18319
+ //
18320
+ getRelations() {
18321
+ return this.getObjects(this.relationsYMap, ForgeRelation);
18322
+ }
18323
+ updateRelations(relations) {
18324
+ this.setObjects(this.relationsYMap, relations);
18325
+ }
18326
+ get relationsYMap() {
18327
+ return this.yDoc.getMap("forgeRelations");
18328
+ }
18329
+ //
18241
18330
  // Executed transactions
18242
18331
  //
18243
18332
  updateExecutedTransactionIds(transactionIds) {
@@ -18291,6 +18380,7 @@ var BackendForgeProjectRoomYDoc = class {
18291
18380
  transaction.artifactSections && yDoc.updateArtifactSections(transaction.artifactSections);
18292
18381
  transaction.featureSectionIdsToDelete && yDoc.deleteFeatureSections(transaction.featureSectionIdsToDelete);
18293
18382
  transaction.featureSections && yDoc.updateFeatureSections(transaction.featureSections);
18383
+ transaction.relations && yDoc.updateRelations(transaction.relations);
18294
18384
  transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
18295
18385
  });
18296
18386
  }
@@ -19553,6 +19643,11 @@ export {
19553
19643
  DTOForgeProjectTheme,
19554
19644
  DTOForgeProjectUpdate,
19555
19645
  DTOForgeRelation,
19646
+ DTOForgeRelationCreate,
19647
+ DTOForgeRelationDelete,
19648
+ DTOForgeRelationListInput,
19649
+ DTOForgeRelationListResponse,
19650
+ DTOForgeRelationType,
19556
19651
  DTOForgeSection,
19557
19652
  DTOForgeSectionCreateInput,
19558
19653
  DTOForgeSectionDeleteInput,
@@ -19648,6 +19743,9 @@ export {
19648
19743
  DTOStorybookUploadUrlResponse,
19649
19744
  DTOSubscription,
19650
19745
  DTOSubscriptionResponse,
19746
+ DTOSubscriptionUpdateInput,
19747
+ DTOSubscriptionUpdatePreview,
19748
+ DTOSubscriptionUpdatePreviewResponse,
19651
19749
  DTOTheme,
19652
19750
  DTOThemeCreatePayload,
19653
19751
  DTOThemeListResponse,
@@ -19716,17 +19814,19 @@ export {
19716
19814
  DTOUploadUrlItem,
19717
19815
  DTOUser,
19718
19816
  DTOUserDesignSystemsResponse,
19817
+ DTOUserEmailSettings,
19818
+ DTOUserEmailSettingsUpdatePayload,
19719
19819
  DTOUserGetResponse,
19720
19820
  DTOUserNotificationSettingsResponse,
19721
19821
  DTOUserOnboarding,
19722
19822
  DTOUserOnboardingDepartment,
19723
19823
  DTOUserOnboardingJobLevel,
19824
+ DTOUserPortalTheme,
19724
19825
  DTOUserProfile,
19725
- DTOUserProfileUpdate,
19726
19826
  DTOUserProfileUpdatePayload,
19727
- DTOUserProfileUpdateResponse,
19728
19827
  DTOUserSource,
19729
19828
  DTOUserTheme,
19829
+ DTOUserUpdatePayload,
19730
19830
  DTOUserWorkspaceMembership,
19731
19831
  DTOUserWorkspaceMembershipsResponse,
19732
19832
  DTOWorkspace,