@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.d.mts +2563 -3
- package/dist/index.d.ts +2563 -3
- package/dist/index.js +241 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1012 -772
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
485
|
+
import { z as z161 } from "zod";
|
|
486
486
|
|
|
487
487
|
// src/export/export-destinations.ts
|
|
488
|
-
import { z as
|
|
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-
|
|
4509
|
+
// src/dsm/figma-exporter/figma-exporter.ts
|
|
4510
4510
|
import { z as z123 } from "zod";
|
|
4511
|
-
var
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
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
|
|
4519
|
-
var FigmaNodeStructureDataV2 =
|
|
4757
|
+
import { z as z125 } from "zod";
|
|
4758
|
+
var FigmaNodeStructureDataV2 = z125.object({
|
|
4520
4759
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
4521
|
-
assetsInFile:
|
|
4522
|
-
components:
|
|
4523
|
-
componentSets:
|
|
4524
|
-
frames:
|
|
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
|
|
4530
|
-
var FigmaNodeStructureStateV2 =
|
|
4531
|
-
var FigmaNodeStructureV2 =
|
|
4532
|
-
id:
|
|
4533
|
-
designSystemId:
|
|
4534
|
-
sourceId:
|
|
4535
|
-
storagePath:
|
|
4536
|
-
createdAt:
|
|
4537
|
-
updatedAt:
|
|
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:
|
|
4540
|
-
chunkSize:
|
|
4778
|
+
error: z126.string().optional(),
|
|
4779
|
+
chunkSize: z126.number().optional(),
|
|
4541
4780
|
// TODO Artem: remove after migration
|
|
4542
|
-
isFromLegacyStorage:
|
|
4781
|
+
isFromLegacyStorage: z126.boolean()
|
|
4543
4782
|
});
|
|
4544
4783
|
|
|
4545
4784
|
// src/dsm/membership/design-system-membership.ts
|
|
4546
|
-
import { z as
|
|
4785
|
+
import { z as z148 } from "zod";
|
|
4547
4786
|
|
|
4548
4787
|
// src/workspace/npm-registry-settings.ts
|
|
4549
|
-
import { z as
|
|
4550
|
-
var NpmRegistryAuthType =
|
|
4551
|
-
var NpmRegistryType =
|
|
4552
|
-
var NpmRegistryBasicAuthConfig =
|
|
4553
|
-
authType:
|
|
4554
|
-
username:
|
|
4555
|
-
password:
|
|
4556
|
-
});
|
|
4557
|
-
var NpmRegistryBearerAuthConfig =
|
|
4558
|
-
authType:
|
|
4559
|
-
accessToken:
|
|
4560
|
-
});
|
|
4561
|
-
var NpmRegistryNoAuthConfig =
|
|
4562
|
-
authType:
|
|
4563
|
-
});
|
|
4564
|
-
var NpmRegistrCustomAuthConfig =
|
|
4565
|
-
authType:
|
|
4566
|
-
authHeaderName:
|
|
4567
|
-
authHeaderValue:
|
|
4568
|
-
});
|
|
4569
|
-
var NpmRegistryAuthConfig =
|
|
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 =
|
|
4814
|
+
var NpmRegistryConfigBase = z127.object({
|
|
4576
4815
|
registryType: NpmRegistryType,
|
|
4577
|
-
enabledScopes:
|
|
4578
|
-
customRegistryUrl:
|
|
4579
|
-
bypassProxy:
|
|
4580
|
-
npmProxyRegistryConfigId:
|
|
4581
|
-
npmProxyVersion:
|
|
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
|
|
4587
|
-
var SsoProvider =
|
|
4588
|
-
providerId:
|
|
4589
|
-
defaultAutoInviteValue:
|
|
4590
|
-
autoInviteDomains:
|
|
4591
|
-
skipDocsSupernovaLogin:
|
|
4592
|
-
areInvitesDisabled:
|
|
4593
|
-
isTestMode:
|
|
4594
|
-
emailDomains:
|
|
4595
|
-
metadataXml:
|
|
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
|
|
4600
|
-
var WorkspaceUntypedData =
|
|
4601
|
-
id:
|
|
4602
|
-
workspaceId:
|
|
4603
|
-
value:
|
|
4604
|
-
createdAt:
|
|
4605
|
-
updatedAt:
|
|
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
|
|
4848
|
+
import { z as z131 } from "zod";
|
|
4610
4849
|
|
|
4611
4850
|
// src/workspace/workspace-role.ts
|
|
4612
|
-
import { z as
|
|
4613
|
-
var WorkspaceRoleSchema =
|
|
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 =
|
|
4619
|
-
email:
|
|
4857
|
+
var UserInvite = z131.object({
|
|
4858
|
+
email: z131.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4620
4859
|
role: WorkspaceRoleSchema
|
|
4621
4860
|
});
|
|
4622
|
-
var UserInvites =
|
|
4861
|
+
var UserInvites = z131.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4623
4862
|
|
|
4624
4863
|
// src/workspace/workspace-configuration.ts
|
|
4625
|
-
import { z as
|
|
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
|
|
4868
|
+
import { z as z132 } from "zod";
|
|
4630
4869
|
var isValidCIDR = (value) => {
|
|
4631
4870
|
return IPCIDR.isValidAddress(value);
|
|
4632
4871
|
};
|
|
4633
|
-
var WorkspaceIpWhitelistEntry =
|
|
4634
|
-
isEnabled:
|
|
4635
|
-
name:
|
|
4636
|
-
range:
|
|
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 =
|
|
4641
|
-
isEnabledForCloud:
|
|
4642
|
-
isEnabledForDocs:
|
|
4643
|
-
entries:
|
|
4879
|
+
var WorkspaceIpSettings = z132.object({
|
|
4880
|
+
isEnabledForCloud: z132.boolean(),
|
|
4881
|
+
isEnabledForDocs: z132.boolean(),
|
|
4882
|
+
entries: z132.array(WorkspaceIpWhitelistEntry)
|
|
4644
4883
|
});
|
|
4645
|
-
var WorkspaceProfile =
|
|
4646
|
-
name:
|
|
4647
|
-
handle:
|
|
4648
|
-
color:
|
|
4649
|
-
avatar: nullishToOptional(
|
|
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 =
|
|
4656
|
-
id:
|
|
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 =
|
|
4902
|
+
var WorkspaceWithDesignSystems = z132.object({
|
|
4664
4903
|
workspace: Workspace,
|
|
4665
|
-
designSystems:
|
|
4904
|
+
designSystems: z132.array(DesignSystem)
|
|
4666
4905
|
});
|
|
4667
4906
|
|
|
4668
4907
|
// src/workspace/workspace-configuration.ts
|
|
4669
|
-
var WorkspaceConfigurationUpdate =
|
|
4670
|
-
id:
|
|
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
|
|
4679
|
-
var WorkspaceContext =
|
|
4680
|
-
workspaceId:
|
|
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:
|
|
4922
|
+
publicDesignSystem: z134.boolean().optional()
|
|
4684
4923
|
});
|
|
4685
4924
|
|
|
4686
4925
|
// src/workspace/workspace-create.ts
|
|
4687
|
-
import { z as
|
|
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 =
|
|
4693
|
-
name:
|
|
4694
|
-
handle:
|
|
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
|
|
4699
|
-
var WorkspaceInvitation =
|
|
4700
|
-
id:
|
|
4701
|
-
email:
|
|
4702
|
-
createdAt:
|
|
4703
|
-
resentAt:
|
|
4704
|
-
role:
|
|
4705
|
-
workspaceId:
|
|
4706
|
-
invitedBy:
|
|
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
|
|
4949
|
+
import { z as z145 } from "zod";
|
|
4711
4950
|
|
|
4712
4951
|
// src/users/linked-integrations.ts
|
|
4713
|
-
import { z as
|
|
4714
|
-
var IntegrationAuthType =
|
|
4715
|
-
var ExternalServiceType =
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
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 =
|
|
4723
|
-
id:
|
|
4724
|
-
handle:
|
|
4725
|
-
avatarUrl:
|
|
4726
|
-
email:
|
|
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:
|
|
4967
|
+
customUrl: z137.string().optional()
|
|
4729
4968
|
});
|
|
4730
|
-
var UserLinkedIntegrations =
|
|
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
|
|
4740
|
-
var UserAnalyticsCleanupSchedule =
|
|
4741
|
-
userId:
|
|
4742
|
-
createdAt:
|
|
4743
|
-
deleteAt:
|
|
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
|
|
4751
|
-
var UserIdentity =
|
|
4752
|
-
id:
|
|
4753
|
-
userId:
|
|
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
|
|
4758
|
-
var UserMinified =
|
|
4759
|
-
id:
|
|
4760
|
-
name:
|
|
4761
|
-
email:
|
|
4762
|
-
avatar:
|
|
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
|
|
4767
|
-
var LiveblocksNotificationSettings =
|
|
4768
|
-
sendCommentNotificationEmails:
|
|
5005
|
+
import { z as z141 } from "zod";
|
|
5006
|
+
var LiveblocksNotificationSettings = z141.object({
|
|
5007
|
+
sendCommentNotificationEmails: z141.boolean()
|
|
4769
5008
|
});
|
|
4770
|
-
var UserNotificationSettings =
|
|
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
|
|
4781
|
-
var UserOnboardingDepartment =
|
|
4782
|
-
var UserOnboardingJobLevel =
|
|
4783
|
-
var UserTheme =
|
|
4784
|
-
preset:
|
|
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:
|
|
4796
|
-
accentColor:
|
|
4797
|
-
contrast:
|
|
4798
|
-
isSecondaryEnabled:
|
|
4799
|
-
secondaryBackgroundColor:
|
|
4800
|
-
secondaryContrast:
|
|
4801
|
-
isEditorWhite:
|
|
4802
|
-
});
|
|
4803
|
-
var UserOnboarding =
|
|
4804
|
-
companyName:
|
|
4805
|
-
numberOfPeopleInOrg:
|
|
4806
|
-
numberOfPeopleInDesignTeam:
|
|
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:
|
|
4809
|
-
phase:
|
|
5047
|
+
jobTitle: z142.string().optional(),
|
|
5048
|
+
phase: z142.string().optional(),
|
|
4810
5049
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4811
|
-
designSystemName:
|
|
4812
|
-
defaultDestination:
|
|
4813
|
-
figmaUrl:
|
|
4814
|
-
isPageDraftOnboardingFinished:
|
|
4815
|
-
isApprovalsOnboardingFinished:
|
|
4816
|
-
});
|
|
4817
|
-
var UserProfile =
|
|
4818
|
-
name:
|
|
4819
|
-
avatar:
|
|
4820
|
-
nickname:
|
|
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
|
|
4830
|
-
var UserTest =
|
|
4831
|
-
id:
|
|
4832
|
-
email:
|
|
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
|
|
4837
|
-
var UserSource =
|
|
4838
|
-
var User =
|
|
4839
|
-
id:
|
|
4840
|
-
email:
|
|
4841
|
-
createdAt:
|
|
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:
|
|
4844
|
-
isProtected:
|
|
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 =
|
|
4850
|
-
id:
|
|
4851
|
-
userId:
|
|
4852
|
-
workspaceId:
|
|
4853
|
-
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:
|
|
4856
|
-
});
|
|
4857
|
-
var UpdateMembershipRolesInput =
|
|
4858
|
-
members:
|
|
4859
|
-
|
|
4860
|
-
userId:
|
|
4861
|
-
role:
|
|
4862
|
-
isPrimaryOwner:
|
|
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
|
|
4869
|
-
var DesignSystemRole =
|
|
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
|
|
4894
|
-
var DesignSystemInvitation =
|
|
4895
|
-
id:
|
|
4896
|
-
designSystemId:
|
|
4897
|
-
workspaceInvitationId:
|
|
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 =
|
|
4904
|
-
id:
|
|
4905
|
-
userId:
|
|
4906
|
-
designSystemId:
|
|
5142
|
+
var DesignSystemMembership = z148.object({
|
|
5143
|
+
id: z148.string(),
|
|
5144
|
+
userId: z148.string(),
|
|
5145
|
+
designSystemId: z148.string(),
|
|
4907
5146
|
designSystemRole: DesignSystemRole.optional(),
|
|
4908
|
-
workspaceMembershipId:
|
|
5147
|
+
workspaceMembershipId: z148.string(),
|
|
4909
5148
|
workspaceRole: WorkspaceRoleSchema
|
|
4910
5149
|
});
|
|
4911
|
-
var DesignSystemMembers =
|
|
5150
|
+
var DesignSystemMembers = z148.object({
|
|
4912
5151
|
members: DesignSystemMembership.array(),
|
|
4913
5152
|
invitations: DesignSystemInvitation.array()
|
|
4914
5153
|
});
|
|
4915
|
-
var DesignSystemPendingMemberInvitation =
|
|
4916
|
-
inviteId:
|
|
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 =
|
|
4924
|
-
userId:
|
|
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 =
|
|
4932
|
-
email:
|
|
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 =
|
|
4941
|
-
userId:
|
|
5179
|
+
var DesignSystemMemberUpdate = z148.object({
|
|
5180
|
+
userId: z148.string(),
|
|
4942
5181
|
designSystemRole: DesignSystemRole.nullable()
|
|
4943
5182
|
});
|
|
4944
|
-
var DesignSystemInviteUpdate =
|
|
5183
|
+
var DesignSystemInviteUpdate = z148.object({
|
|
4945
5184
|
/**
|
|
4946
5185
|
* Workspace invitation id
|
|
4947
5186
|
*/
|
|
4948
|
-
inviteId:
|
|
5187
|
+
inviteId: z148.string(),
|
|
4949
5188
|
designSystemRole: DesignSystemRole.nullable()
|
|
4950
5189
|
});
|
|
4951
|
-
var DesignSystemMembershipUpdates =
|
|
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:
|
|
4958
|
-
deleteInvitationIds:
|
|
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
|
|
4963
|
-
var ElementViewBaseColumnType =
|
|
4964
|
-
var ElementViewColumnType =
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
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 =
|
|
4970
|
-
id:
|
|
4971
|
-
persistentId:
|
|
4972
|
-
elementDataViewId:
|
|
4973
|
-
sortPosition:
|
|
4974
|
-
width:
|
|
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:
|
|
5216
|
+
type: z149.literal("BaseProperty"),
|
|
4978
5217
|
basePropertyType: ElementViewBaseColumnType
|
|
4979
5218
|
});
|
|
4980
5219
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4981
|
-
type:
|
|
4982
|
-
propertyDefinitionId:
|
|
5220
|
+
type: z149.literal("PropertyDefinition"),
|
|
5221
|
+
propertyDefinitionId: z149.string()
|
|
4983
5222
|
});
|
|
4984
5223
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4985
|
-
type:
|
|
4986
|
-
themeId:
|
|
5224
|
+
type: z149.literal("Theme"),
|
|
5225
|
+
themeId: z149.string()
|
|
4987
5226
|
});
|
|
4988
|
-
var ElementViewColumn =
|
|
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
|
|
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/
|
|
5245
|
+
// src/dsm/brand.ts
|
|
5017
5246
|
import { z as z151 } from "zod";
|
|
5018
|
-
var
|
|
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
|
-
|
|
5249
|
+
designSystemVersionId: z151.string(),
|
|
5250
|
+
persistentId: z151.string(),
|
|
5026
5251
|
name: z151.string(),
|
|
5027
|
-
description: z151.string()
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
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:
|
|
5037
|
-
approvalRequiredForPublishing:
|
|
5275
|
+
isApprovalFeatureEnabled: z152.boolean(),
|
|
5276
|
+
approvalRequiredForPublishing: z152.boolean(),
|
|
5038
5277
|
accessMode: DesignSystemAccessMode,
|
|
5039
|
-
membersGenerated:
|
|
5040
|
-
createdAt:
|
|
5041
|
-
updatedAt:
|
|
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
|
|
5046
|
-
var ExporterPropertyImageValue =
|
|
5284
|
+
import { z as z153 } from "zod";
|
|
5285
|
+
var ExporterPropertyImageValue = z153.object({
|
|
5047
5286
|
asset: PageBlockAsset.optional(),
|
|
5048
|
-
assetId:
|
|
5049
|
-
assetUrl:
|
|
5050
|
-
});
|
|
5051
|
-
var ExporterConfigurationPropertyValue =
|
|
5052
|
-
key:
|
|
5053
|
-
value:
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
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 =
|
|
5063
|
-
id:
|
|
5064
|
-
designSystemId:
|
|
5065
|
-
exporterId:
|
|
5066
|
-
values:
|
|
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
|
|
5071
|
-
var PublishedDocPageVisitsEntry =
|
|
5072
|
-
id:
|
|
5073
|
-
versionId:
|
|
5074
|
-
pagePersistentId:
|
|
5075
|
-
locale:
|
|
5076
|
-
timestamp:
|
|
5077
|
-
visits:
|
|
5078
|
-
userId: nullishToOptional(
|
|
5079
|
-
anonymousId: nullishToOptional(
|
|
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
|
|
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 =
|
|
5091
|
-
id:
|
|
5092
|
-
publishedDocId:
|
|
5093
|
-
pageShortPersistentId:
|
|
5094
|
-
pagePersistentId:
|
|
5095
|
-
pathV1:
|
|
5096
|
-
pathV2:
|
|
5097
|
-
storagePath:
|
|
5098
|
-
locale:
|
|
5099
|
-
isPrivate:
|
|
5100
|
-
isHidden:
|
|
5101
|
-
createdAt:
|
|
5102
|
-
updatedAt:
|
|
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
|
|
5345
|
+
import { z as z156 } from "zod";
|
|
5107
5346
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
5108
|
-
var PublishedDocEnvironment =
|
|
5109
|
-
var PublishedDocsChecksums =
|
|
5110
|
-
var PublishedDocRoutingVersion =
|
|
5111
|
-
var PublishedDoc =
|
|
5112
|
-
id:
|
|
5113
|
-
designSystemVersionId:
|
|
5114
|
-
createdAt:
|
|
5115
|
-
updatedAt:
|
|
5116
|
-
lastPublishedAt:
|
|
5117
|
-
isDefault:
|
|
5118
|
-
isPublic:
|
|
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:
|
|
5122
|
-
wasMigrated:
|
|
5360
|
+
storagePath: z156.string(),
|
|
5361
|
+
wasMigrated: z156.boolean(),
|
|
5123
5362
|
routingVersion: PublishedDocRoutingVersion,
|
|
5124
|
-
usesLocalizations:
|
|
5125
|
-
wasPublishedWithLocalizations:
|
|
5126
|
-
tokenCount:
|
|
5127
|
-
assetCount:
|
|
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
|
|
5132
|
-
var StorybookEntryOrigin =
|
|
5133
|
-
id:
|
|
5134
|
-
type:
|
|
5135
|
-
name:
|
|
5136
|
-
title:
|
|
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:
|
|
5377
|
+
index: z157.number().optional()
|
|
5139
5378
|
});
|
|
5140
|
-
var StorybookEntry =
|
|
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
|
-
|
|
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/
|
|
5392
|
+
// src/dsm/storybook-payload.ts
|
|
5165
5393
|
import { z as z158 } from "zod";
|
|
5166
|
-
var
|
|
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
|
-
|
|
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(
|
|
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 =
|
|
5192
|
-
pagePersistentIds:
|
|
5193
|
-
groupPersistentIds:
|
|
5430
|
+
var ExportJobDocumentationChanges = z160.object({
|
|
5431
|
+
pagePersistentIds: z160.string().array(),
|
|
5432
|
+
groupPersistentIds: z160.string().array()
|
|
5194
5433
|
});
|
|
5195
|
-
var ExporterDestinationDocs =
|
|
5434
|
+
var ExporterDestinationDocs = z160.object({
|
|
5196
5435
|
environment: PublishedDocEnvironment,
|
|
5197
5436
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
5198
5437
|
});
|
|
5199
|
-
var GitCommonDestinationOptions =
|
|
5200
|
-
branch:
|
|
5201
|
-
relativePath: nullishToOptional(
|
|
5202
|
-
purgeDirectory: nullishToOptional(
|
|
5203
|
-
commitAuthorName: nullishToOptional(
|
|
5204
|
-
commitAuthorEmail: nullishToOptional(
|
|
5205
|
-
commitMessage: nullishToOptional(
|
|
5206
|
-
pullRequestTitle: nullishToOptional(
|
|
5207
|
-
pullRequestDescription: nullishToOptional(
|
|
5208
|
-
});
|
|
5209
|
-
var ExporterDestinationS3 =
|
|
5210
|
-
var ExporterDestinationGithub =
|
|
5211
|
-
credentialId:
|
|
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:
|
|
5452
|
+
url: z160.string(),
|
|
5214
5453
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5215
|
-
connectionId: nullishToOptional(
|
|
5216
|
-
userId: nullishToOptional(
|
|
5454
|
+
connectionId: nullishToOptional(z160.string()),
|
|
5455
|
+
userId: nullishToOptional(z160.number())
|
|
5217
5456
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5218
|
-
var ExporterDestinationAzure =
|
|
5219
|
-
credentialId:
|
|
5457
|
+
var ExporterDestinationAzure = z160.object({
|
|
5458
|
+
credentialId: z160.string().optional(),
|
|
5220
5459
|
// Repository
|
|
5221
|
-
organizationId:
|
|
5222
|
-
projectId:
|
|
5223
|
-
repositoryId:
|
|
5460
|
+
organizationId: z160.string(),
|
|
5461
|
+
projectId: z160.string(),
|
|
5462
|
+
repositoryId: z160.string(),
|
|
5224
5463
|
// Maybe not needed
|
|
5225
|
-
url: nullishToOptional(
|
|
5464
|
+
url: nullishToOptional(z160.string()),
|
|
5226
5465
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5227
|
-
connectionId: nullishToOptional(
|
|
5228
|
-
userId: nullishToOptional(
|
|
5466
|
+
connectionId: nullishToOptional(z160.string()),
|
|
5467
|
+
userId: nullishToOptional(z160.number())
|
|
5229
5468
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5230
|
-
var ExporterDestinationGitlab =
|
|
5231
|
-
credentialId:
|
|
5469
|
+
var ExporterDestinationGitlab = z160.object({
|
|
5470
|
+
credentialId: z160.string().optional(),
|
|
5232
5471
|
// Repository
|
|
5233
|
-
projectId:
|
|
5472
|
+
projectId: z160.string(),
|
|
5234
5473
|
// Maybe not needed
|
|
5235
|
-
url: nullishToOptional(
|
|
5474
|
+
url: nullishToOptional(z160.string()),
|
|
5236
5475
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
5237
|
-
connectionId: nullishToOptional(
|
|
5238
|
-
userId: nullishToOptional(
|
|
5476
|
+
connectionId: nullishToOptional(z160.string()),
|
|
5477
|
+
userId: nullishToOptional(z160.number())
|
|
5239
5478
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5240
|
-
var ExporterDestinationBitbucket =
|
|
5241
|
-
credentialId:
|
|
5479
|
+
var ExporterDestinationBitbucket = z160.object({
|
|
5480
|
+
credentialId: z160.string().optional(),
|
|
5242
5481
|
// Repository
|
|
5243
|
-
workspaceSlug:
|
|
5244
|
-
projectKey:
|
|
5245
|
-
repoSlug:
|
|
5246
|
-
url: nullishToOptional(
|
|
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(
|
|
5249
|
-
userId: nullishToOptional(
|
|
5487
|
+
connectionId: nullishToOptional(z160.string()),
|
|
5488
|
+
userId: nullishToOptional(z160.number())
|
|
5250
5489
|
}).extend(GitCommonDestinationOptions.shape);
|
|
5251
|
-
var ExportDestinationsMap =
|
|
5252
|
-
webhookUrl:
|
|
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 =
|
|
5261
|
-
webhookUrl:
|
|
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 =
|
|
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 =
|
|
5279
|
-
var PipelineDestinationExtraType =
|
|
5280
|
-
var PipelineDestinationType =
|
|
5281
|
-
var Pipeline =
|
|
5282
|
-
id:
|
|
5283
|
-
name:
|
|
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:
|
|
5286
|
-
workspaceId:
|
|
5287
|
-
designSystemId:
|
|
5288
|
-
exporterId:
|
|
5289
|
-
brandPersistentId:
|
|
5290
|
-
themePersistentId:
|
|
5291
|
-
themePersistentIds:
|
|
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:
|
|
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 =
|
|
5300
|
-
id:
|
|
5301
|
-
createdAt:
|
|
5302
|
-
finishedAt:
|
|
5303
|
-
exportArtefacts:
|
|
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 =
|
|
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
|
|
5551
|
+
import { z as z169 } from "zod";
|
|
5313
5552
|
|
|
5314
5553
|
// src/data-dumps/design-system-version-dump.ts
|
|
5315
|
-
import { z as
|
|
5554
|
+
import { z as z168 } from "zod";
|
|
5316
5555
|
|
|
5317
5556
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
5318
|
-
import { z as
|
|
5557
|
+
import { z as z163 } from "zod";
|
|
5319
5558
|
var DesignSystemVersionRoom = Entity.extend({
|
|
5320
|
-
designSystemVersionId:
|
|
5321
|
-
liveblocksId:
|
|
5322
|
-
});
|
|
5323
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
5324
|
-
routingVersion:
|
|
5325
|
-
isDraftFeatureAdopted:
|
|
5326
|
-
isApprovalFeatureEnabled:
|
|
5327
|
-
approvalRequiredForPublishing:
|
|
5328
|
-
});
|
|
5329
|
-
var DesignSystemVersionRoomInitialState =
|
|
5330
|
-
pages:
|
|
5331
|
-
groups:
|
|
5332
|
-
pageSnapshots:
|
|
5333
|
-
groupSnapshots:
|
|
5334
|
-
pageApprovals:
|
|
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:
|
|
5337
|
-
});
|
|
5338
|
-
var DesignSystemVersionRoomUpdate =
|
|
5339
|
-
pages:
|
|
5340
|
-
groups:
|
|
5341
|
-
pageIdsToDelete:
|
|
5342
|
-
groupIdsToDelete:
|
|
5343
|
-
pageSnapshots:
|
|
5344
|
-
groupSnapshots:
|
|
5345
|
-
pageSnapshotIdsToDelete:
|
|
5346
|
-
groupSnapshotIdsToDelete:
|
|
5347
|
-
pageHashesToUpdate:
|
|
5348
|
-
pageApprovals:
|
|
5349
|
-
pageApprovalIdsToDelete:
|
|
5350
|
-
executedTransactionIds:
|
|
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
|
|
5593
|
+
import { z as z164 } from "zod";
|
|
5355
5594
|
var DocumentationPageRoom = Entity.extend({
|
|
5356
|
-
designSystemVersionId:
|
|
5357
|
-
documentationPageId:
|
|
5358
|
-
liveblocksId:
|
|
5359
|
-
isDirty:
|
|
5595
|
+
designSystemVersionId: z164.string(),
|
|
5596
|
+
documentationPageId: z164.string(),
|
|
5597
|
+
liveblocksId: z164.string(),
|
|
5598
|
+
isDirty: z164.boolean()
|
|
5360
5599
|
});
|
|
5361
|
-
var DocumentationPageRoomState =
|
|
5362
|
-
pageItems:
|
|
5600
|
+
var DocumentationPageRoomState = z164.object({
|
|
5601
|
+
pageItems: z164.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
5363
5602
|
});
|
|
5364
|
-
var DocumentationPageRoomRoomUpdate =
|
|
5603
|
+
var DocumentationPageRoomRoomUpdate = z164.object({
|
|
5365
5604
|
page: DocumentationPageV2,
|
|
5366
5605
|
pageParent: ElementGroup
|
|
5367
5606
|
});
|
|
5368
5607
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
5369
|
-
pageItems:
|
|
5370
|
-
blockDefinitions:
|
|
5608
|
+
pageItems: z164.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
5609
|
+
blockDefinitions: z164.array(PageBlockDefinition)
|
|
5371
5610
|
});
|
|
5372
|
-
var RestoredDocumentationPage =
|
|
5611
|
+
var RestoredDocumentationPage = z164.object({
|
|
5373
5612
|
page: DocumentationPageV2,
|
|
5374
5613
|
pageParent: ElementGroup,
|
|
5375
5614
|
pageContent: DocumentationPageContentData,
|
|
5376
|
-
contentHash:
|
|
5615
|
+
contentHash: z164.string()
|
|
5377
5616
|
});
|
|
5378
|
-
var RestoredDocumentationGroup =
|
|
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
|
|
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 =
|
|
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
|
|
5635
|
+
import { z as z166 } from "zod";
|
|
5397
5636
|
var WorkspaceRoom = Entity.extend({
|
|
5398
|
-
workspaceId:
|
|
5399
|
-
liveblocksId:
|
|
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
|
|
5404
|
-
var PublishedDocsDump =
|
|
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 =
|
|
5649
|
+
var DocumentationThreadDump = z168.object({
|
|
5411
5650
|
thread: DocumentationCommentThread,
|
|
5412
5651
|
comments: DocumentationComment.array()
|
|
5413
5652
|
});
|
|
5414
|
-
var DocumentationPageRoomDump =
|
|
5653
|
+
var DocumentationPageRoomDump = z168.object({
|
|
5415
5654
|
room: DocumentationPageRoom,
|
|
5416
5655
|
threads: DocumentationThreadDump.array()
|
|
5417
5656
|
});
|
|
5418
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5657
|
+
var DesignSystemVersionMultiplayerDump = z168.object({
|
|
5419
5658
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5420
5659
|
});
|
|
5421
|
-
var DesignSystemVersionDump =
|
|
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 =
|
|
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
|
|
5684
|
+
import { z as z172 } from "zod";
|
|
5446
5685
|
|
|
5447
5686
|
// src/data-dumps/workspace-dump.ts
|
|
5448
|
-
import { z as
|
|
5687
|
+
import { z as z171 } from "zod";
|
|
5449
5688
|
|
|
5450
5689
|
// src/integrations/integration.ts
|
|
5451
|
-
import { z as
|
|
5452
|
-
var IntegrationDesignSystem =
|
|
5453
|
-
designSystemId:
|
|
5454
|
-
brandId:
|
|
5455
|
-
title:
|
|
5456
|
-
userId:
|
|
5457
|
-
date:
|
|
5458
|
-
});
|
|
5459
|
-
var IntegrationCredentialsType =
|
|
5460
|
-
var IntegrationCredentialsState =
|
|
5461
|
-
var IntegrationCredentialsProfile =
|
|
5462
|
-
id: nullishToOptional(
|
|
5463
|
-
email: nullishToOptional(
|
|
5464
|
-
handle: nullishToOptional(
|
|
5465
|
-
type: nullishToOptional(
|
|
5466
|
-
avatarUrl: nullishToOptional(
|
|
5467
|
-
organization: nullishToOptional(
|
|
5468
|
-
collection: nullishToOptional(
|
|
5469
|
-
});
|
|
5470
|
-
var IntegrationCredentials =
|
|
5471
|
-
id:
|
|
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:
|
|
5474
|
-
accessToken:
|
|
5475
|
-
userId:
|
|
5476
|
-
createdAt:
|
|
5477
|
-
refreshToken:
|
|
5478
|
-
tokenName:
|
|
5479
|
-
expiresAt:
|
|
5480
|
-
refreshedAt:
|
|
5481
|
-
username:
|
|
5482
|
-
appInstallationId:
|
|
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:
|
|
5723
|
+
customUrl: z170.string().optional(),
|
|
5485
5724
|
state: IntegrationCredentialsState,
|
|
5486
5725
|
user: UserMinified.optional()
|
|
5487
5726
|
});
|
|
5488
|
-
var ExtendedIntegrationType =
|
|
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 =
|
|
5500
|
-
id:
|
|
5501
|
-
workspaceId:
|
|
5738
|
+
var Integration = z170.object({
|
|
5739
|
+
id: z170.string(),
|
|
5740
|
+
workspaceId: z170.string(),
|
|
5502
5741
|
type: IntegrationType,
|
|
5503
|
-
createdAt:
|
|
5504
|
-
integrationCredentials:
|
|
5505
|
-
});
|
|
5506
|
-
var IntegrationToken =
|
|
5507
|
-
access_token:
|
|
5508
|
-
refresh_token:
|
|
5509
|
-
expires_in:
|
|
5510
|
-
token_type:
|
|
5511
|
-
token_name:
|
|
5512
|
-
token_azure_organization_name:
|
|
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:
|
|
5753
|
+
token_azure_collection_name: z170.string().optional(),
|
|
5515
5754
|
// Azure Server PAT only
|
|
5516
|
-
token_bitbucket_username:
|
|
5755
|
+
token_bitbucket_username: z170.string().optional(),
|
|
5517
5756
|
// Bitbucket only
|
|
5518
|
-
custom_url:
|
|
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 =
|
|
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 =
|
|
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
|
|
5570
|
-
var NpmProxyToken =
|
|
5571
|
-
access:
|
|
5572
|
-
expiresAt:
|
|
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 =
|
|
5575
|
-
returnToUrl:
|
|
5813
|
+
var SessionData = z173.object({
|
|
5814
|
+
returnToUrl: z173.string().optional(),
|
|
5576
5815
|
npmProxyToken: NpmProxyToken.optional()
|
|
5577
5816
|
});
|
|
5578
|
-
var Session =
|
|
5579
|
-
id:
|
|
5580
|
-
expiresAt:
|
|
5581
|
-
userId:
|
|
5582
|
-
anonymousId:
|
|
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 =
|
|
5586
|
-
access:
|
|
5587
|
-
refresh:
|
|
5824
|
+
var AuthTokens = z173.object({
|
|
5825
|
+
access: z173.string(),
|
|
5826
|
+
refresh: z173.string()
|
|
5588
5827
|
});
|
|
5589
|
-
var UserSession =
|
|
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
|
|
5596
|
-
var DesignSystemInviteEmailRecipient =
|
|
5597
|
-
email:
|
|
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 =
|
|
5839
|
+
var DesignSystemInviteEmailData = z174.object({
|
|
5601
5840
|
workspace: Workspace,
|
|
5602
5841
|
designSystem: DesignSystem,
|
|
5603
5842
|
invitedBy: User,
|
|
5604
|
-
documentationDomain:
|
|
5843
|
+
documentationDomain: z174.string().optional()
|
|
5605
5844
|
});
|
|
5606
5845
|
|
|
5607
5846
|
// src/emails/workspace-invite.ts
|
|
5608
|
-
import { z as
|
|
5609
|
-
var WorkspaceInviteEmailRecipient =
|
|
5610
|
-
email:
|
|
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 =
|
|
5852
|
+
var WorkspaceInviteEmailData = z175.object({
|
|
5614
5853
|
workspace: Workspace,
|
|
5615
5854
|
invitedBy: User,
|
|
5616
|
-
documentationDomain:
|
|
5855
|
+
documentationDomain: z175.string().optional()
|
|
5617
5856
|
});
|
|
5618
5857
|
|
|
5619
5858
|
// src/events/base.ts
|
|
5620
|
-
import { z as
|
|
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
|
|
5633
|
-
type: z176.literal("
|
|
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/
|
|
5869
|
+
// src/events/version-released.ts
|
|
5640
5870
|
import { z as z177 } from "zod";
|
|
5641
|
-
var
|
|
5642
|
-
type: z177.literal("
|
|
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 =
|
|
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
|
|
5657
|
-
var ExportJobDocumentationContext =
|
|
5658
|
-
isSingleVersionDocs:
|
|
5659
|
-
versionSlug:
|
|
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 =
|
|
5663
|
-
debugMode:
|
|
5664
|
-
concurrency:
|
|
5665
|
-
preloadData:
|
|
5666
|
-
concurrencyMode:
|
|
5667
|
-
cacheSdk:
|
|
5668
|
-
logSdkNetwork:
|
|
5669
|
-
profilerMode:
|
|
5670
|
-
});
|
|
5671
|
-
var ExportJobContext =
|
|
5672
|
-
apiUrl:
|
|
5673
|
-
accessToken:
|
|
5674
|
-
designSystemId:
|
|
5675
|
-
designSystemName:
|
|
5676
|
-
exporterId:
|
|
5677
|
-
versionId:
|
|
5678
|
-
brandId:
|
|
5679
|
-
themeId:
|
|
5680
|
-
themePersistentIds:
|
|
5681
|
-
previewMode:
|
|
5682
|
-
exporterName:
|
|
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 =
|
|
5687
|
-
exporterPackageUrl:
|
|
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
|
|
5694
|
-
var ExporterFunctionPayload =
|
|
5695
|
-
exportJobId:
|
|
5696
|
-
exportContextId:
|
|
5697
|
-
designSystemId:
|
|
5698
|
-
workspaceId:
|
|
5699
|
-
exporterId:
|
|
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
|
|
5704
|
-
var ExportJobDestinationType =
|
|
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 =
|
|
5714
|
-
var ExportJobLogEntryType =
|
|
5715
|
-
var ExportJobLogEntry =
|
|
5716
|
-
id:
|
|
5717
|
-
time:
|
|
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:
|
|
5958
|
+
message: z182.string()
|
|
5720
5959
|
});
|
|
5721
|
-
var ExportJobPullRequestDestinationResult =
|
|
5722
|
-
pullRequestUrl:
|
|
5960
|
+
var ExportJobPullRequestDestinationResult = z182.object({
|
|
5961
|
+
pullRequestUrl: z182.string()
|
|
5723
5962
|
});
|
|
5724
|
-
var ExportJobS3DestinationResult =
|
|
5725
|
-
bucket:
|
|
5726
|
-
urlPrefix:
|
|
5727
|
-
path:
|
|
5728
|
-
files:
|
|
5729
|
-
url: nullishToOptional(
|
|
5730
|
-
urls: nullishToOptional(
|
|
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 =
|
|
5733
|
-
url:
|
|
5971
|
+
var ExportJobDocsDestinationResult = z182.object({
|
|
5972
|
+
url: z182.string()
|
|
5734
5973
|
});
|
|
5735
|
-
var ExportJobResult =
|
|
5736
|
-
error:
|
|
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 =
|
|
5746
|
-
id:
|
|
5747
|
-
createdAt:
|
|
5748
|
-
finishedAt:
|
|
5749
|
-
designSystemId:
|
|
5750
|
-
designSystemVersionId:
|
|
5751
|
-
workspaceId:
|
|
5752
|
-
scheduleId:
|
|
5753
|
-
exporterId:
|
|
5754
|
-
brandId:
|
|
5755
|
-
themeId:
|
|
5756
|
-
themePersistentIds:
|
|
5757
|
-
estimatedExecutionTime:
|
|
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:
|
|
5999
|
+
createdByUserId: z182.string().optional(),
|
|
5761
6000
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5762
|
-
previewMode:
|
|
5763
|
-
exportContextId:
|
|
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:
|
|
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
|
|
5783
|
-
var ExporterType2 =
|
|
5784
|
-
var ListExporterQuery =
|
|
5785
|
-
limit:
|
|
5786
|
-
offset:
|
|
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:
|
|
6027
|
+
search: z183.string().optional()
|
|
5789
6028
|
});
|
|
5790
6029
|
|
|
5791
6030
|
// src/export/exporter-workspace-membership-role.ts
|
|
5792
|
-
import { z as
|
|
5793
|
-
var ExporterWorkspaceMembershipRole =
|
|
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
|
|
5797
|
-
var ExporterWorkspaceMembership =
|
|
5798
|
-
id:
|
|
5799
|
-
workspaceId:
|
|
5800
|
-
exporterId:
|
|
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
|
|
5806
|
-
var FlaggedFeature =
|
|
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 =
|
|
5825
|
-
var FeatureFlag =
|
|
5826
|
-
id:
|
|
6063
|
+
var FeatureFlagMap = z186.record(FlaggedFeature, z186.boolean());
|
|
6064
|
+
var FeatureFlag = z186.object({
|
|
6065
|
+
id: z186.string(),
|
|
5827
6066
|
feature: FlaggedFeature,
|
|
5828
|
-
createdAt:
|
|
5829
|
-
enabled:
|
|
5830
|
-
designSystemId:
|
|
5831
|
-
data:
|
|
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
|
|
6074
|
+
import { z as z188 } from "zod";
|
|
5836
6075
|
|
|
5837
6076
|
// src/integrations/oauth-providers.ts
|
|
5838
|
-
import { z as
|
|
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 =
|
|
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 =
|
|
5852
|
-
id:
|
|
6090
|
+
var ExternalOAuthRequest = z188.object({
|
|
6091
|
+
id: z188.string(),
|
|
5853
6092
|
provider: OAuthProviderSchema,
|
|
5854
|
-
userId:
|
|
5855
|
-
state:
|
|
5856
|
-
createdAt:
|
|
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
|
|
5861
|
-
var GitObjectsQuery =
|
|
5862
|
-
organization:
|
|
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:
|
|
6103
|
+
project: z189.string().optional(),
|
|
5865
6104
|
// Only for Bitbucket and Azure
|
|
5866
|
-
repository:
|
|
6105
|
+
repository: z189.string().optional(),
|
|
5867
6106
|
// For all providers. For Gitlab, it's called "project".
|
|
5868
|
-
branch:
|
|
6107
|
+
branch: z189.string().optional(),
|
|
5869
6108
|
// For all providers.
|
|
5870
|
-
user:
|
|
6109
|
+
user: z189.string().optional()
|
|
5871
6110
|
// Gitlab user
|
|
5872
6111
|
});
|
|
5873
|
-
var GitOrganization =
|
|
5874
|
-
id:
|
|
5875
|
-
name:
|
|
5876
|
-
url:
|
|
5877
|
-
slug:
|
|
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 =
|
|
5880
|
-
id:
|
|
5881
|
-
name:
|
|
5882
|
-
url:
|
|
5883
|
-
slug:
|
|
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 =
|
|
5886
|
-
id:
|
|
5887
|
-
name:
|
|
5888
|
-
url:
|
|
5889
|
-
slug:
|
|
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:
|
|
6134
|
+
defaultBranch: z189.string().optional()
|
|
5896
6135
|
});
|
|
5897
|
-
var GitBranch =
|
|
5898
|
-
name:
|
|
5899
|
-
lastCommitId:
|
|
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
|
|
5904
|
-
var IntegrationTokenSchemaOld =
|
|
5905
|
-
id:
|
|
6142
|
+
import { z as z190 } from "zod";
|
|
6143
|
+
var IntegrationTokenSchemaOld = z190.object({
|
|
6144
|
+
id: z190.string(),
|
|
5906
6145
|
provider: OAuthProviderSchema,
|
|
5907
|
-
scope:
|
|
5908
|
-
userId:
|
|
5909
|
-
accessToken:
|
|
5910
|
-
refreshToken:
|
|
5911
|
-
expiresAt:
|
|
5912
|
-
externalUserId:
|
|
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
|
|
5917
|
-
var WorkspaceOAuthRequestSchema =
|
|
5918
|
-
id:
|
|
5919
|
-
workspaceId:
|
|
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:
|
|
5922
|
-
createdAt:
|
|
6160
|
+
userId: z191.string(),
|
|
6161
|
+
createdAt: z191.coerce.date()
|
|
5923
6162
|
});
|
|
5924
6163
|
|
|
5925
6164
|
// src/npm/npm-package.ts
|
|
5926
|
-
import { z as
|
|
5927
|
-
var AnyRecord =
|
|
6165
|
+
import { z as z192 } from "zod";
|
|
6166
|
+
var AnyRecord = z192.record(z192.any());
|
|
5928
6167
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5929
|
-
|
|
5930
|
-
tarball:
|
|
6168
|
+
z192.object({
|
|
6169
|
+
tarball: z192.string()
|
|
5931
6170
|
})
|
|
5932
6171
|
);
|
|
5933
6172
|
var NpmPackageVersion = AnyRecord.and(
|
|
5934
|
-
|
|
6173
|
+
z192.object({
|
|
5935
6174
|
dist: NpmPackageVersionDist
|
|
5936
6175
|
})
|
|
5937
6176
|
);
|
|
5938
6177
|
var NpmPackage = AnyRecord.and(
|
|
5939
|
-
|
|
5940
|
-
_id:
|
|
5941
|
-
name:
|
|
6178
|
+
z192.object({
|
|
6179
|
+
_id: z192.string(),
|
|
6180
|
+
name: z192.string(),
|
|
5942
6181
|
// e.g. "latest": "1.2.3"
|
|
5943
|
-
"dist-tags":
|
|
6182
|
+
"dist-tags": z192.record(z192.string(), z192.string()),
|
|
5944
6183
|
// "1.2.3": {...}
|
|
5945
|
-
versions:
|
|
6184
|
+
versions: z192.record(NpmPackageVersion)
|
|
5946
6185
|
})
|
|
5947
6186
|
);
|
|
5948
6187
|
|
|
5949
6188
|
// src/npm/npm-proxy-token-payload.ts
|
|
5950
|
-
import { z as
|
|
5951
|
-
var NpmProxyTokenPayload =
|
|
5952
|
-
npmProxyRegistryConfigId:
|
|
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
|
|
5957
|
-
var PersonalAccessToken =
|
|
5958
|
-
id:
|
|
5959
|
-
userId:
|
|
5960
|
-
workspaceId:
|
|
5961
|
-
designSystemId:
|
|
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:
|
|
5964
|
-
hidden:
|
|
5965
|
-
token:
|
|
5966
|
-
scope:
|
|
5967
|
-
createdAt:
|
|
5968
|
-
expireAt:
|
|
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,
|