@supernova-studio/model 0.46.7 → 0.46.9

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
@@ -247,175 +247,303 @@ var Subscription = z11.object({
247
247
  daysUntilDue: z11.number().optional()
248
248
  });
249
249
 
250
- // src/dsm/assets/asset-dynamo-record.ts
250
+ // src/common/entity.ts
251
251
  import { z as z12 } from "zod";
252
- var AssetDynamoRecord = z12.object({
253
- path: z12.string(),
252
+ var Entity = z12.object({
254
253
  id: z12.string(),
255
- designSystemId: z12.string(),
256
- expiresAt: z12.number()
254
+ createdAt: z12.coerce.date(),
255
+ updatedAt: z12.coerce.date()
257
256
  });
258
257
 
259
- // src/dsm/assets/asset-reference.ts
258
+ // src/common/object-meta.ts
260
259
  import { z as z13 } from "zod";
261
- var AssetReference = z13.object({
262
- id: z13.string(),
263
- designSystemVersionId: z13.string(),
264
- assetId: z13.string(),
265
- persistentId: z13.string()
260
+ var ObjectMeta = z13.object({
261
+ name: z13.string(),
262
+ description: z13.string().optional()
266
263
  });
267
264
 
268
- // src/dsm/assets/asset-value.ts
265
+ // src/custom-domains/custom-domains.ts
269
266
  import { z as z14 } from "zod";
270
- var AssetValue = z14.object({});
267
+ var CustomDomain = z14.object({
268
+ id: z14.string(),
269
+ designSystemId: z14.string(),
270
+ state: z14.string(),
271
+ supernovaDomain: z14.string(),
272
+ customerDomain: z14.string().nullish(),
273
+ error: z14.string().nullish(),
274
+ errorCode: z14.string().nullish()
275
+ });
271
276
 
272
- // src/dsm/assets/asset.ts
277
+ // src/docs-server/session.ts
278
+ import { z as z22 } from "zod";
279
+
280
+ // src/users/linked-integrations.ts
273
281
  import { z as z15 } from "zod";
274
- var AssetType = z15.enum(["Image", "Font"]);
275
- var AssetScope = z15.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
276
- var AssetFontProperties = z15.object({
277
- family: z15.string(),
278
- subfamily: z15.string()
279
- });
280
- var AssetProperties = z15.union([
281
- z15.object({
282
- fontProperties: z15.array(AssetFontProperties)
282
+ var IntegrationAuthType = z15.union([z15.literal("OAuth2"), z15.literal("PAT")]);
283
+ var ExternalServiceType = z15.union([
284
+ z15.literal("figma"),
285
+ z15.literal("github"),
286
+ z15.literal("azure"),
287
+ z15.literal("gitlab"),
288
+ z15.literal("bitbucket")
289
+ ]);
290
+ var IntegrationUserInfo = z15.object({
291
+ id: z15.string(),
292
+ handle: z15.string().optional(),
293
+ avatarUrl: z15.string().optional(),
294
+ email: z15.string().optional(),
295
+ authType: IntegrationAuthType.optional(),
296
+ customUrl: z15.string().optional()
297
+ });
298
+ var UserLinkedIntegrations = z15.object({
299
+ figma: IntegrationUserInfo.optional(),
300
+ github: IntegrationUserInfo.array().optional(),
301
+ azure: IntegrationUserInfo.array().optional(),
302
+ gitlab: IntegrationUserInfo.array().optional(),
303
+ bitbucket: IntegrationUserInfo.array().optional()
304
+ });
305
+
306
+ // src/users/user-create.ts
307
+ import { z as z16 } from "zod";
308
+ var CreateUserInput = z16.object({
309
+ email: z16.string(),
310
+ name: z16.string(),
311
+ username: z16.string()
312
+ });
313
+
314
+ // src/users/user-identity.ts
315
+ import { z as z17 } from "zod";
316
+ var UserIdentity = z17.object({
317
+ id: z17.string(),
318
+ userId: z17.string()
319
+ });
320
+
321
+ // src/users/user-minified.ts
322
+ import { z as z18 } from "zod";
323
+ var UserMinified = z18.object({
324
+ id: z18.string(),
325
+ name: z18.string(),
326
+ email: z18.string(),
327
+ avatar: z18.string().optional()
328
+ });
329
+
330
+ // src/users/user-profile.ts
331
+ import { z as z19 } from "zod";
332
+ var UserOnboardingDepartment = z19.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
333
+ var UserOnboardingJobLevel = z19.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
334
+ var UserOnboarding = z19.object({
335
+ companyName: z19.string().optional(),
336
+ numberOfPeopleInOrg: z19.string().optional(),
337
+ numberOfPeopleInDesignTeam: z19.string().optional(),
338
+ department: UserOnboardingDepartment.optional(),
339
+ jobTitle: z19.string().optional(),
340
+ phase: z19.string().optional(),
341
+ jobLevel: UserOnboardingJobLevel.optional()
342
+ });
343
+ var UserProfile = z19.object({
344
+ name: z19.string(),
345
+ avatar: z19.string().optional(),
346
+ nickname: z19.string().optional(),
347
+ onboarding: UserOnboarding.optional()
348
+ });
349
+
350
+ // src/users/user-test.ts
351
+ import { z as z20 } from "zod";
352
+ var UserTest = z20.object({
353
+ id: z20.string(),
354
+ email: z20.string()
355
+ });
356
+
357
+ // src/users/user.ts
358
+ import { z as z21 } from "zod";
359
+ var User = z21.object({
360
+ id: z21.string(),
361
+ email: z21.string(),
362
+ emailVerified: z21.boolean(),
363
+ createdAt: z21.coerce.date(),
364
+ trialExpiresAt: z21.coerce.date().optional(),
365
+ profile: UserProfile,
366
+ linkedIntegrations: UserLinkedIntegrations.optional(),
367
+ loggedOutAt: z21.coerce.date().optional(),
368
+ isProtected: z21.boolean()
369
+ });
370
+
371
+ // src/docs-server/session.ts
372
+ var NpmProxyToken = z22.object({
373
+ access: z22.string(),
374
+ expiresAt: z22.number()
375
+ });
376
+ var SessionData = z22.object({
377
+ returnToUrl: z22.string().optional(),
378
+ npmProxyToken: NpmProxyToken.optional()
379
+ });
380
+ var Session = z22.object({
381
+ id: z22.string(),
382
+ expiresAt: z22.coerce.date(),
383
+ userId: z22.string().nullable(),
384
+ data: SessionData
385
+ });
386
+ var AuthTokens = z22.object({
387
+ access: z22.string(),
388
+ refresh: z22.string()
389
+ });
390
+ var UserSession = z22.object({
391
+ session: Session,
392
+ user: User.nullable()
393
+ });
394
+
395
+ // src/dsm/assets/asset-dynamo-record.ts
396
+ import { z as z23 } from "zod";
397
+ var AssetDynamoRecord = z23.object({
398
+ path: z23.string(),
399
+ id: z23.string(),
400
+ designSystemId: z23.string(),
401
+ expiresAt: z23.number()
402
+ });
403
+
404
+ // src/dsm/assets/asset-reference.ts
405
+ import { z as z24 } from "zod";
406
+ var AssetReference = z24.object({
407
+ id: z24.string(),
408
+ designSystemVersionId: z24.string(),
409
+ assetId: z24.string(),
410
+ persistentId: z24.string()
411
+ });
412
+
413
+ // src/dsm/assets/asset-value.ts
414
+ import { z as z25 } from "zod";
415
+ var AssetValue = z25.object({});
416
+
417
+ // src/dsm/assets/asset.ts
418
+ import { z as z26 } from "zod";
419
+ var AssetType = z26.enum(["Image", "Font"]);
420
+ var AssetScope = z26.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
421
+ var AssetFontProperties = z26.object({
422
+ family: z26.string(),
423
+ subfamily: z26.string()
424
+ });
425
+ var AssetProperties = z26.union([
426
+ z26.object({
427
+ fontProperties: z26.array(AssetFontProperties)
283
428
  }),
284
- z15.object({
285
- width: z15.number(),
286
- height: z15.number()
429
+ z26.object({
430
+ width: z26.number(),
431
+ height: z26.number()
287
432
  })
288
433
  ]);
289
- var AssetOrigin = z15.object({
290
- originKey: z15.string()
434
+ var AssetOrigin = z26.object({
435
+ originKey: z26.string()
291
436
  });
292
- var AssetProcessStatus = z15.enum(["Pending", "Uploaded", "Processed"]);
293
- var Asset = z15.object({
294
- id: z15.string(),
295
- designSystemId: z15.string().nullish(),
437
+ var AssetProcessStatus = z26.enum(["Pending", "Uploaded", "Processed"]);
438
+ var Asset = z26.object({
439
+ id: z26.string(),
440
+ designSystemId: z26.string().nullish(),
296
441
  type: AssetType,
297
- originalFileName: z15.string().nullish(),
298
- filePath: z15.string(),
442
+ originalFileName: z26.string().nullish(),
443
+ filePath: z26.string(),
299
444
  scope: AssetScope,
300
445
  properties: AssetProperties.nullish(),
301
446
  state: AssetProcessStatus.optional(),
302
447
  origin: AssetOrigin.optional(),
303
- originKey: z15.string().optional()
448
+ originKey: z26.string().optional()
304
449
  });
305
450
  function isImportedAsset(asset) {
306
451
  return !!asset.originKey;
307
452
  }
308
453
 
309
454
  // src/dsm/data-sources/data-source.ts
310
- import { z as z16 } from "zod";
311
- var DataSourceRemoteType = z16.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
312
- var DataSourceUploadRemoteSource = z16.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
313
- var DataSourceFigmaState = z16.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
314
- var DataSourceAutoImportMode = z16.enum(["Never", "Hourly"]);
315
- var DataSourceStats = z16.object({
455
+ import { z as z27 } from "zod";
456
+ var DataSourceRemoteType = z27.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
457
+ var DataSourceUploadRemoteSource = z27.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
458
+ var DataSourceFigmaState = z27.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
459
+ var DataSourceAutoImportMode = z27.enum(["Never", "Hourly"]);
460
+ var DataSourceStats = z27.object({
316
461
  tokens: zeroNumberByDefault(),
317
462
  components: zeroNumberByDefault(),
318
463
  assets: zeroNumberByDefault(),
319
464
  frames: zeroNumberByDefault()
320
465
  });
321
- var DataSourceFigmaFileData = z16.object({
322
- lastUpdatedAt: z16.coerce.date()
466
+ var DataSourceFigmaFileData = z27.object({
467
+ lastUpdatedAt: z27.coerce.date()
323
468
  });
324
- var DataSourceFigmaFileVersionData = z16.object({
325
- id: z16.string(),
326
- label: z16.string().optional(),
327
- description: z16.string().optional(),
328
- createdAt: z16.coerce.date()
469
+ var DataSourceFigmaFileVersionData = z27.object({
470
+ id: z27.string(),
471
+ label: z27.string().optional(),
472
+ description: z27.string().optional(),
473
+ createdAt: z27.coerce.date()
329
474
  });
330
- var DataSourceFigmaScope = z16.object({
331
- assets: z16.boolean(),
332
- components: z16.boolean(),
333
- documentationFrames: z16.boolean(),
334
- tokens: z16.boolean(),
335
- themePersistentId: z16.string().optional()
475
+ var DataSourceFigmaScope = z27.object({
476
+ assets: z27.boolean(),
477
+ components: z27.boolean(),
478
+ documentationFrames: z27.boolean(),
479
+ tokens: z27.boolean(),
480
+ themePersistentId: z27.string().optional()
336
481
  });
337
- var DataSourceFigmaImportMetadata = z16.object({
482
+ var DataSourceFigmaImportMetadata = z27.object({
338
483
  fileData: DataSourceFigmaFileData.optional(),
339
484
  importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
340
485
  });
341
- var DataSourceFigmaRemote = z16.object({
342
- type: z16.literal(DataSourceRemoteType.Enum.Figma),
343
- fileId: z16.string(),
344
- ownerId: z16.string(),
345
- ownerName: z16.string(),
486
+ var DataSourceFigmaRemote = z27.object({
487
+ type: z27.literal(DataSourceRemoteType.Enum.Figma),
488
+ fileId: z27.string(),
489
+ ownerId: z27.string(),
490
+ ownerName: z27.string(),
346
491
  scope: DataSourceFigmaScope,
347
492
  state: DataSourceFigmaState,
348
- requiresSync: z16.boolean().optional().transform((v) => v ?? false),
493
+ requiresSync: z27.boolean().optional().transform((v) => v ?? false),
349
494
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
350
- downloadChunkSize: z16.number().optional(),
351
- figmaRenderChunkSize: z16.number().optional(),
352
- maxFileDepth: z16.number().optional()
495
+ downloadChunkSize: z27.number().optional(),
496
+ figmaRenderChunkSize: z27.number().optional(),
497
+ maxFileDepth: z27.number().optional()
353
498
  });
354
- var DataSourceTokenStudioRemote = z16.object({
355
- type: z16.literal(DataSourceRemoteType.Enum.TokenStudio)
499
+ var DataSourceTokenStudioRemote = z27.object({
500
+ type: z27.literal(DataSourceRemoteType.Enum.TokenStudio)
356
501
  });
357
- var DataSourceUploadImportMetadata = z16.record(z16.any());
358
- var DataSourceUploadRemote = z16.object({
359
- type: z16.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
360
- remoteId: z16.string(),
502
+ var DataSourceUploadImportMetadata = z27.record(z27.any());
503
+ var DataSourceUploadRemote = z27.object({
504
+ type: z27.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
505
+ remoteId: z27.string(),
361
506
  remoteSourceType: DataSourceUploadRemoteSource,
362
507
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
363
508
  });
364
- var DataSourceRemote = z16.discriminatedUnion("type", [
509
+ var DataSourceRemote = z27.discriminatedUnion("type", [
365
510
  DataSourceFigmaRemote,
366
511
  DataSourceUploadRemote,
367
512
  DataSourceTokenStudioRemote
368
513
  ]);
369
- var DataSourceVersion = z16.object({
370
- id: z16.string(),
371
- createdAt: z16.coerce.date(),
372
- label: z16.string().nullish(),
373
- description: z16.string().nullish()
514
+ var DataSourceVersion = z27.object({
515
+ id: z27.string(),
516
+ createdAt: z27.coerce.date(),
517
+ label: z27.string().nullish(),
518
+ description: z27.string().nullish()
374
519
  });
375
520
  function zeroNumberByDefault() {
376
- return z16.number().nullish().transform((v) => v ?? 0);
521
+ return z27.number().nullish().transform((v) => v ?? 0);
377
522
  }
378
523
 
379
524
  // src/dsm/data-sources/import-job.ts
380
- import { z as z19 } from "zod";
381
-
382
- // src/common/entity.ts
383
- import { z as z17 } from "zod";
384
- var Entity = z17.object({
385
- id: z17.string(),
386
- createdAt: z17.coerce.date(),
387
- updatedAt: z17.coerce.date()
388
- });
389
-
390
- // src/common/object-meta.ts
391
- import { z as z18 } from "zod";
392
- var ObjectMeta = z18.object({
393
- name: z18.string(),
394
- description: z18.string().optional()
395
- });
396
-
397
- // src/dsm/data-sources/import-job.ts
398
- var ImportJobState = z19.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
399
- var ImportJobOperation = z19.enum(["Check", "Import"]);
525
+ import { z as z28 } from "zod";
526
+ var ImportJobState = z28.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
527
+ var ImportJobOperation = z28.enum(["Check", "Import"]);
400
528
  var ImportJob = Entity.extend({
401
- designSystemId: z19.string(),
402
- designSystemVersionId: z19.string(),
403
- sourceIds: z19.array(z19.string()),
529
+ designSystemId: z28.string(),
530
+ designSystemVersionId: z28.string(),
531
+ sourceIds: z28.array(z28.string()),
404
532
  state: ImportJobState,
405
- createdByUserId: z19.string().optional(),
406
- importContextId: z19.string(),
407
- error: z19.string().optional(),
533
+ createdByUserId: z28.string().optional(),
534
+ importContextId: z28.string(),
535
+ error: z28.string().optional(),
408
536
  sourceType: DataSourceRemoteType,
409
- importContextCleanedUp: z19.boolean()
537
+ importContextCleanedUp: z28.boolean()
410
538
  });
411
539
 
412
540
  // src/dsm/data-sources/import-summary.ts
413
- import { z as z88 } from "zod";
541
+ import { z as z97 } from "zod";
414
542
 
415
543
  // src/dsm/elements/data/base.ts
416
- import { z as z20 } from "zod";
417
- var TokenDataAliasSchema = z20.object({
418
- aliasTo: z20.string().optional().nullable().transform((v) => v ?? void 0)
544
+ import { z as z29 } from "zod";
545
+ var TokenDataAliasSchema = z29.object({
546
+ aliasTo: z29.string().optional().nullable().transform((v) => v ?? void 0)
419
547
  });
420
548
  function tokenAliasOrValue(value) {
421
549
  return TokenDataAliasSchema.extend({
@@ -424,68 +552,68 @@ function tokenAliasOrValue(value) {
424
552
  }
425
553
 
426
554
  // src/dsm/elements/data/blur.ts
427
- import { z as z22 } from "zod";
555
+ import { z as z31 } from "zod";
428
556
 
429
557
  // src/dsm/elements/data/dimension.ts
430
- import { z as z21 } from "zod";
431
- var DimensionUnit = z21.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
432
- var DimensionValue = z21.object({
558
+ import { z as z30 } from "zod";
559
+ var DimensionUnit = z30.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
560
+ var DimensionValue = z30.object({
433
561
  unit: DimensionUnit,
434
- measure: z21.number()
562
+ measure: z30.number()
435
563
  });
436
564
  var DimensionTokenData = tokenAliasOrValue(DimensionValue);
437
565
 
438
566
  // src/dsm/elements/data/blur.ts
439
- var BlurType = z22.enum(["Layer", "Background"]);
440
- var BlurValue = z22.object({
567
+ var BlurType = z31.enum(["Layer", "Background"]);
568
+ var BlurValue = z31.object({
441
569
  type: BlurType,
442
570
  radius: DimensionTokenData
443
571
  });
444
572
  var BlurTokenData = tokenAliasOrValue(BlurValue);
445
573
 
446
574
  // src/dsm/elements/data/border-radius.ts
447
- import { z as z23 } from "zod";
448
- var BorderRadiusUnit = z23.enum(["Pixels", "Rem", "Percent"]);
449
- var BorderRadiusValue = z23.object({
575
+ import { z as z32 } from "zod";
576
+ var BorderRadiusUnit = z32.enum(["Pixels", "Rem", "Percent"]);
577
+ var BorderRadiusValue = z32.object({
450
578
  unit: BorderRadiusUnit,
451
- measure: z23.number()
579
+ measure: z32.number()
452
580
  });
453
581
  var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
454
582
 
455
583
  // src/dsm/elements/data/border-width.ts
456
- import { z as z24 } from "zod";
457
- var BorderWidthUnit = z24.enum(["Pixels"]);
458
- var BorderWidthValue = z24.object({
584
+ import { z as z33 } from "zod";
585
+ var BorderWidthUnit = z33.enum(["Pixels"]);
586
+ var BorderWidthValue = z33.object({
459
587
  unit: BorderWidthUnit,
460
- measure: z24.number()
588
+ measure: z33.number()
461
589
  });
462
590
  var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
463
591
 
464
592
  // src/dsm/elements/data/border.ts
465
- import { z as z27 } from "zod";
593
+ import { z as z36 } from "zod";
466
594
 
467
595
  // src/dsm/elements/data/color.ts
468
- import { z as z26 } from "zod";
596
+ import { z as z35 } from "zod";
469
597
 
470
598
  // src/dsm/elements/data/opacity.ts
471
- import { z as z25 } from "zod";
472
- var OpacityValue = z25.object({
473
- unit: z25.enum(["Raw", "Pixels"]),
474
- measure: z25.number()
599
+ import { z as z34 } from "zod";
600
+ var OpacityValue = z34.object({
601
+ unit: z34.enum(["Raw", "Pixels"]),
602
+ measure: z34.number()
475
603
  });
476
604
  var OpacityTokenData = tokenAliasOrValue(OpacityValue);
477
605
 
478
606
  // src/dsm/elements/data/color.ts
479
- var ColorValue = z26.object({
607
+ var ColorValue = z35.object({
480
608
  opacity: OpacityTokenData,
481
- color: z26.string().or(TokenDataAliasSchema)
609
+ color: z35.string().or(TokenDataAliasSchema)
482
610
  });
483
611
  var ColorTokenData = tokenAliasOrValue(ColorValue);
484
612
 
485
613
  // src/dsm/elements/data/border.ts
486
- var BorderPosition = z27.enum(["Inside", "Center", "Outside"]);
487
- var BorderStyle = z27.enum(["Dashed", "Dotted", "Solid", "Groove"]);
488
- var BorderValue = z27.object({
614
+ var BorderPosition = z36.enum(["Inside", "Center", "Outside"]);
615
+ var BorderStyle = z36.enum(["Dashed", "Dotted", "Solid", "Groove"]);
616
+ var BorderValue = z36.object({
489
617
  color: ColorTokenData,
490
618
  width: BorderWidthTokenData,
491
619
  position: BorderPosition,
@@ -494,30 +622,30 @@ var BorderValue = z27.object({
494
622
  var BorderTokenData = tokenAliasOrValue(BorderValue);
495
623
 
496
624
  // src/dsm/elements/data/component.ts
497
- import { z as z28 } from "zod";
498
- var ComponentElementData = z28.object({
499
- value: z28.object({
500
- thumbnailImage: z28.object({
501
- value: z28.object({
502
- url: z28.string(),
503
- assetId: z28.string()
625
+ import { z as z37 } from "zod";
626
+ var ComponentElementData = z37.object({
627
+ value: z37.object({
628
+ thumbnailImage: z37.object({
629
+ value: z37.object({
630
+ url: z37.string(),
631
+ assetId: z37.string()
504
632
  })
505
633
  }),
506
- svg: z28.object({
507
- value: z28.object({
508
- url: z28.string(),
509
- assetId: z28.string()
634
+ svg: z37.object({
635
+ value: z37.object({
636
+ url: z37.string(),
637
+ assetId: z37.string()
510
638
  })
511
639
  }).optional()
512
640
  })
513
641
  });
514
642
 
515
643
  // src/dsm/elements/data/documentation-block-v1.ts
516
- import { z as z34 } from "zod";
644
+ import { z as z43 } from "zod";
517
645
 
518
646
  // src/dsm/elements/raw-element.ts
519
- import { z as z29 } from "zod";
520
- var DesignTokenType = z29.enum([
647
+ import { z as z38 } from "zod";
648
+ var DesignTokenType = z38.enum([
521
649
  "Color",
522
650
  "Border",
523
651
  "Gradient",
@@ -549,7 +677,7 @@ var DesignTokenType = z29.enum([
549
677
  ]);
550
678
  var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
551
679
  var DesignElementType = DesignTokenType.or(
552
- z29.enum([
680
+ z38.enum([
553
681
  "Component",
554
682
  "Theme",
555
683
  "Documentation",
@@ -564,7 +692,7 @@ var DesignElementType = DesignTokenType.or(
564
692
  function isTokenType(type) {
565
693
  return DesignTokenType.safeParse(type).success;
566
694
  }
567
- var DesignElementCategory = z29.enum([
695
+ var DesignElementCategory = z38.enum([
568
696
  "Token",
569
697
  "Component",
570
698
  "DesignSystemComponent",
@@ -572,94 +700,94 @@ var DesignElementCategory = z29.enum([
572
700
  "Theme",
573
701
  "PageBlock"
574
702
  ]);
575
- var DesignSystemElementExportProps = z29.object({
576
- isAsset: z29.boolean().nullish().transform((v) => v ?? false),
577
- codeName: z29.string().nullish()
578
- });
579
- var ShallowDesignElement = z29.object({
580
- id: z29.string(),
581
- persistentId: z29.string(),
582
- designSystemVersionId: z29.string(),
703
+ var DesignSystemElementExportProps = z38.object({
704
+ isAsset: z38.boolean().nullish().transform((v) => v ?? false),
705
+ codeName: z38.string().nullish()
706
+ });
707
+ var ShallowDesignElement = z38.object({
708
+ id: z38.string(),
709
+ persistentId: z38.string(),
710
+ designSystemVersionId: z38.string(),
583
711
  type: DesignElementType,
584
- brandPersistentId: z29.string().optional(),
585
- parentPersistentId: z29.string().optional(),
586
- shortPersistentId: z29.string().optional(),
712
+ brandPersistentId: z38.string().optional(),
713
+ parentPersistentId: z38.string().optional(),
714
+ shortPersistentId: z38.string().optional(),
587
715
  childType: DesignElementType.optional(),
588
- sortOrder: z29.number(),
589
- origin: z29.record(z29.any()).optional()
716
+ sortOrder: z38.number(),
717
+ origin: z38.record(z38.any()).optional()
590
718
  });
591
719
  var DesignElement = ShallowDesignElement.extend({
592
720
  meta: ObjectMeta,
593
- slug: z29.string().optional(),
594
- userSlug: z29.string().optional(),
595
- createdAt: z29.coerce.date(),
596
- updatedAt: z29.coerce.date(),
721
+ slug: z38.string().optional(),
722
+ userSlug: z38.string().optional(),
723
+ createdAt: z38.coerce.date(),
724
+ updatedAt: z38.coerce.date(),
597
725
  exportProperties: DesignSystemElementExportProps.optional(),
598
- data: z29.record(z29.any()),
599
- origin: z29.record(z29.any()).optional()
726
+ data: z38.record(z38.any()),
727
+ origin: z38.record(z38.any()).optional()
600
728
  });
601
729
  var HierarchicalElements = DesignTokenType.or(
602
- z29.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
730
+ z38.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
603
731
  );
604
732
 
605
733
  // src/dsm/properties/property-definition.ts
606
- import { z as z30 } from "zod";
607
- var ElementPropertyTypeSchema = z30.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
608
- var ElementPropertyTargetType = z30.enum(["Token", "Component", "DocumentationPage"]);
609
- var ElementPropertyLinkType = z30.enum(["FigmaComponent", "DocumentationPage"]);
734
+ import { z as z39 } from "zod";
735
+ var ElementPropertyTypeSchema = z39.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
736
+ var ElementPropertyTargetType = z39.enum(["Token", "Component", "DocumentationPage"]);
737
+ var ElementPropertyLinkType = z39.enum(["FigmaComponent", "DocumentationPage"]);
610
738
  var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
611
- var ColorTokenInlineData = z30.object({
612
- value: z30.string()
739
+ var ColorTokenInlineData = z39.object({
740
+ value: z39.string()
613
741
  });
614
- var ElementPropertyDefinitionOption = z30.object({
615
- id: z30.string(),
616
- name: z30.string(),
742
+ var ElementPropertyDefinitionOption = z39.object({
743
+ id: z39.string(),
744
+ name: z39.string(),
617
745
  backgroundColor: ColorTokenInlineData.optional()
618
746
  });
619
- var ElementPropertyDefinition = z30.object({
620
- id: z30.string(),
621
- designSystemVersionId: z30.string(),
622
- persistentId: z30.string(),
623
- name: z30.string(),
624
- codeName: z30.string().regex(CODE_NAME_REGEX),
625
- description: z30.string(),
747
+ var ElementPropertyDefinition = z39.object({
748
+ id: z39.string(),
749
+ designSystemVersionId: z39.string(),
750
+ persistentId: z39.string(),
751
+ name: z39.string(),
752
+ codeName: z39.string().regex(CODE_NAME_REGEX),
753
+ description: z39.string(),
626
754
  type: ElementPropertyTypeSchema,
627
755
  targetElementType: ElementPropertyTargetType,
628
- options: z30.array(ElementPropertyDefinitionOption).optional(),
756
+ options: z39.array(ElementPropertyDefinitionOption).optional(),
629
757
  linkElementType: ElementPropertyLinkType.optional()
630
758
  });
631
759
  var ElementPropertyType = ElementPropertyTypeSchema.enum;
632
760
 
633
761
  // src/dsm/properties/property-value.ts
634
- import { z as z31 } from "zod";
635
- var ElementPropertyValue = z31.object({
636
- id: z31.string(),
637
- designSystemVersionId: z31.string(),
638
- targetElementPersistentId: z31.string(),
639
- definitionPersistentId: z31.string(),
640
- stringValue: z31.string().nullish(),
641
- numberValue: z31.number().nullish(),
642
- booleanValue: z31.boolean().nullish(),
643
- referenceValue: z31.string().nullish(),
644
- referenceValuePreview: z31.string().optional()
762
+ import { z as z40 } from "zod";
763
+ var ElementPropertyValue = z40.object({
764
+ id: z40.string(),
765
+ designSystemVersionId: z40.string(),
766
+ targetElementPersistentId: z40.string(),
767
+ definitionPersistentId: z40.string(),
768
+ stringValue: z40.string().nullish(),
769
+ numberValue: z40.number().nullish(),
770
+ booleanValue: z40.boolean().nullish(),
771
+ referenceValue: z40.string().nullish(),
772
+ referenceValuePreview: z40.string().optional()
645
773
  });
646
774
 
647
775
  // src/dsm/elements/primitives/point.ts
648
- import { z as z32 } from "zod";
649
- var Point2D = z32.object({
650
- x: z32.number(),
651
- y: z32.number()
776
+ import { z as z41 } from "zod";
777
+ var Point2D = z41.object({
778
+ x: z41.number(),
779
+ y: z41.number()
652
780
  });
653
781
 
654
782
  // src/dsm/elements/primitives/size.ts
655
- import { z as z33 } from "zod";
783
+ import { z as z42 } from "zod";
656
784
  var nullSize = { height: -1, width: -1 };
657
785
  function isNullSize(size) {
658
786
  return size.height === nullSize.height && size.width === nullSize.width;
659
787
  }
660
- var Size = z33.object({
661
- width: z33.number().nullish().transform((v) => v ?? nullSize.width),
662
- height: z33.number().nullish().transform((v) => v ?? nullSize.height)
788
+ var Size = z42.object({
789
+ width: z42.number().nullish().transform((v) => v ?? nullSize.width),
790
+ height: z42.number().nullish().transform((v) => v ?? nullSize.height)
663
791
  });
664
792
  var SizeOrUndefined = Size.optional().transform((v) => {
665
793
  if (!v)
@@ -670,8 +798,8 @@ var SizeOrUndefined = Size.optional().transform((v) => {
670
798
  });
671
799
 
672
800
  // src/dsm/elements/data/documentation-block-v1.ts
673
- var PageBlockCalloutType = z34.enum(["Info", "Primary", "Success", "Warning", "Error"]);
674
- var PageBlockTypeV1 = z34.enum([
801
+ var PageBlockCalloutType = z43.enum(["Info", "Primary", "Success", "Warning", "Error"]);
802
+ var PageBlockTypeV1 = z43.enum([
675
803
  "Text",
676
804
  "Heading",
677
805
  "Code",
@@ -704,7 +832,7 @@ var PageBlockTypeV1 = z34.enum([
704
832
  "TableRow",
705
833
  "TableCell"
706
834
  ]);
707
- var PageBlockCodeLanguage = z34.enum([
835
+ var PageBlockCodeLanguage = z43.enum([
708
836
  "Angular",
709
837
  "Bash",
710
838
  "C",
@@ -738,70 +866,70 @@ var PageBlockCodeLanguage = z34.enum([
738
866
  "XML",
739
867
  "YAML"
740
868
  ]);
741
- var PageBlockAlignment = z34.enum(["Left", "Center", "Stretch", "Right"]);
742
- var PageBlockThemeType = z34.enum(["Override", "Comparison"]);
743
- var PageBlockAssetType = z34.enum(["image", "figmaFrame"]);
744
- var PageBlockTilesAlignment = z34.enum(["Center", "FrameHeight"]);
745
- var PageBlockTilesLayout = z34.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
746
- var PageBlockTheme = z34.object({
747
- themeIds: z34.array(z34.string()),
869
+ var PageBlockAlignment = z43.enum(["Left", "Center", "Stretch", "Right"]);
870
+ var PageBlockThemeType = z43.enum(["Override", "Comparison"]);
871
+ var PageBlockAssetType = z43.enum(["image", "figmaFrame"]);
872
+ var PageBlockTilesAlignment = z43.enum(["Center", "FrameHeight"]);
873
+ var PageBlockTilesLayout = z43.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
874
+ var PageBlockTheme = z43.object({
875
+ themeIds: z43.array(z43.string()),
748
876
  type: PageBlockThemeType
749
877
  });
750
- var PageBlockUrlPreview = z34.object({
751
- title: nullishToOptional(z34.string()),
752
- description: nullishToOptional(z34.string()),
753
- thumbnailUrl: nullishToOptional(z34.string())
754
- });
755
- var PageBlockFrameOrigin = z34.object({
756
- sourceFileName: nullishToOptional(z34.string()),
757
- title: nullishToOptional(z34.string()),
758
- previewUrl: nullishToOptional(z34.string()),
759
- valid: nullishToOptional(z34.boolean()),
760
- referenceId: nullishToOptional(z34.string()),
761
- assetId: nullishToOptional(z34.string()),
762
- assetScale: nullishToOptional(z34.number()),
763
- width: nullishToOptional(z34.number()),
764
- height: nullishToOptional(z34.number())
765
- });
766
- var PageBlockFrame = z34.object({
767
- persistentId: z34.string(),
768
- sourceId: z34.string(),
769
- sourceFrameId: z34.string(),
770
- title: nullishToOptional(z34.string()),
771
- description: nullishToOptional(z34.string()),
878
+ var PageBlockUrlPreview = z43.object({
879
+ title: nullishToOptional(z43.string()),
880
+ description: nullishToOptional(z43.string()),
881
+ thumbnailUrl: nullishToOptional(z43.string())
882
+ });
883
+ var PageBlockFrameOrigin = z43.object({
884
+ sourceFileName: nullishToOptional(z43.string()),
885
+ title: nullishToOptional(z43.string()),
886
+ previewUrl: nullishToOptional(z43.string()),
887
+ valid: nullishToOptional(z43.boolean()),
888
+ referenceId: nullishToOptional(z43.string()),
889
+ assetId: nullishToOptional(z43.string()),
890
+ assetScale: nullishToOptional(z43.number()),
891
+ width: nullishToOptional(z43.number()),
892
+ height: nullishToOptional(z43.number())
893
+ });
894
+ var PageBlockFrame = z43.object({
895
+ persistentId: z43.string(),
896
+ sourceId: z43.string(),
897
+ sourceFrameId: z43.string(),
898
+ title: nullishToOptional(z43.string()),
899
+ description: nullishToOptional(z43.string()),
772
900
  backgroundColor: nullishToOptional(ColorTokenInlineData),
773
901
  origin: nullishToOptional(PageBlockFrameOrigin)
774
902
  });
775
- var PageBlockAsset = z34.object({
903
+ var PageBlockAsset = z43.object({
776
904
  type: PageBlockAssetType,
777
- id: nullishToOptional(z34.string()),
778
- url: nullishToOptional(z34.string()),
905
+ id: nullishToOptional(z43.string()),
906
+ url: nullishToOptional(z43.string()),
779
907
  figmaFrame: nullishToOptional(PageBlockFrame)
780
908
  });
781
- var PageBlockLinkPreview = z34.object({
782
- title: nullishToOptional(z34.string()),
783
- valid: nullishToOptional(z34.boolean())
909
+ var PageBlockLinkPreview = z43.object({
910
+ title: nullishToOptional(z43.string()),
911
+ valid: nullishToOptional(z43.boolean())
784
912
  });
785
- var PageBlockShortcut = z34.object({
786
- persistentId: z34.string(),
787
- title: nullishToOptional(z34.string()),
788
- description: nullishToOptional(z34.string()),
913
+ var PageBlockShortcut = z43.object({
914
+ persistentId: z43.string(),
915
+ title: nullishToOptional(z43.string()),
916
+ description: nullishToOptional(z43.string()),
789
917
  asset: nullishToOptional(PageBlockAsset),
790
- documentationItemId: nullishToOptional(z34.string()),
791
- pageHeadingId: nullishToOptional(z34.string()),
792
- url: nullishToOptional(z34.string()),
793
- openInNewTab: nullishToOptional(z34.boolean()),
918
+ documentationItemId: nullishToOptional(z43.string()),
919
+ pageHeadingId: nullishToOptional(z43.string()),
920
+ url: nullishToOptional(z43.string()),
921
+ openInNewTab: nullishToOptional(z43.boolean()),
794
922
  urlPreview: nullishToOptional(PageBlockUrlPreview),
795
923
  documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
796
924
  });
797
- var PageBlockCustomBlockPropertyImageValue = z34.object({
925
+ var PageBlockCustomBlockPropertyImageValue = z43.object({
798
926
  asset: nullishToOptional(PageBlockAsset),
799
- assetId: nullishToOptional(z34.string()),
800
- assetUrl: nullishToOptional(z34.string())
927
+ assetId: nullishToOptional(z43.string()),
928
+ assetUrl: nullishToOptional(z43.string())
801
929
  });
802
- var PageBlockCustomBlockPropertyValue = z34.object({
803
- key: z34.string(),
804
- value: z34.any()
930
+ var PageBlockCustomBlockPropertyValue = z43.object({
931
+ key: z43.string(),
932
+ value: z43.any()
805
933
  // TODO Artem: for some reason there are cases when there's an array here in the DB
806
934
  // e.g. element id 67451 in the dev db
807
935
  // value: z
@@ -812,101 +940,101 @@ var PageBlockCustomBlockPropertyValue = z34.object({
812
940
  // .or(TypographyTokenData)
813
941
  // .or(PageBlockCustomBlockPropertyImageValue),
814
942
  });
815
- var PageBlockFigmaFrameProperties = z34.object({
943
+ var PageBlockFigmaFrameProperties = z43.object({
816
944
  color: nullishToOptional(
817
- z34.object({
818
- value: z34.string()
945
+ z43.object({
946
+ value: z43.string()
819
947
  })
820
948
  ),
821
949
  alignment: PageBlockTilesAlignment,
822
950
  layout: PageBlockTilesLayout,
823
951
  backgroundColor: nullishToOptional(ColorTokenInlineData),
824
- showTitles: z34.boolean()
952
+ showTitles: z43.boolean()
825
953
  });
826
- var PageBlockRenderCodeProperties = z34.object({
827
- showCode: z34.boolean()
954
+ var PageBlockRenderCodeProperties = z43.object({
955
+ showCode: z43.boolean()
828
956
  });
829
- var PageBlockAssetComponent = z34.object({
830
- persistentId: z34.string(),
831
- componentAssetId: z34.string(),
832
- title: nullishToOptional(z34.string()),
833
- description: nullishToOptional(z34.string()),
957
+ var PageBlockAssetComponent = z43.object({
958
+ persistentId: z43.string(),
959
+ componentAssetId: z43.string(),
960
+ title: nullishToOptional(z43.string()),
961
+ description: nullishToOptional(z43.string()),
834
962
  backgroundColor: nullishToOptional(ColorTokenInlineData)
835
963
  });
836
- var PageBlockTableColumn = z34.object({
837
- id: z34.string(),
964
+ var PageBlockTableColumn = z43.object({
965
+ id: z43.string(),
838
966
  width: DimensionTokenData
839
967
  });
840
- var PageBlockTableProperties = z34.object({
841
- showBorders: z34.boolean(),
842
- showHeaderRow: z34.boolean(),
843
- showHeaderColumn: z34.boolean(),
844
- columns: z34.array(PageBlockTableColumn)
968
+ var PageBlockTableProperties = z43.object({
969
+ showBorders: z43.boolean(),
970
+ showHeaderRow: z43.boolean(),
971
+ showHeaderColumn: z43.boolean(),
972
+ columns: z43.array(PageBlockTableColumn)
845
973
  });
846
- var PageBlockTextSpanAttributeType = z34.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
847
- var PageBlockTextSpanAttribute = z34.object({
974
+ var PageBlockTextSpanAttributeType = z43.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
975
+ var PageBlockTextSpanAttribute = z43.object({
848
976
  type: PageBlockTextSpanAttributeType,
849
- link: nullishToOptional(z34.string()),
850
- documentationItemId: nullishToOptional(z34.string()),
851
- openInNewWindow: nullishToOptional(z34.boolean()),
977
+ link: nullishToOptional(z43.string()),
978
+ documentationItemId: nullishToOptional(z43.string()),
979
+ openInNewWindow: nullishToOptional(z43.boolean()),
852
980
  // deprecated. use openInNewTab
853
- openInNewTab: nullishToOptional(z34.boolean())
981
+ openInNewTab: nullishToOptional(z43.boolean())
854
982
  });
855
- var PageBlockTextSpan = z34.object({
856
- text: z34.string(),
857
- attributes: z34.array(PageBlockTextSpanAttribute)
983
+ var PageBlockTextSpan = z43.object({
984
+ text: z43.string(),
985
+ attributes: z43.array(PageBlockTextSpanAttribute)
858
986
  });
859
- var PageBlockText = z34.object({
860
- spans: z34.array(PageBlockTextSpan)
987
+ var PageBlockText = z43.object({
988
+ spans: z43.array(PageBlockTextSpan)
861
989
  });
862
- var PageBlockBaseV1 = z34.object({
863
- persistentId: z34.string(),
990
+ var PageBlockBaseV1 = z43.object({
991
+ persistentId: z43.string(),
864
992
  type: PageBlockTypeV1,
865
993
  // Element linking
866
- designObjectId: nullishToOptional(z34.string()),
867
- designObjectIds: nullishToOptional(z34.array(z34.string())),
868
- tokenType: nullishToOptional(DesignTokenType.or(z34.literal("Font"))),
869
- showNestedGroups: nullishToOptional(z34.boolean()),
870
- brandId: nullishToOptional(z34.string()),
994
+ designObjectId: nullishToOptional(z43.string()),
995
+ designObjectIds: nullishToOptional(z43.array(z43.string())),
996
+ tokenType: nullishToOptional(DesignTokenType.or(z43.literal("Font"))),
997
+ showNestedGroups: nullishToOptional(z43.boolean()),
998
+ brandId: nullishToOptional(z43.string()),
871
999
  // Rich text
872
1000
  text: nullishToOptional(PageBlockText),
873
- caption: nullishToOptional(z34.string()),
874
- headingType: nullishToOptional(z34.number().min(1).max(3)),
1001
+ caption: nullishToOptional(z43.string()),
1002
+ headingType: nullishToOptional(z43.number().min(1).max(3)),
875
1003
  codeLanguage: nullishToOptional(PageBlockCodeLanguage),
876
1004
  calloutType: nullishToOptional(PageBlockCalloutType),
877
- urlInput: nullishToOptional(z34.string()),
878
- url: nullishToOptional(z34.string()),
1005
+ urlInput: nullishToOptional(z43.string()),
1006
+ url: nullishToOptional(z43.string()),
879
1007
  urlPreview: nullishToOptional(PageBlockUrlPreview),
880
1008
  // Image
881
1009
  asset: nullishToOptional(PageBlockAsset),
882
1010
  alignment: nullishToOptional(PageBlockAlignment),
883
1011
  // Shortcuts block
884
- shortcuts: nullishToOptional(z34.array(PageBlockShortcut)),
1012
+ shortcuts: nullishToOptional(z43.array(PageBlockShortcut)),
885
1013
  // Custom blocks
886
- customBlockKey: nullishToOptional(z34.string()),
887
- customBlockProperties: nullishToOptional(z34.array(PageBlockCustomBlockPropertyValue)),
888
- variantKey: nullishToOptional(z34.string()),
1014
+ customBlockKey: nullishToOptional(z43.string()),
1015
+ customBlockProperties: nullishToOptional(z43.array(PageBlockCustomBlockPropertyValue)),
1016
+ variantKey: nullishToOptional(z43.string()),
889
1017
  // Figma frames
890
1018
  figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
891
- figmaFrames: nullishToOptional(z34.array(PageBlockFrame)),
1019
+ figmaFrames: nullishToOptional(z43.array(PageBlockFrame)),
892
1020
  // Generic
893
1021
  size: nullishToOptional(Size),
894
1022
  backgroundColor: nullishToOptional(ColorTokenInlineData),
895
1023
  // Render code
896
1024
  renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
897
1025
  // Component assets
898
- componentAssets: nullishToOptional(z34.array(PageBlockAssetComponent)),
1026
+ componentAssets: nullishToOptional(z43.array(PageBlockAssetComponent)),
899
1027
  // Tables
900
1028
  tableProperties: nullishToOptional(PageBlockTableProperties),
901
- columnId: nullishToOptional(z34.string()),
1029
+ columnId: nullishToOptional(z43.string()),
902
1030
  // Token spreadsheet
903
1031
  theme: nullishToOptional(PageBlockTheme),
904
- blacklistedElementProperties: nullishToOptional(z34.array(z34.string())),
1032
+ blacklistedElementProperties: nullishToOptional(z43.array(z43.string())),
905
1033
  // Arbitrary
906
- userMetadata: nullishToOptional(z34.string())
1034
+ userMetadata: nullishToOptional(z43.string())
907
1035
  });
908
1036
  var PageBlockV1 = PageBlockBaseV1.extend({
909
- children: z34.lazy(
1037
+ children: z43.lazy(
910
1038
  () => PageBlockV1.array().nullish().transform((t) => t ?? [])
911
1039
  )
912
1040
  });
@@ -918,256 +1046,256 @@ function traversePageBlocksV1(blocks, action) {
918
1046
  }
919
1047
 
920
1048
  // src/dsm/elements/data/documentation-block-v2.ts
921
- import { z as z35 } from "zod";
922
- var PageBlockLinkType = z35.enum(["DocumentationItem", "PageHeading", "Url"]);
923
- var PageBlockImageType = z35.enum(["Resource", "FigmaNode"]);
924
- var PageBlockImageAlignment = z35.enum(["Left", "Center", "Stretch"]);
925
- var PageBlockTableCellAlignment = z35.enum(["Left", "Center", "Right"]);
926
- var PageBlockPreviewContainerSize = z35.enum(["Centered", "NaturalHeight"]);
927
- var PageBlockThemeDisplayMode = z35.enum(["Split", "Override"]);
928
- var PageBlockImageResourceReference = z35.object({
929
- resourceId: z35.string(),
930
- url: z35.string()
931
- });
932
- var PageBlockResourceFrameNodeReference = z35.object({
933
- sourceId: z35.string(),
934
- frameReferenceId: z35.string()
935
- });
936
- var PageBlockImageReference = z35.object({
1049
+ import { z as z44 } from "zod";
1050
+ var PageBlockLinkType = z44.enum(["DocumentationItem", "PageHeading", "Url"]);
1051
+ var PageBlockImageType = z44.enum(["Resource", "FigmaNode"]);
1052
+ var PageBlockImageAlignment = z44.enum(["Left", "Center", "Stretch"]);
1053
+ var PageBlockTableCellAlignment = z44.enum(["Left", "Center", "Right"]);
1054
+ var PageBlockPreviewContainerSize = z44.enum(["Centered", "NaturalHeight"]);
1055
+ var PageBlockThemeDisplayMode = z44.enum(["Split", "Override"]);
1056
+ var PageBlockImageResourceReference = z44.object({
1057
+ resourceId: z44.string(),
1058
+ url: z44.string()
1059
+ });
1060
+ var PageBlockResourceFrameNodeReference = z44.object({
1061
+ sourceId: z44.string(),
1062
+ frameReferenceId: z44.string()
1063
+ });
1064
+ var PageBlockImageReference = z44.object({
937
1065
  type: PageBlockImageType,
938
1066
  resource: PageBlockImageResourceReference.optional(),
939
1067
  figmaNode: PageBlockResourceFrameNodeReference.optional()
940
1068
  });
941
- var PageBlockColorV2 = z35.object({
942
- value: z35.string(),
943
- referencedTokenId: z35.string().optional()
1069
+ var PageBlockColorV2 = z44.object({
1070
+ value: z44.string(),
1071
+ referencedTokenId: z44.string().optional()
944
1072
  });
945
- var PageBlockAssetEntityMeta = z35.object({
946
- title: z35.string().optional(),
947
- description: z35.string().optional(),
1073
+ var PageBlockAssetEntityMeta = z44.object({
1074
+ title: z44.string().optional(),
1075
+ description: z44.string().optional(),
948
1076
  backgroundColor: PageBlockColorV2.optional()
949
1077
  });
950
- var PageBlockFigmaNodeEntityMeta = z35.object({
951
- title: z35.string().optional(),
952
- description: z35.string().optional(),
1078
+ var PageBlockFigmaNodeEntityMeta = z44.object({
1079
+ title: z44.string().optional(),
1080
+ description: z44.string().optional(),
953
1081
  backgroundColor: PageBlockColorV2.optional()
954
1082
  });
955
- var PageBlockAppearanceV2 = z35.object({
1083
+ var PageBlockAppearanceV2 = z44.object({
956
1084
  itemBackgroundColor: PageBlockColorV2.optional(),
957
- numberOfColumns: z35.number().optional()
1085
+ numberOfColumns: z44.number().optional()
958
1086
  });
959
- var PageBlockItemUntypedValue = z35.object({
960
- value: z35.any()
961
- }).and(z35.record(z35.any()));
962
- var PageBlockLinkV2 = z35.object({
1087
+ var PageBlockItemUntypedValue = z44.object({
1088
+ value: z44.any()
1089
+ }).and(z44.record(z44.any()));
1090
+ var PageBlockLinkV2 = z44.object({
963
1091
  type: PageBlockLinkType,
964
- documentationItemId: z35.string().optional(),
965
- pageHeadingId: z35.string().optional(),
966
- url: z35.string().optional(),
967
- openInNewTab: z35.boolean().optional()
1092
+ documentationItemId: z44.string().optional(),
1093
+ pageHeadingId: z44.string().optional(),
1094
+ url: z44.string().optional(),
1095
+ openInNewTab: z44.boolean().optional()
968
1096
  });
969
- var PageBlockItemV2 = z35.object({
970
- id: z35.string(),
1097
+ var PageBlockItemV2 = z44.object({
1098
+ id: z44.string(),
971
1099
  linksTo: PageBlockLinkV2.optional(),
972
- props: z35.record(PageBlockItemUntypedValue)
1100
+ props: z44.record(PageBlockItemUntypedValue)
973
1101
  });
974
- var PageBlockDataV2 = z35.object({
975
- packageId: z35.string(),
976
- variantId: z35.string().optional(),
977
- indentLevel: z35.number(),
1102
+ var PageBlockDataV2 = z44.object({
1103
+ packageId: z44.string(),
1104
+ variantId: z44.string().optional(),
1105
+ indentLevel: z44.number(),
978
1106
  appearance: PageBlockAppearanceV2.optional(),
979
- items: z35.array(PageBlockItemV2)
1107
+ items: z44.array(PageBlockItemV2)
980
1108
  });
981
- var PageBlockItemAssetValue = z35.object({
982
- selectedPropertyIds: z35.array(z35.string()).optional(),
983
- showSearch: z35.boolean().optional(),
1109
+ var PageBlockItemAssetValue = z44.object({
1110
+ selectedPropertyIds: z44.array(z44.string()).optional(),
1111
+ showSearch: z44.boolean().optional(),
984
1112
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
985
1113
  backgroundColor: PageBlockColorV2.optional(),
986
- value: z35.array(
987
- z35.object({
988
- entityId: z35.string(),
989
- entityType: z35.enum(["Asset", "AssetGroup"]),
1114
+ value: z44.array(
1115
+ z44.object({
1116
+ entityId: z44.string(),
1117
+ entityType: z44.enum(["Asset", "AssetGroup"]),
990
1118
  entityMeta: PageBlockAssetEntityMeta.optional()
991
1119
  })
992
1120
  ).default([])
993
1121
  });
994
- var PageBlockItemAssetPropertyValue = z35.object({
995
- value: z35.array(z35.string()).default([])
1122
+ var PageBlockItemAssetPropertyValue = z44.object({
1123
+ value: z44.array(z44.string()).default([])
996
1124
  });
997
- var PageBlockItemBooleanValue = z35.object({
998
- value: z35.boolean()
1125
+ var PageBlockItemBooleanValue = z44.object({
1126
+ value: z44.boolean()
999
1127
  });
1000
- var PageBlockItemCodeValue = z35.object({
1128
+ var PageBlockItemCodeValue = z44.object({
1001
1129
  format: PageBlockCodeLanguage.optional(),
1002
- caption: z35.string().optional(),
1003
- value: z35.string()
1004
- });
1005
- var PageBlockItemSandboxValue = z35.object({
1006
- showCode: z35.boolean().optional(),
1007
- showControls: z35.boolean().optional(),
1008
- backgroundColor: z35.string().optional(),
1009
- alignPreview: z35.enum(["Left", "Center"]).optional(),
1010
- previewHeight: z35.number().optional(),
1011
- value: z35.string()
1012
- });
1013
- var PageBlockItemColorValue = z35.record(z35.any());
1014
- var PageBlockItemComponentValue = z35.object({
1015
- selectedPropertyIds: z35.array(z35.string()).optional(),
1016
- value: z35.array(
1017
- z35.object({
1018
- entityId: z35.string(),
1019
- entityType: z35.enum(["Component", "ComponentGroup"])
1130
+ caption: z44.string().optional(),
1131
+ value: z44.string()
1132
+ });
1133
+ var PageBlockItemSandboxValue = z44.object({
1134
+ showCode: z44.boolean().optional(),
1135
+ showControls: z44.boolean().optional(),
1136
+ backgroundColor: z44.string().optional(),
1137
+ alignPreview: z44.enum(["Left", "Center"]).optional(),
1138
+ previewHeight: z44.number().optional(),
1139
+ value: z44.string()
1140
+ });
1141
+ var PageBlockItemColorValue = z44.record(z44.any());
1142
+ var PageBlockItemComponentValue = z44.object({
1143
+ selectedPropertyIds: z44.array(z44.string()).optional(),
1144
+ value: z44.array(
1145
+ z44.object({
1146
+ entityId: z44.string(),
1147
+ entityType: z44.enum(["Component", "ComponentGroup"])
1020
1148
  })
1021
1149
  ).default([])
1022
1150
  });
1023
- var PageBlockItemComponentPropertyValue = z35.object({
1024
- value: z35.string()
1025
- });
1026
- var PageBlockItemDividerValue = z35.object({});
1027
- var PageBlockItemEmbedValue = z35.object({
1028
- value: z35.string().optional(),
1029
- caption: z35.string().optional(),
1030
- height: z35.number().optional(),
1031
- openGraph: z35.object({
1032
- title: z35.string().optional(),
1033
- description: z35.string().optional(),
1034
- imageUrl: z35.string().optional()
1151
+ var PageBlockItemComponentPropertyValue = z44.object({
1152
+ value: z44.string()
1153
+ });
1154
+ var PageBlockItemDividerValue = z44.object({});
1155
+ var PageBlockItemEmbedValue = z44.object({
1156
+ value: z44.string().optional(),
1157
+ caption: z44.string().optional(),
1158
+ height: z44.number().optional(),
1159
+ openGraph: z44.object({
1160
+ title: z44.string().optional(),
1161
+ description: z44.string().optional(),
1162
+ imageUrl: z44.string().optional()
1035
1163
  }).optional()
1036
1164
  });
1037
- var PageBlockItemFigmaNodeValue = z35.object({
1038
- showSearch: z35.boolean().optional(),
1165
+ var PageBlockItemFigmaNodeValue = z44.object({
1166
+ showSearch: z44.boolean().optional(),
1039
1167
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1040
1168
  backgroundColor: PageBlockColorV2.optional(),
1041
- showFrameDetails: z35.boolean().optional(),
1042
- value: z35.array(
1043
- z35.object({
1044
- entityId: z35.string(),
1169
+ showFrameDetails: z44.boolean().optional(),
1170
+ value: z44.array(
1171
+ z44.object({
1172
+ entityId: z44.string(),
1045
1173
  entityMeta: PageBlockFigmaNodeEntityMeta.optional()
1046
1174
  })
1047
1175
  ).default([])
1048
1176
  });
1049
- var PageBlockItemImageValue = z35.object({
1050
- alt: z35.string().optional(),
1051
- caption: z35.string().optional(),
1177
+ var PageBlockItemImageValue = z44.object({
1178
+ alt: z44.string().optional(),
1179
+ caption: z44.string().optional(),
1052
1180
  alignment: PageBlockImageAlignment.optional(),
1053
1181
  value: PageBlockImageReference.optional()
1054
1182
  });
1055
- var PageBlockItemMarkdownValue = z35.object({
1056
- value: z35.string()
1183
+ var PageBlockItemMarkdownValue = z44.object({
1184
+ value: z44.string()
1057
1185
  });
1058
- var PageBlockItemMultiRichTextValue = z35.object({
1186
+ var PageBlockItemMultiRichTextValue = z44.object({
1059
1187
  value: PageBlockText.array()
1060
1188
  });
1061
- var PageBlockItemMultiSelectValue = z35.object({
1062
- value: z35.array(z35.string()).default([])
1189
+ var PageBlockItemMultiSelectValue = z44.object({
1190
+ value: z44.array(z44.string()).default([])
1063
1191
  });
1064
- var PageBlockItemNumberValue = z35.object({
1065
- value: z35.number()
1192
+ var PageBlockItemNumberValue = z44.object({
1193
+ value: z44.number()
1066
1194
  });
1067
- var PageBlockItemRichTextValue = z35.object({
1195
+ var PageBlockItemRichTextValue = z44.object({
1068
1196
  value: PageBlockText,
1069
1197
  calloutType: PageBlockCalloutType.optional()
1070
1198
  });
1071
- var PageBlockItemSingleSelectValue = z35.object({
1072
- value: z35.string()
1199
+ var PageBlockItemSingleSelectValue = z44.object({
1200
+ value: z44.string()
1073
1201
  });
1074
- var PageBlockItemStorybookValue = z35.object({
1075
- caption: z35.string().optional(),
1076
- height: z35.number().optional(),
1077
- embedUrl: z35.string().optional(),
1078
- value: z35.string().optional()
1202
+ var PageBlockItemStorybookValue = z44.object({
1203
+ caption: z44.string().optional(),
1204
+ height: z44.number().optional(),
1205
+ embedUrl: z44.string().optional(),
1206
+ value: z44.string().optional()
1079
1207
  });
1080
- var PageBlockItemTextValue = z35.object({
1081
- value: z35.string()
1208
+ var PageBlockItemTextValue = z44.object({
1209
+ value: z44.string()
1082
1210
  });
1083
- var PageBlockItemTokenValue = z35.object({
1084
- selectedPropertyIds: z35.array(z35.string()).optional(),
1085
- selectedThemeIds: z35.array(z35.string()).optional(),
1211
+ var PageBlockItemTokenValue = z44.object({
1212
+ selectedPropertyIds: z44.array(z44.string()).optional(),
1213
+ selectedThemeIds: z44.array(z44.string()).optional(),
1086
1214
  themeDisplayMode: PageBlockThemeDisplayMode.optional(),
1087
- value: z35.array(
1088
- z35.object({
1089
- entityId: z35.string(),
1090
- entityType: z35.enum(["Token", "TokenGroup"]),
1091
- entityMeta: z35.object({
1092
- showNestedGroups: z35.boolean().optional()
1215
+ value: z44.array(
1216
+ z44.object({
1217
+ entityId: z44.string(),
1218
+ entityType: z44.enum(["Token", "TokenGroup"]),
1219
+ entityMeta: z44.object({
1220
+ showNestedGroups: z44.boolean().optional()
1093
1221
  }).optional()
1094
1222
  })
1095
1223
  ).default([])
1096
1224
  });
1097
- var PageBlockItemTokenPropertyValue = z35.object({
1098
- selectedPropertyIds: z35.array(z35.string()).optional(),
1099
- selectedThemeIds: z35.array(z35.string()).optional(),
1100
- value: z35.array(z35.string()).default([])
1225
+ var PageBlockItemTokenPropertyValue = z44.object({
1226
+ selectedPropertyIds: z44.array(z44.string()).optional(),
1227
+ selectedThemeIds: z44.array(z44.string()).optional(),
1228
+ value: z44.array(z44.string()).default([])
1101
1229
  });
1102
- var PageBlockItemTokenTypeValue = z35.object({
1103
- value: z35.array(DesignTokenType).default([])
1230
+ var PageBlockItemTokenTypeValue = z44.object({
1231
+ value: z44.array(DesignTokenType).default([])
1104
1232
  });
1105
- var PageBlockItemUrlValue = z35.object({
1106
- value: z35.string()
1233
+ var PageBlockItemUrlValue = z44.object({
1234
+ value: z44.string()
1107
1235
  });
1108
- var PageBlockItemTableRichTextNode = z35.object({
1109
- type: z35.literal("RichText"),
1110
- id: z35.string(),
1236
+ var PageBlockItemTableRichTextNode = z44.object({
1237
+ type: z44.literal("RichText"),
1238
+ id: z44.string(),
1111
1239
  value: PageBlockItemRichTextValue.shape.value
1112
1240
  });
1113
- var PageBlockItemTableMultiRichTextNode = z35.object({
1114
- type: z35.literal("MultiRichText"),
1241
+ var PageBlockItemTableMultiRichTextNode = z44.object({
1242
+ type: z44.literal("MultiRichText"),
1115
1243
  value: PageBlockItemMultiRichTextValue.shape.value
1116
1244
  });
1117
- var PageBlockItemTableImageNode = z35.object({
1118
- type: z35.literal("Image"),
1119
- id: z35.string(),
1245
+ var PageBlockItemTableImageNode = z44.object({
1246
+ type: z44.literal("Image"),
1247
+ id: z44.string(),
1120
1248
  caption: PageBlockItemImageValue.shape.caption,
1121
1249
  value: PageBlockItemImageValue.shape.value
1122
1250
  });
1123
- var PageBlockItemTableNode = z35.discriminatedUnion("type", [
1251
+ var PageBlockItemTableNode = z44.discriminatedUnion("type", [
1124
1252
  PageBlockItemTableRichTextNode,
1125
1253
  // PageBlockItemTableMultiRichTextNode,
1126
1254
  PageBlockItemTableImageNode
1127
1255
  ]);
1128
- var PageBlockItemTableCell = z35.object({
1129
- id: z35.string(),
1130
- nodes: z35.array(PageBlockItemTableNode),
1131
- columnWidth: z35.number().optional(),
1256
+ var PageBlockItemTableCell = z44.object({
1257
+ id: z44.string(),
1258
+ nodes: z44.array(PageBlockItemTableNode),
1259
+ columnWidth: z44.number().optional(),
1132
1260
  alignment: PageBlockTableCellAlignment
1133
1261
  });
1134
- var PageBlockItemTableRow = z35.object({
1135
- cells: z35.array(PageBlockItemTableCell)
1262
+ var PageBlockItemTableRow = z44.object({
1263
+ cells: z44.array(PageBlockItemTableCell)
1136
1264
  });
1137
- var PageBlockItemTableValue = z35.object({
1138
- highlightHeaderColumn: z35.boolean().optional(),
1139
- highlightHeaderRow: z35.boolean().optional(),
1140
- showBorder: z35.boolean().optional(),
1141
- value: z35.array(PageBlockItemTableRow).default([])
1265
+ var PageBlockItemTableValue = z44.object({
1266
+ highlightHeaderColumn: z44.boolean().optional(),
1267
+ highlightHeaderRow: z44.boolean().optional(),
1268
+ showBorder: z44.boolean().optional(),
1269
+ value: z44.array(PageBlockItemTableRow).default([])
1142
1270
  });
1143
1271
 
1144
1272
  // src/dsm/elements/data/documentation-page-v1.ts
1145
- import { z as z39 } from "zod";
1273
+ import { z as z48 } from "zod";
1146
1274
 
1147
1275
  // src/dsm/elements/data/documentation-v1.ts
1148
- import { z as z38 } from "zod";
1276
+ import { z as z47 } from "zod";
1149
1277
 
1150
1278
  // src/dsm/elements/data/item-header-v1.ts
1151
- import { z as z37 } from "zod";
1279
+ import { z as z46 } from "zod";
1152
1280
 
1153
1281
  // src/dsm/elements/data/item-header.ts
1154
- import { z as z36 } from "zod";
1155
- var DocumentationItemHeaderAlignmentSchema = z36.enum(["Left", "Center"]);
1156
- var DocumentationItemHeaderImageScaleTypeSchema = z36.enum(["AspectFill", "AspectFit"]);
1282
+ import { z as z45 } from "zod";
1283
+ var DocumentationItemHeaderAlignmentSchema = z45.enum(["Left", "Center"]);
1284
+ var DocumentationItemHeaderImageScaleTypeSchema = z45.enum(["AspectFill", "AspectFit"]);
1157
1285
  var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
1158
1286
  var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
1159
1287
 
1160
1288
  // src/dsm/elements/data/item-header-v1.ts
1161
- var DocumentationItemHeaderV1 = z37.object({
1162
- description: z37.string(),
1289
+ var DocumentationItemHeaderV1 = z46.object({
1290
+ description: z46.string(),
1163
1291
  alignment: DocumentationItemHeaderAlignmentSchema,
1164
1292
  foregroundColor: ColorTokenData.nullish(),
1165
1293
  backgroundColor: ColorTokenData.nullish(),
1166
1294
  backgroundImageAsset: PageBlockAsset.nullish(),
1167
1295
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1168
- showBackgroundOverlay: z37.boolean(),
1169
- showCoverText: z37.boolean(),
1170
- minHeight: z37.number().nullish()
1296
+ showBackgroundOverlay: z46.boolean(),
1297
+ showCoverText: z46.boolean(),
1298
+ minHeight: z46.number().nullish()
1171
1299
  });
1172
1300
  var defaultDocumentationItemHeaderV1 = {
1173
1301
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1178,10 +1306,10 @@ var defaultDocumentationItemHeaderV1 = {
1178
1306
  };
1179
1307
 
1180
1308
  // src/dsm/elements/data/documentation-v1.ts
1181
- var DocumentationItemConfigurationV1 = z38.object({
1182
- showSidebar: z38.boolean(),
1183
- isPrivate: z38.boolean().optional(),
1184
- isHidden: z38.boolean().optional(),
1309
+ var DocumentationItemConfigurationV1 = z47.object({
1310
+ showSidebar: z47.boolean(),
1311
+ isPrivate: z47.boolean().optional(),
1312
+ isHidden: z47.boolean().optional(),
1185
1313
  header: DocumentationItemHeaderV1
1186
1314
  });
1187
1315
  var defaultDocumentationItemConfigurationV1 = {
@@ -1190,29 +1318,29 @@ var defaultDocumentationItemConfigurationV1 = {
1190
1318
  };
1191
1319
 
1192
1320
  // src/dsm/elements/data/documentation-page-v1.ts
1193
- var DocumentationPageDataV1 = z39.object({
1194
- blocks: z39.array(PageBlockV1),
1321
+ var DocumentationPageDataV1 = z48.object({
1322
+ blocks: z48.array(PageBlockV1),
1195
1323
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1196
1324
  });
1197
1325
 
1198
1326
  // src/dsm/elements/data/documentation-page-v2.ts
1199
- import { z as z42 } from "zod";
1327
+ import { z as z51 } from "zod";
1200
1328
 
1201
1329
  // src/dsm/elements/data/documentation-v2.ts
1202
- import { z as z41 } from "zod";
1330
+ import { z as z50 } from "zod";
1203
1331
 
1204
1332
  // src/dsm/elements/data/item-header-v2.ts
1205
- import { z as z40 } from "zod";
1206
- var DocumentationItemHeaderV2 = z40.object({
1207
- description: z40.string(),
1333
+ import { z as z49 } from "zod";
1334
+ var DocumentationItemHeaderV2 = z49.object({
1335
+ description: z49.string(),
1208
1336
  alignment: DocumentationItemHeaderAlignmentSchema,
1209
1337
  foregroundColor: PageBlockColorV2.nullish(),
1210
1338
  backgroundColor: PageBlockColorV2.nullish(),
1211
1339
  backgroundImageAsset: PageBlockImageReference.nullish(),
1212
1340
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1213
- showBackgroundOverlay: z40.boolean(),
1214
- showCoverText: z40.boolean(),
1215
- minHeight: z40.number().nullish()
1341
+ showBackgroundOverlay: z49.boolean(),
1342
+ showCoverText: z49.boolean(),
1343
+ minHeight: z49.number().nullish()
1216
1344
  });
1217
1345
  var defaultDocumentationItemHeaderV2 = {
1218
1346
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1223,10 +1351,10 @@ var defaultDocumentationItemHeaderV2 = {
1223
1351
  };
1224
1352
 
1225
1353
  // src/dsm/elements/data/documentation-v2.ts
1226
- var DocumentationItemConfigurationV2 = z41.object({
1227
- showSidebar: z41.boolean(),
1228
- isPrivate: z41.boolean().optional(),
1229
- isHidden: z41.boolean().optional(),
1354
+ var DocumentationItemConfigurationV2 = z50.object({
1355
+ showSidebar: z50.boolean(),
1356
+ isPrivate: z50.boolean().optional(),
1357
+ isHidden: z50.boolean().optional(),
1230
1358
  header: DocumentationItemHeaderV2
1231
1359
  });
1232
1360
  var defaultDocumentationItemConfigurationV2 = {
@@ -1237,122 +1365,122 @@ var defaultDocumentationItemConfigurationV2 = {
1237
1365
  };
1238
1366
 
1239
1367
  // src/dsm/elements/data/documentation-page-v2.ts
1240
- var DocumentationPageDataV2 = z42.object({
1368
+ var DocumentationPageDataV2 = z51.object({
1241
1369
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1242
1370
  });
1243
1371
 
1244
1372
  // src/dsm/elements/data/documentation-section-v2.ts
1245
- import { z as z45 } from "zod";
1373
+ import { z as z54 } from "zod";
1246
1374
 
1247
1375
  // src/dsm/elements/page-block-v2.ts
1248
- import { z as z44 } from "zod";
1376
+ import { z as z53 } from "zod";
1249
1377
 
1250
1378
  // src/dsm/elements/base.ts
1251
- import { z as z43 } from "zod";
1252
- var DesignElementOrigin = z43.object({
1253
- id: z43.string(),
1254
- sourceId: z43.string(),
1255
- name: z43.string()
1256
- });
1257
- var DesignElementBase = z43.object({
1258
- id: z43.string(),
1259
- persistentId: z43.string(),
1379
+ import { z as z52 } from "zod";
1380
+ var DesignElementOrigin = z52.object({
1381
+ id: z52.string(),
1382
+ sourceId: z52.string(),
1383
+ name: z52.string()
1384
+ });
1385
+ var DesignElementBase = z52.object({
1386
+ id: z52.string(),
1387
+ persistentId: z52.string(),
1260
1388
  meta: ObjectMeta,
1261
- designSystemVersionId: z43.string(),
1262
- createdAt: z43.coerce.date(),
1263
- updatedAt: z43.coerce.date()
1389
+ designSystemVersionId: z52.string(),
1390
+ createdAt: z52.coerce.date(),
1391
+ updatedAt: z52.coerce.date()
1264
1392
  });
1265
1393
  var DesignElementImportedBase = DesignElementBase.extend({
1266
1394
  origin: DesignElementOrigin
1267
1395
  });
1268
- var DesignElementGroupablePart = z43.object({
1269
- parentPersistentId: z43.string().optional(),
1270
- sortOrder: z43.number()
1396
+ var DesignElementGroupablePart = z52.object({
1397
+ parentPersistentId: z52.string().optional(),
1398
+ sortOrder: z52.number()
1271
1399
  });
1272
1400
  var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
1273
1401
  var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
1274
- parentPersistentId: z43.string()
1402
+ parentPersistentId: z52.string()
1275
1403
  });
1276
- var DesignElementBrandedPart = z43.object({
1277
- brandPersistentId: z43.string()
1404
+ var DesignElementBrandedPart = z52.object({
1405
+ brandPersistentId: z52.string()
1278
1406
  });
1279
- var DesignElementSlugPart = z43.object({
1280
- slug: z43.string().optional(),
1281
- userSlug: z43.string().optional()
1407
+ var DesignElementSlugPart = z52.object({
1408
+ slug: z52.string().optional(),
1409
+ userSlug: z52.string().optional()
1282
1410
  });
1283
1411
 
1284
1412
  // src/dsm/elements/page-block-v2.ts
1285
1413
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
1286
1414
  data: PageBlockDataV2
1287
1415
  });
1288
- var PageBlockEditorModelV2 = z44.object({
1289
- id: z44.string(),
1290
- type: z44.literal("Block"),
1416
+ var PageBlockEditorModelV2 = z53.object({
1417
+ id: z53.string(),
1418
+ type: z53.literal("Block"),
1291
1419
  data: PageBlockDataV2
1292
1420
  });
1293
1421
 
1294
1422
  // src/dsm/elements/data/documentation-section-v2.ts
1295
- var PageSectionTypeV2 = z45.enum(["Tabs"]);
1296
- var PageSectionColumnV2 = z45.object({
1297
- id: z45.string(),
1298
- blocks: z45.array(PageBlockEditorModelV2)
1299
- });
1300
- var PageSectionItemV2 = z45.object({
1301
- id: z45.string(),
1302
- title: z45.string(),
1303
- columns: z45.array(PageSectionColumnV2)
1304
- });
1305
- var PageSectionPaddingV2 = z45.object({
1306
- top: z45.number().optional(),
1307
- bottom: z45.number().optional(),
1308
- left: z45.number().optional(),
1309
- right: z45.number().optional()
1310
- });
1311
- var PageSectionAppearanceV2 = z45.object({
1312
- expandToEdges: z45.boolean(),
1313
- contentExpandToEdges: z45.boolean(),
1423
+ var PageSectionTypeV2 = z54.enum(["Tabs"]);
1424
+ var PageSectionColumnV2 = z54.object({
1425
+ id: z54.string(),
1426
+ blocks: z54.array(PageBlockEditorModelV2)
1427
+ });
1428
+ var PageSectionItemV2 = z54.object({
1429
+ id: z54.string(),
1430
+ title: z54.string(),
1431
+ columns: z54.array(PageSectionColumnV2)
1432
+ });
1433
+ var PageSectionPaddingV2 = z54.object({
1434
+ top: z54.number().optional(),
1435
+ bottom: z54.number().optional(),
1436
+ left: z54.number().optional(),
1437
+ right: z54.number().optional()
1438
+ });
1439
+ var PageSectionAppearanceV2 = z54.object({
1440
+ expandToEdges: z54.boolean(),
1441
+ contentExpandToEdges: z54.boolean(),
1314
1442
  backgroundColor: PageBlockColorV2.optional(),
1315
1443
  foregroundColor: PageBlockColorV2.optional(),
1316
1444
  padding: PageSectionPaddingV2.optional()
1317
1445
  });
1318
- var PageSectionEditorModelV2 = z45.object({
1319
- id: z45.string(),
1320
- type: z45.literal("Section"),
1321
- variantId: z45.string().optional(),
1446
+ var PageSectionEditorModelV2 = z54.object({
1447
+ id: z54.string(),
1448
+ type: z54.literal("Section"),
1449
+ variantId: z54.string().optional(),
1322
1450
  sectionType: PageSectionTypeV2,
1323
1451
  appearance: PageSectionAppearanceV2,
1324
- items: z45.array(PageSectionItemV2)
1452
+ items: z54.array(PageSectionItemV2)
1325
1453
  });
1326
1454
 
1327
1455
  // src/dsm/elements/data/duration.ts
1328
- import { z as z46 } from "zod";
1329
- var DurationUnit = z46.enum(["Ms"]);
1330
- var DurationValue = z46.object({
1456
+ import { z as z55 } from "zod";
1457
+ var DurationUnit = z55.enum(["Ms"]);
1458
+ var DurationValue = z55.object({
1331
1459
  unit: DurationUnit,
1332
- measure: z46.number()
1460
+ measure: z55.number()
1333
1461
  });
1334
1462
  var DurationTokenData = tokenAliasOrValue(DurationValue);
1335
1463
 
1336
1464
  // src/dsm/elements/data/figma-file-structure.ts
1337
- import { z as z47 } from "zod";
1338
- var FigmaFileStructureNodeType = z47.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1339
- var FigmaFileStructureNodeBase = z47.object({
1340
- id: z47.string(),
1341
- name: z47.string(),
1465
+ import { z as z56 } from "zod";
1466
+ var FigmaFileStructureNodeType = z56.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1467
+ var FigmaFileStructureNodeBase = z56.object({
1468
+ id: z56.string(),
1469
+ name: z56.string(),
1342
1470
  type: FigmaFileStructureNodeType,
1343
1471
  size: SizeOrUndefined,
1344
- parentComponentSetId: z47.string().optional()
1472
+ parentComponentSetId: z56.string().optional()
1345
1473
  });
1346
1474
  var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
1347
- children: z47.lazy(() => FigmaFileStructureNode.array())
1475
+ children: z56.lazy(() => FigmaFileStructureNode.array())
1348
1476
  });
1349
- var FigmaFileStructureStatistics = z47.object({
1350
- frames: z47.number().nullable().optional().transform((v) => v ?? 0),
1351
- components: z47.number().nullable().optional().transform((v) => v ?? 0),
1352
- componentSets: z47.number().nullable().optional().transform((v) => v ?? 0)
1477
+ var FigmaFileStructureStatistics = z56.object({
1478
+ frames: z56.number().nullable().optional().transform((v) => v ?? 0),
1479
+ components: z56.number().nullable().optional().transform((v) => v ?? 0),
1480
+ componentSets: z56.number().nullable().optional().transform((v) => v ?? 0)
1353
1481
  });
1354
- var FigmaFileStructureElementData = z47.object({
1355
- value: z47.object({
1482
+ var FigmaFileStructureElementData = z56.object({
1483
+ value: z56.object({
1356
1484
  structure: FigmaFileStructureNode,
1357
1485
  assetsInFile: FigmaFileStructureStatistics
1358
1486
  })
@@ -1369,119 +1497,119 @@ function recursiveFigmaFileStructureToMap(node, map) {
1369
1497
  }
1370
1498
 
1371
1499
  // src/dsm/elements/data/figma-node-reference.ts
1372
- import { z as z48 } from "zod";
1373
- var FigmaNodeReferenceData = z48.object({
1374
- structureElementId: z48.string(),
1375
- nodeId: z48.string(),
1376
- fileId: z48.string().optional(),
1377
- valid: z48.boolean(),
1500
+ import { z as z57 } from "zod";
1501
+ var FigmaNodeReferenceData = z57.object({
1502
+ structureElementId: z57.string(),
1503
+ nodeId: z57.string(),
1504
+ fileId: z57.string().optional(),
1505
+ valid: z57.boolean(),
1378
1506
  // Asset data
1379
- assetId: z48.string().optional(),
1380
- assetScale: z48.number().optional(),
1381
- assetWidth: z48.number().optional(),
1382
- assetHeight: z48.number().optional(),
1383
- assetUrl: z48.string().optional(),
1384
- assetOriginKey: z48.string().optional()
1385
- });
1386
- var FigmaNodeReferenceElementData = z48.object({
1507
+ assetId: z57.string().optional(),
1508
+ assetScale: z57.number().optional(),
1509
+ assetWidth: z57.number().optional(),
1510
+ assetHeight: z57.number().optional(),
1511
+ assetUrl: z57.string().optional(),
1512
+ assetOriginKey: z57.string().optional()
1513
+ });
1514
+ var FigmaNodeReferenceElementData = z57.object({
1387
1515
  value: FigmaNodeReferenceData
1388
1516
  });
1389
1517
 
1390
1518
  // src/dsm/elements/data/font-family.ts
1391
- import { z as z49 } from "zod";
1392
- var FontFamilyValue = z49.string();
1519
+ import { z as z58 } from "zod";
1520
+ var FontFamilyValue = z58.string();
1393
1521
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
1394
1522
 
1395
1523
  // src/dsm/elements/data/font-size.ts
1396
- import { z as z50 } from "zod";
1397
- var FontSizeUnit = z50.enum(["Pixels", "Rem", "Percent"]);
1398
- var FontSizeValue = z50.object({
1524
+ import { z as z59 } from "zod";
1525
+ var FontSizeUnit = z59.enum(["Pixels", "Rem", "Percent"]);
1526
+ var FontSizeValue = z59.object({
1399
1527
  unit: FontSizeUnit,
1400
- measure: z50.number()
1528
+ measure: z59.number()
1401
1529
  });
1402
1530
  var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
1403
1531
 
1404
1532
  // src/dsm/elements/data/font-weight.ts
1405
- import { z as z51 } from "zod";
1406
- var FontWeightValue = z51.string();
1533
+ import { z as z60 } from "zod";
1534
+ var FontWeightValue = z60.string();
1407
1535
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
1408
1536
 
1409
1537
  // src/dsm/elements/data/gradient.ts
1410
- import { z as z52 } from "zod";
1411
- var GradientType = z52.enum(["Linear", "Radial", "Angular"]);
1412
- var GradientStop = z52.object({
1413
- position: z52.number(),
1538
+ import { z as z61 } from "zod";
1539
+ var GradientType = z61.enum(["Linear", "Radial", "Angular"]);
1540
+ var GradientStop = z61.object({
1541
+ position: z61.number(),
1414
1542
  color: ColorTokenData
1415
1543
  });
1416
- var GradientLayerValue = z52.object({
1544
+ var GradientLayerValue = z61.object({
1417
1545
  from: Point2D,
1418
1546
  to: Point2D,
1419
1547
  type: GradientType,
1420
- aspectRatio: nullishToOptional(z52.number()),
1548
+ aspectRatio: nullishToOptional(z61.number()),
1421
1549
  // z.number(),
1422
- stops: z52.array(GradientStop).min(2)
1550
+ stops: z61.array(GradientStop).min(2)
1423
1551
  });
1424
1552
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
1425
- var GradientTokenValue = z52.array(GradientLayerData);
1553
+ var GradientTokenValue = z61.array(GradientLayerData);
1426
1554
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1427
1555
 
1428
1556
  // src/dsm/elements/data/group.ts
1429
- import { z as z53 } from "zod";
1430
- var DocumentationGroupBehavior = z53.enum(["Group", "Tabs"]);
1431
- var ElementGroupDataV1 = z53.object({
1557
+ import { z as z62 } from "zod";
1558
+ var DocumentationGroupBehavior = z62.enum(["Group", "Tabs"]);
1559
+ var ElementGroupDataV1 = z62.object({
1432
1560
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1433
1561
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1434
1562
  });
1435
- var ElementGroupDataV2 = z53.object({
1563
+ var ElementGroupDataV2 = z62.object({
1436
1564
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1437
1565
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1438
1566
  });
1439
1567
 
1440
1568
  // src/dsm/elements/data/letter-spacing.ts
1441
- import { z as z54 } from "zod";
1442
- var LetterSpacingUnit = z54.enum(["Pixels", "Rem", "Percent"]);
1443
- var LetterSpacingValue = z54.object({
1569
+ import { z as z63 } from "zod";
1570
+ var LetterSpacingUnit = z63.enum(["Pixels", "Rem", "Percent"]);
1571
+ var LetterSpacingValue = z63.object({
1444
1572
  unit: LetterSpacingUnit,
1445
- measure: z54.number()
1573
+ measure: z63.number()
1446
1574
  });
1447
1575
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
1448
1576
 
1449
1577
  // src/dsm/elements/data/line-height.ts
1450
- import { z as z55 } from "zod";
1451
- var LineHeightUnit = z55.enum(["Pixels", "Rem", "Percent", "Raw"]);
1452
- var LineHeightValue = z55.object({
1578
+ import { z as z64 } from "zod";
1579
+ var LineHeightUnit = z64.enum(["Pixels", "Rem", "Percent", "Raw"]);
1580
+ var LineHeightValue = z64.object({
1453
1581
  unit: LineHeightUnit,
1454
- measure: z55.number()
1582
+ measure: z64.number()
1455
1583
  });
1456
1584
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
1457
1585
 
1458
1586
  // src/dsm/elements/data/paragraph-indent.ts
1459
- import { z as z56 } from "zod";
1460
- var ParagraphIndentUnit = z56.enum(["Pixels", "Rem", "Percent"]);
1461
- var ParagraphIndentValue = z56.object({
1587
+ import { z as z65 } from "zod";
1588
+ var ParagraphIndentUnit = z65.enum(["Pixels", "Rem", "Percent"]);
1589
+ var ParagraphIndentValue = z65.object({
1462
1590
  unit: ParagraphIndentUnit,
1463
- measure: z56.number()
1591
+ measure: z65.number()
1464
1592
  });
1465
1593
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
1466
1594
 
1467
1595
  // src/dsm/elements/data/paragraph-spacing.ts
1468
- import { z as z57 } from "zod";
1469
- var ParagraphSpacingUnit = z57.enum(["Pixels", "Rem", "Percent"]);
1470
- var ParagraphSpacingValue = z57.object({
1596
+ import { z as z66 } from "zod";
1597
+ var ParagraphSpacingUnit = z66.enum(["Pixels", "Rem", "Percent"]);
1598
+ var ParagraphSpacingValue = z66.object({
1471
1599
  unit: ParagraphSpacingUnit,
1472
- measure: z57.number()
1600
+ measure: z66.number()
1473
1601
  });
1474
1602
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
1475
1603
 
1476
1604
  // src/dsm/elements/data/product-copy.ts
1477
- import { z as z58 } from "zod";
1478
- var ProductCopyValue = z58.string();
1605
+ import { z as z67 } from "zod";
1606
+ var ProductCopyValue = z67.string();
1479
1607
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
1480
1608
 
1481
1609
  // src/dsm/elements/data/safe-id.ts
1482
- import { z as z59 } from "zod";
1610
+ import { z as z68 } from "zod";
1483
1611
  var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
1484
- var SafeIdSchema = z59.string().refine(
1612
+ var SafeIdSchema = z68.string().refine(
1485
1613
  (value) => {
1486
1614
  return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
1487
1615
  },
@@ -1491,58 +1619,58 @@ var SafeIdSchema = z59.string().refine(
1491
1619
  );
1492
1620
 
1493
1621
  // src/dsm/elements/data/shadow.ts
1494
- import { z as z60 } from "zod";
1495
- var ShadowType = z60.enum(["Drop", "Inner"]);
1496
- var ShadowLayerValue = z60.object({
1622
+ import { z as z69 } from "zod";
1623
+ var ShadowType = z69.enum(["Drop", "Inner"]);
1624
+ var ShadowLayerValue = z69.object({
1497
1625
  color: ColorTokenData,
1498
- x: z60.number(),
1499
- y: z60.number(),
1500
- radius: z60.number(),
1501
- spread: z60.number(),
1626
+ x: z69.number(),
1627
+ y: z69.number(),
1628
+ radius: z69.number(),
1629
+ spread: z69.number(),
1502
1630
  opacity: OpacityTokenData.optional(),
1503
1631
  type: ShadowType
1504
1632
  });
1505
1633
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
1506
- var ShadowTokenData = tokenAliasOrValue(z60.array(ShadowTokenDataBase));
1634
+ var ShadowTokenData = tokenAliasOrValue(z69.array(ShadowTokenDataBase));
1507
1635
 
1508
1636
  // src/dsm/elements/data/size.ts
1509
- import { z as z61 } from "zod";
1510
- var SizeUnit = z61.enum(["Pixels", "Rem", "Percent"]);
1511
- var SizeValue = z61.object({
1637
+ import { z as z70 } from "zod";
1638
+ var SizeUnit = z70.enum(["Pixels", "Rem", "Percent"]);
1639
+ var SizeValue = z70.object({
1512
1640
  unit: SizeUnit,
1513
- measure: z61.number()
1641
+ measure: z70.number()
1514
1642
  });
1515
1643
  var SizeTokenData = tokenAliasOrValue(SizeValue);
1516
1644
 
1517
1645
  // src/dsm/elements/data/space.ts
1518
- import { z as z62 } from "zod";
1519
- var SpaceUnit = z62.enum(["Pixels", "Rem", "Percent"]);
1520
- var SpaceValue = z62.object({
1646
+ import { z as z71 } from "zod";
1647
+ var SpaceUnit = z71.enum(["Pixels", "Rem", "Percent"]);
1648
+ var SpaceValue = z71.object({
1521
1649
  unit: SpaceUnit,
1522
- measure: z62.number()
1650
+ measure: z71.number()
1523
1651
  });
1524
1652
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
1525
1653
 
1526
1654
  // src/dsm/elements/data/string.ts
1527
- import { z as z63 } from "zod";
1528
- var StringValue = z63.string();
1655
+ import { z as z72 } from "zod";
1656
+ var StringValue = z72.string();
1529
1657
  var StringTokenData = tokenAliasOrValue(StringValue);
1530
1658
 
1531
1659
  // src/dsm/elements/data/text-case.ts
1532
- import { z as z64 } from "zod";
1533
- var TextCase = z64.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1660
+ import { z as z73 } from "zod";
1661
+ var TextCase = z73.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1534
1662
  var TextCaseValue = TextCase;
1535
1663
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
1536
1664
 
1537
1665
  // src/dsm/elements/data/text-decoration.ts
1538
- import { z as z65 } from "zod";
1539
- var TextDecoration = z65.enum(["None", "Underline", "Strikethrough"]);
1666
+ import { z as z74 } from "zod";
1667
+ var TextDecoration = z74.enum(["None", "Underline", "Strikethrough"]);
1540
1668
  var TextDecorationValue = TextDecoration;
1541
1669
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
1542
1670
 
1543
1671
  // src/dsm/elements/data/typography.ts
1544
- import { z as z66 } from "zod";
1545
- var TypographyValue = z66.object({
1672
+ import { z as z75 } from "zod";
1673
+ var TypographyValue = z75.object({
1546
1674
  fontSize: FontSizeTokenData,
1547
1675
  fontFamily: FontFamilyTokenData,
1548
1676
  fontWeight: FontWeightTokenData,
@@ -1556,49 +1684,49 @@ var TypographyValue = z66.object({
1556
1684
  var TypographyTokenData = tokenAliasOrValue(TypographyValue);
1557
1685
 
1558
1686
  // src/dsm/elements/data/visibility.ts
1559
- import { z as z67 } from "zod";
1560
- var Visibility = z67.enum(["Hidden", "Visible"]);
1687
+ import { z as z76 } from "zod";
1688
+ var Visibility = z76.enum(["Hidden", "Visible"]);
1561
1689
  var VisibilityValue = Visibility;
1562
1690
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
1563
1691
 
1564
1692
  // src/dsm/elements/data/z-index.ts
1565
- import { z as z68 } from "zod";
1566
- var ZIndexUnit = z68.enum(["Raw"]);
1567
- var ZIndexValue = z68.object({
1693
+ import { z as z77 } from "zod";
1694
+ var ZIndexUnit = z77.enum(["Raw"]);
1695
+ var ZIndexValue = z77.object({
1568
1696
  unit: ZIndexUnit,
1569
- measure: z68.number()
1697
+ measure: z77.number()
1570
1698
  });
1571
1699
  var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
1572
1700
 
1573
1701
  // src/dsm/elements/component.ts
1574
- import { z as z69 } from "zod";
1575
- var ComponentOriginPart = z69.object({
1576
- nodeId: z69.string().optional(),
1577
- width: z69.number().optional(),
1578
- height: z69.number().optional()
1702
+ import { z as z78 } from "zod";
1703
+ var ComponentOriginPart = z78.object({
1704
+ nodeId: z78.string().optional(),
1705
+ width: z78.number().optional(),
1706
+ height: z78.number().optional()
1579
1707
  });
1580
- var ComponentAsset = z69.object({
1581
- assetId: z69.string(),
1582
- assetPath: z69.string()
1708
+ var ComponentAsset = z78.object({
1709
+ assetId: z78.string(),
1710
+ assetPath: z78.string()
1583
1711
  });
1584
1712
  var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
1585
1713
  var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
1586
1714
  origin: ComponentOrigin.optional(),
1587
1715
  thumbnail: ComponentAsset,
1588
1716
  svg: ComponentAsset.optional(),
1589
- isAsset: z69.boolean()
1717
+ isAsset: z78.boolean()
1590
1718
  });
1591
1719
  function isImportedComponent(component) {
1592
1720
  return !!component.origin;
1593
1721
  }
1594
1722
 
1595
1723
  // src/dsm/elements/documentation-page-v1.ts
1596
- import { z as z71 } from "zod";
1724
+ import { z as z80 } from "zod";
1597
1725
 
1598
1726
  // src/dsm/elements/group.ts
1599
- import { z as z70 } from "zod";
1727
+ import { z as z79 } from "zod";
1600
1728
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1601
- shortPersistentId: z70.string().optional(),
1729
+ shortPersistentId: z79.string().optional(),
1602
1730
  childType: DesignElementType,
1603
1731
  data: ElementGroupDataV2.optional()
1604
1732
  });
@@ -1606,7 +1734,7 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1606
1734
 
1607
1735
  // src/dsm/elements/documentation-page-v1.ts
1608
1736
  var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1609
- shortPersistentId: z71.string(),
1737
+ shortPersistentId: z80.string(),
1610
1738
  data: DocumentationPageDataV1
1611
1739
  });
1612
1740
  var DocumentationGroupV1 = ElementGroup.omit({
@@ -1616,21 +1744,21 @@ var DocumentationGroupV1 = ElementGroup.omit({
1616
1744
  });
1617
1745
 
1618
1746
  // src/dsm/elements/documentation-page-v2.ts
1619
- import { z as z72 } from "zod";
1747
+ import { z as z81 } from "zod";
1620
1748
  var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1621
- shortPersistentId: z72.string(),
1749
+ shortPersistentId: z81.string(),
1622
1750
  data: DocumentationPageDataV2.extend({
1623
- oldBlocks: z72.array(PageBlockV1).optional()
1751
+ oldBlocks: z81.array(PageBlockV1).optional()
1624
1752
  })
1625
1753
  });
1626
1754
 
1627
1755
  // src/dsm/elements/figma-file-structures.ts
1628
- import { z as z73 } from "zod";
1629
- var FigmaFileStructureOrigin = z73.object({
1630
- sourceId: z73.string(),
1631
- fileId: z73.string().optional()
1756
+ import { z as z82 } from "zod";
1757
+ var FigmaFileStructureOrigin = z82.object({
1758
+ sourceId: z82.string(),
1759
+ fileId: z82.string().optional()
1632
1760
  });
1633
- var FigmaFileStructureData = z73.object({
1761
+ var FigmaFileStructureData = z82.object({
1634
1762
  rootNode: FigmaFileStructureNode,
1635
1763
  assetsInFile: FigmaFileStructureStatistics
1636
1764
  });
@@ -1646,10 +1774,10 @@ function traverseStructure(node, action) {
1646
1774
  }
1647
1775
 
1648
1776
  // src/dsm/elements/figma-node-reference.ts
1649
- import { z as z74 } from "zod";
1650
- var FigmaNodeReferenceOrigin = z74.object({
1651
- sourceId: z74.string(),
1652
- parentName: z74.string().optional()
1777
+ import { z as z83 } from "zod";
1778
+ var FigmaNodeReferenceOrigin = z83.object({
1779
+ sourceId: z83.string(),
1780
+ parentName: z83.string().optional()
1653
1781
  });
1654
1782
  var FigmaNodeReference = DesignElementBase.extend({
1655
1783
  data: FigmaNodeReferenceData,
@@ -1657,13 +1785,13 @@ var FigmaNodeReference = DesignElementBase.extend({
1657
1785
  });
1658
1786
 
1659
1787
  // src/dsm/elements/theme.ts
1660
- import { z as z76 } from "zod";
1788
+ import { z as z85 } from "zod";
1661
1789
 
1662
1790
  // src/dsm/elements/tokens.ts
1663
- import { z as z75 } from "zod";
1664
- var DesignTokenOriginPart = z75.object({
1665
- referenceOriginId: z75.string().optional(),
1666
- referencePersistentId: z75.string().optional()
1791
+ import { z as z84 } from "zod";
1792
+ var DesignTokenOriginPart = z84.object({
1793
+ referenceOriginId: z84.string().optional(),
1794
+ referencePersistentId: z84.string().optional()
1667
1795
  });
1668
1796
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
1669
1797
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -1675,111 +1803,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
1675
1803
  brandPersistentId: true,
1676
1804
  designSystemVersionId: true
1677
1805
  });
1678
- var BlurTokenTypedData = z75.object({
1679
- type: z75.literal("Blur"),
1806
+ var BlurTokenTypedData = z84.object({
1807
+ type: z84.literal("Blur"),
1680
1808
  data: BlurTokenData
1681
1809
  });
1682
- var ColorTokenTypedData = z75.object({
1683
- type: z75.literal("Color"),
1810
+ var ColorTokenTypedData = z84.object({
1811
+ type: z84.literal("Color"),
1684
1812
  data: ColorTokenData
1685
1813
  });
1686
- var GradientTokenTypedData = z75.object({
1687
- type: z75.literal("Gradient"),
1814
+ var GradientTokenTypedData = z84.object({
1815
+ type: z84.literal("Gradient"),
1688
1816
  data: GradientTokenData
1689
1817
  });
1690
- var OpacityTokenTypedData = z75.object({
1691
- type: z75.literal("Opacity"),
1818
+ var OpacityTokenTypedData = z84.object({
1819
+ type: z84.literal("Opacity"),
1692
1820
  data: OpacityTokenData
1693
1821
  });
1694
- var ShadowTokenTypedData = z75.object({
1695
- type: z75.literal("Shadow"),
1822
+ var ShadowTokenTypedData = z84.object({
1823
+ type: z84.literal("Shadow"),
1696
1824
  data: ShadowTokenData
1697
1825
  });
1698
- var TypographyTokenTypedData = z75.object({
1699
- type: z75.literal("Typography"),
1826
+ var TypographyTokenTypedData = z84.object({
1827
+ type: z84.literal("Typography"),
1700
1828
  data: TypographyTokenData
1701
1829
  });
1702
- var StringTokenTypedData = z75.object({
1703
- type: z75.literal("String"),
1830
+ var StringTokenTypedData = z84.object({
1831
+ type: z84.literal("String"),
1704
1832
  data: StringTokenData
1705
1833
  });
1706
- var DimensionTokenTypedData = z75.object({
1707
- type: z75.literal("Dimension"),
1834
+ var DimensionTokenTypedData = z84.object({
1835
+ type: z84.literal("Dimension"),
1708
1836
  data: DimensionTokenData
1709
1837
  });
1710
- var FontSizeTokenTypedData = z75.object({
1711
- type: z75.literal("FontSize"),
1838
+ var FontSizeTokenTypedData = z84.object({
1839
+ type: z84.literal("FontSize"),
1712
1840
  data: FontSizeTokenData
1713
1841
  });
1714
- var FontFamilyTokenTypedData = z75.object({
1715
- type: z75.literal("FontFamily"),
1842
+ var FontFamilyTokenTypedData = z84.object({
1843
+ type: z84.literal("FontFamily"),
1716
1844
  data: FontFamilyTokenData
1717
1845
  });
1718
- var FontWeightTokenTypedData = z75.object({
1719
- type: z75.literal("FontWeight"),
1846
+ var FontWeightTokenTypedData = z84.object({
1847
+ type: z84.literal("FontWeight"),
1720
1848
  data: FontWeightTokenData
1721
1849
  });
1722
- var LetterSpacingTokenTypedData = z75.object({
1723
- type: z75.literal("LetterSpacing"),
1850
+ var LetterSpacingTokenTypedData = z84.object({
1851
+ type: z84.literal("LetterSpacing"),
1724
1852
  data: LetterSpacingTokenData
1725
1853
  });
1726
- var LineHeightTokenTypedData = z75.object({
1727
- type: z75.literal("LineHeight"),
1854
+ var LineHeightTokenTypedData = z84.object({
1855
+ type: z84.literal("LineHeight"),
1728
1856
  data: LineHeightTokenData
1729
1857
  });
1730
- var ParagraphSpacingTokenTypedData = z75.object({
1731
- type: z75.literal("ParagraphSpacing"),
1858
+ var ParagraphSpacingTokenTypedData = z84.object({
1859
+ type: z84.literal("ParagraphSpacing"),
1732
1860
  data: ParagraphSpacingTokenData
1733
1861
  });
1734
- var TextCaseTokenTypedData = z75.object({
1735
- type: z75.literal("TextCase"),
1862
+ var TextCaseTokenTypedData = z84.object({
1863
+ type: z84.literal("TextCase"),
1736
1864
  data: TextCaseTokenData
1737
1865
  });
1738
- var TextDecorationTokenTypedData = z75.object({
1739
- type: z75.literal("TextDecoration"),
1866
+ var TextDecorationTokenTypedData = z84.object({
1867
+ type: z84.literal("TextDecoration"),
1740
1868
  data: TextDecorationTokenData
1741
1869
  });
1742
- var BorderRadiusTokenTypedData = z75.object({
1743
- type: z75.literal("BorderRadius"),
1870
+ var BorderRadiusTokenTypedData = z84.object({
1871
+ type: z84.literal("BorderRadius"),
1744
1872
  data: BorderRadiusTokenData
1745
1873
  });
1746
- var BorderWidthTokenTypedData = z75.object({
1747
- type: z75.literal("BorderWidth"),
1874
+ var BorderWidthTokenTypedData = z84.object({
1875
+ type: z84.literal("BorderWidth"),
1748
1876
  data: BorderWidthTokenData
1749
1877
  });
1750
- var BorderTypedData = z75.object({
1751
- type: z75.literal("Border"),
1878
+ var BorderTypedData = z84.object({
1879
+ type: z84.literal("Border"),
1752
1880
  data: BorderTokenData
1753
1881
  });
1754
- var ProductCopyTypedData = z75.object({
1755
- type: z75.literal("ProductCopy"),
1882
+ var ProductCopyTypedData = z84.object({
1883
+ type: z84.literal("ProductCopy"),
1756
1884
  data: ProductCopyTokenData
1757
1885
  });
1758
- var SizeTypedData = z75.object({
1759
- type: z75.literal("Size"),
1886
+ var SizeTypedData = z84.object({
1887
+ type: z84.literal("Size"),
1760
1888
  data: SizeTokenData
1761
1889
  });
1762
- var SpaceTypedData = z75.object({
1763
- type: z75.literal("Space"),
1890
+ var SpaceTypedData = z84.object({
1891
+ type: z84.literal("Space"),
1764
1892
  data: SpaceTokenData
1765
1893
  });
1766
- var VisibilityTypedData = z75.object({
1767
- type: z75.literal("Visibility"),
1894
+ var VisibilityTypedData = z84.object({
1895
+ type: z84.literal("Visibility"),
1768
1896
  data: VisibilityTokenData
1769
1897
  });
1770
- var ZIndexTypedData = z75.object({
1771
- type: z75.literal("ZIndex"),
1898
+ var ZIndexTypedData = z84.object({
1899
+ type: z84.literal("ZIndex"),
1772
1900
  data: ZIndexTokenData
1773
1901
  });
1774
- var DurationTypedData = z75.object({
1775
- type: z75.literal("Duration"),
1902
+ var DurationTypedData = z84.object({
1903
+ type: z84.literal("Duration"),
1776
1904
  data: DurationTokenData
1777
1905
  });
1778
- var FontTypedData = z75.object({
1779
- type: z75.literal("Font"),
1780
- data: z75.record(z75.any())
1906
+ var FontTypedData = z84.object({
1907
+ type: z84.literal("Font"),
1908
+ data: z84.record(z84.any())
1781
1909
  });
1782
- var DesignTokenTypedData = z75.discriminatedUnion("type", [
1910
+ var DesignTokenTypedData = z84.discriminatedUnion("type", [
1783
1911
  BlurTokenTypedData,
1784
1912
  BorderRadiusTokenTypedData,
1785
1913
  BorderWidthTokenTypedData,
@@ -1829,31 +1957,32 @@ function designTokenTypeFilter(type) {
1829
1957
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
1830
1958
  var ThemeOverrideOrigin = DesignTokenOrigin;
1831
1959
  var ThemeOverride = DesignTokenTypedData.and(
1832
- z76.object({
1833
- tokenPersistentId: z76.string(),
1960
+ z85.object({
1961
+ tokenPersistentId: z85.string(),
1834
1962
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
1835
1963
  })
1836
1964
  );
1837
- var ThemeElementData = z76.object({
1838
- value: z76.object({
1839
- overrides: z76.array(ThemeOverride)
1965
+ var ThemeElementData = z85.object({
1966
+ value: z85.object({
1967
+ overrides: z85.array(ThemeOverride)
1840
1968
  })
1841
1969
  });
1842
- var ThemeOriginPart = z76.object({});
1843
- var ThemeOriginObject = z76.object({
1844
- id: z76.string(),
1845
- name: z76.string()
1970
+ var ThemeOriginPart = z85.object({});
1971
+ var ThemeOriginObject = z85.object({
1972
+ id: z85.string(),
1973
+ name: z85.string()
1846
1974
  });
1847
- var ThemeOriginSource = z76.object({
1848
- sourceId: z76.string(),
1849
- sourceObjects: z76.array(ThemeOriginObject)
1975
+ var ThemeOriginSource = z85.object({
1976
+ sourceId: z85.string(),
1977
+ sourceObjects: z85.array(ThemeOriginObject)
1850
1978
  });
1851
- var ThemeOrigin = z76.object({
1852
- sources: z76.array(ThemeOriginSource)
1979
+ var ThemeOrigin = z85.object({
1980
+ sources: z85.array(ThemeOriginSource)
1853
1981
  });
1854
1982
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1855
1983
  origin: ThemeOrigin.optional(),
1856
- overrides: z76.array(ThemeOverride)
1984
+ overrides: z85.array(ThemeOverride),
1985
+ codeName: z85.string()
1857
1986
  });
1858
1987
 
1859
1988
  // src/dsm/elements/utils.ts
@@ -1923,49 +2052,49 @@ var PageBlockDefinitionsMap = class {
1923
2052
  };
1924
2053
 
1925
2054
  // src/dsm/import/support/figma-files.ts
1926
- import { z as z77 } from "zod";
1927
- var FigmaFileDownloadScope = z77.object({
1928
- styles: z77.boolean(),
1929
- components: z77.boolean(),
1930
- currentVersion: z77.literal("__latest__").nullable(),
1931
- publishedVersion: z77.string().nullable(),
1932
- downloadChunkSize: z77.number().optional(),
1933
- maxFileDepth: z77.number().optional()
2055
+ import { z as z86 } from "zod";
2056
+ var FigmaFileDownloadScope = z86.object({
2057
+ styles: z86.boolean(),
2058
+ components: z86.boolean(),
2059
+ currentVersion: z86.literal("__latest__").nullable(),
2060
+ publishedVersion: z86.string().nullable(),
2061
+ downloadChunkSize: z86.number().optional(),
2062
+ maxFileDepth: z86.number().optional()
1934
2063
  });
1935
- var FigmaFileAccessData = z77.object({
1936
- accessToken: z77.string()
2064
+ var FigmaFileAccessData = z86.object({
2065
+ accessToken: z86.string()
1937
2066
  });
1938
2067
 
1939
2068
  // src/dsm/import/support/import-context.ts
1940
- import { z as z78 } from "zod";
1941
- var ImportFunctionInput = z78.object({
1942
- importJobId: z78.string(),
1943
- importContextId: z78.string(),
1944
- designSystemId: z78.string().optional()
2069
+ import { z as z87 } from "zod";
2070
+ var ImportFunctionInput = z87.object({
2071
+ importJobId: z87.string(),
2072
+ importContextId: z87.string(),
2073
+ designSystemId: z87.string().optional()
1945
2074
  });
1946
- var ImportedFigmaSourceData = z78.object({
1947
- sourceId: z78.string(),
2075
+ var ImportedFigmaSourceData = z87.object({
2076
+ sourceId: z87.string(),
1948
2077
  figmaRemote: DataSourceFigmaRemote
1949
2078
  });
1950
- var FigmaImportBaseContext = z78.object({
1951
- designSystemId: z78.string(),
2079
+ var FigmaImportBaseContext = z87.object({
2080
+ designSystemId: z87.string(),
1952
2081
  /**
1953
2082
  * Data required for accessing Figma files. This should contain access data for all file ids
1954
2083
  * mentioned in the `importedSourceDataBySourceId`
1955
2084
  *
1956
2085
  * fileId: file data
1957
2086
  */
1958
- fileAccessByFileId: z78.record(FigmaFileAccessData),
2087
+ fileAccessByFileId: z87.record(FigmaFileAccessData),
1959
2088
  /**
1960
2089
  * Figma source data for which import was requested
1961
2090
  *
1962
2091
  * sourceId: source data
1963
2092
  */
1964
- importedSourceDataBySourceId: z78.record(ImportedFigmaSourceData)
2093
+ importedSourceDataBySourceId: z87.record(ImportedFigmaSourceData)
1965
2094
  });
1966
2095
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
1967
- sourcesWithMissingAccess: z78.array(z78.string()).default([]),
1968
- shadowOpacityOptional: z78.boolean().default(false)
2096
+ sourcesWithMissingAccess: z87.array(z87.string()).default([]),
2097
+ shadowOpacityOptional: z87.boolean().default(false)
1969
2098
  });
1970
2099
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
1971
2100
  importMetadata: DataSourceFigmaImportMetadata
@@ -1977,79 +2106,79 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
1977
2106
  *
1978
2107
  * File id -> file download scope
1979
2108
  */
1980
- fileDownloadScopesByFileId: z78.record(FigmaFileDownloadScope),
2109
+ fileDownloadScopesByFileId: z87.record(FigmaFileDownloadScope),
1981
2110
  /**
1982
2111
  * Sources filtered down to the ones that have changed since last import and therefore need to be
1983
2112
  * imported again.
1984
2113
  *
1985
2114
  * Source id -> import metadata
1986
2115
  */
1987
- changedImportedSourceDataBySourceId: z78.record(ChangedImportedFigmaSourceData)
2116
+ changedImportedSourceDataBySourceId: z87.record(ChangedImportedFigmaSourceData)
1988
2117
  });
1989
2118
 
1990
2119
  // src/dsm/import/support/import-model-collections.ts
1991
- import { z as z86 } from "zod";
2120
+ import { z as z95 } from "zod";
1992
2121
 
1993
2122
  // src/dsm/import/image.ts
1994
- import { z as z79 } from "zod";
1995
- var ImageImportModelType = z79.enum(["Url", "FigmaRender"]);
1996
- var ImageImportModelBase = z79.object({
2123
+ import { z as z88 } from "zod";
2124
+ var ImageImportModelType = z88.enum(["Url", "FigmaRender"]);
2125
+ var ImageImportModelBase = z88.object({
1997
2126
  scope: AssetScope
1998
2127
  });
1999
2128
  var UrlImageImportModel = ImageImportModelBase.extend({
2000
- type: z79.literal(ImageImportModelType.enum.Url),
2001
- url: z79.string(),
2002
- originKey: z79.string(),
2003
- extension: z79.string()
2129
+ type: z88.literal(ImageImportModelType.enum.Url),
2130
+ url: z88.string(),
2131
+ originKey: z88.string(),
2132
+ extension: z88.string()
2004
2133
  });
2005
- var FigmaRenderFormat = z79.enum(["Svg", "Png"]);
2134
+ var FigmaRenderFormat = z88.enum(["Svg", "Png"]);
2006
2135
  var FigmaRenderBase = ImageImportModelBase.extend({
2007
- type: z79.literal(ImageImportModelType.enum.FigmaRender),
2008
- fileId: z79.string(),
2009
- fileVersionId: z79.string().optional(),
2010
- nodeId: z79.string(),
2011
- originKey: z79.string()
2136
+ type: z88.literal(ImageImportModelType.enum.FigmaRender),
2137
+ fileId: z88.string(),
2138
+ fileVersionId: z88.string().optional(),
2139
+ nodeId: z88.string(),
2140
+ originKey: z88.string()
2012
2141
  });
2013
2142
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
2014
- format: z79.literal(FigmaRenderFormat.enum.Png),
2015
- scale: z79.number()
2143
+ format: z88.literal(FigmaRenderFormat.enum.Png),
2144
+ scale: z88.number()
2016
2145
  });
2017
2146
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
2018
- format: z79.literal(FigmaRenderFormat.enum.Svg)
2147
+ format: z88.literal(FigmaRenderFormat.enum.Svg)
2019
2148
  });
2020
- var FigmaRenderImportModel = z79.discriminatedUnion("format", [
2149
+ var FigmaRenderImportModel = z88.discriminatedUnion("format", [
2021
2150
  FigmaPngRenderImportModel,
2022
2151
  FigmaSvgRenderImportModel
2023
2152
  ]);
2024
- var ImageImportModel = z79.union([UrlImageImportModel, FigmaRenderImportModel]);
2153
+ var ImageImportModel = z88.union([UrlImageImportModel, FigmaRenderImportModel]);
2025
2154
 
2026
2155
  // src/dsm/import/component.ts
2027
- import { z as z81 } from "zod";
2156
+ import { z as z90 } from "zod";
2028
2157
 
2029
2158
  // src/dsm/import/base.ts
2030
- import { z as z80 } from "zod";
2031
- var ImportModelBase = z80.object({
2032
- id: z80.string(),
2159
+ import { z as z89 } from "zod";
2160
+ var ImportModelBase = z89.object({
2161
+ id: z89.string(),
2033
2162
  meta: ObjectMeta,
2034
2163
  origin: DesignElementOrigin,
2035
- brandPersistentId: z80.string(),
2036
- sortOrder: z80.number()
2164
+ brandPersistentId: z89.string(),
2165
+ sortOrder: z89.number()
2037
2166
  });
2038
2167
  var ImportModelInputBase = ImportModelBase.omit({
2039
2168
  brandPersistentId: true,
2040
2169
  origin: true,
2041
2170
  sortOrder: true
2042
2171
  }).extend({
2043
- originId: z80.string(),
2044
- originMetadata: z80.record(z80.any())
2172
+ originId: z89.string(),
2173
+ originMetadata: z89.record(z89.any())
2045
2174
  });
2046
2175
 
2047
2176
  // src/dsm/import/component.ts
2048
- var ComponentImportModelPart = z81.object({
2177
+ var ComponentImportModelPart = z90.object({
2049
2178
  thumbnail: ImageImportModel
2050
2179
  });
2051
2180
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
2052
- isAsset: z81.boolean(),
2181
+ isAsset: z90.boolean(),
2053
2182
  svg: FigmaSvgRenderImportModel.optional(),
2054
2183
  origin: ComponentOrigin
2055
2184
  });
@@ -2062,49 +2191,49 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
2062
2191
  });
2063
2192
 
2064
2193
  // src/dsm/import/theme.ts
2065
- import { z as z82 } from "zod";
2194
+ import { z as z91 } from "zod";
2066
2195
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
2067
- z82.object({
2068
- id: z82.string(),
2196
+ z91.object({
2197
+ id: z91.string(),
2069
2198
  meta: ObjectMeta
2070
2199
  })
2071
2200
  );
2072
2201
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
2073
- z82.object({
2202
+ z91.object({
2074
2203
  origin: ThemeOverrideOrigin
2075
2204
  })
2076
2205
  );
2077
2206
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
2078
- z82.object({
2079
- originId: z82.string(),
2207
+ z91.object({
2208
+ originId: z91.string(),
2080
2209
  originMetadata: ThemeOverrideOriginPart
2081
2210
  })
2082
2211
  );
2083
- var ThemeImportModel = z82.object({
2212
+ var ThemeImportModel = z91.object({
2084
2213
  meta: ObjectMeta,
2085
- brandPersistentId: z82.string(),
2214
+ brandPersistentId: z91.string(),
2086
2215
  originSource: ThemeOriginSource,
2087
- overrides: z82.array(ThemeOverrideImportModel),
2088
- sortOrder: z82.number()
2216
+ overrides: z91.array(ThemeOverrideImportModel),
2217
+ sortOrder: z91.number()
2089
2218
  });
2090
- var ThemeImportModelInput = z82.object({
2219
+ var ThemeImportModelInput = z91.object({
2091
2220
  meta: ObjectMeta,
2092
- originObjects: z82.array(ThemeOriginObject),
2093
- overrides: z82.array(ThemeOverrideImportModelInput)
2221
+ originObjects: z91.array(ThemeOriginObject),
2222
+ overrides: z91.array(ThemeOverrideImportModelInput)
2094
2223
  });
2095
- var ThemeUpdateImportModel = z82.object({
2096
- themePersistentId: z82.string(),
2097
- overrides: z82.array(ThemeOverrideImportModel)
2224
+ var ThemeUpdateImportModel = z91.object({
2225
+ themePersistentId: z91.string(),
2226
+ overrides: z91.array(ThemeOverrideImportModel)
2098
2227
  });
2099
- var ThemeUpdateImportModelInput = z82.object({
2100
- themePersistentId: z82.string(),
2101
- overrides: z82.array(ThemeOverrideImportModelInput)
2228
+ var ThemeUpdateImportModelInput = z91.object({
2229
+ themePersistentId: z91.string(),
2230
+ overrides: z91.array(ThemeOverrideImportModelInput)
2102
2231
  });
2103
2232
 
2104
2233
  // src/dsm/import/tokens.ts
2105
- import { z as z83 } from "zod";
2106
- var DesignTokenImportModelPart = z83.object({
2107
- collection: z83.string().optional()
2234
+ import { z as z92 } from "zod";
2235
+ var DesignTokenImportModelPart = z92.object({
2236
+ collection: z92.string().optional()
2108
2237
  });
2109
2238
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
2110
2239
  origin: DesignTokenOrigin
@@ -2122,15 +2251,15 @@ function designTokenImportModelTypeFilter(type) {
2122
2251
  }
2123
2252
 
2124
2253
  // src/dsm/import/figma-frames.ts
2125
- import { z as z84 } from "zod";
2254
+ import { z as z93 } from "zod";
2126
2255
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
2127
2256
  image: FigmaPngRenderImportModel
2128
2257
  });
2129
2258
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
2130
- children: z84.lazy(() => FigmaFileStructureNodeImportModel.array())
2259
+ children: z93.lazy(() => FigmaFileStructureNodeImportModel.array())
2131
2260
  });
2132
- var FigmaFileStructureImportModelPart = z84.object({
2133
- data: z84.object({
2261
+ var FigmaFileStructureImportModelPart = z93.object({
2262
+ data: z93.object({
2134
2263
  rootNode: FigmaFileStructureNodeImportModel,
2135
2264
  assetsInFile: FigmaFileStructureStatistics
2136
2265
  })
@@ -2141,7 +2270,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
2141
2270
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
2142
2271
  FigmaFileStructureImportModelPart.shape
2143
2272
  ).extend({
2144
- fileVersionId: z84.string()
2273
+ fileVersionId: z93.string()
2145
2274
  });
2146
2275
  function figmaFileStructureImportModelToMap(root) {
2147
2276
  const map = /* @__PURE__ */ new Map();
@@ -2155,30 +2284,30 @@ function recursiveFigmaFileStructureToMap2(node, map) {
2155
2284
  }
2156
2285
 
2157
2286
  // src/dsm/import/data-source.ts
2158
- import { z as z85 } from "zod";
2159
- var DataSourceImportModel = z85.object({
2160
- id: z85.string(),
2161
- fileName: z85.string().optional(),
2162
- thumbnailUrl: z85.string().optional()
2287
+ import { z as z94 } from "zod";
2288
+ var DataSourceImportModel = z94.object({
2289
+ id: z94.string(),
2290
+ fileName: z94.string().optional(),
2291
+ thumbnailUrl: z94.string().optional()
2163
2292
  });
2164
2293
 
2165
2294
  // src/dsm/import/support/import-model-collections.ts
2166
- var ImportModelInputCollection = z86.object({
2295
+ var ImportModelInputCollection = z95.object({
2167
2296
  source: DataSourceImportModel,
2168
- tokens: z86.array(DesignTokenImportModelInput).default([]),
2169
- components: z86.array(ComponentImportModelInput).default([]),
2170
- assets: z86.array(AssetImportModelInput).default([]),
2171
- themeUpdates: z86.array(ThemeUpdateImportModelInput).default([]),
2172
- themes: z86.array(ThemeImportModelInput).default([]),
2297
+ tokens: z95.array(DesignTokenImportModelInput).default([]),
2298
+ components: z95.array(ComponentImportModelInput).default([]),
2299
+ assets: z95.array(AssetImportModelInput).default([]),
2300
+ themeUpdates: z95.array(ThemeUpdateImportModelInput).default([]),
2301
+ themes: z95.array(ThemeImportModelInput).default([]),
2173
2302
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
2174
2303
  });
2175
- var ImportModelCollection = z86.object({
2176
- sources: z86.array(DataSourceImportModel),
2177
- tokens: z86.array(DesignTokenImportModel).default([]),
2178
- components: z86.array(ComponentImportModel).default([]),
2179
- themeUpdates: z86.array(ThemeUpdateImportModel).default([]),
2180
- themes: z86.array(ThemeImportModel).default([]),
2181
- figmaFileStructures: z86.array(FigmaFileStructureImportModel)
2304
+ var ImportModelCollection = z95.object({
2305
+ sources: z95.array(DataSourceImportModel),
2306
+ tokens: z95.array(DesignTokenImportModel).default([]),
2307
+ components: z95.array(ComponentImportModel).default([]),
2308
+ themeUpdates: z95.array(ThemeUpdateImportModel).default([]),
2309
+ themes: z95.array(ThemeImportModel).default([]),
2310
+ figmaFileStructures: z95.array(FigmaFileStructureImportModel)
2182
2311
  });
2183
2312
  function addImportModelCollections(lhs, rhs) {
2184
2313
  return {
@@ -2192,8 +2321,8 @@ function addImportModelCollections(lhs, rhs) {
2192
2321
  }
2193
2322
 
2194
2323
  // src/dsm/import/warning.ts
2195
- import { z as z87 } from "zod";
2196
- var ImportWarningType = z87.enum([
2324
+ import { z as z96 } from "zod";
2325
+ var ImportWarningType = z96.enum([
2197
2326
  "NoVersionFound",
2198
2327
  "UnsupportedFill",
2199
2328
  "UnsupportedStroke",
@@ -2207,27 +2336,27 @@ var ImportWarningType = z87.enum([
2207
2336
  "DuplicateImportedStyleId",
2208
2337
  "DuplicateImportedStylePath"
2209
2338
  ]);
2210
- var ImportWarning = z87.object({
2339
+ var ImportWarning = z96.object({
2211
2340
  warningType: ImportWarningType,
2212
- componentId: z87.string().optional(),
2213
- componentName: z87.string().optional(),
2214
- styleId: z87.string().optional(),
2215
- styleName: z87.string().optional(),
2216
- unsupportedStyleValueType: z87.string().optional()
2341
+ componentId: z96.string().optional(),
2342
+ componentName: z96.string().optional(),
2343
+ styleId: z96.string().optional(),
2344
+ styleName: z96.string().optional(),
2345
+ unsupportedStyleValueType: z96.string().optional()
2217
2346
  });
2218
2347
 
2219
2348
  // src/dsm/data-sources/import-summary.ts
2220
- var FileStructureStats = z88.object({
2349
+ var FileStructureStats = z97.object({
2221
2350
  frames: zeroNumberByDefault2(),
2222
2351
  components: zeroNumberByDefault2(),
2223
2352
  componentSets: zeroNumberByDefault2()
2224
2353
  });
2225
2354
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
2226
2355
  // Backward compatibility
2227
- z88.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2356
+ z97.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2228
2357
  );
2229
- var SourceImportSummaryByTokenType = z88.record(SourceImportSummaryByTokenTypeKey, z88.number());
2230
- var SourceImportTokenSummary = z88.object({
2358
+ var SourceImportSummaryByTokenType = z97.record(SourceImportSummaryByTokenTypeKey, z97.number());
2359
+ var SourceImportTokenSummary = z97.object({
2231
2360
  tokensCreated: zeroNumberByDefault2(),
2232
2361
  tokensUpdated: zeroNumberByDefault2(),
2233
2362
  tokensDeleted: zeroNumberByDefault2(),
@@ -2235,7 +2364,7 @@ var SourceImportTokenSummary = z88.object({
2235
2364
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
2236
2365
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
2237
2366
  });
2238
- var SourceImportComponentSummary = z88.object({
2367
+ var SourceImportComponentSummary = z97.object({
2239
2368
  componentsCreated: zeroNumberByDefault2(),
2240
2369
  componentsUpdated: zeroNumberByDefault2(),
2241
2370
  componentsDeleted: zeroNumberByDefault2(),
@@ -2243,69 +2372,69 @@ var SourceImportComponentSummary = z88.object({
2243
2372
  componentAssetsUpdated: zeroNumberByDefault2(),
2244
2373
  componentAssetsDeleted: zeroNumberByDefault2()
2245
2374
  });
2246
- var SourceImportFrameSummary = z88.object({
2375
+ var SourceImportFrameSummary = z97.object({
2247
2376
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
2248
- invalidReferencesCount: nullishToOptional(z88.number().optional())
2249
- });
2250
- var SourceImportSummary = z88.object({
2251
- sourceId: nullishToOptional(z88.string()),
2252
- brandId: nullishToOptional(z88.string()),
2253
- versionId: nullishToOptional(z88.string()),
2254
- error: nullishToOptional(z88.any()),
2255
- isFailed: z88.boolean(),
2256
- warnings: z88.array(ImportWarning).nullish().transform((v) => v ?? []),
2377
+ invalidReferencesCount: nullishToOptional(z97.number().optional())
2378
+ });
2379
+ var SourceImportSummary = z97.object({
2380
+ sourceId: nullishToOptional(z97.string()),
2381
+ brandId: nullishToOptional(z97.string()),
2382
+ versionId: nullishToOptional(z97.string()),
2383
+ error: nullishToOptional(z97.any()),
2384
+ isFailed: z97.boolean(),
2385
+ warnings: z97.array(ImportWarning).nullish().transform((v) => v ?? []),
2257
2386
  ...SourceImportTokenSummary.shape,
2258
2387
  ...SourceImportComponentSummary.shape,
2259
2388
  ...FileStructureStats.shape
2260
2389
  });
2261
2390
  function zeroNumberByDefault2() {
2262
- return z88.number().nullish().transform((v) => v ?? 0);
2391
+ return z97.number().nullish().transform((v) => v ?? 0);
2263
2392
  }
2264
2393
 
2265
2394
  // src/dsm/documentation/block-definitions/aux.ts
2266
- import { z as z89 } from "zod";
2267
- var PageBlockDefinitionAppearance = z89.object({
2268
- isBordered: z89.boolean().optional(),
2269
- hasBackground: z89.boolean().optional(),
2270
- isEditorPresentationDifferent: z89.boolean().optional(),
2271
- showBlockHeaderInEditor: z89.boolean().optional()
2395
+ import { z as z98 } from "zod";
2396
+ var PageBlockDefinitionAppearance = z98.object({
2397
+ isBordered: z98.boolean().optional(),
2398
+ hasBackground: z98.boolean().optional(),
2399
+ isEditorPresentationDifferent: z98.boolean().optional(),
2400
+ showBlockHeaderInEditor: z98.boolean().optional()
2272
2401
  });
2273
2402
 
2274
2403
  // src/dsm/documentation/block-definitions/definition.ts
2275
- import { z as z92 } from "zod";
2404
+ import { z as z101 } from "zod";
2276
2405
 
2277
2406
  // src/dsm/documentation/block-definitions/item.ts
2278
- import { z as z91 } from "zod";
2407
+ import { z as z100 } from "zod";
2279
2408
 
2280
2409
  // src/dsm/documentation/block-definitions/variant.ts
2281
- import { z as z90 } from "zod";
2282
- var PageBlockDefinitionLayoutType = z90.enum(["Column", "Row"]);
2283
- var PageBlockDefinitionLayoutGap = z90.enum(["Small", "Medium", "Large", "None"]);
2284
- var PageBlockDefinitionLayoutAlign = z90.enum(["Start", "Center", "End"]);
2285
- var PageBlockDefinitionLayoutResizing = z90.enum(["Fill", "Hug"]);
2286
- var PageBlockDefinitionLayoutBase = z90.object({
2410
+ import { z as z99 } from "zod";
2411
+ var PageBlockDefinitionLayoutType = z99.enum(["Column", "Row"]);
2412
+ var PageBlockDefinitionLayoutGap = z99.enum(["Small", "Medium", "Large", "None"]);
2413
+ var PageBlockDefinitionLayoutAlign = z99.enum(["Start", "Center", "End"]);
2414
+ var PageBlockDefinitionLayoutResizing = z99.enum(["Fill", "Hug"]);
2415
+ var PageBlockDefinitionLayoutBase = z99.object({
2287
2416
  type: PageBlockDefinitionLayoutType,
2288
2417
  gap: PageBlockDefinitionLayoutGap.optional(),
2289
2418
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
2290
2419
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
2291
2420
  });
2292
2421
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
2293
- children: z90.lazy(() => z90.array(PageBlockDefinitionLayout.or(z90.string())))
2294
- });
2295
- var PageBlockDefinitionVariant = z90.object({
2296
- id: z90.string(),
2297
- name: z90.string(),
2298
- image: z90.string().optional(),
2299
- description: z90.string().optional(),
2300
- documentationLink: z90.string().optional(),
2422
+ children: z99.lazy(() => z99.array(PageBlockDefinitionLayout.or(z99.string())))
2423
+ });
2424
+ var PageBlockDefinitionVariant = z99.object({
2425
+ id: z99.string(),
2426
+ name: z99.string(),
2427
+ image: z99.string().optional(),
2428
+ description: z99.string().optional(),
2429
+ documentationLink: z99.string().optional(),
2301
2430
  layout: PageBlockDefinitionLayout,
2302
- maxColumns: z90.number().optional(),
2303
- defaultColumns: z90.number().optional(),
2431
+ maxColumns: z99.number().optional(),
2432
+ defaultColumns: z99.number().optional(),
2304
2433
  appearance: PageBlockDefinitionAppearance.optional()
2305
2434
  });
2306
2435
 
2307
2436
  // src/dsm/documentation/block-definitions/item.ts
2308
- var PageBlockDefinitionPropertyType = z91.enum([
2437
+ var PageBlockDefinitionPropertyType = z100.enum([
2309
2438
  "RichText",
2310
2439
  "MultiRichText",
2311
2440
  "Text",
@@ -2332,7 +2461,7 @@ var PageBlockDefinitionPropertyType = z91.enum([
2332
2461
  "Storybook",
2333
2462
  "Color"
2334
2463
  ]);
2335
- var PageBlockDefinitionRichTextPropertyStyle = z91.enum([
2464
+ var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
2336
2465
  "Title1",
2337
2466
  "Title2",
2338
2467
  "Title3",
@@ -2342,8 +2471,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z91.enum([
2342
2471
  "Callout",
2343
2472
  "Default"
2344
2473
  ]);
2345
- var PageBlockDefinitionMultiRichTextPropertyStyle = z91.enum(["OL", "UL", "Default"]);
2346
- var PageBlockDefinitionTextPropertyStyle = z91.enum([
2474
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
2475
+ var PageBlockDefinitionTextPropertyStyle = z100.enum([
2347
2476
  "Title1",
2348
2477
  "Title2",
2349
2478
  "Title3",
@@ -2357,78 +2486,78 @@ var PageBlockDefinitionTextPropertyStyle = z91.enum([
2357
2486
  "SmallSemibold",
2358
2487
  "Custom"
2359
2488
  ]);
2360
- var PageBlockDefinitionTextPropertyColor = z91.enum(["Neutral", "NeutralFaded"]);
2361
- var PageBlockDefinitionBooleanPropertyStyle = z91.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2362
- var PageBlockDefinitionSingleSelectPropertyStyle = z91.enum([
2489
+ var PageBlockDefinitionTextPropertyColor = z100.enum(["Neutral", "NeutralFaded"]);
2490
+ var PageBlockDefinitionBooleanPropertyStyle = z100.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2491
+ var PageBlockDefinitionSingleSelectPropertyStyle = z100.enum([
2363
2492
  "SegmentedControl",
2364
2493
  "ToggleButton",
2365
2494
  "Select",
2366
2495
  "Checkbox"
2367
2496
  ]);
2368
- var PageBlockDefinitionMultiSelectPropertyStyle = z91.enum(["SegmentedControl", "Select", "Checkbox"]);
2369
- var PageBlockDefinitionImageAspectRatio = z91.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2370
- var PageBlockDefinitionImageWidth = z91.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2371
- var PageBlockDefinitionSelectChoice = z91.object({
2372
- value: z91.string(),
2373
- name: z91.string(),
2374
- icon: z91.string().optional()
2375
- });
2376
- var PageBlockDefinitionUntypedPropertyOptions = z91.record(z91.any());
2377
- var PageBlockDefinitionRichTextOptions = z91.object({
2497
+ var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
2498
+ var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2499
+ var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2500
+ var PageBlockDefinitionSelectChoice = z100.object({
2501
+ value: z100.string(),
2502
+ name: z100.string(),
2503
+ icon: z100.string().optional()
2504
+ });
2505
+ var PageBlockDefinitionUntypedPropertyOptions = z100.record(z100.any());
2506
+ var PageBlockDefinitionRichTextOptions = z100.object({
2378
2507
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
2379
2508
  });
2380
- var PageBlockDefinitionMutiRichTextOptions = z91.object({
2509
+ var PageBlockDefinitionMutiRichTextOptions = z100.object({
2381
2510
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
2382
2511
  });
2383
- var PageBlockDefinitionTextOptions = z91.object({
2384
- placeholder: z91.string().optional(),
2385
- defaultValue: z91.string().optional(),
2512
+ var PageBlockDefinitionTextOptions = z100.object({
2513
+ placeholder: z100.string().optional(),
2514
+ defaultValue: z100.string().optional(),
2386
2515
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2387
2516
  color: PageBlockDefinitionTextPropertyColor.optional()
2388
2517
  });
2389
- var PageBlockDefinitionSelectOptions = z91.object({
2518
+ var PageBlockDefinitionSelectOptions = z100.object({
2390
2519
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
2391
- defaultChoice: z91.string(),
2392
- choices: z91.array(PageBlockDefinitionSelectChoice)
2520
+ defaultChoice: z100.string(),
2521
+ choices: z100.array(PageBlockDefinitionSelectChoice)
2393
2522
  });
2394
- var PageBlockDefinitionImageOptions = z91.object({
2523
+ var PageBlockDefinitionImageOptions = z100.object({
2395
2524
  width: PageBlockDefinitionImageWidth.optional(),
2396
2525
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
2397
- allowCaption: z91.boolean().optional(),
2398
- recommendation: z91.string().optional()
2526
+ allowCaption: z100.boolean().optional(),
2527
+ recommendation: z100.string().optional()
2399
2528
  });
2400
- var PageBlockDefinitionBooleanOptions = z91.object({
2401
- defaultvalue: z91.boolean().optional(),
2529
+ var PageBlockDefinitionBooleanOptions = z100.object({
2530
+ defaultvalue: z100.boolean().optional(),
2402
2531
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
2403
2532
  });
2404
- var PageBlockDefinitionNumberOptions = z91.object({
2405
- defaultValue: z91.number(),
2406
- min: z91.number().optional(),
2407
- max: z91.number().optional(),
2408
- step: z91.number().optional(),
2409
- placeholder: z91.string().optional()
2533
+ var PageBlockDefinitionNumberOptions = z100.object({
2534
+ defaultValue: z100.number(),
2535
+ min: z100.number().optional(),
2536
+ max: z100.number().optional(),
2537
+ step: z100.number().optional(),
2538
+ placeholder: z100.string().optional()
2410
2539
  });
2411
- var PageBlockDefinitionComponentOptions = z91.object({
2412
- renderLayoutAs: z91.enum(["List", "Table"]).optional(),
2413
- allowPropertySelection: z91.boolean().optional()
2540
+ var PageBlockDefinitionComponentOptions = z100.object({
2541
+ renderLayoutAs: z100.enum(["List", "Table"]).optional(),
2542
+ allowPropertySelection: z100.boolean().optional()
2414
2543
  });
2415
- var PageBlockDefinitionProperty = z91.object({
2416
- id: z91.string(),
2417
- name: z91.string(),
2544
+ var PageBlockDefinitionProperty = z100.object({
2545
+ id: z100.string(),
2546
+ name: z100.string(),
2418
2547
  type: PageBlockDefinitionPropertyType,
2419
- description: z91.string().optional(),
2548
+ description: z100.string().optional(),
2420
2549
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
2421
- variantOptions: z91.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2550
+ variantOptions: z100.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2422
2551
  });
2423
- var PageBlockDefinitionItem = z91.object({
2424
- properties: z91.array(PageBlockDefinitionProperty),
2552
+ var PageBlockDefinitionItem = z100.object({
2553
+ properties: z100.array(PageBlockDefinitionProperty),
2425
2554
  appearance: PageBlockDefinitionAppearance.optional(),
2426
- variants: z91.array(PageBlockDefinitionVariant),
2427
- defaultVariantKey: z91.string()
2555
+ variants: z100.array(PageBlockDefinitionVariant),
2556
+ defaultVariantKey: z100.string()
2428
2557
  });
2429
2558
 
2430
2559
  // src/dsm/documentation/block-definitions/definition.ts
2431
- var PageBlockCategory = z92.enum([
2560
+ var PageBlockCategory = z101.enum([
2432
2561
  "Text",
2433
2562
  "Layout",
2434
2563
  "Media",
@@ -2442,296 +2571,296 @@ var PageBlockCategory = z92.enum([
2442
2571
  "Data",
2443
2572
  "Other"
2444
2573
  ]);
2445
- var PageBlockBehaviorDataType = z92.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2446
- var PageBlockBehaviorSelectionType = z92.enum(["Entity", "Group", "EntityAndGroup"]);
2447
- var PageBlockDefinitionBehavior = z92.object({
2574
+ var PageBlockBehaviorDataType = z101.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2575
+ var PageBlockBehaviorSelectionType = z101.enum(["Entity", "Group", "EntityAndGroup"]);
2576
+ var PageBlockDefinitionBehavior = z101.object({
2448
2577
  dataType: PageBlockBehaviorDataType,
2449
- items: z92.object({
2450
- numberOfItems: z92.number(),
2451
- allowLinks: z92.boolean()
2578
+ items: z101.object({
2579
+ numberOfItems: z101.number(),
2580
+ allowLinks: z101.boolean()
2452
2581
  }).optional(),
2453
- entities: z92.object({
2582
+ entities: z101.object({
2454
2583
  selectionType: PageBlockBehaviorSelectionType,
2455
- maxSelected: z92.number()
2584
+ maxSelected: z101.number()
2456
2585
  }).optional()
2457
2586
  });
2458
- var PageBlockDefinitionOnboarding = z92.object({
2459
- helpText: z92.string(),
2460
- documentationLink: z92.string().optional()
2587
+ var PageBlockDefinitionOnboarding = z101.object({
2588
+ helpText: z101.string(),
2589
+ documentationLink: z101.string().optional()
2461
2590
  });
2462
- var PageBlockDefinition = z92.object({
2463
- id: z92.string(),
2464
- name: z92.string(),
2465
- description: z92.string(),
2591
+ var PageBlockDefinition = z101.object({
2592
+ id: z101.string(),
2593
+ name: z101.string(),
2594
+ description: z101.string(),
2466
2595
  category: PageBlockCategory,
2467
- icon: z92.string().optional(),
2468
- documentationLink: z92.string().optional(),
2469
- searchKeywords: z92.array(z92.string()).optional(),
2596
+ icon: z101.string().optional(),
2597
+ documentationLink: z101.string().optional(),
2598
+ searchKeywords: z101.array(z101.string()).optional(),
2470
2599
  item: PageBlockDefinitionItem,
2471
2600
  behavior: PageBlockDefinitionBehavior,
2472
- editorOptions: z92.object({
2601
+ editorOptions: z101.object({
2473
2602
  onboarding: PageBlockDefinitionOnboarding.optional()
2474
2603
  }),
2475
2604
  appearance: PageBlockDefinitionAppearance.optional()
2476
2605
  });
2477
2606
 
2478
2607
  // src/dsm/documentation/group.ts
2479
- import { z as z93 } from "zod";
2480
- var DocumentationPageGroup = z93.object({
2481
- type: z93.literal("ElementGroup"),
2482
- childType: z93.literal("DocumentationPage"),
2483
- id: z93.string(),
2484
- persistentId: z93.string(),
2485
- shortPersistentId: z93.string(),
2486
- designSystemVersionId: z93.string(),
2487
- parentPersistentId: z93.string().nullish(),
2488
- sortOrder: z93.number(),
2489
- title: z93.string(),
2490
- slug: z93.string(),
2491
- userSlug: z93.string().nullish(),
2492
- createdAt: z93.coerce.date(),
2493
- updatedAt: z93.coerce.date()
2608
+ import { z as z102 } from "zod";
2609
+ var DocumentationPageGroup = z102.object({
2610
+ type: z102.literal("ElementGroup"),
2611
+ childType: z102.literal("DocumentationPage"),
2612
+ id: z102.string(),
2613
+ persistentId: z102.string(),
2614
+ shortPersistentId: z102.string(),
2615
+ designSystemVersionId: z102.string(),
2616
+ parentPersistentId: z102.string().nullish(),
2617
+ sortOrder: z102.number(),
2618
+ title: z102.string(),
2619
+ slug: z102.string(),
2620
+ userSlug: z102.string().nullish(),
2621
+ createdAt: z102.coerce.date(),
2622
+ updatedAt: z102.coerce.date()
2494
2623
  });
2495
2624
 
2496
2625
  // src/dsm/documentation/link-preview.ts
2497
- import { z as z94 } from "zod";
2498
- var DocumentationLinkPreview = z94.object({
2499
- title: z94.string().optional(),
2500
- description: z94.string().optional(),
2626
+ import { z as z103 } from "zod";
2627
+ var DocumentationLinkPreview = z103.object({
2628
+ title: z103.string().optional(),
2629
+ description: z103.string().optional(),
2501
2630
  thumbnail: PageBlockImageReference.optional()
2502
2631
  });
2503
2632
 
2504
2633
  // src/dsm/documentation/page-anchor.ts
2505
- import { z as z95 } from "zod";
2506
- var DocumentationPageAnchor = z95.object({
2507
- blockId: z95.string(),
2508
- level: z95.number(),
2509
- text: z95.string()
2634
+ import { z as z104 } from "zod";
2635
+ var DocumentationPageAnchor = z104.object({
2636
+ blockId: z104.string(),
2637
+ level: z104.number(),
2638
+ text: z104.string()
2510
2639
  });
2511
2640
 
2512
2641
  // src/dsm/documentation/page-content-backup.ts
2513
- import { z as z96 } from "zod";
2514
- var DocumentationPageContentBackup = z96.object({
2515
- id: z96.string(),
2516
- designSystemVersionId: z96.string(),
2517
- createdAt: z96.coerce.date(),
2518
- updatedAt: z96.coerce.date(),
2519
- documentationPageId: z96.string(),
2520
- documentationPageName: z96.string(),
2521
- storagePath: z96.string()
2642
+ import { z as z105 } from "zod";
2643
+ var DocumentationPageContentBackup = z105.object({
2644
+ id: z105.string(),
2645
+ designSystemVersionId: z105.string(),
2646
+ createdAt: z105.coerce.date(),
2647
+ updatedAt: z105.coerce.date(),
2648
+ documentationPageId: z105.string(),
2649
+ documentationPageName: z105.string(),
2650
+ storagePath: z105.string()
2522
2651
  });
2523
2652
 
2524
2653
  // src/dsm/documentation/page-content.ts
2525
- import { z as z97 } from "zod";
2526
- var DocumentationPageContentItem = z97.discriminatedUnion("type", [
2654
+ import { z as z106 } from "zod";
2655
+ var DocumentationPageContentItem = z106.discriminatedUnion("type", [
2527
2656
  PageBlockEditorModelV2,
2528
2657
  PageSectionEditorModelV2
2529
2658
  ]);
2530
- var DocumentationPageContentData = z97.object({
2531
- items: z97.array(DocumentationPageContentItem)
2532
- });
2533
- var DocumentationPageContent = z97.object({
2534
- id: z97.string(),
2535
- designSystemVersionId: z97.string(),
2536
- createdAt: z97.coerce.date(),
2537
- updatedAt: z97.coerce.date(),
2538
- documentationPageId: z97.string(),
2659
+ var DocumentationPageContentData = z106.object({
2660
+ items: z106.array(DocumentationPageContentItem)
2661
+ });
2662
+ var DocumentationPageContent = z106.object({
2663
+ id: z106.string(),
2664
+ designSystemVersionId: z106.string(),
2665
+ createdAt: z106.coerce.date(),
2666
+ updatedAt: z106.coerce.date(),
2667
+ documentationPageId: z106.string(),
2539
2668
  data: DocumentationPageContentData
2540
2669
  });
2541
2670
 
2542
2671
  // src/dsm/documentation/page.ts
2543
- import { z as z98 } from "zod";
2544
- var DocumentationPage = z98.object({
2545
- type: z98.literal("DocumentationPage"),
2546
- id: z98.string(),
2547
- persistentId: z98.string(),
2548
- shortPersistentId: z98.string(),
2549
- designSystemVersionId: z98.string(),
2550
- parentPersistentId: z98.string().nullish(),
2551
- sortOrder: z98.number(),
2552
- title: z98.string(),
2553
- slug: z98.string(),
2554
- userSlug: z98.string().nullish(),
2555
- createdAt: z98.coerce.date(),
2556
- updatedAt: z98.coerce.date()
2672
+ import { z as z107 } from "zod";
2673
+ var DocumentationPage = z107.object({
2674
+ type: z107.literal("DocumentationPage"),
2675
+ id: z107.string(),
2676
+ persistentId: z107.string(),
2677
+ shortPersistentId: z107.string(),
2678
+ designSystemVersionId: z107.string(),
2679
+ parentPersistentId: z107.string().nullish(),
2680
+ sortOrder: z107.number(),
2681
+ title: z107.string(),
2682
+ slug: z107.string(),
2683
+ userSlug: z107.string().nullish(),
2684
+ createdAt: z107.coerce.date(),
2685
+ updatedAt: z107.coerce.date()
2557
2686
  });
2558
2687
 
2559
2688
  // src/dsm/views/column.ts
2560
- import { z as z99 } from "zod";
2561
- var ElementViewBaseColumnType = z99.enum(["Name", "Description", "Value", "UpdatedAt"]);
2562
- var ElementViewColumnType = z99.union([
2563
- z99.literal("BaseProperty"),
2564
- z99.literal("PropertyDefinition"),
2565
- z99.literal("Theme")
2689
+ import { z as z108 } from "zod";
2690
+ var ElementViewBaseColumnType = z108.enum(["Name", "Description", "Value", "UpdatedAt"]);
2691
+ var ElementViewColumnType = z108.union([
2692
+ z108.literal("BaseProperty"),
2693
+ z108.literal("PropertyDefinition"),
2694
+ z108.literal("Theme")
2566
2695
  ]);
2567
- var ElementViewColumnSharedAttributes = z99.object({
2568
- id: z99.string(),
2569
- persistentId: z99.string(),
2570
- elementDataViewId: z99.string(),
2571
- sortPosition: z99.number(),
2572
- width: z99.number()
2696
+ var ElementViewColumnSharedAttributes = z108.object({
2697
+ id: z108.string(),
2698
+ persistentId: z108.string(),
2699
+ elementDataViewId: z108.string(),
2700
+ sortPosition: z108.number(),
2701
+ width: z108.number()
2573
2702
  });
2574
2703
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2575
- type: z99.literal("BaseProperty"),
2704
+ type: z108.literal("BaseProperty"),
2576
2705
  basePropertyType: ElementViewBaseColumnType
2577
2706
  });
2578
2707
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2579
- type: z99.literal("PropertyDefinition"),
2580
- propertyDefinitionId: z99.string()
2708
+ type: z108.literal("PropertyDefinition"),
2709
+ propertyDefinitionId: z108.string()
2581
2710
  });
2582
2711
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2583
- type: z99.literal("Theme"),
2584
- themeId: z99.string()
2712
+ type: z108.literal("Theme"),
2713
+ themeId: z108.string()
2585
2714
  });
2586
- var ElementViewColumn = z99.discriminatedUnion("type", [
2715
+ var ElementViewColumn = z108.discriminatedUnion("type", [
2587
2716
  ElementViewBasePropertyColumn,
2588
2717
  ElementViewPropertyDefinitionColumn,
2589
2718
  ElementViewThemeColumn
2590
2719
  ]);
2591
2720
 
2592
2721
  // src/dsm/views/view.ts
2593
- import { z as z100 } from "zod";
2594
- var ElementView = z100.object({
2595
- id: z100.string(),
2596
- persistentId: z100.string(),
2597
- designSystemVersionId: z100.string(),
2598
- name: z100.string(),
2599
- description: z100.string(),
2722
+ import { z as z109 } from "zod";
2723
+ var ElementView = z109.object({
2724
+ id: z109.string(),
2725
+ persistentId: z109.string(),
2726
+ designSystemVersionId: z109.string(),
2727
+ name: z109.string(),
2728
+ description: z109.string(),
2600
2729
  targetElementType: ElementPropertyTargetType,
2601
- isDefault: z100.boolean()
2730
+ isDefault: z109.boolean()
2602
2731
  });
2603
2732
 
2604
2733
  // src/dsm/brand.ts
2605
- import { z as z101 } from "zod";
2606
- var Brand = z101.object({
2607
- id: z101.string(),
2608
- designSystemVersionId: z101.string(),
2609
- persistentId: z101.string(),
2610
- name: z101.string(),
2611
- description: z101.string()
2734
+ import { z as z110 } from "zod";
2735
+ var Brand = z110.object({
2736
+ id: z110.string(),
2737
+ designSystemVersionId: z110.string(),
2738
+ persistentId: z110.string(),
2739
+ name: z110.string(),
2740
+ description: z110.string()
2612
2741
  });
2613
2742
 
2614
2743
  // src/dsm/design-system.ts
2615
- import { z as z111 } from "zod";
2744
+ import { z as z120 } from "zod";
2616
2745
 
2617
2746
  // src/workspace/npm-registry-settings.ts
2618
- import { z as z102 } from "zod";
2619
- var NpmRegistryAuthType = z102.enum(["Basic", "Bearer", "None", "Custom"]);
2620
- var NpmRegistryType = z102.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2621
- var NpmRegistryBasicAuthConfig = z102.object({
2622
- authType: z102.literal(NpmRegistryAuthType.Enum.Basic),
2623
- username: z102.string(),
2624
- password: z102.string()
2625
- });
2626
- var NpmRegistryBearerAuthConfig = z102.object({
2627
- authType: z102.literal(NpmRegistryAuthType.Enum.Bearer),
2628
- accessToken: z102.string()
2629
- });
2630
- var NpmRegistryNoAuthConfig = z102.object({
2631
- authType: z102.literal(NpmRegistryAuthType.Enum.None)
2632
- });
2633
- var NpmRegistrCustomAuthConfig = z102.object({
2634
- authType: z102.literal(NpmRegistryAuthType.Enum.Custom),
2635
- authHeaderName: z102.string(),
2636
- authHeaderValue: z102.string()
2637
- });
2638
- var NpmRegistryAuthConfig = z102.discriminatedUnion("authType", [
2747
+ import { z as z111 } from "zod";
2748
+ var NpmRegistryAuthType = z111.enum(["Basic", "Bearer", "None", "Custom"]);
2749
+ var NpmRegistryType = z111.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2750
+ var NpmRegistryBasicAuthConfig = z111.object({
2751
+ authType: z111.literal(NpmRegistryAuthType.Enum.Basic),
2752
+ username: z111.string(),
2753
+ password: z111.string()
2754
+ });
2755
+ var NpmRegistryBearerAuthConfig = z111.object({
2756
+ authType: z111.literal(NpmRegistryAuthType.Enum.Bearer),
2757
+ accessToken: z111.string()
2758
+ });
2759
+ var NpmRegistryNoAuthConfig = z111.object({
2760
+ authType: z111.literal(NpmRegistryAuthType.Enum.None)
2761
+ });
2762
+ var NpmRegistrCustomAuthConfig = z111.object({
2763
+ authType: z111.literal(NpmRegistryAuthType.Enum.Custom),
2764
+ authHeaderName: z111.string(),
2765
+ authHeaderValue: z111.string()
2766
+ });
2767
+ var NpmRegistryAuthConfig = z111.discriminatedUnion("authType", [
2639
2768
  NpmRegistryBasicAuthConfig,
2640
2769
  NpmRegistryBearerAuthConfig,
2641
2770
  NpmRegistryNoAuthConfig,
2642
2771
  NpmRegistrCustomAuthConfig
2643
2772
  ]);
2644
- var NpmRegistryConfigBase = z102.object({
2773
+ var NpmRegistryConfigBase = z111.object({
2645
2774
  registryType: NpmRegistryType,
2646
- enabledScopes: z102.array(z102.string()),
2647
- customRegistryUrl: z102.string().optional(),
2648
- bypassProxy: z102.boolean().default(false),
2649
- npmProxyRegistryConfigId: z102.string().optional(),
2650
- npmProxyVersion: z102.number().optional()
2775
+ enabledScopes: z111.array(z111.string()),
2776
+ customRegistryUrl: z111.string().optional(),
2777
+ bypassProxy: z111.boolean().default(false),
2778
+ npmProxyRegistryConfigId: z111.string().optional(),
2779
+ npmProxyVersion: z111.number().optional()
2651
2780
  });
2652
2781
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2653
2782
 
2654
2783
  // src/workspace/sso-provider.ts
2655
- import { z as z103 } from "zod";
2656
- var SsoProvider = z103.object({
2657
- providerId: z103.string(),
2658
- defaultAutoInviteValue: z103.boolean(),
2659
- autoInviteDomains: z103.record(z103.string(), z103.boolean()),
2660
- skipDocsSupernovaLogin: z103.boolean(),
2661
- areInvitesDisabled: z103.boolean(),
2662
- isTestMode: z103.boolean(),
2663
- emailDomains: z103.array(z103.string()),
2664
- metadataXml: z103.string().nullish()
2784
+ import { z as z112 } from "zod";
2785
+ var SsoProvider = z112.object({
2786
+ providerId: z112.string(),
2787
+ defaultAutoInviteValue: z112.boolean(),
2788
+ autoInviteDomains: z112.record(z112.string(), z112.boolean()),
2789
+ skipDocsSupernovaLogin: z112.boolean(),
2790
+ areInvitesDisabled: z112.boolean(),
2791
+ isTestMode: z112.boolean(),
2792
+ emailDomains: z112.array(z112.string()),
2793
+ metadataXml: z112.string().nullish()
2665
2794
  });
2666
2795
 
2667
2796
  // src/workspace/user-invite.ts
2668
- import { z as z105 } from "zod";
2797
+ import { z as z114 } from "zod";
2669
2798
 
2670
2799
  // src/workspace/workspace-role.ts
2671
- import { z as z104 } from "zod";
2672
- var WorkspaceRoleSchema = z104.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2800
+ import { z as z113 } from "zod";
2801
+ var WorkspaceRoleSchema = z113.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2673
2802
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2674
2803
 
2675
2804
  // src/workspace/user-invite.ts
2676
2805
  var MAX_MEMBERS_COUNT = 100;
2677
- var UserInvite = z105.object({
2678
- email: z105.string().email().trim().transform((value) => value.toLowerCase()),
2806
+ var UserInvite = z114.object({
2807
+ email: z114.string().email().trim().transform((value) => value.toLowerCase()),
2679
2808
  role: WorkspaceRoleSchema
2680
2809
  });
2681
- var UserInvites = z105.array(UserInvite).max(MAX_MEMBERS_COUNT);
2810
+ var UserInvites = z114.array(UserInvite).max(MAX_MEMBERS_COUNT);
2682
2811
 
2683
2812
  // src/workspace/workspace-context.ts
2684
- import { z as z107 } from "zod";
2813
+ import { z as z116 } from "zod";
2685
2814
 
2686
2815
  // src/workspace/workspace.ts
2687
- import { z as z106 } from "zod";
2816
+ import { z as z115 } from "zod";
2688
2817
  import IPCIDR from "ip-cidr";
2689
2818
  var isValidCIDR = (value) => {
2690
2819
  return IPCIDR.isValidAddress(value);
2691
2820
  };
2692
- var WorkspaceIpWhitelistEntry = z106.object({
2693
- isEnabled: z106.boolean(),
2694
- name: z106.string(),
2695
- range: z106.string().refine(isValidCIDR, {
2821
+ var WorkspaceIpWhitelistEntry = z115.object({
2822
+ isEnabled: z115.boolean(),
2823
+ name: z115.string(),
2824
+ range: z115.string().refine(isValidCIDR, {
2696
2825
  message: "Invalid IP CIDR"
2697
2826
  })
2698
2827
  });
2699
- var WorkspaceIpSettings = z106.object({
2700
- isEnabledForCloud: z106.boolean(),
2701
- isEnabledForDocs: z106.boolean(),
2702
- entries: z106.array(WorkspaceIpWhitelistEntry)
2828
+ var WorkspaceIpSettings = z115.object({
2829
+ isEnabledForCloud: z115.boolean(),
2830
+ isEnabledForDocs: z115.boolean(),
2831
+ entries: z115.array(WorkspaceIpWhitelistEntry)
2703
2832
  });
2704
- var WorkspaceProfile = z106.object({
2705
- name: z106.string(),
2706
- handle: z106.string(),
2707
- color: z106.string(),
2708
- avatar: nullishToOptional(z106.string()),
2833
+ var WorkspaceProfile = z115.object({
2834
+ name: z115.string(),
2835
+ handle: z115.string(),
2836
+ color: z115.string(),
2837
+ avatar: nullishToOptional(z115.string()),
2709
2838
  billingDetails: nullishToOptional(BillingDetails)
2710
2839
  });
2711
- var Workspace = z106.object({
2712
- id: z106.string(),
2840
+ var Workspace = z115.object({
2841
+ id: z115.string(),
2713
2842
  profile: WorkspaceProfile,
2714
2843
  subscription: Subscription,
2715
2844
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2716
2845
  sso: nullishToOptional(SsoProvider),
2717
2846
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2718
- designSystems: z106.array(DesignSystem).nullish()
2847
+ designSystems: z115.array(DesignSystem).nullish()
2719
2848
  });
2720
- var WorkspaceWithDesignSystems = z106.object({
2849
+ var WorkspaceWithDesignSystems = z115.object({
2721
2850
  workspace: Workspace,
2722
- designSystems: z106.array(DesignSystem)
2851
+ designSystems: z115.array(DesignSystem)
2723
2852
  });
2724
2853
 
2725
2854
  // src/workspace/workspace-context.ts
2726
- var WorkspaceContext = z107.object({
2727
- workspaceId: z107.string(),
2855
+ var WorkspaceContext = z116.object({
2856
+ workspaceId: z116.string(),
2728
2857
  product: ProductCodeSchema,
2729
2858
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2730
- publicDesignSystem: z107.boolean().optional()
2859
+ publicDesignSystem: z116.boolean().optional()
2731
2860
  });
2732
2861
 
2733
2862
  // src/workspace/workspace-create.ts
2734
- import { z as z108 } from "zod";
2863
+ import { z as z117 } from "zod";
2735
2864
 
2736
2865
  // src/utils/validation.ts
2737
2866
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2741,18 +2870,18 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2741
2870
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2742
2871
  var HANDLE_MIN_LENGTH = 2;
2743
2872
  var HANDLE_MAX_LENGTH = 64;
2744
- var CreateWorkspaceInput = z108.object({
2745
- name: z108.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2873
+ var CreateWorkspaceInput = z117.object({
2874
+ name: z117.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2746
2875
  product: ProductCodeSchema,
2747
- priceId: z108.string(),
2748
- billingEmail: z108.string().email().optional(),
2749
- handle: z108.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2876
+ priceId: z117.string(),
2877
+ billingEmail: z117.string().email().optional(),
2878
+ handle: z117.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2750
2879
  invites: UserInvites.optional(),
2751
- promoCode: z108.string().optional(),
2880
+ promoCode: z117.string().optional(),
2752
2881
  status: InternalStatusSchema.optional(),
2753
2882
  planInterval: BillingIntervalSchema.optional(),
2754
- seats: z108.number().optional(),
2755
- seatLimit: z108.number().optional(),
2883
+ seats: z117.number().optional(),
2884
+ seatLimit: z117.number().optional(),
2756
2885
  card: CardSchema.optional(),
2757
2886
  sso: SsoProvider.optional(),
2758
2887
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2760,299 +2889,326 @@ var CreateWorkspaceInput = z108.object({
2760
2889
  });
2761
2890
 
2762
2891
  // src/workspace/workspace-invitations.ts
2763
- import { z as z109 } from "zod";
2764
- var WorkspaceInvitation = z109.object({
2765
- id: z109.string(),
2766
- email: z109.string().email(),
2767
- createdAt: z109.coerce.date(),
2768
- resentAt: z109.coerce.date().nullish(),
2769
- role: z109.nativeEnum(WorkspaceRole),
2770
- workspaceId: z109.string(),
2771
- invitedBy: z109.string()
2892
+ import { z as z118 } from "zod";
2893
+ var WorkspaceInvitation = z118.object({
2894
+ id: z118.string(),
2895
+ email: z118.string().email(),
2896
+ createdAt: z118.coerce.date(),
2897
+ resentAt: z118.coerce.date().nullish(),
2898
+ role: z118.nativeEnum(WorkspaceRole),
2899
+ workspaceId: z118.string(),
2900
+ invitedBy: z118.string()
2772
2901
  });
2773
2902
 
2774
2903
  // src/workspace/workspace-membership.ts
2775
- import { z as z110 } from "zod";
2776
- var WorkspaceMembership = z110.object({
2777
- id: z110.string(),
2778
- userId: z110.string(),
2779
- workspaceId: z110.string(),
2780
- workspaceRole: z110.nativeEnum(WorkspaceRole)
2781
- });
2782
- var UpdateMembershipRolesInput = z110.object({
2783
- members: z110.array(
2784
- z110.object({
2785
- userId: z110.string(),
2786
- role: z110.nativeEnum(WorkspaceRole)
2904
+ import { z as z119 } from "zod";
2905
+ var WorkspaceMembership = z119.object({
2906
+ id: z119.string(),
2907
+ userId: z119.string(),
2908
+ workspaceId: z119.string(),
2909
+ workspaceRole: z119.nativeEnum(WorkspaceRole)
2910
+ });
2911
+ var UpdateMembershipRolesInput = z119.object({
2912
+ members: z119.array(
2913
+ z119.object({
2914
+ userId: z119.string(),
2915
+ role: z119.nativeEnum(WorkspaceRole)
2787
2916
  })
2788
2917
  )
2789
2918
  });
2790
2919
 
2791
2920
  // src/dsm/design-system.ts
2792
- var DesignSystemSwitcher = z111.object({
2793
- isEnabled: z111.boolean(),
2794
- designSystemIds: z111.array(z111.string())
2795
- });
2796
- var DesignSystem = z111.object({
2797
- id: z111.string(),
2798
- workspaceId: z111.string(),
2799
- name: z111.string(),
2800
- description: z111.string(),
2801
- docExporterId: nullishToOptional(z111.string()),
2802
- docSlug: z111.string(),
2803
- docUserSlug: nullishToOptional(z111.string()),
2804
- docSlugDeprecated: z111.string(),
2805
- isPublic: z111.boolean(),
2806
- isMultibrand: z111.boolean(),
2807
- docViewUrl: nullishToOptional(z111.string()),
2808
- basePrefixes: z111.array(z111.string()),
2921
+ var DesignSystemSwitcher = z120.object({
2922
+ isEnabled: z120.boolean(),
2923
+ designSystemIds: z120.array(z120.string())
2924
+ });
2925
+ var DesignSystem = z120.object({
2926
+ id: z120.string(),
2927
+ workspaceId: z120.string(),
2928
+ name: z120.string(),
2929
+ description: z120.string(),
2930
+ docExporterId: nullishToOptional(z120.string()),
2931
+ docSlug: z120.string(),
2932
+ docUserSlug: nullishToOptional(z120.string()),
2933
+ docSlugDeprecated: z120.string(),
2934
+ isPublic: z120.boolean(),
2935
+ isMultibrand: z120.boolean(),
2936
+ docViewUrl: nullishToOptional(z120.string()),
2937
+ basePrefixes: z120.array(z120.string()),
2809
2938
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2810
- createdAt: z111.coerce.date(),
2811
- updatedAt: z111.coerce.date()
2939
+ createdAt: z120.coerce.date(),
2940
+ updatedAt: z120.coerce.date()
2812
2941
  });
2813
- var DesignSystemWithWorkspace = z111.object({
2942
+ var DesignSystemWithWorkspace = z120.object({
2814
2943
  designSystem: DesignSystem,
2815
2944
  workspace: Workspace
2816
2945
  });
2817
2946
 
2818
2947
  // src/dsm/desing-system-create.ts
2819
- import { z as z112 } from "zod";
2948
+ import { z as z121 } from "zod";
2820
2949
  var DS_NAME_MIN_LENGTH = 2;
2821
2950
  var DS_NAME_MAX_LENGTH = 64;
2822
2951
  var DS_DESC_MAX_LENGTH = 64;
2823
- var DesignSystemCreateInputMetadata = z112.object({
2824
- name: z112.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2825
- description: z112.string().max(DS_DESC_MAX_LENGTH).trim()
2952
+ var DesignSystemCreateInputMetadata = z121.object({
2953
+ name: z121.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2954
+ description: z121.string().max(DS_DESC_MAX_LENGTH).trim()
2826
2955
  });
2827
- var DesignSystemCreateInput = z112.object({
2956
+ var DesignSystemCreateInput = z121.object({
2828
2957
  meta: DesignSystemCreateInputMetadata,
2829
- workspaceId: z112.string(),
2830
- isPublic: z112.boolean().optional(),
2831
- basePrefixes: z112.array(z112.string()).optional(),
2832
- docUserSlug: z112.string().nullish().optional(),
2833
- source: z112.array(z112.string()).optional()
2958
+ workspaceId: z121.string(),
2959
+ isPublic: z121.boolean().optional(),
2960
+ basePrefixes: z121.array(z121.string()).optional(),
2961
+ docUserSlug: z121.string().nullish().optional(),
2962
+ source: z121.array(z121.string()).optional()
2834
2963
  });
2835
2964
 
2836
2965
  // src/dsm/desing-system-update.ts
2837
- import { z as z113 } from "zod";
2966
+ import { z as z122 } from "zod";
2838
2967
  var DS_NAME_MIN_LENGTH2 = 2;
2839
2968
  var DS_NAME_MAX_LENGTH2 = 64;
2840
2969
  var DS_DESC_MAX_LENGTH2 = 64;
2841
- var DesignSystemUpdateInputMetadata = z113.object({
2842
- name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2843
- description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2970
+ var DesignSystemUpdateInputMetadata = z122.object({
2971
+ name: z122.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2972
+ description: z122.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2844
2973
  });
2845
- var DesignSystemUpdateInput = z113.object({
2974
+ var DesignSystemUpdateInput = z122.object({
2846
2975
  meta: DesignSystemUpdateInputMetadata.optional(),
2847
- workspaceId: z113.string().optional(),
2848
- isPublic: z113.boolean().optional(),
2849
- basePrefixes: z113.array(z113.string()).optional(),
2850
- docUserSlug: z113.string().nullish().optional(),
2851
- source: z113.array(z113.string()).optional(),
2852
- name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2853
- description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2854
- docExporterId: z113.string().optional()
2976
+ workspaceId: z122.string().optional(),
2977
+ isPublic: z122.boolean().optional(),
2978
+ basePrefixes: z122.array(z122.string()).optional(),
2979
+ docUserSlug: z122.string().nullish().optional(),
2980
+ source: z122.array(z122.string()).optional(),
2981
+ name: z122.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2982
+ description: z122.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2983
+ docExporterId: z122.string().optional()
2855
2984
  });
2856
2985
 
2857
2986
  // src/dsm/exporter-property-values-collection.ts
2858
- import { z as z114 } from "zod";
2859
- var ExporterPropertyImageValue = z114.object({
2987
+ import { z as z123 } from "zod";
2988
+ var ExporterPropertyImageValue = z123.object({
2860
2989
  asset: PageBlockAsset.optional(),
2861
- assetId: z114.string().optional(),
2862
- assetUrl: z114.string().optional()
2863
- });
2864
- var ExporterPropertyValue = z114.object({
2865
- key: z114.string(),
2866
- value: z114.union([
2867
- z114.number(),
2868
- z114.string(),
2869
- z114.boolean(),
2990
+ assetId: z123.string().optional(),
2991
+ assetUrl: z123.string().optional()
2992
+ });
2993
+ var ExporterPropertyValue = z123.object({
2994
+ key: z123.string(),
2995
+ value: z123.union([
2996
+ z123.number(),
2997
+ z123.string(),
2998
+ z123.boolean(),
2870
2999
  ExporterPropertyImageValue,
2871
3000
  ColorTokenData,
2872
3001
  TypographyTokenData
2873
3002
  ])
2874
3003
  });
2875
- var ExporterPropertyValuesCollection = z114.object({
2876
- id: z114.string(),
2877
- designSystemId: z114.string(),
2878
- exporterId: z114.string(),
2879
- values: z114.array(ExporterPropertyValue)
3004
+ var ExporterPropertyValuesCollection = z123.object({
3005
+ id: z123.string(),
3006
+ designSystemId: z123.string(),
3007
+ exporterId: z123.string(),
3008
+ values: z123.array(ExporterPropertyValue)
2880
3009
  });
2881
3010
 
2882
3011
  // src/dsm/published-doc-page.ts
2883
- import { z as z115 } from "zod";
3012
+ import { z as z124 } from "zod";
2884
3013
  var SHORT_PERSISTENT_ID_LENGTH = 8;
2885
3014
  function tryParseShortPersistentId(url = "/") {
2886
3015
  const lastUrlPart = url.split("/").pop() || "";
2887
3016
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
2888
3017
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
2889
3018
  }
2890
- var PublishedDocPage = z115.object({
2891
- id: z115.string(),
2892
- publishedDocId: z115.string(),
2893
- pageShortPersistentId: z115.string(),
2894
- pathV1: z115.string(),
2895
- pathV2: z115.string(),
2896
- storagePath: z115.string(),
2897
- locale: z115.string().optional(),
2898
- isPrivate: z115.boolean(),
2899
- isHidden: z115.boolean(),
2900
- createdAt: z115.coerce.date(),
2901
- updatedAt: z115.coerce.date()
3019
+ var PublishedDocPage = z124.object({
3020
+ id: z124.string(),
3021
+ publishedDocId: z124.string(),
3022
+ pageShortPersistentId: z124.string(),
3023
+ pathV1: z124.string(),
3024
+ pathV2: z124.string(),
3025
+ storagePath: z124.string(),
3026
+ locale: z124.string().optional(),
3027
+ isPrivate: z124.boolean(),
3028
+ isHidden: z124.boolean(),
3029
+ createdAt: z124.coerce.date(),
3030
+ updatedAt: z124.coerce.date()
2902
3031
  });
2903
3032
 
2904
3033
  // src/dsm/published-doc.ts
2905
- import { z as z116 } from "zod";
3034
+ import { z as z125 } from "zod";
2906
3035
  var publishedDocEnvironments = ["Live", "Preview"];
2907
- var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
2908
- var PublishedDocsChecksums = z116.record(z116.string());
2909
- var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
2910
- var PublishedDoc = z116.object({
2911
- id: z116.string(),
2912
- designSystemVersionId: z116.string(),
2913
- createdAt: z116.coerce.date(),
2914
- updatedAt: z116.coerce.date(),
2915
- lastPublishedAt: z116.coerce.date(),
2916
- isDefault: z116.boolean(),
2917
- isPublic: z116.boolean(),
3036
+ var PublishedDocEnvironment = z125.enum(publishedDocEnvironments);
3037
+ var PublishedDocsChecksums = z125.record(z125.string());
3038
+ var PublishedDocRoutingVersion = z125.enum(["1", "2"]);
3039
+ var PublishedDoc = z125.object({
3040
+ id: z125.string(),
3041
+ designSystemVersionId: z125.string(),
3042
+ createdAt: z125.coerce.date(),
3043
+ updatedAt: z125.coerce.date(),
3044
+ lastPublishedAt: z125.coerce.date(),
3045
+ isDefault: z125.boolean(),
3046
+ isPublic: z125.boolean(),
2918
3047
  environment: PublishedDocEnvironment,
2919
3048
  checksums: PublishedDocsChecksums,
2920
- storagePath: z116.string(),
2921
- wasMigrated: z116.boolean(),
3049
+ storagePath: z125.string(),
3050
+ wasMigrated: z125.boolean(),
2922
3051
  routingVersion: PublishedDocRoutingVersion,
2923
- usesLocalizations: z116.boolean(),
2924
- wasPublishedWithLocalizations: z116.boolean()
3052
+ usesLocalizations: z125.boolean(),
3053
+ wasPublishedWithLocalizations: z125.boolean()
2925
3054
  });
2926
3055
 
2927
3056
  // src/dsm/version.ts
2928
- import { z as z117 } from "zod";
2929
- var DesignSystemVersion = z117.object({
2930
- id: z117.string(),
2931
- version: z117.string(),
2932
- createdAt: z117.date(),
2933
- designSystemId: z117.string(),
2934
- name: z117.string(),
2935
- comment: z117.string(),
2936
- isReadonly: z117.boolean(),
2937
- changeLog: z117.string(),
2938
- parentId: z117.string().optional()
2939
- });
2940
- var VersionCreationJobStatus = z117.enum(["Success", "InProgress", "Error"]);
2941
- var VersionCreationJob = z117.object({
2942
- id: z117.string(),
2943
- version: z117.string(),
2944
- designSystemId: z117.string(),
2945
- designSystemVersionId: nullishToOptional(z117.string()),
3057
+ import { z as z126 } from "zod";
3058
+ var DesignSystemVersion = z126.object({
3059
+ id: z126.string(),
3060
+ version: z126.string(),
3061
+ createdAt: z126.date(),
3062
+ designSystemId: z126.string(),
3063
+ name: z126.string(),
3064
+ comment: z126.string(),
3065
+ isReadonly: z126.boolean(),
3066
+ changeLog: z126.string(),
3067
+ parentId: z126.string().optional()
3068
+ });
3069
+ var VersionCreationJobStatus = z126.enum(["Success", "InProgress", "Error"]);
3070
+ var VersionCreationJob = z126.object({
3071
+ id: z126.string(),
3072
+ version: z126.string(),
3073
+ designSystemId: z126.string(),
3074
+ designSystemVersionId: nullishToOptional(z126.string()),
2946
3075
  status: VersionCreationJobStatus,
2947
- errorMessage: nullishToOptional(z117.string())
3076
+ errorMessage: nullishToOptional(z126.string())
2948
3077
  });
2949
3078
 
2950
- // src/codegen/export-destinations.ts
2951
- import { z as z118 } from "zod";
2952
- var ExporterDestinationSnDocs = z118.object({
3079
+ // src/export/export-runner/export-context.ts
3080
+ import { z as z127 } from "zod";
3081
+ var ExportJobDocumentationContext = z127.object({
3082
+ isSingleVersionDocs: z127.boolean(),
3083
+ versionSlug: z127.string(),
2953
3084
  environment: PublishedDocEnvironment
2954
3085
  });
2955
- var ExporterDestinationS3 = z118.object({});
2956
- var ExporterDestinationGithub = z118.object({
2957
- connectionId: z118.string(),
2958
- url: z118.string(),
2959
- branch: z118.string(),
2960
- relativePath: z118.string(),
2961
- // +
2962
- userId: z118.coerce.string()
2963
- });
2964
- var ExporterDestinationAzure = z118.object({
2965
- connectionId: z118.string(),
2966
- organizationId: z118.string(),
2967
- projectId: z118.string(),
2968
- repositoryId: z118.string(),
2969
- branch: z118.string(),
2970
- relativePath: z118.string(),
2971
- // +
2972
- userId: z118.coerce.string(),
2973
- url: z118.string()
2974
- });
2975
- var ExporterDestinationGitlab = z118.object({
2976
- connectionId: z118.string(),
2977
- projectId: z118.string(),
2978
- branch: z118.string(),
2979
- relativePath: z118.string(),
2980
- // +
2981
- userId: z118.coerce.string(),
2982
- url: z118.string()
3086
+ var ExportJobContext = z127.object({
3087
+ apiUrl: z127.string(),
3088
+ accessToken: z127.string(),
3089
+ designSystemId: z127.string(),
3090
+ designSystemVersionId: z127.string(),
3091
+ brandId: z127.string().optional(),
3092
+ exporterPackageUrl: z127.string(),
3093
+ exporterPropertyValues: ExporterPropertyValue.array(),
3094
+ documentation: ExportJobDocumentationContext.optional()
3095
+ });
3096
+
3097
+ // src/export/export-runner/exporter-payload.ts
3098
+ import { z as z128 } from "zod";
3099
+ var ExporterFunctionPayload = z128.object({
3100
+ exportJobId: z128.string(),
3101
+ exportContextId: z128.string(),
3102
+ designSystemId: z128.string()
2983
3103
  });
3104
+
3105
+ // src/export/export-destinations.ts
3106
+ import { z as z129 } from "zod";
2984
3107
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2985
3108
  var BITBUCKET_MAX_LENGTH = 64;
2986
- var ExporterDestinationBitbucket = z118.object({
2987
- connectionId: z118.string(),
2988
- workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2989
- projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2990
- repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2991
- branch: z118.string(),
2992
- relativePath: z118.string(),
2993
- // +
2994
- userId: z118.coerce.string(),
2995
- url: z118.string()
2996
- });
2997
-
2998
- // src/codegen/export-jobs.ts
2999
- import { z as z119 } from "zod";
3000
- var ExporterJobDestination = z119.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3001
- var ExporterJobStatus = z119.enum(["InProgress", "Success", "Failed", "Timeout"]);
3002
- var ExporterJobLogEntryType = z119.enum(["success", "info", "warning", "error", "user"]);
3003
- var ExporterJobLogEntry = z119.object({
3004
- id: z119.string().optional(),
3005
- time: z119.coerce.date(),
3006
- type: ExporterJobLogEntryType,
3007
- message: z119.string()
3008
- });
3009
- var ExporterJobResultPullRequestDestination = z119.object({
3010
- pullRequestUrl: z119.string()
3011
- });
3012
- var ExporterJobResultS3Destination = z119.object({
3013
- bucket: z119.string(),
3014
- urlPrefix: z119.string().optional(),
3015
- path: z119.string(),
3016
- files: z119.array(z119.string())
3017
- });
3018
- var ExporterJobResultDocsDestination = z119.object({
3019
- url: z119.string()
3020
- });
3021
- var ExporterJobResult = z119.object({
3022
- error: z119.string().optional(),
3023
- logs: z119.array(ExporterJobLogEntry).optional(),
3024
- s3: ExporterJobResultS3Destination.optional(),
3025
- github: ExporterJobResultPullRequestDestination.optional(),
3026
- azure: ExporterJobResultPullRequestDestination.optional(),
3027
- gitlab: ExporterJobResultPullRequestDestination.optional(),
3028
- bitbucket: ExporterJobResultPullRequestDestination.optional(),
3029
- sndocs: ExporterJobResultDocsDestination.optional()
3030
- });
3031
- var ExporterJob = z119.object({
3032
- id: z119.coerce.string(),
3033
- createdAt: z119.coerce.date(),
3034
- finishedAt: z119.coerce.date().optional(),
3035
- designSystemId: z119.coerce.string(),
3036
- designSystemVersionId: z119.coerce.string(),
3037
- workspaceId: z119.coerce.string(),
3038
- scheduleId: z119.coerce.string().nullish(),
3039
- exporterId: z119.coerce.string(),
3040
- brandId: z119.coerce.string().optional(),
3041
- themeId: z119.coerce.string().optional(),
3042
- estimatedExecutionTime: z119.number().optional(),
3043
- status: ExporterJobStatus,
3044
- result: ExporterJobResult.optional(),
3045
- createdByUserId: z119.string().optional(),
3046
- // CodegenDestinationsModel
3047
- webhookUrl: z119.string().optional(),
3048
- destinationSnDocs: ExporterDestinationSnDocs.optional(),
3109
+ var ExporterDestinationDocs = z129.object({
3110
+ environment: PublishedDocEnvironment
3111
+ });
3112
+ var ExporterDestinationS3 = z129.object({});
3113
+ var ExporterDestinationGithub = z129.object({
3114
+ connectionId: z129.string(),
3115
+ branch: z129.string(),
3116
+ relativePath: z129.string()
3117
+ // // +
3118
+ // userId: z.coerce.string(),
3119
+ });
3120
+ var ExporterDestinationAzure = z129.object({
3121
+ connectionId: z129.string(),
3122
+ organizationId: z129.string(),
3123
+ projectId: z129.string(),
3124
+ repositoryId: z129.string(),
3125
+ branch: z129.string(),
3126
+ relativePath: z129.string()
3127
+ // // +
3128
+ // userId: z.coerce.string(),
3129
+ // url: z.string(),
3130
+ });
3131
+ var ExporterDestinationGitlab = z129.object({
3132
+ connectionId: z129.string(),
3133
+ projectId: z129.string(),
3134
+ branch: z129.string(),
3135
+ relativePath: z129.string()
3136
+ // // +
3137
+ // userId: z.coerce.string(),
3138
+ // url: z.string(),
3139
+ });
3140
+ var ExporterDestinationBitbucket = z129.object({
3141
+ connectionId: z129.string(),
3142
+ workspaceSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3143
+ projectKey: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3144
+ repoSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3145
+ branch: z129.string(),
3146
+ relativePath: z129.string()
3147
+ // // +
3148
+ // userId: z.string(),
3149
+ // url: z.string(),
3150
+ });
3151
+ var ExportDestinationsMap = z129.object({
3152
+ webhookUrl: z129.string().optional(),
3153
+ destinationSnDocs: ExporterDestinationDocs.optional(),
3049
3154
  destinationS3: ExporterDestinationS3.optional(),
3050
3155
  destinationGithub: ExporterDestinationGithub.optional(),
3051
3156
  destinationAzure: ExporterDestinationAzure.optional(),
3052
3157
  destinationGitlab: ExporterDestinationGitlab.optional(),
3053
3158
  destinationBitbucket: ExporterDestinationBitbucket.optional()
3054
3159
  });
3055
- var ExporterJobFindByFilter = ExporterJob.pick({
3160
+
3161
+ // src/export/export-jobs.ts
3162
+ import { z as z130 } from "zod";
3163
+ var ExportJobDestinationType = z130.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3164
+ var ExportJobStatus = z130.enum(["InProgress", "Success", "Failed", "Timeout"]);
3165
+ var ExportJobLogEntryType = z130.enum(["success", "info", "warning", "error", "user"]);
3166
+ var ExportJobLogEntry = z130.object({
3167
+ id: z130.string().optional(),
3168
+ time: z130.coerce.date(),
3169
+ type: ExportJobLogEntryType,
3170
+ message: z130.string()
3171
+ });
3172
+ var ExportJobPullRequestDestinationResult = z130.object({
3173
+ pullRequestUrl: z130.string()
3174
+ });
3175
+ var ExportJobS3DestinationResult = z130.object({
3176
+ bucket: z130.string(),
3177
+ urlPrefix: z130.string().optional(),
3178
+ path: z130.string(),
3179
+ files: z130.array(z130.string())
3180
+ });
3181
+ var ExportJobDocsDestinationResult = z130.object({
3182
+ url: z130.string()
3183
+ });
3184
+ var ExportJobResult = z130.object({
3185
+ error: z130.string().optional(),
3186
+ s3: ExportJobS3DestinationResult.optional(),
3187
+ github: ExportJobPullRequestDestinationResult.optional(),
3188
+ azure: ExportJobPullRequestDestinationResult.optional(),
3189
+ gitlab: ExportJobPullRequestDestinationResult.optional(),
3190
+ bitbucket: ExportJobPullRequestDestinationResult.optional(),
3191
+ sndocs: ExportJobDocsDestinationResult.optional()
3192
+ });
3193
+ var ExportJob = z130.object({
3194
+ id: z130.string(),
3195
+ createdAt: z130.date(),
3196
+ finishedAt: z130.date().optional(),
3197
+ designSystemId: z130.string(),
3198
+ designSystemVersionId: z130.string(),
3199
+ workspaceId: z130.string(),
3200
+ scheduleId: z130.string().nullish(),
3201
+ exporterId: z130.string(),
3202
+ brandId: z130.string().optional(),
3203
+ themeId: z130.string().optional(),
3204
+ estimatedExecutionTime: z130.number().optional(),
3205
+ status: ExportJobStatus,
3206
+ result: ExportJobResult.optional(),
3207
+ createdByUserId: z130.string().optional(),
3208
+ // Destinations
3209
+ ...ExportDestinationsMap.shape
3210
+ });
3211
+ var ExportJobFindByFilter = ExportJob.pick({
3056
3212
  exporterId: true,
3057
3213
  designSystemVersionId: true,
3058
3214
  destinations: true,
@@ -3063,51 +3219,45 @@ var ExporterJobFindByFilter = ExporterJob.pick({
3063
3219
  themeId: true,
3064
3220
  brandId: true
3065
3221
  }).extend({
3066
- destinations: z119.array(ExporterJobDestination),
3222
+ destinations: z130.array(ExportJobDestinationType),
3067
3223
  docsEnvironment: PublishedDocEnvironment
3068
3224
  }).partial();
3069
3225
 
3070
- // src/codegen/export-schedule.ts
3071
- import { z as z120 } from "zod";
3072
- var ExporterScheduleEventType = z120.enum(["InProgress", "Success", "Failed", "Timeout"]);
3073
- var ExporterSchedule = z120.object({
3074
- id: z120.coerce.string(),
3075
- name: z120.coerce.string(),
3226
+ // src/export/export-schedule.ts
3227
+ import { z as z131 } from "zod";
3228
+ var ExporterScheduleEventType = z131.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3229
+ var ExporterSchedule = z131.object({
3230
+ id: z131.string(),
3231
+ name: z131.string(),
3076
3232
  eventType: ExporterScheduleEventType,
3077
- isEnabled: z120.coerce.boolean(),
3078
- workspaceId: z120.coerce.string(),
3079
- designSystemId: z120.coerce.string(),
3080
- exporterId: z120.coerce.string(),
3081
- brandId: z120.coerce.string().optional(),
3082
- themeId: z120.coerce.string().optional(),
3083
- // CodegenDestinationsModel
3084
- webhookUrl: z120.string().optional(),
3085
- destinationSnDocs: ExporterDestinationSnDocs.optional(),
3086
- destinationS3: ExporterDestinationS3.optional(),
3087
- destinationGithub: ExporterDestinationGithub.optional(),
3088
- destinationAzure: ExporterDestinationAzure.optional(),
3089
- destinationGitlab: ExporterDestinationGitlab.optional(),
3090
- destinationBitbucket: ExporterDestinationBitbucket.optional()
3233
+ isEnabled: z131.boolean(),
3234
+ workspaceId: z131.string(),
3235
+ designSystemId: z131.string(),
3236
+ exporterId: z131.string(),
3237
+ brandId: z131.string().optional(),
3238
+ themeId: z131.string().optional(),
3239
+ // Destinations
3240
+ ...ExportDestinationsMap.shape
3091
3241
  });
3092
3242
 
3093
- // src/codegen/exporter-workspace-membership-role.ts
3094
- import { z as z121 } from "zod";
3095
- var ExporterWorkspaceMembershipRole = z121.enum(["Owner", "OwnerArchived", "User"]);
3243
+ // src/export/exporter-workspace-membership-role.ts
3244
+ import { z as z132 } from "zod";
3245
+ var ExporterWorkspaceMembershipRole = z132.enum(["Owner", "OwnerArchived", "User"]);
3096
3246
 
3097
- // src/codegen/exporter-workspace-membership.ts
3098
- import { z as z122 } from "zod";
3099
- var ExporterWorkspaceMembership = z122.object({
3100
- id: z122.string(),
3101
- workspaceId: z122.string(),
3102
- exporterId: z122.string(),
3247
+ // src/export/exporter-workspace-membership.ts
3248
+ import { z as z133 } from "zod";
3249
+ var ExporterWorkspaceMembership = z133.object({
3250
+ id: z133.string(),
3251
+ workspaceId: z133.string(),
3252
+ exporterId: z133.string(),
3103
3253
  role: ExporterWorkspaceMembershipRole
3104
3254
  });
3105
3255
 
3106
- // src/codegen/exporter.ts
3107
- import { z as z125 } from "zod";
3256
+ // src/export/exporter.ts
3257
+ import { z as z136 } from "zod";
3108
3258
 
3109
- // src/codegen/git-providers.ts
3110
- import { z as z123 } from "zod";
3259
+ // src/export/git-providers.ts
3260
+ import { z as z134 } from "zod";
3111
3261
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3112
3262
  GitProviderNames2["Azure"] = "azure";
3113
3263
  GitProviderNames2["Github"] = "github";
@@ -3115,11 +3265,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3115
3265
  GitProviderNames2["Bitbucket"] = "bitbucket";
3116
3266
  return GitProviderNames2;
3117
3267
  })(GitProviderNames || {});
3118
- var GitProvider = z123.nativeEnum(GitProviderNames);
3268
+ var GitProvider = z134.nativeEnum(GitProviderNames);
3119
3269
 
3120
- // src/codegen/pulsar.ts
3121
- import { z as z124 } from "zod";
3122
- var PulsarPropertyType = z124.enum([
3270
+ // src/export/pulsar.ts
3271
+ import { z as z135 } from "zod";
3272
+ var PulsarPropertyType = z135.enum([
3123
3273
  "string",
3124
3274
  "number",
3125
3275
  "boolean",
@@ -3132,221 +3282,91 @@ var PulsarPropertyType = z124.enum([
3132
3282
  "tokenProperties",
3133
3283
  "tokenType"
3134
3284
  ]);
3135
- var PulsarBaseProperty = z124.object({
3136
- label: z124.string(),
3137
- key: z124.string(),
3138
- description: z124.string().nullish(),
3285
+ var PulsarBaseProperty = z135.object({
3286
+ label: z135.string(),
3287
+ key: z135.string(),
3288
+ description: z135.string().nullish(),
3139
3289
  type: PulsarPropertyType,
3140
- values: z124.array(z124.string()).nullish(),
3141
- default: z124.union([z124.string(), z124.boolean(), z124.number()]).nullish(),
3290
+ values: z135.array(z135.string()).nullish(),
3291
+ default: z135.union([z135.string(), z135.boolean(), z135.number()]).nullish(),
3142
3292
  // PulsarPropertyValueType //is optional?
3143
- inputType: z124.enum(["code", "plain"]).optional(),
3293
+ inputType: z135.enum(["code", "plain"]).optional(),
3144
3294
  //is optional?
3145
- isMultiline: z124.boolean().nullish()
3295
+ isMultiline: z135.boolean().nullish()
3146
3296
  });
3147
3297
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
3148
- category: z124.string()
3149
- });
3150
- var PulsarContributionVariant = z124.object({
3151
- key: z124.string(),
3152
- name: z124.string(),
3153
- isDefault: nullishToOptional(z124.boolean()),
3154
- description: nullishToOptional(z124.string()),
3155
- thumbnailURL: nullishToOptional(z124.string())
3156
- });
3157
- var PulsarCustomBlock = z124.object({
3158
- title: nullishToOptional(z124.string()),
3159
- key: z124.string(),
3160
- category: nullishToOptional(z124.string()),
3161
- description: nullishToOptional(z124.string()),
3162
- iconURL: nullishToOptional(z124.string()),
3163
- mode: nullishToOptional(z124.enum(["array", "block"])),
3164
- properties: nullishToOptional(z124.array(PulsarBaseProperty)).transform((v) => v ?? [])
3165
- });
3166
-
3167
- // src/codegen/exporter.ts
3168
- var ExporterType = z125.enum(["code", "documentation"]);
3169
- var ExporterSource = z125.enum(["git", "upload"]);
3170
- var ExporterTag = z125.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3171
- var ExporterDetails = z125.object({
3172
- description: z125.string(),
3173
- version: z125.string(),
3174
- routingVersion: nullishToOptional(z125.string()),
3175
- author: nullishToOptional(z125.string()),
3176
- organization: nullishToOptional(z125.string()),
3177
- homepage: nullishToOptional(z125.string()),
3178
- readme: nullishToOptional(z125.string()),
3179
- tags: nullishToOptional(z125.array(ExporterTag)).default([]),
3180
- packageId: nullishToOptional(z125.string().max(255)),
3181
- iconURL: nullishToOptional(z125.string()),
3182
- configurationProperties: nullishToOptional(z125.array(PulsarContributionConfigurationProperty)).default([]),
3183
- customBlocks: nullishToOptional(z125.array(PulsarCustomBlock)).default([]),
3184
- blockVariants: nullishToOptional(z125.record(z125.string(), z125.array(PulsarContributionVariant))).default({}),
3185
- usesBrands: nullishToOptional(z125.boolean()).default(false),
3186
- usesThemes: nullishToOptional(z125.boolean()).default(false),
3298
+ category: z135.string()
3299
+ });
3300
+ var PulsarContributionVariant = z135.object({
3301
+ key: z135.string(),
3302
+ name: z135.string(),
3303
+ isDefault: nullishToOptional(z135.boolean()),
3304
+ description: nullishToOptional(z135.string()),
3305
+ thumbnailURL: nullishToOptional(z135.string())
3306
+ });
3307
+ var PulsarCustomBlock = z135.object({
3308
+ title: nullishToOptional(z135.string()),
3309
+ key: z135.string(),
3310
+ category: nullishToOptional(z135.string()),
3311
+ description: nullishToOptional(z135.string()),
3312
+ iconURL: nullishToOptional(z135.string()),
3313
+ mode: nullishToOptional(z135.enum(["array", "block"])),
3314
+ properties: nullishToOptional(z135.array(PulsarBaseProperty)).transform((v) => v ?? [])
3315
+ });
3316
+
3317
+ // src/export/exporter.ts
3318
+ var ExporterType = z136.enum(["code", "documentation"]);
3319
+ var ExporterSource = z136.enum(["git", "upload"]);
3320
+ var ExporterTag = z136.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3321
+ var ExporterDetails = z136.object({
3322
+ description: z136.string(),
3323
+ version: z136.string(),
3324
+ routingVersion: nullishToOptional(z136.string()),
3325
+ author: nullishToOptional(z136.string()),
3326
+ organization: nullishToOptional(z136.string()),
3327
+ homepage: nullishToOptional(z136.string()),
3328
+ readme: nullishToOptional(z136.string()),
3329
+ tags: nullishToOptional(z136.array(ExporterTag)).default([]),
3330
+ packageId: nullishToOptional(z136.string().max(255)),
3331
+ iconURL: nullishToOptional(z136.string()),
3332
+ configurationProperties: nullishToOptional(z136.array(PulsarContributionConfigurationProperty)).default([]),
3333
+ customBlocks: nullishToOptional(z136.array(PulsarCustomBlock)).default([]),
3334
+ blockVariants: nullishToOptional(z136.record(z136.string(), z136.array(PulsarContributionVariant))).default({}),
3335
+ usesBrands: nullishToOptional(z136.boolean()).default(false),
3336
+ usesThemes: nullishToOptional(z136.boolean()).default(false),
3187
3337
  source: ExporterSource,
3188
3338
  gitProvider: nullishToOptional(GitProvider),
3189
- gitUrl: nullishToOptional(z125.string()),
3190
- gitBranch: nullishToOptional(z125.string()),
3191
- gitDirectory: nullishToOptional(z125.string())
3192
- });
3193
- var Exporter = z125.object({
3194
- id: z125.string(),
3195
- createdAt: z125.coerce.date(),
3196
- name: z125.string(),
3197
- isPrivate: z125.boolean(),
3339
+ gitUrl: nullishToOptional(z136.string()),
3340
+ gitBranch: nullishToOptional(z136.string()),
3341
+ gitDirectory: nullishToOptional(z136.string())
3342
+ });
3343
+ var Exporter = z136.object({
3344
+ id: z136.string(),
3345
+ createdAt: z136.coerce.date(),
3346
+ name: z136.string(),
3347
+ isPrivate: z136.boolean(),
3198
3348
  details: ExporterDetails,
3199
3349
  exporterType: nullishToOptional(ExporterType).default("code"),
3200
- storagePath: nullishToOptional(z125.string()).default("")
3201
- });
3202
-
3203
- // src/custom-domains/custom-domains.ts
3204
- import { z as z126 } from "zod";
3205
- var CustomDomain = z126.object({
3206
- id: z126.string(),
3207
- designSystemId: z126.string(),
3208
- state: z126.string(),
3209
- supernovaDomain: z126.string(),
3210
- customerDomain: z126.string().nullish(),
3211
- error: z126.string().nullish(),
3212
- errorCode: z126.string().nullish()
3213
- });
3214
-
3215
- // src/docs-server/session.ts
3216
- import { z as z134 } from "zod";
3217
-
3218
- // src/users/linked-integrations.ts
3219
- import { z as z127 } from "zod";
3220
- var IntegrationAuthType = z127.union([z127.literal("OAuth2"), z127.literal("PAT")]);
3221
- var ExternalServiceType = z127.union([
3222
- z127.literal("figma"),
3223
- z127.literal("github"),
3224
- z127.literal("azure"),
3225
- z127.literal("gitlab"),
3226
- z127.literal("bitbucket")
3227
- ]);
3228
- var IntegrationUserInfo = z127.object({
3229
- id: z127.string(),
3230
- handle: z127.string().optional(),
3231
- avatarUrl: z127.string().optional(),
3232
- email: z127.string().optional(),
3233
- authType: IntegrationAuthType.optional(),
3234
- customUrl: z127.string().optional()
3235
- });
3236
- var UserLinkedIntegrations = z127.object({
3237
- figma: IntegrationUserInfo.optional(),
3238
- github: IntegrationUserInfo.array().optional(),
3239
- azure: IntegrationUserInfo.array().optional(),
3240
- gitlab: IntegrationUserInfo.array().optional(),
3241
- bitbucket: IntegrationUserInfo.array().optional()
3242
- });
3243
-
3244
- // src/users/user-create.ts
3245
- import { z as z128 } from "zod";
3246
- var CreateUserInput = z128.object({
3247
- email: z128.string(),
3248
- name: z128.string(),
3249
- username: z128.string()
3250
- });
3251
-
3252
- // src/users/user-identity.ts
3253
- import { z as z129 } from "zod";
3254
- var UserIdentity = z129.object({
3255
- id: z129.string(),
3256
- userId: z129.string()
3257
- });
3258
-
3259
- // src/users/user-minified.ts
3260
- import { z as z130 } from "zod";
3261
- var UserMinified = z130.object({
3262
- id: z130.string(),
3263
- name: z130.string(),
3264
- email: z130.string(),
3265
- avatar: z130.string().optional()
3266
- });
3267
-
3268
- // src/users/user-profile.ts
3269
- import { z as z131 } from "zod";
3270
- var UserOnboardingDepartment = z131.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3271
- var UserOnboardingJobLevel = z131.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3272
- var UserOnboarding = z131.object({
3273
- companyName: z131.string().optional(),
3274
- numberOfPeopleInOrg: z131.string().optional(),
3275
- numberOfPeopleInDesignTeam: z131.string().optional(),
3276
- department: UserOnboardingDepartment.optional(),
3277
- jobTitle: z131.string().optional(),
3278
- phase: z131.string().optional(),
3279
- jobLevel: UserOnboardingJobLevel.optional()
3280
- });
3281
- var UserProfile = z131.object({
3282
- name: z131.string(),
3283
- avatar: z131.string().optional(),
3284
- nickname: z131.string().optional(),
3285
- onboarding: UserOnboarding.optional()
3286
- });
3287
-
3288
- // src/users/user-test.ts
3289
- import { z as z132 } from "zod";
3290
- var UserTest = z132.object({
3291
- id: z132.string(),
3292
- email: z132.string()
3293
- });
3294
-
3295
- // src/users/user.ts
3296
- import { z as z133 } from "zod";
3297
- var User = z133.object({
3298
- id: z133.string(),
3299
- email: z133.string(),
3300
- emailVerified: z133.boolean(),
3301
- createdAt: z133.coerce.date(),
3302
- trialExpiresAt: z133.coerce.date().optional(),
3303
- profile: UserProfile,
3304
- linkedIntegrations: UserLinkedIntegrations.optional(),
3305
- loggedOutAt: z133.coerce.date().optional(),
3306
- isProtected: z133.boolean()
3307
- });
3308
-
3309
- // src/docs-server/session.ts
3310
- var NpmProxyToken = z134.object({
3311
- access: z134.string(),
3312
- expiresAt: z134.number()
3313
- });
3314
- var SessionData = z134.object({
3315
- returnToUrl: z134.string().optional(),
3316
- npmProxyToken: NpmProxyToken.optional()
3317
- });
3318
- var Session = z134.object({
3319
- id: z134.string(),
3320
- expiresAt: z134.coerce.date(),
3321
- userId: z134.string().nullable(),
3322
- data: SessionData
3323
- });
3324
- var AuthTokens = z134.object({
3325
- access: z134.string(),
3326
- refresh: z134.string()
3327
- });
3328
- var UserSession = z134.object({
3329
- session: Session,
3330
- user: User.nullable()
3350
+ storagePath: nullishToOptional(z136.string()).default("")
3331
3351
  });
3332
3352
 
3333
3353
  // src/feature-flags/feature-flags.ts
3334
- import { z as z135 } from "zod";
3335
- var FlaggedFeature = z135.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3336
- var FeatureFlagMap = z135.record(FlaggedFeature, z135.boolean());
3337
- var FeatureFlag = z135.object({
3338
- id: z135.string(),
3354
+ import { z as z137 } from "zod";
3355
+ var FlaggedFeature = z137.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3356
+ var FeatureFlagMap = z137.record(FlaggedFeature, z137.boolean());
3357
+ var FeatureFlag = z137.object({
3358
+ id: z137.string(),
3339
3359
  feature: FlaggedFeature,
3340
- createdAt: z135.coerce.date(),
3341
- enabled: z135.boolean(),
3342
- designSystemId: z135.string().optional()
3360
+ createdAt: z137.coerce.date(),
3361
+ enabled: z137.boolean(),
3362
+ designSystemId: z137.string().optional()
3343
3363
  });
3344
3364
 
3345
3365
  // src/integrations/external-oauth-request.ts
3346
- import { z as z137 } from "zod";
3366
+ import { z as z139 } from "zod";
3347
3367
 
3348
3368
  // src/integrations/oauth-providers.ts
3349
- import { z as z136 } from "zod";
3369
+ import { z as z138 } from "zod";
3350
3370
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3351
3371
  OAuthProviderNames2["Figma"] = "figma";
3352
3372
  OAuthProviderNames2["Azure"] = "azure";
@@ -3355,49 +3375,49 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3355
3375
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3356
3376
  return OAuthProviderNames2;
3357
3377
  })(OAuthProviderNames || {});
3358
- var OAuthProviderSchema = z136.nativeEnum(OAuthProviderNames);
3378
+ var OAuthProviderSchema = z138.nativeEnum(OAuthProviderNames);
3359
3379
  var OAuthProvider = OAuthProviderSchema.enum;
3360
3380
 
3361
3381
  // src/integrations/external-oauth-request.ts
3362
- var ExternalOAuthRequest = z137.object({
3363
- id: z137.string(),
3382
+ var ExternalOAuthRequest = z139.object({
3383
+ id: z139.string(),
3364
3384
  provider: OAuthProviderSchema,
3365
- userId: z137.string(),
3366
- state: z137.string(),
3367
- createdAt: z137.coerce.date()
3385
+ userId: z139.string(),
3386
+ state: z139.string(),
3387
+ createdAt: z139.coerce.date()
3368
3388
  });
3369
3389
 
3370
3390
  // src/integrations/integration.ts
3371
- import { z as z138 } from "zod";
3372
- var IntegrationDesignSystem = z138.object({
3373
- designSystemId: z138.string(),
3374
- brandId: z138.string(),
3375
- title: z138.string().optional(),
3376
- userId: z138.string().optional(),
3377
- date: z138.coerce.date().optional()
3378
- });
3379
- var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT", "GithubApp"]);
3380
- var IntegrationCredentialsProfile = z138.object({
3381
- id: z138.string(),
3382
- email: z138.string().optional(),
3383
- handle: z138.string().optional(),
3384
- avatarUrl: z138.string().optional()
3385
- });
3386
- var IntegrationCredentials = z138.object({
3387
- id: z138.string(),
3391
+ import { z as z140 } from "zod";
3392
+ var IntegrationDesignSystem = z140.object({
3393
+ designSystemId: z140.string(),
3394
+ brandId: z140.string(),
3395
+ title: z140.string().optional(),
3396
+ userId: z140.string().optional(),
3397
+ date: z140.coerce.date().optional()
3398
+ });
3399
+ var IntegrationCredentialsType = z140.enum(["OAuth2", "PAT", "GithubApp"]);
3400
+ var IntegrationCredentialsProfile = z140.object({
3401
+ id: z140.string(),
3402
+ email: z140.string().optional(),
3403
+ handle: z140.string().optional(),
3404
+ avatarUrl: z140.string().optional()
3405
+ });
3406
+ var IntegrationCredentials = z140.object({
3407
+ id: z140.string(),
3388
3408
  type: IntegrationCredentialsType,
3389
- integrationId: z138.string(),
3390
- accessToken: z138.string(),
3391
- userId: z138.string(),
3392
- createdAt: z138.coerce.date(),
3393
- refreshToken: z138.string().optional(),
3394
- tokenName: z138.string().optional(),
3395
- expiresAt: z138.coerce.date().optional(),
3409
+ integrationId: z140.string(),
3410
+ accessToken: z140.string(),
3411
+ userId: z140.string(),
3412
+ createdAt: z140.coerce.date(),
3413
+ refreshToken: z140.string().optional(),
3414
+ tokenName: z140.string().optional(),
3415
+ expiresAt: z140.coerce.date().optional(),
3396
3416
  profile: IntegrationCredentialsProfile.optional(),
3397
- customUrl: z138.string().optional(),
3417
+ customUrl: z140.string().optional(),
3398
3418
  user: UserMinified.optional()
3399
3419
  });
3400
- var ExtendedIntegrationType = z138.enum([
3420
+ var ExtendedIntegrationType = z140.enum([
3401
3421
  "Figma",
3402
3422
  "Github",
3403
3423
  "Gitlab",
@@ -3407,25 +3427,25 @@ var ExtendedIntegrationType = z138.enum([
3407
3427
  "FigmaVariablesPlugin"
3408
3428
  ]);
3409
3429
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3410
- var Integration = z138.object({
3411
- id: z138.string(),
3412
- workspaceId: z138.string(),
3430
+ var Integration = z140.object({
3431
+ id: z140.string(),
3432
+ workspaceId: z140.string(),
3413
3433
  type: IntegrationType,
3414
- createdAt: z138.coerce.date(),
3415
- integrationCredentials: z138.array(IntegrationCredentials).optional()
3434
+ createdAt: z140.coerce.date(),
3435
+ integrationCredentials: z140.array(IntegrationCredentials).optional()
3416
3436
  });
3417
3437
  var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
3418
- var IntegrationTokenResponse = z138.object({
3419
- access_token: z138.string(),
3420
- refresh_token: z138.string().optional(),
3421
- expires_in: z138.union([z138.number().optional(), z138.string().optional()]),
3422
- token_type: z138.string().optional(),
3423
- token_name: z138.string().optional(),
3424
- token_azure_organization_name: z138.string().optional(),
3438
+ var IntegrationTokenResponse = z140.object({
3439
+ access_token: z140.string(),
3440
+ refresh_token: z140.string().optional(),
3441
+ expires_in: z140.union([z140.number().optional(), z140.string().optional()]),
3442
+ token_type: z140.string().optional(),
3443
+ token_name: z140.string().optional(),
3444
+ token_azure_organization_name: z140.string().optional(),
3425
3445
  // Azure only
3426
- token_bitbucket_username: z138.string().optional(),
3446
+ token_bitbucket_username: z140.string().optional(),
3427
3447
  // Bitbucket only
3428
- custom_url: z138.string().optional().refine((value) => {
3448
+ custom_url: z140.string().optional().refine((value) => {
3429
3449
  if (!value)
3430
3450
  return true;
3431
3451
  if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
@@ -3451,131 +3471,131 @@ var IntegrationTokenResponse = z138.object({
3451
3471
  });
3452
3472
 
3453
3473
  // src/integrations/oauth-token.ts
3454
- import { z as z139 } from "zod";
3455
- var IntegrationTokenSchema = z139.object({
3456
- id: z139.string(),
3474
+ import { z as z141 } from "zod";
3475
+ var IntegrationTokenSchema = z141.object({
3476
+ id: z141.string(),
3457
3477
  provider: OAuthProviderSchema,
3458
- scope: z139.string(),
3459
- userId: z139.string(),
3460
- accessToken: z139.string(),
3461
- refreshToken: z139.string(),
3462
- expiresAt: z139.coerce.date(),
3463
- externalUserId: z139.string().nullish()
3478
+ scope: z141.string(),
3479
+ userId: z141.string(),
3480
+ accessToken: z141.string(),
3481
+ refreshToken: z141.string(),
3482
+ expiresAt: z141.coerce.date(),
3483
+ externalUserId: z141.string().nullish()
3464
3484
  });
3465
3485
 
3466
3486
  // src/integrations/workspace-oauth-requests.ts
3467
- import { z as z140 } from "zod";
3468
- var WorkspaceOAuthRequestSchema = z140.object({
3469
- id: z140.string(),
3470
- workspaceId: z140.string(),
3487
+ import { z as z142 } from "zod";
3488
+ var WorkspaceOAuthRequestSchema = z142.object({
3489
+ id: z142.string(),
3490
+ workspaceId: z142.string(),
3471
3491
  provider: OAuthProviderSchema,
3472
- userId: z140.string(),
3473
- createdAt: z140.coerce.date()
3492
+ userId: z142.string(),
3493
+ createdAt: z142.coerce.date()
3474
3494
  });
3475
3495
 
3476
3496
  // src/liveblocks/rooms/design-system-version-room.ts
3477
- import { z as z141 } from "zod";
3497
+ import { z as z143 } from "zod";
3478
3498
  var DesignSystemVersionRoom = Entity.extend({
3479
- designSystemVersionId: z141.string(),
3480
- liveblocksId: z141.string()
3499
+ designSystemVersionId: z143.string(),
3500
+ liveblocksId: z143.string()
3481
3501
  });
3482
- var DesignSystemVersionRoomInternalSettings = z141.object({
3483
- routingVersion: z141.string()
3502
+ var DesignSystemVersionRoomInternalSettings = z143.object({
3503
+ routingVersion: z143.string()
3484
3504
  });
3485
- var DesignSystemVersionRoomInitialState = z141.object({
3486
- pages: z141.array(DocumentationPageV2),
3487
- groups: z141.array(ElementGroup),
3505
+ var DesignSystemVersionRoomInitialState = z143.object({
3506
+ pages: z143.array(DocumentationPageV2),
3507
+ groups: z143.array(ElementGroup),
3488
3508
  internalSettings: DesignSystemVersionRoomInternalSettings
3489
3509
  });
3490
- var DesignSystemVersionRoomUpdate = z141.object({
3491
- pages: z141.array(DocumentationPageV2),
3492
- groups: z141.array(ElementGroup),
3493
- deletedPageIds: z141.array(z141.string()),
3494
- deletedGroupIds: z141.array(z141.string())
3510
+ var DesignSystemVersionRoomUpdate = z143.object({
3511
+ pages: z143.array(DocumentationPageV2),
3512
+ groups: z143.array(ElementGroup),
3513
+ deletedPageIds: z143.array(z143.string()),
3514
+ deletedGroupIds: z143.array(z143.string())
3495
3515
  });
3496
3516
 
3497
3517
  // src/liveblocks/rooms/documentation-page-room.ts
3498
- import { z as z142 } from "zod";
3518
+ import { z as z144 } from "zod";
3499
3519
  var DocumentationPageRoom = Entity.extend({
3500
- designSystemVersionId: z142.string(),
3501
- documentationPageId: z142.string(),
3502
- liveblocksId: z142.string(),
3503
- isDirty: z142.boolean()
3520
+ designSystemVersionId: z144.string(),
3521
+ documentationPageId: z144.string(),
3522
+ liveblocksId: z144.string(),
3523
+ isDirty: z144.boolean()
3504
3524
  });
3505
- var DocumentationPageRoomState = z142.object({
3506
- pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3525
+ var DocumentationPageRoomState = z144.object({
3526
+ pageItems: z144.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3507
3527
  itemConfiguration: DocumentationItemConfigurationV2
3508
3528
  });
3509
- var DocumentationPageRoomRoomUpdate = z142.object({
3529
+ var DocumentationPageRoomRoomUpdate = z144.object({
3510
3530
  page: DocumentationPageV2,
3511
3531
  pageParent: ElementGroup
3512
3532
  });
3513
3533
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3514
- pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3515
- blockDefinitions: z142.array(PageBlockDefinition)
3534
+ pageItems: z144.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3535
+ blockDefinitions: z144.array(PageBlockDefinition)
3516
3536
  });
3517
3537
 
3518
3538
  // src/liveblocks/rooms/room-type.ts
3519
- import { z as z143 } from "zod";
3539
+ import { z as z145 } from "zod";
3520
3540
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3521
3541
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3522
3542
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3523
3543
  RoomTypeEnum2["Workspace"] = "workspace";
3524
3544
  return RoomTypeEnum2;
3525
3545
  })(RoomTypeEnum || {});
3526
- var RoomTypeSchema = z143.nativeEnum(RoomTypeEnum);
3546
+ var RoomTypeSchema = z145.nativeEnum(RoomTypeEnum);
3527
3547
  var RoomType = RoomTypeSchema.enum;
3528
3548
 
3529
3549
  // src/liveblocks/rooms/workspace-room.ts
3530
- import { z as z144 } from "zod";
3550
+ import { z as z146 } from "zod";
3531
3551
  var WorkspaceRoom = Entity.extend({
3532
- workspaceId: z144.string(),
3533
- liveblocksId: z144.string()
3552
+ workspaceId: z146.string(),
3553
+ liveblocksId: z146.string()
3534
3554
  });
3535
3555
 
3536
3556
  // src/npm/npm-package.ts
3537
- import { z as z145 } from "zod";
3538
- var AnyRecord = z145.record(z145.any());
3557
+ import { z as z147 } from "zod";
3558
+ var AnyRecord = z147.record(z147.any());
3539
3559
  var NpmPackageVersionDist = AnyRecord.and(
3540
- z145.object({
3541
- tarball: z145.string()
3560
+ z147.object({
3561
+ tarball: z147.string()
3542
3562
  })
3543
3563
  );
3544
3564
  var NpmPackageVersion = AnyRecord.and(
3545
- z145.object({
3565
+ z147.object({
3546
3566
  dist: NpmPackageVersionDist
3547
3567
  })
3548
3568
  );
3549
3569
  var NpmPackage = AnyRecord.and(
3550
- z145.object({
3551
- _id: z145.string(),
3552
- name: z145.string(),
3570
+ z147.object({
3571
+ _id: z147.string(),
3572
+ name: z147.string(),
3553
3573
  // e.g. "latest": "1.2.3"
3554
- "dist-tags": z145.record(z145.string(), z145.string()),
3574
+ "dist-tags": z147.record(z147.string(), z147.string()),
3555
3575
  // "1.2.3": {...}
3556
- versions: z145.record(NpmPackageVersion)
3576
+ versions: z147.record(NpmPackageVersion)
3557
3577
  })
3558
3578
  );
3559
3579
 
3560
3580
  // src/npm/npm-proxy-token-payload.ts
3561
- import { z as z146 } from "zod";
3562
- var NpmProxyTokenPayload = z146.object({
3563
- npmProxyRegistryConfigId: z146.string()
3581
+ import { z as z148 } from "zod";
3582
+ var NpmProxyTokenPayload = z148.object({
3583
+ npmProxyRegistryConfigId: z148.string()
3564
3584
  });
3565
3585
 
3566
3586
  // src/tokens/personal-access-token.ts
3567
- import { z as z147 } from "zod";
3568
- var PersonalAccessToken = z147.object({
3569
- id: z147.string(),
3570
- userId: z147.string(),
3571
- workspaceId: z147.string().optional(),
3587
+ import { z as z149 } from "zod";
3588
+ var PersonalAccessToken = z149.object({
3589
+ id: z149.string(),
3590
+ userId: z149.string(),
3591
+ workspaceId: z149.string().optional(),
3572
3592
  workspaceRole: WorkspaceRoleSchema.optional(),
3573
- name: z147.string(),
3574
- hidden: z147.boolean(),
3575
- token: z147.string(),
3576
- scope: z147.string().optional(),
3577
- createdAt: z147.coerce.date(),
3578
- expireAt: z147.coerce.date().optional()
3593
+ name: z149.string(),
3594
+ hidden: z149.boolean(),
3595
+ token: z149.string(),
3596
+ scope: z149.string().optional(),
3597
+ createdAt: z149.coerce.date(),
3598
+ expireAt: z149.coerce.date().optional()
3579
3599
  });
3580
3600
 
3581
3601
  // src/utils/errors.ts
@@ -3710,29 +3730,89 @@ async function sleep(ms) {
3710
3730
  }
3711
3731
 
3712
3732
  // src/utils/content-loader-instruction.ts
3713
- import { z as z148 } from "zod";
3714
- var ContentLoadInstruction = z148.object({
3715
- from: z148.string(),
3716
- to: z148.string(),
3717
- authorizationHeaderKvsId: z148.string().optional(),
3718
- timeout: z148.number().optional()
3719
- });
3720
- var ContentLoaderPayload = z148.object({
3721
- type: z148.literal("Single"),
3733
+ import { z as z150 } from "zod";
3734
+ var ContentLoadInstruction = z150.object({
3735
+ from: z150.string(),
3736
+ to: z150.string(),
3737
+ authorizationHeaderKvsId: z150.string().optional(),
3738
+ timeout: z150.number().optional()
3739
+ });
3740
+ var ContentLoaderPayload = z150.object({
3741
+ type: z150.literal("Single"),
3722
3742
  instruction: ContentLoadInstruction
3723
3743
  }).or(
3724
- z148.object({
3725
- type: z148.literal("Multiple"),
3726
- loadingChunkSize: z148.number().optional(),
3727
- instructions: z148.array(ContentLoadInstruction)
3744
+ z150.object({
3745
+ type: z150.literal("Multiple"),
3746
+ loadingChunkSize: z150.number().optional(),
3747
+ instructions: z150.array(ContentLoadInstruction)
3728
3748
  })
3729
3749
  ).or(
3730
- z148.object({
3731
- type: z148.literal("S3"),
3732
- location: z148.string()
3750
+ z150.object({
3751
+ type: z150.literal("S3"),
3752
+ location: z150.string()
3733
3753
  })
3734
3754
  );
3735
3755
 
3756
+ // src/utils/naming.ts
3757
+ function getCodenameFromText(name) {
3758
+ let codeName = removeDiacritics(name);
3759
+ codeName = codeName.replace(/[^a-zA-Z0-9$_ ]+/g, "");
3760
+ codeName = codeName.replace(/^[0-9 ]+/g, "");
3761
+ codeName = toCamelCase(codeName.toLowerCase());
3762
+ codeName = codeName.replace(/ /g, "");
3763
+ if (codeName) {
3764
+ codeName = codeName.charAt(0).toLowerCase() + codeName.slice(1);
3765
+ }
3766
+ return codeName;
3767
+ }
3768
+ function toCamelCase(str) {
3769
+ return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
3770
+ if (+match === 0)
3771
+ return "";
3772
+ return index === 0 ? match.toLowerCase() : match.toUpperCase();
3773
+ });
3774
+ }
3775
+ function removeDiacritics(str) {
3776
+ const diacriticsMap = [
3777
+ {
3778
+ base: "A",
3779
+ letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g
3780
+ },
3781
+ { base: "AA", letters: /[\uA732]/g },
3782
+ { base: "AE", letters: /[\u00C6\u01FC\u01E2]/g },
3783
+ { base: "AO", letters: /[\uA734]/g },
3784
+ { base: "AU", letters: /[\uA736]/g },
3785
+ { base: "AV", letters: /[\uA738\uA73A]/g },
3786
+ { base: "AY", letters: /[\uA73C]/g },
3787
+ {
3788
+ base: "B",
3789
+ letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g
3790
+ },
3791
+ {
3792
+ base: "C",
3793
+ letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g
3794
+ },
3795
+ /* ... */
3796
+ {
3797
+ base: "Z",
3798
+ letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g
3799
+ },
3800
+ {
3801
+ base: "a",
3802
+ letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g
3803
+ },
3804
+ /* ... */
3805
+ {
3806
+ base: "z",
3807
+ letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g
3808
+ }
3809
+ ];
3810
+ diacriticsMap.forEach((diacritic) => {
3811
+ str = str.replace(diacritic.letters, diacritic.base);
3812
+ });
3813
+ return str;
3814
+ }
3815
+
3736
3816
  // src/utils/slugify.ts
3737
3817
  import slugifyImplementation from "@sindresorhus/slugify";
3738
3818
  function slugify(str, options) {
@@ -4513,24 +4593,28 @@ export {
4513
4593
  ElementViewPropertyDefinitionColumn,
4514
4594
  ElementViewThemeColumn,
4515
4595
  Entity,
4596
+ ExportDestinationsMap,
4597
+ ExportJob,
4598
+ ExportJobContext,
4599
+ ExportJobDestinationType,
4600
+ ExportJobDocsDestinationResult,
4601
+ ExportJobDocumentationContext,
4602
+ ExportJobFindByFilter,
4603
+ ExportJobLogEntry,
4604
+ ExportJobLogEntryType,
4605
+ ExportJobPullRequestDestinationResult,
4606
+ ExportJobResult,
4607
+ ExportJobS3DestinationResult,
4608
+ ExportJobStatus,
4516
4609
  Exporter,
4517
4610
  ExporterDestinationAzure,
4518
4611
  ExporterDestinationBitbucket,
4612
+ ExporterDestinationDocs,
4519
4613
  ExporterDestinationGithub,
4520
4614
  ExporterDestinationGitlab,
4521
4615
  ExporterDestinationS3,
4522
- ExporterDestinationSnDocs,
4523
4616
  ExporterDetails,
4524
- ExporterJob,
4525
- ExporterJobDestination,
4526
- ExporterJobFindByFilter,
4527
- ExporterJobLogEntry,
4528
- ExporterJobLogEntryType,
4529
- ExporterJobResult,
4530
- ExporterJobResultDocsDestination,
4531
- ExporterJobResultPullRequestDestination,
4532
- ExporterJobResultS3Destination,
4533
- ExporterJobStatus,
4617
+ ExporterFunctionPayload,
4534
4618
  ExporterPropertyImageValue,
4535
4619
  ExporterPropertyValue,
4536
4620
  ExporterPropertyValuesCollection,
@@ -4899,6 +4983,7 @@ export {
4899
4983
  figmaFileStructureToMap,
4900
4984
  filterNonNullish,
4901
4985
  forceUnwrapNullish,
4986
+ getCodenameFromText,
4902
4987
  groupBy,
4903
4988
  isDesignTokenImportModelOfType,
4904
4989
  isDesignTokenOfType,