@supernova-studio/model 0.55.15 → 0.55.17

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