@supernova-studio/model 0.55.16 → 0.55.17

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