@supernova-studio/model 0.57.8 → 0.57.10
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 +207 -17
- package/dist/index.d.ts +207 -17
- package/dist/index.js +57 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +958 -907
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/collection.ts +49 -0
- package/src/dsm/import/collection.ts +16 -0
- package/src/dsm/import/index.ts +1 -0
- package/src/dsm/import/support/import-model-collections.ts +4 -0
- package/src/dsm/index.ts +1 -0
- package/src/dsm/membership/design-system-membership.ts +1 -1
- package/src/dsm/membership/invitations.ts +2 -2
package/dist/index.mjs
CHANGED
|
@@ -288,7 +288,7 @@ var CustomDomain = z14.object({
|
|
|
288
288
|
});
|
|
289
289
|
|
|
290
290
|
// src/data-dumps/code-integration-dump.ts
|
|
291
|
-
import { z as
|
|
291
|
+
import { z as z146 } from "zod";
|
|
292
292
|
|
|
293
293
|
// src/export/exporter.ts
|
|
294
294
|
import { z as z17 } from "zod";
|
|
@@ -391,10 +391,10 @@ var Exporter = z17.object({
|
|
|
391
391
|
});
|
|
392
392
|
|
|
393
393
|
// src/export/pipeline.ts
|
|
394
|
-
import { z as
|
|
394
|
+
import { z as z145 } from "zod";
|
|
395
395
|
|
|
396
396
|
// src/export/export-destinations.ts
|
|
397
|
-
import { z as
|
|
397
|
+
import { z as z144 } from "zod";
|
|
398
398
|
|
|
399
399
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
400
400
|
import { z as z18 } from "zod";
|
|
@@ -460,7 +460,7 @@ function isImportedAsset(asset) {
|
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
// src/dsm/components/asset-rendering.ts
|
|
463
|
-
import { z as
|
|
463
|
+
import { z as z101 } from "zod";
|
|
464
464
|
|
|
465
465
|
// src/dsm/import/support/figma-files.ts
|
|
466
466
|
import { z as z22 } from "zod";
|
|
@@ -3604,61 +3604,105 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
3604
3604
|
});
|
|
3605
3605
|
|
|
3606
3606
|
// src/dsm/import/support/import-model-collections.ts
|
|
3607
|
-
import { z as
|
|
3607
|
+
import { z as z100 } from "zod";
|
|
3608
3608
|
|
|
3609
|
-
// src/dsm/import/
|
|
3610
|
-
import { z as
|
|
3609
|
+
// src/dsm/import/collection.ts
|
|
3610
|
+
import { z as z92 } from "zod";
|
|
3611
3611
|
|
|
3612
|
-
// src/dsm/
|
|
3612
|
+
// src/dsm/collection.ts
|
|
3613
3613
|
import { z as z91 } from "zod";
|
|
3614
|
-
var
|
|
3614
|
+
var CollectionOrigin = z91.object({
|
|
3615
3615
|
id: z91.string(),
|
|
3616
|
+
sourceId: z91.string()
|
|
3617
|
+
});
|
|
3618
|
+
var Collection = z91.object({
|
|
3619
|
+
id: z91.string(),
|
|
3620
|
+
persistentId: z91.string(),
|
|
3621
|
+
designSystemVersionId: z91.string(),
|
|
3622
|
+
name: z91.string(),
|
|
3623
|
+
description: z91.string(),
|
|
3624
|
+
backgroundColor: ColorTokenInlineData.optional(),
|
|
3625
|
+
/**
|
|
3626
|
+
* ID of Select element property definition's option that corresponds to this collection.
|
|
3627
|
+
*
|
|
3628
|
+
* Each collection is represented by an option in a special kind of element property that
|
|
3629
|
+
* is present in each design system where a collections are present. The property is maintained
|
|
3630
|
+
* automatically and is not available to the user (see immutable element properties).
|
|
3631
|
+
*
|
|
3632
|
+
* Collections have an immutable element property that allows bridging places where element properites
|
|
3633
|
+
* can be selected (e.g. documentation blocks) with the concept of collection without having to add
|
|
3634
|
+
* specific logic for collection selection.
|
|
3635
|
+
*/
|
|
3636
|
+
elementPropertyOptionId: z91.string(),
|
|
3637
|
+
createdAt: z91.coerce.date(),
|
|
3638
|
+
updatedAt: z91.coerce.date(),
|
|
3639
|
+
origin: CollectionOrigin.optional()
|
|
3640
|
+
});
|
|
3641
|
+
|
|
3642
|
+
// src/dsm/import/collection.ts
|
|
3643
|
+
var CollectionImportModelInput = z92.object({
|
|
3644
|
+
id: z92.string(),
|
|
3645
|
+
name: z92.string()
|
|
3646
|
+
});
|
|
3647
|
+
var CollectionImportModel = z92.object({
|
|
3648
|
+
id: z92.string(),
|
|
3649
|
+
name: z92.string(),
|
|
3650
|
+
origin: CollectionOrigin
|
|
3651
|
+
});
|
|
3652
|
+
|
|
3653
|
+
// src/dsm/import/component.ts
|
|
3654
|
+
import { z as z95 } from "zod";
|
|
3655
|
+
|
|
3656
|
+
// src/dsm/import/base.ts
|
|
3657
|
+
import { z as z93 } from "zod";
|
|
3658
|
+
var ImportModelBase = z93.object({
|
|
3659
|
+
id: z93.string(),
|
|
3616
3660
|
meta: ObjectMeta,
|
|
3617
3661
|
origin: DesignElementOrigin,
|
|
3618
|
-
brandPersistentId:
|
|
3619
|
-
sortOrder:
|
|
3662
|
+
brandPersistentId: z93.string(),
|
|
3663
|
+
sortOrder: z93.number()
|
|
3620
3664
|
});
|
|
3621
3665
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
3622
3666
|
brandPersistentId: true,
|
|
3623
3667
|
origin: true,
|
|
3624
3668
|
sortOrder: true
|
|
3625
3669
|
}).extend({
|
|
3626
|
-
originId:
|
|
3627
|
-
originMetadata:
|
|
3670
|
+
originId: z93.string(),
|
|
3671
|
+
originMetadata: z93.record(z93.any())
|
|
3628
3672
|
});
|
|
3629
3673
|
|
|
3630
3674
|
// src/dsm/import/image.ts
|
|
3631
|
-
import { z as
|
|
3632
|
-
var ImageImportModelType =
|
|
3633
|
-
var ImageImportModelBase =
|
|
3675
|
+
import { z as z94 } from "zod";
|
|
3676
|
+
var ImageImportModelType = z94.enum(["Url", "FigmaRender"]);
|
|
3677
|
+
var ImageImportModelBase = z94.object({
|
|
3634
3678
|
scope: AssetScope
|
|
3635
3679
|
});
|
|
3636
3680
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
3637
|
-
type:
|
|
3638
|
-
url:
|
|
3639
|
-
originKey:
|
|
3640
|
-
extension:
|
|
3681
|
+
type: z94.literal(ImageImportModelType.enum.Url),
|
|
3682
|
+
url: z94.string(),
|
|
3683
|
+
originKey: z94.string(),
|
|
3684
|
+
extension: z94.string()
|
|
3641
3685
|
});
|
|
3642
|
-
var FigmaRenderFormat =
|
|
3686
|
+
var FigmaRenderFormat = z94.enum(["Svg", "Png", "Pdf"]);
|
|
3643
3687
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
3644
|
-
type:
|
|
3645
|
-
fileId:
|
|
3646
|
-
fileVersionId:
|
|
3647
|
-
nodeId:
|
|
3648
|
-
originKey:
|
|
3688
|
+
type: z94.literal(ImageImportModelType.enum.FigmaRender),
|
|
3689
|
+
fileId: z94.string(),
|
|
3690
|
+
fileVersionId: z94.string().optional(),
|
|
3691
|
+
nodeId: z94.string(),
|
|
3692
|
+
originKey: z94.string()
|
|
3649
3693
|
});
|
|
3650
3694
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
3651
|
-
format:
|
|
3652
|
-
scale:
|
|
3695
|
+
format: z94.literal(FigmaRenderFormat.enum.Png),
|
|
3696
|
+
scale: z94.number()
|
|
3653
3697
|
});
|
|
3654
3698
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
3655
|
-
format:
|
|
3699
|
+
format: z94.literal(FigmaRenderFormat.enum.Svg)
|
|
3656
3700
|
});
|
|
3657
|
-
var FigmaRenderImportModel =
|
|
3701
|
+
var FigmaRenderImportModel = z94.discriminatedUnion("format", [
|
|
3658
3702
|
FigmaPngRenderImportModel,
|
|
3659
3703
|
FigmaSvgRenderImportModel
|
|
3660
3704
|
]);
|
|
3661
|
-
var ImageImportModel =
|
|
3705
|
+
var ImageImportModel = z94.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
3662
3706
|
function getFigmaRenderFormatFileExtension(format) {
|
|
3663
3707
|
switch (format) {
|
|
3664
3708
|
case "Pdf":
|
|
@@ -3671,15 +3715,15 @@ function getFigmaRenderFormatFileExtension(format) {
|
|
|
3671
3715
|
}
|
|
3672
3716
|
|
|
3673
3717
|
// src/dsm/import/component.ts
|
|
3674
|
-
var FigmaComponentImportModelPart =
|
|
3718
|
+
var FigmaComponentImportModelPart = z95.object({
|
|
3675
3719
|
thumbnail: ImageImportModel,
|
|
3676
|
-
parentComponentId:
|
|
3720
|
+
parentComponentId: z95.string().optional(),
|
|
3677
3721
|
componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
|
|
3678
|
-
variantPropertyValues:
|
|
3679
|
-
renderNodeId:
|
|
3722
|
+
variantPropertyValues: z95.record(z95.string()).optional(),
|
|
3723
|
+
renderNodeId: z95.string()
|
|
3680
3724
|
});
|
|
3681
3725
|
var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
|
|
3682
|
-
isAsset:
|
|
3726
|
+
isAsset: z95.boolean(),
|
|
3683
3727
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
3684
3728
|
origin: FigmaComponentOrigin
|
|
3685
3729
|
});
|
|
@@ -3692,24 +3736,24 @@ var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportMode
|
|
|
3692
3736
|
});
|
|
3693
3737
|
|
|
3694
3738
|
// src/dsm/import/data-source.ts
|
|
3695
|
-
import { z as
|
|
3696
|
-
var DataSourceImportModel =
|
|
3697
|
-
id:
|
|
3698
|
-
fileName:
|
|
3699
|
-
thumbnailUrl:
|
|
3739
|
+
import { z as z96 } from "zod";
|
|
3740
|
+
var DataSourceImportModel = z96.object({
|
|
3741
|
+
id: z96.string(),
|
|
3742
|
+
fileName: z96.string().optional(),
|
|
3743
|
+
thumbnailUrl: z96.string().optional()
|
|
3700
3744
|
});
|
|
3701
3745
|
|
|
3702
3746
|
// src/dsm/import/figma-frames.ts
|
|
3703
|
-
import { z as
|
|
3747
|
+
import { z as z97 } from "zod";
|
|
3704
3748
|
var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
3705
3749
|
png: FigmaPngRenderImportModel,
|
|
3706
3750
|
svg: FigmaSvgRenderImportModel
|
|
3707
3751
|
});
|
|
3708
3752
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
3709
|
-
children:
|
|
3753
|
+
children: z97.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
3710
3754
|
});
|
|
3711
|
-
var FigmaFileStructureImportModelPart =
|
|
3712
|
-
data:
|
|
3755
|
+
var FigmaFileStructureImportModelPart = z97.object({
|
|
3756
|
+
data: z97.object({
|
|
3713
3757
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
3714
3758
|
assetsInFile: FigmaFileStructureStatistics
|
|
3715
3759
|
})
|
|
@@ -3720,7 +3764,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
3720
3764
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
3721
3765
|
FigmaFileStructureImportModelPart.shape
|
|
3722
3766
|
).extend({
|
|
3723
|
-
fileVersionId:
|
|
3767
|
+
fileVersionId: z97.string()
|
|
3724
3768
|
});
|
|
3725
3769
|
function figmaFileStructureImportModelToMap(root) {
|
|
3726
3770
|
const map = /* @__PURE__ */ new Map();
|
|
@@ -3734,51 +3778,51 @@ function recursiveFigmaFileStructureToMap2(node, map) {
|
|
|
3734
3778
|
}
|
|
3735
3779
|
|
|
3736
3780
|
// src/dsm/import/theme.ts
|
|
3737
|
-
import { z as
|
|
3781
|
+
import { z as z98 } from "zod";
|
|
3738
3782
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
3739
|
-
|
|
3740
|
-
id:
|
|
3783
|
+
z98.object({
|
|
3784
|
+
id: z98.string(),
|
|
3741
3785
|
meta: ObjectMeta
|
|
3742
3786
|
})
|
|
3743
3787
|
);
|
|
3744
3788
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
3745
|
-
|
|
3789
|
+
z98.object({
|
|
3746
3790
|
origin: ThemeOverrideOrigin
|
|
3747
3791
|
})
|
|
3748
3792
|
);
|
|
3749
3793
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
3750
|
-
|
|
3751
|
-
originId:
|
|
3794
|
+
z98.object({
|
|
3795
|
+
originId: z98.string(),
|
|
3752
3796
|
originMetadata: ThemeOverrideOriginPart
|
|
3753
3797
|
})
|
|
3754
3798
|
);
|
|
3755
|
-
var ThemeImportModel =
|
|
3799
|
+
var ThemeImportModel = z98.object({
|
|
3756
3800
|
meta: ObjectMeta,
|
|
3757
|
-
brandPersistentId:
|
|
3801
|
+
brandPersistentId: z98.string(),
|
|
3758
3802
|
originSource: ThemeOriginSource,
|
|
3759
|
-
overrides:
|
|
3760
|
-
sortOrder:
|
|
3803
|
+
overrides: z98.array(ThemeOverrideImportModel),
|
|
3804
|
+
sortOrder: z98.number()
|
|
3761
3805
|
});
|
|
3762
|
-
var ThemeImportModelInput =
|
|
3806
|
+
var ThemeImportModelInput = z98.object({
|
|
3763
3807
|
meta: ObjectMeta,
|
|
3764
|
-
originObjects:
|
|
3765
|
-
overrides:
|
|
3808
|
+
originObjects: z98.array(ThemeOriginObject),
|
|
3809
|
+
overrides: z98.array(ThemeOverrideImportModelInput)
|
|
3766
3810
|
});
|
|
3767
|
-
var ThemeUpdateImportModel =
|
|
3768
|
-
themePersistentId:
|
|
3769
|
-
overrides:
|
|
3811
|
+
var ThemeUpdateImportModel = z98.object({
|
|
3812
|
+
themePersistentId: z98.string(),
|
|
3813
|
+
overrides: z98.array(ThemeOverrideImportModel)
|
|
3770
3814
|
});
|
|
3771
|
-
var ThemeUpdateImportModelInput =
|
|
3772
|
-
themePersistentId:
|
|
3773
|
-
overrides:
|
|
3815
|
+
var ThemeUpdateImportModelInput = z98.object({
|
|
3816
|
+
themePersistentId: z98.string(),
|
|
3817
|
+
overrides: z98.array(ThemeOverrideImportModelInput)
|
|
3774
3818
|
});
|
|
3775
3819
|
|
|
3776
3820
|
// src/dsm/import/tokens.ts
|
|
3777
|
-
import { z as
|
|
3778
|
-
var DesignTokenImportModelPart =
|
|
3779
|
-
collection:
|
|
3780
|
-
codeSyntax:
|
|
3781
|
-
scopes:
|
|
3821
|
+
import { z as z99 } from "zod";
|
|
3822
|
+
var DesignTokenImportModelPart = z99.object({
|
|
3823
|
+
collection: z99.string().optional(),
|
|
3824
|
+
codeSyntax: z99.record(z99.coerce.string()).optional(),
|
|
3825
|
+
scopes: z99.array(z99.string()).optional()
|
|
3782
3826
|
});
|
|
3783
3827
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
3784
3828
|
origin: DesignTokenOrigin
|
|
@@ -3796,22 +3840,24 @@ function designTokenImportModelTypeFilter(type) {
|
|
|
3796
3840
|
}
|
|
3797
3841
|
|
|
3798
3842
|
// src/dsm/import/support/import-model-collections.ts
|
|
3799
|
-
var ImportModelInputCollection =
|
|
3843
|
+
var ImportModelInputCollection = z100.object({
|
|
3800
3844
|
source: DataSourceImportModel,
|
|
3801
|
-
tokens:
|
|
3802
|
-
components:
|
|
3803
|
-
assets:
|
|
3804
|
-
themeUpdates:
|
|
3805
|
-
themes:
|
|
3806
|
-
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3845
|
+
tokens: z100.array(DesignTokenImportModelInput).default([]),
|
|
3846
|
+
components: z100.array(FigmaComponentImportModelInput).default([]),
|
|
3847
|
+
assets: z100.array(AssetImportModelInput).default([]),
|
|
3848
|
+
themeUpdates: z100.array(ThemeUpdateImportModelInput).default([]),
|
|
3849
|
+
themes: z100.array(ThemeImportModelInput).default([]),
|
|
3850
|
+
figmaFileStructure: FigmaFileStructureImportModelInput.optional(),
|
|
3851
|
+
collections: z100.array(CollectionImportModelInput)
|
|
3852
|
+
});
|
|
3853
|
+
var ImportModelCollection = z100.object({
|
|
3854
|
+
sources: z100.array(DataSourceImportModel),
|
|
3855
|
+
tokens: z100.array(DesignTokenImportModel).default([]),
|
|
3856
|
+
components: z100.array(FigmaComponentImportModel).default([]),
|
|
3857
|
+
themeUpdates: z100.array(ThemeUpdateImportModel).default([]),
|
|
3858
|
+
themes: z100.array(ThemeImportModel).default([]),
|
|
3859
|
+
figmaFileStructures: z100.array(FigmaFileStructureImportModel),
|
|
3860
|
+
collections: z100.array(CollectionImportModel)
|
|
3815
3861
|
});
|
|
3816
3862
|
function addImportModelCollections(lhs, rhs) {
|
|
3817
3863
|
return {
|
|
@@ -3820,46 +3866,47 @@ function addImportModelCollections(lhs, rhs) {
|
|
|
3820
3866
|
components: [...lhs.components, ...rhs.components],
|
|
3821
3867
|
themeUpdates: [...lhs.themeUpdates, ...rhs.themeUpdates],
|
|
3822
3868
|
themes: [...lhs.themes, ...rhs.themes],
|
|
3823
|
-
figmaFileStructures: [...lhs.figmaFileStructures, ...rhs.figmaFileStructures]
|
|
3869
|
+
figmaFileStructures: [...lhs.figmaFileStructures, ...rhs.figmaFileStructures],
|
|
3870
|
+
collections: [...lhs.collections, ...rhs.collections]
|
|
3824
3871
|
};
|
|
3825
3872
|
}
|
|
3826
3873
|
|
|
3827
3874
|
// src/dsm/components/asset-rendering.ts
|
|
3828
|
-
var AssetRenderConfiguration =
|
|
3829
|
-
prefix:
|
|
3830
|
-
suffix:
|
|
3831
|
-
scale:
|
|
3875
|
+
var AssetRenderConfiguration = z101.object({
|
|
3876
|
+
prefix: z101.string().optional(),
|
|
3877
|
+
suffix: z101.string().optional(),
|
|
3878
|
+
scale: z101.number(),
|
|
3832
3879
|
format: FigmaRenderFormat
|
|
3833
3880
|
});
|
|
3834
|
-
var RenderedAssetFile =
|
|
3835
|
-
assetPersistentId:
|
|
3836
|
-
assetName:
|
|
3837
|
-
renderedImageFileName:
|
|
3838
|
-
renderedImageUrl:
|
|
3881
|
+
var RenderedAssetFile = z101.object({
|
|
3882
|
+
assetPersistentId: z101.string(),
|
|
3883
|
+
assetName: z101.string(),
|
|
3884
|
+
renderedImageFileName: z101.string(),
|
|
3885
|
+
renderedImageUrl: z101.string(),
|
|
3839
3886
|
settings: AssetRenderConfiguration
|
|
3840
3887
|
});
|
|
3841
3888
|
|
|
3842
3889
|
// src/dsm/documentation/approvals/approval-state.ts
|
|
3843
|
-
import { z as
|
|
3844
|
-
var DocumentationPageApprovalState =
|
|
3890
|
+
import { z as z102 } from "zod";
|
|
3891
|
+
var DocumentationPageApprovalState = z102.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3845
3892
|
|
|
3846
3893
|
// src/dsm/documentation/approvals/approval.ts
|
|
3847
|
-
import { z as
|
|
3848
|
-
var DocumentationPageApproval =
|
|
3849
|
-
id:
|
|
3894
|
+
import { z as z103 } from "zod";
|
|
3895
|
+
var DocumentationPageApproval = z103.object({
|
|
3896
|
+
id: z103.string(),
|
|
3850
3897
|
approvalState: DocumentationPageApprovalState,
|
|
3851
|
-
persistentId:
|
|
3852
|
-
pageId:
|
|
3853
|
-
pagePersistentId:
|
|
3854
|
-
updatedByUserId:
|
|
3855
|
-
designSystemVersionId:
|
|
3856
|
-
updatedAt:
|
|
3857
|
-
createdAt:
|
|
3898
|
+
persistentId: z103.string(),
|
|
3899
|
+
pageId: z103.string(),
|
|
3900
|
+
pagePersistentId: z103.string(),
|
|
3901
|
+
updatedByUserId: z103.string(),
|
|
3902
|
+
designSystemVersionId: z103.string(),
|
|
3903
|
+
updatedAt: z103.coerce.date(),
|
|
3904
|
+
createdAt: z103.coerce.date()
|
|
3858
3905
|
});
|
|
3859
3906
|
|
|
3860
3907
|
// src/dsm/documentation/block-definitions/definition.ts
|
|
3861
|
-
import { z as
|
|
3862
|
-
var PageBlockCategory =
|
|
3908
|
+
import { z as z104 } from "zod";
|
|
3909
|
+
var PageBlockCategory = z104.enum([
|
|
3863
3910
|
"Text",
|
|
3864
3911
|
"Layout",
|
|
3865
3912
|
"Media",
|
|
@@ -3873,174 +3920,174 @@ var PageBlockCategory = z102.enum([
|
|
|
3873
3920
|
"Data",
|
|
3874
3921
|
"Other"
|
|
3875
3922
|
]);
|
|
3876
|
-
var PageBlockBehaviorDataType =
|
|
3877
|
-
var PageBlockBehaviorSelectionType =
|
|
3878
|
-
var PageBlockDefinitionBehavior =
|
|
3923
|
+
var PageBlockBehaviorDataType = z104.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
3924
|
+
var PageBlockBehaviorSelectionType = z104.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
3925
|
+
var PageBlockDefinitionBehavior = z104.object({
|
|
3879
3926
|
dataType: PageBlockBehaviorDataType,
|
|
3880
|
-
items:
|
|
3881
|
-
numberOfItems:
|
|
3882
|
-
allowLinks:
|
|
3883
|
-
newItemLabel:
|
|
3927
|
+
items: z104.object({
|
|
3928
|
+
numberOfItems: z104.number(),
|
|
3929
|
+
allowLinks: z104.boolean(),
|
|
3930
|
+
newItemLabel: z104.string().optional()
|
|
3884
3931
|
}).optional(),
|
|
3885
|
-
entities:
|
|
3932
|
+
entities: z104.object({
|
|
3886
3933
|
selectionType: PageBlockBehaviorSelectionType,
|
|
3887
|
-
maxSelected:
|
|
3934
|
+
maxSelected: z104.number()
|
|
3888
3935
|
}).optional()
|
|
3889
3936
|
});
|
|
3890
|
-
var PageBlockDefinitionOnboarding =
|
|
3891
|
-
helpText:
|
|
3892
|
-
documentationLink:
|
|
3937
|
+
var PageBlockDefinitionOnboarding = z104.object({
|
|
3938
|
+
helpText: z104.string(),
|
|
3939
|
+
documentationLink: z104.string().optional()
|
|
3893
3940
|
});
|
|
3894
|
-
var PageBlockDefinition =
|
|
3895
|
-
id:
|
|
3896
|
-
name:
|
|
3897
|
-
description:
|
|
3941
|
+
var PageBlockDefinition = z104.object({
|
|
3942
|
+
id: z104.string(),
|
|
3943
|
+
name: z104.string(),
|
|
3944
|
+
description: z104.string(),
|
|
3898
3945
|
category: PageBlockCategory,
|
|
3899
|
-
icon:
|
|
3900
|
-
documentationLink:
|
|
3901
|
-
searchKeywords:
|
|
3946
|
+
icon: z104.string().optional(),
|
|
3947
|
+
documentationLink: z104.string().optional(),
|
|
3948
|
+
searchKeywords: z104.array(z104.string()).optional(),
|
|
3902
3949
|
item: PageBlockDefinitionItem,
|
|
3903
3950
|
behavior: PageBlockDefinitionBehavior,
|
|
3904
|
-
editorOptions:
|
|
3951
|
+
editorOptions: z104.object({
|
|
3905
3952
|
onboarding: PageBlockDefinitionOnboarding.optional(),
|
|
3906
|
-
newItemLabel:
|
|
3953
|
+
newItemLabel: z104.string().optional()
|
|
3907
3954
|
}),
|
|
3908
3955
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
3909
3956
|
});
|
|
3910
3957
|
|
|
3911
3958
|
// src/dsm/documentation/group.ts
|
|
3912
|
-
import { z as
|
|
3913
|
-
var DocumentationPageGroup =
|
|
3914
|
-
type:
|
|
3915
|
-
childType:
|
|
3916
|
-
id:
|
|
3917
|
-
persistentId:
|
|
3918
|
-
shortPersistentId:
|
|
3919
|
-
designSystemVersionId:
|
|
3920
|
-
parentPersistentId:
|
|
3921
|
-
sortOrder:
|
|
3922
|
-
title:
|
|
3923
|
-
slug:
|
|
3924
|
-
userSlug:
|
|
3925
|
-
createdAt:
|
|
3926
|
-
updatedAt:
|
|
3959
|
+
import { z as z105 } from "zod";
|
|
3960
|
+
var DocumentationPageGroup = z105.object({
|
|
3961
|
+
type: z105.literal("ElementGroup"),
|
|
3962
|
+
childType: z105.literal("DocumentationPage"),
|
|
3963
|
+
id: z105.string(),
|
|
3964
|
+
persistentId: z105.string(),
|
|
3965
|
+
shortPersistentId: z105.string(),
|
|
3966
|
+
designSystemVersionId: z105.string(),
|
|
3967
|
+
parentPersistentId: z105.string().nullish(),
|
|
3968
|
+
sortOrder: z105.number(),
|
|
3969
|
+
title: z105.string(),
|
|
3970
|
+
slug: z105.string(),
|
|
3971
|
+
userSlug: z105.string().nullish(),
|
|
3972
|
+
createdAt: z105.coerce.date(),
|
|
3973
|
+
updatedAt: z105.coerce.date()
|
|
3927
3974
|
});
|
|
3928
3975
|
|
|
3929
3976
|
// src/dsm/documentation/link-preview.ts
|
|
3930
|
-
import { z as
|
|
3931
|
-
var DocumentationLinkPreview =
|
|
3932
|
-
title:
|
|
3933
|
-
description:
|
|
3977
|
+
import { z as z106 } from "zod";
|
|
3978
|
+
var DocumentationLinkPreview = z106.object({
|
|
3979
|
+
title: z106.string().optional(),
|
|
3980
|
+
description: z106.string().optional(),
|
|
3934
3981
|
thumbnail: PageBlockImageReference.optional()
|
|
3935
3982
|
});
|
|
3936
3983
|
|
|
3937
3984
|
// src/dsm/documentation/page-anchor.ts
|
|
3938
|
-
import { z as z105 } from "zod";
|
|
3939
|
-
var DocumentationPageAnchor = z105.object({
|
|
3940
|
-
blockId: z105.string(),
|
|
3941
|
-
level: z105.number(),
|
|
3942
|
-
text: z105.string()
|
|
3943
|
-
});
|
|
3944
|
-
|
|
3945
|
-
// src/dsm/documentation/page-content-backup.ts
|
|
3946
|
-
import { z as z106 } from "zod";
|
|
3947
|
-
var DocumentationPageContentBackup = z106.object({
|
|
3948
|
-
id: z106.string(),
|
|
3949
|
-
designSystemVersionId: z106.string(),
|
|
3950
|
-
createdAt: z106.coerce.date(),
|
|
3951
|
-
updatedAt: z106.coerce.date(),
|
|
3952
|
-
documentationPageId: z106.string(),
|
|
3953
|
-
documentationPageName: z106.string(),
|
|
3954
|
-
storagePath: z106.string()
|
|
3955
|
-
});
|
|
3956
|
-
|
|
3957
|
-
// src/dsm/documentation/page-content.ts
|
|
3958
3985
|
import { z as z107 } from "zod";
|
|
3959
|
-
var
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
var DocumentationPageContentData = z107.object({
|
|
3964
|
-
items: z107.array(DocumentationPageContentItem)
|
|
3965
|
-
});
|
|
3966
|
-
var DocumentationPageContent = z107.object({
|
|
3967
|
-
id: z107.string(),
|
|
3968
|
-
designSystemVersionId: z107.string(),
|
|
3969
|
-
createdAt: z107.coerce.date(),
|
|
3970
|
-
updatedAt: z107.coerce.date(),
|
|
3971
|
-
documentationPageId: z107.string(),
|
|
3972
|
-
data: DocumentationPageContentData
|
|
3986
|
+
var DocumentationPageAnchor = z107.object({
|
|
3987
|
+
blockId: z107.string(),
|
|
3988
|
+
level: z107.number(),
|
|
3989
|
+
text: z107.string()
|
|
3973
3990
|
});
|
|
3974
3991
|
|
|
3975
|
-
// src/dsm/documentation/page.ts
|
|
3992
|
+
// src/dsm/documentation/page-content-backup.ts
|
|
3976
3993
|
import { z as z108 } from "zod";
|
|
3977
|
-
var
|
|
3978
|
-
type: z108.literal("DocumentationPage"),
|
|
3994
|
+
var DocumentationPageContentBackup = z108.object({
|
|
3979
3995
|
id: z108.string(),
|
|
3980
|
-
persistentId: z108.string(),
|
|
3981
|
-
shortPersistentId: z108.string(),
|
|
3982
3996
|
designSystemVersionId: z108.string(),
|
|
3983
|
-
parentPersistentId: z108.string().nullish(),
|
|
3984
|
-
sortOrder: z108.number(),
|
|
3985
|
-
title: z108.string(),
|
|
3986
|
-
slug: z108.string(),
|
|
3987
|
-
userSlug: z108.string().nullish(),
|
|
3988
3997
|
createdAt: z108.coerce.date(),
|
|
3989
|
-
updatedAt: z108.coerce.date()
|
|
3998
|
+
updatedAt: z108.coerce.date(),
|
|
3999
|
+
documentationPageId: z108.string(),
|
|
4000
|
+
documentationPageName: z108.string(),
|
|
4001
|
+
storagePath: z108.string()
|
|
3990
4002
|
});
|
|
3991
4003
|
|
|
3992
|
-
// src/dsm/documentation/
|
|
4004
|
+
// src/dsm/documentation/page-content.ts
|
|
3993
4005
|
import { z as z109 } from "zod";
|
|
3994
|
-
var
|
|
3995
|
-
|
|
4006
|
+
var DocumentationPageContentItem = z109.discriminatedUnion("type", [
|
|
4007
|
+
PageBlockEditorModelV2,
|
|
4008
|
+
PageSectionEditorModelV2
|
|
4009
|
+
]);
|
|
4010
|
+
var DocumentationPageContentData = z109.object({
|
|
4011
|
+
items: z109.array(DocumentationPageContentItem)
|
|
4012
|
+
});
|
|
4013
|
+
var DocumentationPageContent = z109.object({
|
|
4014
|
+
id: z109.string(),
|
|
3996
4015
|
designSystemVersionId: z109.string(),
|
|
3997
4016
|
createdAt: z109.coerce.date(),
|
|
3998
4017
|
updatedAt: z109.coerce.date(),
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
storybookEmbedErrorMessage: z109.string().optional(),
|
|
4002
|
-
renderCodePackageJson: z109.string().optional(),
|
|
4003
|
-
selectedBrandPersistentId: z109.string().optional(),
|
|
4004
|
-
serveDefaultVersionOnly: z109.boolean(),
|
|
4005
|
-
isPublic: z109.boolean()
|
|
4018
|
+
documentationPageId: z109.string(),
|
|
4019
|
+
data: DocumentationPageContentData
|
|
4006
4020
|
});
|
|
4007
4021
|
|
|
4008
|
-
// src/dsm/documentation/
|
|
4022
|
+
// src/dsm/documentation/page.ts
|
|
4009
4023
|
import { z as z110 } from "zod";
|
|
4010
|
-
var
|
|
4011
|
-
|
|
4012
|
-
authorId: z110.string(),
|
|
4013
|
-
threadId: z110.string(),
|
|
4014
|
-
roomId: z110.string(),
|
|
4015
|
-
createdAt: z110.coerce.date(),
|
|
4016
|
-
editedAt: z110.coerce.date().optional(),
|
|
4017
|
-
deletedAt: z110.coerce.date().optional(),
|
|
4018
|
-
body: z110.string()
|
|
4019
|
-
});
|
|
4020
|
-
var DocumentationCommentThread = z110.object({
|
|
4024
|
+
var DocumentationPage = z110.object({
|
|
4025
|
+
type: z110.literal("DocumentationPage"),
|
|
4021
4026
|
id: z110.string(),
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
brandId: z110.string(),
|
|
4027
|
+
persistentId: z110.string(),
|
|
4028
|
+
shortPersistentId: z110.string(),
|
|
4025
4029
|
designSystemVersionId: z110.string(),
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4030
|
+
parentPersistentId: z110.string().nullish(),
|
|
4031
|
+
sortOrder: z110.number(),
|
|
4032
|
+
title: z110.string(),
|
|
4033
|
+
slug: z110.string(),
|
|
4034
|
+
userSlug: z110.string().nullish(),
|
|
4029
4035
|
createdAt: z110.coerce.date(),
|
|
4030
4036
|
updatedAt: z110.coerce.date()
|
|
4031
4037
|
});
|
|
4032
4038
|
|
|
4033
|
-
// src/dsm/
|
|
4039
|
+
// src/dsm/documentation/settings.ts
|
|
4034
4040
|
import { z as z111 } from "zod";
|
|
4035
|
-
var
|
|
4036
|
-
|
|
4037
|
-
id: z111.string(),
|
|
4038
|
-
persistentId: z111.string(),
|
|
4041
|
+
var DocumentationSettings = z111.object({
|
|
4042
|
+
// Basic
|
|
4039
4043
|
designSystemVersionId: z111.string(),
|
|
4040
4044
|
createdAt: z111.coerce.date(),
|
|
4041
4045
|
updatedAt: z111.coerce.date(),
|
|
4046
|
+
// Configuration
|
|
4047
|
+
isTabbedLayoutEnabled: z111.boolean(),
|
|
4048
|
+
storybookEmbedErrorMessage: z111.string().optional(),
|
|
4049
|
+
renderCodePackageJson: z111.string().optional(),
|
|
4050
|
+
selectedBrandPersistentId: z111.string().optional(),
|
|
4051
|
+
serveDefaultVersionOnly: z111.boolean(),
|
|
4052
|
+
isPublic: z111.boolean()
|
|
4053
|
+
});
|
|
4054
|
+
|
|
4055
|
+
// src/dsm/documentation/thread.ts
|
|
4056
|
+
import { z as z112 } from "zod";
|
|
4057
|
+
var DocumentationComment = z112.object({
|
|
4058
|
+
id: z112.string(),
|
|
4059
|
+
authorId: z112.string(),
|
|
4060
|
+
threadId: z112.string(),
|
|
4061
|
+
roomId: z112.string(),
|
|
4062
|
+
createdAt: z112.coerce.date(),
|
|
4063
|
+
editedAt: z112.coerce.date().optional(),
|
|
4064
|
+
deletedAt: z112.coerce.date().optional(),
|
|
4065
|
+
body: z112.string()
|
|
4066
|
+
});
|
|
4067
|
+
var DocumentationCommentThread = z112.object({
|
|
4068
|
+
id: z112.string(),
|
|
4069
|
+
roomId: z112.string(),
|
|
4070
|
+
pagePersistentId: z112.string(),
|
|
4071
|
+
brandId: z112.string(),
|
|
4072
|
+
designSystemVersionId: z112.string(),
|
|
4073
|
+
designSystemId: z112.string(),
|
|
4074
|
+
blockId: z112.string().optional(),
|
|
4075
|
+
resolved: z112.boolean(),
|
|
4076
|
+
createdAt: z112.coerce.date(),
|
|
4077
|
+
updatedAt: z112.coerce.date()
|
|
4078
|
+
});
|
|
4079
|
+
|
|
4080
|
+
// src/dsm/element-snapshots/base.ts
|
|
4081
|
+
import { z as z113 } from "zod";
|
|
4082
|
+
var DesignElementSnapshotReason = z113.enum(["Publish", "Deletion"]);
|
|
4083
|
+
var DesignElementSnapshotBase = z113.object({
|
|
4084
|
+
id: z113.string(),
|
|
4085
|
+
persistentId: z113.string(),
|
|
4086
|
+
designSystemVersionId: z113.string(),
|
|
4087
|
+
createdAt: z113.coerce.date(),
|
|
4088
|
+
updatedAt: z113.coerce.date(),
|
|
4042
4089
|
reason: DesignElementSnapshotReason,
|
|
4043
|
-
createdByUserId:
|
|
4090
|
+
createdByUserId: z113.string()
|
|
4044
4091
|
});
|
|
4045
4092
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
4046
4093
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -4051,11 +4098,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
4051
4098
|
}
|
|
4052
4099
|
|
|
4053
4100
|
// src/dsm/element-snapshots/documentation-page-snapshot.ts
|
|
4054
|
-
import { z as
|
|
4101
|
+
import { z as z114 } from "zod";
|
|
4055
4102
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
4056
4103
|
page: DocumentationPageV2,
|
|
4057
|
-
pageContentHash:
|
|
4058
|
-
pageContentStorageKey:
|
|
4104
|
+
pageContentHash: z114.string(),
|
|
4105
|
+
pageContentStorageKey: z114.string()
|
|
4059
4106
|
});
|
|
4060
4107
|
function pickLatestPageSnapshots(snapshots) {
|
|
4061
4108
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -4070,121 +4117,121 @@ function pickLatestGroupSnapshots(snapshots) {
|
|
|
4070
4117
|
}
|
|
4071
4118
|
|
|
4072
4119
|
// src/dsm/membership/design-system-membership.ts
|
|
4073
|
-
import { z as
|
|
4120
|
+
import { z as z135 } from "zod";
|
|
4074
4121
|
|
|
4075
4122
|
// src/workspace/npm-registry-settings.ts
|
|
4076
|
-
import { z as
|
|
4077
|
-
var NpmRegistryAuthType =
|
|
4078
|
-
var NpmRegistryType =
|
|
4079
|
-
var NpmRegistryBasicAuthConfig =
|
|
4080
|
-
authType:
|
|
4081
|
-
username:
|
|
4082
|
-
password:
|
|
4083
|
-
});
|
|
4084
|
-
var NpmRegistryBearerAuthConfig =
|
|
4085
|
-
authType:
|
|
4086
|
-
accessToken:
|
|
4087
|
-
});
|
|
4088
|
-
var NpmRegistryNoAuthConfig =
|
|
4089
|
-
authType:
|
|
4090
|
-
});
|
|
4091
|
-
var NpmRegistrCustomAuthConfig =
|
|
4092
|
-
authType:
|
|
4093
|
-
authHeaderName:
|
|
4094
|
-
authHeaderValue:
|
|
4095
|
-
});
|
|
4096
|
-
var NpmRegistryAuthConfig =
|
|
4123
|
+
import { z as z115 } from "zod";
|
|
4124
|
+
var NpmRegistryAuthType = z115.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4125
|
+
var NpmRegistryType = z115.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4126
|
+
var NpmRegistryBasicAuthConfig = z115.object({
|
|
4127
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4128
|
+
username: z115.string(),
|
|
4129
|
+
password: z115.string()
|
|
4130
|
+
});
|
|
4131
|
+
var NpmRegistryBearerAuthConfig = z115.object({
|
|
4132
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4133
|
+
accessToken: z115.string()
|
|
4134
|
+
});
|
|
4135
|
+
var NpmRegistryNoAuthConfig = z115.object({
|
|
4136
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.None)
|
|
4137
|
+
});
|
|
4138
|
+
var NpmRegistrCustomAuthConfig = z115.object({
|
|
4139
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4140
|
+
authHeaderName: z115.string(),
|
|
4141
|
+
authHeaderValue: z115.string()
|
|
4142
|
+
});
|
|
4143
|
+
var NpmRegistryAuthConfig = z115.discriminatedUnion("authType", [
|
|
4097
4144
|
NpmRegistryBasicAuthConfig,
|
|
4098
4145
|
NpmRegistryBearerAuthConfig,
|
|
4099
4146
|
NpmRegistryNoAuthConfig,
|
|
4100
4147
|
NpmRegistrCustomAuthConfig
|
|
4101
4148
|
]);
|
|
4102
|
-
var NpmRegistryConfigBase =
|
|
4149
|
+
var NpmRegistryConfigBase = z115.object({
|
|
4103
4150
|
registryType: NpmRegistryType,
|
|
4104
|
-
enabledScopes:
|
|
4105
|
-
customRegistryUrl:
|
|
4106
|
-
bypassProxy:
|
|
4107
|
-
npmProxyRegistryConfigId:
|
|
4108
|
-
npmProxyVersion:
|
|
4151
|
+
enabledScopes: z115.array(z115.string()),
|
|
4152
|
+
customRegistryUrl: z115.string().optional(),
|
|
4153
|
+
bypassProxy: z115.boolean().default(false),
|
|
4154
|
+
npmProxyRegistryConfigId: z115.string().optional(),
|
|
4155
|
+
npmProxyVersion: z115.number().optional()
|
|
4109
4156
|
});
|
|
4110
4157
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4111
4158
|
|
|
4112
4159
|
// src/workspace/sso-provider.ts
|
|
4113
|
-
import { z as
|
|
4114
|
-
var SsoProvider =
|
|
4115
|
-
providerId:
|
|
4116
|
-
defaultAutoInviteValue:
|
|
4117
|
-
autoInviteDomains:
|
|
4118
|
-
skipDocsSupernovaLogin:
|
|
4119
|
-
areInvitesDisabled:
|
|
4120
|
-
isTestMode:
|
|
4121
|
-
emailDomains:
|
|
4122
|
-
metadataXml:
|
|
4160
|
+
import { z as z116 } from "zod";
|
|
4161
|
+
var SsoProvider = z116.object({
|
|
4162
|
+
providerId: z116.string(),
|
|
4163
|
+
defaultAutoInviteValue: z116.boolean(),
|
|
4164
|
+
autoInviteDomains: z116.record(z116.string(), z116.boolean()),
|
|
4165
|
+
skipDocsSupernovaLogin: z116.boolean(),
|
|
4166
|
+
areInvitesDisabled: z116.boolean(),
|
|
4167
|
+
isTestMode: z116.boolean(),
|
|
4168
|
+
emailDomains: z116.array(z116.string()),
|
|
4169
|
+
metadataXml: z116.string().nullish()
|
|
4123
4170
|
});
|
|
4124
4171
|
|
|
4125
4172
|
// src/workspace/user-invite.ts
|
|
4126
|
-
import { z as
|
|
4173
|
+
import { z as z118 } from "zod";
|
|
4127
4174
|
|
|
4128
4175
|
// src/workspace/workspace-role.ts
|
|
4129
|
-
import { z as
|
|
4130
|
-
var WorkspaceRoleSchema =
|
|
4176
|
+
import { z as z117 } from "zod";
|
|
4177
|
+
var WorkspaceRoleSchema = z117.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4131
4178
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4132
4179
|
|
|
4133
4180
|
// src/workspace/user-invite.ts
|
|
4134
4181
|
var MAX_MEMBERS_COUNT = 100;
|
|
4135
|
-
var UserInvite =
|
|
4136
|
-
email:
|
|
4182
|
+
var UserInvite = z118.object({
|
|
4183
|
+
email: z118.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4137
4184
|
role: WorkspaceRoleSchema
|
|
4138
4185
|
});
|
|
4139
|
-
var UserInvites =
|
|
4186
|
+
var UserInvites = z118.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4140
4187
|
|
|
4141
4188
|
// src/workspace/workspace-configuration.ts
|
|
4142
|
-
import { z as
|
|
4189
|
+
import { z as z120 } from "zod";
|
|
4143
4190
|
|
|
4144
4191
|
// src/workspace/workspace.ts
|
|
4145
4192
|
import IPCIDR from "ip-cidr";
|
|
4146
|
-
import { z as
|
|
4193
|
+
import { z as z119 } from "zod";
|
|
4147
4194
|
var isValidCIDR = (value) => {
|
|
4148
4195
|
return IPCIDR.isValidAddress(value);
|
|
4149
4196
|
};
|
|
4150
|
-
var WorkspaceIpWhitelistEntry =
|
|
4151
|
-
isEnabled:
|
|
4152
|
-
name:
|
|
4153
|
-
range:
|
|
4197
|
+
var WorkspaceIpWhitelistEntry = z119.object({
|
|
4198
|
+
isEnabled: z119.boolean(),
|
|
4199
|
+
name: z119.string(),
|
|
4200
|
+
range: z119.string().refine(isValidCIDR, {
|
|
4154
4201
|
message: "Invalid IP CIDR"
|
|
4155
4202
|
})
|
|
4156
4203
|
});
|
|
4157
|
-
var WorkspaceIpSettings =
|
|
4158
|
-
isEnabledForCloud:
|
|
4159
|
-
isEnabledForDocs:
|
|
4160
|
-
entries:
|
|
4204
|
+
var WorkspaceIpSettings = z119.object({
|
|
4205
|
+
isEnabledForCloud: z119.boolean(),
|
|
4206
|
+
isEnabledForDocs: z119.boolean(),
|
|
4207
|
+
entries: z119.array(WorkspaceIpWhitelistEntry)
|
|
4161
4208
|
});
|
|
4162
|
-
var WorkspaceProfile =
|
|
4163
|
-
name:
|
|
4164
|
-
handle:
|
|
4165
|
-
color:
|
|
4166
|
-
avatar: nullishToOptional(
|
|
4209
|
+
var WorkspaceProfile = z119.object({
|
|
4210
|
+
name: z119.string(),
|
|
4211
|
+
handle: z119.string(),
|
|
4212
|
+
color: z119.string(),
|
|
4213
|
+
avatar: nullishToOptional(z119.string()),
|
|
4167
4214
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4168
4215
|
});
|
|
4169
4216
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4170
4217
|
avatar: true
|
|
4171
4218
|
});
|
|
4172
|
-
var Workspace =
|
|
4173
|
-
id:
|
|
4219
|
+
var Workspace = z119.object({
|
|
4220
|
+
id: z119.string(),
|
|
4174
4221
|
profile: WorkspaceProfile,
|
|
4175
4222
|
subscription: Subscription,
|
|
4176
4223
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4177
4224
|
sso: nullishToOptional(SsoProvider),
|
|
4178
4225
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4179
4226
|
});
|
|
4180
|
-
var WorkspaceWithDesignSystems =
|
|
4227
|
+
var WorkspaceWithDesignSystems = z119.object({
|
|
4181
4228
|
workspace: Workspace,
|
|
4182
|
-
designSystems:
|
|
4229
|
+
designSystems: z119.array(DesignSystem)
|
|
4183
4230
|
});
|
|
4184
4231
|
|
|
4185
4232
|
// src/workspace/workspace-configuration.ts
|
|
4186
|
-
var WorkspaceConfigurationUpdate =
|
|
4187
|
-
id:
|
|
4233
|
+
var WorkspaceConfigurationUpdate = z120.object({
|
|
4234
|
+
id: z120.string(),
|
|
4188
4235
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4189
4236
|
sso: SsoProvider.optional(),
|
|
4190
4237
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -4192,59 +4239,59 @@ var WorkspaceConfigurationUpdate = z118.object({
|
|
|
4192
4239
|
});
|
|
4193
4240
|
|
|
4194
4241
|
// src/workspace/workspace-context.ts
|
|
4195
|
-
import { z as
|
|
4196
|
-
var WorkspaceContext =
|
|
4197
|
-
workspaceId:
|
|
4242
|
+
import { z as z121 } from "zod";
|
|
4243
|
+
var WorkspaceContext = z121.object({
|
|
4244
|
+
workspaceId: z121.string(),
|
|
4198
4245
|
product: ProductCodeSchema,
|
|
4199
4246
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4200
|
-
publicDesignSystem:
|
|
4247
|
+
publicDesignSystem: z121.boolean().optional()
|
|
4201
4248
|
});
|
|
4202
4249
|
|
|
4203
4250
|
// src/workspace/workspace-create.ts
|
|
4204
|
-
import { z as
|
|
4251
|
+
import { z as z122 } from "zod";
|
|
4205
4252
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4206
4253
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4207
4254
|
var HANDLE_MIN_LENGTH = 2;
|
|
4208
4255
|
var HANDLE_MAX_LENGTH = 64;
|
|
4209
|
-
var CreateWorkspaceInput =
|
|
4210
|
-
name:
|
|
4211
|
-
handle:
|
|
4256
|
+
var CreateWorkspaceInput = z122.object({
|
|
4257
|
+
name: z122.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4258
|
+
handle: z122.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4212
4259
|
});
|
|
4213
4260
|
|
|
4214
4261
|
// src/workspace/workspace-invitations.ts
|
|
4215
|
-
import { z as
|
|
4216
|
-
var WorkspaceInvitation =
|
|
4217
|
-
id:
|
|
4218
|
-
email:
|
|
4219
|
-
createdAt:
|
|
4220
|
-
resentAt:
|
|
4221
|
-
role:
|
|
4222
|
-
workspaceId:
|
|
4223
|
-
invitedBy:
|
|
4262
|
+
import { z as z123 } from "zod";
|
|
4263
|
+
var WorkspaceInvitation = z123.object({
|
|
4264
|
+
id: z123.string(),
|
|
4265
|
+
email: z123.string().email(),
|
|
4266
|
+
createdAt: z123.coerce.date(),
|
|
4267
|
+
resentAt: z123.coerce.date().nullish(),
|
|
4268
|
+
role: z123.nativeEnum(WorkspaceRole),
|
|
4269
|
+
workspaceId: z123.string(),
|
|
4270
|
+
invitedBy: z123.string()
|
|
4224
4271
|
});
|
|
4225
4272
|
|
|
4226
4273
|
// src/workspace/workspace-membership.ts
|
|
4227
|
-
import { z as
|
|
4274
|
+
import { z as z132 } from "zod";
|
|
4228
4275
|
|
|
4229
4276
|
// src/users/linked-integrations.ts
|
|
4230
|
-
import { z as
|
|
4231
|
-
var IntegrationAuthType =
|
|
4232
|
-
var ExternalServiceType =
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4277
|
+
import { z as z124 } from "zod";
|
|
4278
|
+
var IntegrationAuthType = z124.union([z124.literal("OAuth2"), z124.literal("PAT")]);
|
|
4279
|
+
var ExternalServiceType = z124.union([
|
|
4280
|
+
z124.literal("figma"),
|
|
4281
|
+
z124.literal("github"),
|
|
4282
|
+
z124.literal("azure"),
|
|
4283
|
+
z124.literal("gitlab"),
|
|
4284
|
+
z124.literal("bitbucket")
|
|
4238
4285
|
]);
|
|
4239
|
-
var IntegrationUserInfo =
|
|
4240
|
-
id:
|
|
4241
|
-
handle:
|
|
4242
|
-
avatarUrl:
|
|
4243
|
-
email:
|
|
4286
|
+
var IntegrationUserInfo = z124.object({
|
|
4287
|
+
id: z124.string(),
|
|
4288
|
+
handle: z124.string().optional(),
|
|
4289
|
+
avatarUrl: z124.string().optional(),
|
|
4290
|
+
email: z124.string().optional(),
|
|
4244
4291
|
authType: IntegrationAuthType.optional(),
|
|
4245
|
-
customUrl:
|
|
4292
|
+
customUrl: z124.string().optional()
|
|
4246
4293
|
});
|
|
4247
|
-
var UserLinkedIntegrations =
|
|
4294
|
+
var UserLinkedIntegrations = z124.object({
|
|
4248
4295
|
figma: IntegrationUserInfo.optional(),
|
|
4249
4296
|
github: IntegrationUserInfo.array().optional(),
|
|
4250
4297
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4253,38 +4300,38 @@ var UserLinkedIntegrations = z122.object({
|
|
|
4253
4300
|
});
|
|
4254
4301
|
|
|
4255
4302
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4256
|
-
import { z as
|
|
4257
|
-
var UserAnalyticsCleanupSchedule =
|
|
4258
|
-
userId:
|
|
4259
|
-
createdAt:
|
|
4260
|
-
deleteAt:
|
|
4303
|
+
import { z as z125 } from "zod";
|
|
4304
|
+
var UserAnalyticsCleanupSchedule = z125.object({
|
|
4305
|
+
userId: z125.string(),
|
|
4306
|
+
createdAt: z125.coerce.date(),
|
|
4307
|
+
deleteAt: z125.coerce.date()
|
|
4261
4308
|
});
|
|
4262
4309
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4263
4310
|
createdAt: true
|
|
4264
4311
|
});
|
|
4265
4312
|
|
|
4266
4313
|
// src/users/user-identity.ts
|
|
4267
|
-
import { z as
|
|
4268
|
-
var UserIdentity =
|
|
4269
|
-
id:
|
|
4270
|
-
userId:
|
|
4314
|
+
import { z as z126 } from "zod";
|
|
4315
|
+
var UserIdentity = z126.object({
|
|
4316
|
+
id: z126.string(),
|
|
4317
|
+
userId: z126.string()
|
|
4271
4318
|
});
|
|
4272
4319
|
|
|
4273
4320
|
// src/users/user-minified.ts
|
|
4274
|
-
import { z as
|
|
4275
|
-
var UserMinified =
|
|
4276
|
-
id:
|
|
4277
|
-
name:
|
|
4278
|
-
email:
|
|
4279
|
-
avatar:
|
|
4321
|
+
import { z as z127 } from "zod";
|
|
4322
|
+
var UserMinified = z127.object({
|
|
4323
|
+
id: z127.string(),
|
|
4324
|
+
name: z127.string(),
|
|
4325
|
+
email: z127.string(),
|
|
4326
|
+
avatar: z127.string().optional()
|
|
4280
4327
|
});
|
|
4281
4328
|
|
|
4282
4329
|
// src/users/user-notification-settings.ts
|
|
4283
|
-
import { z as
|
|
4284
|
-
var LiveblocksNotificationSettings =
|
|
4285
|
-
sendCommentNotificationEmails:
|
|
4330
|
+
import { z as z128 } from "zod";
|
|
4331
|
+
var LiveblocksNotificationSettings = z128.object({
|
|
4332
|
+
sendCommentNotificationEmails: z128.boolean()
|
|
4286
4333
|
});
|
|
4287
|
-
var UserNotificationSettings =
|
|
4334
|
+
var UserNotificationSettings = z128.object({
|
|
4288
4335
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4289
4336
|
});
|
|
4290
4337
|
var defaultNotificationSettings = {
|
|
@@ -4294,27 +4341,27 @@ var defaultNotificationSettings = {
|
|
|
4294
4341
|
};
|
|
4295
4342
|
|
|
4296
4343
|
// src/users/user-profile.ts
|
|
4297
|
-
import { z as
|
|
4298
|
-
var UserOnboardingDepartment =
|
|
4299
|
-
var UserOnboardingJobLevel =
|
|
4300
|
-
var UserOnboarding =
|
|
4301
|
-
companyName:
|
|
4302
|
-
numberOfPeopleInOrg:
|
|
4303
|
-
numberOfPeopleInDesignTeam:
|
|
4344
|
+
import { z as z129 } from "zod";
|
|
4345
|
+
var UserOnboardingDepartment = z129.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4346
|
+
var UserOnboardingJobLevel = z129.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4347
|
+
var UserOnboarding = z129.object({
|
|
4348
|
+
companyName: z129.string().optional(),
|
|
4349
|
+
numberOfPeopleInOrg: z129.string().optional(),
|
|
4350
|
+
numberOfPeopleInDesignTeam: z129.string().optional(),
|
|
4304
4351
|
department: UserOnboardingDepartment.optional(),
|
|
4305
|
-
jobTitle:
|
|
4306
|
-
phase:
|
|
4352
|
+
jobTitle: z129.string().optional(),
|
|
4353
|
+
phase: z129.string().optional(),
|
|
4307
4354
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4308
|
-
designSystemName:
|
|
4309
|
-
defaultDestination:
|
|
4310
|
-
figmaUrl:
|
|
4311
|
-
isPageDraftOnboardingFinished:
|
|
4312
|
-
isApprovalsOnboardingFinished:
|
|
4313
|
-
});
|
|
4314
|
-
var UserProfile =
|
|
4315
|
-
name:
|
|
4316
|
-
avatar:
|
|
4317
|
-
nickname:
|
|
4355
|
+
designSystemName: z129.string().optional(),
|
|
4356
|
+
defaultDestination: z129.string().optional(),
|
|
4357
|
+
figmaUrl: z129.string().optional(),
|
|
4358
|
+
isPageDraftOnboardingFinished: z129.boolean().optional(),
|
|
4359
|
+
isApprovalsOnboardingFinished: z129.boolean().optional()
|
|
4360
|
+
});
|
|
4361
|
+
var UserProfile = z129.object({
|
|
4362
|
+
name: z129.string(),
|
|
4363
|
+
avatar: z129.string().optional(),
|
|
4364
|
+
nickname: z129.string().optional(),
|
|
4318
4365
|
onboarding: UserOnboarding.optional()
|
|
4319
4366
|
});
|
|
4320
4367
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
@@ -4322,48 +4369,48 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4322
4369
|
});
|
|
4323
4370
|
|
|
4324
4371
|
// src/users/user-test.ts
|
|
4325
|
-
import { z as
|
|
4326
|
-
var UserTest =
|
|
4327
|
-
id:
|
|
4328
|
-
email:
|
|
4372
|
+
import { z as z130 } from "zod";
|
|
4373
|
+
var UserTest = z130.object({
|
|
4374
|
+
id: z130.string(),
|
|
4375
|
+
email: z130.string()
|
|
4329
4376
|
});
|
|
4330
4377
|
|
|
4331
4378
|
// src/users/user.ts
|
|
4332
|
-
import { z as
|
|
4333
|
-
var UserSource =
|
|
4334
|
-
var User =
|
|
4335
|
-
id:
|
|
4336
|
-
email:
|
|
4337
|
-
emailVerified:
|
|
4338
|
-
createdAt:
|
|
4339
|
-
trialExpiresAt:
|
|
4379
|
+
import { z as z131 } from "zod";
|
|
4380
|
+
var UserSource = z131.enum(["SignUp", "Invite", "SSO"]);
|
|
4381
|
+
var User = z131.object({
|
|
4382
|
+
id: z131.string(),
|
|
4383
|
+
email: z131.string(),
|
|
4384
|
+
emailVerified: z131.boolean(),
|
|
4385
|
+
createdAt: z131.coerce.date(),
|
|
4386
|
+
trialExpiresAt: z131.coerce.date().optional(),
|
|
4340
4387
|
profile: UserProfile,
|
|
4341
4388
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4342
|
-
loggedOutAt:
|
|
4343
|
-
isProtected:
|
|
4389
|
+
loggedOutAt: z131.coerce.date().optional(),
|
|
4390
|
+
isProtected: z131.boolean(),
|
|
4344
4391
|
source: UserSource.optional()
|
|
4345
4392
|
});
|
|
4346
4393
|
|
|
4347
4394
|
// src/workspace/workspace-membership.ts
|
|
4348
|
-
var WorkspaceMembership =
|
|
4349
|
-
id:
|
|
4350
|
-
userId:
|
|
4351
|
-
workspaceId:
|
|
4352
|
-
workspaceRole:
|
|
4395
|
+
var WorkspaceMembership = z132.object({
|
|
4396
|
+
id: z132.string(),
|
|
4397
|
+
userId: z132.string(),
|
|
4398
|
+
workspaceId: z132.string(),
|
|
4399
|
+
workspaceRole: z132.nativeEnum(WorkspaceRole),
|
|
4353
4400
|
notificationSettings: UserNotificationSettings
|
|
4354
4401
|
});
|
|
4355
|
-
var UpdateMembershipRolesInput =
|
|
4356
|
-
members:
|
|
4357
|
-
|
|
4358
|
-
userId:
|
|
4359
|
-
role:
|
|
4402
|
+
var UpdateMembershipRolesInput = z132.object({
|
|
4403
|
+
members: z132.array(
|
|
4404
|
+
z132.object({
|
|
4405
|
+
userId: z132.string(),
|
|
4406
|
+
role: z132.nativeEnum(WorkspaceRole)
|
|
4360
4407
|
})
|
|
4361
4408
|
)
|
|
4362
4409
|
});
|
|
4363
4410
|
|
|
4364
4411
|
// src/dsm/membership/ds-role.ts
|
|
4365
|
-
import { z as
|
|
4366
|
-
var DesignSystemRole =
|
|
4412
|
+
import { z as z133 } from "zod";
|
|
4413
|
+
var DesignSystemRole = z133.enum([
|
|
4367
4414
|
WorkspaceRole.Admin,
|
|
4368
4415
|
WorkspaceRole.Contributor,
|
|
4369
4416
|
WorkspaceRole.Creator,
|
|
@@ -4387,46 +4434,46 @@ function workspaceRoleToDesignSystemRole(role) {
|
|
|
4387
4434
|
}
|
|
4388
4435
|
|
|
4389
4436
|
// src/dsm/membership/invitations.ts
|
|
4390
|
-
import { z as
|
|
4391
|
-
var DesignSystemInvitation =
|
|
4392
|
-
id:
|
|
4393
|
-
designSystemId:
|
|
4394
|
-
workspaceInvitationId:
|
|
4437
|
+
import { z as z134 } from "zod";
|
|
4438
|
+
var DesignSystemInvitation = z134.object({
|
|
4439
|
+
id: z134.string(),
|
|
4440
|
+
designSystemId: z134.string(),
|
|
4441
|
+
workspaceInvitationId: z134.string(),
|
|
4395
4442
|
designSystemRole: DesignSystemRole.optional(),
|
|
4396
|
-
workspaceRole: WorkspaceRoleSchema
|
|
4443
|
+
workspaceRole: WorkspaceRoleSchema
|
|
4397
4444
|
});
|
|
4398
4445
|
|
|
4399
4446
|
// src/dsm/membership/design-system-membership.ts
|
|
4400
|
-
var DesignSystemMembership =
|
|
4401
|
-
id:
|
|
4402
|
-
userId:
|
|
4403
|
-
designSystemId:
|
|
4447
|
+
var DesignSystemMembership = z135.object({
|
|
4448
|
+
id: z135.string(),
|
|
4449
|
+
userId: z135.string(),
|
|
4450
|
+
designSystemId: z135.string(),
|
|
4404
4451
|
designSystemRole: DesignSystemRole.optional(),
|
|
4405
|
-
workspaceMembershipId:
|
|
4406
|
-
workspaceRole: WorkspaceRoleSchema
|
|
4452
|
+
workspaceMembershipId: z135.string(),
|
|
4453
|
+
workspaceRole: WorkspaceRoleSchema
|
|
4407
4454
|
});
|
|
4408
|
-
var DesignSystemMembers =
|
|
4455
|
+
var DesignSystemMembers = z135.object({
|
|
4409
4456
|
members: DesignSystemMembership.array(),
|
|
4410
4457
|
invitations: DesignSystemInvitation.array()
|
|
4411
4458
|
});
|
|
4412
|
-
var DesignSystemPendingMemberInvitation =
|
|
4413
|
-
inviteId:
|
|
4459
|
+
var DesignSystemPendingMemberInvitation = z135.object({
|
|
4460
|
+
inviteId: z135.string(),
|
|
4414
4461
|
/**
|
|
4415
4462
|
* Role that the user will have in the design system, undefined
|
|
4416
4463
|
* if it should be inherited from the workspace
|
|
4417
4464
|
*/
|
|
4418
4465
|
designSystemRole: DesignSystemRole.optional()
|
|
4419
4466
|
});
|
|
4420
|
-
var DesignSystemUserInvitation =
|
|
4421
|
-
userId:
|
|
4467
|
+
var DesignSystemUserInvitation = z135.object({
|
|
4468
|
+
userId: z135.string(),
|
|
4422
4469
|
/**
|
|
4423
4470
|
* Role that the user will have in the design system, undefined
|
|
4424
4471
|
* if it should be inherited from the workspace
|
|
4425
4472
|
*/
|
|
4426
4473
|
designSystemRole: DesignSystemRole.optional()
|
|
4427
4474
|
});
|
|
4428
|
-
var DesignSystemInvite =
|
|
4429
|
-
email:
|
|
4475
|
+
var DesignSystemInvite = z135.object({
|
|
4476
|
+
email: z135.string(),
|
|
4430
4477
|
workspaceRole: WorkspaceRoleSchema,
|
|
4431
4478
|
/**
|
|
4432
4479
|
* Role that the user will have in the design system, undefined
|
|
@@ -4434,284 +4481,284 @@ var DesignSystemInvite = z133.object({
|
|
|
4434
4481
|
*/
|
|
4435
4482
|
designSystemRole: DesignSystemRole.optional()
|
|
4436
4483
|
});
|
|
4437
|
-
var DesignSystemMemberUpdate =
|
|
4438
|
-
userId:
|
|
4484
|
+
var DesignSystemMemberUpdate = z135.object({
|
|
4485
|
+
userId: z135.string(),
|
|
4439
4486
|
designSystemRole: DesignSystemRole.nullable()
|
|
4440
4487
|
});
|
|
4441
|
-
var DesignSystemInviteUpdate =
|
|
4488
|
+
var DesignSystemInviteUpdate = z135.object({
|
|
4442
4489
|
/**
|
|
4443
4490
|
* Workspace invitation id
|
|
4444
4491
|
*/
|
|
4445
|
-
inviteId:
|
|
4492
|
+
inviteId: z135.string(),
|
|
4446
4493
|
designSystemRole: DesignSystemRole.nullable()
|
|
4447
4494
|
});
|
|
4448
|
-
var DesignSystemMembershipUpdates =
|
|
4495
|
+
var DesignSystemMembershipUpdates = z135.object({
|
|
4449
4496
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
4450
4497
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
4451
4498
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
4452
4499
|
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
4453
4500
|
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
4454
|
-
removeUserIds:
|
|
4455
|
-
deleteInvitationIds:
|
|
4501
|
+
removeUserIds: z135.string().array().optional(),
|
|
4502
|
+
deleteInvitationIds: z135.string().array().optional()
|
|
4456
4503
|
});
|
|
4457
4504
|
|
|
4458
4505
|
// src/dsm/views/column.ts
|
|
4459
|
-
import { z as
|
|
4460
|
-
var ElementViewBaseColumnType =
|
|
4461
|
-
var ElementViewColumnType =
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4506
|
+
import { z as z136 } from "zod";
|
|
4507
|
+
var ElementViewBaseColumnType = z136.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
4508
|
+
var ElementViewColumnType = z136.union([
|
|
4509
|
+
z136.literal("BaseProperty"),
|
|
4510
|
+
z136.literal("PropertyDefinition"),
|
|
4511
|
+
z136.literal("Theme")
|
|
4465
4512
|
]);
|
|
4466
|
-
var ElementViewColumnSharedAttributes =
|
|
4467
|
-
id:
|
|
4468
|
-
persistentId:
|
|
4469
|
-
elementDataViewId:
|
|
4470
|
-
sortPosition:
|
|
4471
|
-
width:
|
|
4513
|
+
var ElementViewColumnSharedAttributes = z136.object({
|
|
4514
|
+
id: z136.string(),
|
|
4515
|
+
persistentId: z136.string(),
|
|
4516
|
+
elementDataViewId: z136.string(),
|
|
4517
|
+
sortPosition: z136.number(),
|
|
4518
|
+
width: z136.number()
|
|
4472
4519
|
});
|
|
4473
4520
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
4474
|
-
type:
|
|
4521
|
+
type: z136.literal("BaseProperty"),
|
|
4475
4522
|
basePropertyType: ElementViewBaseColumnType
|
|
4476
4523
|
});
|
|
4477
4524
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4478
|
-
type:
|
|
4479
|
-
propertyDefinitionId:
|
|
4525
|
+
type: z136.literal("PropertyDefinition"),
|
|
4526
|
+
propertyDefinitionId: z136.string()
|
|
4480
4527
|
});
|
|
4481
4528
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4482
|
-
type:
|
|
4483
|
-
themeId:
|
|
4529
|
+
type: z136.literal("Theme"),
|
|
4530
|
+
themeId: z136.string()
|
|
4484
4531
|
});
|
|
4485
|
-
var ElementViewColumn =
|
|
4532
|
+
var ElementViewColumn = z136.discriminatedUnion("type", [
|
|
4486
4533
|
ElementViewBasePropertyColumn,
|
|
4487
4534
|
ElementViewPropertyDefinitionColumn,
|
|
4488
4535
|
ElementViewThemeColumn
|
|
4489
4536
|
]);
|
|
4490
4537
|
|
|
4491
4538
|
// src/dsm/views/view.ts
|
|
4492
|
-
import { z as
|
|
4493
|
-
var ElementView =
|
|
4494
|
-
id:
|
|
4495
|
-
persistentId:
|
|
4496
|
-
designSystemVersionId:
|
|
4497
|
-
name:
|
|
4498
|
-
description:
|
|
4539
|
+
import { z as z137 } from "zod";
|
|
4540
|
+
var ElementView = z137.object({
|
|
4541
|
+
id: z137.string(),
|
|
4542
|
+
persistentId: z137.string(),
|
|
4543
|
+
designSystemVersionId: z137.string(),
|
|
4544
|
+
name: z137.string(),
|
|
4545
|
+
description: z137.string(),
|
|
4499
4546
|
targetElementType: ElementPropertyTargetType,
|
|
4500
|
-
isDefault:
|
|
4547
|
+
isDefault: z137.boolean()
|
|
4501
4548
|
});
|
|
4502
4549
|
|
|
4503
4550
|
// src/dsm/brand.ts
|
|
4504
|
-
import { z as
|
|
4505
|
-
var Brand =
|
|
4506
|
-
id:
|
|
4507
|
-
designSystemVersionId:
|
|
4508
|
-
persistentId:
|
|
4509
|
-
name:
|
|
4510
|
-
description:
|
|
4551
|
+
import { z as z138 } from "zod";
|
|
4552
|
+
var Brand = z138.object({
|
|
4553
|
+
id: z138.string(),
|
|
4554
|
+
designSystemVersionId: z138.string(),
|
|
4555
|
+
persistentId: z138.string(),
|
|
4556
|
+
name: z138.string(),
|
|
4557
|
+
description: z138.string()
|
|
4511
4558
|
});
|
|
4512
4559
|
|
|
4513
4560
|
// src/dsm/design-system.ts
|
|
4514
|
-
import { z as
|
|
4515
|
-
var DesignSystemAccessMode =
|
|
4516
|
-
var DesignSystemSwitcher =
|
|
4517
|
-
isEnabled:
|
|
4518
|
-
designSystemIds:
|
|
4561
|
+
import { z as z139 } from "zod";
|
|
4562
|
+
var DesignSystemAccessMode = z139.enum(["Open", "InviteOnly"]);
|
|
4563
|
+
var DesignSystemSwitcher = z139.object({
|
|
4564
|
+
isEnabled: z139.boolean(),
|
|
4565
|
+
designSystemIds: z139.array(z139.string())
|
|
4519
4566
|
});
|
|
4520
|
-
var DesignSystem =
|
|
4521
|
-
id:
|
|
4522
|
-
workspaceId:
|
|
4523
|
-
name:
|
|
4524
|
-
description:
|
|
4525
|
-
docExporterId: nullishToOptional(
|
|
4526
|
-
docSlug:
|
|
4527
|
-
docUserSlug: nullishToOptional(
|
|
4528
|
-
docSlugDeprecated:
|
|
4529
|
-
isMultibrand:
|
|
4530
|
-
docViewUrl: nullishToOptional(
|
|
4531
|
-
basePrefixes:
|
|
4567
|
+
var DesignSystem = z139.object({
|
|
4568
|
+
id: z139.string(),
|
|
4569
|
+
workspaceId: z139.string(),
|
|
4570
|
+
name: z139.string(),
|
|
4571
|
+
description: z139.string(),
|
|
4572
|
+
docExporterId: nullishToOptional(z139.string()),
|
|
4573
|
+
docSlug: z139.string(),
|
|
4574
|
+
docUserSlug: nullishToOptional(z139.string()),
|
|
4575
|
+
docSlugDeprecated: z139.string(),
|
|
4576
|
+
isMultibrand: z139.boolean(),
|
|
4577
|
+
docViewUrl: nullishToOptional(z139.string()),
|
|
4578
|
+
basePrefixes: z139.array(z139.string()),
|
|
4532
4579
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4533
|
-
isApprovalFeatureEnabled:
|
|
4534
|
-
approvalRequiredForPublishing:
|
|
4580
|
+
isApprovalFeatureEnabled: z139.boolean(),
|
|
4581
|
+
approvalRequiredForPublishing: z139.boolean(),
|
|
4535
4582
|
accessMode: DesignSystemAccessMode,
|
|
4536
|
-
membersGenerated:
|
|
4537
|
-
createdAt:
|
|
4538
|
-
updatedAt:
|
|
4583
|
+
membersGenerated: z139.boolean(),
|
|
4584
|
+
createdAt: z139.coerce.date(),
|
|
4585
|
+
updatedAt: z139.coerce.date()
|
|
4539
4586
|
});
|
|
4540
4587
|
|
|
4541
4588
|
// src/dsm/exporter-property-values-collection.ts
|
|
4542
|
-
import { z as
|
|
4543
|
-
var ExporterPropertyImageValue =
|
|
4589
|
+
import { z as z140 } from "zod";
|
|
4590
|
+
var ExporterPropertyImageValue = z140.object({
|
|
4544
4591
|
asset: PageBlockAsset.optional(),
|
|
4545
|
-
assetId:
|
|
4546
|
-
assetUrl:
|
|
4547
|
-
});
|
|
4548
|
-
var ExporterPropertyValue =
|
|
4549
|
-
key:
|
|
4550
|
-
value:
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4592
|
+
assetId: z140.string().optional(),
|
|
4593
|
+
assetUrl: z140.string().optional()
|
|
4594
|
+
});
|
|
4595
|
+
var ExporterPropertyValue = z140.object({
|
|
4596
|
+
key: z140.string(),
|
|
4597
|
+
value: z140.union([
|
|
4598
|
+
z140.number(),
|
|
4599
|
+
z140.string(),
|
|
4600
|
+
z140.boolean(),
|
|
4554
4601
|
ExporterPropertyImageValue,
|
|
4555
4602
|
ColorTokenData,
|
|
4556
4603
|
TypographyTokenData
|
|
4557
4604
|
])
|
|
4558
4605
|
});
|
|
4559
|
-
var ExporterPropertyValuesCollection =
|
|
4560
|
-
id:
|
|
4561
|
-
designSystemId:
|
|
4562
|
-
exporterId:
|
|
4563
|
-
values:
|
|
4606
|
+
var ExporterPropertyValuesCollection = z140.object({
|
|
4607
|
+
id: z140.string(),
|
|
4608
|
+
designSystemId: z140.string(),
|
|
4609
|
+
exporterId: z140.string(),
|
|
4610
|
+
values: z140.array(ExporterPropertyValue)
|
|
4564
4611
|
});
|
|
4565
4612
|
|
|
4566
4613
|
// src/dsm/published-doc-page.ts
|
|
4567
|
-
import { z as
|
|
4614
|
+
import { z as z141 } from "zod";
|
|
4568
4615
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4569
4616
|
function tryParseShortPersistentId(url = "/") {
|
|
4570
4617
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4571
4618
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4572
4619
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4573
4620
|
}
|
|
4574
|
-
var PublishedDocPage =
|
|
4575
|
-
id:
|
|
4576
|
-
publishedDocId:
|
|
4577
|
-
pageShortPersistentId:
|
|
4578
|
-
pathV1:
|
|
4579
|
-
pathV2:
|
|
4580
|
-
storagePath:
|
|
4581
|
-
locale:
|
|
4582
|
-
isPrivate:
|
|
4583
|
-
isHidden:
|
|
4584
|
-
createdAt:
|
|
4585
|
-
updatedAt:
|
|
4621
|
+
var PublishedDocPage = z141.object({
|
|
4622
|
+
id: z141.string(),
|
|
4623
|
+
publishedDocId: z141.string(),
|
|
4624
|
+
pageShortPersistentId: z141.string(),
|
|
4625
|
+
pathV1: z141.string(),
|
|
4626
|
+
pathV2: z141.string(),
|
|
4627
|
+
storagePath: z141.string(),
|
|
4628
|
+
locale: z141.string().optional(),
|
|
4629
|
+
isPrivate: z141.boolean(),
|
|
4630
|
+
isHidden: z141.boolean(),
|
|
4631
|
+
createdAt: z141.coerce.date(),
|
|
4632
|
+
updatedAt: z141.coerce.date()
|
|
4586
4633
|
});
|
|
4587
4634
|
|
|
4588
4635
|
// src/dsm/published-doc.ts
|
|
4589
|
-
import { z as
|
|
4636
|
+
import { z as z142 } from "zod";
|
|
4590
4637
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4591
|
-
var PublishedDocEnvironment =
|
|
4592
|
-
var PublishedDocsChecksums =
|
|
4593
|
-
var PublishedDocRoutingVersion =
|
|
4594
|
-
var PublishedDoc =
|
|
4595
|
-
id:
|
|
4596
|
-
designSystemVersionId:
|
|
4597
|
-
createdAt:
|
|
4598
|
-
updatedAt:
|
|
4599
|
-
lastPublishedAt:
|
|
4600
|
-
isDefault:
|
|
4601
|
-
isPublic:
|
|
4638
|
+
var PublishedDocEnvironment = z142.enum(publishedDocEnvironments);
|
|
4639
|
+
var PublishedDocsChecksums = z142.record(z142.string());
|
|
4640
|
+
var PublishedDocRoutingVersion = z142.enum(["1", "2"]);
|
|
4641
|
+
var PublishedDoc = z142.object({
|
|
4642
|
+
id: z142.string(),
|
|
4643
|
+
designSystemVersionId: z142.string(),
|
|
4644
|
+
createdAt: z142.coerce.date(),
|
|
4645
|
+
updatedAt: z142.coerce.date(),
|
|
4646
|
+
lastPublishedAt: z142.coerce.date(),
|
|
4647
|
+
isDefault: z142.boolean(),
|
|
4648
|
+
isPublic: z142.boolean(),
|
|
4602
4649
|
environment: PublishedDocEnvironment,
|
|
4603
4650
|
checksums: PublishedDocsChecksums,
|
|
4604
|
-
storagePath:
|
|
4605
|
-
wasMigrated:
|
|
4651
|
+
storagePath: z142.string(),
|
|
4652
|
+
wasMigrated: z142.boolean(),
|
|
4606
4653
|
routingVersion: PublishedDocRoutingVersion,
|
|
4607
|
-
usesLocalizations:
|
|
4608
|
-
wasPublishedWithLocalizations:
|
|
4609
|
-
tokenCount:
|
|
4610
|
-
assetCount:
|
|
4654
|
+
usesLocalizations: z142.boolean(),
|
|
4655
|
+
wasPublishedWithLocalizations: z142.boolean(),
|
|
4656
|
+
tokenCount: z142.number(),
|
|
4657
|
+
assetCount: z142.number()
|
|
4611
4658
|
});
|
|
4612
4659
|
|
|
4613
4660
|
// src/dsm/version.ts
|
|
4614
|
-
import { z as
|
|
4615
|
-
var DesignSystemVersion =
|
|
4616
|
-
id:
|
|
4617
|
-
version:
|
|
4618
|
-
createdAt:
|
|
4619
|
-
designSystemId:
|
|
4620
|
-
name:
|
|
4621
|
-
comment:
|
|
4622
|
-
isReadonly:
|
|
4623
|
-
changeLog:
|
|
4624
|
-
parentId:
|
|
4625
|
-
isDraftsFeatureAdopted:
|
|
4626
|
-
});
|
|
4627
|
-
var VersionCreationJobStatus =
|
|
4628
|
-
var VersionCreationJob =
|
|
4629
|
-
id:
|
|
4630
|
-
version:
|
|
4631
|
-
designSystemId:
|
|
4632
|
-
designSystemVersionId: nullishToOptional(
|
|
4661
|
+
import { z as z143 } from "zod";
|
|
4662
|
+
var DesignSystemVersion = z143.object({
|
|
4663
|
+
id: z143.string(),
|
|
4664
|
+
version: z143.string(),
|
|
4665
|
+
createdAt: z143.coerce.date(),
|
|
4666
|
+
designSystemId: z143.string(),
|
|
4667
|
+
name: z143.string(),
|
|
4668
|
+
comment: z143.string(),
|
|
4669
|
+
isReadonly: z143.boolean(),
|
|
4670
|
+
changeLog: z143.string(),
|
|
4671
|
+
parentId: z143.string().optional(),
|
|
4672
|
+
isDraftsFeatureAdopted: z143.boolean()
|
|
4673
|
+
});
|
|
4674
|
+
var VersionCreationJobStatus = z143.enum(["Success", "InProgress", "Error"]);
|
|
4675
|
+
var VersionCreationJob = z143.object({
|
|
4676
|
+
id: z143.string(),
|
|
4677
|
+
version: z143.string(),
|
|
4678
|
+
designSystemId: z143.string(),
|
|
4679
|
+
designSystemVersionId: nullishToOptional(z143.string()),
|
|
4633
4680
|
status: VersionCreationJobStatus,
|
|
4634
|
-
errorMessage: nullishToOptional(
|
|
4681
|
+
errorMessage: nullishToOptional(z143.string())
|
|
4635
4682
|
});
|
|
4636
4683
|
|
|
4637
4684
|
// src/export/export-destinations.ts
|
|
4638
4685
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4639
4686
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4640
|
-
var ExportJobDocumentationChanges =
|
|
4641
|
-
pagePersistentIds:
|
|
4642
|
-
groupPersistentIds:
|
|
4687
|
+
var ExportJobDocumentationChanges = z144.object({
|
|
4688
|
+
pagePersistentIds: z144.string().array(),
|
|
4689
|
+
groupPersistentIds: z144.string().array()
|
|
4643
4690
|
});
|
|
4644
|
-
var ExporterDestinationDocs =
|
|
4691
|
+
var ExporterDestinationDocs = z144.object({
|
|
4645
4692
|
environment: PublishedDocEnvironment,
|
|
4646
4693
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4647
4694
|
});
|
|
4648
|
-
var ExporterDestinationS3 =
|
|
4649
|
-
var ExporterDestinationGithub =
|
|
4650
|
-
credentialId:
|
|
4695
|
+
var ExporterDestinationS3 = z144.object({});
|
|
4696
|
+
var ExporterDestinationGithub = z144.object({
|
|
4697
|
+
credentialId: z144.string().optional(),
|
|
4651
4698
|
// Repository
|
|
4652
|
-
url:
|
|
4699
|
+
url: z144.string(),
|
|
4653
4700
|
// Location
|
|
4654
|
-
branch:
|
|
4655
|
-
relativePath: nullishToOptional(
|
|
4701
|
+
branch: z144.string(),
|
|
4702
|
+
relativePath: nullishToOptional(z144.string()),
|
|
4656
4703
|
// Commit metadata
|
|
4657
|
-
commitAuthorName: nullishToOptional(
|
|
4658
|
-
commitAuthorEmail: nullishToOptional(
|
|
4704
|
+
commitAuthorName: nullishToOptional(z144.string()),
|
|
4705
|
+
commitAuthorEmail: nullishToOptional(z144.string()),
|
|
4659
4706
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4660
|
-
connectionId: nullishToOptional(
|
|
4661
|
-
userId: nullishToOptional(
|
|
4707
|
+
connectionId: nullishToOptional(z144.string()),
|
|
4708
|
+
userId: nullishToOptional(z144.number())
|
|
4662
4709
|
});
|
|
4663
|
-
var ExporterDestinationAzure =
|
|
4664
|
-
credentialId:
|
|
4710
|
+
var ExporterDestinationAzure = z144.object({
|
|
4711
|
+
credentialId: z144.string().optional(),
|
|
4665
4712
|
// Repository
|
|
4666
|
-
organizationId:
|
|
4667
|
-
projectId:
|
|
4668
|
-
repositoryId:
|
|
4713
|
+
organizationId: z144.string(),
|
|
4714
|
+
projectId: z144.string(),
|
|
4715
|
+
repositoryId: z144.string(),
|
|
4669
4716
|
// Commit metadata
|
|
4670
|
-
commitAuthorName: nullishToOptional(
|
|
4671
|
-
commitAuthorEmail: nullishToOptional(
|
|
4717
|
+
commitAuthorName: nullishToOptional(z144.string()),
|
|
4718
|
+
commitAuthorEmail: nullishToOptional(z144.string()),
|
|
4672
4719
|
// Location
|
|
4673
|
-
branch:
|
|
4674
|
-
relativePath: nullishToOptional(
|
|
4720
|
+
branch: z144.string(),
|
|
4721
|
+
relativePath: nullishToOptional(z144.string()),
|
|
4675
4722
|
// Maybe not needed
|
|
4676
|
-
url: nullishToOptional(
|
|
4723
|
+
url: nullishToOptional(z144.string()),
|
|
4677
4724
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4678
|
-
connectionId: nullishToOptional(
|
|
4679
|
-
userId: nullishToOptional(
|
|
4725
|
+
connectionId: nullishToOptional(z144.string()),
|
|
4726
|
+
userId: nullishToOptional(z144.number())
|
|
4680
4727
|
});
|
|
4681
|
-
var ExporterDestinationGitlab =
|
|
4682
|
-
credentialId:
|
|
4728
|
+
var ExporterDestinationGitlab = z144.object({
|
|
4729
|
+
credentialId: z144.string().optional(),
|
|
4683
4730
|
// Repository
|
|
4684
|
-
projectId:
|
|
4731
|
+
projectId: z144.string(),
|
|
4685
4732
|
// Commit metadata
|
|
4686
|
-
commitAuthorName: nullishToOptional(
|
|
4687
|
-
commitAuthorEmail: nullishToOptional(
|
|
4733
|
+
commitAuthorName: nullishToOptional(z144.string()),
|
|
4734
|
+
commitAuthorEmail: nullishToOptional(z144.string()),
|
|
4688
4735
|
// Location
|
|
4689
|
-
branch:
|
|
4690
|
-
relativePath: nullishToOptional(
|
|
4736
|
+
branch: z144.string(),
|
|
4737
|
+
relativePath: nullishToOptional(z144.string()),
|
|
4691
4738
|
// Maybe not needed
|
|
4692
|
-
url: nullishToOptional(
|
|
4739
|
+
url: nullishToOptional(z144.string()),
|
|
4693
4740
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4694
|
-
connectionId: nullishToOptional(
|
|
4695
|
-
userId: nullishToOptional(
|
|
4741
|
+
connectionId: nullishToOptional(z144.string()),
|
|
4742
|
+
userId: nullishToOptional(z144.number())
|
|
4696
4743
|
});
|
|
4697
|
-
var ExporterDestinationBitbucket =
|
|
4698
|
-
credentialId:
|
|
4744
|
+
var ExporterDestinationBitbucket = z144.object({
|
|
4745
|
+
credentialId: z144.string().optional(),
|
|
4699
4746
|
// Repository
|
|
4700
|
-
workspaceSlug:
|
|
4701
|
-
projectKey:
|
|
4702
|
-
repoSlug:
|
|
4747
|
+
workspaceSlug: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4748
|
+
projectKey: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4749
|
+
repoSlug: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4703
4750
|
// Commit metadata
|
|
4704
|
-
commitAuthorName: nullishToOptional(
|
|
4705
|
-
commitAuthorEmail: nullishToOptional(
|
|
4751
|
+
commitAuthorName: nullishToOptional(z144.string()),
|
|
4752
|
+
commitAuthorEmail: nullishToOptional(z144.string()),
|
|
4706
4753
|
// Location
|
|
4707
|
-
branch:
|
|
4708
|
-
relativePath: nullishToOptional(
|
|
4754
|
+
branch: z144.string(),
|
|
4755
|
+
relativePath: nullishToOptional(z144.string()),
|
|
4709
4756
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4710
|
-
connectionId: nullishToOptional(
|
|
4711
|
-
userId: nullishToOptional(
|
|
4757
|
+
connectionId: nullishToOptional(z144.string()),
|
|
4758
|
+
userId: nullishToOptional(z144.number())
|
|
4712
4759
|
});
|
|
4713
|
-
var ExportDestinationsMap =
|
|
4714
|
-
webhookUrl:
|
|
4760
|
+
var ExportDestinationsMap = z144.object({
|
|
4761
|
+
webhookUrl: z144.string().optional(),
|
|
4715
4762
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4716
4763
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4717
4764
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4721,149 +4768,149 @@ var ExportDestinationsMap = z142.object({
|
|
|
4721
4768
|
});
|
|
4722
4769
|
|
|
4723
4770
|
// src/export/pipeline.ts
|
|
4724
|
-
var PipelineEventType =
|
|
4725
|
-
var PipelineDestinationGitType =
|
|
4726
|
-
var PipelineDestinationExtraType =
|
|
4727
|
-
var PipelineDestinationType =
|
|
4728
|
-
var Pipeline =
|
|
4729
|
-
id:
|
|
4730
|
-
name:
|
|
4771
|
+
var PipelineEventType = z145.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4772
|
+
var PipelineDestinationGitType = z145.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4773
|
+
var PipelineDestinationExtraType = z145.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4774
|
+
var PipelineDestinationType = z145.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4775
|
+
var Pipeline = z145.object({
|
|
4776
|
+
id: z145.string(),
|
|
4777
|
+
name: z145.string(),
|
|
4731
4778
|
eventType: PipelineEventType,
|
|
4732
|
-
isEnabled:
|
|
4733
|
-
workspaceId:
|
|
4734
|
-
designSystemId:
|
|
4735
|
-
exporterId:
|
|
4736
|
-
brandPersistentId:
|
|
4737
|
-
themePersistentId:
|
|
4738
|
-
themePersistentIds:
|
|
4779
|
+
isEnabled: z145.boolean(),
|
|
4780
|
+
workspaceId: z145.string(),
|
|
4781
|
+
designSystemId: z145.string(),
|
|
4782
|
+
exporterId: z145.string(),
|
|
4783
|
+
brandPersistentId: z145.string().optional(),
|
|
4784
|
+
themePersistentId: z145.string().optional(),
|
|
4785
|
+
themePersistentIds: z145.string().array().optional(),
|
|
4739
4786
|
// Destinations
|
|
4740
4787
|
...ExportDestinationsMap.shape
|
|
4741
4788
|
});
|
|
4742
4789
|
|
|
4743
4790
|
// src/data-dumps/code-integration-dump.ts
|
|
4744
|
-
var ExportJobDump =
|
|
4745
|
-
id:
|
|
4746
|
-
createdAt:
|
|
4747
|
-
finishedAt:
|
|
4748
|
-
exportArtefacts:
|
|
4791
|
+
var ExportJobDump = z146.object({
|
|
4792
|
+
id: z146.string(),
|
|
4793
|
+
createdAt: z146.coerce.date(),
|
|
4794
|
+
finishedAt: z146.coerce.date(),
|
|
4795
|
+
exportArtefacts: z146.string()
|
|
4749
4796
|
});
|
|
4750
|
-
var CodeIntegrationDump =
|
|
4797
|
+
var CodeIntegrationDump = z146.object({
|
|
4751
4798
|
exporters: Exporter.array(),
|
|
4752
4799
|
pipelines: Pipeline.array(),
|
|
4753
4800
|
exportJobs: ExportJobDump.array()
|
|
4754
4801
|
});
|
|
4755
4802
|
|
|
4756
4803
|
// src/data-dumps/design-system-dump.ts
|
|
4757
|
-
import { z as
|
|
4804
|
+
import { z as z153 } from "zod";
|
|
4758
4805
|
|
|
4759
4806
|
// src/data-dumps/design-system-version-dump.ts
|
|
4760
|
-
import { z as
|
|
4807
|
+
import { z as z152 } from "zod";
|
|
4761
4808
|
|
|
4762
4809
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
4763
|
-
import { z as
|
|
4810
|
+
import { z as z147 } from "zod";
|
|
4764
4811
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4765
|
-
designSystemVersionId:
|
|
4766
|
-
liveblocksId:
|
|
4767
|
-
});
|
|
4768
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4769
|
-
routingVersion:
|
|
4770
|
-
isDraftFeatureAdopted:
|
|
4771
|
-
isApprovalFeatureEnabled:
|
|
4772
|
-
approvalRequiredForPublishing:
|
|
4773
|
-
});
|
|
4774
|
-
var DesignSystemVersionRoomInitialState =
|
|
4775
|
-
pages:
|
|
4776
|
-
groups:
|
|
4777
|
-
pageSnapshots:
|
|
4778
|
-
groupSnapshots:
|
|
4779
|
-
pageApprovals:
|
|
4812
|
+
designSystemVersionId: z147.string(),
|
|
4813
|
+
liveblocksId: z147.string()
|
|
4814
|
+
});
|
|
4815
|
+
var DesignSystemVersionRoomInternalSettings = z147.object({
|
|
4816
|
+
routingVersion: z147.string(),
|
|
4817
|
+
isDraftFeatureAdopted: z147.boolean(),
|
|
4818
|
+
isApprovalFeatureEnabled: z147.boolean(),
|
|
4819
|
+
approvalRequiredForPublishing: z147.boolean()
|
|
4820
|
+
});
|
|
4821
|
+
var DesignSystemVersionRoomInitialState = z147.object({
|
|
4822
|
+
pages: z147.array(DocumentationPageV2),
|
|
4823
|
+
groups: z147.array(ElementGroup),
|
|
4824
|
+
pageSnapshots: z147.array(DocumentationPageSnapshot),
|
|
4825
|
+
groupSnapshots: z147.array(ElementGroupSnapshot),
|
|
4826
|
+
pageApprovals: z147.array(DocumentationPageApproval),
|
|
4780
4827
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4781
4828
|
});
|
|
4782
|
-
var DesignSystemVersionRoomUpdate =
|
|
4783
|
-
pages:
|
|
4784
|
-
groups:
|
|
4785
|
-
pageIdsToDelete:
|
|
4786
|
-
groupIdsToDelete:
|
|
4787
|
-
pageSnapshots:
|
|
4788
|
-
groupSnapshots:
|
|
4789
|
-
pageSnapshotIdsToDelete:
|
|
4790
|
-
groupSnapshotIdsToDelete:
|
|
4791
|
-
pageHashesToUpdate:
|
|
4792
|
-
pageApprovals:
|
|
4793
|
-
pageApprovalIdsToDelete:
|
|
4829
|
+
var DesignSystemVersionRoomUpdate = z147.object({
|
|
4830
|
+
pages: z147.array(DocumentationPageV2),
|
|
4831
|
+
groups: z147.array(ElementGroup),
|
|
4832
|
+
pageIdsToDelete: z147.array(z147.string()),
|
|
4833
|
+
groupIdsToDelete: z147.array(z147.string()),
|
|
4834
|
+
pageSnapshots: z147.array(DocumentationPageSnapshot),
|
|
4835
|
+
groupSnapshots: z147.array(ElementGroupSnapshot),
|
|
4836
|
+
pageSnapshotIdsToDelete: z147.array(z147.string()),
|
|
4837
|
+
groupSnapshotIdsToDelete: z147.array(z147.string()),
|
|
4838
|
+
pageHashesToUpdate: z147.record(z147.string(), z147.string()),
|
|
4839
|
+
pageApprovals: z147.array(DocumentationPageApproval),
|
|
4840
|
+
pageApprovalIdsToDelete: z147.array(z147.string())
|
|
4794
4841
|
});
|
|
4795
4842
|
|
|
4796
4843
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
4797
|
-
import { z as
|
|
4844
|
+
import { z as z148 } from "zod";
|
|
4798
4845
|
var DocumentationPageRoom = Entity.extend({
|
|
4799
|
-
designSystemVersionId:
|
|
4800
|
-
documentationPageId:
|
|
4801
|
-
liveblocksId:
|
|
4802
|
-
isDirty:
|
|
4846
|
+
designSystemVersionId: z148.string(),
|
|
4847
|
+
documentationPageId: z148.string(),
|
|
4848
|
+
liveblocksId: z148.string(),
|
|
4849
|
+
isDirty: z148.boolean()
|
|
4803
4850
|
});
|
|
4804
|
-
var DocumentationPageRoomState =
|
|
4805
|
-
pageItems:
|
|
4851
|
+
var DocumentationPageRoomState = z148.object({
|
|
4852
|
+
pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4806
4853
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4807
4854
|
});
|
|
4808
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4855
|
+
var DocumentationPageRoomRoomUpdate = z148.object({
|
|
4809
4856
|
page: DocumentationPageV2,
|
|
4810
4857
|
pageParent: ElementGroup
|
|
4811
4858
|
});
|
|
4812
4859
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4813
|
-
pageItems:
|
|
4814
|
-
blockDefinitions:
|
|
4860
|
+
pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4861
|
+
blockDefinitions: z148.array(PageBlockDefinition)
|
|
4815
4862
|
});
|
|
4816
|
-
var RestoredDocumentationPage =
|
|
4863
|
+
var RestoredDocumentationPage = z148.object({
|
|
4817
4864
|
page: DocumentationPageV2,
|
|
4818
4865
|
pageParent: ElementGroup,
|
|
4819
4866
|
pageContent: DocumentationPageContentData,
|
|
4820
|
-
contentHash:
|
|
4821
|
-
snapshotId:
|
|
4822
|
-
roomId:
|
|
4867
|
+
contentHash: z148.string(),
|
|
4868
|
+
snapshotId: z148.string(),
|
|
4869
|
+
roomId: z148.string().optional()
|
|
4823
4870
|
});
|
|
4824
|
-
var RestoredDocumentationGroup =
|
|
4871
|
+
var RestoredDocumentationGroup = z148.object({
|
|
4825
4872
|
group: ElementGroup,
|
|
4826
4873
|
parent: ElementGroup
|
|
4827
4874
|
});
|
|
4828
4875
|
|
|
4829
4876
|
// src/liveblocks/rooms/room-type.ts
|
|
4830
|
-
import { z as
|
|
4877
|
+
import { z as z149 } from "zod";
|
|
4831
4878
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4832
4879
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4833
4880
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4834
4881
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4835
4882
|
return RoomTypeEnum2;
|
|
4836
4883
|
})(RoomTypeEnum || {});
|
|
4837
|
-
var RoomTypeSchema =
|
|
4884
|
+
var RoomTypeSchema = z149.nativeEnum(RoomTypeEnum);
|
|
4838
4885
|
var RoomType = RoomTypeSchema.enum;
|
|
4839
4886
|
|
|
4840
4887
|
// src/liveblocks/rooms/workspace-room.ts
|
|
4841
|
-
import { z as
|
|
4888
|
+
import { z as z150 } from "zod";
|
|
4842
4889
|
var WorkspaceRoom = Entity.extend({
|
|
4843
|
-
workspaceId:
|
|
4844
|
-
liveblocksId:
|
|
4890
|
+
workspaceId: z150.string(),
|
|
4891
|
+
liveblocksId: z150.string()
|
|
4845
4892
|
});
|
|
4846
4893
|
|
|
4847
4894
|
// src/data-dumps/published-docs-dump.ts
|
|
4848
|
-
import { z as
|
|
4849
|
-
var PublishedDocsDump =
|
|
4895
|
+
import { z as z151 } from "zod";
|
|
4896
|
+
var PublishedDocsDump = z151.object({
|
|
4850
4897
|
documentation: PublishedDoc,
|
|
4851
4898
|
pages: PublishedDocPage.array()
|
|
4852
4899
|
});
|
|
4853
4900
|
|
|
4854
4901
|
// src/data-dumps/design-system-version-dump.ts
|
|
4855
|
-
var DocumentationThreadDump =
|
|
4902
|
+
var DocumentationThreadDump = z152.object({
|
|
4856
4903
|
thread: DocumentationCommentThread,
|
|
4857
4904
|
comments: DocumentationComment.array()
|
|
4858
4905
|
});
|
|
4859
|
-
var DocumentationPageRoomDump =
|
|
4906
|
+
var DocumentationPageRoomDump = z152.object({
|
|
4860
4907
|
room: DocumentationPageRoom,
|
|
4861
4908
|
threads: DocumentationThreadDump.array()
|
|
4862
4909
|
});
|
|
4863
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4910
|
+
var DesignSystemVersionMultiplayerDump = z152.object({
|
|
4864
4911
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4865
4912
|
});
|
|
4866
|
-
var DesignSystemVersionDump =
|
|
4913
|
+
var DesignSystemVersionDump = z152.object({
|
|
4867
4914
|
version: DesignSystemVersion,
|
|
4868
4915
|
brands: Brand.array(),
|
|
4869
4916
|
elements: DesignElement.array(),
|
|
@@ -4878,7 +4925,7 @@ var DesignSystemVersionDump = z150.object({
|
|
|
4878
4925
|
});
|
|
4879
4926
|
|
|
4880
4927
|
// src/data-dumps/design-system-dump.ts
|
|
4881
|
-
var DesignSystemDump =
|
|
4928
|
+
var DesignSystemDump = z153.object({
|
|
4882
4929
|
designSystem: DesignSystem,
|
|
4883
4930
|
dataSources: DataSource.array(),
|
|
4884
4931
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -4887,50 +4934,50 @@ var DesignSystemDump = z151.object({
|
|
|
4887
4934
|
});
|
|
4888
4935
|
|
|
4889
4936
|
// src/data-dumps/user-data-dump.ts
|
|
4890
|
-
import { z as
|
|
4937
|
+
import { z as z156 } from "zod";
|
|
4891
4938
|
|
|
4892
4939
|
// src/data-dumps/workspace-dump.ts
|
|
4893
|
-
import { z as
|
|
4940
|
+
import { z as z155 } from "zod";
|
|
4894
4941
|
|
|
4895
4942
|
// src/integrations/integration.ts
|
|
4896
|
-
import { z as
|
|
4897
|
-
var IntegrationDesignSystem =
|
|
4898
|
-
designSystemId:
|
|
4899
|
-
brandId:
|
|
4900
|
-
title:
|
|
4901
|
-
userId:
|
|
4902
|
-
date:
|
|
4903
|
-
});
|
|
4904
|
-
var IntegrationCredentialsType =
|
|
4905
|
-
var IntegrationCredentialsState =
|
|
4906
|
-
var IntegrationCredentialsProfile =
|
|
4907
|
-
id: nullishToOptional(
|
|
4908
|
-
email: nullishToOptional(
|
|
4909
|
-
handle: nullishToOptional(
|
|
4910
|
-
type: nullishToOptional(
|
|
4911
|
-
avatarUrl: nullishToOptional(
|
|
4912
|
-
organization: nullishToOptional(
|
|
4913
|
-
collection: nullishToOptional(
|
|
4914
|
-
});
|
|
4915
|
-
var IntegrationCredentials =
|
|
4916
|
-
id:
|
|
4943
|
+
import { z as z154 } from "zod";
|
|
4944
|
+
var IntegrationDesignSystem = z154.object({
|
|
4945
|
+
designSystemId: z154.string(),
|
|
4946
|
+
brandId: z154.string(),
|
|
4947
|
+
title: z154.string().optional(),
|
|
4948
|
+
userId: z154.string().optional(),
|
|
4949
|
+
date: z154.coerce.date().optional()
|
|
4950
|
+
});
|
|
4951
|
+
var IntegrationCredentialsType = z154.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4952
|
+
var IntegrationCredentialsState = z154.enum(["Active", "Inactive"]);
|
|
4953
|
+
var IntegrationCredentialsProfile = z154.object({
|
|
4954
|
+
id: nullishToOptional(z154.string()),
|
|
4955
|
+
email: nullishToOptional(z154.string()),
|
|
4956
|
+
handle: nullishToOptional(z154.string()),
|
|
4957
|
+
type: nullishToOptional(z154.string()),
|
|
4958
|
+
avatarUrl: nullishToOptional(z154.string()),
|
|
4959
|
+
organization: nullishToOptional(z154.string()),
|
|
4960
|
+
collection: nullishToOptional(z154.string())
|
|
4961
|
+
});
|
|
4962
|
+
var IntegrationCredentials = z154.object({
|
|
4963
|
+
id: z154.string(),
|
|
4917
4964
|
type: IntegrationCredentialsType,
|
|
4918
|
-
integrationId:
|
|
4919
|
-
accessToken:
|
|
4920
|
-
userId:
|
|
4921
|
-
createdAt:
|
|
4922
|
-
refreshToken:
|
|
4923
|
-
tokenName:
|
|
4924
|
-
expiresAt:
|
|
4925
|
-
refreshedAt:
|
|
4926
|
-
username:
|
|
4927
|
-
appInstallationId:
|
|
4965
|
+
integrationId: z154.string(),
|
|
4966
|
+
accessToken: z154.string(),
|
|
4967
|
+
userId: z154.string(),
|
|
4968
|
+
createdAt: z154.coerce.date(),
|
|
4969
|
+
refreshToken: z154.string().optional(),
|
|
4970
|
+
tokenName: z154.string().optional(),
|
|
4971
|
+
expiresAt: z154.coerce.date().optional(),
|
|
4972
|
+
refreshedAt: z154.coerce.date().optional(),
|
|
4973
|
+
username: z154.string().optional(),
|
|
4974
|
+
appInstallationId: z154.string().optional(),
|
|
4928
4975
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4929
|
-
customUrl:
|
|
4976
|
+
customUrl: z154.string().optional(),
|
|
4930
4977
|
state: IntegrationCredentialsState,
|
|
4931
4978
|
user: UserMinified.optional()
|
|
4932
4979
|
});
|
|
4933
|
-
var ExtendedIntegrationType =
|
|
4980
|
+
var ExtendedIntegrationType = z154.enum([
|
|
4934
4981
|
"Figma",
|
|
4935
4982
|
"Github",
|
|
4936
4983
|
"Gitlab",
|
|
@@ -4941,26 +4988,26 @@ var ExtendedIntegrationType = z152.enum([
|
|
|
4941
4988
|
]);
|
|
4942
4989
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4943
4990
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4944
|
-
var Integration =
|
|
4945
|
-
id:
|
|
4946
|
-
workspaceId:
|
|
4991
|
+
var Integration = z154.object({
|
|
4992
|
+
id: z154.string(),
|
|
4993
|
+
workspaceId: z154.string(),
|
|
4947
4994
|
type: IntegrationType,
|
|
4948
|
-
createdAt:
|
|
4949
|
-
integrationCredentials:
|
|
4950
|
-
});
|
|
4951
|
-
var IntegrationToken =
|
|
4952
|
-
access_token:
|
|
4953
|
-
refresh_token:
|
|
4954
|
-
expires_in:
|
|
4955
|
-
token_type:
|
|
4956
|
-
token_name:
|
|
4957
|
-
token_azure_organization_name:
|
|
4995
|
+
createdAt: z154.coerce.date(),
|
|
4996
|
+
integrationCredentials: z154.array(IntegrationCredentials).optional()
|
|
4997
|
+
});
|
|
4998
|
+
var IntegrationToken = z154.object({
|
|
4999
|
+
access_token: z154.string(),
|
|
5000
|
+
refresh_token: z154.string().optional(),
|
|
5001
|
+
expires_in: z154.union([z154.number().optional(), z154.string().optional()]),
|
|
5002
|
+
token_type: z154.string().optional(),
|
|
5003
|
+
token_name: z154.string().optional(),
|
|
5004
|
+
token_azure_organization_name: z154.string().optional(),
|
|
4958
5005
|
// Azure Cloud PAT only
|
|
4959
|
-
token_azure_collection_name:
|
|
5006
|
+
token_azure_collection_name: z154.string().optional(),
|
|
4960
5007
|
// Azure Server PAT only
|
|
4961
|
-
token_bitbucket_username:
|
|
5008
|
+
token_bitbucket_username: z154.string().optional(),
|
|
4962
5009
|
// Bitbucket only
|
|
4963
|
-
custom_url:
|
|
5010
|
+
custom_url: z154.string().optional().transform((value) => {
|
|
4964
5011
|
if (!value?.trim())
|
|
4965
5012
|
return void 0;
|
|
4966
5013
|
return formatCustomUrl(value);
|
|
@@ -4998,7 +5045,7 @@ function formatCustomUrl(url) {
|
|
|
4998
5045
|
}
|
|
4999
5046
|
|
|
5000
5047
|
// src/data-dumps/workspace-dump.ts
|
|
5001
|
-
var WorkspaceDump =
|
|
5048
|
+
var WorkspaceDump = z155.object({
|
|
5002
5049
|
workspace: Workspace,
|
|
5003
5050
|
designSystems: DesignSystemDump.array(),
|
|
5004
5051
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5006,121 +5053,121 @@ var WorkspaceDump = z153.object({
|
|
|
5006
5053
|
});
|
|
5007
5054
|
|
|
5008
5055
|
// src/data-dumps/user-data-dump.ts
|
|
5009
|
-
var UserDump =
|
|
5056
|
+
var UserDump = z156.object({
|
|
5010
5057
|
user: User,
|
|
5011
5058
|
workspaces: WorkspaceDump.array()
|
|
5012
5059
|
});
|
|
5013
5060
|
|
|
5014
5061
|
// src/docs-server/session.ts
|
|
5015
|
-
import { z as
|
|
5016
|
-
var NpmProxyToken =
|
|
5017
|
-
access:
|
|
5018
|
-
expiresAt:
|
|
5062
|
+
import { z as z157 } from "zod";
|
|
5063
|
+
var NpmProxyToken = z157.object({
|
|
5064
|
+
access: z157.string(),
|
|
5065
|
+
expiresAt: z157.number()
|
|
5019
5066
|
});
|
|
5020
|
-
var SessionData =
|
|
5021
|
-
returnToUrl:
|
|
5067
|
+
var SessionData = z157.object({
|
|
5068
|
+
returnToUrl: z157.string().optional(),
|
|
5022
5069
|
npmProxyToken: NpmProxyToken.optional()
|
|
5023
5070
|
});
|
|
5024
|
-
var Session =
|
|
5025
|
-
id:
|
|
5026
|
-
expiresAt:
|
|
5027
|
-
userId:
|
|
5071
|
+
var Session = z157.object({
|
|
5072
|
+
id: z157.string(),
|
|
5073
|
+
expiresAt: z157.coerce.date(),
|
|
5074
|
+
userId: z157.string().nullable(),
|
|
5028
5075
|
data: SessionData
|
|
5029
5076
|
});
|
|
5030
|
-
var AuthTokens =
|
|
5031
|
-
access:
|
|
5032
|
-
refresh:
|
|
5077
|
+
var AuthTokens = z157.object({
|
|
5078
|
+
access: z157.string(),
|
|
5079
|
+
refresh: z157.string()
|
|
5033
5080
|
});
|
|
5034
|
-
var UserSession =
|
|
5081
|
+
var UserSession = z157.object({
|
|
5035
5082
|
session: Session,
|
|
5036
5083
|
user: User.nullable()
|
|
5037
5084
|
});
|
|
5038
5085
|
|
|
5039
5086
|
// src/emails/design-system-invite.ts
|
|
5040
|
-
import { z as
|
|
5041
|
-
var DesignSystemInviteEmailRecipient =
|
|
5042
|
-
email:
|
|
5087
|
+
import { z as z158 } from "zod";
|
|
5088
|
+
var DesignSystemInviteEmailRecipient = z158.object({
|
|
5089
|
+
email: z158.string(),
|
|
5043
5090
|
role: WorkspaceRoleSchema
|
|
5044
5091
|
});
|
|
5045
|
-
var DesignSystemInviteEmailData =
|
|
5092
|
+
var DesignSystemInviteEmailData = z158.object({
|
|
5046
5093
|
workspace: Workspace,
|
|
5047
5094
|
designSystem: DesignSystem,
|
|
5048
5095
|
invitedBy: User,
|
|
5049
|
-
documentationDomain:
|
|
5096
|
+
documentationDomain: z158.string().optional()
|
|
5050
5097
|
});
|
|
5051
5098
|
|
|
5052
5099
|
// src/emails/workspace-invite.ts
|
|
5053
|
-
import { z as
|
|
5054
|
-
var WorkspaceInviteEmailRecipient =
|
|
5055
|
-
email:
|
|
5100
|
+
import { z as z159 } from "zod";
|
|
5101
|
+
var WorkspaceInviteEmailRecipient = z159.object({
|
|
5102
|
+
email: z159.string(),
|
|
5056
5103
|
role: WorkspaceRoleSchema
|
|
5057
5104
|
});
|
|
5058
|
-
var WorkspaceInviteEmailData =
|
|
5105
|
+
var WorkspaceInviteEmailData = z159.object({
|
|
5059
5106
|
workspace: Workspace,
|
|
5060
5107
|
invitedBy: User,
|
|
5061
|
-
documentationDomain:
|
|
5108
|
+
documentationDomain: z159.string().optional()
|
|
5062
5109
|
});
|
|
5063
5110
|
|
|
5064
5111
|
// src/events/base.ts
|
|
5065
|
-
import { z as
|
|
5112
|
+
import { z as z162 } from "zod";
|
|
5066
5113
|
|
|
5067
5114
|
// src/events/data-source-imported.ts
|
|
5068
|
-
import { z as
|
|
5069
|
-
var EventDataSourceImported =
|
|
5070
|
-
type:
|
|
5071
|
-
workspaceId:
|
|
5072
|
-
designSystemId:
|
|
5115
|
+
import { z as z160 } from "zod";
|
|
5116
|
+
var EventDataSourceImported = z160.object({
|
|
5117
|
+
type: z160.literal("DataSourceImported"),
|
|
5118
|
+
workspaceId: z160.string(),
|
|
5119
|
+
designSystemId: z160.string()
|
|
5073
5120
|
});
|
|
5074
5121
|
|
|
5075
5122
|
// src/events/version-released.ts
|
|
5076
|
-
import { z as
|
|
5077
|
-
var EventVersionReleased =
|
|
5078
|
-
type:
|
|
5079
|
-
workspaceId:
|
|
5080
|
-
designSystemId:
|
|
5081
|
-
versionId:
|
|
5123
|
+
import { z as z161 } from "zod";
|
|
5124
|
+
var EventVersionReleased = z161.object({
|
|
5125
|
+
type: z161.literal("DesignSystemVersionReleased"),
|
|
5126
|
+
workspaceId: z161.string(),
|
|
5127
|
+
designSystemId: z161.string(),
|
|
5128
|
+
versionId: z161.string()
|
|
5082
5129
|
});
|
|
5083
5130
|
|
|
5084
5131
|
// src/events/base.ts
|
|
5085
|
-
var Event =
|
|
5132
|
+
var Event = z162.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5086
5133
|
|
|
5087
5134
|
// src/export/export-runner/export-context.ts
|
|
5088
|
-
import { z as
|
|
5089
|
-
var ExportJobDocumentationContext =
|
|
5090
|
-
isSingleVersionDocs:
|
|
5091
|
-
versionSlug:
|
|
5135
|
+
import { z as z163 } from "zod";
|
|
5136
|
+
var ExportJobDocumentationContext = z163.object({
|
|
5137
|
+
isSingleVersionDocs: z163.boolean(),
|
|
5138
|
+
versionSlug: z163.string(),
|
|
5092
5139
|
environment: PublishedDocEnvironment
|
|
5093
5140
|
});
|
|
5094
|
-
var ExportJobContext =
|
|
5095
|
-
apiUrl:
|
|
5096
|
-
accessToken:
|
|
5097
|
-
designSystemId:
|
|
5098
|
-
designSystemName:
|
|
5099
|
-
exporterId:
|
|
5100
|
-
versionId:
|
|
5101
|
-
brandId:
|
|
5102
|
-
themeId:
|
|
5103
|
-
themePersistentIds:
|
|
5104
|
-
exporterName:
|
|
5141
|
+
var ExportJobContext = z163.object({
|
|
5142
|
+
apiUrl: z163.string(),
|
|
5143
|
+
accessToken: z163.string(),
|
|
5144
|
+
designSystemId: z163.string(),
|
|
5145
|
+
designSystemName: z163.string(),
|
|
5146
|
+
exporterId: z163.string(),
|
|
5147
|
+
versionId: z163.string(),
|
|
5148
|
+
brandId: z163.string().optional(),
|
|
5149
|
+
themeId: z163.string().optional(),
|
|
5150
|
+
themePersistentIds: z163.string().array().optional(),
|
|
5151
|
+
exporterName: z163.string(),
|
|
5105
5152
|
documentation: ExportJobDocumentationContext.optional()
|
|
5106
5153
|
});
|
|
5107
|
-
var ExportJobExporterConfiguration =
|
|
5108
|
-
exporterPackageUrl:
|
|
5154
|
+
var ExportJobExporterConfiguration = z163.object({
|
|
5155
|
+
exporterPackageUrl: z163.string(),
|
|
5109
5156
|
exporterPropertyValues: ExporterPropertyValue.array()
|
|
5110
5157
|
});
|
|
5111
5158
|
|
|
5112
5159
|
// src/export/export-runner/exporter-payload.ts
|
|
5113
|
-
import { z as
|
|
5114
|
-
var ExporterFunctionPayload =
|
|
5115
|
-
exportJobId:
|
|
5116
|
-
exportContextId:
|
|
5117
|
-
designSystemId:
|
|
5118
|
-
workspaceId:
|
|
5160
|
+
import { z as z164 } from "zod";
|
|
5161
|
+
var ExporterFunctionPayload = z164.object({
|
|
5162
|
+
exportJobId: z164.string(),
|
|
5163
|
+
exportContextId: z164.string(),
|
|
5164
|
+
designSystemId: z164.string(),
|
|
5165
|
+
workspaceId: z164.string()
|
|
5119
5166
|
});
|
|
5120
5167
|
|
|
5121
5168
|
// src/export/export-jobs.ts
|
|
5122
|
-
import { z as
|
|
5123
|
-
var ExportJobDestinationType =
|
|
5169
|
+
import { z as z165 } from "zod";
|
|
5170
|
+
var ExportJobDestinationType = z165.enum([
|
|
5124
5171
|
"s3",
|
|
5125
5172
|
"webhookUrl",
|
|
5126
5173
|
"github",
|
|
@@ -5129,30 +5176,30 @@ var ExportJobDestinationType = z163.enum([
|
|
|
5129
5176
|
"gitlab",
|
|
5130
5177
|
"bitbucket"
|
|
5131
5178
|
]);
|
|
5132
|
-
var ExportJobStatus =
|
|
5133
|
-
var ExportJobLogEntryType =
|
|
5134
|
-
var ExportJobLogEntry =
|
|
5135
|
-
id:
|
|
5136
|
-
time:
|
|
5179
|
+
var ExportJobStatus = z165.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5180
|
+
var ExportJobLogEntryType = z165.enum(["success", "info", "warning", "error", "user"]);
|
|
5181
|
+
var ExportJobLogEntry = z165.object({
|
|
5182
|
+
id: z165.string().optional(),
|
|
5183
|
+
time: z165.coerce.date(),
|
|
5137
5184
|
type: ExportJobLogEntryType,
|
|
5138
|
-
message:
|
|
5185
|
+
message: z165.string()
|
|
5139
5186
|
});
|
|
5140
|
-
var ExportJobPullRequestDestinationResult =
|
|
5141
|
-
pullRequestUrl:
|
|
5187
|
+
var ExportJobPullRequestDestinationResult = z165.object({
|
|
5188
|
+
pullRequestUrl: z165.string()
|
|
5142
5189
|
});
|
|
5143
|
-
var ExportJobS3DestinationResult =
|
|
5144
|
-
bucket:
|
|
5145
|
-
urlPrefix:
|
|
5146
|
-
path:
|
|
5147
|
-
files:
|
|
5148
|
-
url: nullishToOptional(
|
|
5149
|
-
urls: nullishToOptional(
|
|
5190
|
+
var ExportJobS3DestinationResult = z165.object({
|
|
5191
|
+
bucket: z165.string(),
|
|
5192
|
+
urlPrefix: z165.string().optional(),
|
|
5193
|
+
path: z165.string(),
|
|
5194
|
+
files: z165.array(z165.string()),
|
|
5195
|
+
url: nullishToOptional(z165.string()),
|
|
5196
|
+
urls: nullishToOptional(z165.string().array())
|
|
5150
5197
|
});
|
|
5151
|
-
var ExportJobDocsDestinationResult =
|
|
5152
|
-
url:
|
|
5198
|
+
var ExportJobDocsDestinationResult = z165.object({
|
|
5199
|
+
url: z165.string()
|
|
5153
5200
|
});
|
|
5154
|
-
var ExportJobResult =
|
|
5155
|
-
error:
|
|
5201
|
+
var ExportJobResult = z165.object({
|
|
5202
|
+
error: z165.string().optional(),
|
|
5156
5203
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5157
5204
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5158
5205
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5161,22 +5208,22 @@ var ExportJobResult = z163.object({
|
|
|
5161
5208
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5162
5209
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5163
5210
|
});
|
|
5164
|
-
var ExportJob =
|
|
5165
|
-
id:
|
|
5166
|
-
createdAt:
|
|
5167
|
-
finishedAt:
|
|
5168
|
-
designSystemId:
|
|
5169
|
-
designSystemVersionId:
|
|
5170
|
-
workspaceId:
|
|
5171
|
-
scheduleId:
|
|
5172
|
-
exporterId:
|
|
5173
|
-
brandId:
|
|
5174
|
-
themeId:
|
|
5175
|
-
themePersistentIds:
|
|
5176
|
-
estimatedExecutionTime:
|
|
5211
|
+
var ExportJob = z165.object({
|
|
5212
|
+
id: z165.string(),
|
|
5213
|
+
createdAt: z165.coerce.date(),
|
|
5214
|
+
finishedAt: z165.coerce.date().optional(),
|
|
5215
|
+
designSystemId: z165.string(),
|
|
5216
|
+
designSystemVersionId: z165.string(),
|
|
5217
|
+
workspaceId: z165.string(),
|
|
5218
|
+
scheduleId: z165.string().nullish(),
|
|
5219
|
+
exporterId: z165.string(),
|
|
5220
|
+
brandId: z165.string().optional(),
|
|
5221
|
+
themeId: z165.string().optional(),
|
|
5222
|
+
themePersistentIds: z165.string().array().optional(),
|
|
5223
|
+
estimatedExecutionTime: z165.number().optional(),
|
|
5177
5224
|
status: ExportJobStatus,
|
|
5178
5225
|
result: ExportJobResult.optional(),
|
|
5179
|
-
createdByUserId:
|
|
5226
|
+
createdByUserId: z165.string().optional(),
|
|
5180
5227
|
// Destinations
|
|
5181
5228
|
...ExportDestinationsMap.shape
|
|
5182
5229
|
});
|
|
@@ -5190,46 +5237,46 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5190
5237
|
themeId: true,
|
|
5191
5238
|
brandId: true
|
|
5192
5239
|
}).extend({
|
|
5193
|
-
destinations:
|
|
5240
|
+
destinations: z165.array(ExportJobDestinationType),
|
|
5194
5241
|
docsEnvironment: PublishedDocEnvironment
|
|
5195
5242
|
}).partial();
|
|
5196
5243
|
|
|
5197
5244
|
// src/export/exporter-workspace-membership-role.ts
|
|
5198
|
-
import { z as
|
|
5199
|
-
var ExporterWorkspaceMembershipRole =
|
|
5245
|
+
import { z as z166 } from "zod";
|
|
5246
|
+
var ExporterWorkspaceMembershipRole = z166.enum(["Owner", "OwnerArchived", "User"]);
|
|
5200
5247
|
|
|
5201
5248
|
// src/export/exporter-workspace-membership.ts
|
|
5202
|
-
import { z as
|
|
5203
|
-
var ExporterWorkspaceMembership =
|
|
5204
|
-
id:
|
|
5205
|
-
workspaceId:
|
|
5206
|
-
exporterId:
|
|
5249
|
+
import { z as z167 } from "zod";
|
|
5250
|
+
var ExporterWorkspaceMembership = z167.object({
|
|
5251
|
+
id: z167.string(),
|
|
5252
|
+
workspaceId: z167.string(),
|
|
5253
|
+
exporterId: z167.string(),
|
|
5207
5254
|
role: ExporterWorkspaceMembershipRole
|
|
5208
5255
|
});
|
|
5209
5256
|
|
|
5210
5257
|
// src/feature-flags/feature-flags.ts
|
|
5211
|
-
import { z as
|
|
5212
|
-
var FlaggedFeature =
|
|
5258
|
+
import { z as z168 } from "zod";
|
|
5259
|
+
var FlaggedFeature = z168.enum([
|
|
5213
5260
|
"FigmaImporterV2",
|
|
5214
5261
|
"ShadowOpacityOptional",
|
|
5215
5262
|
"DisableImporter",
|
|
5216
5263
|
"VariablesOrder",
|
|
5217
5264
|
"TypographyPropsKeepAliases"
|
|
5218
5265
|
]);
|
|
5219
|
-
var FeatureFlagMap =
|
|
5220
|
-
var FeatureFlag =
|
|
5221
|
-
id:
|
|
5266
|
+
var FeatureFlagMap = z168.record(FlaggedFeature, z168.boolean());
|
|
5267
|
+
var FeatureFlag = z168.object({
|
|
5268
|
+
id: z168.string(),
|
|
5222
5269
|
feature: FlaggedFeature,
|
|
5223
|
-
createdAt:
|
|
5224
|
-
enabled:
|
|
5225
|
-
designSystemId:
|
|
5270
|
+
createdAt: z168.coerce.date(),
|
|
5271
|
+
enabled: z168.boolean(),
|
|
5272
|
+
designSystemId: z168.string().optional()
|
|
5226
5273
|
});
|
|
5227
5274
|
|
|
5228
5275
|
// src/integrations/external-oauth-request.ts
|
|
5229
|
-
import { z as
|
|
5276
|
+
import { z as z170 } from "zod";
|
|
5230
5277
|
|
|
5231
5278
|
// src/integrations/oauth-providers.ts
|
|
5232
|
-
import { z as
|
|
5279
|
+
import { z as z169 } from "zod";
|
|
5233
5280
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5234
5281
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5235
5282
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5238,128 +5285,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5238
5285
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5239
5286
|
return OAuthProviderNames2;
|
|
5240
5287
|
})(OAuthProviderNames || {});
|
|
5241
|
-
var OAuthProviderSchema =
|
|
5288
|
+
var OAuthProviderSchema = z169.nativeEnum(OAuthProviderNames);
|
|
5242
5289
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5243
5290
|
|
|
5244
5291
|
// src/integrations/external-oauth-request.ts
|
|
5245
|
-
var ExternalOAuthRequest =
|
|
5246
|
-
id:
|
|
5292
|
+
var ExternalOAuthRequest = z170.object({
|
|
5293
|
+
id: z170.string(),
|
|
5247
5294
|
provider: OAuthProviderSchema,
|
|
5248
|
-
userId:
|
|
5249
|
-
state:
|
|
5250
|
-
createdAt:
|
|
5295
|
+
userId: z170.string(),
|
|
5296
|
+
state: z170.string(),
|
|
5297
|
+
createdAt: z170.coerce.date()
|
|
5251
5298
|
});
|
|
5252
5299
|
|
|
5253
5300
|
// src/integrations/git.ts
|
|
5254
|
-
import { z as
|
|
5255
|
-
var GitObjectsQuery =
|
|
5256
|
-
organization:
|
|
5301
|
+
import { z as z171 } from "zod";
|
|
5302
|
+
var GitObjectsQuery = z171.object({
|
|
5303
|
+
organization: z171.string().optional(),
|
|
5257
5304
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5258
|
-
project:
|
|
5305
|
+
project: z171.string().optional(),
|
|
5259
5306
|
// Only for Bitbucket and Azure
|
|
5260
|
-
repository:
|
|
5307
|
+
repository: z171.string().optional(),
|
|
5261
5308
|
// For all providers. For Gitlab, it's called "project".
|
|
5262
|
-
branch:
|
|
5309
|
+
branch: z171.string().optional(),
|
|
5263
5310
|
// For all providers.
|
|
5264
|
-
user:
|
|
5311
|
+
user: z171.string().optional()
|
|
5265
5312
|
// Gitlab user
|
|
5266
5313
|
});
|
|
5267
|
-
var GitOrganization =
|
|
5268
|
-
id:
|
|
5269
|
-
name:
|
|
5270
|
-
url:
|
|
5271
|
-
slug:
|
|
5272
|
-
});
|
|
5273
|
-
var GitProject =
|
|
5274
|
-
id:
|
|
5275
|
-
name:
|
|
5276
|
-
url:
|
|
5277
|
-
slug:
|
|
5278
|
-
});
|
|
5279
|
-
var GitRepository =
|
|
5280
|
-
id:
|
|
5281
|
-
name:
|
|
5282
|
-
url:
|
|
5283
|
-
slug:
|
|
5314
|
+
var GitOrganization = z171.object({
|
|
5315
|
+
id: z171.string(),
|
|
5316
|
+
name: z171.string(),
|
|
5317
|
+
url: z171.string(),
|
|
5318
|
+
slug: z171.string()
|
|
5319
|
+
});
|
|
5320
|
+
var GitProject = z171.object({
|
|
5321
|
+
id: z171.string(),
|
|
5322
|
+
name: z171.string(),
|
|
5323
|
+
url: z171.string(),
|
|
5324
|
+
slug: z171.string()
|
|
5325
|
+
});
|
|
5326
|
+
var GitRepository = z171.object({
|
|
5327
|
+
id: z171.string(),
|
|
5328
|
+
name: z171.string(),
|
|
5329
|
+
url: z171.string(),
|
|
5330
|
+
slug: z171.string(),
|
|
5284
5331
|
/**
|
|
5285
5332
|
* Can be undefined when:
|
|
5286
5333
|
* - there are no branches in the repository yet
|
|
5287
5334
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5288
5335
|
*/
|
|
5289
|
-
defaultBranch:
|
|
5336
|
+
defaultBranch: z171.string().optional()
|
|
5290
5337
|
});
|
|
5291
|
-
var GitBranch =
|
|
5292
|
-
name:
|
|
5293
|
-
lastCommitId:
|
|
5338
|
+
var GitBranch = z171.object({
|
|
5339
|
+
name: z171.string(),
|
|
5340
|
+
lastCommitId: z171.string()
|
|
5294
5341
|
});
|
|
5295
5342
|
|
|
5296
5343
|
// src/integrations/oauth-token.ts
|
|
5297
|
-
import { z as
|
|
5298
|
-
var IntegrationTokenSchemaOld =
|
|
5299
|
-
id:
|
|
5344
|
+
import { z as z172 } from "zod";
|
|
5345
|
+
var IntegrationTokenSchemaOld = z172.object({
|
|
5346
|
+
id: z172.string(),
|
|
5300
5347
|
provider: OAuthProviderSchema,
|
|
5301
|
-
scope:
|
|
5302
|
-
userId:
|
|
5303
|
-
accessToken:
|
|
5304
|
-
refreshToken:
|
|
5305
|
-
expiresAt:
|
|
5306
|
-
externalUserId:
|
|
5348
|
+
scope: z172.string(),
|
|
5349
|
+
userId: z172.string(),
|
|
5350
|
+
accessToken: z172.string(),
|
|
5351
|
+
refreshToken: z172.string(),
|
|
5352
|
+
expiresAt: z172.coerce.date(),
|
|
5353
|
+
externalUserId: z172.string().nullish()
|
|
5307
5354
|
});
|
|
5308
5355
|
|
|
5309
5356
|
// src/integrations/workspace-oauth-requests.ts
|
|
5310
|
-
import { z as
|
|
5311
|
-
var WorkspaceOAuthRequestSchema =
|
|
5312
|
-
id:
|
|
5313
|
-
workspaceId:
|
|
5357
|
+
import { z as z173 } from "zod";
|
|
5358
|
+
var WorkspaceOAuthRequestSchema = z173.object({
|
|
5359
|
+
id: z173.string(),
|
|
5360
|
+
workspaceId: z173.string(),
|
|
5314
5361
|
provider: OAuthProviderSchema,
|
|
5315
|
-
userId:
|
|
5316
|
-
createdAt:
|
|
5362
|
+
userId: z173.string(),
|
|
5363
|
+
createdAt: z173.coerce.date()
|
|
5317
5364
|
});
|
|
5318
5365
|
|
|
5319
5366
|
// src/npm/npm-package.ts
|
|
5320
|
-
import { z as
|
|
5321
|
-
var AnyRecord =
|
|
5367
|
+
import { z as z174 } from "zod";
|
|
5368
|
+
var AnyRecord = z174.record(z174.any());
|
|
5322
5369
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5323
|
-
|
|
5324
|
-
tarball:
|
|
5370
|
+
z174.object({
|
|
5371
|
+
tarball: z174.string()
|
|
5325
5372
|
})
|
|
5326
5373
|
);
|
|
5327
5374
|
var NpmPackageVersion = AnyRecord.and(
|
|
5328
|
-
|
|
5375
|
+
z174.object({
|
|
5329
5376
|
dist: NpmPackageVersionDist
|
|
5330
5377
|
})
|
|
5331
5378
|
);
|
|
5332
5379
|
var NpmPackage = AnyRecord.and(
|
|
5333
|
-
|
|
5334
|
-
_id:
|
|
5335
|
-
name:
|
|
5380
|
+
z174.object({
|
|
5381
|
+
_id: z174.string(),
|
|
5382
|
+
name: z174.string(),
|
|
5336
5383
|
// e.g. "latest": "1.2.3"
|
|
5337
|
-
"dist-tags":
|
|
5384
|
+
"dist-tags": z174.record(z174.string(), z174.string()),
|
|
5338
5385
|
// "1.2.3": {...}
|
|
5339
|
-
versions:
|
|
5386
|
+
versions: z174.record(NpmPackageVersion)
|
|
5340
5387
|
})
|
|
5341
5388
|
);
|
|
5342
5389
|
|
|
5343
5390
|
// src/npm/npm-proxy-token-payload.ts
|
|
5344
|
-
import { z as
|
|
5345
|
-
var NpmProxyTokenPayload =
|
|
5346
|
-
npmProxyRegistryConfigId:
|
|
5391
|
+
import { z as z175 } from "zod";
|
|
5392
|
+
var NpmProxyTokenPayload = z175.object({
|
|
5393
|
+
npmProxyRegistryConfigId: z175.string()
|
|
5347
5394
|
});
|
|
5348
5395
|
|
|
5349
5396
|
// src/tokens/personal-access-token.ts
|
|
5350
|
-
import { z as
|
|
5351
|
-
var PersonalAccessToken =
|
|
5352
|
-
id:
|
|
5353
|
-
userId:
|
|
5354
|
-
workspaceId:
|
|
5355
|
-
designSystemId:
|
|
5397
|
+
import { z as z176 } from "zod";
|
|
5398
|
+
var PersonalAccessToken = z176.object({
|
|
5399
|
+
id: z176.string(),
|
|
5400
|
+
userId: z176.string(),
|
|
5401
|
+
workspaceId: z176.string().optional(),
|
|
5402
|
+
designSystemId: z176.string().optional(),
|
|
5356
5403
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5357
|
-
name:
|
|
5358
|
-
hidden:
|
|
5359
|
-
token:
|
|
5360
|
-
scope:
|
|
5361
|
-
createdAt:
|
|
5362
|
-
expireAt:
|
|
5404
|
+
name: z176.string(),
|
|
5405
|
+
hidden: z176.boolean(),
|
|
5406
|
+
token: z176.string(),
|
|
5407
|
+
scope: z176.string().optional(),
|
|
5408
|
+
createdAt: z176.coerce.date(),
|
|
5409
|
+
expireAt: z176.coerce.date().optional()
|
|
5363
5410
|
});
|
|
5364
5411
|
export {
|
|
5365
5412
|
Address,
|
|
@@ -5399,6 +5446,10 @@ export {
|
|
|
5399
5446
|
CardSchema,
|
|
5400
5447
|
ChangedImportedFigmaSourceData,
|
|
5401
5448
|
CodeIntegrationDump,
|
|
5449
|
+
Collection,
|
|
5450
|
+
CollectionImportModel,
|
|
5451
|
+
CollectionImportModelInput,
|
|
5452
|
+
CollectionOrigin,
|
|
5402
5453
|
ColorTokenData,
|
|
5403
5454
|
ColorTokenInlineData,
|
|
5404
5455
|
ColorValue,
|