@supernova-studio/model 0.59.0 → 0.59.2

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
@@ -288,7 +288,7 @@ var CustomDomain = z14.object({
288
288
  });
289
289
 
290
290
  // src/data-dumps/code-integration-dump.ts
291
- import { z as z148 } from "zod";
291
+ import { z as z149 } from "zod";
292
292
 
293
293
  // src/export/exporter.ts
294
294
  import { z as z18 } from "zod";
@@ -447,10 +447,10 @@ var Exporter = z18.object({
447
447
  });
448
448
 
449
449
  // src/export/pipeline.ts
450
- import { z as z147 } from "zod";
450
+ import { z as z148 } from "zod";
451
451
 
452
452
  // src/export/export-destinations.ts
453
- import { z as z146 } from "zod";
453
+ import { z as z147 } from "zod";
454
454
 
455
455
  // src/dsm/assets/asset-dynamo-record.ts
456
456
  import { z as z19 } from "zod";
@@ -913,6 +913,17 @@ function recordToMap(record) {
913
913
  map.set(k, v);
914
914
  return map;
915
915
  }
916
+ function applyShallowObjectUpdate(object, update) {
917
+ const objectShallowCopy = { ...object };
918
+ for (const [key, value] of Object.entries(update)) {
919
+ if (value === null) {
920
+ objectShallowCopy[key] = void 0;
921
+ } else if (value !== void 0) {
922
+ objectShallowCopy[key] = value;
923
+ }
924
+ }
925
+ return objectShallowCopy;
926
+ }
916
927
 
917
928
  // src/utils/content-loader-instruction.ts
918
929
  import { z as z35 } from "zod";
@@ -2931,23 +2942,33 @@ function recursiveFigmaFileStructureToMap(node, map) {
2931
2942
 
2932
2943
  // src/dsm/elements/data/figma-node-reference.ts
2933
2944
  import { z as z58 } from "zod";
2945
+ var FigmaNodeRenderState = z58.enum(["InProgress", "Success", "Failed"]);
2934
2946
  var FigmaNodeRenderFormat = z58.enum(["Png", "Svg"]);
2947
+ var FigmaNodeRenderErrorType = z58.enum(["MissingIntegration", "NodeNotFound", "RenderError"]);
2948
+ var FigmaNodeRelinkData = z58.object({
2949
+ fileId: z58.string()
2950
+ });
2951
+ var FigmaNodeRenderedImage = z58.object({
2952
+ resourceId: z58.string(),
2953
+ format: FigmaNodeRenderFormat,
2954
+ scale: nullishToOptional(z58.number()),
2955
+ width: nullishToOptional(z58.number()),
2956
+ height: nullishToOptional(z58.number()),
2957
+ url: nullishToOptional(z58.string()),
2958
+ originKey: nullishToOptional(z58.string())
2959
+ });
2960
+ var FigmaNodeRenderError = z58.object({
2961
+ type: FigmaNodeRenderErrorType
2962
+ });
2935
2963
  var FigmaNodeReferenceData = z58.object({
2936
- structureElementId: z58.string(),
2937
- nodeId: z58.string(),
2938
- fileId: z58.string().optional(),
2939
- valid: z58.boolean(),
2940
- format: FigmaNodeRenderFormat.default("Png"),
2941
- // Asset data
2942
- assetId: z58.string().optional(),
2943
- assetScale: z58.number().optional(),
2944
- assetWidth: z58.number().optional(),
2945
- assetHeight: z58.number().optional(),
2946
- assetUrl: z58.string().optional(),
2947
- assetOriginKey: z58.string().optional()
2948
- });
2949
- var FigmaNodeReferenceElementData = z58.object({
2950
- value: FigmaNodeReferenceData
2964
+ sceneNodeId: z58.string(),
2965
+ format: FigmaNodeRenderFormat,
2966
+ scale: nullishToOptional(z58.number()),
2967
+ renderState: FigmaNodeRenderState,
2968
+ renderedImage: FigmaNodeRenderedImage.optional(),
2969
+ renderError: FigmaNodeRenderError.optional(),
2970
+ hasSource: z58.boolean(),
2971
+ relinkData: FigmaNodeRelinkData.optional()
2951
2972
  });
2952
2973
 
2953
2974
  // src/dsm/elements/data/font-family.ts
@@ -3648,6 +3669,9 @@ var DataSourceVersion = z89.object({
3648
3669
  label: z89.string().nullish(),
3649
3670
  description: z89.string().nullish()
3650
3671
  });
3672
+ function isDataSourceOfType(dataSource, type) {
3673
+ return dataSource.remote.type === type;
3674
+ }
3651
3675
  function zeroNumberByDefault2() {
3652
3676
  return z89.number().nullish().transform((v) => v ?? 0);
3653
3677
  }
@@ -4244,122 +4268,130 @@ function pickLatestGroupSnapshots(snapshots) {
4244
4268
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
4245
4269
  }
4246
4270
 
4271
+ // src/dsm/figma-node-renderer/renderer-payload.ts
4272
+ import { z as z116 } from "zod";
4273
+ var FigmaNodeRendererPayload = z116.object({
4274
+ designSystemId: z116.string(),
4275
+ versionId: z116.string(),
4276
+ figmaNodePersistentIds: z116.string().array()
4277
+ });
4278
+
4247
4279
  // src/dsm/membership/design-system-membership.ts
4248
- import { z as z136 } from "zod";
4280
+ import { z as z137 } from "zod";
4249
4281
 
4250
4282
  // src/workspace/npm-registry-settings.ts
4251
- import { z as z116 } from "zod";
4252
- var NpmRegistryAuthType = z116.enum(["Basic", "Bearer", "None", "Custom"]);
4253
- var NpmRegistryType = z116.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4254
- var NpmRegistryBasicAuthConfig = z116.object({
4255
- authType: z116.literal(NpmRegistryAuthType.Enum.Basic),
4256
- username: z116.string(),
4257
- password: z116.string()
4258
- });
4259
- var NpmRegistryBearerAuthConfig = z116.object({
4260
- authType: z116.literal(NpmRegistryAuthType.Enum.Bearer),
4261
- accessToken: z116.string()
4262
- });
4263
- var NpmRegistryNoAuthConfig = z116.object({
4264
- authType: z116.literal(NpmRegistryAuthType.Enum.None)
4265
- });
4266
- var NpmRegistrCustomAuthConfig = z116.object({
4267
- authType: z116.literal(NpmRegistryAuthType.Enum.Custom),
4268
- authHeaderName: z116.string(),
4269
- authHeaderValue: z116.string()
4270
- });
4271
- var NpmRegistryAuthConfig = z116.discriminatedUnion("authType", [
4283
+ import { z as z117 } from "zod";
4284
+ var NpmRegistryAuthType = z117.enum(["Basic", "Bearer", "None", "Custom"]);
4285
+ var NpmRegistryType = z117.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4286
+ var NpmRegistryBasicAuthConfig = z117.object({
4287
+ authType: z117.literal(NpmRegistryAuthType.Enum.Basic),
4288
+ username: z117.string(),
4289
+ password: z117.string()
4290
+ });
4291
+ var NpmRegistryBearerAuthConfig = z117.object({
4292
+ authType: z117.literal(NpmRegistryAuthType.Enum.Bearer),
4293
+ accessToken: z117.string()
4294
+ });
4295
+ var NpmRegistryNoAuthConfig = z117.object({
4296
+ authType: z117.literal(NpmRegistryAuthType.Enum.None)
4297
+ });
4298
+ var NpmRegistrCustomAuthConfig = z117.object({
4299
+ authType: z117.literal(NpmRegistryAuthType.Enum.Custom),
4300
+ authHeaderName: z117.string(),
4301
+ authHeaderValue: z117.string()
4302
+ });
4303
+ var NpmRegistryAuthConfig = z117.discriminatedUnion("authType", [
4272
4304
  NpmRegistryBasicAuthConfig,
4273
4305
  NpmRegistryBearerAuthConfig,
4274
4306
  NpmRegistryNoAuthConfig,
4275
4307
  NpmRegistrCustomAuthConfig
4276
4308
  ]);
4277
- var NpmRegistryConfigBase = z116.object({
4309
+ var NpmRegistryConfigBase = z117.object({
4278
4310
  registryType: NpmRegistryType,
4279
- enabledScopes: z116.array(z116.string()),
4280
- customRegistryUrl: z116.string().optional(),
4281
- bypassProxy: z116.boolean().default(false),
4282
- npmProxyRegistryConfigId: z116.string().optional(),
4283
- npmProxyVersion: z116.number().optional()
4311
+ enabledScopes: z117.array(z117.string()),
4312
+ customRegistryUrl: z117.string().optional(),
4313
+ bypassProxy: z117.boolean().default(false),
4314
+ npmProxyRegistryConfigId: z117.string().optional(),
4315
+ npmProxyVersion: z117.number().optional()
4284
4316
  });
4285
4317
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4286
4318
 
4287
4319
  // src/workspace/sso-provider.ts
4288
- import { z as z117 } from "zod";
4289
- var SsoProvider = z117.object({
4290
- providerId: z117.string(),
4291
- defaultAutoInviteValue: z117.boolean(),
4292
- autoInviteDomains: z117.record(z117.string(), z117.boolean()),
4293
- skipDocsSupernovaLogin: z117.boolean(),
4294
- areInvitesDisabled: z117.boolean(),
4295
- isTestMode: z117.boolean(),
4296
- emailDomains: z117.array(z117.string()),
4297
- metadataXml: z117.string().nullish()
4320
+ import { z as z118 } from "zod";
4321
+ var SsoProvider = z118.object({
4322
+ providerId: z118.string(),
4323
+ defaultAutoInviteValue: z118.boolean(),
4324
+ autoInviteDomains: z118.record(z118.string(), z118.boolean()),
4325
+ skipDocsSupernovaLogin: z118.boolean(),
4326
+ areInvitesDisabled: z118.boolean(),
4327
+ isTestMode: z118.boolean(),
4328
+ emailDomains: z118.array(z118.string()),
4329
+ metadataXml: z118.string().nullish()
4298
4330
  });
4299
4331
 
4300
4332
  // src/workspace/user-invite.ts
4301
- import { z as z119 } from "zod";
4333
+ import { z as z120 } from "zod";
4302
4334
 
4303
4335
  // src/workspace/workspace-role.ts
4304
- import { z as z118 } from "zod";
4305
- var WorkspaceRoleSchema = z118.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4336
+ import { z as z119 } from "zod";
4337
+ var WorkspaceRoleSchema = z119.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4306
4338
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4307
4339
 
4308
4340
  // src/workspace/user-invite.ts
4309
4341
  var MAX_MEMBERS_COUNT = 100;
4310
- var UserInvite = z119.object({
4311
- email: z119.string().email().trim().transform((value) => value.toLowerCase()),
4342
+ var UserInvite = z120.object({
4343
+ email: z120.string().email().trim().transform((value) => value.toLowerCase()),
4312
4344
  role: WorkspaceRoleSchema
4313
4345
  });
4314
- var UserInvites = z119.array(UserInvite).max(MAX_MEMBERS_COUNT);
4346
+ var UserInvites = z120.array(UserInvite).max(MAX_MEMBERS_COUNT);
4315
4347
 
4316
4348
  // src/workspace/workspace-configuration.ts
4317
- import { z as z121 } from "zod";
4349
+ import { z as z122 } from "zod";
4318
4350
 
4319
4351
  // src/workspace/workspace.ts
4320
4352
  import IPCIDR from "ip-cidr";
4321
- import { z as z120 } from "zod";
4353
+ import { z as z121 } from "zod";
4322
4354
  var isValidCIDR = (value) => {
4323
4355
  return IPCIDR.isValidAddress(value);
4324
4356
  };
4325
- var WorkspaceIpWhitelistEntry = z120.object({
4326
- isEnabled: z120.boolean(),
4327
- name: z120.string(),
4328
- range: z120.string().refine(isValidCIDR, {
4357
+ var WorkspaceIpWhitelistEntry = z121.object({
4358
+ isEnabled: z121.boolean(),
4359
+ name: z121.string(),
4360
+ range: z121.string().refine(isValidCIDR, {
4329
4361
  message: "Invalid IP CIDR"
4330
4362
  })
4331
4363
  });
4332
- var WorkspaceIpSettings = z120.object({
4333
- isEnabledForCloud: z120.boolean(),
4334
- isEnabledForDocs: z120.boolean(),
4335
- entries: z120.array(WorkspaceIpWhitelistEntry)
4364
+ var WorkspaceIpSettings = z121.object({
4365
+ isEnabledForCloud: z121.boolean(),
4366
+ isEnabledForDocs: z121.boolean(),
4367
+ entries: z121.array(WorkspaceIpWhitelistEntry)
4336
4368
  });
4337
- var WorkspaceProfile = z120.object({
4338
- name: z120.string(),
4339
- handle: z120.string(),
4340
- color: z120.string(),
4341
- avatar: nullishToOptional(z120.string()),
4369
+ var WorkspaceProfile = z121.object({
4370
+ name: z121.string(),
4371
+ handle: z121.string(),
4372
+ color: z121.string(),
4373
+ avatar: nullishToOptional(z121.string()),
4342
4374
  billingDetails: nullishToOptional(BillingDetails)
4343
4375
  });
4344
4376
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4345
4377
  avatar: true
4346
4378
  });
4347
- var Workspace = z120.object({
4348
- id: z120.string(),
4379
+ var Workspace = z121.object({
4380
+ id: z121.string(),
4349
4381
  profile: WorkspaceProfile,
4350
4382
  subscription: Subscription,
4351
4383
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4352
4384
  sso: nullishToOptional(SsoProvider),
4353
4385
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4354
4386
  });
4355
- var WorkspaceWithDesignSystems = z120.object({
4387
+ var WorkspaceWithDesignSystems = z121.object({
4356
4388
  workspace: Workspace,
4357
- designSystems: z120.array(DesignSystem)
4389
+ designSystems: z121.array(DesignSystem)
4358
4390
  });
4359
4391
 
4360
4392
  // src/workspace/workspace-configuration.ts
4361
- var WorkspaceConfigurationUpdate = z121.object({
4362
- id: z121.string(),
4393
+ var WorkspaceConfigurationUpdate = z122.object({
4394
+ id: z122.string(),
4363
4395
  ipWhitelist: WorkspaceIpSettings.optional(),
4364
4396
  sso: SsoProvider.optional(),
4365
4397
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -4367,59 +4399,59 @@ var WorkspaceConfigurationUpdate = z121.object({
4367
4399
  });
4368
4400
 
4369
4401
  // src/workspace/workspace-context.ts
4370
- import { z as z122 } from "zod";
4371
- var WorkspaceContext = z122.object({
4372
- workspaceId: z122.string(),
4402
+ import { z as z123 } from "zod";
4403
+ var WorkspaceContext = z123.object({
4404
+ workspaceId: z123.string(),
4373
4405
  product: ProductCodeSchema,
4374
4406
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4375
- publicDesignSystem: z122.boolean().optional()
4407
+ publicDesignSystem: z123.boolean().optional()
4376
4408
  });
4377
4409
 
4378
4410
  // src/workspace/workspace-create.ts
4379
- import { z as z123 } from "zod";
4411
+ import { z as z124 } from "zod";
4380
4412
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4381
4413
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4382
4414
  var HANDLE_MIN_LENGTH = 2;
4383
4415
  var HANDLE_MAX_LENGTH = 64;
4384
- var CreateWorkspaceInput = z123.object({
4385
- name: z123.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4386
- handle: z123.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4416
+ var CreateWorkspaceInput = z124.object({
4417
+ name: z124.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4418
+ handle: z124.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4387
4419
  });
4388
4420
 
4389
4421
  // src/workspace/workspace-invitations.ts
4390
- import { z as z124 } from "zod";
4391
- var WorkspaceInvitation = z124.object({
4392
- id: z124.string(),
4393
- email: z124.string().email(),
4394
- createdAt: z124.coerce.date(),
4395
- resentAt: z124.coerce.date().nullish(),
4396
- role: z124.nativeEnum(WorkspaceRole),
4397
- workspaceId: z124.string(),
4398
- invitedBy: z124.string()
4422
+ import { z as z125 } from "zod";
4423
+ var WorkspaceInvitation = z125.object({
4424
+ id: z125.string(),
4425
+ email: z125.string().email(),
4426
+ createdAt: z125.coerce.date(),
4427
+ resentAt: z125.coerce.date().nullish(),
4428
+ role: z125.nativeEnum(WorkspaceRole),
4429
+ workspaceId: z125.string(),
4430
+ invitedBy: z125.string()
4399
4431
  });
4400
4432
 
4401
4433
  // src/workspace/workspace-membership.ts
4402
- import { z as z133 } from "zod";
4434
+ import { z as z134 } from "zod";
4403
4435
 
4404
4436
  // src/users/linked-integrations.ts
4405
- import { z as z125 } from "zod";
4406
- var IntegrationAuthType = z125.union([z125.literal("OAuth2"), z125.literal("PAT")]);
4407
- var ExternalServiceType = z125.union([
4408
- z125.literal("figma"),
4409
- z125.literal("github"),
4410
- z125.literal("azure"),
4411
- z125.literal("gitlab"),
4412
- z125.literal("bitbucket")
4437
+ import { z as z126 } from "zod";
4438
+ var IntegrationAuthType = z126.union([z126.literal("OAuth2"), z126.literal("PAT")]);
4439
+ var ExternalServiceType = z126.union([
4440
+ z126.literal("figma"),
4441
+ z126.literal("github"),
4442
+ z126.literal("azure"),
4443
+ z126.literal("gitlab"),
4444
+ z126.literal("bitbucket")
4413
4445
  ]);
4414
- var IntegrationUserInfo = z125.object({
4415
- id: z125.string(),
4416
- handle: z125.string().optional(),
4417
- avatarUrl: z125.string().optional(),
4418
- email: z125.string().optional(),
4446
+ var IntegrationUserInfo = z126.object({
4447
+ id: z126.string(),
4448
+ handle: z126.string().optional(),
4449
+ avatarUrl: z126.string().optional(),
4450
+ email: z126.string().optional(),
4419
4451
  authType: IntegrationAuthType.optional(),
4420
- customUrl: z125.string().optional()
4452
+ customUrl: z126.string().optional()
4421
4453
  });
4422
- var UserLinkedIntegrations = z125.object({
4454
+ var UserLinkedIntegrations = z126.object({
4423
4455
  figma: IntegrationUserInfo.optional(),
4424
4456
  github: IntegrationUserInfo.array().optional(),
4425
4457
  azure: IntegrationUserInfo.array().optional(),
@@ -4428,38 +4460,38 @@ var UserLinkedIntegrations = z125.object({
4428
4460
  });
4429
4461
 
4430
4462
  // src/users/user-analytics-cleanup-schedule.ts
4431
- import { z as z126 } from "zod";
4432
- var UserAnalyticsCleanupSchedule = z126.object({
4433
- userId: z126.string(),
4434
- createdAt: z126.coerce.date(),
4435
- deleteAt: z126.coerce.date()
4463
+ import { z as z127 } from "zod";
4464
+ var UserAnalyticsCleanupSchedule = z127.object({
4465
+ userId: z127.string(),
4466
+ createdAt: z127.coerce.date(),
4467
+ deleteAt: z127.coerce.date()
4436
4468
  });
4437
4469
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4438
4470
  createdAt: true
4439
4471
  });
4440
4472
 
4441
4473
  // src/users/user-identity.ts
4442
- import { z as z127 } from "zod";
4443
- var UserIdentity = z127.object({
4444
- id: z127.string(),
4445
- userId: z127.string()
4474
+ import { z as z128 } from "zod";
4475
+ var UserIdentity = z128.object({
4476
+ id: z128.string(),
4477
+ userId: z128.string()
4446
4478
  });
4447
4479
 
4448
4480
  // src/users/user-minified.ts
4449
- import { z as z128 } from "zod";
4450
- var UserMinified = z128.object({
4451
- id: z128.string(),
4452
- name: z128.string(),
4453
- email: z128.string(),
4454
- avatar: z128.string().optional()
4481
+ import { z as z129 } from "zod";
4482
+ var UserMinified = z129.object({
4483
+ id: z129.string(),
4484
+ name: z129.string(),
4485
+ email: z129.string(),
4486
+ avatar: z129.string().optional()
4455
4487
  });
4456
4488
 
4457
4489
  // src/users/user-notification-settings.ts
4458
- import { z as z129 } from "zod";
4459
- var LiveblocksNotificationSettings = z129.object({
4460
- sendCommentNotificationEmails: z129.boolean()
4490
+ import { z as z130 } from "zod";
4491
+ var LiveblocksNotificationSettings = z130.object({
4492
+ sendCommentNotificationEmails: z130.boolean()
4461
4493
  });
4462
- var UserNotificationSettings = z129.object({
4494
+ var UserNotificationSettings = z130.object({
4463
4495
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4464
4496
  });
4465
4497
  var defaultNotificationSettings = {
@@ -4469,27 +4501,27 @@ var defaultNotificationSettings = {
4469
4501
  };
4470
4502
 
4471
4503
  // src/users/user-profile.ts
4472
- import { z as z130 } from "zod";
4473
- var UserOnboardingDepartment = z130.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4474
- var UserOnboardingJobLevel = z130.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4475
- var UserOnboarding = z130.object({
4476
- companyName: z130.string().optional(),
4477
- numberOfPeopleInOrg: z130.string().optional(),
4478
- numberOfPeopleInDesignTeam: z130.string().optional(),
4504
+ import { z as z131 } from "zod";
4505
+ var UserOnboardingDepartment = z131.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4506
+ var UserOnboardingJobLevel = z131.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4507
+ var UserOnboarding = z131.object({
4508
+ companyName: z131.string().optional(),
4509
+ numberOfPeopleInOrg: z131.string().optional(),
4510
+ numberOfPeopleInDesignTeam: z131.string().optional(),
4479
4511
  department: UserOnboardingDepartment.optional(),
4480
- jobTitle: z130.string().optional(),
4481
- phase: z130.string().optional(),
4512
+ jobTitle: z131.string().optional(),
4513
+ phase: z131.string().optional(),
4482
4514
  jobLevel: UserOnboardingJobLevel.optional(),
4483
- designSystemName: z130.string().optional(),
4484
- defaultDestination: z130.string().optional(),
4485
- figmaUrl: z130.string().optional(),
4486
- isPageDraftOnboardingFinished: z130.boolean().optional(),
4487
- isApprovalsOnboardingFinished: z130.boolean().optional()
4488
- });
4489
- var UserProfile = z130.object({
4490
- name: z130.string(),
4491
- avatar: z130.string().optional(),
4492
- nickname: z130.string().optional(),
4515
+ designSystemName: z131.string().optional(),
4516
+ defaultDestination: z131.string().optional(),
4517
+ figmaUrl: z131.string().optional(),
4518
+ isPageDraftOnboardingFinished: z131.boolean().optional(),
4519
+ isApprovalsOnboardingFinished: z131.boolean().optional()
4520
+ });
4521
+ var UserProfile = z131.object({
4522
+ name: z131.string(),
4523
+ avatar: z131.string().optional(),
4524
+ nickname: z131.string().optional(),
4493
4525
  onboarding: UserOnboarding.optional()
4494
4526
  });
4495
4527
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -4497,50 +4529,50 @@ var UserProfileUpdate = UserProfile.partial().omit({
4497
4529
  });
4498
4530
 
4499
4531
  // src/users/user-test.ts
4500
- import { z as z131 } from "zod";
4501
- var UserTest = z131.object({
4502
- id: z131.string(),
4503
- email: z131.string()
4532
+ import { z as z132 } from "zod";
4533
+ var UserTest = z132.object({
4534
+ id: z132.string(),
4535
+ email: z132.string()
4504
4536
  });
4505
4537
 
4506
4538
  // src/users/user.ts
4507
- import { z as z132 } from "zod";
4508
- var UserSource = z132.enum(["SignUp", "Invite", "SSO"]);
4509
- var User = z132.object({
4510
- id: z132.string(),
4511
- email: z132.string(),
4512
- emailVerified: z132.boolean(),
4513
- createdAt: z132.coerce.date(),
4514
- trialExpiresAt: z132.coerce.date().optional(),
4539
+ import { z as z133 } from "zod";
4540
+ var UserSource = z133.enum(["SignUp", "Invite", "SSO"]);
4541
+ var User = z133.object({
4542
+ id: z133.string(),
4543
+ email: z133.string(),
4544
+ emailVerified: z133.boolean(),
4545
+ createdAt: z133.coerce.date(),
4546
+ trialExpiresAt: z133.coerce.date().optional(),
4515
4547
  profile: UserProfile,
4516
4548
  linkedIntegrations: UserLinkedIntegrations.optional(),
4517
- loggedOutAt: z132.coerce.date().optional(),
4518
- isProtected: z132.boolean(),
4549
+ loggedOutAt: z133.coerce.date().optional(),
4550
+ isProtected: z133.boolean(),
4519
4551
  source: UserSource.optional()
4520
4552
  });
4521
4553
 
4522
4554
  // src/workspace/workspace-membership.ts
4523
- var WorkspaceMembership = z133.object({
4524
- id: z133.string(),
4525
- userId: z133.string(),
4526
- workspaceId: z133.string(),
4527
- workspaceRole: z133.nativeEnum(WorkspaceRole),
4555
+ var WorkspaceMembership = z134.object({
4556
+ id: z134.string(),
4557
+ userId: z134.string(),
4558
+ workspaceId: z134.string(),
4559
+ workspaceRole: z134.nativeEnum(WorkspaceRole),
4528
4560
  notificationSettings: UserNotificationSettings,
4529
- isPrimaryOwner: z133.boolean().nullish()
4530
- });
4531
- var UpdateMembershipRolesInput = z133.object({
4532
- members: z133.array(
4533
- z133.object({
4534
- userId: z133.string(),
4535
- role: z133.nativeEnum(WorkspaceRole),
4536
- isPrimaryOwner: z133.boolean().optional()
4561
+ isPrimaryOwner: z134.boolean().nullish()
4562
+ });
4563
+ var UpdateMembershipRolesInput = z134.object({
4564
+ members: z134.array(
4565
+ z134.object({
4566
+ userId: z134.string(),
4567
+ role: z134.nativeEnum(WorkspaceRole),
4568
+ isPrimaryOwner: z134.boolean().optional()
4537
4569
  })
4538
4570
  )
4539
4571
  });
4540
4572
 
4541
4573
  // src/dsm/membership/ds-role.ts
4542
- import { z as z134 } from "zod";
4543
- var DesignSystemRole = z134.enum([
4574
+ import { z as z135 } from "zod";
4575
+ var DesignSystemRole = z135.enum([
4544
4576
  WorkspaceRole.Admin,
4545
4577
  WorkspaceRole.Contributor,
4546
4578
  WorkspaceRole.Creator,
@@ -4564,46 +4596,46 @@ function workspaceRoleToDesignSystemRole(role) {
4564
4596
  }
4565
4597
 
4566
4598
  // src/dsm/membership/invitations.ts
4567
- import { z as z135 } from "zod";
4568
- var DesignSystemInvitation = z135.object({
4569
- id: z135.string(),
4570
- designSystemId: z135.string(),
4571
- workspaceInvitationId: z135.string(),
4599
+ import { z as z136 } from "zod";
4600
+ var DesignSystemInvitation = z136.object({
4601
+ id: z136.string(),
4602
+ designSystemId: z136.string(),
4603
+ workspaceInvitationId: z136.string(),
4572
4604
  designSystemRole: DesignSystemRole.optional(),
4573
4605
  workspaceRole: WorkspaceRoleSchema
4574
4606
  });
4575
4607
 
4576
4608
  // src/dsm/membership/design-system-membership.ts
4577
- var DesignSystemMembership = z136.object({
4578
- id: z136.string(),
4579
- userId: z136.string(),
4580
- designSystemId: z136.string(),
4609
+ var DesignSystemMembership = z137.object({
4610
+ id: z137.string(),
4611
+ userId: z137.string(),
4612
+ designSystemId: z137.string(),
4581
4613
  designSystemRole: DesignSystemRole.optional(),
4582
- workspaceMembershipId: z136.string(),
4614
+ workspaceMembershipId: z137.string(),
4583
4615
  workspaceRole: WorkspaceRoleSchema
4584
4616
  });
4585
- var DesignSystemMembers = z136.object({
4617
+ var DesignSystemMembers = z137.object({
4586
4618
  members: DesignSystemMembership.array(),
4587
4619
  invitations: DesignSystemInvitation.array()
4588
4620
  });
4589
- var DesignSystemPendingMemberInvitation = z136.object({
4590
- inviteId: z136.string(),
4621
+ var DesignSystemPendingMemberInvitation = z137.object({
4622
+ inviteId: z137.string(),
4591
4623
  /**
4592
4624
  * Role that the user will have in the design system, undefined
4593
4625
  * if it should be inherited from the workspace
4594
4626
  */
4595
4627
  designSystemRole: DesignSystemRole.optional()
4596
4628
  });
4597
- var DesignSystemUserInvitation = z136.object({
4598
- userId: z136.string(),
4629
+ var DesignSystemUserInvitation = z137.object({
4630
+ userId: z137.string(),
4599
4631
  /**
4600
4632
  * Role that the user will have in the design system, undefined
4601
4633
  * if it should be inherited from the workspace
4602
4634
  */
4603
4635
  designSystemRole: DesignSystemRole.optional()
4604
4636
  });
4605
- var DesignSystemInvite = z136.object({
4606
- email: z136.string(),
4637
+ var DesignSystemInvite = z137.object({
4638
+ email: z137.string(),
4607
4639
  workspaceRole: WorkspaceRoleSchema,
4608
4640
  /**
4609
4641
  * Role that the user will have in the design system, undefined
@@ -4611,300 +4643,300 @@ var DesignSystemInvite = z136.object({
4611
4643
  */
4612
4644
  designSystemRole: DesignSystemRole.optional()
4613
4645
  });
4614
- var DesignSystemMemberUpdate = z136.object({
4615
- userId: z136.string(),
4646
+ var DesignSystemMemberUpdate = z137.object({
4647
+ userId: z137.string(),
4616
4648
  designSystemRole: DesignSystemRole.nullable()
4617
4649
  });
4618
- var DesignSystemInviteUpdate = z136.object({
4650
+ var DesignSystemInviteUpdate = z137.object({
4619
4651
  /**
4620
4652
  * Workspace invitation id
4621
4653
  */
4622
- inviteId: z136.string(),
4654
+ inviteId: z137.string(),
4623
4655
  designSystemRole: DesignSystemRole.nullable()
4624
4656
  });
4625
- var DesignSystemMembershipUpdates = z136.object({
4657
+ var DesignSystemMembershipUpdates = z137.object({
4626
4658
  usersToInvite: DesignSystemUserInvitation.array().optional(),
4627
4659
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
4628
4660
  emailsToInvite: DesignSystemInvite.array().optional(),
4629
4661
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
4630
4662
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
4631
- removeUserIds: z136.string().array().optional(),
4632
- deleteInvitationIds: z136.string().array().optional()
4663
+ removeUserIds: z137.string().array().optional(),
4664
+ deleteInvitationIds: z137.string().array().optional()
4633
4665
  });
4634
4666
 
4635
4667
  // src/dsm/views/column.ts
4636
- import { z as z137 } from "zod";
4637
- var ElementViewBaseColumnType = z137.enum(["Name", "Description", "Value", "UpdatedAt"]);
4638
- var ElementViewColumnType = z137.union([
4639
- z137.literal("BaseProperty"),
4640
- z137.literal("PropertyDefinition"),
4641
- z137.literal("Theme")
4668
+ import { z as z138 } from "zod";
4669
+ var ElementViewBaseColumnType = z138.enum(["Name", "Description", "Value", "UpdatedAt"]);
4670
+ var ElementViewColumnType = z138.union([
4671
+ z138.literal("BaseProperty"),
4672
+ z138.literal("PropertyDefinition"),
4673
+ z138.literal("Theme")
4642
4674
  ]);
4643
- var ElementViewColumnSharedAttributes = z137.object({
4644
- id: z137.string(),
4645
- persistentId: z137.string(),
4646
- elementDataViewId: z137.string(),
4647
- sortPosition: z137.number(),
4648
- width: z137.number()
4675
+ var ElementViewColumnSharedAttributes = z138.object({
4676
+ id: z138.string(),
4677
+ persistentId: z138.string(),
4678
+ elementDataViewId: z138.string(),
4679
+ sortPosition: z138.number(),
4680
+ width: z138.number()
4649
4681
  });
4650
4682
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
4651
- type: z137.literal("BaseProperty"),
4683
+ type: z138.literal("BaseProperty"),
4652
4684
  basePropertyType: ElementViewBaseColumnType
4653
4685
  });
4654
4686
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4655
- type: z137.literal("PropertyDefinition"),
4656
- propertyDefinitionId: z137.string()
4687
+ type: z138.literal("PropertyDefinition"),
4688
+ propertyDefinitionId: z138.string()
4657
4689
  });
4658
4690
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4659
- type: z137.literal("Theme"),
4660
- themeId: z137.string()
4691
+ type: z138.literal("Theme"),
4692
+ themeId: z138.string()
4661
4693
  });
4662
- var ElementViewColumn = z137.discriminatedUnion("type", [
4694
+ var ElementViewColumn = z138.discriminatedUnion("type", [
4663
4695
  ElementViewBasePropertyColumn,
4664
4696
  ElementViewPropertyDefinitionColumn,
4665
4697
  ElementViewThemeColumn
4666
4698
  ]);
4667
4699
 
4668
4700
  // src/dsm/views/view.ts
4669
- import { z as z138 } from "zod";
4670
- var ElementView = z138.object({
4671
- id: z138.string(),
4672
- persistentId: z138.string(),
4673
- designSystemVersionId: z138.string(),
4674
- name: z138.string(),
4675
- description: z138.string(),
4676
- targetElementType: ElementPropertyTargetType,
4677
- isDefault: z138.boolean()
4678
- });
4679
-
4680
- // src/dsm/brand.ts
4681
4701
  import { z as z139 } from "zod";
4682
- var Brand = z139.object({
4702
+ var ElementView = z139.object({
4683
4703
  id: z139.string(),
4684
- designSystemVersionId: z139.string(),
4685
4704
  persistentId: z139.string(),
4705
+ designSystemVersionId: z139.string(),
4686
4706
  name: z139.string(),
4687
- description: z139.string()
4707
+ description: z139.string(),
4708
+ targetElementType: ElementPropertyTargetType,
4709
+ isDefault: z139.boolean()
4688
4710
  });
4689
4711
 
4690
- // src/dsm/design-system.ts
4712
+ // src/dsm/brand.ts
4691
4713
  import { z as z140 } from "zod";
4692
- var DesignSystemAccessMode = z140.enum(["Open", "InviteOnly"]);
4693
- var DesignSystemSwitcher = z140.object({
4694
- isEnabled: z140.boolean(),
4695
- designSystemIds: z140.array(z140.string())
4696
- });
4697
- var DesignSystem = z140.object({
4714
+ var Brand = z140.object({
4698
4715
  id: z140.string(),
4699
- workspaceId: z140.string(),
4716
+ designSystemVersionId: z140.string(),
4717
+ persistentId: z140.string(),
4700
4718
  name: z140.string(),
4701
- description: z140.string(),
4702
- docExporterId: nullishToOptional(z140.string()),
4703
- docSlug: z140.string(),
4704
- docUserSlug: nullishToOptional(z140.string()),
4705
- docSlugDeprecated: z140.string(),
4706
- isMultibrand: z140.boolean(),
4707
- docViewUrl: nullishToOptional(z140.string()),
4708
- basePrefixes: z140.array(z140.string()),
4719
+ description: z140.string()
4720
+ });
4721
+
4722
+ // src/dsm/design-system.ts
4723
+ import { z as z141 } from "zod";
4724
+ var DesignSystemAccessMode = z141.enum(["Open", "InviteOnly"]);
4725
+ var DesignSystemSwitcher = z141.object({
4726
+ isEnabled: z141.boolean(),
4727
+ designSystemIds: z141.array(z141.string())
4728
+ });
4729
+ var DesignSystem = z141.object({
4730
+ id: z141.string(),
4731
+ workspaceId: z141.string(),
4732
+ name: z141.string(),
4733
+ description: z141.string(),
4734
+ docExporterId: nullishToOptional(z141.string()),
4735
+ docSlug: z141.string(),
4736
+ docUserSlug: nullishToOptional(z141.string()),
4737
+ docSlugDeprecated: z141.string(),
4738
+ isMultibrand: z141.boolean(),
4739
+ docViewUrl: nullishToOptional(z141.string()),
4740
+ basePrefixes: z141.array(z141.string()),
4709
4741
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4710
- isApprovalFeatureEnabled: z140.boolean(),
4711
- approvalRequiredForPublishing: z140.boolean(),
4742
+ isApprovalFeatureEnabled: z141.boolean(),
4743
+ approvalRequiredForPublishing: z141.boolean(),
4712
4744
  accessMode: DesignSystemAccessMode,
4713
- membersGenerated: z140.boolean(),
4714
- createdAt: z140.coerce.date(),
4715
- updatedAt: z140.coerce.date()
4745
+ membersGenerated: z141.boolean(),
4746
+ createdAt: z141.coerce.date(),
4747
+ updatedAt: z141.coerce.date()
4716
4748
  });
4717
4749
 
4718
4750
  // src/dsm/exporter-property-values-collection.ts
4719
- import { z as z141 } from "zod";
4720
- var ExporterPropertyImageValue = z141.object({
4751
+ import { z as z142 } from "zod";
4752
+ var ExporterPropertyImageValue = z142.object({
4721
4753
  asset: PageBlockAsset.optional(),
4722
- assetId: z141.string().optional(),
4723
- assetUrl: z141.string().optional()
4724
- });
4725
- var ExporterPropertyValue = z141.object({
4726
- key: z141.string(),
4727
- value: z141.union([
4728
- z141.number(),
4729
- z141.string(),
4730
- z141.boolean(),
4754
+ assetId: z142.string().optional(),
4755
+ assetUrl: z142.string().optional()
4756
+ });
4757
+ var ExporterPropertyValue = z142.object({
4758
+ key: z142.string(),
4759
+ value: z142.union([
4760
+ z142.number(),
4761
+ z142.string(),
4762
+ z142.boolean(),
4731
4763
  ExporterPropertyImageValue,
4732
4764
  ColorTokenData,
4733
4765
  TypographyTokenData
4734
4766
  ])
4735
4767
  });
4736
- var ExporterPropertyValuesCollection = z141.object({
4737
- id: z141.string(),
4738
- designSystemId: z141.string(),
4739
- exporterId: z141.string(),
4740
- values: z141.array(ExporterPropertyValue)
4768
+ var ExporterPropertyValuesCollection = z142.object({
4769
+ id: z142.string(),
4770
+ designSystemId: z142.string(),
4771
+ exporterId: z142.string(),
4772
+ values: z142.array(ExporterPropertyValue)
4741
4773
  });
4742
4774
 
4743
4775
  // src/dsm/published-doc-page-visits.ts
4744
- import { z as z142 } from "zod";
4745
- var PublishedDocPageVisitsEntry = z142.object({
4746
- id: z142.string(),
4747
- versionId: z142.string(),
4748
- pagePersistentId: z142.string(),
4749
- locale: z142.string().optional(),
4750
- timestamp: z142.coerce.date(),
4751
- visits: z142.number()
4776
+ import { z as z143 } from "zod";
4777
+ var PublishedDocPageVisitsEntry = z143.object({
4778
+ id: z143.string(),
4779
+ versionId: z143.string(),
4780
+ pagePersistentId: z143.string(),
4781
+ locale: z143.string().optional(),
4782
+ timestamp: z143.coerce.date(),
4783
+ visits: z143.number()
4752
4784
  });
4753
4785
 
4754
4786
  // src/dsm/published-doc-page.ts
4755
- import { z as z143 } from "zod";
4787
+ import { z as z144 } from "zod";
4756
4788
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4757
4789
  function tryParseShortPersistentId(url = "/") {
4758
4790
  const lastUrlPart = url.split("/").pop() || "";
4759
4791
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4760
4792
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4761
4793
  }
4762
- var PublishedDocPage = z143.object({
4763
- id: z143.string(),
4764
- publishedDocId: z143.string(),
4765
- pageShortPersistentId: z143.string(),
4766
- pagePersistentId: z143.string().optional(),
4767
- pathV1: z143.string(),
4768
- pathV2: z143.string(),
4769
- storagePath: z143.string(),
4770
- locale: z143.string().optional(),
4771
- isPrivate: z143.boolean(),
4772
- isHidden: z143.boolean(),
4773
- createdAt: z143.coerce.date(),
4774
- updatedAt: z143.coerce.date()
4794
+ var PublishedDocPage = z144.object({
4795
+ id: z144.string(),
4796
+ publishedDocId: z144.string(),
4797
+ pageShortPersistentId: z144.string(),
4798
+ pagePersistentId: z144.string().optional(),
4799
+ pathV1: z144.string(),
4800
+ pathV2: z144.string(),
4801
+ storagePath: z144.string(),
4802
+ locale: z144.string().optional(),
4803
+ isPrivate: z144.boolean(),
4804
+ isHidden: z144.boolean(),
4805
+ createdAt: z144.coerce.date(),
4806
+ updatedAt: z144.coerce.date()
4775
4807
  });
4776
4808
 
4777
4809
  // src/dsm/published-doc.ts
4778
- import { z as z144 } from "zod";
4810
+ import { z as z145 } from "zod";
4779
4811
  var publishedDocEnvironments = ["Live", "Preview"];
4780
- var PublishedDocEnvironment = z144.enum(publishedDocEnvironments);
4781
- var PublishedDocsChecksums = z144.record(z144.string());
4782
- var PublishedDocRoutingVersion = z144.enum(["1", "2"]);
4783
- var PublishedDoc = z144.object({
4784
- id: z144.string(),
4785
- designSystemVersionId: z144.string(),
4786
- createdAt: z144.coerce.date(),
4787
- updatedAt: z144.coerce.date(),
4788
- lastPublishedAt: z144.coerce.date(),
4789
- isDefault: z144.boolean(),
4790
- isPublic: z144.boolean(),
4812
+ var PublishedDocEnvironment = z145.enum(publishedDocEnvironments);
4813
+ var PublishedDocsChecksums = z145.record(z145.string());
4814
+ var PublishedDocRoutingVersion = z145.enum(["1", "2"]);
4815
+ var PublishedDoc = z145.object({
4816
+ id: z145.string(),
4817
+ designSystemVersionId: z145.string(),
4818
+ createdAt: z145.coerce.date(),
4819
+ updatedAt: z145.coerce.date(),
4820
+ lastPublishedAt: z145.coerce.date(),
4821
+ isDefault: z145.boolean(),
4822
+ isPublic: z145.boolean(),
4791
4823
  environment: PublishedDocEnvironment,
4792
4824
  checksums: PublishedDocsChecksums,
4793
- storagePath: z144.string(),
4794
- wasMigrated: z144.boolean(),
4825
+ storagePath: z145.string(),
4826
+ wasMigrated: z145.boolean(),
4795
4827
  routingVersion: PublishedDocRoutingVersion,
4796
- usesLocalizations: z144.boolean(),
4797
- wasPublishedWithLocalizations: z144.boolean(),
4798
- tokenCount: z144.number(),
4799
- assetCount: z144.number()
4828
+ usesLocalizations: z145.boolean(),
4829
+ wasPublishedWithLocalizations: z145.boolean(),
4830
+ tokenCount: z145.number(),
4831
+ assetCount: z145.number()
4800
4832
  });
4801
4833
 
4802
4834
  // src/dsm/version.ts
4803
- import { z as z145 } from "zod";
4804
- var DesignSystemVersion = z145.object({
4805
- id: z145.string(),
4806
- version: z145.string(),
4807
- createdAt: z145.coerce.date(),
4808
- designSystemId: z145.string(),
4809
- name: z145.string(),
4810
- comment: z145.string(),
4811
- isReadonly: z145.boolean(),
4812
- changeLog: z145.string(),
4813
- parentId: z145.string().optional(),
4814
- isDraftsFeatureAdopted: z145.boolean()
4815
- });
4816
- var VersionCreationJobStatus = z145.enum(["Success", "InProgress", "Error"]);
4817
- var VersionCreationJob = z145.object({
4818
- id: z145.string(),
4819
- version: z145.string(),
4820
- designSystemId: z145.string(),
4821
- designSystemVersionId: nullishToOptional(z145.string()),
4835
+ import { z as z146 } from "zod";
4836
+ var DesignSystemVersion = z146.object({
4837
+ id: z146.string(),
4838
+ version: z146.string(),
4839
+ createdAt: z146.coerce.date(),
4840
+ designSystemId: z146.string(),
4841
+ name: z146.string(),
4842
+ comment: z146.string(),
4843
+ isReadonly: z146.boolean(),
4844
+ changeLog: z146.string(),
4845
+ parentId: z146.string().optional(),
4846
+ isDraftsFeatureAdopted: z146.boolean()
4847
+ });
4848
+ var VersionCreationJobStatus = z146.enum(["Success", "InProgress", "Error"]);
4849
+ var VersionCreationJob = z146.object({
4850
+ id: z146.string(),
4851
+ version: z146.string(),
4852
+ designSystemId: z146.string(),
4853
+ designSystemVersionId: nullishToOptional(z146.string()),
4822
4854
  status: VersionCreationJobStatus,
4823
- errorMessage: nullishToOptional(z145.string())
4855
+ errorMessage: nullishToOptional(z146.string())
4824
4856
  });
4825
4857
 
4826
4858
  // src/export/export-destinations.ts
4827
4859
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4828
4860
  var BITBUCKET_MAX_LENGTH = 64;
4829
- var ExportJobDocumentationChanges = z146.object({
4830
- pagePersistentIds: z146.string().array(),
4831
- groupPersistentIds: z146.string().array()
4861
+ var ExportJobDocumentationChanges = z147.object({
4862
+ pagePersistentIds: z147.string().array(),
4863
+ groupPersistentIds: z147.string().array()
4832
4864
  });
4833
- var ExporterDestinationDocs = z146.object({
4865
+ var ExporterDestinationDocs = z147.object({
4834
4866
  environment: PublishedDocEnvironment,
4835
4867
  changes: nullishToOptional(ExportJobDocumentationChanges)
4836
4868
  });
4837
- var ExporterDestinationS3 = z146.object({});
4838
- var ExporterDestinationGithub = z146.object({
4839
- credentialId: z146.string().optional(),
4869
+ var ExporterDestinationS3 = z147.object({});
4870
+ var ExporterDestinationGithub = z147.object({
4871
+ credentialId: z147.string().optional(),
4840
4872
  // Repository
4841
- url: z146.string(),
4873
+ url: z147.string(),
4842
4874
  // Location
4843
- branch: z146.string(),
4844
- relativePath: nullishToOptional(z146.string()),
4845
- purgeDirectory: nullishToOptional(z146.boolean()),
4875
+ branch: z147.string(),
4876
+ relativePath: nullishToOptional(z147.string()),
4877
+ purgeDirectory: nullishToOptional(z147.boolean()),
4846
4878
  // Commit metadata
4847
- commitAuthorName: nullishToOptional(z146.string()),
4848
- commitAuthorEmail: nullishToOptional(z146.string()),
4879
+ commitAuthorName: nullishToOptional(z147.string()),
4880
+ commitAuthorEmail: nullishToOptional(z147.string()),
4849
4881
  // Legacy deprecated fields. Use `credentialId` instead
4850
- connectionId: nullishToOptional(z146.string()),
4851
- userId: nullishToOptional(z146.number())
4882
+ connectionId: nullishToOptional(z147.string()),
4883
+ userId: nullishToOptional(z147.number())
4852
4884
  });
4853
- var ExporterDestinationAzure = z146.object({
4854
- credentialId: z146.string().optional(),
4885
+ var ExporterDestinationAzure = z147.object({
4886
+ credentialId: z147.string().optional(),
4855
4887
  // Repository
4856
- organizationId: z146.string(),
4857
- projectId: z146.string(),
4858
- repositoryId: z146.string(),
4888
+ organizationId: z147.string(),
4889
+ projectId: z147.string(),
4890
+ repositoryId: z147.string(),
4859
4891
  // Commit metadata
4860
- commitAuthorName: nullishToOptional(z146.string()),
4861
- commitAuthorEmail: nullishToOptional(z146.string()),
4892
+ commitAuthorName: nullishToOptional(z147.string()),
4893
+ commitAuthorEmail: nullishToOptional(z147.string()),
4862
4894
  // Location
4863
- branch: z146.string(),
4864
- relativePath: nullishToOptional(z146.string()),
4865
- purgeDirectory: nullishToOptional(z146.boolean()),
4895
+ branch: z147.string(),
4896
+ relativePath: nullishToOptional(z147.string()),
4897
+ purgeDirectory: nullishToOptional(z147.boolean()),
4866
4898
  // Maybe not needed
4867
- url: nullishToOptional(z146.string()),
4899
+ url: nullishToOptional(z147.string()),
4868
4900
  // Legacy deprecated fields. Use `credentialId` instead
4869
- connectionId: nullishToOptional(z146.string()),
4870
- userId: nullishToOptional(z146.number())
4901
+ connectionId: nullishToOptional(z147.string()),
4902
+ userId: nullishToOptional(z147.number())
4871
4903
  });
4872
- var ExporterDestinationGitlab = z146.object({
4873
- credentialId: z146.string().optional(),
4904
+ var ExporterDestinationGitlab = z147.object({
4905
+ credentialId: z147.string().optional(),
4874
4906
  // Repository
4875
- projectId: z146.string(),
4907
+ projectId: z147.string(),
4876
4908
  // Commit metadata
4877
- commitAuthorName: nullishToOptional(z146.string()),
4878
- commitAuthorEmail: nullishToOptional(z146.string()),
4909
+ commitAuthorName: nullishToOptional(z147.string()),
4910
+ commitAuthorEmail: nullishToOptional(z147.string()),
4879
4911
  // Location
4880
- branch: z146.string(),
4881
- relativePath: nullishToOptional(z146.string()),
4882
- purgeDirectory: nullishToOptional(z146.boolean()),
4912
+ branch: z147.string(),
4913
+ relativePath: nullishToOptional(z147.string()),
4914
+ purgeDirectory: nullishToOptional(z147.boolean()),
4883
4915
  // Maybe not needed
4884
- url: nullishToOptional(z146.string()),
4916
+ url: nullishToOptional(z147.string()),
4885
4917
  // Legacy deprecated fields. Use `credentialId` instead
4886
- connectionId: nullishToOptional(z146.string()),
4887
- userId: nullishToOptional(z146.number())
4918
+ connectionId: nullishToOptional(z147.string()),
4919
+ userId: nullishToOptional(z147.number())
4888
4920
  });
4889
- var ExporterDestinationBitbucket = z146.object({
4890
- credentialId: z146.string().optional(),
4921
+ var ExporterDestinationBitbucket = z147.object({
4922
+ credentialId: z147.string().optional(),
4891
4923
  // Repository
4892
- workspaceSlug: z146.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4893
- projectKey: z146.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4894
- repoSlug: z146.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4924
+ workspaceSlug: z147.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4925
+ projectKey: z147.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4926
+ repoSlug: z147.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4895
4927
  // Commit metadata
4896
- commitAuthorName: nullishToOptional(z146.string()),
4897
- commitAuthorEmail: nullishToOptional(z146.string()),
4928
+ commitAuthorName: nullishToOptional(z147.string()),
4929
+ commitAuthorEmail: nullishToOptional(z147.string()),
4898
4930
  // Location
4899
- branch: z146.string(),
4900
- relativePath: nullishToOptional(z146.string()),
4901
- purgeDirectory: nullishToOptional(z146.boolean()),
4931
+ branch: z147.string(),
4932
+ relativePath: nullishToOptional(z147.string()),
4933
+ purgeDirectory: nullishToOptional(z147.boolean()),
4902
4934
  // Legacy deprecated fields. Use `credentialId` instead
4903
- connectionId: nullishToOptional(z146.string()),
4904
- userId: nullishToOptional(z146.number())
4935
+ connectionId: nullishToOptional(z147.string()),
4936
+ userId: nullishToOptional(z147.number())
4905
4937
  });
4906
- var ExportDestinationsMap = z146.object({
4907
- webhookUrl: z146.string().optional(),
4938
+ var ExportDestinationsMap = z147.object({
4939
+ webhookUrl: z147.string().optional(),
4908
4940
  destinationSnDocs: ExporterDestinationDocs.optional(),
4909
4941
  destinationS3: ExporterDestinationS3.optional(),
4910
4942
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4914,114 +4946,114 @@ var ExportDestinationsMap = z146.object({
4914
4946
  });
4915
4947
 
4916
4948
  // src/export/pipeline.ts
4917
- var PipelineEventType = z147.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4918
- var PipelineDestinationGitType = z147.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4919
- var PipelineDestinationExtraType = z147.enum(["WebhookUrl", "S3", "Documentation"]);
4920
- var PipelineDestinationType = z147.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4921
- var Pipeline = z147.object({
4922
- id: z147.string(),
4923
- name: z147.string(),
4949
+ var PipelineEventType = z148.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4950
+ var PipelineDestinationGitType = z148.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4951
+ var PipelineDestinationExtraType = z148.enum(["WebhookUrl", "S3", "Documentation"]);
4952
+ var PipelineDestinationType = z148.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4953
+ var Pipeline = z148.object({
4954
+ id: z148.string(),
4955
+ name: z148.string(),
4924
4956
  eventType: PipelineEventType,
4925
- isEnabled: z147.boolean(),
4926
- workspaceId: z147.string(),
4927
- designSystemId: z147.string(),
4928
- exporterId: z147.string(),
4929
- brandPersistentId: z147.string().optional(),
4930
- themePersistentId: z147.string().optional(),
4931
- themePersistentIds: z147.string().array().optional(),
4957
+ isEnabled: z148.boolean(),
4958
+ workspaceId: z148.string(),
4959
+ designSystemId: z148.string(),
4960
+ exporterId: z148.string(),
4961
+ brandPersistentId: z148.string().optional(),
4962
+ themePersistentId: z148.string().optional(),
4963
+ themePersistentIds: z148.string().array().optional(),
4932
4964
  exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
4933
4965
  // Destinations
4934
4966
  ...ExportDestinationsMap.shape
4935
4967
  });
4936
4968
 
4937
4969
  // src/data-dumps/code-integration-dump.ts
4938
- var ExportJobDump = z148.object({
4939
- id: z148.string(),
4940
- createdAt: z148.coerce.date(),
4941
- finishedAt: z148.coerce.date(),
4942
- exportArtefacts: z148.string()
4970
+ var ExportJobDump = z149.object({
4971
+ id: z149.string(),
4972
+ createdAt: z149.coerce.date(),
4973
+ finishedAt: z149.coerce.date(),
4974
+ exportArtefacts: z149.string()
4943
4975
  });
4944
- var CodeIntegrationDump = z148.object({
4976
+ var CodeIntegrationDump = z149.object({
4945
4977
  exporters: Exporter.array(),
4946
4978
  pipelines: Pipeline.array(),
4947
4979
  exportJobs: ExportJobDump.array()
4948
4980
  });
4949
4981
 
4950
4982
  // src/data-dumps/design-system-dump.ts
4951
- import { z as z155 } from "zod";
4983
+ import { z as z156 } from "zod";
4952
4984
 
4953
4985
  // src/data-dumps/design-system-version-dump.ts
4954
- import { z as z154 } from "zod";
4986
+ import { z as z155 } from "zod";
4955
4987
 
4956
4988
  // src/liveblocks/rooms/design-system-version-room.ts
4957
- import { z as z149 } from "zod";
4989
+ import { z as z150 } from "zod";
4958
4990
  var DesignSystemVersionRoom = Entity.extend({
4959
- designSystemVersionId: z149.string(),
4960
- liveblocksId: z149.string()
4961
- });
4962
- var DesignSystemVersionRoomInternalSettings = z149.object({
4963
- routingVersion: z149.string(),
4964
- isDraftFeatureAdopted: z149.boolean(),
4965
- isApprovalFeatureEnabled: z149.boolean(),
4966
- approvalRequiredForPublishing: z149.boolean()
4967
- });
4968
- var DesignSystemVersionRoomInitialState = z149.object({
4969
- pages: z149.array(DocumentationPageV2),
4970
- groups: z149.array(ElementGroup),
4971
- pageSnapshots: z149.array(DocumentationPageSnapshot),
4972
- groupSnapshots: z149.array(ElementGroupSnapshot),
4973
- pageApprovals: z149.array(DocumentationPageApproval),
4991
+ designSystemVersionId: z150.string(),
4992
+ liveblocksId: z150.string()
4993
+ });
4994
+ var DesignSystemVersionRoomInternalSettings = z150.object({
4995
+ routingVersion: z150.string(),
4996
+ isDraftFeatureAdopted: z150.boolean(),
4997
+ isApprovalFeatureEnabled: z150.boolean(),
4998
+ approvalRequiredForPublishing: z150.boolean()
4999
+ });
5000
+ var DesignSystemVersionRoomInitialState = z150.object({
5001
+ pages: z150.array(DocumentationPageV2),
5002
+ groups: z150.array(ElementGroup),
5003
+ pageSnapshots: z150.array(DocumentationPageSnapshot),
5004
+ groupSnapshots: z150.array(ElementGroupSnapshot),
5005
+ pageApprovals: z150.array(DocumentationPageApproval),
4974
5006
  internalSettings: DesignSystemVersionRoomInternalSettings
4975
5007
  });
4976
- var DesignSystemVersionRoomUpdate = z149.object({
4977
- pages: z149.array(DocumentationPageV2),
4978
- groups: z149.array(ElementGroup),
4979
- pageIdsToDelete: z149.array(z149.string()),
4980
- groupIdsToDelete: z149.array(z149.string()),
4981
- pageSnapshots: z149.array(DocumentationPageSnapshot),
4982
- groupSnapshots: z149.array(ElementGroupSnapshot),
4983
- pageSnapshotIdsToDelete: z149.array(z149.string()),
4984
- groupSnapshotIdsToDelete: z149.array(z149.string()),
4985
- pageHashesToUpdate: z149.record(z149.string(), z149.string()),
4986
- pageApprovals: z149.array(DocumentationPageApproval),
4987
- pageApprovalIdsToDelete: z149.array(z149.string())
5008
+ var DesignSystemVersionRoomUpdate = z150.object({
5009
+ pages: z150.array(DocumentationPageV2),
5010
+ groups: z150.array(ElementGroup),
5011
+ pageIdsToDelete: z150.array(z150.string()),
5012
+ groupIdsToDelete: z150.array(z150.string()),
5013
+ pageSnapshots: z150.array(DocumentationPageSnapshot),
5014
+ groupSnapshots: z150.array(ElementGroupSnapshot),
5015
+ pageSnapshotIdsToDelete: z150.array(z150.string()),
5016
+ groupSnapshotIdsToDelete: z150.array(z150.string()),
5017
+ pageHashesToUpdate: z150.record(z150.string(), z150.string()),
5018
+ pageApprovals: z150.array(DocumentationPageApproval),
5019
+ pageApprovalIdsToDelete: z150.array(z150.string())
4988
5020
  });
4989
5021
 
4990
5022
  // src/liveblocks/rooms/documentation-page-room.ts
4991
- import { z as z150 } from "zod";
5023
+ import { z as z151 } from "zod";
4992
5024
  var DocumentationPageRoom = Entity.extend({
4993
- designSystemVersionId: z150.string(),
4994
- documentationPageId: z150.string(),
4995
- liveblocksId: z150.string(),
4996
- isDirty: z150.boolean()
5025
+ designSystemVersionId: z151.string(),
5026
+ documentationPageId: z151.string(),
5027
+ liveblocksId: z151.string(),
5028
+ isDirty: z151.boolean()
4997
5029
  });
4998
- var DocumentationPageRoomState = z150.object({
4999
- pageItems: z150.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5030
+ var DocumentationPageRoomState = z151.object({
5031
+ pageItems: z151.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5000
5032
  itemConfiguration: DocumentationItemConfigurationV2
5001
5033
  });
5002
- var DocumentationPageRoomRoomUpdate = z150.object({
5034
+ var DocumentationPageRoomRoomUpdate = z151.object({
5003
5035
  page: DocumentationPageV2,
5004
5036
  pageParent: ElementGroup
5005
5037
  });
5006
5038
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
5007
- pageItems: z150.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5008
- blockDefinitions: z150.array(PageBlockDefinition)
5039
+ pageItems: z151.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5040
+ blockDefinitions: z151.array(PageBlockDefinition)
5009
5041
  });
5010
- var RestoredDocumentationPage = z150.object({
5042
+ var RestoredDocumentationPage = z151.object({
5011
5043
  page: DocumentationPageV2,
5012
5044
  pageParent: ElementGroup,
5013
5045
  pageContent: DocumentationPageContentData,
5014
- contentHash: z150.string(),
5015
- snapshotId: z150.string(),
5016
- roomId: z150.string().optional()
5046
+ contentHash: z151.string(),
5047
+ snapshotId: z151.string(),
5048
+ roomId: z151.string().optional()
5017
5049
  });
5018
- var RestoredDocumentationGroup = z150.object({
5050
+ var RestoredDocumentationGroup = z151.object({
5019
5051
  group: ElementGroup,
5020
5052
  parent: ElementGroup
5021
5053
  });
5022
5054
 
5023
5055
  // src/liveblocks/rooms/room-type.ts
5024
- import { z as z151 } from "zod";
5056
+ import { z as z152 } from "zod";
5025
5057
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5026
5058
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
5027
5059
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -5029,36 +5061,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5029
5061
  RoomTypeEnum2["Workspace"] = "workspace";
5030
5062
  return RoomTypeEnum2;
5031
5063
  })(RoomTypeEnum || {});
5032
- var RoomTypeSchema = z151.nativeEnum(RoomTypeEnum);
5064
+ var RoomTypeSchema = z152.nativeEnum(RoomTypeEnum);
5033
5065
  var RoomType = RoomTypeSchema.enum;
5034
5066
 
5035
5067
  // src/liveblocks/rooms/workspace-room.ts
5036
- import { z as z152 } from "zod";
5068
+ import { z as z153 } from "zod";
5037
5069
  var WorkspaceRoom = Entity.extend({
5038
- workspaceId: z152.string(),
5039
- liveblocksId: z152.string()
5070
+ workspaceId: z153.string(),
5071
+ liveblocksId: z153.string()
5040
5072
  });
5041
5073
 
5042
5074
  // src/data-dumps/published-docs-dump.ts
5043
- import { z as z153 } from "zod";
5044
- var PublishedDocsDump = z153.object({
5075
+ import { z as z154 } from "zod";
5076
+ var PublishedDocsDump = z154.object({
5045
5077
  documentation: PublishedDoc,
5046
5078
  pages: PublishedDocPage.array()
5047
5079
  });
5048
5080
 
5049
5081
  // src/data-dumps/design-system-version-dump.ts
5050
- var DocumentationThreadDump = z154.object({
5082
+ var DocumentationThreadDump = z155.object({
5051
5083
  thread: DocumentationCommentThread,
5052
5084
  comments: DocumentationComment.array()
5053
5085
  });
5054
- var DocumentationPageRoomDump = z154.object({
5086
+ var DocumentationPageRoomDump = z155.object({
5055
5087
  room: DocumentationPageRoom,
5056
5088
  threads: DocumentationThreadDump.array()
5057
5089
  });
5058
- var DesignSystemVersionMultiplayerDump = z154.object({
5090
+ var DesignSystemVersionMultiplayerDump = z155.object({
5059
5091
  documentationPages: DocumentationPageRoomDump.array()
5060
5092
  });
5061
- var DesignSystemVersionDump = z154.object({
5093
+ var DesignSystemVersionDump = z155.object({
5062
5094
  version: DesignSystemVersion,
5063
5095
  brands: Brand.array(),
5064
5096
  elements: DesignElement.array(),
@@ -5073,7 +5105,7 @@ var DesignSystemVersionDump = z154.object({
5073
5105
  });
5074
5106
 
5075
5107
  // src/data-dumps/design-system-dump.ts
5076
- var DesignSystemDump = z155.object({
5108
+ var DesignSystemDump = z156.object({
5077
5109
  designSystem: DesignSystem,
5078
5110
  dataSources: DataSource.array(),
5079
5111
  versions: DesignSystemVersionDump.array(),
@@ -5082,50 +5114,50 @@ var DesignSystemDump = z155.object({
5082
5114
  });
5083
5115
 
5084
5116
  // src/data-dumps/user-data-dump.ts
5085
- import { z as z158 } from "zod";
5117
+ import { z as z159 } from "zod";
5086
5118
 
5087
5119
  // src/data-dumps/workspace-dump.ts
5088
- import { z as z157 } from "zod";
5120
+ import { z as z158 } from "zod";
5089
5121
 
5090
5122
  // src/integrations/integration.ts
5091
- import { z as z156 } from "zod";
5092
- var IntegrationDesignSystem = z156.object({
5093
- designSystemId: z156.string(),
5094
- brandId: z156.string(),
5095
- title: z156.string().optional(),
5096
- userId: z156.string().optional(),
5097
- date: z156.coerce.date().optional()
5098
- });
5099
- var IntegrationCredentialsType = z156.enum(["OAuth2", "PAT"]);
5100
- var IntegrationCredentialsState = z156.enum(["Active", "Inactive"]);
5101
- var IntegrationCredentialsProfile = z156.object({
5102
- id: nullishToOptional(z156.string()),
5103
- email: nullishToOptional(z156.string()),
5104
- handle: nullishToOptional(z156.string()),
5105
- type: nullishToOptional(z156.string()),
5106
- avatarUrl: nullishToOptional(z156.string()),
5107
- organization: nullishToOptional(z156.string()),
5108
- collection: nullishToOptional(z156.string())
5109
- });
5110
- var IntegrationCredentials = z156.object({
5111
- id: z156.string(),
5123
+ import { z as z157 } from "zod";
5124
+ var IntegrationDesignSystem = z157.object({
5125
+ designSystemId: z157.string(),
5126
+ brandId: z157.string(),
5127
+ title: z157.string().optional(),
5128
+ userId: z157.string().optional(),
5129
+ date: z157.coerce.date().optional()
5130
+ });
5131
+ var IntegrationCredentialsType = z157.enum(["OAuth2", "PAT"]);
5132
+ var IntegrationCredentialsState = z157.enum(["Active", "Inactive"]);
5133
+ var IntegrationCredentialsProfile = z157.object({
5134
+ id: nullishToOptional(z157.string()),
5135
+ email: nullishToOptional(z157.string()),
5136
+ handle: nullishToOptional(z157.string()),
5137
+ type: nullishToOptional(z157.string()),
5138
+ avatarUrl: nullishToOptional(z157.string()),
5139
+ organization: nullishToOptional(z157.string()),
5140
+ collection: nullishToOptional(z157.string())
5141
+ });
5142
+ var IntegrationCredentials = z157.object({
5143
+ id: z157.string(),
5112
5144
  type: IntegrationCredentialsType,
5113
- integrationId: z156.string(),
5114
- accessToken: z156.string(),
5115
- userId: z156.string(),
5116
- createdAt: z156.coerce.date(),
5117
- refreshToken: z156.string().optional(),
5118
- tokenName: z156.string().optional(),
5119
- expiresAt: z156.coerce.date().optional(),
5120
- refreshedAt: z156.coerce.date().optional(),
5121
- username: z156.string().optional(),
5122
- appInstallationId: z156.string().optional(),
5145
+ integrationId: z157.string(),
5146
+ accessToken: z157.string(),
5147
+ userId: z157.string(),
5148
+ createdAt: z157.coerce.date(),
5149
+ refreshToken: z157.string().optional(),
5150
+ tokenName: z157.string().optional(),
5151
+ expiresAt: z157.coerce.date().optional(),
5152
+ refreshedAt: z157.coerce.date().optional(),
5153
+ username: z157.string().optional(),
5154
+ appInstallationId: z157.string().optional(),
5123
5155
  profile: IntegrationCredentialsProfile.optional(),
5124
- customUrl: z156.string().optional(),
5156
+ customUrl: z157.string().optional(),
5125
5157
  state: IntegrationCredentialsState,
5126
5158
  user: UserMinified.optional()
5127
5159
  });
5128
- var ExtendedIntegrationType = z156.enum([
5160
+ var ExtendedIntegrationType = z157.enum([
5129
5161
  "Figma",
5130
5162
  "Github",
5131
5163
  "Gitlab",
@@ -5136,26 +5168,26 @@ var ExtendedIntegrationType = z156.enum([
5136
5168
  ]);
5137
5169
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5138
5170
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5139
- var Integration = z156.object({
5140
- id: z156.string(),
5141
- workspaceId: z156.string(),
5171
+ var Integration = z157.object({
5172
+ id: z157.string(),
5173
+ workspaceId: z157.string(),
5142
5174
  type: IntegrationType,
5143
- createdAt: z156.coerce.date(),
5144
- integrationCredentials: z156.array(IntegrationCredentials).optional()
5145
- });
5146
- var IntegrationToken = z156.object({
5147
- access_token: z156.string(),
5148
- refresh_token: z156.string().optional(),
5149
- expires_in: z156.union([z156.number().optional(), z156.string().optional()]),
5150
- token_type: z156.string().optional(),
5151
- token_name: z156.string().optional(),
5152
- token_azure_organization_name: z156.string().optional(),
5175
+ createdAt: z157.coerce.date(),
5176
+ integrationCredentials: z157.array(IntegrationCredentials).optional()
5177
+ });
5178
+ var IntegrationToken = z157.object({
5179
+ access_token: z157.string(),
5180
+ refresh_token: z157.string().optional(),
5181
+ expires_in: z157.union([z157.number().optional(), z157.string().optional()]),
5182
+ token_type: z157.string().optional(),
5183
+ token_name: z157.string().optional(),
5184
+ token_azure_organization_name: z157.string().optional(),
5153
5185
  // Azure Cloud PAT only
5154
- token_azure_collection_name: z156.string().optional(),
5186
+ token_azure_collection_name: z157.string().optional(),
5155
5187
  // Azure Server PAT only
5156
- token_bitbucket_username: z156.string().optional(),
5188
+ token_bitbucket_username: z157.string().optional(),
5157
5189
  // Bitbucket only
5158
- custom_url: z156.string().optional().transform((value) => {
5190
+ custom_url: z157.string().optional().transform((value) => {
5159
5191
  if (!value?.trim())
5160
5192
  return void 0;
5161
5193
  return formatCustomUrl(value);
@@ -5193,7 +5225,7 @@ function formatCustomUrl(url) {
5193
5225
  }
5194
5226
 
5195
5227
  // src/data-dumps/workspace-dump.ts
5196
- var WorkspaceDump = z157.object({
5228
+ var WorkspaceDump = z158.object({
5197
5229
  workspace: Workspace,
5198
5230
  designSystems: DesignSystemDump.array(),
5199
5231
  codeIntegration: CodeIntegrationDump,
@@ -5201,122 +5233,122 @@ var WorkspaceDump = z157.object({
5201
5233
  });
5202
5234
 
5203
5235
  // src/data-dumps/user-data-dump.ts
5204
- var UserDump = z158.object({
5236
+ var UserDump = z159.object({
5205
5237
  user: User,
5206
5238
  workspaces: WorkspaceDump.array()
5207
5239
  });
5208
5240
 
5209
5241
  // src/docs-server/session.ts
5210
- import { z as z159 } from "zod";
5211
- var NpmProxyToken = z159.object({
5212
- access: z159.string(),
5213
- expiresAt: z159.number()
5242
+ import { z as z160 } from "zod";
5243
+ var NpmProxyToken = z160.object({
5244
+ access: z160.string(),
5245
+ expiresAt: z160.number()
5214
5246
  });
5215
- var SessionData = z159.object({
5216
- returnToUrl: z159.string().optional(),
5247
+ var SessionData = z160.object({
5248
+ returnToUrl: z160.string().optional(),
5217
5249
  npmProxyToken: NpmProxyToken.optional()
5218
5250
  });
5219
- var Session = z159.object({
5220
- id: z159.string(),
5221
- expiresAt: z159.coerce.date(),
5222
- userId: z159.string().nullable(),
5251
+ var Session = z160.object({
5252
+ id: z160.string(),
5253
+ expiresAt: z160.coerce.date(),
5254
+ userId: z160.string().nullable(),
5223
5255
  data: SessionData
5224
5256
  });
5225
- var AuthTokens = z159.object({
5226
- access: z159.string(),
5227
- refresh: z159.string()
5257
+ var AuthTokens = z160.object({
5258
+ access: z160.string(),
5259
+ refresh: z160.string()
5228
5260
  });
5229
- var UserSession = z159.object({
5261
+ var UserSession = z160.object({
5230
5262
  session: Session,
5231
5263
  user: User.nullable()
5232
5264
  });
5233
5265
 
5234
5266
  // src/emails/design-system-invite.ts
5235
- import { z as z160 } from "zod";
5236
- var DesignSystemInviteEmailRecipient = z160.object({
5237
- email: z160.string(),
5267
+ import { z as z161 } from "zod";
5268
+ var DesignSystemInviteEmailRecipient = z161.object({
5269
+ email: z161.string(),
5238
5270
  role: WorkspaceRoleSchema
5239
5271
  });
5240
- var DesignSystemInviteEmailData = z160.object({
5272
+ var DesignSystemInviteEmailData = z161.object({
5241
5273
  workspace: Workspace,
5242
5274
  designSystem: DesignSystem,
5243
5275
  invitedBy: User,
5244
- documentationDomain: z160.string().optional()
5276
+ documentationDomain: z161.string().optional()
5245
5277
  });
5246
5278
 
5247
5279
  // src/emails/workspace-invite.ts
5248
- import { z as z161 } from "zod";
5249
- var WorkspaceInviteEmailRecipient = z161.object({
5250
- email: z161.string(),
5280
+ import { z as z162 } from "zod";
5281
+ var WorkspaceInviteEmailRecipient = z162.object({
5282
+ email: z162.string(),
5251
5283
  role: WorkspaceRoleSchema
5252
5284
  });
5253
- var WorkspaceInviteEmailData = z161.object({
5285
+ var WorkspaceInviteEmailData = z162.object({
5254
5286
  workspace: Workspace,
5255
5287
  invitedBy: User,
5256
- documentationDomain: z161.string().optional()
5288
+ documentationDomain: z162.string().optional()
5257
5289
  });
5258
5290
 
5259
5291
  // src/events/base.ts
5260
- import { z as z164 } from "zod";
5292
+ import { z as z165 } from "zod";
5261
5293
 
5262
5294
  // src/events/data-source-imported.ts
5263
- import { z as z162 } from "zod";
5264
- var EventDataSourceImported = z162.object({
5265
- type: z162.literal("DataSourceImported"),
5266
- workspaceId: z162.string(),
5267
- designSystemId: z162.string()
5295
+ import { z as z163 } from "zod";
5296
+ var EventDataSourceImported = z163.object({
5297
+ type: z163.literal("DataSourceImported"),
5298
+ workspaceId: z163.string(),
5299
+ designSystemId: z163.string()
5268
5300
  });
5269
5301
 
5270
5302
  // src/events/version-released.ts
5271
- import { z as z163 } from "zod";
5272
- var EventVersionReleased = z163.object({
5273
- type: z163.literal("DesignSystemVersionReleased"),
5274
- workspaceId: z163.string(),
5275
- designSystemId: z163.string(),
5276
- versionId: z163.string()
5303
+ import { z as z164 } from "zod";
5304
+ var EventVersionReleased = z164.object({
5305
+ type: z164.literal("DesignSystemVersionReleased"),
5306
+ workspaceId: z164.string(),
5307
+ designSystemId: z164.string(),
5308
+ versionId: z164.string()
5277
5309
  });
5278
5310
 
5279
5311
  // src/events/base.ts
5280
- var Event = z164.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5312
+ var Event = z165.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5281
5313
 
5282
5314
  // src/export/export-runner/export-context.ts
5283
- import { z as z165 } from "zod";
5284
- var ExportJobDocumentationContext = z165.object({
5285
- isSingleVersionDocs: z165.boolean(),
5286
- versionSlug: z165.string(),
5315
+ import { z as z166 } from "zod";
5316
+ var ExportJobDocumentationContext = z166.object({
5317
+ isSingleVersionDocs: z166.boolean(),
5318
+ versionSlug: z166.string(),
5287
5319
  environment: PublishedDocEnvironment
5288
5320
  });
5289
- var ExportJobContext = z165.object({
5290
- apiUrl: z165.string(),
5291
- accessToken: z165.string(),
5292
- designSystemId: z165.string(),
5293
- designSystemName: z165.string(),
5294
- exporterId: z165.string(),
5295
- versionId: z165.string(),
5296
- brandId: z165.string().optional(),
5297
- themeId: z165.string().optional(),
5298
- themePersistentIds: z165.string().array().optional(),
5299
- exporterName: z165.string(),
5321
+ var ExportJobContext = z166.object({
5322
+ apiUrl: z166.string(),
5323
+ accessToken: z166.string(),
5324
+ designSystemId: z166.string(),
5325
+ designSystemName: z166.string(),
5326
+ exporterId: z166.string(),
5327
+ versionId: z166.string(),
5328
+ brandId: z166.string().optional(),
5329
+ themeId: z166.string().optional(),
5330
+ themePersistentIds: z166.string().array().optional(),
5331
+ exporterName: z166.string(),
5300
5332
  documentation: ExportJobDocumentationContext.optional()
5301
5333
  });
5302
- var ExportJobExporterConfiguration = z165.object({
5303
- exporterPackageUrl: z165.string(),
5334
+ var ExportJobExporterConfiguration = z166.object({
5335
+ exporterPackageUrl: z166.string(),
5304
5336
  exporterPropertyValues: ExporterPropertyValue.array(),
5305
5337
  exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional()
5306
5338
  });
5307
5339
 
5308
5340
  // src/export/export-runner/exporter-payload.ts
5309
- import { z as z166 } from "zod";
5310
- var ExporterFunctionPayload = z166.object({
5311
- exportJobId: z166.string(),
5312
- exportContextId: z166.string(),
5313
- designSystemId: z166.string(),
5314
- workspaceId: z166.string()
5341
+ import { z as z167 } from "zod";
5342
+ var ExporterFunctionPayload = z167.object({
5343
+ exportJobId: z167.string(),
5344
+ exportContextId: z167.string(),
5345
+ designSystemId: z167.string(),
5346
+ workspaceId: z167.string()
5315
5347
  });
5316
5348
 
5317
5349
  // src/export/export-jobs.ts
5318
- import { z as z167 } from "zod";
5319
- var ExportJobDestinationType = z167.enum([
5350
+ import { z as z168 } from "zod";
5351
+ var ExportJobDestinationType = z168.enum([
5320
5352
  "s3",
5321
5353
  "webhookUrl",
5322
5354
  "github",
@@ -5325,30 +5357,30 @@ var ExportJobDestinationType = z167.enum([
5325
5357
  "gitlab",
5326
5358
  "bitbucket"
5327
5359
  ]);
5328
- var ExportJobStatus = z167.enum(["InProgress", "Success", "Failed", "Timeout"]);
5329
- var ExportJobLogEntryType = z167.enum(["success", "info", "warning", "error", "user"]);
5330
- var ExportJobLogEntry = z167.object({
5331
- id: z167.string().optional(),
5332
- time: z167.coerce.date(),
5360
+ var ExportJobStatus = z168.enum(["InProgress", "Success", "Failed", "Timeout"]);
5361
+ var ExportJobLogEntryType = z168.enum(["success", "info", "warning", "error", "user"]);
5362
+ var ExportJobLogEntry = z168.object({
5363
+ id: z168.string().optional(),
5364
+ time: z168.coerce.date(),
5333
5365
  type: ExportJobLogEntryType,
5334
- message: z167.string()
5366
+ message: z168.string()
5335
5367
  });
5336
- var ExportJobPullRequestDestinationResult = z167.object({
5337
- pullRequestUrl: z167.string()
5368
+ var ExportJobPullRequestDestinationResult = z168.object({
5369
+ pullRequestUrl: z168.string()
5338
5370
  });
5339
- var ExportJobS3DestinationResult = z167.object({
5340
- bucket: z167.string(),
5341
- urlPrefix: z167.string().optional(),
5342
- path: z167.string(),
5343
- files: z167.array(z167.string()),
5344
- url: nullishToOptional(z167.string()),
5345
- urls: nullishToOptional(z167.string().array())
5371
+ var ExportJobS3DestinationResult = z168.object({
5372
+ bucket: z168.string(),
5373
+ urlPrefix: z168.string().optional(),
5374
+ path: z168.string(),
5375
+ files: z168.array(z168.string()),
5376
+ url: nullishToOptional(z168.string()),
5377
+ urls: nullishToOptional(z168.string().array())
5346
5378
  });
5347
- var ExportJobDocsDestinationResult = z167.object({
5348
- url: z167.string()
5379
+ var ExportJobDocsDestinationResult = z168.object({
5380
+ url: z168.string()
5349
5381
  });
5350
- var ExportJobResult = z167.object({
5351
- error: z167.string().optional(),
5382
+ var ExportJobResult = z168.object({
5383
+ error: z168.string().optional(),
5352
5384
  s3: nullishToOptional(ExportJobS3DestinationResult),
5353
5385
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5354
5386
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5357,22 +5389,22 @@ var ExportJobResult = z167.object({
5357
5389
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5358
5390
  logs: nullishToOptional(ExportJobLogEntry.array())
5359
5391
  });
5360
- var ExportJob = z167.object({
5361
- id: z167.string(),
5362
- createdAt: z167.coerce.date(),
5363
- finishedAt: z167.coerce.date().optional(),
5364
- designSystemId: z167.string(),
5365
- designSystemVersionId: z167.string(),
5366
- workspaceId: z167.string(),
5367
- scheduleId: z167.string().nullish(),
5368
- exporterId: z167.string(),
5369
- brandId: z167.string().optional(),
5370
- themeId: z167.string().optional(),
5371
- themePersistentIds: z167.string().array().optional(),
5372
- estimatedExecutionTime: z167.number().optional(),
5392
+ var ExportJob = z168.object({
5393
+ id: z168.string(),
5394
+ createdAt: z168.coerce.date(),
5395
+ finishedAt: z168.coerce.date().optional(),
5396
+ designSystemId: z168.string(),
5397
+ designSystemVersionId: z168.string(),
5398
+ workspaceId: z168.string(),
5399
+ scheduleId: z168.string().nullish(),
5400
+ exporterId: z168.string(),
5401
+ brandId: z168.string().optional(),
5402
+ themeId: z168.string().optional(),
5403
+ themePersistentIds: z168.string().array().optional(),
5404
+ estimatedExecutionTime: z168.number().optional(),
5373
5405
  status: ExportJobStatus,
5374
5406
  result: ExportJobResult.optional(),
5375
- createdByUserId: z167.string().optional(),
5407
+ createdByUserId: z168.string().optional(),
5376
5408
  exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
5377
5409
  // Destinations
5378
5410
  ...ExportDestinationsMap.shape
@@ -5387,26 +5419,26 @@ var ExportJobFindByFilter = ExportJob.pick({
5387
5419
  themeId: true,
5388
5420
  brandId: true
5389
5421
  }).extend({
5390
- destinations: z167.array(ExportJobDestinationType),
5422
+ destinations: z168.array(ExportJobDestinationType),
5391
5423
  docsEnvironment: PublishedDocEnvironment
5392
5424
  }).partial();
5393
5425
 
5394
5426
  // src/export/exporter-workspace-membership-role.ts
5395
- import { z as z168 } from "zod";
5396
- var ExporterWorkspaceMembershipRole = z168.enum(["Owner", "OwnerArchived", "User"]);
5427
+ import { z as z169 } from "zod";
5428
+ var ExporterWorkspaceMembershipRole = z169.enum(["Owner", "OwnerArchived", "User"]);
5397
5429
 
5398
5430
  // src/export/exporter-workspace-membership.ts
5399
- import { z as z169 } from "zod";
5400
- var ExporterWorkspaceMembership = z169.object({
5401
- id: z169.string(),
5402
- workspaceId: z169.string(),
5403
- exporterId: z169.string(),
5431
+ import { z as z170 } from "zod";
5432
+ var ExporterWorkspaceMembership = z170.object({
5433
+ id: z170.string(),
5434
+ workspaceId: z170.string(),
5435
+ exporterId: z170.string(),
5404
5436
  role: ExporterWorkspaceMembershipRole
5405
5437
  });
5406
5438
 
5407
5439
  // src/feature-flags/feature-flags.ts
5408
- import { z as z170 } from "zod";
5409
- var FlaggedFeature = z170.enum([
5440
+ import { z as z171 } from "zod";
5441
+ var FlaggedFeature = z171.enum([
5410
5442
  "FigmaImporterV2",
5411
5443
  "ShadowOpacityOptional",
5412
5444
  "DisableImporter",
@@ -5416,20 +5448,20 @@ var FlaggedFeature = z170.enum([
5416
5448
  "ShadowPropsKeepAliases",
5417
5449
  "NonCompatibleTypeChanges"
5418
5450
  ]);
5419
- var FeatureFlagMap = z170.record(FlaggedFeature, z170.boolean());
5420
- var FeatureFlag = z170.object({
5421
- id: z170.string(),
5451
+ var FeatureFlagMap = z171.record(FlaggedFeature, z171.boolean());
5452
+ var FeatureFlag = z171.object({
5453
+ id: z171.string(),
5422
5454
  feature: FlaggedFeature,
5423
- createdAt: z170.coerce.date(),
5424
- enabled: z170.boolean(),
5425
- designSystemId: z170.string().optional()
5455
+ createdAt: z171.coerce.date(),
5456
+ enabled: z171.boolean(),
5457
+ designSystemId: z171.string().optional()
5426
5458
  });
5427
5459
 
5428
5460
  // src/integrations/external-oauth-request.ts
5429
- import { z as z172 } from "zod";
5461
+ import { z as z173 } from "zod";
5430
5462
 
5431
5463
  // src/integrations/oauth-providers.ts
5432
- import { z as z171 } from "zod";
5464
+ import { z as z172 } from "zod";
5433
5465
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5434
5466
  OAuthProviderNames2["Figma"] = "figma";
5435
5467
  OAuthProviderNames2["Azure"] = "azure";
@@ -5438,128 +5470,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5438
5470
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5439
5471
  return OAuthProviderNames2;
5440
5472
  })(OAuthProviderNames || {});
5441
- var OAuthProviderSchema = z171.nativeEnum(OAuthProviderNames);
5473
+ var OAuthProviderSchema = z172.nativeEnum(OAuthProviderNames);
5442
5474
  var OAuthProvider = OAuthProviderSchema.enum;
5443
5475
 
5444
5476
  // src/integrations/external-oauth-request.ts
5445
- var ExternalOAuthRequest = z172.object({
5446
- id: z172.string(),
5477
+ var ExternalOAuthRequest = z173.object({
5478
+ id: z173.string(),
5447
5479
  provider: OAuthProviderSchema,
5448
- userId: z172.string(),
5449
- state: z172.string(),
5450
- createdAt: z172.coerce.date()
5480
+ userId: z173.string(),
5481
+ state: z173.string(),
5482
+ createdAt: z173.coerce.date()
5451
5483
  });
5452
5484
 
5453
5485
  // src/integrations/git.ts
5454
- import { z as z173 } from "zod";
5455
- var GitObjectsQuery = z173.object({
5456
- organization: z173.string().optional(),
5486
+ import { z as z174 } from "zod";
5487
+ var GitObjectsQuery = z174.object({
5488
+ organization: z174.string().optional(),
5457
5489
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5458
- project: z173.string().optional(),
5490
+ project: z174.string().optional(),
5459
5491
  // Only for Bitbucket and Azure
5460
- repository: z173.string().optional(),
5492
+ repository: z174.string().optional(),
5461
5493
  // For all providers. For Gitlab, it's called "project".
5462
- branch: z173.string().optional(),
5494
+ branch: z174.string().optional(),
5463
5495
  // For all providers.
5464
- user: z173.string().optional()
5496
+ user: z174.string().optional()
5465
5497
  // Gitlab user
5466
5498
  });
5467
- var GitOrganization = z173.object({
5468
- id: z173.string(),
5469
- name: z173.string(),
5470
- url: z173.string(),
5471
- slug: z173.string()
5499
+ var GitOrganization = z174.object({
5500
+ id: z174.string(),
5501
+ name: z174.string(),
5502
+ url: z174.string(),
5503
+ slug: z174.string()
5472
5504
  });
5473
- var GitProject = z173.object({
5474
- id: z173.string(),
5475
- name: z173.string(),
5476
- url: z173.string(),
5477
- slug: z173.string()
5505
+ var GitProject = z174.object({
5506
+ id: z174.string(),
5507
+ name: z174.string(),
5508
+ url: z174.string(),
5509
+ slug: z174.string()
5478
5510
  });
5479
- var GitRepository = z173.object({
5480
- id: z173.string(),
5481
- name: z173.string(),
5482
- url: z173.string(),
5483
- slug: z173.string(),
5511
+ var GitRepository = z174.object({
5512
+ id: z174.string(),
5513
+ name: z174.string(),
5514
+ url: z174.string(),
5515
+ slug: z174.string(),
5484
5516
  /**
5485
5517
  * Can be undefined when:
5486
5518
  * - there are no branches in the repository yet
5487
5519
  * - Git provider doesn't expose this information on a repository via their API
5488
5520
  */
5489
- defaultBranch: z173.string().optional()
5521
+ defaultBranch: z174.string().optional()
5490
5522
  });
5491
- var GitBranch = z173.object({
5492
- name: z173.string(),
5493
- lastCommitId: z173.string()
5523
+ var GitBranch = z174.object({
5524
+ name: z174.string(),
5525
+ lastCommitId: z174.string()
5494
5526
  });
5495
5527
 
5496
5528
  // src/integrations/oauth-token.ts
5497
- import { z as z174 } from "zod";
5498
- var IntegrationTokenSchemaOld = z174.object({
5499
- id: z174.string(),
5529
+ import { z as z175 } from "zod";
5530
+ var IntegrationTokenSchemaOld = z175.object({
5531
+ id: z175.string(),
5500
5532
  provider: OAuthProviderSchema,
5501
- scope: z174.string(),
5502
- userId: z174.string(),
5503
- accessToken: z174.string(),
5504
- refreshToken: z174.string(),
5505
- expiresAt: z174.coerce.date(),
5506
- externalUserId: z174.string().nullish()
5533
+ scope: z175.string(),
5534
+ userId: z175.string(),
5535
+ accessToken: z175.string(),
5536
+ refreshToken: z175.string(),
5537
+ expiresAt: z175.coerce.date(),
5538
+ externalUserId: z175.string().nullish()
5507
5539
  });
5508
5540
 
5509
5541
  // src/integrations/workspace-oauth-requests.ts
5510
- import { z as z175 } from "zod";
5511
- var WorkspaceOAuthRequestSchema = z175.object({
5512
- id: z175.string(),
5513
- workspaceId: z175.string(),
5542
+ import { z as z176 } from "zod";
5543
+ var WorkspaceOAuthRequestSchema = z176.object({
5544
+ id: z176.string(),
5545
+ workspaceId: z176.string(),
5514
5546
  provider: OAuthProviderSchema,
5515
- userId: z175.string(),
5516
- createdAt: z175.coerce.date()
5547
+ userId: z176.string(),
5548
+ createdAt: z176.coerce.date()
5517
5549
  });
5518
5550
 
5519
5551
  // src/npm/npm-package.ts
5520
- import { z as z176 } from "zod";
5521
- var AnyRecord = z176.record(z176.any());
5552
+ import { z as z177 } from "zod";
5553
+ var AnyRecord = z177.record(z177.any());
5522
5554
  var NpmPackageVersionDist = AnyRecord.and(
5523
- z176.object({
5524
- tarball: z176.string()
5555
+ z177.object({
5556
+ tarball: z177.string()
5525
5557
  })
5526
5558
  );
5527
5559
  var NpmPackageVersion = AnyRecord.and(
5528
- z176.object({
5560
+ z177.object({
5529
5561
  dist: NpmPackageVersionDist
5530
5562
  })
5531
5563
  );
5532
5564
  var NpmPackage = AnyRecord.and(
5533
- z176.object({
5534
- _id: z176.string(),
5535
- name: z176.string(),
5565
+ z177.object({
5566
+ _id: z177.string(),
5567
+ name: z177.string(),
5536
5568
  // e.g. "latest": "1.2.3"
5537
- "dist-tags": z176.record(z176.string(), z176.string()),
5569
+ "dist-tags": z177.record(z177.string(), z177.string()),
5538
5570
  // "1.2.3": {...}
5539
- versions: z176.record(NpmPackageVersion)
5571
+ versions: z177.record(NpmPackageVersion)
5540
5572
  })
5541
5573
  );
5542
5574
 
5543
5575
  // src/npm/npm-proxy-token-payload.ts
5544
- import { z as z177 } from "zod";
5545
- var NpmProxyTokenPayload = z177.object({
5546
- npmProxyRegistryConfigId: z177.string()
5576
+ import { z as z178 } from "zod";
5577
+ var NpmProxyTokenPayload = z178.object({
5578
+ npmProxyRegistryConfigId: z178.string()
5547
5579
  });
5548
5580
 
5549
5581
  // src/tokens/personal-access-token.ts
5550
- import { z as z178 } from "zod";
5551
- var PersonalAccessToken = z178.object({
5552
- id: z178.string(),
5553
- userId: z178.string(),
5554
- workspaceId: z178.string().optional(),
5555
- designSystemId: z178.string().optional(),
5582
+ import { z as z179 } from "zod";
5583
+ var PersonalAccessToken = z179.object({
5584
+ id: z179.string(),
5585
+ userId: z179.string(),
5586
+ workspaceId: z179.string().optional(),
5587
+ designSystemId: z179.string().optional(),
5556
5588
  workspaceRole: WorkspaceRoleSchema.optional(),
5557
- name: z178.string(),
5558
- hidden: z178.boolean(),
5559
- token: z178.string(),
5560
- scope: z178.string().optional(),
5561
- createdAt: z178.coerce.date(),
5562
- expireAt: z178.coerce.date().optional()
5589
+ name: z179.string(),
5590
+ hidden: z179.boolean(),
5591
+ token: z179.string(),
5592
+ scope: z179.string().optional(),
5593
+ createdAt: z179.coerce.date(),
5594
+ expireAt: z179.coerce.date().optional()
5563
5595
  });
5564
5596
  export {
5565
5597
  Address,
@@ -5823,9 +5855,14 @@ export {
5823
5855
  FigmaImportContextWithSourcesState,
5824
5856
  FigmaNodeReference,
5825
5857
  FigmaNodeReferenceData,
5826
- FigmaNodeReferenceElementData,
5827
5858
  FigmaNodeReferenceOrigin,
5859
+ FigmaNodeRelinkData,
5860
+ FigmaNodeRenderError,
5861
+ FigmaNodeRenderErrorType,
5828
5862
  FigmaNodeRenderFormat,
5863
+ FigmaNodeRenderState,
5864
+ FigmaNodeRenderedImage,
5865
+ FigmaNodeRendererPayload,
5829
5866
  FigmaPngRenderImportModel,
5830
5867
  FigmaRenderFormat,
5831
5868
  FigmaRenderImportModel,
@@ -6198,6 +6235,7 @@ export {
6198
6235
  ZIndexUnit,
6199
6236
  ZIndexValue,
6200
6237
  addImportModelCollections,
6238
+ applyShallowObjectUpdate,
6201
6239
  areShallowObjectsEqual,
6202
6240
  areTokenTypesCompatible,
6203
6241
  buildConstantEnum,
@@ -6219,6 +6257,7 @@ export {
6219
6257
  getCodenameFromText,
6220
6258
  getFigmaRenderFormatFileExtension,
6221
6259
  groupBy,
6260
+ isDataSourceOfType,
6222
6261
  isDesignTokenImportModelOfType,
6223
6262
  isDesignTokenOfType,
6224
6263
  isImportedAsset,