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