@supernova-studio/model 0.48.30 → 0.48.32
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 +66 -33
- package/dist/index.d.ts +66 -33
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +687 -670
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/documentation/index.ts +1 -0
- package/src/dsm/documentation/settings.ts +18 -0
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 z125 } 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 z124 } from "zod";
|
|
391
391
|
|
|
392
392
|
// src/export/export-destinations.ts
|
|
393
|
-
import { z as
|
|
393
|
+
import { z as z123 } from "zod";
|
|
394
394
|
|
|
395
395
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
396
396
|
import { z as z18 } from "zod";
|
|
@@ -3822,42 +3822,58 @@ var DocumentationPage = z105.object({
|
|
|
3822
3822
|
updatedAt: z105.coerce.date()
|
|
3823
3823
|
});
|
|
3824
3824
|
|
|
3825
|
-
// src/dsm/documentation/
|
|
3825
|
+
// src/dsm/documentation/settings.ts
|
|
3826
3826
|
import { z as z106 } from "zod";
|
|
3827
|
-
var
|
|
3828
|
-
|
|
3829
|
-
authorId: z106.string(),
|
|
3830
|
-
threadId: z106.string(),
|
|
3831
|
-
roomId: z106.string(),
|
|
3832
|
-
createdAt: z106.coerce.date(),
|
|
3833
|
-
editedAt: z106.coerce.date().optional(),
|
|
3834
|
-
deletedAt: z106.coerce.date().optional(),
|
|
3835
|
-
body: z106.string()
|
|
3836
|
-
});
|
|
3837
|
-
var DocumentationCommentThread = z106.object({
|
|
3838
|
-
id: z106.string(),
|
|
3839
|
-
roomId: z106.string(),
|
|
3840
|
-
pagePersistentId: z106.string(),
|
|
3841
|
-
brandId: z106.string(),
|
|
3827
|
+
var DocumentationSettings = z106.object({
|
|
3828
|
+
// Basic
|
|
3842
3829
|
designSystemVersionId: z106.string(),
|
|
3843
|
-
designSystemId: z106.string(),
|
|
3844
|
-
blockId: z106.string().optional(),
|
|
3845
|
-
resolved: z106.boolean(),
|
|
3846
3830
|
createdAt: z106.coerce.date(),
|
|
3847
|
-
updatedAt: z106.coerce.date()
|
|
3831
|
+
updatedAt: z106.coerce.date(),
|
|
3832
|
+
// Configuration
|
|
3833
|
+
isTabbedLayoutEnabled: z106.boolean(),
|
|
3834
|
+
storybookEmbedErrorMessage: z106.string().optional(),
|
|
3835
|
+
renderCodePackageJson: z106.string().optional(),
|
|
3836
|
+
selectedBrandPersistentId: z106.string().optional(),
|
|
3837
|
+
serveDefaultVersionOnly: z106.boolean(),
|
|
3838
|
+
isPublic: z106.boolean()
|
|
3848
3839
|
});
|
|
3849
3840
|
|
|
3850
|
-
// src/dsm/
|
|
3841
|
+
// src/dsm/documentation/thread.ts
|
|
3851
3842
|
import { z as z107 } from "zod";
|
|
3852
|
-
var
|
|
3853
|
-
|
|
3843
|
+
var DocumentationComment = z107.object({
|
|
3844
|
+
id: z107.string(),
|
|
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({
|
|
3854
3854
|
id: z107.string(),
|
|
3855
|
-
|
|
3855
|
+
roomId: z107.string(),
|
|
3856
|
+
pagePersistentId: z107.string(),
|
|
3857
|
+
brandId: z107.string(),
|
|
3856
3858
|
designSystemVersionId: z107.string(),
|
|
3859
|
+
designSystemId: z107.string(),
|
|
3860
|
+
blockId: z107.string().optional(),
|
|
3861
|
+
resolved: z107.boolean(),
|
|
3857
3862
|
createdAt: z107.coerce.date(),
|
|
3858
|
-
updatedAt: z107.coerce.date()
|
|
3863
|
+
updatedAt: z107.coerce.date()
|
|
3864
|
+
});
|
|
3865
|
+
|
|
3866
|
+
// src/dsm/element-snapshots/base.ts
|
|
3867
|
+
import { z as z108 } from "zod";
|
|
3868
|
+
var DesignElementSnapshotReason = z108.enum(["Publish", "Deletion"]);
|
|
3869
|
+
var DesignElementSnapshotBase = z108.object({
|
|
3870
|
+
id: z108.string(),
|
|
3871
|
+
persistentId: z108.string(),
|
|
3872
|
+
designSystemVersionId: z108.string(),
|
|
3873
|
+
createdAt: z108.coerce.date(),
|
|
3874
|
+
updatedAt: z108.coerce.date(),
|
|
3859
3875
|
reason: DesignElementSnapshotReason,
|
|
3860
|
-
createdByUserId:
|
|
3876
|
+
createdByUserId: z108.string()
|
|
3861
3877
|
});
|
|
3862
3878
|
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
3863
3879
|
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
@@ -3868,11 +3884,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
|
3868
3884
|
}
|
|
3869
3885
|
|
|
3870
3886
|
// src/dsm/element-snapshots/documentation-page-snapshot.ts
|
|
3871
|
-
import { z as
|
|
3887
|
+
import { z as z109 } from "zod";
|
|
3872
3888
|
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
3873
3889
|
page: DocumentationPageV2,
|
|
3874
|
-
pageContentHash:
|
|
3875
|
-
pageContentStorageKey:
|
|
3890
|
+
pageContentHash: z109.string(),
|
|
3891
|
+
pageContentStorageKey: z109.string()
|
|
3876
3892
|
});
|
|
3877
3893
|
function pickLatestPageSnapshots(snapshots) {
|
|
3878
3894
|
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
@@ -3887,182 +3903,182 @@ function pickLatestGroupSnapshots(snapshots) {
|
|
|
3887
3903
|
}
|
|
3888
3904
|
|
|
3889
3905
|
// src/dsm/views/column.ts
|
|
3890
|
-
import { z as
|
|
3891
|
-
var ElementViewBaseColumnType =
|
|
3892
|
-
var ElementViewColumnType =
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3906
|
+
import { z as z110 } from "zod";
|
|
3907
|
+
var ElementViewBaseColumnType = z110.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3908
|
+
var ElementViewColumnType = z110.union([
|
|
3909
|
+
z110.literal("BaseProperty"),
|
|
3910
|
+
z110.literal("PropertyDefinition"),
|
|
3911
|
+
z110.literal("Theme")
|
|
3896
3912
|
]);
|
|
3897
|
-
var ElementViewColumnSharedAttributes =
|
|
3898
|
-
id:
|
|
3899
|
-
persistentId:
|
|
3900
|
-
elementDataViewId:
|
|
3901
|
-
sortPosition:
|
|
3902
|
-
width:
|
|
3913
|
+
var ElementViewColumnSharedAttributes = z110.object({
|
|
3914
|
+
id: z110.string(),
|
|
3915
|
+
persistentId: z110.string(),
|
|
3916
|
+
elementDataViewId: z110.string(),
|
|
3917
|
+
sortPosition: z110.number(),
|
|
3918
|
+
width: z110.number()
|
|
3903
3919
|
});
|
|
3904
3920
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3905
|
-
type:
|
|
3921
|
+
type: z110.literal("BaseProperty"),
|
|
3906
3922
|
basePropertyType: ElementViewBaseColumnType
|
|
3907
3923
|
});
|
|
3908
3924
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3909
|
-
type:
|
|
3910
|
-
propertyDefinitionId:
|
|
3925
|
+
type: z110.literal("PropertyDefinition"),
|
|
3926
|
+
propertyDefinitionId: z110.string()
|
|
3911
3927
|
});
|
|
3912
3928
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3913
|
-
type:
|
|
3914
|
-
themeId:
|
|
3929
|
+
type: z110.literal("Theme"),
|
|
3930
|
+
themeId: z110.string()
|
|
3915
3931
|
});
|
|
3916
|
-
var ElementViewColumn =
|
|
3932
|
+
var ElementViewColumn = z110.discriminatedUnion("type", [
|
|
3917
3933
|
ElementViewBasePropertyColumn,
|
|
3918
3934
|
ElementViewPropertyDefinitionColumn,
|
|
3919
3935
|
ElementViewThemeColumn
|
|
3920
3936
|
]);
|
|
3921
3937
|
|
|
3922
3938
|
// src/dsm/views/view.ts
|
|
3923
|
-
import { z as z110 } from "zod";
|
|
3924
|
-
var ElementView = z110.object({
|
|
3925
|
-
id: z110.string(),
|
|
3926
|
-
persistentId: z110.string(),
|
|
3927
|
-
designSystemVersionId: z110.string(),
|
|
3928
|
-
name: z110.string(),
|
|
3929
|
-
description: z110.string(),
|
|
3930
|
-
targetElementType: ElementPropertyTargetType,
|
|
3931
|
-
isDefault: z110.boolean()
|
|
3932
|
-
});
|
|
3933
|
-
|
|
3934
|
-
// src/dsm/brand.ts
|
|
3935
3939
|
import { z as z111 } from "zod";
|
|
3936
|
-
var
|
|
3940
|
+
var ElementView = z111.object({
|
|
3937
3941
|
id: z111.string(),
|
|
3938
|
-
designSystemVersionId: z111.string(),
|
|
3939
3942
|
persistentId: z111.string(),
|
|
3943
|
+
designSystemVersionId: z111.string(),
|
|
3940
3944
|
name: z111.string(),
|
|
3941
|
-
description: z111.string()
|
|
3945
|
+
description: z111.string(),
|
|
3946
|
+
targetElementType: ElementPropertyTargetType,
|
|
3947
|
+
isDefault: z111.boolean()
|
|
3948
|
+
});
|
|
3949
|
+
|
|
3950
|
+
// src/dsm/brand.ts
|
|
3951
|
+
import { z as z112 } from "zod";
|
|
3952
|
+
var Brand = z112.object({
|
|
3953
|
+
id: z112.string(),
|
|
3954
|
+
designSystemVersionId: z112.string(),
|
|
3955
|
+
persistentId: z112.string(),
|
|
3956
|
+
name: z112.string(),
|
|
3957
|
+
description: z112.string()
|
|
3942
3958
|
});
|
|
3943
3959
|
|
|
3944
3960
|
// src/dsm/design-system-update.ts
|
|
3945
|
-
import { z as
|
|
3961
|
+
import { z as z117 } from "zod";
|
|
3946
3962
|
|
|
3947
3963
|
// src/dsm/design-system.ts
|
|
3948
|
-
import { z as
|
|
3964
|
+
import { z as z116 } from "zod";
|
|
3949
3965
|
|
|
3950
3966
|
// src/workspace/workspace.ts
|
|
3951
3967
|
import IPCIDR from "ip-cidr";
|
|
3952
|
-
import { z as
|
|
3968
|
+
import { z as z115 } from "zod";
|
|
3953
3969
|
|
|
3954
3970
|
// src/workspace/npm-registry-settings.ts
|
|
3955
|
-
import { z as
|
|
3956
|
-
var NpmRegistryAuthType =
|
|
3957
|
-
var NpmRegistryType =
|
|
3958
|
-
var NpmRegistryBasicAuthConfig =
|
|
3959
|
-
authType:
|
|
3960
|
-
username:
|
|
3961
|
-
password:
|
|
3962
|
-
});
|
|
3963
|
-
var NpmRegistryBearerAuthConfig =
|
|
3964
|
-
authType:
|
|
3965
|
-
accessToken:
|
|
3966
|
-
});
|
|
3967
|
-
var NpmRegistryNoAuthConfig =
|
|
3968
|
-
authType:
|
|
3969
|
-
});
|
|
3970
|
-
var NpmRegistrCustomAuthConfig =
|
|
3971
|
-
authType:
|
|
3972
|
-
authHeaderName:
|
|
3973
|
-
authHeaderValue:
|
|
3974
|
-
});
|
|
3975
|
-
var NpmRegistryAuthConfig =
|
|
3971
|
+
import { z as z113 } from "zod";
|
|
3972
|
+
var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3973
|
+
var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3974
|
+
var NpmRegistryBasicAuthConfig = z113.object({
|
|
3975
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3976
|
+
username: z113.string(),
|
|
3977
|
+
password: z113.string()
|
|
3978
|
+
});
|
|
3979
|
+
var NpmRegistryBearerAuthConfig = z113.object({
|
|
3980
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3981
|
+
accessToken: z113.string()
|
|
3982
|
+
});
|
|
3983
|
+
var NpmRegistryNoAuthConfig = z113.object({
|
|
3984
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.None)
|
|
3985
|
+
});
|
|
3986
|
+
var NpmRegistrCustomAuthConfig = z113.object({
|
|
3987
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3988
|
+
authHeaderName: z113.string(),
|
|
3989
|
+
authHeaderValue: z113.string()
|
|
3990
|
+
});
|
|
3991
|
+
var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
|
|
3976
3992
|
NpmRegistryBasicAuthConfig,
|
|
3977
3993
|
NpmRegistryBearerAuthConfig,
|
|
3978
3994
|
NpmRegistryNoAuthConfig,
|
|
3979
3995
|
NpmRegistrCustomAuthConfig
|
|
3980
3996
|
]);
|
|
3981
|
-
var NpmRegistryConfigBase =
|
|
3997
|
+
var NpmRegistryConfigBase = z113.object({
|
|
3982
3998
|
registryType: NpmRegistryType,
|
|
3983
|
-
enabledScopes:
|
|
3984
|
-
customRegistryUrl:
|
|
3985
|
-
bypassProxy:
|
|
3986
|
-
npmProxyRegistryConfigId:
|
|
3987
|
-
npmProxyVersion:
|
|
3999
|
+
enabledScopes: z113.array(z113.string()),
|
|
4000
|
+
customRegistryUrl: z113.string().optional(),
|
|
4001
|
+
bypassProxy: z113.boolean().default(false),
|
|
4002
|
+
npmProxyRegistryConfigId: z113.string().optional(),
|
|
4003
|
+
npmProxyVersion: z113.number().optional()
|
|
3988
4004
|
});
|
|
3989
4005
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3990
4006
|
|
|
3991
4007
|
// src/workspace/sso-provider.ts
|
|
3992
|
-
import { z as
|
|
3993
|
-
var SsoProvider =
|
|
3994
|
-
providerId:
|
|
3995
|
-
defaultAutoInviteValue:
|
|
3996
|
-
autoInviteDomains:
|
|
3997
|
-
skipDocsSupernovaLogin:
|
|
3998
|
-
areInvitesDisabled:
|
|
3999
|
-
isTestMode:
|
|
4000
|
-
emailDomains:
|
|
4001
|
-
metadataXml:
|
|
4008
|
+
import { z as z114 } from "zod";
|
|
4009
|
+
var SsoProvider = z114.object({
|
|
4010
|
+
providerId: z114.string(),
|
|
4011
|
+
defaultAutoInviteValue: z114.boolean(),
|
|
4012
|
+
autoInviteDomains: z114.record(z114.string(), z114.boolean()),
|
|
4013
|
+
skipDocsSupernovaLogin: z114.boolean(),
|
|
4014
|
+
areInvitesDisabled: z114.boolean(),
|
|
4015
|
+
isTestMode: z114.boolean(),
|
|
4016
|
+
emailDomains: z114.array(z114.string()),
|
|
4017
|
+
metadataXml: z114.string().nullish()
|
|
4002
4018
|
});
|
|
4003
4019
|
|
|
4004
4020
|
// src/workspace/workspace.ts
|
|
4005
4021
|
var isValidCIDR = (value) => {
|
|
4006
4022
|
return IPCIDR.isValidAddress(value);
|
|
4007
4023
|
};
|
|
4008
|
-
var WorkspaceIpWhitelistEntry =
|
|
4009
|
-
isEnabled:
|
|
4010
|
-
name:
|
|
4011
|
-
range:
|
|
4024
|
+
var WorkspaceIpWhitelistEntry = z115.object({
|
|
4025
|
+
isEnabled: z115.boolean(),
|
|
4026
|
+
name: z115.string(),
|
|
4027
|
+
range: z115.string().refine(isValidCIDR, {
|
|
4012
4028
|
message: "Invalid IP CIDR"
|
|
4013
4029
|
})
|
|
4014
4030
|
});
|
|
4015
|
-
var WorkspaceIpSettings =
|
|
4016
|
-
isEnabledForCloud:
|
|
4017
|
-
isEnabledForDocs:
|
|
4018
|
-
entries:
|
|
4031
|
+
var WorkspaceIpSettings = z115.object({
|
|
4032
|
+
isEnabledForCloud: z115.boolean(),
|
|
4033
|
+
isEnabledForDocs: z115.boolean(),
|
|
4034
|
+
entries: z115.array(WorkspaceIpWhitelistEntry)
|
|
4019
4035
|
});
|
|
4020
|
-
var WorkspaceProfile =
|
|
4021
|
-
name:
|
|
4022
|
-
handle:
|
|
4023
|
-
color:
|
|
4024
|
-
avatar: nullishToOptional(
|
|
4036
|
+
var WorkspaceProfile = z115.object({
|
|
4037
|
+
name: z115.string(),
|
|
4038
|
+
handle: z115.string(),
|
|
4039
|
+
color: z115.string(),
|
|
4040
|
+
avatar: nullishToOptional(z115.string()),
|
|
4025
4041
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4026
4042
|
});
|
|
4027
4043
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4028
4044
|
avatar: true
|
|
4029
4045
|
});
|
|
4030
|
-
var Workspace =
|
|
4031
|
-
id:
|
|
4046
|
+
var Workspace = z115.object({
|
|
4047
|
+
id: z115.string(),
|
|
4032
4048
|
profile: WorkspaceProfile,
|
|
4033
4049
|
subscription: Subscription,
|
|
4034
4050
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4035
4051
|
sso: nullishToOptional(SsoProvider),
|
|
4036
4052
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4037
4053
|
});
|
|
4038
|
-
var WorkspaceWithDesignSystems =
|
|
4054
|
+
var WorkspaceWithDesignSystems = z115.object({
|
|
4039
4055
|
workspace: Workspace,
|
|
4040
|
-
designSystems:
|
|
4056
|
+
designSystems: z115.array(DesignSystem)
|
|
4041
4057
|
});
|
|
4042
4058
|
|
|
4043
4059
|
// src/dsm/design-system.ts
|
|
4044
|
-
var DesignSystemSwitcher =
|
|
4045
|
-
isEnabled:
|
|
4046
|
-
designSystemIds:
|
|
4047
|
-
});
|
|
4048
|
-
var DesignSystem =
|
|
4049
|
-
id:
|
|
4050
|
-
workspaceId:
|
|
4051
|
-
name:
|
|
4052
|
-
description:
|
|
4053
|
-
docExporterId: nullishToOptional(
|
|
4054
|
-
docSlug:
|
|
4055
|
-
docUserSlug: nullishToOptional(
|
|
4056
|
-
docSlugDeprecated:
|
|
4057
|
-
isPublic:
|
|
4058
|
-
isMultibrand:
|
|
4059
|
-
docViewUrl: nullishToOptional(
|
|
4060
|
-
basePrefixes:
|
|
4060
|
+
var DesignSystemSwitcher = z116.object({
|
|
4061
|
+
isEnabled: z116.boolean(),
|
|
4062
|
+
designSystemIds: z116.array(z116.string())
|
|
4063
|
+
});
|
|
4064
|
+
var DesignSystem = z116.object({
|
|
4065
|
+
id: z116.string(),
|
|
4066
|
+
workspaceId: z116.string(),
|
|
4067
|
+
name: z116.string(),
|
|
4068
|
+
description: z116.string(),
|
|
4069
|
+
docExporterId: nullishToOptional(z116.string()),
|
|
4070
|
+
docSlug: z116.string(),
|
|
4071
|
+
docUserSlug: nullishToOptional(z116.string()),
|
|
4072
|
+
docSlugDeprecated: z116.string(),
|
|
4073
|
+
isPublic: z116.boolean(),
|
|
4074
|
+
isMultibrand: z116.boolean(),
|
|
4075
|
+
docViewUrl: nullishToOptional(z116.string()),
|
|
4076
|
+
basePrefixes: z116.array(z116.string()),
|
|
4061
4077
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4062
|
-
createdAt:
|
|
4063
|
-
updatedAt:
|
|
4078
|
+
createdAt: z116.coerce.date(),
|
|
4079
|
+
updatedAt: z116.coerce.date()
|
|
4064
4080
|
});
|
|
4065
|
-
var DesignSystemWithWorkspace =
|
|
4081
|
+
var DesignSystemWithWorkspace = z116.object({
|
|
4066
4082
|
designSystem: DesignSystem,
|
|
4067
4083
|
workspace: Workspace
|
|
4068
4084
|
});
|
|
@@ -4071,9 +4087,9 @@ var DesignSystemWithWorkspace = z115.object({
|
|
|
4071
4087
|
var DS_NAME_MIN_LENGTH = 2;
|
|
4072
4088
|
var DS_NAME_MAX_LENGTH = 64;
|
|
4073
4089
|
var DS_DESC_MAX_LENGTH = 2048;
|
|
4074
|
-
var DesignSystemUpdateInputMetadata =
|
|
4075
|
-
name:
|
|
4076
|
-
description:
|
|
4090
|
+
var DesignSystemUpdateInputMetadata = z117.object({
|
|
4091
|
+
name: z117.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
4092
|
+
description: z117.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
4077
4093
|
});
|
|
4078
4094
|
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
4079
4095
|
id: true,
|
|
@@ -4087,185 +4103,185 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
4087
4103
|
});
|
|
4088
4104
|
|
|
4089
4105
|
// src/dsm/desing-system-create.ts
|
|
4090
|
-
import { z as
|
|
4106
|
+
import { z as z118 } from "zod";
|
|
4091
4107
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
4092
4108
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
4093
4109
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
4094
|
-
var DesignSystemCreateInputMetadata =
|
|
4095
|
-
name:
|
|
4096
|
-
description:
|
|
4110
|
+
var DesignSystemCreateInputMetadata = z118.object({
|
|
4111
|
+
name: z118.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
4112
|
+
description: z118.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
4097
4113
|
});
|
|
4098
|
-
var DesignSystemCreateInput =
|
|
4114
|
+
var DesignSystemCreateInput = z118.object({
|
|
4099
4115
|
meta: DesignSystemCreateInputMetadata,
|
|
4100
|
-
workspaceId:
|
|
4101
|
-
isPublic:
|
|
4102
|
-
basePrefixes:
|
|
4103
|
-
docUserSlug:
|
|
4104
|
-
source:
|
|
4116
|
+
workspaceId: z118.string(),
|
|
4117
|
+
isPublic: z118.boolean().optional(),
|
|
4118
|
+
basePrefixes: z118.array(z118.string()).optional(),
|
|
4119
|
+
docUserSlug: z118.string().nullish().optional(),
|
|
4120
|
+
source: z118.array(z118.string()).optional()
|
|
4105
4121
|
});
|
|
4106
4122
|
|
|
4107
4123
|
// src/dsm/exporter-property-values-collection.ts
|
|
4108
|
-
import { z as
|
|
4109
|
-
var ExporterPropertyImageValue =
|
|
4124
|
+
import { z as z119 } from "zod";
|
|
4125
|
+
var ExporterPropertyImageValue = z119.object({
|
|
4110
4126
|
asset: PageBlockAsset.optional(),
|
|
4111
|
-
assetId:
|
|
4112
|
-
assetUrl:
|
|
4113
|
-
});
|
|
4114
|
-
var ExporterPropertyValue =
|
|
4115
|
-
key:
|
|
4116
|
-
value:
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4127
|
+
assetId: z119.string().optional(),
|
|
4128
|
+
assetUrl: z119.string().optional()
|
|
4129
|
+
});
|
|
4130
|
+
var ExporterPropertyValue = z119.object({
|
|
4131
|
+
key: z119.string(),
|
|
4132
|
+
value: z119.union([
|
|
4133
|
+
z119.number(),
|
|
4134
|
+
z119.string(),
|
|
4135
|
+
z119.boolean(),
|
|
4120
4136
|
ExporterPropertyImageValue,
|
|
4121
4137
|
ColorTokenData,
|
|
4122
4138
|
TypographyTokenData
|
|
4123
4139
|
])
|
|
4124
4140
|
});
|
|
4125
|
-
var ExporterPropertyValuesCollection =
|
|
4126
|
-
id:
|
|
4127
|
-
designSystemId:
|
|
4128
|
-
exporterId:
|
|
4129
|
-
values:
|
|
4141
|
+
var ExporterPropertyValuesCollection = z119.object({
|
|
4142
|
+
id: z119.string(),
|
|
4143
|
+
designSystemId: z119.string(),
|
|
4144
|
+
exporterId: z119.string(),
|
|
4145
|
+
values: z119.array(ExporterPropertyValue)
|
|
4130
4146
|
});
|
|
4131
4147
|
|
|
4132
4148
|
// src/dsm/published-doc-page.ts
|
|
4133
|
-
import { z as
|
|
4149
|
+
import { z as z120 } from "zod";
|
|
4134
4150
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4135
4151
|
function tryParseShortPersistentId(url = "/") {
|
|
4136
4152
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4137
4153
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4138
4154
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4139
4155
|
}
|
|
4140
|
-
var PublishedDocPage =
|
|
4141
|
-
id:
|
|
4142
|
-
publishedDocId:
|
|
4143
|
-
pageShortPersistentId:
|
|
4144
|
-
pathV1:
|
|
4145
|
-
pathV2:
|
|
4146
|
-
storagePath:
|
|
4147
|
-
locale:
|
|
4148
|
-
isPrivate:
|
|
4149
|
-
isHidden:
|
|
4150
|
-
createdAt:
|
|
4151
|
-
updatedAt:
|
|
4156
|
+
var PublishedDocPage = z120.object({
|
|
4157
|
+
id: z120.string(),
|
|
4158
|
+
publishedDocId: z120.string(),
|
|
4159
|
+
pageShortPersistentId: z120.string(),
|
|
4160
|
+
pathV1: z120.string(),
|
|
4161
|
+
pathV2: z120.string(),
|
|
4162
|
+
storagePath: z120.string(),
|
|
4163
|
+
locale: z120.string().optional(),
|
|
4164
|
+
isPrivate: z120.boolean(),
|
|
4165
|
+
isHidden: z120.boolean(),
|
|
4166
|
+
createdAt: z120.coerce.date(),
|
|
4167
|
+
updatedAt: z120.coerce.date()
|
|
4152
4168
|
});
|
|
4153
4169
|
|
|
4154
4170
|
// src/dsm/published-doc.ts
|
|
4155
|
-
import { z as
|
|
4171
|
+
import { z as z121 } from "zod";
|
|
4156
4172
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4157
|
-
var PublishedDocEnvironment =
|
|
4158
|
-
var PublishedDocsChecksums =
|
|
4159
|
-
var PublishedDocRoutingVersion =
|
|
4160
|
-
var PublishedDoc =
|
|
4161
|
-
id:
|
|
4162
|
-
designSystemVersionId:
|
|
4163
|
-
createdAt:
|
|
4164
|
-
updatedAt:
|
|
4165
|
-
lastPublishedAt:
|
|
4166
|
-
isDefault:
|
|
4167
|
-
isPublic:
|
|
4173
|
+
var PublishedDocEnvironment = z121.enum(publishedDocEnvironments);
|
|
4174
|
+
var PublishedDocsChecksums = z121.record(z121.string());
|
|
4175
|
+
var PublishedDocRoutingVersion = z121.enum(["1", "2"]);
|
|
4176
|
+
var PublishedDoc = z121.object({
|
|
4177
|
+
id: z121.string(),
|
|
4178
|
+
designSystemVersionId: z121.string(),
|
|
4179
|
+
createdAt: z121.coerce.date(),
|
|
4180
|
+
updatedAt: z121.coerce.date(),
|
|
4181
|
+
lastPublishedAt: z121.coerce.date(),
|
|
4182
|
+
isDefault: z121.boolean(),
|
|
4183
|
+
isPublic: z121.boolean(),
|
|
4168
4184
|
environment: PublishedDocEnvironment,
|
|
4169
4185
|
checksums: PublishedDocsChecksums,
|
|
4170
|
-
storagePath:
|
|
4171
|
-
wasMigrated:
|
|
4186
|
+
storagePath: z121.string(),
|
|
4187
|
+
wasMigrated: z121.boolean(),
|
|
4172
4188
|
routingVersion: PublishedDocRoutingVersion,
|
|
4173
|
-
usesLocalizations:
|
|
4174
|
-
wasPublishedWithLocalizations:
|
|
4175
|
-
tokenCount:
|
|
4176
|
-
assetCount:
|
|
4189
|
+
usesLocalizations: z121.boolean(),
|
|
4190
|
+
wasPublishedWithLocalizations: z121.boolean(),
|
|
4191
|
+
tokenCount: z121.number(),
|
|
4192
|
+
assetCount: z121.number()
|
|
4177
4193
|
});
|
|
4178
4194
|
|
|
4179
4195
|
// src/dsm/version.ts
|
|
4180
|
-
import { z as
|
|
4181
|
-
var DesignSystemVersion =
|
|
4182
|
-
id:
|
|
4183
|
-
version:
|
|
4184
|
-
createdAt:
|
|
4185
|
-
designSystemId:
|
|
4186
|
-
name:
|
|
4187
|
-
comment:
|
|
4188
|
-
isReadonly:
|
|
4189
|
-
changeLog:
|
|
4190
|
-
parentId:
|
|
4191
|
-
isDraftsFeatureAdopted:
|
|
4192
|
-
});
|
|
4193
|
-
var VersionCreationJobStatus =
|
|
4194
|
-
var VersionCreationJob =
|
|
4195
|
-
id:
|
|
4196
|
-
version:
|
|
4197
|
-
designSystemId:
|
|
4198
|
-
designSystemVersionId: nullishToOptional(
|
|
4196
|
+
import { z as z122 } from "zod";
|
|
4197
|
+
var DesignSystemVersion = z122.object({
|
|
4198
|
+
id: z122.string(),
|
|
4199
|
+
version: z122.string(),
|
|
4200
|
+
createdAt: z122.date(),
|
|
4201
|
+
designSystemId: z122.string(),
|
|
4202
|
+
name: z122.string(),
|
|
4203
|
+
comment: z122.string(),
|
|
4204
|
+
isReadonly: z122.boolean(),
|
|
4205
|
+
changeLog: z122.string(),
|
|
4206
|
+
parentId: z122.string().optional(),
|
|
4207
|
+
isDraftsFeatureAdopted: z122.boolean()
|
|
4208
|
+
});
|
|
4209
|
+
var VersionCreationJobStatus = z122.enum(["Success", "InProgress", "Error"]);
|
|
4210
|
+
var VersionCreationJob = z122.object({
|
|
4211
|
+
id: z122.string(),
|
|
4212
|
+
version: z122.string(),
|
|
4213
|
+
designSystemId: z122.string(),
|
|
4214
|
+
designSystemVersionId: nullishToOptional(z122.string()),
|
|
4199
4215
|
status: VersionCreationJobStatus,
|
|
4200
|
-
errorMessage: nullishToOptional(
|
|
4216
|
+
errorMessage: nullishToOptional(z122.string())
|
|
4201
4217
|
});
|
|
4202
4218
|
|
|
4203
4219
|
// src/export/export-destinations.ts
|
|
4204
4220
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4205
4221
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4206
|
-
var ExportJobDocumentationChanges =
|
|
4207
|
-
pagePersistentIds:
|
|
4208
|
-
groupPersistentIds:
|
|
4222
|
+
var ExportJobDocumentationChanges = z123.object({
|
|
4223
|
+
pagePersistentIds: z123.string().array(),
|
|
4224
|
+
groupPersistentIds: z123.string().array()
|
|
4209
4225
|
});
|
|
4210
|
-
var ExporterDestinationDocs =
|
|
4226
|
+
var ExporterDestinationDocs = z123.object({
|
|
4211
4227
|
environment: PublishedDocEnvironment,
|
|
4212
4228
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4213
4229
|
});
|
|
4214
|
-
var ExporterDestinationS3 =
|
|
4215
|
-
var ExporterDestinationGithub =
|
|
4216
|
-
credentialId:
|
|
4230
|
+
var ExporterDestinationS3 = z123.object({});
|
|
4231
|
+
var ExporterDestinationGithub = z123.object({
|
|
4232
|
+
credentialId: z123.string().optional(),
|
|
4217
4233
|
// Repository
|
|
4218
|
-
url:
|
|
4234
|
+
url: z123.string(),
|
|
4219
4235
|
// Location
|
|
4220
|
-
branch:
|
|
4221
|
-
relativePath: nullishToOptional(
|
|
4236
|
+
branch: z123.string(),
|
|
4237
|
+
relativePath: nullishToOptional(z123.string()),
|
|
4222
4238
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4223
|
-
connectionId: nullishToOptional(
|
|
4224
|
-
userId: nullishToOptional(
|
|
4239
|
+
connectionId: nullishToOptional(z123.string()),
|
|
4240
|
+
userId: nullishToOptional(z123.number())
|
|
4225
4241
|
});
|
|
4226
|
-
var ExporterDestinationAzure =
|
|
4227
|
-
credentialId:
|
|
4242
|
+
var ExporterDestinationAzure = z123.object({
|
|
4243
|
+
credentialId: z123.string().optional(),
|
|
4228
4244
|
// Repository
|
|
4229
|
-
organizationId:
|
|
4230
|
-
projectId:
|
|
4231
|
-
repositoryId:
|
|
4245
|
+
organizationId: z123.string(),
|
|
4246
|
+
projectId: z123.string(),
|
|
4247
|
+
repositoryId: z123.string(),
|
|
4232
4248
|
// Location
|
|
4233
|
-
branch:
|
|
4234
|
-
relativePath: nullishToOptional(
|
|
4249
|
+
branch: z123.string(),
|
|
4250
|
+
relativePath: nullishToOptional(z123.string()),
|
|
4235
4251
|
// Maybe not needed
|
|
4236
|
-
url: nullishToOptional(
|
|
4252
|
+
url: nullishToOptional(z123.string()),
|
|
4237
4253
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4238
|
-
connectionId: nullishToOptional(
|
|
4239
|
-
userId: nullishToOptional(
|
|
4254
|
+
connectionId: nullishToOptional(z123.string()),
|
|
4255
|
+
userId: nullishToOptional(z123.number())
|
|
4240
4256
|
});
|
|
4241
|
-
var ExporterDestinationGitlab =
|
|
4242
|
-
credentialId:
|
|
4257
|
+
var ExporterDestinationGitlab = z123.object({
|
|
4258
|
+
credentialId: z123.string().optional(),
|
|
4243
4259
|
// Repository
|
|
4244
|
-
projectId:
|
|
4260
|
+
projectId: z123.string(),
|
|
4245
4261
|
// Location
|
|
4246
|
-
branch:
|
|
4247
|
-
relativePath: nullishToOptional(
|
|
4262
|
+
branch: z123.string(),
|
|
4263
|
+
relativePath: nullishToOptional(z123.string()),
|
|
4248
4264
|
// Maybe not needed
|
|
4249
|
-
url: nullishToOptional(
|
|
4265
|
+
url: nullishToOptional(z123.string()),
|
|
4250
4266
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4251
|
-
connectionId: nullishToOptional(
|
|
4252
|
-
userId: nullishToOptional(
|
|
4267
|
+
connectionId: nullishToOptional(z123.string()),
|
|
4268
|
+
userId: nullishToOptional(z123.number())
|
|
4253
4269
|
});
|
|
4254
|
-
var ExporterDestinationBitbucket =
|
|
4255
|
-
credentialId:
|
|
4270
|
+
var ExporterDestinationBitbucket = z123.object({
|
|
4271
|
+
credentialId: z123.string().optional(),
|
|
4256
4272
|
// Repository
|
|
4257
|
-
workspaceSlug:
|
|
4258
|
-
projectKey:
|
|
4259
|
-
repoSlug:
|
|
4273
|
+
workspaceSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4274
|
+
projectKey: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4275
|
+
repoSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4260
4276
|
// Location
|
|
4261
|
-
branch:
|
|
4262
|
-
relativePath: nullishToOptional(
|
|
4277
|
+
branch: z123.string(),
|
|
4278
|
+
relativePath: nullishToOptional(z123.string()),
|
|
4263
4279
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4264
|
-
connectionId: nullishToOptional(
|
|
4265
|
-
userId: nullishToOptional(
|
|
4280
|
+
connectionId: nullishToOptional(z123.string()),
|
|
4281
|
+
userId: nullishToOptional(z123.number())
|
|
4266
4282
|
});
|
|
4267
|
-
var ExportDestinationsMap =
|
|
4268
|
-
webhookUrl:
|
|
4283
|
+
var ExportDestinationsMap = z123.object({
|
|
4284
|
+
webhookUrl: z123.string().optional(),
|
|
4269
4285
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4270
4286
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4271
4287
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4275,143 +4291,143 @@ var ExportDestinationsMap = z122.object({
|
|
|
4275
4291
|
});
|
|
4276
4292
|
|
|
4277
4293
|
// src/export/pipeline.ts
|
|
4278
|
-
var PipelineEventType =
|
|
4279
|
-
var PipelineDestinationGitType =
|
|
4280
|
-
var PipelineDestinationExtraType =
|
|
4281
|
-
var PipelineDestinationType =
|
|
4282
|
-
var Pipeline =
|
|
4283
|
-
id:
|
|
4284
|
-
name:
|
|
4294
|
+
var PipelineEventType = z124.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4295
|
+
var PipelineDestinationGitType = z124.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4296
|
+
var PipelineDestinationExtraType = z124.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4297
|
+
var PipelineDestinationType = z124.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4298
|
+
var Pipeline = z124.object({
|
|
4299
|
+
id: z124.string(),
|
|
4300
|
+
name: z124.string(),
|
|
4285
4301
|
eventType: PipelineEventType,
|
|
4286
|
-
isEnabled:
|
|
4287
|
-
workspaceId:
|
|
4288
|
-
designSystemId:
|
|
4289
|
-
exporterId:
|
|
4290
|
-
brandPersistentId:
|
|
4291
|
-
themePersistentId:
|
|
4302
|
+
isEnabled: z124.boolean(),
|
|
4303
|
+
workspaceId: z124.string(),
|
|
4304
|
+
designSystemId: z124.string(),
|
|
4305
|
+
exporterId: z124.string(),
|
|
4306
|
+
brandPersistentId: z124.string().optional(),
|
|
4307
|
+
themePersistentId: z124.string().optional(),
|
|
4292
4308
|
// Destinations
|
|
4293
4309
|
...ExportDestinationsMap.shape
|
|
4294
4310
|
});
|
|
4295
4311
|
|
|
4296
4312
|
// src/data-dumps/code-integration-dump.ts
|
|
4297
|
-
var ExportJobDump =
|
|
4298
|
-
id:
|
|
4299
|
-
createdAt:
|
|
4300
|
-
finishedAt:
|
|
4301
|
-
exportArtefacts:
|
|
4313
|
+
var ExportJobDump = z125.object({
|
|
4314
|
+
id: z125.string(),
|
|
4315
|
+
createdAt: z125.coerce.date(),
|
|
4316
|
+
finishedAt: z125.coerce.date(),
|
|
4317
|
+
exportArtefacts: z125.string()
|
|
4302
4318
|
});
|
|
4303
|
-
var CodeIntegrationDump =
|
|
4319
|
+
var CodeIntegrationDump = z125.object({
|
|
4304
4320
|
exporters: Exporter.array(),
|
|
4305
4321
|
pipelines: Pipeline.array(),
|
|
4306
4322
|
exportJobs: ExportJobDump.array()
|
|
4307
4323
|
});
|
|
4308
4324
|
|
|
4309
4325
|
// src/data-dumps/design-system-dump.ts
|
|
4310
|
-
import { z as
|
|
4326
|
+
import { z as z132 } from "zod";
|
|
4311
4327
|
|
|
4312
4328
|
// src/data-dumps/design-system-version-dump.ts
|
|
4313
|
-
import { z as
|
|
4329
|
+
import { z as z131 } from "zod";
|
|
4314
4330
|
|
|
4315
4331
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
4316
|
-
import { z as
|
|
4332
|
+
import { z as z126 } from "zod";
|
|
4317
4333
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4318
|
-
designSystemVersionId:
|
|
4319
|
-
liveblocksId:
|
|
4320
|
-
});
|
|
4321
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4322
|
-
routingVersion:
|
|
4323
|
-
isDraftFeatureAdopted:
|
|
4324
|
-
});
|
|
4325
|
-
var DesignSystemVersionRoomInitialState =
|
|
4326
|
-
pages:
|
|
4327
|
-
groups:
|
|
4328
|
-
pageSnapshots:
|
|
4329
|
-
groupSnapshots:
|
|
4334
|
+
designSystemVersionId: z126.string(),
|
|
4335
|
+
liveblocksId: z126.string()
|
|
4336
|
+
});
|
|
4337
|
+
var DesignSystemVersionRoomInternalSettings = z126.object({
|
|
4338
|
+
routingVersion: z126.string(),
|
|
4339
|
+
isDraftFeatureAdopted: z126.boolean()
|
|
4340
|
+
});
|
|
4341
|
+
var DesignSystemVersionRoomInitialState = z126.object({
|
|
4342
|
+
pages: z126.array(DocumentationPageV2),
|
|
4343
|
+
groups: z126.array(ElementGroup),
|
|
4344
|
+
pageSnapshots: z126.array(DocumentationPageSnapshot),
|
|
4345
|
+
groupSnapshots: z126.array(ElementGroupSnapshot),
|
|
4330
4346
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4331
4347
|
});
|
|
4332
|
-
var DesignSystemVersionRoomUpdate =
|
|
4333
|
-
pages:
|
|
4334
|
-
groups:
|
|
4335
|
-
pageIdsToDelete:
|
|
4336
|
-
groupIdsToDelete:
|
|
4337
|
-
pageSnapshots:
|
|
4338
|
-
groupSnapshots:
|
|
4339
|
-
pageSnapshotIdsToDelete:
|
|
4340
|
-
groupSnapshotIdsToDelete:
|
|
4341
|
-
pageHashesToUpdate:
|
|
4348
|
+
var DesignSystemVersionRoomUpdate = z126.object({
|
|
4349
|
+
pages: z126.array(DocumentationPageV2),
|
|
4350
|
+
groups: z126.array(ElementGroup),
|
|
4351
|
+
pageIdsToDelete: z126.array(z126.string()),
|
|
4352
|
+
groupIdsToDelete: z126.array(z126.string()),
|
|
4353
|
+
pageSnapshots: z126.array(DocumentationPageSnapshot),
|
|
4354
|
+
groupSnapshots: z126.array(ElementGroupSnapshot),
|
|
4355
|
+
pageSnapshotIdsToDelete: z126.array(z126.string()),
|
|
4356
|
+
groupSnapshotIdsToDelete: z126.array(z126.string()),
|
|
4357
|
+
pageHashesToUpdate: z126.record(z126.string(), z126.string())
|
|
4342
4358
|
});
|
|
4343
4359
|
|
|
4344
4360
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
4345
|
-
import { z as
|
|
4361
|
+
import { z as z127 } from "zod";
|
|
4346
4362
|
var DocumentationPageRoom = Entity.extend({
|
|
4347
|
-
designSystemVersionId:
|
|
4348
|
-
documentationPageId:
|
|
4349
|
-
liveblocksId:
|
|
4350
|
-
isDirty:
|
|
4363
|
+
designSystemVersionId: z127.string(),
|
|
4364
|
+
documentationPageId: z127.string(),
|
|
4365
|
+
liveblocksId: z127.string(),
|
|
4366
|
+
isDirty: z127.boolean()
|
|
4351
4367
|
});
|
|
4352
|
-
var DocumentationPageRoomState =
|
|
4353
|
-
pageItems:
|
|
4368
|
+
var DocumentationPageRoomState = z127.object({
|
|
4369
|
+
pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4354
4370
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4355
4371
|
});
|
|
4356
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4372
|
+
var DocumentationPageRoomRoomUpdate = z127.object({
|
|
4357
4373
|
page: DocumentationPageV2,
|
|
4358
4374
|
pageParent: ElementGroup
|
|
4359
4375
|
});
|
|
4360
4376
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4361
|
-
pageItems:
|
|
4362
|
-
blockDefinitions:
|
|
4377
|
+
pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4378
|
+
blockDefinitions: z127.array(PageBlockDefinition)
|
|
4363
4379
|
});
|
|
4364
|
-
var RestoredDocumentationPage =
|
|
4380
|
+
var RestoredDocumentationPage = z127.object({
|
|
4365
4381
|
page: DocumentationPageV2,
|
|
4366
4382
|
pageParent: ElementGroup,
|
|
4367
4383
|
pageContent: DocumentationPageContentData,
|
|
4368
|
-
contentHash:
|
|
4369
|
-
snapshotId:
|
|
4370
|
-
roomId:
|
|
4384
|
+
contentHash: z127.string(),
|
|
4385
|
+
snapshotId: z127.string(),
|
|
4386
|
+
roomId: z127.string().optional()
|
|
4371
4387
|
});
|
|
4372
|
-
var RestoredDocumentationGroup =
|
|
4388
|
+
var RestoredDocumentationGroup = z127.object({
|
|
4373
4389
|
group: ElementGroup,
|
|
4374
4390
|
parent: ElementGroup
|
|
4375
4391
|
});
|
|
4376
4392
|
|
|
4377
4393
|
// src/liveblocks/rooms/room-type.ts
|
|
4378
|
-
import { z as
|
|
4394
|
+
import { z as z128 } from "zod";
|
|
4379
4395
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4380
4396
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4381
4397
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4382
4398
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4383
4399
|
return RoomTypeEnum2;
|
|
4384
4400
|
})(RoomTypeEnum || {});
|
|
4385
|
-
var RoomTypeSchema =
|
|
4401
|
+
var RoomTypeSchema = z128.nativeEnum(RoomTypeEnum);
|
|
4386
4402
|
var RoomType = RoomTypeSchema.enum;
|
|
4387
4403
|
|
|
4388
4404
|
// src/liveblocks/rooms/workspace-room.ts
|
|
4389
|
-
import { z as
|
|
4405
|
+
import { z as z129 } from "zod";
|
|
4390
4406
|
var WorkspaceRoom = Entity.extend({
|
|
4391
|
-
workspaceId:
|
|
4392
|
-
liveblocksId:
|
|
4407
|
+
workspaceId: z129.string(),
|
|
4408
|
+
liveblocksId: z129.string()
|
|
4393
4409
|
});
|
|
4394
4410
|
|
|
4395
4411
|
// src/data-dumps/published-docs-dump.ts
|
|
4396
|
-
import { z as
|
|
4397
|
-
var PublishedDocsDump =
|
|
4412
|
+
import { z as z130 } from "zod";
|
|
4413
|
+
var PublishedDocsDump = z130.object({
|
|
4398
4414
|
documentation: PublishedDoc,
|
|
4399
4415
|
pages: PublishedDocPage.array()
|
|
4400
4416
|
});
|
|
4401
4417
|
|
|
4402
4418
|
// src/data-dumps/design-system-version-dump.ts
|
|
4403
|
-
var DocumentationThreadDump =
|
|
4419
|
+
var DocumentationThreadDump = z131.object({
|
|
4404
4420
|
thread: DocumentationCommentThread,
|
|
4405
4421
|
comments: DocumentationComment.array()
|
|
4406
4422
|
});
|
|
4407
|
-
var DocumentationPageRoomDump =
|
|
4423
|
+
var DocumentationPageRoomDump = z131.object({
|
|
4408
4424
|
room: DocumentationPageRoom,
|
|
4409
4425
|
threads: DocumentationThreadDump.array()
|
|
4410
4426
|
});
|
|
4411
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4427
|
+
var DesignSystemVersionMultiplayerDump = z131.object({
|
|
4412
4428
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4413
4429
|
});
|
|
4414
|
-
var DesignSystemVersionDump =
|
|
4430
|
+
var DesignSystemVersionDump = z131.object({
|
|
4415
4431
|
version: DesignSystemVersion,
|
|
4416
4432
|
brands: Brand.array(),
|
|
4417
4433
|
elements: DesignElement.array(),
|
|
@@ -4426,7 +4442,7 @@ var DesignSystemVersionDump = z130.object({
|
|
|
4426
4442
|
});
|
|
4427
4443
|
|
|
4428
4444
|
// src/data-dumps/design-system-dump.ts
|
|
4429
|
-
var DesignSystemDump =
|
|
4445
|
+
var DesignSystemDump = z132.object({
|
|
4430
4446
|
designSystem: DesignSystem,
|
|
4431
4447
|
dataSources: DataSource.array(),
|
|
4432
4448
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -4435,27 +4451,27 @@ var DesignSystemDump = z131.object({
|
|
|
4435
4451
|
});
|
|
4436
4452
|
|
|
4437
4453
|
// src/data-dumps/user-data-dump.ts
|
|
4438
|
-
import { z as
|
|
4454
|
+
import { z as z144 } from "zod";
|
|
4439
4455
|
|
|
4440
4456
|
// src/users/linked-integrations.ts
|
|
4441
|
-
import { z as
|
|
4442
|
-
var IntegrationAuthType =
|
|
4443
|
-
var ExternalServiceType =
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4457
|
+
import { z as z133 } from "zod";
|
|
4458
|
+
var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
|
|
4459
|
+
var ExternalServiceType = z133.union([
|
|
4460
|
+
z133.literal("figma"),
|
|
4461
|
+
z133.literal("github"),
|
|
4462
|
+
z133.literal("azure"),
|
|
4463
|
+
z133.literal("gitlab"),
|
|
4464
|
+
z133.literal("bitbucket")
|
|
4449
4465
|
]);
|
|
4450
|
-
var IntegrationUserInfo =
|
|
4451
|
-
id:
|
|
4452
|
-
handle:
|
|
4453
|
-
avatarUrl:
|
|
4454
|
-
email:
|
|
4466
|
+
var IntegrationUserInfo = z133.object({
|
|
4467
|
+
id: z133.string(),
|
|
4468
|
+
handle: z133.string().optional(),
|
|
4469
|
+
avatarUrl: z133.string().optional(),
|
|
4470
|
+
email: z133.string().optional(),
|
|
4455
4471
|
authType: IntegrationAuthType.optional(),
|
|
4456
|
-
customUrl:
|
|
4472
|
+
customUrl: z133.string().optional()
|
|
4457
4473
|
});
|
|
4458
|
-
var UserLinkedIntegrations =
|
|
4474
|
+
var UserLinkedIntegrations = z133.object({
|
|
4459
4475
|
figma: IntegrationUserInfo.optional(),
|
|
4460
4476
|
github: IntegrationUserInfo.array().optional(),
|
|
4461
4477
|
azure: IntegrationUserInfo.array().optional(),
|
|
@@ -4464,46 +4480,46 @@ var UserLinkedIntegrations = z132.object({
|
|
|
4464
4480
|
});
|
|
4465
4481
|
|
|
4466
4482
|
// src/users/user-analytics-cleanup-schedule.ts
|
|
4467
|
-
import { z as
|
|
4468
|
-
var UserAnalyticsCleanupSchedule =
|
|
4469
|
-
userId:
|
|
4470
|
-
createdAt:
|
|
4471
|
-
deleteAt:
|
|
4483
|
+
import { z as z134 } from "zod";
|
|
4484
|
+
var UserAnalyticsCleanupSchedule = z134.object({
|
|
4485
|
+
userId: z134.string(),
|
|
4486
|
+
createdAt: z134.coerce.date(),
|
|
4487
|
+
deleteAt: z134.coerce.date()
|
|
4472
4488
|
});
|
|
4473
4489
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4474
4490
|
createdAt: true
|
|
4475
4491
|
});
|
|
4476
4492
|
|
|
4477
4493
|
// src/users/user-create.ts
|
|
4478
|
-
import { z as
|
|
4479
|
-
var CreateUserInput =
|
|
4480
|
-
email:
|
|
4481
|
-
name:
|
|
4482
|
-
username:
|
|
4494
|
+
import { z as z135 } from "zod";
|
|
4495
|
+
var CreateUserInput = z135.object({
|
|
4496
|
+
email: z135.string(),
|
|
4497
|
+
name: z135.string(),
|
|
4498
|
+
username: z135.string()
|
|
4483
4499
|
});
|
|
4484
4500
|
|
|
4485
4501
|
// src/users/user-identity.ts
|
|
4486
|
-
import { z as
|
|
4487
|
-
var UserIdentity =
|
|
4488
|
-
id:
|
|
4489
|
-
userId:
|
|
4502
|
+
import { z as z136 } from "zod";
|
|
4503
|
+
var UserIdentity = z136.object({
|
|
4504
|
+
id: z136.string(),
|
|
4505
|
+
userId: z136.string()
|
|
4490
4506
|
});
|
|
4491
4507
|
|
|
4492
4508
|
// src/users/user-minified.ts
|
|
4493
|
-
import { z as
|
|
4494
|
-
var UserMinified =
|
|
4495
|
-
id:
|
|
4496
|
-
name:
|
|
4497
|
-
email:
|
|
4498
|
-
avatar:
|
|
4509
|
+
import { z as z137 } from "zod";
|
|
4510
|
+
var UserMinified = z137.object({
|
|
4511
|
+
id: z137.string(),
|
|
4512
|
+
name: z137.string(),
|
|
4513
|
+
email: z137.string(),
|
|
4514
|
+
avatar: z137.string().optional()
|
|
4499
4515
|
});
|
|
4500
4516
|
|
|
4501
4517
|
// src/users/user-notification-settings.ts
|
|
4502
|
-
import { z as
|
|
4503
|
-
var LiveblocksNotificationSettings =
|
|
4504
|
-
sendCommentNotificationEmails:
|
|
4518
|
+
import { z as z138 } from "zod";
|
|
4519
|
+
var LiveblocksNotificationSettings = z138.object({
|
|
4520
|
+
sendCommentNotificationEmails: z138.boolean()
|
|
4505
4521
|
});
|
|
4506
|
-
var UserNotificationSettings =
|
|
4522
|
+
var UserNotificationSettings = z138.object({
|
|
4507
4523
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4508
4524
|
});
|
|
4509
4525
|
var defaultNotificationSettings = {
|
|
@@ -4513,26 +4529,26 @@ var defaultNotificationSettings = {
|
|
|
4513
4529
|
};
|
|
4514
4530
|
|
|
4515
4531
|
// src/users/user-profile.ts
|
|
4516
|
-
import { z as
|
|
4517
|
-
var UserOnboardingDepartment =
|
|
4518
|
-
var UserOnboardingJobLevel =
|
|
4519
|
-
var UserOnboarding =
|
|
4520
|
-
companyName:
|
|
4521
|
-
numberOfPeopleInOrg:
|
|
4522
|
-
numberOfPeopleInDesignTeam:
|
|
4532
|
+
import { z as z139 } from "zod";
|
|
4533
|
+
var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4534
|
+
var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4535
|
+
var UserOnboarding = z139.object({
|
|
4536
|
+
companyName: z139.string().optional(),
|
|
4537
|
+
numberOfPeopleInOrg: z139.string().optional(),
|
|
4538
|
+
numberOfPeopleInDesignTeam: z139.string().optional(),
|
|
4523
4539
|
department: UserOnboardingDepartment.optional(),
|
|
4524
|
-
jobTitle:
|
|
4525
|
-
phase:
|
|
4540
|
+
jobTitle: z139.string().optional(),
|
|
4541
|
+
phase: z139.string().optional(),
|
|
4526
4542
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4527
|
-
designSystemName:
|
|
4528
|
-
defaultDestination:
|
|
4529
|
-
figmaUrl:
|
|
4530
|
-
isPageDraftOnboardingFinished:
|
|
4531
|
-
});
|
|
4532
|
-
var UserProfile =
|
|
4533
|
-
name:
|
|
4534
|
-
avatar:
|
|
4535
|
-
nickname:
|
|
4543
|
+
designSystemName: z139.string().optional(),
|
|
4544
|
+
defaultDestination: z139.string().optional(),
|
|
4545
|
+
figmaUrl: z139.string().optional(),
|
|
4546
|
+
isPageDraftOnboardingFinished: z139.boolean().optional()
|
|
4547
|
+
});
|
|
4548
|
+
var UserProfile = z139.object({
|
|
4549
|
+
name: z139.string(),
|
|
4550
|
+
avatar: z139.string().optional(),
|
|
4551
|
+
nickname: z139.string().optional(),
|
|
4536
4552
|
onboarding: UserOnboarding.optional()
|
|
4537
4553
|
});
|
|
4538
4554
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
@@ -4540,68 +4556,68 @@ var UserProfileUpdate = UserProfile.partial().omit({
|
|
|
4540
4556
|
});
|
|
4541
4557
|
|
|
4542
4558
|
// src/users/user-test.ts
|
|
4543
|
-
import { z as
|
|
4544
|
-
var UserTest =
|
|
4545
|
-
id:
|
|
4546
|
-
email:
|
|
4559
|
+
import { z as z140 } from "zod";
|
|
4560
|
+
var UserTest = z140.object({
|
|
4561
|
+
id: z140.string(),
|
|
4562
|
+
email: z140.string()
|
|
4547
4563
|
});
|
|
4548
4564
|
|
|
4549
4565
|
// src/users/user.ts
|
|
4550
|
-
import { z as
|
|
4551
|
-
var User =
|
|
4552
|
-
id:
|
|
4553
|
-
email:
|
|
4554
|
-
emailVerified:
|
|
4555
|
-
createdAt:
|
|
4556
|
-
trialExpiresAt:
|
|
4566
|
+
import { z as z141 } from "zod";
|
|
4567
|
+
var User = z141.object({
|
|
4568
|
+
id: z141.string(),
|
|
4569
|
+
email: z141.string(),
|
|
4570
|
+
emailVerified: z141.boolean(),
|
|
4571
|
+
createdAt: z141.coerce.date(),
|
|
4572
|
+
trialExpiresAt: z141.coerce.date().optional(),
|
|
4557
4573
|
profile: UserProfile,
|
|
4558
4574
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4559
|
-
loggedOutAt:
|
|
4560
|
-
isProtected:
|
|
4575
|
+
loggedOutAt: z141.coerce.date().optional(),
|
|
4576
|
+
isProtected: z141.boolean()
|
|
4561
4577
|
});
|
|
4562
4578
|
|
|
4563
4579
|
// src/data-dumps/workspace-dump.ts
|
|
4564
|
-
import { z as
|
|
4580
|
+
import { z as z143 } from "zod";
|
|
4565
4581
|
|
|
4566
4582
|
// src/integrations/integration.ts
|
|
4567
|
-
import { z as
|
|
4568
|
-
var IntegrationDesignSystem =
|
|
4569
|
-
designSystemId:
|
|
4570
|
-
brandId:
|
|
4571
|
-
title:
|
|
4572
|
-
userId:
|
|
4573
|
-
date:
|
|
4574
|
-
});
|
|
4575
|
-
var IntegrationCredentialsType =
|
|
4576
|
-
var IntegrationCredentialsState =
|
|
4577
|
-
var IntegrationCredentialsProfile =
|
|
4578
|
-
id: nullishToOptional(
|
|
4579
|
-
email: nullishToOptional(
|
|
4580
|
-
handle: nullishToOptional(
|
|
4581
|
-
type: nullishToOptional(
|
|
4582
|
-
avatarUrl: nullishToOptional(
|
|
4583
|
-
organization: nullishToOptional(
|
|
4584
|
-
collection: nullishToOptional(
|
|
4585
|
-
});
|
|
4586
|
-
var IntegrationCredentials =
|
|
4587
|
-
id:
|
|
4583
|
+
import { z as z142 } from "zod";
|
|
4584
|
+
var IntegrationDesignSystem = z142.object({
|
|
4585
|
+
designSystemId: z142.string(),
|
|
4586
|
+
brandId: z142.string(),
|
|
4587
|
+
title: z142.string().optional(),
|
|
4588
|
+
userId: z142.string().optional(),
|
|
4589
|
+
date: z142.coerce.date().optional()
|
|
4590
|
+
});
|
|
4591
|
+
var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4592
|
+
var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
|
|
4593
|
+
var IntegrationCredentialsProfile = z142.object({
|
|
4594
|
+
id: nullishToOptional(z142.string()),
|
|
4595
|
+
email: nullishToOptional(z142.string()),
|
|
4596
|
+
handle: nullishToOptional(z142.string()),
|
|
4597
|
+
type: nullishToOptional(z142.string()),
|
|
4598
|
+
avatarUrl: nullishToOptional(z142.string()),
|
|
4599
|
+
organization: nullishToOptional(z142.string()),
|
|
4600
|
+
collection: nullishToOptional(z142.string())
|
|
4601
|
+
});
|
|
4602
|
+
var IntegrationCredentials = z142.object({
|
|
4603
|
+
id: z142.string(),
|
|
4588
4604
|
type: IntegrationCredentialsType,
|
|
4589
|
-
integrationId:
|
|
4590
|
-
accessToken:
|
|
4591
|
-
userId:
|
|
4592
|
-
createdAt:
|
|
4593
|
-
refreshToken:
|
|
4594
|
-
tokenName:
|
|
4595
|
-
expiresAt:
|
|
4596
|
-
refreshedAt:
|
|
4597
|
-
username:
|
|
4598
|
-
appInstallationId:
|
|
4605
|
+
integrationId: z142.string(),
|
|
4606
|
+
accessToken: z142.string(),
|
|
4607
|
+
userId: z142.string(),
|
|
4608
|
+
createdAt: z142.coerce.date(),
|
|
4609
|
+
refreshToken: z142.string().optional(),
|
|
4610
|
+
tokenName: z142.string().optional(),
|
|
4611
|
+
expiresAt: z142.coerce.date().optional(),
|
|
4612
|
+
refreshedAt: z142.coerce.date().optional(),
|
|
4613
|
+
username: z142.string().optional(),
|
|
4614
|
+
appInstallationId: z142.string().optional(),
|
|
4599
4615
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4600
|
-
customUrl:
|
|
4616
|
+
customUrl: z142.string().optional(),
|
|
4601
4617
|
state: IntegrationCredentialsState,
|
|
4602
4618
|
user: UserMinified.optional()
|
|
4603
4619
|
});
|
|
4604
|
-
var ExtendedIntegrationType =
|
|
4620
|
+
var ExtendedIntegrationType = z142.enum([
|
|
4605
4621
|
"Figma",
|
|
4606
4622
|
"Github",
|
|
4607
4623
|
"Gitlab",
|
|
@@ -4612,26 +4628,26 @@ var ExtendedIntegrationType = z141.enum([
|
|
|
4612
4628
|
]);
|
|
4613
4629
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4614
4630
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4615
|
-
var Integration =
|
|
4616
|
-
id:
|
|
4617
|
-
workspaceId:
|
|
4631
|
+
var Integration = z142.object({
|
|
4632
|
+
id: z142.string(),
|
|
4633
|
+
workspaceId: z142.string(),
|
|
4618
4634
|
type: IntegrationType,
|
|
4619
|
-
createdAt:
|
|
4620
|
-
integrationCredentials:
|
|
4621
|
-
});
|
|
4622
|
-
var IntegrationToken =
|
|
4623
|
-
access_token:
|
|
4624
|
-
refresh_token:
|
|
4625
|
-
expires_in:
|
|
4626
|
-
token_type:
|
|
4627
|
-
token_name:
|
|
4628
|
-
token_azure_organization_name:
|
|
4635
|
+
createdAt: z142.coerce.date(),
|
|
4636
|
+
integrationCredentials: z142.array(IntegrationCredentials).optional()
|
|
4637
|
+
});
|
|
4638
|
+
var IntegrationToken = z142.object({
|
|
4639
|
+
access_token: z142.string(),
|
|
4640
|
+
refresh_token: z142.string().optional(),
|
|
4641
|
+
expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
|
|
4642
|
+
token_type: z142.string().optional(),
|
|
4643
|
+
token_name: z142.string().optional(),
|
|
4644
|
+
token_azure_organization_name: z142.string().optional(),
|
|
4629
4645
|
// Azure Cloud PAT only
|
|
4630
|
-
token_azure_collection_name:
|
|
4646
|
+
token_azure_collection_name: z142.string().optional(),
|
|
4631
4647
|
// Azure Server PAT only
|
|
4632
|
-
token_bitbucket_username:
|
|
4648
|
+
token_bitbucket_username: z142.string().optional(),
|
|
4633
4649
|
// Bitbucket only
|
|
4634
|
-
custom_url:
|
|
4650
|
+
custom_url: z142.string().optional().transform((value) => {
|
|
4635
4651
|
if (!value?.trim())
|
|
4636
4652
|
return void 0;
|
|
4637
4653
|
return formatCustomUrl(value);
|
|
@@ -4669,7 +4685,7 @@ function formatCustomUrl(url) {
|
|
|
4669
4685
|
}
|
|
4670
4686
|
|
|
4671
4687
|
// src/data-dumps/workspace-dump.ts
|
|
4672
|
-
var WorkspaceDump =
|
|
4688
|
+
var WorkspaceDump = z143.object({
|
|
4673
4689
|
workspace: Workspace,
|
|
4674
4690
|
designSystems: DesignSystemDump.array(),
|
|
4675
4691
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -4677,93 +4693,93 @@ var WorkspaceDump = z142.object({
|
|
|
4677
4693
|
});
|
|
4678
4694
|
|
|
4679
4695
|
// src/data-dumps/user-data-dump.ts
|
|
4680
|
-
var UserDump =
|
|
4696
|
+
var UserDump = z144.object({
|
|
4681
4697
|
user: User,
|
|
4682
4698
|
workspaces: WorkspaceDump.array()
|
|
4683
4699
|
});
|
|
4684
4700
|
|
|
4685
4701
|
// src/docs-server/session.ts
|
|
4686
|
-
import { z as
|
|
4687
|
-
var NpmProxyToken =
|
|
4688
|
-
access:
|
|
4689
|
-
expiresAt:
|
|
4702
|
+
import { z as z145 } from "zod";
|
|
4703
|
+
var NpmProxyToken = z145.object({
|
|
4704
|
+
access: z145.string(),
|
|
4705
|
+
expiresAt: z145.number()
|
|
4690
4706
|
});
|
|
4691
|
-
var SessionData =
|
|
4692
|
-
returnToUrl:
|
|
4707
|
+
var SessionData = z145.object({
|
|
4708
|
+
returnToUrl: z145.string().optional(),
|
|
4693
4709
|
npmProxyToken: NpmProxyToken.optional()
|
|
4694
4710
|
});
|
|
4695
|
-
var Session =
|
|
4696
|
-
id:
|
|
4697
|
-
expiresAt:
|
|
4698
|
-
userId:
|
|
4711
|
+
var Session = z145.object({
|
|
4712
|
+
id: z145.string(),
|
|
4713
|
+
expiresAt: z145.coerce.date(),
|
|
4714
|
+
userId: z145.string().nullable(),
|
|
4699
4715
|
data: SessionData
|
|
4700
4716
|
});
|
|
4701
|
-
var AuthTokens =
|
|
4702
|
-
access:
|
|
4703
|
-
refresh:
|
|
4717
|
+
var AuthTokens = z145.object({
|
|
4718
|
+
access: z145.string(),
|
|
4719
|
+
refresh: z145.string()
|
|
4704
4720
|
});
|
|
4705
|
-
var UserSession =
|
|
4721
|
+
var UserSession = z145.object({
|
|
4706
4722
|
session: Session,
|
|
4707
4723
|
user: User.nullable()
|
|
4708
4724
|
});
|
|
4709
4725
|
|
|
4710
4726
|
// src/events/base.ts
|
|
4711
|
-
import { z as
|
|
4727
|
+
import { z as z148 } from "zod";
|
|
4712
4728
|
|
|
4713
4729
|
// src/events/data-source-imported.ts
|
|
4714
|
-
import { z as
|
|
4715
|
-
var EventDataSourceImported =
|
|
4716
|
-
type:
|
|
4717
|
-
workspaceId:
|
|
4718
|
-
designSystemId:
|
|
4730
|
+
import { z as z146 } from "zod";
|
|
4731
|
+
var EventDataSourceImported = z146.object({
|
|
4732
|
+
type: z146.literal("DataSourceImported"),
|
|
4733
|
+
workspaceId: z146.string(),
|
|
4734
|
+
designSystemId: z146.string()
|
|
4719
4735
|
});
|
|
4720
4736
|
|
|
4721
4737
|
// src/events/version-released.ts
|
|
4722
|
-
import { z as
|
|
4723
|
-
var EventVersionReleased =
|
|
4724
|
-
type:
|
|
4725
|
-
workspaceId:
|
|
4726
|
-
designSystemId:
|
|
4727
|
-
versionId:
|
|
4738
|
+
import { z as z147 } from "zod";
|
|
4739
|
+
var EventVersionReleased = z147.object({
|
|
4740
|
+
type: z147.literal("DesignSystemVersionReleased"),
|
|
4741
|
+
workspaceId: z147.string(),
|
|
4742
|
+
designSystemId: z147.string(),
|
|
4743
|
+
versionId: z147.string()
|
|
4728
4744
|
});
|
|
4729
4745
|
|
|
4730
4746
|
// src/events/base.ts
|
|
4731
|
-
var Event =
|
|
4747
|
+
var Event = z148.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4732
4748
|
|
|
4733
4749
|
// src/export/export-runner/export-context.ts
|
|
4734
|
-
import { z as
|
|
4735
|
-
var ExportJobDocumentationContext =
|
|
4736
|
-
isSingleVersionDocs:
|
|
4737
|
-
versionSlug:
|
|
4750
|
+
import { z as z149 } from "zod";
|
|
4751
|
+
var ExportJobDocumentationContext = z149.object({
|
|
4752
|
+
isSingleVersionDocs: z149.boolean(),
|
|
4753
|
+
versionSlug: z149.string(),
|
|
4738
4754
|
environment: PublishedDocEnvironment
|
|
4739
4755
|
});
|
|
4740
|
-
var ExportJobContext =
|
|
4741
|
-
apiUrl:
|
|
4742
|
-
accessToken:
|
|
4743
|
-
designSystemId:
|
|
4744
|
-
designSystemName:
|
|
4745
|
-
exporterId:
|
|
4746
|
-
versionId:
|
|
4747
|
-
brandId:
|
|
4748
|
-
themeId:
|
|
4749
|
-
exporterName:
|
|
4750
|
-
exporterPackageUrl:
|
|
4756
|
+
var ExportJobContext = z149.object({
|
|
4757
|
+
apiUrl: z149.string(),
|
|
4758
|
+
accessToken: z149.string(),
|
|
4759
|
+
designSystemId: z149.string(),
|
|
4760
|
+
designSystemName: z149.string(),
|
|
4761
|
+
exporterId: z149.string(),
|
|
4762
|
+
versionId: z149.string(),
|
|
4763
|
+
brandId: z149.string().optional(),
|
|
4764
|
+
themeId: z149.string().optional(),
|
|
4765
|
+
exporterName: z149.string(),
|
|
4766
|
+
exporterPackageUrl: z149.string(),
|
|
4751
4767
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4752
4768
|
documentation: ExportJobDocumentationContext.optional()
|
|
4753
4769
|
});
|
|
4754
4770
|
|
|
4755
4771
|
// src/export/export-runner/exporter-payload.ts
|
|
4756
|
-
import { z as
|
|
4757
|
-
var ExporterFunctionPayload =
|
|
4758
|
-
exportJobId:
|
|
4759
|
-
exportContextId:
|
|
4760
|
-
designSystemId:
|
|
4761
|
-
workspaceId:
|
|
4772
|
+
import { z as z150 } from "zod";
|
|
4773
|
+
var ExporterFunctionPayload = z150.object({
|
|
4774
|
+
exportJobId: z150.string(),
|
|
4775
|
+
exportContextId: z150.string(),
|
|
4776
|
+
designSystemId: z150.string(),
|
|
4777
|
+
workspaceId: z150.string()
|
|
4762
4778
|
});
|
|
4763
4779
|
|
|
4764
4780
|
// src/export/export-jobs.ts
|
|
4765
|
-
import { z as
|
|
4766
|
-
var ExportJobDestinationType =
|
|
4781
|
+
import { z as z151 } from "zod";
|
|
4782
|
+
var ExportJobDestinationType = z151.enum([
|
|
4767
4783
|
"s3",
|
|
4768
4784
|
"webhookUrl",
|
|
4769
4785
|
"github",
|
|
@@ -4772,30 +4788,30 @@ var ExportJobDestinationType = z150.enum([
|
|
|
4772
4788
|
"gitlab",
|
|
4773
4789
|
"bitbucket"
|
|
4774
4790
|
]);
|
|
4775
|
-
var ExportJobStatus =
|
|
4776
|
-
var ExportJobLogEntryType =
|
|
4777
|
-
var ExportJobLogEntry =
|
|
4778
|
-
id:
|
|
4779
|
-
time:
|
|
4791
|
+
var ExportJobStatus = z151.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4792
|
+
var ExportJobLogEntryType = z151.enum(["success", "info", "warning", "error", "user"]);
|
|
4793
|
+
var ExportJobLogEntry = z151.object({
|
|
4794
|
+
id: z151.string().optional(),
|
|
4795
|
+
time: z151.coerce.date(),
|
|
4780
4796
|
type: ExportJobLogEntryType,
|
|
4781
|
-
message:
|
|
4797
|
+
message: z151.string()
|
|
4782
4798
|
});
|
|
4783
|
-
var ExportJobPullRequestDestinationResult =
|
|
4784
|
-
pullRequestUrl:
|
|
4799
|
+
var ExportJobPullRequestDestinationResult = z151.object({
|
|
4800
|
+
pullRequestUrl: z151.string()
|
|
4785
4801
|
});
|
|
4786
|
-
var ExportJobS3DestinationResult =
|
|
4787
|
-
bucket:
|
|
4788
|
-
urlPrefix:
|
|
4789
|
-
path:
|
|
4790
|
-
files:
|
|
4791
|
-
url: nullishToOptional(
|
|
4792
|
-
urls: nullishToOptional(
|
|
4802
|
+
var ExportJobS3DestinationResult = z151.object({
|
|
4803
|
+
bucket: z151.string(),
|
|
4804
|
+
urlPrefix: z151.string().optional(),
|
|
4805
|
+
path: z151.string(),
|
|
4806
|
+
files: z151.array(z151.string()),
|
|
4807
|
+
url: nullishToOptional(z151.string()),
|
|
4808
|
+
urls: nullishToOptional(z151.string().array())
|
|
4793
4809
|
});
|
|
4794
|
-
var ExportJobDocsDestinationResult =
|
|
4795
|
-
url:
|
|
4810
|
+
var ExportJobDocsDestinationResult = z151.object({
|
|
4811
|
+
url: z151.string()
|
|
4796
4812
|
});
|
|
4797
|
-
var ExportJobResult =
|
|
4798
|
-
error:
|
|
4813
|
+
var ExportJobResult = z151.object({
|
|
4814
|
+
error: z151.string().optional(),
|
|
4799
4815
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4800
4816
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4801
4817
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4804,21 +4820,21 @@ var ExportJobResult = z150.object({
|
|
|
4804
4820
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4805
4821
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4806
4822
|
});
|
|
4807
|
-
var ExportJob =
|
|
4808
|
-
id:
|
|
4809
|
-
createdAt:
|
|
4810
|
-
finishedAt:
|
|
4811
|
-
designSystemId:
|
|
4812
|
-
designSystemVersionId:
|
|
4813
|
-
workspaceId:
|
|
4814
|
-
scheduleId:
|
|
4815
|
-
exporterId:
|
|
4816
|
-
brandId:
|
|
4817
|
-
themeId:
|
|
4818
|
-
estimatedExecutionTime:
|
|
4823
|
+
var ExportJob = z151.object({
|
|
4824
|
+
id: z151.string(),
|
|
4825
|
+
createdAt: z151.coerce.date(),
|
|
4826
|
+
finishedAt: z151.coerce.date().optional(),
|
|
4827
|
+
designSystemId: z151.string(),
|
|
4828
|
+
designSystemVersionId: z151.string(),
|
|
4829
|
+
workspaceId: z151.string(),
|
|
4830
|
+
scheduleId: z151.string().nullish(),
|
|
4831
|
+
exporterId: z151.string(),
|
|
4832
|
+
brandId: z151.string().optional(),
|
|
4833
|
+
themeId: z151.string().optional(),
|
|
4834
|
+
estimatedExecutionTime: z151.number().optional(),
|
|
4819
4835
|
status: ExportJobStatus,
|
|
4820
4836
|
result: ExportJobResult.optional(),
|
|
4821
|
-
createdByUserId:
|
|
4837
|
+
createdByUserId: z151.string().optional(),
|
|
4822
4838
|
// Destinations
|
|
4823
4839
|
...ExportDestinationsMap.shape
|
|
4824
4840
|
});
|
|
@@ -4832,40 +4848,40 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4832
4848
|
themeId: true,
|
|
4833
4849
|
brandId: true
|
|
4834
4850
|
}).extend({
|
|
4835
|
-
destinations:
|
|
4851
|
+
destinations: z151.array(ExportJobDestinationType),
|
|
4836
4852
|
docsEnvironment: PublishedDocEnvironment
|
|
4837
4853
|
}).partial();
|
|
4838
4854
|
|
|
4839
4855
|
// src/export/exporter-workspace-membership-role.ts
|
|
4840
|
-
import { z as
|
|
4841
|
-
var ExporterWorkspaceMembershipRole =
|
|
4856
|
+
import { z as z152 } from "zod";
|
|
4857
|
+
var ExporterWorkspaceMembershipRole = z152.enum(["Owner", "OwnerArchived", "User"]);
|
|
4842
4858
|
|
|
4843
4859
|
// src/export/exporter-workspace-membership.ts
|
|
4844
|
-
import { z as
|
|
4845
|
-
var ExporterWorkspaceMembership =
|
|
4846
|
-
id:
|
|
4847
|
-
workspaceId:
|
|
4848
|
-
exporterId:
|
|
4860
|
+
import { z as z153 } from "zod";
|
|
4861
|
+
var ExporterWorkspaceMembership = z153.object({
|
|
4862
|
+
id: z153.string(),
|
|
4863
|
+
workspaceId: z153.string(),
|
|
4864
|
+
exporterId: z153.string(),
|
|
4849
4865
|
role: ExporterWorkspaceMembershipRole
|
|
4850
4866
|
});
|
|
4851
4867
|
|
|
4852
4868
|
// src/feature-flags/feature-flags.ts
|
|
4853
|
-
import { z as
|
|
4854
|
-
var FlaggedFeature =
|
|
4855
|
-
var FeatureFlagMap =
|
|
4856
|
-
var FeatureFlag =
|
|
4857
|
-
id:
|
|
4869
|
+
import { z as z154 } from "zod";
|
|
4870
|
+
var FlaggedFeature = z154.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
4871
|
+
var FeatureFlagMap = z154.record(FlaggedFeature, z154.boolean());
|
|
4872
|
+
var FeatureFlag = z154.object({
|
|
4873
|
+
id: z154.string(),
|
|
4858
4874
|
feature: FlaggedFeature,
|
|
4859
|
-
createdAt:
|
|
4860
|
-
enabled:
|
|
4861
|
-
designSystemId:
|
|
4875
|
+
createdAt: z154.coerce.date(),
|
|
4876
|
+
enabled: z154.boolean(),
|
|
4877
|
+
designSystemId: z154.string().optional()
|
|
4862
4878
|
});
|
|
4863
4879
|
|
|
4864
4880
|
// src/integrations/external-oauth-request.ts
|
|
4865
|
-
import { z as
|
|
4881
|
+
import { z as z156 } from "zod";
|
|
4866
4882
|
|
|
4867
4883
|
// src/integrations/oauth-providers.ts
|
|
4868
|
-
import { z as
|
|
4884
|
+
import { z as z155 } from "zod";
|
|
4869
4885
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4870
4886
|
OAuthProviderNames2["Figma"] = "figma";
|
|
4871
4887
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -4874,137 +4890,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4874
4890
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4875
4891
|
return OAuthProviderNames2;
|
|
4876
4892
|
})(OAuthProviderNames || {});
|
|
4877
|
-
var OAuthProviderSchema =
|
|
4893
|
+
var OAuthProviderSchema = z155.nativeEnum(OAuthProviderNames);
|
|
4878
4894
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4879
4895
|
|
|
4880
4896
|
// src/integrations/external-oauth-request.ts
|
|
4881
|
-
var ExternalOAuthRequest =
|
|
4882
|
-
id:
|
|
4897
|
+
var ExternalOAuthRequest = z156.object({
|
|
4898
|
+
id: z156.string(),
|
|
4883
4899
|
provider: OAuthProviderSchema,
|
|
4884
|
-
userId:
|
|
4885
|
-
state:
|
|
4886
|
-
createdAt:
|
|
4900
|
+
userId: z156.string(),
|
|
4901
|
+
state: z156.string(),
|
|
4902
|
+
createdAt: z156.coerce.date()
|
|
4887
4903
|
});
|
|
4888
4904
|
|
|
4889
4905
|
// src/integrations/git.ts
|
|
4890
|
-
import { z as
|
|
4891
|
-
var GitObjectsQuery =
|
|
4892
|
-
organization:
|
|
4906
|
+
import { z as z157 } from "zod";
|
|
4907
|
+
var GitObjectsQuery = z157.object({
|
|
4908
|
+
organization: z157.string().optional(),
|
|
4893
4909
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4894
|
-
project:
|
|
4910
|
+
project: z157.string().optional(),
|
|
4895
4911
|
// Only for Bitbucket and Azure
|
|
4896
|
-
repository:
|
|
4912
|
+
repository: z157.string().optional(),
|
|
4897
4913
|
// For all providers. For Gitlab, it's called "project".
|
|
4898
|
-
branch:
|
|
4914
|
+
branch: z157.string().optional(),
|
|
4899
4915
|
// For all providers.
|
|
4900
|
-
user:
|
|
4916
|
+
user: z157.string().optional()
|
|
4901
4917
|
// Gitlab user
|
|
4902
4918
|
});
|
|
4903
|
-
var GitOrganization =
|
|
4904
|
-
id:
|
|
4905
|
-
name:
|
|
4906
|
-
url:
|
|
4907
|
-
slug:
|
|
4919
|
+
var GitOrganization = z157.object({
|
|
4920
|
+
id: z157.string(),
|
|
4921
|
+
name: z157.string(),
|
|
4922
|
+
url: z157.string(),
|
|
4923
|
+
slug: z157.string()
|
|
4908
4924
|
});
|
|
4909
|
-
var GitProject =
|
|
4910
|
-
id:
|
|
4911
|
-
name:
|
|
4912
|
-
url:
|
|
4913
|
-
slug:
|
|
4925
|
+
var GitProject = z157.object({
|
|
4926
|
+
id: z157.string(),
|
|
4927
|
+
name: z157.string(),
|
|
4928
|
+
url: z157.string(),
|
|
4929
|
+
slug: z157.string()
|
|
4914
4930
|
});
|
|
4915
|
-
var GitRepository =
|
|
4916
|
-
id:
|
|
4917
|
-
name:
|
|
4918
|
-
url:
|
|
4919
|
-
slug:
|
|
4931
|
+
var GitRepository = z157.object({
|
|
4932
|
+
id: z157.string(),
|
|
4933
|
+
name: z157.string(),
|
|
4934
|
+
url: z157.string(),
|
|
4935
|
+
slug: z157.string(),
|
|
4920
4936
|
/**
|
|
4921
4937
|
* Can be undefined when:
|
|
4922
4938
|
* - there are no branches in the repository yet
|
|
4923
4939
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4924
4940
|
*/
|
|
4925
|
-
defaultBranch:
|
|
4941
|
+
defaultBranch: z157.string().optional()
|
|
4926
4942
|
});
|
|
4927
|
-
var GitBranch =
|
|
4928
|
-
name:
|
|
4929
|
-
lastCommitId:
|
|
4943
|
+
var GitBranch = z157.object({
|
|
4944
|
+
name: z157.string(),
|
|
4945
|
+
lastCommitId: z157.string()
|
|
4930
4946
|
});
|
|
4931
4947
|
|
|
4932
4948
|
// src/integrations/oauth-token.ts
|
|
4933
|
-
import { z as
|
|
4934
|
-
var IntegrationTokenSchemaOld =
|
|
4935
|
-
id:
|
|
4949
|
+
import { z as z158 } from "zod";
|
|
4950
|
+
var IntegrationTokenSchemaOld = z158.object({
|
|
4951
|
+
id: z158.string(),
|
|
4936
4952
|
provider: OAuthProviderSchema,
|
|
4937
|
-
scope:
|
|
4938
|
-
userId:
|
|
4939
|
-
accessToken:
|
|
4940
|
-
refreshToken:
|
|
4941
|
-
expiresAt:
|
|
4942
|
-
externalUserId:
|
|
4953
|
+
scope: z158.string(),
|
|
4954
|
+
userId: z158.string(),
|
|
4955
|
+
accessToken: z158.string(),
|
|
4956
|
+
refreshToken: z158.string(),
|
|
4957
|
+
expiresAt: z158.coerce.date(),
|
|
4958
|
+
externalUserId: z158.string().nullish()
|
|
4943
4959
|
});
|
|
4944
4960
|
|
|
4945
4961
|
// src/integrations/workspace-oauth-requests.ts
|
|
4946
|
-
import { z as
|
|
4947
|
-
var WorkspaceOAuthRequestSchema =
|
|
4948
|
-
id:
|
|
4949
|
-
workspaceId:
|
|
4962
|
+
import { z as z159 } from "zod";
|
|
4963
|
+
var WorkspaceOAuthRequestSchema = z159.object({
|
|
4964
|
+
id: z159.string(),
|
|
4965
|
+
workspaceId: z159.string(),
|
|
4950
4966
|
provider: OAuthProviderSchema,
|
|
4951
|
-
userId:
|
|
4952
|
-
createdAt:
|
|
4967
|
+
userId: z159.string(),
|
|
4968
|
+
createdAt: z159.coerce.date()
|
|
4953
4969
|
});
|
|
4954
4970
|
|
|
4955
4971
|
// src/npm/npm-package.ts
|
|
4956
|
-
import { z as
|
|
4957
|
-
var AnyRecord =
|
|
4972
|
+
import { z as z160 } from "zod";
|
|
4973
|
+
var AnyRecord = z160.record(z160.any());
|
|
4958
4974
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4959
|
-
|
|
4960
|
-
tarball:
|
|
4975
|
+
z160.object({
|
|
4976
|
+
tarball: z160.string()
|
|
4961
4977
|
})
|
|
4962
4978
|
);
|
|
4963
4979
|
var NpmPackageVersion = AnyRecord.and(
|
|
4964
|
-
|
|
4980
|
+
z160.object({
|
|
4965
4981
|
dist: NpmPackageVersionDist
|
|
4966
4982
|
})
|
|
4967
4983
|
);
|
|
4968
4984
|
var NpmPackage = AnyRecord.and(
|
|
4969
|
-
|
|
4970
|
-
_id:
|
|
4971
|
-
name:
|
|
4985
|
+
z160.object({
|
|
4986
|
+
_id: z160.string(),
|
|
4987
|
+
name: z160.string(),
|
|
4972
4988
|
// e.g. "latest": "1.2.3"
|
|
4973
|
-
"dist-tags":
|
|
4989
|
+
"dist-tags": z160.record(z160.string(), z160.string()),
|
|
4974
4990
|
// "1.2.3": {...}
|
|
4975
|
-
versions:
|
|
4991
|
+
versions: z160.record(NpmPackageVersion)
|
|
4976
4992
|
})
|
|
4977
4993
|
);
|
|
4978
4994
|
|
|
4979
4995
|
// src/npm/npm-proxy-token-payload.ts
|
|
4980
|
-
import { z as
|
|
4981
|
-
var NpmProxyTokenPayload =
|
|
4982
|
-
npmProxyRegistryConfigId:
|
|
4996
|
+
import { z as z161 } from "zod";
|
|
4997
|
+
var NpmProxyTokenPayload = z161.object({
|
|
4998
|
+
npmProxyRegistryConfigId: z161.string()
|
|
4983
4999
|
});
|
|
4984
5000
|
|
|
4985
5001
|
// src/tokens/personal-access-token.ts
|
|
4986
|
-
import { z as
|
|
5002
|
+
import { z as z169 } from "zod";
|
|
4987
5003
|
|
|
4988
5004
|
// src/workspace/user-invite.ts
|
|
4989
|
-
import { z as
|
|
5005
|
+
import { z as z163 } from "zod";
|
|
4990
5006
|
|
|
4991
5007
|
// src/workspace/workspace-role.ts
|
|
4992
|
-
import { z as
|
|
4993
|
-
var WorkspaceRoleSchema =
|
|
5008
|
+
import { z as z162 } from "zod";
|
|
5009
|
+
var WorkspaceRoleSchema = z162.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
4994
5010
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4995
5011
|
|
|
4996
5012
|
// src/workspace/user-invite.ts
|
|
4997
5013
|
var MAX_MEMBERS_COUNT = 100;
|
|
4998
|
-
var UserInvite =
|
|
4999
|
-
email:
|
|
5014
|
+
var UserInvite = z163.object({
|
|
5015
|
+
email: z163.string().email().trim().transform((value) => value.toLowerCase()),
|
|
5000
5016
|
role: WorkspaceRoleSchema
|
|
5001
5017
|
});
|
|
5002
|
-
var UserInvites =
|
|
5018
|
+
var UserInvites = z163.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
5003
5019
|
|
|
5004
5020
|
// src/workspace/workspace-configuration.ts
|
|
5005
|
-
import { z as
|
|
5006
|
-
var WorkspaceConfigurationUpdate =
|
|
5007
|
-
id:
|
|
5021
|
+
import { z as z164 } from "zod";
|
|
5022
|
+
var WorkspaceConfigurationUpdate = z164.object({
|
|
5023
|
+
id: z164.string(),
|
|
5008
5024
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
5009
5025
|
sso: SsoProvider.optional(),
|
|
5010
5026
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -5012,32 +5028,32 @@ var WorkspaceConfigurationUpdate = z163.object({
|
|
|
5012
5028
|
});
|
|
5013
5029
|
|
|
5014
5030
|
// src/workspace/workspace-context.ts
|
|
5015
|
-
import { z as
|
|
5016
|
-
var WorkspaceContext =
|
|
5017
|
-
workspaceId:
|
|
5031
|
+
import { z as z165 } from "zod";
|
|
5032
|
+
var WorkspaceContext = z165.object({
|
|
5033
|
+
workspaceId: z165.string(),
|
|
5018
5034
|
product: ProductCodeSchema,
|
|
5019
5035
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
5020
|
-
publicDesignSystem:
|
|
5036
|
+
publicDesignSystem: z165.boolean().optional()
|
|
5021
5037
|
});
|
|
5022
5038
|
|
|
5023
5039
|
// src/workspace/workspace-create.ts
|
|
5024
|
-
import { z as
|
|
5040
|
+
import { z as z166 } from "zod";
|
|
5025
5041
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
5026
5042
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
5027
5043
|
var HANDLE_MIN_LENGTH = 2;
|
|
5028
5044
|
var HANDLE_MAX_LENGTH = 64;
|
|
5029
|
-
var CreateWorkspaceInput =
|
|
5030
|
-
name:
|
|
5045
|
+
var CreateWorkspaceInput = z166.object({
|
|
5046
|
+
name: z166.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
5031
5047
|
product: ProductCodeSchema,
|
|
5032
|
-
priceId:
|
|
5033
|
-
billingEmail:
|
|
5034
|
-
handle:
|
|
5048
|
+
priceId: z166.string(),
|
|
5049
|
+
billingEmail: z166.string().email().optional(),
|
|
5050
|
+
handle: z166.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
5035
5051
|
invites: UserInvites.optional(),
|
|
5036
|
-
promoCode:
|
|
5052
|
+
promoCode: z166.string().optional(),
|
|
5037
5053
|
status: InternalStatusSchema.optional(),
|
|
5038
5054
|
planInterval: BillingIntervalSchema.optional(),
|
|
5039
|
-
seats:
|
|
5040
|
-
seatLimit:
|
|
5055
|
+
seats: z166.number().optional(),
|
|
5056
|
+
seatLimit: z166.number().optional(),
|
|
5041
5057
|
card: CardSchema.optional(),
|
|
5042
5058
|
sso: SsoProvider.optional(),
|
|
5043
5059
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
@@ -5045,47 +5061,47 @@ var CreateWorkspaceInput = z165.object({
|
|
|
5045
5061
|
});
|
|
5046
5062
|
|
|
5047
5063
|
// src/workspace/workspace-invitations.ts
|
|
5048
|
-
import { z as z166 } from "zod";
|
|
5049
|
-
var WorkspaceInvitation = z166.object({
|
|
5050
|
-
id: z166.string(),
|
|
5051
|
-
email: z166.string().email(),
|
|
5052
|
-
createdAt: z166.coerce.date(),
|
|
5053
|
-
resentAt: z166.coerce.date().nullish(),
|
|
5054
|
-
role: z166.nativeEnum(WorkspaceRole),
|
|
5055
|
-
workspaceId: z166.string(),
|
|
5056
|
-
invitedBy: z166.string()
|
|
5057
|
-
});
|
|
5058
|
-
|
|
5059
|
-
// src/workspace/workspace-membership.ts
|
|
5060
5064
|
import { z as z167 } from "zod";
|
|
5061
|
-
var
|
|
5065
|
+
var WorkspaceInvitation = z167.object({
|
|
5062
5066
|
id: z167.string(),
|
|
5063
|
-
|
|
5067
|
+
email: z167.string().email(),
|
|
5068
|
+
createdAt: z167.coerce.date(),
|
|
5069
|
+
resentAt: z167.coerce.date().nullish(),
|
|
5070
|
+
role: z167.nativeEnum(WorkspaceRole),
|
|
5064
5071
|
workspaceId: z167.string(),
|
|
5065
|
-
|
|
5072
|
+
invitedBy: z167.string()
|
|
5073
|
+
});
|
|
5074
|
+
|
|
5075
|
+
// src/workspace/workspace-membership.ts
|
|
5076
|
+
import { z as z168 } from "zod";
|
|
5077
|
+
var WorkspaceMembership = z168.object({
|
|
5078
|
+
id: z168.string(),
|
|
5079
|
+
userId: z168.string(),
|
|
5080
|
+
workspaceId: z168.string(),
|
|
5081
|
+
workspaceRole: z168.nativeEnum(WorkspaceRole),
|
|
5066
5082
|
notificationSettings: UserNotificationSettings
|
|
5067
5083
|
});
|
|
5068
|
-
var UpdateMembershipRolesInput =
|
|
5069
|
-
members:
|
|
5070
|
-
|
|
5071
|
-
userId:
|
|
5072
|
-
role:
|
|
5084
|
+
var UpdateMembershipRolesInput = z168.object({
|
|
5085
|
+
members: z168.array(
|
|
5086
|
+
z168.object({
|
|
5087
|
+
userId: z168.string(),
|
|
5088
|
+
role: z168.nativeEnum(WorkspaceRole)
|
|
5073
5089
|
})
|
|
5074
5090
|
)
|
|
5075
5091
|
});
|
|
5076
5092
|
|
|
5077
5093
|
// src/tokens/personal-access-token.ts
|
|
5078
|
-
var PersonalAccessToken =
|
|
5079
|
-
id:
|
|
5080
|
-
userId:
|
|
5081
|
-
workspaceId:
|
|
5094
|
+
var PersonalAccessToken = z169.object({
|
|
5095
|
+
id: z169.string(),
|
|
5096
|
+
userId: z169.string(),
|
|
5097
|
+
workspaceId: z169.string().optional(),
|
|
5082
5098
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5083
|
-
name:
|
|
5084
|
-
hidden:
|
|
5085
|
-
token:
|
|
5086
|
-
scope:
|
|
5087
|
-
createdAt:
|
|
5088
|
-
expireAt:
|
|
5099
|
+
name: z169.string(),
|
|
5100
|
+
hidden: z169.boolean(),
|
|
5101
|
+
token: z169.string(),
|
|
5102
|
+
scope: z169.string().optional(),
|
|
5103
|
+
createdAt: z169.coerce.date(),
|
|
5104
|
+
expireAt: z169.coerce.date().optional()
|
|
5089
5105
|
});
|
|
5090
5106
|
export {
|
|
5091
5107
|
Address,
|
|
@@ -5229,6 +5245,7 @@ export {
|
|
|
5229
5245
|
DocumentationPageSnapshot,
|
|
5230
5246
|
DocumentationPageV1,
|
|
5231
5247
|
DocumentationPageV2,
|
|
5248
|
+
DocumentationSettings,
|
|
5232
5249
|
DocumentationThreadDump,
|
|
5233
5250
|
DurationTokenData,
|
|
5234
5251
|
DurationUnit,
|