@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.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 z143 } from "zod";
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 z142 } from "zod";
393
+ import { z as z125 } from "zod";
394
394
 
395
395
  // src/export/export-destinations.ts
396
- import { z as z141 } from "zod";
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 z132 } from "zod";
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 z115 } from "zod";
4068
- var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
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 z131 } from "zod";
4304
- var DesignSystemInvitation = z131.object({
4305
- id: z131.string(),
4306
- designSystemId: z131.string(),
4307
- workspaceInvitationId: z131.string()
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 DesignSystemMembership = z132.object({
4312
- id: z132.string(),
4313
- userId: z132.string(),
4314
- designSystemId: z132.string(),
4315
- workspaceMembershipId: z132.string()
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 = z132.object({
4039
+ var DesignSystemMembers = z115.object({
4318
4040
  members: DesignSystemMembership.array(),
4319
4041
  invitations: DesignSystemInvitation.array()
4320
4042
  });
4321
- var DesignSystemPendingMemberInvitation = z132.object({
4322
- inviteId: z132.string()
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 = z132.object({
4325
- userId: z132.string()
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 = z132.object({
4328
- email: z132.string(),
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 = z132.object({
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: z132.string().array().optional(),
4336
- deleteInvitationIds: z132.string().array().optional()
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 z133 } from "zod";
4341
- var ElementViewBaseColumnType = z133.enum(["Name", "Description", "Value", "UpdatedAt"]);
4342
- var ElementViewColumnType = z133.union([
4343
- z133.literal("BaseProperty"),
4344
- z133.literal("PropertyDefinition"),
4345
- z133.literal("Theme")
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 = z133.object({
4348
- id: z133.string(),
4349
- persistentId: z133.string(),
4350
- elementDataViewId: z133.string(),
4351
- sortPosition: z133.number(),
4352
- width: z133.number()
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: z133.literal("BaseProperty"),
4092
+ type: z116.literal("BaseProperty"),
4356
4093
  basePropertyType: ElementViewBaseColumnType
4357
4094
  });
4358
4095
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4359
- type: z133.literal("PropertyDefinition"),
4360
- propertyDefinitionId: z133.string()
4096
+ type: z116.literal("PropertyDefinition"),
4097
+ propertyDefinitionId: z116.string()
4361
4098
  });
4362
4099
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4363
- type: z133.literal("Theme"),
4364
- themeId: z133.string()
4100
+ type: z116.literal("Theme"),
4101
+ themeId: z116.string()
4365
4102
  });
4366
- var ElementViewColumn = z133.discriminatedUnion("type", [
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 z134 } from "zod";
4374
- var ElementView = z134.object({
4375
- id: z134.string(),
4376
- persistentId: z134.string(),
4377
- designSystemVersionId: z134.string(),
4378
- name: z134.string(),
4379
- description: z134.string(),
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: z134.boolean()
4118
+ isDefault: z117.boolean()
4382
4119
  });
4383
4120
 
4384
4121
  // src/dsm/brand.ts
4385
- import { z as z135 } from "zod";
4386
- var Brand = z135.object({
4387
- id: z135.string(),
4388
- designSystemVersionId: z135.string(),
4389
- persistentId: z135.string(),
4390
- name: z135.string(),
4391
- description: z135.string()
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 z136 } from "zod";
4396
- var DesignSystemAccessMode = z136.enum(["Open", "InviteOnly"]);
4397
- var DesignSystemSwitcher = z136.object({
4398
- isEnabled: z136.boolean(),
4399
- designSystemIds: z136.array(z136.string())
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 = z136.object({
4402
- id: z136.string(),
4403
- workspaceId: z136.string(),
4404
- name: z136.string(),
4405
- description: z136.string(),
4406
- docExporterId: nullishToOptional(z136.string()),
4407
- docSlug: z136.string(),
4408
- docUserSlug: nullishToOptional(z136.string()),
4409
- docSlugDeprecated: z136.string(),
4410
- isPublic: z136.boolean(),
4411
- isMultibrand: z136.boolean(),
4412
- docViewUrl: nullishToOptional(z136.string()),
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: z136.boolean(),
4416
- approvalRequiredForPublishing: z136.boolean(),
4151
+ isApprovalFeatureEnabled: z119.boolean(),
4152
+ approvalRequiredForPublishing: z119.boolean(),
4417
4153
  accessMode: DesignSystemAccessMode,
4418
- membersGenerated: z136.boolean(),
4419
- createdAt: z136.coerce.date(),
4420
- updatedAt: z136.coerce.date()
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 z137 } from "zod";
4425
- var ExporterPropertyImageValue = z137.object({
4160
+ import { z as z120 } from "zod";
4161
+ var ExporterPropertyImageValue = z120.object({
4426
4162
  asset: PageBlockAsset.optional(),
4427
- assetId: z137.string().optional(),
4428
- assetUrl: z137.string().optional()
4429
- });
4430
- var ExporterPropertyValue = z137.object({
4431
- key: z137.string(),
4432
- value: z137.union([
4433
- z137.number(),
4434
- z137.string(),
4435
- z137.boolean(),
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 = z137.object({
4442
- id: z137.string(),
4443
- designSystemId: z137.string(),
4444
- exporterId: z137.string(),
4445
- values: z137.array(ExporterPropertyValue)
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 z138 } from "zod";
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 = z138.object({
4457
- id: z138.string(),
4458
- publishedDocId: z138.string(),
4459
- pageShortPersistentId: z138.string(),
4460
- pathV1: z138.string(),
4461
- pathV2: z138.string(),
4462
- storagePath: z138.string(),
4463
- locale: z138.string().optional(),
4464
- isPrivate: z138.boolean(),
4465
- isHidden: z138.boolean(),
4466
- createdAt: z138.coerce.date(),
4467
- updatedAt: z138.coerce.date()
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 z139 } from "zod";
4207
+ import { z as z122 } from "zod";
4472
4208
  var publishedDocEnvironments = ["Live", "Preview"];
4473
- var PublishedDocEnvironment = z139.enum(publishedDocEnvironments);
4474
- var PublishedDocsChecksums = z139.record(z139.string());
4475
- var PublishedDocRoutingVersion = z139.enum(["1", "2"]);
4476
- var PublishedDoc = z139.object({
4477
- id: z139.string(),
4478
- designSystemVersionId: z139.string(),
4479
- createdAt: z139.coerce.date(),
4480
- updatedAt: z139.coerce.date(),
4481
- lastPublishedAt: z139.coerce.date(),
4482
- isDefault: z139.boolean(),
4483
- isPublic: z139.boolean(),
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: z139.string(),
4487
- wasMigrated: z139.boolean(),
4222
+ storagePath: z122.string(),
4223
+ wasMigrated: z122.boolean(),
4488
4224
  routingVersion: PublishedDocRoutingVersion,
4489
- usesLocalizations: z139.boolean(),
4490
- wasPublishedWithLocalizations: z139.boolean(),
4491
- tokenCount: z139.number(),
4492
- assetCount: z139.number()
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 z140 } from "zod";
4497
- var DesignSystemVersion = z140.object({
4498
- id: z140.string(),
4499
- version: z140.string(),
4500
- createdAt: z140.coerce.date(),
4501
- designSystemId: z140.string(),
4502
- name: z140.string(),
4503
- comment: z140.string(),
4504
- isReadonly: z140.boolean(),
4505
- changeLog: z140.string(),
4506
- parentId: z140.string().optional(),
4507
- isDraftsFeatureAdopted: z140.boolean()
4508
- });
4509
- var VersionCreationJobStatus = z140.enum(["Success", "InProgress", "Error"]);
4510
- var VersionCreationJob = z140.object({
4511
- id: z140.string(),
4512
- version: z140.string(),
4513
- designSystemId: z140.string(),
4514
- designSystemVersionId: nullishToOptional(z140.string()),
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(z140.string())
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 = z141.object({
4523
- pagePersistentIds: z141.string().array(),
4524
- groupPersistentIds: z141.string().array()
4258
+ var ExportJobDocumentationChanges = z124.object({
4259
+ pagePersistentIds: z124.string().array(),
4260
+ groupPersistentIds: z124.string().array()
4525
4261
  });
4526
- var ExporterDestinationDocs = z141.object({
4262
+ var ExporterDestinationDocs = z124.object({
4527
4263
  environment: PublishedDocEnvironment,
4528
4264
  changes: nullishToOptional(ExportJobDocumentationChanges)
4529
4265
  });
4530
- var ExporterDestinationS3 = z141.object({});
4531
- var ExporterDestinationGithub = z141.object({
4532
- credentialId: z141.string().optional(),
4266
+ var ExporterDestinationS3 = z124.object({});
4267
+ var ExporterDestinationGithub = z124.object({
4268
+ credentialId: z124.string().optional(),
4533
4269
  // Repository
4534
- url: z141.string(),
4270
+ url: z124.string(),
4535
4271
  // Location
4536
- branch: z141.string(),
4537
- relativePath: nullishToOptional(z141.string()),
4272
+ branch: z124.string(),
4273
+ relativePath: nullishToOptional(z124.string()),
4538
4274
  // Commit metadata
4539
- commitAuthorName: nullishToOptional(z141.string()),
4540
- commitAuthorEmail: nullishToOptional(z141.string()),
4275
+ commitAuthorName: nullishToOptional(z124.string()),
4276
+ commitAuthorEmail: nullishToOptional(z124.string()),
4541
4277
  // Legacy deprecated fields. Use `credentialId` instead
4542
- connectionId: nullishToOptional(z141.string()),
4543
- userId: nullishToOptional(z141.number())
4278
+ connectionId: nullishToOptional(z124.string()),
4279
+ userId: nullishToOptional(z124.number())
4544
4280
  });
4545
- var ExporterDestinationAzure = z141.object({
4546
- credentialId: z141.string().optional(),
4281
+ var ExporterDestinationAzure = z124.object({
4282
+ credentialId: z124.string().optional(),
4547
4283
  // Repository
4548
- organizationId: z141.string(),
4549
- projectId: z141.string(),
4550
- repositoryId: z141.string(),
4284
+ organizationId: z124.string(),
4285
+ projectId: z124.string(),
4286
+ repositoryId: z124.string(),
4551
4287
  // Commit metadata
4552
- commitAuthorName: nullishToOptional(z141.string()),
4553
- commitAuthorEmail: nullishToOptional(z141.string()),
4288
+ commitAuthorName: nullishToOptional(z124.string()),
4289
+ commitAuthorEmail: nullishToOptional(z124.string()),
4554
4290
  // Location
4555
- branch: z141.string(),
4556
- relativePath: nullishToOptional(z141.string()),
4291
+ branch: z124.string(),
4292
+ relativePath: nullishToOptional(z124.string()),
4557
4293
  // Maybe not needed
4558
- url: nullishToOptional(z141.string()),
4294
+ url: nullishToOptional(z124.string()),
4559
4295
  // Legacy deprecated fields. Use `credentialId` instead
4560
- connectionId: nullishToOptional(z141.string()),
4561
- userId: nullishToOptional(z141.number())
4296
+ connectionId: nullishToOptional(z124.string()),
4297
+ userId: nullishToOptional(z124.number())
4562
4298
  });
4563
- var ExporterDestinationGitlab = z141.object({
4564
- credentialId: z141.string().optional(),
4299
+ var ExporterDestinationGitlab = z124.object({
4300
+ credentialId: z124.string().optional(),
4565
4301
  // Repository
4566
- projectId: z141.string(),
4302
+ projectId: z124.string(),
4567
4303
  // Commit metadata
4568
- commitAuthorName: nullishToOptional(z141.string()),
4569
- commitAuthorEmail: nullishToOptional(z141.string()),
4304
+ commitAuthorName: nullishToOptional(z124.string()),
4305
+ commitAuthorEmail: nullishToOptional(z124.string()),
4570
4306
  // Location
4571
- branch: z141.string(),
4572
- relativePath: nullishToOptional(z141.string()),
4307
+ branch: z124.string(),
4308
+ relativePath: nullishToOptional(z124.string()),
4573
4309
  // Maybe not needed
4574
- url: nullishToOptional(z141.string()),
4310
+ url: nullishToOptional(z124.string()),
4575
4311
  // Legacy deprecated fields. Use `credentialId` instead
4576
- connectionId: nullishToOptional(z141.string()),
4577
- userId: nullishToOptional(z141.number())
4312
+ connectionId: nullishToOptional(z124.string()),
4313
+ userId: nullishToOptional(z124.number())
4578
4314
  });
4579
- var ExporterDestinationBitbucket = z141.object({
4580
- credentialId: z141.string().optional(),
4315
+ var ExporterDestinationBitbucket = z124.object({
4316
+ credentialId: z124.string().optional(),
4581
4317
  // Repository
4582
- workspaceSlug: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4583
- projectKey: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4584
- repoSlug: z141.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
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(z141.string()),
4587
- commitAuthorEmail: nullishToOptional(z141.string()),
4322
+ commitAuthorName: nullishToOptional(z124.string()),
4323
+ commitAuthorEmail: nullishToOptional(z124.string()),
4588
4324
  // Location
4589
- branch: z141.string(),
4590
- relativePath: nullishToOptional(z141.string()),
4325
+ branch: z124.string(),
4326
+ relativePath: nullishToOptional(z124.string()),
4591
4327
  // Legacy deprecated fields. Use `credentialId` instead
4592
- connectionId: nullishToOptional(z141.string()),
4593
- userId: nullishToOptional(z141.number())
4328
+ connectionId: nullishToOptional(z124.string()),
4329
+ userId: nullishToOptional(z124.number())
4594
4330
  });
4595
- var ExportDestinationsMap = z141.object({
4596
- webhookUrl: z141.string().optional(),
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 = z142.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4607
- var PipelineDestinationGitType = z142.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4608
- var PipelineDestinationExtraType = z142.enum(["WebhookUrl", "S3", "Documentation"]);
4609
- var PipelineDestinationType = z142.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4610
- var Pipeline = z142.object({
4611
- id: z142.string(),
4612
- name: z142.string(),
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: z142.boolean(),
4615
- workspaceId: z142.string(),
4616
- designSystemId: z142.string(),
4617
- exporterId: z142.string(),
4618
- brandPersistentId: z142.string().optional(),
4619
- themePersistentId: z142.string().optional(),
4620
- themePersistentIds: z142.string().array().optional(),
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 = z143.object({
4627
- id: z143.string(),
4628
- createdAt: z143.coerce.date(),
4629
- finishedAt: z143.coerce.date(),
4630
- exportArtefacts: z143.string()
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 = z143.object({
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 z150 } from "zod";
4375
+ import { z as z133 } from "zod";
4640
4376
 
4641
4377
  // src/data-dumps/design-system-version-dump.ts
4642
- import { z as z149 } from "zod";
4378
+ import { z as z132 } from "zod";
4643
4379
 
4644
4380
  // src/liveblocks/rooms/design-system-version-room.ts
4645
- import { z as z144 } from "zod";
4381
+ import { z as z127 } from "zod";
4646
4382
  var DesignSystemVersionRoom = Entity.extend({
4647
- designSystemVersionId: z144.string(),
4648
- liveblocksId: z144.string()
4649
- });
4650
- var DesignSystemVersionRoomInternalSettings = z144.object({
4651
- routingVersion: z144.string(),
4652
- isDraftFeatureAdopted: z144.boolean(),
4653
- isApprovalFeatureEnabled: z144.boolean(),
4654
- approvalRequiredForPublishing: z144.boolean()
4655
- });
4656
- var DesignSystemVersionRoomInitialState = z144.object({
4657
- pages: z144.array(DocumentationPageV2),
4658
- groups: z144.array(ElementGroup),
4659
- pageSnapshots: z144.array(DocumentationPageSnapshot),
4660
- groupSnapshots: z144.array(ElementGroupSnapshot),
4661
- pageApprovals: z144.array(DocumentationPageApproval),
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 = z144.object({
4665
- pages: z144.array(DocumentationPageV2),
4666
- groups: z144.array(ElementGroup),
4667
- pageIdsToDelete: z144.array(z144.string()),
4668
- groupIdsToDelete: z144.array(z144.string()),
4669
- pageSnapshots: z144.array(DocumentationPageSnapshot),
4670
- groupSnapshots: z144.array(ElementGroupSnapshot),
4671
- pageSnapshotIdsToDelete: z144.array(z144.string()),
4672
- groupSnapshotIdsToDelete: z144.array(z144.string()),
4673
- pageHashesToUpdate: z144.record(z144.string(), z144.string()),
4674
- pageApprovals: z144.array(DocumentationPageApproval),
4675
- pageApprovalIdsToDelete: z144.array(z144.string())
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 z145 } from "zod";
4415
+ import { z as z128 } from "zod";
4680
4416
  var DocumentationPageRoom = Entity.extend({
4681
- designSystemVersionId: z145.string(),
4682
- documentationPageId: z145.string(),
4683
- liveblocksId: z145.string(),
4684
- isDirty: z145.boolean()
4417
+ designSystemVersionId: z128.string(),
4418
+ documentationPageId: z128.string(),
4419
+ liveblocksId: z128.string(),
4420
+ isDirty: z128.boolean()
4685
4421
  });
4686
- var DocumentationPageRoomState = z145.object({
4687
- pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4422
+ var DocumentationPageRoomState = z128.object({
4423
+ pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4688
4424
  itemConfiguration: DocumentationItemConfigurationV2
4689
4425
  });
4690
- var DocumentationPageRoomRoomUpdate = z145.object({
4426
+ var DocumentationPageRoomRoomUpdate = z128.object({
4691
4427
  page: DocumentationPageV2,
4692
4428
  pageParent: ElementGroup
4693
4429
  });
4694
4430
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4695
- pageItems: z145.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4696
- blockDefinitions: z145.array(PageBlockDefinition)
4431
+ pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4432
+ blockDefinitions: z128.array(PageBlockDefinition)
4697
4433
  });
4698
- var RestoredDocumentationPage = z145.object({
4434
+ var RestoredDocumentationPage = z128.object({
4699
4435
  page: DocumentationPageV2,
4700
4436
  pageParent: ElementGroup,
4701
4437
  pageContent: DocumentationPageContentData,
4702
- contentHash: z145.string(),
4703
- snapshotId: z145.string(),
4704
- roomId: z145.string().optional()
4438
+ contentHash: z128.string(),
4439
+ snapshotId: z128.string(),
4440
+ roomId: z128.string().optional()
4705
4441
  });
4706
- var RestoredDocumentationGroup = z145.object({
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 z146 } from "zod";
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 = z146.nativeEnum(RoomTypeEnum);
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 z147 } from "zod";
4459
+ import { z as z130 } from "zod";
4724
4460
  var WorkspaceRoom = Entity.extend({
4725
- workspaceId: z147.string(),
4726
- liveblocksId: z147.string()
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 z148 } from "zod";
4731
- var PublishedDocsDump = z148.object({
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 = z149.object({
4473
+ var DocumentationThreadDump = z132.object({
4738
4474
  thread: DocumentationCommentThread,
4739
4475
  comments: DocumentationComment.array()
4740
4476
  });
4741
- var DocumentationPageRoomDump = z149.object({
4477
+ var DocumentationPageRoomDump = z132.object({
4742
4478
  room: DocumentationPageRoom,
4743
4479
  threads: DocumentationThreadDump.array()
4744
4480
  });
4745
- var DesignSystemVersionMultiplayerDump = z149.object({
4481
+ var DesignSystemVersionMultiplayerDump = z132.object({
4746
4482
  documentationPages: DocumentationPageRoomDump.array()
4747
4483
  });
4748
- var DesignSystemVersionDump = z149.object({
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 = z150.object({
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 z153 } from "zod";
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 z152 } from "zod";
4629
+ import { z as z146 } from "zod";
4776
4630
 
4777
4631
  // src/integrations/integration.ts
4778
- import { z as z151 } from "zod";
4779
- var IntegrationDesignSystem = z151.object({
4780
- designSystemId: z151.string(),
4781
- brandId: z151.string(),
4782
- title: z151.string().optional(),
4783
- userId: z151.string().optional(),
4784
- date: z151.coerce.date().optional()
4785
- });
4786
- var IntegrationCredentialsType = z151.enum(["OAuth2", "PAT", "GithubApp"]);
4787
- var IntegrationCredentialsState = z151.enum(["Active", "Inactive"]);
4788
- var IntegrationCredentialsProfile = z151.object({
4789
- id: nullishToOptional(z151.string()),
4790
- email: nullishToOptional(z151.string()),
4791
- handle: nullishToOptional(z151.string()),
4792
- type: nullishToOptional(z151.string()),
4793
- avatarUrl: nullishToOptional(z151.string()),
4794
- organization: nullishToOptional(z151.string()),
4795
- collection: nullishToOptional(z151.string())
4796
- });
4797
- var IntegrationCredentials = z151.object({
4798
- id: z151.string(),
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: z151.string(),
4801
- accessToken: z151.string(),
4802
- userId: z151.string(),
4803
- createdAt: z151.coerce.date(),
4804
- refreshToken: z151.string().optional(),
4805
- tokenName: z151.string().optional(),
4806
- expiresAt: z151.coerce.date().optional(),
4807
- refreshedAt: z151.coerce.date().optional(),
4808
- username: z151.string().optional(),
4809
- appInstallationId: z151.string().optional(),
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: z151.string().optional(),
4665
+ customUrl: z142.string().optional(),
4812
4666
  state: IntegrationCredentialsState,
4813
4667
  user: UserMinified.optional()
4814
4668
  });
4815
- var ExtendedIntegrationType = z151.enum([
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 = z151.object({
4827
- id: z151.string(),
4828
- workspaceId: z151.string(),
4680
+ var Integration = z142.object({
4681
+ id: z142.string(),
4682
+ workspaceId: z142.string(),
4829
4683
  type: IntegrationType,
4830
- createdAt: z151.coerce.date(),
4831
- integrationCredentials: z151.array(IntegrationCredentials).optional()
4832
- });
4833
- var IntegrationToken = z151.object({
4834
- access_token: z151.string(),
4835
- refresh_token: z151.string().optional(),
4836
- expires_in: z151.union([z151.number().optional(), z151.string().optional()]),
4837
- token_type: z151.string().optional(),
4838
- token_name: z151.string().optional(),
4839
- token_azure_organization_name: z151.string().optional(),
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: z151.string().optional(),
4695
+ token_azure_collection_name: z142.string().optional(),
4842
4696
  // Azure Server PAT only
4843
- token_bitbucket_username: z151.string().optional(),
4697
+ token_bitbucket_username: z142.string().optional(),
4844
4698
  // Bitbucket only
4845
- custom_url: z151.string().optional().transform((value) => {
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 = z152.object({
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 = z153.object({
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 z154 } from "zod";
4898
- var NpmProxyToken = z154.object({
4899
- access: z154.string(),
4900
- expiresAt: z154.number()
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 = z154.object({
4903
- returnToUrl: z154.string().optional(),
4849
+ var SessionData = z148.object({
4850
+ returnToUrl: z148.string().optional(),
4904
4851
  npmProxyToken: NpmProxyToken.optional()
4905
4852
  });
4906
- var Session = z154.object({
4907
- id: z154.string(),
4908
- expiresAt: z154.coerce.date(),
4909
- userId: z154.string().nullable(),
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 = z154.object({
4913
- access: z154.string(),
4914
- refresh: z154.string()
4859
+ var AuthTokens = z148.object({
4860
+ access: z148.string(),
4861
+ refresh: z148.string()
4915
4862
  });
4916
- var UserSession = z154.object({
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,