@supernova-studio/model 0.48.37 → 0.49.0
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 +256 -65
- package/dist/index.d.ts +256 -65
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +863 -838
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/design-system.ts +1 -0
- package/src/dsm/documentation/approvals/approval-state.ts +4 -0
- package/src/dsm/documentation/approvals/approval.ts +17 -0
- package/src/dsm/documentation/approvals/index.ts +2 -0
- package/src/dsm/documentation/index.ts +1 -0
- package/src/dsm/elements/component-set.ts +1 -2
- package/src/dsm/elements/component.ts +4 -4
- package/src/liveblocks/rooms/design-system-version-room.ts +6 -1
package/dist/index.mjs
CHANGED
|
@@ -284,7 +284,7 @@ var CustomDomain = z14.object({
|
|
|
284
284
|
});
|
|
285
285
|
|
|
286
286
|
// src/data-dumps/code-integration-dump.ts
|
|
287
|
-
import { z as
|
|
287
|
+
import { z as z127 } from "zod";
|
|
288
288
|
|
|
289
289
|
// src/export/exporter.ts
|
|
290
290
|
import { z as z17 } from "zod";
|
|
@@ -387,10 +387,10 @@ var Exporter = z17.object({
|
|
|
387
387
|
});
|
|
388
388
|
|
|
389
389
|
// src/export/pipeline.ts
|
|
390
|
-
import { z as
|
|
390
|
+
import { z as z126 } from "zod";
|
|
391
391
|
|
|
392
392
|
// src/export/export-destinations.ts
|
|
393
|
-
import { z as
|
|
393
|
+
import { z as z125 } from "zod";
|
|
394
394
|
|
|
395
395
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
396
396
|
import { z as z18 } from "zod";
|
|
@@ -3502,50 +3502,68 @@ var RenderedAssetFile = z95.object({
|
|
|
3502
3502
|
settings: AssetRenderConfiguration
|
|
3503
3503
|
});
|
|
3504
3504
|
|
|
3505
|
-
// src/dsm/documentation/
|
|
3505
|
+
// src/dsm/documentation/approvals/approval-state.ts
|
|
3506
3506
|
import { z as z96 } from "zod";
|
|
3507
|
-
var
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3507
|
+
var DocumentationPageApprovalState = z96.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
|
|
3508
|
+
|
|
3509
|
+
// src/dsm/documentation/approvals/approval.ts
|
|
3510
|
+
import { z as z97 } from "zod";
|
|
3511
|
+
var DocumentationPageApproval = z97.object({
|
|
3512
|
+
id: z97.string(),
|
|
3513
|
+
approvalState: DocumentationPageApprovalState,
|
|
3514
|
+
persistentId: z97.string(),
|
|
3515
|
+
pageId: z97.string(),
|
|
3516
|
+
pagePersistentId: z97.string(),
|
|
3517
|
+
updatedByUserId: z97.string(),
|
|
3518
|
+
designSystemVersionId: z97.string(),
|
|
3519
|
+
updatedAt: z97.coerce.date(),
|
|
3520
|
+
createdAt: z97.coerce.date()
|
|
3521
|
+
});
|
|
3522
|
+
|
|
3523
|
+
// src/dsm/documentation/block-definitions/aux.ts
|
|
3524
|
+
import { z as z98 } from "zod";
|
|
3525
|
+
var PageBlockDefinitionAppearance = z98.object({
|
|
3526
|
+
isBordered: z98.boolean().optional(),
|
|
3527
|
+
hasBackground: z98.boolean().optional(),
|
|
3528
|
+
isEditorPresentationDifferent: z98.boolean().optional(),
|
|
3529
|
+
showBlockHeaderInEditor: z98.boolean().optional()
|
|
3512
3530
|
});
|
|
3513
3531
|
|
|
3514
3532
|
// src/dsm/documentation/block-definitions/definition.ts
|
|
3515
|
-
import { z as
|
|
3533
|
+
import { z as z101 } from "zod";
|
|
3516
3534
|
|
|
3517
3535
|
// src/dsm/documentation/block-definitions/item.ts
|
|
3518
|
-
import { z as
|
|
3536
|
+
import { z as z100 } from "zod";
|
|
3519
3537
|
|
|
3520
3538
|
// src/dsm/documentation/block-definitions/variant.ts
|
|
3521
|
-
import { z as
|
|
3522
|
-
var PageBlockDefinitionLayoutType =
|
|
3523
|
-
var PageBlockDefinitionLayoutGap =
|
|
3524
|
-
var PageBlockDefinitionLayoutAlign =
|
|
3525
|
-
var PageBlockDefinitionLayoutResizing =
|
|
3526
|
-
var PageBlockDefinitionLayoutBase =
|
|
3539
|
+
import { z as z99 } from "zod";
|
|
3540
|
+
var PageBlockDefinitionLayoutType = z99.enum(["Column", "Row"]);
|
|
3541
|
+
var PageBlockDefinitionLayoutGap = z99.enum(["Small", "Medium", "Large", "None"]);
|
|
3542
|
+
var PageBlockDefinitionLayoutAlign = z99.enum(["Start", "Center", "End"]);
|
|
3543
|
+
var PageBlockDefinitionLayoutResizing = z99.enum(["Fill", "Hug"]);
|
|
3544
|
+
var PageBlockDefinitionLayoutBase = z99.object({
|
|
3527
3545
|
type: PageBlockDefinitionLayoutType,
|
|
3528
3546
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
3529
3547
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
3530
3548
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
3531
3549
|
});
|
|
3532
3550
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
3533
|
-
children:
|
|
3551
|
+
children: z99.lazy(() => z99.array(PageBlockDefinitionLayout.or(z99.string())))
|
|
3534
3552
|
});
|
|
3535
|
-
var PageBlockDefinitionVariant =
|
|
3536
|
-
id:
|
|
3537
|
-
name:
|
|
3538
|
-
image:
|
|
3539
|
-
description:
|
|
3540
|
-
documentationLink:
|
|
3553
|
+
var PageBlockDefinitionVariant = z99.object({
|
|
3554
|
+
id: z99.string(),
|
|
3555
|
+
name: z99.string(),
|
|
3556
|
+
image: z99.string().optional(),
|
|
3557
|
+
description: z99.string().optional(),
|
|
3558
|
+
documentationLink: z99.string().optional(),
|
|
3541
3559
|
layout: PageBlockDefinitionLayout,
|
|
3542
|
-
maxColumns:
|
|
3543
|
-
defaultColumns:
|
|
3560
|
+
maxColumns: z99.number().optional(),
|
|
3561
|
+
defaultColumns: z99.number().optional(),
|
|
3544
3562
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
3545
3563
|
});
|
|
3546
3564
|
|
|
3547
3565
|
// src/dsm/documentation/block-definitions/item.ts
|
|
3548
|
-
var PageBlockDefinitionPropertyType =
|
|
3566
|
+
var PageBlockDefinitionPropertyType = z100.enum([
|
|
3549
3567
|
"RichText",
|
|
3550
3568
|
"MultiRichText",
|
|
3551
3569
|
"Text",
|
|
@@ -3573,7 +3591,7 @@ var PageBlockDefinitionPropertyType = z98.enum([
|
|
|
3573
3591
|
"Color",
|
|
3574
3592
|
"FigmaComponent"
|
|
3575
3593
|
]);
|
|
3576
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
3594
|
+
var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
|
|
3577
3595
|
"Title1",
|
|
3578
3596
|
"Title2",
|
|
3579
3597
|
"Title3",
|
|
@@ -3583,8 +3601,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z98.enum([
|
|
|
3583
3601
|
"Callout",
|
|
3584
3602
|
"Default"
|
|
3585
3603
|
]);
|
|
3586
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
3587
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
3604
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
|
|
3605
|
+
var PageBlockDefinitionTextPropertyStyle = z100.enum([
|
|
3588
3606
|
"Title1",
|
|
3589
3607
|
"Title2",
|
|
3590
3608
|
"Title3",
|
|
@@ -3598,15 +3616,15 @@ var PageBlockDefinitionTextPropertyStyle = z98.enum([
|
|
|
3598
3616
|
"SmallSemibold",
|
|
3599
3617
|
"Custom"
|
|
3600
3618
|
]);
|
|
3601
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
3602
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
3603
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
3619
|
+
var PageBlockDefinitionTextPropertyColor = z100.enum(["Neutral", "NeutralFaded"]);
|
|
3620
|
+
var PageBlockDefinitionBooleanPropertyStyle = z100.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
3621
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z100.enum([
|
|
3604
3622
|
"SegmentedControl",
|
|
3605
3623
|
"ToggleButton",
|
|
3606
3624
|
"Select",
|
|
3607
3625
|
"Checkbox"
|
|
3608
3626
|
]);
|
|
3609
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
3627
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z100.enum([
|
|
3610
3628
|
"Green",
|
|
3611
3629
|
"Red",
|
|
3612
3630
|
"Yellow",
|
|
@@ -3621,78 +3639,78 @@ var PageBlockDefinitionSingleSelectPropertyColor = z98.enum([
|
|
|
3621
3639
|
"Cyan",
|
|
3622
3640
|
"Fuchsia"
|
|
3623
3641
|
]);
|
|
3624
|
-
var IconSet =
|
|
3642
|
+
var IconSet = z100.enum([
|
|
3625
3643
|
"CheckCircle",
|
|
3626
3644
|
"CrossCircle",
|
|
3627
3645
|
"Alert"
|
|
3628
3646
|
]);
|
|
3629
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
3630
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
3631
|
-
var PageBlockDefinitionImageWidth =
|
|
3632
|
-
var PageBlockDefinitionSelectChoice =
|
|
3633
|
-
value:
|
|
3634
|
-
name:
|
|
3647
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
3648
|
+
var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
3649
|
+
var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
3650
|
+
var PageBlockDefinitionSelectChoice = z100.object({
|
|
3651
|
+
value: z100.string(),
|
|
3652
|
+
name: z100.string(),
|
|
3635
3653
|
icon: IconSet.optional(),
|
|
3636
|
-
customIconUrl:
|
|
3654
|
+
customIconUrl: z100.string().optional(),
|
|
3637
3655
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
3638
3656
|
});
|
|
3639
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
3640
|
-
var PageBlockDefinitionRichTextOptions =
|
|
3657
|
+
var PageBlockDefinitionUntypedPropertyOptions = z100.record(z100.any());
|
|
3658
|
+
var PageBlockDefinitionRichTextOptions = z100.object({
|
|
3641
3659
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
3642
3660
|
});
|
|
3643
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
3661
|
+
var PageBlockDefinitionMutiRichTextOptions = z100.object({
|
|
3644
3662
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
3645
3663
|
});
|
|
3646
|
-
var PageBlockDefinitionTextOptions =
|
|
3647
|
-
placeholder:
|
|
3648
|
-
defaultValue:
|
|
3664
|
+
var PageBlockDefinitionTextOptions = z100.object({
|
|
3665
|
+
placeholder: z100.string().optional(),
|
|
3666
|
+
defaultValue: z100.string().optional(),
|
|
3649
3667
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
3650
3668
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
3651
|
-
allowLineBreaks:
|
|
3669
|
+
allowLineBreaks: z100.boolean().optional()
|
|
3652
3670
|
});
|
|
3653
|
-
var PageBlockDefinitionSelectOptions =
|
|
3671
|
+
var PageBlockDefinitionSelectOptions = z100.object({
|
|
3654
3672
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
3655
|
-
defaultChoice:
|
|
3656
|
-
choices:
|
|
3673
|
+
defaultChoice: z100.string(),
|
|
3674
|
+
choices: z100.array(PageBlockDefinitionSelectChoice)
|
|
3657
3675
|
});
|
|
3658
|
-
var PageBlockDefinitionImageOptions =
|
|
3676
|
+
var PageBlockDefinitionImageOptions = z100.object({
|
|
3659
3677
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
3660
3678
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
3661
|
-
allowCaption:
|
|
3662
|
-
recommendation:
|
|
3679
|
+
allowCaption: z100.boolean().optional(),
|
|
3680
|
+
recommendation: z100.string().optional()
|
|
3663
3681
|
});
|
|
3664
|
-
var PageBlockDefinitionBooleanOptions =
|
|
3665
|
-
defaultvalue:
|
|
3682
|
+
var PageBlockDefinitionBooleanOptions = z100.object({
|
|
3683
|
+
defaultvalue: z100.boolean().optional(),
|
|
3666
3684
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
3667
3685
|
});
|
|
3668
|
-
var PageBlockDefinitionNumberOptions =
|
|
3669
|
-
defaultValue:
|
|
3670
|
-
min:
|
|
3671
|
-
max:
|
|
3672
|
-
step:
|
|
3673
|
-
placeholder:
|
|
3686
|
+
var PageBlockDefinitionNumberOptions = z100.object({
|
|
3687
|
+
defaultValue: z100.number(),
|
|
3688
|
+
min: z100.number().optional(),
|
|
3689
|
+
max: z100.number().optional(),
|
|
3690
|
+
step: z100.number().optional(),
|
|
3691
|
+
placeholder: z100.string().optional()
|
|
3674
3692
|
});
|
|
3675
|
-
var PageBlockDefinitionComponentOptions =
|
|
3676
|
-
renderLayoutAs:
|
|
3677
|
-
allowPropertySelection:
|
|
3693
|
+
var PageBlockDefinitionComponentOptions = z100.object({
|
|
3694
|
+
renderLayoutAs: z100.enum(["List", "Table"]).optional(),
|
|
3695
|
+
allowPropertySelection: z100.boolean().optional()
|
|
3678
3696
|
});
|
|
3679
|
-
var PageBlockDefinitionProperty =
|
|
3680
|
-
id:
|
|
3681
|
-
name:
|
|
3697
|
+
var PageBlockDefinitionProperty = z100.object({
|
|
3698
|
+
id: z100.string(),
|
|
3699
|
+
name: z100.string(),
|
|
3682
3700
|
type: PageBlockDefinitionPropertyType,
|
|
3683
|
-
description:
|
|
3701
|
+
description: z100.string().optional(),
|
|
3684
3702
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
3685
|
-
variantOptions:
|
|
3703
|
+
variantOptions: z100.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
3686
3704
|
});
|
|
3687
|
-
var PageBlockDefinitionItem =
|
|
3688
|
-
properties:
|
|
3705
|
+
var PageBlockDefinitionItem = z100.object({
|
|
3706
|
+
properties: z100.array(PageBlockDefinitionProperty),
|
|
3689
3707
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
3690
|
-
variants:
|
|
3691
|
-
defaultVariantKey:
|
|
3708
|
+
variants: z100.array(PageBlockDefinitionVariant),
|
|
3709
|
+
defaultVariantKey: z100.string()
|
|
3692
3710
|
});
|
|
3693
3711
|
|
|
3694
3712
|
// src/dsm/documentation/block-definitions/definition.ts
|
|
3695
|
-
var PageBlockCategory =
|
|
3713
|
+
var PageBlockCategory = z101.enum([
|
|
3696
3714
|
"Text",
|
|
3697
3715
|
"Layout",
|
|
3698
3716
|
"Media",
|
|
@@ -3706,174 +3724,174 @@ var PageBlockCategory = z99.enum([
|
|
|
3706
3724
|
"Data",
|
|
3707
3725
|
"Other"
|
|
3708
3726
|
]);
|
|
3709
|
-
var PageBlockBehaviorDataType =
|
|
3710
|
-
var PageBlockBehaviorSelectionType =
|
|
3711
|
-
var PageBlockDefinitionBehavior =
|
|
3727
|
+
var PageBlockBehaviorDataType = z101.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
3728
|
+
var PageBlockBehaviorSelectionType = z101.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
3729
|
+
var PageBlockDefinitionBehavior = z101.object({
|
|
3712
3730
|
dataType: PageBlockBehaviorDataType,
|
|
3713
|
-
items:
|
|
3714
|
-
numberOfItems:
|
|
3715
|
-
allowLinks:
|
|
3716
|
-
newItemLabel:
|
|
3731
|
+
items: z101.object({
|
|
3732
|
+
numberOfItems: z101.number(),
|
|
3733
|
+
allowLinks: z101.boolean(),
|
|
3734
|
+
newItemLabel: z101.string().optional()
|
|
3717
3735
|
}).optional(),
|
|
3718
|
-
entities:
|
|
3736
|
+
entities: z101.object({
|
|
3719
3737
|
selectionType: PageBlockBehaviorSelectionType,
|
|
3720
|
-
maxSelected:
|
|
3738
|
+
maxSelected: z101.number()
|
|
3721
3739
|
}).optional()
|
|
3722
3740
|
});
|
|
3723
|
-
var PageBlockDefinitionOnboarding =
|
|
3724
|
-
helpText:
|
|
3725
|
-
documentationLink:
|
|
3741
|
+
var PageBlockDefinitionOnboarding = z101.object({
|
|
3742
|
+
helpText: z101.string(),
|
|
3743
|
+
documentationLink: z101.string().optional()
|
|
3726
3744
|
});
|
|
3727
|
-
var PageBlockDefinition =
|
|
3728
|
-
id:
|
|
3729
|
-
name:
|
|
3730
|
-
description:
|
|
3745
|
+
var PageBlockDefinition = z101.object({
|
|
3746
|
+
id: z101.string(),
|
|
3747
|
+
name: z101.string(),
|
|
3748
|
+
description: z101.string(),
|
|
3731
3749
|
category: PageBlockCategory,
|
|
3732
|
-
icon:
|
|
3733
|
-
documentationLink:
|
|
3734
|
-
searchKeywords:
|
|
3750
|
+
icon: z101.string().optional(),
|
|
3751
|
+
documentationLink: z101.string().optional(),
|
|
3752
|
+
searchKeywords: z101.array(z101.string()).optional(),
|
|
3735
3753
|
item: PageBlockDefinitionItem,
|
|
3736
3754
|
behavior: PageBlockDefinitionBehavior,
|
|
3737
|
-
editorOptions:
|
|
3755
|
+
editorOptions: z101.object({
|
|
3738
3756
|
onboarding: PageBlockDefinitionOnboarding.optional(),
|
|
3739
|
-
newItemLabel:
|
|
3757
|
+
newItemLabel: z101.string().optional()
|
|
3740
3758
|
}),
|
|
3741
3759
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
3742
3760
|
});
|
|
3743
3761
|
|
|
3744
3762
|
// src/dsm/documentation/group.ts
|
|
3745
|
-
import { z as
|
|
3746
|
-
var DocumentationPageGroup =
|
|
3747
|
-
type:
|
|
3748
|
-
childType:
|
|
3749
|
-
id:
|
|
3750
|
-
persistentId:
|
|
3751
|
-
shortPersistentId:
|
|
3752
|
-
designSystemVersionId:
|
|
3753
|
-
parentPersistentId:
|
|
3754
|
-
sortOrder:
|
|
3755
|
-
title:
|
|
3756
|
-
slug:
|
|
3757
|
-
userSlug:
|
|
3758
|
-
createdAt:
|
|
3759
|
-
updatedAt:
|
|
3763
|
+
import { z as z102 } from "zod";
|
|
3764
|
+
var DocumentationPageGroup = z102.object({
|
|
3765
|
+
type: z102.literal("ElementGroup"),
|
|
3766
|
+
childType: z102.literal("DocumentationPage"),
|
|
3767
|
+
id: z102.string(),
|
|
3768
|
+
persistentId: z102.string(),
|
|
3769
|
+
shortPersistentId: z102.string(),
|
|
3770
|
+
designSystemVersionId: z102.string(),
|
|
3771
|
+
parentPersistentId: z102.string().nullish(),
|
|
3772
|
+
sortOrder: z102.number(),
|
|
3773
|
+
title: z102.string(),
|
|
3774
|
+
slug: z102.string(),
|
|
3775
|
+
userSlug: z102.string().nullish(),
|
|
3776
|
+
createdAt: z102.coerce.date(),
|
|
3777
|
+
updatedAt: z102.coerce.date()
|
|
3760
3778
|
});
|
|
3761
3779
|
|
|
3762
3780
|
// src/dsm/documentation/link-preview.ts
|
|
3763
|
-
import { z as
|
|
3764
|
-
var DocumentationLinkPreview =
|
|
3765
|
-
title:
|
|
3766
|
-
description:
|
|
3781
|
+
import { z as z103 } from "zod";
|
|
3782
|
+
var DocumentationLinkPreview = z103.object({
|
|
3783
|
+
title: z103.string().optional(),
|
|
3784
|
+
description: z103.string().optional(),
|
|
3767
3785
|
thumbnail: PageBlockImageReference.optional()
|
|
3768
3786
|
});
|
|
3769
3787
|
|
|
3770
3788
|
// src/dsm/documentation/page-anchor.ts
|
|
3771
|
-
import { z as z102 } from "zod";
|
|
3772
|
-
var DocumentationPageAnchor = z102.object({
|
|
3773
|
-
blockId: z102.string(),
|
|
3774
|
-
level: z102.number(),
|
|
3775
|
-
text: z102.string()
|
|
3776
|
-
});
|
|
3777
|
-
|
|
3778
|
-
// src/dsm/documentation/page-content-backup.ts
|
|
3779
|
-
import { z as z103 } from "zod";
|
|
3780
|
-
var DocumentationPageContentBackup = z103.object({
|
|
3781
|
-
id: z103.string(),
|
|
3782
|
-
designSystemVersionId: z103.string(),
|
|
3783
|
-
createdAt: z103.coerce.date(),
|
|
3784
|
-
updatedAt: z103.coerce.date(),
|
|
3785
|
-
documentationPageId: z103.string(),
|
|
3786
|
-
documentationPageName: z103.string(),
|
|
3787
|
-
storagePath: z103.string()
|
|
3788
|
-
});
|
|
3789
|
-
|
|
3790
|
-
// src/dsm/documentation/page-content.ts
|
|
3791
3789
|
import { z as z104 } from "zod";
|
|
3792
|
-
var
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
var DocumentationPageContentData = z104.object({
|
|
3797
|
-
items: z104.array(DocumentationPageContentItem)
|
|
3798
|
-
});
|
|
3799
|
-
var DocumentationPageContent = z104.object({
|
|
3800
|
-
id: z104.string(),
|
|
3801
|
-
designSystemVersionId: z104.string(),
|
|
3802
|
-
createdAt: z104.coerce.date(),
|
|
3803
|
-
updatedAt: z104.coerce.date(),
|
|
3804
|
-
documentationPageId: z104.string(),
|
|
3805
|
-
data: DocumentationPageContentData
|
|
3790
|
+
var DocumentationPageAnchor = z104.object({
|
|
3791
|
+
blockId: z104.string(),
|
|
3792
|
+
level: z104.number(),
|
|
3793
|
+
text: z104.string()
|
|
3806
3794
|
});
|
|
3807
3795
|
|
|
3808
|
-
// src/dsm/documentation/page.ts
|
|
3796
|
+
// src/dsm/documentation/page-content-backup.ts
|
|
3809
3797
|
import { z as z105 } from "zod";
|
|
3810
|
-
var
|
|
3811
|
-
type: z105.literal("DocumentationPage"),
|
|
3798
|
+
var DocumentationPageContentBackup = z105.object({
|
|
3812
3799
|
id: z105.string(),
|
|
3813
|
-
persistentId: z105.string(),
|
|
3814
|
-
shortPersistentId: z105.string(),
|
|
3815
3800
|
designSystemVersionId: z105.string(),
|
|
3816
|
-
parentPersistentId: z105.string().nullish(),
|
|
3817
|
-
sortOrder: z105.number(),
|
|
3818
|
-
title: z105.string(),
|
|
3819
|
-
slug: z105.string(),
|
|
3820
|
-
userSlug: z105.string().nullish(),
|
|
3821
3801
|
createdAt: z105.coerce.date(),
|
|
3822
|
-
updatedAt: z105.coerce.date()
|
|
3802
|
+
updatedAt: z105.coerce.date(),
|
|
3803
|
+
documentationPageId: z105.string(),
|
|
3804
|
+
documentationPageName: z105.string(),
|
|
3805
|
+
storagePath: z105.string()
|
|
3823
3806
|
});
|
|
3824
3807
|
|
|
3825
|
-
// src/dsm/documentation/
|
|
3808
|
+
// src/dsm/documentation/page-content.ts
|
|
3826
3809
|
import { z as z106 } from "zod";
|
|
3827
|
-
var
|
|
3828
|
-
|
|
3810
|
+
var DocumentationPageContentItem = z106.discriminatedUnion("type", [
|
|
3811
|
+
PageBlockEditorModelV2,
|
|
3812
|
+
PageSectionEditorModelV2
|
|
3813
|
+
]);
|
|
3814
|
+
var DocumentationPageContentData = z106.object({
|
|
3815
|
+
items: z106.array(DocumentationPageContentItem)
|
|
3816
|
+
});
|
|
3817
|
+
var DocumentationPageContent = z106.object({
|
|
3818
|
+
id: z106.string(),
|
|
3829
3819
|
designSystemVersionId: z106.string(),
|
|
3830
3820
|
createdAt: z106.coerce.date(),
|
|
3831
3821
|
updatedAt: z106.coerce.date(),
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
storybookEmbedErrorMessage: z106.string().optional(),
|
|
3835
|
-
renderCodePackageJson: z106.string().optional(),
|
|
3836
|
-
selectedBrandPersistentId: z106.string().optional(),
|
|
3837
|
-
serveDefaultVersionOnly: z106.boolean(),
|
|
3838
|
-
isPublic: z106.boolean()
|
|
3822
|
+
documentationPageId: z106.string(),
|
|
3823
|
+
data: DocumentationPageContentData
|
|
3839
3824
|
});
|
|
3840
3825
|
|
|
3841
|
-
// src/dsm/documentation/
|
|
3826
|
+
// src/dsm/documentation/page.ts
|
|
3842
3827
|
import { z as z107 } from "zod";
|
|
3843
|
-
var
|
|
3844
|
-
|
|
3845
|
-
authorId: z107.string(),
|
|
3846
|
-
threadId: z107.string(),
|
|
3847
|
-
roomId: z107.string(),
|
|
3848
|
-
createdAt: z107.coerce.date(),
|
|
3849
|
-
editedAt: z107.coerce.date().optional(),
|
|
3850
|
-
deletedAt: z107.coerce.date().optional(),
|
|
3851
|
-
body: z107.string()
|
|
3852
|
-
});
|
|
3853
|
-
var DocumentationCommentThread = z107.object({
|
|
3828
|
+
var DocumentationPage = z107.object({
|
|
3829
|
+
type: z107.literal("DocumentationPage"),
|
|
3854
3830
|
id: z107.string(),
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
brandId: z107.string(),
|
|
3831
|
+
persistentId: z107.string(),
|
|
3832
|
+
shortPersistentId: z107.string(),
|
|
3858
3833
|
designSystemVersionId: z107.string(),
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3834
|
+
parentPersistentId: z107.string().nullish(),
|
|
3835
|
+
sortOrder: z107.number(),
|
|
3836
|
+
title: z107.string(),
|
|
3837
|
+
slug: z107.string(),
|
|
3838
|
+
userSlug: z107.string().nullish(),
|
|
3862
3839
|
createdAt: z107.coerce.date(),
|
|
3863
3840
|
updatedAt: z107.coerce.date()
|
|
3864
3841
|
});
|
|
3865
3842
|
|
|
3866
|
-
// src/dsm/
|
|
3843
|
+
// src/dsm/documentation/settings.ts
|
|
3867
3844
|
import { z as z108 } from "zod";
|
|
3868
|
-
var
|
|
3869
|
-
|
|
3870
|
-
id: z108.string(),
|
|
3871
|
-
persistentId: z108.string(),
|
|
3845
|
+
var DocumentationSettings = z108.object({
|
|
3846
|
+
// Basic
|
|
3872
3847
|
designSystemVersionId: z108.string(),
|
|
3873
3848
|
createdAt: z108.coerce.date(),
|
|
3874
3849
|
updatedAt: z108.coerce.date(),
|
|
3850
|
+
// Configuration
|
|
3851
|
+
isTabbedLayoutEnabled: z108.boolean(),
|
|
3852
|
+
storybookEmbedErrorMessage: z108.string().optional(),
|
|
3853
|
+
renderCodePackageJson: z108.string().optional(),
|
|
3854
|
+
selectedBrandPersistentId: z108.string().optional(),
|
|
3855
|
+
serveDefaultVersionOnly: z108.boolean(),
|
|
3856
|
+
isPublic: z108.boolean()
|
|
3857
|
+
});
|
|
3858
|
+
|
|
3859
|
+
// src/dsm/documentation/thread.ts
|
|
3860
|
+
import { z as z109 } from "zod";
|
|
3861
|
+
var DocumentationComment = z109.object({
|
|
3862
|
+
id: z109.string(),
|
|
3863
|
+
authorId: z109.string(),
|
|
3864
|
+
threadId: z109.string(),
|
|
3865
|
+
roomId: z109.string(),
|
|
3866
|
+
createdAt: z109.coerce.date(),
|
|
3867
|
+
editedAt: z109.coerce.date().optional(),
|
|
3868
|
+
deletedAt: z109.coerce.date().optional(),
|
|
3869
|
+
body: z109.string()
|
|
3870
|
+
});
|
|
3871
|
+
var DocumentationCommentThread = z109.object({
|
|
3872
|
+
id: z109.string(),
|
|
3873
|
+
roomId: z109.string(),
|
|
3874
|
+
pagePersistentId: z109.string(),
|
|
3875
|
+
brandId: z109.string(),
|
|
3876
|
+
designSystemVersionId: z109.string(),
|
|
3877
|
+
designSystemId: z109.string(),
|
|
3878
|
+
blockId: z109.string().optional(),
|
|
3879
|
+
resolved: z109.boolean(),
|
|
3880
|
+
createdAt: z109.coerce.date(),
|
|
3881
|
+
updatedAt: z109.coerce.date()
|
|
3882
|
+
});
|
|
3883
|
+
|
|
3884
|
+
// src/dsm/element-snapshots/base.ts
|
|
3885
|
+
import { z as z110 } from "zod";
|
|
3886
|
+
var DesignElementSnapshotReason = z110.enum(["Publish", "Deletion"]);
|
|
3887
|
+
var DesignElementSnapshotBase = z110.object({
|
|
3888
|
+
id: z110.string(),
|
|
3889
|
+
persistentId: z110.string(),
|
|
3890
|
+
designSystemVersionId: z110.string(),
|
|
3891
|
+
createdAt: z110.coerce.date(),
|
|
3892
|
+
updatedAt: z110.coerce.date(),
|
|
3875
3893
|
reason: DesignElementSnapshotReason,
|
|
3876
|
-
createdByUserId:
|
|
3894
|
+
createdByUserId: z110.string()
|
|
3877
3895
|
});
|
|
3878
3896
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
3879
3897
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -3884,11 +3902,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
3884
3902
|
}
|
|
3885
3903
|
|
|
3886
3904
|
// src/dsm/element-snapshots/documentation-page-snapshot.ts
|
|
3887
|
-
import { z as
|
|
3905
|
+
import { z as z111 } from "zod";
|
|
3888
3906
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
3889
3907
|
page: DocumentationPageV2,
|
|
3890
|
-
pageContentHash:
|
|
3891
|
-
pageContentStorageKey:
|
|
3908
|
+
pageContentHash: z111.string(),
|
|
3909
|
+
pageContentStorageKey: z111.string()
|
|
3892
3910
|
});
|
|
3893
3911
|
function pickLatestPageSnapshots(snapshots) {
|
|
3894
3912
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -3903,182 +3921,183 @@ function pickLatestGroupSnapshots(snapshots) {
|
|
|
3903
3921
|
}
|
|
3904
3922
|
|
|
3905
3923
|
// src/dsm/views/column.ts
|
|
3906
|
-
import { z as
|
|
3907
|
-
var ElementViewBaseColumnType =
|
|
3908
|
-
var ElementViewColumnType =
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3924
|
+
import { z as z112 } from "zod";
|
|
3925
|
+
var ElementViewBaseColumnType = z112.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3926
|
+
var ElementViewColumnType = z112.union([
|
|
3927
|
+
z112.literal("BaseProperty"),
|
|
3928
|
+
z112.literal("PropertyDefinition"),
|
|
3929
|
+
z112.literal("Theme")
|
|
3912
3930
|
]);
|
|
3913
|
-
var ElementViewColumnSharedAttributes =
|
|
3914
|
-
id:
|
|
3915
|
-
persistentId:
|
|
3916
|
-
elementDataViewId:
|
|
3917
|
-
sortPosition:
|
|
3918
|
-
width:
|
|
3931
|
+
var ElementViewColumnSharedAttributes = z112.object({
|
|
3932
|
+
id: z112.string(),
|
|
3933
|
+
persistentId: z112.string(),
|
|
3934
|
+
elementDataViewId: z112.string(),
|
|
3935
|
+
sortPosition: z112.number(),
|
|
3936
|
+
width: z112.number()
|
|
3919
3937
|
});
|
|
3920
3938
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3921
|
-
type:
|
|
3939
|
+
type: z112.literal("BaseProperty"),
|
|
3922
3940
|
basePropertyType: ElementViewBaseColumnType
|
|
3923
3941
|
});
|
|
3924
3942
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3925
|
-
type:
|
|
3926
|
-
propertyDefinitionId:
|
|
3943
|
+
type: z112.literal("PropertyDefinition"),
|
|
3944
|
+
propertyDefinitionId: z112.string()
|
|
3927
3945
|
});
|
|
3928
3946
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3929
|
-
type:
|
|
3930
|
-
themeId:
|
|
3947
|
+
type: z112.literal("Theme"),
|
|
3948
|
+
themeId: z112.string()
|
|
3931
3949
|
});
|
|
3932
|
-
var ElementViewColumn =
|
|
3950
|
+
var ElementViewColumn = z112.discriminatedUnion("type", [
|
|
3933
3951
|
ElementViewBasePropertyColumn,
|
|
3934
3952
|
ElementViewPropertyDefinitionColumn,
|
|
3935
3953
|
ElementViewThemeColumn
|
|
3936
3954
|
]);
|
|
3937
3955
|
|
|
3938
3956
|
// src/dsm/views/view.ts
|
|
3939
|
-
import { z as
|
|
3940
|
-
var ElementView =
|
|
3941
|
-
id:
|
|
3942
|
-
persistentId:
|
|
3943
|
-
designSystemVersionId:
|
|
3944
|
-
name:
|
|
3945
|
-
description:
|
|
3957
|
+
import { z as z113 } from "zod";
|
|
3958
|
+
var ElementView = z113.object({
|
|
3959
|
+
id: z113.string(),
|
|
3960
|
+
persistentId: z113.string(),
|
|
3961
|
+
designSystemVersionId: z113.string(),
|
|
3962
|
+
name: z113.string(),
|
|
3963
|
+
description: z113.string(),
|
|
3946
3964
|
targetElementType: ElementPropertyTargetType,
|
|
3947
|
-
isDefault:
|
|
3965
|
+
isDefault: z113.boolean()
|
|
3948
3966
|
});
|
|
3949
3967
|
|
|
3950
3968
|
// src/dsm/brand.ts
|
|
3951
|
-
import { z as
|
|
3952
|
-
var Brand =
|
|
3953
|
-
id:
|
|
3954
|
-
designSystemVersionId:
|
|
3955
|
-
persistentId:
|
|
3956
|
-
name:
|
|
3957
|
-
description:
|
|
3969
|
+
import { z as z114 } from "zod";
|
|
3970
|
+
var Brand = z114.object({
|
|
3971
|
+
id: z114.string(),
|
|
3972
|
+
designSystemVersionId: z114.string(),
|
|
3973
|
+
persistentId: z114.string(),
|
|
3974
|
+
name: z114.string(),
|
|
3975
|
+
description: z114.string()
|
|
3958
3976
|
});
|
|
3959
3977
|
|
|
3960
3978
|
// src/dsm/design-system-update.ts
|
|
3961
|
-
import { z as
|
|
3979
|
+
import { z as z119 } from "zod";
|
|
3962
3980
|
|
|
3963
3981
|
// src/dsm/design-system.ts
|
|
3964
|
-
import { z as
|
|
3982
|
+
import { z as z118 } from "zod";
|
|
3965
3983
|
|
|
3966
3984
|
// src/workspace/workspace.ts
|
|
3967
3985
|
import IPCIDR from "ip-cidr";
|
|
3968
|
-
import { z as
|
|
3986
|
+
import { z as z117 } from "zod";
|
|
3969
3987
|
|
|
3970
3988
|
// src/workspace/npm-registry-settings.ts
|
|
3971
|
-
import { z as
|
|
3972
|
-
var NpmRegistryAuthType =
|
|
3973
|
-
var NpmRegistryType =
|
|
3974
|
-
var NpmRegistryBasicAuthConfig =
|
|
3975
|
-
authType:
|
|
3976
|
-
username:
|
|
3977
|
-
password:
|
|
3978
|
-
});
|
|
3979
|
-
var NpmRegistryBearerAuthConfig =
|
|
3980
|
-
authType:
|
|
3981
|
-
accessToken:
|
|
3982
|
-
});
|
|
3983
|
-
var NpmRegistryNoAuthConfig =
|
|
3984
|
-
authType:
|
|
3985
|
-
});
|
|
3986
|
-
var NpmRegistrCustomAuthConfig =
|
|
3987
|
-
authType:
|
|
3988
|
-
authHeaderName:
|
|
3989
|
-
authHeaderValue:
|
|
3990
|
-
});
|
|
3991
|
-
var NpmRegistryAuthConfig =
|
|
3989
|
+
import { z as z115 } from "zod";
|
|
3990
|
+
var NpmRegistryAuthType = z115.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3991
|
+
var NpmRegistryType = z115.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3992
|
+
var NpmRegistryBasicAuthConfig = z115.object({
|
|
3993
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3994
|
+
username: z115.string(),
|
|
3995
|
+
password: z115.string()
|
|
3996
|
+
});
|
|
3997
|
+
var NpmRegistryBearerAuthConfig = z115.object({
|
|
3998
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3999
|
+
accessToken: z115.string()
|
|
4000
|
+
});
|
|
4001
|
+
var NpmRegistryNoAuthConfig = z115.object({
|
|
4002
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.None)
|
|
4003
|
+
});
|
|
4004
|
+
var NpmRegistrCustomAuthConfig = z115.object({
|
|
4005
|
+
authType: z115.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4006
|
+
authHeaderName: z115.string(),
|
|
4007
|
+
authHeaderValue: z115.string()
|
|
4008
|
+
});
|
|
4009
|
+
var NpmRegistryAuthConfig = z115.discriminatedUnion("authType", [
|
|
3992
4010
|
NpmRegistryBasicAuthConfig,
|
|
3993
4011
|
NpmRegistryBearerAuthConfig,
|
|
3994
4012
|
NpmRegistryNoAuthConfig,
|
|
3995
4013
|
NpmRegistrCustomAuthConfig
|
|
3996
4014
|
]);
|
|
3997
|
-
var NpmRegistryConfigBase =
|
|
4015
|
+
var NpmRegistryConfigBase = z115.object({
|
|
3998
4016
|
registryType: NpmRegistryType,
|
|
3999
|
-
enabledScopes:
|
|
4000
|
-
customRegistryUrl:
|
|
4001
|
-
bypassProxy:
|
|
4002
|
-
npmProxyRegistryConfigId:
|
|
4003
|
-
npmProxyVersion:
|
|
4017
|
+
enabledScopes: z115.array(z115.string()),
|
|
4018
|
+
customRegistryUrl: z115.string().optional(),
|
|
4019
|
+
bypassProxy: z115.boolean().default(false),
|
|
4020
|
+
npmProxyRegistryConfigId: z115.string().optional(),
|
|
4021
|
+
npmProxyVersion: z115.number().optional()
|
|
4004
4022
|
});
|
|
4005
4023
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4006
4024
|
|
|
4007
4025
|
// src/workspace/sso-provider.ts
|
|
4008
|
-
import { z as
|
|
4009
|
-
var SsoProvider =
|
|
4010
|
-
providerId:
|
|
4011
|
-
defaultAutoInviteValue:
|
|
4012
|
-
autoInviteDomains:
|
|
4013
|
-
skipDocsSupernovaLogin:
|
|
4014
|
-
areInvitesDisabled:
|
|
4015
|
-
isTestMode:
|
|
4016
|
-
emailDomains:
|
|
4017
|
-
metadataXml:
|
|
4026
|
+
import { z as z116 } from "zod";
|
|
4027
|
+
var SsoProvider = z116.object({
|
|
4028
|
+
providerId: z116.string(),
|
|
4029
|
+
defaultAutoInviteValue: z116.boolean(),
|
|
4030
|
+
autoInviteDomains: z116.record(z116.string(), z116.boolean()),
|
|
4031
|
+
skipDocsSupernovaLogin: z116.boolean(),
|
|
4032
|
+
areInvitesDisabled: z116.boolean(),
|
|
4033
|
+
isTestMode: z116.boolean(),
|
|
4034
|
+
emailDomains: z116.array(z116.string()),
|
|
4035
|
+
metadataXml: z116.string().nullish()
|
|
4018
4036
|
});
|
|
4019
4037
|
|
|
4020
4038
|
// src/workspace/workspace.ts
|
|
4021
4039
|
var isValidCIDR = (value) => {
|
|
4022
4040
|
return IPCIDR.isValidAddress(value);
|
|
4023
4041
|
};
|
|
4024
|
-
var WorkspaceIpWhitelistEntry =
|
|
4025
|
-
isEnabled:
|
|
4026
|
-
name:
|
|
4027
|
-
range:
|
|
4042
|
+
var WorkspaceIpWhitelistEntry = z117.object({
|
|
4043
|
+
isEnabled: z117.boolean(),
|
|
4044
|
+
name: z117.string(),
|
|
4045
|
+
range: z117.string().refine(isValidCIDR, {
|
|
4028
4046
|
message: "Invalid IP CIDR"
|
|
4029
4047
|
})
|
|
4030
4048
|
});
|
|
4031
|
-
var WorkspaceIpSettings =
|
|
4032
|
-
isEnabledForCloud:
|
|
4033
|
-
isEnabledForDocs:
|
|
4034
|
-
entries:
|
|
4049
|
+
var WorkspaceIpSettings = z117.object({
|
|
4050
|
+
isEnabledForCloud: z117.boolean(),
|
|
4051
|
+
isEnabledForDocs: z117.boolean(),
|
|
4052
|
+
entries: z117.array(WorkspaceIpWhitelistEntry)
|
|
4035
4053
|
});
|
|
4036
|
-
var WorkspaceProfile =
|
|
4037
|
-
name:
|
|
4038
|
-
handle:
|
|
4039
|
-
color:
|
|
4040
|
-
avatar: nullishToOptional(
|
|
4054
|
+
var WorkspaceProfile = z117.object({
|
|
4055
|
+
name: z117.string(),
|
|
4056
|
+
handle: z117.string(),
|
|
4057
|
+
color: z117.string(),
|
|
4058
|
+
avatar: nullishToOptional(z117.string()),
|
|
4041
4059
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4042
4060
|
});
|
|
4043
4061
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4044
4062
|
avatar: true
|
|
4045
4063
|
});
|
|
4046
|
-
var Workspace =
|
|
4047
|
-
id:
|
|
4064
|
+
var Workspace = z117.object({
|
|
4065
|
+
id: z117.string(),
|
|
4048
4066
|
profile: WorkspaceProfile,
|
|
4049
4067
|
subscription: Subscription,
|
|
4050
4068
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4051
4069
|
sso: nullishToOptional(SsoProvider),
|
|
4052
4070
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4053
4071
|
});
|
|
4054
|
-
var WorkspaceWithDesignSystems =
|
|
4072
|
+
var WorkspaceWithDesignSystems = z117.object({
|
|
4055
4073
|
workspace: Workspace,
|
|
4056
|
-
designSystems:
|
|
4074
|
+
designSystems: z117.array(DesignSystem)
|
|
4057
4075
|
});
|
|
4058
4076
|
|
|
4059
4077
|
// src/dsm/design-system.ts
|
|
4060
|
-
var DesignSystemSwitcher =
|
|
4061
|
-
isEnabled:
|
|
4062
|
-
designSystemIds:
|
|
4063
|
-
});
|
|
4064
|
-
var DesignSystem =
|
|
4065
|
-
id:
|
|
4066
|
-
workspaceId:
|
|
4067
|
-
name:
|
|
4068
|
-
description:
|
|
4069
|
-
docExporterId: nullishToOptional(
|
|
4070
|
-
docSlug:
|
|
4071
|
-
docUserSlug: nullishToOptional(
|
|
4072
|
-
docSlugDeprecated:
|
|
4073
|
-
isPublic:
|
|
4074
|
-
isMultibrand:
|
|
4075
|
-
docViewUrl: nullishToOptional(
|
|
4076
|
-
basePrefixes:
|
|
4078
|
+
var DesignSystemSwitcher = z118.object({
|
|
4079
|
+
isEnabled: z118.boolean(),
|
|
4080
|
+
designSystemIds: z118.array(z118.string())
|
|
4081
|
+
});
|
|
4082
|
+
var DesignSystem = z118.object({
|
|
4083
|
+
id: z118.string(),
|
|
4084
|
+
workspaceId: z118.string(),
|
|
4085
|
+
name: z118.string(),
|
|
4086
|
+
description: z118.string(),
|
|
4087
|
+
docExporterId: nullishToOptional(z118.string()),
|
|
4088
|
+
docSlug: z118.string(),
|
|
4089
|
+
docUserSlug: nullishToOptional(z118.string()),
|
|
4090
|
+
docSlugDeprecated: z118.string(),
|
|
4091
|
+
isPublic: z118.boolean(),
|
|
4092
|
+
isMultibrand: z118.boolean(),
|
|
4093
|
+
docViewUrl: nullishToOptional(z118.string()),
|
|
4094
|
+
basePrefixes: z118.array(z118.string()),
|
|
4077
4095
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4078
|
-
|
|
4079
|
-
|
|
4096
|
+
isApprovalFeatureEnabled: z118.boolean(),
|
|
4097
|
+
createdAt: z118.coerce.date(),
|
|
4098
|
+
updatedAt: z118.coerce.date()
|
|
4080
4099
|
});
|
|
4081
|
-
var DesignSystemWithWorkspace =
|
|
4100
|
+
var DesignSystemWithWorkspace = z118.object({
|
|
4082
4101
|
designSystem: DesignSystem,
|
|
4083
4102
|
workspace: Workspace
|
|
4084
4103
|
});
|
|
@@ -4087,9 +4106,9 @@ var DesignSystemWithWorkspace = z116.object({
|
|
|
4087
4106
|
var DS_NAME_MIN_LENGTH = 2;
|
|
4088
4107
|
var DS_NAME_MAX_LENGTH = 64;
|
|
4089
4108
|
var DS_DESC_MAX_LENGTH = 2048;
|
|
4090
|
-
var DesignSystemUpdateInputMetadata =
|
|
4091
|
-
name:
|
|
4092
|
-
description:
|
|
4109
|
+
var DesignSystemUpdateInputMetadata = z119.object({
|
|
4110
|
+
name: z119.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
4111
|
+
description: z119.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
4093
4112
|
});
|
|
4094
4113
|
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
4095
4114
|
id: true,
|
|
@@ -4103,185 +4122,185 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
4103
4122
|
});
|
|
4104
4123
|
|
|
4105
4124
|
// src/dsm/desing-system-create.ts
|
|
4106
|
-
import { z as
|
|
4125
|
+
import { z as z120 } from "zod";
|
|
4107
4126
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
4108
4127
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
4109
4128
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
4110
|
-
var DesignSystemCreateInputMetadata =
|
|
4111
|
-
name:
|
|
4112
|
-
description:
|
|
4129
|
+
var DesignSystemCreateInputMetadata = z120.object({
|
|
4130
|
+
name: z120.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
4131
|
+
description: z120.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
4113
4132
|
});
|
|
4114
|
-
var DesignSystemCreateInput =
|
|
4133
|
+
var DesignSystemCreateInput = z120.object({
|
|
4115
4134
|
meta: DesignSystemCreateInputMetadata,
|
|
4116
|
-
workspaceId:
|
|
4117
|
-
isPublic:
|
|
4118
|
-
basePrefixes:
|
|
4119
|
-
docUserSlug:
|
|
4120
|
-
source:
|
|
4135
|
+
workspaceId: z120.string(),
|
|
4136
|
+
isPublic: z120.boolean().optional(),
|
|
4137
|
+
basePrefixes: z120.array(z120.string()).optional(),
|
|
4138
|
+
docUserSlug: z120.string().nullish().optional(),
|
|
4139
|
+
source: z120.array(z120.string()).optional()
|
|
4121
4140
|
});
|
|
4122
4141
|
|
|
4123
4142
|
// src/dsm/exporter-property-values-collection.ts
|
|
4124
|
-
import { z as
|
|
4125
|
-
var ExporterPropertyImageValue =
|
|
4143
|
+
import { z as z121 } from "zod";
|
|
4144
|
+
var ExporterPropertyImageValue = z121.object({
|
|
4126
4145
|
asset: PageBlockAsset.optional(),
|
|
4127
|
-
assetId:
|
|
4128
|
-
assetUrl:
|
|
4129
|
-
});
|
|
4130
|
-
var ExporterPropertyValue =
|
|
4131
|
-
key:
|
|
4132
|
-
value:
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4146
|
+
assetId: z121.string().optional(),
|
|
4147
|
+
assetUrl: z121.string().optional()
|
|
4148
|
+
});
|
|
4149
|
+
var ExporterPropertyValue = z121.object({
|
|
4150
|
+
key: z121.string(),
|
|
4151
|
+
value: z121.union([
|
|
4152
|
+
z121.number(),
|
|
4153
|
+
z121.string(),
|
|
4154
|
+
z121.boolean(),
|
|
4136
4155
|
ExporterPropertyImageValue,
|
|
4137
4156
|
ColorTokenData,
|
|
4138
4157
|
TypographyTokenData
|
|
4139
4158
|
])
|
|
4140
4159
|
});
|
|
4141
|
-
var ExporterPropertyValuesCollection =
|
|
4142
|
-
id:
|
|
4143
|
-
designSystemId:
|
|
4144
|
-
exporterId:
|
|
4145
|
-
values:
|
|
4160
|
+
var ExporterPropertyValuesCollection = z121.object({
|
|
4161
|
+
id: z121.string(),
|
|
4162
|
+
designSystemId: z121.string(),
|
|
4163
|
+
exporterId: z121.string(),
|
|
4164
|
+
values: z121.array(ExporterPropertyValue)
|
|
4146
4165
|
});
|
|
4147
4166
|
|
|
4148
4167
|
// src/dsm/published-doc-page.ts
|
|
4149
|
-
import { z as
|
|
4168
|
+
import { z as z122 } from "zod";
|
|
4150
4169
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4151
4170
|
function tryParseShortPersistentId(url = "/") {
|
|
4152
4171
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4153
4172
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4154
4173
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4155
4174
|
}
|
|
4156
|
-
var PublishedDocPage =
|
|
4157
|
-
id:
|
|
4158
|
-
publishedDocId:
|
|
4159
|
-
pageShortPersistentId:
|
|
4160
|
-
pathV1:
|
|
4161
|
-
pathV2:
|
|
4162
|
-
storagePath:
|
|
4163
|
-
locale:
|
|
4164
|
-
isPrivate:
|
|
4165
|
-
isHidden:
|
|
4166
|
-
createdAt:
|
|
4167
|
-
updatedAt:
|
|
4175
|
+
var PublishedDocPage = z122.object({
|
|
4176
|
+
id: z122.string(),
|
|
4177
|
+
publishedDocId: z122.string(),
|
|
4178
|
+
pageShortPersistentId: z122.string(),
|
|
4179
|
+
pathV1: z122.string(),
|
|
4180
|
+
pathV2: z122.string(),
|
|
4181
|
+
storagePath: z122.string(),
|
|
4182
|
+
locale: z122.string().optional(),
|
|
4183
|
+
isPrivate: z122.boolean(),
|
|
4184
|
+
isHidden: z122.boolean(),
|
|
4185
|
+
createdAt: z122.coerce.date(),
|
|
4186
|
+
updatedAt: z122.coerce.date()
|
|
4168
4187
|
});
|
|
4169
4188
|
|
|
4170
4189
|
// src/dsm/published-doc.ts
|
|
4171
|
-
import { z as
|
|
4190
|
+
import { z as z123 } from "zod";
|
|
4172
4191
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4173
|
-
var PublishedDocEnvironment =
|
|
4174
|
-
var PublishedDocsChecksums =
|
|
4175
|
-
var PublishedDocRoutingVersion =
|
|
4176
|
-
var PublishedDoc =
|
|
4177
|
-
id:
|
|
4178
|
-
designSystemVersionId:
|
|
4179
|
-
createdAt:
|
|
4180
|
-
updatedAt:
|
|
4181
|
-
lastPublishedAt:
|
|
4182
|
-
isDefault:
|
|
4183
|
-
isPublic:
|
|
4192
|
+
var PublishedDocEnvironment = z123.enum(publishedDocEnvironments);
|
|
4193
|
+
var PublishedDocsChecksums = z123.record(z123.string());
|
|
4194
|
+
var PublishedDocRoutingVersion = z123.enum(["1", "2"]);
|
|
4195
|
+
var PublishedDoc = z123.object({
|
|
4196
|
+
id: z123.string(),
|
|
4197
|
+
designSystemVersionId: z123.string(),
|
|
4198
|
+
createdAt: z123.coerce.date(),
|
|
4199
|
+
updatedAt: z123.coerce.date(),
|
|
4200
|
+
lastPublishedAt: z123.coerce.date(),
|
|
4201
|
+
isDefault: z123.boolean(),
|
|
4202
|
+
isPublic: z123.boolean(),
|
|
4184
4203
|
environment: PublishedDocEnvironment,
|
|
4185
4204
|
checksums: PublishedDocsChecksums,
|
|
4186
|
-
storagePath:
|
|
4187
|
-
wasMigrated:
|
|
4205
|
+
storagePath: z123.string(),
|
|
4206
|
+
wasMigrated: z123.boolean(),
|
|
4188
4207
|
routingVersion: PublishedDocRoutingVersion,
|
|
4189
|
-
usesLocalizations:
|
|
4190
|
-
wasPublishedWithLocalizations:
|
|
4191
|
-
tokenCount:
|
|
4192
|
-
assetCount:
|
|
4208
|
+
usesLocalizations: z123.boolean(),
|
|
4209
|
+
wasPublishedWithLocalizations: z123.boolean(),
|
|
4210
|
+
tokenCount: z123.number(),
|
|
4211
|
+
assetCount: z123.number()
|
|
4193
4212
|
});
|
|
4194
4213
|
|
|
4195
4214
|
// src/dsm/version.ts
|
|
4196
|
-
import { z as
|
|
4197
|
-
var DesignSystemVersion =
|
|
4198
|
-
id:
|
|
4199
|
-
version:
|
|
4200
|
-
createdAt:
|
|
4201
|
-
designSystemId:
|
|
4202
|
-
name:
|
|
4203
|
-
comment:
|
|
4204
|
-
isReadonly:
|
|
4205
|
-
changeLog:
|
|
4206
|
-
parentId:
|
|
4207
|
-
isDraftsFeatureAdopted:
|
|
4208
|
-
});
|
|
4209
|
-
var VersionCreationJobStatus =
|
|
4210
|
-
var VersionCreationJob =
|
|
4211
|
-
id:
|
|
4212
|
-
version:
|
|
4213
|
-
designSystemId:
|
|
4214
|
-
designSystemVersionId: nullishToOptional(
|
|
4215
|
+
import { z as z124 } from "zod";
|
|
4216
|
+
var DesignSystemVersion = z124.object({
|
|
4217
|
+
id: z124.string(),
|
|
4218
|
+
version: z124.string(),
|
|
4219
|
+
createdAt: z124.date(),
|
|
4220
|
+
designSystemId: z124.string(),
|
|
4221
|
+
name: z124.string(),
|
|
4222
|
+
comment: z124.string(),
|
|
4223
|
+
isReadonly: z124.boolean(),
|
|
4224
|
+
changeLog: z124.string(),
|
|
4225
|
+
parentId: z124.string().optional(),
|
|
4226
|
+
isDraftsFeatureAdopted: z124.boolean()
|
|
4227
|
+
});
|
|
4228
|
+
var VersionCreationJobStatus = z124.enum(["Success", "InProgress", "Error"]);
|
|
4229
|
+
var VersionCreationJob = z124.object({
|
|
4230
|
+
id: z124.string(),
|
|
4231
|
+
version: z124.string(),
|
|
4232
|
+
designSystemId: z124.string(),
|
|
4233
|
+
designSystemVersionId: nullishToOptional(z124.string()),
|
|
4215
4234
|
status: VersionCreationJobStatus,
|
|
4216
|
-
errorMessage: nullishToOptional(
|
|
4235
|
+
errorMessage: nullishToOptional(z124.string())
|
|
4217
4236
|
});
|
|
4218
4237
|
|
|
4219
4238
|
// src/export/export-destinations.ts
|
|
4220
4239
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4221
4240
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4222
|
-
var ExportJobDocumentationChanges =
|
|
4223
|
-
pagePersistentIds:
|
|
4224
|
-
groupPersistentIds:
|
|
4241
|
+
var ExportJobDocumentationChanges = z125.object({
|
|
4242
|
+
pagePersistentIds: z125.string().array(),
|
|
4243
|
+
groupPersistentIds: z125.string().array()
|
|
4225
4244
|
});
|
|
4226
|
-
var ExporterDestinationDocs =
|
|
4245
|
+
var ExporterDestinationDocs = z125.object({
|
|
4227
4246
|
environment: PublishedDocEnvironment,
|
|
4228
4247
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4229
4248
|
});
|
|
4230
|
-
var ExporterDestinationS3 =
|
|
4231
|
-
var ExporterDestinationGithub =
|
|
4232
|
-
credentialId:
|
|
4249
|
+
var ExporterDestinationS3 = z125.object({});
|
|
4250
|
+
var ExporterDestinationGithub = z125.object({
|
|
4251
|
+
credentialId: z125.string().optional(),
|
|
4233
4252
|
// Repository
|
|
4234
|
-
url:
|
|
4253
|
+
url: z125.string(),
|
|
4235
4254
|
// Location
|
|
4236
|
-
branch:
|
|
4237
|
-
relativePath: nullishToOptional(
|
|
4255
|
+
branch: z125.string(),
|
|
4256
|
+
relativePath: nullishToOptional(z125.string()),
|
|
4238
4257
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4239
|
-
connectionId: nullishToOptional(
|
|
4240
|
-
userId: nullishToOptional(
|
|
4258
|
+
connectionId: nullishToOptional(z125.string()),
|
|
4259
|
+
userId: nullishToOptional(z125.number())
|
|
4241
4260
|
});
|
|
4242
|
-
var ExporterDestinationAzure =
|
|
4243
|
-
credentialId:
|
|
4261
|
+
var ExporterDestinationAzure = z125.object({
|
|
4262
|
+
credentialId: z125.string().optional(),
|
|
4244
4263
|
// Repository
|
|
4245
|
-
organizationId:
|
|
4246
|
-
projectId:
|
|
4247
|
-
repositoryId:
|
|
4264
|
+
organizationId: z125.string(),
|
|
4265
|
+
projectId: z125.string(),
|
|
4266
|
+
repositoryId: z125.string(),
|
|
4248
4267
|
// Location
|
|
4249
|
-
branch:
|
|
4250
|
-
relativePath: nullishToOptional(
|
|
4268
|
+
branch: z125.string(),
|
|
4269
|
+
relativePath: nullishToOptional(z125.string()),
|
|
4251
4270
|
// Maybe not needed
|
|
4252
|
-
url: nullishToOptional(
|
|
4271
|
+
url: nullishToOptional(z125.string()),
|
|
4253
4272
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4254
|
-
connectionId: nullishToOptional(
|
|
4255
|
-
userId: nullishToOptional(
|
|
4273
|
+
connectionId: nullishToOptional(z125.string()),
|
|
4274
|
+
userId: nullishToOptional(z125.number())
|
|
4256
4275
|
});
|
|
4257
|
-
var ExporterDestinationGitlab =
|
|
4258
|
-
credentialId:
|
|
4276
|
+
var ExporterDestinationGitlab = z125.object({
|
|
4277
|
+
credentialId: z125.string().optional(),
|
|
4259
4278
|
// Repository
|
|
4260
|
-
projectId:
|
|
4279
|
+
projectId: z125.string(),
|
|
4261
4280
|
// Location
|
|
4262
|
-
branch:
|
|
4263
|
-
relativePath: nullishToOptional(
|
|
4281
|
+
branch: z125.string(),
|
|
4282
|
+
relativePath: nullishToOptional(z125.string()),
|
|
4264
4283
|
// Maybe not needed
|
|
4265
|
-
url: nullishToOptional(
|
|
4284
|
+
url: nullishToOptional(z125.string()),
|
|
4266
4285
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4267
|
-
connectionId: nullishToOptional(
|
|
4268
|
-
userId: nullishToOptional(
|
|
4286
|
+
connectionId: nullishToOptional(z125.string()),
|
|
4287
|
+
userId: nullishToOptional(z125.number())
|
|
4269
4288
|
});
|
|
4270
|
-
var ExporterDestinationBitbucket =
|
|
4271
|
-
credentialId:
|
|
4289
|
+
var ExporterDestinationBitbucket = z125.object({
|
|
4290
|
+
credentialId: z125.string().optional(),
|
|
4272
4291
|
// Repository
|
|
4273
|
-
workspaceSlug:
|
|
4274
|
-
projectKey:
|
|
4275
|
-
repoSlug:
|
|
4292
|
+
workspaceSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4293
|
+
projectKey: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4294
|
+
repoSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4276
4295
|
// Location
|
|
4277
|
-
branch:
|
|
4278
|
-
relativePath: nullishToOptional(
|
|
4296
|
+
branch: z125.string(),
|
|
4297
|
+
relativePath: nullishToOptional(z125.string()),
|
|
4279
4298
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4280
|
-
connectionId: nullishToOptional(
|
|
4281
|
-
userId: nullishToOptional(
|
|
4299
|
+
connectionId: nullishToOptional(z125.string()),
|
|
4300
|
+
userId: nullishToOptional(z125.number())
|
|
4282
4301
|
});
|
|
4283
|
-
var ExportDestinationsMap =
|
|
4284
|
-
webhookUrl:
|
|
4302
|
+
var ExportDestinationsMap = z125.object({
|
|
4303
|
+
webhookUrl: z125.string().optional(),
|
|
4285
4304
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4286
4305
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4287
4306
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4291,143 +4310,147 @@ var ExportDestinationsMap = z123.object({
|
|
|
4291
4310
|
});
|
|
4292
4311
|
|
|
4293
4312
|
// src/export/pipeline.ts
|
|
4294
|
-
var PipelineEventType =
|
|
4295
|
-
var PipelineDestinationGitType =
|
|
4296
|
-
var PipelineDestinationExtraType =
|
|
4297
|
-
var PipelineDestinationType =
|
|
4298
|
-
var Pipeline =
|
|
4299
|
-
id:
|
|
4300
|
-
name:
|
|
4313
|
+
var PipelineEventType = z126.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4314
|
+
var PipelineDestinationGitType = z126.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4315
|
+
var PipelineDestinationExtraType = z126.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4316
|
+
var PipelineDestinationType = z126.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4317
|
+
var Pipeline = z126.object({
|
|
4318
|
+
id: z126.string(),
|
|
4319
|
+
name: z126.string(),
|
|
4301
4320
|
eventType: PipelineEventType,
|
|
4302
|
-
isEnabled:
|
|
4303
|
-
workspaceId:
|
|
4304
|
-
designSystemId:
|
|
4305
|
-
exporterId:
|
|
4306
|
-
brandPersistentId:
|
|
4307
|
-
themePersistentId:
|
|
4321
|
+
isEnabled: z126.boolean(),
|
|
4322
|
+
workspaceId: z126.string(),
|
|
4323
|
+
designSystemId: z126.string(),
|
|
4324
|
+
exporterId: z126.string(),
|
|
4325
|
+
brandPersistentId: z126.string().optional(),
|
|
4326
|
+
themePersistentId: z126.string().optional(),
|
|
4308
4327
|
// Destinations
|
|
4309
4328
|
...ExportDestinationsMap.shape
|
|
4310
4329
|
});
|
|
4311
4330
|
|
|
4312
4331
|
// src/data-dumps/code-integration-dump.ts
|
|
4313
|
-
var ExportJobDump =
|
|
4314
|
-
id:
|
|
4315
|
-
createdAt:
|
|
4316
|
-
finishedAt:
|
|
4317
|
-
exportArtefacts:
|
|
4332
|
+
var ExportJobDump = z127.object({
|
|
4333
|
+
id: z127.string(),
|
|
4334
|
+
createdAt: z127.coerce.date(),
|
|
4335
|
+
finishedAt: z127.coerce.date(),
|
|
4336
|
+
exportArtefacts: z127.string()
|
|
4318
4337
|
});
|
|
4319
|
-
var CodeIntegrationDump =
|
|
4338
|
+
var CodeIntegrationDump = z127.object({
|
|
4320
4339
|
exporters: Exporter.array(),
|
|
4321
4340
|
pipelines: Pipeline.array(),
|
|
4322
4341
|
exportJobs: ExportJobDump.array()
|
|
4323
4342
|
});
|
|
4324
4343
|
|
|
4325
4344
|
// src/data-dumps/design-system-dump.ts
|
|
4326
|
-
import { z as
|
|
4345
|
+
import { z as z134 } from "zod";
|
|
4327
4346
|
|
|
4328
4347
|
// src/data-dumps/design-system-version-dump.ts
|
|
4329
|
-
import { z as
|
|
4348
|
+
import { z as z133 } from "zod";
|
|
4330
4349
|
|
|
4331
4350
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
4332
|
-
import { z as
|
|
4351
|
+
import { z as z128 } from "zod";
|
|
4333
4352
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4334
|
-
designSystemVersionId:
|
|
4335
|
-
liveblocksId:
|
|
4336
|
-
});
|
|
4337
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4338
|
-
routingVersion:
|
|
4339
|
-
isDraftFeatureAdopted:
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4353
|
+
designSystemVersionId: z128.string(),
|
|
4354
|
+
liveblocksId: z128.string()
|
|
4355
|
+
});
|
|
4356
|
+
var DesignSystemVersionRoomInternalSettings = z128.object({
|
|
4357
|
+
routingVersion: z128.string(),
|
|
4358
|
+
isDraftFeatureAdopted: z128.boolean(),
|
|
4359
|
+
isApprovalFeatureEnabled: z128.boolean()
|
|
4360
|
+
});
|
|
4361
|
+
var DesignSystemVersionRoomInitialState = z128.object({
|
|
4362
|
+
pages: z128.array(DocumentationPageV2),
|
|
4363
|
+
groups: z128.array(ElementGroup),
|
|
4364
|
+
pageSnapshots: z128.array(DocumentationPageSnapshot),
|
|
4365
|
+
groupSnapshots: z128.array(ElementGroupSnapshot),
|
|
4366
|
+
pageApprovals: z128.array(DocumentationPageApproval),
|
|
4346
4367
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4347
4368
|
});
|
|
4348
|
-
var DesignSystemVersionRoomUpdate =
|
|
4349
|
-
pages:
|
|
4350
|
-
groups:
|
|
4351
|
-
pageIdsToDelete:
|
|
4352
|
-
groupIdsToDelete:
|
|
4353
|
-
pageSnapshots:
|
|
4354
|
-
groupSnapshots:
|
|
4355
|
-
pageSnapshotIdsToDelete:
|
|
4356
|
-
groupSnapshotIdsToDelete:
|
|
4357
|
-
pageHashesToUpdate:
|
|
4369
|
+
var DesignSystemVersionRoomUpdate = z128.object({
|
|
4370
|
+
pages: z128.array(DocumentationPageV2),
|
|
4371
|
+
groups: z128.array(ElementGroup),
|
|
4372
|
+
pageIdsToDelete: z128.array(z128.string()),
|
|
4373
|
+
groupIdsToDelete: z128.array(z128.string()),
|
|
4374
|
+
pageSnapshots: z128.array(DocumentationPageSnapshot),
|
|
4375
|
+
groupSnapshots: z128.array(ElementGroupSnapshot),
|
|
4376
|
+
pageSnapshotIdsToDelete: z128.array(z128.string()),
|
|
4377
|
+
groupSnapshotIdsToDelete: z128.array(z128.string()),
|
|
4378
|
+
pageHashesToUpdate: z128.record(z128.string(), z128.string()),
|
|
4379
|
+
pageApprovals: z128.array(DocumentationPageApproval),
|
|
4380
|
+
pageApprovalIdsToDelete: z128.array(z128.string())
|
|
4358
4381
|
});
|
|
4359
4382
|
|
|
4360
4383
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
4361
|
-
import { z as
|
|
4384
|
+
import { z as z129 } from "zod";
|
|
4362
4385
|
var DocumentationPageRoom = Entity.extend({
|
|
4363
|
-
designSystemVersionId:
|
|
4364
|
-
documentationPageId:
|
|
4365
|
-
liveblocksId:
|
|
4366
|
-
isDirty:
|
|
4386
|
+
designSystemVersionId: z129.string(),
|
|
4387
|
+
documentationPageId: z129.string(),
|
|
4388
|
+
liveblocksId: z129.string(),
|
|
4389
|
+
isDirty: z129.boolean()
|
|
4367
4390
|
});
|
|
4368
|
-
var DocumentationPageRoomState =
|
|
4369
|
-
pageItems:
|
|
4391
|
+
var DocumentationPageRoomState = z129.object({
|
|
4392
|
+
pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4370
4393
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4371
4394
|
});
|
|
4372
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4395
|
+
var DocumentationPageRoomRoomUpdate = z129.object({
|
|
4373
4396
|
page: DocumentationPageV2,
|
|
4374
4397
|
pageParent: ElementGroup
|
|
4375
4398
|
});
|
|
4376
4399
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4377
|
-
pageItems:
|
|
4378
|
-
blockDefinitions:
|
|
4400
|
+
pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4401
|
+
blockDefinitions: z129.array(PageBlockDefinition)
|
|
4379
4402
|
});
|
|
4380
|
-
var RestoredDocumentationPage =
|
|
4403
|
+
var RestoredDocumentationPage = z129.object({
|
|
4381
4404
|
page: DocumentationPageV2,
|
|
4382
4405
|
pageParent: ElementGroup,
|
|
4383
4406
|
pageContent: DocumentationPageContentData,
|
|
4384
|
-
contentHash:
|
|
4385
|
-
snapshotId:
|
|
4386
|
-
roomId:
|
|
4407
|
+
contentHash: z129.string(),
|
|
4408
|
+
snapshotId: z129.string(),
|
|
4409
|
+
roomId: z129.string().optional()
|
|
4387
4410
|
});
|
|
4388
|
-
var RestoredDocumentationGroup =
|
|
4411
|
+
var RestoredDocumentationGroup = z129.object({
|
|
4389
4412
|
group: ElementGroup,
|
|
4390
4413
|
parent: ElementGroup
|
|
4391
4414
|
});
|
|
4392
4415
|
|
|
4393
4416
|
// src/liveblocks/rooms/room-type.ts
|
|
4394
|
-
import { z as
|
|
4417
|
+
import { z as z130 } from "zod";
|
|
4395
4418
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4396
4419
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4397
4420
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4398
4421
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4399
4422
|
return RoomTypeEnum2;
|
|
4400
4423
|
})(RoomTypeEnum || {});
|
|
4401
|
-
var RoomTypeSchema =
|
|
4424
|
+
var RoomTypeSchema = z130.nativeEnum(RoomTypeEnum);
|
|
4402
4425
|
var RoomType = RoomTypeSchema.enum;
|
|
4403
4426
|
|
|
4404
4427
|
// src/liveblocks/rooms/workspace-room.ts
|
|
4405
|
-
import { z as
|
|
4428
|
+
import { z as z131 } from "zod";
|
|
4406
4429
|
var WorkspaceRoom = Entity.extend({
|
|
4407
|
-
workspaceId:
|
|
4408
|
-
liveblocksId:
|
|
4430
|
+
workspaceId: z131.string(),
|
|
4431
|
+
liveblocksId: z131.string()
|
|
4409
4432
|
});
|
|
4410
4433
|
|
|
4411
4434
|
// src/data-dumps/published-docs-dump.ts
|
|
4412
|
-
import { z as
|
|
4413
|
-
var PublishedDocsDump =
|
|
4435
|
+
import { z as z132 } from "zod";
|
|
4436
|
+
var PublishedDocsDump = z132.object({
|
|
4414
4437
|
documentation: PublishedDoc,
|
|
4415
4438
|
pages: PublishedDocPage.array()
|
|
4416
4439
|
});
|
|
4417
4440
|
|
|
4418
4441
|
// src/data-dumps/design-system-version-dump.ts
|
|
4419
|
-
var DocumentationThreadDump =
|
|
4442
|
+
var DocumentationThreadDump = z133.object({
|
|
4420
4443
|
thread: DocumentationCommentThread,
|
|
4421
4444
|
comments: DocumentationComment.array()
|
|
4422
4445
|
});
|
|
4423
|
-
var DocumentationPageRoomDump =
|
|
4446
|
+
var DocumentationPageRoomDump = z133.object({
|
|
4424
4447
|
room: DocumentationPageRoom,
|
|
4425
4448
|
threads: DocumentationThreadDump.array()
|
|
4426
4449
|
});
|
|
4427
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4450
|
+
var DesignSystemVersionMultiplayerDump = z133.object({
|
|
4428
4451
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4429
4452
|
});
|
|
4430
|
-
var DesignSystemVersionDump =
|
|
4453
|
+
var DesignSystemVersionDump = z133.object({
|
|
4431
4454
|
version: DesignSystemVersion,
|
|
4432
4455
|
brands: Brand.array(),
|
|
4433
4456
|
elements: DesignElement.array(),
|
|
@@ -4442,7 +4465,7 @@ var DesignSystemVersionDump = z131.object({
|
|
|
4442
4465
|
});
|
|
4443
4466
|
|
|
4444
4467
|
// src/data-dumps/design-system-dump.ts
|
|
4445
|
-
var DesignSystemDump =
|
|
4468
|
+
var DesignSystemDump = z134.object({
|
|
4446
4469
|
designSystem: DesignSystem,
|
|
4447
4470
|
dataSources: DataSource.array(),
|
|
4448
4471
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -4451,27 +4474,27 @@ var DesignSystemDump = z132.object({
|
|
|
4451
4474
|
});
|
|
4452
4475
|
|
|
4453
4476
|
// src/data-dumps/user-data-dump.ts
|
|
4454
|
-
import { z as
|
|
4477
|
+
import { z as z146 } from "zod";
|
|
4455
4478
|
|
|
4456
4479
|
// src/users/linked-integrations.ts
|
|
4457
|
-
import { z as
|
|
4458
|
-
var IntegrationAuthType =
|
|
4459
|
-
var ExternalServiceType =
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4480
|
+
import { z as z135 } from "zod";
|
|
4481
|
+
var IntegrationAuthType = z135.union([z135.literal("OAuth2"), z135.literal("PAT")]);
|
|
4482
|
+
var ExternalServiceType = z135.union([
|
|
4483
|
+
z135.literal("figma"),
|
|
4484
|
+
z135.literal("github"),
|
|
4485
|
+
z135.literal("azure"),
|
|
4486
|
+
z135.literal("gitlab"),
|
|
4487
|
+
z135.literal("bitbucket")
|
|
4465
4488
|
]);
|
|
4466
|
-
var IntegrationUserInfo =
|
|
4467
|
-
id:
|
|
4468
|
-
handle:
|
|
4469
|
-
avatarUrl:
|
|
4470
|
-
email:
|
|
4489
|
+
var IntegrationUserInfo = z135.object({
|
|
4490
|
+
id: z135.string(),
|
|
4491
|
+
handle: z135.string().optional(),
|
|
4492
|
+
avatarUrl: z135.string().optional(),
|
|
4493
|
+
email: z135.string().optional(),
|
|
4471
4494
|
authType: IntegrationAuthType.optional(),
|
|
4472
|
-
customUrl:
|
|
4495
|
+
customUrl: z135.string().optional()
|
|
4473
4496
|
});
|
|
4474
|
-
var UserLinkedIntegrations =
|
|
4497
|
+
var UserLinkedIntegrations = z135.object({
|
|
4475
4498
|
figma: IntegrationUserInfo.optional(),
|
|
4476
4499
|
github: IntegrationUserInfo.array().optional(),
|
|
4477
4500
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4480,46 +4503,46 @@ var UserLinkedIntegrations = z133.object({
|
|
|
4480
4503
|
});
|
|
4481
4504
|
|
|
4482
4505
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4483
|
-
import { z as
|
|
4484
|
-
var UserAnalyticsCleanupSchedule =
|
|
4485
|
-
userId:
|
|
4486
|
-
createdAt:
|
|
4487
|
-
deleteAt:
|
|
4506
|
+
import { z as z136 } from "zod";
|
|
4507
|
+
var UserAnalyticsCleanupSchedule = z136.object({
|
|
4508
|
+
userId: z136.string(),
|
|
4509
|
+
createdAt: z136.coerce.date(),
|
|
4510
|
+
deleteAt: z136.coerce.date()
|
|
4488
4511
|
});
|
|
4489
4512
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4490
4513
|
createdAt: true
|
|
4491
4514
|
});
|
|
4492
4515
|
|
|
4493
4516
|
// src/users/user-create.ts
|
|
4494
|
-
import { z as
|
|
4495
|
-
var CreateUserInput =
|
|
4496
|
-
email:
|
|
4497
|
-
name:
|
|
4498
|
-
username:
|
|
4517
|
+
import { z as z137 } from "zod";
|
|
4518
|
+
var CreateUserInput = z137.object({
|
|
4519
|
+
email: z137.string(),
|
|
4520
|
+
name: z137.string(),
|
|
4521
|
+
username: z137.string()
|
|
4499
4522
|
});
|
|
4500
4523
|
|
|
4501
4524
|
// src/users/user-identity.ts
|
|
4502
|
-
import { z as
|
|
4503
|
-
var UserIdentity =
|
|
4504
|
-
id:
|
|
4505
|
-
userId:
|
|
4525
|
+
import { z as z138 } from "zod";
|
|
4526
|
+
var UserIdentity = z138.object({
|
|
4527
|
+
id: z138.string(),
|
|
4528
|
+
userId: z138.string()
|
|
4506
4529
|
});
|
|
4507
4530
|
|
|
4508
4531
|
// src/users/user-minified.ts
|
|
4509
|
-
import { z as
|
|
4510
|
-
var UserMinified =
|
|
4511
|
-
id:
|
|
4512
|
-
name:
|
|
4513
|
-
email:
|
|
4514
|
-
avatar:
|
|
4532
|
+
import { z as z139 } from "zod";
|
|
4533
|
+
var UserMinified = z139.object({
|
|
4534
|
+
id: z139.string(),
|
|
4535
|
+
name: z139.string(),
|
|
4536
|
+
email: z139.string(),
|
|
4537
|
+
avatar: z139.string().optional()
|
|
4515
4538
|
});
|
|
4516
4539
|
|
|
4517
4540
|
// src/users/user-notification-settings.ts
|
|
4518
|
-
import { z as
|
|
4519
|
-
var LiveblocksNotificationSettings =
|
|
4520
|
-
sendCommentNotificationEmails:
|
|
4541
|
+
import { z as z140 } from "zod";
|
|
4542
|
+
var LiveblocksNotificationSettings = z140.object({
|
|
4543
|
+
sendCommentNotificationEmails: z140.boolean()
|
|
4521
4544
|
});
|
|
4522
|
-
var UserNotificationSettings =
|
|
4545
|
+
var UserNotificationSettings = z140.object({
|
|
4523
4546
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4524
4547
|
});
|
|
4525
4548
|
var defaultNotificationSettings = {
|
|
@@ -4529,26 +4552,26 @@ var defaultNotificationSettings = {
|
|
|
4529
4552
|
};
|
|
4530
4553
|
|
|
4531
4554
|
// src/users/user-profile.ts
|
|
4532
|
-
import { z as
|
|
4533
|
-
var UserOnboardingDepartment =
|
|
4534
|
-
var UserOnboardingJobLevel =
|
|
4535
|
-
var UserOnboarding =
|
|
4536
|
-
companyName:
|
|
4537
|
-
numberOfPeopleInOrg:
|
|
4538
|
-
numberOfPeopleInDesignTeam:
|
|
4555
|
+
import { z as z141 } from "zod";
|
|
4556
|
+
var UserOnboardingDepartment = z141.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4557
|
+
var UserOnboardingJobLevel = z141.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4558
|
+
var UserOnboarding = z141.object({
|
|
4559
|
+
companyName: z141.string().optional(),
|
|
4560
|
+
numberOfPeopleInOrg: z141.string().optional(),
|
|
4561
|
+
numberOfPeopleInDesignTeam: z141.string().optional(),
|
|
4539
4562
|
department: UserOnboardingDepartment.optional(),
|
|
4540
|
-
jobTitle:
|
|
4541
|
-
phase:
|
|
4563
|
+
jobTitle: z141.string().optional(),
|
|
4564
|
+
phase: z141.string().optional(),
|
|
4542
4565
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4543
|
-
designSystemName:
|
|
4544
|
-
defaultDestination:
|
|
4545
|
-
figmaUrl:
|
|
4546
|
-
isPageDraftOnboardingFinished:
|
|
4547
|
-
});
|
|
4548
|
-
var UserProfile =
|
|
4549
|
-
name:
|
|
4550
|
-
avatar:
|
|
4551
|
-
nickname:
|
|
4566
|
+
designSystemName: z141.string().optional(),
|
|
4567
|
+
defaultDestination: z141.string().optional(),
|
|
4568
|
+
figmaUrl: z141.string().optional(),
|
|
4569
|
+
isPageDraftOnboardingFinished: z141.boolean().optional()
|
|
4570
|
+
});
|
|
4571
|
+
var UserProfile = z141.object({
|
|
4572
|
+
name: z141.string(),
|
|
4573
|
+
avatar: z141.string().optional(),
|
|
4574
|
+
nickname: z141.string().optional(),
|
|
4552
4575
|
onboarding: UserOnboarding.optional()
|
|
4553
4576
|
});
|
|
4554
4577
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
@@ -4556,68 +4579,68 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4556
4579
|
});
|
|
4557
4580
|
|
|
4558
4581
|
// src/users/user-test.ts
|
|
4559
|
-
import { z as
|
|
4560
|
-
var UserTest =
|
|
4561
|
-
id:
|
|
4562
|
-
email:
|
|
4582
|
+
import { z as z142 } from "zod";
|
|
4583
|
+
var UserTest = z142.object({
|
|
4584
|
+
id: z142.string(),
|
|
4585
|
+
email: z142.string()
|
|
4563
4586
|
});
|
|
4564
4587
|
|
|
4565
4588
|
// src/users/user.ts
|
|
4566
|
-
import { z as
|
|
4567
|
-
var User =
|
|
4568
|
-
id:
|
|
4569
|
-
email:
|
|
4570
|
-
emailVerified:
|
|
4571
|
-
createdAt:
|
|
4572
|
-
trialExpiresAt:
|
|
4589
|
+
import { z as z143 } from "zod";
|
|
4590
|
+
var User = z143.object({
|
|
4591
|
+
id: z143.string(),
|
|
4592
|
+
email: z143.string(),
|
|
4593
|
+
emailVerified: z143.boolean(),
|
|
4594
|
+
createdAt: z143.coerce.date(),
|
|
4595
|
+
trialExpiresAt: z143.coerce.date().optional(),
|
|
4573
4596
|
profile: UserProfile,
|
|
4574
4597
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4575
|
-
loggedOutAt:
|
|
4576
|
-
isProtected:
|
|
4598
|
+
loggedOutAt: z143.coerce.date().optional(),
|
|
4599
|
+
isProtected: z143.boolean()
|
|
4577
4600
|
});
|
|
4578
4601
|
|
|
4579
4602
|
// src/data-dumps/workspace-dump.ts
|
|
4580
|
-
import { z as
|
|
4603
|
+
import { z as z145 } from "zod";
|
|
4581
4604
|
|
|
4582
4605
|
// src/integrations/integration.ts
|
|
4583
|
-
import { z as
|
|
4584
|
-
var IntegrationDesignSystem =
|
|
4585
|
-
designSystemId:
|
|
4586
|
-
brandId:
|
|
4587
|
-
title:
|
|
4588
|
-
userId:
|
|
4589
|
-
date:
|
|
4590
|
-
});
|
|
4591
|
-
var IntegrationCredentialsType =
|
|
4592
|
-
var IntegrationCredentialsState =
|
|
4593
|
-
var IntegrationCredentialsProfile =
|
|
4594
|
-
id: nullishToOptional(
|
|
4595
|
-
email: nullishToOptional(
|
|
4596
|
-
handle: nullishToOptional(
|
|
4597
|
-
type: nullishToOptional(
|
|
4598
|
-
avatarUrl: nullishToOptional(
|
|
4599
|
-
organization: nullishToOptional(
|
|
4600
|
-
collection: nullishToOptional(
|
|
4601
|
-
});
|
|
4602
|
-
var IntegrationCredentials =
|
|
4603
|
-
id:
|
|
4606
|
+
import { z as z144 } from "zod";
|
|
4607
|
+
var IntegrationDesignSystem = z144.object({
|
|
4608
|
+
designSystemId: z144.string(),
|
|
4609
|
+
brandId: z144.string(),
|
|
4610
|
+
title: z144.string().optional(),
|
|
4611
|
+
userId: z144.string().optional(),
|
|
4612
|
+
date: z144.coerce.date().optional()
|
|
4613
|
+
});
|
|
4614
|
+
var IntegrationCredentialsType = z144.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4615
|
+
var IntegrationCredentialsState = z144.enum(["Active", "Inactive"]);
|
|
4616
|
+
var IntegrationCredentialsProfile = z144.object({
|
|
4617
|
+
id: nullishToOptional(z144.string()),
|
|
4618
|
+
email: nullishToOptional(z144.string()),
|
|
4619
|
+
handle: nullishToOptional(z144.string()),
|
|
4620
|
+
type: nullishToOptional(z144.string()),
|
|
4621
|
+
avatarUrl: nullishToOptional(z144.string()),
|
|
4622
|
+
organization: nullishToOptional(z144.string()),
|
|
4623
|
+
collection: nullishToOptional(z144.string())
|
|
4624
|
+
});
|
|
4625
|
+
var IntegrationCredentials = z144.object({
|
|
4626
|
+
id: z144.string(),
|
|
4604
4627
|
type: IntegrationCredentialsType,
|
|
4605
|
-
integrationId:
|
|
4606
|
-
accessToken:
|
|
4607
|
-
userId:
|
|
4608
|
-
createdAt:
|
|
4609
|
-
refreshToken:
|
|
4610
|
-
tokenName:
|
|
4611
|
-
expiresAt:
|
|
4612
|
-
refreshedAt:
|
|
4613
|
-
username:
|
|
4614
|
-
appInstallationId:
|
|
4628
|
+
integrationId: z144.string(),
|
|
4629
|
+
accessToken: z144.string(),
|
|
4630
|
+
userId: z144.string(),
|
|
4631
|
+
createdAt: z144.coerce.date(),
|
|
4632
|
+
refreshToken: z144.string().optional(),
|
|
4633
|
+
tokenName: z144.string().optional(),
|
|
4634
|
+
expiresAt: z144.coerce.date().optional(),
|
|
4635
|
+
refreshedAt: z144.coerce.date().optional(),
|
|
4636
|
+
username: z144.string().optional(),
|
|
4637
|
+
appInstallationId: z144.string().optional(),
|
|
4615
4638
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4616
|
-
customUrl:
|
|
4639
|
+
customUrl: z144.string().optional(),
|
|
4617
4640
|
state: IntegrationCredentialsState,
|
|
4618
4641
|
user: UserMinified.optional()
|
|
4619
4642
|
});
|
|
4620
|
-
var ExtendedIntegrationType =
|
|
4643
|
+
var ExtendedIntegrationType = z144.enum([
|
|
4621
4644
|
"Figma",
|
|
4622
4645
|
"Github",
|
|
4623
4646
|
"Gitlab",
|
|
@@ -4628,26 +4651,26 @@ var ExtendedIntegrationType = z142.enum([
|
|
|
4628
4651
|
]);
|
|
4629
4652
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4630
4653
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4631
|
-
var Integration =
|
|
4632
|
-
id:
|
|
4633
|
-
workspaceId:
|
|
4654
|
+
var Integration = z144.object({
|
|
4655
|
+
id: z144.string(),
|
|
4656
|
+
workspaceId: z144.string(),
|
|
4634
4657
|
type: IntegrationType,
|
|
4635
|
-
createdAt:
|
|
4636
|
-
integrationCredentials:
|
|
4637
|
-
});
|
|
4638
|
-
var IntegrationToken =
|
|
4639
|
-
access_token:
|
|
4640
|
-
refresh_token:
|
|
4641
|
-
expires_in:
|
|
4642
|
-
token_type:
|
|
4643
|
-
token_name:
|
|
4644
|
-
token_azure_organization_name:
|
|
4658
|
+
createdAt: z144.coerce.date(),
|
|
4659
|
+
integrationCredentials: z144.array(IntegrationCredentials).optional()
|
|
4660
|
+
});
|
|
4661
|
+
var IntegrationToken = z144.object({
|
|
4662
|
+
access_token: z144.string(),
|
|
4663
|
+
refresh_token: z144.string().optional(),
|
|
4664
|
+
expires_in: z144.union([z144.number().optional(), z144.string().optional()]),
|
|
4665
|
+
token_type: z144.string().optional(),
|
|
4666
|
+
token_name: z144.string().optional(),
|
|
4667
|
+
token_azure_organization_name: z144.string().optional(),
|
|
4645
4668
|
// Azure Cloud PAT only
|
|
4646
|
-
token_azure_collection_name:
|
|
4669
|
+
token_azure_collection_name: z144.string().optional(),
|
|
4647
4670
|
// Azure Server PAT only
|
|
4648
|
-
token_bitbucket_username:
|
|
4671
|
+
token_bitbucket_username: z144.string().optional(),
|
|
4649
4672
|
// Bitbucket only
|
|
4650
|
-
custom_url:
|
|
4673
|
+
custom_url: z144.string().optional().transform((value) => {
|
|
4651
4674
|
if (!value?.trim())
|
|
4652
4675
|
return void 0;
|
|
4653
4676
|
return formatCustomUrl(value);
|
|
@@ -4685,7 +4708,7 @@ function formatCustomUrl(url) {
|
|
|
4685
4708
|
}
|
|
4686
4709
|
|
|
4687
4710
|
// src/data-dumps/workspace-dump.ts
|
|
4688
|
-
var WorkspaceDump =
|
|
4711
|
+
var WorkspaceDump = z145.object({
|
|
4689
4712
|
workspace: Workspace,
|
|
4690
4713
|
designSystems: DesignSystemDump.array(),
|
|
4691
4714
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -4693,93 +4716,93 @@ var WorkspaceDump = z143.object({
|
|
|
4693
4716
|
});
|
|
4694
4717
|
|
|
4695
4718
|
// src/data-dumps/user-data-dump.ts
|
|
4696
|
-
var UserDump =
|
|
4719
|
+
var UserDump = z146.object({
|
|
4697
4720
|
user: User,
|
|
4698
4721
|
workspaces: WorkspaceDump.array()
|
|
4699
4722
|
});
|
|
4700
4723
|
|
|
4701
4724
|
// src/docs-server/session.ts
|
|
4702
|
-
import { z as
|
|
4703
|
-
var NpmProxyToken =
|
|
4704
|
-
access:
|
|
4705
|
-
expiresAt:
|
|
4725
|
+
import { z as z147 } from "zod";
|
|
4726
|
+
var NpmProxyToken = z147.object({
|
|
4727
|
+
access: z147.string(),
|
|
4728
|
+
expiresAt: z147.number()
|
|
4706
4729
|
});
|
|
4707
|
-
var SessionData =
|
|
4708
|
-
returnToUrl:
|
|
4730
|
+
var SessionData = z147.object({
|
|
4731
|
+
returnToUrl: z147.string().optional(),
|
|
4709
4732
|
npmProxyToken: NpmProxyToken.optional()
|
|
4710
4733
|
});
|
|
4711
|
-
var Session =
|
|
4712
|
-
id:
|
|
4713
|
-
expiresAt:
|
|
4714
|
-
userId:
|
|
4734
|
+
var Session = z147.object({
|
|
4735
|
+
id: z147.string(),
|
|
4736
|
+
expiresAt: z147.coerce.date(),
|
|
4737
|
+
userId: z147.string().nullable(),
|
|
4715
4738
|
data: SessionData
|
|
4716
4739
|
});
|
|
4717
|
-
var AuthTokens =
|
|
4718
|
-
access:
|
|
4719
|
-
refresh:
|
|
4740
|
+
var AuthTokens = z147.object({
|
|
4741
|
+
access: z147.string(),
|
|
4742
|
+
refresh: z147.string()
|
|
4720
4743
|
});
|
|
4721
|
-
var UserSession =
|
|
4744
|
+
var UserSession = z147.object({
|
|
4722
4745
|
session: Session,
|
|
4723
4746
|
user: User.nullable()
|
|
4724
4747
|
});
|
|
4725
4748
|
|
|
4726
4749
|
// src/events/base.ts
|
|
4727
|
-
import { z as
|
|
4750
|
+
import { z as z150 } from "zod";
|
|
4728
4751
|
|
|
4729
4752
|
// src/events/data-source-imported.ts
|
|
4730
|
-
import { z as
|
|
4731
|
-
var EventDataSourceImported =
|
|
4732
|
-
type:
|
|
4733
|
-
workspaceId:
|
|
4734
|
-
designSystemId:
|
|
4753
|
+
import { z as z148 } from "zod";
|
|
4754
|
+
var EventDataSourceImported = z148.object({
|
|
4755
|
+
type: z148.literal("DataSourceImported"),
|
|
4756
|
+
workspaceId: z148.string(),
|
|
4757
|
+
designSystemId: z148.string()
|
|
4735
4758
|
});
|
|
4736
4759
|
|
|
4737
4760
|
// src/events/version-released.ts
|
|
4738
|
-
import { z as
|
|
4739
|
-
var EventVersionReleased =
|
|
4740
|
-
type:
|
|
4741
|
-
workspaceId:
|
|
4742
|
-
designSystemId:
|
|
4743
|
-
versionId:
|
|
4761
|
+
import { z as z149 } from "zod";
|
|
4762
|
+
var EventVersionReleased = z149.object({
|
|
4763
|
+
type: z149.literal("DesignSystemVersionReleased"),
|
|
4764
|
+
workspaceId: z149.string(),
|
|
4765
|
+
designSystemId: z149.string(),
|
|
4766
|
+
versionId: z149.string()
|
|
4744
4767
|
});
|
|
4745
4768
|
|
|
4746
4769
|
// src/events/base.ts
|
|
4747
|
-
var Event =
|
|
4770
|
+
var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4748
4771
|
|
|
4749
4772
|
// src/export/export-runner/export-context.ts
|
|
4750
|
-
import { z as
|
|
4751
|
-
var ExportJobDocumentationContext =
|
|
4752
|
-
isSingleVersionDocs:
|
|
4753
|
-
versionSlug:
|
|
4773
|
+
import { z as z151 } from "zod";
|
|
4774
|
+
var ExportJobDocumentationContext = z151.object({
|
|
4775
|
+
isSingleVersionDocs: z151.boolean(),
|
|
4776
|
+
versionSlug: z151.string(),
|
|
4754
4777
|
environment: PublishedDocEnvironment
|
|
4755
4778
|
});
|
|
4756
|
-
var ExportJobContext =
|
|
4757
|
-
apiUrl:
|
|
4758
|
-
accessToken:
|
|
4759
|
-
designSystemId:
|
|
4760
|
-
designSystemName:
|
|
4761
|
-
exporterId:
|
|
4762
|
-
versionId:
|
|
4763
|
-
brandId:
|
|
4764
|
-
themeId:
|
|
4765
|
-
exporterName:
|
|
4766
|
-
exporterPackageUrl:
|
|
4779
|
+
var ExportJobContext = z151.object({
|
|
4780
|
+
apiUrl: z151.string(),
|
|
4781
|
+
accessToken: z151.string(),
|
|
4782
|
+
designSystemId: z151.string(),
|
|
4783
|
+
designSystemName: z151.string(),
|
|
4784
|
+
exporterId: z151.string(),
|
|
4785
|
+
versionId: z151.string(),
|
|
4786
|
+
brandId: z151.string().optional(),
|
|
4787
|
+
themeId: z151.string().optional(),
|
|
4788
|
+
exporterName: z151.string(),
|
|
4789
|
+
exporterPackageUrl: z151.string(),
|
|
4767
4790
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4768
4791
|
documentation: ExportJobDocumentationContext.optional()
|
|
4769
4792
|
});
|
|
4770
4793
|
|
|
4771
4794
|
// src/export/export-runner/exporter-payload.ts
|
|
4772
|
-
import { z as
|
|
4773
|
-
var ExporterFunctionPayload =
|
|
4774
|
-
exportJobId:
|
|
4775
|
-
exportContextId:
|
|
4776
|
-
designSystemId:
|
|
4777
|
-
workspaceId:
|
|
4795
|
+
import { z as z152 } from "zod";
|
|
4796
|
+
var ExporterFunctionPayload = z152.object({
|
|
4797
|
+
exportJobId: z152.string(),
|
|
4798
|
+
exportContextId: z152.string(),
|
|
4799
|
+
designSystemId: z152.string(),
|
|
4800
|
+
workspaceId: z152.string()
|
|
4778
4801
|
});
|
|
4779
4802
|
|
|
4780
4803
|
// src/export/export-jobs.ts
|
|
4781
|
-
import { z as
|
|
4782
|
-
var ExportJobDestinationType =
|
|
4804
|
+
import { z as z153 } from "zod";
|
|
4805
|
+
var ExportJobDestinationType = z153.enum([
|
|
4783
4806
|
"s3",
|
|
4784
4807
|
"webhookUrl",
|
|
4785
4808
|
"github",
|
|
@@ -4788,30 +4811,30 @@ var ExportJobDestinationType = z151.enum([
|
|
|
4788
4811
|
"gitlab",
|
|
4789
4812
|
"bitbucket"
|
|
4790
4813
|
]);
|
|
4791
|
-
var ExportJobStatus =
|
|
4792
|
-
var ExportJobLogEntryType =
|
|
4793
|
-
var ExportJobLogEntry =
|
|
4794
|
-
id:
|
|
4795
|
-
time:
|
|
4814
|
+
var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4815
|
+
var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
|
|
4816
|
+
var ExportJobLogEntry = z153.object({
|
|
4817
|
+
id: z153.string().optional(),
|
|
4818
|
+
time: z153.coerce.date(),
|
|
4796
4819
|
type: ExportJobLogEntryType,
|
|
4797
|
-
message:
|
|
4820
|
+
message: z153.string()
|
|
4798
4821
|
});
|
|
4799
|
-
var ExportJobPullRequestDestinationResult =
|
|
4800
|
-
pullRequestUrl:
|
|
4822
|
+
var ExportJobPullRequestDestinationResult = z153.object({
|
|
4823
|
+
pullRequestUrl: z153.string()
|
|
4801
4824
|
});
|
|
4802
|
-
var ExportJobS3DestinationResult =
|
|
4803
|
-
bucket:
|
|
4804
|
-
urlPrefix:
|
|
4805
|
-
path:
|
|
4806
|
-
files:
|
|
4807
|
-
url: nullishToOptional(
|
|
4808
|
-
urls: nullishToOptional(
|
|
4825
|
+
var ExportJobS3DestinationResult = z153.object({
|
|
4826
|
+
bucket: z153.string(),
|
|
4827
|
+
urlPrefix: z153.string().optional(),
|
|
4828
|
+
path: z153.string(),
|
|
4829
|
+
files: z153.array(z153.string()),
|
|
4830
|
+
url: nullishToOptional(z153.string()),
|
|
4831
|
+
urls: nullishToOptional(z153.string().array())
|
|
4809
4832
|
});
|
|
4810
|
-
var ExportJobDocsDestinationResult =
|
|
4811
|
-
url:
|
|
4833
|
+
var ExportJobDocsDestinationResult = z153.object({
|
|
4834
|
+
url: z153.string()
|
|
4812
4835
|
});
|
|
4813
|
-
var ExportJobResult =
|
|
4814
|
-
error:
|
|
4836
|
+
var ExportJobResult = z153.object({
|
|
4837
|
+
error: z153.string().optional(),
|
|
4815
4838
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4816
4839
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4817
4840
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4820,21 +4843,21 @@ var ExportJobResult = z151.object({
|
|
|
4820
4843
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4821
4844
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4822
4845
|
});
|
|
4823
|
-
var ExportJob =
|
|
4824
|
-
id:
|
|
4825
|
-
createdAt:
|
|
4826
|
-
finishedAt:
|
|
4827
|
-
designSystemId:
|
|
4828
|
-
designSystemVersionId:
|
|
4829
|
-
workspaceId:
|
|
4830
|
-
scheduleId:
|
|
4831
|
-
exporterId:
|
|
4832
|
-
brandId:
|
|
4833
|
-
themeId:
|
|
4834
|
-
estimatedExecutionTime:
|
|
4846
|
+
var ExportJob = z153.object({
|
|
4847
|
+
id: z153.string(),
|
|
4848
|
+
createdAt: z153.coerce.date(),
|
|
4849
|
+
finishedAt: z153.coerce.date().optional(),
|
|
4850
|
+
designSystemId: z153.string(),
|
|
4851
|
+
designSystemVersionId: z153.string(),
|
|
4852
|
+
workspaceId: z153.string(),
|
|
4853
|
+
scheduleId: z153.string().nullish(),
|
|
4854
|
+
exporterId: z153.string(),
|
|
4855
|
+
brandId: z153.string().optional(),
|
|
4856
|
+
themeId: z153.string().optional(),
|
|
4857
|
+
estimatedExecutionTime: z153.number().optional(),
|
|
4835
4858
|
status: ExportJobStatus,
|
|
4836
4859
|
result: ExportJobResult.optional(),
|
|
4837
|
-
createdByUserId:
|
|
4860
|
+
createdByUserId: z153.string().optional(),
|
|
4838
4861
|
// Destinations
|
|
4839
4862
|
...ExportDestinationsMap.shape
|
|
4840
4863
|
});
|
|
@@ -4848,40 +4871,40 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4848
4871
|
themeId: true,
|
|
4849
4872
|
brandId: true
|
|
4850
4873
|
}).extend({
|
|
4851
|
-
destinations:
|
|
4874
|
+
destinations: z153.array(ExportJobDestinationType),
|
|
4852
4875
|
docsEnvironment: PublishedDocEnvironment
|
|
4853
4876
|
}).partial();
|
|
4854
4877
|
|
|
4855
4878
|
// src/export/exporter-workspace-membership-role.ts
|
|
4856
|
-
import { z as
|
|
4857
|
-
var ExporterWorkspaceMembershipRole =
|
|
4879
|
+
import { z as z154 } from "zod";
|
|
4880
|
+
var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
|
|
4858
4881
|
|
|
4859
4882
|
// src/export/exporter-workspace-membership.ts
|
|
4860
|
-
import { z as
|
|
4861
|
-
var ExporterWorkspaceMembership =
|
|
4862
|
-
id:
|
|
4863
|
-
workspaceId:
|
|
4864
|
-
exporterId:
|
|
4883
|
+
import { z as z155 } from "zod";
|
|
4884
|
+
var ExporterWorkspaceMembership = z155.object({
|
|
4885
|
+
id: z155.string(),
|
|
4886
|
+
workspaceId: z155.string(),
|
|
4887
|
+
exporterId: z155.string(),
|
|
4865
4888
|
role: ExporterWorkspaceMembershipRole
|
|
4866
4889
|
});
|
|
4867
4890
|
|
|
4868
4891
|
// src/feature-flags/feature-flags.ts
|
|
4869
|
-
import { z as
|
|
4870
|
-
var FlaggedFeature =
|
|
4871
|
-
var FeatureFlagMap =
|
|
4872
|
-
var FeatureFlag =
|
|
4873
|
-
id:
|
|
4892
|
+
import { z as z156 } from "zod";
|
|
4893
|
+
var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
4894
|
+
var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
|
|
4895
|
+
var FeatureFlag = z156.object({
|
|
4896
|
+
id: z156.string(),
|
|
4874
4897
|
feature: FlaggedFeature,
|
|
4875
|
-
createdAt:
|
|
4876
|
-
enabled:
|
|
4877
|
-
designSystemId:
|
|
4898
|
+
createdAt: z156.coerce.date(),
|
|
4899
|
+
enabled: z156.boolean(),
|
|
4900
|
+
designSystemId: z156.string().optional()
|
|
4878
4901
|
});
|
|
4879
4902
|
|
|
4880
4903
|
// src/integrations/external-oauth-request.ts
|
|
4881
|
-
import { z as
|
|
4904
|
+
import { z as z158 } from "zod";
|
|
4882
4905
|
|
|
4883
4906
|
// src/integrations/oauth-providers.ts
|
|
4884
|
-
import { z as
|
|
4907
|
+
import { z as z157 } from "zod";
|
|
4885
4908
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4886
4909
|
OAuthProviderNames2["Figma"] = "figma";
|
|
4887
4910
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -4890,137 +4913,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4890
4913
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4891
4914
|
return OAuthProviderNames2;
|
|
4892
4915
|
})(OAuthProviderNames || {});
|
|
4893
|
-
var OAuthProviderSchema =
|
|
4916
|
+
var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
|
|
4894
4917
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4895
4918
|
|
|
4896
4919
|
// src/integrations/external-oauth-request.ts
|
|
4897
|
-
var ExternalOAuthRequest =
|
|
4898
|
-
id:
|
|
4920
|
+
var ExternalOAuthRequest = z158.object({
|
|
4921
|
+
id: z158.string(),
|
|
4899
4922
|
provider: OAuthProviderSchema,
|
|
4900
|
-
userId:
|
|
4901
|
-
state:
|
|
4902
|
-
createdAt:
|
|
4923
|
+
userId: z158.string(),
|
|
4924
|
+
state: z158.string(),
|
|
4925
|
+
createdAt: z158.coerce.date()
|
|
4903
4926
|
});
|
|
4904
4927
|
|
|
4905
4928
|
// src/integrations/git.ts
|
|
4906
|
-
import { z as
|
|
4907
|
-
var GitObjectsQuery =
|
|
4908
|
-
organization:
|
|
4929
|
+
import { z as z159 } from "zod";
|
|
4930
|
+
var GitObjectsQuery = z159.object({
|
|
4931
|
+
organization: z159.string().optional(),
|
|
4909
4932
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4910
|
-
project:
|
|
4933
|
+
project: z159.string().optional(),
|
|
4911
4934
|
// Only for Bitbucket and Azure
|
|
4912
|
-
repository:
|
|
4935
|
+
repository: z159.string().optional(),
|
|
4913
4936
|
// For all providers. For Gitlab, it's called "project".
|
|
4914
|
-
branch:
|
|
4937
|
+
branch: z159.string().optional(),
|
|
4915
4938
|
// For all providers.
|
|
4916
|
-
user:
|
|
4939
|
+
user: z159.string().optional()
|
|
4917
4940
|
// Gitlab user
|
|
4918
4941
|
});
|
|
4919
|
-
var GitOrganization =
|
|
4920
|
-
id:
|
|
4921
|
-
name:
|
|
4922
|
-
url:
|
|
4923
|
-
slug:
|
|
4924
|
-
});
|
|
4925
|
-
var GitProject =
|
|
4926
|
-
id:
|
|
4927
|
-
name:
|
|
4928
|
-
url:
|
|
4929
|
-
slug:
|
|
4930
|
-
});
|
|
4931
|
-
var GitRepository =
|
|
4932
|
-
id:
|
|
4933
|
-
name:
|
|
4934
|
-
url:
|
|
4935
|
-
slug:
|
|
4942
|
+
var GitOrganization = z159.object({
|
|
4943
|
+
id: z159.string(),
|
|
4944
|
+
name: z159.string(),
|
|
4945
|
+
url: z159.string(),
|
|
4946
|
+
slug: z159.string()
|
|
4947
|
+
});
|
|
4948
|
+
var GitProject = z159.object({
|
|
4949
|
+
id: z159.string(),
|
|
4950
|
+
name: z159.string(),
|
|
4951
|
+
url: z159.string(),
|
|
4952
|
+
slug: z159.string()
|
|
4953
|
+
});
|
|
4954
|
+
var GitRepository = z159.object({
|
|
4955
|
+
id: z159.string(),
|
|
4956
|
+
name: z159.string(),
|
|
4957
|
+
url: z159.string(),
|
|
4958
|
+
slug: z159.string(),
|
|
4936
4959
|
/**
|
|
4937
4960
|
* Can be undefined when:
|
|
4938
4961
|
* - there are no branches in the repository yet
|
|
4939
4962
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4940
4963
|
*/
|
|
4941
|
-
defaultBranch:
|
|
4964
|
+
defaultBranch: z159.string().optional()
|
|
4942
4965
|
});
|
|
4943
|
-
var GitBranch =
|
|
4944
|
-
name:
|
|
4945
|
-
lastCommitId:
|
|
4966
|
+
var GitBranch = z159.object({
|
|
4967
|
+
name: z159.string(),
|
|
4968
|
+
lastCommitId: z159.string()
|
|
4946
4969
|
});
|
|
4947
4970
|
|
|
4948
4971
|
// src/integrations/oauth-token.ts
|
|
4949
|
-
import { z as
|
|
4950
|
-
var IntegrationTokenSchemaOld =
|
|
4951
|
-
id:
|
|
4972
|
+
import { z as z160 } from "zod";
|
|
4973
|
+
var IntegrationTokenSchemaOld = z160.object({
|
|
4974
|
+
id: z160.string(),
|
|
4952
4975
|
provider: OAuthProviderSchema,
|
|
4953
|
-
scope:
|
|
4954
|
-
userId:
|
|
4955
|
-
accessToken:
|
|
4956
|
-
refreshToken:
|
|
4957
|
-
expiresAt:
|
|
4958
|
-
externalUserId:
|
|
4976
|
+
scope: z160.string(),
|
|
4977
|
+
userId: z160.string(),
|
|
4978
|
+
accessToken: z160.string(),
|
|
4979
|
+
refreshToken: z160.string(),
|
|
4980
|
+
expiresAt: z160.coerce.date(),
|
|
4981
|
+
externalUserId: z160.string().nullish()
|
|
4959
4982
|
});
|
|
4960
4983
|
|
|
4961
4984
|
// src/integrations/workspace-oauth-requests.ts
|
|
4962
|
-
import { z as
|
|
4963
|
-
var WorkspaceOAuthRequestSchema =
|
|
4964
|
-
id:
|
|
4965
|
-
workspaceId:
|
|
4985
|
+
import { z as z161 } from "zod";
|
|
4986
|
+
var WorkspaceOAuthRequestSchema = z161.object({
|
|
4987
|
+
id: z161.string(),
|
|
4988
|
+
workspaceId: z161.string(),
|
|
4966
4989
|
provider: OAuthProviderSchema,
|
|
4967
|
-
userId:
|
|
4968
|
-
createdAt:
|
|
4990
|
+
userId: z161.string(),
|
|
4991
|
+
createdAt: z161.coerce.date()
|
|
4969
4992
|
});
|
|
4970
4993
|
|
|
4971
4994
|
// src/npm/npm-package.ts
|
|
4972
|
-
import { z as
|
|
4973
|
-
var AnyRecord =
|
|
4995
|
+
import { z as z162 } from "zod";
|
|
4996
|
+
var AnyRecord = z162.record(z162.any());
|
|
4974
4997
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4975
|
-
|
|
4976
|
-
tarball:
|
|
4998
|
+
z162.object({
|
|
4999
|
+
tarball: z162.string()
|
|
4977
5000
|
})
|
|
4978
5001
|
);
|
|
4979
5002
|
var NpmPackageVersion = AnyRecord.and(
|
|
4980
|
-
|
|
5003
|
+
z162.object({
|
|
4981
5004
|
dist: NpmPackageVersionDist
|
|
4982
5005
|
})
|
|
4983
5006
|
);
|
|
4984
5007
|
var NpmPackage = AnyRecord.and(
|
|
4985
|
-
|
|
4986
|
-
_id:
|
|
4987
|
-
name:
|
|
5008
|
+
z162.object({
|
|
5009
|
+
_id: z162.string(),
|
|
5010
|
+
name: z162.string(),
|
|
4988
5011
|
// e.g. "latest": "1.2.3"
|
|
4989
|
-
"dist-tags":
|
|
5012
|
+
"dist-tags": z162.record(z162.string(), z162.string()),
|
|
4990
5013
|
// "1.2.3": {...}
|
|
4991
|
-
versions:
|
|
5014
|
+
versions: z162.record(NpmPackageVersion)
|
|
4992
5015
|
})
|
|
4993
5016
|
);
|
|
4994
5017
|
|
|
4995
5018
|
// src/npm/npm-proxy-token-payload.ts
|
|
4996
|
-
import { z as
|
|
4997
|
-
var NpmProxyTokenPayload =
|
|
4998
|
-
npmProxyRegistryConfigId:
|
|
5019
|
+
import { z as z163 } from "zod";
|
|
5020
|
+
var NpmProxyTokenPayload = z163.object({
|
|
5021
|
+
npmProxyRegistryConfigId: z163.string()
|
|
4999
5022
|
});
|
|
5000
5023
|
|
|
5001
5024
|
// src/tokens/personal-access-token.ts
|
|
5002
|
-
import { z as
|
|
5025
|
+
import { z as z171 } from "zod";
|
|
5003
5026
|
|
|
5004
5027
|
// src/workspace/user-invite.ts
|
|
5005
|
-
import { z as
|
|
5028
|
+
import { z as z165 } from "zod";
|
|
5006
5029
|
|
|
5007
5030
|
// src/workspace/workspace-role.ts
|
|
5008
|
-
import { z as
|
|
5009
|
-
var WorkspaceRoleSchema =
|
|
5031
|
+
import { z as z164 } from "zod";
|
|
5032
|
+
var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
5010
5033
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
5011
5034
|
|
|
5012
5035
|
// src/workspace/user-invite.ts
|
|
5013
5036
|
var MAX_MEMBERS_COUNT = 100;
|
|
5014
|
-
var UserInvite =
|
|
5015
|
-
email:
|
|
5037
|
+
var UserInvite = z165.object({
|
|
5038
|
+
email: z165.string().email().trim().transform((value) => value.toLowerCase()),
|
|
5016
5039
|
role: WorkspaceRoleSchema
|
|
5017
5040
|
});
|
|
5018
|
-
var UserInvites =
|
|
5041
|
+
var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
5019
5042
|
|
|
5020
5043
|
// src/workspace/workspace-configuration.ts
|
|
5021
|
-
import { z as
|
|
5022
|
-
var WorkspaceConfigurationUpdate =
|
|
5023
|
-
id:
|
|
5044
|
+
import { z as z166 } from "zod";
|
|
5045
|
+
var WorkspaceConfigurationUpdate = z166.object({
|
|
5046
|
+
id: z166.string(),
|
|
5024
5047
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
5025
5048
|
sso: SsoProvider.optional(),
|
|
5026
5049
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -5028,32 +5051,32 @@ var WorkspaceConfigurationUpdate = z164.object({
|
|
|
5028
5051
|
});
|
|
5029
5052
|
|
|
5030
5053
|
// src/workspace/workspace-context.ts
|
|
5031
|
-
import { z as
|
|
5032
|
-
var WorkspaceContext =
|
|
5033
|
-
workspaceId:
|
|
5054
|
+
import { z as z167 } from "zod";
|
|
5055
|
+
var WorkspaceContext = z167.object({
|
|
5056
|
+
workspaceId: z167.string(),
|
|
5034
5057
|
product: ProductCodeSchema,
|
|
5035
5058
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
5036
|
-
publicDesignSystem:
|
|
5059
|
+
publicDesignSystem: z167.boolean().optional()
|
|
5037
5060
|
});
|
|
5038
5061
|
|
|
5039
5062
|
// src/workspace/workspace-create.ts
|
|
5040
|
-
import { z as
|
|
5063
|
+
import { z as z168 } from "zod";
|
|
5041
5064
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
5042
5065
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
5043
5066
|
var HANDLE_MIN_LENGTH = 2;
|
|
5044
5067
|
var HANDLE_MAX_LENGTH = 64;
|
|
5045
|
-
var CreateWorkspaceInput =
|
|
5046
|
-
name:
|
|
5068
|
+
var CreateWorkspaceInput = z168.object({
|
|
5069
|
+
name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
5047
5070
|
product: ProductCodeSchema,
|
|
5048
|
-
priceId:
|
|
5049
|
-
billingEmail:
|
|
5050
|
-
handle:
|
|
5071
|
+
priceId: z168.string(),
|
|
5072
|
+
billingEmail: z168.string().email().optional(),
|
|
5073
|
+
handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
5051
5074
|
invites: UserInvites.optional(),
|
|
5052
|
-
promoCode:
|
|
5075
|
+
promoCode: z168.string().optional(),
|
|
5053
5076
|
status: InternalStatusSchema.optional(),
|
|
5054
5077
|
planInterval: BillingIntervalSchema.optional(),
|
|
5055
|
-
seats:
|
|
5056
|
-
seatLimit:
|
|
5078
|
+
seats: z168.number().optional(),
|
|
5079
|
+
seatLimit: z168.number().optional(),
|
|
5057
5080
|
card: CardSchema.optional(),
|
|
5058
5081
|
sso: SsoProvider.optional(),
|
|
5059
5082
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -5061,47 +5084,47 @@ var CreateWorkspaceInput = z166.object({
|
|
|
5061
5084
|
});
|
|
5062
5085
|
|
|
5063
5086
|
// src/workspace/workspace-invitations.ts
|
|
5064
|
-
import { z as
|
|
5065
|
-
var WorkspaceInvitation =
|
|
5066
|
-
id:
|
|
5067
|
-
email:
|
|
5068
|
-
createdAt:
|
|
5069
|
-
resentAt:
|
|
5070
|
-
role:
|
|
5071
|
-
workspaceId:
|
|
5072
|
-
invitedBy:
|
|
5087
|
+
import { z as z169 } from "zod";
|
|
5088
|
+
var WorkspaceInvitation = z169.object({
|
|
5089
|
+
id: z169.string(),
|
|
5090
|
+
email: z169.string().email(),
|
|
5091
|
+
createdAt: z169.coerce.date(),
|
|
5092
|
+
resentAt: z169.coerce.date().nullish(),
|
|
5093
|
+
role: z169.nativeEnum(WorkspaceRole),
|
|
5094
|
+
workspaceId: z169.string(),
|
|
5095
|
+
invitedBy: z169.string()
|
|
5073
5096
|
});
|
|
5074
5097
|
|
|
5075
5098
|
// src/workspace/workspace-membership.ts
|
|
5076
|
-
import { z as
|
|
5077
|
-
var WorkspaceMembership =
|
|
5078
|
-
id:
|
|
5079
|
-
userId:
|
|
5080
|
-
workspaceId:
|
|
5081
|
-
workspaceRole:
|
|
5099
|
+
import { z as z170 } from "zod";
|
|
5100
|
+
var WorkspaceMembership = z170.object({
|
|
5101
|
+
id: z170.string(),
|
|
5102
|
+
userId: z170.string(),
|
|
5103
|
+
workspaceId: z170.string(),
|
|
5104
|
+
workspaceRole: z170.nativeEnum(WorkspaceRole),
|
|
5082
5105
|
notificationSettings: UserNotificationSettings
|
|
5083
5106
|
});
|
|
5084
|
-
var UpdateMembershipRolesInput =
|
|
5085
|
-
members:
|
|
5086
|
-
|
|
5087
|
-
userId:
|
|
5088
|
-
role:
|
|
5107
|
+
var UpdateMembershipRolesInput = z170.object({
|
|
5108
|
+
members: z170.array(
|
|
5109
|
+
z170.object({
|
|
5110
|
+
userId: z170.string(),
|
|
5111
|
+
role: z170.nativeEnum(WorkspaceRole)
|
|
5089
5112
|
})
|
|
5090
5113
|
)
|
|
5091
5114
|
});
|
|
5092
5115
|
|
|
5093
5116
|
// src/tokens/personal-access-token.ts
|
|
5094
|
-
var PersonalAccessToken =
|
|
5095
|
-
id:
|
|
5096
|
-
userId:
|
|
5097
|
-
workspaceId:
|
|
5117
|
+
var PersonalAccessToken = z171.object({
|
|
5118
|
+
id: z171.string(),
|
|
5119
|
+
userId: z171.string(),
|
|
5120
|
+
workspaceId: z171.string().optional(),
|
|
5098
5121
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5099
|
-
name:
|
|
5100
|
-
hidden:
|
|
5101
|
-
token:
|
|
5102
|
-
scope:
|
|
5103
|
-
createdAt:
|
|
5104
|
-
expireAt:
|
|
5122
|
+
name: z171.string(),
|
|
5123
|
+
hidden: z171.boolean(),
|
|
5124
|
+
token: z171.string(),
|
|
5125
|
+
scope: z171.string().optional(),
|
|
5126
|
+
createdAt: z171.coerce.date(),
|
|
5127
|
+
expireAt: z171.coerce.date().optional()
|
|
5105
5128
|
});
|
|
5106
5129
|
export {
|
|
5107
5130
|
Address,
|
|
@@ -5230,6 +5253,8 @@ export {
|
|
|
5230
5253
|
DocumentationLinkPreview,
|
|
5231
5254
|
DocumentationPage,
|
|
5232
5255
|
DocumentationPageAnchor,
|
|
5256
|
+
DocumentationPageApproval,
|
|
5257
|
+
DocumentationPageApprovalState,
|
|
5233
5258
|
DocumentationPageContent,
|
|
5234
5259
|
DocumentationPageContentBackup,
|
|
5235
5260
|
DocumentationPageContentData,
|