@supernova-studio/model 0.46.7 → 0.46.8

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,31 @@ 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)
1857
1985
  });
1858
1986
 
1859
1987
  // src/dsm/elements/utils.ts
@@ -1923,49 +2051,49 @@ var PageBlockDefinitionsMap = class {
1923
2051
  };
1924
2052
 
1925
2053
  // 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()
2054
+ import { z as z86 } from "zod";
2055
+ var FigmaFileDownloadScope = z86.object({
2056
+ styles: z86.boolean(),
2057
+ components: z86.boolean(),
2058
+ currentVersion: z86.literal("__latest__").nullable(),
2059
+ publishedVersion: z86.string().nullable(),
2060
+ downloadChunkSize: z86.number().optional(),
2061
+ maxFileDepth: z86.number().optional()
1934
2062
  });
1935
- var FigmaFileAccessData = z77.object({
1936
- accessToken: z77.string()
2063
+ var FigmaFileAccessData = z86.object({
2064
+ accessToken: z86.string()
1937
2065
  });
1938
2066
 
1939
2067
  // 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()
2068
+ import { z as z87 } from "zod";
2069
+ var ImportFunctionInput = z87.object({
2070
+ importJobId: z87.string(),
2071
+ importContextId: z87.string(),
2072
+ designSystemId: z87.string().optional()
1945
2073
  });
1946
- var ImportedFigmaSourceData = z78.object({
1947
- sourceId: z78.string(),
2074
+ var ImportedFigmaSourceData = z87.object({
2075
+ sourceId: z87.string(),
1948
2076
  figmaRemote: DataSourceFigmaRemote
1949
2077
  });
1950
- var FigmaImportBaseContext = z78.object({
1951
- designSystemId: z78.string(),
2078
+ var FigmaImportBaseContext = z87.object({
2079
+ designSystemId: z87.string(),
1952
2080
  /**
1953
2081
  * Data required for accessing Figma files. This should contain access data for all file ids
1954
2082
  * mentioned in the `importedSourceDataBySourceId`
1955
2083
  *
1956
2084
  * fileId: file data
1957
2085
  */
1958
- fileAccessByFileId: z78.record(FigmaFileAccessData),
2086
+ fileAccessByFileId: z87.record(FigmaFileAccessData),
1959
2087
  /**
1960
2088
  * Figma source data for which import was requested
1961
2089
  *
1962
2090
  * sourceId: source data
1963
2091
  */
1964
- importedSourceDataBySourceId: z78.record(ImportedFigmaSourceData)
2092
+ importedSourceDataBySourceId: z87.record(ImportedFigmaSourceData)
1965
2093
  });
1966
2094
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
1967
- sourcesWithMissingAccess: z78.array(z78.string()).default([]),
1968
- shadowOpacityOptional: z78.boolean().default(false)
2095
+ sourcesWithMissingAccess: z87.array(z87.string()).default([]),
2096
+ shadowOpacityOptional: z87.boolean().default(false)
1969
2097
  });
1970
2098
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
1971
2099
  importMetadata: DataSourceFigmaImportMetadata
@@ -1977,79 +2105,79 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
1977
2105
  *
1978
2106
  * File id -> file download scope
1979
2107
  */
1980
- fileDownloadScopesByFileId: z78.record(FigmaFileDownloadScope),
2108
+ fileDownloadScopesByFileId: z87.record(FigmaFileDownloadScope),
1981
2109
  /**
1982
2110
  * Sources filtered down to the ones that have changed since last import and therefore need to be
1983
2111
  * imported again.
1984
2112
  *
1985
2113
  * Source id -> import metadata
1986
2114
  */
1987
- changedImportedSourceDataBySourceId: z78.record(ChangedImportedFigmaSourceData)
2115
+ changedImportedSourceDataBySourceId: z87.record(ChangedImportedFigmaSourceData)
1988
2116
  });
1989
2117
 
1990
2118
  // src/dsm/import/support/import-model-collections.ts
1991
- import { z as z86 } from "zod";
2119
+ import { z as z95 } from "zod";
1992
2120
 
1993
2121
  // src/dsm/import/image.ts
1994
- import { z as z79 } from "zod";
1995
- var ImageImportModelType = z79.enum(["Url", "FigmaRender"]);
1996
- var ImageImportModelBase = z79.object({
2122
+ import { z as z88 } from "zod";
2123
+ var ImageImportModelType = z88.enum(["Url", "FigmaRender"]);
2124
+ var ImageImportModelBase = z88.object({
1997
2125
  scope: AssetScope
1998
2126
  });
1999
2127
  var UrlImageImportModel = ImageImportModelBase.extend({
2000
- type: z79.literal(ImageImportModelType.enum.Url),
2001
- url: z79.string(),
2002
- originKey: z79.string(),
2003
- extension: z79.string()
2128
+ type: z88.literal(ImageImportModelType.enum.Url),
2129
+ url: z88.string(),
2130
+ originKey: z88.string(),
2131
+ extension: z88.string()
2004
2132
  });
2005
- var FigmaRenderFormat = z79.enum(["Svg", "Png"]);
2133
+ var FigmaRenderFormat = z88.enum(["Svg", "Png"]);
2006
2134
  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()
2135
+ type: z88.literal(ImageImportModelType.enum.FigmaRender),
2136
+ fileId: z88.string(),
2137
+ fileVersionId: z88.string().optional(),
2138
+ nodeId: z88.string(),
2139
+ originKey: z88.string()
2012
2140
  });
2013
2141
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
2014
- format: z79.literal(FigmaRenderFormat.enum.Png),
2015
- scale: z79.number()
2142
+ format: z88.literal(FigmaRenderFormat.enum.Png),
2143
+ scale: z88.number()
2016
2144
  });
2017
2145
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
2018
- format: z79.literal(FigmaRenderFormat.enum.Svg)
2146
+ format: z88.literal(FigmaRenderFormat.enum.Svg)
2019
2147
  });
2020
- var FigmaRenderImportModel = z79.discriminatedUnion("format", [
2148
+ var FigmaRenderImportModel = z88.discriminatedUnion("format", [
2021
2149
  FigmaPngRenderImportModel,
2022
2150
  FigmaSvgRenderImportModel
2023
2151
  ]);
2024
- var ImageImportModel = z79.union([UrlImageImportModel, FigmaRenderImportModel]);
2152
+ var ImageImportModel = z88.union([UrlImageImportModel, FigmaRenderImportModel]);
2025
2153
 
2026
2154
  // src/dsm/import/component.ts
2027
- import { z as z81 } from "zod";
2155
+ import { z as z90 } from "zod";
2028
2156
 
2029
2157
  // src/dsm/import/base.ts
2030
- import { z as z80 } from "zod";
2031
- var ImportModelBase = z80.object({
2032
- id: z80.string(),
2158
+ import { z as z89 } from "zod";
2159
+ var ImportModelBase = z89.object({
2160
+ id: z89.string(),
2033
2161
  meta: ObjectMeta,
2034
2162
  origin: DesignElementOrigin,
2035
- brandPersistentId: z80.string(),
2036
- sortOrder: z80.number()
2163
+ brandPersistentId: z89.string(),
2164
+ sortOrder: z89.number()
2037
2165
  });
2038
2166
  var ImportModelInputBase = ImportModelBase.omit({
2039
2167
  brandPersistentId: true,
2040
2168
  origin: true,
2041
2169
  sortOrder: true
2042
2170
  }).extend({
2043
- originId: z80.string(),
2044
- originMetadata: z80.record(z80.any())
2171
+ originId: z89.string(),
2172
+ originMetadata: z89.record(z89.any())
2045
2173
  });
2046
2174
 
2047
2175
  // src/dsm/import/component.ts
2048
- var ComponentImportModelPart = z81.object({
2176
+ var ComponentImportModelPart = z90.object({
2049
2177
  thumbnail: ImageImportModel
2050
2178
  });
2051
2179
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
2052
- isAsset: z81.boolean(),
2180
+ isAsset: z90.boolean(),
2053
2181
  svg: FigmaSvgRenderImportModel.optional(),
2054
2182
  origin: ComponentOrigin
2055
2183
  });
@@ -2062,49 +2190,49 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
2062
2190
  });
2063
2191
 
2064
2192
  // src/dsm/import/theme.ts
2065
- import { z as z82 } from "zod";
2193
+ import { z as z91 } from "zod";
2066
2194
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
2067
- z82.object({
2068
- id: z82.string(),
2195
+ z91.object({
2196
+ id: z91.string(),
2069
2197
  meta: ObjectMeta
2070
2198
  })
2071
2199
  );
2072
2200
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
2073
- z82.object({
2201
+ z91.object({
2074
2202
  origin: ThemeOverrideOrigin
2075
2203
  })
2076
2204
  );
2077
2205
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
2078
- z82.object({
2079
- originId: z82.string(),
2206
+ z91.object({
2207
+ originId: z91.string(),
2080
2208
  originMetadata: ThemeOverrideOriginPart
2081
2209
  })
2082
2210
  );
2083
- var ThemeImportModel = z82.object({
2211
+ var ThemeImportModel = z91.object({
2084
2212
  meta: ObjectMeta,
2085
- brandPersistentId: z82.string(),
2213
+ brandPersistentId: z91.string(),
2086
2214
  originSource: ThemeOriginSource,
2087
- overrides: z82.array(ThemeOverrideImportModel),
2088
- sortOrder: z82.number()
2215
+ overrides: z91.array(ThemeOverrideImportModel),
2216
+ sortOrder: z91.number()
2089
2217
  });
2090
- var ThemeImportModelInput = z82.object({
2218
+ var ThemeImportModelInput = z91.object({
2091
2219
  meta: ObjectMeta,
2092
- originObjects: z82.array(ThemeOriginObject),
2093
- overrides: z82.array(ThemeOverrideImportModelInput)
2220
+ originObjects: z91.array(ThemeOriginObject),
2221
+ overrides: z91.array(ThemeOverrideImportModelInput)
2094
2222
  });
2095
- var ThemeUpdateImportModel = z82.object({
2096
- themePersistentId: z82.string(),
2097
- overrides: z82.array(ThemeOverrideImportModel)
2223
+ var ThemeUpdateImportModel = z91.object({
2224
+ themePersistentId: z91.string(),
2225
+ overrides: z91.array(ThemeOverrideImportModel)
2098
2226
  });
2099
- var ThemeUpdateImportModelInput = z82.object({
2100
- themePersistentId: z82.string(),
2101
- overrides: z82.array(ThemeOverrideImportModelInput)
2227
+ var ThemeUpdateImportModelInput = z91.object({
2228
+ themePersistentId: z91.string(),
2229
+ overrides: z91.array(ThemeOverrideImportModelInput)
2102
2230
  });
2103
2231
 
2104
2232
  // src/dsm/import/tokens.ts
2105
- import { z as z83 } from "zod";
2106
- var DesignTokenImportModelPart = z83.object({
2107
- collection: z83.string().optional()
2233
+ import { z as z92 } from "zod";
2234
+ var DesignTokenImportModelPart = z92.object({
2235
+ collection: z92.string().optional()
2108
2236
  });
2109
2237
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
2110
2238
  origin: DesignTokenOrigin
@@ -2122,15 +2250,15 @@ function designTokenImportModelTypeFilter(type) {
2122
2250
  }
2123
2251
 
2124
2252
  // src/dsm/import/figma-frames.ts
2125
- import { z as z84 } from "zod";
2253
+ import { z as z93 } from "zod";
2126
2254
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
2127
2255
  image: FigmaPngRenderImportModel
2128
2256
  });
2129
2257
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
2130
- children: z84.lazy(() => FigmaFileStructureNodeImportModel.array())
2258
+ children: z93.lazy(() => FigmaFileStructureNodeImportModel.array())
2131
2259
  });
2132
- var FigmaFileStructureImportModelPart = z84.object({
2133
- data: z84.object({
2260
+ var FigmaFileStructureImportModelPart = z93.object({
2261
+ data: z93.object({
2134
2262
  rootNode: FigmaFileStructureNodeImportModel,
2135
2263
  assetsInFile: FigmaFileStructureStatistics
2136
2264
  })
@@ -2141,7 +2269,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
2141
2269
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
2142
2270
  FigmaFileStructureImportModelPart.shape
2143
2271
  ).extend({
2144
- fileVersionId: z84.string()
2272
+ fileVersionId: z93.string()
2145
2273
  });
2146
2274
  function figmaFileStructureImportModelToMap(root) {
2147
2275
  const map = /* @__PURE__ */ new Map();
@@ -2155,30 +2283,30 @@ function recursiveFigmaFileStructureToMap2(node, map) {
2155
2283
  }
2156
2284
 
2157
2285
  // 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()
2286
+ import { z as z94 } from "zod";
2287
+ var DataSourceImportModel = z94.object({
2288
+ id: z94.string(),
2289
+ fileName: z94.string().optional(),
2290
+ thumbnailUrl: z94.string().optional()
2163
2291
  });
2164
2292
 
2165
2293
  // src/dsm/import/support/import-model-collections.ts
2166
- var ImportModelInputCollection = z86.object({
2294
+ var ImportModelInputCollection = z95.object({
2167
2295
  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([]),
2296
+ tokens: z95.array(DesignTokenImportModelInput).default([]),
2297
+ components: z95.array(ComponentImportModelInput).default([]),
2298
+ assets: z95.array(AssetImportModelInput).default([]),
2299
+ themeUpdates: z95.array(ThemeUpdateImportModelInput).default([]),
2300
+ themes: z95.array(ThemeImportModelInput).default([]),
2173
2301
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
2174
2302
  });
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)
2303
+ var ImportModelCollection = z95.object({
2304
+ sources: z95.array(DataSourceImportModel),
2305
+ tokens: z95.array(DesignTokenImportModel).default([]),
2306
+ components: z95.array(ComponentImportModel).default([]),
2307
+ themeUpdates: z95.array(ThemeUpdateImportModel).default([]),
2308
+ themes: z95.array(ThemeImportModel).default([]),
2309
+ figmaFileStructures: z95.array(FigmaFileStructureImportModel)
2182
2310
  });
2183
2311
  function addImportModelCollections(lhs, rhs) {
2184
2312
  return {
@@ -2192,8 +2320,8 @@ function addImportModelCollections(lhs, rhs) {
2192
2320
  }
2193
2321
 
2194
2322
  // src/dsm/import/warning.ts
2195
- import { z as z87 } from "zod";
2196
- var ImportWarningType = z87.enum([
2323
+ import { z as z96 } from "zod";
2324
+ var ImportWarningType = z96.enum([
2197
2325
  "NoVersionFound",
2198
2326
  "UnsupportedFill",
2199
2327
  "UnsupportedStroke",
@@ -2207,27 +2335,27 @@ var ImportWarningType = z87.enum([
2207
2335
  "DuplicateImportedStyleId",
2208
2336
  "DuplicateImportedStylePath"
2209
2337
  ]);
2210
- var ImportWarning = z87.object({
2338
+ var ImportWarning = z96.object({
2211
2339
  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()
2340
+ componentId: z96.string().optional(),
2341
+ componentName: z96.string().optional(),
2342
+ styleId: z96.string().optional(),
2343
+ styleName: z96.string().optional(),
2344
+ unsupportedStyleValueType: z96.string().optional()
2217
2345
  });
2218
2346
 
2219
2347
  // src/dsm/data-sources/import-summary.ts
2220
- var FileStructureStats = z88.object({
2348
+ var FileStructureStats = z97.object({
2221
2349
  frames: zeroNumberByDefault2(),
2222
2350
  components: zeroNumberByDefault2(),
2223
2351
  componentSets: zeroNumberByDefault2()
2224
2352
  });
2225
2353
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
2226
2354
  // Backward compatibility
2227
- z88.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2355
+ z97.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2228
2356
  );
2229
- var SourceImportSummaryByTokenType = z88.record(SourceImportSummaryByTokenTypeKey, z88.number());
2230
- var SourceImportTokenSummary = z88.object({
2357
+ var SourceImportSummaryByTokenType = z97.record(SourceImportSummaryByTokenTypeKey, z97.number());
2358
+ var SourceImportTokenSummary = z97.object({
2231
2359
  tokensCreated: zeroNumberByDefault2(),
2232
2360
  tokensUpdated: zeroNumberByDefault2(),
2233
2361
  tokensDeleted: zeroNumberByDefault2(),
@@ -2235,7 +2363,7 @@ var SourceImportTokenSummary = z88.object({
2235
2363
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
2236
2364
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
2237
2365
  });
2238
- var SourceImportComponentSummary = z88.object({
2366
+ var SourceImportComponentSummary = z97.object({
2239
2367
  componentsCreated: zeroNumberByDefault2(),
2240
2368
  componentsUpdated: zeroNumberByDefault2(),
2241
2369
  componentsDeleted: zeroNumberByDefault2(),
@@ -2243,69 +2371,69 @@ var SourceImportComponentSummary = z88.object({
2243
2371
  componentAssetsUpdated: zeroNumberByDefault2(),
2244
2372
  componentAssetsDeleted: zeroNumberByDefault2()
2245
2373
  });
2246
- var SourceImportFrameSummary = z88.object({
2374
+ var SourceImportFrameSummary = z97.object({
2247
2375
  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 ?? []),
2376
+ invalidReferencesCount: nullishToOptional(z97.number().optional())
2377
+ });
2378
+ var SourceImportSummary = z97.object({
2379
+ sourceId: nullishToOptional(z97.string()),
2380
+ brandId: nullishToOptional(z97.string()),
2381
+ versionId: nullishToOptional(z97.string()),
2382
+ error: nullishToOptional(z97.any()),
2383
+ isFailed: z97.boolean(),
2384
+ warnings: z97.array(ImportWarning).nullish().transform((v) => v ?? []),
2257
2385
  ...SourceImportTokenSummary.shape,
2258
2386
  ...SourceImportComponentSummary.shape,
2259
2387
  ...FileStructureStats.shape
2260
2388
  });
2261
2389
  function zeroNumberByDefault2() {
2262
- return z88.number().nullish().transform((v) => v ?? 0);
2390
+ return z97.number().nullish().transform((v) => v ?? 0);
2263
2391
  }
2264
2392
 
2265
2393
  // 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()
2394
+ import { z as z98 } from "zod";
2395
+ var PageBlockDefinitionAppearance = z98.object({
2396
+ isBordered: z98.boolean().optional(),
2397
+ hasBackground: z98.boolean().optional(),
2398
+ isEditorPresentationDifferent: z98.boolean().optional(),
2399
+ showBlockHeaderInEditor: z98.boolean().optional()
2272
2400
  });
2273
2401
 
2274
2402
  // src/dsm/documentation/block-definitions/definition.ts
2275
- import { z as z92 } from "zod";
2403
+ import { z as z101 } from "zod";
2276
2404
 
2277
2405
  // src/dsm/documentation/block-definitions/item.ts
2278
- import { z as z91 } from "zod";
2406
+ import { z as z100 } from "zod";
2279
2407
 
2280
2408
  // 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({
2409
+ import { z as z99 } from "zod";
2410
+ var PageBlockDefinitionLayoutType = z99.enum(["Column", "Row"]);
2411
+ var PageBlockDefinitionLayoutGap = z99.enum(["Small", "Medium", "Large", "None"]);
2412
+ var PageBlockDefinitionLayoutAlign = z99.enum(["Start", "Center", "End"]);
2413
+ var PageBlockDefinitionLayoutResizing = z99.enum(["Fill", "Hug"]);
2414
+ var PageBlockDefinitionLayoutBase = z99.object({
2287
2415
  type: PageBlockDefinitionLayoutType,
2288
2416
  gap: PageBlockDefinitionLayoutGap.optional(),
2289
2417
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
2290
2418
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
2291
2419
  });
2292
2420
  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(),
2421
+ children: z99.lazy(() => z99.array(PageBlockDefinitionLayout.or(z99.string())))
2422
+ });
2423
+ var PageBlockDefinitionVariant = z99.object({
2424
+ id: z99.string(),
2425
+ name: z99.string(),
2426
+ image: z99.string().optional(),
2427
+ description: z99.string().optional(),
2428
+ documentationLink: z99.string().optional(),
2301
2429
  layout: PageBlockDefinitionLayout,
2302
- maxColumns: z90.number().optional(),
2303
- defaultColumns: z90.number().optional(),
2430
+ maxColumns: z99.number().optional(),
2431
+ defaultColumns: z99.number().optional(),
2304
2432
  appearance: PageBlockDefinitionAppearance.optional()
2305
2433
  });
2306
2434
 
2307
2435
  // src/dsm/documentation/block-definitions/item.ts
2308
- var PageBlockDefinitionPropertyType = z91.enum([
2436
+ var PageBlockDefinitionPropertyType = z100.enum([
2309
2437
  "RichText",
2310
2438
  "MultiRichText",
2311
2439
  "Text",
@@ -2332,7 +2460,7 @@ var PageBlockDefinitionPropertyType = z91.enum([
2332
2460
  "Storybook",
2333
2461
  "Color"
2334
2462
  ]);
2335
- var PageBlockDefinitionRichTextPropertyStyle = z91.enum([
2463
+ var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
2336
2464
  "Title1",
2337
2465
  "Title2",
2338
2466
  "Title3",
@@ -2342,8 +2470,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z91.enum([
2342
2470
  "Callout",
2343
2471
  "Default"
2344
2472
  ]);
2345
- var PageBlockDefinitionMultiRichTextPropertyStyle = z91.enum(["OL", "UL", "Default"]);
2346
- var PageBlockDefinitionTextPropertyStyle = z91.enum([
2473
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
2474
+ var PageBlockDefinitionTextPropertyStyle = z100.enum([
2347
2475
  "Title1",
2348
2476
  "Title2",
2349
2477
  "Title3",
@@ -2357,78 +2485,78 @@ var PageBlockDefinitionTextPropertyStyle = z91.enum([
2357
2485
  "SmallSemibold",
2358
2486
  "Custom"
2359
2487
  ]);
2360
- var PageBlockDefinitionTextPropertyColor = z91.enum(["Neutral", "NeutralFaded"]);
2361
- var PageBlockDefinitionBooleanPropertyStyle = z91.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2362
- var PageBlockDefinitionSingleSelectPropertyStyle = z91.enum([
2488
+ var PageBlockDefinitionTextPropertyColor = z100.enum(["Neutral", "NeutralFaded"]);
2489
+ var PageBlockDefinitionBooleanPropertyStyle = z100.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2490
+ var PageBlockDefinitionSingleSelectPropertyStyle = z100.enum([
2363
2491
  "SegmentedControl",
2364
2492
  "ToggleButton",
2365
2493
  "Select",
2366
2494
  "Checkbox"
2367
2495
  ]);
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({
2496
+ var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
2497
+ var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2498
+ var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2499
+ var PageBlockDefinitionSelectChoice = z100.object({
2500
+ value: z100.string(),
2501
+ name: z100.string(),
2502
+ icon: z100.string().optional()
2503
+ });
2504
+ var PageBlockDefinitionUntypedPropertyOptions = z100.record(z100.any());
2505
+ var PageBlockDefinitionRichTextOptions = z100.object({
2378
2506
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
2379
2507
  });
2380
- var PageBlockDefinitionMutiRichTextOptions = z91.object({
2508
+ var PageBlockDefinitionMutiRichTextOptions = z100.object({
2381
2509
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
2382
2510
  });
2383
- var PageBlockDefinitionTextOptions = z91.object({
2384
- placeholder: z91.string().optional(),
2385
- defaultValue: z91.string().optional(),
2511
+ var PageBlockDefinitionTextOptions = z100.object({
2512
+ placeholder: z100.string().optional(),
2513
+ defaultValue: z100.string().optional(),
2386
2514
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2387
2515
  color: PageBlockDefinitionTextPropertyColor.optional()
2388
2516
  });
2389
- var PageBlockDefinitionSelectOptions = z91.object({
2517
+ var PageBlockDefinitionSelectOptions = z100.object({
2390
2518
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
2391
- defaultChoice: z91.string(),
2392
- choices: z91.array(PageBlockDefinitionSelectChoice)
2519
+ defaultChoice: z100.string(),
2520
+ choices: z100.array(PageBlockDefinitionSelectChoice)
2393
2521
  });
2394
- var PageBlockDefinitionImageOptions = z91.object({
2522
+ var PageBlockDefinitionImageOptions = z100.object({
2395
2523
  width: PageBlockDefinitionImageWidth.optional(),
2396
2524
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
2397
- allowCaption: z91.boolean().optional(),
2398
- recommendation: z91.string().optional()
2525
+ allowCaption: z100.boolean().optional(),
2526
+ recommendation: z100.string().optional()
2399
2527
  });
2400
- var PageBlockDefinitionBooleanOptions = z91.object({
2401
- defaultvalue: z91.boolean().optional(),
2528
+ var PageBlockDefinitionBooleanOptions = z100.object({
2529
+ defaultvalue: z100.boolean().optional(),
2402
2530
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
2403
2531
  });
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()
2532
+ var PageBlockDefinitionNumberOptions = z100.object({
2533
+ defaultValue: z100.number(),
2534
+ min: z100.number().optional(),
2535
+ max: z100.number().optional(),
2536
+ step: z100.number().optional(),
2537
+ placeholder: z100.string().optional()
2410
2538
  });
2411
- var PageBlockDefinitionComponentOptions = z91.object({
2412
- renderLayoutAs: z91.enum(["List", "Table"]).optional(),
2413
- allowPropertySelection: z91.boolean().optional()
2539
+ var PageBlockDefinitionComponentOptions = z100.object({
2540
+ renderLayoutAs: z100.enum(["List", "Table"]).optional(),
2541
+ allowPropertySelection: z100.boolean().optional()
2414
2542
  });
2415
- var PageBlockDefinitionProperty = z91.object({
2416
- id: z91.string(),
2417
- name: z91.string(),
2543
+ var PageBlockDefinitionProperty = z100.object({
2544
+ id: z100.string(),
2545
+ name: z100.string(),
2418
2546
  type: PageBlockDefinitionPropertyType,
2419
- description: z91.string().optional(),
2547
+ description: z100.string().optional(),
2420
2548
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
2421
- variantOptions: z91.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2549
+ variantOptions: z100.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2422
2550
  });
2423
- var PageBlockDefinitionItem = z91.object({
2424
- properties: z91.array(PageBlockDefinitionProperty),
2551
+ var PageBlockDefinitionItem = z100.object({
2552
+ properties: z100.array(PageBlockDefinitionProperty),
2425
2553
  appearance: PageBlockDefinitionAppearance.optional(),
2426
- variants: z91.array(PageBlockDefinitionVariant),
2427
- defaultVariantKey: z91.string()
2554
+ variants: z100.array(PageBlockDefinitionVariant),
2555
+ defaultVariantKey: z100.string()
2428
2556
  });
2429
2557
 
2430
2558
  // src/dsm/documentation/block-definitions/definition.ts
2431
- var PageBlockCategory = z92.enum([
2559
+ var PageBlockCategory = z101.enum([
2432
2560
  "Text",
2433
2561
  "Layout",
2434
2562
  "Media",
@@ -2442,296 +2570,296 @@ var PageBlockCategory = z92.enum([
2442
2570
  "Data",
2443
2571
  "Other"
2444
2572
  ]);
2445
- var PageBlockBehaviorDataType = z92.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2446
- var PageBlockBehaviorSelectionType = z92.enum(["Entity", "Group", "EntityAndGroup"]);
2447
- var PageBlockDefinitionBehavior = z92.object({
2573
+ var PageBlockBehaviorDataType = z101.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2574
+ var PageBlockBehaviorSelectionType = z101.enum(["Entity", "Group", "EntityAndGroup"]);
2575
+ var PageBlockDefinitionBehavior = z101.object({
2448
2576
  dataType: PageBlockBehaviorDataType,
2449
- items: z92.object({
2450
- numberOfItems: z92.number(),
2451
- allowLinks: z92.boolean()
2577
+ items: z101.object({
2578
+ numberOfItems: z101.number(),
2579
+ allowLinks: z101.boolean()
2452
2580
  }).optional(),
2453
- entities: z92.object({
2581
+ entities: z101.object({
2454
2582
  selectionType: PageBlockBehaviorSelectionType,
2455
- maxSelected: z92.number()
2583
+ maxSelected: z101.number()
2456
2584
  }).optional()
2457
2585
  });
2458
- var PageBlockDefinitionOnboarding = z92.object({
2459
- helpText: z92.string(),
2460
- documentationLink: z92.string().optional()
2586
+ var PageBlockDefinitionOnboarding = z101.object({
2587
+ helpText: z101.string(),
2588
+ documentationLink: z101.string().optional()
2461
2589
  });
2462
- var PageBlockDefinition = z92.object({
2463
- id: z92.string(),
2464
- name: z92.string(),
2465
- description: z92.string(),
2590
+ var PageBlockDefinition = z101.object({
2591
+ id: z101.string(),
2592
+ name: z101.string(),
2593
+ description: z101.string(),
2466
2594
  category: PageBlockCategory,
2467
- icon: z92.string().optional(),
2468
- documentationLink: z92.string().optional(),
2469
- searchKeywords: z92.array(z92.string()).optional(),
2595
+ icon: z101.string().optional(),
2596
+ documentationLink: z101.string().optional(),
2597
+ searchKeywords: z101.array(z101.string()).optional(),
2470
2598
  item: PageBlockDefinitionItem,
2471
2599
  behavior: PageBlockDefinitionBehavior,
2472
- editorOptions: z92.object({
2600
+ editorOptions: z101.object({
2473
2601
  onboarding: PageBlockDefinitionOnboarding.optional()
2474
2602
  }),
2475
2603
  appearance: PageBlockDefinitionAppearance.optional()
2476
2604
  });
2477
2605
 
2478
2606
  // 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()
2607
+ import { z as z102 } from "zod";
2608
+ var DocumentationPageGroup = z102.object({
2609
+ type: z102.literal("ElementGroup"),
2610
+ childType: z102.literal("DocumentationPage"),
2611
+ id: z102.string(),
2612
+ persistentId: z102.string(),
2613
+ shortPersistentId: z102.string(),
2614
+ designSystemVersionId: z102.string(),
2615
+ parentPersistentId: z102.string().nullish(),
2616
+ sortOrder: z102.number(),
2617
+ title: z102.string(),
2618
+ slug: z102.string(),
2619
+ userSlug: z102.string().nullish(),
2620
+ createdAt: z102.coerce.date(),
2621
+ updatedAt: z102.coerce.date()
2494
2622
  });
2495
2623
 
2496
2624
  // 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(),
2625
+ import { z as z103 } from "zod";
2626
+ var DocumentationLinkPreview = z103.object({
2627
+ title: z103.string().optional(),
2628
+ description: z103.string().optional(),
2501
2629
  thumbnail: PageBlockImageReference.optional()
2502
2630
  });
2503
2631
 
2504
2632
  // 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()
2633
+ import { z as z104 } from "zod";
2634
+ var DocumentationPageAnchor = z104.object({
2635
+ blockId: z104.string(),
2636
+ level: z104.number(),
2637
+ text: z104.string()
2510
2638
  });
2511
2639
 
2512
2640
  // 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()
2641
+ import { z as z105 } from "zod";
2642
+ var DocumentationPageContentBackup = z105.object({
2643
+ id: z105.string(),
2644
+ designSystemVersionId: z105.string(),
2645
+ createdAt: z105.coerce.date(),
2646
+ updatedAt: z105.coerce.date(),
2647
+ documentationPageId: z105.string(),
2648
+ documentationPageName: z105.string(),
2649
+ storagePath: z105.string()
2522
2650
  });
2523
2651
 
2524
2652
  // src/dsm/documentation/page-content.ts
2525
- import { z as z97 } from "zod";
2526
- var DocumentationPageContentItem = z97.discriminatedUnion("type", [
2653
+ import { z as z106 } from "zod";
2654
+ var DocumentationPageContentItem = z106.discriminatedUnion("type", [
2527
2655
  PageBlockEditorModelV2,
2528
2656
  PageSectionEditorModelV2
2529
2657
  ]);
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(),
2658
+ var DocumentationPageContentData = z106.object({
2659
+ items: z106.array(DocumentationPageContentItem)
2660
+ });
2661
+ var DocumentationPageContent = z106.object({
2662
+ id: z106.string(),
2663
+ designSystemVersionId: z106.string(),
2664
+ createdAt: z106.coerce.date(),
2665
+ updatedAt: z106.coerce.date(),
2666
+ documentationPageId: z106.string(),
2539
2667
  data: DocumentationPageContentData
2540
2668
  });
2541
2669
 
2542
2670
  // 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()
2671
+ import { z as z107 } from "zod";
2672
+ var DocumentationPage = z107.object({
2673
+ type: z107.literal("DocumentationPage"),
2674
+ id: z107.string(),
2675
+ persistentId: z107.string(),
2676
+ shortPersistentId: z107.string(),
2677
+ designSystemVersionId: z107.string(),
2678
+ parentPersistentId: z107.string().nullish(),
2679
+ sortOrder: z107.number(),
2680
+ title: z107.string(),
2681
+ slug: z107.string(),
2682
+ userSlug: z107.string().nullish(),
2683
+ createdAt: z107.coerce.date(),
2684
+ updatedAt: z107.coerce.date()
2557
2685
  });
2558
2686
 
2559
2687
  // 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")
2688
+ import { z as z108 } from "zod";
2689
+ var ElementViewBaseColumnType = z108.enum(["Name", "Description", "Value", "UpdatedAt"]);
2690
+ var ElementViewColumnType = z108.union([
2691
+ z108.literal("BaseProperty"),
2692
+ z108.literal("PropertyDefinition"),
2693
+ z108.literal("Theme")
2566
2694
  ]);
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()
2695
+ var ElementViewColumnSharedAttributes = z108.object({
2696
+ id: z108.string(),
2697
+ persistentId: z108.string(),
2698
+ elementDataViewId: z108.string(),
2699
+ sortPosition: z108.number(),
2700
+ width: z108.number()
2573
2701
  });
2574
2702
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2575
- type: z99.literal("BaseProperty"),
2703
+ type: z108.literal("BaseProperty"),
2576
2704
  basePropertyType: ElementViewBaseColumnType
2577
2705
  });
2578
2706
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2579
- type: z99.literal("PropertyDefinition"),
2580
- propertyDefinitionId: z99.string()
2707
+ type: z108.literal("PropertyDefinition"),
2708
+ propertyDefinitionId: z108.string()
2581
2709
  });
2582
2710
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2583
- type: z99.literal("Theme"),
2584
- themeId: z99.string()
2711
+ type: z108.literal("Theme"),
2712
+ themeId: z108.string()
2585
2713
  });
2586
- var ElementViewColumn = z99.discriminatedUnion("type", [
2714
+ var ElementViewColumn = z108.discriminatedUnion("type", [
2587
2715
  ElementViewBasePropertyColumn,
2588
2716
  ElementViewPropertyDefinitionColumn,
2589
2717
  ElementViewThemeColumn
2590
2718
  ]);
2591
2719
 
2592
2720
  // 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(),
2721
+ import { z as z109 } from "zod";
2722
+ var ElementView = z109.object({
2723
+ id: z109.string(),
2724
+ persistentId: z109.string(),
2725
+ designSystemVersionId: z109.string(),
2726
+ name: z109.string(),
2727
+ description: z109.string(),
2600
2728
  targetElementType: ElementPropertyTargetType,
2601
- isDefault: z100.boolean()
2729
+ isDefault: z109.boolean()
2602
2730
  });
2603
2731
 
2604
2732
  // 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()
2733
+ import { z as z110 } from "zod";
2734
+ var Brand = z110.object({
2735
+ id: z110.string(),
2736
+ designSystemVersionId: z110.string(),
2737
+ persistentId: z110.string(),
2738
+ name: z110.string(),
2739
+ description: z110.string()
2612
2740
  });
2613
2741
 
2614
2742
  // src/dsm/design-system.ts
2615
- import { z as z111 } from "zod";
2743
+ import { z as z120 } from "zod";
2616
2744
 
2617
2745
  // 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", [
2746
+ import { z as z111 } from "zod";
2747
+ var NpmRegistryAuthType = z111.enum(["Basic", "Bearer", "None", "Custom"]);
2748
+ var NpmRegistryType = z111.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2749
+ var NpmRegistryBasicAuthConfig = z111.object({
2750
+ authType: z111.literal(NpmRegistryAuthType.Enum.Basic),
2751
+ username: z111.string(),
2752
+ password: z111.string()
2753
+ });
2754
+ var NpmRegistryBearerAuthConfig = z111.object({
2755
+ authType: z111.literal(NpmRegistryAuthType.Enum.Bearer),
2756
+ accessToken: z111.string()
2757
+ });
2758
+ var NpmRegistryNoAuthConfig = z111.object({
2759
+ authType: z111.literal(NpmRegistryAuthType.Enum.None)
2760
+ });
2761
+ var NpmRegistrCustomAuthConfig = z111.object({
2762
+ authType: z111.literal(NpmRegistryAuthType.Enum.Custom),
2763
+ authHeaderName: z111.string(),
2764
+ authHeaderValue: z111.string()
2765
+ });
2766
+ var NpmRegistryAuthConfig = z111.discriminatedUnion("authType", [
2639
2767
  NpmRegistryBasicAuthConfig,
2640
2768
  NpmRegistryBearerAuthConfig,
2641
2769
  NpmRegistryNoAuthConfig,
2642
2770
  NpmRegistrCustomAuthConfig
2643
2771
  ]);
2644
- var NpmRegistryConfigBase = z102.object({
2772
+ var NpmRegistryConfigBase = z111.object({
2645
2773
  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()
2774
+ enabledScopes: z111.array(z111.string()),
2775
+ customRegistryUrl: z111.string().optional(),
2776
+ bypassProxy: z111.boolean().default(false),
2777
+ npmProxyRegistryConfigId: z111.string().optional(),
2778
+ npmProxyVersion: z111.number().optional()
2651
2779
  });
2652
2780
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2653
2781
 
2654
2782
  // 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()
2783
+ import { z as z112 } from "zod";
2784
+ var SsoProvider = z112.object({
2785
+ providerId: z112.string(),
2786
+ defaultAutoInviteValue: z112.boolean(),
2787
+ autoInviteDomains: z112.record(z112.string(), z112.boolean()),
2788
+ skipDocsSupernovaLogin: z112.boolean(),
2789
+ areInvitesDisabled: z112.boolean(),
2790
+ isTestMode: z112.boolean(),
2791
+ emailDomains: z112.array(z112.string()),
2792
+ metadataXml: z112.string().nullish()
2665
2793
  });
2666
2794
 
2667
2795
  // src/workspace/user-invite.ts
2668
- import { z as z105 } from "zod";
2796
+ import { z as z114 } from "zod";
2669
2797
 
2670
2798
  // src/workspace/workspace-role.ts
2671
- import { z as z104 } from "zod";
2672
- var WorkspaceRoleSchema = z104.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2799
+ import { z as z113 } from "zod";
2800
+ var WorkspaceRoleSchema = z113.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2673
2801
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2674
2802
 
2675
2803
  // src/workspace/user-invite.ts
2676
2804
  var MAX_MEMBERS_COUNT = 100;
2677
- var UserInvite = z105.object({
2678
- email: z105.string().email().trim().transform((value) => value.toLowerCase()),
2805
+ var UserInvite = z114.object({
2806
+ email: z114.string().email().trim().transform((value) => value.toLowerCase()),
2679
2807
  role: WorkspaceRoleSchema
2680
2808
  });
2681
- var UserInvites = z105.array(UserInvite).max(MAX_MEMBERS_COUNT);
2809
+ var UserInvites = z114.array(UserInvite).max(MAX_MEMBERS_COUNT);
2682
2810
 
2683
2811
  // src/workspace/workspace-context.ts
2684
- import { z as z107 } from "zod";
2812
+ import { z as z116 } from "zod";
2685
2813
 
2686
2814
  // src/workspace/workspace.ts
2687
- import { z as z106 } from "zod";
2815
+ import { z as z115 } from "zod";
2688
2816
  import IPCIDR from "ip-cidr";
2689
2817
  var isValidCIDR = (value) => {
2690
2818
  return IPCIDR.isValidAddress(value);
2691
2819
  };
2692
- var WorkspaceIpWhitelistEntry = z106.object({
2693
- isEnabled: z106.boolean(),
2694
- name: z106.string(),
2695
- range: z106.string().refine(isValidCIDR, {
2820
+ var WorkspaceIpWhitelistEntry = z115.object({
2821
+ isEnabled: z115.boolean(),
2822
+ name: z115.string(),
2823
+ range: z115.string().refine(isValidCIDR, {
2696
2824
  message: "Invalid IP CIDR"
2697
2825
  })
2698
2826
  });
2699
- var WorkspaceIpSettings = z106.object({
2700
- isEnabledForCloud: z106.boolean(),
2701
- isEnabledForDocs: z106.boolean(),
2702
- entries: z106.array(WorkspaceIpWhitelistEntry)
2827
+ var WorkspaceIpSettings = z115.object({
2828
+ isEnabledForCloud: z115.boolean(),
2829
+ isEnabledForDocs: z115.boolean(),
2830
+ entries: z115.array(WorkspaceIpWhitelistEntry)
2703
2831
  });
2704
- var WorkspaceProfile = z106.object({
2705
- name: z106.string(),
2706
- handle: z106.string(),
2707
- color: z106.string(),
2708
- avatar: nullishToOptional(z106.string()),
2832
+ var WorkspaceProfile = z115.object({
2833
+ name: z115.string(),
2834
+ handle: z115.string(),
2835
+ color: z115.string(),
2836
+ avatar: nullishToOptional(z115.string()),
2709
2837
  billingDetails: nullishToOptional(BillingDetails)
2710
2838
  });
2711
- var Workspace = z106.object({
2712
- id: z106.string(),
2839
+ var Workspace = z115.object({
2840
+ id: z115.string(),
2713
2841
  profile: WorkspaceProfile,
2714
2842
  subscription: Subscription,
2715
2843
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2716
2844
  sso: nullishToOptional(SsoProvider),
2717
2845
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2718
- designSystems: z106.array(DesignSystem).nullish()
2846
+ designSystems: z115.array(DesignSystem).nullish()
2719
2847
  });
2720
- var WorkspaceWithDesignSystems = z106.object({
2848
+ var WorkspaceWithDesignSystems = z115.object({
2721
2849
  workspace: Workspace,
2722
- designSystems: z106.array(DesignSystem)
2850
+ designSystems: z115.array(DesignSystem)
2723
2851
  });
2724
2852
 
2725
2853
  // src/workspace/workspace-context.ts
2726
- var WorkspaceContext = z107.object({
2727
- workspaceId: z107.string(),
2854
+ var WorkspaceContext = z116.object({
2855
+ workspaceId: z116.string(),
2728
2856
  product: ProductCodeSchema,
2729
2857
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2730
- publicDesignSystem: z107.boolean().optional()
2858
+ publicDesignSystem: z116.boolean().optional()
2731
2859
  });
2732
2860
 
2733
2861
  // src/workspace/workspace-create.ts
2734
- import { z as z108 } from "zod";
2862
+ import { z as z117 } from "zod";
2735
2863
 
2736
2864
  // src/utils/validation.ts
2737
2865
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2741,18 +2869,18 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2741
2869
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2742
2870
  var HANDLE_MIN_LENGTH = 2;
2743
2871
  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(),
2872
+ var CreateWorkspaceInput = z117.object({
2873
+ name: z117.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2746
2874
  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(),
2875
+ priceId: z117.string(),
2876
+ billingEmail: z117.string().email().optional(),
2877
+ handle: z117.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2750
2878
  invites: UserInvites.optional(),
2751
- promoCode: z108.string().optional(),
2879
+ promoCode: z117.string().optional(),
2752
2880
  status: InternalStatusSchema.optional(),
2753
2881
  planInterval: BillingIntervalSchema.optional(),
2754
- seats: z108.number().optional(),
2755
- seatLimit: z108.number().optional(),
2882
+ seats: z117.number().optional(),
2883
+ seatLimit: z117.number().optional(),
2756
2884
  card: CardSchema.optional(),
2757
2885
  sso: SsoProvider.optional(),
2758
2886
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2760,299 +2888,326 @@ var CreateWorkspaceInput = z108.object({
2760
2888
  });
2761
2889
 
2762
2890
  // 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()
2891
+ import { z as z118 } from "zod";
2892
+ var WorkspaceInvitation = z118.object({
2893
+ id: z118.string(),
2894
+ email: z118.string().email(),
2895
+ createdAt: z118.coerce.date(),
2896
+ resentAt: z118.coerce.date().nullish(),
2897
+ role: z118.nativeEnum(WorkspaceRole),
2898
+ workspaceId: z118.string(),
2899
+ invitedBy: z118.string()
2772
2900
  });
2773
2901
 
2774
2902
  // 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)
2903
+ import { z as z119 } from "zod";
2904
+ var WorkspaceMembership = z119.object({
2905
+ id: z119.string(),
2906
+ userId: z119.string(),
2907
+ workspaceId: z119.string(),
2908
+ workspaceRole: z119.nativeEnum(WorkspaceRole)
2909
+ });
2910
+ var UpdateMembershipRolesInput = z119.object({
2911
+ members: z119.array(
2912
+ z119.object({
2913
+ userId: z119.string(),
2914
+ role: z119.nativeEnum(WorkspaceRole)
2787
2915
  })
2788
2916
  )
2789
2917
  });
2790
2918
 
2791
2919
  // 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()),
2920
+ var DesignSystemSwitcher = z120.object({
2921
+ isEnabled: z120.boolean(),
2922
+ designSystemIds: z120.array(z120.string())
2923
+ });
2924
+ var DesignSystem = z120.object({
2925
+ id: z120.string(),
2926
+ workspaceId: z120.string(),
2927
+ name: z120.string(),
2928
+ description: z120.string(),
2929
+ docExporterId: nullishToOptional(z120.string()),
2930
+ docSlug: z120.string(),
2931
+ docUserSlug: nullishToOptional(z120.string()),
2932
+ docSlugDeprecated: z120.string(),
2933
+ isPublic: z120.boolean(),
2934
+ isMultibrand: z120.boolean(),
2935
+ docViewUrl: nullishToOptional(z120.string()),
2936
+ basePrefixes: z120.array(z120.string()),
2809
2937
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
2810
- createdAt: z111.coerce.date(),
2811
- updatedAt: z111.coerce.date()
2938
+ createdAt: z120.coerce.date(),
2939
+ updatedAt: z120.coerce.date()
2812
2940
  });
2813
- var DesignSystemWithWorkspace = z111.object({
2941
+ var DesignSystemWithWorkspace = z120.object({
2814
2942
  designSystem: DesignSystem,
2815
2943
  workspace: Workspace
2816
2944
  });
2817
2945
 
2818
2946
  // src/dsm/desing-system-create.ts
2819
- import { z as z112 } from "zod";
2947
+ import { z as z121 } from "zod";
2820
2948
  var DS_NAME_MIN_LENGTH = 2;
2821
2949
  var DS_NAME_MAX_LENGTH = 64;
2822
2950
  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()
2951
+ var DesignSystemCreateInputMetadata = z121.object({
2952
+ name: z121.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2953
+ description: z121.string().max(DS_DESC_MAX_LENGTH).trim()
2826
2954
  });
2827
- var DesignSystemCreateInput = z112.object({
2955
+ var DesignSystemCreateInput = z121.object({
2828
2956
  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()
2957
+ workspaceId: z121.string(),
2958
+ isPublic: z121.boolean().optional(),
2959
+ basePrefixes: z121.array(z121.string()).optional(),
2960
+ docUserSlug: z121.string().nullish().optional(),
2961
+ source: z121.array(z121.string()).optional()
2834
2962
  });
2835
2963
 
2836
2964
  // src/dsm/desing-system-update.ts
2837
- import { z as z113 } from "zod";
2965
+ import { z as z122 } from "zod";
2838
2966
  var DS_NAME_MIN_LENGTH2 = 2;
2839
2967
  var DS_NAME_MAX_LENGTH2 = 64;
2840
2968
  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()
2969
+ var DesignSystemUpdateInputMetadata = z122.object({
2970
+ name: z122.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2971
+ description: z122.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2844
2972
  });
2845
- var DesignSystemUpdateInput = z113.object({
2973
+ var DesignSystemUpdateInput = z122.object({
2846
2974
  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()
2975
+ workspaceId: z122.string().optional(),
2976
+ isPublic: z122.boolean().optional(),
2977
+ basePrefixes: z122.array(z122.string()).optional(),
2978
+ docUserSlug: z122.string().nullish().optional(),
2979
+ source: z122.array(z122.string()).optional(),
2980
+ name: z122.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2981
+ description: z122.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2982
+ docExporterId: z122.string().optional()
2855
2983
  });
2856
2984
 
2857
2985
  // src/dsm/exporter-property-values-collection.ts
2858
- import { z as z114 } from "zod";
2859
- var ExporterPropertyImageValue = z114.object({
2986
+ import { z as z123 } from "zod";
2987
+ var ExporterPropertyImageValue = z123.object({
2860
2988
  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(),
2989
+ assetId: z123.string().optional(),
2990
+ assetUrl: z123.string().optional()
2991
+ });
2992
+ var ExporterPropertyValue = z123.object({
2993
+ key: z123.string(),
2994
+ value: z123.union([
2995
+ z123.number(),
2996
+ z123.string(),
2997
+ z123.boolean(),
2870
2998
  ExporterPropertyImageValue,
2871
2999
  ColorTokenData,
2872
3000
  TypographyTokenData
2873
3001
  ])
2874
3002
  });
2875
- var ExporterPropertyValuesCollection = z114.object({
2876
- id: z114.string(),
2877
- designSystemId: z114.string(),
2878
- exporterId: z114.string(),
2879
- values: z114.array(ExporterPropertyValue)
3003
+ var ExporterPropertyValuesCollection = z123.object({
3004
+ id: z123.string(),
3005
+ designSystemId: z123.string(),
3006
+ exporterId: z123.string(),
3007
+ values: z123.array(ExporterPropertyValue)
2880
3008
  });
2881
3009
 
2882
3010
  // src/dsm/published-doc-page.ts
2883
- import { z as z115 } from "zod";
3011
+ import { z as z124 } from "zod";
2884
3012
  var SHORT_PERSISTENT_ID_LENGTH = 8;
2885
3013
  function tryParseShortPersistentId(url = "/") {
2886
3014
  const lastUrlPart = url.split("/").pop() || "";
2887
3015
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
2888
3016
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
2889
3017
  }
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()
3018
+ var PublishedDocPage = z124.object({
3019
+ id: z124.string(),
3020
+ publishedDocId: z124.string(),
3021
+ pageShortPersistentId: z124.string(),
3022
+ pathV1: z124.string(),
3023
+ pathV2: z124.string(),
3024
+ storagePath: z124.string(),
3025
+ locale: z124.string().optional(),
3026
+ isPrivate: z124.boolean(),
3027
+ isHidden: z124.boolean(),
3028
+ createdAt: z124.coerce.date(),
3029
+ updatedAt: z124.coerce.date()
2902
3030
  });
2903
3031
 
2904
3032
  // src/dsm/published-doc.ts
2905
- import { z as z116 } from "zod";
3033
+ import { z as z125 } from "zod";
2906
3034
  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(),
3035
+ var PublishedDocEnvironment = z125.enum(publishedDocEnvironments);
3036
+ var PublishedDocsChecksums = z125.record(z125.string());
3037
+ var PublishedDocRoutingVersion = z125.enum(["1", "2"]);
3038
+ var PublishedDoc = z125.object({
3039
+ id: z125.string(),
3040
+ designSystemVersionId: z125.string(),
3041
+ createdAt: z125.coerce.date(),
3042
+ updatedAt: z125.coerce.date(),
3043
+ lastPublishedAt: z125.coerce.date(),
3044
+ isDefault: z125.boolean(),
3045
+ isPublic: z125.boolean(),
2918
3046
  environment: PublishedDocEnvironment,
2919
3047
  checksums: PublishedDocsChecksums,
2920
- storagePath: z116.string(),
2921
- wasMigrated: z116.boolean(),
3048
+ storagePath: z125.string(),
3049
+ wasMigrated: z125.boolean(),
2922
3050
  routingVersion: PublishedDocRoutingVersion,
2923
- usesLocalizations: z116.boolean(),
2924
- wasPublishedWithLocalizations: z116.boolean()
3051
+ usesLocalizations: z125.boolean(),
3052
+ wasPublishedWithLocalizations: z125.boolean()
2925
3053
  });
2926
3054
 
2927
3055
  // 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()),
3056
+ import { z as z126 } from "zod";
3057
+ var DesignSystemVersion = z126.object({
3058
+ id: z126.string(),
3059
+ version: z126.string(),
3060
+ createdAt: z126.date(),
3061
+ designSystemId: z126.string(),
3062
+ name: z126.string(),
3063
+ comment: z126.string(),
3064
+ isReadonly: z126.boolean(),
3065
+ changeLog: z126.string(),
3066
+ parentId: z126.string().optional()
3067
+ });
3068
+ var VersionCreationJobStatus = z126.enum(["Success", "InProgress", "Error"]);
3069
+ var VersionCreationJob = z126.object({
3070
+ id: z126.string(),
3071
+ version: z126.string(),
3072
+ designSystemId: z126.string(),
3073
+ designSystemVersionId: nullishToOptional(z126.string()),
2946
3074
  status: VersionCreationJobStatus,
2947
- errorMessage: nullishToOptional(z117.string())
3075
+ errorMessage: nullishToOptional(z126.string())
2948
3076
  });
2949
3077
 
2950
- // src/codegen/export-destinations.ts
2951
- import { z as z118 } from "zod";
2952
- var ExporterDestinationSnDocs = z118.object({
3078
+ // src/export/export-runner/export-context.ts
3079
+ import { z as z127 } from "zod";
3080
+ var ExportJobDocumentationContext = z127.object({
3081
+ isSingleVersionDocs: z127.boolean(),
3082
+ versionSlug: z127.string(),
2953
3083
  environment: PublishedDocEnvironment
2954
3084
  });
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()
3085
+ var ExportJobContext = z127.object({
3086
+ apiUrl: z127.string(),
3087
+ accessToken: z127.string(),
3088
+ designSystemId: z127.string(),
3089
+ designSystemVersionId: z127.string(),
3090
+ brandId: z127.string().optional(),
3091
+ exporterPackageUrl: z127.string(),
3092
+ exporterPropertyValues: ExporterPropertyValue.array(),
3093
+ documentation: ExportJobDocumentationContext.optional()
2983
3094
  });
3095
+
3096
+ // src/export/export-runner/exporter-payload.ts
3097
+ import { z as z128 } from "zod";
3098
+ var ExporterFunctionPayload = z128.object({
3099
+ exportJobId: z128.string(),
3100
+ exportContextId: z128.string(),
3101
+ designSystemId: z128.string()
3102
+ });
3103
+
3104
+ // src/export/export-destinations.ts
3105
+ import { z as z129 } from "zod";
2984
3106
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2985
3107
  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(),
3108
+ var ExporterDestinationDocs = z129.object({
3109
+ environment: PublishedDocEnvironment
3110
+ });
3111
+ var ExporterDestinationS3 = z129.object({});
3112
+ var ExporterDestinationGithub = z129.object({
3113
+ connectionId: z129.string(),
3114
+ branch: z129.string(),
3115
+ relativePath: z129.string()
3116
+ // // +
3117
+ // userId: z.coerce.string(),
3118
+ });
3119
+ var ExporterDestinationAzure = z129.object({
3120
+ connectionId: z129.string(),
3121
+ organizationId: z129.string(),
3122
+ projectId: z129.string(),
3123
+ repositoryId: z129.string(),
3124
+ branch: z129.string(),
3125
+ relativePath: z129.string()
3126
+ // // +
3127
+ // userId: z.coerce.string(),
3128
+ // url: z.string(),
3129
+ });
3130
+ var ExporterDestinationGitlab = z129.object({
3131
+ connectionId: z129.string(),
3132
+ projectId: z129.string(),
3133
+ branch: z129.string(),
3134
+ relativePath: z129.string()
3135
+ // // +
3136
+ // userId: z.coerce.string(),
3137
+ // url: z.string(),
3138
+ });
3139
+ var ExporterDestinationBitbucket = z129.object({
3140
+ connectionId: z129.string(),
3141
+ workspaceSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3142
+ projectKey: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3143
+ repoSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3144
+ branch: z129.string(),
3145
+ relativePath: z129.string()
3146
+ // // +
3147
+ // userId: z.string(),
3148
+ // url: z.string(),
3149
+ });
3150
+ var ExportDestinationsMap = z129.object({
3151
+ webhookUrl: z129.string().optional(),
3152
+ destinationSnDocs: ExporterDestinationDocs.optional(),
3049
3153
  destinationS3: ExporterDestinationS3.optional(),
3050
3154
  destinationGithub: ExporterDestinationGithub.optional(),
3051
3155
  destinationAzure: ExporterDestinationAzure.optional(),
3052
3156
  destinationGitlab: ExporterDestinationGitlab.optional(),
3053
3157
  destinationBitbucket: ExporterDestinationBitbucket.optional()
3054
3158
  });
3055
- var ExporterJobFindByFilter = ExporterJob.pick({
3159
+
3160
+ // src/export/export-jobs.ts
3161
+ import { z as z130 } from "zod";
3162
+ var ExportJobDestinationType = z130.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3163
+ var ExportJobStatus = z130.enum(["InProgress", "Success", "Failed", "Timeout"]);
3164
+ var ExportJobLogEntryType = z130.enum(["success", "info", "warning", "error", "user"]);
3165
+ var ExportJobLogEntry = z130.object({
3166
+ id: z130.string().optional(),
3167
+ time: z130.coerce.date(),
3168
+ type: ExportJobLogEntryType,
3169
+ message: z130.string()
3170
+ });
3171
+ var ExportJobPullRequestDestinationResult = z130.object({
3172
+ pullRequestUrl: z130.string()
3173
+ });
3174
+ var ExportJobS3DestinationResult = z130.object({
3175
+ bucket: z130.string(),
3176
+ urlPrefix: z130.string().optional(),
3177
+ path: z130.string(),
3178
+ files: z130.array(z130.string())
3179
+ });
3180
+ var ExportJobDocsDestinationResult = z130.object({
3181
+ url: z130.string()
3182
+ });
3183
+ var ExportJobResult = z130.object({
3184
+ error: z130.string().optional(),
3185
+ s3: ExportJobS3DestinationResult.optional(),
3186
+ github: ExportJobPullRequestDestinationResult.optional(),
3187
+ azure: ExportJobPullRequestDestinationResult.optional(),
3188
+ gitlab: ExportJobPullRequestDestinationResult.optional(),
3189
+ bitbucket: ExportJobPullRequestDestinationResult.optional(),
3190
+ sndocs: ExportJobDocsDestinationResult.optional()
3191
+ });
3192
+ var ExportJob = z130.object({
3193
+ id: z130.string(),
3194
+ createdAt: z130.date(),
3195
+ finishedAt: z130.date().optional(),
3196
+ designSystemId: z130.string(),
3197
+ designSystemVersionId: z130.string(),
3198
+ workspaceId: z130.string(),
3199
+ scheduleId: z130.string().nullish(),
3200
+ exporterId: z130.string(),
3201
+ brandId: z130.string().optional(),
3202
+ themeId: z130.string().optional(),
3203
+ estimatedExecutionTime: z130.number().optional(),
3204
+ status: ExportJobStatus,
3205
+ result: ExportJobResult.optional(),
3206
+ createdByUserId: z130.string().optional(),
3207
+ // Destinations
3208
+ ...ExportDestinationsMap.shape
3209
+ });
3210
+ var ExportJobFindByFilter = ExportJob.pick({
3056
3211
  exporterId: true,
3057
3212
  designSystemVersionId: true,
3058
3213
  destinations: true,
@@ -3063,51 +3218,45 @@ var ExporterJobFindByFilter = ExporterJob.pick({
3063
3218
  themeId: true,
3064
3219
  brandId: true
3065
3220
  }).extend({
3066
- destinations: z119.array(ExporterJobDestination),
3221
+ destinations: z130.array(ExportJobDestinationType),
3067
3222
  docsEnvironment: PublishedDocEnvironment
3068
3223
  }).partial();
3069
3224
 
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(),
3225
+ // src/export/export-schedule.ts
3226
+ import { z as z131 } from "zod";
3227
+ var ExporterScheduleEventType = z131.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3228
+ var ExporterSchedule = z131.object({
3229
+ id: z131.string(),
3230
+ name: z131.string(),
3076
3231
  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()
3232
+ isEnabled: z131.boolean(),
3233
+ workspaceId: z131.string(),
3234
+ designSystemId: z131.string(),
3235
+ exporterId: z131.string(),
3236
+ brandId: z131.string().optional(),
3237
+ themeId: z131.string().optional(),
3238
+ // Destinations
3239
+ ...ExportDestinationsMap.shape
3091
3240
  });
3092
3241
 
3093
- // src/codegen/exporter-workspace-membership-role.ts
3094
- import { z as z121 } from "zod";
3095
- var ExporterWorkspaceMembershipRole = z121.enum(["Owner", "OwnerArchived", "User"]);
3242
+ // src/export/exporter-workspace-membership-role.ts
3243
+ import { z as z132 } from "zod";
3244
+ var ExporterWorkspaceMembershipRole = z132.enum(["Owner", "OwnerArchived", "User"]);
3096
3245
 
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(),
3246
+ // src/export/exporter-workspace-membership.ts
3247
+ import { z as z133 } from "zod";
3248
+ var ExporterWorkspaceMembership = z133.object({
3249
+ id: z133.string(),
3250
+ workspaceId: z133.string(),
3251
+ exporterId: z133.string(),
3103
3252
  role: ExporterWorkspaceMembershipRole
3104
3253
  });
3105
3254
 
3106
- // src/codegen/exporter.ts
3107
- import { z as z125 } from "zod";
3255
+ // src/export/exporter.ts
3256
+ import { z as z136 } from "zod";
3108
3257
 
3109
- // src/codegen/git-providers.ts
3110
- import { z as z123 } from "zod";
3258
+ // src/export/git-providers.ts
3259
+ import { z as z134 } from "zod";
3111
3260
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3112
3261
  GitProviderNames2["Azure"] = "azure";
3113
3262
  GitProviderNames2["Github"] = "github";
@@ -3115,11 +3264,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3115
3264
  GitProviderNames2["Bitbucket"] = "bitbucket";
3116
3265
  return GitProviderNames2;
3117
3266
  })(GitProviderNames || {});
3118
- var GitProvider = z123.nativeEnum(GitProviderNames);
3267
+ var GitProvider = z134.nativeEnum(GitProviderNames);
3119
3268
 
3120
- // src/codegen/pulsar.ts
3121
- import { z as z124 } from "zod";
3122
- var PulsarPropertyType = z124.enum([
3269
+ // src/export/pulsar.ts
3270
+ import { z as z135 } from "zod";
3271
+ var PulsarPropertyType = z135.enum([
3123
3272
  "string",
3124
3273
  "number",
3125
3274
  "boolean",
@@ -3132,221 +3281,91 @@ var PulsarPropertyType = z124.enum([
3132
3281
  "tokenProperties",
3133
3282
  "tokenType"
3134
3283
  ]);
3135
- var PulsarBaseProperty = z124.object({
3136
- label: z124.string(),
3137
- key: z124.string(),
3138
- description: z124.string().nullish(),
3284
+ var PulsarBaseProperty = z135.object({
3285
+ label: z135.string(),
3286
+ key: z135.string(),
3287
+ description: z135.string().nullish(),
3139
3288
  type: PulsarPropertyType,
3140
- values: z124.array(z124.string()).nullish(),
3141
- default: z124.union([z124.string(), z124.boolean(), z124.number()]).nullish(),
3289
+ values: z135.array(z135.string()).nullish(),
3290
+ default: z135.union([z135.string(), z135.boolean(), z135.number()]).nullish(),
3142
3291
  // PulsarPropertyValueType //is optional?
3143
- inputType: z124.enum(["code", "plain"]).optional(),
3292
+ inputType: z135.enum(["code", "plain"]).optional(),
3144
3293
  //is optional?
3145
- isMultiline: z124.boolean().nullish()
3294
+ isMultiline: z135.boolean().nullish()
3146
3295
  });
3147
3296
  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),
3297
+ category: z135.string()
3298
+ });
3299
+ var PulsarContributionVariant = z135.object({
3300
+ key: z135.string(),
3301
+ name: z135.string(),
3302
+ isDefault: nullishToOptional(z135.boolean()),
3303
+ description: nullishToOptional(z135.string()),
3304
+ thumbnailURL: nullishToOptional(z135.string())
3305
+ });
3306
+ var PulsarCustomBlock = z135.object({
3307
+ title: nullishToOptional(z135.string()),
3308
+ key: z135.string(),
3309
+ category: nullishToOptional(z135.string()),
3310
+ description: nullishToOptional(z135.string()),
3311
+ iconURL: nullishToOptional(z135.string()),
3312
+ mode: nullishToOptional(z135.enum(["array", "block"])),
3313
+ properties: nullishToOptional(z135.array(PulsarBaseProperty)).transform((v) => v ?? [])
3314
+ });
3315
+
3316
+ // src/export/exporter.ts
3317
+ var ExporterType = z136.enum(["code", "documentation"]);
3318
+ var ExporterSource = z136.enum(["git", "upload"]);
3319
+ var ExporterTag = z136.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3320
+ var ExporterDetails = z136.object({
3321
+ description: z136.string(),
3322
+ version: z136.string(),
3323
+ routingVersion: nullishToOptional(z136.string()),
3324
+ author: nullishToOptional(z136.string()),
3325
+ organization: nullishToOptional(z136.string()),
3326
+ homepage: nullishToOptional(z136.string()),
3327
+ readme: nullishToOptional(z136.string()),
3328
+ tags: nullishToOptional(z136.array(ExporterTag)).default([]),
3329
+ packageId: nullishToOptional(z136.string().max(255)),
3330
+ iconURL: nullishToOptional(z136.string()),
3331
+ configurationProperties: nullishToOptional(z136.array(PulsarContributionConfigurationProperty)).default([]),
3332
+ customBlocks: nullishToOptional(z136.array(PulsarCustomBlock)).default([]),
3333
+ blockVariants: nullishToOptional(z136.record(z136.string(), z136.array(PulsarContributionVariant))).default({}),
3334
+ usesBrands: nullishToOptional(z136.boolean()).default(false),
3335
+ usesThemes: nullishToOptional(z136.boolean()).default(false),
3187
3336
  source: ExporterSource,
3188
3337
  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(),
3338
+ gitUrl: nullishToOptional(z136.string()),
3339
+ gitBranch: nullishToOptional(z136.string()),
3340
+ gitDirectory: nullishToOptional(z136.string())
3341
+ });
3342
+ var Exporter = z136.object({
3343
+ id: z136.string(),
3344
+ createdAt: z136.coerce.date(),
3345
+ name: z136.string(),
3346
+ isPrivate: z136.boolean(),
3198
3347
  details: ExporterDetails,
3199
3348
  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()
3349
+ storagePath: nullishToOptional(z136.string()).default("")
3331
3350
  });
3332
3351
 
3333
3352
  // 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(),
3353
+ import { z as z137 } from "zod";
3354
+ var FlaggedFeature = z137.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3355
+ var FeatureFlagMap = z137.record(FlaggedFeature, z137.boolean());
3356
+ var FeatureFlag = z137.object({
3357
+ id: z137.string(),
3339
3358
  feature: FlaggedFeature,
3340
- createdAt: z135.coerce.date(),
3341
- enabled: z135.boolean(),
3342
- designSystemId: z135.string().optional()
3359
+ createdAt: z137.coerce.date(),
3360
+ enabled: z137.boolean(),
3361
+ designSystemId: z137.string().optional()
3343
3362
  });
3344
3363
 
3345
3364
  // src/integrations/external-oauth-request.ts
3346
- import { z as z137 } from "zod";
3365
+ import { z as z139 } from "zod";
3347
3366
 
3348
3367
  // src/integrations/oauth-providers.ts
3349
- import { z as z136 } from "zod";
3368
+ import { z as z138 } from "zod";
3350
3369
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3351
3370
  OAuthProviderNames2["Figma"] = "figma";
3352
3371
  OAuthProviderNames2["Azure"] = "azure";
@@ -3355,49 +3374,49 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3355
3374
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3356
3375
  return OAuthProviderNames2;
3357
3376
  })(OAuthProviderNames || {});
3358
- var OAuthProviderSchema = z136.nativeEnum(OAuthProviderNames);
3377
+ var OAuthProviderSchema = z138.nativeEnum(OAuthProviderNames);
3359
3378
  var OAuthProvider = OAuthProviderSchema.enum;
3360
3379
 
3361
3380
  // src/integrations/external-oauth-request.ts
3362
- var ExternalOAuthRequest = z137.object({
3363
- id: z137.string(),
3381
+ var ExternalOAuthRequest = z139.object({
3382
+ id: z139.string(),
3364
3383
  provider: OAuthProviderSchema,
3365
- userId: z137.string(),
3366
- state: z137.string(),
3367
- createdAt: z137.coerce.date()
3384
+ userId: z139.string(),
3385
+ state: z139.string(),
3386
+ createdAt: z139.coerce.date()
3368
3387
  });
3369
3388
 
3370
3389
  // 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(),
3390
+ import { z as z140 } from "zod";
3391
+ var IntegrationDesignSystem = z140.object({
3392
+ designSystemId: z140.string(),
3393
+ brandId: z140.string(),
3394
+ title: z140.string().optional(),
3395
+ userId: z140.string().optional(),
3396
+ date: z140.coerce.date().optional()
3397
+ });
3398
+ var IntegrationCredentialsType = z140.enum(["OAuth2", "PAT", "GithubApp"]);
3399
+ var IntegrationCredentialsProfile = z140.object({
3400
+ id: z140.string(),
3401
+ email: z140.string().optional(),
3402
+ handle: z140.string().optional(),
3403
+ avatarUrl: z140.string().optional()
3404
+ });
3405
+ var IntegrationCredentials = z140.object({
3406
+ id: z140.string(),
3388
3407
  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(),
3408
+ integrationId: z140.string(),
3409
+ accessToken: z140.string(),
3410
+ userId: z140.string(),
3411
+ createdAt: z140.coerce.date(),
3412
+ refreshToken: z140.string().optional(),
3413
+ tokenName: z140.string().optional(),
3414
+ expiresAt: z140.coerce.date().optional(),
3396
3415
  profile: IntegrationCredentialsProfile.optional(),
3397
- customUrl: z138.string().optional(),
3416
+ customUrl: z140.string().optional(),
3398
3417
  user: UserMinified.optional()
3399
3418
  });
3400
- var ExtendedIntegrationType = z138.enum([
3419
+ var ExtendedIntegrationType = z140.enum([
3401
3420
  "Figma",
3402
3421
  "Github",
3403
3422
  "Gitlab",
@@ -3407,25 +3426,25 @@ var ExtendedIntegrationType = z138.enum([
3407
3426
  "FigmaVariablesPlugin"
3408
3427
  ]);
3409
3428
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3410
- var Integration = z138.object({
3411
- id: z138.string(),
3412
- workspaceId: z138.string(),
3429
+ var Integration = z140.object({
3430
+ id: z140.string(),
3431
+ workspaceId: z140.string(),
3413
3432
  type: IntegrationType,
3414
- createdAt: z138.coerce.date(),
3415
- integrationCredentials: z138.array(IntegrationCredentials).optional()
3433
+ createdAt: z140.coerce.date(),
3434
+ integrationCredentials: z140.array(IntegrationCredentials).optional()
3416
3435
  });
3417
3436
  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(),
3437
+ var IntegrationTokenResponse = z140.object({
3438
+ access_token: z140.string(),
3439
+ refresh_token: z140.string().optional(),
3440
+ expires_in: z140.union([z140.number().optional(), z140.string().optional()]),
3441
+ token_type: z140.string().optional(),
3442
+ token_name: z140.string().optional(),
3443
+ token_azure_organization_name: z140.string().optional(),
3425
3444
  // Azure only
3426
- token_bitbucket_username: z138.string().optional(),
3445
+ token_bitbucket_username: z140.string().optional(),
3427
3446
  // Bitbucket only
3428
- custom_url: z138.string().optional().refine((value) => {
3447
+ custom_url: z140.string().optional().refine((value) => {
3429
3448
  if (!value)
3430
3449
  return true;
3431
3450
  if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
@@ -3451,131 +3470,131 @@ var IntegrationTokenResponse = z138.object({
3451
3470
  });
3452
3471
 
3453
3472
  // src/integrations/oauth-token.ts
3454
- import { z as z139 } from "zod";
3455
- var IntegrationTokenSchema = z139.object({
3456
- id: z139.string(),
3473
+ import { z as z141 } from "zod";
3474
+ var IntegrationTokenSchema = z141.object({
3475
+ id: z141.string(),
3457
3476
  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()
3477
+ scope: z141.string(),
3478
+ userId: z141.string(),
3479
+ accessToken: z141.string(),
3480
+ refreshToken: z141.string(),
3481
+ expiresAt: z141.coerce.date(),
3482
+ externalUserId: z141.string().nullish()
3464
3483
  });
3465
3484
 
3466
3485
  // 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(),
3486
+ import { z as z142 } from "zod";
3487
+ var WorkspaceOAuthRequestSchema = z142.object({
3488
+ id: z142.string(),
3489
+ workspaceId: z142.string(),
3471
3490
  provider: OAuthProviderSchema,
3472
- userId: z140.string(),
3473
- createdAt: z140.coerce.date()
3491
+ userId: z142.string(),
3492
+ createdAt: z142.coerce.date()
3474
3493
  });
3475
3494
 
3476
3495
  // src/liveblocks/rooms/design-system-version-room.ts
3477
- import { z as z141 } from "zod";
3496
+ import { z as z143 } from "zod";
3478
3497
  var DesignSystemVersionRoom = Entity.extend({
3479
- designSystemVersionId: z141.string(),
3480
- liveblocksId: z141.string()
3498
+ designSystemVersionId: z143.string(),
3499
+ liveblocksId: z143.string()
3481
3500
  });
3482
- var DesignSystemVersionRoomInternalSettings = z141.object({
3483
- routingVersion: z141.string()
3501
+ var DesignSystemVersionRoomInternalSettings = z143.object({
3502
+ routingVersion: z143.string()
3484
3503
  });
3485
- var DesignSystemVersionRoomInitialState = z141.object({
3486
- pages: z141.array(DocumentationPageV2),
3487
- groups: z141.array(ElementGroup),
3504
+ var DesignSystemVersionRoomInitialState = z143.object({
3505
+ pages: z143.array(DocumentationPageV2),
3506
+ groups: z143.array(ElementGroup),
3488
3507
  internalSettings: DesignSystemVersionRoomInternalSettings
3489
3508
  });
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())
3509
+ var DesignSystemVersionRoomUpdate = z143.object({
3510
+ pages: z143.array(DocumentationPageV2),
3511
+ groups: z143.array(ElementGroup),
3512
+ deletedPageIds: z143.array(z143.string()),
3513
+ deletedGroupIds: z143.array(z143.string())
3495
3514
  });
3496
3515
 
3497
3516
  // src/liveblocks/rooms/documentation-page-room.ts
3498
- import { z as z142 } from "zod";
3517
+ import { z as z144 } from "zod";
3499
3518
  var DocumentationPageRoom = Entity.extend({
3500
- designSystemVersionId: z142.string(),
3501
- documentationPageId: z142.string(),
3502
- liveblocksId: z142.string(),
3503
- isDirty: z142.boolean()
3519
+ designSystemVersionId: z144.string(),
3520
+ documentationPageId: z144.string(),
3521
+ liveblocksId: z144.string(),
3522
+ isDirty: z144.boolean()
3504
3523
  });
3505
- var DocumentationPageRoomState = z142.object({
3506
- pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3524
+ var DocumentationPageRoomState = z144.object({
3525
+ pageItems: z144.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3507
3526
  itemConfiguration: DocumentationItemConfigurationV2
3508
3527
  });
3509
- var DocumentationPageRoomRoomUpdate = z142.object({
3528
+ var DocumentationPageRoomRoomUpdate = z144.object({
3510
3529
  page: DocumentationPageV2,
3511
3530
  pageParent: ElementGroup
3512
3531
  });
3513
3532
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3514
- pageItems: z142.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3515
- blockDefinitions: z142.array(PageBlockDefinition)
3533
+ pageItems: z144.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3534
+ blockDefinitions: z144.array(PageBlockDefinition)
3516
3535
  });
3517
3536
 
3518
3537
  // src/liveblocks/rooms/room-type.ts
3519
- import { z as z143 } from "zod";
3538
+ import { z as z145 } from "zod";
3520
3539
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3521
3540
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3522
3541
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3523
3542
  RoomTypeEnum2["Workspace"] = "workspace";
3524
3543
  return RoomTypeEnum2;
3525
3544
  })(RoomTypeEnum || {});
3526
- var RoomTypeSchema = z143.nativeEnum(RoomTypeEnum);
3545
+ var RoomTypeSchema = z145.nativeEnum(RoomTypeEnum);
3527
3546
  var RoomType = RoomTypeSchema.enum;
3528
3547
 
3529
3548
  // src/liveblocks/rooms/workspace-room.ts
3530
- import { z as z144 } from "zod";
3549
+ import { z as z146 } from "zod";
3531
3550
  var WorkspaceRoom = Entity.extend({
3532
- workspaceId: z144.string(),
3533
- liveblocksId: z144.string()
3551
+ workspaceId: z146.string(),
3552
+ liveblocksId: z146.string()
3534
3553
  });
3535
3554
 
3536
3555
  // src/npm/npm-package.ts
3537
- import { z as z145 } from "zod";
3538
- var AnyRecord = z145.record(z145.any());
3556
+ import { z as z147 } from "zod";
3557
+ var AnyRecord = z147.record(z147.any());
3539
3558
  var NpmPackageVersionDist = AnyRecord.and(
3540
- z145.object({
3541
- tarball: z145.string()
3559
+ z147.object({
3560
+ tarball: z147.string()
3542
3561
  })
3543
3562
  );
3544
3563
  var NpmPackageVersion = AnyRecord.and(
3545
- z145.object({
3564
+ z147.object({
3546
3565
  dist: NpmPackageVersionDist
3547
3566
  })
3548
3567
  );
3549
3568
  var NpmPackage = AnyRecord.and(
3550
- z145.object({
3551
- _id: z145.string(),
3552
- name: z145.string(),
3569
+ z147.object({
3570
+ _id: z147.string(),
3571
+ name: z147.string(),
3553
3572
  // e.g. "latest": "1.2.3"
3554
- "dist-tags": z145.record(z145.string(), z145.string()),
3573
+ "dist-tags": z147.record(z147.string(), z147.string()),
3555
3574
  // "1.2.3": {...}
3556
- versions: z145.record(NpmPackageVersion)
3575
+ versions: z147.record(NpmPackageVersion)
3557
3576
  })
3558
3577
  );
3559
3578
 
3560
3579
  // src/npm/npm-proxy-token-payload.ts
3561
- import { z as z146 } from "zod";
3562
- var NpmProxyTokenPayload = z146.object({
3563
- npmProxyRegistryConfigId: z146.string()
3580
+ import { z as z148 } from "zod";
3581
+ var NpmProxyTokenPayload = z148.object({
3582
+ npmProxyRegistryConfigId: z148.string()
3564
3583
  });
3565
3584
 
3566
3585
  // 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(),
3586
+ import { z as z149 } from "zod";
3587
+ var PersonalAccessToken = z149.object({
3588
+ id: z149.string(),
3589
+ userId: z149.string(),
3590
+ workspaceId: z149.string().optional(),
3572
3591
  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()
3592
+ name: z149.string(),
3593
+ hidden: z149.boolean(),
3594
+ token: z149.string(),
3595
+ scope: z149.string().optional(),
3596
+ createdAt: z149.coerce.date(),
3597
+ expireAt: z149.coerce.date().optional()
3579
3598
  });
3580
3599
 
3581
3600
  // src/utils/errors.ts
@@ -3710,26 +3729,26 @@ async function sleep(ms) {
3710
3729
  }
3711
3730
 
3712
3731
  // 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"),
3732
+ import { z as z150 } from "zod";
3733
+ var ContentLoadInstruction = z150.object({
3734
+ from: z150.string(),
3735
+ to: z150.string(),
3736
+ authorizationHeaderKvsId: z150.string().optional(),
3737
+ timeout: z150.number().optional()
3738
+ });
3739
+ var ContentLoaderPayload = z150.object({
3740
+ type: z150.literal("Single"),
3722
3741
  instruction: ContentLoadInstruction
3723
3742
  }).or(
3724
- z148.object({
3725
- type: z148.literal("Multiple"),
3726
- loadingChunkSize: z148.number().optional(),
3727
- instructions: z148.array(ContentLoadInstruction)
3743
+ z150.object({
3744
+ type: z150.literal("Multiple"),
3745
+ loadingChunkSize: z150.number().optional(),
3746
+ instructions: z150.array(ContentLoadInstruction)
3728
3747
  })
3729
3748
  ).or(
3730
- z148.object({
3731
- type: z148.literal("S3"),
3732
- location: z148.string()
3749
+ z150.object({
3750
+ type: z150.literal("S3"),
3751
+ location: z150.string()
3733
3752
  })
3734
3753
  );
3735
3754
 
@@ -4513,24 +4532,28 @@ export {
4513
4532
  ElementViewPropertyDefinitionColumn,
4514
4533
  ElementViewThemeColumn,
4515
4534
  Entity,
4535
+ ExportDestinationsMap,
4536
+ ExportJob,
4537
+ ExportJobContext,
4538
+ ExportJobDestinationType,
4539
+ ExportJobDocsDestinationResult,
4540
+ ExportJobDocumentationContext,
4541
+ ExportJobFindByFilter,
4542
+ ExportJobLogEntry,
4543
+ ExportJobLogEntryType,
4544
+ ExportJobPullRequestDestinationResult,
4545
+ ExportJobResult,
4546
+ ExportJobS3DestinationResult,
4547
+ ExportJobStatus,
4516
4548
  Exporter,
4517
4549
  ExporterDestinationAzure,
4518
4550
  ExporterDestinationBitbucket,
4551
+ ExporterDestinationDocs,
4519
4552
  ExporterDestinationGithub,
4520
4553
  ExporterDestinationGitlab,
4521
4554
  ExporterDestinationS3,
4522
- ExporterDestinationSnDocs,
4523
4555
  ExporterDetails,
4524
- ExporterJob,
4525
- ExporterJobDestination,
4526
- ExporterJobFindByFilter,
4527
- ExporterJobLogEntry,
4528
- ExporterJobLogEntryType,
4529
- ExporterJobResult,
4530
- ExporterJobResultDocsDestination,
4531
- ExporterJobResultPullRequestDestination,
4532
- ExporterJobResultS3Destination,
4533
- ExporterJobStatus,
4556
+ ExporterFunctionPayload,
4534
4557
  ExporterPropertyImageValue,
4535
4558
  ExporterPropertyValue,
4536
4559
  ExporterPropertyValuesCollection,