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