@supernova-studio/model 1.9.3 → 1.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -307,7 +307,7 @@ var CustomDomain = z16.object({
307
307
  });
308
308
 
309
309
  // src/data-dumps/code-integration-dump.ts
310
- import { z as z161 } from "zod";
310
+ import { z as z162 } from "zod";
311
311
 
312
312
  // src/export/exporter.ts
313
313
  import { z as z20 } from "zod";
@@ -482,10 +482,10 @@ var Exporter = z20.object({
482
482
  });
483
483
 
484
484
  // src/export/pipeline.ts
485
- import { z as z160 } from "zod";
485
+ import { z as z161 } from "zod";
486
486
 
487
487
  // src/export/export-destinations.ts
488
- import { z as z159 } from "zod";
488
+ import { z as z160 } from "zod";
489
489
 
490
490
  // src/dsm/assets/asset-dynamo-record.ts
491
491
  import { z as z21 } from "zod";
@@ -4506,168 +4506,407 @@ function pickLatestGroupSnapshots(snapshots) {
4506
4506
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
4507
4507
  }
4508
4508
 
4509
- // src/dsm/figma-node-renderer/renderer-payload.ts
4509
+ // src/dsm/figma-exporter/figma-exporter.ts
4510
4510
  import { z as z123 } from "zod";
4511
- var FigmaNodeRendererPayload = z123.object({
4512
- designSystemId: z123.string(),
4513
- versionId: z123.string(),
4514
- figmaNodePersistentIds: z123.string().array()
4511
+ var FigmaExporterProcessedStylesSchema = z123.object({
4512
+ display: z123.union([
4513
+ z123.literal("block"),
4514
+ z123.literal("inline-block"),
4515
+ z123.literal("inline"),
4516
+ z123.literal("flex"),
4517
+ z123.literal("grid"),
4518
+ z123.literal("none")
4519
+ ]).optional(),
4520
+ position: z123.union([z123.literal("absolute"), z123.literal("relative"), z123.literal("fixed"), z123.literal("static"), z123.literal("sticky")]).optional(),
4521
+ top: z123.string().optional(),
4522
+ right: z123.string().optional(),
4523
+ bottom: z123.string().optional(),
4524
+ left: z123.string().optional(),
4525
+ width: z123.string().optional(),
4526
+ height: z123.string().optional(),
4527
+ minWidth: z123.string().optional(),
4528
+ minHeight: z123.string().optional(),
4529
+ maxWidth: z123.string().optional(),
4530
+ maxHeight: z123.string().optional(),
4531
+ zIndex: z123.number().optional(),
4532
+ overflow: z123.union([z123.literal("visible"), z123.literal("hidden"), z123.literal("scroll"), z123.literal("auto"), z123.literal("clip")]).optional(),
4533
+ overflowX: z123.union([z123.literal("visible"), z123.literal("hidden"), z123.literal("scroll"), z123.literal("auto"), z123.literal("clip")]).optional(),
4534
+ overflowY: z123.union([z123.literal("visible"), z123.literal("hidden"), z123.literal("scroll"), z123.literal("auto"), z123.literal("clip")]).optional(),
4535
+ aspectRatio: z123.string().optional(),
4536
+ flexDirection: z123.union([z123.literal("row"), z123.literal("row-reverse"), z123.literal("column"), z123.literal("column-reverse")]).optional(),
4537
+ justifyContent: z123.union([
4538
+ z123.literal("flex-start"),
4539
+ z123.literal("flex-end"),
4540
+ z123.literal("center"),
4541
+ z123.literal("space-between"),
4542
+ z123.literal("space-around"),
4543
+ z123.literal("space-evenly")
4544
+ ]).optional(),
4545
+ alignItems: z123.union([
4546
+ z123.literal("stretch"),
4547
+ z123.literal("flex-start"),
4548
+ z123.literal("flex-end"),
4549
+ z123.literal("center"),
4550
+ z123.literal("baseline")
4551
+ ]).optional(),
4552
+ alignSelf: z123.union([
4553
+ z123.literal("auto"),
4554
+ z123.literal("stretch"),
4555
+ z123.literal("flex-start"),
4556
+ z123.literal("flex-end"),
4557
+ z123.literal("center"),
4558
+ z123.literal("baseline")
4559
+ ]).optional(),
4560
+ flexGrow: z123.number().optional(),
4561
+ flexShrink: z123.number().optional(),
4562
+ flexBasis: z123.string().optional(),
4563
+ flexWrap: z123.union([z123.literal("nowrap"), z123.literal("wrap"), z123.literal("wrap-reverse")]).optional(),
4564
+ gap: z123.string().optional(),
4565
+ rowGap: z123.string().optional(),
4566
+ columnGap: z123.string().optional(),
4567
+ gridTemplateColumns: z123.string().optional(),
4568
+ gridTemplateRows: z123.string().optional(),
4569
+ gridColumn: z123.string().optional(),
4570
+ gridRow: z123.string().optional(),
4571
+ gridAutoFlow: z123.union([
4572
+ z123.literal("row"),
4573
+ z123.literal("column"),
4574
+ z123.literal("dense"),
4575
+ z123.literal("row dense"),
4576
+ z123.literal("column dense")
4577
+ ]).optional(),
4578
+ alignContent: z123.union([
4579
+ z123.literal("flex-start"),
4580
+ z123.literal("flex-end"),
4581
+ z123.literal("center"),
4582
+ z123.literal("space-between"),
4583
+ z123.literal("space-around"),
4584
+ z123.literal("stretch")
4585
+ ]).optional(),
4586
+ padding: z123.string().optional(),
4587
+ paddingTop: z123.string().optional(),
4588
+ paddingRight: z123.string().optional(),
4589
+ paddingBottom: z123.string().optional(),
4590
+ paddingLeft: z123.string().optional(),
4591
+ margin: z123.string().optional(),
4592
+ marginTop: z123.string().optional(),
4593
+ marginRight: z123.string().optional(),
4594
+ marginBottom: z123.string().optional(),
4595
+ marginLeft: z123.string().optional(),
4596
+ border: z123.string().optional(),
4597
+ borderWidth: z123.string().optional(),
4598
+ borderStyle: z123.string().optional(),
4599
+ borderColor: z123.string().optional(),
4600
+ borderTop: z123.string().optional(),
4601
+ borderRight: z123.string().optional(),
4602
+ borderBottom: z123.string().optional(),
4603
+ borderLeft: z123.string().optional(),
4604
+ borderRadius: z123.string().optional(),
4605
+ borderTopLeftRadius: z123.string().optional(),
4606
+ borderTopRightRadius: z123.string().optional(),
4607
+ borderBottomRightRadius: z123.string().optional(),
4608
+ borderBottomLeftRadius: z123.string().optional(),
4609
+ backgroundColor: z123.string().optional(),
4610
+ backgroundImage: z123.string().optional(),
4611
+ backgroundSize: z123.string().optional(),
4612
+ backgroundPosition: z123.string().optional(),
4613
+ backgroundRepeat: z123.string().optional(),
4614
+ backgroundClip: z123.union([z123.literal("border-box"), z123.literal("padding-box"), z123.literal("content-box"), z123.literal("text")]).optional(),
4615
+ backgroundOrigin: z123.union([z123.literal("border-box"), z123.literal("padding-box"), z123.literal("content-box")]).optional(),
4616
+ opacity: z123.number().optional(),
4617
+ boxShadow: z123.string().optional(),
4618
+ filter: z123.string().optional(),
4619
+ backdropFilter: z123.string().optional(),
4620
+ mixBlendMode: z123.union([
4621
+ z123.literal("normal"),
4622
+ z123.literal("multiply"),
4623
+ z123.literal("screen"),
4624
+ z123.literal("overlay"),
4625
+ z123.literal("darken"),
4626
+ z123.literal("lighten"),
4627
+ z123.literal("color-dodge"),
4628
+ z123.literal("color-burn"),
4629
+ z123.literal("hard-light"),
4630
+ z123.literal("soft-light"),
4631
+ z123.literal("difference"),
4632
+ z123.literal("exclusion"),
4633
+ z123.literal("hue"),
4634
+ z123.literal("saturation"),
4635
+ z123.literal("color"),
4636
+ z123.literal("luminosity"),
4637
+ z123.literal("plus-lighter")
4638
+ ]).optional(),
4639
+ transform: z123.string().optional(),
4640
+ transformOrigin: z123.string().optional(),
4641
+ clipPath: z123.string().optional(),
4642
+ color: z123.string().optional(),
4643
+ fontFamily: z123.string().optional(),
4644
+ fontSize: z123.string().optional(),
4645
+ fontWeight: z123.union([z123.string(), z123.number()]).optional(),
4646
+ fontStyle: z123.union([z123.literal("normal"), z123.literal("italic"), z123.literal("oblique")]).optional(),
4647
+ fontStretch: z123.string().optional(),
4648
+ fontVariantCaps: z123.union([
4649
+ z123.literal("normal"),
4650
+ z123.literal("small-caps"),
4651
+ z123.literal("all-small-caps"),
4652
+ z123.literal("petite-caps"),
4653
+ z123.literal("all-petite-caps"),
4654
+ z123.literal("unicase"),
4655
+ z123.literal("titling-caps")
4656
+ ]).optional(),
4657
+ lineHeight: z123.union([z123.string(), z123.number()]).optional(),
4658
+ letterSpacing: z123.string().optional(),
4659
+ textAlign: z123.union([
4660
+ z123.literal("left"),
4661
+ z123.literal("center"),
4662
+ z123.literal("right"),
4663
+ z123.literal("justify"),
4664
+ z123.literal("start"),
4665
+ z123.literal("end")
4666
+ ]).optional(),
4667
+ textDecorationLine: z123.union([z123.literal("none"), z123.literal("underline"), z123.literal("overline"), z123.literal("line-through")]).optional(),
4668
+ textDecorationColor: z123.string().optional(),
4669
+ textDecorationStyle: z123.union([z123.literal("solid"), z123.literal("double"), z123.literal("dotted"), z123.literal("dashed"), z123.literal("wavy")]).optional(),
4670
+ textDecorationThickness: z123.string().optional(),
4671
+ textTransform: z123.union([
4672
+ z123.literal("none"),
4673
+ z123.literal("uppercase"),
4674
+ z123.literal("lowercase"),
4675
+ z123.literal("capitalize"),
4676
+ z123.literal("full-width")
4677
+ ]).optional(),
4678
+ whiteSpace: z123.union([
4679
+ z123.literal("normal"),
4680
+ z123.literal("nowrap"),
4681
+ z123.literal("pre"),
4682
+ z123.literal("pre-wrap"),
4683
+ z123.literal("pre-line"),
4684
+ z123.literal("break-spaces")
4685
+ ]).optional(),
4686
+ wordBreak: z123.union([z123.literal("normal"), z123.literal("break-all"), z123.literal("keep-all"), z123.literal("break-word")]).optional(),
4687
+ textOverflow: z123.union([z123.literal("clip"), z123.literal("ellipsis")]).optional(),
4688
+ WebkitLineClamp: z123.number().optional(),
4689
+ WebkitBoxOrient: z123.literal("vertical").optional(),
4690
+ fontFeatureSettings: z123.string().optional(),
4691
+ fill: z123.string().optional(),
4692
+ stroke: z123.string().optional(),
4693
+ strokeWidth: z123.string().optional(),
4694
+ strokeLinecap: z123.union([z123.literal("butt"), z123.literal("round"), z123.literal("square")]).optional(),
4695
+ strokeLinejoin: z123.union([z123.literal("miter"), z123.literal("round"), z123.literal("bevel")]).optional(),
4696
+ strokeDasharray: z123.string().optional(),
4697
+ strokeDashoffset: z123.string().optional(),
4698
+ transition: z123.string().optional(),
4699
+ animation: z123.string().optional(),
4700
+ cursor: z123.string().optional(),
4701
+ userSelect: z123.union([z123.literal("auto"), z123.literal("none"), z123.literal("text"), z123.literal("all")]).optional(),
4702
+ pointerEvents: z123.union([
4703
+ z123.literal("auto"),
4704
+ z123.literal("none"),
4705
+ z123.literal("visiblePainted"),
4706
+ z123.literal("visibleFill"),
4707
+ z123.literal("visibleStroke"),
4708
+ z123.literal("visible"),
4709
+ z123.literal("painted"),
4710
+ z123.literal("fill"),
4711
+ z123.literal("stroke"),
4712
+ z123.literal("all"),
4713
+ z123.literal("inherit")
4714
+ ]).optional(),
4715
+ visibility: z123.union([z123.literal("visible"), z123.literal("hidden"), z123.literal("collapse")]).optional()
4716
+ });
4717
+ var FigmaExporterDesignNodeTypeSchema = z123.union([z123.literal("FRAME"), z123.literal("TEXT"), z123.literal("SVG")]);
4718
+ var baseDesignNodeObjectSchema = z123.object({
4719
+ id: z123.string(),
4720
+ type: FigmaExporterDesignNodeTypeSchema,
4721
+ parentId: z123.string().nullable(),
4722
+ styles: FigmaExporterProcessedStylesSchema.partial()
4723
+ });
4724
+ var frameNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4725
+ type: z123.literal("FRAME")
4726
+ });
4727
+ var textNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4728
+ type: z123.literal("TEXT"),
4729
+ characters: z123.string()
4730
+ });
4731
+ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4732
+ type: z123.literal("SVG"),
4733
+ svgString: z123.string()
4734
+ });
4735
+ var frameNodeSchema = z123.lazy(
4736
+ () => frameNodeObjectSchema.extend({
4737
+ children: FigmaExporterAnyDesignNodeSchema.array()
4738
+ })
4739
+ );
4740
+ var textNodeSchema = textNodeObjectSchema;
4741
+ var svgNodeSchema = z123.lazy(
4742
+ () => svgNodeObjectSchema.extend({
4743
+ children: FigmaExporterAnyDesignNodeSchema.array()
4744
+ })
4745
+ );
4746
+ var FigmaExporterAnyDesignNodeSchema = z123.union([frameNodeSchema, textNodeSchema, svgNodeSchema]);
4747
+
4748
+ // src/dsm/figma-node-renderer/renderer-payload.ts
4749
+ import { z as z124 } from "zod";
4750
+ var FigmaNodeRendererPayload = z124.object({
4751
+ designSystemId: z124.string(),
4752
+ versionId: z124.string(),
4753
+ figmaNodePersistentIds: z124.string().array()
4515
4754
  });
4516
4755
 
4517
4756
  // src/dsm/figma-node-structures/structure-data.ts
4518
- import { z as z124 } from "zod";
4519
- var FigmaNodeStructureDataV2 = z124.object({
4757
+ import { z as z125 } from "zod";
4758
+ var FigmaNodeStructureDataV2 = z125.object({
4520
4759
  rootNode: FigmaFileStructureNodeImportModel,
4521
- assetsInFile: z124.object({
4522
- components: z124.number(),
4523
- componentSets: z124.number(),
4524
- frames: z124.number()
4760
+ assetsInFile: z125.object({
4761
+ components: z125.number(),
4762
+ componentSets: z125.number(),
4763
+ frames: z125.number()
4525
4764
  })
4526
4765
  });
4527
4766
 
4528
4767
  // src/dsm/figma-node-structures/structure.ts
4529
- import { z as z125 } from "zod";
4530
- var FigmaNodeStructureStateV2 = z125.enum(["InProgress", "Success", "Failed"]);
4531
- var FigmaNodeStructureV2 = z125.object({
4532
- id: z125.string(),
4533
- designSystemId: z125.string(),
4534
- sourceId: z125.string(),
4535
- storagePath: z125.string().optional(),
4536
- createdAt: z125.coerce.date(),
4537
- updatedAt: z125.coerce.date(),
4768
+ import { z as z126 } from "zod";
4769
+ var FigmaNodeStructureStateV2 = z126.enum(["InProgress", "Success", "Failed"]);
4770
+ var FigmaNodeStructureV2 = z126.object({
4771
+ id: z126.string(),
4772
+ designSystemId: z126.string(),
4773
+ sourceId: z126.string(),
4774
+ storagePath: z126.string().optional(),
4775
+ createdAt: z126.coerce.date(),
4776
+ updatedAt: z126.coerce.date(),
4538
4777
  importState: FigmaNodeStructureStateV2,
4539
- error: z125.string().optional(),
4540
- chunkSize: z125.number().optional(),
4778
+ error: z126.string().optional(),
4779
+ chunkSize: z126.number().optional(),
4541
4780
  // TODO Artem: remove after migration
4542
- isFromLegacyStorage: z125.boolean()
4781
+ isFromLegacyStorage: z126.boolean()
4543
4782
  });
4544
4783
 
4545
4784
  // src/dsm/membership/design-system-membership.ts
4546
- import { z as z147 } from "zod";
4785
+ import { z as z148 } from "zod";
4547
4786
 
4548
4787
  // src/workspace/npm-registry-settings.ts
4549
- import { z as z126 } from "zod";
4550
- var NpmRegistryAuthType = z126.enum(["Basic", "Bearer", "None", "Custom"]);
4551
- var NpmRegistryType = z126.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4552
- var NpmRegistryBasicAuthConfig = z126.object({
4553
- authType: z126.literal(NpmRegistryAuthType.Enum.Basic),
4554
- username: z126.string(),
4555
- password: z126.string()
4556
- });
4557
- var NpmRegistryBearerAuthConfig = z126.object({
4558
- authType: z126.literal(NpmRegistryAuthType.Enum.Bearer),
4559
- accessToken: z126.string()
4560
- });
4561
- var NpmRegistryNoAuthConfig = z126.object({
4562
- authType: z126.literal(NpmRegistryAuthType.Enum.None)
4563
- });
4564
- var NpmRegistrCustomAuthConfig = z126.object({
4565
- authType: z126.literal(NpmRegistryAuthType.Enum.Custom),
4566
- authHeaderName: z126.string(),
4567
- authHeaderValue: z126.string()
4568
- });
4569
- var NpmRegistryAuthConfig = z126.discriminatedUnion("authType", [
4788
+ import { z as z127 } from "zod";
4789
+ var NpmRegistryAuthType = z127.enum(["Basic", "Bearer", "None", "Custom"]);
4790
+ var NpmRegistryType = z127.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4791
+ var NpmRegistryBasicAuthConfig = z127.object({
4792
+ authType: z127.literal(NpmRegistryAuthType.Enum.Basic),
4793
+ username: z127.string(),
4794
+ password: z127.string()
4795
+ });
4796
+ var NpmRegistryBearerAuthConfig = z127.object({
4797
+ authType: z127.literal(NpmRegistryAuthType.Enum.Bearer),
4798
+ accessToken: z127.string()
4799
+ });
4800
+ var NpmRegistryNoAuthConfig = z127.object({
4801
+ authType: z127.literal(NpmRegistryAuthType.Enum.None)
4802
+ });
4803
+ var NpmRegistrCustomAuthConfig = z127.object({
4804
+ authType: z127.literal(NpmRegistryAuthType.Enum.Custom),
4805
+ authHeaderName: z127.string(),
4806
+ authHeaderValue: z127.string()
4807
+ });
4808
+ var NpmRegistryAuthConfig = z127.discriminatedUnion("authType", [
4570
4809
  NpmRegistryBasicAuthConfig,
4571
4810
  NpmRegistryBearerAuthConfig,
4572
4811
  NpmRegistryNoAuthConfig,
4573
4812
  NpmRegistrCustomAuthConfig
4574
4813
  ]);
4575
- var NpmRegistryConfigBase = z126.object({
4814
+ var NpmRegistryConfigBase = z127.object({
4576
4815
  registryType: NpmRegistryType,
4577
- enabledScopes: z126.array(z126.string()),
4578
- customRegistryUrl: z126.string().optional(),
4579
- bypassProxy: z126.boolean().default(false),
4580
- npmProxyRegistryConfigId: z126.string().optional(),
4581
- npmProxyVersion: z126.number().optional()
4816
+ enabledScopes: z127.array(z127.string()),
4817
+ customRegistryUrl: z127.string().optional(),
4818
+ bypassProxy: z127.boolean().default(false),
4819
+ npmProxyRegistryConfigId: z127.string().optional(),
4820
+ npmProxyVersion: z127.number().optional()
4582
4821
  });
4583
4822
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4584
4823
 
4585
4824
  // src/workspace/sso-provider.ts
4586
- import { z as z127 } from "zod";
4587
- var SsoProvider = z127.object({
4588
- providerId: z127.string(),
4589
- defaultAutoInviteValue: z127.boolean(),
4590
- autoInviteDomains: z127.record(z127.string(), z127.boolean()),
4591
- skipDocsSupernovaLogin: z127.boolean(),
4592
- areInvitesDisabled: z127.boolean(),
4593
- isTestMode: z127.boolean(),
4594
- emailDomains: z127.array(z127.string()),
4595
- metadataXml: z127.string().nullish()
4825
+ import { z as z128 } from "zod";
4826
+ var SsoProvider = z128.object({
4827
+ providerId: z128.string(),
4828
+ defaultAutoInviteValue: z128.boolean(),
4829
+ autoInviteDomains: z128.record(z128.string(), z128.boolean()),
4830
+ skipDocsSupernovaLogin: z128.boolean(),
4831
+ areInvitesDisabled: z128.boolean(),
4832
+ isTestMode: z128.boolean(),
4833
+ emailDomains: z128.array(z128.string()),
4834
+ metadataXml: z128.string().nullish()
4596
4835
  });
4597
4836
 
4598
4837
  // src/workspace/untyped-data.ts
4599
- import { z as z128 } from "zod";
4600
- var WorkspaceUntypedData = z128.object({
4601
- id: z128.string(),
4602
- workspaceId: z128.string(),
4603
- value: z128.unknown(),
4604
- createdAt: z128.coerce.date(),
4605
- updatedAt: z128.coerce.date()
4838
+ import { z as z129 } from "zod";
4839
+ var WorkspaceUntypedData = z129.object({
4840
+ id: z129.string(),
4841
+ workspaceId: z129.string(),
4842
+ value: z129.unknown(),
4843
+ createdAt: z129.coerce.date(),
4844
+ updatedAt: z129.coerce.date()
4606
4845
  });
4607
4846
 
4608
4847
  // src/workspace/user-invite.ts
4609
- import { z as z130 } from "zod";
4848
+ import { z as z131 } from "zod";
4610
4849
 
4611
4850
  // src/workspace/workspace-role.ts
4612
- import { z as z129 } from "zod";
4613
- var WorkspaceRoleSchema = z129.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4851
+ import { z as z130 } from "zod";
4852
+ var WorkspaceRoleSchema = z130.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4614
4853
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4615
4854
 
4616
4855
  // src/workspace/user-invite.ts
4617
4856
  var MAX_MEMBERS_COUNT = 100;
4618
- var UserInvite = z130.object({
4619
- email: z130.string().email().trim().transform((value) => value.toLowerCase()),
4857
+ var UserInvite = z131.object({
4858
+ email: z131.string().email().trim().transform((value) => value.toLowerCase()),
4620
4859
  role: WorkspaceRoleSchema
4621
4860
  });
4622
- var UserInvites = z130.array(UserInvite).max(MAX_MEMBERS_COUNT);
4861
+ var UserInvites = z131.array(UserInvite).max(MAX_MEMBERS_COUNT);
4623
4862
 
4624
4863
  // src/workspace/workspace-configuration.ts
4625
- import { z as z132 } from "zod";
4864
+ import { z as z133 } from "zod";
4626
4865
 
4627
4866
  // src/workspace/workspace.ts
4628
4867
  import IPCIDR from "ip-cidr";
4629
- import { z as z131 } from "zod";
4868
+ import { z as z132 } from "zod";
4630
4869
  var isValidCIDR = (value) => {
4631
4870
  return IPCIDR.isValidAddress(value);
4632
4871
  };
4633
- var WorkspaceIpWhitelistEntry = z131.object({
4634
- isEnabled: z131.boolean(),
4635
- name: z131.string(),
4636
- range: z131.string().refine(isValidCIDR, {
4872
+ var WorkspaceIpWhitelistEntry = z132.object({
4873
+ isEnabled: z132.boolean(),
4874
+ name: z132.string(),
4875
+ range: z132.string().refine(isValidCIDR, {
4637
4876
  message: "Invalid IP CIDR"
4638
4877
  })
4639
4878
  });
4640
- var WorkspaceIpSettings = z131.object({
4641
- isEnabledForCloud: z131.boolean(),
4642
- isEnabledForDocs: z131.boolean(),
4643
- entries: z131.array(WorkspaceIpWhitelistEntry)
4879
+ var WorkspaceIpSettings = z132.object({
4880
+ isEnabledForCloud: z132.boolean(),
4881
+ isEnabledForDocs: z132.boolean(),
4882
+ entries: z132.array(WorkspaceIpWhitelistEntry)
4644
4883
  });
4645
- var WorkspaceProfile = z131.object({
4646
- name: z131.string(),
4647
- handle: z131.string(),
4648
- color: z131.string(),
4649
- avatar: nullishToOptional(z131.string()),
4884
+ var WorkspaceProfile = z132.object({
4885
+ name: z132.string(),
4886
+ handle: z132.string(),
4887
+ color: z132.string(),
4888
+ avatar: nullishToOptional(z132.string()),
4650
4889
  billingDetails: nullishToOptional(BillingDetails)
4651
4890
  });
4652
4891
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4653
4892
  avatar: true
4654
4893
  });
4655
- var Workspace = z131.object({
4656
- id: z131.string(),
4894
+ var Workspace = z132.object({
4895
+ id: z132.string(),
4657
4896
  profile: WorkspaceProfile,
4658
4897
  subscription: Subscription,
4659
4898
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4660
4899
  sso: nullishToOptional(SsoProvider),
4661
4900
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4662
4901
  });
4663
- var WorkspaceWithDesignSystems = z131.object({
4902
+ var WorkspaceWithDesignSystems = z132.object({
4664
4903
  workspace: Workspace,
4665
- designSystems: z131.array(DesignSystem)
4904
+ designSystems: z132.array(DesignSystem)
4666
4905
  });
4667
4906
 
4668
4907
  // src/workspace/workspace-configuration.ts
4669
- var WorkspaceConfigurationUpdate = z132.object({
4670
- id: z132.string(),
4908
+ var WorkspaceConfigurationUpdate = z133.object({
4909
+ id: z133.string(),
4671
4910
  ipWhitelist: WorkspaceIpSettings.optional(),
4672
4911
  sso: SsoProvider.optional(),
4673
4912
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -4675,59 +4914,59 @@ var WorkspaceConfigurationUpdate = z132.object({
4675
4914
  });
4676
4915
 
4677
4916
  // src/workspace/workspace-context.ts
4678
- import { z as z133 } from "zod";
4679
- var WorkspaceContext = z133.object({
4680
- workspaceId: z133.string(),
4917
+ import { z as z134 } from "zod";
4918
+ var WorkspaceContext = z134.object({
4919
+ workspaceId: z134.string(),
4681
4920
  product: ProductCodeSchema,
4682
4921
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4683
- publicDesignSystem: z133.boolean().optional()
4922
+ publicDesignSystem: z134.boolean().optional()
4684
4923
  });
4685
4924
 
4686
4925
  // src/workspace/workspace-create.ts
4687
- import { z as z134 } from "zod";
4926
+ import { z as z135 } from "zod";
4688
4927
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4689
4928
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4690
4929
  var HANDLE_MIN_LENGTH = 2;
4691
4930
  var HANDLE_MAX_LENGTH = 64;
4692
- var CreateWorkspaceInput = z134.object({
4693
- name: z134.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4694
- handle: z134.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4931
+ var CreateWorkspaceInput = z135.object({
4932
+ name: z135.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4933
+ handle: z135.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4695
4934
  });
4696
4935
 
4697
4936
  // src/workspace/workspace-invitations.ts
4698
- import { z as z135 } from "zod";
4699
- var WorkspaceInvitation = z135.object({
4700
- id: z135.string(),
4701
- email: z135.string().email(),
4702
- createdAt: z135.coerce.date(),
4703
- resentAt: z135.coerce.date().nullish(),
4704
- role: z135.nativeEnum(WorkspaceRole),
4705
- workspaceId: z135.string(),
4706
- invitedBy: z135.string()
4937
+ import { z as z136 } from "zod";
4938
+ var WorkspaceInvitation = z136.object({
4939
+ id: z136.string(),
4940
+ email: z136.string().email(),
4941
+ createdAt: z136.coerce.date(),
4942
+ resentAt: z136.coerce.date().nullish(),
4943
+ role: z136.nativeEnum(WorkspaceRole),
4944
+ workspaceId: z136.string(),
4945
+ invitedBy: z136.string()
4707
4946
  });
4708
4947
 
4709
4948
  // src/workspace/workspace-membership.ts
4710
- import { z as z144 } from "zod";
4949
+ import { z as z145 } from "zod";
4711
4950
 
4712
4951
  // src/users/linked-integrations.ts
4713
- import { z as z136 } from "zod";
4714
- var IntegrationAuthType = z136.union([z136.literal("OAuth2"), z136.literal("PAT")]);
4715
- var ExternalServiceType = z136.union([
4716
- z136.literal("figma"),
4717
- z136.literal("github"),
4718
- z136.literal("azure"),
4719
- z136.literal("gitlab"),
4720
- z136.literal("bitbucket")
4952
+ import { z as z137 } from "zod";
4953
+ var IntegrationAuthType = z137.union([z137.literal("OAuth2"), z137.literal("PAT")]);
4954
+ var ExternalServiceType = z137.union([
4955
+ z137.literal("figma"),
4956
+ z137.literal("github"),
4957
+ z137.literal("azure"),
4958
+ z137.literal("gitlab"),
4959
+ z137.literal("bitbucket")
4721
4960
  ]);
4722
- var IntegrationUserInfo = z136.object({
4723
- id: z136.string(),
4724
- handle: z136.string().optional(),
4725
- avatarUrl: z136.string().optional(),
4726
- email: z136.string().optional(),
4961
+ var IntegrationUserInfo = z137.object({
4962
+ id: z137.string(),
4963
+ handle: z137.string().optional(),
4964
+ avatarUrl: z137.string().optional(),
4965
+ email: z137.string().optional(),
4727
4966
  authType: IntegrationAuthType.optional(),
4728
- customUrl: z136.string().optional()
4967
+ customUrl: z137.string().optional()
4729
4968
  });
4730
- var UserLinkedIntegrations = z136.object({
4969
+ var UserLinkedIntegrations = z137.object({
4731
4970
  figma: IntegrationUserInfo.optional(),
4732
4971
  github: IntegrationUserInfo.array().optional(),
4733
4972
  azure: IntegrationUserInfo.array().optional(),
@@ -4736,38 +4975,38 @@ var UserLinkedIntegrations = z136.object({
4736
4975
  });
4737
4976
 
4738
4977
  // src/users/user-analytics-cleanup-schedule.ts
4739
- import { z as z137 } from "zod";
4740
- var UserAnalyticsCleanupSchedule = z137.object({
4741
- userId: z137.string(),
4742
- createdAt: z137.coerce.date(),
4743
- deleteAt: z137.coerce.date()
4978
+ import { z as z138 } from "zod";
4979
+ var UserAnalyticsCleanupSchedule = z138.object({
4980
+ userId: z138.string(),
4981
+ createdAt: z138.coerce.date(),
4982
+ deleteAt: z138.coerce.date()
4744
4983
  });
4745
4984
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4746
4985
  createdAt: true
4747
4986
  });
4748
4987
 
4749
4988
  // src/users/user-identity.ts
4750
- import { z as z138 } from "zod";
4751
- var UserIdentity = z138.object({
4752
- id: z138.string(),
4753
- userId: z138.string()
4989
+ import { z as z139 } from "zod";
4990
+ var UserIdentity = z139.object({
4991
+ id: z139.string(),
4992
+ userId: z139.string()
4754
4993
  });
4755
4994
 
4756
4995
  // src/users/user-minified.ts
4757
- import { z as z139 } from "zod";
4758
- var UserMinified = z139.object({
4759
- id: z139.string(),
4760
- name: z139.string(),
4761
- email: z139.string(),
4762
- avatar: z139.string().optional()
4996
+ import { z as z140 } from "zod";
4997
+ var UserMinified = z140.object({
4998
+ id: z140.string(),
4999
+ name: z140.string(),
5000
+ email: z140.string(),
5001
+ avatar: z140.string().optional()
4763
5002
  });
4764
5003
 
4765
5004
  // src/users/user-notification-settings.ts
4766
- import { z as z140 } from "zod";
4767
- var LiveblocksNotificationSettings = z140.object({
4768
- sendCommentNotificationEmails: z140.boolean()
5005
+ import { z as z141 } from "zod";
5006
+ var LiveblocksNotificationSettings = z141.object({
5007
+ sendCommentNotificationEmails: z141.boolean()
4769
5008
  });
4770
- var UserNotificationSettings = z140.object({
5009
+ var UserNotificationSettings = z141.object({
4771
5010
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4772
5011
  });
4773
5012
  var defaultNotificationSettings = {
@@ -4777,11 +5016,11 @@ var defaultNotificationSettings = {
4777
5016
  };
4778
5017
 
4779
5018
  // src/users/user-profile.ts
4780
- import { z as z141 } from "zod";
4781
- var UserOnboardingDepartment = z141.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4782
- var UserOnboardingJobLevel = z141.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4783
- var UserTheme = z141.object({
4784
- preset: z141.enum([
5019
+ import { z as z142 } from "zod";
5020
+ var UserOnboardingDepartment = z142.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
5021
+ var UserOnboardingJobLevel = z142.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
5022
+ var UserTheme = z142.object({
5023
+ preset: z142.enum([
4785
5024
  "Custom",
4786
5025
  "Default",
4787
5026
  "HighContrast",
@@ -4792,32 +5031,32 @@ var UserTheme = z141.object({
4792
5031
  "SystemPreference",
4793
5032
  "Sepia"
4794
5033
  ]).optional(),
4795
- backgroundColor: z141.string().optional(),
4796
- accentColor: z141.string().optional(),
4797
- contrast: z141.number().min(16).max(100).optional(),
4798
- isSecondaryEnabled: z141.boolean().optional(),
4799
- secondaryBackgroundColor: z141.string().optional(),
4800
- secondaryContrast: z141.number().min(16).max(100).optional(),
4801
- isEditorWhite: z141.boolean().optional()
4802
- });
4803
- var UserOnboarding = z141.object({
4804
- companyName: z141.string().optional(),
4805
- numberOfPeopleInOrg: z141.string().optional(),
4806
- numberOfPeopleInDesignTeam: z141.string().optional(),
5034
+ backgroundColor: z142.string().optional(),
5035
+ accentColor: z142.string().optional(),
5036
+ contrast: z142.number().min(16).max(100).optional(),
5037
+ isSecondaryEnabled: z142.boolean().optional(),
5038
+ secondaryBackgroundColor: z142.string().optional(),
5039
+ secondaryContrast: z142.number().min(16).max(100).optional(),
5040
+ isEditorWhite: z142.boolean().optional()
5041
+ });
5042
+ var UserOnboarding = z142.object({
5043
+ companyName: z142.string().optional(),
5044
+ numberOfPeopleInOrg: z142.string().optional(),
5045
+ numberOfPeopleInDesignTeam: z142.string().optional(),
4807
5046
  department: UserOnboardingDepartment.optional(),
4808
- jobTitle: z141.string().optional(),
4809
- phase: z141.string().optional(),
5047
+ jobTitle: z142.string().optional(),
5048
+ phase: z142.string().optional(),
4810
5049
  jobLevel: UserOnboardingJobLevel.optional(),
4811
- designSystemName: z141.string().optional(),
4812
- defaultDestination: z141.string().optional(),
4813
- figmaUrl: z141.string().optional(),
4814
- isPageDraftOnboardingFinished: z141.boolean().optional(),
4815
- isApprovalsOnboardingFinished: z141.boolean().optional()
4816
- });
4817
- var UserProfile = z141.object({
4818
- name: z141.string(),
4819
- avatar: z141.string().optional(),
4820
- nickname: z141.string().optional(),
5050
+ designSystemName: z142.string().optional(),
5051
+ defaultDestination: z142.string().optional(),
5052
+ figmaUrl: z142.string().optional(),
5053
+ isPageDraftOnboardingFinished: z142.boolean().optional(),
5054
+ isApprovalsOnboardingFinished: z142.boolean().optional()
5055
+ });
5056
+ var UserProfile = z142.object({
5057
+ name: z142.string(),
5058
+ avatar: z142.string().optional(),
5059
+ nickname: z142.string().optional(),
4821
5060
  onboarding: UserOnboarding.optional(),
4822
5061
  theme: UserTheme.optional()
4823
5062
  });
@@ -4826,47 +5065,47 @@ var UserProfileUpdate = UserProfile.partial().omit({
4826
5065
  });
4827
5066
 
4828
5067
  // src/users/user-test.ts
4829
- import { z as z142 } from "zod";
4830
- var UserTest = z142.object({
4831
- id: z142.string(),
4832
- email: z142.string()
5068
+ import { z as z143 } from "zod";
5069
+ var UserTest = z143.object({
5070
+ id: z143.string(),
5071
+ email: z143.string()
4833
5072
  });
4834
5073
 
4835
5074
  // src/users/user.ts
4836
- import { z as z143 } from "zod";
4837
- var UserSource = z143.enum(["SignUp", "Invite", "SSO"]);
4838
- var User = z143.object({
4839
- id: z143.string(),
4840
- email: z143.string(),
4841
- createdAt: z143.coerce.date(),
5075
+ import { z as z144 } from "zod";
5076
+ var UserSource = z144.enum(["SignUp", "Invite", "SSO"]);
5077
+ var User = z144.object({
5078
+ id: z144.string(),
5079
+ email: z144.string(),
5080
+ createdAt: z144.coerce.date(),
4842
5081
  profile: UserProfile,
4843
- loggedOutAt: z143.coerce.date().optional(),
4844
- isProtected: z143.boolean(),
5082
+ loggedOutAt: z144.coerce.date().optional(),
5083
+ isProtected: z144.boolean(),
4845
5084
  source: UserSource.optional()
4846
5085
  });
4847
5086
 
4848
5087
  // src/workspace/workspace-membership.ts
4849
- var WorkspaceMembership = z144.object({
4850
- id: z144.string(),
4851
- userId: z144.string(),
4852
- workspaceId: z144.string(),
4853
- workspaceRole: z144.nativeEnum(WorkspaceRole),
5088
+ var WorkspaceMembership = z145.object({
5089
+ id: z145.string(),
5090
+ userId: z145.string(),
5091
+ workspaceId: z145.string(),
5092
+ workspaceRole: z145.nativeEnum(WorkspaceRole),
4854
5093
  notificationSettings: UserNotificationSettings,
4855
- isPrimaryOwner: z144.boolean().nullish()
4856
- });
4857
- var UpdateMembershipRolesInput = z144.object({
4858
- members: z144.array(
4859
- z144.object({
4860
- userId: z144.string(),
4861
- role: z144.nativeEnum(WorkspaceRole),
4862
- isPrimaryOwner: z144.boolean().optional()
5094
+ isPrimaryOwner: z145.boolean().nullish()
5095
+ });
5096
+ var UpdateMembershipRolesInput = z145.object({
5097
+ members: z145.array(
5098
+ z145.object({
5099
+ userId: z145.string(),
5100
+ role: z145.nativeEnum(WorkspaceRole),
5101
+ isPrimaryOwner: z145.boolean().optional()
4863
5102
  })
4864
5103
  )
4865
5104
  });
4866
5105
 
4867
5106
  // src/dsm/membership/ds-role.ts
4868
- import { z as z145 } from "zod";
4869
- var DesignSystemRole = z145.enum([
5107
+ import { z as z146 } from "zod";
5108
+ var DesignSystemRole = z146.enum([
4870
5109
  WorkspaceRole.Admin,
4871
5110
  WorkspaceRole.Contributor,
4872
5111
  WorkspaceRole.Creator,
@@ -4890,46 +5129,46 @@ function workspaceRoleToDesignSystemRole(role) {
4890
5129
  }
4891
5130
 
4892
5131
  // src/dsm/membership/invitations.ts
4893
- import { z as z146 } from "zod";
4894
- var DesignSystemInvitation = z146.object({
4895
- id: z146.string(),
4896
- designSystemId: z146.string(),
4897
- workspaceInvitationId: z146.string(),
5132
+ import { z as z147 } from "zod";
5133
+ var DesignSystemInvitation = z147.object({
5134
+ id: z147.string(),
5135
+ designSystemId: z147.string(),
5136
+ workspaceInvitationId: z147.string(),
4898
5137
  designSystemRole: DesignSystemRole.optional(),
4899
5138
  workspaceRole: WorkspaceRoleSchema
4900
5139
  });
4901
5140
 
4902
5141
  // src/dsm/membership/design-system-membership.ts
4903
- var DesignSystemMembership = z147.object({
4904
- id: z147.string(),
4905
- userId: z147.string(),
4906
- designSystemId: z147.string(),
5142
+ var DesignSystemMembership = z148.object({
5143
+ id: z148.string(),
5144
+ userId: z148.string(),
5145
+ designSystemId: z148.string(),
4907
5146
  designSystemRole: DesignSystemRole.optional(),
4908
- workspaceMembershipId: z147.string(),
5147
+ workspaceMembershipId: z148.string(),
4909
5148
  workspaceRole: WorkspaceRoleSchema
4910
5149
  });
4911
- var DesignSystemMembers = z147.object({
5150
+ var DesignSystemMembers = z148.object({
4912
5151
  members: DesignSystemMembership.array(),
4913
5152
  invitations: DesignSystemInvitation.array()
4914
5153
  });
4915
- var DesignSystemPendingMemberInvitation = z147.object({
4916
- inviteId: z147.string(),
5154
+ var DesignSystemPendingMemberInvitation = z148.object({
5155
+ inviteId: z148.string(),
4917
5156
  /**
4918
5157
  * Role that the user will have in the design system, undefined
4919
5158
  * if it should be inherited from the workspace
4920
5159
  */
4921
5160
  designSystemRole: DesignSystemRole.optional()
4922
5161
  });
4923
- var DesignSystemUserInvitation = z147.object({
4924
- userId: z147.string(),
5162
+ var DesignSystemUserInvitation = z148.object({
5163
+ userId: z148.string(),
4925
5164
  /**
4926
5165
  * Role that the user will have in the design system, undefined
4927
5166
  * if it should be inherited from the workspace
4928
5167
  */
4929
5168
  designSystemRole: DesignSystemRole.optional()
4930
5169
  });
4931
- var DesignSystemInvite = z147.object({
4932
- email: z147.string(),
5170
+ var DesignSystemInvite = z148.object({
5171
+ email: z148.string(),
4933
5172
  workspaceRole: WorkspaceRoleSchema,
4934
5173
  /**
4935
5174
  * Role that the user will have in the design system, undefined
@@ -4937,319 +5176,319 @@ var DesignSystemInvite = z147.object({
4937
5176
  */
4938
5177
  designSystemRole: DesignSystemRole.optional()
4939
5178
  });
4940
- var DesignSystemMemberUpdate = z147.object({
4941
- userId: z147.string(),
5179
+ var DesignSystemMemberUpdate = z148.object({
5180
+ userId: z148.string(),
4942
5181
  designSystemRole: DesignSystemRole.nullable()
4943
5182
  });
4944
- var DesignSystemInviteUpdate = z147.object({
5183
+ var DesignSystemInviteUpdate = z148.object({
4945
5184
  /**
4946
5185
  * Workspace invitation id
4947
5186
  */
4948
- inviteId: z147.string(),
5187
+ inviteId: z148.string(),
4949
5188
  designSystemRole: DesignSystemRole.nullable()
4950
5189
  });
4951
- var DesignSystemMembershipUpdates = z147.object({
5190
+ var DesignSystemMembershipUpdates = z148.object({
4952
5191
  usersToInvite: DesignSystemUserInvitation.array().optional(),
4953
5192
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
4954
5193
  emailsToInvite: DesignSystemInvite.array().optional(),
4955
5194
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
4956
5195
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
4957
- removeUserIds: z147.string().array().optional(),
4958
- deleteInvitationIds: z147.string().array().optional()
5196
+ removeUserIds: z148.string().array().optional(),
5197
+ deleteInvitationIds: z148.string().array().optional()
4959
5198
  });
4960
5199
 
4961
5200
  // src/dsm/views/column.ts
4962
- import { z as z148 } from "zod";
4963
- var ElementViewBaseColumnType = z148.enum(["Name", "Description", "Value", "UpdatedAt"]);
4964
- var ElementViewColumnType = z148.union([
4965
- z148.literal("BaseProperty"),
4966
- z148.literal("PropertyDefinition"),
4967
- z148.literal("Theme")
5201
+ import { z as z149 } from "zod";
5202
+ var ElementViewBaseColumnType = z149.enum(["Name", "Description", "Value", "UpdatedAt"]);
5203
+ var ElementViewColumnType = z149.union([
5204
+ z149.literal("BaseProperty"),
5205
+ z149.literal("PropertyDefinition"),
5206
+ z149.literal("Theme")
4968
5207
  ]);
4969
- var ElementViewColumnSharedAttributes = z148.object({
4970
- id: z148.string(),
4971
- persistentId: z148.string(),
4972
- elementDataViewId: z148.string(),
4973
- sortPosition: z148.number(),
4974
- width: z148.number()
5208
+ var ElementViewColumnSharedAttributes = z149.object({
5209
+ id: z149.string(),
5210
+ persistentId: z149.string(),
5211
+ elementDataViewId: z149.string(),
5212
+ sortPosition: z149.number(),
5213
+ width: z149.number()
4975
5214
  });
4976
5215
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
4977
- type: z148.literal("BaseProperty"),
5216
+ type: z149.literal("BaseProperty"),
4978
5217
  basePropertyType: ElementViewBaseColumnType
4979
5218
  });
4980
5219
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4981
- type: z148.literal("PropertyDefinition"),
4982
- propertyDefinitionId: z148.string()
5220
+ type: z149.literal("PropertyDefinition"),
5221
+ propertyDefinitionId: z149.string()
4983
5222
  });
4984
5223
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4985
- type: z148.literal("Theme"),
4986
- themeId: z148.string()
5224
+ type: z149.literal("Theme"),
5225
+ themeId: z149.string()
4987
5226
  });
4988
- var ElementViewColumn = z148.discriminatedUnion("type", [
5227
+ var ElementViewColumn = z149.discriminatedUnion("type", [
4989
5228
  ElementViewBasePropertyColumn,
4990
5229
  ElementViewPropertyDefinitionColumn,
4991
5230
  ElementViewThemeColumn
4992
5231
  ]);
4993
5232
 
4994
5233
  // src/dsm/views/view.ts
4995
- import { z as z149 } from "zod";
4996
- var ElementView = z149.object({
4997
- id: z149.string(),
4998
- persistentId: z149.string(),
4999
- designSystemVersionId: z149.string(),
5000
- name: z149.string(),
5001
- description: z149.string(),
5002
- targetElementType: ElementPropertyTargetType,
5003
- isDefault: z149.boolean()
5004
- });
5005
-
5006
- // src/dsm/brand.ts
5007
5234
  import { z as z150 } from "zod";
5008
- var Brand = z150.object({
5235
+ var ElementView = z150.object({
5009
5236
  id: z150.string(),
5010
- designSystemVersionId: z150.string(),
5011
5237
  persistentId: z150.string(),
5238
+ designSystemVersionId: z150.string(),
5012
5239
  name: z150.string(),
5013
- description: z150.string()
5240
+ description: z150.string(),
5241
+ targetElementType: ElementPropertyTargetType,
5242
+ isDefault: z150.boolean()
5014
5243
  });
5015
5244
 
5016
- // src/dsm/design-system.ts
5245
+ // src/dsm/brand.ts
5017
5246
  import { z as z151 } from "zod";
5018
- var DesignSystemAccessMode = z151.enum(["Open", "InviteOnly"]);
5019
- var DesignSystemSwitcher = z151.object({
5020
- isEnabled: z151.boolean(),
5021
- designSystemIds: z151.array(z151.string())
5022
- });
5023
- var DesignSystem = z151.object({
5247
+ var Brand = z151.object({
5024
5248
  id: z151.string(),
5025
- workspaceId: z151.string(),
5249
+ designSystemVersionId: z151.string(),
5250
+ persistentId: z151.string(),
5026
5251
  name: z151.string(),
5027
- description: z151.string(),
5028
- docExporterId: nullishToOptional(z151.string()),
5029
- docSlug: z151.string(),
5030
- docUserSlug: nullishToOptional(z151.string()),
5031
- docSlugDeprecated: z151.string(),
5032
- isMultibrand: z151.boolean(),
5033
- docViewUrl: nullishToOptional(z151.string()),
5034
- basePrefixes: z151.array(z151.string()),
5252
+ description: z151.string()
5253
+ });
5254
+
5255
+ // src/dsm/design-system.ts
5256
+ import { z as z152 } from "zod";
5257
+ var DesignSystemAccessMode = z152.enum(["Open", "InviteOnly"]);
5258
+ var DesignSystemSwitcher = z152.object({
5259
+ isEnabled: z152.boolean(),
5260
+ designSystemIds: z152.array(z152.string())
5261
+ });
5262
+ var DesignSystem = z152.object({
5263
+ id: z152.string(),
5264
+ workspaceId: z152.string(),
5265
+ name: z152.string(),
5266
+ description: z152.string(),
5267
+ docExporterId: nullishToOptional(z152.string()),
5268
+ docSlug: z152.string(),
5269
+ docUserSlug: nullishToOptional(z152.string()),
5270
+ docSlugDeprecated: z152.string(),
5271
+ isMultibrand: z152.boolean(),
5272
+ docViewUrl: nullishToOptional(z152.string()),
5273
+ basePrefixes: z152.array(z152.string()),
5035
5274
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
5036
- isApprovalFeatureEnabled: z151.boolean(),
5037
- approvalRequiredForPublishing: z151.boolean(),
5275
+ isApprovalFeatureEnabled: z152.boolean(),
5276
+ approvalRequiredForPublishing: z152.boolean(),
5038
5277
  accessMode: DesignSystemAccessMode,
5039
- membersGenerated: z151.boolean(),
5040
- createdAt: z151.coerce.date(),
5041
- updatedAt: z151.coerce.date()
5278
+ membersGenerated: z152.boolean(),
5279
+ createdAt: z152.coerce.date(),
5280
+ updatedAt: z152.coerce.date()
5042
5281
  });
5043
5282
 
5044
5283
  // src/dsm/exporter-property-values-collection.ts
5045
- import { z as z152 } from "zod";
5046
- var ExporterPropertyImageValue = z152.object({
5284
+ import { z as z153 } from "zod";
5285
+ var ExporterPropertyImageValue = z153.object({
5047
5286
  asset: PageBlockAsset.optional(),
5048
- assetId: z152.string().optional(),
5049
- assetUrl: z152.string().optional()
5050
- });
5051
- var ExporterConfigurationPropertyValue = z152.object({
5052
- key: z152.string(),
5053
- value: z152.union([
5054
- z152.number(),
5055
- z152.string(),
5056
- z152.boolean(),
5287
+ assetId: z153.string().optional(),
5288
+ assetUrl: z153.string().optional()
5289
+ });
5290
+ var ExporterConfigurationPropertyValue = z153.object({
5291
+ key: z153.string(),
5292
+ value: z153.union([
5293
+ z153.number(),
5294
+ z153.string(),
5295
+ z153.boolean(),
5057
5296
  ExporterPropertyImageValue,
5058
5297
  ColorTokenData,
5059
5298
  TypographyTokenData
5060
5299
  ])
5061
5300
  });
5062
- var ExporterPropertyValuesCollection = z152.object({
5063
- id: z152.string(),
5064
- designSystemId: z152.string(),
5065
- exporterId: z152.string(),
5066
- values: z152.array(ExporterConfigurationPropertyValue)
5301
+ var ExporterPropertyValuesCollection = z153.object({
5302
+ id: z153.string(),
5303
+ designSystemId: z153.string(),
5304
+ exporterId: z153.string(),
5305
+ values: z153.array(ExporterConfigurationPropertyValue)
5067
5306
  });
5068
5307
 
5069
5308
  // src/dsm/published-doc-page-visits.ts
5070
- import { z as z153 } from "zod";
5071
- var PublishedDocPageVisitsEntry = z153.object({
5072
- id: z153.string(),
5073
- versionId: z153.string(),
5074
- pagePersistentId: z153.string(),
5075
- locale: z153.string().optional(),
5076
- timestamp: z153.coerce.date(),
5077
- visits: z153.number(),
5078
- userId: nullishToOptional(z153.string()),
5079
- anonymousId: nullishToOptional(z153.string())
5309
+ import { z as z154 } from "zod";
5310
+ var PublishedDocPageVisitsEntry = z154.object({
5311
+ id: z154.string(),
5312
+ versionId: z154.string(),
5313
+ pagePersistentId: z154.string(),
5314
+ locale: z154.string().optional(),
5315
+ timestamp: z154.coerce.date(),
5316
+ visits: z154.number(),
5317
+ userId: nullishToOptional(z154.string()),
5318
+ anonymousId: nullishToOptional(z154.string())
5080
5319
  });
5081
5320
 
5082
5321
  // src/dsm/published-doc-page.ts
5083
- import { z as z154 } from "zod";
5322
+ import { z as z155 } from "zod";
5084
5323
  var SHORT_PERSISTENT_ID_LENGTH = 8;
5085
5324
  function tryParseShortPersistentId(url = "/") {
5086
5325
  const lastUrlPart = url.split("/").pop() || "";
5087
5326
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
5088
5327
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
5089
5328
  }
5090
- var PublishedDocPage = z154.object({
5091
- id: z154.string(),
5092
- publishedDocId: z154.string(),
5093
- pageShortPersistentId: z154.string(),
5094
- pagePersistentId: z154.string().optional(),
5095
- pathV1: z154.string(),
5096
- pathV2: z154.string(),
5097
- storagePath: z154.string(),
5098
- locale: z154.string().optional(),
5099
- isPrivate: z154.boolean(),
5100
- isHidden: z154.boolean(),
5101
- createdAt: z154.coerce.date(),
5102
- updatedAt: z154.coerce.date()
5329
+ var PublishedDocPage = z155.object({
5330
+ id: z155.string(),
5331
+ publishedDocId: z155.string(),
5332
+ pageShortPersistentId: z155.string(),
5333
+ pagePersistentId: z155.string().optional(),
5334
+ pathV1: z155.string(),
5335
+ pathV2: z155.string(),
5336
+ storagePath: z155.string(),
5337
+ locale: z155.string().optional(),
5338
+ isPrivate: z155.boolean(),
5339
+ isHidden: z155.boolean(),
5340
+ createdAt: z155.coerce.date(),
5341
+ updatedAt: z155.coerce.date()
5103
5342
  });
5104
5343
 
5105
5344
  // src/dsm/published-doc.ts
5106
- import { z as z155 } from "zod";
5345
+ import { z as z156 } from "zod";
5107
5346
  var publishedDocEnvironments = ["Live", "Preview"];
5108
- var PublishedDocEnvironment = z155.enum(publishedDocEnvironments);
5109
- var PublishedDocsChecksums = z155.record(z155.string());
5110
- var PublishedDocRoutingVersion = z155.enum(["1", "2"]);
5111
- var PublishedDoc = z155.object({
5112
- id: z155.string(),
5113
- designSystemVersionId: z155.string(),
5114
- createdAt: z155.coerce.date(),
5115
- updatedAt: z155.coerce.date(),
5116
- lastPublishedAt: z155.coerce.date(),
5117
- isDefault: z155.boolean(),
5118
- isPublic: z155.boolean(),
5347
+ var PublishedDocEnvironment = z156.enum(publishedDocEnvironments);
5348
+ var PublishedDocsChecksums = z156.record(z156.string());
5349
+ var PublishedDocRoutingVersion = z156.enum(["1", "2"]);
5350
+ var PublishedDoc = z156.object({
5351
+ id: z156.string(),
5352
+ designSystemVersionId: z156.string(),
5353
+ createdAt: z156.coerce.date(),
5354
+ updatedAt: z156.coerce.date(),
5355
+ lastPublishedAt: z156.coerce.date(),
5356
+ isDefault: z156.boolean(),
5357
+ isPublic: z156.boolean(),
5119
5358
  environment: PublishedDocEnvironment,
5120
5359
  checksums: PublishedDocsChecksums,
5121
- storagePath: z155.string(),
5122
- wasMigrated: z155.boolean(),
5360
+ storagePath: z156.string(),
5361
+ wasMigrated: z156.boolean(),
5123
5362
  routingVersion: PublishedDocRoutingVersion,
5124
- usesLocalizations: z155.boolean(),
5125
- wasPublishedWithLocalizations: z155.boolean(),
5126
- tokenCount: z155.number(),
5127
- assetCount: z155.number()
5363
+ usesLocalizations: z156.boolean(),
5364
+ wasPublishedWithLocalizations: z156.boolean(),
5365
+ tokenCount: z156.number(),
5366
+ assetCount: z156.number()
5128
5367
  });
5129
5368
 
5130
5369
  // src/dsm/storybook-entry.ts
5131
- import { z as z156 } from "zod";
5132
- var StorybookEntryOrigin = z156.object({
5133
- id: z156.string(),
5134
- type: z156.enum(["story", "docs"]),
5135
- name: z156.string(),
5136
- title: z156.string(),
5370
+ import { z as z157 } from "zod";
5371
+ var StorybookEntryOrigin = z157.object({
5372
+ id: z157.string(),
5373
+ type: z157.enum(["story", "docs"]),
5374
+ name: z157.string(),
5375
+ title: z157.string(),
5137
5376
  // Same as 'kind' for v3
5138
- index: z156.number().optional()
5377
+ index: z157.number().optional()
5139
5378
  });
5140
- var StorybookEntry = z156.object({
5141
- id: z156.string(),
5142
- storyId: z156.string(),
5143
- designSystemId: z156.string(),
5144
- sourceId: z156.string(),
5145
- aliases: z156.array(z156.string()).optional(),
5146
- url: z156.string(),
5147
- isDeleted: z156.boolean().optional(),
5148
- origin: StorybookEntryOrigin,
5149
- createdAt: z156.coerce.date(),
5150
- updatedAt: z156.coerce.date()
5151
- });
5152
-
5153
- // src/dsm/storybook-payload.ts
5154
- import { z as z157 } from "zod";
5155
- var StorybookPayload = z157.object({
5379
+ var StorybookEntry = z157.object({
5156
5380
  id: z157.string(),
5381
+ storyId: z157.string(),
5157
5382
  designSystemId: z157.string(),
5158
5383
  sourceId: z157.string(),
5159
- payload: z157.any(),
5384
+ aliases: z157.array(z157.string()).optional(),
5385
+ url: z157.string(),
5386
+ isDeleted: z157.boolean().optional(),
5387
+ origin: StorybookEntryOrigin,
5160
5388
  createdAt: z157.coerce.date(),
5161
5389
  updatedAt: z157.coerce.date()
5162
5390
  });
5163
5391
 
5164
- // src/dsm/version.ts
5392
+ // src/dsm/storybook-payload.ts
5165
5393
  import { z as z158 } from "zod";
5166
- var DesignSystemVersion = z158.object({
5167
- id: z158.string(),
5168
- version: z158.string(),
5169
- createdAt: z158.coerce.date(),
5170
- designSystemId: z158.string(),
5171
- name: z158.string(),
5172
- comment: z158.string(),
5173
- isReadonly: z158.boolean(),
5174
- changeLog: z158.string(),
5175
- parentId: z158.string().optional(),
5176
- isDraftsFeatureAdopted: z158.boolean()
5177
- });
5178
- var VersionCreationJobStatus = z158.enum(["Success", "InProgress", "Error"]);
5179
- var VersionCreationJob = z158.object({
5394
+ var StorybookPayload = z158.object({
5180
5395
  id: z158.string(),
5181
- version: z158.string(),
5182
5396
  designSystemId: z158.string(),
5183
- designSystemVersionId: nullishToOptional(z158.string()),
5397
+ sourceId: z158.string(),
5398
+ payload: z158.any(),
5399
+ createdAt: z158.coerce.date(),
5400
+ updatedAt: z158.coerce.date()
5401
+ });
5402
+
5403
+ // src/dsm/version.ts
5404
+ import { z as z159 } from "zod";
5405
+ var DesignSystemVersion = z159.object({
5406
+ id: z159.string(),
5407
+ version: z159.string(),
5408
+ createdAt: z159.coerce.date(),
5409
+ designSystemId: z159.string(),
5410
+ name: z159.string(),
5411
+ comment: z159.string(),
5412
+ isReadonly: z159.boolean(),
5413
+ changeLog: z159.string(),
5414
+ parentId: z159.string().optional(),
5415
+ isDraftsFeatureAdopted: z159.boolean()
5416
+ });
5417
+ var VersionCreationJobStatus = z159.enum(["Success", "InProgress", "Error"]);
5418
+ var VersionCreationJob = z159.object({
5419
+ id: z159.string(),
5420
+ version: z159.string(),
5421
+ designSystemId: z159.string(),
5422
+ designSystemVersionId: nullishToOptional(z159.string()),
5184
5423
  status: VersionCreationJobStatus,
5185
- errorMessage: nullishToOptional(z158.string())
5424
+ errorMessage: nullishToOptional(z159.string())
5186
5425
  });
5187
5426
 
5188
5427
  // src/export/export-destinations.ts
5189
5428
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
5190
5429
  var BITBUCKET_MAX_LENGTH = 64;
5191
- var ExportJobDocumentationChanges = z159.object({
5192
- pagePersistentIds: z159.string().array(),
5193
- groupPersistentIds: z159.string().array()
5430
+ var ExportJobDocumentationChanges = z160.object({
5431
+ pagePersistentIds: z160.string().array(),
5432
+ groupPersistentIds: z160.string().array()
5194
5433
  });
5195
- var ExporterDestinationDocs = z159.object({
5434
+ var ExporterDestinationDocs = z160.object({
5196
5435
  environment: PublishedDocEnvironment,
5197
5436
  changes: nullishToOptional(ExportJobDocumentationChanges)
5198
5437
  });
5199
- var GitCommonDestinationOptions = z159.object({
5200
- branch: z159.string(),
5201
- relativePath: nullishToOptional(z159.string()),
5202
- purgeDirectory: nullishToOptional(z159.boolean()),
5203
- commitAuthorName: nullishToOptional(z159.string()),
5204
- commitAuthorEmail: nullishToOptional(z159.string()),
5205
- commitMessage: nullishToOptional(z159.string()),
5206
- pullRequestTitle: nullishToOptional(z159.string()),
5207
- pullRequestDescription: nullishToOptional(z159.string())
5208
- });
5209
- var ExporterDestinationS3 = z159.object({});
5210
- var ExporterDestinationGithub = z159.object({
5211
- credentialId: z159.string().optional(),
5438
+ var GitCommonDestinationOptions = z160.object({
5439
+ branch: z160.string(),
5440
+ relativePath: nullishToOptional(z160.string()),
5441
+ purgeDirectory: nullishToOptional(z160.boolean()),
5442
+ commitAuthorName: nullishToOptional(z160.string()),
5443
+ commitAuthorEmail: nullishToOptional(z160.string()),
5444
+ commitMessage: nullishToOptional(z160.string()),
5445
+ pullRequestTitle: nullishToOptional(z160.string()),
5446
+ pullRequestDescription: nullishToOptional(z160.string())
5447
+ });
5448
+ var ExporterDestinationS3 = z160.object({});
5449
+ var ExporterDestinationGithub = z160.object({
5450
+ credentialId: z160.string().optional(),
5212
5451
  // Repository
5213
- url: z159.string(),
5452
+ url: z160.string(),
5214
5453
  // Legacy deprecated fields. Use `credentialId` instead
5215
- connectionId: nullishToOptional(z159.string()),
5216
- userId: nullishToOptional(z159.number())
5454
+ connectionId: nullishToOptional(z160.string()),
5455
+ userId: nullishToOptional(z160.number())
5217
5456
  }).extend(GitCommonDestinationOptions.shape);
5218
- var ExporterDestinationAzure = z159.object({
5219
- credentialId: z159.string().optional(),
5457
+ var ExporterDestinationAzure = z160.object({
5458
+ credentialId: z160.string().optional(),
5220
5459
  // Repository
5221
- organizationId: z159.string(),
5222
- projectId: z159.string(),
5223
- repositoryId: z159.string(),
5460
+ organizationId: z160.string(),
5461
+ projectId: z160.string(),
5462
+ repositoryId: z160.string(),
5224
5463
  // Maybe not needed
5225
- url: nullishToOptional(z159.string()),
5464
+ url: nullishToOptional(z160.string()),
5226
5465
  // Legacy deprecated fields. Use `credentialId` instead
5227
- connectionId: nullishToOptional(z159.string()),
5228
- userId: nullishToOptional(z159.number())
5466
+ connectionId: nullishToOptional(z160.string()),
5467
+ userId: nullishToOptional(z160.number())
5229
5468
  }).extend(GitCommonDestinationOptions.shape);
5230
- var ExporterDestinationGitlab = z159.object({
5231
- credentialId: z159.string().optional(),
5469
+ var ExporterDestinationGitlab = z160.object({
5470
+ credentialId: z160.string().optional(),
5232
5471
  // Repository
5233
- projectId: z159.string(),
5472
+ projectId: z160.string(),
5234
5473
  // Maybe not needed
5235
- url: nullishToOptional(z159.string()),
5474
+ url: nullishToOptional(z160.string()),
5236
5475
  // Legacy deprecated fields. Use `credentialId` instead
5237
- connectionId: nullishToOptional(z159.string()),
5238
- userId: nullishToOptional(z159.number())
5476
+ connectionId: nullishToOptional(z160.string()),
5477
+ userId: nullishToOptional(z160.number())
5239
5478
  }).extend(GitCommonDestinationOptions.shape);
5240
- var ExporterDestinationBitbucket = z159.object({
5241
- credentialId: z159.string().optional(),
5479
+ var ExporterDestinationBitbucket = z160.object({
5480
+ credentialId: z160.string().optional(),
5242
5481
  // Repository
5243
- workspaceSlug: z159.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5244
- projectKey: z159.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5245
- repoSlug: z159.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5246
- url: nullishToOptional(z159.string()),
5482
+ workspaceSlug: z160.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5483
+ projectKey: z160.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5484
+ repoSlug: z160.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5485
+ url: nullishToOptional(z160.string()),
5247
5486
  // Legacy deprecated fields. Use `credentialId` instead
5248
- connectionId: nullishToOptional(z159.string()),
5249
- userId: nullishToOptional(z159.number())
5487
+ connectionId: nullishToOptional(z160.string()),
5488
+ userId: nullishToOptional(z160.number())
5250
5489
  }).extend(GitCommonDestinationOptions.shape);
5251
- var ExportDestinationsMap = z159.object({
5252
- webhookUrl: z159.string().optional(),
5490
+ var ExportDestinationsMap = z160.object({
5491
+ webhookUrl: z160.string().optional(),
5253
5492
  destinationSnDocs: ExporterDestinationDocs.optional(),
5254
5493
  destinationS3: ExporterDestinationS3.optional(),
5255
5494
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -5257,8 +5496,8 @@ var ExportDestinationsMap = z159.object({
5257
5496
  destinationGitlab: ExporterDestinationGitlab.optional(),
5258
5497
  destinationBitbucket: ExporterDestinationBitbucket.optional()
5259
5498
  });
5260
- var ExportDestinationsMapUpdate = z159.object({
5261
- webhookUrl: z159.string().nullish(),
5499
+ var ExportDestinationsMapUpdate = z160.object({
5500
+ webhookUrl: z160.string().nullish(),
5262
5501
  destinationSnDocs: ExporterDestinationDocs.nullish(),
5263
5502
  destinationS3: ExporterDestinationS3.nullish(),
5264
5503
  destinationGithub: ExporterDestinationGithub.nullish(),
@@ -5268,120 +5507,120 @@ var ExportDestinationsMapUpdate = z159.object({
5268
5507
  });
5269
5508
 
5270
5509
  // src/export/pipeline.ts
5271
- var PipelineEventType = z160.enum([
5510
+ var PipelineEventType = z161.enum([
5272
5511
  "OnVersionReleased",
5273
5512
  "OnHeadChanged",
5274
5513
  "OnSourceUpdated",
5275
5514
  "OnDocumentationPublished",
5276
5515
  "None"
5277
5516
  ]);
5278
- var PipelineDestinationGitType = z160.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5279
- var PipelineDestinationExtraType = z160.enum(["WebhookUrl", "S3", "Documentation"]);
5280
- var PipelineDestinationType = z160.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5281
- var Pipeline = z160.object({
5282
- id: z160.string(),
5283
- name: z160.string(),
5517
+ var PipelineDestinationGitType = z161.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5518
+ var PipelineDestinationExtraType = z161.enum(["WebhookUrl", "S3", "Documentation"]);
5519
+ var PipelineDestinationType = z161.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5520
+ var Pipeline = z161.object({
5521
+ id: z161.string(),
5522
+ name: z161.string(),
5284
5523
  eventType: PipelineEventType,
5285
- isEnabled: z160.boolean(),
5286
- workspaceId: z160.string(),
5287
- designSystemId: z160.string(),
5288
- exporterId: z160.string(),
5289
- brandPersistentId: z160.string().optional(),
5290
- themePersistentId: z160.string().optional(),
5291
- themePersistentIds: z160.string().array().optional(),
5524
+ isEnabled: z161.boolean(),
5525
+ workspaceId: z161.string(),
5526
+ designSystemId: z161.string(),
5527
+ exporterId: z161.string(),
5528
+ brandPersistentId: z161.string().optional(),
5529
+ themePersistentId: z161.string().optional(),
5530
+ themePersistentIds: z161.string().array().optional(),
5292
5531
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5293
- isExporterDeprecated: z160.boolean(),
5532
+ isExporterDeprecated: z161.boolean(),
5294
5533
  // Destinations
5295
5534
  ...ExportDestinationsMap.shape
5296
5535
  });
5297
5536
 
5298
5537
  // src/data-dumps/code-integration-dump.ts
5299
- var ExportJobDump = z161.object({
5300
- id: z161.string(),
5301
- createdAt: z161.coerce.date(),
5302
- finishedAt: z161.coerce.date(),
5303
- exportArtefacts: z161.string()
5538
+ var ExportJobDump = z162.object({
5539
+ id: z162.string(),
5540
+ createdAt: z162.coerce.date(),
5541
+ finishedAt: z162.coerce.date(),
5542
+ exportArtefacts: z162.string()
5304
5543
  });
5305
- var CodeIntegrationDump = z161.object({
5544
+ var CodeIntegrationDump = z162.object({
5306
5545
  exporters: Exporter.array(),
5307
5546
  pipelines: Pipeline.array(),
5308
5547
  exportJobs: ExportJobDump.array()
5309
5548
  });
5310
5549
 
5311
5550
  // src/data-dumps/design-system-dump.ts
5312
- import { z as z168 } from "zod";
5551
+ import { z as z169 } from "zod";
5313
5552
 
5314
5553
  // src/data-dumps/design-system-version-dump.ts
5315
- import { z as z167 } from "zod";
5554
+ import { z as z168 } from "zod";
5316
5555
 
5317
5556
  // src/liveblocks/rooms/design-system-version-room.ts
5318
- import { z as z162 } from "zod";
5557
+ import { z as z163 } from "zod";
5319
5558
  var DesignSystemVersionRoom = Entity.extend({
5320
- designSystemVersionId: z162.string(),
5321
- liveblocksId: z162.string()
5322
- });
5323
- var DesignSystemVersionRoomInternalSettings = z162.object({
5324
- routingVersion: z162.string(),
5325
- isDraftFeatureAdopted: z162.boolean(),
5326
- isApprovalFeatureEnabled: z162.boolean(),
5327
- approvalRequiredForPublishing: z162.boolean()
5328
- });
5329
- var DesignSystemVersionRoomInitialState = z162.object({
5330
- pages: z162.array(DocumentationPageV2),
5331
- groups: z162.array(ElementGroup),
5332
- pageSnapshots: z162.array(DocumentationPageSnapshot),
5333
- groupSnapshots: z162.array(ElementGroupSnapshot),
5334
- pageApprovals: z162.array(DocumentationPageApproval),
5559
+ designSystemVersionId: z163.string(),
5560
+ liveblocksId: z163.string()
5561
+ });
5562
+ var DesignSystemVersionRoomInternalSettings = z163.object({
5563
+ routingVersion: z163.string(),
5564
+ isDraftFeatureAdopted: z163.boolean(),
5565
+ isApprovalFeatureEnabled: z163.boolean(),
5566
+ approvalRequiredForPublishing: z163.boolean()
5567
+ });
5568
+ var DesignSystemVersionRoomInitialState = z163.object({
5569
+ pages: z163.array(DocumentationPageV2),
5570
+ groups: z163.array(ElementGroup),
5571
+ pageSnapshots: z163.array(DocumentationPageSnapshot),
5572
+ groupSnapshots: z163.array(ElementGroupSnapshot),
5573
+ pageApprovals: z163.array(DocumentationPageApproval),
5335
5574
  internalSettings: DesignSystemVersionRoomInternalSettings,
5336
- pageHashes: z162.record(z162.string()).optional()
5337
- });
5338
- var DesignSystemVersionRoomUpdate = z162.object({
5339
- pages: z162.array(DocumentationPageV2),
5340
- groups: z162.array(ElementGroup),
5341
- pageIdsToDelete: z162.array(z162.string()),
5342
- groupIdsToDelete: z162.array(z162.string()),
5343
- pageSnapshots: z162.array(DocumentationPageSnapshot),
5344
- groupSnapshots: z162.array(ElementGroupSnapshot),
5345
- pageSnapshotIdsToDelete: z162.array(z162.string()),
5346
- groupSnapshotIdsToDelete: z162.array(z162.string()),
5347
- pageHashesToUpdate: z162.record(z162.string(), z162.string()),
5348
- pageApprovals: z162.array(DocumentationPageApproval),
5349
- pageApprovalIdsToDelete: z162.array(z162.string()),
5350
- executedTransactionIds: z162.array(z162.string())
5575
+ pageHashes: z163.record(z163.string()).optional()
5576
+ });
5577
+ var DesignSystemVersionRoomUpdate = z163.object({
5578
+ pages: z163.array(DocumentationPageV2),
5579
+ groups: z163.array(ElementGroup),
5580
+ pageIdsToDelete: z163.array(z163.string()),
5581
+ groupIdsToDelete: z163.array(z163.string()),
5582
+ pageSnapshots: z163.array(DocumentationPageSnapshot),
5583
+ groupSnapshots: z163.array(ElementGroupSnapshot),
5584
+ pageSnapshotIdsToDelete: z163.array(z163.string()),
5585
+ groupSnapshotIdsToDelete: z163.array(z163.string()),
5586
+ pageHashesToUpdate: z163.record(z163.string(), z163.string()),
5587
+ pageApprovals: z163.array(DocumentationPageApproval),
5588
+ pageApprovalIdsToDelete: z163.array(z163.string()),
5589
+ executedTransactionIds: z163.array(z163.string())
5351
5590
  });
5352
5591
 
5353
5592
  // src/liveblocks/rooms/documentation-page-room.ts
5354
- import { z as z163 } from "zod";
5593
+ import { z as z164 } from "zod";
5355
5594
  var DocumentationPageRoom = Entity.extend({
5356
- designSystemVersionId: z163.string(),
5357
- documentationPageId: z163.string(),
5358
- liveblocksId: z163.string(),
5359
- isDirty: z163.boolean()
5595
+ designSystemVersionId: z164.string(),
5596
+ documentationPageId: z164.string(),
5597
+ liveblocksId: z164.string(),
5598
+ isDirty: z164.boolean()
5360
5599
  });
5361
- var DocumentationPageRoomState = z163.object({
5362
- pageItems: z163.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
5600
+ var DocumentationPageRoomState = z164.object({
5601
+ pageItems: z164.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
5363
5602
  });
5364
- var DocumentationPageRoomRoomUpdate = z163.object({
5603
+ var DocumentationPageRoomRoomUpdate = z164.object({
5365
5604
  page: DocumentationPageV2,
5366
5605
  pageParent: ElementGroup
5367
5606
  });
5368
5607
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
5369
- pageItems: z163.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5370
- blockDefinitions: z163.array(PageBlockDefinition)
5608
+ pageItems: z164.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5609
+ blockDefinitions: z164.array(PageBlockDefinition)
5371
5610
  });
5372
- var RestoredDocumentationPage = z163.object({
5611
+ var RestoredDocumentationPage = z164.object({
5373
5612
  page: DocumentationPageV2,
5374
5613
  pageParent: ElementGroup,
5375
5614
  pageContent: DocumentationPageContentData,
5376
- contentHash: z163.string()
5615
+ contentHash: z164.string()
5377
5616
  });
5378
- var RestoredDocumentationGroup = z163.object({
5617
+ var RestoredDocumentationGroup = z164.object({
5379
5618
  group: ElementGroup,
5380
5619
  parent: ElementGroup
5381
5620
  });
5382
5621
 
5383
5622
  // src/liveblocks/rooms/room-type.ts
5384
- import { z as z164 } from "zod";
5623
+ import { z as z165 } from "zod";
5385
5624
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5386
5625
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
5387
5626
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -5389,36 +5628,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5389
5628
  RoomTypeEnum2["Workspace"] = "workspace";
5390
5629
  return RoomTypeEnum2;
5391
5630
  })(RoomTypeEnum || {});
5392
- var RoomTypeSchema = z164.nativeEnum(RoomTypeEnum);
5631
+ var RoomTypeSchema = z165.nativeEnum(RoomTypeEnum);
5393
5632
  var RoomType = RoomTypeSchema.enum;
5394
5633
 
5395
5634
  // src/liveblocks/rooms/workspace-room.ts
5396
- import { z as z165 } from "zod";
5635
+ import { z as z166 } from "zod";
5397
5636
  var WorkspaceRoom = Entity.extend({
5398
- workspaceId: z165.string(),
5399
- liveblocksId: z165.string()
5637
+ workspaceId: z166.string(),
5638
+ liveblocksId: z166.string()
5400
5639
  });
5401
5640
 
5402
5641
  // src/data-dumps/published-docs-dump.ts
5403
- import { z as z166 } from "zod";
5404
- var PublishedDocsDump = z166.object({
5642
+ import { z as z167 } from "zod";
5643
+ var PublishedDocsDump = z167.object({
5405
5644
  documentation: PublishedDoc,
5406
5645
  pages: PublishedDocPage.array()
5407
5646
  });
5408
5647
 
5409
5648
  // src/data-dumps/design-system-version-dump.ts
5410
- var DocumentationThreadDump = z167.object({
5649
+ var DocumentationThreadDump = z168.object({
5411
5650
  thread: DocumentationCommentThread,
5412
5651
  comments: DocumentationComment.array()
5413
5652
  });
5414
- var DocumentationPageRoomDump = z167.object({
5653
+ var DocumentationPageRoomDump = z168.object({
5415
5654
  room: DocumentationPageRoom,
5416
5655
  threads: DocumentationThreadDump.array()
5417
5656
  });
5418
- var DesignSystemVersionMultiplayerDump = z167.object({
5657
+ var DesignSystemVersionMultiplayerDump = z168.object({
5419
5658
  documentationPages: DocumentationPageRoomDump.array()
5420
5659
  });
5421
- var DesignSystemVersionDump = z167.object({
5660
+ var DesignSystemVersionDump = z168.object({
5422
5661
  version: DesignSystemVersion,
5423
5662
  brands: Brand.array(),
5424
5663
  elements: DesignElement.array(),
@@ -5433,7 +5672,7 @@ var DesignSystemVersionDump = z167.object({
5433
5672
  });
5434
5673
 
5435
5674
  // src/data-dumps/design-system-dump.ts
5436
- var DesignSystemDump = z168.object({
5675
+ var DesignSystemDump = z169.object({
5437
5676
  designSystem: DesignSystem,
5438
5677
  dataSources: DataSource.array(),
5439
5678
  versions: DesignSystemVersionDump.array(),
@@ -5442,50 +5681,50 @@ var DesignSystemDump = z168.object({
5442
5681
  });
5443
5682
 
5444
5683
  // src/data-dumps/user-data-dump.ts
5445
- import { z as z171 } from "zod";
5684
+ import { z as z172 } from "zod";
5446
5685
 
5447
5686
  // src/data-dumps/workspace-dump.ts
5448
- import { z as z170 } from "zod";
5687
+ import { z as z171 } from "zod";
5449
5688
 
5450
5689
  // src/integrations/integration.ts
5451
- import { z as z169 } from "zod";
5452
- var IntegrationDesignSystem = z169.object({
5453
- designSystemId: z169.string(),
5454
- brandId: z169.string(),
5455
- title: z169.string().optional(),
5456
- userId: z169.string().optional(),
5457
- date: z169.coerce.date().optional()
5458
- });
5459
- var IntegrationCredentialsType = z169.enum(["OAuth2", "PAT"]);
5460
- var IntegrationCredentialsState = z169.enum(["Active", "Inactive"]);
5461
- var IntegrationCredentialsProfile = z169.object({
5462
- id: nullishToOptional(z169.string()),
5463
- email: nullishToOptional(z169.string()),
5464
- handle: nullishToOptional(z169.string()),
5465
- type: nullishToOptional(z169.string()),
5466
- avatarUrl: nullishToOptional(z169.string()),
5467
- organization: nullishToOptional(z169.string()),
5468
- collection: nullishToOptional(z169.string())
5469
- });
5470
- var IntegrationCredentials = z169.object({
5471
- id: z169.string(),
5690
+ import { z as z170 } from "zod";
5691
+ var IntegrationDesignSystem = z170.object({
5692
+ designSystemId: z170.string(),
5693
+ brandId: z170.string(),
5694
+ title: z170.string().optional(),
5695
+ userId: z170.string().optional(),
5696
+ date: z170.coerce.date().optional()
5697
+ });
5698
+ var IntegrationCredentialsType = z170.enum(["OAuth2", "PAT"]);
5699
+ var IntegrationCredentialsState = z170.enum(["Active", "Inactive"]);
5700
+ var IntegrationCredentialsProfile = z170.object({
5701
+ id: nullishToOptional(z170.string()),
5702
+ email: nullishToOptional(z170.string()),
5703
+ handle: nullishToOptional(z170.string()),
5704
+ type: nullishToOptional(z170.string()),
5705
+ avatarUrl: nullishToOptional(z170.string()),
5706
+ organization: nullishToOptional(z170.string()),
5707
+ collection: nullishToOptional(z170.string())
5708
+ });
5709
+ var IntegrationCredentials = z170.object({
5710
+ id: z170.string(),
5472
5711
  type: IntegrationCredentialsType,
5473
- integrationId: z169.string(),
5474
- accessToken: z169.string(),
5475
- userId: z169.string(),
5476
- createdAt: z169.coerce.date(),
5477
- refreshToken: z169.string().optional(),
5478
- tokenName: z169.string().optional(),
5479
- expiresAt: z169.coerce.date().optional(),
5480
- refreshedAt: z169.coerce.date().optional(),
5481
- username: z169.string().optional(),
5482
- appInstallationId: z169.string().optional(),
5712
+ integrationId: z170.string(),
5713
+ accessToken: z170.string(),
5714
+ userId: z170.string(),
5715
+ createdAt: z170.coerce.date(),
5716
+ refreshToken: z170.string().optional(),
5717
+ tokenName: z170.string().optional(),
5718
+ expiresAt: z170.coerce.date().optional(),
5719
+ refreshedAt: z170.coerce.date().optional(),
5720
+ username: z170.string().optional(),
5721
+ appInstallationId: z170.string().optional(),
5483
5722
  profile: IntegrationCredentialsProfile.optional(),
5484
- customUrl: z169.string().optional(),
5723
+ customUrl: z170.string().optional(),
5485
5724
  state: IntegrationCredentialsState,
5486
5725
  user: UserMinified.optional()
5487
5726
  });
5488
- var ExtendedIntegrationType = z169.enum([
5727
+ var ExtendedIntegrationType = z170.enum([
5489
5728
  "Figma",
5490
5729
  "Github",
5491
5730
  "Gitlab",
@@ -5496,26 +5735,26 @@ var ExtendedIntegrationType = z169.enum([
5496
5735
  ]);
5497
5736
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5498
5737
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5499
- var Integration = z169.object({
5500
- id: z169.string(),
5501
- workspaceId: z169.string(),
5738
+ var Integration = z170.object({
5739
+ id: z170.string(),
5740
+ workspaceId: z170.string(),
5502
5741
  type: IntegrationType,
5503
- createdAt: z169.coerce.date(),
5504
- integrationCredentials: z169.array(IntegrationCredentials).optional()
5505
- });
5506
- var IntegrationToken = z169.object({
5507
- access_token: z169.string(),
5508
- refresh_token: z169.string().optional(),
5509
- expires_in: z169.union([z169.number().optional(), z169.string().optional()]),
5510
- token_type: z169.string().optional(),
5511
- token_name: z169.string().optional(),
5512
- token_azure_organization_name: z169.string().optional(),
5742
+ createdAt: z170.coerce.date(),
5743
+ integrationCredentials: z170.array(IntegrationCredentials).optional()
5744
+ });
5745
+ var IntegrationToken = z170.object({
5746
+ access_token: z170.string(),
5747
+ refresh_token: z170.string().optional(),
5748
+ expires_in: z170.union([z170.number().optional(), z170.string().optional()]),
5749
+ token_type: z170.string().optional(),
5750
+ token_name: z170.string().optional(),
5751
+ token_azure_organization_name: z170.string().optional(),
5513
5752
  // Azure Cloud PAT only
5514
- token_azure_collection_name: z169.string().optional(),
5753
+ token_azure_collection_name: z170.string().optional(),
5515
5754
  // Azure Server PAT only
5516
- token_bitbucket_username: z169.string().optional(),
5755
+ token_bitbucket_username: z170.string().optional(),
5517
5756
  // Bitbucket only
5518
- custom_url: z169.string().optional().transform((value) => {
5757
+ custom_url: z170.string().optional().transform((value) => {
5519
5758
  if (!value?.trim()) return void 0;
5520
5759
  return formatCustomUrl(value);
5521
5760
  })
@@ -5552,7 +5791,7 @@ function formatCustomUrl(url) {
5552
5791
  }
5553
5792
 
5554
5793
  // src/data-dumps/workspace-dump.ts
5555
- var WorkspaceDump = z170.object({
5794
+ var WorkspaceDump = z171.object({
5556
5795
  workspace: Workspace,
5557
5796
  designSystems: DesignSystemDump.array(),
5558
5797
  codeIntegration: CodeIntegrationDump,
@@ -5560,148 +5799,148 @@ var WorkspaceDump = z170.object({
5560
5799
  });
5561
5800
 
5562
5801
  // src/data-dumps/user-data-dump.ts
5563
- var UserDump = z171.object({
5802
+ var UserDump = z172.object({
5564
5803
  user: User,
5565
5804
  workspaces: WorkspaceDump.array()
5566
5805
  });
5567
5806
 
5568
5807
  // src/docs-server/session.ts
5569
- import { z as z172 } from "zod";
5570
- var NpmProxyToken = z172.object({
5571
- access: z172.string(),
5572
- expiresAt: z172.number()
5808
+ import { z as z173 } from "zod";
5809
+ var NpmProxyToken = z173.object({
5810
+ access: z173.string(),
5811
+ expiresAt: z173.number()
5573
5812
  });
5574
- var SessionData = z172.object({
5575
- returnToUrl: z172.string().optional(),
5813
+ var SessionData = z173.object({
5814
+ returnToUrl: z173.string().optional(),
5576
5815
  npmProxyToken: NpmProxyToken.optional()
5577
5816
  });
5578
- var Session = z172.object({
5579
- id: z172.string(),
5580
- expiresAt: z172.coerce.date(),
5581
- userId: z172.string().nullable(),
5582
- anonymousId: z172.string().nullable(),
5817
+ var Session = z173.object({
5818
+ id: z173.string(),
5819
+ expiresAt: z173.coerce.date(),
5820
+ userId: z173.string().nullable(),
5821
+ anonymousId: z173.string().nullable(),
5583
5822
  data: SessionData
5584
5823
  });
5585
- var AuthTokens = z172.object({
5586
- access: z172.string(),
5587
- refresh: z172.string()
5824
+ var AuthTokens = z173.object({
5825
+ access: z173.string(),
5826
+ refresh: z173.string()
5588
5827
  });
5589
- var UserSession = z172.object({
5828
+ var UserSession = z173.object({
5590
5829
  session: Session,
5591
5830
  user: User.nullable()
5592
5831
  });
5593
5832
 
5594
5833
  // src/emails/design-system-invite.ts
5595
- import { z as z173 } from "zod";
5596
- var DesignSystemInviteEmailRecipient = z173.object({
5597
- email: z173.string(),
5834
+ import { z as z174 } from "zod";
5835
+ var DesignSystemInviteEmailRecipient = z174.object({
5836
+ email: z174.string(),
5598
5837
  role: WorkspaceRoleSchema
5599
5838
  });
5600
- var DesignSystemInviteEmailData = z173.object({
5839
+ var DesignSystemInviteEmailData = z174.object({
5601
5840
  workspace: Workspace,
5602
5841
  designSystem: DesignSystem,
5603
5842
  invitedBy: User,
5604
- documentationDomain: z173.string().optional()
5843
+ documentationDomain: z174.string().optional()
5605
5844
  });
5606
5845
 
5607
5846
  // src/emails/workspace-invite.ts
5608
- import { z as z174 } from "zod";
5609
- var WorkspaceInviteEmailRecipient = z174.object({
5610
- email: z174.string(),
5847
+ import { z as z175 } from "zod";
5848
+ var WorkspaceInviteEmailRecipient = z175.object({
5849
+ email: z175.string(),
5611
5850
  role: WorkspaceRoleSchema
5612
5851
  });
5613
- var WorkspaceInviteEmailData = z174.object({
5852
+ var WorkspaceInviteEmailData = z175.object({
5614
5853
  workspace: Workspace,
5615
5854
  invitedBy: User,
5616
- documentationDomain: z174.string().optional()
5855
+ documentationDomain: z175.string().optional()
5617
5856
  });
5618
5857
 
5619
5858
  // src/events/base.ts
5620
- import { z as z178 } from "zod";
5859
+ import { z as z179 } from "zod";
5621
5860
 
5622
5861
  // src/events/data-source-imported.ts
5623
- import { z as z175 } from "zod";
5624
- var EventDataSourceImported = z175.object({
5625
- type: z175.literal("DataSourceImported"),
5626
- workspaceId: z175.string(),
5627
- designSystemId: z175.string()
5628
- });
5629
-
5630
- // src/events/version-released.ts
5631
5862
  import { z as z176 } from "zod";
5632
- var EventVersionReleased = z176.object({
5633
- type: z176.literal("DesignSystemVersionReleased"),
5863
+ var EventDataSourceImported = z176.object({
5864
+ type: z176.literal("DataSourceImported"),
5634
5865
  workspaceId: z176.string(),
5635
- designSystemId: z176.string(),
5636
- versionId: z176.string()
5866
+ designSystemId: z176.string()
5637
5867
  });
5638
5868
 
5639
- // src/events/documentation-published.ts
5869
+ // src/events/version-released.ts
5640
5870
  import { z as z177 } from "zod";
5641
- var EventDocumentationPublished = z177.object({
5642
- type: z177.literal("DocumentationPublished"),
5871
+ var EventVersionReleased = z177.object({
5872
+ type: z177.literal("DesignSystemVersionReleased"),
5643
5873
  workspaceId: z177.string(),
5644
5874
  designSystemId: z177.string(),
5645
5875
  versionId: z177.string()
5646
5876
  });
5647
5877
 
5878
+ // src/events/documentation-published.ts
5879
+ import { z as z178 } from "zod";
5880
+ var EventDocumentationPublished = z178.object({
5881
+ type: z178.literal("DocumentationPublished"),
5882
+ workspaceId: z178.string(),
5883
+ designSystemId: z178.string(),
5884
+ versionId: z178.string()
5885
+ });
5886
+
5648
5887
  // src/events/base.ts
5649
- var Event = z178.discriminatedUnion("type", [
5888
+ var Event = z179.discriminatedUnion("type", [
5650
5889
  EventVersionReleased,
5651
5890
  EventDataSourceImported,
5652
5891
  EventDocumentationPublished
5653
5892
  ]);
5654
5893
 
5655
5894
  // src/export/export-runner/export-context.ts
5656
- import { z as z179 } from "zod";
5657
- var ExportJobDocumentationContext = z179.object({
5658
- isSingleVersionDocs: z179.boolean(),
5659
- versionSlug: z179.string(),
5895
+ import { z as z180 } from "zod";
5896
+ var ExportJobDocumentationContext = z180.object({
5897
+ isSingleVersionDocs: z180.boolean(),
5898
+ versionSlug: z180.string(),
5660
5899
  environment: PublishedDocEnvironment
5661
5900
  });
5662
- var ExportJobDebugContext = z179.object({
5663
- debugMode: z179.boolean().optional(),
5664
- concurrency: z179.number().optional(),
5665
- preloadData: z179.string().optional(),
5666
- concurrencyMode: z179.string().optional(),
5667
- cacheSdk: z179.string().optional(),
5668
- logSdkNetwork: z179.boolean().optional(),
5669
- profilerMode: z179.string().optional()
5670
- });
5671
- var ExportJobContext = z179.object({
5672
- apiUrl: z179.string(),
5673
- accessToken: z179.string(),
5674
- designSystemId: z179.string(),
5675
- designSystemName: z179.string(),
5676
- exporterId: z179.string(),
5677
- versionId: z179.string(),
5678
- brandId: z179.string().optional(),
5679
- themeId: z179.string().optional(),
5680
- themePersistentIds: z179.string().array().optional(),
5681
- previewMode: z179.boolean().optional(),
5682
- exporterName: z179.string(),
5901
+ var ExportJobDebugContext = z180.object({
5902
+ debugMode: z180.boolean().optional(),
5903
+ concurrency: z180.number().optional(),
5904
+ preloadData: z180.string().optional(),
5905
+ concurrencyMode: z180.string().optional(),
5906
+ cacheSdk: z180.string().optional(),
5907
+ logSdkNetwork: z180.boolean().optional(),
5908
+ profilerMode: z180.string().optional()
5909
+ });
5910
+ var ExportJobContext = z180.object({
5911
+ apiUrl: z180.string(),
5912
+ accessToken: z180.string(),
5913
+ designSystemId: z180.string(),
5914
+ designSystemName: z180.string(),
5915
+ exporterId: z180.string(),
5916
+ versionId: z180.string(),
5917
+ brandId: z180.string().optional(),
5918
+ themeId: z180.string().optional(),
5919
+ themePersistentIds: z180.string().array().optional(),
5920
+ previewMode: z180.boolean().optional(),
5921
+ exporterName: z180.string(),
5683
5922
  documentation: ExportJobDocumentationContext.optional(),
5684
5923
  debug: ExportJobDebugContext.optional()
5685
5924
  });
5686
- var ExportJobExporterConfiguration = z179.object({
5687
- exporterPackageUrl: z179.string(),
5925
+ var ExportJobExporterConfiguration = z180.object({
5926
+ exporterPackageUrl: z180.string(),
5688
5927
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
5689
5928
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
5690
5929
  });
5691
5930
 
5692
5931
  // src/export/export-runner/exporter-payload.ts
5693
- import { z as z180 } from "zod";
5694
- var ExporterFunctionPayload = z180.object({
5695
- exportJobId: z180.string(),
5696
- exportContextId: z180.string(),
5697
- designSystemId: z180.string(),
5698
- workspaceId: z180.string(),
5699
- exporterId: z180.string()
5932
+ import { z as z181 } from "zod";
5933
+ var ExporterFunctionPayload = z181.object({
5934
+ exportJobId: z181.string(),
5935
+ exportContextId: z181.string(),
5936
+ designSystemId: z181.string(),
5937
+ workspaceId: z181.string(),
5938
+ exporterId: z181.string()
5700
5939
  });
5701
5940
 
5702
5941
  // src/export/export-jobs.ts
5703
- import { z as z181 } from "zod";
5704
- var ExportJobDestinationType = z181.enum([
5942
+ import { z as z182 } from "zod";
5943
+ var ExportJobDestinationType = z182.enum([
5705
5944
  "s3",
5706
5945
  "webhookUrl",
5707
5946
  "github",
@@ -5710,30 +5949,30 @@ var ExportJobDestinationType = z181.enum([
5710
5949
  "gitlab",
5711
5950
  "bitbucket"
5712
5951
  ]);
5713
- var ExportJobStatus = z181.enum(["InProgress", "Success", "Failed", "Timeout"]);
5714
- var ExportJobLogEntryType = z181.enum(["success", "info", "warning", "error", "user"]);
5715
- var ExportJobLogEntry = z181.object({
5716
- id: z181.string().optional(),
5717
- time: z181.coerce.date(),
5952
+ var ExportJobStatus = z182.enum(["InProgress", "Success", "Failed", "Timeout"]);
5953
+ var ExportJobLogEntryType = z182.enum(["success", "info", "warning", "error", "user"]);
5954
+ var ExportJobLogEntry = z182.object({
5955
+ id: z182.string().optional(),
5956
+ time: z182.coerce.date(),
5718
5957
  type: ExportJobLogEntryType,
5719
- message: z181.string()
5958
+ message: z182.string()
5720
5959
  });
5721
- var ExportJobPullRequestDestinationResult = z181.object({
5722
- pullRequestUrl: z181.string()
5960
+ var ExportJobPullRequestDestinationResult = z182.object({
5961
+ pullRequestUrl: z182.string()
5723
5962
  });
5724
- var ExportJobS3DestinationResult = z181.object({
5725
- bucket: z181.string(),
5726
- urlPrefix: z181.string().optional(),
5727
- path: z181.string(),
5728
- files: z181.array(z181.string()),
5729
- url: nullishToOptional(z181.string()),
5730
- urls: nullishToOptional(z181.string().array())
5963
+ var ExportJobS3DestinationResult = z182.object({
5964
+ bucket: z182.string(),
5965
+ urlPrefix: z182.string().optional(),
5966
+ path: z182.string(),
5967
+ files: z182.array(z182.string()),
5968
+ url: nullishToOptional(z182.string()),
5969
+ urls: nullishToOptional(z182.string().array())
5731
5970
  });
5732
- var ExportJobDocsDestinationResult = z181.object({
5733
- url: z181.string()
5971
+ var ExportJobDocsDestinationResult = z182.object({
5972
+ url: z182.string()
5734
5973
  });
5735
- var ExportJobResult = z181.object({
5736
- error: z181.string().optional(),
5974
+ var ExportJobResult = z182.object({
5975
+ error: z182.string().optional(),
5737
5976
  s3: nullishToOptional(ExportJobS3DestinationResult),
5738
5977
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5739
5978
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5742,25 +5981,25 @@ var ExportJobResult = z181.object({
5742
5981
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5743
5982
  logs: nullishToOptional(ExportJobLogEntry.array())
5744
5983
  });
5745
- var ExportJob = z181.object({
5746
- id: z181.string(),
5747
- createdAt: z181.coerce.date(),
5748
- finishedAt: z181.coerce.date().optional(),
5749
- designSystemId: z181.string(),
5750
- designSystemVersionId: z181.string(),
5751
- workspaceId: z181.string(),
5752
- scheduleId: z181.string().nullish(),
5753
- exporterId: z181.string(),
5754
- brandId: z181.string().optional(),
5755
- themeId: z181.string().optional(),
5756
- themePersistentIds: z181.string().array().optional(),
5757
- estimatedExecutionTime: z181.number().optional(),
5984
+ var ExportJob = z182.object({
5985
+ id: z182.string(),
5986
+ createdAt: z182.coerce.date(),
5987
+ finishedAt: z182.coerce.date().optional(),
5988
+ designSystemId: z182.string(),
5989
+ designSystemVersionId: z182.string(),
5990
+ workspaceId: z182.string(),
5991
+ scheduleId: z182.string().nullish(),
5992
+ exporterId: z182.string(),
5993
+ brandId: z182.string().optional(),
5994
+ themeId: z182.string().optional(),
5995
+ themePersistentIds: z182.string().array().optional(),
5996
+ estimatedExecutionTime: z182.number().optional(),
5758
5997
  status: ExportJobStatus,
5759
5998
  result: ExportJobResult.optional(),
5760
- createdByUserId: z181.string().optional(),
5999
+ createdByUserId: z182.string().optional(),
5761
6000
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5762
- previewMode: z181.boolean().optional(),
5763
- exportContextId: z181.string().optional().nullable(),
6001
+ previewMode: z182.boolean().optional(),
6002
+ exportContextId: z182.string().optional().nullable(),
5764
6003
  // Destinations
5765
6004
  ...ExportDestinationsMap.shape
5766
6005
  });
@@ -5774,36 +6013,36 @@ var ExportJobFindByFilter = ExportJob.pick({
5774
6013
  themeId: true,
5775
6014
  brandId: true
5776
6015
  }).extend({
5777
- destinations: z181.array(ExportJobDestinationType),
6016
+ destinations: z182.array(ExportJobDestinationType),
5778
6017
  docsEnvironment: PublishedDocEnvironment
5779
6018
  }).partial();
5780
6019
 
5781
6020
  // src/export/exporter-list-query.ts
5782
- import { z as z182 } from "zod";
5783
- var ExporterType2 = z182.enum(["documentation", "code"]);
5784
- var ListExporterQuery = z182.object({
5785
- limit: z182.number().optional(),
5786
- offset: z182.number().optional(),
6021
+ import { z as z183 } from "zod";
6022
+ var ExporterType2 = z183.enum(["documentation", "code"]);
6023
+ var ListExporterQuery = z183.object({
6024
+ limit: z183.number().optional(),
6025
+ offset: z183.number().optional(),
5787
6026
  type: ExporterType2.optional(),
5788
- search: z182.string().optional()
6027
+ search: z183.string().optional()
5789
6028
  });
5790
6029
 
5791
6030
  // src/export/exporter-workspace-membership-role.ts
5792
- import { z as z183 } from "zod";
5793
- var ExporterWorkspaceMembershipRole = z183.enum(["Owner", "OwnerArchived", "User"]);
6031
+ import { z as z184 } from "zod";
6032
+ var ExporterWorkspaceMembershipRole = z184.enum(["Owner", "OwnerArchived", "User"]);
5794
6033
 
5795
6034
  // src/export/exporter-workspace-membership.ts
5796
- import { z as z184 } from "zod";
5797
- var ExporterWorkspaceMembership = z184.object({
5798
- id: z184.string(),
5799
- workspaceId: z184.string(),
5800
- exporterId: z184.string(),
6035
+ import { z as z185 } from "zod";
6036
+ var ExporterWorkspaceMembership = z185.object({
6037
+ id: z185.string(),
6038
+ workspaceId: z185.string(),
6039
+ exporterId: z185.string(),
5801
6040
  role: ExporterWorkspaceMembershipRole
5802
6041
  });
5803
6042
 
5804
6043
  // src/feature-flags/feature-flags.ts
5805
- import { z as z185 } from "zod";
5806
- var FlaggedFeature = z185.enum([
6044
+ import { z as z186 } from "zod";
6045
+ var FlaggedFeature = z186.enum([
5807
6046
  "FigmaImporterV2",
5808
6047
  "DisableImporter",
5809
6048
  "VariablesOrder",
@@ -5821,21 +6060,21 @@ var FlaggedFeature = z185.enum([
5821
6060
  "PulsarConcurrency",
5822
6061
  "PulsarProfilerMode"
5823
6062
  ]);
5824
- var FeatureFlagMap = z185.record(FlaggedFeature, z185.boolean());
5825
- var FeatureFlag = z185.object({
5826
- id: z185.string(),
6063
+ var FeatureFlagMap = z186.record(FlaggedFeature, z186.boolean());
6064
+ var FeatureFlag = z186.object({
6065
+ id: z186.string(),
5827
6066
  feature: FlaggedFeature,
5828
- createdAt: z185.coerce.date(),
5829
- enabled: z185.boolean(),
5830
- designSystemId: z185.string().optional(),
5831
- data: z185.record(z185.any()).nullable().optional()
6067
+ createdAt: z186.coerce.date(),
6068
+ enabled: z186.boolean(),
6069
+ designSystemId: z186.string().optional(),
6070
+ data: z186.record(z186.any()).nullable().optional()
5832
6071
  });
5833
6072
 
5834
6073
  // src/integrations/external-oauth-request.ts
5835
- import { z as z187 } from "zod";
6074
+ import { z as z188 } from "zod";
5836
6075
 
5837
6076
  // src/integrations/oauth-providers.ts
5838
- import { z as z186 } from "zod";
6077
+ import { z as z187 } from "zod";
5839
6078
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5840
6079
  OAuthProviderNames2["Figma"] = "figma";
5841
6080
  OAuthProviderNames2["Azure"] = "azure";
@@ -5844,128 +6083,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5844
6083
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5845
6084
  return OAuthProviderNames2;
5846
6085
  })(OAuthProviderNames || {});
5847
- var OAuthProviderSchema = z186.nativeEnum(OAuthProviderNames);
6086
+ var OAuthProviderSchema = z187.nativeEnum(OAuthProviderNames);
5848
6087
  var OAuthProvider = OAuthProviderSchema.enum;
5849
6088
 
5850
6089
  // src/integrations/external-oauth-request.ts
5851
- var ExternalOAuthRequest = z187.object({
5852
- id: z187.string(),
6090
+ var ExternalOAuthRequest = z188.object({
6091
+ id: z188.string(),
5853
6092
  provider: OAuthProviderSchema,
5854
- userId: z187.string(),
5855
- state: z187.string(),
5856
- createdAt: z187.coerce.date()
6093
+ userId: z188.string(),
6094
+ state: z188.string(),
6095
+ createdAt: z188.coerce.date()
5857
6096
  });
5858
6097
 
5859
6098
  // src/integrations/git.ts
5860
- import { z as z188 } from "zod";
5861
- var GitObjectsQuery = z188.object({
5862
- organization: z188.string().optional(),
6099
+ import { z as z189 } from "zod";
6100
+ var GitObjectsQuery = z189.object({
6101
+ organization: z189.string().optional(),
5863
6102
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5864
- project: z188.string().optional(),
6103
+ project: z189.string().optional(),
5865
6104
  // Only for Bitbucket and Azure
5866
- repository: z188.string().optional(),
6105
+ repository: z189.string().optional(),
5867
6106
  // For all providers. For Gitlab, it's called "project".
5868
- branch: z188.string().optional(),
6107
+ branch: z189.string().optional(),
5869
6108
  // For all providers.
5870
- user: z188.string().optional()
6109
+ user: z189.string().optional()
5871
6110
  // Gitlab user
5872
6111
  });
5873
- var GitOrganization = z188.object({
5874
- id: z188.string(),
5875
- name: z188.string(),
5876
- url: z188.string(),
5877
- slug: z188.string()
6112
+ var GitOrganization = z189.object({
6113
+ id: z189.string(),
6114
+ name: z189.string(),
6115
+ url: z189.string(),
6116
+ slug: z189.string()
5878
6117
  });
5879
- var GitProject = z188.object({
5880
- id: z188.string(),
5881
- name: z188.string(),
5882
- url: z188.string(),
5883
- slug: z188.string()
6118
+ var GitProject = z189.object({
6119
+ id: z189.string(),
6120
+ name: z189.string(),
6121
+ url: z189.string(),
6122
+ slug: z189.string()
5884
6123
  });
5885
- var GitRepository = z188.object({
5886
- id: z188.string(),
5887
- name: z188.string(),
5888
- url: z188.string(),
5889
- slug: z188.string(),
6124
+ var GitRepository = z189.object({
6125
+ id: z189.string(),
6126
+ name: z189.string(),
6127
+ url: z189.string(),
6128
+ slug: z189.string(),
5890
6129
  /**
5891
6130
  * Can be undefined when:
5892
6131
  * - there are no branches in the repository yet
5893
6132
  * - Git provider doesn't expose this information on a repository via their API
5894
6133
  */
5895
- defaultBranch: z188.string().optional()
6134
+ defaultBranch: z189.string().optional()
5896
6135
  });
5897
- var GitBranch = z188.object({
5898
- name: z188.string(),
5899
- lastCommitId: z188.string()
6136
+ var GitBranch = z189.object({
6137
+ name: z189.string(),
6138
+ lastCommitId: z189.string()
5900
6139
  });
5901
6140
 
5902
6141
  // src/integrations/oauth-token.ts
5903
- import { z as z189 } from "zod";
5904
- var IntegrationTokenSchemaOld = z189.object({
5905
- id: z189.string(),
6142
+ import { z as z190 } from "zod";
6143
+ var IntegrationTokenSchemaOld = z190.object({
6144
+ id: z190.string(),
5906
6145
  provider: OAuthProviderSchema,
5907
- scope: z189.string(),
5908
- userId: z189.string(),
5909
- accessToken: z189.string(),
5910
- refreshToken: z189.string(),
5911
- expiresAt: z189.coerce.date(),
5912
- externalUserId: z189.string().nullish()
6146
+ scope: z190.string(),
6147
+ userId: z190.string(),
6148
+ accessToken: z190.string(),
6149
+ refreshToken: z190.string(),
6150
+ expiresAt: z190.coerce.date(),
6151
+ externalUserId: z190.string().nullish()
5913
6152
  });
5914
6153
 
5915
6154
  // src/integrations/workspace-oauth-requests.ts
5916
- import { z as z190 } from "zod";
5917
- var WorkspaceOAuthRequestSchema = z190.object({
5918
- id: z190.string(),
5919
- workspaceId: z190.string(),
6155
+ import { z as z191 } from "zod";
6156
+ var WorkspaceOAuthRequestSchema = z191.object({
6157
+ id: z191.string(),
6158
+ workspaceId: z191.string(),
5920
6159
  provider: OAuthProviderSchema,
5921
- userId: z190.string(),
5922
- createdAt: z190.coerce.date()
6160
+ userId: z191.string(),
6161
+ createdAt: z191.coerce.date()
5923
6162
  });
5924
6163
 
5925
6164
  // src/npm/npm-package.ts
5926
- import { z as z191 } from "zod";
5927
- var AnyRecord = z191.record(z191.any());
6165
+ import { z as z192 } from "zod";
6166
+ var AnyRecord = z192.record(z192.any());
5928
6167
  var NpmPackageVersionDist = AnyRecord.and(
5929
- z191.object({
5930
- tarball: z191.string()
6168
+ z192.object({
6169
+ tarball: z192.string()
5931
6170
  })
5932
6171
  );
5933
6172
  var NpmPackageVersion = AnyRecord.and(
5934
- z191.object({
6173
+ z192.object({
5935
6174
  dist: NpmPackageVersionDist
5936
6175
  })
5937
6176
  );
5938
6177
  var NpmPackage = AnyRecord.and(
5939
- z191.object({
5940
- _id: z191.string(),
5941
- name: z191.string(),
6178
+ z192.object({
6179
+ _id: z192.string(),
6180
+ name: z192.string(),
5942
6181
  // e.g. "latest": "1.2.3"
5943
- "dist-tags": z191.record(z191.string(), z191.string()),
6182
+ "dist-tags": z192.record(z192.string(), z192.string()),
5944
6183
  // "1.2.3": {...}
5945
- versions: z191.record(NpmPackageVersion)
6184
+ versions: z192.record(NpmPackageVersion)
5946
6185
  })
5947
6186
  );
5948
6187
 
5949
6188
  // src/npm/npm-proxy-token-payload.ts
5950
- import { z as z192 } from "zod";
5951
- var NpmProxyTokenPayload = z192.object({
5952
- npmProxyRegistryConfigId: z192.string()
6189
+ import { z as z193 } from "zod";
6190
+ var NpmProxyTokenPayload = z193.object({
6191
+ npmProxyRegistryConfigId: z193.string()
5953
6192
  });
5954
6193
 
5955
6194
  // src/tokens/personal-access-token.ts
5956
- import { z as z193 } from "zod";
5957
- var PersonalAccessToken = z193.object({
5958
- id: z193.string(),
5959
- userId: z193.string(),
5960
- workspaceId: z193.string().optional(),
5961
- designSystemId: z193.string().optional(),
6195
+ import { z as z194 } from "zod";
6196
+ var PersonalAccessToken = z194.object({
6197
+ id: z194.string(),
6198
+ userId: z194.string(),
6199
+ workspaceId: z194.string().optional(),
6200
+ designSystemId: z194.string().optional(),
5962
6201
  workspaceRole: WorkspaceRoleSchema.optional(),
5963
- name: z193.string(),
5964
- hidden: z193.boolean(),
5965
- token: z193.string(),
5966
- scope: z193.string().optional(),
5967
- createdAt: z193.coerce.date(),
5968
- expireAt: z193.coerce.date().optional()
6202
+ name: z194.string(),
6203
+ hidden: z194.boolean(),
6204
+ token: z194.string(),
6205
+ scope: z194.string().optional(),
6206
+ createdAt: z194.coerce.date(),
6207
+ expireAt: z194.coerce.date().optional()
5969
6208
  });
5970
6209
  export {
5971
6210
  Address,
@@ -6227,6 +6466,7 @@ export {
6227
6466
  FigmaComponentPropertyType,
6228
6467
  FigmaComponentTextProperty,
6229
6468
  FigmaComponentVariantProperty,
6469
+ FigmaExporterAnyDesignNodeSchema,
6230
6470
  FigmaFile,
6231
6471
  FigmaFileAccessData,
6232
6472
  FigmaFileDownloadScope,