@supernova-studio/client 1.6.2 → 1.6.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
@@ -683,13 +683,33 @@ var CodeComponent = z23.object({
683
683
  componentPath: z23.string(),
684
684
  description: z23.string(),
685
685
  properties: z23.record(z23.string(), CodeComponentProperty),
686
- tags: z23.record(z23.string(), z23.string()).optional()
686
+ tags: z23.record(z23.string(), z23.string()).nullable()
687
687
  });
688
688
  var CodeComponentUpsertResponse = z23.object({
689
689
  created: z23.number().nonnegative(),
690
690
  updated: z23.number().nonnegative(),
691
691
  deleted: z23.number().nonnegative()
692
692
  });
693
+ var RegistryType = z23.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
694
+ var Registry = z23.object({
695
+ type: RegistryType,
696
+ url: z23.string().optional(),
697
+ accessToken: z23.string().optional(),
698
+ scope: z23.string(),
699
+ authConfig: z23.record(z23.string()).optional()
700
+ });
701
+ var DependencyDefinition = z23.object({
702
+ name: z23.string(),
703
+ version: z23.string().optional()
704
+ });
705
+ var AnalyzeCodeComponentsInPackage = z23.object({
706
+ designSystemId: z23.string(),
707
+ versionId: z23.string(),
708
+ mainPackage: DependencyDefinition,
709
+ dependencies: z23.array(DependencyDefinition).optional(),
710
+ registries: Registry.array(),
711
+ userAccessToken: z23.string()
712
+ });
693
713
  var FigmaFileDownloadScope = z24.object({
694
714
  styles: z24.boolean(),
695
715
  components: z24.boolean(),
@@ -3327,6 +3347,11 @@ var SourceImportComponentSummary = z90.object({
3327
3347
  componentAssetsUpdated: zeroNumberByDefault(),
3328
3348
  componentAssetsDeleted: zeroNumberByDefault()
3329
3349
  });
3350
+ var SourceImportStorybookSummary = z90.object({
3351
+ created: zeroNumberByDefault(),
3352
+ updated: zeroNumberByDefault(),
3353
+ deleted: zeroNumberByDefault()
3354
+ });
3330
3355
  var SourceImportFrameSummary = z90.object({
3331
3356
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
3332
3357
  invalidReferencesCount: nullishToOptional(z90.number().optional())
@@ -3412,9 +3437,12 @@ var DataSourceStorybookRemote = z91.object({
3412
3437
  ownerId: z91.string().optional(),
3413
3438
  lastImportedAt: z91.coerce.date().optional(),
3414
3439
  lastImportedSuccessfully: z91.coerce.date().optional(),
3440
+ lastImportedResult: SourceImportStorybookSummary.optional(),
3415
3441
  isFailed: z91.boolean(),
3416
3442
  storiesCount: z91.number(),
3417
- docsCount: z91.number()
3443
+ docsCount: z91.number(),
3444
+ description: z91.string().optional(),
3445
+ isUsingVpn: z91.boolean().optional()
3418
3446
  });
3419
3447
  var DataSourceRemote = z91.discriminatedUnion("type", [
3420
3448
  DataSourceFigmaRemote,
@@ -4622,8 +4650,7 @@ var DocumentationPageRoom = Entity.extend({
4622
4650
  isDirty: z161.boolean()
4623
4651
  });
4624
4652
  var DocumentationPageRoomState = z161.object({
4625
- pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4626
- itemConfiguration: DocumentationItemConfigurationV2
4653
+ pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
4627
4654
  });
4628
4655
  var DocumentationPageRoomRoomUpdate = z161.object({
4629
4656
  page: DocumentationPageV2,
@@ -5644,7 +5671,7 @@ var DTOPagination = z193.object({
5644
5671
  });
5645
5672
 
5646
5673
  // src/api/dto/bff/app-bootstrap-data.ts
5647
- import { z as z233 } from "zod";
5674
+ import { z as z234 } from "zod";
5648
5675
 
5649
5676
  // src/api/dto/design-systems/brand.ts
5650
5677
  import { z as z194 } from "zod";
@@ -5687,12 +5714,23 @@ var DTOCodeComponentCreateInput = z195.object({
5687
5714
  componentPath: z195.string(),
5688
5715
  description: z195.string(),
5689
5716
  properties: z195.record(z195.string(), DTOCodeComponentProperty),
5690
- tags: z195.record(z195.string(), z195.string()).optional()
5717
+ tags: z195.record(z195.string(), z195.string()).nullable()
5691
5718
  });
5692
5719
  var DTOCodeComponentsCreateInput = z195.object({
5693
5720
  codeComponents: DTOCodeComponentCreateInput.array()
5694
5721
  });
5695
5722
  var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
5723
+ var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
5724
+ var DTODependencyDefinition = DependencyDefinition;
5725
+ var DTORegistry = Registry;
5726
+ var DTOAnalyzeCodeComponentsInPackageResponse = z195.object({
5727
+ ok: z195.literal(true)
5728
+ });
5729
+ var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
5730
+ designSystemId: true,
5731
+ versionId: true,
5732
+ userAccessToken: true
5733
+ });
5696
5734
 
5697
5735
  // src/api/dto/design-systems/component.ts
5698
5736
  import { z as z196 } from "zod";
@@ -5880,10 +5918,13 @@ var DTODataSourceStorybook = z201.object({
5880
5918
  indexUrl: z201.string(),
5881
5919
  userUrl: z201.string(),
5882
5920
  lastImportedAt: z201.coerce.date().optional(),
5921
+ lastImportedResult: SourceImportStorybookSummary.optional(),
5883
5922
  lastImportedSuccessfully: z201.coerce.date().optional(),
5884
5923
  isFailed: z201.boolean(),
5885
5924
  storiesCount: z201.number(),
5886
- docsCount: z201.number()
5925
+ docsCount: z201.number(),
5926
+ description: z201.string().optional(),
5927
+ isUsingVpn: z201.boolean().optional()
5887
5928
  })
5888
5929
  });
5889
5930
  var DTODataSourcesStorybookResponse = z201.object({
@@ -5917,15 +5958,23 @@ var DTODataSourceFigmaImportPayload = z201.object({
5917
5958
  });
5918
5959
  var DTODataSourceStorybookCreatePayload = z201.object({
5919
5960
  brandPersistentId: z201.string(),
5961
+ fileName: z201.string().optional(),
5920
5962
  userUrl: z201.string(),
5921
5963
  indexUrl: z201.string(),
5922
5964
  payload: z201.unknown(),
5923
- type: z201.literal(DataSourceRemoteType.Enum.Storybook)
5965
+ type: z201.literal(DataSourceRemoteType.Enum.Storybook),
5966
+ description: z201.string().optional(),
5967
+ isUsingVpn: z201.boolean().optional()
5924
5968
  });
5925
5969
  var DTOStorybookImportPayload = z201.object({
5926
5970
  sourceId: z201.string(),
5927
5971
  payload: z201.unknown()
5928
5972
  });
5973
+ var DTOStorybookSourceUpdatePayload = z201.object({
5974
+ description: z201.string().nullish().optional(),
5975
+ isUsingVpn: z201.boolean().optional(),
5976
+ fileName: z201.string().optional()
5977
+ });
5929
5978
 
5930
5979
  // src/api/dto/design-systems/design-system.ts
5931
5980
  import { z as z204 } from "zod";
@@ -6178,6 +6227,24 @@ var DTODesignSystemVersionStatsQuery = z209.object({
6178
6227
 
6179
6228
  // src/api/dto/design-systems/storybook.ts
6180
6229
  import { z as z210 } from "zod";
6230
+ var DTOStorybookUploadUrlRequest = z210.object({
6231
+ name: z210.string()
6232
+ });
6233
+ var DTOStorybookUploadUrlResponse = z210.object({
6234
+ signedUrl: z210.string(),
6235
+ storybookUploadId: z210.string()
6236
+ });
6237
+ var DTOStorybookAccessTokenResponse = z210.object({
6238
+ accessToken: z210.string()
6239
+ });
6240
+ var DTOStorybookAccessTokenPayload = z210.object({
6241
+ designSystemId: z210.string(),
6242
+ storybookUploadId: z210.string()
6243
+ });
6244
+ var DTOStorybookUploadStatus = z210.object({
6245
+ status: z210.enum(["Failed", "InProgress", "Completed", "Unknown"]),
6246
+ timestamp: z210.number().optional()
6247
+ });
6181
6248
  var DTOStorybookEntryOrigin = z210.object({
6182
6249
  id: z210.string(),
6183
6250
  type: z210.enum(["story", "docs"]),
@@ -6202,20 +6269,205 @@ var DTOStorybookEntryReplaceAction = z210.object({
6202
6269
  var DTOStorybookEntryListResponse = z210.object({ entries: z210.array(DTOStorybookEntry) });
6203
6270
  var DTOStorybookEntryResponse = z210.object({ entry: DTOStorybookEntry });
6204
6271
 
6205
- // src/api/dto/design-systems/version-room.ts
6272
+ // src/api/dto/design-systems/user-design-systems.ts
6273
+ import { z as z218 } from "zod";
6274
+
6275
+ // src/api/dto/workspaces/git.ts
6206
6276
  import { z as z211 } from "zod";
6207
- var DTODesignSystemVersionRoom = z211.object({
6208
- id: z211.string()
6277
+ var DTOGitOrganization = z211.object({
6278
+ id: z211.string(),
6279
+ name: z211.string(),
6280
+ url: z211.string(),
6281
+ slug: z211.string()
6282
+ });
6283
+ var DTOGitProject = z211.object({
6284
+ id: z211.string(),
6285
+ name: z211.string(),
6286
+ url: z211.string(),
6287
+ slug: z211.string()
6288
+ });
6289
+ var DTOGitRepository = z211.object({
6290
+ id: z211.string(),
6291
+ name: z211.string(),
6292
+ url: z211.string(),
6293
+ slug: z211.string(),
6294
+ defaultBranch: z211.string().optional()
6295
+ });
6296
+ var DTOGitBranch = z211.object({
6297
+ name: z211.string(),
6298
+ lastCommitId: z211.string()
6299
+ });
6300
+
6301
+ // src/api/dto/workspaces/integrations.ts
6302
+ import { z as z212 } from "zod";
6303
+ var DTOIntegrationCredentials = IntegrationCredentials.omit({
6304
+ accessToken: true,
6305
+ refreshToken: true
6306
+ });
6307
+ var DTOIntegration = z212.object({
6308
+ id: z212.string(),
6309
+ workspaceId: z212.string(),
6310
+ type: ExtendedIntegrationType,
6311
+ createdAt: z212.coerce.date(),
6312
+ integrationCredentials: z212.array(DTOIntegrationCredentials).optional(),
6313
+ integrationDesignSystems: z212.array(IntegrationDesignSystem).optional()
6314
+ });
6315
+ var DTOIntegrationOAuthGetResponse = z212.object({
6316
+ url: z212.string()
6209
6317
  });
6210
- var DTODesignSystemVersionRoomResponse = z211.object({
6318
+ var DTOIntegrationPostResponse = z212.object({
6319
+ integration: DTOIntegration
6320
+ });
6321
+ var DTOIntegrationsGetListResponse = z212.object({
6322
+ integrations: DTOIntegration.array()
6323
+ });
6324
+
6325
+ // src/api/dto/workspaces/invitations.ts
6326
+ import { z as z213 } from "zod";
6327
+ var DTOWorkspaceInvitationInput = z213.object({
6328
+ email: z213.string().email(),
6329
+ role: WorkspaceRoleSchema
6330
+ });
6331
+ var DTOWorkspaceInvitationsListInput = z213.object({
6332
+ invites: DTOWorkspaceInvitationInput.array().max(100),
6333
+ designSystemId: z213.string().optional()
6334
+ });
6335
+ var DTOWorkspaceInvitationsResponse = z213.object({
6336
+ invitations: WorkspaceInvitation.array()
6337
+ });
6338
+ var DTOWorkspaceInviteUpdate = z213.object({
6339
+ role: WorkspaceRoleSchema
6340
+ });
6341
+ var DTOWorkspaceInvitationUpdateResponse = z213.object({
6342
+ invitation: WorkspaceInvitation
6343
+ });
6344
+
6345
+ // src/api/dto/workspaces/membership.ts
6346
+ import { z as z216 } from "zod";
6347
+
6348
+ // src/api/dto/workspaces/workspace.ts
6349
+ import { z as z215 } from "zod";
6350
+
6351
+ // src/api/dto/workspaces/npm-registry.ts
6352
+ import { z as z214 } from "zod";
6353
+ var DTONpmRegistryConfigConstants = {
6354
+ passwordPlaceholder: "redacted"
6355
+ };
6356
+ var DTONpmRegistryConfig = z214.object({
6357
+ // Registry basic configuration
6358
+ registryType: NpmRegistryType,
6359
+ registryUrl: z214.string(),
6360
+ customRegistryUrl: z214.string().optional(),
6361
+ // URL of Supernova NPM packages proxy
6362
+ proxyUrl: z214.string(),
6363
+ // Auth configuration
6364
+ authType: NpmRegistryAuthType,
6365
+ accessToken: z214.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6366
+ username: z214.string().optional(),
6367
+ password: z214.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6368
+ // NPM package scopes for whih the proxy should be enabled
6369
+ enabledScopes: z214.array(z214.string()),
6370
+ // True if client should bypass Supernova proxy and connect directly to the registry
6371
+ // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6372
+ bypassProxy: z214.boolean()
6373
+ });
6374
+ var DTONpmRegistryAccessTokenResponse = z214.object({
6375
+ version: z214.number(),
6376
+ accessToken: z214.string().optional(),
6377
+ registryUrl: z214.string()
6378
+ });
6379
+ var DTOUpdateRegistryInput = z214.object({
6380
+ registryType: nullishToOptional(NpmRegistryType),
6381
+ authType: nullishToOptional(NpmRegistryAuthType),
6382
+ enabledScopes: nullishToOptional(z214.array(z214.string())),
6383
+ customRegistryUrl: nullishToOptional(z214.string()),
6384
+ bypassProxy: nullishToOptional(z214.boolean()),
6385
+ npmProxyVersion: nullishToOptional(z214.number()),
6386
+ authHeaderName: nullishToOptional(z214.string()),
6387
+ authHeaderValue: nullishToOptional(z214.string()),
6388
+ accessToken: nullishToOptional(z214.string()),
6389
+ username: nullishToOptional(z214.string()),
6390
+ password: nullishToOptional(z214.string())
6391
+ });
6392
+ var DTOUpdateRegistryOutput = z214.object({
6393
+ npmRegistrySettings: DTONpmRegistryConfig
6394
+ });
6395
+
6396
+ // src/api/dto/workspaces/workspace.ts
6397
+ var DTOWorkspaceProfile = WorkspaceProfile;
6398
+ var DTOWorkspace = z215.object({
6399
+ id: z215.string(),
6400
+ profile: DTOWorkspaceProfile,
6401
+ subscription: Subscription,
6402
+ npmRegistry: DTONpmRegistryConfig.optional()
6403
+ });
6404
+ var DTOWorkspaceCreateInput = z215.object({
6405
+ name: z215.string()
6406
+ });
6407
+ var DTOWorkspaceResponse = z215.object({
6408
+ workspace: DTOWorkspace
6409
+ });
6410
+
6411
+ // src/api/dto/workspaces/membership.ts
6412
+ var DTOWorkspaceRole = z216.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6413
+ var DTOUserWorkspaceMembership = z216.object({
6414
+ // Workspace the user is a member of
6415
+ workspace: DTOWorkspace,
6416
+ // Assigned role the user has in the workspace
6417
+ role: DTOWorkspaceRole,
6418
+ // Role that determines actual permissions the user has in the workspace
6419
+ // E.g. this is different from the default role when editors are downgraded to viewers
6420
+ // when a workspace's subscription is downgraded to free tier
6421
+ effectiveRole: DTOWorkspaceRole
6422
+ });
6423
+ var DTOWorkspaceMember = z216.object({
6424
+ user: User,
6425
+ role: WorkspaceRoleSchema,
6426
+ effectiveRole: WorkspaceRoleSchema
6427
+ });
6428
+ var DTOUserWorkspaceMembershipsResponse = z216.object({
6429
+ membership: z216.array(DTOUserWorkspaceMembership)
6430
+ });
6431
+ var DTOWorkspaceMembersListResponse = z216.object({
6432
+ members: z216.array(DTOWorkspaceMember)
6433
+ });
6434
+
6435
+ // src/api/dto/workspaces/untyped-data.ts
6436
+ import { z as z217 } from "zod";
6437
+ var DTOWorkspaceUntypedData = WorkspaceUntypedData;
6438
+ var DTOWorkspaceUntypedDataListResponse = z217.object({
6439
+ data: DTOWorkspaceUntypedData.array()
6440
+ });
6441
+ var DTOWorkspaceUntypedDataResponse = z217.object({
6442
+ data: DTOWorkspaceUntypedData
6443
+ });
6444
+ var DTOWorkspaceUntypedDataCreatePayload = z217.object({
6445
+ value: z217.unknown()
6446
+ });
6447
+ var DTOWorkspaceUntypedDataUpdatePayload = z217.object({
6448
+ value: z217.unknown()
6449
+ });
6450
+
6451
+ // src/api/dto/design-systems/user-design-systems.ts
6452
+ var DTOUserDesignSystemsResponse = z218.object({
6453
+ designSystems: DTODesignSystem.array(),
6454
+ workspaces: DTOWorkspace.array()
6455
+ });
6456
+
6457
+ // src/api/dto/design-systems/version-room.ts
6458
+ import { z as z219 } from "zod";
6459
+ var DTODesignSystemVersionRoom = z219.object({
6460
+ id: z219.string()
6461
+ });
6462
+ var DTODesignSystemVersionRoomResponse = z219.object({
6211
6463
  room: DTODesignSystemVersionRoom
6212
6464
  });
6213
6465
 
6214
6466
  // src/api/dto/design-systems/version.ts
6215
- import { z as z224 } from "zod";
6467
+ import { z as z232 } from "zod";
6216
6468
 
6217
6469
  // src/api/payloads/design-systems/update-design-system.ts
6218
- import { z as z212 } from "zod";
6470
+ import { z as z220 } from "zod";
6219
6471
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
6220
6472
  id: true,
6221
6473
  workspaceId: true,
@@ -6227,56 +6479,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
6227
6479
  }).extend({
6228
6480
  meta: ObjectMeta.partial().optional()
6229
6481
  });
6230
- var DTODesignSystemUpdateAccessModeInput = z212.object({
6482
+ var DTODesignSystemUpdateAccessModeInput = z220.object({
6231
6483
  accessMode: DesignSystemAccessMode,
6232
- retain: z212.object({
6233
- userIds: z212.string().array(),
6234
- inviteIds: z212.string().array()
6484
+ retain: z220.object({
6485
+ userIds: z220.string().array(),
6486
+ inviteIds: z220.string().array()
6235
6487
  }).optional()
6236
6488
  });
6237
6489
 
6238
6490
  // src/api/payloads/design-systems/version.ts
6239
- import { z as z213 } from "zod";
6240
- var ObjectMeta2 = z213.object({
6241
- name: z213.string().max(150).optional(),
6242
- description: z213.string().max(2e3).optional()
6491
+ import { z as z221 } from "zod";
6492
+ var ObjectMeta2 = z221.object({
6493
+ name: z221.string().max(150).optional(),
6494
+ description: z221.string().max(2e3).optional()
6243
6495
  });
6244
6496
  function validateDesignSystemVersion(version) {
6245
6497
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
6246
6498
  return urlCompliantRegex.test(version);
6247
6499
  }
6248
- var DTOCreateVersionInput = z213.object({
6500
+ var DTOCreateVersionInput = z221.object({
6249
6501
  meta: ObjectMeta2,
6250
- version: z213.string().refine(validateDesignSystemVersion, {
6502
+ version: z221.string().refine(validateDesignSystemVersion, {
6251
6503
  message: "Invalid semantic versioning format"
6252
6504
  }),
6253
- changeLog: z213.string().optional()
6505
+ changeLog: z221.string().optional()
6254
6506
  });
6255
- var DTOUpdateVersionInput = z213.object({
6507
+ var DTOUpdateVersionInput = z221.object({
6256
6508
  meta: ObjectMeta2,
6257
- version: z213.string(),
6509
+ version: z221.string(),
6258
6510
  // required for PUT, but not editable
6259
- changeLog: z213.string()
6511
+ changeLog: z221.string()
6260
6512
  });
6261
6513
 
6262
6514
  // src/api/payloads/documentation/analytics.ts
6263
- import { z as z214 } from "zod";
6264
- var DTODocumentationAnalyticsTimeFrameComparison = z214.object({
6265
- referencePeriod: z214.object({
6266
- start: z214.coerce.date(),
6267
- end: z214.coerce.date().optional()
6515
+ import { z as z222 } from "zod";
6516
+ var DTODocumentationAnalyticsTimeFrameComparison = z222.object({
6517
+ referencePeriod: z222.object({
6518
+ start: z222.coerce.date(),
6519
+ end: z222.coerce.date().optional()
6268
6520
  }),
6269
- baselinePeriod: z214.object({
6270
- start: z214.coerce.date(),
6271
- end: z214.coerce.date().optional()
6521
+ baselinePeriod: z222.object({
6522
+ start: z222.coerce.date(),
6523
+ end: z222.coerce.date().optional()
6272
6524
  })
6273
6525
  });
6274
- var DTODocumentationAnalyticsDiffPayload = z214.object({
6275
- timeFrames: z214.array(DTODocumentationAnalyticsTimeFrameComparison)
6526
+ var DTODocumentationAnalyticsDiffPayload = z222.object({
6527
+ timeFrames: z222.array(DTODocumentationAnalyticsTimeFrameComparison)
6276
6528
  });
6277
6529
 
6278
6530
  // src/api/payloads/documentation/block-definitions.ts
6279
- import { z as z215 } from "zod";
6531
+ import { z as z223 } from "zod";
6280
6532
 
6281
6533
  // src/api/dto/documentation/block-definition.ts
6282
6534
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -6288,76 +6540,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
6288
6540
  var DTOPageBlockDefinition = PageBlockDefinition;
6289
6541
 
6290
6542
  // src/api/payloads/documentation/block-definitions.ts
6291
- var DTOGetBlockDefinitionsOutput = z215.object({
6292
- definitions: z215.array(DTOPageBlockDefinition)
6543
+ var DTOGetBlockDefinitionsOutput = z223.object({
6544
+ definitions: z223.array(DTOPageBlockDefinition)
6293
6545
  });
6294
6546
 
6295
6547
  // src/api/payloads/documentation/design-data-doc-diff.ts
6296
- import { z as z216 } from "zod";
6297
- var DTODocumentationPublishTypeQueryParams = z216.object({
6298
- environment: z216.enum(["Live", "Preview"])
6548
+ import { z as z224 } from "zod";
6549
+ var DTODocumentationPublishTypeQueryParams = z224.object({
6550
+ environment: z224.enum(["Live", "Preview"])
6299
6551
  });
6300
6552
 
6301
6553
  // src/api/payloads/export/pipeline.ts
6302
- import { z as z218 } from "zod";
6554
+ import { z as z226 } from "zod";
6303
6555
 
6304
6556
  // src/api/dto/export/exporter-property.ts
6305
- import { z as z217 } from "zod";
6306
- var PrimitiveValue2 = z217.number().or(z217.boolean()).or(z217.string());
6307
- var ArrayValue2 = z217.array(z217.string());
6308
- var ObjectValue2 = z217.record(z217.string());
6557
+ import { z as z225 } from "zod";
6558
+ var PrimitiveValue2 = z225.number().or(z225.boolean()).or(z225.string());
6559
+ var ArrayValue2 = z225.array(z225.string());
6560
+ var ObjectValue2 = z225.record(z225.string());
6309
6561
  var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
6310
- var DTOExporterPropertyType = z217.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
6311
- var PropertyDefinitionBase2 = z217.object({
6312
- key: z217.string(),
6313
- title: z217.string(),
6314
- description: z217.string(),
6315
- category: z217.string().optional(),
6316
- dependsOn: z217.record(z217.boolean()).optional()
6317
- });
6318
- var DTOExporterPropertyDefinitionEnumOption = z217.object({
6319
- label: z217.string(),
6320
- description: z217.string()
6562
+ var DTOExporterPropertyType = z225.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
6563
+ var PropertyDefinitionBase2 = z225.object({
6564
+ key: z225.string(),
6565
+ title: z225.string(),
6566
+ description: z225.string(),
6567
+ category: z225.string().optional(),
6568
+ dependsOn: z225.record(z225.boolean()).optional()
6569
+ });
6570
+ var DTOExporterPropertyDefinitionEnumOption = z225.object({
6571
+ label: z225.string(),
6572
+ description: z225.string()
6321
6573
  });
6322
6574
  var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
6323
- type: z217.literal(DTOExporterPropertyType.Enum.Enum),
6324
- options: z217.record(DTOExporterPropertyDefinitionEnumOption),
6325
- default: z217.string()
6575
+ type: z225.literal(DTOExporterPropertyType.Enum.Enum),
6576
+ options: z225.record(DTOExporterPropertyDefinitionEnumOption),
6577
+ default: z225.string()
6326
6578
  });
6327
6579
  var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
6328
- type: z217.literal(DTOExporterPropertyType.Enum.Boolean),
6329
- default: z217.boolean()
6580
+ type: z225.literal(DTOExporterPropertyType.Enum.Boolean),
6581
+ default: z225.boolean()
6330
6582
  });
6331
6583
  var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
6332
- type: z217.literal(DTOExporterPropertyType.Enum.String),
6333
- default: z217.string(),
6334
- isMultiline: z217.boolean().optional()
6584
+ type: z225.literal(DTOExporterPropertyType.Enum.String),
6585
+ default: z225.string(),
6586
+ isMultiline: z225.boolean().optional()
6335
6587
  });
6336
6588
  var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
6337
- type: z217.literal(DTOExporterPropertyType.Enum.Number),
6338
- default: z217.number()
6589
+ type: z225.literal(DTOExporterPropertyType.Enum.Number),
6590
+ default: z225.number()
6339
6591
  });
6340
6592
  var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
6341
- type: z217.literal(DTOExporterPropertyType.Enum.Array),
6593
+ type: z225.literal(DTOExporterPropertyType.Enum.Array),
6342
6594
  default: ArrayValue2
6343
6595
  });
6344
6596
  var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
6345
- type: z217.literal(DTOExporterPropertyType.Enum.Object),
6597
+ type: z225.literal(DTOExporterPropertyType.Enum.Object),
6346
6598
  default: ObjectValue2,
6347
- allowedKeys: z217.object({
6348
- options: z217.string().array(),
6349
- type: z217.string()
6599
+ allowedKeys: z225.object({
6600
+ options: z225.string().array(),
6601
+ type: z225.string()
6350
6602
  }).optional(),
6351
- allowedValues: z217.object({
6352
- type: z217.string()
6603
+ allowedValues: z225.object({
6604
+ type: z225.string()
6353
6605
  }).optional()
6354
6606
  });
6355
6607
  var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
6356
- type: z217.literal(DTOExporterPropertyType.Enum.Code),
6357
- language: z217.string(),
6358
- default: z217.string()
6608
+ type: z225.literal(DTOExporterPropertyType.Enum.Code),
6609
+ language: z225.string(),
6610
+ default: z225.string()
6359
6611
  });
6360
- var DTOExporterPropertyDefinition = z217.discriminatedUnion("type", [
6612
+ var DTOExporterPropertyDefinition = z225.discriminatedUnion("type", [
6361
6613
  DTOExporterPropertyDefinitionEnum,
6362
6614
  DTOExporterPropertyDefinitionBoolean,
6363
6615
  DTOExporterPropertyDefinitionString,
@@ -6366,84 +6618,84 @@ var DTOExporterPropertyDefinition = z217.discriminatedUnion("type", [
6366
6618
  DTOExporterPropertyDefinitionObject,
6367
6619
  DTOExporterPropertyDefinitionCode
6368
6620
  ]);
6369
- var DTOExporterPropertyDefinitionsResponse = z217.object({
6621
+ var DTOExporterPropertyDefinitionsResponse = z225.object({
6370
6622
  properties: DTOExporterPropertyDefinition.array()
6371
6623
  });
6372
- var DTOExporterPropertyValueMap = z217.record(DTOExporterPropertyValue);
6624
+ var DTOExporterPropertyValueMap = z225.record(DTOExporterPropertyValue);
6373
6625
 
6374
6626
  // src/api/payloads/export/pipeline.ts
6375
- var GitDestinationOptions = z218.object({
6376
- branch: z218.string().min(1).optional(),
6377
- commitMessage: z218.string().min(1).optional(),
6378
- commitAuthorName: z218.string().min(1).optional(),
6379
- commitAuthorEmail: z218.string().email().optional(),
6380
- pullRequestTitle: z218.string().min(1).optional(),
6381
- pullRequestDescription: z218.string().min(1).optional(),
6382
- relativePath: z218.string().optional(),
6383
- purgeDirectory: z218.boolean().optional()
6384
- });
6385
- var DTOPipelineCreateBody = z218.object({
6386
- name: z218.string(),
6387
- exporterId: z218.string(),
6388
- designSystemId: z218.string(),
6389
- isEnabled: z218.boolean(),
6627
+ var GitDestinationOptions = z226.object({
6628
+ branch: z226.string().min(1).optional(),
6629
+ commitMessage: z226.string().min(1).optional(),
6630
+ commitAuthorName: z226.string().min(1).optional(),
6631
+ commitAuthorEmail: z226.string().email().optional(),
6632
+ pullRequestTitle: z226.string().min(1).optional(),
6633
+ pullRequestDescription: z226.string().min(1).optional(),
6634
+ relativePath: z226.string().optional(),
6635
+ purgeDirectory: z226.boolean().optional()
6636
+ });
6637
+ var DTOPipelineCreateBody = z226.object({
6638
+ name: z226.string(),
6639
+ exporterId: z226.string(),
6640
+ designSystemId: z226.string(),
6641
+ isEnabled: z226.boolean(),
6390
6642
  eventType: PipelineEventType,
6391
- brandPersistentId: z218.string().optional(),
6392
- themePersistentId: z218.string().optional(),
6393
- themePersistentIds: z218.string().array().optional(),
6643
+ brandPersistentId: z226.string().optional(),
6644
+ themePersistentId: z226.string().optional(),
6645
+ themePersistentIds: z226.string().array().optional(),
6394
6646
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6395
6647
  destination: PipelineDestinationType.optional(),
6396
6648
  gitQuery: GitObjectsQuery,
6397
- destinations: z218.object({
6649
+ destinations: z226.object({
6398
6650
  s3: ExporterDestinationS3.nullish(),
6399
6651
  azure: ExporterDestinationAzure.nullish(),
6400
6652
  bitbucket: ExporterDestinationBitbucket.nullish(),
6401
6653
  github: ExporterDestinationGithub.nullish(),
6402
6654
  gitlab: ExporterDestinationGitlab.nullish(),
6403
6655
  documentation: ExporterDestinationDocs.nullish(),
6404
- webhookUrl: z218.string().nullish()
6656
+ webhookUrl: z226.string().nullish()
6405
6657
  })
6406
6658
  });
6407
- var DTOPipelineUpdateBody = z218.object({
6408
- exporterId: z218.string().optional(),
6409
- name: z218.string().optional(),
6410
- isEnabled: z218.boolean().optional(),
6659
+ var DTOPipelineUpdateBody = z226.object({
6660
+ exporterId: z226.string().optional(),
6661
+ name: z226.string().optional(),
6662
+ isEnabled: z226.boolean().optional(),
6411
6663
  eventType: PipelineEventType.optional(),
6412
- brandPersistentId: z218.string().optional(),
6413
- themePersistentId: z218.string().optional(),
6414
- themePersistentIds: z218.string().array().optional(),
6664
+ brandPersistentId: z226.string().optional(),
6665
+ themePersistentId: z226.string().optional(),
6666
+ themePersistentIds: z226.string().array().optional(),
6415
6667
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6416
6668
  destination: PipelineDestinationType.optional(),
6417
6669
  gitQuery: GitObjectsQuery.optional(),
6418
- destinations: z218.object({
6670
+ destinations: z226.object({
6419
6671
  s3: ExporterDestinationS3.nullish(),
6420
6672
  azure: ExporterDestinationAzure.nullish(),
6421
6673
  bitbucket: ExporterDestinationBitbucket.nullish(),
6422
6674
  github: ExporterDestinationGithub.nullish(),
6423
6675
  gitlab: ExporterDestinationGitlab.nullish(),
6424
6676
  documentation: ExporterDestinationDocs.nullish(),
6425
- webhookUrl: z218.string().nullish()
6677
+ webhookUrl: z226.string().nullish()
6426
6678
  }).optional(),
6427
6679
  gitDestinationOptions: GitDestinationOptions.partial().optional()
6428
6680
  });
6429
- var DTOPipelineTriggerBody = z218.object({
6430
- designSystemVersionId: z218.string()
6681
+ var DTOPipelineTriggerBody = z226.object({
6682
+ designSystemVersionId: z226.string()
6431
6683
  });
6432
6684
 
6433
6685
  // src/api/payloads/liveblocks/auth.ts
6434
- import { z as z219 } from "zod";
6435
- var DTOLiveblocksAuthRequest = z219.object({
6436
- room: z219.string().optional()
6686
+ import { z as z227 } from "zod";
6687
+ var DTOLiveblocksAuthRequest = z227.object({
6688
+ room: z227.string().optional()
6437
6689
  });
6438
6690
 
6439
6691
  // src/api/payloads/users/notifications/notification-settings.ts
6440
- import { z as z220 } from "zod";
6441
- var DTOUpdateUserNotificationSettingsPayload = z220.object({
6692
+ import { z as z228 } from "zod";
6693
+ var DTOUpdateUserNotificationSettingsPayload = z228.object({
6442
6694
  notificationSettings: UserNotificationSettings
6443
6695
  });
6444
- var DTOUserNotificationSettingsResponse = z220.object({
6445
- userId: z220.string(),
6446
- workspaceId: z220.string(),
6696
+ var DTOUserNotificationSettingsResponse = z228.object({
6697
+ userId: z228.string(),
6698
+ workspaceId: z228.string(),
6447
6699
  notificationSettings: UserNotificationSettings
6448
6700
  });
6449
6701
 
@@ -6451,13 +6703,13 @@ var DTOUserNotificationSettingsResponse = z220.object({
6451
6703
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
6452
6704
 
6453
6705
  // src/api/payloads/workspaces/transfer-ownership.ts
6454
- import { z as z221 } from "zod";
6455
- var DTOTransferOwnershipPayload = z221.object({
6456
- newOwnerId: z221.string()
6706
+ import { z as z229 } from "zod";
6707
+ var DTOTransferOwnershipPayload = z229.object({
6708
+ newOwnerId: z229.string()
6457
6709
  });
6458
6710
 
6459
6711
  // src/api/payloads/workspaces/workspace-configuration.ts
6460
- import { z as z222 } from "zod";
6712
+ import { z as z230 } from "zod";
6461
6713
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
6462
6714
  function validateSsoPayload(ssoPayload) {
6463
6715
  const keys = [];
@@ -6480,21 +6732,21 @@ function validateSsoPayload(ssoPayload) {
6480
6732
  keys
6481
6733
  };
6482
6734
  }
6483
- var NpmRegistryInput = z222.object({
6484
- enabledScopes: z222.array(z222.string()),
6485
- customRegistryUrl: z222.string().optional(),
6486
- bypassProxy: z222.boolean().optional(),
6487
- npmProxyRegistryConfigId: z222.string().optional(),
6488
- npmProxyVersion: z222.number().optional(),
6489
- registryType: z222.string(),
6490
- authType: z222.string(),
6491
- authHeaderName: z222.string(),
6492
- authHeaderValue: z222.string(),
6493
- accessToken: z222.string(),
6494
- username: z222.string(),
6495
- password: z222.string()
6496
- });
6497
- var WorkspaceConfigurationPayload = z222.object({
6735
+ var NpmRegistryInput = z230.object({
6736
+ enabledScopes: z230.array(z230.string()),
6737
+ customRegistryUrl: z230.string().optional(),
6738
+ bypassProxy: z230.boolean().optional(),
6739
+ npmProxyRegistryConfigId: z230.string().optional(),
6740
+ npmProxyVersion: z230.number().optional(),
6741
+ registryType: z230.string(),
6742
+ authType: z230.string(),
6743
+ authHeaderName: z230.string(),
6744
+ authHeaderValue: z230.string(),
6745
+ accessToken: z230.string(),
6746
+ username: z230.string(),
6747
+ password: z230.string()
6748
+ });
6749
+ var WorkspaceConfigurationPayload = z230.object({
6498
6750
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
6499
6751
  sso: SsoProvider.partial().optional(),
6500
6752
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -6502,262 +6754,107 @@ var WorkspaceConfigurationPayload = z222.object({
6502
6754
  });
6503
6755
 
6504
6756
  // src/api/payloads/workspaces/workspace-integrations.ts
6505
- import { z as z223 } from "zod";
6506
- var DTOWorkspaceIntegrationOauthInput = z223.object({
6757
+ import { z as z231 } from "zod";
6758
+ var DTOWorkspaceIntegrationOauthInput = z231.object({
6507
6759
  type: IntegrationType
6508
6760
  });
6509
- var DTOWorkspaceIntegrationPATInput = z223.object({
6761
+ var DTOWorkspaceIntegrationPATInput = z231.object({
6510
6762
  type: IntegrationType,
6511
6763
  token: IntegrationToken
6512
6764
  });
6513
- var DTOWorkspaceIntegrationGetGitObjectsInput = z223.object({
6514
- organization: z223.string().optional(),
6765
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z231.object({
6766
+ organization: z231.string().optional(),
6515
6767
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
6516
- project: z223.string().optional(),
6768
+ project: z231.string().optional(),
6517
6769
  // Only for Bitbucket and Azure
6518
- repository: z223.string().optional(),
6770
+ repository: z231.string().optional(),
6519
6771
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
6520
- branch: z223.string().optional(),
6772
+ branch: z231.string().optional(),
6521
6773
  // For all providers, useful for PR creations.
6522
- user: z223.string().optional()
6774
+ user: z231.string().optional()
6523
6775
  // Only for Gitlab User Repositories
6524
6776
  });
6525
6777
 
6526
6778
  // src/api/dto/design-systems/version.ts
6527
- var DTODesignSystemVersion = z224.object({
6528
- id: z224.string(),
6529
- createdAt: z224.coerce.date(),
6779
+ var DTODesignSystemVersion = z232.object({
6780
+ id: z232.string(),
6781
+ createdAt: z232.coerce.date(),
6530
6782
  meta: ObjectMeta,
6531
- version: z224.string(),
6532
- isReadonly: z224.boolean(),
6533
- changeLog: z224.string(),
6534
- designSystemId: z224.string()
6783
+ version: z232.string(),
6784
+ isReadonly: z232.boolean(),
6785
+ changeLog: z232.string(),
6786
+ designSystemId: z232.string()
6535
6787
  });
6536
- var DTODesignSystemVersionsListResponse = z224.object({
6537
- designSystemVersions: z224.array(DTODesignSystemVersion)
6788
+ var DTODesignSystemVersionsListResponse = z232.object({
6789
+ designSystemVersions: z232.array(DTODesignSystemVersion)
6538
6790
  });
6539
- var DTODesignSystemVersionGetResponse = z224.object({
6791
+ var DTODesignSystemVersionGetResponse = z232.object({
6540
6792
  designSystemVersion: DTODesignSystemVersion
6541
6793
  });
6542
- var DTODesignSystemVersionCreationResponse = z224.object({
6794
+ var DTODesignSystemVersionCreationResponse = z232.object({
6543
6795
  meta: ObjectMeta,
6544
- version: z224.string(),
6545
- changeLog: z224.string(),
6546
- isReadOnly: z224.boolean(),
6547
- designSystemId: z224.string(),
6548
- jobId: z224.string()
6549
- });
6550
- var VersionSQSPayload = z224.object({
6551
- jobId: z224.string(),
6552
- designSystemId: z224.string(),
6796
+ version: z232.string(),
6797
+ changeLog: z232.string(),
6798
+ isReadOnly: z232.boolean(),
6799
+ designSystemId: z232.string(),
6800
+ jobId: z232.string()
6801
+ });
6802
+ var VersionSQSPayload = z232.object({
6803
+ jobId: z232.string(),
6804
+ designSystemId: z232.string(),
6553
6805
  input: DTOCreateVersionInput
6554
6806
  });
6555
- var DTODesignSystemVersionJobsResponse = z224.object({
6556
- jobs: z224.array(VersionCreationJob)
6807
+ var DTODesignSystemVersionJobsResponse = z232.object({
6808
+ jobs: z232.array(VersionCreationJob)
6557
6809
  });
6558
- var DTODesignSystemVersionJobStatusResponse = z224.object({
6810
+ var DTODesignSystemVersionJobStatusResponse = z232.object({
6559
6811
  job: VersionCreationJob
6560
6812
  });
6561
6813
 
6562
6814
  // src/api/dto/design-systems/view.ts
6563
- import { z as z225 } from "zod";
6564
- var DTOElementViewColumnSharedAttributes = z225.object({
6565
- id: z225.string(),
6566
- persistentId: z225.string(),
6567
- width: z225.number()
6815
+ import { z as z233 } from "zod";
6816
+ var DTOElementViewColumnSharedAttributes = z233.object({
6817
+ id: z233.string(),
6818
+ persistentId: z233.string(),
6819
+ width: z233.number()
6568
6820
  });
6569
6821
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
6570
- type: z225.literal("BaseProperty"),
6822
+ type: z233.literal("BaseProperty"),
6571
6823
  basePropertyType: ElementViewBaseColumnType
6572
6824
  });
6573
6825
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
6574
- type: z225.literal("PropertyDefinition"),
6575
- propertyDefinitionId: z225.string()
6826
+ type: z233.literal("PropertyDefinition"),
6827
+ propertyDefinitionId: z233.string()
6576
6828
  });
6577
6829
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
6578
- type: z225.literal("Theme"),
6579
- themeId: z225.string()
6830
+ type: z233.literal("Theme"),
6831
+ themeId: z233.string()
6580
6832
  });
6581
- var DTOElementViewColumn = z225.discriminatedUnion("type", [
6833
+ var DTOElementViewColumn = z233.discriminatedUnion("type", [
6582
6834
  DTOElementViewBasePropertyColumn,
6583
6835
  DTOElementViewPropertyDefinitionColumn,
6584
6836
  DTOElementViewThemeColumn
6585
6837
  ]);
6586
- var DTOElementView = z225.object({
6838
+ var DTOElementView = z233.object({
6587
6839
  meta: ObjectMeta,
6588
- persistentId: z225.string(),
6840
+ persistentId: z233.string(),
6589
6841
  targetElementType: ElementPropertyTargetType,
6590
- id: z225.string(),
6591
- isDefault: z225.boolean(),
6592
- columns: z225.array(DTOElementViewColumn)
6593
- });
6594
- var DTOElementViewsListResponse = z225.object({
6595
- elementDataViews: z225.array(DTOElementView)
6596
- });
6597
-
6598
- // src/api/dto/workspaces/git.ts
6599
- import { z as z226 } from "zod";
6600
- var DTOGitOrganization = z226.object({
6601
- id: z226.string(),
6602
- name: z226.string(),
6603
- url: z226.string(),
6604
- slug: z226.string()
6605
- });
6606
- var DTOGitProject = z226.object({
6607
- id: z226.string(),
6608
- name: z226.string(),
6609
- url: z226.string(),
6610
- slug: z226.string()
6611
- });
6612
- var DTOGitRepository = z226.object({
6613
- id: z226.string(),
6614
- name: z226.string(),
6615
- url: z226.string(),
6616
- slug: z226.string(),
6617
- defaultBranch: z226.string().optional()
6618
- });
6619
- var DTOGitBranch = z226.object({
6620
- name: z226.string(),
6621
- lastCommitId: z226.string()
6622
- });
6623
-
6624
- // src/api/dto/workspaces/integrations.ts
6625
- import { z as z227 } from "zod";
6626
- var DTOIntegrationCredentials = IntegrationCredentials.omit({
6627
- accessToken: true,
6628
- refreshToken: true
6629
- });
6630
- var DTOIntegration = z227.object({
6631
- id: z227.string(),
6632
- workspaceId: z227.string(),
6633
- type: ExtendedIntegrationType,
6634
- createdAt: z227.coerce.date(),
6635
- integrationCredentials: z227.array(DTOIntegrationCredentials).optional(),
6636
- integrationDesignSystems: z227.array(IntegrationDesignSystem).optional()
6637
- });
6638
- var DTOIntegrationOAuthGetResponse = z227.object({
6639
- url: z227.string()
6640
- });
6641
- var DTOIntegrationPostResponse = z227.object({
6642
- integration: DTOIntegration
6643
- });
6644
- var DTOIntegrationsGetListResponse = z227.object({
6645
- integrations: DTOIntegration.array()
6646
- });
6647
-
6648
- // src/api/dto/workspaces/invitations.ts
6649
- import { z as z228 } from "zod";
6650
- var DTOWorkspaceInvitationInput = z228.object({
6651
- email: z228.string().email(),
6652
- role: WorkspaceRoleSchema
6653
- });
6654
- var DTOWorkspaceInvitationsListInput = z228.object({
6655
- invites: DTOWorkspaceInvitationInput.array().max(100),
6656
- designSystemId: z228.string().optional()
6657
- });
6658
- var DTOWorkspaceInvitationsResponse = z228.object({
6659
- invitations: WorkspaceInvitation.array()
6660
- });
6661
- var DTOWorkspaceInviteUpdate = z228.object({
6662
- role: WorkspaceRoleSchema
6663
- });
6664
- var DTOWorkspaceInvitationUpdateResponse = z228.object({
6665
- invitation: WorkspaceInvitation
6666
- });
6667
-
6668
- // src/api/dto/workspaces/membership.ts
6669
- import { z as z231 } from "zod";
6670
-
6671
- // src/api/dto/workspaces/workspace.ts
6672
- import { z as z230 } from "zod";
6673
-
6674
- // src/api/dto/workspaces/npm-registry.ts
6675
- import { z as z229 } from "zod";
6676
- var DTONpmRegistryConfigConstants = {
6677
- passwordPlaceholder: "redacted"
6678
- };
6679
- var DTONpmRegistryConfig = z229.object({
6680
- // Registry basic configuration
6681
- registryType: NpmRegistryType,
6682
- registryUrl: z229.string(),
6683
- customRegistryUrl: z229.string().optional(),
6684
- // URL of Supernova NPM packages proxy
6685
- proxyUrl: z229.string(),
6686
- // Auth configuration
6687
- authType: NpmRegistryAuthType,
6688
- accessToken: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6689
- username: z229.string().optional(),
6690
- password: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6691
- // NPM package scopes for whih the proxy should be enabled
6692
- enabledScopes: z229.array(z229.string()),
6693
- // True if client should bypass Supernova proxy and connect directly to the registry
6694
- // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6695
- bypassProxy: z229.boolean()
6696
- });
6697
-
6698
- // src/api/dto/workspaces/workspace.ts
6699
- var DTOWorkspaceProfile = WorkspaceProfile;
6700
- var DTOWorkspace = z230.object({
6701
- id: z230.string(),
6702
- profile: DTOWorkspaceProfile,
6703
- subscription: Subscription,
6704
- npmRegistry: DTONpmRegistryConfig.optional()
6705
- });
6706
- var DTOWorkspaceCreateInput = z230.object({
6707
- name: z230.string()
6708
- });
6709
- var DTOWorkspaceResponse = z230.object({
6710
- workspace: DTOWorkspace
6711
- });
6712
-
6713
- // src/api/dto/workspaces/membership.ts
6714
- var DTOWorkspaceRole = z231.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6715
- var DTOUserWorkspaceMembership = z231.object({
6716
- // Workspace the user is a member of
6717
- workspace: DTOWorkspace,
6718
- // Assigned role the user has in the workspace
6719
- role: DTOWorkspaceRole,
6720
- // Role that determines actual permissions the user has in the workspace
6721
- // E.g. this is different from the default role when editors are downgraded to viewers
6722
- // when a workspace's subscription is downgraded to free tier
6723
- effectiveRole: DTOWorkspaceRole
6724
- });
6725
- var DTOWorkspaceMember = z231.object({
6726
- user: User,
6727
- role: WorkspaceRoleSchema,
6728
- effectiveRole: WorkspaceRoleSchema
6729
- });
6730
- var DTOUserWorkspaceMembershipsResponse = z231.object({
6731
- membership: z231.array(DTOUserWorkspaceMembership)
6732
- });
6733
- var DTOWorkspaceMembersListResponse = z231.object({
6734
- members: z231.array(DTOWorkspaceMember)
6735
- });
6736
-
6737
- // src/api/dto/workspaces/untyped-data.ts
6738
- import { z as z232 } from "zod";
6739
- var DTOWorkspaceUntypedData = WorkspaceUntypedData;
6740
- var DTOWorkspaceUntypedDataListResponse = z232.object({
6741
- data: DTOWorkspaceUntypedData.array()
6842
+ id: z233.string(),
6843
+ isDefault: z233.boolean(),
6844
+ columns: z233.array(DTOElementViewColumn)
6742
6845
  });
6743
- var DTOWorkspaceUntypedDataResponse = z232.object({
6744
- data: DTOWorkspaceUntypedData
6745
- });
6746
- var DTOWorkspaceUntypedDataCreatePayload = z232.object({
6747
- value: z232.unknown()
6748
- });
6749
- var DTOWorkspaceUntypedDataUpdatePayload = z232.object({
6750
- value: z232.unknown()
6846
+ var DTOElementViewsListResponse = z233.object({
6847
+ elementDataViews: z233.array(DTOElementView)
6751
6848
  });
6752
6849
 
6753
6850
  // src/api/dto/bff/app-bootstrap-data.ts
6754
- var DTOAppBootstrapDataQuery = z233.object({
6755
- preferredWorkspaceId: z233.string().optional(),
6756
- preferredDesignSystemId: z233.string().optional(),
6757
- preferredVersionId: z233.string().optional(),
6758
- preferredBrandId: z233.string().optional()
6851
+ var DTOAppBootstrapDataQuery = z234.object({
6852
+ preferredWorkspaceId: z234.string().optional(),
6853
+ preferredDesignSystemId: z234.string().optional(),
6854
+ preferredVersionId: z234.string().optional(),
6855
+ preferredBrandId: z234.string().optional()
6759
6856
  });
6760
- var DTOAppBootstrapDataResponse = z233.object({
6857
+ var DTOAppBootstrapDataResponse = z234.object({
6761
6858
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
6762
6859
  designSystem: DTODesignSystem.optional(),
6763
6860
  version: DTODesignSystemVersion.optional(),
@@ -6765,92 +6862,92 @@ var DTOAppBootstrapDataResponse = z233.object({
6765
6862
  });
6766
6863
 
6767
6864
  // src/api/dto/collections/token-collection.ts
6768
- import { z as z234 } from "zod";
6769
- var DTOTokenCollection = z234.object({
6770
- id: z234.string(),
6771
- persistentId: z234.string(),
6772
- designSystemVersionId: z234.string(),
6865
+ import { z as z235 } from "zod";
6866
+ var DTOTokenCollection = z235.object({
6867
+ id: z235.string(),
6868
+ persistentId: z235.string(),
6869
+ designSystemVersionId: z235.string(),
6773
6870
  meta: ObjectMeta,
6774
6871
  backgroundColor: ColorTokenInlineData.optional(),
6775
- elementPropertyOptionId: z234.string(),
6776
- createdAt: z234.coerce.date(),
6777
- updatedAt: z234.coerce.date(),
6872
+ elementPropertyOptionId: z235.string(),
6873
+ createdAt: z235.coerce.date(),
6874
+ updatedAt: z235.coerce.date(),
6778
6875
  origin: CollectionOrigin.optional()
6779
6876
  });
6780
- var DTOTokenCollectionsListReponse = z234.object({
6877
+ var DTOTokenCollectionsListReponse = z235.object({
6781
6878
  collections: DTOTokenCollection.array()
6782
6879
  });
6783
6880
 
6784
6881
  // src/api/dto/design-tokens/design-token.ts
6785
- import { z as z235 } from "zod";
6882
+ import { z as z236 } from "zod";
6786
6883
  var DTODesignToken = DesignTokenTypedData.and(
6787
- z235.object({
6788
- id: z235.string(),
6789
- persistentId: z235.string(),
6790
- designSystemVersionId: z235.string(),
6884
+ z236.object({
6885
+ id: z236.string(),
6886
+ persistentId: z236.string(),
6887
+ designSystemVersionId: z236.string(),
6791
6888
  meta: ObjectMeta,
6792
6889
  originStyle: DesignTokenOrigin.optional(),
6793
- brandId: z235.string(),
6794
- collectionId: z235.string().optional(),
6795
- updatedAt: z235.coerce.date()
6890
+ brandId: z236.string(),
6891
+ collectionId: z236.string().optional(),
6892
+ updatedAt: z236.coerce.date()
6796
6893
  })
6797
6894
  );
6798
- var DTODesignTokenListResponse = z235.object({
6895
+ var DTODesignTokenListResponse = z236.object({
6799
6896
  tokens: DTODesignToken.array()
6800
6897
  });
6801
- var DTODesignTokenResponse = z235.object({
6898
+ var DTODesignTokenResponse = z236.object({
6802
6899
  token: DTODesignToken
6803
6900
  });
6804
- var DTODesignTokenGroup = z235.object({
6805
- id: z235.string(),
6901
+ var DTODesignTokenGroup = z236.object({
6902
+ id: z236.string(),
6806
6903
  tokenType: DesignTokenType,
6807
- persistentId: z235.string(),
6808
- isRoot: z235.boolean(),
6809
- brandId: z235.string(),
6904
+ persistentId: z236.string(),
6905
+ isRoot: z236.boolean(),
6906
+ brandId: z236.string(),
6810
6907
  meta: ObjectMeta,
6811
- childrenIds: z235.string().array()
6908
+ childrenIds: z236.string().array()
6812
6909
  });
6813
- var DTODesignTokenGroupListResponse = z235.object({
6910
+ var DTODesignTokenGroupListResponse = z236.object({
6814
6911
  groups: DTODesignTokenGroup.array()
6815
6912
  });
6816
- var DTODesignTokenGroupResponse = z235.object({
6913
+ var DTODesignTokenGroupResponse = z236.object({
6817
6914
  group: DTODesignTokenGroup
6818
6915
  });
6819
6916
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6820
- z235.object({
6821
- persistentId: z235.string(),
6917
+ z236.object({
6918
+ persistentId: z236.string(),
6822
6919
  meta: ObjectMeta,
6823
- brandId: z235.string(),
6824
- groupPersistentId: z235.string().optional()
6920
+ brandId: z236.string(),
6921
+ groupPersistentId: z236.string().optional()
6825
6922
  })
6826
6923
  );
6827
- var DTODesignTokenGroupCreatePayload = z235.object({
6828
- persistentId: z235.string(),
6924
+ var DTODesignTokenGroupCreatePayload = z236.object({
6925
+ persistentId: z236.string(),
6829
6926
  meta: ObjectMeta,
6830
- brandId: z235.string(),
6831
- parentId: z235.string().optional(),
6927
+ brandId: z236.string(),
6928
+ parentId: z236.string().optional(),
6832
6929
  tokenType: DesignTokenType,
6833
- childrenIds: z235.string().array()
6930
+ childrenIds: z236.string().array()
6834
6931
  });
6835
6932
 
6836
6933
  // src/api/dto/documentation/analytics-v2.ts
6837
- import { z as z236 } from "zod";
6838
- var DTODocumentationAnalyticsTimeFrame = z236.object({
6839
- start: z236.coerce.date(),
6840
- end: z236.coerce.date().optional()
6934
+ import { z as z237 } from "zod";
6935
+ var DTODocumentationAnalyticsTimeFrame = z237.object({
6936
+ start: z237.coerce.date(),
6937
+ end: z237.coerce.date().optional()
6841
6938
  });
6842
- var DTOPublishedDocVisitData = z236.object({
6843
- timestamp: z236.coerce.date(),
6844
- versionId: z236.string(),
6845
- locale: z236.string().optional(),
6846
- visits: z236.number(),
6847
- sessions: z236.number()
6939
+ var DTOPublishedDocVisitData = z237.object({
6940
+ timestamp: z237.coerce.date(),
6941
+ versionId: z237.string(),
6942
+ locale: z237.string().optional(),
6943
+ visits: z237.number(),
6944
+ sessions: z237.number()
6848
6945
  });
6849
6946
  var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
6850
- pagePersistentId: z236.string()
6947
+ pagePersistentId: z237.string()
6851
6948
  });
6852
- var DTOPublishedDocVisitHeatMapDay = z236.number().array().length(12);
6853
- var DTOPublishedDocVisitHeatMapWeek = z236.object({
6949
+ var DTOPublishedDocVisitHeatMapDay = z237.number().array().length(12);
6950
+ var DTOPublishedDocVisitHeatMapWeek = z237.object({
6854
6951
  /**
6855
6952
  * For which timeframe it was calculated
6856
6953
  */
@@ -6863,75 +6960,65 @@ var DTOPublishedDocVisitHeatMapWeek = z236.object({
6863
6960
  sat: DTOPublishedDocVisitHeatMapDay,
6864
6961
  sun: DTOPublishedDocVisitHeatMapDay
6865
6962
  });
6866
- var DTOPublishedDocAnalyticsComparisonData = z236.object({
6963
+ var DTOPublishedDocAnalyticsComparisonData = z237.object({
6867
6964
  /**
6868
6965
  * For which timeframe it was calculated
6869
6966
  */
6870
6967
  timeFrame: DTODocumentationAnalyticsTimeFrame,
6871
- priorVisitCount: z236.number(),
6872
- priorSessionCount: z236.number(),
6873
- currentVisitCount: z236.number(),
6874
- currentSessionCount: z236.number()
6968
+ priorVisitCount: z237.number(),
6969
+ priorSessionCount: z237.number(),
6970
+ currentVisitCount: z237.number(),
6971
+ currentSessionCount: z237.number()
6875
6972
  });
6876
6973
  var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
6877
- pagePersistentId: z236.string()
6974
+ pagePersistentId: z237.string()
6878
6975
  });
6879
- var DTODocumentationPageAnalyticsResponse = z236.object({
6880
- // Old
6881
- /**
6882
- * @deprecated
6883
- */
6884
- analytics: z236.array(DTOPublishedDocPageVisitData),
6885
- /**
6886
- * @deprecated
6887
- */
6888
- perPageAnalytics: DTOPublishedDocPageVisitData.array(),
6889
- // New
6976
+ var DTODocumentationPageAnalyticsResponse = z237.object({
6890
6977
  globalAnalytics: DTOPublishedDocVisitData.array(),
6891
6978
  pageAnalytics: DTOPublishedDocPageVisitData.array(),
6892
6979
  heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
6893
6980
  comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
6894
6981
  pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
6895
6982
  });
6896
- var DTODocumentationAnalyticsRequest = z236.object({
6897
- timeFrames: z236.array(DTODocumentationAnalyticsTimeFrame)
6983
+ var DTODocumentationAnalyticsRequest = z237.object({
6984
+ timeFrames: z237.array(DTODocumentationAnalyticsTimeFrame)
6898
6985
  });
6899
-
6900
- // src/api/dto/documentation/analytics.ts
6901
- import { z as z237 } from "zod";
6902
- var DTODocumentationPageAnalyticsDifference = z237.object({
6903
- startDate: z237.coerce.date(),
6904
- endDate: z237.coerce.date().optional(),
6905
- currentVisitCount: z237.number(),
6906
- currentSessionCount: z237.number(),
6907
- priorVisitCount: z237.number(),
6908
- priorSessionCount: z237.number()
6986
+
6987
+ // src/api/dto/documentation/analytics.ts
6988
+ import { z as z238 } from "zod";
6989
+ var DTODocumentationPageAnalyticsDifference = z238.object({
6990
+ startDate: z238.coerce.date(),
6991
+ endDate: z238.coerce.date().optional(),
6992
+ currentVisitCount: z238.number(),
6993
+ currentSessionCount: z238.number(),
6994
+ priorVisitCount: z238.number(),
6995
+ priorSessionCount: z238.number()
6909
6996
  });
6910
- var DTODocumentationPageIntervalDifferenceResponse = z237.object({
6911
- differences: z237.array(DTODocumentationPageAnalyticsDifference)
6997
+ var DTODocumentationPageIntervalDifferenceResponse = z238.object({
6998
+ differences: z238.array(DTODocumentationPageAnalyticsDifference)
6912
6999
  });
6913
7000
 
6914
7001
  // src/api/dto/documentation/anchor.ts
6915
- import { z as z238 } from "zod";
7002
+ import { z as z239 } from "zod";
6916
7003
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6917
- var DTOGetDocumentationPageAnchorsResponse = z238.object({
6918
- anchors: z238.array(DTODocumentationPageAnchor)
7004
+ var DTOGetDocumentationPageAnchorsResponse = z239.object({
7005
+ anchors: z239.array(DTODocumentationPageAnchor)
6919
7006
  });
6920
7007
 
6921
7008
  // src/api/dto/documentation/approvals.ts
6922
- import { z as z239 } from "zod";
6923
- var DTODocumentationPageApprovalState = z239.object({
7009
+ import { z as z240 } from "zod";
7010
+ var DTODocumentationPageApprovalState = z240.object({
6924
7011
  approvalState: DocumentationPageApprovalState,
6925
- pagePersistentId: z239.string(),
6926
- updatedByUserId: z239.string(),
6927
- designSystemVersionId: z239.string(),
6928
- updatedAt: z239.coerce.date(),
6929
- createdAt: z239.coerce.date()
6930
- });
6931
- var DTODocumentationGroupApprovalState = z239.object({
6932
- persistentId: z239.string(),
6933
- groupPersistentId: z239.string(),
6934
- designSystemVersionId: z239.string(),
7012
+ pagePersistentId: z240.string(),
7013
+ updatedByUserId: z240.string(),
7014
+ designSystemVersionId: z240.string(),
7015
+ updatedAt: z240.coerce.date(),
7016
+ createdAt: z240.coerce.date()
7017
+ });
7018
+ var DTODocumentationGroupApprovalState = z240.object({
7019
+ persistentId: z240.string(),
7020
+ groupPersistentId: z240.string(),
7021
+ designSystemVersionId: z240.string(),
6935
7022
  approvalState: DocumentationPageApprovalState
6936
7023
  });
6937
7024
 
@@ -6939,68 +7026,68 @@ var DTODocumentationGroupApprovalState = z239.object({
6939
7026
  var DTOPageBlockItemV2 = PageBlockItemV2;
6940
7027
 
6941
7028
  // src/api/dto/documentation/documentation-page-snapshot.ts
6942
- import { z as z244 } from "zod";
7029
+ import { z as z245 } from "zod";
6943
7030
 
6944
7031
  // src/api/dto/elements/documentation/page-v2.ts
6945
- import { z as z243 } from "zod";
7032
+ import { z as z244 } from "zod";
6946
7033
 
6947
7034
  // src/api/dto/elements/documentation/draft-state.ts
6948
- import { z as z241 } from "zod";
7035
+ import { z as z242 } from "zod";
6949
7036
 
6950
7037
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6951
- import { z as z240 } from "zod";
7038
+ import { z as z241 } from "zod";
6952
7039
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6953
- var DTODocumentationItemConfigurationV2 = z240.object({
6954
- showSidebar: z240.boolean(),
6955
- isPrivate: z240.boolean(),
6956
- isHidden: z240.boolean(),
7040
+ var DTODocumentationItemConfigurationV2 = z241.object({
7041
+ showSidebar: z241.boolean(),
7042
+ isPrivate: z241.boolean(),
7043
+ isHidden: z241.boolean(),
6957
7044
  header: DTODocumentationItemHeaderV2
6958
7045
  });
6959
7046
 
6960
7047
  // src/api/dto/elements/documentation/draft-state.ts
6961
- var DTODocumentationDraftChangeType = z241.enum(["Created", "Updated", "Deleted"]);
6962
- var DTODocumentationDraftStateCreated = z241.object({
6963
- changeType: z241.literal(DTODocumentationDraftChangeType.enum.Created)
6964
- });
6965
- var DTODocumentationDraftStateUpdated = z241.object({
6966
- changeType: z241.literal(DTODocumentationDraftChangeType.enum.Updated),
6967
- changes: z241.object({
6968
- previousTitle: z241.string().optional(),
7048
+ var DTODocumentationDraftChangeType = z242.enum(["Created", "Updated", "Deleted"]);
7049
+ var DTODocumentationDraftStateCreated = z242.object({
7050
+ changeType: z242.literal(DTODocumentationDraftChangeType.enum.Created)
7051
+ });
7052
+ var DTODocumentationDraftStateUpdated = z242.object({
7053
+ changeType: z242.literal(DTODocumentationDraftChangeType.enum.Updated),
7054
+ changes: z242.object({
7055
+ previousTitle: z242.string().optional(),
6969
7056
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6970
- previousContentHash: z241.string().optional()
7057
+ previousContentHash: z242.string().optional()
6971
7058
  })
6972
7059
  });
6973
- var DTODocumentationDraftStateDeleted = z241.object({
6974
- changeType: z241.literal(DTODocumentationDraftChangeType.enum.Deleted),
6975
- deletedAt: z241.coerce.date(),
6976
- deletedByUserId: z241.string()
7060
+ var DTODocumentationDraftStateDeleted = z242.object({
7061
+ changeType: z242.literal(DTODocumentationDraftChangeType.enum.Deleted),
7062
+ deletedAt: z242.coerce.date(),
7063
+ deletedByUserId: z242.string()
6977
7064
  });
6978
- var DTODocumentationDraftState = z241.discriminatedUnion("changeType", [
7065
+ var DTODocumentationDraftState = z242.discriminatedUnion("changeType", [
6979
7066
  DTODocumentationDraftStateCreated,
6980
7067
  DTODocumentationDraftStateUpdated,
6981
7068
  DTODocumentationDraftStateDeleted
6982
7069
  ]);
6983
7070
 
6984
7071
  // src/api/dto/elements/documentation/metadata.ts
6985
- import { z as z242 } from "zod";
6986
- var DTODocumentationPublishMetadata = z242.object({
6987
- lastPublishedByUserId: z242.string(),
6988
- lastPublishedAt: z242.coerce.date()
7072
+ import { z as z243 } from "zod";
7073
+ var DTODocumentationPublishMetadata = z243.object({
7074
+ lastPublishedByUserId: z243.string(),
7075
+ lastPublishedAt: z243.coerce.date()
6989
7076
  });
6990
7077
 
6991
7078
  // src/api/dto/elements/documentation/page-v2.ts
6992
- var DTODocumentationPageV2 = z243.object({
6993
- id: z243.string(),
6994
- persistentId: z243.string(),
6995
- designSystemVersionId: z243.string(),
6996
- title: z243.string(),
7079
+ var DTODocumentationPageV2 = z244.object({
7080
+ id: z244.string(),
7081
+ persistentId: z244.string(),
7082
+ designSystemVersionId: z244.string(),
7083
+ title: z244.string(),
6997
7084
  configuration: DTODocumentationItemConfigurationV2,
6998
- shortPersistentId: z243.string(),
6999
- slug: z243.string().optional(),
7000
- userSlug: z243.string().optional(),
7001
- createdAt: z243.coerce.date(),
7002
- updatedAt: z243.coerce.date(),
7003
- path: z243.string(),
7085
+ shortPersistentId: z244.string(),
7086
+ slug: z244.string().optional(),
7087
+ userSlug: z244.string().optional(),
7088
+ createdAt: z244.coerce.date(),
7089
+ updatedAt: z244.coerce.date(),
7090
+ path: z244.string(),
7004
7091
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7005
7092
  draftState: DTODocumentationDraftState.optional(),
7006
7093
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -7008,267 +7095,267 @@ var DTODocumentationPageV2 = z243.object({
7008
7095
  /** Defines the approval state of the documentation page */
7009
7096
  approvalState: DTODocumentationPageApprovalState.optional(),
7010
7097
  /** Id of the page document room */
7011
- liveblocksRoomId: z243.string().optional(),
7098
+ liveblocksRoomId: z244.string().optional(),
7012
7099
  // Backward compatibility
7013
- type: z243.literal("Page")
7100
+ type: z244.literal("Page")
7014
7101
  });
7015
- var DTOCreateDocumentationPageInputV2 = z243.object({
7102
+ var DTOCreateDocumentationPageInputV2 = z244.object({
7016
7103
  // Identifier
7017
- persistentId: z243.string(),
7104
+ persistentId: z244.string(),
7018
7105
  // Page properties
7019
- title: z243.string(),
7106
+ title: z244.string(),
7020
7107
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
7021
7108
  // Page placement properties
7022
- parentPersistentId: z243.string(),
7023
- afterPersistentId: z243.string().nullish()
7109
+ parentPersistentId: z244.string(),
7110
+ afterPersistentId: z244.string().nullish()
7024
7111
  });
7025
- var DTOUpdateDocumentationPageInputV2 = z243.object({
7112
+ var DTOUpdateDocumentationPageInputV2 = z244.object({
7026
7113
  // Identifier of the page to update
7027
- id: z243.string(),
7114
+ id: z244.string(),
7028
7115
  // Page properties
7029
- title: z243.string().optional(),
7116
+ title: z244.string().optional(),
7030
7117
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
7031
7118
  });
7032
- var DTOUpdateDocumentationPageDocumentInputV2 = z243.object({
7119
+ var DTOUpdateDocumentationPageDocumentInputV2 = z244.object({
7033
7120
  // Identifier of the page to update
7034
- id: z243.string(),
7121
+ id: z244.string(),
7035
7122
  // Page properties
7036
- documentItems: z243.array(DocumentationPageContentItem)
7123
+ documentItems: z244.array(DocumentationPageContentItem)
7037
7124
  });
7038
- var DTOMoveDocumentationPageInputV2 = z243.object({
7125
+ var DTOMoveDocumentationPageInputV2 = z244.object({
7039
7126
  // Identifier of the group to update
7040
- id: z243.string(),
7127
+ id: z244.string(),
7041
7128
  // Page placement properties
7042
- parentPersistentId: z243.string(),
7043
- afterPersistentId: z243.string().nullish()
7129
+ parentPersistentId: z244.string(),
7130
+ afterPersistentId: z244.string().nullish()
7044
7131
  });
7045
- var DTODuplicateDocumentationPageInputV2 = z243.object({
7132
+ var DTODuplicateDocumentationPageInputV2 = z244.object({
7046
7133
  // Identifier of the page to duplicate from
7047
- id: z243.string(),
7134
+ id: z244.string(),
7048
7135
  // New page persistent id
7049
- persistentId: z243.string(),
7136
+ persistentId: z244.string(),
7050
7137
  // Page placement properties
7051
- parentPersistentId: z243.string(),
7052
- afterPersistentId: z243.string().nullish()
7138
+ parentPersistentId: z244.string(),
7139
+ afterPersistentId: z244.string().nullish()
7053
7140
  });
7054
- var DTODeleteDocumentationPageInputV2 = z243.object({
7141
+ var DTODeleteDocumentationPageInputV2 = z244.object({
7055
7142
  // Identifier
7056
- id: z243.string()
7143
+ id: z244.string()
7057
7144
  });
7058
- var DTORestoreDocumentationPageInput = z243.object({
7059
- persistentId: z243.string(),
7060
- snapshotId: z243.string().optional()
7145
+ var DTORestoreDocumentationPageInput = z244.object({
7146
+ persistentId: z244.string(),
7147
+ snapshotId: z244.string().optional()
7061
7148
  });
7062
- var DTORestoreDocumentationGroupInput = z243.object({
7063
- persistentId: z243.string(),
7064
- snapshotId: z243.string().optional()
7149
+ var DTORestoreDocumentationGroupInput = z244.object({
7150
+ persistentId: z244.string(),
7151
+ snapshotId: z244.string().optional()
7065
7152
  });
7066
- var DTODocumentationPageApprovalStateChangeInput = z243.object({
7067
- persistentId: z243.string(),
7153
+ var DTODocumentationPageApprovalStateChangeInput = z244.object({
7154
+ persistentId: z244.string(),
7068
7155
  approvalState: DocumentationPageApprovalState.optional()
7069
7156
  });
7070
7157
 
7071
7158
  // src/api/dto/documentation/documentation-page-snapshot.ts
7072
- var DTODocumentationPageSnapshot = z244.object({
7073
- id: z244.string(),
7074
- designSystemVersionId: z244.string(),
7075
- createdAt: z244.string(),
7076
- updatedAt: z244.string(),
7159
+ var DTODocumentationPageSnapshot = z245.object({
7160
+ id: z245.string(),
7161
+ designSystemVersionId: z245.string(),
7162
+ createdAt: z245.string(),
7163
+ updatedAt: z245.string(),
7077
7164
  documentationPage: DTODocumentationPageV2,
7078
- pageContentHash: z244.string(),
7165
+ pageContentHash: z245.string(),
7079
7166
  reason: DesignElementSnapshotReason
7080
7167
  });
7081
7168
 
7082
7169
  // src/api/dto/documentation/link-preview.ts
7083
- import { z as z245 } from "zod";
7084
- var DTODocumentationLinkPreviewResponse = z245.object({
7170
+ import { z as z246 } from "zod";
7171
+ var DTODocumentationLinkPreviewResponse = z246.object({
7085
7172
  linkPreview: DocumentationLinkPreview
7086
7173
  });
7087
- var DTODocumentationLinkPreviewRequest = z245.object({
7088
- url: z245.string().optional(),
7089
- documentationItemPersistentId: z245.string().optional()
7174
+ var DTODocumentationLinkPreviewRequest = z246.object({
7175
+ url: z246.string().optional(),
7176
+ documentationItemPersistentId: z246.string().optional()
7090
7177
  });
7091
7178
 
7092
7179
  // src/api/dto/documentation/publish.ts
7093
- import { z as z249 } from "zod";
7180
+ import { z as z250 } from "zod";
7094
7181
 
7095
7182
  // src/api/dto/export/exporter.ts
7096
- import { z as z246 } from "zod";
7097
- var DTOExporterType = z246.enum(["documentation", "code"]);
7098
- var DTOExporterSource = z246.enum(["git", "upload"]);
7099
- var DTOExporterMembershipRole = z246.enum(["Owner", "OwnerArchived", "User"]);
7100
- var DTOExporterListQuery = z246.object({
7101
- limit: z246.coerce.number().optional(),
7102
- offset: z246.coerce.number().optional(),
7183
+ import { z as z247 } from "zod";
7184
+ var DTOExporterType = z247.enum(["documentation", "code"]);
7185
+ var DTOExporterSource = z247.enum(["git", "upload"]);
7186
+ var DTOExporterMembershipRole = z247.enum(["Owner", "OwnerArchived", "User"]);
7187
+ var DTOExporterListQuery = z247.object({
7188
+ limit: z247.coerce.number().optional(),
7189
+ offset: z247.coerce.number().optional(),
7103
7190
  type: DTOExporterType.optional(),
7104
- search: z246.string().optional()
7191
+ search: z247.string().optional()
7105
7192
  });
7106
- var DTOExporter = z246.object({
7107
- id: z246.string(),
7108
- name: z246.string(),
7109
- isPrivate: z246.boolean(),
7193
+ var DTOExporter = z247.object({
7194
+ id: z247.string(),
7195
+ name: z247.string(),
7196
+ isPrivate: z247.boolean(),
7110
7197
  exporterType: DTOExporterType,
7111
- isDefaultDocumentationExporter: z246.boolean(),
7112
- iconURL: z246.string().optional(),
7198
+ isDefaultDocumentationExporter: z247.boolean(),
7199
+ iconURL: z247.string().optional(),
7113
7200
  configurationProperties: PulsarContributionConfigurationProperty.array(),
7114
7201
  properties: DTOExporterPropertyDefinition.array().optional(),
7115
7202
  customBlocks: PulsarCustomBlock.array(),
7116
- blockVariants: z246.record(z246.string(), PulsarContributionVariant.array()),
7117
- homepage: z246.string().optional(),
7118
- organization: z246.string().optional(),
7119
- packageId: z246.string().optional(),
7120
- tags: z246.array(z246.string()),
7121
- author: z246.string().optional(),
7122
- version: z246.string(),
7123
- description: z246.string(),
7124
- usesLocale: z246.boolean(),
7125
- usesBrands: z246.boolean(),
7126
- usesThemes: z246.boolean(),
7127
- readme: z246.string().optional(),
7128
- routingVersion: z246.string().optional(),
7203
+ blockVariants: z247.record(z247.string(), PulsarContributionVariant.array()),
7204
+ homepage: z247.string().optional(),
7205
+ organization: z247.string().optional(),
7206
+ packageId: z247.string().optional(),
7207
+ tags: z247.array(z247.string()),
7208
+ author: z247.string().optional(),
7209
+ version: z247.string(),
7210
+ description: z247.string(),
7211
+ usesLocale: z247.boolean(),
7212
+ usesBrands: z247.boolean(),
7213
+ usesThemes: z247.boolean(),
7214
+ readme: z247.string().optional(),
7215
+ routingVersion: z247.string().optional(),
7129
7216
  source: DTOExporterSource,
7130
- gitProvider: z246.string().optional(),
7131
- gitUrl: nullishToOptional(z246.string()),
7132
- gitBranch: nullishToOptional(z246.string()),
7133
- gitDirectory: nullishToOptional(z246.string()),
7134
- isDeprecated: z246.boolean(),
7135
- deprecationNote: z246.string().optional(),
7136
- replacementExporterId: z246.string().optional()
7137
- });
7138
- var DTOExporterMembership = z246.object({
7139
- workspaceId: z246.string(),
7140
- exporterId: z246.string(),
7217
+ gitProvider: z247.string().optional(),
7218
+ gitUrl: nullishToOptional(z247.string()),
7219
+ gitBranch: nullishToOptional(z247.string()),
7220
+ gitDirectory: nullishToOptional(z247.string()),
7221
+ isDeprecated: z247.boolean(),
7222
+ deprecationNote: z247.string().optional(),
7223
+ replacementExporterId: z247.string().optional()
7224
+ });
7225
+ var DTOExporterMembership = z247.object({
7226
+ workspaceId: z247.string(),
7227
+ exporterId: z247.string(),
7141
7228
  role: DTOExporterMembershipRole
7142
7229
  });
7143
- var DTOExporterResponse = z246.object({
7230
+ var DTOExporterResponse = z247.object({
7144
7231
  exporter: DTOExporter,
7145
7232
  membership: DTOExporterMembership
7146
7233
  });
7147
- var DTOExporterListResponse = z246.object({
7234
+ var DTOExporterListResponse = z247.object({
7148
7235
  exporters: DTOExporter.array(),
7149
7236
  membership: DTOExporterMembership.array(),
7150
- total: z246.number()
7237
+ total: z247.number()
7151
7238
  });
7152
- var DTOExporterGitProviderEnum = z246.enum(["github", "gitlab", "bitbucket", "azure"]);
7153
- var DTOExporterCreateInput = z246.object({
7154
- url: z246.string(),
7239
+ var DTOExporterGitProviderEnum = z247.enum(["github", "gitlab", "bitbucket", "azure"]);
7240
+ var DTOExporterCreateInput = z247.object({
7241
+ url: z247.string(),
7155
7242
  provider: DTOExporterGitProviderEnum
7156
7243
  });
7157
- var DTOExporterUpdateInput = z246.object({
7158
- url: z246.string().optional()
7244
+ var DTOExporterUpdateInput = z247.object({
7245
+ url: z247.string().optional()
7159
7246
  });
7160
- var DTOExporterDeprecationInput = z246.object({
7161
- isDeprecated: z246.boolean(),
7162
- deprecationNote: z246.string().optional(),
7163
- replacementExporterId: z246.string().optional()
7247
+ var DTOExporterDeprecationInput = z247.object({
7248
+ isDeprecated: z247.boolean(),
7249
+ deprecationNote: z247.string().optional(),
7250
+ replacementExporterId: z247.string().optional()
7164
7251
  });
7165
7252
 
7166
7253
  // src/api/dto/export/filter.ts
7167
7254
  var DTOExportJobsListFilter = ExportJobFindByFilter;
7168
7255
 
7169
7256
  // src/api/dto/export/job.ts
7170
- import { z as z247 } from "zod";
7171
- var DTOExportJobCreatedBy = z247.object({
7172
- userId: z247.string(),
7173
- userName: z247.string()
7257
+ import { z as z248 } from "zod";
7258
+ var DTOExportJobCreatedBy = z248.object({
7259
+ userId: z248.string(),
7260
+ userName: z248.string()
7174
7261
  });
7175
- var DTOExportJobDesignSystemPreview = z247.object({
7176
- id: z247.string(),
7262
+ var DTOExportJobDesignSystemPreview = z248.object({
7263
+ id: z248.string(),
7177
7264
  meta: ObjectMeta
7178
7265
  });
7179
- var DTOExportJobDesignSystemVersionPreview = z247.object({
7180
- id: z247.string(),
7266
+ var DTOExportJobDesignSystemVersionPreview = z248.object({
7267
+ id: z248.string(),
7181
7268
  meta: ObjectMeta,
7182
- version: z247.string(),
7183
- isReadonly: z247.boolean()
7269
+ version: z248.string(),
7270
+ isReadonly: z248.boolean()
7184
7271
  });
7185
- var DTOExportJobDestinations = z247.object({
7272
+ var DTOExportJobDestinations = z248.object({
7186
7273
  s3: ExporterDestinationS3.optional(),
7187
7274
  azure: ExporterDestinationAzure.optional(),
7188
7275
  bitbucket: ExporterDestinationBitbucket.optional(),
7189
7276
  github: ExporterDestinationGithub.optional(),
7190
7277
  gitlab: ExporterDestinationGitlab.optional(),
7191
7278
  documentation: ExporterDestinationDocs.optional(),
7192
- webhookUrl: z247.string().optional()
7279
+ webhookUrl: z248.string().optional()
7193
7280
  });
7194
7281
  var DTOExportJobResult = ExportJobResult.omit({
7195
7282
  sndocs: true
7196
7283
  }).extend({
7197
7284
  documentation: ExportJobDocsDestinationResult.optional()
7198
7285
  });
7199
- var DTOExportJob = z247.object({
7200
- id: z247.string(),
7201
- createdAt: z247.coerce.date(),
7202
- finishedAt: z247.coerce.date().optional(),
7203
- index: z247.number().optional(),
7286
+ var DTOExportJob = z248.object({
7287
+ id: z248.string(),
7288
+ createdAt: z248.coerce.date(),
7289
+ finishedAt: z248.coerce.date().optional(),
7290
+ index: z248.number().optional(),
7204
7291
  status: ExportJobStatus,
7205
- estimatedExecutionTime: z247.number().optional(),
7292
+ estimatedExecutionTime: z248.number().optional(),
7206
7293
  createdBy: DTOExportJobCreatedBy.optional(),
7207
7294
  designSystem: DTOExportJobDesignSystemPreview,
7208
7295
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
7209
7296
  destinations: DTOExportJobDestinations,
7210
- exporterId: z247.string(),
7211
- scheduleId: z247.string().optional(),
7297
+ exporterId: z248.string(),
7298
+ scheduleId: z248.string().optional(),
7212
7299
  result: DTOExportJobResult.optional(),
7213
- brandPersistentId: z247.string().optional(),
7214
- themePersistentId: z247.string().optional(),
7215
- themePersistentIds: z247.string().array().optional(),
7300
+ brandPersistentId: z248.string().optional(),
7301
+ themePersistentId: z248.string().optional(),
7302
+ themePersistentIds: z248.string().array().optional(),
7216
7303
  exporterPropertyValues: DTOExporterPropertyValueMap.optional()
7217
7304
  });
7218
- var DTOExportJobResponse = z247.object({
7305
+ var DTOExportJobResponse = z248.object({
7219
7306
  job: DTOExportJob
7220
7307
  });
7221
- var DTOExportJobResponseLegacy = z247.object({
7222
- job: z247.object({
7223
- id: z247.string(),
7308
+ var DTOExportJobResponseLegacy = z248.object({
7309
+ job: z248.object({
7310
+ id: z248.string(),
7224
7311
  status: ExportJobStatus
7225
7312
  })
7226
7313
  });
7227
- var DTOExportJobCreateInput = z247.object({
7228
- designSystemId: z247.string(),
7229
- designSystemVersionId: z247.string(),
7230
- exporterId: z247.string(),
7231
- brandId: z247.string().optional(),
7232
- themeId: z247.string().optional(),
7233
- themePersistentIds: z247.string().array().optional(),
7314
+ var DTOExportJobCreateInput = z248.object({
7315
+ designSystemId: z248.string(),
7316
+ designSystemVersionId: z248.string(),
7317
+ exporterId: z248.string(),
7318
+ brandId: z248.string().optional(),
7319
+ themeId: z248.string().optional(),
7320
+ themePersistentIds: z248.string().array().optional(),
7234
7321
  destinations: DTOExportJobDestinations,
7235
7322
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7236
- previewMode: z247.boolean().optional()
7323
+ previewMode: z248.boolean().optional()
7237
7324
  });
7238
7325
 
7239
7326
  // src/api/dto/export/pipeline.ts
7240
- import { z as z248 } from "zod";
7241
- var DTOPipelineListQuery = z248.object({
7242
- designSystemId: z248.string().optional(),
7243
- exporterId: z248.string().optional(),
7244
- latestJobsLimit: z248.coerce.number().optional()
7245
- });
7246
- var DTOPipeline = z248.object({
7247
- id: z248.string(),
7248
- name: z248.string(),
7327
+ import { z as z249 } from "zod";
7328
+ var DTOPipelineListQuery = z249.object({
7329
+ designSystemId: z249.string().optional(),
7330
+ exporterId: z249.string().optional(),
7331
+ latestJobsLimit: z249.coerce.number().optional()
7332
+ });
7333
+ var DTOPipeline = z249.object({
7334
+ id: z249.string(),
7335
+ name: z249.string(),
7249
7336
  eventType: PipelineEventType,
7250
- isEnabled: z248.boolean(),
7251
- workspaceId: z248.string(),
7252
- designSystemId: z248.string(),
7253
- exporterId: z248.string(),
7254
- brandPersistentId: z248.string().optional(),
7255
- themePersistentId: z248.string().optional(),
7256
- themePersistentIds: z248.string().array().optional(),
7337
+ isEnabled: z249.boolean(),
7338
+ workspaceId: z249.string(),
7339
+ designSystemId: z249.string(),
7340
+ exporterId: z249.string(),
7341
+ brandPersistentId: z249.string().optional(),
7342
+ themePersistentId: z249.string().optional(),
7343
+ themePersistentIds: z249.string().array().optional(),
7257
7344
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7258
7345
  ...ExportDestinationsMap.shape,
7259
7346
  latestJobs: DTOExportJob.array(),
7260
- isExporterDeprecated: z248.boolean()
7347
+ isExporterDeprecated: z249.boolean()
7261
7348
  });
7262
- var DTOPipelineListResponse = z248.object({
7349
+ var DTOPipelineListResponse = z249.object({
7263
7350
  pipelines: DTOPipeline.array()
7264
7351
  });
7265
- var DTOPipelineResponse = z248.object({
7352
+ var DTOPipelineResponse = z249.object({
7266
7353
  pipeline: DTOPipeline
7267
7354
  });
7268
7355
 
7269
7356
  // src/api/dto/documentation/publish.ts
7270
7357
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
7271
- var DTOPublishDocumentationRequest = z249.object({
7358
+ var DTOPublishDocumentationRequest = z250.object({
7272
7359
  environment: PublishedDocEnvironment,
7273
7360
  /**
7274
7361
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -7276,66 +7363,66 @@ var DTOPublishDocumentationRequest = z249.object({
7276
7363
  */
7277
7364
  changes: DTOPublishDocumentationChanges.optional()
7278
7365
  });
7279
- var DTOPublishDocumentationResponse = z249.object({
7366
+ var DTOPublishDocumentationResponse = z250.object({
7280
7367
  job: DTOExportJob
7281
7368
  });
7282
7369
 
7283
7370
  // src/api/dto/documentation/room.ts
7284
- import { z as z250 } from "zod";
7285
- var DTODocumentationPageRoom = z250.object({
7286
- id: z250.string()
7371
+ import { z as z251 } from "zod";
7372
+ var DTODocumentationPageRoom = z251.object({
7373
+ id: z251.string()
7287
7374
  });
7288
- var DTODocumentationPageRoomResponse = z250.object({
7375
+ var DTODocumentationPageRoomResponse = z251.object({
7289
7376
  room: DTODocumentationPageRoom
7290
7377
  });
7291
7378
 
7292
7379
  // src/api/dto/elements/components/figma-component-group.ts
7293
- import z251 from "zod";
7294
- var DTOFigmaComponentGroup = z251.object({
7295
- id: z251.string(),
7296
- designSystemVersionId: z251.string(),
7297
- persistentId: z251.string(),
7298
- isRoot: z251.boolean(),
7299
- brandId: z251.string(),
7380
+ import z252 from "zod";
7381
+ var DTOFigmaComponentGroup = z252.object({
7382
+ id: z252.string(),
7383
+ designSystemVersionId: z252.string(),
7384
+ persistentId: z252.string(),
7385
+ isRoot: z252.boolean(),
7386
+ brandId: z252.string(),
7300
7387
  meta: DTOObjectMeta,
7301
- childrenIds: z251.string().array()
7388
+ childrenIds: z252.string().array()
7302
7389
  });
7303
- var DTOFigmaComponentGroupListResponse = z251.object({
7390
+ var DTOFigmaComponentGroupListResponse = z252.object({
7304
7391
  groups: DTOFigmaComponentGroup.array()
7305
7392
  });
7306
7393
 
7307
7394
  // src/api/dto/elements/components/figma-component.ts
7308
- import { z as z252 } from "zod";
7395
+ import { z as z253 } from "zod";
7309
7396
  var DTOFigmaComponentProperty = FigmaComponentProperty;
7310
- var DTOFigmaComponentPropertyMap = z252.record(DTOFigmaComponentProperty);
7311
- var DTOFigmaComponent = z252.object({
7312
- id: z252.string(),
7313
- persistentId: z252.string(),
7314
- designSystemVersionId: z252.string(),
7315
- brandId: z252.string(),
7316
- thumbnailUrl: z252.string().optional(),
7317
- svgUrl: z252.string().optional(),
7318
- exportProperties: z252.object({
7319
- isAsset: z252.boolean()
7397
+ var DTOFigmaComponentPropertyMap = z253.record(DTOFigmaComponentProperty);
7398
+ var DTOFigmaComponent = z253.object({
7399
+ id: z253.string(),
7400
+ persistentId: z253.string(),
7401
+ designSystemVersionId: z253.string(),
7402
+ brandId: z253.string(),
7403
+ thumbnailUrl: z253.string().optional(),
7404
+ svgUrl: z253.string().optional(),
7405
+ exportProperties: z253.object({
7406
+ isAsset: z253.boolean()
7320
7407
  }),
7321
- createdAt: z252.coerce.date(),
7322
- updatedAt: z252.coerce.date(),
7408
+ createdAt: z253.coerce.date(),
7409
+ updatedAt: z253.coerce.date(),
7323
7410
  meta: ObjectMeta,
7324
7411
  originComponent: FigmaComponentOrigin.optional(),
7325
- parentComponentPersistentId: z252.string().optional(),
7326
- childrenPersistentIds: z252.string().array().optional(),
7412
+ parentComponentPersistentId: z253.string().optional(),
7413
+ childrenPersistentIds: z253.string().array().optional(),
7327
7414
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
7328
- variantPropertyValues: z252.record(z252.string()).optional()
7415
+ variantPropertyValues: z253.record(z253.string()).optional()
7329
7416
  });
7330
- var DTOFigmaComponentListResponse = z252.object({
7417
+ var DTOFigmaComponentListResponse = z253.object({
7331
7418
  components: DTOFigmaComponent.array()
7332
7419
  });
7333
7420
 
7334
7421
  // src/api/dto/elements/documentation/group-action.ts
7335
- import { z as z254 } from "zod";
7422
+ import { z as z255 } from "zod";
7336
7423
 
7337
7424
  // src/api/dto/elements/documentation/group-v2.ts
7338
- import { z as z253 } from "zod";
7425
+ import { z as z254 } from "zod";
7339
7426
  var DTODocumentationGroupV2 = ElementGroup.omit({
7340
7427
  sortOrder: true,
7341
7428
  parentPersistentId: true,
@@ -7345,13 +7432,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
7345
7432
  data: true,
7346
7433
  shortPersistentId: true
7347
7434
  }).extend({
7348
- title: z253.string(),
7349
- isRoot: z253.boolean(),
7350
- childrenIds: z253.array(z253.string()),
7435
+ title: z254.string(),
7436
+ isRoot: z254.boolean(),
7437
+ childrenIds: z254.array(z254.string()),
7351
7438
  groupBehavior: DocumentationGroupBehavior,
7352
- shortPersistentId: z253.string(),
7439
+ shortPersistentId: z254.string(),
7353
7440
  configuration: DTODocumentationItemConfigurationV2,
7354
- type: z253.literal("Group"),
7441
+ type: z254.literal("Group"),
7355
7442
  /** Defined when a group has changed since last publish and can be included into a partial publish */
7356
7443
  draftState: DTODocumentationDraftState.optional(),
7357
7444
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -7359,127 +7446,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
7359
7446
  //** An approval state for frontend to utilize. */
7360
7447
  approvalState: DTODocumentationGroupApprovalState.optional()
7361
7448
  });
7362
- var DTOCreateDocumentationGroupInput = z253.object({
7449
+ var DTOCreateDocumentationGroupInput = z254.object({
7363
7450
  // Identifier
7364
- persistentId: z253.string(),
7451
+ persistentId: z254.string(),
7365
7452
  // Group properties
7366
- title: z253.string(),
7453
+ title: z254.string(),
7367
7454
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
7368
7455
  // Group placement properties
7369
- afterPersistentId: z253.string().nullish(),
7370
- parentPersistentId: z253.string()
7456
+ afterPersistentId: z254.string().nullish(),
7457
+ parentPersistentId: z254.string()
7371
7458
  });
7372
- var DTOUpdateDocumentationGroupInput = z253.object({
7459
+ var DTOUpdateDocumentationGroupInput = z254.object({
7373
7460
  // Identifier of the group to update
7374
- id: z253.string(),
7461
+ id: z254.string(),
7375
7462
  // Group properties
7376
- title: z253.string().optional(),
7463
+ title: z254.string().optional(),
7377
7464
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
7378
7465
  });
7379
- var DTOMoveDocumentationGroupInput = z253.object({
7466
+ var DTOMoveDocumentationGroupInput = z254.object({
7380
7467
  // Identifier of the group to update
7381
- id: z253.string(),
7468
+ id: z254.string(),
7382
7469
  // Group placement properties
7383
- parentPersistentId: z253.string(),
7384
- afterPersistentId: z253.string().nullish()
7470
+ parentPersistentId: z254.string(),
7471
+ afterPersistentId: z254.string().nullish()
7385
7472
  });
7386
- var DTODuplicateDocumentationGroupInput = z253.object({
7473
+ var DTODuplicateDocumentationGroupInput = z254.object({
7387
7474
  // Identifier of the group to duplicate from
7388
- id: z253.string(),
7475
+ id: z254.string(),
7389
7476
  // New group persistent id
7390
- persistentId: z253.string(),
7477
+ persistentId: z254.string(),
7391
7478
  // Group placement properties
7392
- afterPersistentId: z253.string().nullish(),
7393
- parentPersistentId: z253.string()
7479
+ afterPersistentId: z254.string().nullish(),
7480
+ parentPersistentId: z254.string()
7394
7481
  });
7395
- var DTOCreateDocumentationTabInput = z253.object({
7482
+ var DTOCreateDocumentationTabInput = z254.object({
7396
7483
  // New group persistent id
7397
- persistentId: z253.string(),
7484
+ persistentId: z254.string(),
7398
7485
  // If this is page, we will attempt to convert it to tab
7399
7486
  // If this is tab group, we will add a new tab to it
7400
- fromItemPersistentId: z253.string(),
7401
- tabName: z253.string()
7487
+ fromItemPersistentId: z254.string(),
7488
+ tabName: z254.string()
7402
7489
  });
7403
- var DTODeleteDocumentationTabGroupInput = z253.object({
7490
+ var DTODeleteDocumentationTabGroupInput = z254.object({
7404
7491
  // Deleted group id
7405
- id: z253.string()
7492
+ id: z254.string()
7406
7493
  });
7407
- var DTODeleteDocumentationGroupInput = z253.object({
7494
+ var DTODeleteDocumentationGroupInput = z254.object({
7408
7495
  // Identifier
7409
- id: z253.string(),
7496
+ id: z254.string(),
7410
7497
  // Deletion options
7411
- deleteSubtree: z253.boolean().default(false)
7498
+ deleteSubtree: z254.boolean().default(false)
7412
7499
  });
7413
7500
 
7414
7501
  // src/api/dto/elements/documentation/group-action.ts
7415
- var SuccessPayload = z254.object({
7416
- success: z254.literal(true)
7502
+ var SuccessPayload = z255.object({
7503
+ success: z255.literal(true)
7417
7504
  });
7418
- var DTODocumentationGroupCreateActionOutputV2 = z254.object({
7419
- type: z254.literal("DocumentationGroupCreate"),
7505
+ var DTODocumentationGroupCreateActionOutputV2 = z255.object({
7506
+ type: z255.literal("DocumentationGroupCreate"),
7420
7507
  output: SuccessPayload
7421
7508
  });
7422
- var DTODocumentationTabCreateActionOutputV2 = z254.object({
7423
- type: z254.literal("DocumentationTabCreate"),
7509
+ var DTODocumentationTabCreateActionOutputV2 = z255.object({
7510
+ type: z255.literal("DocumentationTabCreate"),
7424
7511
  output: SuccessPayload
7425
7512
  });
7426
- var DTODocumentationGroupUpdateActionOutputV2 = z254.object({
7427
- type: z254.literal("DocumentationGroupUpdate"),
7513
+ var DTODocumentationGroupUpdateActionOutputV2 = z255.object({
7514
+ type: z255.literal("DocumentationGroupUpdate"),
7428
7515
  output: SuccessPayload
7429
7516
  });
7430
- var DTODocumentationGroupMoveActionOutputV2 = z254.object({
7431
- type: z254.literal("DocumentationGroupMove"),
7517
+ var DTODocumentationGroupMoveActionOutputV2 = z255.object({
7518
+ type: z255.literal("DocumentationGroupMove"),
7432
7519
  output: SuccessPayload
7433
7520
  });
7434
- var DTODocumentationGroupDuplicateActionOutputV2 = z254.object({
7435
- type: z254.literal("DocumentationGroupDuplicate"),
7521
+ var DTODocumentationGroupDuplicateActionOutputV2 = z255.object({
7522
+ type: z255.literal("DocumentationGroupDuplicate"),
7436
7523
  output: SuccessPayload
7437
7524
  });
7438
- var DTODocumentationGroupDeleteActionOutputV2 = z254.object({
7439
- type: z254.literal("DocumentationGroupDelete"),
7525
+ var DTODocumentationGroupDeleteActionOutputV2 = z255.object({
7526
+ type: z255.literal("DocumentationGroupDelete"),
7440
7527
  output: SuccessPayload
7441
7528
  });
7442
- var DTODocumentationTabGroupDeleteActionOutputV2 = z254.object({
7443
- type: z254.literal("DocumentationTabGroupDelete"),
7529
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z255.object({
7530
+ type: z255.literal("DocumentationTabGroupDelete"),
7444
7531
  output: SuccessPayload
7445
7532
  });
7446
- var DTODocumentationGroupCreateActionInputV2 = z254.object({
7447
- type: z254.literal("DocumentationGroupCreate"),
7533
+ var DTODocumentationGroupCreateActionInputV2 = z255.object({
7534
+ type: z255.literal("DocumentationGroupCreate"),
7448
7535
  input: DTOCreateDocumentationGroupInput
7449
7536
  });
7450
- var DTODocumentationTabCreateActionInputV2 = z254.object({
7451
- type: z254.literal("DocumentationTabCreate"),
7537
+ var DTODocumentationTabCreateActionInputV2 = z255.object({
7538
+ type: z255.literal("DocumentationTabCreate"),
7452
7539
  input: DTOCreateDocumentationTabInput
7453
7540
  });
7454
- var DTODocumentationGroupUpdateActionInputV2 = z254.object({
7455
- type: z254.literal("DocumentationGroupUpdate"),
7541
+ var DTODocumentationGroupUpdateActionInputV2 = z255.object({
7542
+ type: z255.literal("DocumentationGroupUpdate"),
7456
7543
  input: DTOUpdateDocumentationGroupInput
7457
7544
  });
7458
- var DTODocumentationGroupMoveActionInputV2 = z254.object({
7459
- type: z254.literal("DocumentationGroupMove"),
7545
+ var DTODocumentationGroupMoveActionInputV2 = z255.object({
7546
+ type: z255.literal("DocumentationGroupMove"),
7460
7547
  input: DTOMoveDocumentationGroupInput
7461
7548
  });
7462
- var DTODocumentationGroupDuplicateActionInputV2 = z254.object({
7463
- type: z254.literal("DocumentationGroupDuplicate"),
7549
+ var DTODocumentationGroupDuplicateActionInputV2 = z255.object({
7550
+ type: z255.literal("DocumentationGroupDuplicate"),
7464
7551
  input: DTODuplicateDocumentationGroupInput
7465
7552
  });
7466
- var DTODocumentationGroupDeleteActionInputV2 = z254.object({
7467
- type: z254.literal("DocumentationGroupDelete"),
7553
+ var DTODocumentationGroupDeleteActionInputV2 = z255.object({
7554
+ type: z255.literal("DocumentationGroupDelete"),
7468
7555
  input: DTODeleteDocumentationGroupInput
7469
7556
  });
7470
- var DTODocumentationTabGroupDeleteActionInputV2 = z254.object({
7471
- type: z254.literal("DocumentationTabGroupDelete"),
7557
+ var DTODocumentationTabGroupDeleteActionInputV2 = z255.object({
7558
+ type: z255.literal("DocumentationTabGroupDelete"),
7472
7559
  input: DTODeleteDocumentationTabGroupInput
7473
7560
  });
7474
7561
 
7475
7562
  // src/api/dto/elements/documentation/group-v1.ts
7476
- import { z as z256 } from "zod";
7563
+ import { z as z257 } from "zod";
7477
7564
 
7478
7565
  // src/api/dto/elements/documentation/item-configuration-v1.ts
7479
- import { z as z255 } from "zod";
7480
- var DocumentationColorV1 = z255.object({
7481
- aliasTo: z255.string().optional(),
7482
- value: z255.string().optional()
7566
+ import { z as z256 } from "zod";
7567
+ var DocumentationColorV1 = z256.object({
7568
+ aliasTo: z256.string().optional(),
7569
+ value: z256.string().optional()
7483
7570
  });
7484
7571
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7485
7572
  foregroundColor: true,
@@ -7488,10 +7575,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7488
7575
  foregroundColor: DocumentationColorV1.optional(),
7489
7576
  backgroundColor: DocumentationColorV1.optional()
7490
7577
  });
7491
- var DTODocumentationItemConfigurationV1 = z255.object({
7492
- showSidebar: z255.boolean(),
7493
- isPrivate: z255.boolean(),
7494
- isHidden: z255.boolean(),
7578
+ var DTODocumentationItemConfigurationV1 = z256.object({
7579
+ showSidebar: z256.boolean(),
7580
+ isPrivate: z256.boolean(),
7581
+ isHidden: z256.boolean(),
7495
7582
  header: DTODocumentationItemHeaderV1
7496
7583
  });
7497
7584
 
@@ -7505,145 +7592,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
7505
7592
  data: true,
7506
7593
  shortPersistentId: true
7507
7594
  }).extend({
7508
- title: z256.string(),
7509
- isRoot: z256.boolean(),
7510
- childrenIds: z256.array(z256.string()),
7595
+ title: z257.string(),
7596
+ isRoot: z257.boolean(),
7597
+ childrenIds: z257.array(z257.string()),
7511
7598
  groupBehavior: DocumentationGroupBehavior,
7512
- shortPersistentId: z256.string(),
7513
- type: z256.literal("Group")
7599
+ shortPersistentId: z257.string(),
7600
+ type: z257.literal("Group")
7514
7601
  });
7515
7602
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
7516
7603
  configuration: DTODocumentationItemConfigurationV1
7517
7604
  });
7518
7605
 
7519
7606
  // src/api/dto/elements/documentation/hierarchy.ts
7520
- import { z as z257 } from "zod";
7521
- var DTODocumentationHierarchyV2 = z257.object({
7522
- pages: z257.array(
7607
+ import { z as z258 } from "zod";
7608
+ var DTODocumentationHierarchyV2 = z258.object({
7609
+ pages: z258.array(
7523
7610
  DTODocumentationPageV2.extend({
7524
7611
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7525
7612
  draftState: DTODocumentationDraftState.optional()
7526
7613
  })
7527
7614
  ),
7528
- groups: z257.array(
7615
+ groups: z258.array(
7529
7616
  DTODocumentationGroupV2.extend({
7530
7617
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7531
7618
  draftState: DTODocumentationDraftState.optional()
7532
7619
  })
7533
7620
  ),
7534
7621
  /** True if the documentation was already published, false otherwise. */
7535
- hasPublishedDocumentationContent: z257.boolean()
7622
+ hasPublishedDocumentationContent: z258.boolean()
7536
7623
  });
7537
7624
 
7538
7625
  // src/api/dto/elements/documentation/page-actions-v2.ts
7539
- import { z as z258 } from "zod";
7540
- var SuccessPayload2 = z258.object({
7541
- success: z258.literal(true)
7626
+ import { z as z259 } from "zod";
7627
+ var SuccessPayload2 = z259.object({
7628
+ success: z259.literal(true)
7542
7629
  });
7543
- var DTODocumentationPageCreateActionOutputV2 = z258.object({
7544
- type: z258.literal("DocumentationPageCreate"),
7630
+ var DTODocumentationPageCreateActionOutputV2 = z259.object({
7631
+ type: z259.literal("DocumentationPageCreate"),
7545
7632
  output: SuccessPayload2
7546
7633
  });
7547
- var DTODocumentationPageUpdateActionOutputV2 = z258.object({
7548
- type: z258.literal("DocumentationPageUpdate"),
7634
+ var DTODocumentationPageUpdateActionOutputV2 = z259.object({
7635
+ type: z259.literal("DocumentationPageUpdate"),
7549
7636
  output: SuccessPayload2
7550
7637
  });
7551
- var DTODocumentationPageUpdateDocumentActionOutputV2 = z258.object({
7552
- type: z258.literal("DocumentationPageUpdateDocument"),
7638
+ var DTODocumentationPageUpdateDocumentActionOutputV2 = z259.object({
7639
+ type: z259.literal("DocumentationPageUpdateDocument"),
7553
7640
  output: SuccessPayload2
7554
7641
  });
7555
- var DTODocumentationPageMoveActionOutputV2 = z258.object({
7556
- type: z258.literal("DocumentationPageMove"),
7642
+ var DTODocumentationPageMoveActionOutputV2 = z259.object({
7643
+ type: z259.literal("DocumentationPageMove"),
7557
7644
  output: SuccessPayload2
7558
7645
  });
7559
- var DTODocumentationPageDuplicateActionOutputV2 = z258.object({
7560
- type: z258.literal("DocumentationPageDuplicate"),
7646
+ var DTODocumentationPageDuplicateActionOutputV2 = z259.object({
7647
+ type: z259.literal("DocumentationPageDuplicate"),
7561
7648
  output: SuccessPayload2
7562
7649
  });
7563
- var DTODocumentationPageDeleteActionOutputV2 = z258.object({
7564
- type: z258.literal("DocumentationPageDelete"),
7650
+ var DTODocumentationPageDeleteActionOutputV2 = z259.object({
7651
+ type: z259.literal("DocumentationPageDelete"),
7565
7652
  output: SuccessPayload2
7566
7653
  });
7567
- var DTODocumentationPageRestoreActionOutput = z258.object({
7568
- type: z258.literal("DocumentationPageRestore"),
7654
+ var DTODocumentationPageRestoreActionOutput = z259.object({
7655
+ type: z259.literal("DocumentationPageRestore"),
7569
7656
  output: SuccessPayload2
7570
7657
  });
7571
- var DTODocumentationGroupRestoreActionOutput = z258.object({
7572
- type: z258.literal("DocumentationGroupRestore"),
7658
+ var DTODocumentationGroupRestoreActionOutput = z259.object({
7659
+ type: z259.literal("DocumentationGroupRestore"),
7573
7660
  output: SuccessPayload2
7574
7661
  });
7575
- var DTODocumentationPageApprovalStateChangeActionOutput = z258.object({
7576
- type: z258.literal("DocumentationPageApprovalStateChange"),
7662
+ var DTODocumentationPageApprovalStateChangeActionOutput = z259.object({
7663
+ type: z259.literal("DocumentationPageApprovalStateChange"),
7577
7664
  output: SuccessPayload2
7578
7665
  });
7579
- var DTODocumentationPageCreateActionInputV2 = z258.object({
7580
- type: z258.literal("DocumentationPageCreate"),
7666
+ var DTODocumentationPageCreateActionInputV2 = z259.object({
7667
+ type: z259.literal("DocumentationPageCreate"),
7581
7668
  input: DTOCreateDocumentationPageInputV2
7582
7669
  });
7583
- var DTODocumentationPageUpdateActionInputV2 = z258.object({
7584
- type: z258.literal("DocumentationPageUpdate"),
7670
+ var DTODocumentationPageUpdateActionInputV2 = z259.object({
7671
+ type: z259.literal("DocumentationPageUpdate"),
7585
7672
  input: DTOUpdateDocumentationPageInputV2
7586
7673
  });
7587
- var DTODocumentationPageUpdateDocumentActionInputV2 = z258.object({
7588
- type: z258.literal("DocumentationPageUpdateDocument"),
7674
+ var DTODocumentationPageUpdateDocumentActionInputV2 = z259.object({
7675
+ type: z259.literal("DocumentationPageUpdateDocument"),
7589
7676
  input: DTOUpdateDocumentationPageDocumentInputV2
7590
7677
  });
7591
- var DTODocumentationPageMoveActionInputV2 = z258.object({
7592
- type: z258.literal("DocumentationPageMove"),
7678
+ var DTODocumentationPageMoveActionInputV2 = z259.object({
7679
+ type: z259.literal("DocumentationPageMove"),
7593
7680
  input: DTOMoveDocumentationPageInputV2
7594
7681
  });
7595
- var DTODocumentationPageDuplicateActionInputV2 = z258.object({
7596
- type: z258.literal("DocumentationPageDuplicate"),
7682
+ var DTODocumentationPageDuplicateActionInputV2 = z259.object({
7683
+ type: z259.literal("DocumentationPageDuplicate"),
7597
7684
  input: DTODuplicateDocumentationPageInputV2
7598
7685
  });
7599
- var DTODocumentationPageDeleteActionInputV2 = z258.object({
7600
- type: z258.literal("DocumentationPageDelete"),
7686
+ var DTODocumentationPageDeleteActionInputV2 = z259.object({
7687
+ type: z259.literal("DocumentationPageDelete"),
7601
7688
  input: DTODeleteDocumentationPageInputV2
7602
7689
  });
7603
- var DTODocumentationPageRestoreActionInput = z258.object({
7604
- type: z258.literal("DocumentationPageRestore"),
7690
+ var DTODocumentationPageRestoreActionInput = z259.object({
7691
+ type: z259.literal("DocumentationPageRestore"),
7605
7692
  input: DTORestoreDocumentationPageInput
7606
7693
  });
7607
- var DTODocumentationGroupRestoreActionInput = z258.object({
7608
- type: z258.literal("DocumentationGroupRestore"),
7694
+ var DTODocumentationGroupRestoreActionInput = z259.object({
7695
+ type: z259.literal("DocumentationGroupRestore"),
7609
7696
  input: DTORestoreDocumentationGroupInput
7610
7697
  });
7611
- var DTODocumentationPageApprovalStateChangeActionInput = z258.object({
7612
- type: z258.literal("DocumentationPageApprovalStateChange"),
7698
+ var DTODocumentationPageApprovalStateChangeActionInput = z259.object({
7699
+ type: z259.literal("DocumentationPageApprovalStateChange"),
7613
7700
  input: DTODocumentationPageApprovalStateChangeInput
7614
7701
  });
7615
7702
 
7616
7703
  // src/api/dto/elements/documentation/page-content.ts
7617
- import { z as z259 } from "zod";
7704
+ import { z as z260 } from "zod";
7618
7705
  var DTODocumentationPageContent = DocumentationPageContent;
7619
- var DTODocumentationPageContentGetResponse = z259.object({
7706
+ var DTODocumentationPageContentGetResponse = z260.object({
7620
7707
  pageContent: DTODocumentationPageContent
7621
7708
  });
7622
7709
 
7623
7710
  // src/api/dto/elements/documentation/page-dependencies.ts
7624
- import { z as z260 } from "zod";
7625
- var DTODocumentationPageDependencies = z260.object({
7626
- id: z260.string(),
7627
- designSystemVersionId: z260.string(),
7628
- createdAt: z260.coerce.date(),
7629
- updatedAt: z260.coerce.date(),
7630
- documentationPageId: z260.string(),
7631
- tokenPersistentIds: z260.array(z260.string()),
7632
- figmaComponentPersistentIds: z260.array(z260.string()),
7633
- componentPersistentIds: z260.array(z260.string()),
7634
- figmaNodePersistentIds: z260.array(z260.string()),
7635
- groupPersistentIds: z260.array(z260.string()),
7636
- propertyPersistentIds: z260.array(z260.string()),
7637
- themePersistentIds: z260.array(z260.string()),
7638
- documentationPagePersistentIds: z260.array(z260.string()),
7639
- storybookEntriesStoryIds: z260.array(z260.string())
7640
- });
7641
- var DTODocumentationPageDependenciesGetResponse = z260.object({
7642
- dependencies: z260.array(DTODocumentationPageDependencies)
7711
+ import { z as z261 } from "zod";
7712
+ var DTODocumentationPageDependencies = z261.object({
7713
+ id: z261.string(),
7714
+ designSystemVersionId: z261.string(),
7715
+ createdAt: z261.coerce.date(),
7716
+ updatedAt: z261.coerce.date(),
7717
+ documentationPageId: z261.string(),
7718
+ tokenPersistentIds: z261.array(z261.string()),
7719
+ figmaComponentPersistentIds: z261.array(z261.string()),
7720
+ componentPersistentIds: z261.array(z261.string()),
7721
+ figmaNodePersistentIds: z261.array(z261.string()),
7722
+ groupPersistentIds: z261.array(z261.string()),
7723
+ propertyPersistentIds: z261.array(z261.string()),
7724
+ themePersistentIds: z261.array(z261.string()),
7725
+ documentationPagePersistentIds: z261.array(z261.string()),
7726
+ storybookEntriesStoryIds: z261.array(z261.string())
7727
+ });
7728
+ var DTODocumentationPageDependenciesGetResponse = z261.object({
7729
+ dependencies: z261.array(DTODocumentationPageDependencies)
7643
7730
  });
7644
7731
 
7645
7732
  // src/api/dto/elements/documentation/page-v1.ts
7646
- import { z as z261 } from "zod";
7733
+ import { z as z262 } from "zod";
7647
7734
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
7648
7735
  data: true,
7649
7736
  meta: true,
@@ -7651,81 +7738,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
7651
7738
  sortOrder: true
7652
7739
  }).extend({
7653
7740
  configuration: DTODocumentationItemConfigurationV1,
7654
- blocks: z261.array(PageBlockV1),
7655
- title: z261.string(),
7656
- path: z261.string()
7741
+ blocks: z262.array(PageBlockV1),
7742
+ title: z262.string(),
7743
+ path: z262.string()
7657
7744
  });
7658
7745
 
7659
7746
  // src/api/dto/elements/documentation/settings.ts
7660
- import { z as z262 } from "zod";
7661
- var DTODocumentationSettings = z262.object({
7662
- isDraftFeatureAdopted: z262.boolean(),
7663
- isApprovalsFeatureEnabled: z262.boolean(),
7664
- isApprovalRequiredForPublishing: z262.boolean()
7747
+ import { z as z263 } from "zod";
7748
+ var DTODocumentationSettings = z263.object({
7749
+ isDraftFeatureAdopted: z263.boolean(),
7750
+ isApprovalsFeatureEnabled: z263.boolean(),
7751
+ isApprovalRequiredForPublishing: z263.boolean()
7665
7752
  });
7666
7753
 
7667
7754
  // src/api/dto/elements/documentation/structure.ts
7668
- import { z as z263 } from "zod";
7669
- var DTODocumentationStructureItemType = z263.enum(["Group", "Page"]);
7670
- var DTODocumentationStructureItemBase = z263.object({
7755
+ import { z as z264 } from "zod";
7756
+ var DTODocumentationStructureItemType = z264.enum(["Group", "Page"]);
7757
+ var DTODocumentationStructureItemBase = z264.object({
7671
7758
  type: DTODocumentationStructureItemType,
7672
- id: z263.string(),
7673
- designSystemVersionId: z263.string(),
7674
- shortPersistentId: z263.string(),
7675
- persistentId: z263.string(),
7676
- title: z263.string(),
7677
- createdAt: z263.coerce.date(),
7678
- updatedAt: z263.coerce.date()
7759
+ id: z264.string(),
7760
+ designSystemVersionId: z264.string(),
7761
+ shortPersistentId: z264.string(),
7762
+ persistentId: z264.string(),
7763
+ title: z264.string(),
7764
+ createdAt: z264.coerce.date(),
7765
+ updatedAt: z264.coerce.date()
7679
7766
  });
7680
7767
  var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
7681
- type: z263.literal(DTODocumentationStructureItemType.enum.Group),
7682
- groupBehavior: z263.string(),
7683
- childrenIds: z263.string().array(),
7684
- isRoot: z263.boolean()
7768
+ type: z264.literal(DTODocumentationStructureItemType.enum.Group),
7769
+ groupBehavior: z264.string(),
7770
+ childrenIds: z264.string().array(),
7771
+ isRoot: z264.boolean()
7685
7772
  });
7686
7773
  var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
7687
- type: z263.literal(DTODocumentationStructureItemType.enum.Page),
7688
- path: z263.string()
7774
+ type: z264.literal(DTODocumentationStructureItemType.enum.Page),
7775
+ path: z264.string()
7689
7776
  });
7690
- var DTODocumentationStructureItem = z263.discriminatedUnion("type", [
7777
+ var DTODocumentationStructureItem = z264.discriminatedUnion("type", [
7691
7778
  DTODocumentationStructureGroupItem,
7692
7779
  DTODocumentationStructurePageItem
7693
7780
  ]);
7694
- var DTODocumentationStructure = z263.object({
7695
- items: z263.array(DTODocumentationStructureItem)
7781
+ var DTODocumentationStructure = z264.object({
7782
+ items: z264.array(DTODocumentationStructureItem)
7696
7783
  });
7697
7784
 
7698
7785
  // src/api/dto/elements/figma-nodes/figma-node-structure.ts
7699
- import { z as z264 } from "zod";
7700
- var DTOFigmaNodeStructure = z264.object({
7701
- id: z264.string(),
7702
- sourceId: z264.string(),
7786
+ import { z as z265 } from "zod";
7787
+ var DTOFigmaNodeStructure = z265.object({
7788
+ id: z265.string(),
7789
+ sourceId: z265.string(),
7703
7790
  importState: FigmaNodeStructureStateV2,
7704
- createdAt: z264.coerce.date(),
7705
- updatedAt: z264.coerce.date()
7791
+ createdAt: z265.coerce.date(),
7792
+ updatedAt: z265.coerce.date()
7706
7793
  });
7707
7794
  var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
7708
7795
  rootNode: FigmaFileStructureNode
7709
7796
  });
7710
- var DTOFigmaNodeStructureListResponse = z264.object({
7797
+ var DTOFigmaNodeStructureListResponse = z265.object({
7711
7798
  structures: DTOFigmaNodeStructure.array()
7712
7799
  });
7713
- var DTOFigmaNodeStructureDetailResponse = z264.object({
7800
+ var DTOFigmaNodeStructureDetailResponse = z265.object({
7714
7801
  structure: DTOFigmaNodeStructureDetail
7715
7802
  });
7716
7803
 
7717
7804
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7718
- import { z as z266 } from "zod";
7805
+ import { z as z267 } from "zod";
7719
7806
 
7720
7807
  // src/api/dto/elements/figma-nodes/figma-node.ts
7721
- import { z as z265 } from "zod";
7808
+ import { z as z266 } from "zod";
7722
7809
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
7723
- var DTOFigmaNodeOrigin = z265.object({
7724
- sourceId: z265.string(),
7725
- fileId: z265.string().optional(),
7726
- parentName: z265.string().optional()
7810
+ var DTOFigmaNodeOrigin = z266.object({
7811
+ sourceId: z266.string(),
7812
+ fileId: z266.string().optional(),
7813
+ parentName: z266.string().optional()
7727
7814
  });
7728
- var DTOFigmaNodeRenderInputBase = z265.object({
7815
+ var DTOFigmaNodeRenderInputBase = z266.object({
7729
7816
  /**
7730
7817
  * Format in which the node must be rendered, png by default.
7731
7818
  */
@@ -7733,57 +7820,57 @@ var DTOFigmaNodeRenderInputBase = z265.object({
7733
7820
  /**
7734
7821
  * Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
7735
7822
  */
7736
- scale: z265.number().optional()
7823
+ scale: z266.number().optional()
7737
7824
  });
7738
7825
  var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
7739
- inputType: z265.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7826
+ inputType: z266.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7740
7827
  /**
7741
7828
  * Id of a design system's data source representing a linked Figma file
7742
7829
  */
7743
- sourceId: z265.string(),
7830
+ sourceId: z266.string(),
7744
7831
  /**
7745
7832
  * Id of a node within the Figma file
7746
7833
  */
7747
- figmaFileNodeId: z265.string()
7834
+ figmaFileNodeId: z266.string()
7748
7835
  });
7749
7836
  var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
7750
- inputType: z265.literal("URL"),
7837
+ inputType: z266.literal("URL"),
7751
7838
  /**
7752
7839
  * Id of a design system's data source representing a linked Figma file
7753
7840
  */
7754
- figmaNodeUrl: z265.string(),
7841
+ figmaNodeUrl: z266.string(),
7755
7842
  /**
7756
7843
  * Brand persistent id to use in case a source has to be created for this render
7757
7844
  */
7758
- brandPersistentId: z265.string()
7845
+ brandPersistentId: z266.string()
7759
7846
  });
7760
- var DTOFigmaNodeRerenderInput = z265.object({
7761
- inputType: z265.literal("Rerender"),
7847
+ var DTOFigmaNodeRerenderInput = z266.object({
7848
+ inputType: z266.literal("Rerender"),
7762
7849
  /**
7763
7850
  * Persistent ID of an existing Figma node
7764
7851
  */
7765
- figmaNodePersistentId: z265.string()
7852
+ figmaNodePersistentId: z266.string()
7766
7853
  });
7767
- var DTOFigmaNodeRenderInput = z265.discriminatedUnion("inputType", [
7854
+ var DTOFigmaNodeRenderInput = z266.discriminatedUnion("inputType", [
7768
7855
  DTOFigmaNodeRenderIdInput,
7769
7856
  DTOFigmaNodeRenderUrlInput,
7770
7857
  DTOFigmaNodeRerenderInput
7771
7858
  ]);
7772
7859
 
7773
7860
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7774
- var DTOFigmaNodeData = z266.object({
7861
+ var DTOFigmaNodeData = z267.object({
7775
7862
  // Id of the node in the Figma file
7776
- figmaNodeId: z266.string(),
7863
+ figmaNodeId: z267.string(),
7777
7864
  // Validity
7778
- isValid: z266.boolean(),
7865
+ isValid: z267.boolean(),
7779
7866
  // Asset data
7780
- assetId: z266.string(),
7781
- assetUrl: z266.string(),
7867
+ assetId: z267.string(),
7868
+ assetUrl: z267.string(),
7782
7869
  assetFormat: DTOFigmaNodeRenderFormat,
7783
7870
  // Asset metadata
7784
- assetScale: z266.number(),
7785
- assetWidth: z266.number().optional(),
7786
- assetHeight: z266.number().optional()
7871
+ assetScale: z267.number(),
7872
+ assetWidth: z267.number().optional(),
7873
+ assetHeight: z267.number().optional()
7787
7874
  });
7788
7875
  var DTOFigmaNode = FigmaNodeReference.omit({
7789
7876
  data: true,
@@ -7794,15 +7881,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
7794
7881
  });
7795
7882
 
7796
7883
  // src/api/dto/elements/figma-nodes/figma-node-v2.ts
7797
- import { z as z267 } from "zod";
7798
- var DTOFigmaNodeDataV2 = z267.object({
7799
- sceneNodeId: z267.string(),
7884
+ import { z as z268 } from "zod";
7885
+ var DTOFigmaNodeDataV2 = z268.object({
7886
+ sceneNodeId: z268.string(),
7800
7887
  format: FigmaNodeRenderFormat,
7801
- scale: z267.number().optional(),
7888
+ scale: z268.number().optional(),
7802
7889
  renderState: FigmaNodeRenderState,
7803
7890
  renderedImage: FigmaNodeRenderedImage.optional(),
7804
7891
  renderError: FigmaNodeRenderError.optional(),
7805
- hasSource: z267.boolean()
7892
+ hasSource: z268.boolean()
7806
7893
  });
7807
7894
  var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7808
7895
  data: true,
@@ -7813,113 +7900,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7813
7900
  });
7814
7901
 
7815
7902
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
7816
- import { z as z268 } from "zod";
7817
- var DTOFigmaNodeRenderActionOutput = z268.object({
7818
- type: z268.literal("FigmaNodeRender"),
7819
- figmaNodes: z268.array(DTOFigmaNode)
7903
+ import { z as z269 } from "zod";
7904
+ var DTOFigmaNodeRenderActionOutput = z269.object({
7905
+ type: z269.literal("FigmaNodeRender"),
7906
+ figmaNodes: z269.array(DTOFigmaNode)
7820
7907
  });
7821
- var DTOFigmaNodeRenderAsyncActionOutput = z268.object({
7822
- type: z268.literal("FigmaNodeRenderAsync"),
7823
- figmaNodes: z268.array(DTOFigmaNodeV2)
7908
+ var DTOFigmaNodeRenderAsyncActionOutput = z269.object({
7909
+ type: z269.literal("FigmaNodeRenderAsync"),
7910
+ figmaNodes: z269.array(DTOFigmaNodeV2)
7824
7911
  });
7825
- var DTOFigmaNodeRenderActionInput = z268.object({
7826
- type: z268.literal("FigmaNodeRender"),
7912
+ var DTOFigmaNodeRenderActionInput = z269.object({
7913
+ type: z269.literal("FigmaNodeRender"),
7827
7914
  input: DTOFigmaNodeRenderIdInput.array()
7828
7915
  });
7829
- var DTOFigmaNodeRenderAsyncActionInput = z268.object({
7830
- type: z268.literal("FigmaNodeRenderAsync"),
7916
+ var DTOFigmaNodeRenderAsyncActionInput = z269.object({
7917
+ type: z269.literal("FigmaNodeRenderAsync"),
7831
7918
  nodes: DTOFigmaNodeRenderInput.array()
7832
7919
  });
7833
7920
 
7834
7921
  // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
7835
- import { z as z269 } from "zod";
7836
- var DTOFrameNodeStructure = z269.object({
7837
- id: z269.string(),
7838
- persistentId: z269.string(),
7839
- designSystemVersionId: z269.string(),
7922
+ import { z as z270 } from "zod";
7923
+ var DTOFrameNodeStructure = z270.object({
7924
+ id: z270.string(),
7925
+ persistentId: z270.string(),
7926
+ designSystemVersionId: z270.string(),
7840
7927
  origin: FigmaFileStructureOrigin,
7841
7928
  assetsInFile: FigmaFileStructureStatistics
7842
7929
  });
7843
- var DTOFrameNodeStructureListResponse = z269.object({
7930
+ var DTOFrameNodeStructureListResponse = z270.object({
7844
7931
  structures: DTOFrameNodeStructure.array()
7845
7932
  });
7846
7933
 
7847
7934
  // src/api/dto/elements/properties/property-definitions.ts
7848
- import { z as z270 } from "zod";
7935
+ import { z as z271 } from "zod";
7849
7936
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
7850
- var DTOElementPropertyDefinitionOption = z270.object({
7851
- id: z270.string(),
7852
- name: z270.string(),
7937
+ var DTOElementPropertyDefinitionOption = z271.object({
7938
+ id: z271.string(),
7939
+ name: z271.string(),
7853
7940
  backgroundColor: DTOColorTokenInlineData.optional()
7854
7941
  });
7855
- var DTOElementPropertyDefinition = z270.object({
7856
- id: z270.string(),
7857
- designSystemVersionId: z270.string(),
7942
+ var DTOElementPropertyDefinition = z271.object({
7943
+ id: z271.string(),
7944
+ designSystemVersionId: z271.string(),
7858
7945
  meta: DTOObjectMeta,
7859
- persistentId: z270.string(),
7946
+ persistentId: z271.string(),
7860
7947
  type: ElementPropertyTypeSchema,
7861
7948
  targetElementType: ElementPropertyTargetType,
7862
- codeName: z270.string().regex(CODE_NAME_REGEX2),
7863
- options: nullishToOptional(z270.array(DTOElementPropertyDefinitionOption)),
7949
+ codeName: z271.string().regex(CODE_NAME_REGEX2),
7950
+ options: nullishToOptional(z271.array(DTOElementPropertyDefinitionOption)),
7864
7951
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7865
- isImmutable: z270.boolean(),
7952
+ isImmutable: z271.boolean(),
7866
7953
  immutablePropertyType: ElementPropertyImmutableType.optional()
7867
7954
  });
7868
- var DTOElementPropertyDefinitionListResponse = z270.object({
7869
- definitions: z270.array(DTOElementPropertyDefinition)
7955
+ var DTOElementPropertyDefinitionListResponse = z271.object({
7956
+ definitions: z271.array(DTOElementPropertyDefinition)
7870
7957
  });
7871
- var DTOElementPropertyDefinitionResponse = z270.object({
7958
+ var DTOElementPropertyDefinitionResponse = z271.object({
7872
7959
  definition: DTOElementPropertyDefinition
7873
7960
  });
7874
- var DTOElementPropertyDefinitionCreatePayload = z270.object({
7961
+ var DTOElementPropertyDefinitionCreatePayload = z271.object({
7875
7962
  meta: DTOObjectMeta,
7876
- persistentId: z270.string(),
7963
+ persistentId: z271.string(),
7877
7964
  type: ElementPropertyTypeSchema,
7878
7965
  targetElementType: ElementPropertyTargetType,
7879
- codeName: z270.string().regex(CODE_NAME_REGEX2),
7880
- options: nullishToOptional(z270.array(DTOElementPropertyDefinitionOption)),
7966
+ codeName: z271.string().regex(CODE_NAME_REGEX2),
7967
+ options: nullishToOptional(z271.array(DTOElementPropertyDefinitionOption)),
7881
7968
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7882
- columnWidth: z270.number().max(1024).optional()
7969
+ columnWidth: z271.number().max(1024).optional()
7883
7970
  });
7884
- var DTOElementPropertyDefinitionUpdatePayload = z270.object({
7971
+ var DTOElementPropertyDefinitionUpdatePayload = z271.object({
7885
7972
  meta: DTOObjectMeta.optional(),
7886
- codeName: z270.string().regex(CODE_NAME_REGEX2).optional(),
7887
- options: z270.array(DTOElementPropertyDefinitionOption).optional()
7973
+ codeName: z271.string().regex(CODE_NAME_REGEX2).optional(),
7974
+ options: z271.array(DTOElementPropertyDefinitionOption).optional()
7888
7975
  });
7889
7976
 
7890
7977
  // src/api/dto/elements/properties/property-values.ts
7891
- import { z as z271 } from "zod";
7892
- var DTOElementPropertyValue = z271.object({
7893
- id: z271.string(),
7894
- designSystemVersionId: z271.string(),
7895
- definitionId: z271.string(),
7896
- targetElementId: z271.string(),
7897
- value: z271.union([z271.string(), z271.number(), z271.boolean()]).optional(),
7898
- valuePreview: z271.string().optional()
7899
- });
7900
- var DTOElementPropertyValueListResponse = z271.object({
7901
- values: z271.array(DTOElementPropertyValue)
7902
- });
7903
- var DTOElementPropertyValueResponse = z271.object({
7978
+ import { z as z272 } from "zod";
7979
+ var DTOElementPropertyValue = z272.object({
7980
+ id: z272.string(),
7981
+ designSystemVersionId: z272.string(),
7982
+ definitionId: z272.string(),
7983
+ targetElementId: z272.string(),
7984
+ value: z272.union([z272.string(), z272.number(), z272.boolean()]).optional(),
7985
+ valuePreview: z272.string().optional()
7986
+ });
7987
+ var DTOElementPropertyValueListResponse = z272.object({
7988
+ values: z272.array(DTOElementPropertyValue)
7989
+ });
7990
+ var DTOElementPropertyValueResponse = z272.object({
7904
7991
  value: DTOElementPropertyValue
7905
7992
  });
7906
- var DTOElementPropertyValuesEditActionOutput = z271.object({
7907
- type: z271.literal("ElementPropertyValuesEdit"),
7908
- output: z271.object({ success: z271.literal(true) })
7993
+ var DTOElementPropertyValuesEditActionOutput = z272.object({
7994
+ type: z272.literal("ElementPropertyValuesEdit"),
7995
+ output: z272.object({ success: z272.literal(true) })
7909
7996
  });
7910
- var DTOElementPropertyValueUpsertPaylod = z271.object({
7911
- definitionId: z271.string(),
7912
- targetElementId: z271.string(),
7913
- value: z271.string().or(z271.number()).or(z271.boolean()).nullable()
7997
+ var DTOElementPropertyValueUpsertPaylod = z272.object({
7998
+ definitionId: z272.string(),
7999
+ targetElementId: z272.string(),
8000
+ value: z272.string().or(z272.number()).or(z272.boolean()).nullable()
7914
8001
  });
7915
- var DTOElementPropertyValuesEditActionInput = z271.object({
7916
- type: z271.literal("ElementPropertyValuesEdit"),
8002
+ var DTOElementPropertyValuesEditActionInput = z272.object({
8003
+ type: z272.literal("ElementPropertyValuesEdit"),
7917
8004
  values: DTOElementPropertyValueUpsertPaylod.array()
7918
8005
  });
7919
8006
 
7920
8007
  // src/api/dto/elements/elements-action-v2.ts
7921
- import { z as z272 } from "zod";
7922
- var DTOElementActionOutput = z272.discriminatedUnion("type", [
8008
+ import { z as z273 } from "zod";
8009
+ var DTOElementActionOutput = z273.discriminatedUnion("type", [
7923
8010
  // Documentation pages
7924
8011
  DTODocumentationPageCreateActionOutputV2,
7925
8012
  DTODocumentationPageUpdateActionOutputV2,
@@ -7946,7 +8033,7 @@ var DTOElementActionOutput = z272.discriminatedUnion("type", [
7946
8033
  // Element properties
7947
8034
  DTOElementPropertyValuesEditActionOutput
7948
8035
  ]);
7949
- var DTOElementActionInput = z272.discriminatedUnion("type", [
8036
+ var DTOElementActionInput = z273.discriminatedUnion("type", [
7950
8037
  // Documentation pages
7951
8038
  DTODocumentationPageCreateActionInputV2,
7952
8039
  DTODocumentationPageUpdateActionInputV2,
@@ -7973,90 +8060,90 @@ var DTOElementActionInput = z272.discriminatedUnion("type", [
7973
8060
  // Element properties
7974
8061
  DTOElementPropertyValuesEditActionInput
7975
8062
  ]).and(
7976
- z272.object({
7977
- tId: z272.string().optional()
8063
+ z273.object({
8064
+ tId: z273.string().optional()
7978
8065
  })
7979
8066
  );
7980
8067
 
7981
8068
  // src/api/dto/elements/get-elements-v2.ts
7982
- import { z as z273 } from "zod";
7983
- var DTOElementsGetTypeFilter = z273.enum(["FigmaNode"]);
7984
- var DTOElementsGetQuerySchema = z273.object({
7985
- types: z273.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
7986
- responseVersion: z273.coerce.number().default(1)
8069
+ import { z as z274 } from "zod";
8070
+ var DTOElementsGetTypeFilter = z274.enum(["FigmaNode"]);
8071
+ var DTOElementsGetQuerySchema = z274.object({
8072
+ types: z274.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
8073
+ responseVersion: z274.coerce.number().default(1)
7987
8074
  });
7988
- var DTOElementsGetOutput = z273.object({
7989
- figmaNodes: z273.array(DTOFigmaNode).optional()
8075
+ var DTOElementsGetOutput = z274.object({
8076
+ figmaNodes: z274.array(DTOFigmaNode).optional()
7990
8077
  });
7991
- var DTOElementsGetOutputV2 = z273.object({
7992
- figmaNodes: z273.array(DTOFigmaNodeV2).optional()
8078
+ var DTOElementsGetOutputV2 = z274.object({
8079
+ figmaNodes: z274.array(DTOFigmaNodeV2).optional()
7993
8080
  });
7994
8081
 
7995
8082
  // src/api/dto/figma-components/assets/download.ts
7996
- import { z as z274 } from "zod";
7997
- var DTOAssetRenderConfiguration = z274.object({
7998
- prefix: z274.string().optional(),
7999
- suffix: z274.string().optional(),
8000
- scale: z274.enum(["x1", "x2", "x3", "x4"]),
8001
- format: z274.enum(["png", "pdf", "svg"])
8002
- });
8003
- var DTORenderedAssetFile = z274.object({
8004
- assetId: z274.string(),
8005
- fileName: z274.string(),
8006
- sourceUrl: z274.string(),
8083
+ import { z as z275 } from "zod";
8084
+ var DTOAssetRenderConfiguration = z275.object({
8085
+ prefix: z275.string().optional(),
8086
+ suffix: z275.string().optional(),
8087
+ scale: z275.enum(["x1", "x2", "x3", "x4"]),
8088
+ format: z275.enum(["png", "pdf", "svg"])
8089
+ });
8090
+ var DTORenderedAssetFile = z275.object({
8091
+ assetId: z275.string(),
8092
+ fileName: z275.string(),
8093
+ sourceUrl: z275.string(),
8007
8094
  settings: DTOAssetRenderConfiguration,
8008
- originalName: z274.string()
8095
+ originalName: z275.string()
8009
8096
  });
8010
- var DTODownloadAssetsRequest = z274.object({
8011
- persistentIds: z274.array(z274.string().uuid()).optional(),
8097
+ var DTODownloadAssetsRequest = z275.object({
8098
+ persistentIds: z275.array(z275.string().uuid()).optional(),
8012
8099
  settings: DTOAssetRenderConfiguration.array()
8013
8100
  });
8014
- var DTODownloadAssetsResponse = z274.object({
8101
+ var DTODownloadAssetsResponse = z275.object({
8015
8102
  items: DTORenderedAssetFile.array()
8016
8103
  });
8017
8104
 
8018
8105
  // src/api/dto/liveblocks/auth-response.ts
8019
- import { z as z275 } from "zod";
8020
- var DTOLiveblocksAuthResponse = z275.object({
8021
- token: z275.string()
8106
+ import { z as z276 } from "zod";
8107
+ var DTOLiveblocksAuthResponse = z276.object({
8108
+ token: z276.string()
8022
8109
  });
8023
8110
 
8024
8111
  // src/api/dto/themes/override.ts
8025
- import { z as z276 } from "zod";
8112
+ import { z as z277 } from "zod";
8026
8113
  var DTOThemeOverride = DesignTokenTypedData.and(
8027
- z276.object({
8028
- tokenPersistentId: z276.string(),
8114
+ z277.object({
8115
+ tokenPersistentId: z277.string(),
8029
8116
  origin: ThemeOverrideOrigin.optional()
8030
8117
  })
8031
8118
  );
8032
8119
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
8033
- z276.object({
8034
- tokenPersistentId: z276.string()
8120
+ z277.object({
8121
+ tokenPersistentId: z277.string()
8035
8122
  })
8036
8123
  );
8037
8124
 
8038
8125
  // src/api/dto/themes/theme.ts
8039
- import { z as z277 } from "zod";
8040
- var DTOTheme = z277.object({
8041
- id: z277.string(),
8042
- persistentId: z277.string(),
8043
- designSystemVersionId: z277.string(),
8044
- brandId: z277.string(),
8126
+ import { z as z278 } from "zod";
8127
+ var DTOTheme = z278.object({
8128
+ id: z278.string(),
8129
+ persistentId: z278.string(),
8130
+ designSystemVersionId: z278.string(),
8131
+ brandId: z278.string(),
8045
8132
  meta: ObjectMeta,
8046
- codeName: z277.string(),
8133
+ codeName: z278.string(),
8047
8134
  overrides: DTOThemeOverride.array()
8048
8135
  });
8049
- var DTOThemeResponse = z277.object({
8136
+ var DTOThemeResponse = z278.object({
8050
8137
  theme: DTOTheme
8051
8138
  });
8052
- var DTOThemeListResponse = z277.object({
8139
+ var DTOThemeListResponse = z278.object({
8053
8140
  themes: DTOTheme.array()
8054
8141
  });
8055
- var DTOThemeCreatePayload = z277.object({
8142
+ var DTOThemeCreatePayload = z278.object({
8056
8143
  meta: ObjectMeta,
8057
- persistentId: z277.string(),
8058
- brandId: z277.string(),
8059
- codeName: z277.string(),
8144
+ persistentId: z278.string(),
8145
+ brandId: z278.string(),
8146
+ codeName: z278.string(),
8060
8147
  overrides: DTOThemeOverride.array()
8061
8148
  });
8062
8149
 
@@ -8292,13 +8379,13 @@ var ExportersEndpoint = class {
8292
8379
  };
8293
8380
 
8294
8381
  // src/api/endpoints/codegen/jobs.ts
8295
- import { z as z278 } from "zod";
8382
+ import { z as z279 } from "zod";
8296
8383
  var ExporterJobsEndpoint = class {
8297
8384
  constructor(requestExecutor) {
8298
8385
  this.requestExecutor = requestExecutor;
8299
8386
  }
8300
8387
  list(workspaceId) {
8301
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z278.any());
8388
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z279.any());
8302
8389
  }
8303
8390
  get(workspaceId, jobId) {
8304
8391
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -8356,7 +8443,7 @@ var CodegenEndpoint = class {
8356
8443
  };
8357
8444
 
8358
8445
  // src/api/endpoints/design-system/versions/brands.ts
8359
- import { z as z279 } from "zod";
8446
+ import { z as z280 } from "zod";
8360
8447
  var BrandsEndpoint = class {
8361
8448
  constructor(requestExecutor) {
8362
8449
  this.requestExecutor = requestExecutor;
@@ -8390,7 +8477,7 @@ var BrandsEndpoint = class {
8390
8477
  });
8391
8478
  }
8392
8479
  delete(dsId, vId, brandId) {
8393
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z279.any(), {
8480
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z280.any(), {
8394
8481
  method: "DELETE"
8395
8482
  });
8396
8483
  }
@@ -8426,6 +8513,16 @@ var CodeComponentsEndpoint = class {
8426
8513
  }
8427
8514
  );
8428
8515
  }
8516
+ async analyzePackage(dsId, vId, body) {
8517
+ return this.requestExecutor.json(
8518
+ `/design-systems/${dsId}/versions/${vId}/code-components/analyze-package`,
8519
+ DTOAnalyzeCodeComponentsInPackageResponse,
8520
+ {
8521
+ body,
8522
+ method: "POST"
8523
+ }
8524
+ );
8525
+ }
8429
8526
  };
8430
8527
 
8431
8528
  // src/api/endpoints/design-system/versions/documentation.ts
@@ -8603,7 +8700,7 @@ var ImportJobsEndpoint = class {
8603
8700
  };
8604
8701
 
8605
8702
  // src/api/endpoints/design-system/versions/overrides.ts
8606
- import { z as z280 } from "zod";
8703
+ import { z as z281 } from "zod";
8607
8704
  var OverridesEndpoint = class {
8608
8705
  constructor(requestExecutor) {
8609
8706
  this.requestExecutor = requestExecutor;
@@ -8611,7 +8708,7 @@ var OverridesEndpoint = class {
8611
8708
  create(dsId, versionId, themeId, body) {
8612
8709
  return this.requestExecutor.json(
8613
8710
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
8614
- z280.any(),
8711
+ z281.any(),
8615
8712
  {
8616
8713
  method: "POST",
8617
8714
  body
@@ -8621,7 +8718,7 @@ var OverridesEndpoint = class {
8621
8718
  };
8622
8719
 
8623
8720
  // src/api/endpoints/design-system/versions/property-definitions.ts
8624
- import { z as z281 } from "zod";
8721
+ import { z as z282 } from "zod";
8625
8722
  var ElementPropertyDefinitionsEndpoint = class {
8626
8723
  constructor(requestExecutor) {
8627
8724
  this.requestExecutor = requestExecutor;
@@ -8649,7 +8746,7 @@ var ElementPropertyDefinitionsEndpoint = class {
8649
8746
  delete(designSystemId, versionId, defId) {
8650
8747
  return this.requestExecutor.json(
8651
8748
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
8652
- z281.any(),
8749
+ z282.any(),
8653
8750
  { method: "DELETE" }
8654
8751
  );
8655
8752
  }
@@ -8688,7 +8785,7 @@ var VersionStatsEndpoint = class {
8688
8785
  };
8689
8786
 
8690
8787
  // src/api/endpoints/design-system/versions/themes.ts
8691
- import { z as z282 } from "zod";
8788
+ import { z as z283 } from "zod";
8692
8789
  var ThemesEndpoint = class {
8693
8790
  constructor(requestExecutor) {
8694
8791
  this.requestExecutor = requestExecutor;
@@ -8711,7 +8808,7 @@ var ThemesEndpoint = class {
8711
8808
  });
8712
8809
  }
8713
8810
  delete(dsId, versionId, themeId) {
8714
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z282.any(), {
8811
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z283.any(), {
8715
8812
  method: "DELETE"
8716
8813
  });
8717
8814
  }
@@ -8880,7 +8977,7 @@ var DesignSystemContactsEndpoint = class {
8880
8977
  };
8881
8978
 
8882
8979
  // src/api/endpoints/design-system/design-systems.ts
8883
- import { z as z285 } from "zod";
8980
+ import { z as z287 } from "zod";
8884
8981
 
8885
8982
  // src/api/endpoints/design-system/figma-node-structures.ts
8886
8983
  var FigmaNodeStructuresEndpoint = class {
@@ -8957,7 +9054,7 @@ var DesignSystemPageRedirectsEndpoint = class {
8957
9054
  };
8958
9055
 
8959
9056
  // src/api/endpoints/design-system/sources.ts
8960
- import { z as z283 } from "zod";
9057
+ import { z as z284 } from "zod";
8961
9058
  var DesignSystemSourcesEndpoint = class {
8962
9059
  constructor(requestExecutor) {
8963
9060
  this.requestExecutor = requestExecutor;
@@ -8975,7 +9072,7 @@ var DesignSystemSourcesEndpoint = class {
8975
9072
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
8976
9073
  }
8977
9074
  delete(dsId, sourceId) {
8978
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z283.any(), { method: "DELETE" });
9075
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z284.any(), { method: "DELETE" });
8979
9076
  }
8980
9077
  figmaImport(dsId, payload) {
8981
9078
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
@@ -8984,15 +9081,29 @@ var DesignSystemSourcesEndpoint = class {
8984
9081
  });
8985
9082
  }
8986
9083
  storybookImport(dsId, payload) {
8987
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook-import`, DTODataSourcesStorybookResponse, {
8988
- method: "POST",
8989
- body: payload
8990
- });
9084
+ return this.requestExecutor.json(
9085
+ `/design-systems/${dsId}/versions/head/storybook-import`,
9086
+ DTODataSourcesStorybookResponse,
9087
+ {
9088
+ method: "POST",
9089
+ body: payload
9090
+ }
9091
+ );
9092
+ }
9093
+ updateStorybookImport(dsId, versionId, payload) {
9094
+ return this.requestExecutor.json(
9095
+ `/design-systems/${dsId}/versions/${versionId}/storybook-import`,
9096
+ DTODataSourcesStorybookResponse,
9097
+ {
9098
+ method: "POST",
9099
+ body: payload
9100
+ }
9101
+ );
8991
9102
  }
8992
9103
  };
8993
9104
 
8994
9105
  // src/api/endpoints/design-system/storybook.ts
8995
- import { z as z284 } from "zod";
9106
+ import { z as z285 } from "zod";
8996
9107
  var StorybookEntriesEndpoint = class {
8997
9108
  constructor(requestExecutor) {
8998
9109
  this.requestExecutor = requestExecutor;
@@ -9001,10 +9112,51 @@ var StorybookEntriesEndpoint = class {
9001
9112
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse);
9002
9113
  }
9003
9114
  replace(dsId, entryId) {
9004
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, DTOStorybookEntryReplaceAction, { method: "PUT" });
9115
+ return this.requestExecutor.json(
9116
+ `/design-systems/${dsId}/versions/head/storybook/${entryId}`,
9117
+ DTOStorybookEntryReplaceAction,
9118
+ { method: "PUT" }
9119
+ );
9005
9120
  }
9006
9121
  delete(dsId, entryId) {
9007
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z284.any(), { method: "DELETE" });
9122
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z285.any(), {
9123
+ method: "DELETE"
9124
+ });
9125
+ }
9126
+ };
9127
+
9128
+ // src/api/endpoints/design-system/storybook-hosting.ts
9129
+ import { z as z286 } from "zod";
9130
+ var StorybookHostingEndpoint = class {
9131
+ constructor(requestExecutor) {
9132
+ this.requestExecutor = requestExecutor;
9133
+ }
9134
+ getSignedUploadUrl(dsId, body) {
9135
+ return this.requestExecutor.json(`/design-systems/${dsId}/storybook/upload`, DTOStorybookUploadUrlResponse, {
9136
+ body,
9137
+ method: "POST"
9138
+ });
9139
+ }
9140
+ delete(dsId, storybookUploadId) {
9141
+ return this.requestExecutor.json(
9142
+ `/design-systems/${dsId}/storybook/${storybookUploadId}`,
9143
+ z286.object({ ok: z286.boolean() }),
9144
+ {
9145
+ method: "DELETE"
9146
+ }
9147
+ );
9148
+ }
9149
+ getUploadStatus(dsId, storybookUploadId) {
9150
+ return this.requestExecutor.json(
9151
+ `/design-systems/${dsId}/storybook/${storybookUploadId}/status`,
9152
+ DTOStorybookUploadStatus
9153
+ );
9154
+ }
9155
+ getAccessToken(dsId, name) {
9156
+ return this.requestExecutor.json(
9157
+ `/design-systems/${dsId}/storybook/alias/${name}/access-token`,
9158
+ DTOStorybookAccessTokenResponse
9159
+ );
9008
9160
  }
9009
9161
  };
9010
9162
 
@@ -9017,6 +9169,7 @@ var DesignSystemsEndpoint = class {
9017
9169
  __publicField(this, "bff");
9018
9170
  __publicField(this, "sources");
9019
9171
  __publicField(this, "storybook");
9172
+ __publicField(this, "storybookHosting");
9020
9173
  __publicField(this, "contacts");
9021
9174
  __publicField(this, "redirects");
9022
9175
  __publicField(this, "figmaNodeStructures");
@@ -9026,6 +9179,7 @@ var DesignSystemsEndpoint = class {
9026
9179
  this.bff = new DesignSystemBffEndpoint(requestExecutor);
9027
9180
  this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
9028
9181
  this.storybook = new StorybookEntriesEndpoint(requestExecutor);
9182
+ this.storybookHosting = new StorybookHostingEndpoint(requestExecutor);
9029
9183
  this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
9030
9184
  this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
9031
9185
  this.figmaNodeStructures = new FigmaNodeStructuresEndpoint(requestExecutor);
@@ -9037,11 +9191,14 @@ var DesignSystemsEndpoint = class {
9037
9191
  list(wsId) {
9038
9192
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
9039
9193
  }
9194
+ listUserDesignSystems() {
9195
+ return this.requestExecutor.json("/design-systems", DTOUserDesignSystemsResponse);
9196
+ }
9040
9197
  get(dsId) {
9041
9198
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
9042
9199
  }
9043
9200
  delete(dsId) {
9044
- return this.requestExecutor.json(`/design-systems/${dsId}`, z285.any(), { method: "DELETE" });
9201
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z287.any(), { method: "DELETE" });
9045
9202
  }
9046
9203
  update(dsId, body) {
9047
9204
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -9058,7 +9215,7 @@ var DesignSystemsEndpoint = class {
9058
9215
  };
9059
9216
 
9060
9217
  // src/api/endpoints/workspaces/integrations.ts
9061
- import { z as z286 } from "zod";
9218
+ import { z as z288 } from "zod";
9062
9219
  var WorkspaceIntegrationsEndpoint = class {
9063
9220
  constructor(requestExecutor) {
9064
9221
  this.requestExecutor = requestExecutor;
@@ -9067,7 +9224,7 @@ var WorkspaceIntegrationsEndpoint = class {
9067
9224
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
9068
9225
  }
9069
9226
  delete(wsId, iId) {
9070
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z286.unknown(), { method: "DELETE" });
9227
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z288.unknown(), { method: "DELETE" });
9071
9228
  }
9072
9229
  };
9073
9230
 
@@ -9099,7 +9256,7 @@ var WorkspaceInvitationsEndpoint = class {
9099
9256
  };
9100
9257
 
9101
9258
  // src/api/endpoints/workspaces/members.ts
9102
- import { z as z287 } from "zod";
9259
+ import { z as z289 } from "zod";
9103
9260
  var WorkspaceMembersEndpoint = class {
9104
9261
  constructor(requestExecutor) {
9105
9262
  this.requestExecutor = requestExecutor;
@@ -9116,7 +9273,7 @@ var WorkspaceMembersEndpoint = class {
9116
9273
  });
9117
9274
  }
9118
9275
  invite(workspaceId, body) {
9119
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z287.any(), { method: "POST", body });
9276
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z289.any(), { method: "POST", body });
9120
9277
  }
9121
9278
  delete(workspaceId, userId) {
9122
9279
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -9125,17 +9282,38 @@ var WorkspaceMembersEndpoint = class {
9125
9282
  }
9126
9283
  };
9127
9284
 
9285
+ // src/api/endpoints/workspaces/npm-register.ts
9286
+ var WorkspaceNpmRegistryEndpoint = class {
9287
+ constructor(requestExecutor) {
9288
+ this.requestExecutor = requestExecutor;
9289
+ }
9290
+ getAccessToken(wsId) {
9291
+ return this.requestExecutor.json(
9292
+ `/workspaces/${wsId}/npm-registry/access-token`,
9293
+ DTONpmRegistryAccessTokenResponse
9294
+ );
9295
+ }
9296
+ update(wsId, body) {
9297
+ return this.requestExecutor.json(`/workspaces/${wsId}/npm-registry`, DTOUpdateRegistryOutput, {
9298
+ method: "PUT",
9299
+ body
9300
+ });
9301
+ }
9302
+ };
9303
+
9128
9304
  // src/api/endpoints/workspaces/workspaces.ts
9129
- import { z as z288 } from "zod";
9305
+ import { z as z290 } from "zod";
9130
9306
  var WorkspacesEndpoint = class {
9131
9307
  constructor(requestExecutor) {
9132
9308
  this.requestExecutor = requestExecutor;
9133
9309
  __publicField(this, "members");
9134
9310
  __publicField(this, "invitations");
9311
+ __publicField(this, "npmRegistry");
9135
9312
  __publicField(this, "integrations");
9136
9313
  this.members = new WorkspaceMembersEndpoint(requestExecutor);
9137
9314
  this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
9138
9315
  this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
9316
+ this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
9139
9317
  }
9140
9318
  create(body) {
9141
9319
  return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
@@ -9147,14 +9325,17 @@ var WorkspacesEndpoint = class {
9147
9325
  }
9148
9326
  });
9149
9327
  }
9328
+ list() {
9329
+ return this.requestExecutor.json(`/workspaces`, DTOUserWorkspaceMembershipsResponse, { method: "GET" });
9330
+ }
9150
9331
  get(workspaceId) {
9151
9332
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
9152
9333
  }
9153
9334
  delete(workspaceId) {
9154
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z288.any(), { method: "DELETE" });
9335
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z290.any(), { method: "DELETE" });
9155
9336
  }
9156
9337
  subscription(workspaceId) {
9157
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z288.any(), { method: "GET" });
9338
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z290.any(), { method: "GET" });
9158
9339
  }
9159
9340
  transferOwnership(workspaceId, body) {
9160
9341
  return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
@@ -9254,9 +9435,9 @@ ${bodyText}`,
9254
9435
 
9255
9436
  // src/api/transport/request-executor.ts
9256
9437
  import fetch from "node-fetch";
9257
- import { z as z289 } from "zod";
9258
- var ResponseWrapper = z289.object({
9259
- result: z289.record(z289.any())
9438
+ import { z as z291 } from "zod";
9439
+ var ResponseWrapper = z291.object({
9440
+ result: z291.record(z291.any())
9260
9441
  });
9261
9442
  var RequestExecutor = class {
9262
9443
  constructor(testServerConfig) {
@@ -9330,31 +9511,31 @@ var SupernovaApiClient = class {
9330
9511
  };
9331
9512
 
9332
9513
  // src/events/design-system.ts
9333
- import { z as z290 } from "zod";
9334
- var DTOEventFigmaNodesRendered = z290.object({
9335
- type: z290.literal("DesignSystem.FigmaNodesRendered"),
9336
- designSystemId: z290.string(),
9337
- versionId: z290.string(),
9338
- figmaNodePersistentIds: z290.string().array()
9339
- });
9340
- var DTOEventDataSourcesImported = z290.object({
9341
- type: z290.literal("DesignSystem.ImportJobFinished"),
9342
- designSystemId: z290.string(),
9343
- versionId: z290.string(),
9344
- importJobId: z290.string(),
9514
+ import { z as z292 } from "zod";
9515
+ var DTOEventFigmaNodesRendered = z292.object({
9516
+ type: z292.literal("DesignSystem.FigmaNodesRendered"),
9517
+ designSystemId: z292.string(),
9518
+ versionId: z292.string(),
9519
+ figmaNodePersistentIds: z292.string().array()
9520
+ });
9521
+ var DTOEventDataSourcesImported = z292.object({
9522
+ type: z292.literal("DesignSystem.ImportJobFinished"),
9523
+ designSystemId: z292.string(),
9524
+ versionId: z292.string(),
9525
+ importJobId: z292.string(),
9345
9526
  dataSourceType: DataSourceRemoteType,
9346
- dataSourceIds: z290.string().array()
9527
+ dataSourceIds: z292.string().array()
9347
9528
  });
9348
9529
 
9349
9530
  // src/events/event.ts
9350
- import { z as z291 } from "zod";
9351
- var DTOEvent = z291.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
9531
+ import { z as z293 } from "zod";
9532
+ var DTOEvent = z293.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
9352
9533
 
9353
9534
  // src/sync/docs-structure-repo.ts
9354
9535
  import PQueue from "p-queue";
9355
9536
 
9356
9537
  // src/yjs/design-system-content/documentation-hierarchy.ts
9357
- import { z as z292 } from "zod";
9538
+ import { z as z294 } from "zod";
9358
9539
 
9359
9540
  // src/yjs/version-room/base.ts
9360
9541
  var VersionRoomBaseYDoc = class {
@@ -9904,24 +10085,24 @@ var FrontendVersionRoomYDoc = class {
9904
10085
  };
9905
10086
 
9906
10087
  // src/yjs/design-system-content/documentation-hierarchy.ts
9907
- var DocumentationHierarchySettings = z292.object({
9908
- routingVersion: z292.string(),
9909
- isDraftFeatureAdopted: z292.boolean(),
9910
- isApprovalFeatureEnabled: z292.boolean(),
9911
- approvalRequiredForPublishing: z292.boolean()
10088
+ var DocumentationHierarchySettings = z294.object({
10089
+ routingVersion: z294.string(),
10090
+ isDraftFeatureAdopted: z294.boolean(),
10091
+ isApprovalFeatureEnabled: z294.boolean(),
10092
+ approvalRequiredForPublishing: z294.boolean()
9912
10093
  });
9913
10094
  function yjsToDocumentationHierarchy(doc) {
9914
10095
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
9915
10096
  }
9916
10097
 
9917
10098
  // src/yjs/design-system-content/item-configuration.ts
9918
- import { z as z293 } from "zod";
9919
- var DTODocumentationPageRoomHeaderData = z293.object({
9920
- title: z293.string(),
10099
+ import { z as z295 } from "zod";
10100
+ var DTODocumentationPageRoomHeaderData = z295.object({
10101
+ title: z295.string(),
9921
10102
  configuration: DTODocumentationItemConfigurationV2
9922
10103
  });
9923
- var DTODocumentationPageRoomHeaderDataUpdate = z293.object({
9924
- title: z293.string().optional(),
10104
+ var DTODocumentationPageRoomHeaderDataUpdate = z295.object({
10105
+ title: z295.string().optional(),
9925
10106
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
9926
10107
  });
9927
10108
  function itemConfigurationToYjs(yDoc, item) {
@@ -9950,41 +10131,15 @@ function itemConfigurationToYjs(yDoc, item) {
9950
10131
  configuration?.isPrivate !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
9951
10132
  });
9952
10133
  }
9953
- function yjsToItemConfiguration(yDoc) {
9954
- const title = yDoc.getMap("itemTitle").get("title");
9955
- const headerYMap = yDoc.getMap("itemHeader");
9956
- const rawHeader = {
9957
- description: headerYMap.get("description"),
9958
- alignment: headerYMap.get("alignment"),
9959
- foregroundColor: headerYMap.get("foregroundColor"),
9960
- backgroundColor: headerYMap.get("backgroundColor"),
9961
- backgroundImageAsset: headerYMap.get("backgroundImageAsset"),
9962
- backgroundImageScaleType: headerYMap.get("backgroundImageScaleType"),
9963
- showBackgroundOverlay: headerYMap.get("showBackgroundOverlay"),
9964
- showCoverText: headerYMap.get("showCoverText"),
9965
- minHeight: headerYMap.get("minHeight")
9966
- };
9967
- const configYMap = yDoc.getMap("itemConfiguration");
9968
- const rawConfig = {
9969
- showSidebar: configYMap.get("showSidebar"),
9970
- isHidden: configYMap.get("isHidden") ?? false,
9971
- isPrivate: configYMap.get("isPrivate") ?? false,
9972
- header: rawHeader
9973
- };
9974
- return {
9975
- title: z293.string().parse(title),
9976
- configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
9977
- };
9978
- }
9979
10134
 
9980
10135
  // src/yjs/docs-editor/model/block.ts
9981
10136
  var PageBlockEditorModel = PageBlockEditorModelV2;
9982
10137
  var PageSectionEditorModel = PageSectionEditorModelV2;
9983
10138
 
9984
10139
  // src/yjs/docs-editor/model/page.ts
9985
- import { z as z294 } from "zod";
9986
- var DocumentationPageEditorModel = z294.object({
9987
- blocks: z294.array(DocumentationPageContentItem)
10140
+ import { z as z296 } from "zod";
10141
+ var DocumentationPageEditorModel = z296.object({
10142
+ blocks: z296.array(DocumentationPageContentItem)
9988
10143
  });
9989
10144
 
9990
10145
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -13577,7 +13732,7 @@ var blocks = [
13577
13732
 
13578
13733
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
13579
13734
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
13580
- import { z as z295 } from "zod";
13735
+ import { z as z297 } from "zod";
13581
13736
  function yDocToPage(yDoc, definitions) {
13582
13737
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
13583
13738
  }
@@ -13653,7 +13808,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
13653
13808
  if (!id) return null;
13654
13809
  return {
13655
13810
  id,
13656
- title: getProsemirrorAttribute(prosemirrorNode, "title", z295.string()) ?? "",
13811
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z297.string()) ?? "",
13657
13812
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
13658
13813
  };
13659
13814
  }
@@ -13687,7 +13842,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
13687
13842
  });
13688
13843
  }
13689
13844
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
13690
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z295.string());
13845
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z297.string());
13691
13846
  if (!definitionId) {
13692
13847
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
13693
13848
  return [];
@@ -13728,7 +13883,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
13728
13883
  const id = getProsemirrorBlockId(prosemirrorNode);
13729
13884
  if (!id) return null;
13730
13885
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13731
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z295.string().optional()));
13886
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z297.string().optional()));
13732
13887
  return {
13733
13888
  id,
13734
13889
  type: "Block",
@@ -13851,9 +14006,9 @@ function parseRichTextAttribute(mark) {
13851
14006
  return null;
13852
14007
  }
13853
14008
  function parseProsemirrorLink(mark) {
13854
- const href = getProsemirrorAttribute(mark, "href", z295.string().optional());
14009
+ const href = getProsemirrorAttribute(mark, "href", z297.string().optional());
13855
14010
  if (!href) return null;
13856
- const target = getProsemirrorAttribute(mark, "target", z295.string().optional());
14011
+ const target = getProsemirrorAttribute(mark, "target", z297.string().optional());
13857
14012
  const openInNewTab = target === "_blank";
13858
14013
  if (href.startsWith("@")) {
13859
14014
  return {
@@ -13872,9 +14027,9 @@ function parseProsemirrorLink(mark) {
13872
14027
  }
13873
14028
  }
13874
14029
  function parseProsemirrorCommentHighlight(mark) {
13875
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z295.string().optional());
14030
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z297.string().optional());
13876
14031
  if (!highlightId) return null;
13877
- const isResolved = getProsemirrorAttribute(mark, "resolved", z295.boolean().optional()) ?? false;
14032
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z297.boolean().optional()) ?? false;
13878
14033
  return {
13879
14034
  type: "Comment",
13880
14035
  commentHighlightId: highlightId,
@@ -13885,7 +14040,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
13885
14040
  const id = getProsemirrorBlockId(prosemirrorNode);
13886
14041
  if (!id) return null;
13887
14042
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13888
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z295.boolean().optional()) !== false;
14043
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z297.boolean().optional()) !== false;
13889
14044
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
13890
14045
  if (!tableChild) {
13891
14046
  return emptyTable(id, variantId, 0);
@@ -13931,9 +14086,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
13931
14086
  function parseAsTableCell(prosemirrorNode) {
13932
14087
  const id = getProsemirrorBlockId(prosemirrorNode);
13933
14088
  if (!id) return null;
13934
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z295.string().optional());
14089
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z297.string().optional());
13935
14090
  let columnWidth;
13936
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z295.array(z295.number()).nullish());
14091
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z297.array(z297.number()).nullish());
13937
14092
  if (columnWidthArray) {
13938
14093
  columnWidth = roundDimension(columnWidthArray[0]);
13939
14094
  }
@@ -13969,7 +14124,7 @@ function parseAsTableNode(prosemirrorNode) {
13969
14124
  value: parseRichText(prosemirrorNode.content ?? [])
13970
14125
  };
13971
14126
  case "image":
13972
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z295.string());
14127
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z297.string());
13973
14128
  if (!items) return null;
13974
14129
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
13975
14130
  if (!parsedItems.success) return null;
@@ -14083,7 +14238,7 @@ function definitionExpectsPlaceholderItem(definition) {
14083
14238
  );
14084
14239
  }
14085
14240
  function parseBlockItems(prosemirrorNode, definition) {
14086
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z295.string());
14241
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z297.string());
14087
14242
  if (!itemsString) return null;
14088
14243
  const itemsJson = JSON.parse(itemsString);
14089
14244
  if (!Array.isArray(itemsJson)) {
@@ -14094,18 +14249,18 @@ function parseBlockItems(prosemirrorNode, definition) {
14094
14249
  }
14095
14250
  function parseAppearance(prosemirrorNode) {
14096
14251
  let appearance = {};
14097
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z295.string().optional());
14252
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z297.string().optional());
14098
14253
  if (rawAppearanceString) {
14099
14254
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
14100
14255
  if (parsedAppearance.success) {
14101
14256
  appearance = parsedAppearance.data;
14102
14257
  }
14103
14258
  }
14104
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z295.number().optional());
14259
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z297.number().optional());
14105
14260
  if (columns) {
14106
14261
  appearance.numberOfColumns = columns;
14107
14262
  }
14108
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z295.string().optional());
14263
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z297.string().optional());
14109
14264
  if (backgroundColor) {
14110
14265
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
14111
14266
  if (parsedColor.success) {
@@ -14204,12 +14359,12 @@ function valueSchemaForPropertyType(type) {
14204
14359
  }
14205
14360
  }
14206
14361
  function getProsemirrorBlockId(prosemirrorNode) {
14207
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z295.string());
14362
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z297.string());
14208
14363
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
14209
14364
  return id;
14210
14365
  }
14211
14366
  function getProsemirrorBlockVariantId(prosemirrorNode) {
14212
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z295.string()));
14367
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z297.string()));
14213
14368
  }
14214
14369
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
14215
14370
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -14750,6 +14905,9 @@ export {
14750
14905
  CodeComponentsEndpoint,
14751
14906
  CodegenEndpoint,
14752
14907
  Collection2 as Collection,
14908
+ DTOAnalyzeCodeComponentsInPackage,
14909
+ DTOAnalyzeCodeComponentsInPackageInput,
14910
+ DTOAnalyzeCodeComponentsInPackageResponse,
14753
14911
  DTOAppBootstrapDataQuery,
14754
14912
  DTOAppBootstrapDataResponse,
14755
14913
  DTOAssetRenderConfiguration,
@@ -14796,6 +14954,7 @@ export {
14796
14954
  DTODeleteDocumentationGroupInput,
14797
14955
  DTODeleteDocumentationPageInputV2,
14798
14956
  DTODeleteDocumentationTabGroupInput,
14957
+ DTODependencyDefinition,
14799
14958
  DTODesignElementsDataDiffResponse,
14800
14959
  DTODesignSystem,
14801
14960
  DTODesignSystemComponent,
@@ -15015,6 +15174,7 @@ export {
15015
15174
  DTOLiveblocksAuthResponse,
15016
15175
  DTOMoveDocumentationGroupInput,
15017
15176
  DTOMoveDocumentationPageInputV2,
15177
+ DTONpmRegistryAccessTokenResponse,
15018
15178
  DTONpmRegistryConfig,
15019
15179
  DTONpmRegistryConfigConstants,
15020
15180
  DTOObjectMeta,
@@ -15048,15 +15208,22 @@ export {
15048
15208
  DTOPublishedDocPageVisitData,
15049
15209
  DTOPublishedDocVisitData,
15050
15210
  DTOPublishedDocVisitHeatMapWeek,
15211
+ DTORegistry,
15051
15212
  DTORenderedAssetFile,
15052
15213
  DTORestoreDocumentationGroupInput,
15053
15214
  DTORestoreDocumentationPageInput,
15215
+ DTOStorybookAccessTokenPayload,
15216
+ DTOStorybookAccessTokenResponse,
15054
15217
  DTOStorybookEntry,
15055
15218
  DTOStorybookEntryListResponse,
15056
15219
  DTOStorybookEntryOrigin,
15057
15220
  DTOStorybookEntryReplaceAction,
15058
15221
  DTOStorybookEntryResponse,
15059
15222
  DTOStorybookImportPayload,
15223
+ DTOStorybookSourceUpdatePayload,
15224
+ DTOStorybookUploadStatus,
15225
+ DTOStorybookUploadUrlRequest,
15226
+ DTOStorybookUploadUrlResponse,
15060
15227
  DTOTheme,
15061
15228
  DTOThemeCreatePayload,
15062
15229
  DTOThemeListResponse,
@@ -15069,9 +15236,12 @@ export {
15069
15236
  DTOUpdateDocumentationGroupInput,
15070
15237
  DTOUpdateDocumentationPageDocumentInputV2,
15071
15238
  DTOUpdateDocumentationPageInputV2,
15239
+ DTOUpdateRegistryInput,
15240
+ DTOUpdateRegistryOutput,
15072
15241
  DTOUpdateUserNotificationSettingsPayload,
15073
15242
  DTOUpdateVersionInput,
15074
15243
  DTOUser,
15244
+ DTOUserDesignSystemsResponse,
15075
15245
  DTOUserGetResponse,
15076
15246
  DTOUserNotificationSettingsResponse,
15077
15247
  DTOUserOnboarding,
@@ -15151,6 +15321,7 @@ export {
15151
15321
  RequestExecutorError,
15152
15322
  ResolvedVariableType,
15153
15323
  StorybookEntriesEndpoint,
15324
+ StorybookHostingEndpoint,
15154
15325
  StringVariableScopeType,
15155
15326
  SupernovaApiClient,
15156
15327
  ThemesEndpoint,
@@ -15170,6 +15341,7 @@ export {
15170
15341
  WorkspaceIntegrationsEndpoint,
15171
15342
  WorkspaceInvitationsEndpoint,
15172
15343
  WorkspaceMembersEndpoint,
15344
+ WorkspaceNpmRegistryEndpoint,
15173
15345
  WorkspacesEndpoint,
15174
15346
  applyActionsLocally,
15175
15347
  applyPrivacyConfigurationToNestedItems,
@@ -15226,7 +15398,6 @@ export {
15226
15398
  validateSsoPayload,
15227
15399
  yDocToPage,
15228
15400
  yXmlFragmentToPage,
15229
- yjsToDocumentationHierarchy,
15230
- yjsToItemConfiguration
15401
+ yjsToDocumentationHierarchy
15231
15402
  };
15232
15403
  //# sourceMappingURL=index.mjs.map