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