@supernova-studio/model 0.55.15 → 0.55.17
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 +346 -282
- package/dist/index.d.ts +346 -282
- package/dist/index.js +381 -359
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +650 -628
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +5 -1
- package/src/dsm/membership/design-system-membership.ts +27 -1
package/dist/index.mjs
CHANGED
|
@@ -287,7 +287,7 @@ var CustomDomain = z14.object({
|
|
|
287
287
|
});
|
|
288
288
|
|
|
289
289
|
// src/data-dumps/code-integration-dump.ts
|
|
290
|
-
import { z as
|
|
290
|
+
import { z as z126 } from "zod";
|
|
291
291
|
|
|
292
292
|
// src/export/exporter.ts
|
|
293
293
|
import { z as z17 } from "zod";
|
|
@@ -390,10 +390,10 @@ var Exporter = z17.object({
|
|
|
390
390
|
});
|
|
391
391
|
|
|
392
392
|
// src/export/pipeline.ts
|
|
393
|
-
import { z as
|
|
393
|
+
import { z as z125 } from "zod";
|
|
394
394
|
|
|
395
395
|
// src/export/export-destinations.ts
|
|
396
|
-
import { z as
|
|
396
|
+
import { z as z124 } from "zod";
|
|
397
397
|
|
|
398
398
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
399
399
|
import { z as z18 } from "zod";
|
|
@@ -2367,7 +2367,9 @@ var PageBlockItemFigmaComponentValue = z44.object({
|
|
|
2367
2367
|
z44.object({
|
|
2368
2368
|
entityId: z44.string(),
|
|
2369
2369
|
entityType: z44.enum(["FigmaComponent"]),
|
|
2370
|
-
|
|
2370
|
+
entityMeta: z44.object({
|
|
2371
|
+
selectedComponentProperties: z44.string().array().optional()
|
|
2372
|
+
}).optional()
|
|
2371
2373
|
})
|
|
2372
2374
|
).default([])
|
|
2373
2375
|
});
|
|
@@ -4006,592 +4008,329 @@ function pickLatestGroupSnapshots(snapshots) {
|
|
|
4006
4008
|
}
|
|
4007
4009
|
|
|
4008
4010
|
// src/dsm/membership/design-system-membership.ts
|
|
4009
|
-
import { z as
|
|
4010
|
-
|
|
4011
|
-
// src/workspace/npm-registry-settings.ts
|
|
4012
|
-
import { z as z113 } from "zod";
|
|
4013
|
-
var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4014
|
-
var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4015
|
-
var NpmRegistryBasicAuthConfig = z113.object({
|
|
4016
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4017
|
-
username: z113.string(),
|
|
4018
|
-
password: z113.string()
|
|
4019
|
-
});
|
|
4020
|
-
var NpmRegistryBearerAuthConfig = z113.object({
|
|
4021
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4022
|
-
accessToken: z113.string()
|
|
4023
|
-
});
|
|
4024
|
-
var NpmRegistryNoAuthConfig = z113.object({
|
|
4025
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.None)
|
|
4026
|
-
});
|
|
4027
|
-
var NpmRegistrCustomAuthConfig = z113.object({
|
|
4028
|
-
authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4029
|
-
authHeaderName: z113.string(),
|
|
4030
|
-
authHeaderValue: z113.string()
|
|
4031
|
-
});
|
|
4032
|
-
var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
|
|
4033
|
-
NpmRegistryBasicAuthConfig,
|
|
4034
|
-
NpmRegistryBearerAuthConfig,
|
|
4035
|
-
NpmRegistryNoAuthConfig,
|
|
4036
|
-
NpmRegistrCustomAuthConfig
|
|
4037
|
-
]);
|
|
4038
|
-
var NpmRegistryConfigBase = z113.object({
|
|
4039
|
-
registryType: NpmRegistryType,
|
|
4040
|
-
enabledScopes: z113.array(z113.string()),
|
|
4041
|
-
customRegistryUrl: z113.string().optional(),
|
|
4042
|
-
bypassProxy: z113.boolean().default(false),
|
|
4043
|
-
npmProxyRegistryConfigId: z113.string().optional(),
|
|
4044
|
-
npmProxyVersion: z113.number().optional()
|
|
4045
|
-
});
|
|
4046
|
-
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4047
|
-
|
|
4048
|
-
// src/workspace/sso-provider.ts
|
|
4049
|
-
import { z as z114 } from "zod";
|
|
4050
|
-
var SsoProvider = z114.object({
|
|
4051
|
-
providerId: z114.string(),
|
|
4052
|
-
defaultAutoInviteValue: z114.boolean(),
|
|
4053
|
-
autoInviteDomains: z114.record(z114.string(), z114.boolean()),
|
|
4054
|
-
skipDocsSupernovaLogin: z114.boolean(),
|
|
4055
|
-
areInvitesDisabled: z114.boolean(),
|
|
4056
|
-
isTestMode: z114.boolean(),
|
|
4057
|
-
emailDomains: z114.array(z114.string()),
|
|
4058
|
-
metadataXml: z114.string().nullish()
|
|
4059
|
-
});
|
|
4060
|
-
|
|
4061
|
-
// src/workspace/user-invite.ts
|
|
4062
|
-
import { z as z116 } from "zod";
|
|
4011
|
+
import { z as z115 } from "zod";
|
|
4063
4012
|
|
|
4064
4013
|
// src/workspace/workspace-role.ts
|
|
4065
|
-
import { z as
|
|
4066
|
-
var WorkspaceRoleSchema =
|
|
4014
|
+
import { z as z113 } from "zod";
|
|
4015
|
+
var WorkspaceRoleSchema = z113.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4067
4016
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4068
4017
|
|
|
4069
|
-
// src/workspace/user-invite.ts
|
|
4070
|
-
var MAX_MEMBERS_COUNT = 100;
|
|
4071
|
-
var UserInvite = z116.object({
|
|
4072
|
-
email: z116.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4073
|
-
role: WorkspaceRoleSchema
|
|
4074
|
-
});
|
|
4075
|
-
var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4076
|
-
|
|
4077
|
-
// src/workspace/workspace-configuration.ts
|
|
4078
|
-
import { z as z118 } from "zod";
|
|
4079
|
-
|
|
4080
|
-
// src/workspace/workspace.ts
|
|
4081
|
-
import IPCIDR from "ip-cidr";
|
|
4082
|
-
import { z as z117 } from "zod";
|
|
4083
|
-
var isValidCIDR = (value) => {
|
|
4084
|
-
return IPCIDR.isValidAddress(value);
|
|
4085
|
-
};
|
|
4086
|
-
var WorkspaceIpWhitelistEntry = z117.object({
|
|
4087
|
-
isEnabled: z117.boolean(),
|
|
4088
|
-
name: z117.string(),
|
|
4089
|
-
range: z117.string().refine(isValidCIDR, {
|
|
4090
|
-
message: "Invalid IP CIDR"
|
|
4091
|
-
})
|
|
4092
|
-
});
|
|
4093
|
-
var WorkspaceIpSettings = z117.object({
|
|
4094
|
-
isEnabledForCloud: z117.boolean(),
|
|
4095
|
-
isEnabledForDocs: z117.boolean(),
|
|
4096
|
-
entries: z117.array(WorkspaceIpWhitelistEntry)
|
|
4097
|
-
});
|
|
4098
|
-
var WorkspaceProfile = z117.object({
|
|
4099
|
-
name: z117.string(),
|
|
4100
|
-
handle: z117.string(),
|
|
4101
|
-
color: z117.string(),
|
|
4102
|
-
avatar: nullishToOptional(z117.string()),
|
|
4103
|
-
billingDetails: nullishToOptional(BillingDetails)
|
|
4104
|
-
});
|
|
4105
|
-
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4106
|
-
avatar: true
|
|
4107
|
-
});
|
|
4108
|
-
var Workspace = z117.object({
|
|
4109
|
-
id: z117.string(),
|
|
4110
|
-
profile: WorkspaceProfile,
|
|
4111
|
-
subscription: Subscription,
|
|
4112
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4113
|
-
sso: nullishToOptional(SsoProvider),
|
|
4114
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4115
|
-
});
|
|
4116
|
-
var WorkspaceWithDesignSystems = z117.object({
|
|
4117
|
-
workspace: Workspace,
|
|
4118
|
-
designSystems: z117.array(DesignSystem)
|
|
4119
|
-
});
|
|
4120
|
-
|
|
4121
|
-
// src/workspace/workspace-configuration.ts
|
|
4122
|
-
var WorkspaceConfigurationUpdate = z118.object({
|
|
4123
|
-
id: z118.string(),
|
|
4124
|
-
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4125
|
-
sso: SsoProvider.optional(),
|
|
4126
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4127
|
-
profile: WorkspaceProfileUpdate.optional()
|
|
4128
|
-
});
|
|
4129
|
-
|
|
4130
|
-
// src/workspace/workspace-context.ts
|
|
4131
|
-
import { z as z119 } from "zod";
|
|
4132
|
-
var WorkspaceContext = z119.object({
|
|
4133
|
-
workspaceId: z119.string(),
|
|
4134
|
-
product: ProductCodeSchema,
|
|
4135
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4136
|
-
publicDesignSystem: z119.boolean().optional()
|
|
4137
|
-
});
|
|
4138
|
-
|
|
4139
|
-
// src/workspace/workspace-create.ts
|
|
4140
|
-
import { z as z120 } from "zod";
|
|
4141
|
-
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4142
|
-
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4143
|
-
var HANDLE_MIN_LENGTH = 2;
|
|
4144
|
-
var HANDLE_MAX_LENGTH = 64;
|
|
4145
|
-
var CreateWorkspaceInput = z120.object({
|
|
4146
|
-
name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4147
|
-
handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4148
|
-
});
|
|
4149
|
-
|
|
4150
|
-
// src/workspace/workspace-invitations.ts
|
|
4151
|
-
import { z as z121 } from "zod";
|
|
4152
|
-
var WorkspaceInvitation = z121.object({
|
|
4153
|
-
id: z121.string(),
|
|
4154
|
-
email: z121.string().email(),
|
|
4155
|
-
createdAt: z121.coerce.date(),
|
|
4156
|
-
resentAt: z121.coerce.date().nullish(),
|
|
4157
|
-
role: z121.nativeEnum(WorkspaceRole),
|
|
4158
|
-
workspaceId: z121.string(),
|
|
4159
|
-
invitedBy: z121.string()
|
|
4160
|
-
});
|
|
4161
|
-
|
|
4162
|
-
// src/workspace/workspace-membership.ts
|
|
4163
|
-
import { z as z130 } from "zod";
|
|
4164
|
-
|
|
4165
|
-
// src/users/linked-integrations.ts
|
|
4166
|
-
import { z as z122 } from "zod";
|
|
4167
|
-
var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
|
|
4168
|
-
var ExternalServiceType = z122.union([
|
|
4169
|
-
z122.literal("figma"),
|
|
4170
|
-
z122.literal("github"),
|
|
4171
|
-
z122.literal("azure"),
|
|
4172
|
-
z122.literal("gitlab"),
|
|
4173
|
-
z122.literal("bitbucket")
|
|
4174
|
-
]);
|
|
4175
|
-
var IntegrationUserInfo = z122.object({
|
|
4176
|
-
id: z122.string(),
|
|
4177
|
-
handle: z122.string().optional(),
|
|
4178
|
-
avatarUrl: z122.string().optional(),
|
|
4179
|
-
email: z122.string().optional(),
|
|
4180
|
-
authType: IntegrationAuthType.optional(),
|
|
4181
|
-
customUrl: z122.string().optional()
|
|
4182
|
-
});
|
|
4183
|
-
var UserLinkedIntegrations = z122.object({
|
|
4184
|
-
figma: IntegrationUserInfo.optional(),
|
|
4185
|
-
github: IntegrationUserInfo.array().optional(),
|
|
4186
|
-
azure: IntegrationUserInfo.array().optional(),
|
|
4187
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
4188
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
4189
|
-
});
|
|
4190
|
-
|
|
4191
|
-
// src/users/user-analytics-cleanup-schedule.ts
|
|
4192
|
-
import { z as z123 } from "zod";
|
|
4193
|
-
var UserAnalyticsCleanupSchedule = z123.object({
|
|
4194
|
-
userId: z123.string(),
|
|
4195
|
-
createdAt: z123.coerce.date(),
|
|
4196
|
-
deleteAt: z123.coerce.date()
|
|
4197
|
-
});
|
|
4198
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4199
|
-
createdAt: true
|
|
4200
|
-
});
|
|
4201
|
-
|
|
4202
|
-
// src/users/user-identity.ts
|
|
4203
|
-
import { z as z124 } from "zod";
|
|
4204
|
-
var UserIdentity = z124.object({
|
|
4205
|
-
id: z124.string(),
|
|
4206
|
-
userId: z124.string()
|
|
4207
|
-
});
|
|
4208
|
-
|
|
4209
|
-
// src/users/user-minified.ts
|
|
4210
|
-
import { z as z125 } from "zod";
|
|
4211
|
-
var UserMinified = z125.object({
|
|
4212
|
-
id: z125.string(),
|
|
4213
|
-
name: z125.string(),
|
|
4214
|
-
email: z125.string(),
|
|
4215
|
-
avatar: z125.string().optional()
|
|
4216
|
-
});
|
|
4217
|
-
|
|
4218
|
-
// src/users/user-notification-settings.ts
|
|
4219
|
-
import { z as z126 } from "zod";
|
|
4220
|
-
var LiveblocksNotificationSettings = z126.object({
|
|
4221
|
-
sendCommentNotificationEmails: z126.boolean()
|
|
4222
|
-
});
|
|
4223
|
-
var UserNotificationSettings = z126.object({
|
|
4224
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4225
|
-
});
|
|
4226
|
-
var defaultNotificationSettings = {
|
|
4227
|
-
liveblocksNotificationSettings: {
|
|
4228
|
-
sendCommentNotificationEmails: true
|
|
4229
|
-
}
|
|
4230
|
-
};
|
|
4231
|
-
|
|
4232
|
-
// src/users/user-profile.ts
|
|
4233
|
-
import { z as z127 } from "zod";
|
|
4234
|
-
var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4235
|
-
var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4236
|
-
var UserOnboarding = z127.object({
|
|
4237
|
-
companyName: z127.string().optional(),
|
|
4238
|
-
numberOfPeopleInOrg: z127.string().optional(),
|
|
4239
|
-
numberOfPeopleInDesignTeam: z127.string().optional(),
|
|
4240
|
-
department: UserOnboardingDepartment.optional(),
|
|
4241
|
-
jobTitle: z127.string().optional(),
|
|
4242
|
-
phase: z127.string().optional(),
|
|
4243
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4244
|
-
designSystemName: z127.string().optional(),
|
|
4245
|
-
defaultDestination: z127.string().optional(),
|
|
4246
|
-
figmaUrl: z127.string().optional(),
|
|
4247
|
-
isPageDraftOnboardingFinished: z127.boolean().optional(),
|
|
4248
|
-
isApprovalsOnboardingFinished: z127.boolean().optional()
|
|
4249
|
-
});
|
|
4250
|
-
var UserProfile = z127.object({
|
|
4251
|
-
name: z127.string(),
|
|
4252
|
-
avatar: z127.string().optional(),
|
|
4253
|
-
nickname: z127.string().optional(),
|
|
4254
|
-
onboarding: UserOnboarding.optional()
|
|
4255
|
-
});
|
|
4256
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4257
|
-
avatar: true
|
|
4258
|
-
});
|
|
4259
|
-
|
|
4260
|
-
// src/users/user-test.ts
|
|
4261
|
-
import { z as z128 } from "zod";
|
|
4262
|
-
var UserTest = z128.object({
|
|
4263
|
-
id: z128.string(),
|
|
4264
|
-
email: z128.string()
|
|
4265
|
-
});
|
|
4266
|
-
|
|
4267
|
-
// src/users/user.ts
|
|
4268
|
-
import { z as z129 } from "zod";
|
|
4269
|
-
var UserSource = z129.enum(["SignUp", "Invite", "SSO"]);
|
|
4270
|
-
var User = z129.object({
|
|
4271
|
-
id: z129.string(),
|
|
4272
|
-
email: z129.string(),
|
|
4273
|
-
emailVerified: z129.boolean(),
|
|
4274
|
-
createdAt: z129.coerce.date(),
|
|
4275
|
-
trialExpiresAt: z129.coerce.date().optional(),
|
|
4276
|
-
profile: UserProfile,
|
|
4277
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4278
|
-
loggedOutAt: z129.coerce.date().optional(),
|
|
4279
|
-
isProtected: z129.boolean(),
|
|
4280
|
-
source: UserSource.optional()
|
|
4281
|
-
});
|
|
4282
|
-
|
|
4283
|
-
// src/workspace/workspace-membership.ts
|
|
4284
|
-
var WorkspaceMembership = z130.object({
|
|
4285
|
-
id: z130.string(),
|
|
4286
|
-
userId: z130.string(),
|
|
4287
|
-
workspaceId: z130.string(),
|
|
4288
|
-
workspaceRole: z130.nativeEnum(WorkspaceRole),
|
|
4289
|
-
notificationSettings: UserNotificationSettings
|
|
4290
|
-
});
|
|
4291
|
-
var UpdateMembershipRolesInput = z130.object({
|
|
4292
|
-
members: z130.array(
|
|
4293
|
-
z130.object({
|
|
4294
|
-
userId: z130.string(),
|
|
4295
|
-
role: z130.nativeEnum(WorkspaceRole)
|
|
4296
|
-
})
|
|
4297
|
-
)
|
|
4298
|
-
});
|
|
4299
|
-
|
|
4300
4018
|
// src/dsm/membership/invitations.ts
|
|
4301
|
-
import { z as
|
|
4302
|
-
var DesignSystemInvitation =
|
|
4303
|
-
id:
|
|
4304
|
-
designSystemId:
|
|
4305
|
-
workspaceInvitationId:
|
|
4019
|
+
import { z as z114 } from "zod";
|
|
4020
|
+
var DesignSystemInvitation = z114.object({
|
|
4021
|
+
id: z114.string(),
|
|
4022
|
+
designSystemId: z114.string(),
|
|
4023
|
+
workspaceInvitationId: z114.string()
|
|
4306
4024
|
});
|
|
4307
4025
|
|
|
4308
4026
|
// src/dsm/membership/design-system-membership.ts
|
|
4309
|
-
var
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4027
|
+
var DesignSystemRole = z115.enum([
|
|
4028
|
+
WorkspaceRole.Admin,
|
|
4029
|
+
WorkspaceRole.Contributor,
|
|
4030
|
+
WorkspaceRole.Creator,
|
|
4031
|
+
WorkspaceRole.Viewer
|
|
4032
|
+
]);
|
|
4033
|
+
var DesignSystemMembership = z115.object({
|
|
4034
|
+
id: z115.string(),
|
|
4035
|
+
userId: z115.string(),
|
|
4036
|
+
designSystemId: z115.string(),
|
|
4037
|
+
workspaceMembershipId: z115.string()
|
|
4314
4038
|
});
|
|
4315
|
-
var DesignSystemMembers =
|
|
4039
|
+
var DesignSystemMembers = z115.object({
|
|
4316
4040
|
members: DesignSystemMembership.array(),
|
|
4317
4041
|
invitations: DesignSystemInvitation.array()
|
|
4318
4042
|
});
|
|
4319
|
-
var DesignSystemPendingMemberInvitation =
|
|
4320
|
-
inviteId:
|
|
4043
|
+
var DesignSystemPendingMemberInvitation = z115.object({
|
|
4044
|
+
inviteId: z115.string(),
|
|
4045
|
+
/**
|
|
4046
|
+
* Role that the user will have in the design system, undefined
|
|
4047
|
+
* if it should be inherited from the workspace
|
|
4048
|
+
*/
|
|
4049
|
+
designSystemRole: DesignSystemRole.optional()
|
|
4321
4050
|
});
|
|
4322
|
-
var DesignSystemUserInvitation =
|
|
4323
|
-
userId:
|
|
4051
|
+
var DesignSystemUserInvitation = z115.object({
|
|
4052
|
+
userId: z115.string(),
|
|
4053
|
+
/**
|
|
4054
|
+
* Role that the user will have in the design system, undefined
|
|
4055
|
+
* if it should be inherited from the workspace
|
|
4056
|
+
*/
|
|
4057
|
+
designSystemRole: DesignSystemRole.optional()
|
|
4324
4058
|
});
|
|
4325
|
-
var DesignSystemInvite =
|
|
4326
|
-
email:
|
|
4327
|
-
workspaceRole: WorkspaceRoleSchema
|
|
4059
|
+
var DesignSystemInvite = z115.object({
|
|
4060
|
+
email: z115.string(),
|
|
4061
|
+
workspaceRole: WorkspaceRoleSchema,
|
|
4062
|
+
/**
|
|
4063
|
+
* Role that the user will have in the design system, undefined
|
|
4064
|
+
* if it should be inherited from the workspace
|
|
4065
|
+
*/
|
|
4066
|
+
designSystemRole: DesignSystemRole.optional()
|
|
4328
4067
|
});
|
|
4329
|
-
var DesignSystemMembershipUpdates =
|
|
4068
|
+
var DesignSystemMembershipUpdates = z115.object({
|
|
4330
4069
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
4331
4070
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
4332
4071
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
4333
|
-
removeUserIds:
|
|
4334
|
-
deleteInvitationIds:
|
|
4072
|
+
removeUserIds: z115.string().array().optional(),
|
|
4073
|
+
deleteInvitationIds: z115.string().array().optional()
|
|
4335
4074
|
});
|
|
4336
4075
|
|
|
4337
4076
|
// src/dsm/views/column.ts
|
|
4338
|
-
import { z as
|
|
4339
|
-
var ElementViewBaseColumnType =
|
|
4340
|
-
var ElementViewColumnType =
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4077
|
+
import { z as z116 } from "zod";
|
|
4078
|
+
var ElementViewBaseColumnType = z116.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
4079
|
+
var ElementViewColumnType = z116.union([
|
|
4080
|
+
z116.literal("BaseProperty"),
|
|
4081
|
+
z116.literal("PropertyDefinition"),
|
|
4082
|
+
z116.literal("Theme")
|
|
4344
4083
|
]);
|
|
4345
|
-
var ElementViewColumnSharedAttributes =
|
|
4346
|
-
id:
|
|
4347
|
-
persistentId:
|
|
4348
|
-
elementDataViewId:
|
|
4349
|
-
sortPosition:
|
|
4350
|
-
width:
|
|
4084
|
+
var ElementViewColumnSharedAttributes = z116.object({
|
|
4085
|
+
id: z116.string(),
|
|
4086
|
+
persistentId: z116.string(),
|
|
4087
|
+
elementDataViewId: z116.string(),
|
|
4088
|
+
sortPosition: z116.number(),
|
|
4089
|
+
width: z116.number()
|
|
4351
4090
|
});
|
|
4352
4091
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
4353
|
-
type:
|
|
4092
|
+
type: z116.literal("BaseProperty"),
|
|
4354
4093
|
basePropertyType: ElementViewBaseColumnType
|
|
4355
4094
|
});
|
|
4356
4095
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
4357
|
-
type:
|
|
4358
|
-
propertyDefinitionId:
|
|
4096
|
+
type: z116.literal("PropertyDefinition"),
|
|
4097
|
+
propertyDefinitionId: z116.string()
|
|
4359
4098
|
});
|
|
4360
4099
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
4361
|
-
type:
|
|
4362
|
-
themeId:
|
|
4100
|
+
type: z116.literal("Theme"),
|
|
4101
|
+
themeId: z116.string()
|
|
4363
4102
|
});
|
|
4364
|
-
var ElementViewColumn =
|
|
4103
|
+
var ElementViewColumn = z116.discriminatedUnion("type", [
|
|
4365
4104
|
ElementViewBasePropertyColumn,
|
|
4366
4105
|
ElementViewPropertyDefinitionColumn,
|
|
4367
4106
|
ElementViewThemeColumn
|
|
4368
4107
|
]);
|
|
4369
4108
|
|
|
4370
4109
|
// src/dsm/views/view.ts
|
|
4371
|
-
import { z as
|
|
4372
|
-
var ElementView =
|
|
4373
|
-
id:
|
|
4374
|
-
persistentId:
|
|
4375
|
-
designSystemVersionId:
|
|
4376
|
-
name:
|
|
4377
|
-
description:
|
|
4110
|
+
import { z as z117 } from "zod";
|
|
4111
|
+
var ElementView = z117.object({
|
|
4112
|
+
id: z117.string(),
|
|
4113
|
+
persistentId: z117.string(),
|
|
4114
|
+
designSystemVersionId: z117.string(),
|
|
4115
|
+
name: z117.string(),
|
|
4116
|
+
description: z117.string(),
|
|
4378
4117
|
targetElementType: ElementPropertyTargetType,
|
|
4379
|
-
isDefault:
|
|
4118
|
+
isDefault: z117.boolean()
|
|
4380
4119
|
});
|
|
4381
4120
|
|
|
4382
4121
|
// src/dsm/brand.ts
|
|
4383
|
-
import { z as
|
|
4384
|
-
var Brand =
|
|
4385
|
-
id:
|
|
4386
|
-
designSystemVersionId:
|
|
4387
|
-
persistentId:
|
|
4388
|
-
name:
|
|
4389
|
-
description:
|
|
4122
|
+
import { z as z118 } from "zod";
|
|
4123
|
+
var Brand = z118.object({
|
|
4124
|
+
id: z118.string(),
|
|
4125
|
+
designSystemVersionId: z118.string(),
|
|
4126
|
+
persistentId: z118.string(),
|
|
4127
|
+
name: z118.string(),
|
|
4128
|
+
description: z118.string()
|
|
4390
4129
|
});
|
|
4391
4130
|
|
|
4392
4131
|
// src/dsm/design-system.ts
|
|
4393
|
-
import { z as
|
|
4394
|
-
var DesignSystemAccessMode =
|
|
4395
|
-
var DesignSystemSwitcher =
|
|
4396
|
-
isEnabled:
|
|
4397
|
-
designSystemIds:
|
|
4132
|
+
import { z as z119 } from "zod";
|
|
4133
|
+
var DesignSystemAccessMode = z119.enum(["Open", "InviteOnly"]);
|
|
4134
|
+
var DesignSystemSwitcher = z119.object({
|
|
4135
|
+
isEnabled: z119.boolean(),
|
|
4136
|
+
designSystemIds: z119.array(z119.string())
|
|
4398
4137
|
});
|
|
4399
|
-
var DesignSystem =
|
|
4400
|
-
id:
|
|
4401
|
-
workspaceId:
|
|
4402
|
-
name:
|
|
4403
|
-
description:
|
|
4404
|
-
docExporterId: nullishToOptional(
|
|
4405
|
-
docSlug:
|
|
4406
|
-
docUserSlug: nullishToOptional(
|
|
4407
|
-
docSlugDeprecated:
|
|
4408
|
-
isPublic:
|
|
4409
|
-
isMultibrand:
|
|
4410
|
-
docViewUrl: nullishToOptional(
|
|
4411
|
-
basePrefixes:
|
|
4138
|
+
var DesignSystem = z119.object({
|
|
4139
|
+
id: z119.string(),
|
|
4140
|
+
workspaceId: z119.string(),
|
|
4141
|
+
name: z119.string(),
|
|
4142
|
+
description: z119.string(),
|
|
4143
|
+
docExporterId: nullishToOptional(z119.string()),
|
|
4144
|
+
docSlug: z119.string(),
|
|
4145
|
+
docUserSlug: nullishToOptional(z119.string()),
|
|
4146
|
+
docSlugDeprecated: z119.string(),
|
|
4147
|
+
isPublic: z119.boolean(),
|
|
4148
|
+
isMultibrand: z119.boolean(),
|
|
4149
|
+
docViewUrl: nullishToOptional(z119.string()),
|
|
4150
|
+
basePrefixes: z119.array(z119.string()),
|
|
4412
4151
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
4413
|
-
isApprovalFeatureEnabled:
|
|
4414
|
-
approvalRequiredForPublishing:
|
|
4152
|
+
isApprovalFeatureEnabled: z119.boolean(),
|
|
4153
|
+
approvalRequiredForPublishing: z119.boolean(),
|
|
4415
4154
|
accessMode: DesignSystemAccessMode,
|
|
4416
|
-
membersGenerated:
|
|
4417
|
-
createdAt:
|
|
4418
|
-
updatedAt:
|
|
4155
|
+
membersGenerated: z119.boolean(),
|
|
4156
|
+
createdAt: z119.coerce.date(),
|
|
4157
|
+
updatedAt: z119.coerce.date()
|
|
4419
4158
|
});
|
|
4420
4159
|
|
|
4421
4160
|
// src/dsm/exporter-property-values-collection.ts
|
|
4422
|
-
import { z as
|
|
4423
|
-
var ExporterPropertyImageValue =
|
|
4161
|
+
import { z as z120 } from "zod";
|
|
4162
|
+
var ExporterPropertyImageValue = z120.object({
|
|
4424
4163
|
asset: PageBlockAsset.optional(),
|
|
4425
|
-
assetId:
|
|
4426
|
-
assetUrl:
|
|
4427
|
-
});
|
|
4428
|
-
var ExporterPropertyValue =
|
|
4429
|
-
key:
|
|
4430
|
-
value:
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4164
|
+
assetId: z120.string().optional(),
|
|
4165
|
+
assetUrl: z120.string().optional()
|
|
4166
|
+
});
|
|
4167
|
+
var ExporterPropertyValue = z120.object({
|
|
4168
|
+
key: z120.string(),
|
|
4169
|
+
value: z120.union([
|
|
4170
|
+
z120.number(),
|
|
4171
|
+
z120.string(),
|
|
4172
|
+
z120.boolean(),
|
|
4434
4173
|
ExporterPropertyImageValue,
|
|
4435
4174
|
ColorTokenData,
|
|
4436
4175
|
TypographyTokenData
|
|
4437
4176
|
])
|
|
4438
4177
|
});
|
|
4439
|
-
var ExporterPropertyValuesCollection =
|
|
4440
|
-
id:
|
|
4441
|
-
designSystemId:
|
|
4442
|
-
exporterId:
|
|
4443
|
-
values:
|
|
4178
|
+
var ExporterPropertyValuesCollection = z120.object({
|
|
4179
|
+
id: z120.string(),
|
|
4180
|
+
designSystemId: z120.string(),
|
|
4181
|
+
exporterId: z120.string(),
|
|
4182
|
+
values: z120.array(ExporterPropertyValue)
|
|
4444
4183
|
});
|
|
4445
4184
|
|
|
4446
4185
|
// src/dsm/published-doc-page.ts
|
|
4447
|
-
import { z as
|
|
4186
|
+
import { z as z121 } from "zod";
|
|
4448
4187
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4449
4188
|
function tryParseShortPersistentId(url = "/") {
|
|
4450
4189
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4451
4190
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4452
4191
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4453
4192
|
}
|
|
4454
|
-
var PublishedDocPage =
|
|
4455
|
-
id:
|
|
4456
|
-
publishedDocId:
|
|
4457
|
-
pageShortPersistentId:
|
|
4458
|
-
pathV1:
|
|
4459
|
-
pathV2:
|
|
4460
|
-
storagePath:
|
|
4461
|
-
locale:
|
|
4462
|
-
isPrivate:
|
|
4463
|
-
isHidden:
|
|
4464
|
-
createdAt:
|
|
4465
|
-
updatedAt:
|
|
4193
|
+
var PublishedDocPage = z121.object({
|
|
4194
|
+
id: z121.string(),
|
|
4195
|
+
publishedDocId: z121.string(),
|
|
4196
|
+
pageShortPersistentId: z121.string(),
|
|
4197
|
+
pathV1: z121.string(),
|
|
4198
|
+
pathV2: z121.string(),
|
|
4199
|
+
storagePath: z121.string(),
|
|
4200
|
+
locale: z121.string().optional(),
|
|
4201
|
+
isPrivate: z121.boolean(),
|
|
4202
|
+
isHidden: z121.boolean(),
|
|
4203
|
+
createdAt: z121.coerce.date(),
|
|
4204
|
+
updatedAt: z121.coerce.date()
|
|
4466
4205
|
});
|
|
4467
4206
|
|
|
4468
4207
|
// src/dsm/published-doc.ts
|
|
4469
|
-
import { z as
|
|
4208
|
+
import { z as z122 } from "zod";
|
|
4470
4209
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4471
|
-
var PublishedDocEnvironment =
|
|
4472
|
-
var PublishedDocsChecksums =
|
|
4473
|
-
var PublishedDocRoutingVersion =
|
|
4474
|
-
var PublishedDoc =
|
|
4475
|
-
id:
|
|
4476
|
-
designSystemVersionId:
|
|
4477
|
-
createdAt:
|
|
4478
|
-
updatedAt:
|
|
4479
|
-
lastPublishedAt:
|
|
4480
|
-
isDefault:
|
|
4481
|
-
isPublic:
|
|
4210
|
+
var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
|
|
4211
|
+
var PublishedDocsChecksums = z122.record(z122.string());
|
|
4212
|
+
var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
|
|
4213
|
+
var PublishedDoc = z122.object({
|
|
4214
|
+
id: z122.string(),
|
|
4215
|
+
designSystemVersionId: z122.string(),
|
|
4216
|
+
createdAt: z122.coerce.date(),
|
|
4217
|
+
updatedAt: z122.coerce.date(),
|
|
4218
|
+
lastPublishedAt: z122.coerce.date(),
|
|
4219
|
+
isDefault: z122.boolean(),
|
|
4220
|
+
isPublic: z122.boolean(),
|
|
4482
4221
|
environment: PublishedDocEnvironment,
|
|
4483
4222
|
checksums: PublishedDocsChecksums,
|
|
4484
|
-
storagePath:
|
|
4485
|
-
wasMigrated:
|
|
4223
|
+
storagePath: z122.string(),
|
|
4224
|
+
wasMigrated: z122.boolean(),
|
|
4486
4225
|
routingVersion: PublishedDocRoutingVersion,
|
|
4487
|
-
usesLocalizations:
|
|
4488
|
-
wasPublishedWithLocalizations:
|
|
4489
|
-
tokenCount:
|
|
4490
|
-
assetCount:
|
|
4226
|
+
usesLocalizations: z122.boolean(),
|
|
4227
|
+
wasPublishedWithLocalizations: z122.boolean(),
|
|
4228
|
+
tokenCount: z122.number(),
|
|
4229
|
+
assetCount: z122.number()
|
|
4491
4230
|
});
|
|
4492
4231
|
|
|
4493
4232
|
// src/dsm/version.ts
|
|
4494
|
-
import { z as
|
|
4495
|
-
var DesignSystemVersion =
|
|
4496
|
-
id:
|
|
4497
|
-
version:
|
|
4498
|
-
createdAt:
|
|
4499
|
-
designSystemId:
|
|
4500
|
-
name:
|
|
4501
|
-
comment:
|
|
4502
|
-
isReadonly:
|
|
4503
|
-
changeLog:
|
|
4504
|
-
parentId:
|
|
4505
|
-
isDraftsFeatureAdopted:
|
|
4506
|
-
});
|
|
4507
|
-
var VersionCreationJobStatus =
|
|
4508
|
-
var VersionCreationJob =
|
|
4509
|
-
id:
|
|
4510
|
-
version:
|
|
4511
|
-
designSystemId:
|
|
4512
|
-
designSystemVersionId: nullishToOptional(
|
|
4233
|
+
import { z as z123 } from "zod";
|
|
4234
|
+
var DesignSystemVersion = z123.object({
|
|
4235
|
+
id: z123.string(),
|
|
4236
|
+
version: z123.string(),
|
|
4237
|
+
createdAt: z123.coerce.date(),
|
|
4238
|
+
designSystemId: z123.string(),
|
|
4239
|
+
name: z123.string(),
|
|
4240
|
+
comment: z123.string(),
|
|
4241
|
+
isReadonly: z123.boolean(),
|
|
4242
|
+
changeLog: z123.string(),
|
|
4243
|
+
parentId: z123.string().optional(),
|
|
4244
|
+
isDraftsFeatureAdopted: z123.boolean()
|
|
4245
|
+
});
|
|
4246
|
+
var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
|
|
4247
|
+
var VersionCreationJob = z123.object({
|
|
4248
|
+
id: z123.string(),
|
|
4249
|
+
version: z123.string(),
|
|
4250
|
+
designSystemId: z123.string(),
|
|
4251
|
+
designSystemVersionId: nullishToOptional(z123.string()),
|
|
4513
4252
|
status: VersionCreationJobStatus,
|
|
4514
|
-
errorMessage: nullishToOptional(
|
|
4253
|
+
errorMessage: nullishToOptional(z123.string())
|
|
4515
4254
|
});
|
|
4516
4255
|
|
|
4517
4256
|
// src/export/export-destinations.ts
|
|
4518
4257
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4519
4258
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4520
|
-
var ExportJobDocumentationChanges =
|
|
4521
|
-
pagePersistentIds:
|
|
4522
|
-
groupPersistentIds:
|
|
4259
|
+
var ExportJobDocumentationChanges = z124.object({
|
|
4260
|
+
pagePersistentIds: z124.string().array(),
|
|
4261
|
+
groupPersistentIds: z124.string().array()
|
|
4523
4262
|
});
|
|
4524
|
-
var ExporterDestinationDocs =
|
|
4263
|
+
var ExporterDestinationDocs = z124.object({
|
|
4525
4264
|
environment: PublishedDocEnvironment,
|
|
4526
4265
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4527
4266
|
});
|
|
4528
|
-
var ExporterDestinationS3 =
|
|
4529
|
-
var ExporterDestinationGithub =
|
|
4530
|
-
credentialId:
|
|
4267
|
+
var ExporterDestinationS3 = z124.object({});
|
|
4268
|
+
var ExporterDestinationGithub = z124.object({
|
|
4269
|
+
credentialId: z124.string().optional(),
|
|
4531
4270
|
// Repository
|
|
4532
|
-
url:
|
|
4271
|
+
url: z124.string(),
|
|
4533
4272
|
// Location
|
|
4534
|
-
branch:
|
|
4535
|
-
relativePath: nullishToOptional(
|
|
4273
|
+
branch: z124.string(),
|
|
4274
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4536
4275
|
// Commit metadata
|
|
4537
|
-
commitAuthorName: nullishToOptional(
|
|
4538
|
-
commitAuthorEmail: nullishToOptional(
|
|
4276
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4277
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4539
4278
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4540
|
-
connectionId: nullishToOptional(
|
|
4541
|
-
userId: nullishToOptional(
|
|
4279
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4280
|
+
userId: nullishToOptional(z124.number())
|
|
4542
4281
|
});
|
|
4543
|
-
var ExporterDestinationAzure =
|
|
4544
|
-
credentialId:
|
|
4282
|
+
var ExporterDestinationAzure = z124.object({
|
|
4283
|
+
credentialId: z124.string().optional(),
|
|
4545
4284
|
// Repository
|
|
4546
|
-
organizationId:
|
|
4547
|
-
projectId:
|
|
4548
|
-
repositoryId:
|
|
4285
|
+
organizationId: z124.string(),
|
|
4286
|
+
projectId: z124.string(),
|
|
4287
|
+
repositoryId: z124.string(),
|
|
4549
4288
|
// Commit metadata
|
|
4550
|
-
commitAuthorName: nullishToOptional(
|
|
4551
|
-
commitAuthorEmail: nullishToOptional(
|
|
4289
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4290
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4552
4291
|
// Location
|
|
4553
|
-
branch:
|
|
4554
|
-
relativePath: nullishToOptional(
|
|
4292
|
+
branch: z124.string(),
|
|
4293
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4555
4294
|
// Maybe not needed
|
|
4556
|
-
url: nullishToOptional(
|
|
4295
|
+
url: nullishToOptional(z124.string()),
|
|
4557
4296
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4558
|
-
connectionId: nullishToOptional(
|
|
4559
|
-
userId: nullishToOptional(
|
|
4297
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4298
|
+
userId: nullishToOptional(z124.number())
|
|
4560
4299
|
});
|
|
4561
|
-
var ExporterDestinationGitlab =
|
|
4562
|
-
credentialId:
|
|
4300
|
+
var ExporterDestinationGitlab = z124.object({
|
|
4301
|
+
credentialId: z124.string().optional(),
|
|
4563
4302
|
// Repository
|
|
4564
|
-
projectId:
|
|
4303
|
+
projectId: z124.string(),
|
|
4565
4304
|
// Commit metadata
|
|
4566
|
-
commitAuthorName: nullishToOptional(
|
|
4567
|
-
commitAuthorEmail: nullishToOptional(
|
|
4305
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4306
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4568
4307
|
// Location
|
|
4569
|
-
branch:
|
|
4570
|
-
relativePath: nullishToOptional(
|
|
4308
|
+
branch: z124.string(),
|
|
4309
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4571
4310
|
// Maybe not needed
|
|
4572
|
-
url: nullishToOptional(
|
|
4311
|
+
url: nullishToOptional(z124.string()),
|
|
4573
4312
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4574
|
-
connectionId: nullishToOptional(
|
|
4575
|
-
userId: nullishToOptional(
|
|
4313
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4314
|
+
userId: nullishToOptional(z124.number())
|
|
4576
4315
|
});
|
|
4577
|
-
var ExporterDestinationBitbucket =
|
|
4578
|
-
credentialId:
|
|
4316
|
+
var ExporterDestinationBitbucket = z124.object({
|
|
4317
|
+
credentialId: z124.string().optional(),
|
|
4579
4318
|
// Repository
|
|
4580
|
-
workspaceSlug:
|
|
4581
|
-
projectKey:
|
|
4582
|
-
repoSlug:
|
|
4319
|
+
workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4320
|
+
projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4321
|
+
repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4583
4322
|
// Commit metadata
|
|
4584
|
-
commitAuthorName: nullishToOptional(
|
|
4585
|
-
commitAuthorEmail: nullishToOptional(
|
|
4323
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
4324
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
4586
4325
|
// Location
|
|
4587
|
-
branch:
|
|
4588
|
-
relativePath: nullishToOptional(
|
|
4326
|
+
branch: z124.string(),
|
|
4327
|
+
relativePath: nullishToOptional(z124.string()),
|
|
4589
4328
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4590
|
-
connectionId: nullishToOptional(
|
|
4591
|
-
userId: nullishToOptional(
|
|
4329
|
+
connectionId: nullishToOptional(z124.string()),
|
|
4330
|
+
userId: nullishToOptional(z124.number())
|
|
4592
4331
|
});
|
|
4593
|
-
var ExportDestinationsMap =
|
|
4594
|
-
webhookUrl:
|
|
4332
|
+
var ExportDestinationsMap = z124.object({
|
|
4333
|
+
webhookUrl: z124.string().optional(),
|
|
4595
4334
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4596
4335
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4597
4336
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4601,149 +4340,149 @@ var ExportDestinationsMap = z141.object({
|
|
|
4601
4340
|
});
|
|
4602
4341
|
|
|
4603
4342
|
// src/export/pipeline.ts
|
|
4604
|
-
var PipelineEventType =
|
|
4605
|
-
var PipelineDestinationGitType =
|
|
4606
|
-
var PipelineDestinationExtraType =
|
|
4607
|
-
var PipelineDestinationType =
|
|
4608
|
-
var Pipeline =
|
|
4609
|
-
id:
|
|
4610
|
-
name:
|
|
4343
|
+
var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4344
|
+
var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4345
|
+
var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4346
|
+
var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4347
|
+
var Pipeline = z125.object({
|
|
4348
|
+
id: z125.string(),
|
|
4349
|
+
name: z125.string(),
|
|
4611
4350
|
eventType: PipelineEventType,
|
|
4612
|
-
isEnabled:
|
|
4613
|
-
workspaceId:
|
|
4614
|
-
designSystemId:
|
|
4615
|
-
exporterId:
|
|
4616
|
-
brandPersistentId:
|
|
4617
|
-
themePersistentId:
|
|
4618
|
-
themePersistentIds:
|
|
4351
|
+
isEnabled: z125.boolean(),
|
|
4352
|
+
workspaceId: z125.string(),
|
|
4353
|
+
designSystemId: z125.string(),
|
|
4354
|
+
exporterId: z125.string(),
|
|
4355
|
+
brandPersistentId: z125.string().optional(),
|
|
4356
|
+
themePersistentId: z125.string().optional(),
|
|
4357
|
+
themePersistentIds: z125.string().array().optional(),
|
|
4619
4358
|
// Destinations
|
|
4620
4359
|
...ExportDestinationsMap.shape
|
|
4621
4360
|
});
|
|
4622
4361
|
|
|
4623
4362
|
// src/data-dumps/code-integration-dump.ts
|
|
4624
|
-
var ExportJobDump =
|
|
4625
|
-
id:
|
|
4626
|
-
createdAt:
|
|
4627
|
-
finishedAt:
|
|
4628
|
-
exportArtefacts:
|
|
4363
|
+
var ExportJobDump = z126.object({
|
|
4364
|
+
id: z126.string(),
|
|
4365
|
+
createdAt: z126.coerce.date(),
|
|
4366
|
+
finishedAt: z126.coerce.date(),
|
|
4367
|
+
exportArtefacts: z126.string()
|
|
4629
4368
|
});
|
|
4630
|
-
var CodeIntegrationDump =
|
|
4369
|
+
var CodeIntegrationDump = z126.object({
|
|
4631
4370
|
exporters: Exporter.array(),
|
|
4632
4371
|
pipelines: Pipeline.array(),
|
|
4633
4372
|
exportJobs: ExportJobDump.array()
|
|
4634
4373
|
});
|
|
4635
4374
|
|
|
4636
4375
|
// src/data-dumps/design-system-dump.ts
|
|
4637
|
-
import { z as
|
|
4376
|
+
import { z as z133 } from "zod";
|
|
4638
4377
|
|
|
4639
4378
|
// src/data-dumps/design-system-version-dump.ts
|
|
4640
|
-
import { z as
|
|
4379
|
+
import { z as z132 } from "zod";
|
|
4641
4380
|
|
|
4642
4381
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
4643
|
-
import { z as
|
|
4382
|
+
import { z as z127 } from "zod";
|
|
4644
4383
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4645
|
-
designSystemVersionId:
|
|
4646
|
-
liveblocksId:
|
|
4647
|
-
});
|
|
4648
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4649
|
-
routingVersion:
|
|
4650
|
-
isDraftFeatureAdopted:
|
|
4651
|
-
isApprovalFeatureEnabled:
|
|
4652
|
-
approvalRequiredForPublishing:
|
|
4653
|
-
});
|
|
4654
|
-
var DesignSystemVersionRoomInitialState =
|
|
4655
|
-
pages:
|
|
4656
|
-
groups:
|
|
4657
|
-
pageSnapshots:
|
|
4658
|
-
groupSnapshots:
|
|
4659
|
-
pageApprovals:
|
|
4384
|
+
designSystemVersionId: z127.string(),
|
|
4385
|
+
liveblocksId: z127.string()
|
|
4386
|
+
});
|
|
4387
|
+
var DesignSystemVersionRoomInternalSettings = z127.object({
|
|
4388
|
+
routingVersion: z127.string(),
|
|
4389
|
+
isDraftFeatureAdopted: z127.boolean(),
|
|
4390
|
+
isApprovalFeatureEnabled: z127.boolean(),
|
|
4391
|
+
approvalRequiredForPublishing: z127.boolean()
|
|
4392
|
+
});
|
|
4393
|
+
var DesignSystemVersionRoomInitialState = z127.object({
|
|
4394
|
+
pages: z127.array(DocumentationPageV2),
|
|
4395
|
+
groups: z127.array(ElementGroup),
|
|
4396
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
4397
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
4398
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
4660
4399
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4661
4400
|
});
|
|
4662
|
-
var DesignSystemVersionRoomUpdate =
|
|
4663
|
-
pages:
|
|
4664
|
-
groups:
|
|
4665
|
-
pageIdsToDelete:
|
|
4666
|
-
groupIdsToDelete:
|
|
4667
|
-
pageSnapshots:
|
|
4668
|
-
groupSnapshots:
|
|
4669
|
-
pageSnapshotIdsToDelete:
|
|
4670
|
-
groupSnapshotIdsToDelete:
|
|
4671
|
-
pageHashesToUpdate:
|
|
4672
|
-
pageApprovals:
|
|
4673
|
-
pageApprovalIdsToDelete:
|
|
4401
|
+
var DesignSystemVersionRoomUpdate = z127.object({
|
|
4402
|
+
pages: z127.array(DocumentationPageV2),
|
|
4403
|
+
groups: z127.array(ElementGroup),
|
|
4404
|
+
pageIdsToDelete: z127.array(z127.string()),
|
|
4405
|
+
groupIdsToDelete: z127.array(z127.string()),
|
|
4406
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
4407
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
4408
|
+
pageSnapshotIdsToDelete: z127.array(z127.string()),
|
|
4409
|
+
groupSnapshotIdsToDelete: z127.array(z127.string()),
|
|
4410
|
+
pageHashesToUpdate: z127.record(z127.string(), z127.string()),
|
|
4411
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
4412
|
+
pageApprovalIdsToDelete: z127.array(z127.string())
|
|
4674
4413
|
});
|
|
4675
4414
|
|
|
4676
4415
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
4677
|
-
import { z as
|
|
4416
|
+
import { z as z128 } from "zod";
|
|
4678
4417
|
var DocumentationPageRoom = Entity.extend({
|
|
4679
|
-
designSystemVersionId:
|
|
4680
|
-
documentationPageId:
|
|
4681
|
-
liveblocksId:
|
|
4682
|
-
isDirty:
|
|
4418
|
+
designSystemVersionId: z128.string(),
|
|
4419
|
+
documentationPageId: z128.string(),
|
|
4420
|
+
liveblocksId: z128.string(),
|
|
4421
|
+
isDirty: z128.boolean()
|
|
4683
4422
|
});
|
|
4684
|
-
var DocumentationPageRoomState =
|
|
4685
|
-
pageItems:
|
|
4423
|
+
var DocumentationPageRoomState = z128.object({
|
|
4424
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4686
4425
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4687
4426
|
});
|
|
4688
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4427
|
+
var DocumentationPageRoomRoomUpdate = z128.object({
|
|
4689
4428
|
page: DocumentationPageV2,
|
|
4690
4429
|
pageParent: ElementGroup
|
|
4691
4430
|
});
|
|
4692
4431
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4693
|
-
pageItems:
|
|
4694
|
-
blockDefinitions:
|
|
4432
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4433
|
+
blockDefinitions: z128.array(PageBlockDefinition)
|
|
4695
4434
|
});
|
|
4696
|
-
var RestoredDocumentationPage =
|
|
4435
|
+
var RestoredDocumentationPage = z128.object({
|
|
4697
4436
|
page: DocumentationPageV2,
|
|
4698
4437
|
pageParent: ElementGroup,
|
|
4699
4438
|
pageContent: DocumentationPageContentData,
|
|
4700
|
-
contentHash:
|
|
4701
|
-
snapshotId:
|
|
4702
|
-
roomId:
|
|
4439
|
+
contentHash: z128.string(),
|
|
4440
|
+
snapshotId: z128.string(),
|
|
4441
|
+
roomId: z128.string().optional()
|
|
4703
4442
|
});
|
|
4704
|
-
var RestoredDocumentationGroup =
|
|
4443
|
+
var RestoredDocumentationGroup = z128.object({
|
|
4705
4444
|
group: ElementGroup,
|
|
4706
4445
|
parent: ElementGroup
|
|
4707
4446
|
});
|
|
4708
4447
|
|
|
4709
4448
|
// src/liveblocks/rooms/room-type.ts
|
|
4710
|
-
import { z as
|
|
4449
|
+
import { z as z129 } from "zod";
|
|
4711
4450
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4712
4451
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4713
4452
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4714
4453
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4715
4454
|
return RoomTypeEnum2;
|
|
4716
4455
|
})(RoomTypeEnum || {});
|
|
4717
|
-
var RoomTypeSchema =
|
|
4456
|
+
var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
|
|
4718
4457
|
var RoomType = RoomTypeSchema.enum;
|
|
4719
4458
|
|
|
4720
4459
|
// src/liveblocks/rooms/workspace-room.ts
|
|
4721
|
-
import { z as
|
|
4460
|
+
import { z as z130 } from "zod";
|
|
4722
4461
|
var WorkspaceRoom = Entity.extend({
|
|
4723
|
-
workspaceId:
|
|
4724
|
-
liveblocksId:
|
|
4462
|
+
workspaceId: z130.string(),
|
|
4463
|
+
liveblocksId: z130.string()
|
|
4725
4464
|
});
|
|
4726
4465
|
|
|
4727
4466
|
// src/data-dumps/published-docs-dump.ts
|
|
4728
|
-
import { z as
|
|
4729
|
-
var PublishedDocsDump =
|
|
4467
|
+
import { z as z131 } from "zod";
|
|
4468
|
+
var PublishedDocsDump = z131.object({
|
|
4730
4469
|
documentation: PublishedDoc,
|
|
4731
4470
|
pages: PublishedDocPage.array()
|
|
4732
4471
|
});
|
|
4733
4472
|
|
|
4734
4473
|
// src/data-dumps/design-system-version-dump.ts
|
|
4735
|
-
var DocumentationThreadDump =
|
|
4474
|
+
var DocumentationThreadDump = z132.object({
|
|
4736
4475
|
thread: DocumentationCommentThread,
|
|
4737
4476
|
comments: DocumentationComment.array()
|
|
4738
4477
|
});
|
|
4739
|
-
var DocumentationPageRoomDump =
|
|
4478
|
+
var DocumentationPageRoomDump = z132.object({
|
|
4740
4479
|
room: DocumentationPageRoom,
|
|
4741
4480
|
threads: DocumentationThreadDump.array()
|
|
4742
4481
|
});
|
|
4743
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4482
|
+
var DesignSystemVersionMultiplayerDump = z132.object({
|
|
4744
4483
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4745
4484
|
});
|
|
4746
|
-
var DesignSystemVersionDump =
|
|
4485
|
+
var DesignSystemVersionDump = z132.object({
|
|
4747
4486
|
version: DesignSystemVersion,
|
|
4748
4487
|
brands: Brand.array(),
|
|
4749
4488
|
elements: DesignElement.array(),
|
|
@@ -4758,7 +4497,7 @@ var DesignSystemVersionDump = z149.object({
|
|
|
4758
4497
|
});
|
|
4759
4498
|
|
|
4760
4499
|
// src/data-dumps/design-system-dump.ts
|
|
4761
|
-
var DesignSystemDump =
|
|
4500
|
+
var DesignSystemDump = z133.object({
|
|
4762
4501
|
designSystem: DesignSystem,
|
|
4763
4502
|
dataSources: DataSource.array(),
|
|
4764
4503
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -4767,50 +4506,168 @@ var DesignSystemDump = z150.object({
|
|
|
4767
4506
|
});
|
|
4768
4507
|
|
|
4769
4508
|
// src/data-dumps/user-data-dump.ts
|
|
4770
|
-
import { z as
|
|
4509
|
+
import { z as z147 } from "zod";
|
|
4510
|
+
|
|
4511
|
+
// src/users/linked-integrations.ts
|
|
4512
|
+
import { z as z134 } from "zod";
|
|
4513
|
+
var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
|
|
4514
|
+
var ExternalServiceType = z134.union([
|
|
4515
|
+
z134.literal("figma"),
|
|
4516
|
+
z134.literal("github"),
|
|
4517
|
+
z134.literal("azure"),
|
|
4518
|
+
z134.literal("gitlab"),
|
|
4519
|
+
z134.literal("bitbucket")
|
|
4520
|
+
]);
|
|
4521
|
+
var IntegrationUserInfo = z134.object({
|
|
4522
|
+
id: z134.string(),
|
|
4523
|
+
handle: z134.string().optional(),
|
|
4524
|
+
avatarUrl: z134.string().optional(),
|
|
4525
|
+
email: z134.string().optional(),
|
|
4526
|
+
authType: IntegrationAuthType.optional(),
|
|
4527
|
+
customUrl: z134.string().optional()
|
|
4528
|
+
});
|
|
4529
|
+
var UserLinkedIntegrations = z134.object({
|
|
4530
|
+
figma: IntegrationUserInfo.optional(),
|
|
4531
|
+
github: IntegrationUserInfo.array().optional(),
|
|
4532
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
4533
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
4534
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
4535
|
+
});
|
|
4536
|
+
|
|
4537
|
+
// src/users/user-analytics-cleanup-schedule.ts
|
|
4538
|
+
import { z as z135 } from "zod";
|
|
4539
|
+
var UserAnalyticsCleanupSchedule = z135.object({
|
|
4540
|
+
userId: z135.string(),
|
|
4541
|
+
createdAt: z135.coerce.date(),
|
|
4542
|
+
deleteAt: z135.coerce.date()
|
|
4543
|
+
});
|
|
4544
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4545
|
+
createdAt: true
|
|
4546
|
+
});
|
|
4547
|
+
|
|
4548
|
+
// src/users/user-identity.ts
|
|
4549
|
+
import { z as z136 } from "zod";
|
|
4550
|
+
var UserIdentity = z136.object({
|
|
4551
|
+
id: z136.string(),
|
|
4552
|
+
userId: z136.string()
|
|
4553
|
+
});
|
|
4554
|
+
|
|
4555
|
+
// src/users/user-minified.ts
|
|
4556
|
+
import { z as z137 } from "zod";
|
|
4557
|
+
var UserMinified = z137.object({
|
|
4558
|
+
id: z137.string(),
|
|
4559
|
+
name: z137.string(),
|
|
4560
|
+
email: z137.string(),
|
|
4561
|
+
avatar: z137.string().optional()
|
|
4562
|
+
});
|
|
4563
|
+
|
|
4564
|
+
// src/users/user-notification-settings.ts
|
|
4565
|
+
import { z as z138 } from "zod";
|
|
4566
|
+
var LiveblocksNotificationSettings = z138.object({
|
|
4567
|
+
sendCommentNotificationEmails: z138.boolean()
|
|
4568
|
+
});
|
|
4569
|
+
var UserNotificationSettings = z138.object({
|
|
4570
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4571
|
+
});
|
|
4572
|
+
var defaultNotificationSettings = {
|
|
4573
|
+
liveblocksNotificationSettings: {
|
|
4574
|
+
sendCommentNotificationEmails: true
|
|
4575
|
+
}
|
|
4576
|
+
};
|
|
4577
|
+
|
|
4578
|
+
// src/users/user-profile.ts
|
|
4579
|
+
import { z as z139 } from "zod";
|
|
4580
|
+
var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4581
|
+
var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4582
|
+
var UserOnboarding = z139.object({
|
|
4583
|
+
companyName: z139.string().optional(),
|
|
4584
|
+
numberOfPeopleInOrg: z139.string().optional(),
|
|
4585
|
+
numberOfPeopleInDesignTeam: z139.string().optional(),
|
|
4586
|
+
department: UserOnboardingDepartment.optional(),
|
|
4587
|
+
jobTitle: z139.string().optional(),
|
|
4588
|
+
phase: z139.string().optional(),
|
|
4589
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4590
|
+
designSystemName: z139.string().optional(),
|
|
4591
|
+
defaultDestination: z139.string().optional(),
|
|
4592
|
+
figmaUrl: z139.string().optional(),
|
|
4593
|
+
isPageDraftOnboardingFinished: z139.boolean().optional(),
|
|
4594
|
+
isApprovalsOnboardingFinished: z139.boolean().optional()
|
|
4595
|
+
});
|
|
4596
|
+
var UserProfile = z139.object({
|
|
4597
|
+
name: z139.string(),
|
|
4598
|
+
avatar: z139.string().optional(),
|
|
4599
|
+
nickname: z139.string().optional(),
|
|
4600
|
+
onboarding: UserOnboarding.optional()
|
|
4601
|
+
});
|
|
4602
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4603
|
+
avatar: true
|
|
4604
|
+
});
|
|
4605
|
+
|
|
4606
|
+
// src/users/user-test.ts
|
|
4607
|
+
import { z as z140 } from "zod";
|
|
4608
|
+
var UserTest = z140.object({
|
|
4609
|
+
id: z140.string(),
|
|
4610
|
+
email: z140.string()
|
|
4611
|
+
});
|
|
4612
|
+
|
|
4613
|
+
// src/users/user.ts
|
|
4614
|
+
import { z as z141 } from "zod";
|
|
4615
|
+
var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
|
|
4616
|
+
var User = z141.object({
|
|
4617
|
+
id: z141.string(),
|
|
4618
|
+
email: z141.string(),
|
|
4619
|
+
emailVerified: z141.boolean(),
|
|
4620
|
+
createdAt: z141.coerce.date(),
|
|
4621
|
+
trialExpiresAt: z141.coerce.date().optional(),
|
|
4622
|
+
profile: UserProfile,
|
|
4623
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4624
|
+
loggedOutAt: z141.coerce.date().optional(),
|
|
4625
|
+
isProtected: z141.boolean(),
|
|
4626
|
+
source: UserSource.optional()
|
|
4627
|
+
});
|
|
4771
4628
|
|
|
4772
4629
|
// src/data-dumps/workspace-dump.ts
|
|
4773
|
-
import { z as
|
|
4630
|
+
import { z as z146 } from "zod";
|
|
4774
4631
|
|
|
4775
4632
|
// src/integrations/integration.ts
|
|
4776
|
-
import { z as
|
|
4777
|
-
var IntegrationDesignSystem =
|
|
4778
|
-
designSystemId:
|
|
4779
|
-
brandId:
|
|
4780
|
-
title:
|
|
4781
|
-
userId:
|
|
4782
|
-
date:
|
|
4783
|
-
});
|
|
4784
|
-
var IntegrationCredentialsType =
|
|
4785
|
-
var IntegrationCredentialsState =
|
|
4786
|
-
var IntegrationCredentialsProfile =
|
|
4787
|
-
id: nullishToOptional(
|
|
4788
|
-
email: nullishToOptional(
|
|
4789
|
-
handle: nullishToOptional(
|
|
4790
|
-
type: nullishToOptional(
|
|
4791
|
-
avatarUrl: nullishToOptional(
|
|
4792
|
-
organization: nullishToOptional(
|
|
4793
|
-
collection: nullishToOptional(
|
|
4794
|
-
});
|
|
4795
|
-
var IntegrationCredentials =
|
|
4796
|
-
id:
|
|
4633
|
+
import { z as z142 } from "zod";
|
|
4634
|
+
var IntegrationDesignSystem = z142.object({
|
|
4635
|
+
designSystemId: z142.string(),
|
|
4636
|
+
brandId: z142.string(),
|
|
4637
|
+
title: z142.string().optional(),
|
|
4638
|
+
userId: z142.string().optional(),
|
|
4639
|
+
date: z142.coerce.date().optional()
|
|
4640
|
+
});
|
|
4641
|
+
var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4642
|
+
var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
|
|
4643
|
+
var IntegrationCredentialsProfile = z142.object({
|
|
4644
|
+
id: nullishToOptional(z142.string()),
|
|
4645
|
+
email: nullishToOptional(z142.string()),
|
|
4646
|
+
handle: nullishToOptional(z142.string()),
|
|
4647
|
+
type: nullishToOptional(z142.string()),
|
|
4648
|
+
avatarUrl: nullishToOptional(z142.string()),
|
|
4649
|
+
organization: nullishToOptional(z142.string()),
|
|
4650
|
+
collection: nullishToOptional(z142.string())
|
|
4651
|
+
});
|
|
4652
|
+
var IntegrationCredentials = z142.object({
|
|
4653
|
+
id: z142.string(),
|
|
4797
4654
|
type: IntegrationCredentialsType,
|
|
4798
|
-
integrationId:
|
|
4799
|
-
accessToken:
|
|
4800
|
-
userId:
|
|
4801
|
-
createdAt:
|
|
4802
|
-
refreshToken:
|
|
4803
|
-
tokenName:
|
|
4804
|
-
expiresAt:
|
|
4805
|
-
refreshedAt:
|
|
4806
|
-
username:
|
|
4807
|
-
appInstallationId:
|
|
4655
|
+
integrationId: z142.string(),
|
|
4656
|
+
accessToken: z142.string(),
|
|
4657
|
+
userId: z142.string(),
|
|
4658
|
+
createdAt: z142.coerce.date(),
|
|
4659
|
+
refreshToken: z142.string().optional(),
|
|
4660
|
+
tokenName: z142.string().optional(),
|
|
4661
|
+
expiresAt: z142.coerce.date().optional(),
|
|
4662
|
+
refreshedAt: z142.coerce.date().optional(),
|
|
4663
|
+
username: z142.string().optional(),
|
|
4664
|
+
appInstallationId: z142.string().optional(),
|
|
4808
4665
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4809
|
-
customUrl:
|
|
4666
|
+
customUrl: z142.string().optional(),
|
|
4810
4667
|
state: IntegrationCredentialsState,
|
|
4811
4668
|
user: UserMinified.optional()
|
|
4812
4669
|
});
|
|
4813
|
-
var ExtendedIntegrationType =
|
|
4670
|
+
var ExtendedIntegrationType = z142.enum([
|
|
4814
4671
|
"Figma",
|
|
4815
4672
|
"Github",
|
|
4816
4673
|
"Gitlab",
|
|
@@ -4821,26 +4678,26 @@ var ExtendedIntegrationType = z151.enum([
|
|
|
4821
4678
|
]);
|
|
4822
4679
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4823
4680
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4824
|
-
var Integration =
|
|
4825
|
-
id:
|
|
4826
|
-
workspaceId:
|
|
4681
|
+
var Integration = z142.object({
|
|
4682
|
+
id: z142.string(),
|
|
4683
|
+
workspaceId: z142.string(),
|
|
4827
4684
|
type: IntegrationType,
|
|
4828
|
-
createdAt:
|
|
4829
|
-
integrationCredentials:
|
|
4830
|
-
});
|
|
4831
|
-
var IntegrationToken =
|
|
4832
|
-
access_token:
|
|
4833
|
-
refresh_token:
|
|
4834
|
-
expires_in:
|
|
4835
|
-
token_type:
|
|
4836
|
-
token_name:
|
|
4837
|
-
token_azure_organization_name:
|
|
4685
|
+
createdAt: z142.coerce.date(),
|
|
4686
|
+
integrationCredentials: z142.array(IntegrationCredentials).optional()
|
|
4687
|
+
});
|
|
4688
|
+
var IntegrationToken = z142.object({
|
|
4689
|
+
access_token: z142.string(),
|
|
4690
|
+
refresh_token: z142.string().optional(),
|
|
4691
|
+
expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
|
|
4692
|
+
token_type: z142.string().optional(),
|
|
4693
|
+
token_name: z142.string().optional(),
|
|
4694
|
+
token_azure_organization_name: z142.string().optional(),
|
|
4838
4695
|
// Azure Cloud PAT only
|
|
4839
|
-
token_azure_collection_name:
|
|
4696
|
+
token_azure_collection_name: z142.string().optional(),
|
|
4840
4697
|
// Azure Server PAT only
|
|
4841
|
-
token_bitbucket_username:
|
|
4698
|
+
token_bitbucket_username: z142.string().optional(),
|
|
4842
4699
|
// Bitbucket only
|
|
4843
|
-
custom_url:
|
|
4700
|
+
custom_url: z142.string().optional().transform((value) => {
|
|
4844
4701
|
if (!value?.trim())
|
|
4845
4702
|
return void 0;
|
|
4846
4703
|
return formatCustomUrl(value);
|
|
@@ -4877,8 +4734,101 @@ function formatCustomUrl(url) {
|
|
|
4877
4734
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4878
4735
|
}
|
|
4879
4736
|
|
|
4737
|
+
// src/workspace/workspace.ts
|
|
4738
|
+
import IPCIDR from "ip-cidr";
|
|
4739
|
+
import { z as z145 } from "zod";
|
|
4740
|
+
|
|
4741
|
+
// src/workspace/npm-registry-settings.ts
|
|
4742
|
+
import { z as z143 } from "zod";
|
|
4743
|
+
var NpmRegistryAuthType = z143.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4744
|
+
var NpmRegistryType = z143.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4745
|
+
var NpmRegistryBasicAuthConfig = z143.object({
|
|
4746
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4747
|
+
username: z143.string(),
|
|
4748
|
+
password: z143.string()
|
|
4749
|
+
});
|
|
4750
|
+
var NpmRegistryBearerAuthConfig = z143.object({
|
|
4751
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4752
|
+
accessToken: z143.string()
|
|
4753
|
+
});
|
|
4754
|
+
var NpmRegistryNoAuthConfig = z143.object({
|
|
4755
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.None)
|
|
4756
|
+
});
|
|
4757
|
+
var NpmRegistrCustomAuthConfig = z143.object({
|
|
4758
|
+
authType: z143.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4759
|
+
authHeaderName: z143.string(),
|
|
4760
|
+
authHeaderValue: z143.string()
|
|
4761
|
+
});
|
|
4762
|
+
var NpmRegistryAuthConfig = z143.discriminatedUnion("authType", [
|
|
4763
|
+
NpmRegistryBasicAuthConfig,
|
|
4764
|
+
NpmRegistryBearerAuthConfig,
|
|
4765
|
+
NpmRegistryNoAuthConfig,
|
|
4766
|
+
NpmRegistrCustomAuthConfig
|
|
4767
|
+
]);
|
|
4768
|
+
var NpmRegistryConfigBase = z143.object({
|
|
4769
|
+
registryType: NpmRegistryType,
|
|
4770
|
+
enabledScopes: z143.array(z143.string()),
|
|
4771
|
+
customRegistryUrl: z143.string().optional(),
|
|
4772
|
+
bypassProxy: z143.boolean().default(false),
|
|
4773
|
+
npmProxyRegistryConfigId: z143.string().optional(),
|
|
4774
|
+
npmProxyVersion: z143.number().optional()
|
|
4775
|
+
});
|
|
4776
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4777
|
+
|
|
4778
|
+
// src/workspace/sso-provider.ts
|
|
4779
|
+
import { z as z144 } from "zod";
|
|
4780
|
+
var SsoProvider = z144.object({
|
|
4781
|
+
providerId: z144.string(),
|
|
4782
|
+
defaultAutoInviteValue: z144.boolean(),
|
|
4783
|
+
autoInviteDomains: z144.record(z144.string(), z144.boolean()),
|
|
4784
|
+
skipDocsSupernovaLogin: z144.boolean(),
|
|
4785
|
+
areInvitesDisabled: z144.boolean(),
|
|
4786
|
+
isTestMode: z144.boolean(),
|
|
4787
|
+
emailDomains: z144.array(z144.string()),
|
|
4788
|
+
metadataXml: z144.string().nullish()
|
|
4789
|
+
});
|
|
4790
|
+
|
|
4791
|
+
// src/workspace/workspace.ts
|
|
4792
|
+
var isValidCIDR = (value) => {
|
|
4793
|
+
return IPCIDR.isValidAddress(value);
|
|
4794
|
+
};
|
|
4795
|
+
var WorkspaceIpWhitelistEntry = z145.object({
|
|
4796
|
+
isEnabled: z145.boolean(),
|
|
4797
|
+
name: z145.string(),
|
|
4798
|
+
range: z145.string().refine(isValidCIDR, {
|
|
4799
|
+
message: "Invalid IP CIDR"
|
|
4800
|
+
})
|
|
4801
|
+
});
|
|
4802
|
+
var WorkspaceIpSettings = z145.object({
|
|
4803
|
+
isEnabledForCloud: z145.boolean(),
|
|
4804
|
+
isEnabledForDocs: z145.boolean(),
|
|
4805
|
+
entries: z145.array(WorkspaceIpWhitelistEntry)
|
|
4806
|
+
});
|
|
4807
|
+
var WorkspaceProfile = z145.object({
|
|
4808
|
+
name: z145.string(),
|
|
4809
|
+
handle: z145.string(),
|
|
4810
|
+
color: z145.string(),
|
|
4811
|
+
avatar: nullishToOptional(z145.string()),
|
|
4812
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
4813
|
+
});
|
|
4814
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4815
|
+
avatar: true
|
|
4816
|
+
});
|
|
4817
|
+
var Workspace = z145.object({
|
|
4818
|
+
id: z145.string(),
|
|
4819
|
+
profile: WorkspaceProfile,
|
|
4820
|
+
subscription: Subscription,
|
|
4821
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4822
|
+
sso: nullishToOptional(SsoProvider),
|
|
4823
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4824
|
+
});
|
|
4825
|
+
var WorkspaceWithDesignSystems = z145.object({
|
|
4826
|
+
workspace: Workspace,
|
|
4827
|
+
designSystems: z145.array(DesignSystem)
|
|
4828
|
+
});
|
|
4829
|
+
|
|
4880
4830
|
// src/data-dumps/workspace-dump.ts
|
|
4881
|
-
var WorkspaceDump =
|
|
4831
|
+
var WorkspaceDump = z146.object({
|
|
4882
4832
|
workspace: Workspace,
|
|
4883
4833
|
designSystems: DesignSystemDump.array(),
|
|
4884
4834
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -4886,38 +4836,109 @@ var WorkspaceDump = z152.object({
|
|
|
4886
4836
|
});
|
|
4887
4837
|
|
|
4888
4838
|
// src/data-dumps/user-data-dump.ts
|
|
4889
|
-
var UserDump =
|
|
4839
|
+
var UserDump = z147.object({
|
|
4890
4840
|
user: User,
|
|
4891
4841
|
workspaces: WorkspaceDump.array()
|
|
4892
4842
|
});
|
|
4893
4843
|
|
|
4894
4844
|
// src/docs-server/session.ts
|
|
4895
|
-
import { z as
|
|
4896
|
-
var NpmProxyToken =
|
|
4897
|
-
access:
|
|
4898
|
-
expiresAt:
|
|
4845
|
+
import { z as z148 } from "zod";
|
|
4846
|
+
var NpmProxyToken = z148.object({
|
|
4847
|
+
access: z148.string(),
|
|
4848
|
+
expiresAt: z148.number()
|
|
4899
4849
|
});
|
|
4900
|
-
var SessionData =
|
|
4901
|
-
returnToUrl:
|
|
4850
|
+
var SessionData = z148.object({
|
|
4851
|
+
returnToUrl: z148.string().optional(),
|
|
4902
4852
|
npmProxyToken: NpmProxyToken.optional()
|
|
4903
4853
|
});
|
|
4904
|
-
var Session =
|
|
4905
|
-
id:
|
|
4906
|
-
expiresAt:
|
|
4907
|
-
userId:
|
|
4854
|
+
var Session = z148.object({
|
|
4855
|
+
id: z148.string(),
|
|
4856
|
+
expiresAt: z148.coerce.date(),
|
|
4857
|
+
userId: z148.string().nullable(),
|
|
4908
4858
|
data: SessionData
|
|
4909
4859
|
});
|
|
4910
|
-
var AuthTokens =
|
|
4911
|
-
access:
|
|
4912
|
-
refresh:
|
|
4860
|
+
var AuthTokens = z148.object({
|
|
4861
|
+
access: z148.string(),
|
|
4862
|
+
refresh: z148.string()
|
|
4913
4863
|
});
|
|
4914
|
-
var UserSession =
|
|
4864
|
+
var UserSession = z148.object({
|
|
4915
4865
|
session: Session,
|
|
4916
4866
|
user: User.nullable()
|
|
4917
4867
|
});
|
|
4918
4868
|
|
|
4919
4869
|
// src/emails/design-system-invite.ts
|
|
4920
4870
|
import { z as z155 } from "zod";
|
|
4871
|
+
|
|
4872
|
+
// src/workspace/user-invite.ts
|
|
4873
|
+
import { z as z149 } from "zod";
|
|
4874
|
+
var MAX_MEMBERS_COUNT = 100;
|
|
4875
|
+
var UserInvite = z149.object({
|
|
4876
|
+
email: z149.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4877
|
+
role: WorkspaceRoleSchema
|
|
4878
|
+
});
|
|
4879
|
+
var UserInvites = z149.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4880
|
+
|
|
4881
|
+
// src/workspace/workspace-configuration.ts
|
|
4882
|
+
import { z as z150 } from "zod";
|
|
4883
|
+
var WorkspaceConfigurationUpdate = z150.object({
|
|
4884
|
+
id: z150.string(),
|
|
4885
|
+
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4886
|
+
sso: SsoProvider.optional(),
|
|
4887
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4888
|
+
profile: WorkspaceProfileUpdate.optional()
|
|
4889
|
+
});
|
|
4890
|
+
|
|
4891
|
+
// src/workspace/workspace-context.ts
|
|
4892
|
+
import { z as z151 } from "zod";
|
|
4893
|
+
var WorkspaceContext = z151.object({
|
|
4894
|
+
workspaceId: z151.string(),
|
|
4895
|
+
product: ProductCodeSchema,
|
|
4896
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4897
|
+
publicDesignSystem: z151.boolean().optional()
|
|
4898
|
+
});
|
|
4899
|
+
|
|
4900
|
+
// src/workspace/workspace-create.ts
|
|
4901
|
+
import { z as z152 } from "zod";
|
|
4902
|
+
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4903
|
+
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4904
|
+
var HANDLE_MIN_LENGTH = 2;
|
|
4905
|
+
var HANDLE_MAX_LENGTH = 64;
|
|
4906
|
+
var CreateWorkspaceInput = z152.object({
|
|
4907
|
+
name: z152.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4908
|
+
handle: z152.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4909
|
+
});
|
|
4910
|
+
|
|
4911
|
+
// src/workspace/workspace-invitations.ts
|
|
4912
|
+
import { z as z153 } from "zod";
|
|
4913
|
+
var WorkspaceInvitation = z153.object({
|
|
4914
|
+
id: z153.string(),
|
|
4915
|
+
email: z153.string().email(),
|
|
4916
|
+
createdAt: z153.coerce.date(),
|
|
4917
|
+
resentAt: z153.coerce.date().nullish(),
|
|
4918
|
+
role: z153.nativeEnum(WorkspaceRole),
|
|
4919
|
+
workspaceId: z153.string(),
|
|
4920
|
+
invitedBy: z153.string()
|
|
4921
|
+
});
|
|
4922
|
+
|
|
4923
|
+
// src/workspace/workspace-membership.ts
|
|
4924
|
+
import { z as z154 } from "zod";
|
|
4925
|
+
var WorkspaceMembership = z154.object({
|
|
4926
|
+
id: z154.string(),
|
|
4927
|
+
userId: z154.string(),
|
|
4928
|
+
workspaceId: z154.string(),
|
|
4929
|
+
workspaceRole: z154.nativeEnum(WorkspaceRole),
|
|
4930
|
+
notificationSettings: UserNotificationSettings
|
|
4931
|
+
});
|
|
4932
|
+
var UpdateMembershipRolesInput = z154.object({
|
|
4933
|
+
members: z154.array(
|
|
4934
|
+
z154.object({
|
|
4935
|
+
userId: z154.string(),
|
|
4936
|
+
role: z154.nativeEnum(WorkspaceRole)
|
|
4937
|
+
})
|
|
4938
|
+
)
|
|
4939
|
+
});
|
|
4940
|
+
|
|
4941
|
+
// src/emails/design-system-invite.ts
|
|
4921
4942
|
var DesignSystemInviteEmailRecipient = z155.object({
|
|
4922
4943
|
email: z155.string(),
|
|
4923
4944
|
role: WorkspaceRoleSchema
|
|
@@ -5322,6 +5343,7 @@ export {
|
|
|
5322
5343
|
DesignSystemMembership,
|
|
5323
5344
|
DesignSystemMembershipUpdates,
|
|
5324
5345
|
DesignSystemPendingMemberInvitation,
|
|
5346
|
+
DesignSystemRole,
|
|
5325
5347
|
DesignSystemSwitcher,
|
|
5326
5348
|
DesignSystemUserInvitation,
|
|
5327
5349
|
DesignSystemVersion,
|