@supernova-studio/client 0.54.3 → 0.54.5
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 +343 -72
- package/dist/index.d.ts +343 -72
- package/dist/index.js +98 -91
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +442 -435
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -20,12 +20,12 @@ import { z as z11 } from "zod";
|
|
|
20
20
|
import { z as z12 } from "zod";
|
|
21
21
|
import { z as z13 } from "zod";
|
|
22
22
|
import { z as z14 } from "zod";
|
|
23
|
-
import { z as
|
|
23
|
+
import { z as z125 } from "zod";
|
|
24
24
|
import { z as z17 } from "zod";
|
|
25
25
|
import { z as z15 } from "zod";
|
|
26
26
|
import { z as z16 } from "zod";
|
|
27
|
-
import { z as
|
|
28
|
-
import { z as
|
|
27
|
+
import { z as z124 } from "zod";
|
|
28
|
+
import { z as z123 } from "zod";
|
|
29
29
|
import { z as z18 } from "zod";
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
@@ -125,36 +125,36 @@ import { z as z112 } from "zod";
|
|
|
125
125
|
import { z as z113 } from "zod";
|
|
126
126
|
import { z as z114 } from "zod";
|
|
127
127
|
import { z as z115 } from "zod";
|
|
128
|
-
import { z as z120 } from "zod";
|
|
129
|
-
import { z as z119 } from "zod";
|
|
130
|
-
import IPCIDR from "ip-cidr";
|
|
131
|
-
import { z as z118 } from "zod";
|
|
132
|
-
import { z as z116 } from "zod";
|
|
133
128
|
import { z as z117 } from "zod";
|
|
129
|
+
import { z as z116 } from "zod";
|
|
130
|
+
import { z as z118 } from "zod";
|
|
131
|
+
import { z as z119 } from "zod";
|
|
132
|
+
import { z as z120 } from "zod";
|
|
134
133
|
import { z as z121 } from "zod";
|
|
135
134
|
import { z as z122 } from "zod";
|
|
136
|
-
import { z as
|
|
137
|
-
import { z as
|
|
138
|
-
import { z as
|
|
139
|
-
import { z as
|
|
140
|
-
import { z as
|
|
135
|
+
import { z as z132 } from "zod";
|
|
136
|
+
import { z as z131 } from "zod";
|
|
137
|
+
import { z as z126 } from "zod";
|
|
138
|
+
import { z as z127 } from "zod";
|
|
139
|
+
import { z as z128 } from "zod";
|
|
141
140
|
import { z as z129 } from "zod";
|
|
142
141
|
import { z as z130 } from "zod";
|
|
143
|
-
import { z as z131 } from "zod";
|
|
144
|
-
import { z as z132 } from "zod";
|
|
145
|
-
import { z as z133 } from "zod";
|
|
146
142
|
import { z as z147 } from "zod";
|
|
143
|
+
import { z as z133 } from "zod";
|
|
144
|
+
import { z as z134 } from "zod";
|
|
145
|
+
import { z as z135 } from "zod";
|
|
147
146
|
import { z as z136 } from "zod";
|
|
148
147
|
import { z as z137 } from "zod";
|
|
149
148
|
import { z as z138 } from "zod";
|
|
150
149
|
import { z as z139 } from "zod";
|
|
151
150
|
import { z as z140 } from "zod";
|
|
152
151
|
import { z as z141 } from "zod";
|
|
152
|
+
import { z as z146 } from "zod";
|
|
153
153
|
import { z as z142 } from "zod";
|
|
154
|
+
import IPCIDR from "ip-cidr";
|
|
155
|
+
import { z as z145 } from "zod";
|
|
154
156
|
import { z as z143 } from "zod";
|
|
155
157
|
import { z as z144 } from "zod";
|
|
156
|
-
import { z as z146 } from "zod";
|
|
157
|
-
import { z as z145 } from "zod";
|
|
158
158
|
import { z as z148 } from "zod";
|
|
159
159
|
import { z as z151 } from "zod";
|
|
160
160
|
import { z as z149 } from "zod";
|
|
@@ -643,27 +643,36 @@ var BorderValue = z31.object({
|
|
|
643
643
|
});
|
|
644
644
|
var BorderTokenData = tokenAliasOrValue(BorderValue);
|
|
645
645
|
var FigmaComponentPropertyType = z32.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
646
|
-
var
|
|
646
|
+
var FigmaComponentPropertyOrigin = z32.object({
|
|
647
|
+
id: z32.string()
|
|
648
|
+
});
|
|
649
|
+
var FigmaComponentPropertyBase = z32.object({
|
|
650
|
+
id: z32.string(),
|
|
651
|
+
name: z32.string()
|
|
652
|
+
});
|
|
653
|
+
var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
|
|
647
654
|
type: z32.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
648
655
|
defaultValue: z32.boolean()
|
|
649
656
|
});
|
|
650
|
-
var FigmaComponentInstanceSwapProperty =
|
|
657
|
+
var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
|
|
651
658
|
type: z32.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
652
659
|
defaultValue: z32.string()
|
|
653
660
|
});
|
|
654
|
-
var FigmaComponentVariantProperty =
|
|
661
|
+
var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
|
|
655
662
|
type: z32.literal(FigmaComponentPropertyType.enum.Variant),
|
|
656
663
|
defaultValue: z32.string(),
|
|
657
664
|
options: z32.array(z32.string())
|
|
658
665
|
});
|
|
659
|
-
var FigmaComponentTextProperty =
|
|
666
|
+
var FigmaComponentTextProperty = FigmaComponentPropertyBase.extend({
|
|
660
667
|
type: z32.literal(FigmaComponentPropertyType.enum.Text),
|
|
668
|
+
id: z32.string(),
|
|
661
669
|
defaultValue: z32.string()
|
|
662
670
|
});
|
|
663
671
|
var FigmaComponentProperty = z32.discriminatedUnion("type", [
|
|
664
672
|
FigmaComponentBooleanProperty,
|
|
665
673
|
FigmaComponentInstanceSwapProperty,
|
|
666
|
-
FigmaComponentTextProperty
|
|
674
|
+
FigmaComponentTextProperty,
|
|
675
|
+
FigmaComponentVariantProperty
|
|
667
676
|
]);
|
|
668
677
|
var FigmaComponentPropertyMap = z32.record(z32.string(), FigmaComponentProperty);
|
|
669
678
|
var ComponentElementData = z33.object({
|
|
@@ -3579,120 +3588,37 @@ var Brand = z115.object({
|
|
|
3579
3588
|
name: z115.string(),
|
|
3580
3589
|
description: z115.string()
|
|
3581
3590
|
});
|
|
3582
|
-
var
|
|
3583
|
-
var
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
});
|
|
3601
|
-
var NpmRegistryAuthConfig = z116.discriminatedUnion("authType", [
|
|
3602
|
-
NpmRegistryBasicAuthConfig,
|
|
3603
|
-
NpmRegistryBearerAuthConfig,
|
|
3604
|
-
NpmRegistryNoAuthConfig,
|
|
3605
|
-
NpmRegistrCustomAuthConfig
|
|
3606
|
-
]);
|
|
3607
|
-
var NpmRegistryConfigBase = z116.object({
|
|
3608
|
-
registryType: NpmRegistryType,
|
|
3609
|
-
enabledScopes: z116.array(z116.string()),
|
|
3610
|
-
customRegistryUrl: z116.string().optional(),
|
|
3611
|
-
bypassProxy: z116.boolean().default(false),
|
|
3612
|
-
npmProxyRegistryConfigId: z116.string().optional(),
|
|
3613
|
-
npmProxyVersion: z116.number().optional()
|
|
3614
|
-
});
|
|
3615
|
-
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3616
|
-
var SsoProvider = z117.object({
|
|
3617
|
-
providerId: z117.string(),
|
|
3618
|
-
defaultAutoInviteValue: z117.boolean(),
|
|
3619
|
-
autoInviteDomains: z117.record(z117.string(), z117.boolean()),
|
|
3620
|
-
skipDocsSupernovaLogin: z117.boolean(),
|
|
3621
|
-
areInvitesDisabled: z117.boolean(),
|
|
3622
|
-
isTestMode: z117.boolean(),
|
|
3623
|
-
emailDomains: z117.array(z117.string()),
|
|
3624
|
-
metadataXml: z117.string().nullish()
|
|
3625
|
-
});
|
|
3626
|
-
var isValidCIDR = (value) => {
|
|
3627
|
-
return IPCIDR.isValidAddress(value);
|
|
3628
|
-
};
|
|
3629
|
-
var WorkspaceIpWhitelistEntry = z118.object({
|
|
3630
|
-
isEnabled: z118.boolean(),
|
|
3631
|
-
name: z118.string(),
|
|
3632
|
-
range: z118.string().refine(isValidCIDR, {
|
|
3633
|
-
message: "Invalid IP CIDR"
|
|
3634
|
-
})
|
|
3635
|
-
});
|
|
3636
|
-
var WorkspaceIpSettings = z118.object({
|
|
3637
|
-
isEnabledForCloud: z118.boolean(),
|
|
3638
|
-
isEnabledForDocs: z118.boolean(),
|
|
3639
|
-
entries: z118.array(WorkspaceIpWhitelistEntry)
|
|
3640
|
-
});
|
|
3641
|
-
var WorkspaceProfile = z118.object({
|
|
3642
|
-
name: z118.string(),
|
|
3643
|
-
handle: z118.string(),
|
|
3644
|
-
color: z118.string(),
|
|
3645
|
-
avatar: nullishToOptional(z118.string()),
|
|
3646
|
-
billingDetails: nullishToOptional(BillingDetails)
|
|
3647
|
-
});
|
|
3648
|
-
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3649
|
-
avatar: true
|
|
3650
|
-
});
|
|
3651
|
-
var Workspace = z118.object({
|
|
3652
|
-
id: z118.string(),
|
|
3653
|
-
profile: WorkspaceProfile,
|
|
3654
|
-
subscription: Subscription,
|
|
3655
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3656
|
-
sso: nullishToOptional(SsoProvider),
|
|
3657
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3658
|
-
});
|
|
3659
|
-
var WorkspaceWithDesignSystems = z118.object({
|
|
3660
|
-
workspace: Workspace,
|
|
3661
|
-
designSystems: z118.array(DesignSystem)
|
|
3662
|
-
});
|
|
3663
|
-
var DesignSystemSwitcher = z119.object({
|
|
3664
|
-
isEnabled: z119.boolean(),
|
|
3665
|
-
designSystemIds: z119.array(z119.string())
|
|
3666
|
-
});
|
|
3667
|
-
var DesignSystem = z119.object({
|
|
3668
|
-
id: z119.string(),
|
|
3669
|
-
workspaceId: z119.string(),
|
|
3670
|
-
name: z119.string(),
|
|
3671
|
-
description: z119.string(),
|
|
3672
|
-
docExporterId: nullishToOptional(z119.string()),
|
|
3673
|
-
docSlug: z119.string(),
|
|
3674
|
-
docUserSlug: nullishToOptional(z119.string()),
|
|
3675
|
-
docSlugDeprecated: z119.string(),
|
|
3676
|
-
isPublic: z119.boolean(),
|
|
3677
|
-
isMultibrand: z119.boolean(),
|
|
3678
|
-
docViewUrl: nullishToOptional(z119.string()),
|
|
3679
|
-
basePrefixes: z119.array(z119.string()),
|
|
3591
|
+
var DesignSystemAccessMode = z116.enum(["Open", "InviteOnly"]);
|
|
3592
|
+
var DesignSystemSwitcher = z116.object({
|
|
3593
|
+
isEnabled: z116.boolean(),
|
|
3594
|
+
designSystemIds: z116.array(z116.string())
|
|
3595
|
+
});
|
|
3596
|
+
var DesignSystem = z116.object({
|
|
3597
|
+
id: z116.string(),
|
|
3598
|
+
workspaceId: z116.string(),
|
|
3599
|
+
name: z116.string(),
|
|
3600
|
+
description: z116.string(),
|
|
3601
|
+
docExporterId: nullishToOptional(z116.string()),
|
|
3602
|
+
docSlug: z116.string(),
|
|
3603
|
+
docUserSlug: nullishToOptional(z116.string()),
|
|
3604
|
+
docSlugDeprecated: z116.string(),
|
|
3605
|
+
isPublic: z116.boolean(),
|
|
3606
|
+
isMultibrand: z116.boolean(),
|
|
3607
|
+
docViewUrl: nullishToOptional(z116.string()),
|
|
3608
|
+
basePrefixes: z116.array(z116.string()),
|
|
3680
3609
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3681
|
-
isApprovalFeatureEnabled:
|
|
3682
|
-
approvalRequiredForPublishing:
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
var DesignSystemWithWorkspace = z119.object({
|
|
3687
|
-
designSystem: DesignSystem,
|
|
3688
|
-
workspace: Workspace
|
|
3610
|
+
isApprovalFeatureEnabled: z116.boolean(),
|
|
3611
|
+
approvalRequiredForPublishing: z116.boolean(),
|
|
3612
|
+
accessMode: DesignSystemAccessMode,
|
|
3613
|
+
createdAt: z116.coerce.date(),
|
|
3614
|
+
updatedAt: z116.coerce.date()
|
|
3689
3615
|
});
|
|
3690
3616
|
var DS_NAME_MIN_LENGTH = 2;
|
|
3691
3617
|
var DS_NAME_MAX_LENGTH = 64;
|
|
3692
3618
|
var DS_DESC_MAX_LENGTH = 2048;
|
|
3693
|
-
var DesignSystemUpdateInputMetadata =
|
|
3694
|
-
name:
|
|
3695
|
-
description:
|
|
3619
|
+
var DesignSystemUpdateInputMetadata = z117.object({
|
|
3620
|
+
name: z117.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3621
|
+
description: z117.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3696
3622
|
});
|
|
3697
3623
|
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3698
3624
|
id: true,
|
|
@@ -3707,173 +3633,173 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
3707
3633
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3708
3634
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3709
3635
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3710
|
-
var DesignSystemCreateInputMetadata =
|
|
3711
|
-
name:
|
|
3712
|
-
description:
|
|
3636
|
+
var DesignSystemCreateInputMetadata = z118.object({
|
|
3637
|
+
name: z118.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3638
|
+
description: z118.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
3713
3639
|
});
|
|
3714
|
-
var DesignSystemCreateInput =
|
|
3640
|
+
var DesignSystemCreateInput = z118.object({
|
|
3715
3641
|
meta: DesignSystemCreateInputMetadata,
|
|
3716
|
-
workspaceId:
|
|
3717
|
-
isPublic:
|
|
3718
|
-
basePrefixes:
|
|
3719
|
-
docUserSlug:
|
|
3720
|
-
source:
|
|
3642
|
+
workspaceId: z118.string(),
|
|
3643
|
+
isPublic: z118.boolean().optional(),
|
|
3644
|
+
basePrefixes: z118.array(z118.string()).optional(),
|
|
3645
|
+
docUserSlug: z118.string().nullish().optional(),
|
|
3646
|
+
source: z118.array(z118.string()).optional()
|
|
3721
3647
|
});
|
|
3722
|
-
var ExporterPropertyImageValue =
|
|
3648
|
+
var ExporterPropertyImageValue = z119.object({
|
|
3723
3649
|
asset: PageBlockAsset.optional(),
|
|
3724
|
-
assetId:
|
|
3725
|
-
assetUrl:
|
|
3726
|
-
});
|
|
3727
|
-
var ExporterPropertyValue =
|
|
3728
|
-
key:
|
|
3729
|
-
value:
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3650
|
+
assetId: z119.string().optional(),
|
|
3651
|
+
assetUrl: z119.string().optional()
|
|
3652
|
+
});
|
|
3653
|
+
var ExporterPropertyValue = z119.object({
|
|
3654
|
+
key: z119.string(),
|
|
3655
|
+
value: z119.union([
|
|
3656
|
+
z119.number(),
|
|
3657
|
+
z119.string(),
|
|
3658
|
+
z119.boolean(),
|
|
3733
3659
|
ExporterPropertyImageValue,
|
|
3734
3660
|
ColorTokenData,
|
|
3735
3661
|
TypographyTokenData
|
|
3736
3662
|
])
|
|
3737
3663
|
});
|
|
3738
|
-
var ExporterPropertyValuesCollection =
|
|
3739
|
-
id:
|
|
3740
|
-
designSystemId:
|
|
3741
|
-
exporterId:
|
|
3742
|
-
values:
|
|
3743
|
-
});
|
|
3744
|
-
var PublishedDocPage =
|
|
3745
|
-
id:
|
|
3746
|
-
publishedDocId:
|
|
3747
|
-
pageShortPersistentId:
|
|
3748
|
-
pathV1:
|
|
3749
|
-
pathV2:
|
|
3750
|
-
storagePath:
|
|
3751
|
-
locale:
|
|
3752
|
-
isPrivate:
|
|
3753
|
-
isHidden:
|
|
3754
|
-
createdAt:
|
|
3755
|
-
updatedAt:
|
|
3664
|
+
var ExporterPropertyValuesCollection = z119.object({
|
|
3665
|
+
id: z119.string(),
|
|
3666
|
+
designSystemId: z119.string(),
|
|
3667
|
+
exporterId: z119.string(),
|
|
3668
|
+
values: z119.array(ExporterPropertyValue)
|
|
3669
|
+
});
|
|
3670
|
+
var PublishedDocPage = z120.object({
|
|
3671
|
+
id: z120.string(),
|
|
3672
|
+
publishedDocId: z120.string(),
|
|
3673
|
+
pageShortPersistentId: z120.string(),
|
|
3674
|
+
pathV1: z120.string(),
|
|
3675
|
+
pathV2: z120.string(),
|
|
3676
|
+
storagePath: z120.string(),
|
|
3677
|
+
locale: z120.string().optional(),
|
|
3678
|
+
isPrivate: z120.boolean(),
|
|
3679
|
+
isHidden: z120.boolean(),
|
|
3680
|
+
createdAt: z120.coerce.date(),
|
|
3681
|
+
updatedAt: z120.coerce.date()
|
|
3756
3682
|
});
|
|
3757
3683
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3758
|
-
var PublishedDocEnvironment =
|
|
3759
|
-
var PublishedDocsChecksums =
|
|
3760
|
-
var PublishedDocRoutingVersion =
|
|
3761
|
-
var PublishedDoc =
|
|
3762
|
-
id:
|
|
3763
|
-
designSystemVersionId:
|
|
3764
|
-
createdAt:
|
|
3765
|
-
updatedAt:
|
|
3766
|
-
lastPublishedAt:
|
|
3767
|
-
isDefault:
|
|
3768
|
-
isPublic:
|
|
3684
|
+
var PublishedDocEnvironment = z121.enum(publishedDocEnvironments);
|
|
3685
|
+
var PublishedDocsChecksums = z121.record(z121.string());
|
|
3686
|
+
var PublishedDocRoutingVersion = z121.enum(["1", "2"]);
|
|
3687
|
+
var PublishedDoc = z121.object({
|
|
3688
|
+
id: z121.string(),
|
|
3689
|
+
designSystemVersionId: z121.string(),
|
|
3690
|
+
createdAt: z121.coerce.date(),
|
|
3691
|
+
updatedAt: z121.coerce.date(),
|
|
3692
|
+
lastPublishedAt: z121.coerce.date(),
|
|
3693
|
+
isDefault: z121.boolean(),
|
|
3694
|
+
isPublic: z121.boolean(),
|
|
3769
3695
|
environment: PublishedDocEnvironment,
|
|
3770
3696
|
checksums: PublishedDocsChecksums,
|
|
3771
|
-
storagePath:
|
|
3772
|
-
wasMigrated:
|
|
3697
|
+
storagePath: z121.string(),
|
|
3698
|
+
wasMigrated: z121.boolean(),
|
|
3773
3699
|
routingVersion: PublishedDocRoutingVersion,
|
|
3774
|
-
usesLocalizations:
|
|
3775
|
-
wasPublishedWithLocalizations:
|
|
3776
|
-
tokenCount:
|
|
3777
|
-
assetCount:
|
|
3700
|
+
usesLocalizations: z121.boolean(),
|
|
3701
|
+
wasPublishedWithLocalizations: z121.boolean(),
|
|
3702
|
+
tokenCount: z121.number(),
|
|
3703
|
+
assetCount: z121.number()
|
|
3778
3704
|
});
|
|
3779
|
-
var DesignSystemVersion =
|
|
3780
|
-
id:
|
|
3781
|
-
version:
|
|
3782
|
-
createdAt:
|
|
3783
|
-
designSystemId:
|
|
3784
|
-
name:
|
|
3785
|
-
comment:
|
|
3786
|
-
isReadonly:
|
|
3787
|
-
changeLog:
|
|
3788
|
-
parentId:
|
|
3789
|
-
isDraftsFeatureAdopted:
|
|
3790
|
-
});
|
|
3791
|
-
var VersionCreationJobStatus =
|
|
3792
|
-
var VersionCreationJob =
|
|
3793
|
-
id:
|
|
3794
|
-
version:
|
|
3795
|
-
designSystemId:
|
|
3796
|
-
designSystemVersionId: nullishToOptional(
|
|
3705
|
+
var DesignSystemVersion = z122.object({
|
|
3706
|
+
id: z122.string(),
|
|
3707
|
+
version: z122.string(),
|
|
3708
|
+
createdAt: z122.coerce.date(),
|
|
3709
|
+
designSystemId: z122.string(),
|
|
3710
|
+
name: z122.string(),
|
|
3711
|
+
comment: z122.string(),
|
|
3712
|
+
isReadonly: z122.boolean(),
|
|
3713
|
+
changeLog: z122.string(),
|
|
3714
|
+
parentId: z122.string().optional(),
|
|
3715
|
+
isDraftsFeatureAdopted: z122.boolean()
|
|
3716
|
+
});
|
|
3717
|
+
var VersionCreationJobStatus = z122.enum(["Success", "InProgress", "Error"]);
|
|
3718
|
+
var VersionCreationJob = z122.object({
|
|
3719
|
+
id: z122.string(),
|
|
3720
|
+
version: z122.string(),
|
|
3721
|
+
designSystemId: z122.string(),
|
|
3722
|
+
designSystemVersionId: nullishToOptional(z122.string()),
|
|
3797
3723
|
status: VersionCreationJobStatus,
|
|
3798
|
-
errorMessage: nullishToOptional(
|
|
3724
|
+
errorMessage: nullishToOptional(z122.string())
|
|
3799
3725
|
});
|
|
3800
3726
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3801
3727
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
3802
|
-
var ExportJobDocumentationChanges =
|
|
3803
|
-
pagePersistentIds:
|
|
3804
|
-
groupPersistentIds:
|
|
3728
|
+
var ExportJobDocumentationChanges = z123.object({
|
|
3729
|
+
pagePersistentIds: z123.string().array(),
|
|
3730
|
+
groupPersistentIds: z123.string().array()
|
|
3805
3731
|
});
|
|
3806
|
-
var ExporterDestinationDocs =
|
|
3732
|
+
var ExporterDestinationDocs = z123.object({
|
|
3807
3733
|
environment: PublishedDocEnvironment,
|
|
3808
3734
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3809
3735
|
});
|
|
3810
|
-
var ExporterDestinationS3 =
|
|
3811
|
-
var ExporterDestinationGithub =
|
|
3812
|
-
credentialId:
|
|
3736
|
+
var ExporterDestinationS3 = z123.object({});
|
|
3737
|
+
var ExporterDestinationGithub = z123.object({
|
|
3738
|
+
credentialId: z123.string().optional(),
|
|
3813
3739
|
// Repository
|
|
3814
|
-
url:
|
|
3740
|
+
url: z123.string(),
|
|
3815
3741
|
// Location
|
|
3816
|
-
branch:
|
|
3817
|
-
relativePath: nullishToOptional(
|
|
3742
|
+
branch: z123.string(),
|
|
3743
|
+
relativePath: nullishToOptional(z123.string()),
|
|
3818
3744
|
// Commit metadata
|
|
3819
|
-
commitAuthorName: nullishToOptional(
|
|
3820
|
-
commitAuthorEmail: nullishToOptional(
|
|
3745
|
+
commitAuthorName: nullishToOptional(z123.string()),
|
|
3746
|
+
commitAuthorEmail: nullishToOptional(z123.string()),
|
|
3821
3747
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3822
|
-
connectionId: nullishToOptional(
|
|
3823
|
-
userId: nullishToOptional(
|
|
3748
|
+
connectionId: nullishToOptional(z123.string()),
|
|
3749
|
+
userId: nullishToOptional(z123.number())
|
|
3824
3750
|
});
|
|
3825
|
-
var ExporterDestinationAzure =
|
|
3826
|
-
credentialId:
|
|
3751
|
+
var ExporterDestinationAzure = z123.object({
|
|
3752
|
+
credentialId: z123.string().optional(),
|
|
3827
3753
|
// Repository
|
|
3828
|
-
organizationId:
|
|
3829
|
-
projectId:
|
|
3830
|
-
repositoryId:
|
|
3754
|
+
organizationId: z123.string(),
|
|
3755
|
+
projectId: z123.string(),
|
|
3756
|
+
repositoryId: z123.string(),
|
|
3831
3757
|
// Commit metadata
|
|
3832
|
-
commitAuthorName: nullishToOptional(
|
|
3833
|
-
commitAuthorEmail: nullishToOptional(
|
|
3758
|
+
commitAuthorName: nullishToOptional(z123.string()),
|
|
3759
|
+
commitAuthorEmail: nullishToOptional(z123.string()),
|
|
3834
3760
|
// Location
|
|
3835
|
-
branch:
|
|
3836
|
-
relativePath: nullishToOptional(
|
|
3761
|
+
branch: z123.string(),
|
|
3762
|
+
relativePath: nullishToOptional(z123.string()),
|
|
3837
3763
|
// Maybe not needed
|
|
3838
|
-
url: nullishToOptional(
|
|
3764
|
+
url: nullishToOptional(z123.string()),
|
|
3839
3765
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3840
|
-
connectionId: nullishToOptional(
|
|
3841
|
-
userId: nullishToOptional(
|
|
3766
|
+
connectionId: nullishToOptional(z123.string()),
|
|
3767
|
+
userId: nullishToOptional(z123.number())
|
|
3842
3768
|
});
|
|
3843
|
-
var ExporterDestinationGitlab =
|
|
3844
|
-
credentialId:
|
|
3769
|
+
var ExporterDestinationGitlab = z123.object({
|
|
3770
|
+
credentialId: z123.string().optional(),
|
|
3845
3771
|
// Repository
|
|
3846
|
-
projectId:
|
|
3772
|
+
projectId: z123.string(),
|
|
3847
3773
|
// Commit metadata
|
|
3848
|
-
commitAuthorName: nullishToOptional(
|
|
3849
|
-
commitAuthorEmail: nullishToOptional(
|
|
3774
|
+
commitAuthorName: nullishToOptional(z123.string()),
|
|
3775
|
+
commitAuthorEmail: nullishToOptional(z123.string()),
|
|
3850
3776
|
// Location
|
|
3851
|
-
branch:
|
|
3852
|
-
relativePath: nullishToOptional(
|
|
3777
|
+
branch: z123.string(),
|
|
3778
|
+
relativePath: nullishToOptional(z123.string()),
|
|
3853
3779
|
// Maybe not needed
|
|
3854
|
-
url: nullishToOptional(
|
|
3780
|
+
url: nullishToOptional(z123.string()),
|
|
3855
3781
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3856
|
-
connectionId: nullishToOptional(
|
|
3857
|
-
userId: nullishToOptional(
|
|
3782
|
+
connectionId: nullishToOptional(z123.string()),
|
|
3783
|
+
userId: nullishToOptional(z123.number())
|
|
3858
3784
|
});
|
|
3859
|
-
var ExporterDestinationBitbucket =
|
|
3860
|
-
credentialId:
|
|
3785
|
+
var ExporterDestinationBitbucket = z123.object({
|
|
3786
|
+
credentialId: z123.string().optional(),
|
|
3861
3787
|
// Repository
|
|
3862
|
-
workspaceSlug:
|
|
3863
|
-
projectKey:
|
|
3864
|
-
repoSlug:
|
|
3788
|
+
workspaceSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3789
|
+
projectKey: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3790
|
+
repoSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3865
3791
|
// Commit metadata
|
|
3866
|
-
commitAuthorName: nullishToOptional(
|
|
3867
|
-
commitAuthorEmail: nullishToOptional(
|
|
3792
|
+
commitAuthorName: nullishToOptional(z123.string()),
|
|
3793
|
+
commitAuthorEmail: nullishToOptional(z123.string()),
|
|
3868
3794
|
// Location
|
|
3869
|
-
branch:
|
|
3870
|
-
relativePath: nullishToOptional(
|
|
3795
|
+
branch: z123.string(),
|
|
3796
|
+
relativePath: nullishToOptional(z123.string()),
|
|
3871
3797
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3872
|
-
connectionId: nullishToOptional(
|
|
3873
|
-
userId: nullishToOptional(
|
|
3798
|
+
connectionId: nullishToOptional(z123.string()),
|
|
3799
|
+
userId: nullishToOptional(z123.number())
|
|
3874
3800
|
});
|
|
3875
|
-
var ExportDestinationsMap =
|
|
3876
|
-
webhookUrl:
|
|
3801
|
+
var ExportDestinationsMap = z123.object({
|
|
3802
|
+
webhookUrl: z123.string().optional(),
|
|
3877
3803
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3878
3804
|
destinationS3: ExporterDestinationS3.optional(),
|
|
3879
3805
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -3881,92 +3807,92 @@ var ExportDestinationsMap = z126.object({
|
|
|
3881
3807
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3882
3808
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3883
3809
|
});
|
|
3884
|
-
var PipelineEventType =
|
|
3885
|
-
var PipelineDestinationGitType =
|
|
3886
|
-
var PipelineDestinationExtraType =
|
|
3887
|
-
var PipelineDestinationType =
|
|
3888
|
-
var Pipeline =
|
|
3889
|
-
id:
|
|
3890
|
-
name:
|
|
3810
|
+
var PipelineEventType = z124.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3811
|
+
var PipelineDestinationGitType = z124.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3812
|
+
var PipelineDestinationExtraType = z124.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3813
|
+
var PipelineDestinationType = z124.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3814
|
+
var Pipeline = z124.object({
|
|
3815
|
+
id: z124.string(),
|
|
3816
|
+
name: z124.string(),
|
|
3891
3817
|
eventType: PipelineEventType,
|
|
3892
|
-
isEnabled:
|
|
3893
|
-
workspaceId:
|
|
3894
|
-
designSystemId:
|
|
3895
|
-
exporterId:
|
|
3896
|
-
brandPersistentId:
|
|
3897
|
-
themePersistentId:
|
|
3818
|
+
isEnabled: z124.boolean(),
|
|
3819
|
+
workspaceId: z124.string(),
|
|
3820
|
+
designSystemId: z124.string(),
|
|
3821
|
+
exporterId: z124.string(),
|
|
3822
|
+
brandPersistentId: z124.string().optional(),
|
|
3823
|
+
themePersistentId: z124.string().optional(),
|
|
3898
3824
|
// Destinations
|
|
3899
3825
|
...ExportDestinationsMap.shape
|
|
3900
3826
|
});
|
|
3901
|
-
var ExportJobDump =
|
|
3902
|
-
id:
|
|
3903
|
-
createdAt:
|
|
3904
|
-
finishedAt:
|
|
3905
|
-
exportArtefacts:
|
|
3827
|
+
var ExportJobDump = z125.object({
|
|
3828
|
+
id: z125.string(),
|
|
3829
|
+
createdAt: z125.coerce.date(),
|
|
3830
|
+
finishedAt: z125.coerce.date(),
|
|
3831
|
+
exportArtefacts: z125.string()
|
|
3906
3832
|
});
|
|
3907
|
-
var CodeIntegrationDump =
|
|
3833
|
+
var CodeIntegrationDump = z125.object({
|
|
3908
3834
|
exporters: Exporter.array(),
|
|
3909
3835
|
pipelines: Pipeline.array(),
|
|
3910
3836
|
exportJobs: ExportJobDump.array()
|
|
3911
3837
|
});
|
|
3912
3838
|
var DesignSystemVersionRoom = Entity.extend({
|
|
3913
|
-
designSystemVersionId:
|
|
3914
|
-
liveblocksId:
|
|
3915
|
-
});
|
|
3916
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
3917
|
-
routingVersion:
|
|
3918
|
-
isDraftFeatureAdopted:
|
|
3919
|
-
isApprovalFeatureEnabled:
|
|
3920
|
-
approvalRequiredForPublishing:
|
|
3921
|
-
});
|
|
3922
|
-
var DesignSystemVersionRoomInitialState =
|
|
3923
|
-
pages:
|
|
3924
|
-
groups:
|
|
3925
|
-
pageSnapshots:
|
|
3926
|
-
groupSnapshots:
|
|
3927
|
-
pageApprovals:
|
|
3839
|
+
designSystemVersionId: z126.string(),
|
|
3840
|
+
liveblocksId: z126.string()
|
|
3841
|
+
});
|
|
3842
|
+
var DesignSystemVersionRoomInternalSettings = z126.object({
|
|
3843
|
+
routingVersion: z126.string(),
|
|
3844
|
+
isDraftFeatureAdopted: z126.boolean(),
|
|
3845
|
+
isApprovalFeatureEnabled: z126.boolean(),
|
|
3846
|
+
approvalRequiredForPublishing: z126.boolean()
|
|
3847
|
+
});
|
|
3848
|
+
var DesignSystemVersionRoomInitialState = z126.object({
|
|
3849
|
+
pages: z126.array(DocumentationPageV2),
|
|
3850
|
+
groups: z126.array(ElementGroup),
|
|
3851
|
+
pageSnapshots: z126.array(DocumentationPageSnapshot),
|
|
3852
|
+
groupSnapshots: z126.array(ElementGroupSnapshot),
|
|
3853
|
+
pageApprovals: z126.array(DocumentationPageApproval),
|
|
3928
3854
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3929
3855
|
});
|
|
3930
|
-
var DesignSystemVersionRoomUpdate =
|
|
3931
|
-
pages:
|
|
3932
|
-
groups:
|
|
3933
|
-
pageIdsToDelete:
|
|
3934
|
-
groupIdsToDelete:
|
|
3935
|
-
pageSnapshots:
|
|
3936
|
-
groupSnapshots:
|
|
3937
|
-
pageSnapshotIdsToDelete:
|
|
3938
|
-
groupSnapshotIdsToDelete:
|
|
3939
|
-
pageHashesToUpdate:
|
|
3940
|
-
pageApprovals:
|
|
3941
|
-
pageApprovalIdsToDelete:
|
|
3856
|
+
var DesignSystemVersionRoomUpdate = z126.object({
|
|
3857
|
+
pages: z126.array(DocumentationPageV2),
|
|
3858
|
+
groups: z126.array(ElementGroup),
|
|
3859
|
+
pageIdsToDelete: z126.array(z126.string()),
|
|
3860
|
+
groupIdsToDelete: z126.array(z126.string()),
|
|
3861
|
+
pageSnapshots: z126.array(DocumentationPageSnapshot),
|
|
3862
|
+
groupSnapshots: z126.array(ElementGroupSnapshot),
|
|
3863
|
+
pageSnapshotIdsToDelete: z126.array(z126.string()),
|
|
3864
|
+
groupSnapshotIdsToDelete: z126.array(z126.string()),
|
|
3865
|
+
pageHashesToUpdate: z126.record(z126.string(), z126.string()),
|
|
3866
|
+
pageApprovals: z126.array(DocumentationPageApproval),
|
|
3867
|
+
pageApprovalIdsToDelete: z126.array(z126.string())
|
|
3942
3868
|
});
|
|
3943
3869
|
var DocumentationPageRoom = Entity.extend({
|
|
3944
|
-
designSystemVersionId:
|
|
3945
|
-
documentationPageId:
|
|
3946
|
-
liveblocksId:
|
|
3947
|
-
isDirty:
|
|
3870
|
+
designSystemVersionId: z127.string(),
|
|
3871
|
+
documentationPageId: z127.string(),
|
|
3872
|
+
liveblocksId: z127.string(),
|
|
3873
|
+
isDirty: z127.boolean()
|
|
3948
3874
|
});
|
|
3949
|
-
var DocumentationPageRoomState =
|
|
3950
|
-
pageItems:
|
|
3875
|
+
var DocumentationPageRoomState = z127.object({
|
|
3876
|
+
pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3951
3877
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
3952
3878
|
});
|
|
3953
|
-
var DocumentationPageRoomRoomUpdate =
|
|
3879
|
+
var DocumentationPageRoomRoomUpdate = z127.object({
|
|
3954
3880
|
page: DocumentationPageV2,
|
|
3955
3881
|
pageParent: ElementGroup
|
|
3956
3882
|
});
|
|
3957
3883
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3958
|
-
pageItems:
|
|
3959
|
-
blockDefinitions:
|
|
3884
|
+
pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3885
|
+
blockDefinitions: z127.array(PageBlockDefinition)
|
|
3960
3886
|
});
|
|
3961
|
-
var RestoredDocumentationPage =
|
|
3887
|
+
var RestoredDocumentationPage = z127.object({
|
|
3962
3888
|
page: DocumentationPageV2,
|
|
3963
3889
|
pageParent: ElementGroup,
|
|
3964
3890
|
pageContent: DocumentationPageContentData,
|
|
3965
|
-
contentHash:
|
|
3966
|
-
snapshotId:
|
|
3967
|
-
roomId:
|
|
3891
|
+
contentHash: z127.string(),
|
|
3892
|
+
snapshotId: z127.string(),
|
|
3893
|
+
roomId: z127.string().optional()
|
|
3968
3894
|
});
|
|
3969
|
-
var RestoredDocumentationGroup =
|
|
3895
|
+
var RestoredDocumentationGroup = z127.object({
|
|
3970
3896
|
group: ElementGroup,
|
|
3971
3897
|
parent: ElementGroup
|
|
3972
3898
|
});
|
|
@@ -3976,28 +3902,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
3976
3902
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3977
3903
|
return RoomTypeEnum2;
|
|
3978
3904
|
})(RoomTypeEnum || {});
|
|
3979
|
-
var RoomTypeSchema =
|
|
3905
|
+
var RoomTypeSchema = z128.nativeEnum(RoomTypeEnum);
|
|
3980
3906
|
var RoomType = RoomTypeSchema.enum;
|
|
3981
3907
|
var WorkspaceRoom = Entity.extend({
|
|
3982
|
-
workspaceId:
|
|
3983
|
-
liveblocksId:
|
|
3908
|
+
workspaceId: z129.string(),
|
|
3909
|
+
liveblocksId: z129.string()
|
|
3984
3910
|
});
|
|
3985
|
-
var PublishedDocsDump =
|
|
3911
|
+
var PublishedDocsDump = z130.object({
|
|
3986
3912
|
documentation: PublishedDoc,
|
|
3987
3913
|
pages: PublishedDocPage.array()
|
|
3988
3914
|
});
|
|
3989
|
-
var DocumentationThreadDump =
|
|
3915
|
+
var DocumentationThreadDump = z131.object({
|
|
3990
3916
|
thread: DocumentationCommentThread,
|
|
3991
3917
|
comments: DocumentationComment.array()
|
|
3992
3918
|
});
|
|
3993
|
-
var DocumentationPageRoomDump =
|
|
3919
|
+
var DocumentationPageRoomDump = z131.object({
|
|
3994
3920
|
room: DocumentationPageRoom,
|
|
3995
3921
|
threads: DocumentationThreadDump.array()
|
|
3996
3922
|
});
|
|
3997
|
-
var DesignSystemVersionMultiplayerDump =
|
|
3923
|
+
var DesignSystemVersionMultiplayerDump = z131.object({
|
|
3998
3924
|
documentationPages: DocumentationPageRoomDump.array()
|
|
3999
3925
|
});
|
|
4000
|
-
var DesignSystemVersionDump =
|
|
3926
|
+
var DesignSystemVersionDump = z131.object({
|
|
4001
3927
|
version: DesignSystemVersion,
|
|
4002
3928
|
brands: Brand.array(),
|
|
4003
3929
|
elements: DesignElement.array(),
|
|
@@ -4010,142 +3936,142 @@ var DesignSystemVersionDump = z134.object({
|
|
|
4010
3936
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
4011
3937
|
assetReferences: AssetReference.array()
|
|
4012
3938
|
});
|
|
4013
|
-
var DesignSystemDump =
|
|
3939
|
+
var DesignSystemDump = z132.object({
|
|
4014
3940
|
designSystem: DesignSystem,
|
|
4015
3941
|
dataSources: DataSource.array(),
|
|
4016
3942
|
versions: DesignSystemVersionDump.array(),
|
|
4017
3943
|
customDomain: CustomDomain.optional(),
|
|
4018
3944
|
files: Asset.array()
|
|
4019
3945
|
});
|
|
4020
|
-
var IntegrationAuthType =
|
|
4021
|
-
var ExternalServiceType =
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
3946
|
+
var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
|
|
3947
|
+
var ExternalServiceType = z133.union([
|
|
3948
|
+
z133.literal("figma"),
|
|
3949
|
+
z133.literal("github"),
|
|
3950
|
+
z133.literal("azure"),
|
|
3951
|
+
z133.literal("gitlab"),
|
|
3952
|
+
z133.literal("bitbucket")
|
|
4027
3953
|
]);
|
|
4028
|
-
var IntegrationUserInfo =
|
|
4029
|
-
id:
|
|
4030
|
-
handle:
|
|
4031
|
-
avatarUrl:
|
|
4032
|
-
email:
|
|
3954
|
+
var IntegrationUserInfo = z133.object({
|
|
3955
|
+
id: z133.string(),
|
|
3956
|
+
handle: z133.string().optional(),
|
|
3957
|
+
avatarUrl: z133.string().optional(),
|
|
3958
|
+
email: z133.string().optional(),
|
|
4033
3959
|
authType: IntegrationAuthType.optional(),
|
|
4034
|
-
customUrl:
|
|
3960
|
+
customUrl: z133.string().optional()
|
|
4035
3961
|
});
|
|
4036
|
-
var UserLinkedIntegrations =
|
|
3962
|
+
var UserLinkedIntegrations = z133.object({
|
|
4037
3963
|
figma: IntegrationUserInfo.optional(),
|
|
4038
3964
|
github: IntegrationUserInfo.array().optional(),
|
|
4039
3965
|
azure: IntegrationUserInfo.array().optional(),
|
|
4040
3966
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
4041
3967
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
4042
3968
|
});
|
|
4043
|
-
var UserAnalyticsCleanupSchedule =
|
|
4044
|
-
userId:
|
|
4045
|
-
createdAt:
|
|
4046
|
-
deleteAt:
|
|
3969
|
+
var UserAnalyticsCleanupSchedule = z134.object({
|
|
3970
|
+
userId: z134.string(),
|
|
3971
|
+
createdAt: z134.coerce.date(),
|
|
3972
|
+
deleteAt: z134.coerce.date()
|
|
4047
3973
|
});
|
|
4048
3974
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4049
3975
|
createdAt: true
|
|
4050
3976
|
});
|
|
4051
|
-
var CreateUserInput =
|
|
4052
|
-
email:
|
|
4053
|
-
name:
|
|
4054
|
-
username:
|
|
3977
|
+
var CreateUserInput = z135.object({
|
|
3978
|
+
email: z135.string(),
|
|
3979
|
+
name: z135.string(),
|
|
3980
|
+
username: z135.string()
|
|
4055
3981
|
});
|
|
4056
|
-
var UserIdentity =
|
|
4057
|
-
id:
|
|
4058
|
-
userId:
|
|
3982
|
+
var UserIdentity = z136.object({
|
|
3983
|
+
id: z136.string(),
|
|
3984
|
+
userId: z136.string()
|
|
4059
3985
|
});
|
|
4060
|
-
var UserMinified =
|
|
4061
|
-
id:
|
|
4062
|
-
name:
|
|
4063
|
-
email:
|
|
4064
|
-
avatar:
|
|
3986
|
+
var UserMinified = z137.object({
|
|
3987
|
+
id: z137.string(),
|
|
3988
|
+
name: z137.string(),
|
|
3989
|
+
email: z137.string(),
|
|
3990
|
+
avatar: z137.string().optional()
|
|
4065
3991
|
});
|
|
4066
|
-
var LiveblocksNotificationSettings =
|
|
4067
|
-
sendCommentNotificationEmails:
|
|
3992
|
+
var LiveblocksNotificationSettings = z138.object({
|
|
3993
|
+
sendCommentNotificationEmails: z138.boolean()
|
|
4068
3994
|
});
|
|
4069
|
-
var UserNotificationSettings =
|
|
3995
|
+
var UserNotificationSettings = z138.object({
|
|
4070
3996
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4071
3997
|
});
|
|
4072
|
-
var UserOnboardingDepartment =
|
|
4073
|
-
var UserOnboardingJobLevel =
|
|
4074
|
-
var UserOnboarding =
|
|
4075
|
-
companyName:
|
|
4076
|
-
numberOfPeopleInOrg:
|
|
4077
|
-
numberOfPeopleInDesignTeam:
|
|
3998
|
+
var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3999
|
+
var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4000
|
+
var UserOnboarding = z139.object({
|
|
4001
|
+
companyName: z139.string().optional(),
|
|
4002
|
+
numberOfPeopleInOrg: z139.string().optional(),
|
|
4003
|
+
numberOfPeopleInDesignTeam: z139.string().optional(),
|
|
4078
4004
|
department: UserOnboardingDepartment.optional(),
|
|
4079
|
-
jobTitle:
|
|
4080
|
-
phase:
|
|
4005
|
+
jobTitle: z139.string().optional(),
|
|
4006
|
+
phase: z139.string().optional(),
|
|
4081
4007
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4082
|
-
designSystemName:
|
|
4083
|
-
defaultDestination:
|
|
4084
|
-
figmaUrl:
|
|
4085
|
-
isPageDraftOnboardingFinished:
|
|
4086
|
-
isApprovalsOnboardingFinished:
|
|
4087
|
-
});
|
|
4088
|
-
var UserProfile =
|
|
4089
|
-
name:
|
|
4090
|
-
avatar:
|
|
4091
|
-
nickname:
|
|
4008
|
+
designSystemName: z139.string().optional(),
|
|
4009
|
+
defaultDestination: z139.string().optional(),
|
|
4010
|
+
figmaUrl: z139.string().optional(),
|
|
4011
|
+
isPageDraftOnboardingFinished: z139.boolean().optional(),
|
|
4012
|
+
isApprovalsOnboardingFinished: z139.boolean().optional()
|
|
4013
|
+
});
|
|
4014
|
+
var UserProfile = z139.object({
|
|
4015
|
+
name: z139.string(),
|
|
4016
|
+
avatar: z139.string().optional(),
|
|
4017
|
+
nickname: z139.string().optional(),
|
|
4092
4018
|
onboarding: UserOnboarding.optional()
|
|
4093
4019
|
});
|
|
4094
4020
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4095
4021
|
avatar: true
|
|
4096
4022
|
});
|
|
4097
|
-
var UserTest =
|
|
4098
|
-
id:
|
|
4099
|
-
email:
|
|
4100
|
-
});
|
|
4101
|
-
var User =
|
|
4102
|
-
id:
|
|
4103
|
-
email:
|
|
4104
|
-
emailVerified:
|
|
4105
|
-
createdAt:
|
|
4106
|
-
trialExpiresAt:
|
|
4023
|
+
var UserTest = z140.object({
|
|
4024
|
+
id: z140.string(),
|
|
4025
|
+
email: z140.string()
|
|
4026
|
+
});
|
|
4027
|
+
var User = z141.object({
|
|
4028
|
+
id: z141.string(),
|
|
4029
|
+
email: z141.string(),
|
|
4030
|
+
emailVerified: z141.boolean(),
|
|
4031
|
+
createdAt: z141.coerce.date(),
|
|
4032
|
+
trialExpiresAt: z141.coerce.date().optional(),
|
|
4107
4033
|
profile: UserProfile,
|
|
4108
4034
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4109
|
-
loggedOutAt:
|
|
4110
|
-
isProtected:
|
|
4111
|
-
});
|
|
4112
|
-
var IntegrationDesignSystem =
|
|
4113
|
-
designSystemId:
|
|
4114
|
-
brandId:
|
|
4115
|
-
title:
|
|
4116
|
-
userId:
|
|
4117
|
-
date:
|
|
4118
|
-
});
|
|
4119
|
-
var IntegrationCredentialsType =
|
|
4120
|
-
var IntegrationCredentialsState =
|
|
4121
|
-
var IntegrationCredentialsProfile =
|
|
4122
|
-
id: nullishToOptional(
|
|
4123
|
-
email: nullishToOptional(
|
|
4124
|
-
handle: nullishToOptional(
|
|
4125
|
-
type: nullishToOptional(
|
|
4126
|
-
avatarUrl: nullishToOptional(
|
|
4127
|
-
organization: nullishToOptional(
|
|
4128
|
-
collection: nullishToOptional(
|
|
4129
|
-
});
|
|
4130
|
-
var IntegrationCredentials =
|
|
4131
|
-
id:
|
|
4035
|
+
loggedOutAt: z141.coerce.date().optional(),
|
|
4036
|
+
isProtected: z141.boolean()
|
|
4037
|
+
});
|
|
4038
|
+
var IntegrationDesignSystem = z142.object({
|
|
4039
|
+
designSystemId: z142.string(),
|
|
4040
|
+
brandId: z142.string(),
|
|
4041
|
+
title: z142.string().optional(),
|
|
4042
|
+
userId: z142.string().optional(),
|
|
4043
|
+
date: z142.coerce.date().optional()
|
|
4044
|
+
});
|
|
4045
|
+
var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4046
|
+
var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
|
|
4047
|
+
var IntegrationCredentialsProfile = z142.object({
|
|
4048
|
+
id: nullishToOptional(z142.string()),
|
|
4049
|
+
email: nullishToOptional(z142.string()),
|
|
4050
|
+
handle: nullishToOptional(z142.string()),
|
|
4051
|
+
type: nullishToOptional(z142.string()),
|
|
4052
|
+
avatarUrl: nullishToOptional(z142.string()),
|
|
4053
|
+
organization: nullishToOptional(z142.string()),
|
|
4054
|
+
collection: nullishToOptional(z142.string())
|
|
4055
|
+
});
|
|
4056
|
+
var IntegrationCredentials = z142.object({
|
|
4057
|
+
id: z142.string(),
|
|
4132
4058
|
type: IntegrationCredentialsType,
|
|
4133
|
-
integrationId:
|
|
4134
|
-
accessToken:
|
|
4135
|
-
userId:
|
|
4136
|
-
createdAt:
|
|
4137
|
-
refreshToken:
|
|
4138
|
-
tokenName:
|
|
4139
|
-
expiresAt:
|
|
4140
|
-
refreshedAt:
|
|
4141
|
-
username:
|
|
4142
|
-
appInstallationId:
|
|
4059
|
+
integrationId: z142.string(),
|
|
4060
|
+
accessToken: z142.string(),
|
|
4061
|
+
userId: z142.string(),
|
|
4062
|
+
createdAt: z142.coerce.date(),
|
|
4063
|
+
refreshToken: z142.string().optional(),
|
|
4064
|
+
tokenName: z142.string().optional(),
|
|
4065
|
+
expiresAt: z142.coerce.date().optional(),
|
|
4066
|
+
refreshedAt: z142.coerce.date().optional(),
|
|
4067
|
+
username: z142.string().optional(),
|
|
4068
|
+
appInstallationId: z142.string().optional(),
|
|
4143
4069
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4144
|
-
customUrl:
|
|
4070
|
+
customUrl: z142.string().optional(),
|
|
4145
4071
|
state: IntegrationCredentialsState,
|
|
4146
4072
|
user: UserMinified.optional()
|
|
4147
4073
|
});
|
|
4148
|
-
var ExtendedIntegrationType =
|
|
4074
|
+
var ExtendedIntegrationType = z142.enum([
|
|
4149
4075
|
"Figma",
|
|
4150
4076
|
"Github",
|
|
4151
4077
|
"Gitlab",
|
|
@@ -4156,26 +4082,26 @@ var ExtendedIntegrationType = z145.enum([
|
|
|
4156
4082
|
]);
|
|
4157
4083
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4158
4084
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4159
|
-
var Integration =
|
|
4160
|
-
id:
|
|
4161
|
-
workspaceId:
|
|
4085
|
+
var Integration = z142.object({
|
|
4086
|
+
id: z142.string(),
|
|
4087
|
+
workspaceId: z142.string(),
|
|
4162
4088
|
type: IntegrationType,
|
|
4163
|
-
createdAt:
|
|
4164
|
-
integrationCredentials:
|
|
4165
|
-
});
|
|
4166
|
-
var IntegrationToken =
|
|
4167
|
-
access_token:
|
|
4168
|
-
refresh_token:
|
|
4169
|
-
expires_in:
|
|
4170
|
-
token_type:
|
|
4171
|
-
token_name:
|
|
4172
|
-
token_azure_organization_name:
|
|
4089
|
+
createdAt: z142.coerce.date(),
|
|
4090
|
+
integrationCredentials: z142.array(IntegrationCredentials).optional()
|
|
4091
|
+
});
|
|
4092
|
+
var IntegrationToken = z142.object({
|
|
4093
|
+
access_token: z142.string(),
|
|
4094
|
+
refresh_token: z142.string().optional(),
|
|
4095
|
+
expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
|
|
4096
|
+
token_type: z142.string().optional(),
|
|
4097
|
+
token_name: z142.string().optional(),
|
|
4098
|
+
token_azure_organization_name: z142.string().optional(),
|
|
4173
4099
|
// Azure Cloud PAT only
|
|
4174
|
-
token_azure_collection_name:
|
|
4100
|
+
token_azure_collection_name: z142.string().optional(),
|
|
4175
4101
|
// Azure Server PAT only
|
|
4176
|
-
token_bitbucket_username:
|
|
4102
|
+
token_bitbucket_username: z142.string().optional(),
|
|
4177
4103
|
// Bitbucket only
|
|
4178
|
-
custom_url:
|
|
4104
|
+
custom_url: z142.string().optional().transform((value) => {
|
|
4179
4105
|
if (!value?.trim())
|
|
4180
4106
|
return void 0;
|
|
4181
4107
|
return formatCustomUrl(value);
|
|
@@ -4211,6 +4137,87 @@ function formatCustomUrl(url) {
|
|
|
4211
4137
|
}
|
|
4212
4138
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4213
4139
|
}
|
|
4140
|
+
var NpmRegistryAuthType = z143.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4141
|
+
var NpmRegistryType = z143.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4142
|
+
var NpmRegistryBasicAuthConfig = z143.object({
|
|
4143
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4144
|
+
username: z143.string(),
|
|
4145
|
+
password: z143.string()
|
|
4146
|
+
});
|
|
4147
|
+
var NpmRegistryBearerAuthConfig = z143.object({
|
|
4148
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4149
|
+
accessToken: z143.string()
|
|
4150
|
+
});
|
|
4151
|
+
var NpmRegistryNoAuthConfig = z143.object({
|
|
4152
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.None)
|
|
4153
|
+
});
|
|
4154
|
+
var NpmRegistrCustomAuthConfig = z143.object({
|
|
4155
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4156
|
+
authHeaderName: z143.string(),
|
|
4157
|
+
authHeaderValue: z143.string()
|
|
4158
|
+
});
|
|
4159
|
+
var NpmRegistryAuthConfig = z143.discriminatedUnion("authType", [
|
|
4160
|
+
NpmRegistryBasicAuthConfig,
|
|
4161
|
+
NpmRegistryBearerAuthConfig,
|
|
4162
|
+
NpmRegistryNoAuthConfig,
|
|
4163
|
+
NpmRegistrCustomAuthConfig
|
|
4164
|
+
]);
|
|
4165
|
+
var NpmRegistryConfigBase = z143.object({
|
|
4166
|
+
registryType: NpmRegistryType,
|
|
4167
|
+
enabledScopes: z143.array(z143.string()),
|
|
4168
|
+
customRegistryUrl: z143.string().optional(),
|
|
4169
|
+
bypassProxy: z143.boolean().default(false),
|
|
4170
|
+
npmProxyRegistryConfigId: z143.string().optional(),
|
|
4171
|
+
npmProxyVersion: z143.number().optional()
|
|
4172
|
+
});
|
|
4173
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4174
|
+
var SsoProvider = z144.object({
|
|
4175
|
+
providerId: z144.string(),
|
|
4176
|
+
defaultAutoInviteValue: z144.boolean(),
|
|
4177
|
+
autoInviteDomains: z144.record(z144.string(), z144.boolean()),
|
|
4178
|
+
skipDocsSupernovaLogin: z144.boolean(),
|
|
4179
|
+
areInvitesDisabled: z144.boolean(),
|
|
4180
|
+
isTestMode: z144.boolean(),
|
|
4181
|
+
emailDomains: z144.array(z144.string()),
|
|
4182
|
+
metadataXml: z144.string().nullish()
|
|
4183
|
+
});
|
|
4184
|
+
var isValidCIDR = (value) => {
|
|
4185
|
+
return IPCIDR.isValidAddress(value);
|
|
4186
|
+
};
|
|
4187
|
+
var WorkspaceIpWhitelistEntry = z145.object({
|
|
4188
|
+
isEnabled: z145.boolean(),
|
|
4189
|
+
name: z145.string(),
|
|
4190
|
+
range: z145.string().refine(isValidCIDR, {
|
|
4191
|
+
message: "Invalid IP CIDR"
|
|
4192
|
+
})
|
|
4193
|
+
});
|
|
4194
|
+
var WorkspaceIpSettings = z145.object({
|
|
4195
|
+
isEnabledForCloud: z145.boolean(),
|
|
4196
|
+
isEnabledForDocs: z145.boolean(),
|
|
4197
|
+
entries: z145.array(WorkspaceIpWhitelistEntry)
|
|
4198
|
+
});
|
|
4199
|
+
var WorkspaceProfile = z145.object({
|
|
4200
|
+
name: z145.string(),
|
|
4201
|
+
handle: z145.string(),
|
|
4202
|
+
color: z145.string(),
|
|
4203
|
+
avatar: nullishToOptional(z145.string()),
|
|
4204
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
4205
|
+
});
|
|
4206
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4207
|
+
avatar: true
|
|
4208
|
+
});
|
|
4209
|
+
var Workspace = z145.object({
|
|
4210
|
+
id: z145.string(),
|
|
4211
|
+
profile: WorkspaceProfile,
|
|
4212
|
+
subscription: Subscription,
|
|
4213
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4214
|
+
sso: nullishToOptional(SsoProvider),
|
|
4215
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4216
|
+
});
|
|
4217
|
+
var WorkspaceWithDesignSystems = z145.object({
|
|
4218
|
+
workspace: Workspace,
|
|
4219
|
+
designSystems: z145.array(DesignSystem)
|
|
4220
|
+
});
|
|
4214
4221
|
var WorkspaceDump = z146.object({
|
|
4215
4222
|
workspace: Workspace,
|
|
4216
4223
|
designSystems: DesignSystemDump.array(),
|