@supernova-studio/client 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -633,7 +633,10 @@ var Asset = z22.object({
633
633
  scope: AssetScope,
634
634
  properties: AssetProperties.nullish(),
635
635
  originKey: z22.string().optional(),
636
- createdAt: z22.coerce.date().optional()
636
+ createdAt: z22.coerce.date().optional(),
637
+ pendingUpload: z22.boolean().optional(),
638
+ size: z22.number().int().positive().optional(),
639
+ checksum: z22.string().optional()
637
640
  });
638
641
  var ResolvedAsset = Asset.extend({
639
642
  url: z22.string()
@@ -5744,7 +5747,7 @@ var DTOPagination = z195.object({
5744
5747
  });
5745
5748
 
5746
5749
  // src/api/dto/bff/app-bootstrap-data.ts
5747
- import { z as z236 } from "zod";
5750
+ import { z as z237 } from "zod";
5748
5751
 
5749
5752
  // src/api/dto/design-systems/brand.ts
5750
5753
  import { z as z196 } from "zod";
@@ -6230,266 +6233,298 @@ var FormattedCollections = z208.object({
6230
6233
  variablesOrder: z208.string().array().optional()
6231
6234
  });
6232
6235
 
6233
- // src/api/dto/design-systems/import-job.ts
6236
+ // src/api/dto/design-systems/file.ts
6234
6237
  import { z as z209 } from "zod";
6235
- var DTOImportJob = z209.object({
6236
- id: z209.string(),
6237
- designSystemId: z209.string(),
6238
- designSystemVersionId: z209.string(),
6239
- operation: z209.literal("Import"),
6240
- createdAt: z209.coerce.date(),
6241
- stateChangedAt: z209.coerce.date(),
6238
+ var DTOFileUploadItem = z209.object({
6239
+ size: z209.number(),
6240
+ name: z209.string(),
6241
+ checksum: z209.string()
6242
+ });
6243
+ var DTOFileUploadPayload = z209.object({
6244
+ files: z209.array(DTOFileUploadItem)
6245
+ });
6246
+ var DTOFileUploadResponseItem = z209.object({
6247
+ fileId: z209.string(),
6248
+ referencePersistentId: z209.string(),
6249
+ name: z209.string(),
6250
+ checksum: z209.string(),
6251
+ pendingUpload: z209.boolean().optional(),
6252
+ url: z209.string(),
6253
+ size: z209.number()
6254
+ });
6255
+ var DTOUploadUrlItem = z209.object({
6256
+ fileId: z209.string(),
6257
+ uploadUrl: z209.string()
6258
+ });
6259
+ var DTOFileUploadResponse = z209.object({
6260
+ files: z209.array(DTOFileUploadResponseItem),
6261
+ uploadUrls: z209.array(DTOUploadUrlItem)
6262
+ });
6263
+ var DTOFileUploadFinalizePayload = z209.object({
6264
+ fileIds: z209.array(z209.string())
6265
+ });
6266
+ var DTOFileUploadFinalizeResponse = z209.object({ ok: z209.literal(true) });
6267
+
6268
+ // src/api/dto/design-systems/import-job.ts
6269
+ import { z as z210 } from "zod";
6270
+ var DTOImportJob = z210.object({
6271
+ id: z210.string(),
6272
+ designSystemId: z210.string(),
6273
+ designSystemVersionId: z210.string(),
6274
+ operation: z210.literal("Import"),
6275
+ createdAt: z210.coerce.date(),
6276
+ stateChangedAt: z210.coerce.date(),
6242
6277
  state: ImportJobState,
6243
- sourceIds: z209.string().array()
6278
+ sourceIds: z210.string().array()
6244
6279
  });
6245
- var DTOImportJobResponse = z209.object({
6280
+ var DTOImportJobResponse = z210.object({
6246
6281
  job: DTOImportJob
6247
6282
  });
6248
- var DTOBffFigmaImportRequestBody = z209.object({
6249
- type: z209.literal(DataSourceRemoteType.Enum.Figma),
6250
- brandPersistentId: z209.string().optional(),
6251
- fileId: z209.string(),
6283
+ var DTOBffFigmaImportRequestBody = z210.object({
6284
+ type: z210.literal(DataSourceRemoteType.Enum.Figma),
6285
+ brandPersistentId: z210.string().optional(),
6286
+ fileId: z210.string(),
6252
6287
  scope: DataSourceFigmaScope,
6253
6288
  autoImportMode: DataSourceAutoImportMode
6254
6289
  });
6255
- var DTOBffUploadImportRequestBody = z209.object({
6256
- type: z209.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
6257
- brandPersistentId: z209.string().optional(),
6258
- sourceName: z209.string().optional(),
6259
- remoteId: z209.string(),
6260
- isTokenTypeSplitEnabled: z209.boolean().optional(),
6261
- payload: z209.any()
6290
+ var DTOBffUploadImportRequestBody = z210.object({
6291
+ type: z210.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
6292
+ brandPersistentId: z210.string().optional(),
6293
+ sourceName: z210.string().optional(),
6294
+ remoteId: z210.string(),
6295
+ isTokenTypeSplitEnabled: z210.boolean().optional(),
6296
+ payload: z210.any()
6262
6297
  });
6263
- var DTOBffImportRequestBody = z209.discriminatedUnion("type", [
6298
+ var DTOBffImportRequestBody = z210.discriminatedUnion("type", [
6264
6299
  DTOBffFigmaImportRequestBody,
6265
6300
  DTOBffUploadImportRequestBody
6266
6301
  ]);
6267
6302
 
6268
6303
  // src/api/dto/design-systems/redirects.ts
6269
- import { z as z210 } from "zod";
6270
- var DTOPageRedirectCreateBody = z210.object({
6271
- pagePersistentId: z210.string(),
6272
- path: z210.string()
6304
+ import { z as z211 } from "zod";
6305
+ var DTOPageRedirectCreateBody = z211.object({
6306
+ pagePersistentId: z211.string(),
6307
+ path: z211.string()
6273
6308
  });
6274
6309
  var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
6275
- var DTOPageRedirect = z210.object({
6276
- id: z210.string(),
6277
- pagePersistentId: z210.string(),
6278
- path: z210.string()
6310
+ var DTOPageRedirect = z211.object({
6311
+ id: z211.string(),
6312
+ pagePersistentId: z211.string(),
6313
+ path: z211.string()
6279
6314
  });
6280
- var DTOPageRedirectListResponse = z210.object({
6315
+ var DTOPageRedirectListResponse = z211.object({
6281
6316
  redirects: DTOPageRedirect.array()
6282
6317
  });
6283
- var DTOPageRedirectResponse = z210.object({
6318
+ var DTOPageRedirectResponse = z211.object({
6284
6319
  redirect: DTOPageRedirect
6285
6320
  });
6286
- var DTOPageRedirectDeleteResponse = z210.object({
6287
- success: z210.boolean()
6321
+ var DTOPageRedirectDeleteResponse = z211.object({
6322
+ success: z211.boolean()
6288
6323
  });
6289
6324
 
6290
6325
  // src/api/dto/design-systems/stats.ts
6291
- import { z as z211 } from "zod";
6292
- var DTODesignSystemVersionStats = z211.object({
6293
- tokens: z211.number(),
6294
- designSystemComponents: z211.number(),
6295
- assets: z211.number(),
6296
- documentationPages: z211.number(),
6297
- figmaComponents: z211.number()
6298
- });
6299
- var DTODesignSystemVersionStatsQuery = z211.object({
6326
+ import { z as z212 } from "zod";
6327
+ var DTODesignSystemVersionStats = z212.object({
6328
+ tokens: z212.number(),
6329
+ designSystemComponents: z212.number(),
6330
+ assets: z212.number(),
6331
+ documentationPages: z212.number(),
6332
+ figmaComponents: z212.number()
6333
+ });
6334
+ var DTODesignSystemVersionStatsQuery = z212.object({
6300
6335
  /**
6301
6336
  * Unique ID across versions (non-persistent ID)
6302
6337
  */
6303
- brandId: z211.string().optional()
6338
+ brandId: z212.string().optional()
6304
6339
  });
6305
6340
 
6306
6341
  // src/api/dto/design-systems/storybook.ts
6307
- import { z as z212 } from "zod";
6308
- var DTOStorybookUploadUrlRequest = z212.object({
6309
- name: z212.string()
6310
- });
6311
- var DTOStorybookUploadUrlResponse = z212.object({
6312
- signedUrl: z212.string(),
6313
- storybookUploadId: z212.string()
6314
- });
6315
- var DTOStorybookAccessTokenResponse = z212.object({
6316
- accessToken: z212.string()
6317
- });
6318
- var DTOStorybookAccessTokenPayload = z212.object({
6319
- designSystemId: z212.string(),
6320
- storybookUploadId: z212.string()
6321
- });
6322
- var DTOStorybookUploadStatus = z212.object({
6323
- status: z212.enum(["Failed", "InProgress", "Completed", "Unknown"]),
6324
- timestamp: z212.number().optional(),
6325
- reason: z212.string().optional()
6326
- });
6327
- var DTOStorybookEntryOrigin = z212.object({
6328
- id: z212.string(),
6329
- type: z212.enum(["story", "docs"]),
6330
- name: z212.string(),
6331
- title: z212.string()
6332
- });
6333
- var DTOStorybookEntry = z212.object({
6334
- id: z212.string(),
6335
- storyId: z212.string(),
6336
- designSystemId: z212.string(),
6337
- sourceId: z212.string(),
6338
- aliases: z212.array(z212.string()).optional(),
6339
- url: z212.string(),
6340
- isDeleted: z212.boolean().optional(),
6342
+ import { z as z213 } from "zod";
6343
+ var DTOStorybookUploadUrlRequest = z213.object({
6344
+ name: z213.string()
6345
+ });
6346
+ var DTOStorybookUploadUrlResponse = z213.object({
6347
+ signedUrl: z213.string(),
6348
+ storybookUploadId: z213.string()
6349
+ });
6350
+ var DTOStorybookAccessTokenResponse = z213.object({
6351
+ accessToken: z213.string()
6352
+ });
6353
+ var DTOStorybookAccessTokenPayload = z213.object({
6354
+ designSystemId: z213.string(),
6355
+ storybookUploadId: z213.string()
6356
+ });
6357
+ var DTOStorybookUploadStatus = z213.object({
6358
+ status: z213.enum(["Failed", "InProgress", "Completed", "Unknown"]),
6359
+ timestamp: z213.number().optional(),
6360
+ reason: z213.string().optional()
6361
+ });
6362
+ var DTOStorybookEntryOrigin = z213.object({
6363
+ id: z213.string(),
6364
+ type: z213.enum(["story", "docs"]),
6365
+ name: z213.string(),
6366
+ title: z213.string()
6367
+ });
6368
+ var DTOStorybookEntry = z213.object({
6369
+ id: z213.string(),
6370
+ storyId: z213.string(),
6371
+ designSystemId: z213.string(),
6372
+ sourceId: z213.string(),
6373
+ aliases: z213.array(z213.string()).optional(),
6374
+ url: z213.string(),
6375
+ isDeleted: z213.boolean().optional(),
6341
6376
  origin: DTOStorybookEntryOrigin,
6342
- createdAt: z212.coerce.date(),
6343
- updatedAt: z212.coerce.date()
6377
+ createdAt: z213.coerce.date(),
6378
+ updatedAt: z213.coerce.date()
6344
6379
  });
6345
- var DTOStorybookEntryReplaceAction = z212.object({
6346
- newStoryId: z212.string()
6380
+ var DTOStorybookEntryReplaceAction = z213.object({
6381
+ newStoryId: z213.string()
6347
6382
  });
6348
- var DTOStorybookEntryListResponse = z212.object({ entries: z212.array(DTOStorybookEntry) });
6349
- var DTOStorybookEntryResponse = z212.object({ entry: DTOStorybookEntry });
6383
+ var DTOStorybookEntryListResponse = z213.object({ entries: z213.array(DTOStorybookEntry) });
6384
+ var DTOStorybookEntryResponse = z213.object({ entry: DTOStorybookEntry });
6350
6385
 
6351
6386
  // src/api/dto/design-systems/user-design-systems.ts
6352
- import { z as z220 } from "zod";
6387
+ import { z as z221 } from "zod";
6353
6388
 
6354
6389
  // src/api/dto/workspaces/git.ts
6355
- import { z as z213 } from "zod";
6356
- var DTOGitOrganization = z213.object({
6357
- id: z213.string(),
6358
- name: z213.string(),
6359
- url: z213.string(),
6360
- slug: z213.string()
6390
+ import { z as z214 } from "zod";
6391
+ var DTOGitOrganization = z214.object({
6392
+ id: z214.string(),
6393
+ name: z214.string(),
6394
+ url: z214.string(),
6395
+ slug: z214.string()
6361
6396
  });
6362
- var DTOGitProject = z213.object({
6363
- id: z213.string(),
6364
- name: z213.string(),
6365
- url: z213.string(),
6366
- slug: z213.string()
6397
+ var DTOGitProject = z214.object({
6398
+ id: z214.string(),
6399
+ name: z214.string(),
6400
+ url: z214.string(),
6401
+ slug: z214.string()
6367
6402
  });
6368
- var DTOGitRepository = z213.object({
6369
- id: z213.string(),
6370
- name: z213.string(),
6371
- url: z213.string(),
6372
- slug: z213.string(),
6373
- defaultBranch: z213.string().optional()
6403
+ var DTOGitRepository = z214.object({
6404
+ id: z214.string(),
6405
+ name: z214.string(),
6406
+ url: z214.string(),
6407
+ slug: z214.string(),
6408
+ defaultBranch: z214.string().optional()
6374
6409
  });
6375
- var DTOGitBranch = z213.object({
6376
- name: z213.string(),
6377
- lastCommitId: z213.string()
6410
+ var DTOGitBranch = z214.object({
6411
+ name: z214.string(),
6412
+ lastCommitId: z214.string()
6378
6413
  });
6379
6414
 
6380
6415
  // src/api/dto/workspaces/integrations.ts
6381
- import { z as z214 } from "zod";
6416
+ import { z as z215 } from "zod";
6382
6417
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
6383
6418
  accessToken: true,
6384
6419
  refreshToken: true
6385
6420
  });
6386
- var DTOIntegration = z214.object({
6387
- id: z214.string(),
6388
- workspaceId: z214.string(),
6421
+ var DTOIntegration = z215.object({
6422
+ id: z215.string(),
6423
+ workspaceId: z215.string(),
6389
6424
  type: ExtendedIntegrationType,
6390
- createdAt: z214.coerce.date(),
6391
- integrationCredentials: z214.array(DTOIntegrationCredentials).optional(),
6392
- integrationDesignSystems: z214.array(IntegrationDesignSystem).optional()
6425
+ createdAt: z215.coerce.date(),
6426
+ integrationCredentials: z215.array(DTOIntegrationCredentials).optional(),
6427
+ integrationDesignSystems: z215.array(IntegrationDesignSystem).optional()
6393
6428
  });
6394
- var DTOIntegrationOAuthGetResponse = z214.object({
6395
- url: z214.string()
6429
+ var DTOIntegrationOAuthGetResponse = z215.object({
6430
+ url: z215.string()
6396
6431
  });
6397
- var DTOIntegrationPostResponse = z214.object({
6432
+ var DTOIntegrationPostResponse = z215.object({
6398
6433
  integration: DTOIntegration
6399
6434
  });
6400
- var DTOIntegrationsGetListResponse = z214.object({
6435
+ var DTOIntegrationsGetListResponse = z215.object({
6401
6436
  integrations: DTOIntegration.array()
6402
6437
  });
6403
6438
 
6404
6439
  // src/api/dto/workspaces/invitations.ts
6405
- import { z as z215 } from "zod";
6406
- var DTOWorkspaceInvitationInput = z215.object({
6407
- email: z215.string().email(),
6440
+ import { z as z216 } from "zod";
6441
+ var DTOWorkspaceInvitationInput = z216.object({
6442
+ email: z216.string().email(),
6408
6443
  role: WorkspaceRoleSchema
6409
6444
  });
6410
- var DTOWorkspaceInvitationsListInput = z215.object({
6445
+ var DTOWorkspaceInvitationsListInput = z216.object({
6411
6446
  invites: DTOWorkspaceInvitationInput.array().max(100),
6412
- designSystemId: z215.string().optional()
6447
+ designSystemId: z216.string().optional()
6413
6448
  });
6414
- var DTOWorkspaceInvitationsResponse = z215.object({
6449
+ var DTOWorkspaceInvitationsResponse = z216.object({
6415
6450
  invitations: WorkspaceInvitation.array()
6416
6451
  });
6417
- var DTOWorkspaceInviteUpdate = z215.object({
6452
+ var DTOWorkspaceInviteUpdate = z216.object({
6418
6453
  role: WorkspaceRoleSchema
6419
6454
  });
6420
- var DTOWorkspaceInvitationUpdateResponse = z215.object({
6455
+ var DTOWorkspaceInvitationUpdateResponse = z216.object({
6421
6456
  invitation: WorkspaceInvitation
6422
6457
  });
6423
6458
 
6424
6459
  // src/api/dto/workspaces/membership.ts
6425
- import { z as z218 } from "zod";
6460
+ import { z as z219 } from "zod";
6426
6461
 
6427
6462
  // src/api/dto/workspaces/workspace.ts
6428
- import { z as z217 } from "zod";
6463
+ import { z as z218 } from "zod";
6429
6464
 
6430
6465
  // src/api/dto/workspaces/npm-registry.ts
6431
- import { z as z216 } from "zod";
6466
+ import { z as z217 } from "zod";
6432
6467
  var DTONpmRegistryConfigConstants = {
6433
6468
  passwordPlaceholder: "redacted"
6434
6469
  };
6435
- var DTONpmRegistryConfig = z216.object({
6470
+ var DTONpmRegistryConfig = z217.object({
6436
6471
  // Registry basic configuration
6437
6472
  registryType: NpmRegistryType,
6438
- registryUrl: z216.string(),
6439
- customRegistryUrl: z216.string().optional(),
6473
+ registryUrl: z217.string(),
6474
+ customRegistryUrl: z217.string().optional(),
6440
6475
  // URL of Supernova NPM packages proxy
6441
- proxyUrl: z216.string(),
6476
+ proxyUrl: z217.string(),
6442
6477
  // Auth configuration
6443
6478
  authType: NpmRegistryAuthType,
6444
- accessToken: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6445
- username: z216.string().optional(),
6446
- password: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6479
+ accessToken: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6480
+ username: z217.string().optional(),
6481
+ password: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6447
6482
  // NPM package scopes for whih the proxy should be enabled
6448
- enabledScopes: z216.array(z216.string()),
6483
+ enabledScopes: z217.array(z217.string()),
6449
6484
  // True if client should bypass Supernova proxy and connect directly to the registry
6450
6485
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6451
- bypassProxy: z216.boolean()
6486
+ bypassProxy: z217.boolean()
6452
6487
  });
6453
- var DTONpmRegistryAccessTokenResponse = z216.object({
6454
- version: z216.number(),
6455
- accessToken: z216.string().optional(),
6456
- registryUrl: z216.string()
6488
+ var DTONpmRegistryAccessTokenResponse = z217.object({
6489
+ version: z217.number(),
6490
+ accessToken: z217.string().optional(),
6491
+ registryUrl: z217.string()
6457
6492
  });
6458
- var DTOUpdateRegistryInput = z216.object({
6493
+ var DTOUpdateRegistryInput = z217.object({
6459
6494
  registryType: nullishToOptional(NpmRegistryType),
6460
6495
  authType: nullishToOptional(NpmRegistryAuthType),
6461
- enabledScopes: nullishToOptional(z216.array(z216.string())),
6462
- customRegistryUrl: nullishToOptional(z216.string()),
6463
- bypassProxy: nullishToOptional(z216.boolean()),
6464
- npmProxyVersion: nullishToOptional(z216.number()),
6465
- authHeaderName: nullishToOptional(z216.string()),
6466
- authHeaderValue: nullishToOptional(z216.string()),
6467
- accessToken: nullishToOptional(z216.string()),
6468
- username: nullishToOptional(z216.string()),
6469
- password: nullishToOptional(z216.string())
6470
- });
6471
- var DTOUpdateRegistryOutput = z216.object({
6496
+ enabledScopes: nullishToOptional(z217.array(z217.string())),
6497
+ customRegistryUrl: nullishToOptional(z217.string()),
6498
+ bypassProxy: nullishToOptional(z217.boolean()),
6499
+ npmProxyVersion: nullishToOptional(z217.number()),
6500
+ authHeaderName: nullishToOptional(z217.string()),
6501
+ authHeaderValue: nullishToOptional(z217.string()),
6502
+ accessToken: nullishToOptional(z217.string()),
6503
+ username: nullishToOptional(z217.string()),
6504
+ password: nullishToOptional(z217.string())
6505
+ });
6506
+ var DTOUpdateRegistryOutput = z217.object({
6472
6507
  npmRegistrySettings: DTONpmRegistryConfig
6473
6508
  });
6474
6509
 
6475
6510
  // src/api/dto/workspaces/workspace.ts
6476
6511
  var DTOWorkspaceProfile = WorkspaceProfile;
6477
- var DTOWorkspace = z217.object({
6478
- id: z217.string(),
6512
+ var DTOWorkspace = z218.object({
6513
+ id: z218.string(),
6479
6514
  profile: DTOWorkspaceProfile,
6480
6515
  subscription: Subscription,
6481
6516
  npmRegistry: DTONpmRegistryConfig.optional()
6482
6517
  });
6483
- var DTOWorkspaceCreateInput = z217.object({
6484
- name: z217.string()
6518
+ var DTOWorkspaceCreateInput = z218.object({
6519
+ name: z218.string()
6485
6520
  });
6486
- var DTOWorkspaceResponse = z217.object({
6521
+ var DTOWorkspaceResponse = z218.object({
6487
6522
  workspace: DTOWorkspace
6488
6523
  });
6489
6524
 
6490
6525
  // src/api/dto/workspaces/membership.ts
6491
- var DTOWorkspaceRole = z218.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6492
- var DTOUserWorkspaceMembership = z218.object({
6526
+ var DTOWorkspaceRole = z219.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6527
+ var DTOUserWorkspaceMembership = z219.object({
6493
6528
  // Workspace the user is a member of
6494
6529
  workspace: DTOWorkspace,
6495
6530
  // Assigned role the user has in the workspace
@@ -6499,54 +6534,54 @@ var DTOUserWorkspaceMembership = z218.object({
6499
6534
  // when a workspace's subscription is downgraded to free tier
6500
6535
  effectiveRole: DTOWorkspaceRole
6501
6536
  });
6502
- var DTOWorkspaceMember = z218.object({
6537
+ var DTOWorkspaceMember = z219.object({
6503
6538
  user: User,
6504
6539
  role: WorkspaceRoleSchema,
6505
6540
  effectiveRole: WorkspaceRoleSchema
6506
6541
  });
6507
- var DTOUserWorkspaceMembershipsResponse = z218.object({
6508
- membership: z218.array(DTOUserWorkspaceMembership)
6542
+ var DTOUserWorkspaceMembershipsResponse = z219.object({
6543
+ membership: z219.array(DTOUserWorkspaceMembership)
6509
6544
  });
6510
- var DTOWorkspaceMembersListResponse = z218.object({
6511
- members: z218.array(DTOWorkspaceMember)
6545
+ var DTOWorkspaceMembersListResponse = z219.object({
6546
+ members: z219.array(DTOWorkspaceMember)
6512
6547
  });
6513
6548
 
6514
6549
  // src/api/dto/workspaces/untyped-data.ts
6515
- import { z as z219 } from "zod";
6550
+ import { z as z220 } from "zod";
6516
6551
  var DTOWorkspaceUntypedData = WorkspaceUntypedData;
6517
- var DTOWorkspaceUntypedDataListResponse = z219.object({
6552
+ var DTOWorkspaceUntypedDataListResponse = z220.object({
6518
6553
  data: DTOWorkspaceUntypedData.array()
6519
6554
  });
6520
- var DTOWorkspaceUntypedDataResponse = z219.object({
6555
+ var DTOWorkspaceUntypedDataResponse = z220.object({
6521
6556
  data: DTOWorkspaceUntypedData
6522
6557
  });
6523
- var DTOWorkspaceUntypedDataCreatePayload = z219.object({
6524
- value: z219.unknown()
6558
+ var DTOWorkspaceUntypedDataCreatePayload = z220.object({
6559
+ value: z220.unknown()
6525
6560
  });
6526
- var DTOWorkspaceUntypedDataUpdatePayload = z219.object({
6527
- value: z219.unknown()
6561
+ var DTOWorkspaceUntypedDataUpdatePayload = z220.object({
6562
+ value: z220.unknown()
6528
6563
  });
6529
6564
 
6530
6565
  // src/api/dto/design-systems/user-design-systems.ts
6531
- var DTOUserDesignSystemsResponse = z220.object({
6566
+ var DTOUserDesignSystemsResponse = z221.object({
6532
6567
  designSystems: DTODesignSystem.array(),
6533
6568
  workspaces: DTOWorkspace.array()
6534
6569
  });
6535
6570
 
6536
6571
  // src/api/dto/design-systems/version-room.ts
6537
- import { z as z221 } from "zod";
6538
- var DTODesignSystemVersionRoom = z221.object({
6539
- id: z221.string()
6572
+ import { z as z222 } from "zod";
6573
+ var DTODesignSystemVersionRoom = z222.object({
6574
+ id: z222.string()
6540
6575
  });
6541
- var DTODesignSystemVersionRoomResponse = z221.object({
6576
+ var DTODesignSystemVersionRoomResponse = z222.object({
6542
6577
  room: DTODesignSystemVersionRoom
6543
6578
  });
6544
6579
 
6545
6580
  // src/api/dto/design-systems/version.ts
6546
- import { z as z234 } from "zod";
6581
+ import { z as z235 } from "zod";
6547
6582
 
6548
6583
  // src/api/payloads/design-systems/update-design-system.ts
6549
- import { z as z222 } from "zod";
6584
+ import { z as z223 } from "zod";
6550
6585
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
6551
6586
  id: true,
6552
6587
  workspaceId: true,
@@ -6558,56 +6593,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
6558
6593
  }).extend({
6559
6594
  meta: ObjectMeta.partial().optional()
6560
6595
  });
6561
- var DTODesignSystemUpdateAccessModeInput = z222.object({
6596
+ var DTODesignSystemUpdateAccessModeInput = z223.object({
6562
6597
  accessMode: DesignSystemAccessMode,
6563
- retain: z222.object({
6564
- userIds: z222.string().array(),
6565
- inviteIds: z222.string().array()
6598
+ retain: z223.object({
6599
+ userIds: z223.string().array(),
6600
+ inviteIds: z223.string().array()
6566
6601
  }).optional()
6567
6602
  });
6568
6603
 
6569
6604
  // src/api/payloads/design-systems/version.ts
6570
- import { z as z223 } from "zod";
6571
- var ObjectMeta2 = z223.object({
6572
- name: z223.string().max(150).optional(),
6573
- description: z223.string().max(2e3).optional()
6605
+ import { z as z224 } from "zod";
6606
+ var ObjectMeta2 = z224.object({
6607
+ name: z224.string().max(150).optional(),
6608
+ description: z224.string().max(2e3).optional()
6574
6609
  });
6575
6610
  function validateDesignSystemVersion(version) {
6576
6611
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
6577
6612
  return urlCompliantRegex.test(version);
6578
6613
  }
6579
- var DTOCreateVersionInput = z223.object({
6614
+ var DTOCreateVersionInput = z224.object({
6580
6615
  meta: ObjectMeta2,
6581
- version: z223.string().refine(validateDesignSystemVersion, {
6616
+ version: z224.string().refine(validateDesignSystemVersion, {
6582
6617
  message: "Invalid semantic versioning format"
6583
6618
  }),
6584
- changeLog: z223.string().optional()
6619
+ changeLog: z224.string().optional()
6585
6620
  });
6586
- var DTOUpdateVersionInput = z223.object({
6621
+ var DTOUpdateVersionInput = z224.object({
6587
6622
  meta: ObjectMeta2,
6588
- version: z223.string(),
6623
+ version: z224.string(),
6589
6624
  // required for PUT, but not editable
6590
- changeLog: z223.string()
6625
+ changeLog: z224.string()
6591
6626
  });
6592
6627
 
6593
6628
  // src/api/payloads/documentation/analytics.ts
6594
- import { z as z224 } from "zod";
6595
- var DTODocumentationAnalyticsTimeFrameComparison = z224.object({
6596
- referencePeriod: z224.object({
6597
- start: z224.coerce.date(),
6598
- end: z224.coerce.date().optional()
6629
+ import { z as z225 } from "zod";
6630
+ var DTODocumentationAnalyticsTimeFrameComparison = z225.object({
6631
+ referencePeriod: z225.object({
6632
+ start: z225.coerce.date(),
6633
+ end: z225.coerce.date().optional()
6599
6634
  }),
6600
- baselinePeriod: z224.object({
6601
- start: z224.coerce.date(),
6602
- end: z224.coerce.date().optional()
6635
+ baselinePeriod: z225.object({
6636
+ start: z225.coerce.date(),
6637
+ end: z225.coerce.date().optional()
6603
6638
  })
6604
6639
  });
6605
- var DTODocumentationAnalyticsDiffPayload = z224.object({
6606
- timeFrames: z224.array(DTODocumentationAnalyticsTimeFrameComparison)
6640
+ var DTODocumentationAnalyticsDiffPayload = z225.object({
6641
+ timeFrames: z225.array(DTODocumentationAnalyticsTimeFrameComparison)
6607
6642
  });
6608
6643
 
6609
6644
  // src/api/payloads/documentation/block-definitions.ts
6610
- import { z as z225 } from "zod";
6645
+ import { z as z226 } from "zod";
6611
6646
 
6612
6647
  // src/api/dto/documentation/block-definition.ts
6613
6648
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -6619,76 +6654,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
6619
6654
  var DTOPageBlockDefinition = PageBlockDefinition;
6620
6655
 
6621
6656
  // src/api/payloads/documentation/block-definitions.ts
6622
- var DTOGetBlockDefinitionsOutput = z225.object({
6623
- definitions: z225.array(DTOPageBlockDefinition)
6657
+ var DTOGetBlockDefinitionsOutput = z226.object({
6658
+ definitions: z226.array(DTOPageBlockDefinition)
6624
6659
  });
6625
6660
 
6626
6661
  // src/api/payloads/documentation/design-data-doc-diff.ts
6627
- import { z as z226 } from "zod";
6628
- var DTODocumentationPublishTypeQueryParams = z226.object({
6629
- environment: z226.enum(["Live", "Preview"])
6662
+ import { z as z227 } from "zod";
6663
+ var DTODocumentationPublishTypeQueryParams = z227.object({
6664
+ environment: z227.enum(["Live", "Preview"])
6630
6665
  });
6631
6666
 
6632
6667
  // src/api/payloads/export/pipeline.ts
6633
- import { z as z228 } from "zod";
6668
+ import { z as z229 } from "zod";
6634
6669
 
6635
6670
  // src/api/dto/export/exporter-property.ts
6636
- import { z as z227 } from "zod";
6637
- var PrimitiveValue2 = z227.number().or(z227.boolean()).or(z227.string());
6638
- var ArrayValue2 = z227.array(z227.string());
6639
- var ObjectValue2 = z227.record(z227.string());
6671
+ import { z as z228 } from "zod";
6672
+ var PrimitiveValue2 = z228.number().or(z228.boolean()).or(z228.string());
6673
+ var ArrayValue2 = z228.array(z228.string());
6674
+ var ObjectValue2 = z228.record(z228.string());
6640
6675
  var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
6641
- var DTOExporterPropertyType = z227.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
6642
- var PropertyDefinitionBase2 = z227.object({
6643
- key: z227.string(),
6644
- title: z227.string(),
6645
- description: z227.string(),
6646
- category: z227.string().optional(),
6647
- dependsOn: z227.record(z227.boolean()).optional()
6648
- });
6649
- var DTOExporterPropertyDefinitionEnumOption = z227.object({
6650
- label: z227.string(),
6651
- description: z227.string()
6676
+ var DTOExporterPropertyType = z228.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
6677
+ var PropertyDefinitionBase2 = z228.object({
6678
+ key: z228.string(),
6679
+ title: z228.string(),
6680
+ description: z228.string(),
6681
+ category: z228.string().optional(),
6682
+ dependsOn: z228.record(z228.boolean()).optional()
6683
+ });
6684
+ var DTOExporterPropertyDefinitionEnumOption = z228.object({
6685
+ label: z228.string(),
6686
+ description: z228.string()
6652
6687
  });
6653
6688
  var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
6654
- type: z227.literal(DTOExporterPropertyType.Enum.Enum),
6655
- options: z227.record(DTOExporterPropertyDefinitionEnumOption),
6656
- default: z227.string()
6689
+ type: z228.literal(DTOExporterPropertyType.Enum.Enum),
6690
+ options: z228.record(DTOExporterPropertyDefinitionEnumOption),
6691
+ default: z228.string()
6657
6692
  });
6658
6693
  var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
6659
- type: z227.literal(DTOExporterPropertyType.Enum.Boolean),
6660
- default: z227.boolean()
6694
+ type: z228.literal(DTOExporterPropertyType.Enum.Boolean),
6695
+ default: z228.boolean()
6661
6696
  });
6662
6697
  var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
6663
- type: z227.literal(DTOExporterPropertyType.Enum.String),
6664
- default: z227.string(),
6665
- isMultiline: z227.boolean().optional()
6698
+ type: z228.literal(DTOExporterPropertyType.Enum.String),
6699
+ default: z228.string(),
6700
+ isMultiline: z228.boolean().optional()
6666
6701
  });
6667
6702
  var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
6668
- type: z227.literal(DTOExporterPropertyType.Enum.Number),
6669
- default: z227.number()
6703
+ type: z228.literal(DTOExporterPropertyType.Enum.Number),
6704
+ default: z228.number()
6670
6705
  });
6671
6706
  var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
6672
- type: z227.literal(DTOExporterPropertyType.Enum.Array),
6707
+ type: z228.literal(DTOExporterPropertyType.Enum.Array),
6673
6708
  default: ArrayValue2
6674
6709
  });
6675
6710
  var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
6676
- type: z227.literal(DTOExporterPropertyType.Enum.Object),
6711
+ type: z228.literal(DTOExporterPropertyType.Enum.Object),
6677
6712
  default: ObjectValue2,
6678
- allowedKeys: z227.object({
6679
- options: z227.string().array(),
6680
- type: z227.string()
6713
+ allowedKeys: z228.object({
6714
+ options: z228.string().array(),
6715
+ type: z228.string()
6681
6716
  }).optional(),
6682
- allowedValues: z227.object({
6683
- type: z227.string()
6717
+ allowedValues: z228.object({
6718
+ type: z228.string()
6684
6719
  }).optional()
6685
6720
  });
6686
6721
  var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
6687
- type: z227.literal(DTOExporterPropertyType.Enum.Code),
6688
- language: z227.string(),
6689
- default: z227.string()
6722
+ type: z228.literal(DTOExporterPropertyType.Enum.Code),
6723
+ language: z228.string(),
6724
+ default: z228.string()
6690
6725
  });
6691
- var DTOExporterPropertyDefinition = z227.discriminatedUnion("type", [
6726
+ var DTOExporterPropertyDefinition = z228.discriminatedUnion("type", [
6692
6727
  DTOExporterPropertyDefinitionEnum,
6693
6728
  DTOExporterPropertyDefinitionBoolean,
6694
6729
  DTOExporterPropertyDefinitionString,
@@ -6697,84 +6732,84 @@ var DTOExporterPropertyDefinition = z227.discriminatedUnion("type", [
6697
6732
  DTOExporterPropertyDefinitionObject,
6698
6733
  DTOExporterPropertyDefinitionCode
6699
6734
  ]);
6700
- var DTOExporterPropertyDefinitionsResponse = z227.object({
6735
+ var DTOExporterPropertyDefinitionsResponse = z228.object({
6701
6736
  properties: DTOExporterPropertyDefinition.array()
6702
6737
  });
6703
- var DTOExporterPropertyValueMap = z227.record(DTOExporterPropertyValue);
6738
+ var DTOExporterPropertyValueMap = z228.record(DTOExporterPropertyValue);
6704
6739
 
6705
6740
  // src/api/payloads/export/pipeline.ts
6706
- var GitDestinationOptions = z228.object({
6707
- branch: z228.string().min(1).nullish(),
6708
- commitMessage: z228.string().min(1).nullish(),
6709
- commitAuthorName: z228.string().min(1).nullish(),
6710
- commitAuthorEmail: z228.string().email().nullish(),
6711
- pullRequestTitle: z228.string().min(1).nullish(),
6712
- pullRequestDescription: z228.string().min(1).nullish(),
6713
- relativePath: z228.string().nullish(),
6714
- purgeDirectory: z228.boolean().nullish()
6715
- });
6716
- var DTOPipelineCreateBody = z228.object({
6717
- name: z228.string(),
6718
- exporterId: z228.string(),
6719
- designSystemId: z228.string(),
6720
- isEnabled: z228.boolean(),
6741
+ var GitDestinationOptions = z229.object({
6742
+ branch: z229.string().min(1).nullish(),
6743
+ commitMessage: z229.string().min(1).nullish(),
6744
+ commitAuthorName: z229.string().min(1).nullish(),
6745
+ commitAuthorEmail: z229.string().email().nullish(),
6746
+ pullRequestTitle: z229.string().min(1).nullish(),
6747
+ pullRequestDescription: z229.string().min(1).nullish(),
6748
+ relativePath: z229.string().nullish(),
6749
+ purgeDirectory: z229.boolean().nullish()
6750
+ });
6751
+ var DTOPipelineCreateBody = z229.object({
6752
+ name: z229.string(),
6753
+ exporterId: z229.string(),
6754
+ designSystemId: z229.string(),
6755
+ isEnabled: z229.boolean(),
6721
6756
  eventType: PipelineEventType,
6722
- brandPersistentId: z228.string().optional(),
6723
- themePersistentId: z228.string().optional(),
6724
- themePersistentIds: z228.string().array().optional(),
6757
+ brandPersistentId: z229.string().optional(),
6758
+ themePersistentId: z229.string().optional(),
6759
+ themePersistentIds: z229.string().array().optional(),
6725
6760
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6726
6761
  destination: PipelineDestinationType.optional(),
6727
6762
  gitQuery: GitObjectsQuery,
6728
- destinations: z228.object({
6763
+ destinations: z229.object({
6729
6764
  s3: ExporterDestinationS3.nullish(),
6730
6765
  azure: ExporterDestinationAzure.nullish(),
6731
6766
  bitbucket: ExporterDestinationBitbucket.nullish(),
6732
6767
  github: ExporterDestinationGithub.nullish(),
6733
6768
  gitlab: ExporterDestinationGitlab.nullish(),
6734
6769
  documentation: ExporterDestinationDocs.nullish(),
6735
- webhookUrl: z228.string().nullish()
6770
+ webhookUrl: z229.string().nullish()
6736
6771
  })
6737
6772
  });
6738
- var DTOPipelineUpdateBody = z228.object({
6739
- exporterId: z228.string().optional(),
6740
- name: z228.string().optional(),
6741
- isEnabled: z228.boolean().optional(),
6773
+ var DTOPipelineUpdateBody = z229.object({
6774
+ exporterId: z229.string().optional(),
6775
+ name: z229.string().optional(),
6776
+ isEnabled: z229.boolean().optional(),
6742
6777
  eventType: PipelineEventType.optional(),
6743
- brandPersistentId: z228.string().optional(),
6744
- themePersistentId: z228.string().optional(),
6745
- themePersistentIds: z228.string().array().optional(),
6778
+ brandPersistentId: z229.string().optional(),
6779
+ themePersistentId: z229.string().optional(),
6780
+ themePersistentIds: z229.string().array().optional(),
6746
6781
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6747
6782
  destination: PipelineDestinationType.optional(),
6748
6783
  gitQuery: GitObjectsQuery.optional(),
6749
- destinations: z228.object({
6784
+ destinations: z229.object({
6750
6785
  s3: ExporterDestinationS3.nullish(),
6751
6786
  azure: ExporterDestinationAzure.nullish(),
6752
6787
  bitbucket: ExporterDestinationBitbucket.nullish(),
6753
6788
  github: ExporterDestinationGithub.nullish(),
6754
6789
  gitlab: ExporterDestinationGitlab.nullish(),
6755
6790
  documentation: ExporterDestinationDocs.nullish(),
6756
- webhookUrl: z228.string().nullish()
6791
+ webhookUrl: z229.string().nullish()
6757
6792
  }).optional(),
6758
6793
  gitDestinationOptions: GitDestinationOptions.partial().optional()
6759
6794
  });
6760
- var DTOPipelineTriggerBody = z228.object({
6761
- designSystemVersionId: z228.string()
6795
+ var DTOPipelineTriggerBody = z229.object({
6796
+ designSystemVersionId: z229.string()
6762
6797
  });
6763
6798
 
6764
6799
  // src/api/payloads/liveblocks/auth.ts
6765
- import { z as z229 } from "zod";
6766
- var DTOLiveblocksAuthRequest = z229.object({
6767
- room: z229.string().optional()
6800
+ import { z as z230 } from "zod";
6801
+ var DTOLiveblocksAuthRequest = z230.object({
6802
+ room: z230.string().optional()
6768
6803
  });
6769
6804
 
6770
6805
  // src/api/payloads/users/notifications/notification-settings.ts
6771
- import { z as z230 } from "zod";
6772
- var DTOUpdateUserNotificationSettingsPayload = z230.object({
6806
+ import { z as z231 } from "zod";
6807
+ var DTOUpdateUserNotificationSettingsPayload = z231.object({
6773
6808
  notificationSettings: UserNotificationSettings
6774
6809
  });
6775
- var DTOUserNotificationSettingsResponse = z230.object({
6776
- userId: z230.string(),
6777
- workspaceId: z230.string(),
6810
+ var DTOUserNotificationSettingsResponse = z231.object({
6811
+ userId: z231.string(),
6812
+ workspaceId: z231.string(),
6778
6813
  notificationSettings: UserNotificationSettings
6779
6814
  });
6780
6815
 
@@ -6782,13 +6817,13 @@ var DTOUserNotificationSettingsResponse = z230.object({
6782
6817
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
6783
6818
 
6784
6819
  // src/api/payloads/workspaces/transfer-ownership.ts
6785
- import { z as z231 } from "zod";
6786
- var DTOTransferOwnershipPayload = z231.object({
6787
- newOwnerId: z231.string()
6820
+ import { z as z232 } from "zod";
6821
+ var DTOTransferOwnershipPayload = z232.object({
6822
+ newOwnerId: z232.string()
6788
6823
  });
6789
6824
 
6790
6825
  // src/api/payloads/workspaces/workspace-configuration.ts
6791
- import { z as z232 } from "zod";
6826
+ import { z as z233 } from "zod";
6792
6827
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
6793
6828
  function validateSsoPayload(ssoPayload) {
6794
6829
  const keys = [];
@@ -6811,21 +6846,21 @@ function validateSsoPayload(ssoPayload) {
6811
6846
  keys
6812
6847
  };
6813
6848
  }
6814
- var NpmRegistryInput = z232.object({
6815
- enabledScopes: z232.array(z232.string()),
6816
- customRegistryUrl: z232.string().optional(),
6817
- bypassProxy: z232.boolean().optional(),
6818
- npmProxyRegistryConfigId: z232.string().optional(),
6819
- npmProxyVersion: z232.number().optional(),
6820
- registryType: z232.string(),
6821
- authType: z232.string(),
6822
- authHeaderName: z232.string(),
6823
- authHeaderValue: z232.string(),
6824
- accessToken: z232.string(),
6825
- username: z232.string(),
6826
- password: z232.string()
6827
- });
6828
- var WorkspaceConfigurationPayload = z232.object({
6849
+ var NpmRegistryInput = z233.object({
6850
+ enabledScopes: z233.array(z233.string()),
6851
+ customRegistryUrl: z233.string().optional(),
6852
+ bypassProxy: z233.boolean().optional(),
6853
+ npmProxyRegistryConfigId: z233.string().optional(),
6854
+ npmProxyVersion: z233.number().optional(),
6855
+ registryType: z233.string(),
6856
+ authType: z233.string(),
6857
+ authHeaderName: z233.string(),
6858
+ authHeaderValue: z233.string(),
6859
+ accessToken: z233.string(),
6860
+ username: z233.string(),
6861
+ password: z233.string()
6862
+ });
6863
+ var WorkspaceConfigurationPayload = z233.object({
6829
6864
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
6830
6865
  sso: SsoProvider.partial().optional(),
6831
6866
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -6833,107 +6868,107 @@ var WorkspaceConfigurationPayload = z232.object({
6833
6868
  });
6834
6869
 
6835
6870
  // src/api/payloads/workspaces/workspace-integrations.ts
6836
- import { z as z233 } from "zod";
6837
- var DTOWorkspaceIntegrationOauthInput = z233.object({
6871
+ import { z as z234 } from "zod";
6872
+ var DTOWorkspaceIntegrationOauthInput = z234.object({
6838
6873
  type: IntegrationType
6839
6874
  });
6840
- var DTOWorkspaceIntegrationPATInput = z233.object({
6875
+ var DTOWorkspaceIntegrationPATInput = z234.object({
6841
6876
  type: IntegrationType,
6842
6877
  token: IntegrationToken
6843
6878
  });
6844
- var DTOWorkspaceIntegrationGetGitObjectsInput = z233.object({
6845
- organization: z233.string().optional(),
6879
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z234.object({
6880
+ organization: z234.string().optional(),
6846
6881
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
6847
- project: z233.string().optional(),
6882
+ project: z234.string().optional(),
6848
6883
  // Only for Bitbucket and Azure
6849
- repository: z233.string().optional(),
6884
+ repository: z234.string().optional(),
6850
6885
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
6851
- branch: z233.string().optional(),
6886
+ branch: z234.string().optional(),
6852
6887
  // For all providers, useful for PR creations.
6853
- user: z233.string().optional()
6888
+ user: z234.string().optional()
6854
6889
  // Only for Gitlab User Repositories
6855
6890
  });
6856
6891
 
6857
6892
  // src/api/dto/design-systems/version.ts
6858
- var DTODesignSystemVersion = z234.object({
6859
- id: z234.string(),
6860
- createdAt: z234.coerce.date(),
6893
+ var DTODesignSystemVersion = z235.object({
6894
+ id: z235.string(),
6895
+ createdAt: z235.coerce.date(),
6861
6896
  meta: ObjectMeta,
6862
- version: z234.string(),
6863
- isReadonly: z234.boolean(),
6864
- changeLog: z234.string(),
6865
- designSystemId: z234.string()
6897
+ version: z235.string(),
6898
+ isReadonly: z235.boolean(),
6899
+ changeLog: z235.string(),
6900
+ designSystemId: z235.string()
6866
6901
  });
6867
- var DTODesignSystemVersionsListResponse = z234.object({
6868
- designSystemVersions: z234.array(DTODesignSystemVersion)
6902
+ var DTODesignSystemVersionsListResponse = z235.object({
6903
+ designSystemVersions: z235.array(DTODesignSystemVersion)
6869
6904
  });
6870
- var DTODesignSystemVersionGetResponse = z234.object({
6905
+ var DTODesignSystemVersionGetResponse = z235.object({
6871
6906
  designSystemVersion: DTODesignSystemVersion
6872
6907
  });
6873
- var DTODesignSystemVersionCreationResponse = z234.object({
6908
+ var DTODesignSystemVersionCreationResponse = z235.object({
6874
6909
  meta: ObjectMeta,
6875
- version: z234.string(),
6876
- changeLog: z234.string(),
6877
- isReadOnly: z234.boolean(),
6878
- designSystemId: z234.string(),
6879
- jobId: z234.string()
6880
- });
6881
- var VersionSQSPayload = z234.object({
6882
- jobId: z234.string(),
6883
- designSystemId: z234.string(),
6910
+ version: z235.string(),
6911
+ changeLog: z235.string(),
6912
+ isReadOnly: z235.boolean(),
6913
+ designSystemId: z235.string(),
6914
+ jobId: z235.string()
6915
+ });
6916
+ var VersionSQSPayload = z235.object({
6917
+ jobId: z235.string(),
6918
+ designSystemId: z235.string(),
6884
6919
  input: DTOCreateVersionInput
6885
6920
  });
6886
- var DTODesignSystemVersionJobsResponse = z234.object({
6887
- jobs: z234.array(VersionCreationJob)
6921
+ var DTODesignSystemVersionJobsResponse = z235.object({
6922
+ jobs: z235.array(VersionCreationJob)
6888
6923
  });
6889
- var DTODesignSystemVersionJobStatusResponse = z234.object({
6924
+ var DTODesignSystemVersionJobStatusResponse = z235.object({
6890
6925
  job: VersionCreationJob
6891
6926
  });
6892
6927
 
6893
6928
  // src/api/dto/design-systems/view.ts
6894
- import { z as z235 } from "zod";
6895
- var DTOElementViewColumnSharedAttributes = z235.object({
6896
- id: z235.string(),
6897
- persistentId: z235.string(),
6898
- width: z235.number()
6929
+ import { z as z236 } from "zod";
6930
+ var DTOElementViewColumnSharedAttributes = z236.object({
6931
+ id: z236.string(),
6932
+ persistentId: z236.string(),
6933
+ width: z236.number()
6899
6934
  });
6900
6935
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
6901
- type: z235.literal("BaseProperty"),
6936
+ type: z236.literal("BaseProperty"),
6902
6937
  basePropertyType: ElementViewBaseColumnType
6903
6938
  });
6904
6939
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
6905
- type: z235.literal("PropertyDefinition"),
6906
- propertyDefinitionId: z235.string()
6940
+ type: z236.literal("PropertyDefinition"),
6941
+ propertyDefinitionId: z236.string()
6907
6942
  });
6908
6943
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
6909
- type: z235.literal("Theme"),
6910
- themeId: z235.string()
6944
+ type: z236.literal("Theme"),
6945
+ themeId: z236.string()
6911
6946
  });
6912
- var DTOElementViewColumn = z235.discriminatedUnion("type", [
6947
+ var DTOElementViewColumn = z236.discriminatedUnion("type", [
6913
6948
  DTOElementViewBasePropertyColumn,
6914
6949
  DTOElementViewPropertyDefinitionColumn,
6915
6950
  DTOElementViewThemeColumn
6916
6951
  ]);
6917
- var DTOElementView = z235.object({
6952
+ var DTOElementView = z236.object({
6918
6953
  meta: ObjectMeta,
6919
- persistentId: z235.string(),
6954
+ persistentId: z236.string(),
6920
6955
  targetElementType: ElementPropertyTargetType,
6921
- id: z235.string(),
6922
- isDefault: z235.boolean(),
6923
- columns: z235.array(DTOElementViewColumn)
6956
+ id: z236.string(),
6957
+ isDefault: z236.boolean(),
6958
+ columns: z236.array(DTOElementViewColumn)
6924
6959
  });
6925
- var DTOElementViewsListResponse = z235.object({
6926
- elementDataViews: z235.array(DTOElementView)
6960
+ var DTOElementViewsListResponse = z236.object({
6961
+ elementDataViews: z236.array(DTOElementView)
6927
6962
  });
6928
6963
 
6929
6964
  // src/api/dto/bff/app-bootstrap-data.ts
6930
- var DTOAppBootstrapDataQuery = z236.object({
6931
- preferredWorkspaceId: z236.string().optional(),
6932
- preferredDesignSystemId: z236.string().optional(),
6933
- preferredVersionId: z236.string().optional(),
6934
- preferredBrandId: z236.string().optional()
6965
+ var DTOAppBootstrapDataQuery = z237.object({
6966
+ preferredWorkspaceId: z237.string().optional(),
6967
+ preferredDesignSystemId: z237.string().optional(),
6968
+ preferredVersionId: z237.string().optional(),
6969
+ preferredBrandId: z237.string().optional()
6935
6970
  });
6936
- var DTOAppBootstrapDataResponse = z236.object({
6971
+ var DTOAppBootstrapDataResponse = z237.object({
6937
6972
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
6938
6973
  designSystem: DTODesignSystem.optional(),
6939
6974
  version: DTODesignSystemVersion.optional(),
@@ -6941,92 +6976,92 @@ var DTOAppBootstrapDataResponse = z236.object({
6941
6976
  });
6942
6977
 
6943
6978
  // src/api/dto/collections/token-collection.ts
6944
- import { z as z237 } from "zod";
6945
- var DTOTokenCollection = z237.object({
6946
- id: z237.string(),
6947
- persistentId: z237.string(),
6948
- designSystemVersionId: z237.string(),
6979
+ import { z as z238 } from "zod";
6980
+ var DTOTokenCollection = z238.object({
6981
+ id: z238.string(),
6982
+ persistentId: z238.string(),
6983
+ designSystemVersionId: z238.string(),
6949
6984
  meta: ObjectMeta,
6950
6985
  backgroundColor: ColorTokenInlineData.optional(),
6951
- elementPropertyOptionId: z237.string(),
6952
- createdAt: z237.coerce.date(),
6953
- updatedAt: z237.coerce.date(),
6986
+ elementPropertyOptionId: z238.string(),
6987
+ createdAt: z238.coerce.date(),
6988
+ updatedAt: z238.coerce.date(),
6954
6989
  origin: CollectionOrigin.optional()
6955
6990
  });
6956
- var DTOTokenCollectionsListReponse = z237.object({
6991
+ var DTOTokenCollectionsListReponse = z238.object({
6957
6992
  collections: DTOTokenCollection.array()
6958
6993
  });
6959
6994
 
6960
6995
  // src/api/dto/design-tokens/design-token.ts
6961
- import { z as z238 } from "zod";
6996
+ import { z as z239 } from "zod";
6962
6997
  var DTODesignToken = DesignTokenTypedData.and(
6963
- z238.object({
6964
- id: z238.string(),
6965
- persistentId: z238.string(),
6966
- designSystemVersionId: z238.string(),
6998
+ z239.object({
6999
+ id: z239.string(),
7000
+ persistentId: z239.string(),
7001
+ designSystemVersionId: z239.string(),
6967
7002
  meta: ObjectMeta,
6968
7003
  originStyle: DesignTokenOrigin.optional(),
6969
- brandId: z238.string(),
6970
- collectionId: z238.string().optional(),
6971
- updatedAt: z238.coerce.date()
7004
+ brandId: z239.string(),
7005
+ collectionId: z239.string().optional(),
7006
+ updatedAt: z239.coerce.date()
6972
7007
  })
6973
7008
  );
6974
- var DTODesignTokenListResponse = z238.object({
7009
+ var DTODesignTokenListResponse = z239.object({
6975
7010
  tokens: DTODesignToken.array()
6976
7011
  });
6977
- var DTODesignTokenResponse = z238.object({
7012
+ var DTODesignTokenResponse = z239.object({
6978
7013
  token: DTODesignToken
6979
7014
  });
6980
- var DTODesignTokenGroup = z238.object({
6981
- id: z238.string(),
7015
+ var DTODesignTokenGroup = z239.object({
7016
+ id: z239.string(),
6982
7017
  tokenType: DesignTokenType,
6983
- persistentId: z238.string(),
6984
- isRoot: z238.boolean(),
6985
- brandId: z238.string(),
7018
+ persistentId: z239.string(),
7019
+ isRoot: z239.boolean(),
7020
+ brandId: z239.string(),
6986
7021
  meta: ObjectMeta,
6987
- childrenIds: z238.string().array()
7022
+ childrenIds: z239.string().array()
6988
7023
  });
6989
- var DTODesignTokenGroupListResponse = z238.object({
7024
+ var DTODesignTokenGroupListResponse = z239.object({
6990
7025
  groups: DTODesignTokenGroup.array()
6991
7026
  });
6992
- var DTODesignTokenGroupResponse = z238.object({
7027
+ var DTODesignTokenGroupResponse = z239.object({
6993
7028
  group: DTODesignTokenGroup
6994
7029
  });
6995
7030
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6996
- z238.object({
6997
- persistentId: z238.string(),
7031
+ z239.object({
7032
+ persistentId: z239.string(),
6998
7033
  meta: ObjectMeta,
6999
- brandId: z238.string(),
7000
- groupPersistentId: z238.string().optional()
7034
+ brandId: z239.string(),
7035
+ groupPersistentId: z239.string().optional()
7001
7036
  })
7002
7037
  );
7003
- var DTODesignTokenGroupCreatePayload = z238.object({
7004
- persistentId: z238.string(),
7038
+ var DTODesignTokenGroupCreatePayload = z239.object({
7039
+ persistentId: z239.string(),
7005
7040
  meta: ObjectMeta,
7006
- brandId: z238.string(),
7007
- parentId: z238.string().optional(),
7041
+ brandId: z239.string(),
7042
+ parentId: z239.string().optional(),
7008
7043
  tokenType: DesignTokenType,
7009
- childrenIds: z238.string().array()
7044
+ childrenIds: z239.string().array()
7010
7045
  });
7011
7046
 
7012
7047
  // src/api/dto/documentation/analytics-v2.ts
7013
- import { z as z239 } from "zod";
7014
- var DTODocumentationAnalyticsTimeFrame = z239.object({
7015
- start: z239.coerce.date(),
7016
- end: z239.coerce.date().optional()
7048
+ import { z as z240 } from "zod";
7049
+ var DTODocumentationAnalyticsTimeFrame = z240.object({
7050
+ start: z240.coerce.date(),
7051
+ end: z240.coerce.date().optional()
7017
7052
  });
7018
- var DTOPublishedDocVisitData = z239.object({
7019
- timestamp: z239.coerce.date(),
7020
- versionId: z239.string(),
7021
- locale: z239.string().optional(),
7022
- visits: z239.number(),
7023
- sessions: z239.number()
7053
+ var DTOPublishedDocVisitData = z240.object({
7054
+ timestamp: z240.coerce.date(),
7055
+ versionId: z240.string(),
7056
+ locale: z240.string().optional(),
7057
+ visits: z240.number(),
7058
+ sessions: z240.number()
7024
7059
  });
7025
7060
  var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
7026
- pagePersistentId: z239.string()
7061
+ pagePersistentId: z240.string()
7027
7062
  });
7028
- var DTOPublishedDocVisitHeatMapDay = z239.number().array().length(12);
7029
- var DTOPublishedDocVisitHeatMapWeek = z239.object({
7063
+ var DTOPublishedDocVisitHeatMapDay = z240.number().array().length(12);
7064
+ var DTOPublishedDocVisitHeatMapWeek = z240.object({
7030
7065
  /**
7031
7066
  * For which timeframe it was calculated
7032
7067
  */
@@ -7039,65 +7074,65 @@ var DTOPublishedDocVisitHeatMapWeek = z239.object({
7039
7074
  sat: DTOPublishedDocVisitHeatMapDay,
7040
7075
  sun: DTOPublishedDocVisitHeatMapDay
7041
7076
  });
7042
- var DTOPublishedDocAnalyticsComparisonData = z239.object({
7077
+ var DTOPublishedDocAnalyticsComparisonData = z240.object({
7043
7078
  /**
7044
7079
  * For which timeframe it was calculated
7045
7080
  */
7046
7081
  timeFrame: DTODocumentationAnalyticsTimeFrame,
7047
- priorVisitCount: z239.number(),
7048
- priorSessionCount: z239.number(),
7049
- currentVisitCount: z239.number(),
7050
- currentSessionCount: z239.number()
7082
+ priorVisitCount: z240.number(),
7083
+ priorSessionCount: z240.number(),
7084
+ currentVisitCount: z240.number(),
7085
+ currentSessionCount: z240.number()
7051
7086
  });
7052
7087
  var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
7053
- pagePersistentId: z239.string()
7088
+ pagePersistentId: z240.string()
7054
7089
  });
7055
- var DTODocumentationPageAnalyticsResponse = z239.object({
7090
+ var DTODocumentationPageAnalyticsResponse = z240.object({
7056
7091
  globalAnalytics: DTOPublishedDocVisitData.array(),
7057
7092
  pageAnalytics: DTOPublishedDocPageVisitData.array(),
7058
7093
  heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
7059
7094
  comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
7060
7095
  pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
7061
7096
  });
7062
- var DTODocumentationAnalyticsRequest = z239.object({
7063
- timeFrames: z239.array(DTODocumentationAnalyticsTimeFrame)
7097
+ var DTODocumentationAnalyticsRequest = z240.object({
7098
+ timeFrames: z240.array(DTODocumentationAnalyticsTimeFrame)
7064
7099
  });
7065
7100
 
7066
7101
  // src/api/dto/documentation/analytics.ts
7067
- import { z as z240 } from "zod";
7068
- var DTODocumentationPageAnalyticsDifference = z240.object({
7069
- startDate: z240.coerce.date(),
7070
- endDate: z240.coerce.date().optional(),
7071
- currentVisitCount: z240.number(),
7072
- currentSessionCount: z240.number(),
7073
- priorVisitCount: z240.number(),
7074
- priorSessionCount: z240.number()
7102
+ import { z as z241 } from "zod";
7103
+ var DTODocumentationPageAnalyticsDifference = z241.object({
7104
+ startDate: z241.coerce.date(),
7105
+ endDate: z241.coerce.date().optional(),
7106
+ currentVisitCount: z241.number(),
7107
+ currentSessionCount: z241.number(),
7108
+ priorVisitCount: z241.number(),
7109
+ priorSessionCount: z241.number()
7075
7110
  });
7076
- var DTODocumentationPageIntervalDifferenceResponse = z240.object({
7077
- differences: z240.array(DTODocumentationPageAnalyticsDifference)
7111
+ var DTODocumentationPageIntervalDifferenceResponse = z241.object({
7112
+ differences: z241.array(DTODocumentationPageAnalyticsDifference)
7078
7113
  });
7079
7114
 
7080
7115
  // src/api/dto/documentation/anchor.ts
7081
- import { z as z241 } from "zod";
7116
+ import { z as z242 } from "zod";
7082
7117
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
7083
- var DTOGetDocumentationPageAnchorsResponse = z241.object({
7084
- anchors: z241.array(DTODocumentationPageAnchor)
7118
+ var DTOGetDocumentationPageAnchorsResponse = z242.object({
7119
+ anchors: z242.array(DTODocumentationPageAnchor)
7085
7120
  });
7086
7121
 
7087
7122
  // src/api/dto/documentation/approvals.ts
7088
- import { z as z242 } from "zod";
7089
- var DTODocumentationPageApprovalState = z242.object({
7123
+ import { z as z243 } from "zod";
7124
+ var DTODocumentationPageApprovalState = z243.object({
7090
7125
  approvalState: DocumentationPageApprovalState,
7091
- pagePersistentId: z242.string(),
7092
- updatedByUserId: z242.string(),
7093
- designSystemVersionId: z242.string(),
7094
- updatedAt: z242.coerce.date(),
7095
- createdAt: z242.coerce.date()
7096
- });
7097
- var DTODocumentationGroupApprovalState = z242.object({
7098
- persistentId: z242.string(),
7099
- groupPersistentId: z242.string(),
7100
- designSystemVersionId: z242.string(),
7126
+ pagePersistentId: z243.string(),
7127
+ updatedByUserId: z243.string(),
7128
+ designSystemVersionId: z243.string(),
7129
+ updatedAt: z243.coerce.date(),
7130
+ createdAt: z243.coerce.date()
7131
+ });
7132
+ var DTODocumentationGroupApprovalState = z243.object({
7133
+ persistentId: z243.string(),
7134
+ groupPersistentId: z243.string(),
7135
+ designSystemVersionId: z243.string(),
7101
7136
  approvalState: DocumentationPageApprovalState
7102
7137
  });
7103
7138
 
@@ -7105,68 +7140,68 @@ var DTODocumentationGroupApprovalState = z242.object({
7105
7140
  var DTOPageBlockItemV2 = PageBlockItemV2;
7106
7141
 
7107
7142
  // src/api/dto/documentation/documentation-page-snapshot.ts
7108
- import { z as z247 } from "zod";
7143
+ import { z as z248 } from "zod";
7109
7144
 
7110
7145
  // src/api/dto/elements/documentation/page-v2.ts
7111
- import { z as z246 } from "zod";
7146
+ import { z as z247 } from "zod";
7112
7147
 
7113
7148
  // src/api/dto/elements/documentation/draft-state.ts
7114
- import { z as z244 } from "zod";
7149
+ import { z as z245 } from "zod";
7115
7150
 
7116
7151
  // src/api/dto/elements/documentation/item-configuration-v2.ts
7117
- import { z as z243 } from "zod";
7152
+ import { z as z244 } from "zod";
7118
7153
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
7119
- var DTODocumentationItemConfigurationV2 = z243.object({
7120
- showSidebar: z243.boolean(),
7121
- isPrivate: z243.boolean(),
7122
- isHidden: z243.boolean(),
7154
+ var DTODocumentationItemConfigurationV2 = z244.object({
7155
+ showSidebar: z244.boolean(),
7156
+ isPrivate: z244.boolean(),
7157
+ isHidden: z244.boolean(),
7123
7158
  header: DTODocumentationItemHeaderV2
7124
7159
  });
7125
7160
 
7126
7161
  // src/api/dto/elements/documentation/draft-state.ts
7127
- var DTODocumentationDraftChangeType = z244.enum(["Created", "Updated", "Deleted"]);
7128
- var DTODocumentationDraftStateCreated = z244.object({
7129
- changeType: z244.literal(DTODocumentationDraftChangeType.enum.Created)
7130
- });
7131
- var DTODocumentationDraftStateUpdated = z244.object({
7132
- changeType: z244.literal(DTODocumentationDraftChangeType.enum.Updated),
7133
- changes: z244.object({
7134
- previousTitle: z244.string().optional(),
7162
+ var DTODocumentationDraftChangeType = z245.enum(["Created", "Updated", "Deleted"]);
7163
+ var DTODocumentationDraftStateCreated = z245.object({
7164
+ changeType: z245.literal(DTODocumentationDraftChangeType.enum.Created)
7165
+ });
7166
+ var DTODocumentationDraftStateUpdated = z245.object({
7167
+ changeType: z245.literal(DTODocumentationDraftChangeType.enum.Updated),
7168
+ changes: z245.object({
7169
+ previousTitle: z245.string().optional(),
7135
7170
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
7136
- previousContentHash: z244.string().optional()
7171
+ previousContentHash: z245.string().optional()
7137
7172
  })
7138
7173
  });
7139
- var DTODocumentationDraftStateDeleted = z244.object({
7140
- changeType: z244.literal(DTODocumentationDraftChangeType.enum.Deleted),
7141
- deletedAt: z244.coerce.date(),
7142
- deletedByUserId: z244.string()
7174
+ var DTODocumentationDraftStateDeleted = z245.object({
7175
+ changeType: z245.literal(DTODocumentationDraftChangeType.enum.Deleted),
7176
+ deletedAt: z245.coerce.date(),
7177
+ deletedByUserId: z245.string()
7143
7178
  });
7144
- var DTODocumentationDraftState = z244.discriminatedUnion("changeType", [
7179
+ var DTODocumentationDraftState = z245.discriminatedUnion("changeType", [
7145
7180
  DTODocumentationDraftStateCreated,
7146
7181
  DTODocumentationDraftStateUpdated,
7147
7182
  DTODocumentationDraftStateDeleted
7148
7183
  ]);
7149
7184
 
7150
7185
  // src/api/dto/elements/documentation/metadata.ts
7151
- import { z as z245 } from "zod";
7152
- var DTODocumentationPublishMetadata = z245.object({
7153
- lastPublishedByUserId: z245.string(),
7154
- lastPublishedAt: z245.coerce.date()
7186
+ import { z as z246 } from "zod";
7187
+ var DTODocumentationPublishMetadata = z246.object({
7188
+ lastPublishedByUserId: z246.string(),
7189
+ lastPublishedAt: z246.coerce.date()
7155
7190
  });
7156
7191
 
7157
7192
  // src/api/dto/elements/documentation/page-v2.ts
7158
- var DTODocumentationPageV2 = z246.object({
7159
- id: z246.string(),
7160
- persistentId: z246.string(),
7161
- designSystemVersionId: z246.string(),
7162
- title: z246.string(),
7193
+ var DTODocumentationPageV2 = z247.object({
7194
+ id: z247.string(),
7195
+ persistentId: z247.string(),
7196
+ designSystemVersionId: z247.string(),
7197
+ title: z247.string(),
7163
7198
  configuration: DTODocumentationItemConfigurationV2,
7164
- shortPersistentId: z246.string(),
7165
- slug: z246.string().optional(),
7166
- userSlug: z246.string().optional(),
7167
- createdAt: z246.coerce.date(),
7168
- updatedAt: z246.coerce.date(),
7169
- path: z246.string(),
7199
+ shortPersistentId: z247.string(),
7200
+ slug: z247.string().optional(),
7201
+ userSlug: z247.string().optional(),
7202
+ createdAt: z247.coerce.date(),
7203
+ updatedAt: z247.coerce.date(),
7204
+ path: z247.string(),
7170
7205
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7171
7206
  draftState: DTODocumentationDraftState.optional(),
7172
7207
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -7174,267 +7209,267 @@ var DTODocumentationPageV2 = z246.object({
7174
7209
  /** Defines the approval state of the documentation page */
7175
7210
  approvalState: DTODocumentationPageApprovalState.optional(),
7176
7211
  /** Id of the page document room */
7177
- liveblocksRoomId: z246.string().optional(),
7212
+ liveblocksRoomId: z247.string().optional(),
7178
7213
  // Backward compatibility
7179
- type: z246.literal("Page")
7214
+ type: z247.literal("Page")
7180
7215
  });
7181
- var DTOCreateDocumentationPageInputV2 = z246.object({
7216
+ var DTOCreateDocumentationPageInputV2 = z247.object({
7182
7217
  // Identifier
7183
- persistentId: z246.string(),
7218
+ persistentId: z247.string(),
7184
7219
  // Page properties
7185
- title: z246.string(),
7220
+ title: z247.string(),
7186
7221
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
7187
7222
  // Page placement properties
7188
- parentPersistentId: z246.string(),
7189
- afterPersistentId: z246.string().nullish()
7223
+ parentPersistentId: z247.string(),
7224
+ afterPersistentId: z247.string().nullish()
7190
7225
  });
7191
- var DTOUpdateDocumentationPageInputV2 = z246.object({
7226
+ var DTOUpdateDocumentationPageInputV2 = z247.object({
7192
7227
  // Identifier of the page to update
7193
- id: z246.string(),
7228
+ id: z247.string(),
7194
7229
  // Page properties
7195
- title: z246.string().optional(),
7230
+ title: z247.string().optional(),
7196
7231
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
7197
7232
  });
7198
- var DTOUpdateDocumentationPageDocumentInputV2 = z246.object({
7233
+ var DTOUpdateDocumentationPageDocumentInputV2 = z247.object({
7199
7234
  // Identifier of the page to update
7200
- id: z246.string(),
7235
+ id: z247.string(),
7201
7236
  // Page properties
7202
- documentItems: z246.array(DocumentationPageContentItem)
7237
+ documentItems: z247.array(DocumentationPageContentItem)
7203
7238
  });
7204
- var DTOMoveDocumentationPageInputV2 = z246.object({
7239
+ var DTOMoveDocumentationPageInputV2 = z247.object({
7205
7240
  // Identifier of the group to update
7206
- id: z246.string(),
7241
+ id: z247.string(),
7207
7242
  // Page placement properties
7208
- parentPersistentId: z246.string(),
7209
- afterPersistentId: z246.string().nullish()
7243
+ parentPersistentId: z247.string(),
7244
+ afterPersistentId: z247.string().nullish()
7210
7245
  });
7211
- var DTODuplicateDocumentationPageInputV2 = z246.object({
7246
+ var DTODuplicateDocumentationPageInputV2 = z247.object({
7212
7247
  // Identifier of the page to duplicate from
7213
- id: z246.string(),
7248
+ id: z247.string(),
7214
7249
  // New page persistent id
7215
- persistentId: z246.string(),
7250
+ persistentId: z247.string(),
7216
7251
  // Page placement properties
7217
- parentPersistentId: z246.string(),
7218
- afterPersistentId: z246.string().nullish()
7252
+ parentPersistentId: z247.string(),
7253
+ afterPersistentId: z247.string().nullish()
7219
7254
  });
7220
- var DTODeleteDocumentationPageInputV2 = z246.object({
7255
+ var DTODeleteDocumentationPageInputV2 = z247.object({
7221
7256
  // Identifier
7222
- id: z246.string()
7257
+ id: z247.string()
7223
7258
  });
7224
- var DTORestoreDocumentationPageInput = z246.object({
7225
- persistentId: z246.string(),
7226
- snapshotId: z246.string().optional()
7259
+ var DTORestoreDocumentationPageInput = z247.object({
7260
+ persistentId: z247.string(),
7261
+ snapshotId: z247.string().optional()
7227
7262
  });
7228
- var DTORestoreDocumentationGroupInput = z246.object({
7229
- persistentId: z246.string(),
7230
- snapshotId: z246.string().optional()
7263
+ var DTORestoreDocumentationGroupInput = z247.object({
7264
+ persistentId: z247.string(),
7265
+ snapshotId: z247.string().optional()
7231
7266
  });
7232
- var DTODocumentationPageApprovalStateChangeInput = z246.object({
7233
- persistentId: z246.string(),
7267
+ var DTODocumentationPageApprovalStateChangeInput = z247.object({
7268
+ persistentId: z247.string(),
7234
7269
  approvalState: DocumentationPageApprovalState.optional()
7235
7270
  });
7236
7271
 
7237
7272
  // src/api/dto/documentation/documentation-page-snapshot.ts
7238
- var DTODocumentationPageSnapshot = z247.object({
7239
- id: z247.string(),
7240
- designSystemVersionId: z247.string(),
7241
- createdAt: z247.string(),
7242
- updatedAt: z247.string(),
7273
+ var DTODocumentationPageSnapshot = z248.object({
7274
+ id: z248.string(),
7275
+ designSystemVersionId: z248.string(),
7276
+ createdAt: z248.string(),
7277
+ updatedAt: z248.string(),
7243
7278
  documentationPage: DTODocumentationPageV2,
7244
- pageContentHash: z247.string(),
7279
+ pageContentHash: z248.string(),
7245
7280
  reason: DesignElementSnapshotReason
7246
7281
  });
7247
7282
 
7248
7283
  // src/api/dto/documentation/link-preview.ts
7249
- import { z as z248 } from "zod";
7250
- var DTODocumentationLinkPreviewResponse = z248.object({
7284
+ import { z as z249 } from "zod";
7285
+ var DTODocumentationLinkPreviewResponse = z249.object({
7251
7286
  linkPreview: DocumentationLinkPreview
7252
7287
  });
7253
- var DTODocumentationLinkPreviewRequest = z248.object({
7254
- url: z248.string().optional(),
7255
- documentationItemPersistentId: z248.string().optional()
7288
+ var DTODocumentationLinkPreviewRequest = z249.object({
7289
+ url: z249.string().optional(),
7290
+ documentationItemPersistentId: z249.string().optional()
7256
7291
  });
7257
7292
 
7258
7293
  // src/api/dto/documentation/publish.ts
7259
- import { z as z252 } from "zod";
7294
+ import { z as z253 } from "zod";
7260
7295
 
7261
7296
  // src/api/dto/export/exporter.ts
7262
- import { z as z249 } from "zod";
7263
- var DTOExporterType = z249.enum(["documentation", "code"]);
7264
- var DTOExporterSource = z249.enum(["git", "upload"]);
7265
- var DTOExporterMembershipRole = z249.enum(["Owner", "OwnerArchived", "User"]);
7266
- var DTOExporterListQuery = z249.object({
7267
- limit: z249.coerce.number().optional(),
7268
- offset: z249.coerce.number().optional(),
7297
+ import { z as z250 } from "zod";
7298
+ var DTOExporterType = z250.enum(["documentation", "code"]);
7299
+ var DTOExporterSource = z250.enum(["git", "upload"]);
7300
+ var DTOExporterMembershipRole = z250.enum(["Owner", "OwnerArchived", "User"]);
7301
+ var DTOExporterListQuery = z250.object({
7302
+ limit: z250.coerce.number().optional(),
7303
+ offset: z250.coerce.number().optional(),
7269
7304
  type: DTOExporterType.optional(),
7270
- search: z249.string().optional()
7305
+ search: z250.string().optional()
7271
7306
  });
7272
- var DTOExporter = z249.object({
7273
- id: z249.string(),
7274
- name: z249.string(),
7275
- isPrivate: z249.boolean(),
7307
+ var DTOExporter = z250.object({
7308
+ id: z250.string(),
7309
+ name: z250.string(),
7310
+ isPrivate: z250.boolean(),
7276
7311
  exporterType: DTOExporterType,
7277
- isDefaultDocumentationExporter: z249.boolean(),
7278
- iconURL: z249.string().optional(),
7312
+ isDefaultDocumentationExporter: z250.boolean(),
7313
+ iconURL: z250.string().optional(),
7279
7314
  configurationProperties: PulsarContributionConfigurationProperty.array(),
7280
7315
  properties: DTOExporterPropertyDefinition.array().optional(),
7281
7316
  customBlocks: PulsarCustomBlock.array(),
7282
- blockVariants: z249.record(z249.string(), PulsarContributionVariant.array()),
7283
- homepage: z249.string().optional(),
7284
- organization: z249.string().optional(),
7285
- packageId: z249.string().optional(),
7286
- tags: z249.array(z249.string()),
7287
- author: z249.string().optional(),
7288
- version: z249.string(),
7289
- description: z249.string(),
7290
- usesLocale: z249.boolean(),
7291
- usesBrands: z249.boolean(),
7292
- usesThemes: z249.boolean(),
7293
- readme: z249.string().optional(),
7294
- routingVersion: z249.string().optional(),
7317
+ blockVariants: z250.record(z250.string(), PulsarContributionVariant.array()),
7318
+ homepage: z250.string().optional(),
7319
+ organization: z250.string().optional(),
7320
+ packageId: z250.string().optional(),
7321
+ tags: z250.array(z250.string()),
7322
+ author: z250.string().optional(),
7323
+ version: z250.string(),
7324
+ description: z250.string(),
7325
+ usesLocale: z250.boolean(),
7326
+ usesBrands: z250.boolean(),
7327
+ usesThemes: z250.boolean(),
7328
+ readme: z250.string().optional(),
7329
+ routingVersion: z250.string().optional(),
7295
7330
  source: DTOExporterSource,
7296
- gitProvider: z249.string().optional(),
7297
- gitUrl: nullishToOptional(z249.string()),
7298
- gitBranch: nullishToOptional(z249.string()),
7299
- gitDirectory: nullishToOptional(z249.string()),
7300
- isDeprecated: z249.boolean(),
7301
- deprecationNote: z249.string().optional(),
7302
- replacementExporterId: z249.string().optional()
7303
- });
7304
- var DTOExporterMembership = z249.object({
7305
- workspaceId: z249.string(),
7306
- exporterId: z249.string(),
7331
+ gitProvider: z250.string().optional(),
7332
+ gitUrl: nullishToOptional(z250.string()),
7333
+ gitBranch: nullishToOptional(z250.string()),
7334
+ gitDirectory: nullishToOptional(z250.string()),
7335
+ isDeprecated: z250.boolean(),
7336
+ deprecationNote: z250.string().optional(),
7337
+ replacementExporterId: z250.string().optional()
7338
+ });
7339
+ var DTOExporterMembership = z250.object({
7340
+ workspaceId: z250.string(),
7341
+ exporterId: z250.string(),
7307
7342
  role: DTOExporterMembershipRole
7308
7343
  });
7309
- var DTOExporterResponse = z249.object({
7344
+ var DTOExporterResponse = z250.object({
7310
7345
  exporter: DTOExporter,
7311
7346
  membership: DTOExporterMembership
7312
7347
  });
7313
- var DTOExporterListResponse = z249.object({
7348
+ var DTOExporterListResponse = z250.object({
7314
7349
  exporters: DTOExporter.array(),
7315
7350
  membership: DTOExporterMembership.array(),
7316
- total: z249.number()
7351
+ total: z250.number()
7317
7352
  });
7318
- var DTOExporterGitProviderEnum = z249.enum(["github", "gitlab", "bitbucket", "azure"]);
7319
- var DTOExporterCreateInput = z249.object({
7320
- url: z249.string(),
7353
+ var DTOExporterGitProviderEnum = z250.enum(["github", "gitlab", "bitbucket", "azure"]);
7354
+ var DTOExporterCreateInput = z250.object({
7355
+ url: z250.string(),
7321
7356
  provider: DTOExporterGitProviderEnum
7322
7357
  });
7323
- var DTOExporterUpdateInput = z249.object({
7324
- url: z249.string().optional()
7358
+ var DTOExporterUpdateInput = z250.object({
7359
+ url: z250.string().optional()
7325
7360
  });
7326
- var DTOExporterDeprecationInput = z249.object({
7327
- isDeprecated: z249.boolean(),
7328
- deprecationNote: z249.string().optional(),
7329
- replacementExporterId: z249.string().optional()
7361
+ var DTOExporterDeprecationInput = z250.object({
7362
+ isDeprecated: z250.boolean(),
7363
+ deprecationNote: z250.string().optional(),
7364
+ replacementExporterId: z250.string().optional()
7330
7365
  });
7331
7366
 
7332
7367
  // src/api/dto/export/filter.ts
7333
7368
  var DTOExportJobsListFilter = ExportJobFindByFilter;
7334
7369
 
7335
7370
  // src/api/dto/export/job.ts
7336
- import { z as z250 } from "zod";
7337
- var DTOExportJobCreatedBy = z250.object({
7338
- userId: z250.string(),
7339
- userName: z250.string()
7371
+ import { z as z251 } from "zod";
7372
+ var DTOExportJobCreatedBy = z251.object({
7373
+ userId: z251.string(),
7374
+ userName: z251.string()
7340
7375
  });
7341
- var DTOExportJobDesignSystemPreview = z250.object({
7342
- id: z250.string(),
7376
+ var DTOExportJobDesignSystemPreview = z251.object({
7377
+ id: z251.string(),
7343
7378
  meta: ObjectMeta
7344
7379
  });
7345
- var DTOExportJobDesignSystemVersionPreview = z250.object({
7346
- id: z250.string(),
7380
+ var DTOExportJobDesignSystemVersionPreview = z251.object({
7381
+ id: z251.string(),
7347
7382
  meta: ObjectMeta,
7348
- version: z250.string(),
7349
- isReadonly: z250.boolean()
7383
+ version: z251.string(),
7384
+ isReadonly: z251.boolean()
7350
7385
  });
7351
- var DTOExportJobDestinations = z250.object({
7386
+ var DTOExportJobDestinations = z251.object({
7352
7387
  s3: ExporterDestinationS3.optional(),
7353
7388
  azure: ExporterDestinationAzure.optional(),
7354
7389
  bitbucket: ExporterDestinationBitbucket.optional(),
7355
7390
  github: ExporterDestinationGithub.optional(),
7356
7391
  gitlab: ExporterDestinationGitlab.optional(),
7357
7392
  documentation: ExporterDestinationDocs.optional(),
7358
- webhookUrl: z250.string().optional()
7393
+ webhookUrl: z251.string().optional()
7359
7394
  });
7360
7395
  var DTOExportJobResult = ExportJobResult.omit({
7361
7396
  sndocs: true
7362
7397
  }).extend({
7363
7398
  documentation: ExportJobDocsDestinationResult.optional()
7364
7399
  });
7365
- var DTOExportJob = z250.object({
7366
- id: z250.string(),
7367
- createdAt: z250.coerce.date(),
7368
- finishedAt: z250.coerce.date().optional(),
7369
- index: z250.number().optional(),
7400
+ var DTOExportJob = z251.object({
7401
+ id: z251.string(),
7402
+ createdAt: z251.coerce.date(),
7403
+ finishedAt: z251.coerce.date().optional(),
7404
+ index: z251.number().optional(),
7370
7405
  status: ExportJobStatus,
7371
- estimatedExecutionTime: z250.number().optional(),
7406
+ estimatedExecutionTime: z251.number().optional(),
7372
7407
  createdBy: DTOExportJobCreatedBy.optional(),
7373
7408
  designSystem: DTOExportJobDesignSystemPreview,
7374
7409
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
7375
7410
  destinations: DTOExportJobDestinations,
7376
- exporterId: z250.string(),
7377
- scheduleId: z250.string().optional(),
7411
+ exporterId: z251.string(),
7412
+ scheduleId: z251.string().optional(),
7378
7413
  result: DTOExportJobResult.optional(),
7379
- brandPersistentId: z250.string().optional(),
7380
- themePersistentId: z250.string().optional(),
7381
- themePersistentIds: z250.string().array().optional(),
7414
+ brandPersistentId: z251.string().optional(),
7415
+ themePersistentId: z251.string().optional(),
7416
+ themePersistentIds: z251.string().array().optional(),
7382
7417
  exporterPropertyValues: DTOExporterPropertyValueMap.optional()
7383
7418
  });
7384
- var DTOExportJobResponse = z250.object({
7419
+ var DTOExportJobResponse = z251.object({
7385
7420
  job: DTOExportJob
7386
7421
  });
7387
- var DTOExportJobResponseLegacy = z250.object({
7388
- job: z250.object({
7389
- id: z250.string(),
7422
+ var DTOExportJobResponseLegacy = z251.object({
7423
+ job: z251.object({
7424
+ id: z251.string(),
7390
7425
  status: ExportJobStatus
7391
7426
  })
7392
7427
  });
7393
- var DTOExportJobCreateInput = z250.object({
7394
- designSystemId: z250.string(),
7395
- designSystemVersionId: z250.string(),
7396
- exporterId: z250.string(),
7397
- brandId: z250.string().optional(),
7398
- themeId: z250.string().optional(),
7399
- themePersistentIds: z250.string().array().optional(),
7428
+ var DTOExportJobCreateInput = z251.object({
7429
+ designSystemId: z251.string(),
7430
+ designSystemVersionId: z251.string(),
7431
+ exporterId: z251.string(),
7432
+ brandId: z251.string().optional(),
7433
+ themeId: z251.string().optional(),
7434
+ themePersistentIds: z251.string().array().optional(),
7400
7435
  destinations: DTOExportJobDestinations,
7401
7436
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7402
- previewMode: z250.boolean().optional()
7437
+ previewMode: z251.boolean().optional()
7403
7438
  });
7404
7439
 
7405
7440
  // src/api/dto/export/pipeline.ts
7406
- import { z as z251 } from "zod";
7407
- var DTOPipelineListQuery = z251.object({
7408
- designSystemId: z251.string().optional(),
7409
- exporterId: z251.string().optional(),
7410
- latestJobsLimit: z251.coerce.number().optional()
7411
- });
7412
- var DTOPipeline = z251.object({
7413
- id: z251.string(),
7414
- name: z251.string(),
7441
+ import { z as z252 } from "zod";
7442
+ var DTOPipelineListQuery = z252.object({
7443
+ designSystemId: z252.string().optional(),
7444
+ exporterId: z252.string().optional(),
7445
+ latestJobsLimit: z252.coerce.number().optional()
7446
+ });
7447
+ var DTOPipeline = z252.object({
7448
+ id: z252.string(),
7449
+ name: z252.string(),
7415
7450
  eventType: PipelineEventType,
7416
- isEnabled: z251.boolean(),
7417
- workspaceId: z251.string(),
7418
- designSystemId: z251.string(),
7419
- exporterId: z251.string(),
7420
- brandPersistentId: z251.string().optional(),
7421
- themePersistentId: z251.string().optional(),
7422
- themePersistentIds: z251.string().array().optional(),
7451
+ isEnabled: z252.boolean(),
7452
+ workspaceId: z252.string(),
7453
+ designSystemId: z252.string(),
7454
+ exporterId: z252.string(),
7455
+ brandPersistentId: z252.string().optional(),
7456
+ themePersistentId: z252.string().optional(),
7457
+ themePersistentIds: z252.string().array().optional(),
7423
7458
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7424
7459
  ...ExportDestinationsMap.shape,
7425
7460
  latestJobs: DTOExportJob.array(),
7426
- isExporterDeprecated: z251.boolean()
7461
+ isExporterDeprecated: z252.boolean()
7427
7462
  });
7428
- var DTOPipelineListResponse = z251.object({
7463
+ var DTOPipelineListResponse = z252.object({
7429
7464
  pipelines: DTOPipeline.array()
7430
7465
  });
7431
- var DTOPipelineResponse = z251.object({
7466
+ var DTOPipelineResponse = z252.object({
7432
7467
  pipeline: DTOPipeline
7433
7468
  });
7434
7469
 
7435
7470
  // src/api/dto/documentation/publish.ts
7436
7471
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
7437
- var DTOPublishDocumentationRequest = z252.object({
7472
+ var DTOPublishDocumentationRequest = z253.object({
7438
7473
  environment: PublishedDocEnvironment,
7439
7474
  /**
7440
7475
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -7442,66 +7477,66 @@ var DTOPublishDocumentationRequest = z252.object({
7442
7477
  */
7443
7478
  changes: DTOPublishDocumentationChanges.optional()
7444
7479
  });
7445
- var DTOPublishDocumentationResponse = z252.object({
7480
+ var DTOPublishDocumentationResponse = z253.object({
7446
7481
  job: DTOExportJob
7447
7482
  });
7448
7483
 
7449
7484
  // src/api/dto/documentation/room.ts
7450
- import { z as z253 } from "zod";
7451
- var DTODocumentationPageRoom = z253.object({
7452
- id: z253.string()
7485
+ import { z as z254 } from "zod";
7486
+ var DTODocumentationPageRoom = z254.object({
7487
+ id: z254.string()
7453
7488
  });
7454
- var DTODocumentationPageRoomResponse = z253.object({
7489
+ var DTODocumentationPageRoomResponse = z254.object({
7455
7490
  room: DTODocumentationPageRoom
7456
7491
  });
7457
7492
 
7458
7493
  // src/api/dto/elements/components/figma-component-group.ts
7459
- import z254 from "zod";
7460
- var DTOFigmaComponentGroup = z254.object({
7461
- id: z254.string(),
7462
- designSystemVersionId: z254.string(),
7463
- persistentId: z254.string(),
7464
- isRoot: z254.boolean(),
7465
- brandId: z254.string(),
7494
+ import z255 from "zod";
7495
+ var DTOFigmaComponentGroup = z255.object({
7496
+ id: z255.string(),
7497
+ designSystemVersionId: z255.string(),
7498
+ persistentId: z255.string(),
7499
+ isRoot: z255.boolean(),
7500
+ brandId: z255.string(),
7466
7501
  meta: DTOObjectMeta,
7467
- childrenIds: z254.string().array()
7502
+ childrenIds: z255.string().array()
7468
7503
  });
7469
- var DTOFigmaComponentGroupListResponse = z254.object({
7504
+ var DTOFigmaComponentGroupListResponse = z255.object({
7470
7505
  groups: DTOFigmaComponentGroup.array()
7471
7506
  });
7472
7507
 
7473
7508
  // src/api/dto/elements/components/figma-component.ts
7474
- import { z as z255 } from "zod";
7509
+ import { z as z256 } from "zod";
7475
7510
  var DTOFigmaComponentProperty = FigmaComponentProperty;
7476
- var DTOFigmaComponentPropertyMap = z255.record(DTOFigmaComponentProperty);
7477
- var DTOFigmaComponent = z255.object({
7478
- id: z255.string(),
7479
- persistentId: z255.string(),
7480
- designSystemVersionId: z255.string(),
7481
- brandId: z255.string(),
7482
- thumbnailUrl: z255.string().optional(),
7483
- svgUrl: z255.string().optional(),
7484
- exportProperties: z255.object({
7485
- isAsset: z255.boolean()
7511
+ var DTOFigmaComponentPropertyMap = z256.record(DTOFigmaComponentProperty);
7512
+ var DTOFigmaComponent = z256.object({
7513
+ id: z256.string(),
7514
+ persistentId: z256.string(),
7515
+ designSystemVersionId: z256.string(),
7516
+ brandId: z256.string(),
7517
+ thumbnailUrl: z256.string().optional(),
7518
+ svgUrl: z256.string().optional(),
7519
+ exportProperties: z256.object({
7520
+ isAsset: z256.boolean()
7486
7521
  }),
7487
- createdAt: z255.coerce.date(),
7488
- updatedAt: z255.coerce.date(),
7522
+ createdAt: z256.coerce.date(),
7523
+ updatedAt: z256.coerce.date(),
7489
7524
  meta: ObjectMeta,
7490
7525
  originComponent: FigmaComponentOrigin.optional(),
7491
- parentComponentPersistentId: z255.string().optional(),
7492
- childrenPersistentIds: z255.string().array().optional(),
7526
+ parentComponentPersistentId: z256.string().optional(),
7527
+ childrenPersistentIds: z256.string().array().optional(),
7493
7528
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
7494
- variantPropertyValues: z255.record(z255.string()).optional()
7529
+ variantPropertyValues: z256.record(z256.string()).optional()
7495
7530
  });
7496
- var DTOFigmaComponentListResponse = z255.object({
7531
+ var DTOFigmaComponentListResponse = z256.object({
7497
7532
  components: DTOFigmaComponent.array()
7498
7533
  });
7499
7534
 
7500
7535
  // src/api/dto/elements/documentation/group-action.ts
7501
- import { z as z257 } from "zod";
7536
+ import { z as z258 } from "zod";
7502
7537
 
7503
7538
  // src/api/dto/elements/documentation/group-v2.ts
7504
- import { z as z256 } from "zod";
7539
+ import { z as z257 } from "zod";
7505
7540
  var DTODocumentationGroupV2 = ElementGroup.omit({
7506
7541
  sortOrder: true,
7507
7542
  parentPersistentId: true,
@@ -7511,13 +7546,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
7511
7546
  data: true,
7512
7547
  shortPersistentId: true
7513
7548
  }).extend({
7514
- title: z256.string(),
7515
- isRoot: z256.boolean(),
7516
- childrenIds: z256.array(z256.string()),
7549
+ title: z257.string(),
7550
+ isRoot: z257.boolean(),
7551
+ childrenIds: z257.array(z257.string()),
7517
7552
  groupBehavior: DocumentationGroupBehavior,
7518
- shortPersistentId: z256.string(),
7553
+ shortPersistentId: z257.string(),
7519
7554
  configuration: DTODocumentationItemConfigurationV2,
7520
- type: z256.literal("Group"),
7555
+ type: z257.literal("Group"),
7521
7556
  /** Defined when a group has changed since last publish and can be included into a partial publish */
7522
7557
  draftState: DTODocumentationDraftState.optional(),
7523
7558
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -7525,127 +7560,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
7525
7560
  //** An approval state for frontend to utilize. */
7526
7561
  approvalState: DTODocumentationGroupApprovalState.optional()
7527
7562
  });
7528
- var DTOCreateDocumentationGroupInput = z256.object({
7563
+ var DTOCreateDocumentationGroupInput = z257.object({
7529
7564
  // Identifier
7530
- persistentId: z256.string(),
7565
+ persistentId: z257.string(),
7531
7566
  // Group properties
7532
- title: z256.string(),
7567
+ title: z257.string(),
7533
7568
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
7534
7569
  // Group placement properties
7535
- afterPersistentId: z256.string().nullish(),
7536
- parentPersistentId: z256.string()
7570
+ afterPersistentId: z257.string().nullish(),
7571
+ parentPersistentId: z257.string()
7537
7572
  });
7538
- var DTOUpdateDocumentationGroupInput = z256.object({
7573
+ var DTOUpdateDocumentationGroupInput = z257.object({
7539
7574
  // Identifier of the group to update
7540
- id: z256.string(),
7575
+ id: z257.string(),
7541
7576
  // Group properties
7542
- title: z256.string().optional(),
7577
+ title: z257.string().optional(),
7543
7578
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
7544
7579
  });
7545
- var DTOMoveDocumentationGroupInput = z256.object({
7580
+ var DTOMoveDocumentationGroupInput = z257.object({
7546
7581
  // Identifier of the group to update
7547
- id: z256.string(),
7582
+ id: z257.string(),
7548
7583
  // Group placement properties
7549
- parentPersistentId: z256.string(),
7550
- afterPersistentId: z256.string().nullish()
7584
+ parentPersistentId: z257.string(),
7585
+ afterPersistentId: z257.string().nullish()
7551
7586
  });
7552
- var DTODuplicateDocumentationGroupInput = z256.object({
7587
+ var DTODuplicateDocumentationGroupInput = z257.object({
7553
7588
  // Identifier of the group to duplicate from
7554
- id: z256.string(),
7589
+ id: z257.string(),
7555
7590
  // New group persistent id
7556
- persistentId: z256.string(),
7591
+ persistentId: z257.string(),
7557
7592
  // Group placement properties
7558
- afterPersistentId: z256.string().nullish(),
7559
- parentPersistentId: z256.string()
7593
+ afterPersistentId: z257.string().nullish(),
7594
+ parentPersistentId: z257.string()
7560
7595
  });
7561
- var DTOCreateDocumentationTabInput = z256.object({
7596
+ var DTOCreateDocumentationTabInput = z257.object({
7562
7597
  // New group persistent id
7563
- persistentId: z256.string(),
7598
+ persistentId: z257.string(),
7564
7599
  // If this is page, we will attempt to convert it to tab
7565
7600
  // If this is tab group, we will add a new tab to it
7566
- fromItemPersistentId: z256.string(),
7567
- tabName: z256.string()
7601
+ fromItemPersistentId: z257.string(),
7602
+ tabName: z257.string()
7568
7603
  });
7569
- var DTODeleteDocumentationTabGroupInput = z256.object({
7604
+ var DTODeleteDocumentationTabGroupInput = z257.object({
7570
7605
  // Deleted group id
7571
- id: z256.string()
7606
+ id: z257.string()
7572
7607
  });
7573
- var DTODeleteDocumentationGroupInput = z256.object({
7608
+ var DTODeleteDocumentationGroupInput = z257.object({
7574
7609
  // Identifier
7575
- id: z256.string(),
7610
+ id: z257.string(),
7576
7611
  // Deletion options
7577
- deleteSubtree: z256.boolean().default(false)
7612
+ deleteSubtree: z257.boolean().default(false)
7578
7613
  });
7579
7614
 
7580
7615
  // src/api/dto/elements/documentation/group-action.ts
7581
- var SuccessPayload = z257.object({
7582
- success: z257.literal(true)
7616
+ var SuccessPayload = z258.object({
7617
+ success: z258.literal(true)
7583
7618
  });
7584
- var DTODocumentationGroupCreateActionOutputV2 = z257.object({
7585
- type: z257.literal("DocumentationGroupCreate"),
7619
+ var DTODocumentationGroupCreateActionOutputV2 = z258.object({
7620
+ type: z258.literal("DocumentationGroupCreate"),
7586
7621
  output: SuccessPayload
7587
7622
  });
7588
- var DTODocumentationTabCreateActionOutputV2 = z257.object({
7589
- type: z257.literal("DocumentationTabCreate"),
7623
+ var DTODocumentationTabCreateActionOutputV2 = z258.object({
7624
+ type: z258.literal("DocumentationTabCreate"),
7590
7625
  output: SuccessPayload
7591
7626
  });
7592
- var DTODocumentationGroupUpdateActionOutputV2 = z257.object({
7593
- type: z257.literal("DocumentationGroupUpdate"),
7627
+ var DTODocumentationGroupUpdateActionOutputV2 = z258.object({
7628
+ type: z258.literal("DocumentationGroupUpdate"),
7594
7629
  output: SuccessPayload
7595
7630
  });
7596
- var DTODocumentationGroupMoveActionOutputV2 = z257.object({
7597
- type: z257.literal("DocumentationGroupMove"),
7631
+ var DTODocumentationGroupMoveActionOutputV2 = z258.object({
7632
+ type: z258.literal("DocumentationGroupMove"),
7598
7633
  output: SuccessPayload
7599
7634
  });
7600
- var DTODocumentationGroupDuplicateActionOutputV2 = z257.object({
7601
- type: z257.literal("DocumentationGroupDuplicate"),
7635
+ var DTODocumentationGroupDuplicateActionOutputV2 = z258.object({
7636
+ type: z258.literal("DocumentationGroupDuplicate"),
7602
7637
  output: SuccessPayload
7603
7638
  });
7604
- var DTODocumentationGroupDeleteActionOutputV2 = z257.object({
7605
- type: z257.literal("DocumentationGroupDelete"),
7639
+ var DTODocumentationGroupDeleteActionOutputV2 = z258.object({
7640
+ type: z258.literal("DocumentationGroupDelete"),
7606
7641
  output: SuccessPayload
7607
7642
  });
7608
- var DTODocumentationTabGroupDeleteActionOutputV2 = z257.object({
7609
- type: z257.literal("DocumentationTabGroupDelete"),
7643
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z258.object({
7644
+ type: z258.literal("DocumentationTabGroupDelete"),
7610
7645
  output: SuccessPayload
7611
7646
  });
7612
- var DTODocumentationGroupCreateActionInputV2 = z257.object({
7613
- type: z257.literal("DocumentationGroupCreate"),
7647
+ var DTODocumentationGroupCreateActionInputV2 = z258.object({
7648
+ type: z258.literal("DocumentationGroupCreate"),
7614
7649
  input: DTOCreateDocumentationGroupInput
7615
7650
  });
7616
- var DTODocumentationTabCreateActionInputV2 = z257.object({
7617
- type: z257.literal("DocumentationTabCreate"),
7651
+ var DTODocumentationTabCreateActionInputV2 = z258.object({
7652
+ type: z258.literal("DocumentationTabCreate"),
7618
7653
  input: DTOCreateDocumentationTabInput
7619
7654
  });
7620
- var DTODocumentationGroupUpdateActionInputV2 = z257.object({
7621
- type: z257.literal("DocumentationGroupUpdate"),
7655
+ var DTODocumentationGroupUpdateActionInputV2 = z258.object({
7656
+ type: z258.literal("DocumentationGroupUpdate"),
7622
7657
  input: DTOUpdateDocumentationGroupInput
7623
7658
  });
7624
- var DTODocumentationGroupMoveActionInputV2 = z257.object({
7625
- type: z257.literal("DocumentationGroupMove"),
7659
+ var DTODocumentationGroupMoveActionInputV2 = z258.object({
7660
+ type: z258.literal("DocumentationGroupMove"),
7626
7661
  input: DTOMoveDocumentationGroupInput
7627
7662
  });
7628
- var DTODocumentationGroupDuplicateActionInputV2 = z257.object({
7629
- type: z257.literal("DocumentationGroupDuplicate"),
7663
+ var DTODocumentationGroupDuplicateActionInputV2 = z258.object({
7664
+ type: z258.literal("DocumentationGroupDuplicate"),
7630
7665
  input: DTODuplicateDocumentationGroupInput
7631
7666
  });
7632
- var DTODocumentationGroupDeleteActionInputV2 = z257.object({
7633
- type: z257.literal("DocumentationGroupDelete"),
7667
+ var DTODocumentationGroupDeleteActionInputV2 = z258.object({
7668
+ type: z258.literal("DocumentationGroupDelete"),
7634
7669
  input: DTODeleteDocumentationGroupInput
7635
7670
  });
7636
- var DTODocumentationTabGroupDeleteActionInputV2 = z257.object({
7637
- type: z257.literal("DocumentationTabGroupDelete"),
7671
+ var DTODocumentationTabGroupDeleteActionInputV2 = z258.object({
7672
+ type: z258.literal("DocumentationTabGroupDelete"),
7638
7673
  input: DTODeleteDocumentationTabGroupInput
7639
7674
  });
7640
7675
 
7641
7676
  // src/api/dto/elements/documentation/group-v1.ts
7642
- import { z as z259 } from "zod";
7677
+ import { z as z260 } from "zod";
7643
7678
 
7644
7679
  // src/api/dto/elements/documentation/item-configuration-v1.ts
7645
- import { z as z258 } from "zod";
7646
- var DocumentationColorV1 = z258.object({
7647
- aliasTo: z258.string().optional(),
7648
- value: z258.string().optional()
7680
+ import { z as z259 } from "zod";
7681
+ var DocumentationColorV1 = z259.object({
7682
+ aliasTo: z259.string().optional(),
7683
+ value: z259.string().optional()
7649
7684
  });
7650
7685
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7651
7686
  foregroundColor: true,
@@ -7654,10 +7689,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7654
7689
  foregroundColor: DocumentationColorV1.optional(),
7655
7690
  backgroundColor: DocumentationColorV1.optional()
7656
7691
  });
7657
- var DTODocumentationItemConfigurationV1 = z258.object({
7658
- showSidebar: z258.boolean(),
7659
- isPrivate: z258.boolean(),
7660
- isHidden: z258.boolean(),
7692
+ var DTODocumentationItemConfigurationV1 = z259.object({
7693
+ showSidebar: z259.boolean(),
7694
+ isPrivate: z259.boolean(),
7695
+ isHidden: z259.boolean(),
7661
7696
  header: DTODocumentationItemHeaderV1
7662
7697
  });
7663
7698
 
@@ -7671,145 +7706,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
7671
7706
  data: true,
7672
7707
  shortPersistentId: true
7673
7708
  }).extend({
7674
- title: z259.string(),
7675
- isRoot: z259.boolean(),
7676
- childrenIds: z259.array(z259.string()),
7709
+ title: z260.string(),
7710
+ isRoot: z260.boolean(),
7711
+ childrenIds: z260.array(z260.string()),
7677
7712
  groupBehavior: DocumentationGroupBehavior,
7678
- shortPersistentId: z259.string(),
7679
- type: z259.literal("Group")
7713
+ shortPersistentId: z260.string(),
7714
+ type: z260.literal("Group")
7680
7715
  });
7681
7716
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
7682
7717
  configuration: DTODocumentationItemConfigurationV1
7683
7718
  });
7684
7719
 
7685
7720
  // src/api/dto/elements/documentation/hierarchy.ts
7686
- import { z as z260 } from "zod";
7687
- var DTODocumentationHierarchyV2 = z260.object({
7688
- pages: z260.array(
7721
+ import { z as z261 } from "zod";
7722
+ var DTODocumentationHierarchyV2 = z261.object({
7723
+ pages: z261.array(
7689
7724
  DTODocumentationPageV2.extend({
7690
7725
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7691
7726
  draftState: DTODocumentationDraftState.optional()
7692
7727
  })
7693
7728
  ),
7694
- groups: z260.array(
7729
+ groups: z261.array(
7695
7730
  DTODocumentationGroupV2.extend({
7696
7731
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7697
7732
  draftState: DTODocumentationDraftState.optional()
7698
7733
  })
7699
7734
  ),
7700
7735
  /** True if the documentation was already published, false otherwise. */
7701
- hasPublishedDocumentationContent: z260.boolean()
7736
+ hasPublishedDocumentationContent: z261.boolean()
7702
7737
  });
7703
7738
 
7704
7739
  // src/api/dto/elements/documentation/page-actions-v2.ts
7705
- import { z as z261 } from "zod";
7706
- var SuccessPayload2 = z261.object({
7707
- success: z261.literal(true)
7740
+ import { z as z262 } from "zod";
7741
+ var SuccessPayload2 = z262.object({
7742
+ success: z262.literal(true)
7708
7743
  });
7709
- var DTODocumentationPageCreateActionOutputV2 = z261.object({
7710
- type: z261.literal("DocumentationPageCreate"),
7744
+ var DTODocumentationPageCreateActionOutputV2 = z262.object({
7745
+ type: z262.literal("DocumentationPageCreate"),
7711
7746
  output: SuccessPayload2
7712
7747
  });
7713
- var DTODocumentationPageUpdateActionOutputV2 = z261.object({
7714
- type: z261.literal("DocumentationPageUpdate"),
7748
+ var DTODocumentationPageUpdateActionOutputV2 = z262.object({
7749
+ type: z262.literal("DocumentationPageUpdate"),
7715
7750
  output: SuccessPayload2
7716
7751
  });
7717
- var DTODocumentationPageUpdateDocumentActionOutputV2 = z261.object({
7718
- type: z261.literal("DocumentationPageUpdateDocument"),
7752
+ var DTODocumentationPageUpdateDocumentActionOutputV2 = z262.object({
7753
+ type: z262.literal("DocumentationPageUpdateDocument"),
7719
7754
  output: SuccessPayload2
7720
7755
  });
7721
- var DTODocumentationPageMoveActionOutputV2 = z261.object({
7722
- type: z261.literal("DocumentationPageMove"),
7756
+ var DTODocumentationPageMoveActionOutputV2 = z262.object({
7757
+ type: z262.literal("DocumentationPageMove"),
7723
7758
  output: SuccessPayload2
7724
7759
  });
7725
- var DTODocumentationPageDuplicateActionOutputV2 = z261.object({
7726
- type: z261.literal("DocumentationPageDuplicate"),
7760
+ var DTODocumentationPageDuplicateActionOutputV2 = z262.object({
7761
+ type: z262.literal("DocumentationPageDuplicate"),
7727
7762
  output: SuccessPayload2
7728
7763
  });
7729
- var DTODocumentationPageDeleteActionOutputV2 = z261.object({
7730
- type: z261.literal("DocumentationPageDelete"),
7764
+ var DTODocumentationPageDeleteActionOutputV2 = z262.object({
7765
+ type: z262.literal("DocumentationPageDelete"),
7731
7766
  output: SuccessPayload2
7732
7767
  });
7733
- var DTODocumentationPageRestoreActionOutput = z261.object({
7734
- type: z261.literal("DocumentationPageRestore"),
7768
+ var DTODocumentationPageRestoreActionOutput = z262.object({
7769
+ type: z262.literal("DocumentationPageRestore"),
7735
7770
  output: SuccessPayload2
7736
7771
  });
7737
- var DTODocumentationGroupRestoreActionOutput = z261.object({
7738
- type: z261.literal("DocumentationGroupRestore"),
7772
+ var DTODocumentationGroupRestoreActionOutput = z262.object({
7773
+ type: z262.literal("DocumentationGroupRestore"),
7739
7774
  output: SuccessPayload2
7740
7775
  });
7741
- var DTODocumentationPageApprovalStateChangeActionOutput = z261.object({
7742
- type: z261.literal("DocumentationPageApprovalStateChange"),
7776
+ var DTODocumentationPageApprovalStateChangeActionOutput = z262.object({
7777
+ type: z262.literal("DocumentationPageApprovalStateChange"),
7743
7778
  output: SuccessPayload2
7744
7779
  });
7745
- var DTODocumentationPageCreateActionInputV2 = z261.object({
7746
- type: z261.literal("DocumentationPageCreate"),
7780
+ var DTODocumentationPageCreateActionInputV2 = z262.object({
7781
+ type: z262.literal("DocumentationPageCreate"),
7747
7782
  input: DTOCreateDocumentationPageInputV2
7748
7783
  });
7749
- var DTODocumentationPageUpdateActionInputV2 = z261.object({
7750
- type: z261.literal("DocumentationPageUpdate"),
7784
+ var DTODocumentationPageUpdateActionInputV2 = z262.object({
7785
+ type: z262.literal("DocumentationPageUpdate"),
7751
7786
  input: DTOUpdateDocumentationPageInputV2
7752
7787
  });
7753
- var DTODocumentationPageUpdateDocumentActionInputV2 = z261.object({
7754
- type: z261.literal("DocumentationPageUpdateDocument"),
7788
+ var DTODocumentationPageUpdateDocumentActionInputV2 = z262.object({
7789
+ type: z262.literal("DocumentationPageUpdateDocument"),
7755
7790
  input: DTOUpdateDocumentationPageDocumentInputV2
7756
7791
  });
7757
- var DTODocumentationPageMoveActionInputV2 = z261.object({
7758
- type: z261.literal("DocumentationPageMove"),
7792
+ var DTODocumentationPageMoveActionInputV2 = z262.object({
7793
+ type: z262.literal("DocumentationPageMove"),
7759
7794
  input: DTOMoveDocumentationPageInputV2
7760
7795
  });
7761
- var DTODocumentationPageDuplicateActionInputV2 = z261.object({
7762
- type: z261.literal("DocumentationPageDuplicate"),
7796
+ var DTODocumentationPageDuplicateActionInputV2 = z262.object({
7797
+ type: z262.literal("DocumentationPageDuplicate"),
7763
7798
  input: DTODuplicateDocumentationPageInputV2
7764
7799
  });
7765
- var DTODocumentationPageDeleteActionInputV2 = z261.object({
7766
- type: z261.literal("DocumentationPageDelete"),
7800
+ var DTODocumentationPageDeleteActionInputV2 = z262.object({
7801
+ type: z262.literal("DocumentationPageDelete"),
7767
7802
  input: DTODeleteDocumentationPageInputV2
7768
7803
  });
7769
- var DTODocumentationPageRestoreActionInput = z261.object({
7770
- type: z261.literal("DocumentationPageRestore"),
7804
+ var DTODocumentationPageRestoreActionInput = z262.object({
7805
+ type: z262.literal("DocumentationPageRestore"),
7771
7806
  input: DTORestoreDocumentationPageInput
7772
7807
  });
7773
- var DTODocumentationGroupRestoreActionInput = z261.object({
7774
- type: z261.literal("DocumentationGroupRestore"),
7808
+ var DTODocumentationGroupRestoreActionInput = z262.object({
7809
+ type: z262.literal("DocumentationGroupRestore"),
7775
7810
  input: DTORestoreDocumentationGroupInput
7776
7811
  });
7777
- var DTODocumentationPageApprovalStateChangeActionInput = z261.object({
7778
- type: z261.literal("DocumentationPageApprovalStateChange"),
7812
+ var DTODocumentationPageApprovalStateChangeActionInput = z262.object({
7813
+ type: z262.literal("DocumentationPageApprovalStateChange"),
7779
7814
  input: DTODocumentationPageApprovalStateChangeInput
7780
7815
  });
7781
7816
 
7782
7817
  // src/api/dto/elements/documentation/page-content.ts
7783
- import { z as z262 } from "zod";
7818
+ import { z as z263 } from "zod";
7784
7819
  var DTODocumentationPageContent = DocumentationPageContent;
7785
- var DTODocumentationPageContentGetResponse = z262.object({
7820
+ var DTODocumentationPageContentGetResponse = z263.object({
7786
7821
  pageContent: DTODocumentationPageContent
7787
7822
  });
7788
7823
 
7789
7824
  // src/api/dto/elements/documentation/page-dependencies.ts
7790
- import { z as z263 } from "zod";
7791
- var DTODocumentationPageDependencies = z263.object({
7792
- id: z263.string(),
7793
- designSystemVersionId: z263.string(),
7794
- createdAt: z263.coerce.date(),
7795
- updatedAt: z263.coerce.date(),
7796
- documentationPageId: z263.string(),
7797
- tokenPersistentIds: z263.array(z263.string()),
7798
- figmaComponentPersistentIds: z263.array(z263.string()),
7799
- componentPersistentIds: z263.array(z263.string()),
7800
- figmaNodePersistentIds: z263.array(z263.string()),
7801
- groupPersistentIds: z263.array(z263.string()),
7802
- propertyPersistentIds: z263.array(z263.string()),
7803
- themePersistentIds: z263.array(z263.string()),
7804
- documentationPagePersistentIds: z263.array(z263.string()),
7805
- storybookEntriesStoryIds: z263.array(z263.string())
7806
- });
7807
- var DTODocumentationPageDependenciesGetResponse = z263.object({
7808
- dependencies: z263.array(DTODocumentationPageDependencies)
7825
+ import { z as z264 } from "zod";
7826
+ var DTODocumentationPageDependencies = z264.object({
7827
+ id: z264.string(),
7828
+ designSystemVersionId: z264.string(),
7829
+ createdAt: z264.coerce.date(),
7830
+ updatedAt: z264.coerce.date(),
7831
+ documentationPageId: z264.string(),
7832
+ tokenPersistentIds: z264.array(z264.string()),
7833
+ figmaComponentPersistentIds: z264.array(z264.string()),
7834
+ componentPersistentIds: z264.array(z264.string()),
7835
+ figmaNodePersistentIds: z264.array(z264.string()),
7836
+ groupPersistentIds: z264.array(z264.string()),
7837
+ propertyPersistentIds: z264.array(z264.string()),
7838
+ themePersistentIds: z264.array(z264.string()),
7839
+ documentationPagePersistentIds: z264.array(z264.string()),
7840
+ storybookEntriesStoryIds: z264.array(z264.string())
7841
+ });
7842
+ var DTODocumentationPageDependenciesGetResponse = z264.object({
7843
+ dependencies: z264.array(DTODocumentationPageDependencies)
7809
7844
  });
7810
7845
 
7811
7846
  // src/api/dto/elements/documentation/page-v1.ts
7812
- import { z as z264 } from "zod";
7847
+ import { z as z265 } from "zod";
7813
7848
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
7814
7849
  data: true,
7815
7850
  meta: true,
@@ -7817,81 +7852,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
7817
7852
  sortOrder: true
7818
7853
  }).extend({
7819
7854
  configuration: DTODocumentationItemConfigurationV1,
7820
- blocks: z264.array(PageBlockV1),
7821
- title: z264.string(),
7822
- path: z264.string()
7855
+ blocks: z265.array(PageBlockV1),
7856
+ title: z265.string(),
7857
+ path: z265.string()
7823
7858
  });
7824
7859
 
7825
7860
  // src/api/dto/elements/documentation/settings.ts
7826
- import { z as z265 } from "zod";
7827
- var DTODocumentationSettings = z265.object({
7828
- isDraftFeatureAdopted: z265.boolean(),
7829
- isApprovalsFeatureEnabled: z265.boolean(),
7830
- isApprovalRequiredForPublishing: z265.boolean()
7861
+ import { z as z266 } from "zod";
7862
+ var DTODocumentationSettings = z266.object({
7863
+ isDraftFeatureAdopted: z266.boolean(),
7864
+ isApprovalsFeatureEnabled: z266.boolean(),
7865
+ isApprovalRequiredForPublishing: z266.boolean()
7831
7866
  });
7832
7867
 
7833
7868
  // src/api/dto/elements/documentation/structure.ts
7834
- import { z as z266 } from "zod";
7835
- var DTODocumentationStructureItemType = z266.enum(["Group", "Page"]);
7836
- var DTODocumentationStructureItemBase = z266.object({
7869
+ import { z as z267 } from "zod";
7870
+ var DTODocumentationStructureItemType = z267.enum(["Group", "Page"]);
7871
+ var DTODocumentationStructureItemBase = z267.object({
7837
7872
  type: DTODocumentationStructureItemType,
7838
- id: z266.string(),
7839
- designSystemVersionId: z266.string(),
7840
- shortPersistentId: z266.string(),
7841
- persistentId: z266.string(),
7842
- title: z266.string(),
7843
- createdAt: z266.coerce.date(),
7844
- updatedAt: z266.coerce.date()
7873
+ id: z267.string(),
7874
+ designSystemVersionId: z267.string(),
7875
+ shortPersistentId: z267.string(),
7876
+ persistentId: z267.string(),
7877
+ title: z267.string(),
7878
+ createdAt: z267.coerce.date(),
7879
+ updatedAt: z267.coerce.date()
7845
7880
  });
7846
7881
  var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
7847
- type: z266.literal(DTODocumentationStructureItemType.enum.Group),
7848
- groupBehavior: z266.string(),
7849
- childrenIds: z266.string().array(),
7850
- isRoot: z266.boolean()
7882
+ type: z267.literal(DTODocumentationStructureItemType.enum.Group),
7883
+ groupBehavior: z267.string(),
7884
+ childrenIds: z267.string().array(),
7885
+ isRoot: z267.boolean()
7851
7886
  });
7852
7887
  var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
7853
- type: z266.literal(DTODocumentationStructureItemType.enum.Page),
7854
- path: z266.string()
7888
+ type: z267.literal(DTODocumentationStructureItemType.enum.Page),
7889
+ path: z267.string()
7855
7890
  });
7856
- var DTODocumentationStructureItem = z266.discriminatedUnion("type", [
7891
+ var DTODocumentationStructureItem = z267.discriminatedUnion("type", [
7857
7892
  DTODocumentationStructureGroupItem,
7858
7893
  DTODocumentationStructurePageItem
7859
7894
  ]);
7860
- var DTODocumentationStructure = z266.object({
7861
- items: z266.array(DTODocumentationStructureItem)
7895
+ var DTODocumentationStructure = z267.object({
7896
+ items: z267.array(DTODocumentationStructureItem)
7862
7897
  });
7863
7898
 
7864
7899
  // src/api/dto/elements/figma-nodes/figma-node-structure.ts
7865
- import { z as z267 } from "zod";
7866
- var DTOFigmaNodeStructure = z267.object({
7867
- id: z267.string(),
7868
- sourceId: z267.string(),
7900
+ import { z as z268 } from "zod";
7901
+ var DTOFigmaNodeStructure = z268.object({
7902
+ id: z268.string(),
7903
+ sourceId: z268.string(),
7869
7904
  importState: FigmaNodeStructureStateV2,
7870
- createdAt: z267.coerce.date(),
7871
- updatedAt: z267.coerce.date()
7905
+ createdAt: z268.coerce.date(),
7906
+ updatedAt: z268.coerce.date()
7872
7907
  });
7873
7908
  var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
7874
7909
  rootNode: FigmaFileStructureNode
7875
7910
  });
7876
- var DTOFigmaNodeStructureListResponse = z267.object({
7911
+ var DTOFigmaNodeStructureListResponse = z268.object({
7877
7912
  structures: DTOFigmaNodeStructure.array()
7878
7913
  });
7879
- var DTOFigmaNodeStructureDetailResponse = z267.object({
7914
+ var DTOFigmaNodeStructureDetailResponse = z268.object({
7880
7915
  structure: DTOFigmaNodeStructureDetail
7881
7916
  });
7882
7917
 
7883
7918
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7884
- import { z as z269 } from "zod";
7919
+ import { z as z270 } from "zod";
7885
7920
 
7886
7921
  // src/api/dto/elements/figma-nodes/figma-node.ts
7887
- import { z as z268 } from "zod";
7922
+ import { z as z269 } from "zod";
7888
7923
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
7889
- var DTOFigmaNodeOrigin = z268.object({
7890
- sourceId: z268.string(),
7891
- fileId: z268.string().optional(),
7892
- parentName: z268.string().optional()
7924
+ var DTOFigmaNodeOrigin = z269.object({
7925
+ sourceId: z269.string(),
7926
+ fileId: z269.string().optional(),
7927
+ parentName: z269.string().optional()
7893
7928
  });
7894
- var DTOFigmaNodeRenderInputBase = z268.object({
7929
+ var DTOFigmaNodeRenderInputBase = z269.object({
7895
7930
  /**
7896
7931
  * Format in which the node must be rendered, png by default.
7897
7932
  */
@@ -7899,57 +7934,57 @@ var DTOFigmaNodeRenderInputBase = z268.object({
7899
7934
  /**
7900
7935
  * Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
7901
7936
  */
7902
- scale: z268.number().optional()
7937
+ scale: z269.number().optional()
7903
7938
  });
7904
7939
  var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
7905
- inputType: z268.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7940
+ inputType: z269.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7906
7941
  /**
7907
7942
  * Id of a design system's data source representing a linked Figma file
7908
7943
  */
7909
- sourceId: z268.string(),
7944
+ sourceId: z269.string(),
7910
7945
  /**
7911
7946
  * Id of a node within the Figma file
7912
7947
  */
7913
- figmaFileNodeId: z268.string()
7948
+ figmaFileNodeId: z269.string()
7914
7949
  });
7915
7950
  var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
7916
- inputType: z268.literal("URL"),
7951
+ inputType: z269.literal("URL"),
7917
7952
  /**
7918
7953
  * Id of a design system's data source representing a linked Figma file
7919
7954
  */
7920
- figmaNodeUrl: z268.string(),
7955
+ figmaNodeUrl: z269.string(),
7921
7956
  /**
7922
7957
  * Brand persistent id to use in case a source has to be created for this render
7923
7958
  */
7924
- brandPersistentId: z268.string()
7959
+ brandPersistentId: z269.string()
7925
7960
  });
7926
- var DTOFigmaNodeRerenderInput = z268.object({
7927
- inputType: z268.literal("Rerender"),
7961
+ var DTOFigmaNodeRerenderInput = z269.object({
7962
+ inputType: z269.literal("Rerender"),
7928
7963
  /**
7929
7964
  * Persistent ID of an existing Figma node
7930
7965
  */
7931
- figmaNodePersistentId: z268.string()
7966
+ figmaNodePersistentId: z269.string()
7932
7967
  });
7933
- var DTOFigmaNodeRenderInput = z268.discriminatedUnion("inputType", [
7968
+ var DTOFigmaNodeRenderInput = z269.discriminatedUnion("inputType", [
7934
7969
  DTOFigmaNodeRenderIdInput,
7935
7970
  DTOFigmaNodeRenderUrlInput,
7936
7971
  DTOFigmaNodeRerenderInput
7937
7972
  ]);
7938
7973
 
7939
7974
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7940
- var DTOFigmaNodeData = z269.object({
7975
+ var DTOFigmaNodeData = z270.object({
7941
7976
  // Id of the node in the Figma file
7942
- figmaNodeId: z269.string(),
7977
+ figmaNodeId: z270.string(),
7943
7978
  // Validity
7944
- isValid: z269.boolean(),
7979
+ isValid: z270.boolean(),
7945
7980
  // Asset data
7946
- assetId: z269.string(),
7947
- assetUrl: z269.string(),
7981
+ assetId: z270.string(),
7982
+ assetUrl: z270.string(),
7948
7983
  assetFormat: DTOFigmaNodeRenderFormat,
7949
7984
  // Asset metadata
7950
- assetScale: z269.number(),
7951
- assetWidth: z269.number().optional(),
7952
- assetHeight: z269.number().optional()
7985
+ assetScale: z270.number(),
7986
+ assetWidth: z270.number().optional(),
7987
+ assetHeight: z270.number().optional()
7953
7988
  });
7954
7989
  var DTOFigmaNode = FigmaNodeReference.omit({
7955
7990
  data: true,
@@ -7960,15 +7995,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
7960
7995
  });
7961
7996
 
7962
7997
  // src/api/dto/elements/figma-nodes/figma-node-v2.ts
7963
- import { z as z270 } from "zod";
7964
- var DTOFigmaNodeDataV2 = z270.object({
7965
- sceneNodeId: z270.string(),
7998
+ import { z as z271 } from "zod";
7999
+ var DTOFigmaNodeDataV2 = z271.object({
8000
+ sceneNodeId: z271.string(),
7966
8001
  format: FigmaNodeRenderFormat,
7967
- scale: z270.number().optional(),
8002
+ scale: z271.number().optional(),
7968
8003
  renderState: FigmaNodeRenderState,
7969
8004
  renderedImage: FigmaNodeRenderedImage.optional(),
7970
8005
  renderError: FigmaNodeRenderError.optional(),
7971
- hasSource: z270.boolean()
8006
+ hasSource: z271.boolean()
7972
8007
  });
7973
8008
  var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7974
8009
  data: true,
@@ -7979,113 +8014,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7979
8014
  });
7980
8015
 
7981
8016
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
7982
- import { z as z271 } from "zod";
7983
- var DTOFigmaNodeRenderActionOutput = z271.object({
7984
- type: z271.literal("FigmaNodeRender"),
7985
- figmaNodes: z271.array(DTOFigmaNode)
8017
+ import { z as z272 } from "zod";
8018
+ var DTOFigmaNodeRenderActionOutput = z272.object({
8019
+ type: z272.literal("FigmaNodeRender"),
8020
+ figmaNodes: z272.array(DTOFigmaNode)
7986
8021
  });
7987
- var DTOFigmaNodeRenderAsyncActionOutput = z271.object({
7988
- type: z271.literal("FigmaNodeRenderAsync"),
7989
- figmaNodes: z271.array(DTOFigmaNodeV2)
8022
+ var DTOFigmaNodeRenderAsyncActionOutput = z272.object({
8023
+ type: z272.literal("FigmaNodeRenderAsync"),
8024
+ figmaNodes: z272.array(DTOFigmaNodeV2)
7990
8025
  });
7991
- var DTOFigmaNodeRenderActionInput = z271.object({
7992
- type: z271.literal("FigmaNodeRender"),
8026
+ var DTOFigmaNodeRenderActionInput = z272.object({
8027
+ type: z272.literal("FigmaNodeRender"),
7993
8028
  input: DTOFigmaNodeRenderIdInput.array()
7994
8029
  });
7995
- var DTOFigmaNodeRenderAsyncActionInput = z271.object({
7996
- type: z271.literal("FigmaNodeRenderAsync"),
8030
+ var DTOFigmaNodeRenderAsyncActionInput = z272.object({
8031
+ type: z272.literal("FigmaNodeRenderAsync"),
7997
8032
  nodes: DTOFigmaNodeRenderInput.array()
7998
8033
  });
7999
8034
 
8000
8035
  // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
8001
- import { z as z272 } from "zod";
8002
- var DTOFrameNodeStructure = z272.object({
8003
- id: z272.string(),
8004
- persistentId: z272.string(),
8005
- designSystemVersionId: z272.string(),
8036
+ import { z as z273 } from "zod";
8037
+ var DTOFrameNodeStructure = z273.object({
8038
+ id: z273.string(),
8039
+ persistentId: z273.string(),
8040
+ designSystemVersionId: z273.string(),
8006
8041
  origin: FigmaFileStructureOrigin,
8007
8042
  assetsInFile: FigmaFileStructureStatistics
8008
8043
  });
8009
- var DTOFrameNodeStructureListResponse = z272.object({
8044
+ var DTOFrameNodeStructureListResponse = z273.object({
8010
8045
  structures: DTOFrameNodeStructure.array()
8011
8046
  });
8012
8047
 
8013
8048
  // src/api/dto/elements/properties/property-definitions.ts
8014
- import { z as z273 } from "zod";
8049
+ import { z as z274 } from "zod";
8015
8050
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
8016
- var DTOElementPropertyDefinitionOption = z273.object({
8017
- id: z273.string(),
8018
- name: z273.string(),
8051
+ var DTOElementPropertyDefinitionOption = z274.object({
8052
+ id: z274.string(),
8053
+ name: z274.string(),
8019
8054
  backgroundColor: DTOColorTokenInlineData.optional()
8020
8055
  });
8021
- var DTOElementPropertyDefinition = z273.object({
8022
- id: z273.string(),
8023
- designSystemVersionId: z273.string(),
8056
+ var DTOElementPropertyDefinition = z274.object({
8057
+ id: z274.string(),
8058
+ designSystemVersionId: z274.string(),
8024
8059
  meta: DTOObjectMeta,
8025
- persistentId: z273.string(),
8060
+ persistentId: z274.string(),
8026
8061
  type: ElementPropertyTypeSchema,
8027
8062
  targetElementType: ElementPropertyTargetType,
8028
- codeName: z273.string().regex(CODE_NAME_REGEX2),
8029
- options: nullishToOptional(z273.array(DTOElementPropertyDefinitionOption)),
8063
+ codeName: z274.string().regex(CODE_NAME_REGEX2),
8064
+ options: nullishToOptional(z274.array(DTOElementPropertyDefinitionOption)),
8030
8065
  linkElementType: nullishToOptional(ElementPropertyLinkType),
8031
- isImmutable: z273.boolean(),
8066
+ isImmutable: z274.boolean(),
8032
8067
  immutablePropertyType: ElementPropertyImmutableType.optional()
8033
8068
  });
8034
- var DTOElementPropertyDefinitionListResponse = z273.object({
8035
- definitions: z273.array(DTOElementPropertyDefinition)
8069
+ var DTOElementPropertyDefinitionListResponse = z274.object({
8070
+ definitions: z274.array(DTOElementPropertyDefinition)
8036
8071
  });
8037
- var DTOElementPropertyDefinitionResponse = z273.object({
8072
+ var DTOElementPropertyDefinitionResponse = z274.object({
8038
8073
  definition: DTOElementPropertyDefinition
8039
8074
  });
8040
- var DTOElementPropertyDefinitionCreatePayload = z273.object({
8075
+ var DTOElementPropertyDefinitionCreatePayload = z274.object({
8041
8076
  meta: DTOObjectMeta,
8042
- persistentId: z273.string(),
8077
+ persistentId: z274.string(),
8043
8078
  type: ElementPropertyTypeSchema,
8044
8079
  targetElementType: ElementPropertyTargetType,
8045
- codeName: z273.string().regex(CODE_NAME_REGEX2),
8046
- options: nullishToOptional(z273.array(DTOElementPropertyDefinitionOption)),
8080
+ codeName: z274.string().regex(CODE_NAME_REGEX2),
8081
+ options: nullishToOptional(z274.array(DTOElementPropertyDefinitionOption)),
8047
8082
  linkElementType: nullishToOptional(ElementPropertyLinkType),
8048
- columnWidth: z273.number().max(1024).optional()
8083
+ columnWidth: z274.number().max(1024).optional()
8049
8084
  });
8050
- var DTOElementPropertyDefinitionUpdatePayload = z273.object({
8085
+ var DTOElementPropertyDefinitionUpdatePayload = z274.object({
8051
8086
  meta: DTOObjectMeta.optional(),
8052
- codeName: z273.string().regex(CODE_NAME_REGEX2).optional(),
8053
- options: z273.array(DTOElementPropertyDefinitionOption).optional()
8087
+ codeName: z274.string().regex(CODE_NAME_REGEX2).optional(),
8088
+ options: z274.array(DTOElementPropertyDefinitionOption).optional()
8054
8089
  });
8055
8090
 
8056
8091
  // src/api/dto/elements/properties/property-values.ts
8057
- import { z as z274 } from "zod";
8058
- var DTOElementPropertyValue = z274.object({
8059
- id: z274.string(),
8060
- designSystemVersionId: z274.string(),
8061
- definitionId: z274.string(),
8062
- targetElementId: z274.string(),
8063
- value: z274.union([z274.string(), z274.number(), z274.boolean()]).optional(),
8064
- valuePreview: z274.string().optional()
8065
- });
8066
- var DTOElementPropertyValueListResponse = z274.object({
8067
- values: z274.array(DTOElementPropertyValue)
8068
- });
8069
- var DTOElementPropertyValueResponse = z274.object({
8092
+ import { z as z275 } from "zod";
8093
+ var DTOElementPropertyValue = z275.object({
8094
+ id: z275.string(),
8095
+ designSystemVersionId: z275.string(),
8096
+ definitionId: z275.string(),
8097
+ targetElementId: z275.string(),
8098
+ value: z275.union([z275.string(), z275.number(), z275.boolean()]).optional(),
8099
+ valuePreview: z275.string().optional()
8100
+ });
8101
+ var DTOElementPropertyValueListResponse = z275.object({
8102
+ values: z275.array(DTOElementPropertyValue)
8103
+ });
8104
+ var DTOElementPropertyValueResponse = z275.object({
8070
8105
  value: DTOElementPropertyValue
8071
8106
  });
8072
- var DTOElementPropertyValuesEditActionOutput = z274.object({
8073
- type: z274.literal("ElementPropertyValuesEdit"),
8074
- output: z274.object({ success: z274.literal(true) })
8107
+ var DTOElementPropertyValuesEditActionOutput = z275.object({
8108
+ type: z275.literal("ElementPropertyValuesEdit"),
8109
+ output: z275.object({ success: z275.literal(true) })
8075
8110
  });
8076
- var DTOElementPropertyValueUpsertPaylod = z274.object({
8077
- definitionId: z274.string(),
8078
- targetElementId: z274.string(),
8079
- value: z274.string().or(z274.number()).or(z274.boolean()).nullable()
8111
+ var DTOElementPropertyValueUpsertPaylod = z275.object({
8112
+ definitionId: z275.string(),
8113
+ targetElementId: z275.string(),
8114
+ value: z275.string().or(z275.number()).or(z275.boolean()).nullable()
8080
8115
  });
8081
- var DTOElementPropertyValuesEditActionInput = z274.object({
8082
- type: z274.literal("ElementPropertyValuesEdit"),
8116
+ var DTOElementPropertyValuesEditActionInput = z275.object({
8117
+ type: z275.literal("ElementPropertyValuesEdit"),
8083
8118
  values: DTOElementPropertyValueUpsertPaylod.array()
8084
8119
  });
8085
8120
 
8086
8121
  // src/api/dto/elements/elements-action-v2.ts
8087
- import { z as z275 } from "zod";
8088
- var DTOElementActionOutput = z275.discriminatedUnion("type", [
8122
+ import { z as z276 } from "zod";
8123
+ var DTOElementActionOutput = z276.discriminatedUnion("type", [
8089
8124
  // Documentation pages
8090
8125
  DTODocumentationPageCreateActionOutputV2,
8091
8126
  DTODocumentationPageUpdateActionOutputV2,
@@ -8112,7 +8147,7 @@ var DTOElementActionOutput = z275.discriminatedUnion("type", [
8112
8147
  // Element properties
8113
8148
  DTOElementPropertyValuesEditActionOutput
8114
8149
  ]);
8115
- var DTOElementActionInput = z275.discriminatedUnion("type", [
8150
+ var DTOElementActionInput = z276.discriminatedUnion("type", [
8116
8151
  // Documentation pages
8117
8152
  DTODocumentationPageCreateActionInputV2,
8118
8153
  DTODocumentationPageUpdateActionInputV2,
@@ -8139,90 +8174,90 @@ var DTOElementActionInput = z275.discriminatedUnion("type", [
8139
8174
  // Element properties
8140
8175
  DTOElementPropertyValuesEditActionInput
8141
8176
  ]).and(
8142
- z275.object({
8143
- tId: z275.string().optional()
8177
+ z276.object({
8178
+ tId: z276.string().optional()
8144
8179
  })
8145
8180
  );
8146
8181
 
8147
8182
  // src/api/dto/elements/get-elements-v2.ts
8148
- import { z as z276 } from "zod";
8149
- var DTOElementsGetTypeFilter = z276.enum(["FigmaNode"]);
8150
- var DTOElementsGetQuerySchema = z276.object({
8151
- types: z276.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
8152
- responseVersion: z276.coerce.number().default(1)
8183
+ import { z as z277 } from "zod";
8184
+ var DTOElementsGetTypeFilter = z277.enum(["FigmaNode"]);
8185
+ var DTOElementsGetQuerySchema = z277.object({
8186
+ types: z277.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
8187
+ responseVersion: z277.coerce.number().default(1)
8153
8188
  });
8154
- var DTOElementsGetOutput = z276.object({
8155
- figmaNodes: z276.array(DTOFigmaNode).optional()
8189
+ var DTOElementsGetOutput = z277.object({
8190
+ figmaNodes: z277.array(DTOFigmaNode).optional()
8156
8191
  });
8157
- var DTOElementsGetOutputV2 = z276.object({
8158
- figmaNodes: z276.array(DTOFigmaNodeV2).optional()
8192
+ var DTOElementsGetOutputV2 = z277.object({
8193
+ figmaNodes: z277.array(DTOFigmaNodeV2).optional()
8159
8194
  });
8160
8195
 
8161
8196
  // src/api/dto/figma-components/assets/download.ts
8162
- import { z as z277 } from "zod";
8163
- var DTOAssetRenderConfiguration = z277.object({
8164
- prefix: z277.string().optional(),
8165
- suffix: z277.string().optional(),
8166
- scale: z277.enum(["x1", "x2", "x3", "x4"]),
8167
- format: z277.enum(["png", "pdf", "svg"])
8168
- });
8169
- var DTORenderedAssetFile = z277.object({
8170
- assetId: z277.string(),
8171
- fileName: z277.string(),
8172
- sourceUrl: z277.string(),
8197
+ import { z as z278 } from "zod";
8198
+ var DTOAssetRenderConfiguration = z278.object({
8199
+ prefix: z278.string().optional(),
8200
+ suffix: z278.string().optional(),
8201
+ scale: z278.enum(["x1", "x2", "x3", "x4"]),
8202
+ format: z278.enum(["png", "pdf", "svg"])
8203
+ });
8204
+ var DTORenderedAssetFile = z278.object({
8205
+ assetId: z278.string(),
8206
+ fileName: z278.string(),
8207
+ sourceUrl: z278.string(),
8173
8208
  settings: DTOAssetRenderConfiguration,
8174
- originalName: z277.string()
8209
+ originalName: z278.string()
8175
8210
  });
8176
- var DTODownloadAssetsRequest = z277.object({
8177
- persistentIds: z277.array(z277.string().uuid()).optional(),
8211
+ var DTODownloadAssetsRequest = z278.object({
8212
+ persistentIds: z278.array(z278.string().uuid()).optional(),
8178
8213
  settings: DTOAssetRenderConfiguration.array()
8179
8214
  });
8180
- var DTODownloadAssetsResponse = z277.object({
8215
+ var DTODownloadAssetsResponse = z278.object({
8181
8216
  items: DTORenderedAssetFile.array()
8182
8217
  });
8183
8218
 
8184
8219
  // src/api/dto/liveblocks/auth-response.ts
8185
- import { z as z278 } from "zod";
8186
- var DTOLiveblocksAuthResponse = z278.object({
8187
- token: z278.string()
8220
+ import { z as z279 } from "zod";
8221
+ var DTOLiveblocksAuthResponse = z279.object({
8222
+ token: z279.string()
8188
8223
  });
8189
8224
 
8190
8225
  // src/api/dto/themes/override.ts
8191
- import { z as z279 } from "zod";
8226
+ import { z as z280 } from "zod";
8192
8227
  var DTOThemeOverride = DesignTokenTypedData.and(
8193
- z279.object({
8194
- tokenPersistentId: z279.string(),
8228
+ z280.object({
8229
+ tokenPersistentId: z280.string(),
8195
8230
  origin: ThemeOverrideOrigin.optional()
8196
8231
  })
8197
8232
  );
8198
8233
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
8199
- z279.object({
8200
- tokenPersistentId: z279.string()
8234
+ z280.object({
8235
+ tokenPersistentId: z280.string()
8201
8236
  })
8202
8237
  );
8203
8238
 
8204
8239
  // src/api/dto/themes/theme.ts
8205
- import { z as z280 } from "zod";
8206
- var DTOTheme = z280.object({
8207
- id: z280.string(),
8208
- persistentId: z280.string(),
8209
- designSystemVersionId: z280.string(),
8210
- brandId: z280.string(),
8240
+ import { z as z281 } from "zod";
8241
+ var DTOTheme = z281.object({
8242
+ id: z281.string(),
8243
+ persistentId: z281.string(),
8244
+ designSystemVersionId: z281.string(),
8245
+ brandId: z281.string(),
8211
8246
  meta: ObjectMeta,
8212
- codeName: z280.string(),
8247
+ codeName: z281.string(),
8213
8248
  overrides: DTOThemeOverride.array()
8214
8249
  });
8215
- var DTOThemeResponse = z280.object({
8250
+ var DTOThemeResponse = z281.object({
8216
8251
  theme: DTOTheme
8217
8252
  });
8218
- var DTOThemeListResponse = z280.object({
8253
+ var DTOThemeListResponse = z281.object({
8219
8254
  themes: DTOTheme.array()
8220
8255
  });
8221
- var DTOThemeCreatePayload = z280.object({
8256
+ var DTOThemeCreatePayload = z281.object({
8222
8257
  meta: ObjectMeta,
8223
- persistentId: z280.string(),
8224
- brandId: z280.string(),
8225
- codeName: z280.string(),
8258
+ persistentId: z281.string(),
8259
+ brandId: z281.string(),
8260
+ codeName: z281.string(),
8226
8261
  overrides: DTOThemeOverride.array()
8227
8262
  });
8228
8263
 
@@ -8458,13 +8493,13 @@ var ExportersEndpoint = class {
8458
8493
  };
8459
8494
 
8460
8495
  // src/api/endpoints/codegen/jobs.ts
8461
- import { z as z281 } from "zod";
8496
+ import { z as z282 } from "zod";
8462
8497
  var ExporterJobsEndpoint = class {
8463
8498
  constructor(requestExecutor) {
8464
8499
  this.requestExecutor = requestExecutor;
8465
8500
  }
8466
8501
  list(workspaceId) {
8467
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z281.any());
8502
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z282.any());
8468
8503
  }
8469
8504
  get(workspaceId, jobId) {
8470
8505
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -8522,7 +8557,7 @@ var CodegenEndpoint = class {
8522
8557
  };
8523
8558
 
8524
8559
  // src/api/endpoints/design-system/versions/brands.ts
8525
- import { z as z282 } from "zod";
8560
+ import { z as z283 } from "zod";
8526
8561
  var BrandsEndpoint = class {
8527
8562
  constructor(requestExecutor) {
8528
8563
  this.requestExecutor = requestExecutor;
@@ -8556,7 +8591,7 @@ var BrandsEndpoint = class {
8556
8591
  });
8557
8592
  }
8558
8593
  delete(dsId, vId, brandId) {
8559
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z282.any(), {
8594
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z283.any(), {
8560
8595
  method: "DELETE"
8561
8596
  });
8562
8597
  }
@@ -8775,6 +8810,33 @@ var FigmaFrameStructuresEndpoint = class {
8775
8810
  }
8776
8811
  };
8777
8812
 
8813
+ // src/api/endpoints/design-system/versions/files.ts
8814
+ var FilesEndpoint = class {
8815
+ constructor(requestExecutor) {
8816
+ this.requestExecutor = requestExecutor;
8817
+ }
8818
+ upload(designSystemId, versionId, body) {
8819
+ return this.requestExecutor.json(
8820
+ `/design-systems/${designSystemId}/versions/${versionId}/files/upload`,
8821
+ DTOFileUploadResponse,
8822
+ {
8823
+ method: "POST",
8824
+ body
8825
+ }
8826
+ );
8827
+ }
8828
+ finalize(designSystemId, versionId, body) {
8829
+ return this.requestExecutor.json(
8830
+ `/design-systems/${designSystemId}/versions/${versionId}/files/finalize`,
8831
+ DTOFileUploadFinalizeResponse,
8832
+ {
8833
+ method: "POST",
8834
+ body
8835
+ }
8836
+ );
8837
+ }
8838
+ };
8839
+
8778
8840
  // src/api/endpoints/design-system/versions/import-jobs.ts
8779
8841
  var ImportJobsEndpoint = class {
8780
8842
  constructor(requestExecutor) {
@@ -8789,7 +8851,7 @@ var ImportJobsEndpoint = class {
8789
8851
  };
8790
8852
 
8791
8853
  // src/api/endpoints/design-system/versions/overrides.ts
8792
- import { z as z283 } from "zod";
8854
+ import { z as z284 } from "zod";
8793
8855
  var OverridesEndpoint = class {
8794
8856
  constructor(requestExecutor) {
8795
8857
  this.requestExecutor = requestExecutor;
@@ -8797,7 +8859,7 @@ var OverridesEndpoint = class {
8797
8859
  create(dsId, versionId, themeId, body) {
8798
8860
  return this.requestExecutor.json(
8799
8861
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
8800
- z283.any(),
8862
+ z284.any(),
8801
8863
  {
8802
8864
  method: "POST",
8803
8865
  body
@@ -8807,7 +8869,7 @@ var OverridesEndpoint = class {
8807
8869
  };
8808
8870
 
8809
8871
  // src/api/endpoints/design-system/versions/property-definitions.ts
8810
- import { z as z284 } from "zod";
8872
+ import { z as z285 } from "zod";
8811
8873
  var ElementPropertyDefinitionsEndpoint = class {
8812
8874
  constructor(requestExecutor) {
8813
8875
  this.requestExecutor = requestExecutor;
@@ -8835,7 +8897,7 @@ var ElementPropertyDefinitionsEndpoint = class {
8835
8897
  delete(designSystemId, versionId, defId) {
8836
8898
  return this.requestExecutor.json(
8837
8899
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
8838
- z284.any(),
8900
+ z285.any(),
8839
8901
  { method: "DELETE" }
8840
8902
  );
8841
8903
  }
@@ -8874,7 +8936,7 @@ var VersionStatsEndpoint = class {
8874
8936
  };
8875
8937
 
8876
8938
  // src/api/endpoints/design-system/versions/themes.ts
8877
- import { z as z285 } from "zod";
8939
+ import { z as z286 } from "zod";
8878
8940
  var ThemesEndpoint = class {
8879
8941
  constructor(requestExecutor) {
8880
8942
  this.requestExecutor = requestExecutor;
@@ -8897,7 +8959,7 @@ var ThemesEndpoint = class {
8897
8959
  });
8898
8960
  }
8899
8961
  delete(dsId, versionId, themeId) {
8900
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z285.any(), {
8962
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z286.any(), {
8901
8963
  method: "DELETE"
8902
8964
  });
8903
8965
  }
@@ -8985,6 +9047,7 @@ var DesignSystemVersionsEndpoint = class {
8985
9047
  __publicField(this, "designSystemComponents");
8986
9048
  __publicField(this, "documentation");
8987
9049
  __publicField(this, "codeComponents");
9050
+ __publicField(this, "files");
8988
9051
  this.themes = new ThemesEndpoint(requestExecutor);
8989
9052
  this.brands = new BrandsEndpoint(requestExecutor);
8990
9053
  this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
@@ -9002,6 +9065,7 @@ var DesignSystemVersionsEndpoint = class {
9002
9065
  this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
9003
9066
  this.documentation = new DocumentationEndpoint(requestExecutor);
9004
9067
  this.codeComponents = new CodeComponentsEndpoint(requestExecutor);
9068
+ this.files = new FilesEndpoint(requestExecutor);
9005
9069
  }
9006
9070
  list(dsId) {
9007
9071
  return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
@@ -9066,7 +9130,7 @@ var DesignSystemContactsEndpoint = class {
9066
9130
  };
9067
9131
 
9068
9132
  // src/api/endpoints/design-system/design-systems.ts
9069
- import { z as z289 } from "zod";
9133
+ import { z as z290 } from "zod";
9070
9134
 
9071
9135
  // src/api/endpoints/design-system/figma-node-structures.ts
9072
9136
  var FigmaNodeStructuresEndpoint = class {
@@ -9143,7 +9207,7 @@ var DesignSystemPageRedirectsEndpoint = class {
9143
9207
  };
9144
9208
 
9145
9209
  // src/api/endpoints/design-system/sources.ts
9146
- import { z as z286 } from "zod";
9210
+ import { z as z287 } from "zod";
9147
9211
  var DesignSystemSourcesEndpoint = class {
9148
9212
  constructor(requestExecutor) {
9149
9213
  this.requestExecutor = requestExecutor;
@@ -9161,7 +9225,7 @@ var DesignSystemSourcesEndpoint = class {
9161
9225
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
9162
9226
  }
9163
9227
  delete(dsId, sourceId) {
9164
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z286.any(), { method: "DELETE" });
9228
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z287.any(), { method: "DELETE" });
9165
9229
  }
9166
9230
  updateFigmaSource(dsId, sourceId, payload) {
9167
9231
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
@@ -9204,7 +9268,7 @@ var DesignSystemSourcesEndpoint = class {
9204
9268
  };
9205
9269
 
9206
9270
  // src/api/endpoints/design-system/storybook.ts
9207
- import { z as z287 } from "zod";
9271
+ import { z as z288 } from "zod";
9208
9272
  var StorybookEntriesEndpoint = class {
9209
9273
  constructor(requestExecutor) {
9210
9274
  this.requestExecutor = requestExecutor;
@@ -9220,14 +9284,14 @@ var StorybookEntriesEndpoint = class {
9220
9284
  );
9221
9285
  }
9222
9286
  delete(dsId, entryId) {
9223
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z287.any(), {
9287
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z288.any(), {
9224
9288
  method: "DELETE"
9225
9289
  });
9226
9290
  }
9227
9291
  };
9228
9292
 
9229
9293
  // src/api/endpoints/design-system/storybook-hosting.ts
9230
- import { z as z288 } from "zod";
9294
+ import { z as z289 } from "zod";
9231
9295
  var StorybookHostingEndpoint = class {
9232
9296
  constructor(requestExecutor) {
9233
9297
  this.requestExecutor = requestExecutor;
@@ -9241,7 +9305,7 @@ var StorybookHostingEndpoint = class {
9241
9305
  delete(dsId, storybookUploadId) {
9242
9306
  return this.requestExecutor.json(
9243
9307
  `/design-systems/${dsId}/storybook/${storybookUploadId}`,
9244
- z288.object({ ok: z288.boolean() }),
9308
+ z289.object({ ok: z289.boolean() }),
9245
9309
  {
9246
9310
  method: "DELETE"
9247
9311
  }
@@ -9299,7 +9363,7 @@ var DesignSystemsEndpoint = class {
9299
9363
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
9300
9364
  }
9301
9365
  delete(dsId) {
9302
- return this.requestExecutor.json(`/design-systems/${dsId}`, z289.any(), { method: "DELETE" });
9366
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z290.any(), { method: "DELETE" });
9303
9367
  }
9304
9368
  update(dsId, body) {
9305
9369
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -9316,7 +9380,7 @@ var DesignSystemsEndpoint = class {
9316
9380
  };
9317
9381
 
9318
9382
  // src/api/endpoints/workspaces/integrations.ts
9319
- import { z as z290 } from "zod";
9383
+ import { z as z291 } from "zod";
9320
9384
  var WorkspaceIntegrationsEndpoint = class {
9321
9385
  constructor(requestExecutor) {
9322
9386
  this.requestExecutor = requestExecutor;
@@ -9325,7 +9389,7 @@ var WorkspaceIntegrationsEndpoint = class {
9325
9389
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
9326
9390
  }
9327
9391
  delete(wsId, iId) {
9328
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z290.unknown(), { method: "DELETE" });
9392
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z291.unknown(), { method: "DELETE" });
9329
9393
  }
9330
9394
  };
9331
9395
 
@@ -9357,7 +9421,7 @@ var WorkspaceInvitationsEndpoint = class {
9357
9421
  };
9358
9422
 
9359
9423
  // src/api/endpoints/workspaces/members.ts
9360
- import { z as z291 } from "zod";
9424
+ import { z as z292 } from "zod";
9361
9425
  var WorkspaceMembersEndpoint = class {
9362
9426
  constructor(requestExecutor) {
9363
9427
  this.requestExecutor = requestExecutor;
@@ -9374,7 +9438,7 @@ var WorkspaceMembersEndpoint = class {
9374
9438
  });
9375
9439
  }
9376
9440
  invite(workspaceId, body) {
9377
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z291.any(), { method: "POST", body });
9441
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z292.any(), { method: "POST", body });
9378
9442
  }
9379
9443
  delete(workspaceId, userId) {
9380
9444
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -9403,7 +9467,7 @@ var WorkspaceNpmRegistryEndpoint = class {
9403
9467
  };
9404
9468
 
9405
9469
  // src/api/endpoints/workspaces/workspaces.ts
9406
- import { z as z292 } from "zod";
9470
+ import { z as z293 } from "zod";
9407
9471
  var WorkspacesEndpoint = class {
9408
9472
  constructor(requestExecutor) {
9409
9473
  this.requestExecutor = requestExecutor;
@@ -9433,10 +9497,10 @@ var WorkspacesEndpoint = class {
9433
9497
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
9434
9498
  }
9435
9499
  delete(workspaceId) {
9436
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z292.any(), { method: "DELETE" });
9500
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z293.any(), { method: "DELETE" });
9437
9501
  }
9438
9502
  subscription(workspaceId) {
9439
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z292.any(), { method: "GET" });
9503
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z293.any(), { method: "GET" });
9440
9504
  }
9441
9505
  transferOwnership(workspaceId, body) {
9442
9506
  return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
@@ -9536,9 +9600,9 @@ ${bodyText}`,
9536
9600
 
9537
9601
  // src/api/transport/request-executor.ts
9538
9602
  import fetch from "node-fetch";
9539
- import { z as z293 } from "zod";
9540
- var ResponseWrapper = z293.object({
9541
- result: z293.record(z293.any())
9603
+ import { z as z294 } from "zod";
9604
+ var ResponseWrapper = z294.object({
9605
+ result: z294.record(z294.any())
9542
9606
  });
9543
9607
  var RequestExecutor = class {
9544
9608
  constructor(testServerConfig) {
@@ -9612,31 +9676,31 @@ var SupernovaApiClient = class {
9612
9676
  };
9613
9677
 
9614
9678
  // src/events/design-system.ts
9615
- import { z as z294 } from "zod";
9616
- var DTOEventFigmaNodesRendered = z294.object({
9617
- type: z294.literal("DesignSystem.FigmaNodesRendered"),
9618
- designSystemId: z294.string(),
9619
- versionId: z294.string(),
9620
- figmaNodePersistentIds: z294.string().array()
9621
- });
9622
- var DTOEventDataSourcesImported = z294.object({
9623
- type: z294.literal("DesignSystem.ImportJobFinished"),
9624
- designSystemId: z294.string(),
9625
- versionId: z294.string(),
9626
- importJobId: z294.string(),
9679
+ import { z as z295 } from "zod";
9680
+ var DTOEventFigmaNodesRendered = z295.object({
9681
+ type: z295.literal("DesignSystem.FigmaNodesRendered"),
9682
+ designSystemId: z295.string(),
9683
+ versionId: z295.string(),
9684
+ figmaNodePersistentIds: z295.string().array()
9685
+ });
9686
+ var DTOEventDataSourcesImported = z295.object({
9687
+ type: z295.literal("DesignSystem.ImportJobFinished"),
9688
+ designSystemId: z295.string(),
9689
+ versionId: z295.string(),
9690
+ importJobId: z295.string(),
9627
9691
  dataSourceType: DataSourceRemoteType,
9628
- dataSourceIds: z294.string().array()
9692
+ dataSourceIds: z295.string().array()
9629
9693
  });
9630
9694
 
9631
9695
  // src/events/event.ts
9632
- import { z as z295 } from "zod";
9633
- var DTOEvent = z295.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
9696
+ import { z as z296 } from "zod";
9697
+ var DTOEvent = z296.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
9634
9698
 
9635
9699
  // src/sync/docs-structure-repo.ts
9636
9700
  import PQueue from "p-queue";
9637
9701
 
9638
9702
  // src/yjs/design-system-content/documentation-hierarchy.ts
9639
- import { z as z296 } from "zod";
9703
+ import { z as z297 } from "zod";
9640
9704
 
9641
9705
  // src/yjs/version-room/base.ts
9642
9706
  var VersionRoomBaseYDoc = class {
@@ -10186,24 +10250,24 @@ var FrontendVersionRoomYDoc = class {
10186
10250
  };
10187
10251
 
10188
10252
  // src/yjs/design-system-content/documentation-hierarchy.ts
10189
- var DocumentationHierarchySettings = z296.object({
10190
- routingVersion: z296.string(),
10191
- isDraftFeatureAdopted: z296.boolean(),
10192
- isApprovalFeatureEnabled: z296.boolean(),
10193
- approvalRequiredForPublishing: z296.boolean()
10253
+ var DocumentationHierarchySettings = z297.object({
10254
+ routingVersion: z297.string(),
10255
+ isDraftFeatureAdopted: z297.boolean(),
10256
+ isApprovalFeatureEnabled: z297.boolean(),
10257
+ approvalRequiredForPublishing: z297.boolean()
10194
10258
  });
10195
10259
  function yjsToDocumentationHierarchy(doc) {
10196
10260
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
10197
10261
  }
10198
10262
 
10199
10263
  // src/yjs/design-system-content/item-configuration.ts
10200
- import { z as z297 } from "zod";
10201
- var DTODocumentationPageRoomHeaderData = z297.object({
10202
- title: z297.string(),
10264
+ import { z as z298 } from "zod";
10265
+ var DTODocumentationPageRoomHeaderData = z298.object({
10266
+ title: z298.string(),
10203
10267
  configuration: DTODocumentationItemConfigurationV2
10204
10268
  });
10205
- var DTODocumentationPageRoomHeaderDataUpdate = z297.object({
10206
- title: z297.string().optional(),
10269
+ var DTODocumentationPageRoomHeaderDataUpdate = z298.object({
10270
+ title: z298.string().optional(),
10207
10271
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
10208
10272
  });
10209
10273
  function itemConfigurationToYjs(yDoc, item) {
@@ -10238,9 +10302,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
10238
10302
  var PageSectionEditorModel = PageSectionEditorModelV2;
10239
10303
 
10240
10304
  // src/yjs/docs-editor/model/page.ts
10241
- import { z as z298 } from "zod";
10242
- var DocumentationPageEditorModel = z298.object({
10243
- blocks: z298.array(DocumentationPageContentItem)
10305
+ import { z as z299 } from "zod";
10306
+ var DocumentationPageEditorModel = z299.object({
10307
+ blocks: z299.array(DocumentationPageContentItem)
10244
10308
  });
10245
10309
 
10246
10310
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -13833,7 +13897,7 @@ var blocks = [
13833
13897
 
13834
13898
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
13835
13899
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
13836
- import { z as z299 } from "zod";
13900
+ import { z as z300 } from "zod";
13837
13901
  function yDocToPage(yDoc, definitions) {
13838
13902
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
13839
13903
  }
@@ -13909,7 +13973,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
13909
13973
  if (!id) return null;
13910
13974
  return {
13911
13975
  id,
13912
- title: getProsemirrorAttribute(prosemirrorNode, "title", z299.string()) ?? "",
13976
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z300.string()) ?? "",
13913
13977
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
13914
13978
  };
13915
13979
  }
@@ -13943,7 +14007,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
13943
14007
  });
13944
14008
  }
13945
14009
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
13946
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z299.string());
14010
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z300.string());
13947
14011
  if (!definitionId) {
13948
14012
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
13949
14013
  return [];
@@ -13984,7 +14048,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
13984
14048
  const id = getProsemirrorBlockId(prosemirrorNode);
13985
14049
  if (!id) return null;
13986
14050
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13987
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z299.string().optional()));
14051
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z300.string().optional()));
13988
14052
  return {
13989
14053
  id,
13990
14054
  type: "Block",
@@ -14107,9 +14171,9 @@ function parseRichTextAttribute(mark) {
14107
14171
  return null;
14108
14172
  }
14109
14173
  function parseProsemirrorLink(mark) {
14110
- const href = getProsemirrorAttribute(mark, "href", z299.string().optional());
14174
+ const href = getProsemirrorAttribute(mark, "href", z300.string().optional());
14111
14175
  if (!href) return null;
14112
- const target = getProsemirrorAttribute(mark, "target", z299.string().optional());
14176
+ const target = getProsemirrorAttribute(mark, "target", z300.string().optional());
14113
14177
  const openInNewTab = target === "_blank";
14114
14178
  if (href.startsWith("@")) {
14115
14179
  return {
@@ -14128,9 +14192,9 @@ function parseProsemirrorLink(mark) {
14128
14192
  }
14129
14193
  }
14130
14194
  function parseProsemirrorCommentHighlight(mark) {
14131
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z299.string().optional());
14195
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z300.string().optional());
14132
14196
  if (!highlightId) return null;
14133
- const isResolved = getProsemirrorAttribute(mark, "resolved", z299.boolean().optional()) ?? false;
14197
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z300.boolean().optional()) ?? false;
14134
14198
  return {
14135
14199
  type: "Comment",
14136
14200
  commentHighlightId: highlightId,
@@ -14141,7 +14205,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
14141
14205
  const id = getProsemirrorBlockId(prosemirrorNode);
14142
14206
  if (!id) return null;
14143
14207
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
14144
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z299.boolean().optional()) !== false;
14208
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z300.boolean().optional()) !== false;
14145
14209
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
14146
14210
  if (!tableChild) {
14147
14211
  return emptyTable(id, variantId, 0);
@@ -14187,9 +14251,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
14187
14251
  function parseAsTableCell(prosemirrorNode) {
14188
14252
  const id = getProsemirrorBlockId(prosemirrorNode);
14189
14253
  if (!id) return null;
14190
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z299.string().optional());
14254
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z300.string().optional());
14191
14255
  let columnWidth;
14192
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z299.array(z299.number()).nullish());
14256
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z300.array(z300.number()).nullish());
14193
14257
  if (columnWidthArray) {
14194
14258
  columnWidth = roundDimension(columnWidthArray[0]);
14195
14259
  }
@@ -14225,7 +14289,7 @@ function parseAsTableNode(prosemirrorNode) {
14225
14289
  value: parseRichText(prosemirrorNode.content ?? [])
14226
14290
  };
14227
14291
  case "image":
14228
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z299.string());
14292
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z300.string());
14229
14293
  if (!items) return null;
14230
14294
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
14231
14295
  if (!parsedItems.success) return null;
@@ -14339,7 +14403,7 @@ function definitionExpectsPlaceholderItem(definition) {
14339
14403
  );
14340
14404
  }
14341
14405
  function parseBlockItems(prosemirrorNode, definition) {
14342
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z299.string());
14406
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z300.string());
14343
14407
  if (!itemsString) return null;
14344
14408
  const itemsJson = JSON.parse(itemsString);
14345
14409
  if (!Array.isArray(itemsJson)) {
@@ -14350,18 +14414,18 @@ function parseBlockItems(prosemirrorNode, definition) {
14350
14414
  }
14351
14415
  function parseAppearance(prosemirrorNode) {
14352
14416
  let appearance = {};
14353
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z299.string().optional());
14417
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z300.string().optional());
14354
14418
  if (rawAppearanceString) {
14355
14419
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
14356
14420
  if (parsedAppearance.success) {
14357
14421
  appearance = parsedAppearance.data;
14358
14422
  }
14359
14423
  }
14360
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z299.number().optional());
14424
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z300.number().optional());
14361
14425
  if (columns) {
14362
14426
  appearance.numberOfColumns = columns;
14363
14427
  }
14364
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z299.string().optional());
14428
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z300.string().optional());
14365
14429
  if (backgroundColor) {
14366
14430
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
14367
14431
  if (parsedColor.success) {
@@ -14460,12 +14524,12 @@ function valueSchemaForPropertyType(type) {
14460
14524
  }
14461
14525
  }
14462
14526
  function getProsemirrorBlockId(prosemirrorNode) {
14463
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z299.string());
14527
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z300.string());
14464
14528
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
14465
14529
  return id;
14466
14530
  }
14467
14531
  function getProsemirrorBlockVariantId(prosemirrorNode) {
14468
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z299.string()));
14532
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z300.string()));
14469
14533
  }
14470
14534
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
14471
14535
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -15263,6 +15327,12 @@ export {
15263
15327
  DTOFigmaNodeStructureListResponse,
15264
15328
  DTOFigmaNodeV2,
15265
15329
  DTOFigmaSourceUpdatePayload,
15330
+ DTOFileUploadFinalizePayload,
15331
+ DTOFileUploadFinalizeResponse,
15332
+ DTOFileUploadItem,
15333
+ DTOFileUploadPayload,
15334
+ DTOFileUploadResponse,
15335
+ DTOFileUploadResponseItem,
15266
15336
  DTOFrameNodeStructure,
15267
15337
  DTOFrameNodeStructureListResponse,
15268
15338
  DTOGetBlockDefinitionsOutput,
@@ -15348,6 +15418,7 @@ export {
15348
15418
  DTOUpdateRegistryOutput,
15349
15419
  DTOUpdateUserNotificationSettingsPayload,
15350
15420
  DTOUpdateVersionInput,
15421
+ DTOUploadUrlItem,
15351
15422
  DTOUser,
15352
15423
  DTOUserDesignSystemsResponse,
15353
15424
  DTOUserGetResponse,
@@ -15409,6 +15480,7 @@ export {
15409
15480
  FigmaFrameStructuresEndpoint,
15410
15481
  FigmaNodeStructuresEndpoint,
15411
15482
  FigmaUtils,
15483
+ FilesEndpoint,
15412
15484
  FormattedCollections,
15413
15485
  FrontendVersionRoomYDoc,
15414
15486
  GitDestinationOptions,