@supernova-studio/model 1.5.1 → 1.5.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
@@ -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 z157 } from "zod";
290
+ import { z as z158 } from "zod";
291
291
 
292
292
  // src/export/exporter.ts
293
293
  import { z as z18 } from "zod";
@@ -462,10 +462,10 @@ var Exporter = z18.object({
462
462
  });
463
463
 
464
464
  // src/export/pipeline.ts
465
- import { z as z156 } from "zod";
465
+ import { z as z157 } from "zod";
466
466
 
467
467
  // src/export/export-destinations.ts
468
- import { z as z155 } from "zod";
468
+ import { z as z156 } from "zod";
469
469
 
470
470
  // src/dsm/assets/asset-dynamo-record.ts
471
471
  import { z as z19 } from "zod";
@@ -4381,7 +4381,7 @@ var FigmaNodeStructureV2 = z122.object({
4381
4381
  });
4382
4382
 
4383
4383
  // src/dsm/membership/design-system-membership.ts
4384
- import { z as z143 } from "zod";
4384
+ import { z as z144 } from "zod";
4385
4385
 
4386
4386
  // src/workspace/npm-registry-settings.ts
4387
4387
  import { z as z123 } from "zod";
@@ -4433,69 +4433,79 @@ var SsoProvider = z124.object({
4433
4433
  metadataXml: z124.string().nullish()
4434
4434
  });
4435
4435
 
4436
+ // src/workspace/untyped-data.ts
4437
+ import { z as z125 } from "zod";
4438
+ var WorkspaceUntypedData = z125.object({
4439
+ id: z125.string(),
4440
+ workspaceId: z125.string(),
4441
+ value: z125.unknown(),
4442
+ createdAt: z125.coerce.date(),
4443
+ updatedAt: z125.coerce.date()
4444
+ });
4445
+
4436
4446
  // src/workspace/user-invite.ts
4437
- import { z as z126 } from "zod";
4447
+ import { z as z127 } from "zod";
4438
4448
 
4439
4449
  // src/workspace/workspace-role.ts
4440
- import { z as z125 } from "zod";
4441
- var WorkspaceRoleSchema = z125.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4450
+ import { z as z126 } from "zod";
4451
+ var WorkspaceRoleSchema = z126.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4442
4452
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4443
4453
 
4444
4454
  // src/workspace/user-invite.ts
4445
4455
  var MAX_MEMBERS_COUNT = 100;
4446
- var UserInvite = z126.object({
4447
- email: z126.string().email().trim().transform((value) => value.toLowerCase()),
4456
+ var UserInvite = z127.object({
4457
+ email: z127.string().email().trim().transform((value) => value.toLowerCase()),
4448
4458
  role: WorkspaceRoleSchema
4449
4459
  });
4450
- var UserInvites = z126.array(UserInvite).max(MAX_MEMBERS_COUNT);
4460
+ var UserInvites = z127.array(UserInvite).max(MAX_MEMBERS_COUNT);
4451
4461
 
4452
4462
  // src/workspace/workspace-configuration.ts
4453
- import { z as z128 } from "zod";
4463
+ import { z as z129 } from "zod";
4454
4464
 
4455
4465
  // src/workspace/workspace.ts
4456
4466
  import IPCIDR from "ip-cidr";
4457
- import { z as z127 } from "zod";
4467
+ import { z as z128 } from "zod";
4458
4468
  var isValidCIDR = (value) => {
4459
4469
  return IPCIDR.isValidAddress(value);
4460
4470
  };
4461
- var WorkspaceIpWhitelistEntry = z127.object({
4462
- isEnabled: z127.boolean(),
4463
- name: z127.string(),
4464
- range: z127.string().refine(isValidCIDR, {
4471
+ var WorkspaceIpWhitelistEntry = z128.object({
4472
+ isEnabled: z128.boolean(),
4473
+ name: z128.string(),
4474
+ range: z128.string().refine(isValidCIDR, {
4465
4475
  message: "Invalid IP CIDR"
4466
4476
  })
4467
4477
  });
4468
- var WorkspaceIpSettings = z127.object({
4469
- isEnabledForCloud: z127.boolean(),
4470
- isEnabledForDocs: z127.boolean(),
4471
- entries: z127.array(WorkspaceIpWhitelistEntry)
4478
+ var WorkspaceIpSettings = z128.object({
4479
+ isEnabledForCloud: z128.boolean(),
4480
+ isEnabledForDocs: z128.boolean(),
4481
+ entries: z128.array(WorkspaceIpWhitelistEntry)
4472
4482
  });
4473
- var WorkspaceProfile = z127.object({
4474
- name: z127.string(),
4475
- handle: z127.string(),
4476
- color: z127.string(),
4477
- avatar: nullishToOptional(z127.string()),
4483
+ var WorkspaceProfile = z128.object({
4484
+ name: z128.string(),
4485
+ handle: z128.string(),
4486
+ color: z128.string(),
4487
+ avatar: nullishToOptional(z128.string()),
4478
4488
  billingDetails: nullishToOptional(BillingDetails)
4479
4489
  });
4480
4490
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4481
4491
  avatar: true
4482
4492
  });
4483
- var Workspace = z127.object({
4484
- id: z127.string(),
4493
+ var Workspace = z128.object({
4494
+ id: z128.string(),
4485
4495
  profile: WorkspaceProfile,
4486
4496
  subscription: Subscription,
4487
4497
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4488
4498
  sso: nullishToOptional(SsoProvider),
4489
4499
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4490
4500
  });
4491
- var WorkspaceWithDesignSystems = z127.object({
4501
+ var WorkspaceWithDesignSystems = z128.object({
4492
4502
  workspace: Workspace,
4493
- designSystems: z127.array(DesignSystem)
4503
+ designSystems: z128.array(DesignSystem)
4494
4504
  });
4495
4505
 
4496
4506
  // src/workspace/workspace-configuration.ts
4497
- var WorkspaceConfigurationUpdate = z128.object({
4498
- id: z128.string(),
4507
+ var WorkspaceConfigurationUpdate = z129.object({
4508
+ id: z129.string(),
4499
4509
  ipWhitelist: WorkspaceIpSettings.optional(),
4500
4510
  sso: SsoProvider.optional(),
4501
4511
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -4503,59 +4513,59 @@ var WorkspaceConfigurationUpdate = z128.object({
4503
4513
  });
4504
4514
 
4505
4515
  // src/workspace/workspace-context.ts
4506
- import { z as z129 } from "zod";
4507
- var WorkspaceContext = z129.object({
4508
- workspaceId: z129.string(),
4516
+ import { z as z130 } from "zod";
4517
+ var WorkspaceContext = z130.object({
4518
+ workspaceId: z130.string(),
4509
4519
  product: ProductCodeSchema,
4510
4520
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4511
- publicDesignSystem: z129.boolean().optional()
4521
+ publicDesignSystem: z130.boolean().optional()
4512
4522
  });
4513
4523
 
4514
4524
  // src/workspace/workspace-create.ts
4515
- import { z as z130 } from "zod";
4525
+ import { z as z131 } from "zod";
4516
4526
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4517
4527
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4518
4528
  var HANDLE_MIN_LENGTH = 2;
4519
4529
  var HANDLE_MAX_LENGTH = 64;
4520
- var CreateWorkspaceInput = z130.object({
4521
- name: z130.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4522
- handle: z130.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4530
+ var CreateWorkspaceInput = z131.object({
4531
+ name: z131.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4532
+ handle: z131.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4523
4533
  });
4524
4534
 
4525
4535
  // src/workspace/workspace-invitations.ts
4526
- import { z as z131 } from "zod";
4527
- var WorkspaceInvitation = z131.object({
4528
- id: z131.string(),
4529
- email: z131.string().email(),
4530
- createdAt: z131.coerce.date(),
4531
- resentAt: z131.coerce.date().nullish(),
4532
- role: z131.nativeEnum(WorkspaceRole),
4533
- workspaceId: z131.string(),
4534
- invitedBy: z131.string()
4536
+ import { z as z132 } from "zod";
4537
+ var WorkspaceInvitation = z132.object({
4538
+ id: z132.string(),
4539
+ email: z132.string().email(),
4540
+ createdAt: z132.coerce.date(),
4541
+ resentAt: z132.coerce.date().nullish(),
4542
+ role: z132.nativeEnum(WorkspaceRole),
4543
+ workspaceId: z132.string(),
4544
+ invitedBy: z132.string()
4535
4545
  });
4536
4546
 
4537
4547
  // src/workspace/workspace-membership.ts
4538
- import { z as z140 } from "zod";
4548
+ import { z as z141 } from "zod";
4539
4549
 
4540
4550
  // src/users/linked-integrations.ts
4541
- import { z as z132 } from "zod";
4542
- var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
4543
- var ExternalServiceType = z132.union([
4544
- z132.literal("figma"),
4545
- z132.literal("github"),
4546
- z132.literal("azure"),
4547
- z132.literal("gitlab"),
4548
- z132.literal("bitbucket")
4551
+ import { z as z133 } from "zod";
4552
+ var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
4553
+ var ExternalServiceType = z133.union([
4554
+ z133.literal("figma"),
4555
+ z133.literal("github"),
4556
+ z133.literal("azure"),
4557
+ z133.literal("gitlab"),
4558
+ z133.literal("bitbucket")
4549
4559
  ]);
4550
- var IntegrationUserInfo = z132.object({
4551
- id: z132.string(),
4552
- handle: z132.string().optional(),
4553
- avatarUrl: z132.string().optional(),
4554
- email: z132.string().optional(),
4560
+ var IntegrationUserInfo = z133.object({
4561
+ id: z133.string(),
4562
+ handle: z133.string().optional(),
4563
+ avatarUrl: z133.string().optional(),
4564
+ email: z133.string().optional(),
4555
4565
  authType: IntegrationAuthType.optional(),
4556
- customUrl: z132.string().optional()
4566
+ customUrl: z133.string().optional()
4557
4567
  });
4558
- var UserLinkedIntegrations = z132.object({
4568
+ var UserLinkedIntegrations = z133.object({
4559
4569
  figma: IntegrationUserInfo.optional(),
4560
4570
  github: IntegrationUserInfo.array().optional(),
4561
4571
  azure: IntegrationUserInfo.array().optional(),
@@ -4564,38 +4574,38 @@ var UserLinkedIntegrations = z132.object({
4564
4574
  });
4565
4575
 
4566
4576
  // src/users/user-analytics-cleanup-schedule.ts
4567
- import { z as z133 } from "zod";
4568
- var UserAnalyticsCleanupSchedule = z133.object({
4569
- userId: z133.string(),
4570
- createdAt: z133.coerce.date(),
4571
- deleteAt: z133.coerce.date()
4577
+ import { z as z134 } from "zod";
4578
+ var UserAnalyticsCleanupSchedule = z134.object({
4579
+ userId: z134.string(),
4580
+ createdAt: z134.coerce.date(),
4581
+ deleteAt: z134.coerce.date()
4572
4582
  });
4573
4583
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4574
4584
  createdAt: true
4575
4585
  });
4576
4586
 
4577
4587
  // src/users/user-identity.ts
4578
- import { z as z134 } from "zod";
4579
- var UserIdentity = z134.object({
4580
- id: z134.string(),
4581
- userId: z134.string()
4588
+ import { z as z135 } from "zod";
4589
+ var UserIdentity = z135.object({
4590
+ id: z135.string(),
4591
+ userId: z135.string()
4582
4592
  });
4583
4593
 
4584
4594
  // src/users/user-minified.ts
4585
- import { z as z135 } from "zod";
4586
- var UserMinified = z135.object({
4587
- id: z135.string(),
4588
- name: z135.string(),
4589
- email: z135.string(),
4590
- avatar: z135.string().optional()
4595
+ import { z as z136 } from "zod";
4596
+ var UserMinified = z136.object({
4597
+ id: z136.string(),
4598
+ name: z136.string(),
4599
+ email: z136.string(),
4600
+ avatar: z136.string().optional()
4591
4601
  });
4592
4602
 
4593
4603
  // src/users/user-notification-settings.ts
4594
- import { z as z136 } from "zod";
4595
- var LiveblocksNotificationSettings = z136.object({
4596
- sendCommentNotificationEmails: z136.boolean()
4604
+ import { z as z137 } from "zod";
4605
+ var LiveblocksNotificationSettings = z137.object({
4606
+ sendCommentNotificationEmails: z137.boolean()
4597
4607
  });
4598
- var UserNotificationSettings = z136.object({
4608
+ var UserNotificationSettings = z137.object({
4599
4609
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4600
4610
  });
4601
4611
  var defaultNotificationSettings = {
@@ -4605,11 +4615,11 @@ var defaultNotificationSettings = {
4605
4615
  };
4606
4616
 
4607
4617
  // src/users/user-profile.ts
4608
- import { z as z137 } from "zod";
4609
- var UserOnboardingDepartment = z137.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4610
- var UserOnboardingJobLevel = z137.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4611
- var UserTheme = z137.object({
4612
- preset: z137.enum([
4618
+ import { z as z138 } from "zod";
4619
+ var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4620
+ var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4621
+ var UserTheme = z138.object({
4622
+ preset: z138.enum([
4613
4623
  "Custom",
4614
4624
  "Default",
4615
4625
  "HighContrast",
@@ -4620,32 +4630,32 @@ var UserTheme = z137.object({
4620
4630
  "SystemPreference",
4621
4631
  "Sepia"
4622
4632
  ]).optional(),
4623
- backgroundColor: z137.string().optional(),
4624
- accentColor: z137.string().optional(),
4625
- contrast: z137.number().min(16).max(100).optional(),
4626
- isSecondaryEnabled: z137.boolean().optional(),
4627
- secondaryBackgroundColor: z137.string().optional(),
4628
- secondaryContrast: z137.number().min(16).max(100).optional(),
4629
- isEditorWhite: z137.boolean().optional()
4630
- });
4631
- var UserOnboarding = z137.object({
4632
- companyName: z137.string().optional(),
4633
- numberOfPeopleInOrg: z137.string().optional(),
4634
- numberOfPeopleInDesignTeam: z137.string().optional(),
4633
+ backgroundColor: z138.string().optional(),
4634
+ accentColor: z138.string().optional(),
4635
+ contrast: z138.number().min(16).max(100).optional(),
4636
+ isSecondaryEnabled: z138.boolean().optional(),
4637
+ secondaryBackgroundColor: z138.string().optional(),
4638
+ secondaryContrast: z138.number().min(16).max(100).optional(),
4639
+ isEditorWhite: z138.boolean().optional()
4640
+ });
4641
+ var UserOnboarding = z138.object({
4642
+ companyName: z138.string().optional(),
4643
+ numberOfPeopleInOrg: z138.string().optional(),
4644
+ numberOfPeopleInDesignTeam: z138.string().optional(),
4635
4645
  department: UserOnboardingDepartment.optional(),
4636
- jobTitle: z137.string().optional(),
4637
- phase: z137.string().optional(),
4646
+ jobTitle: z138.string().optional(),
4647
+ phase: z138.string().optional(),
4638
4648
  jobLevel: UserOnboardingJobLevel.optional(),
4639
- designSystemName: z137.string().optional(),
4640
- defaultDestination: z137.string().optional(),
4641
- figmaUrl: z137.string().optional(),
4642
- isPageDraftOnboardingFinished: z137.boolean().optional(),
4643
- isApprovalsOnboardingFinished: z137.boolean().optional()
4644
- });
4645
- var UserProfile = z137.object({
4646
- name: z137.string(),
4647
- avatar: z137.string().optional(),
4648
- nickname: z137.string().optional(),
4649
+ designSystemName: z138.string().optional(),
4650
+ defaultDestination: z138.string().optional(),
4651
+ figmaUrl: z138.string().optional(),
4652
+ isPageDraftOnboardingFinished: z138.boolean().optional(),
4653
+ isApprovalsOnboardingFinished: z138.boolean().optional()
4654
+ });
4655
+ var UserProfile = z138.object({
4656
+ name: z138.string(),
4657
+ avatar: z138.string().optional(),
4658
+ nickname: z138.string().optional(),
4649
4659
  onboarding: UserOnboarding.optional(),
4650
4660
  theme: UserTheme.optional()
4651
4661
  });
@@ -4654,47 +4664,47 @@ var UserProfileUpdate = UserProfile.partial().omit({
4654
4664
  });
4655
4665
 
4656
4666
  // src/users/user-test.ts
4657
- import { z as z138 } from "zod";
4658
- var UserTest = z138.object({
4659
- id: z138.string(),
4660
- email: z138.string()
4667
+ import { z as z139 } from "zod";
4668
+ var UserTest = z139.object({
4669
+ id: z139.string(),
4670
+ email: z139.string()
4661
4671
  });
4662
4672
 
4663
4673
  // src/users/user.ts
4664
- import { z as z139 } from "zod";
4665
- var UserSource = z139.enum(["SignUp", "Invite", "SSO"]);
4666
- var User = z139.object({
4667
- id: z139.string(),
4668
- email: z139.string(),
4669
- createdAt: z139.coerce.date(),
4674
+ import { z as z140 } from "zod";
4675
+ var UserSource = z140.enum(["SignUp", "Invite", "SSO"]);
4676
+ var User = z140.object({
4677
+ id: z140.string(),
4678
+ email: z140.string(),
4679
+ createdAt: z140.coerce.date(),
4670
4680
  profile: UserProfile,
4671
- loggedOutAt: z139.coerce.date().optional(),
4672
- isProtected: z139.boolean(),
4681
+ loggedOutAt: z140.coerce.date().optional(),
4682
+ isProtected: z140.boolean(),
4673
4683
  source: UserSource.optional()
4674
4684
  });
4675
4685
 
4676
4686
  // src/workspace/workspace-membership.ts
4677
- var WorkspaceMembership = z140.object({
4678
- id: z140.string(),
4679
- userId: z140.string(),
4680
- workspaceId: z140.string(),
4681
- workspaceRole: z140.nativeEnum(WorkspaceRole),
4687
+ var WorkspaceMembership = z141.object({
4688
+ id: z141.string(),
4689
+ userId: z141.string(),
4690
+ workspaceId: z141.string(),
4691
+ workspaceRole: z141.nativeEnum(WorkspaceRole),
4682
4692
  notificationSettings: UserNotificationSettings,
4683
- isPrimaryOwner: z140.boolean().nullish()
4684
- });
4685
- var UpdateMembershipRolesInput = z140.object({
4686
- members: z140.array(
4687
- z140.object({
4688
- userId: z140.string(),
4689
- role: z140.nativeEnum(WorkspaceRole),
4690
- isPrimaryOwner: z140.boolean().optional()
4693
+ isPrimaryOwner: z141.boolean().nullish()
4694
+ });
4695
+ var UpdateMembershipRolesInput = z141.object({
4696
+ members: z141.array(
4697
+ z141.object({
4698
+ userId: z141.string(),
4699
+ role: z141.nativeEnum(WorkspaceRole),
4700
+ isPrimaryOwner: z141.boolean().optional()
4691
4701
  })
4692
4702
  )
4693
4703
  });
4694
4704
 
4695
4705
  // src/dsm/membership/ds-role.ts
4696
- import { z as z141 } from "zod";
4697
- var DesignSystemRole = z141.enum([
4706
+ import { z as z142 } from "zod";
4707
+ var DesignSystemRole = z142.enum([
4698
4708
  WorkspaceRole.Admin,
4699
4709
  WorkspaceRole.Contributor,
4700
4710
  WorkspaceRole.Creator,
@@ -4718,46 +4728,46 @@ function workspaceRoleToDesignSystemRole(role) {
4718
4728
  }
4719
4729
 
4720
4730
  // src/dsm/membership/invitations.ts
4721
- import { z as z142 } from "zod";
4722
- var DesignSystemInvitation = z142.object({
4723
- id: z142.string(),
4724
- designSystemId: z142.string(),
4725
- workspaceInvitationId: z142.string(),
4731
+ import { z as z143 } from "zod";
4732
+ var DesignSystemInvitation = z143.object({
4733
+ id: z143.string(),
4734
+ designSystemId: z143.string(),
4735
+ workspaceInvitationId: z143.string(),
4726
4736
  designSystemRole: DesignSystemRole.optional(),
4727
4737
  workspaceRole: WorkspaceRoleSchema
4728
4738
  });
4729
4739
 
4730
4740
  // src/dsm/membership/design-system-membership.ts
4731
- var DesignSystemMembership = z143.object({
4732
- id: z143.string(),
4733
- userId: z143.string(),
4734
- designSystemId: z143.string(),
4741
+ var DesignSystemMembership = z144.object({
4742
+ id: z144.string(),
4743
+ userId: z144.string(),
4744
+ designSystemId: z144.string(),
4735
4745
  designSystemRole: DesignSystemRole.optional(),
4736
- workspaceMembershipId: z143.string(),
4746
+ workspaceMembershipId: z144.string(),
4737
4747
  workspaceRole: WorkspaceRoleSchema
4738
4748
  });
4739
- var DesignSystemMembers = z143.object({
4749
+ var DesignSystemMembers = z144.object({
4740
4750
  members: DesignSystemMembership.array(),
4741
4751
  invitations: DesignSystemInvitation.array()
4742
4752
  });
4743
- var DesignSystemPendingMemberInvitation = z143.object({
4744
- inviteId: z143.string(),
4753
+ var DesignSystemPendingMemberInvitation = z144.object({
4754
+ inviteId: z144.string(),
4745
4755
  /**
4746
4756
  * Role that the user will have in the design system, undefined
4747
4757
  * if it should be inherited from the workspace
4748
4758
  */
4749
4759
  designSystemRole: DesignSystemRole.optional()
4750
4760
  });
4751
- var DesignSystemUserInvitation = z143.object({
4752
- userId: z143.string(),
4761
+ var DesignSystemUserInvitation = z144.object({
4762
+ userId: z144.string(),
4753
4763
  /**
4754
4764
  * Role that the user will have in the design system, undefined
4755
4765
  * if it should be inherited from the workspace
4756
4766
  */
4757
4767
  designSystemRole: DesignSystemRole.optional()
4758
4768
  });
4759
- var DesignSystemInvite = z143.object({
4760
- email: z143.string(),
4769
+ var DesignSystemInvite = z144.object({
4770
+ email: z144.string(),
4761
4771
  workspaceRole: WorkspaceRoleSchema,
4762
4772
  /**
4763
4773
  * Role that the user will have in the design system, undefined
@@ -4765,318 +4775,318 @@ var DesignSystemInvite = z143.object({
4765
4775
  */
4766
4776
  designSystemRole: DesignSystemRole.optional()
4767
4777
  });
4768
- var DesignSystemMemberUpdate = z143.object({
4769
- userId: z143.string(),
4778
+ var DesignSystemMemberUpdate = z144.object({
4779
+ userId: z144.string(),
4770
4780
  designSystemRole: DesignSystemRole.nullable()
4771
4781
  });
4772
- var DesignSystemInviteUpdate = z143.object({
4782
+ var DesignSystemInviteUpdate = z144.object({
4773
4783
  /**
4774
4784
  * Workspace invitation id
4775
4785
  */
4776
- inviteId: z143.string(),
4786
+ inviteId: z144.string(),
4777
4787
  designSystemRole: DesignSystemRole.nullable()
4778
4788
  });
4779
- var DesignSystemMembershipUpdates = z143.object({
4789
+ var DesignSystemMembershipUpdates = z144.object({
4780
4790
  usersToInvite: DesignSystemUserInvitation.array().optional(),
4781
4791
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
4782
4792
  emailsToInvite: DesignSystemInvite.array().optional(),
4783
4793
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
4784
4794
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
4785
- removeUserIds: z143.string().array().optional(),
4786
- deleteInvitationIds: z143.string().array().optional()
4795
+ removeUserIds: z144.string().array().optional(),
4796
+ deleteInvitationIds: z144.string().array().optional()
4787
4797
  });
4788
4798
 
4789
4799
  // src/dsm/views/column.ts
4790
- import { z as z144 } from "zod";
4791
- var ElementViewBaseColumnType = z144.enum(["Name", "Description", "Value", "UpdatedAt"]);
4792
- var ElementViewColumnType = z144.union([
4793
- z144.literal("BaseProperty"),
4794
- z144.literal("PropertyDefinition"),
4795
- z144.literal("Theme")
4800
+ import { z as z145 } from "zod";
4801
+ var ElementViewBaseColumnType = z145.enum(["Name", "Description", "Value", "UpdatedAt"]);
4802
+ var ElementViewColumnType = z145.union([
4803
+ z145.literal("BaseProperty"),
4804
+ z145.literal("PropertyDefinition"),
4805
+ z145.literal("Theme")
4796
4806
  ]);
4797
- var ElementViewColumnSharedAttributes = z144.object({
4798
- id: z144.string(),
4799
- persistentId: z144.string(),
4800
- elementDataViewId: z144.string(),
4801
- sortPosition: z144.number(),
4802
- width: z144.number()
4807
+ var ElementViewColumnSharedAttributes = z145.object({
4808
+ id: z145.string(),
4809
+ persistentId: z145.string(),
4810
+ elementDataViewId: z145.string(),
4811
+ sortPosition: z145.number(),
4812
+ width: z145.number()
4803
4813
  });
4804
4814
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
4805
- type: z144.literal("BaseProperty"),
4815
+ type: z145.literal("BaseProperty"),
4806
4816
  basePropertyType: ElementViewBaseColumnType
4807
4817
  });
4808
4818
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4809
- type: z144.literal("PropertyDefinition"),
4810
- propertyDefinitionId: z144.string()
4819
+ type: z145.literal("PropertyDefinition"),
4820
+ propertyDefinitionId: z145.string()
4811
4821
  });
4812
4822
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4813
- type: z144.literal("Theme"),
4814
- themeId: z144.string()
4823
+ type: z145.literal("Theme"),
4824
+ themeId: z145.string()
4815
4825
  });
4816
- var ElementViewColumn = z144.discriminatedUnion("type", [
4826
+ var ElementViewColumn = z145.discriminatedUnion("type", [
4817
4827
  ElementViewBasePropertyColumn,
4818
4828
  ElementViewPropertyDefinitionColumn,
4819
4829
  ElementViewThemeColumn
4820
4830
  ]);
4821
4831
 
4822
4832
  // src/dsm/views/view.ts
4823
- import { z as z145 } from "zod";
4824
- var ElementView = z145.object({
4825
- id: z145.string(),
4826
- persistentId: z145.string(),
4827
- designSystemVersionId: z145.string(),
4828
- name: z145.string(),
4829
- description: z145.string(),
4830
- targetElementType: ElementPropertyTargetType,
4831
- isDefault: z145.boolean()
4832
- });
4833
-
4834
- // src/dsm/brand.ts
4835
4833
  import { z as z146 } from "zod";
4836
- var Brand = z146.object({
4834
+ var ElementView = z146.object({
4837
4835
  id: z146.string(),
4838
- designSystemVersionId: z146.string(),
4839
4836
  persistentId: z146.string(),
4837
+ designSystemVersionId: z146.string(),
4840
4838
  name: z146.string(),
4841
- description: z146.string()
4839
+ description: z146.string(),
4840
+ targetElementType: ElementPropertyTargetType,
4841
+ isDefault: z146.boolean()
4842
4842
  });
4843
4843
 
4844
- // src/dsm/design-system.ts
4844
+ // src/dsm/brand.ts
4845
4845
  import { z as z147 } from "zod";
4846
- var DesignSystemAccessMode = z147.enum(["Open", "InviteOnly"]);
4847
- var DesignSystemSwitcher = z147.object({
4848
- isEnabled: z147.boolean(),
4849
- designSystemIds: z147.array(z147.string())
4850
- });
4851
- var DesignSystem = z147.object({
4846
+ var Brand = z147.object({
4852
4847
  id: z147.string(),
4853
- workspaceId: z147.string(),
4848
+ designSystemVersionId: z147.string(),
4849
+ persistentId: z147.string(),
4854
4850
  name: z147.string(),
4855
- description: z147.string(),
4856
- docExporterId: nullishToOptional(z147.string()),
4857
- docSlug: z147.string(),
4858
- docUserSlug: nullishToOptional(z147.string()),
4859
- docSlugDeprecated: z147.string(),
4860
- isMultibrand: z147.boolean(),
4861
- docViewUrl: nullishToOptional(z147.string()),
4862
- basePrefixes: z147.array(z147.string()),
4851
+ description: z147.string()
4852
+ });
4853
+
4854
+ // src/dsm/design-system.ts
4855
+ import { z as z148 } from "zod";
4856
+ var DesignSystemAccessMode = z148.enum(["Open", "InviteOnly"]);
4857
+ var DesignSystemSwitcher = z148.object({
4858
+ isEnabled: z148.boolean(),
4859
+ designSystemIds: z148.array(z148.string())
4860
+ });
4861
+ var DesignSystem = z148.object({
4862
+ id: z148.string(),
4863
+ workspaceId: z148.string(),
4864
+ name: z148.string(),
4865
+ description: z148.string(),
4866
+ docExporterId: nullishToOptional(z148.string()),
4867
+ docSlug: z148.string(),
4868
+ docUserSlug: nullishToOptional(z148.string()),
4869
+ docSlugDeprecated: z148.string(),
4870
+ isMultibrand: z148.boolean(),
4871
+ docViewUrl: nullishToOptional(z148.string()),
4872
+ basePrefixes: z148.array(z148.string()),
4863
4873
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4864
- isApprovalFeatureEnabled: z147.boolean(),
4865
- approvalRequiredForPublishing: z147.boolean(),
4874
+ isApprovalFeatureEnabled: z148.boolean(),
4875
+ approvalRequiredForPublishing: z148.boolean(),
4866
4876
  accessMode: DesignSystemAccessMode,
4867
- membersGenerated: z147.boolean(),
4868
- createdAt: z147.coerce.date(),
4869
- updatedAt: z147.coerce.date()
4877
+ membersGenerated: z148.boolean(),
4878
+ createdAt: z148.coerce.date(),
4879
+ updatedAt: z148.coerce.date()
4870
4880
  });
4871
4881
 
4872
4882
  // src/dsm/exporter-property-values-collection.ts
4873
- import { z as z148 } from "zod";
4874
- var ExporterPropertyImageValue = z148.object({
4883
+ import { z as z149 } from "zod";
4884
+ var ExporterPropertyImageValue = z149.object({
4875
4885
  asset: PageBlockAsset.optional(),
4876
- assetId: z148.string().optional(),
4877
- assetUrl: z148.string().optional()
4878
- });
4879
- var ExporterConfigurationPropertyValue = z148.object({
4880
- key: z148.string(),
4881
- value: z148.union([
4882
- z148.number(),
4883
- z148.string(),
4884
- z148.boolean(),
4886
+ assetId: z149.string().optional(),
4887
+ assetUrl: z149.string().optional()
4888
+ });
4889
+ var ExporterConfigurationPropertyValue = z149.object({
4890
+ key: z149.string(),
4891
+ value: z149.union([
4892
+ z149.number(),
4893
+ z149.string(),
4894
+ z149.boolean(),
4885
4895
  ExporterPropertyImageValue,
4886
4896
  ColorTokenData,
4887
4897
  TypographyTokenData
4888
4898
  ])
4889
4899
  });
4890
- var ExporterPropertyValuesCollection = z148.object({
4891
- id: z148.string(),
4892
- designSystemId: z148.string(),
4893
- exporterId: z148.string(),
4894
- values: z148.array(ExporterConfigurationPropertyValue)
4900
+ var ExporterPropertyValuesCollection = z149.object({
4901
+ id: z149.string(),
4902
+ designSystemId: z149.string(),
4903
+ exporterId: z149.string(),
4904
+ values: z149.array(ExporterConfigurationPropertyValue)
4895
4905
  });
4896
4906
 
4897
4907
  // src/dsm/published-doc-page-visits.ts
4898
- import { z as z149 } from "zod";
4899
- var PublishedDocPageVisitsEntry = z149.object({
4900
- id: z149.string(),
4901
- versionId: z149.string(),
4902
- pagePersistentId: z149.string(),
4903
- locale: z149.string().optional(),
4904
- timestamp: z149.coerce.date(),
4905
- visits: z149.number(),
4906
- userId: nullishToOptional(z149.string()),
4907
- anonymousId: nullishToOptional(z149.string())
4908
+ import { z as z150 } from "zod";
4909
+ var PublishedDocPageVisitsEntry = z150.object({
4910
+ id: z150.string(),
4911
+ versionId: z150.string(),
4912
+ pagePersistentId: z150.string(),
4913
+ locale: z150.string().optional(),
4914
+ timestamp: z150.coerce.date(),
4915
+ visits: z150.number(),
4916
+ userId: nullishToOptional(z150.string()),
4917
+ anonymousId: nullishToOptional(z150.string())
4908
4918
  });
4909
4919
 
4910
4920
  // src/dsm/published-doc-page.ts
4911
- import { z as z150 } from "zod";
4921
+ import { z as z151 } from "zod";
4912
4922
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4913
4923
  function tryParseShortPersistentId(url = "/") {
4914
4924
  const lastUrlPart = url.split("/").pop() || "";
4915
4925
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4916
4926
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4917
4927
  }
4918
- var PublishedDocPage = z150.object({
4919
- id: z150.string(),
4920
- publishedDocId: z150.string(),
4921
- pageShortPersistentId: z150.string(),
4922
- pagePersistentId: z150.string().optional(),
4923
- pathV1: z150.string(),
4924
- pathV2: z150.string(),
4925
- storagePath: z150.string(),
4926
- locale: z150.string().optional(),
4927
- isPrivate: z150.boolean(),
4928
- isHidden: z150.boolean(),
4929
- createdAt: z150.coerce.date(),
4930
- updatedAt: z150.coerce.date()
4928
+ var PublishedDocPage = z151.object({
4929
+ id: z151.string(),
4930
+ publishedDocId: z151.string(),
4931
+ pageShortPersistentId: z151.string(),
4932
+ pagePersistentId: z151.string().optional(),
4933
+ pathV1: z151.string(),
4934
+ pathV2: z151.string(),
4935
+ storagePath: z151.string(),
4936
+ locale: z151.string().optional(),
4937
+ isPrivate: z151.boolean(),
4938
+ isHidden: z151.boolean(),
4939
+ createdAt: z151.coerce.date(),
4940
+ updatedAt: z151.coerce.date()
4931
4941
  });
4932
4942
 
4933
4943
  // src/dsm/published-doc.ts
4934
- import { z as z151 } from "zod";
4944
+ import { z as z152 } from "zod";
4935
4945
  var publishedDocEnvironments = ["Live", "Preview"];
4936
- var PublishedDocEnvironment = z151.enum(publishedDocEnvironments);
4937
- var PublishedDocsChecksums = z151.record(z151.string());
4938
- var PublishedDocRoutingVersion = z151.enum(["1", "2"]);
4939
- var PublishedDoc = z151.object({
4940
- id: z151.string(),
4941
- designSystemVersionId: z151.string(),
4942
- createdAt: z151.coerce.date(),
4943
- updatedAt: z151.coerce.date(),
4944
- lastPublishedAt: z151.coerce.date(),
4945
- isDefault: z151.boolean(),
4946
- isPublic: z151.boolean(),
4946
+ var PublishedDocEnvironment = z152.enum(publishedDocEnvironments);
4947
+ var PublishedDocsChecksums = z152.record(z152.string());
4948
+ var PublishedDocRoutingVersion = z152.enum(["1", "2"]);
4949
+ var PublishedDoc = z152.object({
4950
+ id: z152.string(),
4951
+ designSystemVersionId: z152.string(),
4952
+ createdAt: z152.coerce.date(),
4953
+ updatedAt: z152.coerce.date(),
4954
+ lastPublishedAt: z152.coerce.date(),
4955
+ isDefault: z152.boolean(),
4956
+ isPublic: z152.boolean(),
4947
4957
  environment: PublishedDocEnvironment,
4948
4958
  checksums: PublishedDocsChecksums,
4949
- storagePath: z151.string(),
4950
- wasMigrated: z151.boolean(),
4959
+ storagePath: z152.string(),
4960
+ wasMigrated: z152.boolean(),
4951
4961
  routingVersion: PublishedDocRoutingVersion,
4952
- usesLocalizations: z151.boolean(),
4953
- wasPublishedWithLocalizations: z151.boolean(),
4954
- tokenCount: z151.number(),
4955
- assetCount: z151.number()
4962
+ usesLocalizations: z152.boolean(),
4963
+ wasPublishedWithLocalizations: z152.boolean(),
4964
+ tokenCount: z152.number(),
4965
+ assetCount: z152.number()
4956
4966
  });
4957
4967
 
4958
4968
  // src/dsm/storybook-entry.ts
4959
- import { z as z152 } from "zod";
4960
- var StorybookEntryOrigin = z152.object({
4961
- id: z152.string(),
4962
- type: z152.enum(["story", "docs"]),
4963
- name: z152.string(),
4964
- title: z152.string()
4969
+ import { z as z153 } from "zod";
4970
+ var StorybookEntryOrigin = z153.object({
4971
+ id: z153.string(),
4972
+ type: z153.enum(["story", "docs"]),
4973
+ name: z153.string(),
4974
+ title: z153.string()
4965
4975
  // Same as 'kind' for v3
4966
4976
  });
4967
- var StorybookEntry = z152.object({
4968
- id: z152.string(),
4969
- storyId: z152.string(),
4970
- designSystemId: z152.string(),
4971
- sourceId: z152.string(),
4972
- aliases: z152.array(z152.string()).optional(),
4973
- url: z152.string(),
4974
- isDeleted: z152.boolean().optional(),
4975
- origin: StorybookEntryOrigin,
4976
- createdAt: z152.coerce.date(),
4977
- updatedAt: z152.coerce.date()
4978
- });
4979
-
4980
- // src/dsm/storybook-payload.ts
4981
- import { z as z153 } from "zod";
4982
- var StorybookPayload = z153.object({
4977
+ var StorybookEntry = z153.object({
4983
4978
  id: z153.string(),
4979
+ storyId: z153.string(),
4984
4980
  designSystemId: z153.string(),
4985
4981
  sourceId: z153.string(),
4986
- payload: z153.any(),
4982
+ aliases: z153.array(z153.string()).optional(),
4983
+ url: z153.string(),
4984
+ isDeleted: z153.boolean().optional(),
4985
+ origin: StorybookEntryOrigin,
4987
4986
  createdAt: z153.coerce.date(),
4988
4987
  updatedAt: z153.coerce.date()
4989
4988
  });
4990
4989
 
4991
- // src/dsm/version.ts
4990
+ // src/dsm/storybook-payload.ts
4992
4991
  import { z as z154 } from "zod";
4993
- var DesignSystemVersion = z154.object({
4994
- id: z154.string(),
4995
- version: z154.string(),
4996
- createdAt: z154.coerce.date(),
4997
- designSystemId: z154.string(),
4998
- name: z154.string(),
4999
- comment: z154.string(),
5000
- isReadonly: z154.boolean(),
5001
- changeLog: z154.string(),
5002
- parentId: z154.string().optional(),
5003
- isDraftsFeatureAdopted: z154.boolean()
5004
- });
5005
- var VersionCreationJobStatus = z154.enum(["Success", "InProgress", "Error"]);
5006
- var VersionCreationJob = z154.object({
4992
+ var StorybookPayload = z154.object({
5007
4993
  id: z154.string(),
5008
- version: z154.string(),
5009
4994
  designSystemId: z154.string(),
5010
- designSystemVersionId: nullishToOptional(z154.string()),
4995
+ sourceId: z154.string(),
4996
+ payload: z154.any(),
4997
+ createdAt: z154.coerce.date(),
4998
+ updatedAt: z154.coerce.date()
4999
+ });
5000
+
5001
+ // src/dsm/version.ts
5002
+ import { z as z155 } from "zod";
5003
+ var DesignSystemVersion = z155.object({
5004
+ id: z155.string(),
5005
+ version: z155.string(),
5006
+ createdAt: z155.coerce.date(),
5007
+ designSystemId: z155.string(),
5008
+ name: z155.string(),
5009
+ comment: z155.string(),
5010
+ isReadonly: z155.boolean(),
5011
+ changeLog: z155.string(),
5012
+ parentId: z155.string().optional(),
5013
+ isDraftsFeatureAdopted: z155.boolean()
5014
+ });
5015
+ var VersionCreationJobStatus = z155.enum(["Success", "InProgress", "Error"]);
5016
+ var VersionCreationJob = z155.object({
5017
+ id: z155.string(),
5018
+ version: z155.string(),
5019
+ designSystemId: z155.string(),
5020
+ designSystemVersionId: nullishToOptional(z155.string()),
5011
5021
  status: VersionCreationJobStatus,
5012
- errorMessage: nullishToOptional(z154.string())
5022
+ errorMessage: nullishToOptional(z155.string())
5013
5023
  });
5014
5024
 
5015
5025
  // src/export/export-destinations.ts
5016
5026
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
5017
5027
  var BITBUCKET_MAX_LENGTH = 64;
5018
- var ExportJobDocumentationChanges = z155.object({
5019
- pagePersistentIds: z155.string().array(),
5020
- groupPersistentIds: z155.string().array()
5028
+ var ExportJobDocumentationChanges = z156.object({
5029
+ pagePersistentIds: z156.string().array(),
5030
+ groupPersistentIds: z156.string().array()
5021
5031
  });
5022
- var ExporterDestinationDocs = z155.object({
5032
+ var ExporterDestinationDocs = z156.object({
5023
5033
  environment: PublishedDocEnvironment,
5024
5034
  changes: nullishToOptional(ExportJobDocumentationChanges)
5025
5035
  });
5026
- var GitCommonDestinationOptions = z155.object({
5027
- branch: z155.string(),
5028
- relativePath: nullishToOptional(z155.string()),
5029
- purgeDirectory: nullishToOptional(z155.boolean()),
5030
- commitAuthorName: nullishToOptional(z155.string()),
5031
- commitAuthorEmail: nullishToOptional(z155.string()),
5032
- commitMessage: nullishToOptional(z155.string()),
5033
- pullRequestTitle: nullishToOptional(z155.string()),
5034
- pullRequestDescription: nullishToOptional(z155.string())
5035
- });
5036
- var ExporterDestinationS3 = z155.object({});
5037
- var ExporterDestinationGithub = z155.object({
5038
- credentialId: z155.string().optional(),
5036
+ var GitCommonDestinationOptions = z156.object({
5037
+ branch: z156.string(),
5038
+ relativePath: nullishToOptional(z156.string()),
5039
+ purgeDirectory: nullishToOptional(z156.boolean()),
5040
+ commitAuthorName: nullishToOptional(z156.string()),
5041
+ commitAuthorEmail: nullishToOptional(z156.string()),
5042
+ commitMessage: nullishToOptional(z156.string()),
5043
+ pullRequestTitle: nullishToOptional(z156.string()),
5044
+ pullRequestDescription: nullishToOptional(z156.string())
5045
+ });
5046
+ var ExporterDestinationS3 = z156.object({});
5047
+ var ExporterDestinationGithub = z156.object({
5048
+ credentialId: z156.string().optional(),
5039
5049
  // Repository
5040
- url: z155.string(),
5050
+ url: z156.string(),
5041
5051
  // Legacy deprecated fields. Use `credentialId` instead
5042
- connectionId: nullishToOptional(z155.string()),
5043
- userId: nullishToOptional(z155.number())
5052
+ connectionId: nullishToOptional(z156.string()),
5053
+ userId: nullishToOptional(z156.number())
5044
5054
  }).extend(GitCommonDestinationOptions.shape);
5045
- var ExporterDestinationAzure = z155.object({
5046
- credentialId: z155.string().optional(),
5055
+ var ExporterDestinationAzure = z156.object({
5056
+ credentialId: z156.string().optional(),
5047
5057
  // Repository
5048
- organizationId: z155.string(),
5049
- projectId: z155.string(),
5050
- repositoryId: z155.string(),
5058
+ organizationId: z156.string(),
5059
+ projectId: z156.string(),
5060
+ repositoryId: z156.string(),
5051
5061
  // Maybe not needed
5052
- url: nullishToOptional(z155.string()),
5062
+ url: nullishToOptional(z156.string()),
5053
5063
  // Legacy deprecated fields. Use `credentialId` instead
5054
- connectionId: nullishToOptional(z155.string()),
5055
- userId: nullishToOptional(z155.number())
5064
+ connectionId: nullishToOptional(z156.string()),
5065
+ userId: nullishToOptional(z156.number())
5056
5066
  }).extend(GitCommonDestinationOptions.shape);
5057
- var ExporterDestinationGitlab = z155.object({
5058
- credentialId: z155.string().optional(),
5067
+ var ExporterDestinationGitlab = z156.object({
5068
+ credentialId: z156.string().optional(),
5059
5069
  // Repository
5060
- projectId: z155.string(),
5070
+ projectId: z156.string(),
5061
5071
  // Maybe not needed
5062
- url: nullishToOptional(z155.string()),
5072
+ url: nullishToOptional(z156.string()),
5063
5073
  // Legacy deprecated fields. Use `credentialId` instead
5064
- connectionId: nullishToOptional(z155.string()),
5065
- userId: nullishToOptional(z155.number())
5074
+ connectionId: nullishToOptional(z156.string()),
5075
+ userId: nullishToOptional(z156.number())
5066
5076
  }).extend(GitCommonDestinationOptions.shape);
5067
- var ExporterDestinationBitbucket = z155.object({
5068
- credentialId: z155.string().optional(),
5077
+ var ExporterDestinationBitbucket = z156.object({
5078
+ credentialId: z156.string().optional(),
5069
5079
  // Repository
5070
- workspaceSlug: z155.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5071
- projectKey: z155.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5072
- repoSlug: z155.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5073
- url: nullishToOptional(z155.string()),
5080
+ workspaceSlug: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5081
+ projectKey: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5082
+ repoSlug: z156.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
5083
+ url: nullishToOptional(z156.string()),
5074
5084
  // Legacy deprecated fields. Use `credentialId` instead
5075
- connectionId: nullishToOptional(z155.string()),
5076
- userId: nullishToOptional(z155.number())
5085
+ connectionId: nullishToOptional(z156.string()),
5086
+ userId: nullishToOptional(z156.number())
5077
5087
  }).extend(GitCommonDestinationOptions.shape);
5078
- var ExportDestinationsMap = z155.object({
5079
- webhookUrl: z155.string().optional(),
5088
+ var ExportDestinationsMap = z156.object({
5089
+ webhookUrl: z156.string().optional(),
5080
5090
  destinationSnDocs: ExporterDestinationDocs.optional(),
5081
5091
  destinationS3: ExporterDestinationS3.optional(),
5082
5092
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -5084,8 +5094,8 @@ var ExportDestinationsMap = z155.object({
5084
5094
  destinationGitlab: ExporterDestinationGitlab.optional(),
5085
5095
  destinationBitbucket: ExporterDestinationBitbucket.optional()
5086
5096
  });
5087
- var ExportDestinationsMapUpdate = z155.object({
5088
- webhookUrl: z155.string().nullish(),
5097
+ var ExportDestinationsMapUpdate = z156.object({
5098
+ webhookUrl: z156.string().nullish(),
5089
5099
  destinationSnDocs: ExporterDestinationDocs.nullish(),
5090
5100
  destinationS3: ExporterDestinationS3.nullish(),
5091
5101
  destinationGithub: ExporterDestinationGithub.nullish(),
@@ -5095,115 +5105,115 @@ var ExportDestinationsMapUpdate = z155.object({
5095
5105
  });
5096
5106
 
5097
5107
  // src/export/pipeline.ts
5098
- var PipelineEventType = z156.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
5099
- var PipelineDestinationGitType = z156.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5100
- var PipelineDestinationExtraType = z156.enum(["WebhookUrl", "S3", "Documentation"]);
5101
- var PipelineDestinationType = z156.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5102
- var Pipeline = z156.object({
5103
- id: z156.string(),
5104
- name: z156.string(),
5108
+ var PipelineEventType = z157.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
5109
+ var PipelineDestinationGitType = z157.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
5110
+ var PipelineDestinationExtraType = z157.enum(["WebhookUrl", "S3", "Documentation"]);
5111
+ var PipelineDestinationType = z157.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
5112
+ var Pipeline = z157.object({
5113
+ id: z157.string(),
5114
+ name: z157.string(),
5105
5115
  eventType: PipelineEventType,
5106
- isEnabled: z156.boolean(),
5107
- workspaceId: z156.string(),
5108
- designSystemId: z156.string(),
5109
- exporterId: z156.string(),
5110
- brandPersistentId: z156.string().optional(),
5111
- themePersistentId: z156.string().optional(),
5112
- themePersistentIds: z156.string().array().optional(),
5116
+ isEnabled: z157.boolean(),
5117
+ workspaceId: z157.string(),
5118
+ designSystemId: z157.string(),
5119
+ exporterId: z157.string(),
5120
+ brandPersistentId: z157.string().optional(),
5121
+ themePersistentId: z157.string().optional(),
5122
+ themePersistentIds: z157.string().array().optional(),
5113
5123
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5114
- isExporterDeprecated: z156.boolean(),
5124
+ isExporterDeprecated: z157.boolean(),
5115
5125
  // Destinations
5116
5126
  ...ExportDestinationsMap.shape
5117
5127
  });
5118
5128
 
5119
5129
  // src/data-dumps/code-integration-dump.ts
5120
- var ExportJobDump = z157.object({
5121
- id: z157.string(),
5122
- createdAt: z157.coerce.date(),
5123
- finishedAt: z157.coerce.date(),
5124
- exportArtefacts: z157.string()
5130
+ var ExportJobDump = z158.object({
5131
+ id: z158.string(),
5132
+ createdAt: z158.coerce.date(),
5133
+ finishedAt: z158.coerce.date(),
5134
+ exportArtefacts: z158.string()
5125
5135
  });
5126
- var CodeIntegrationDump = z157.object({
5136
+ var CodeIntegrationDump = z158.object({
5127
5137
  exporters: Exporter.array(),
5128
5138
  pipelines: Pipeline.array(),
5129
5139
  exportJobs: ExportJobDump.array()
5130
5140
  });
5131
5141
 
5132
5142
  // src/data-dumps/design-system-dump.ts
5133
- import { z as z164 } from "zod";
5143
+ import { z as z165 } from "zod";
5134
5144
 
5135
5145
  // src/data-dumps/design-system-version-dump.ts
5136
- import { z as z163 } from "zod";
5146
+ import { z as z164 } from "zod";
5137
5147
 
5138
5148
  // src/liveblocks/rooms/design-system-version-room.ts
5139
- import { z as z158 } from "zod";
5149
+ import { z as z159 } from "zod";
5140
5150
  var DesignSystemVersionRoom = Entity.extend({
5141
- designSystemVersionId: z158.string(),
5142
- liveblocksId: z158.string()
5143
- });
5144
- var DesignSystemVersionRoomInternalSettings = z158.object({
5145
- routingVersion: z158.string(),
5146
- isDraftFeatureAdopted: z158.boolean(),
5147
- isApprovalFeatureEnabled: z158.boolean(),
5148
- approvalRequiredForPublishing: z158.boolean()
5149
- });
5150
- var DesignSystemVersionRoomInitialState = z158.object({
5151
- pages: z158.array(DocumentationPageV2),
5152
- groups: z158.array(ElementGroup),
5153
- pageSnapshots: z158.array(DocumentationPageSnapshot),
5154
- groupSnapshots: z158.array(ElementGroupSnapshot),
5155
- pageApprovals: z158.array(DocumentationPageApproval),
5151
+ designSystemVersionId: z159.string(),
5152
+ liveblocksId: z159.string()
5153
+ });
5154
+ var DesignSystemVersionRoomInternalSettings = z159.object({
5155
+ routingVersion: z159.string(),
5156
+ isDraftFeatureAdopted: z159.boolean(),
5157
+ isApprovalFeatureEnabled: z159.boolean(),
5158
+ approvalRequiredForPublishing: z159.boolean()
5159
+ });
5160
+ var DesignSystemVersionRoomInitialState = z159.object({
5161
+ pages: z159.array(DocumentationPageV2),
5162
+ groups: z159.array(ElementGroup),
5163
+ pageSnapshots: z159.array(DocumentationPageSnapshot),
5164
+ groupSnapshots: z159.array(ElementGroupSnapshot),
5165
+ pageApprovals: z159.array(DocumentationPageApproval),
5156
5166
  internalSettings: DesignSystemVersionRoomInternalSettings,
5157
- pageHashes: z158.record(z158.string()).optional()
5158
- });
5159
- var DesignSystemVersionRoomUpdate = z158.object({
5160
- pages: z158.array(DocumentationPageV2),
5161
- groups: z158.array(ElementGroup),
5162
- pageIdsToDelete: z158.array(z158.string()),
5163
- groupIdsToDelete: z158.array(z158.string()),
5164
- pageSnapshots: z158.array(DocumentationPageSnapshot),
5165
- groupSnapshots: z158.array(ElementGroupSnapshot),
5166
- pageSnapshotIdsToDelete: z158.array(z158.string()),
5167
- groupSnapshotIdsToDelete: z158.array(z158.string()),
5168
- pageHashesToUpdate: z158.record(z158.string(), z158.string()),
5169
- pageApprovals: z158.array(DocumentationPageApproval),
5170
- pageApprovalIdsToDelete: z158.array(z158.string()),
5171
- executedTransactionIds: z158.array(z158.string())
5167
+ pageHashes: z159.record(z159.string()).optional()
5168
+ });
5169
+ var DesignSystemVersionRoomUpdate = z159.object({
5170
+ pages: z159.array(DocumentationPageV2),
5171
+ groups: z159.array(ElementGroup),
5172
+ pageIdsToDelete: z159.array(z159.string()),
5173
+ groupIdsToDelete: z159.array(z159.string()),
5174
+ pageSnapshots: z159.array(DocumentationPageSnapshot),
5175
+ groupSnapshots: z159.array(ElementGroupSnapshot),
5176
+ pageSnapshotIdsToDelete: z159.array(z159.string()),
5177
+ groupSnapshotIdsToDelete: z159.array(z159.string()),
5178
+ pageHashesToUpdate: z159.record(z159.string(), z159.string()),
5179
+ pageApprovals: z159.array(DocumentationPageApproval),
5180
+ pageApprovalIdsToDelete: z159.array(z159.string()),
5181
+ executedTransactionIds: z159.array(z159.string())
5172
5182
  });
5173
5183
 
5174
5184
  // src/liveblocks/rooms/documentation-page-room.ts
5175
- import { z as z159 } from "zod";
5185
+ import { z as z160 } from "zod";
5176
5186
  var DocumentationPageRoom = Entity.extend({
5177
- designSystemVersionId: z159.string(),
5178
- documentationPageId: z159.string(),
5179
- liveblocksId: z159.string(),
5180
- isDirty: z159.boolean()
5187
+ designSystemVersionId: z160.string(),
5188
+ documentationPageId: z160.string(),
5189
+ liveblocksId: z160.string(),
5190
+ isDirty: z160.boolean()
5181
5191
  });
5182
- var DocumentationPageRoomState = z159.object({
5183
- pageItems: z159.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5192
+ var DocumentationPageRoomState = z160.object({
5193
+ pageItems: z160.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5184
5194
  itemConfiguration: DocumentationItemConfigurationV2
5185
5195
  });
5186
- var DocumentationPageRoomRoomUpdate = z159.object({
5196
+ var DocumentationPageRoomRoomUpdate = z160.object({
5187
5197
  page: DocumentationPageV2,
5188
5198
  pageParent: ElementGroup
5189
5199
  });
5190
5200
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
5191
- pageItems: z159.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5192
- blockDefinitions: z159.array(PageBlockDefinition)
5201
+ pageItems: z160.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5202
+ blockDefinitions: z160.array(PageBlockDefinition)
5193
5203
  });
5194
- var RestoredDocumentationPage = z159.object({
5204
+ var RestoredDocumentationPage = z160.object({
5195
5205
  page: DocumentationPageV2,
5196
5206
  pageParent: ElementGroup,
5197
5207
  pageContent: DocumentationPageContentData,
5198
- contentHash: z159.string()
5208
+ contentHash: z160.string()
5199
5209
  });
5200
- var RestoredDocumentationGroup = z159.object({
5210
+ var RestoredDocumentationGroup = z160.object({
5201
5211
  group: ElementGroup,
5202
5212
  parent: ElementGroup
5203
5213
  });
5204
5214
 
5205
5215
  // src/liveblocks/rooms/room-type.ts
5206
- import { z as z160 } from "zod";
5216
+ import { z as z161 } from "zod";
5207
5217
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5208
5218
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
5209
5219
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -5211,36 +5221,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
5211
5221
  RoomTypeEnum2["Workspace"] = "workspace";
5212
5222
  return RoomTypeEnum2;
5213
5223
  })(RoomTypeEnum || {});
5214
- var RoomTypeSchema = z160.nativeEnum(RoomTypeEnum);
5224
+ var RoomTypeSchema = z161.nativeEnum(RoomTypeEnum);
5215
5225
  var RoomType = RoomTypeSchema.enum;
5216
5226
 
5217
5227
  // src/liveblocks/rooms/workspace-room.ts
5218
- import { z as z161 } from "zod";
5228
+ import { z as z162 } from "zod";
5219
5229
  var WorkspaceRoom = Entity.extend({
5220
- workspaceId: z161.string(),
5221
- liveblocksId: z161.string()
5230
+ workspaceId: z162.string(),
5231
+ liveblocksId: z162.string()
5222
5232
  });
5223
5233
 
5224
5234
  // src/data-dumps/published-docs-dump.ts
5225
- import { z as z162 } from "zod";
5226
- var PublishedDocsDump = z162.object({
5235
+ import { z as z163 } from "zod";
5236
+ var PublishedDocsDump = z163.object({
5227
5237
  documentation: PublishedDoc,
5228
5238
  pages: PublishedDocPage.array()
5229
5239
  });
5230
5240
 
5231
5241
  // src/data-dumps/design-system-version-dump.ts
5232
- var DocumentationThreadDump = z163.object({
5242
+ var DocumentationThreadDump = z164.object({
5233
5243
  thread: DocumentationCommentThread,
5234
5244
  comments: DocumentationComment.array()
5235
5245
  });
5236
- var DocumentationPageRoomDump = z163.object({
5246
+ var DocumentationPageRoomDump = z164.object({
5237
5247
  room: DocumentationPageRoom,
5238
5248
  threads: DocumentationThreadDump.array()
5239
5249
  });
5240
- var DesignSystemVersionMultiplayerDump = z163.object({
5250
+ var DesignSystemVersionMultiplayerDump = z164.object({
5241
5251
  documentationPages: DocumentationPageRoomDump.array()
5242
5252
  });
5243
- var DesignSystemVersionDump = z163.object({
5253
+ var DesignSystemVersionDump = z164.object({
5244
5254
  version: DesignSystemVersion,
5245
5255
  brands: Brand.array(),
5246
5256
  elements: DesignElement.array(),
@@ -5255,7 +5265,7 @@ var DesignSystemVersionDump = z163.object({
5255
5265
  });
5256
5266
 
5257
5267
  // src/data-dumps/design-system-dump.ts
5258
- var DesignSystemDump = z164.object({
5268
+ var DesignSystemDump = z165.object({
5259
5269
  designSystem: DesignSystem,
5260
5270
  dataSources: DataSource.array(),
5261
5271
  versions: DesignSystemVersionDump.array(),
@@ -5264,50 +5274,50 @@ var DesignSystemDump = z164.object({
5264
5274
  });
5265
5275
 
5266
5276
  // src/data-dumps/user-data-dump.ts
5267
- import { z as z167 } from "zod";
5277
+ import { z as z168 } from "zod";
5268
5278
 
5269
5279
  // src/data-dumps/workspace-dump.ts
5270
- import { z as z166 } from "zod";
5280
+ import { z as z167 } from "zod";
5271
5281
 
5272
5282
  // src/integrations/integration.ts
5273
- import { z as z165 } from "zod";
5274
- var IntegrationDesignSystem = z165.object({
5275
- designSystemId: z165.string(),
5276
- brandId: z165.string(),
5277
- title: z165.string().optional(),
5278
- userId: z165.string().optional(),
5279
- date: z165.coerce.date().optional()
5280
- });
5281
- var IntegrationCredentialsType = z165.enum(["OAuth2", "PAT"]);
5282
- var IntegrationCredentialsState = z165.enum(["Active", "Inactive"]);
5283
- var IntegrationCredentialsProfile = z165.object({
5284
- id: nullishToOptional(z165.string()),
5285
- email: nullishToOptional(z165.string()),
5286
- handle: nullishToOptional(z165.string()),
5287
- type: nullishToOptional(z165.string()),
5288
- avatarUrl: nullishToOptional(z165.string()),
5289
- organization: nullishToOptional(z165.string()),
5290
- collection: nullishToOptional(z165.string())
5291
- });
5292
- var IntegrationCredentials = z165.object({
5293
- id: z165.string(),
5283
+ import { z as z166 } from "zod";
5284
+ var IntegrationDesignSystem = z166.object({
5285
+ designSystemId: z166.string(),
5286
+ brandId: z166.string(),
5287
+ title: z166.string().optional(),
5288
+ userId: z166.string().optional(),
5289
+ date: z166.coerce.date().optional()
5290
+ });
5291
+ var IntegrationCredentialsType = z166.enum(["OAuth2", "PAT"]);
5292
+ var IntegrationCredentialsState = z166.enum(["Active", "Inactive"]);
5293
+ var IntegrationCredentialsProfile = z166.object({
5294
+ id: nullishToOptional(z166.string()),
5295
+ email: nullishToOptional(z166.string()),
5296
+ handle: nullishToOptional(z166.string()),
5297
+ type: nullishToOptional(z166.string()),
5298
+ avatarUrl: nullishToOptional(z166.string()),
5299
+ organization: nullishToOptional(z166.string()),
5300
+ collection: nullishToOptional(z166.string())
5301
+ });
5302
+ var IntegrationCredentials = z166.object({
5303
+ id: z166.string(),
5294
5304
  type: IntegrationCredentialsType,
5295
- integrationId: z165.string(),
5296
- accessToken: z165.string(),
5297
- userId: z165.string(),
5298
- createdAt: z165.coerce.date(),
5299
- refreshToken: z165.string().optional(),
5300
- tokenName: z165.string().optional(),
5301
- expiresAt: z165.coerce.date().optional(),
5302
- refreshedAt: z165.coerce.date().optional(),
5303
- username: z165.string().optional(),
5304
- appInstallationId: z165.string().optional(),
5305
+ integrationId: z166.string(),
5306
+ accessToken: z166.string(),
5307
+ userId: z166.string(),
5308
+ createdAt: z166.coerce.date(),
5309
+ refreshToken: z166.string().optional(),
5310
+ tokenName: z166.string().optional(),
5311
+ expiresAt: z166.coerce.date().optional(),
5312
+ refreshedAt: z166.coerce.date().optional(),
5313
+ username: z166.string().optional(),
5314
+ appInstallationId: z166.string().optional(),
5305
5315
  profile: IntegrationCredentialsProfile.optional(),
5306
- customUrl: z165.string().optional(),
5316
+ customUrl: z166.string().optional(),
5307
5317
  state: IntegrationCredentialsState,
5308
5318
  user: UserMinified.optional()
5309
5319
  });
5310
- var ExtendedIntegrationType = z165.enum([
5320
+ var ExtendedIntegrationType = z166.enum([
5311
5321
  "Figma",
5312
5322
  "Github",
5313
5323
  "Gitlab",
@@ -5318,26 +5328,26 @@ var ExtendedIntegrationType = z165.enum([
5318
5328
  ]);
5319
5329
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5320
5330
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5321
- var Integration = z165.object({
5322
- id: z165.string(),
5323
- workspaceId: z165.string(),
5331
+ var Integration = z166.object({
5332
+ id: z166.string(),
5333
+ workspaceId: z166.string(),
5324
5334
  type: IntegrationType,
5325
- createdAt: z165.coerce.date(),
5326
- integrationCredentials: z165.array(IntegrationCredentials).optional()
5327
- });
5328
- var IntegrationToken = z165.object({
5329
- access_token: z165.string(),
5330
- refresh_token: z165.string().optional(),
5331
- expires_in: z165.union([z165.number().optional(), z165.string().optional()]),
5332
- token_type: z165.string().optional(),
5333
- token_name: z165.string().optional(),
5334
- token_azure_organization_name: z165.string().optional(),
5335
+ createdAt: z166.coerce.date(),
5336
+ integrationCredentials: z166.array(IntegrationCredentials).optional()
5337
+ });
5338
+ var IntegrationToken = z166.object({
5339
+ access_token: z166.string(),
5340
+ refresh_token: z166.string().optional(),
5341
+ expires_in: z166.union([z166.number().optional(), z166.string().optional()]),
5342
+ token_type: z166.string().optional(),
5343
+ token_name: z166.string().optional(),
5344
+ token_azure_organization_name: z166.string().optional(),
5335
5345
  // Azure Cloud PAT only
5336
- token_azure_collection_name: z165.string().optional(),
5346
+ token_azure_collection_name: z166.string().optional(),
5337
5347
  // Azure Server PAT only
5338
- token_bitbucket_username: z165.string().optional(),
5348
+ token_bitbucket_username: z166.string().optional(),
5339
5349
  // Bitbucket only
5340
- custom_url: z165.string().optional().transform((value) => {
5350
+ custom_url: z166.string().optional().transform((value) => {
5341
5351
  if (!value?.trim()) return void 0;
5342
5352
  return formatCustomUrl(value);
5343
5353
  })
@@ -5374,7 +5384,7 @@ function formatCustomUrl(url) {
5374
5384
  }
5375
5385
 
5376
5386
  // src/data-dumps/workspace-dump.ts
5377
- var WorkspaceDump = z166.object({
5387
+ var WorkspaceDump = z167.object({
5378
5388
  workspace: Workspace,
5379
5389
  designSystems: DesignSystemDump.array(),
5380
5390
  codeIntegration: CodeIntegrationDump,
@@ -5382,124 +5392,124 @@ var WorkspaceDump = z166.object({
5382
5392
  });
5383
5393
 
5384
5394
  // src/data-dumps/user-data-dump.ts
5385
- var UserDump = z167.object({
5395
+ var UserDump = z168.object({
5386
5396
  user: User,
5387
5397
  workspaces: WorkspaceDump.array()
5388
5398
  });
5389
5399
 
5390
5400
  // src/docs-server/session.ts
5391
- import { z as z168 } from "zod";
5392
- var NpmProxyToken = z168.object({
5393
- access: z168.string(),
5394
- expiresAt: z168.number()
5401
+ import { z as z169 } from "zod";
5402
+ var NpmProxyToken = z169.object({
5403
+ access: z169.string(),
5404
+ expiresAt: z169.number()
5395
5405
  });
5396
- var SessionData = z168.object({
5397
- returnToUrl: z168.string().optional(),
5406
+ var SessionData = z169.object({
5407
+ returnToUrl: z169.string().optional(),
5398
5408
  npmProxyToken: NpmProxyToken.optional()
5399
5409
  });
5400
- var Session = z168.object({
5401
- id: z168.string(),
5402
- expiresAt: z168.coerce.date(),
5403
- userId: z168.string().nullable(),
5404
- anonymousId: z168.string().nullable(),
5410
+ var Session = z169.object({
5411
+ id: z169.string(),
5412
+ expiresAt: z169.coerce.date(),
5413
+ userId: z169.string().nullable(),
5414
+ anonymousId: z169.string().nullable(),
5405
5415
  data: SessionData
5406
5416
  });
5407
- var AuthTokens = z168.object({
5408
- access: z168.string(),
5409
- refresh: z168.string()
5417
+ var AuthTokens = z169.object({
5418
+ access: z169.string(),
5419
+ refresh: z169.string()
5410
5420
  });
5411
- var UserSession = z168.object({
5421
+ var UserSession = z169.object({
5412
5422
  session: Session,
5413
5423
  user: User.nullable()
5414
5424
  });
5415
5425
 
5416
5426
  // src/emails/design-system-invite.ts
5417
- import { z as z169 } from "zod";
5418
- var DesignSystemInviteEmailRecipient = z169.object({
5419
- email: z169.string(),
5427
+ import { z as z170 } from "zod";
5428
+ var DesignSystemInviteEmailRecipient = z170.object({
5429
+ email: z170.string(),
5420
5430
  role: WorkspaceRoleSchema
5421
5431
  });
5422
- var DesignSystemInviteEmailData = z169.object({
5432
+ var DesignSystemInviteEmailData = z170.object({
5423
5433
  workspace: Workspace,
5424
5434
  designSystem: DesignSystem,
5425
5435
  invitedBy: User,
5426
- documentationDomain: z169.string().optional()
5436
+ documentationDomain: z170.string().optional()
5427
5437
  });
5428
5438
 
5429
5439
  // src/emails/workspace-invite.ts
5430
- import { z as z170 } from "zod";
5431
- var WorkspaceInviteEmailRecipient = z170.object({
5432
- email: z170.string(),
5440
+ import { z as z171 } from "zod";
5441
+ var WorkspaceInviteEmailRecipient = z171.object({
5442
+ email: z171.string(),
5433
5443
  role: WorkspaceRoleSchema
5434
5444
  });
5435
- var WorkspaceInviteEmailData = z170.object({
5445
+ var WorkspaceInviteEmailData = z171.object({
5436
5446
  workspace: Workspace,
5437
5447
  invitedBy: User,
5438
- documentationDomain: z170.string().optional()
5448
+ documentationDomain: z171.string().optional()
5439
5449
  });
5440
5450
 
5441
5451
  // src/events/base.ts
5442
- import { z as z173 } from "zod";
5452
+ import { z as z174 } from "zod";
5443
5453
 
5444
5454
  // src/events/data-source-imported.ts
5445
- import { z as z171 } from "zod";
5446
- var EventDataSourceImported = z171.object({
5447
- type: z171.literal("DataSourceImported"),
5448
- workspaceId: z171.string(),
5449
- designSystemId: z171.string()
5455
+ import { z as z172 } from "zod";
5456
+ var EventDataSourceImported = z172.object({
5457
+ type: z172.literal("DataSourceImported"),
5458
+ workspaceId: z172.string(),
5459
+ designSystemId: z172.string()
5450
5460
  });
5451
5461
 
5452
5462
  // src/events/version-released.ts
5453
- import { z as z172 } from "zod";
5454
- var EventVersionReleased = z172.object({
5455
- type: z172.literal("DesignSystemVersionReleased"),
5456
- workspaceId: z172.string(),
5457
- designSystemId: z172.string(),
5458
- versionId: z172.string()
5463
+ import { z as z173 } from "zod";
5464
+ var EventVersionReleased = z173.object({
5465
+ type: z173.literal("DesignSystemVersionReleased"),
5466
+ workspaceId: z173.string(),
5467
+ designSystemId: z173.string(),
5468
+ versionId: z173.string()
5459
5469
  });
5460
5470
 
5461
5471
  // src/events/base.ts
5462
- var Event = z173.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5472
+ var Event = z174.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5463
5473
 
5464
5474
  // src/export/export-runner/export-context.ts
5465
- import { z as z174 } from "zod";
5466
- var ExportJobDocumentationContext = z174.object({
5467
- isSingleVersionDocs: z174.boolean(),
5468
- versionSlug: z174.string(),
5475
+ import { z as z175 } from "zod";
5476
+ var ExportJobDocumentationContext = z175.object({
5477
+ isSingleVersionDocs: z175.boolean(),
5478
+ versionSlug: z175.string(),
5469
5479
  environment: PublishedDocEnvironment
5470
5480
  });
5471
- var ExportJobContext = z174.object({
5472
- apiUrl: z174.string(),
5473
- accessToken: z174.string(),
5474
- designSystemId: z174.string(),
5475
- designSystemName: z174.string(),
5476
- exporterId: z174.string(),
5477
- versionId: z174.string(),
5478
- brandId: z174.string().optional(),
5479
- themeId: z174.string().optional(),
5480
- themePersistentIds: z174.string().array().optional(),
5481
- previewMode: z174.boolean().optional(),
5482
- exporterName: z174.string(),
5481
+ var ExportJobContext = z175.object({
5482
+ apiUrl: z175.string(),
5483
+ accessToken: z175.string(),
5484
+ designSystemId: z175.string(),
5485
+ designSystemName: z175.string(),
5486
+ exporterId: z175.string(),
5487
+ versionId: z175.string(),
5488
+ brandId: z175.string().optional(),
5489
+ themeId: z175.string().optional(),
5490
+ themePersistentIds: z175.string().array().optional(),
5491
+ previewMode: z175.boolean().optional(),
5492
+ exporterName: z175.string(),
5483
5493
  documentation: ExportJobDocumentationContext.optional()
5484
5494
  });
5485
- var ExportJobExporterConfiguration = z174.object({
5486
- exporterPackageUrl: z174.string(),
5495
+ var ExportJobExporterConfiguration = z175.object({
5496
+ exporterPackageUrl: z175.string(),
5487
5497
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
5488
5498
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
5489
5499
  });
5490
5500
 
5491
5501
  // src/export/export-runner/exporter-payload.ts
5492
- import { z as z175 } from "zod";
5493
- var ExporterFunctionPayload = z175.object({
5494
- exportJobId: z175.string(),
5495
- exportContextId: z175.string(),
5496
- designSystemId: z175.string(),
5497
- workspaceId: z175.string()
5502
+ import { z as z176 } from "zod";
5503
+ var ExporterFunctionPayload = z176.object({
5504
+ exportJobId: z176.string(),
5505
+ exportContextId: z176.string(),
5506
+ designSystemId: z176.string(),
5507
+ workspaceId: z176.string()
5498
5508
  });
5499
5509
 
5500
5510
  // src/export/export-jobs.ts
5501
- import { z as z176 } from "zod";
5502
- var ExportJobDestinationType = z176.enum([
5511
+ import { z as z177 } from "zod";
5512
+ var ExportJobDestinationType = z177.enum([
5503
5513
  "s3",
5504
5514
  "webhookUrl",
5505
5515
  "github",
@@ -5508,30 +5518,30 @@ var ExportJobDestinationType = z176.enum([
5508
5518
  "gitlab",
5509
5519
  "bitbucket"
5510
5520
  ]);
5511
- var ExportJobStatus = z176.enum(["InProgress", "Success", "Failed", "Timeout"]);
5512
- var ExportJobLogEntryType = z176.enum(["success", "info", "warning", "error", "user"]);
5513
- var ExportJobLogEntry = z176.object({
5514
- id: z176.string().optional(),
5515
- time: z176.coerce.date(),
5521
+ var ExportJobStatus = z177.enum(["InProgress", "Success", "Failed", "Timeout"]);
5522
+ var ExportJobLogEntryType = z177.enum(["success", "info", "warning", "error", "user"]);
5523
+ var ExportJobLogEntry = z177.object({
5524
+ id: z177.string().optional(),
5525
+ time: z177.coerce.date(),
5516
5526
  type: ExportJobLogEntryType,
5517
- message: z176.string()
5527
+ message: z177.string()
5518
5528
  });
5519
- var ExportJobPullRequestDestinationResult = z176.object({
5520
- pullRequestUrl: z176.string()
5529
+ var ExportJobPullRequestDestinationResult = z177.object({
5530
+ pullRequestUrl: z177.string()
5521
5531
  });
5522
- var ExportJobS3DestinationResult = z176.object({
5523
- bucket: z176.string(),
5524
- urlPrefix: z176.string().optional(),
5525
- path: z176.string(),
5526
- files: z176.array(z176.string()),
5527
- url: nullishToOptional(z176.string()),
5528
- urls: nullishToOptional(z176.string().array())
5532
+ var ExportJobS3DestinationResult = z177.object({
5533
+ bucket: z177.string(),
5534
+ urlPrefix: z177.string().optional(),
5535
+ path: z177.string(),
5536
+ files: z177.array(z177.string()),
5537
+ url: nullishToOptional(z177.string()),
5538
+ urls: nullishToOptional(z177.string().array())
5529
5539
  });
5530
- var ExportJobDocsDestinationResult = z176.object({
5531
- url: z176.string()
5540
+ var ExportJobDocsDestinationResult = z177.object({
5541
+ url: z177.string()
5532
5542
  });
5533
- var ExportJobResult = z176.object({
5534
- error: z176.string().optional(),
5543
+ var ExportJobResult = z177.object({
5544
+ error: z177.string().optional(),
5535
5545
  s3: nullishToOptional(ExportJobS3DestinationResult),
5536
5546
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5537
5547
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5540,24 +5550,24 @@ var ExportJobResult = z176.object({
5540
5550
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5541
5551
  logs: nullishToOptional(ExportJobLogEntry.array())
5542
5552
  });
5543
- var ExportJob = z176.object({
5544
- id: z176.string(),
5545
- createdAt: z176.coerce.date(),
5546
- finishedAt: z176.coerce.date().optional(),
5547
- designSystemId: z176.string(),
5548
- designSystemVersionId: z176.string(),
5549
- workspaceId: z176.string(),
5550
- scheduleId: z176.string().nullish(),
5551
- exporterId: z176.string(),
5552
- brandId: z176.string().optional(),
5553
- themeId: z176.string().optional(),
5554
- themePersistentIds: z176.string().array().optional(),
5555
- estimatedExecutionTime: z176.number().optional(),
5553
+ var ExportJob = z177.object({
5554
+ id: z177.string(),
5555
+ createdAt: z177.coerce.date(),
5556
+ finishedAt: z177.coerce.date().optional(),
5557
+ designSystemId: z177.string(),
5558
+ designSystemVersionId: z177.string(),
5559
+ workspaceId: z177.string(),
5560
+ scheduleId: z177.string().nullish(),
5561
+ exporterId: z177.string(),
5562
+ brandId: z177.string().optional(),
5563
+ themeId: z177.string().optional(),
5564
+ themePersistentIds: z177.string().array().optional(),
5565
+ estimatedExecutionTime: z177.number().optional(),
5556
5566
  status: ExportJobStatus,
5557
5567
  result: ExportJobResult.optional(),
5558
- createdByUserId: z176.string().optional(),
5568
+ createdByUserId: z177.string().optional(),
5559
5569
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
5560
- previewMode: z176.boolean().optional(),
5570
+ previewMode: z177.boolean().optional(),
5561
5571
  // Destinations
5562
5572
  ...ExportDestinationsMap.shape
5563
5573
  });
@@ -5571,36 +5581,36 @@ var ExportJobFindByFilter = ExportJob.pick({
5571
5581
  themeId: true,
5572
5582
  brandId: true
5573
5583
  }).extend({
5574
- destinations: z176.array(ExportJobDestinationType),
5584
+ destinations: z177.array(ExportJobDestinationType),
5575
5585
  docsEnvironment: PublishedDocEnvironment
5576
5586
  }).partial();
5577
5587
 
5578
5588
  // src/export/exporter-list-query.ts
5579
- import { z as z177 } from "zod";
5580
- var ExporterType2 = z177.enum(["documentation", "code"]);
5581
- var ListExporterQuery = z177.object({
5582
- limit: z177.number().optional(),
5583
- offset: z177.number().optional(),
5589
+ import { z as z178 } from "zod";
5590
+ var ExporterType2 = z178.enum(["documentation", "code"]);
5591
+ var ListExporterQuery = z178.object({
5592
+ limit: z178.number().optional(),
5593
+ offset: z178.number().optional(),
5584
5594
  type: ExporterType2.optional(),
5585
- search: z177.string().optional()
5595
+ search: z178.string().optional()
5586
5596
  });
5587
5597
 
5588
5598
  // src/export/exporter-workspace-membership-role.ts
5589
- import { z as z178 } from "zod";
5590
- var ExporterWorkspaceMembershipRole = z178.enum(["Owner", "OwnerArchived", "User"]);
5599
+ import { z as z179 } from "zod";
5600
+ var ExporterWorkspaceMembershipRole = z179.enum(["Owner", "OwnerArchived", "User"]);
5591
5601
 
5592
5602
  // src/export/exporter-workspace-membership.ts
5593
- import { z as z179 } from "zod";
5594
- var ExporterWorkspaceMembership = z179.object({
5595
- id: z179.string(),
5596
- workspaceId: z179.string(),
5597
- exporterId: z179.string(),
5603
+ import { z as z180 } from "zod";
5604
+ var ExporterWorkspaceMembership = z180.object({
5605
+ id: z180.string(),
5606
+ workspaceId: z180.string(),
5607
+ exporterId: z180.string(),
5598
5608
  role: ExporterWorkspaceMembershipRole
5599
5609
  });
5600
5610
 
5601
5611
  // src/feature-flags/feature-flags.ts
5602
- import { z as z180 } from "zod";
5603
- var FlaggedFeature = z180.enum([
5612
+ import { z as z181 } from "zod";
5613
+ var FlaggedFeature = z181.enum([
5604
5614
  "FigmaImporterV2",
5605
5615
  "DisableImporter",
5606
5616
  "VariablesOrder",
@@ -5610,20 +5620,20 @@ var FlaggedFeature = z180.enum([
5610
5620
  "NonCompatibleTypeChanges",
5611
5621
  "TypographyUseFontStyle"
5612
5622
  ]);
5613
- var FeatureFlagMap = z180.record(FlaggedFeature, z180.boolean());
5614
- var FeatureFlag = z180.object({
5615
- id: z180.string(),
5623
+ var FeatureFlagMap = z181.record(FlaggedFeature, z181.boolean());
5624
+ var FeatureFlag = z181.object({
5625
+ id: z181.string(),
5616
5626
  feature: FlaggedFeature,
5617
- createdAt: z180.coerce.date(),
5618
- enabled: z180.boolean(),
5619
- designSystemId: z180.string().optional()
5627
+ createdAt: z181.coerce.date(),
5628
+ enabled: z181.boolean(),
5629
+ designSystemId: z181.string().optional()
5620
5630
  });
5621
5631
 
5622
5632
  // src/integrations/external-oauth-request.ts
5623
- import { z as z182 } from "zod";
5633
+ import { z as z183 } from "zod";
5624
5634
 
5625
5635
  // src/integrations/oauth-providers.ts
5626
- import { z as z181 } from "zod";
5636
+ import { z as z182 } from "zod";
5627
5637
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5628
5638
  OAuthProviderNames2["Figma"] = "figma";
5629
5639
  OAuthProviderNames2["Azure"] = "azure";
@@ -5632,128 +5642,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5632
5642
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5633
5643
  return OAuthProviderNames2;
5634
5644
  })(OAuthProviderNames || {});
5635
- var OAuthProviderSchema = z181.nativeEnum(OAuthProviderNames);
5645
+ var OAuthProviderSchema = z182.nativeEnum(OAuthProviderNames);
5636
5646
  var OAuthProvider = OAuthProviderSchema.enum;
5637
5647
 
5638
5648
  // src/integrations/external-oauth-request.ts
5639
- var ExternalOAuthRequest = z182.object({
5640
- id: z182.string(),
5649
+ var ExternalOAuthRequest = z183.object({
5650
+ id: z183.string(),
5641
5651
  provider: OAuthProviderSchema,
5642
- userId: z182.string(),
5643
- state: z182.string(),
5644
- createdAt: z182.coerce.date()
5652
+ userId: z183.string(),
5653
+ state: z183.string(),
5654
+ createdAt: z183.coerce.date()
5645
5655
  });
5646
5656
 
5647
5657
  // src/integrations/git.ts
5648
- import { z as z183 } from "zod";
5649
- var GitObjectsQuery = z183.object({
5650
- organization: z183.string().optional(),
5658
+ import { z as z184 } from "zod";
5659
+ var GitObjectsQuery = z184.object({
5660
+ organization: z184.string().optional(),
5651
5661
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5652
- project: z183.string().optional(),
5662
+ project: z184.string().optional(),
5653
5663
  // Only for Bitbucket and Azure
5654
- repository: z183.string().optional(),
5664
+ repository: z184.string().optional(),
5655
5665
  // For all providers. For Gitlab, it's called "project".
5656
- branch: z183.string().optional(),
5666
+ branch: z184.string().optional(),
5657
5667
  // For all providers.
5658
- user: z183.string().optional()
5668
+ user: z184.string().optional()
5659
5669
  // Gitlab user
5660
5670
  });
5661
- var GitOrganization = z183.object({
5662
- id: z183.string(),
5663
- name: z183.string(),
5664
- url: z183.string(),
5665
- slug: z183.string()
5671
+ var GitOrganization = z184.object({
5672
+ id: z184.string(),
5673
+ name: z184.string(),
5674
+ url: z184.string(),
5675
+ slug: z184.string()
5666
5676
  });
5667
- var GitProject = z183.object({
5668
- id: z183.string(),
5669
- name: z183.string(),
5670
- url: z183.string(),
5671
- slug: z183.string()
5677
+ var GitProject = z184.object({
5678
+ id: z184.string(),
5679
+ name: z184.string(),
5680
+ url: z184.string(),
5681
+ slug: z184.string()
5672
5682
  });
5673
- var GitRepository = z183.object({
5674
- id: z183.string(),
5675
- name: z183.string(),
5676
- url: z183.string(),
5677
- slug: z183.string(),
5683
+ var GitRepository = z184.object({
5684
+ id: z184.string(),
5685
+ name: z184.string(),
5686
+ url: z184.string(),
5687
+ slug: z184.string(),
5678
5688
  /**
5679
5689
  * Can be undefined when:
5680
5690
  * - there are no branches in the repository yet
5681
5691
  * - Git provider doesn't expose this information on a repository via their API
5682
5692
  */
5683
- defaultBranch: z183.string().optional()
5693
+ defaultBranch: z184.string().optional()
5684
5694
  });
5685
- var GitBranch = z183.object({
5686
- name: z183.string(),
5687
- lastCommitId: z183.string()
5695
+ var GitBranch = z184.object({
5696
+ name: z184.string(),
5697
+ lastCommitId: z184.string()
5688
5698
  });
5689
5699
 
5690
5700
  // src/integrations/oauth-token.ts
5691
- import { z as z184 } from "zod";
5692
- var IntegrationTokenSchemaOld = z184.object({
5693
- id: z184.string(),
5701
+ import { z as z185 } from "zod";
5702
+ var IntegrationTokenSchemaOld = z185.object({
5703
+ id: z185.string(),
5694
5704
  provider: OAuthProviderSchema,
5695
- scope: z184.string(),
5696
- userId: z184.string(),
5697
- accessToken: z184.string(),
5698
- refreshToken: z184.string(),
5699
- expiresAt: z184.coerce.date(),
5700
- externalUserId: z184.string().nullish()
5705
+ scope: z185.string(),
5706
+ userId: z185.string(),
5707
+ accessToken: z185.string(),
5708
+ refreshToken: z185.string(),
5709
+ expiresAt: z185.coerce.date(),
5710
+ externalUserId: z185.string().nullish()
5701
5711
  });
5702
5712
 
5703
5713
  // src/integrations/workspace-oauth-requests.ts
5704
- import { z as z185 } from "zod";
5705
- var WorkspaceOAuthRequestSchema = z185.object({
5706
- id: z185.string(),
5707
- workspaceId: z185.string(),
5714
+ import { z as z186 } from "zod";
5715
+ var WorkspaceOAuthRequestSchema = z186.object({
5716
+ id: z186.string(),
5717
+ workspaceId: z186.string(),
5708
5718
  provider: OAuthProviderSchema,
5709
- userId: z185.string(),
5710
- createdAt: z185.coerce.date()
5719
+ userId: z186.string(),
5720
+ createdAt: z186.coerce.date()
5711
5721
  });
5712
5722
 
5713
5723
  // src/npm/npm-package.ts
5714
- import { z as z186 } from "zod";
5715
- var AnyRecord = z186.record(z186.any());
5724
+ import { z as z187 } from "zod";
5725
+ var AnyRecord = z187.record(z187.any());
5716
5726
  var NpmPackageVersionDist = AnyRecord.and(
5717
- z186.object({
5718
- tarball: z186.string()
5727
+ z187.object({
5728
+ tarball: z187.string()
5719
5729
  })
5720
5730
  );
5721
5731
  var NpmPackageVersion = AnyRecord.and(
5722
- z186.object({
5732
+ z187.object({
5723
5733
  dist: NpmPackageVersionDist
5724
5734
  })
5725
5735
  );
5726
5736
  var NpmPackage = AnyRecord.and(
5727
- z186.object({
5728
- _id: z186.string(),
5729
- name: z186.string(),
5737
+ z187.object({
5738
+ _id: z187.string(),
5739
+ name: z187.string(),
5730
5740
  // e.g. "latest": "1.2.3"
5731
- "dist-tags": z186.record(z186.string(), z186.string()),
5741
+ "dist-tags": z187.record(z187.string(), z187.string()),
5732
5742
  // "1.2.3": {...}
5733
- versions: z186.record(NpmPackageVersion)
5743
+ versions: z187.record(NpmPackageVersion)
5734
5744
  })
5735
5745
  );
5736
5746
 
5737
5747
  // src/npm/npm-proxy-token-payload.ts
5738
- import { z as z187 } from "zod";
5739
- var NpmProxyTokenPayload = z187.object({
5740
- npmProxyRegistryConfigId: z187.string()
5748
+ import { z as z188 } from "zod";
5749
+ var NpmProxyTokenPayload = z188.object({
5750
+ npmProxyRegistryConfigId: z188.string()
5741
5751
  });
5742
5752
 
5743
5753
  // src/tokens/personal-access-token.ts
5744
- import { z as z188 } from "zod";
5745
- var PersonalAccessToken = z188.object({
5746
- id: z188.string(),
5747
- userId: z188.string(),
5748
- workspaceId: z188.string().optional(),
5749
- designSystemId: z188.string().optional(),
5754
+ import { z as z189 } from "zod";
5755
+ var PersonalAccessToken = z189.object({
5756
+ id: z189.string(),
5757
+ userId: z189.string(),
5758
+ workspaceId: z189.string().optional(),
5759
+ designSystemId: z189.string().optional(),
5750
5760
  workspaceRole: WorkspaceRoleSchema.optional(),
5751
- name: z188.string(),
5752
- hidden: z188.boolean(),
5753
- token: z188.string(),
5754
- scope: z188.string().optional(),
5755
- createdAt: z188.coerce.date(),
5756
- expireAt: z188.coerce.date().optional()
5761
+ name: z189.string(),
5762
+ hidden: z189.boolean(),
5763
+ token: z189.string(),
5764
+ scope: z189.string().optional(),
5765
+ createdAt: z189.coerce.date(),
5766
+ expireAt: z189.coerce.date().optional()
5757
5767
  });
5758
5768
  export {
5759
5769
  Address,
@@ -6412,6 +6422,7 @@ export {
6412
6422
  WorkspaceRole,
6413
6423
  WorkspaceRoleSchema,
6414
6424
  WorkspaceRoom,
6425
+ WorkspaceUntypedData,
6415
6426
  WorkspaceWithDesignSystems,
6416
6427
  ZIndexTokenData,
6417
6428
  ZIndexUnit,