@supernova-studio/model 0.54.28 → 0.54.30

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
@@ -4436,7 +4436,7 @@ var DesignSystemDump = z131.object({
4436
4436
  });
4437
4437
 
4438
4438
  // src/data-dumps/user-data-dump.ts
4439
- import { z as z146 } from "zod";
4439
+ import { z as z145 } from "zod";
4440
4440
 
4441
4441
  // src/users/linked-integrations.ts
4442
4442
  import { z as z132 } from "zod";
@@ -4464,47 +4464,85 @@ var UserLinkedIntegrations = z132.object({
4464
4464
  bitbucket: IntegrationUserInfo.array().optional()
4465
4465
  });
4466
4466
 
4467
- // src/users/user-analytics-cleanup-schedule.ts
4467
+ // src/users/user.ts
4468
+ import { z as z134 } from "zod";
4469
+
4470
+ // src/users/user-profile.ts
4468
4471
  import { z as z133 } from "zod";
4469
- var UserAnalyticsCleanupSchedule = z133.object({
4470
- userId: z133.string(),
4471
- createdAt: z133.coerce.date(),
4472
- deleteAt: z133.coerce.date()
4472
+ var UserOnboardingDepartment = z133.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4473
+ var UserOnboardingJobLevel = z133.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4474
+ var UserOnboarding = z133.object({
4475
+ companyName: z133.string().optional(),
4476
+ numberOfPeopleInOrg: z133.string().optional(),
4477
+ numberOfPeopleInDesignTeam: z133.string().optional(),
4478
+ department: UserOnboardingDepartment.optional(),
4479
+ jobTitle: z133.string().optional(),
4480
+ phase: z133.string().optional(),
4481
+ jobLevel: UserOnboardingJobLevel.optional(),
4482
+ designSystemName: z133.string().optional(),
4483
+ defaultDestination: z133.string().optional(),
4484
+ figmaUrl: z133.string().optional(),
4485
+ isPageDraftOnboardingFinished: z133.boolean().optional(),
4486
+ isApprovalsOnboardingFinished: z133.boolean().optional()
4487
+ });
4488
+ var UserProfile = z133.object({
4489
+ name: z133.string(),
4490
+ avatar: z133.string().optional(),
4491
+ nickname: z133.string().optional(),
4492
+ onboarding: UserOnboarding.optional()
4473
4493
  });
4474
- var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4475
- createdAt: true
4494
+ var UserProfileUpdate = UserProfile.partial().omit({
4495
+ avatar: true
4476
4496
  });
4477
4497
 
4478
- // src/users/user-create.ts
4479
- import { z as z134 } from "zod";
4480
- var CreateUserInput = z134.object({
4498
+ // src/users/user.ts
4499
+ var UserSource = z134.enum(["SignUp", "Invite", "SSO"]);
4500
+ var User = z134.object({
4501
+ id: z134.string(),
4481
4502
  email: z134.string(),
4482
- name: z134.string(),
4483
- username: z134.string()
4503
+ emailVerified: z134.boolean(),
4504
+ createdAt: z134.coerce.date(),
4505
+ trialExpiresAt: z134.coerce.date().optional(),
4506
+ profile: UserProfile,
4507
+ linkedIntegrations: UserLinkedIntegrations.optional(),
4508
+ loggedOutAt: z134.coerce.date().optional(),
4509
+ isProtected: z134.boolean(),
4510
+ source: UserSource.optional()
4484
4511
  });
4485
4512
 
4486
- // src/users/user-identity.ts
4513
+ // src/users/user-analytics-cleanup-schedule.ts
4487
4514
  import { z as z135 } from "zod";
4488
- var UserIdentity = z135.object({
4489
- id: z135.string(),
4490
- userId: z135.string()
4515
+ var UserAnalyticsCleanupSchedule = z135.object({
4516
+ userId: z135.string(),
4517
+ createdAt: z135.coerce.date(),
4518
+ deleteAt: z135.coerce.date()
4519
+ });
4520
+ var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4521
+ createdAt: true
4491
4522
  });
4492
4523
 
4493
- // src/users/user-minified.ts
4524
+ // src/users/user-identity.ts
4494
4525
  import { z as z136 } from "zod";
4495
- var UserMinified = z136.object({
4526
+ var UserIdentity = z136.object({
4496
4527
  id: z136.string(),
4497
- name: z136.string(),
4498
- email: z136.string(),
4499
- avatar: z136.string().optional()
4528
+ userId: z136.string()
4500
4529
  });
4501
4530
 
4502
- // src/users/user-notification-settings.ts
4531
+ // src/users/user-minified.ts
4503
4532
  import { z as z137 } from "zod";
4504
- var LiveblocksNotificationSettings = z137.object({
4505
- sendCommentNotificationEmails: z137.boolean()
4533
+ var UserMinified = z137.object({
4534
+ id: z137.string(),
4535
+ name: z137.string(),
4536
+ email: z137.string(),
4537
+ avatar: z137.string().optional()
4506
4538
  });
4507
- var UserNotificationSettings = z137.object({
4539
+
4540
+ // src/users/user-notification-settings.ts
4541
+ import { z as z138 } from "zod";
4542
+ var LiveblocksNotificationSettings = z138.object({
4543
+ sendCommentNotificationEmails: z138.boolean()
4544
+ });
4545
+ var UserNotificationSettings = z138.object({
4508
4546
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4509
4547
  });
4510
4548
  var defaultNotificationSettings = {
@@ -4513,34 +4551,6 @@ var defaultNotificationSettings = {
4513
4551
  }
4514
4552
  };
4515
4553
 
4516
- // src/users/user-profile.ts
4517
- import { z as z138 } from "zod";
4518
- var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4519
- var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4520
- var UserOnboarding = z138.object({
4521
- companyName: z138.string().optional(),
4522
- numberOfPeopleInOrg: z138.string().optional(),
4523
- numberOfPeopleInDesignTeam: z138.string().optional(),
4524
- department: UserOnboardingDepartment.optional(),
4525
- jobTitle: z138.string().optional(),
4526
- phase: z138.string().optional(),
4527
- jobLevel: UserOnboardingJobLevel.optional(),
4528
- designSystemName: z138.string().optional(),
4529
- defaultDestination: z138.string().optional(),
4530
- figmaUrl: z138.string().optional(),
4531
- isPageDraftOnboardingFinished: z138.boolean().optional(),
4532
- isApprovalsOnboardingFinished: z138.boolean().optional()
4533
- });
4534
- var UserProfile = z138.object({
4535
- name: z138.string(),
4536
- avatar: z138.string().optional(),
4537
- nickname: z138.string().optional(),
4538
- onboarding: UserOnboarding.optional()
4539
- });
4540
- var UserProfileUpdate = UserProfile.partial().omit({
4541
- avatar: true
4542
- });
4543
-
4544
4554
  // src/users/user-test.ts
4545
4555
  import { z as z139 } from "zod";
4546
4556
  var UserTest = z139.object({
@@ -4548,62 +4558,48 @@ var UserTest = z139.object({
4548
4558
  email: z139.string()
4549
4559
  });
4550
4560
 
4551
- // src/users/user.ts
4552
- import { z as z140 } from "zod";
4553
- var User = z140.object({
4554
- id: z140.string(),
4555
- email: z140.string(),
4556
- emailVerified: z140.boolean(),
4557
- createdAt: z140.coerce.date(),
4558
- trialExpiresAt: z140.coerce.date().optional(),
4559
- profile: UserProfile,
4560
- linkedIntegrations: UserLinkedIntegrations.optional(),
4561
- loggedOutAt: z140.coerce.date().optional(),
4562
- isProtected: z140.boolean()
4563
- });
4564
-
4565
4561
  // src/data-dumps/workspace-dump.ts
4566
- import { z as z145 } from "zod";
4562
+ import { z as z144 } from "zod";
4567
4563
 
4568
4564
  // src/integrations/integration.ts
4569
- import { z as z141 } from "zod";
4570
- var IntegrationDesignSystem = z141.object({
4571
- designSystemId: z141.string(),
4572
- brandId: z141.string(),
4573
- title: z141.string().optional(),
4574
- userId: z141.string().optional(),
4575
- date: z141.coerce.date().optional()
4576
- });
4577
- var IntegrationCredentialsType = z141.enum(["OAuth2", "PAT", "GithubApp"]);
4578
- var IntegrationCredentialsState = z141.enum(["Active", "Inactive"]);
4579
- var IntegrationCredentialsProfile = z141.object({
4580
- id: nullishToOptional(z141.string()),
4581
- email: nullishToOptional(z141.string()),
4582
- handle: nullishToOptional(z141.string()),
4583
- type: nullishToOptional(z141.string()),
4584
- avatarUrl: nullishToOptional(z141.string()),
4585
- organization: nullishToOptional(z141.string()),
4586
- collection: nullishToOptional(z141.string())
4587
- });
4588
- var IntegrationCredentials = z141.object({
4589
- id: z141.string(),
4565
+ import { z as z140 } from "zod";
4566
+ var IntegrationDesignSystem = z140.object({
4567
+ designSystemId: z140.string(),
4568
+ brandId: z140.string(),
4569
+ title: z140.string().optional(),
4570
+ userId: z140.string().optional(),
4571
+ date: z140.coerce.date().optional()
4572
+ });
4573
+ var IntegrationCredentialsType = z140.enum(["OAuth2", "PAT", "GithubApp"]);
4574
+ var IntegrationCredentialsState = z140.enum(["Active", "Inactive"]);
4575
+ var IntegrationCredentialsProfile = z140.object({
4576
+ id: nullishToOptional(z140.string()),
4577
+ email: nullishToOptional(z140.string()),
4578
+ handle: nullishToOptional(z140.string()),
4579
+ type: nullishToOptional(z140.string()),
4580
+ avatarUrl: nullishToOptional(z140.string()),
4581
+ organization: nullishToOptional(z140.string()),
4582
+ collection: nullishToOptional(z140.string())
4583
+ });
4584
+ var IntegrationCredentials = z140.object({
4585
+ id: z140.string(),
4590
4586
  type: IntegrationCredentialsType,
4591
- integrationId: z141.string(),
4592
- accessToken: z141.string(),
4593
- userId: z141.string(),
4594
- createdAt: z141.coerce.date(),
4595
- refreshToken: z141.string().optional(),
4596
- tokenName: z141.string().optional(),
4597
- expiresAt: z141.coerce.date().optional(),
4598
- refreshedAt: z141.coerce.date().optional(),
4599
- username: z141.string().optional(),
4600
- appInstallationId: z141.string().optional(),
4587
+ integrationId: z140.string(),
4588
+ accessToken: z140.string(),
4589
+ userId: z140.string(),
4590
+ createdAt: z140.coerce.date(),
4591
+ refreshToken: z140.string().optional(),
4592
+ tokenName: z140.string().optional(),
4593
+ expiresAt: z140.coerce.date().optional(),
4594
+ refreshedAt: z140.coerce.date().optional(),
4595
+ username: z140.string().optional(),
4596
+ appInstallationId: z140.string().optional(),
4601
4597
  profile: IntegrationCredentialsProfile.optional(),
4602
- customUrl: z141.string().optional(),
4598
+ customUrl: z140.string().optional(),
4603
4599
  state: IntegrationCredentialsState,
4604
4600
  user: UserMinified.optional()
4605
4601
  });
4606
- var ExtendedIntegrationType = z141.enum([
4602
+ var ExtendedIntegrationType = z140.enum([
4607
4603
  "Figma",
4608
4604
  "Github",
4609
4605
  "Gitlab",
@@ -4614,26 +4610,26 @@ var ExtendedIntegrationType = z141.enum([
4614
4610
  ]);
4615
4611
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4616
4612
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4617
- var Integration = z141.object({
4618
- id: z141.string(),
4619
- workspaceId: z141.string(),
4613
+ var Integration = z140.object({
4614
+ id: z140.string(),
4615
+ workspaceId: z140.string(),
4620
4616
  type: IntegrationType,
4621
- createdAt: z141.coerce.date(),
4622
- integrationCredentials: z141.array(IntegrationCredentials).optional()
4623
- });
4624
- var IntegrationToken = z141.object({
4625
- access_token: z141.string(),
4626
- refresh_token: z141.string().optional(),
4627
- expires_in: z141.union([z141.number().optional(), z141.string().optional()]),
4628
- token_type: z141.string().optional(),
4629
- token_name: z141.string().optional(),
4630
- token_azure_organization_name: z141.string().optional(),
4617
+ createdAt: z140.coerce.date(),
4618
+ integrationCredentials: z140.array(IntegrationCredentials).optional()
4619
+ });
4620
+ var IntegrationToken = z140.object({
4621
+ access_token: z140.string(),
4622
+ refresh_token: z140.string().optional(),
4623
+ expires_in: z140.union([z140.number().optional(), z140.string().optional()]),
4624
+ token_type: z140.string().optional(),
4625
+ token_name: z140.string().optional(),
4626
+ token_azure_organization_name: z140.string().optional(),
4631
4627
  // Azure Cloud PAT only
4632
- token_azure_collection_name: z141.string().optional(),
4628
+ token_azure_collection_name: z140.string().optional(),
4633
4629
  // Azure Server PAT only
4634
- token_bitbucket_username: z141.string().optional(),
4630
+ token_bitbucket_username: z140.string().optional(),
4635
4631
  // Bitbucket only
4636
- custom_url: z141.string().optional().transform((value) => {
4632
+ custom_url: z140.string().optional().transform((value) => {
4637
4633
  if (!value?.trim())
4638
4634
  return void 0;
4639
4635
  return formatCustomUrl(value);
@@ -4672,99 +4668,99 @@ function formatCustomUrl(url) {
4672
4668
 
4673
4669
  // src/workspace/workspace.ts
4674
4670
  import IPCIDR from "ip-cidr";
4675
- import { z as z144 } from "zod";
4671
+ import { z as z143 } from "zod";
4676
4672
 
4677
4673
  // src/workspace/npm-registry-settings.ts
4678
- import { z as z142 } from "zod";
4679
- var NpmRegistryAuthType = z142.enum(["Basic", "Bearer", "None", "Custom"]);
4680
- var NpmRegistryType = z142.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4681
- var NpmRegistryBasicAuthConfig = z142.object({
4682
- authType: z142.literal(NpmRegistryAuthType.Enum.Basic),
4683
- username: z142.string(),
4684
- password: z142.string()
4685
- });
4686
- var NpmRegistryBearerAuthConfig = z142.object({
4687
- authType: z142.literal(NpmRegistryAuthType.Enum.Bearer),
4688
- accessToken: z142.string()
4689
- });
4690
- var NpmRegistryNoAuthConfig = z142.object({
4691
- authType: z142.literal(NpmRegistryAuthType.Enum.None)
4692
- });
4693
- var NpmRegistrCustomAuthConfig = z142.object({
4694
- authType: z142.literal(NpmRegistryAuthType.Enum.Custom),
4695
- authHeaderName: z142.string(),
4696
- authHeaderValue: z142.string()
4697
- });
4698
- var NpmRegistryAuthConfig = z142.discriminatedUnion("authType", [
4674
+ import { z as z141 } from "zod";
4675
+ var NpmRegistryAuthType = z141.enum(["Basic", "Bearer", "None", "Custom"]);
4676
+ var NpmRegistryType = z141.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4677
+ var NpmRegistryBasicAuthConfig = z141.object({
4678
+ authType: z141.literal(NpmRegistryAuthType.Enum.Basic),
4679
+ username: z141.string(),
4680
+ password: z141.string()
4681
+ });
4682
+ var NpmRegistryBearerAuthConfig = z141.object({
4683
+ authType: z141.literal(NpmRegistryAuthType.Enum.Bearer),
4684
+ accessToken: z141.string()
4685
+ });
4686
+ var NpmRegistryNoAuthConfig = z141.object({
4687
+ authType: z141.literal(NpmRegistryAuthType.Enum.None)
4688
+ });
4689
+ var NpmRegistrCustomAuthConfig = z141.object({
4690
+ authType: z141.literal(NpmRegistryAuthType.Enum.Custom),
4691
+ authHeaderName: z141.string(),
4692
+ authHeaderValue: z141.string()
4693
+ });
4694
+ var NpmRegistryAuthConfig = z141.discriminatedUnion("authType", [
4699
4695
  NpmRegistryBasicAuthConfig,
4700
4696
  NpmRegistryBearerAuthConfig,
4701
4697
  NpmRegistryNoAuthConfig,
4702
4698
  NpmRegistrCustomAuthConfig
4703
4699
  ]);
4704
- var NpmRegistryConfigBase = z142.object({
4700
+ var NpmRegistryConfigBase = z141.object({
4705
4701
  registryType: NpmRegistryType,
4706
- enabledScopes: z142.array(z142.string()),
4707
- customRegistryUrl: z142.string().optional(),
4708
- bypassProxy: z142.boolean().default(false),
4709
- npmProxyRegistryConfigId: z142.string().optional(),
4710
- npmProxyVersion: z142.number().optional()
4702
+ enabledScopes: z141.array(z141.string()),
4703
+ customRegistryUrl: z141.string().optional(),
4704
+ bypassProxy: z141.boolean().default(false),
4705
+ npmProxyRegistryConfigId: z141.string().optional(),
4706
+ npmProxyVersion: z141.number().optional()
4711
4707
  });
4712
4708
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4713
4709
 
4714
4710
  // src/workspace/sso-provider.ts
4715
- import { z as z143 } from "zod";
4716
- var SsoProvider = z143.object({
4717
- providerId: z143.string(),
4718
- defaultAutoInviteValue: z143.boolean(),
4719
- autoInviteDomains: z143.record(z143.string(), z143.boolean()),
4720
- skipDocsSupernovaLogin: z143.boolean(),
4721
- areInvitesDisabled: z143.boolean(),
4722
- isTestMode: z143.boolean(),
4723
- emailDomains: z143.array(z143.string()),
4724
- metadataXml: z143.string().nullish()
4711
+ import { z as z142 } from "zod";
4712
+ var SsoProvider = z142.object({
4713
+ providerId: z142.string(),
4714
+ defaultAutoInviteValue: z142.boolean(),
4715
+ autoInviteDomains: z142.record(z142.string(), z142.boolean()),
4716
+ skipDocsSupernovaLogin: z142.boolean(),
4717
+ areInvitesDisabled: z142.boolean(),
4718
+ isTestMode: z142.boolean(),
4719
+ emailDomains: z142.array(z142.string()),
4720
+ metadataXml: z142.string().nullish()
4725
4721
  });
4726
4722
 
4727
4723
  // src/workspace/workspace.ts
4728
4724
  var isValidCIDR = (value) => {
4729
4725
  return IPCIDR.isValidAddress(value);
4730
4726
  };
4731
- var WorkspaceIpWhitelistEntry = z144.object({
4732
- isEnabled: z144.boolean(),
4733
- name: z144.string(),
4734
- range: z144.string().refine(isValidCIDR, {
4727
+ var WorkspaceIpWhitelistEntry = z143.object({
4728
+ isEnabled: z143.boolean(),
4729
+ name: z143.string(),
4730
+ range: z143.string().refine(isValidCIDR, {
4735
4731
  message: "Invalid IP CIDR"
4736
4732
  })
4737
4733
  });
4738
- var WorkspaceIpSettings = z144.object({
4739
- isEnabledForCloud: z144.boolean(),
4740
- isEnabledForDocs: z144.boolean(),
4741
- entries: z144.array(WorkspaceIpWhitelistEntry)
4734
+ var WorkspaceIpSettings = z143.object({
4735
+ isEnabledForCloud: z143.boolean(),
4736
+ isEnabledForDocs: z143.boolean(),
4737
+ entries: z143.array(WorkspaceIpWhitelistEntry)
4742
4738
  });
4743
- var WorkspaceProfile = z144.object({
4744
- name: z144.string(),
4745
- handle: z144.string(),
4746
- color: z144.string(),
4747
- avatar: nullishToOptional(z144.string()),
4739
+ var WorkspaceProfile = z143.object({
4740
+ name: z143.string(),
4741
+ handle: z143.string(),
4742
+ color: z143.string(),
4743
+ avatar: nullishToOptional(z143.string()),
4748
4744
  billingDetails: nullishToOptional(BillingDetails)
4749
4745
  });
4750
4746
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4751
4747
  avatar: true
4752
4748
  });
4753
- var Workspace = z144.object({
4754
- id: z144.string(),
4749
+ var Workspace = z143.object({
4750
+ id: z143.string(),
4755
4751
  profile: WorkspaceProfile,
4756
4752
  subscription: Subscription,
4757
4753
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4758
4754
  sso: nullishToOptional(SsoProvider),
4759
4755
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4760
4756
  });
4761
- var WorkspaceWithDesignSystems = z144.object({
4757
+ var WorkspaceWithDesignSystems = z143.object({
4762
4758
  workspace: Workspace,
4763
- designSystems: z144.array(DesignSystem)
4759
+ designSystems: z143.array(DesignSystem)
4764
4760
  });
4765
4761
 
4766
4762
  // src/data-dumps/workspace-dump.ts
4767
- var WorkspaceDump = z145.object({
4763
+ var WorkspaceDump = z144.object({
4768
4764
  workspace: Workspace,
4769
4765
  designSystems: DesignSystemDump.array(),
4770
4766
  codeIntegration: CodeIntegrationDump,
@@ -4772,94 +4768,94 @@ var WorkspaceDump = z145.object({
4772
4768
  });
4773
4769
 
4774
4770
  // src/data-dumps/user-data-dump.ts
4775
- var UserDump = z146.object({
4771
+ var UserDump = z145.object({
4776
4772
  user: User,
4777
4773
  workspaces: WorkspaceDump.array()
4778
4774
  });
4779
4775
 
4780
4776
  // src/docs-server/session.ts
4781
- import { z as z147 } from "zod";
4782
- var NpmProxyToken = z147.object({
4783
- access: z147.string(),
4784
- expiresAt: z147.number()
4777
+ import { z as z146 } from "zod";
4778
+ var NpmProxyToken = z146.object({
4779
+ access: z146.string(),
4780
+ expiresAt: z146.number()
4785
4781
  });
4786
- var SessionData = z147.object({
4787
- returnToUrl: z147.string().optional(),
4782
+ var SessionData = z146.object({
4783
+ returnToUrl: z146.string().optional(),
4788
4784
  npmProxyToken: NpmProxyToken.optional()
4789
4785
  });
4790
- var Session = z147.object({
4791
- id: z147.string(),
4792
- expiresAt: z147.coerce.date(),
4793
- userId: z147.string().nullable(),
4786
+ var Session = z146.object({
4787
+ id: z146.string(),
4788
+ expiresAt: z146.coerce.date(),
4789
+ userId: z146.string().nullable(),
4794
4790
  data: SessionData
4795
4791
  });
4796
- var AuthTokens = z147.object({
4797
- access: z147.string(),
4798
- refresh: z147.string()
4792
+ var AuthTokens = z146.object({
4793
+ access: z146.string(),
4794
+ refresh: z146.string()
4799
4795
  });
4800
- var UserSession = z147.object({
4796
+ var UserSession = z146.object({
4801
4797
  session: Session,
4802
4798
  user: User.nullable()
4803
4799
  });
4804
4800
 
4805
4801
  // src/events/base.ts
4806
- import { z as z150 } from "zod";
4802
+ import { z as z149 } from "zod";
4807
4803
 
4808
4804
  // src/events/data-source-imported.ts
4809
- import { z as z148 } from "zod";
4810
- var EventDataSourceImported = z148.object({
4811
- type: z148.literal("DataSourceImported"),
4812
- workspaceId: z148.string(),
4813
- designSystemId: z148.string()
4805
+ import { z as z147 } from "zod";
4806
+ var EventDataSourceImported = z147.object({
4807
+ type: z147.literal("DataSourceImported"),
4808
+ workspaceId: z147.string(),
4809
+ designSystemId: z147.string()
4814
4810
  });
4815
4811
 
4816
4812
  // src/events/version-released.ts
4817
- import { z as z149 } from "zod";
4818
- var EventVersionReleased = z149.object({
4819
- type: z149.literal("DesignSystemVersionReleased"),
4820
- workspaceId: z149.string(),
4821
- designSystemId: z149.string(),
4822
- versionId: z149.string()
4813
+ import { z as z148 } from "zod";
4814
+ var EventVersionReleased = z148.object({
4815
+ type: z148.literal("DesignSystemVersionReleased"),
4816
+ workspaceId: z148.string(),
4817
+ designSystemId: z148.string(),
4818
+ versionId: z148.string()
4823
4819
  });
4824
4820
 
4825
4821
  // src/events/base.ts
4826
- var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4822
+ var Event = z149.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4827
4823
 
4828
4824
  // src/export/export-runner/export-context.ts
4829
- import { z as z151 } from "zod";
4830
- var ExportJobDocumentationContext = z151.object({
4831
- isSingleVersionDocs: z151.boolean(),
4832
- versionSlug: z151.string(),
4825
+ import { z as z150 } from "zod";
4826
+ var ExportJobDocumentationContext = z150.object({
4827
+ isSingleVersionDocs: z150.boolean(),
4828
+ versionSlug: z150.string(),
4833
4829
  environment: PublishedDocEnvironment
4834
4830
  });
4835
- var ExportJobContext = z151.object({
4836
- apiUrl: z151.string(),
4837
- accessToken: z151.string(),
4838
- designSystemId: z151.string(),
4839
- designSystemName: z151.string(),
4840
- exporterId: z151.string(),
4841
- versionId: z151.string(),
4842
- brandId: z151.string().optional(),
4843
- themeId: z151.string().optional(),
4844
- themePersistentIds: z151.string().array().optional(),
4845
- exporterName: z151.string(),
4846
- exporterPackageUrl: z151.string(),
4831
+ var ExportJobContext = z150.object({
4832
+ apiUrl: z150.string(),
4833
+ accessToken: z150.string(),
4834
+ designSystemId: z150.string(),
4835
+ designSystemName: z150.string(),
4836
+ exporterId: z150.string(),
4837
+ versionId: z150.string(),
4838
+ brandId: z150.string().optional(),
4839
+ themeId: z150.string().optional(),
4840
+ themePersistentIds: z150.string().array().optional(),
4841
+ exporterName: z150.string(),
4842
+ exporterPackageUrl: z150.string(),
4847
4843
  exporterPropertyValues: ExporterPropertyValue.array(),
4848
4844
  documentation: ExportJobDocumentationContext.optional()
4849
4845
  });
4850
4846
 
4851
4847
  // src/export/export-runner/exporter-payload.ts
4852
- import { z as z152 } from "zod";
4853
- var ExporterFunctionPayload = z152.object({
4854
- exportJobId: z152.string(),
4855
- exportContextId: z152.string(),
4856
- designSystemId: z152.string(),
4857
- workspaceId: z152.string()
4848
+ import { z as z151 } from "zod";
4849
+ var ExporterFunctionPayload = z151.object({
4850
+ exportJobId: z151.string(),
4851
+ exportContextId: z151.string(),
4852
+ designSystemId: z151.string(),
4853
+ workspaceId: z151.string()
4858
4854
  });
4859
4855
 
4860
4856
  // src/export/export-jobs.ts
4861
- import { z as z153 } from "zod";
4862
- var ExportJobDestinationType = z153.enum([
4857
+ import { z as z152 } from "zod";
4858
+ var ExportJobDestinationType = z152.enum([
4863
4859
  "s3",
4864
4860
  "webhookUrl",
4865
4861
  "github",
@@ -4868,30 +4864,30 @@ var ExportJobDestinationType = z153.enum([
4868
4864
  "gitlab",
4869
4865
  "bitbucket"
4870
4866
  ]);
4871
- var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
4872
- var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
4873
- var ExportJobLogEntry = z153.object({
4874
- id: z153.string().optional(),
4875
- time: z153.coerce.date(),
4867
+ var ExportJobStatus = z152.enum(["InProgress", "Success", "Failed", "Timeout"]);
4868
+ var ExportJobLogEntryType = z152.enum(["success", "info", "warning", "error", "user"]);
4869
+ var ExportJobLogEntry = z152.object({
4870
+ id: z152.string().optional(),
4871
+ time: z152.coerce.date(),
4876
4872
  type: ExportJobLogEntryType,
4877
- message: z153.string()
4873
+ message: z152.string()
4878
4874
  });
4879
- var ExportJobPullRequestDestinationResult = z153.object({
4880
- pullRequestUrl: z153.string()
4875
+ var ExportJobPullRequestDestinationResult = z152.object({
4876
+ pullRequestUrl: z152.string()
4881
4877
  });
4882
- var ExportJobS3DestinationResult = z153.object({
4883
- bucket: z153.string(),
4884
- urlPrefix: z153.string().optional(),
4885
- path: z153.string(),
4886
- files: z153.array(z153.string()),
4887
- url: nullishToOptional(z153.string()),
4888
- urls: nullishToOptional(z153.string().array())
4878
+ var ExportJobS3DestinationResult = z152.object({
4879
+ bucket: z152.string(),
4880
+ urlPrefix: z152.string().optional(),
4881
+ path: z152.string(),
4882
+ files: z152.array(z152.string()),
4883
+ url: nullishToOptional(z152.string()),
4884
+ urls: nullishToOptional(z152.string().array())
4889
4885
  });
4890
- var ExportJobDocsDestinationResult = z153.object({
4891
- url: z153.string()
4886
+ var ExportJobDocsDestinationResult = z152.object({
4887
+ url: z152.string()
4892
4888
  });
4893
- var ExportJobResult = z153.object({
4894
- error: z153.string().optional(),
4889
+ var ExportJobResult = z152.object({
4890
+ error: z152.string().optional(),
4895
4891
  s3: nullishToOptional(ExportJobS3DestinationResult),
4896
4892
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4897
4893
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4900,22 +4896,22 @@ var ExportJobResult = z153.object({
4900
4896
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4901
4897
  logs: nullishToOptional(ExportJobLogEntry.array())
4902
4898
  });
4903
- var ExportJob = z153.object({
4904
- id: z153.string(),
4905
- createdAt: z153.coerce.date(),
4906
- finishedAt: z153.coerce.date().optional(),
4907
- designSystemId: z153.string(),
4908
- designSystemVersionId: z153.string(),
4909
- workspaceId: z153.string(),
4910
- scheduleId: z153.string().nullish(),
4911
- exporterId: z153.string(),
4912
- brandId: z153.string().optional(),
4913
- themeId: z153.string().optional(),
4914
- themePersistentIds: z153.string().array().optional(),
4915
- estimatedExecutionTime: z153.number().optional(),
4899
+ var ExportJob = z152.object({
4900
+ id: z152.string(),
4901
+ createdAt: z152.coerce.date(),
4902
+ finishedAt: z152.coerce.date().optional(),
4903
+ designSystemId: z152.string(),
4904
+ designSystemVersionId: z152.string(),
4905
+ workspaceId: z152.string(),
4906
+ scheduleId: z152.string().nullish(),
4907
+ exporterId: z152.string(),
4908
+ brandId: z152.string().optional(),
4909
+ themeId: z152.string().optional(),
4910
+ themePersistentIds: z152.string().array().optional(),
4911
+ estimatedExecutionTime: z152.number().optional(),
4916
4912
  status: ExportJobStatus,
4917
4913
  result: ExportJobResult.optional(),
4918
- createdByUserId: z153.string().optional(),
4914
+ createdByUserId: z152.string().optional(),
4919
4915
  // Destinations
4920
4916
  ...ExportDestinationsMap.shape
4921
4917
  });
@@ -4929,40 +4925,40 @@ var ExportJobFindByFilter = ExportJob.pick({
4929
4925
  themeId: true,
4930
4926
  brandId: true
4931
4927
  }).extend({
4932
- destinations: z153.array(ExportJobDestinationType),
4928
+ destinations: z152.array(ExportJobDestinationType),
4933
4929
  docsEnvironment: PublishedDocEnvironment
4934
4930
  }).partial();
4935
4931
 
4936
4932
  // src/export/exporter-workspace-membership-role.ts
4937
- import { z as z154 } from "zod";
4938
- var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
4933
+ import { z as z153 } from "zod";
4934
+ var ExporterWorkspaceMembershipRole = z153.enum(["Owner", "OwnerArchived", "User"]);
4939
4935
 
4940
4936
  // src/export/exporter-workspace-membership.ts
4941
- import { z as z155 } from "zod";
4942
- var ExporterWorkspaceMembership = z155.object({
4943
- id: z155.string(),
4944
- workspaceId: z155.string(),
4945
- exporterId: z155.string(),
4937
+ import { z as z154 } from "zod";
4938
+ var ExporterWorkspaceMembership = z154.object({
4939
+ id: z154.string(),
4940
+ workspaceId: z154.string(),
4941
+ exporterId: z154.string(),
4946
4942
  role: ExporterWorkspaceMembershipRole
4947
4943
  });
4948
4944
 
4949
4945
  // src/feature-flags/feature-flags.ts
4950
- import { z as z156 } from "zod";
4951
- var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4952
- var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
4953
- var FeatureFlag = z156.object({
4954
- id: z156.string(),
4946
+ import { z as z155 } from "zod";
4947
+ var FlaggedFeature = z155.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4948
+ var FeatureFlagMap = z155.record(FlaggedFeature, z155.boolean());
4949
+ var FeatureFlag = z155.object({
4950
+ id: z155.string(),
4955
4951
  feature: FlaggedFeature,
4956
- createdAt: z156.coerce.date(),
4957
- enabled: z156.boolean(),
4958
- designSystemId: z156.string().optional()
4952
+ createdAt: z155.coerce.date(),
4953
+ enabled: z155.boolean(),
4954
+ designSystemId: z155.string().optional()
4959
4955
  });
4960
4956
 
4961
4957
  // src/integrations/external-oauth-request.ts
4962
- import { z as z158 } from "zod";
4958
+ import { z as z157 } from "zod";
4963
4959
 
4964
4960
  // src/integrations/oauth-providers.ts
4965
- import { z as z157 } from "zod";
4961
+ import { z as z156 } from "zod";
4966
4962
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4967
4963
  OAuthProviderNames2["Figma"] = "figma";
4968
4964
  OAuthProviderNames2["Azure"] = "azure";
@@ -4971,137 +4967,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4971
4967
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4972
4968
  return OAuthProviderNames2;
4973
4969
  })(OAuthProviderNames || {});
4974
- var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
4970
+ var OAuthProviderSchema = z156.nativeEnum(OAuthProviderNames);
4975
4971
  var OAuthProvider = OAuthProviderSchema.enum;
4976
4972
 
4977
4973
  // src/integrations/external-oauth-request.ts
4978
- var ExternalOAuthRequest = z158.object({
4979
- id: z158.string(),
4974
+ var ExternalOAuthRequest = z157.object({
4975
+ id: z157.string(),
4980
4976
  provider: OAuthProviderSchema,
4981
- userId: z158.string(),
4982
- state: z158.string(),
4983
- createdAt: z158.coerce.date()
4977
+ userId: z157.string(),
4978
+ state: z157.string(),
4979
+ createdAt: z157.coerce.date()
4984
4980
  });
4985
4981
 
4986
4982
  // src/integrations/git.ts
4987
- import { z as z159 } from "zod";
4988
- var GitObjectsQuery = z159.object({
4989
- organization: z159.string().optional(),
4983
+ import { z as z158 } from "zod";
4984
+ var GitObjectsQuery = z158.object({
4985
+ organization: z158.string().optional(),
4990
4986
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4991
- project: z159.string().optional(),
4987
+ project: z158.string().optional(),
4992
4988
  // Only for Bitbucket and Azure
4993
- repository: z159.string().optional(),
4989
+ repository: z158.string().optional(),
4994
4990
  // For all providers. For Gitlab, it's called "project".
4995
- branch: z159.string().optional(),
4991
+ branch: z158.string().optional(),
4996
4992
  // For all providers.
4997
- user: z159.string().optional()
4993
+ user: z158.string().optional()
4998
4994
  // Gitlab user
4999
4995
  });
5000
- var GitOrganization = z159.object({
5001
- id: z159.string(),
5002
- name: z159.string(),
5003
- url: z159.string(),
5004
- slug: z159.string()
4996
+ var GitOrganization = z158.object({
4997
+ id: z158.string(),
4998
+ name: z158.string(),
4999
+ url: z158.string(),
5000
+ slug: z158.string()
5005
5001
  });
5006
- var GitProject = z159.object({
5007
- id: z159.string(),
5008
- name: z159.string(),
5009
- url: z159.string(),
5010
- slug: z159.string()
5002
+ var GitProject = z158.object({
5003
+ id: z158.string(),
5004
+ name: z158.string(),
5005
+ url: z158.string(),
5006
+ slug: z158.string()
5011
5007
  });
5012
- var GitRepository = z159.object({
5013
- id: z159.string(),
5014
- name: z159.string(),
5015
- url: z159.string(),
5016
- slug: z159.string(),
5008
+ var GitRepository = z158.object({
5009
+ id: z158.string(),
5010
+ name: z158.string(),
5011
+ url: z158.string(),
5012
+ slug: z158.string(),
5017
5013
  /**
5018
5014
  * Can be undefined when:
5019
5015
  * - there are no branches in the repository yet
5020
5016
  * - Git provider doesn't expose this information on a repository via their API
5021
5017
  */
5022
- defaultBranch: z159.string().optional()
5018
+ defaultBranch: z158.string().optional()
5023
5019
  });
5024
- var GitBranch = z159.object({
5025
- name: z159.string(),
5026
- lastCommitId: z159.string()
5020
+ var GitBranch = z158.object({
5021
+ name: z158.string(),
5022
+ lastCommitId: z158.string()
5027
5023
  });
5028
5024
 
5029
5025
  // src/integrations/oauth-token.ts
5030
- import { z as z160 } from "zod";
5031
- var IntegrationTokenSchemaOld = z160.object({
5032
- id: z160.string(),
5026
+ import { z as z159 } from "zod";
5027
+ var IntegrationTokenSchemaOld = z159.object({
5028
+ id: z159.string(),
5033
5029
  provider: OAuthProviderSchema,
5034
- scope: z160.string(),
5035
- userId: z160.string(),
5036
- accessToken: z160.string(),
5037
- refreshToken: z160.string(),
5038
- expiresAt: z160.coerce.date(),
5039
- externalUserId: z160.string().nullish()
5030
+ scope: z159.string(),
5031
+ userId: z159.string(),
5032
+ accessToken: z159.string(),
5033
+ refreshToken: z159.string(),
5034
+ expiresAt: z159.coerce.date(),
5035
+ externalUserId: z159.string().nullish()
5040
5036
  });
5041
5037
 
5042
5038
  // src/integrations/workspace-oauth-requests.ts
5043
- import { z as z161 } from "zod";
5044
- var WorkspaceOAuthRequestSchema = z161.object({
5045
- id: z161.string(),
5046
- workspaceId: z161.string(),
5039
+ import { z as z160 } from "zod";
5040
+ var WorkspaceOAuthRequestSchema = z160.object({
5041
+ id: z160.string(),
5042
+ workspaceId: z160.string(),
5047
5043
  provider: OAuthProviderSchema,
5048
- userId: z161.string(),
5049
- createdAt: z161.coerce.date()
5044
+ userId: z160.string(),
5045
+ createdAt: z160.coerce.date()
5050
5046
  });
5051
5047
 
5052
5048
  // src/npm/npm-package.ts
5053
- import { z as z162 } from "zod";
5054
- var AnyRecord = z162.record(z162.any());
5049
+ import { z as z161 } from "zod";
5050
+ var AnyRecord = z161.record(z161.any());
5055
5051
  var NpmPackageVersionDist = AnyRecord.and(
5056
- z162.object({
5057
- tarball: z162.string()
5052
+ z161.object({
5053
+ tarball: z161.string()
5058
5054
  })
5059
5055
  );
5060
5056
  var NpmPackageVersion = AnyRecord.and(
5061
- z162.object({
5057
+ z161.object({
5062
5058
  dist: NpmPackageVersionDist
5063
5059
  })
5064
5060
  );
5065
5061
  var NpmPackage = AnyRecord.and(
5066
- z162.object({
5067
- _id: z162.string(),
5068
- name: z162.string(),
5062
+ z161.object({
5063
+ _id: z161.string(),
5064
+ name: z161.string(),
5069
5065
  // e.g. "latest": "1.2.3"
5070
- "dist-tags": z162.record(z162.string(), z162.string()),
5066
+ "dist-tags": z161.record(z161.string(), z161.string()),
5071
5067
  // "1.2.3": {...}
5072
- versions: z162.record(NpmPackageVersion)
5068
+ versions: z161.record(NpmPackageVersion)
5073
5069
  })
5074
5070
  );
5075
5071
 
5076
5072
  // src/npm/npm-proxy-token-payload.ts
5077
- import { z as z163 } from "zod";
5078
- var NpmProxyTokenPayload = z163.object({
5079
- npmProxyRegistryConfigId: z163.string()
5073
+ import { z as z162 } from "zod";
5074
+ var NpmProxyTokenPayload = z162.object({
5075
+ npmProxyRegistryConfigId: z162.string()
5080
5076
  });
5081
5077
 
5082
5078
  // src/tokens/personal-access-token.ts
5083
- import { z as z171 } from "zod";
5079
+ import { z as z170 } from "zod";
5084
5080
 
5085
5081
  // src/workspace/user-invite.ts
5086
- import { z as z165 } from "zod";
5082
+ import { z as z164 } from "zod";
5087
5083
 
5088
5084
  // src/workspace/workspace-role.ts
5089
- import { z as z164 } from "zod";
5090
- var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5085
+ import { z as z163 } from "zod";
5086
+ var WorkspaceRoleSchema = z163.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5091
5087
  var WorkspaceRole = WorkspaceRoleSchema.enum;
5092
5088
 
5093
5089
  // src/workspace/user-invite.ts
5094
5090
  var MAX_MEMBERS_COUNT = 100;
5095
- var UserInvite = z165.object({
5096
- email: z165.string().email().trim().transform((value) => value.toLowerCase()),
5091
+ var UserInvite = z164.object({
5092
+ email: z164.string().email().trim().transform((value) => value.toLowerCase()),
5097
5093
  role: WorkspaceRoleSchema
5098
5094
  });
5099
- var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
5095
+ var UserInvites = z164.array(UserInvite).max(MAX_MEMBERS_COUNT);
5100
5096
 
5101
5097
  // src/workspace/workspace-configuration.ts
5102
- import { z as z166 } from "zod";
5103
- var WorkspaceConfigurationUpdate = z166.object({
5104
- id: z166.string(),
5098
+ import { z as z165 } from "zod";
5099
+ var WorkspaceConfigurationUpdate = z165.object({
5100
+ id: z165.string(),
5105
5101
  ipWhitelist: WorkspaceIpSettings.optional(),
5106
5102
  sso: SsoProvider.optional(),
5107
5103
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5109,32 +5105,32 @@ var WorkspaceConfigurationUpdate = z166.object({
5109
5105
  });
5110
5106
 
5111
5107
  // src/workspace/workspace-context.ts
5112
- import { z as z167 } from "zod";
5113
- var WorkspaceContext = z167.object({
5114
- workspaceId: z167.string(),
5108
+ import { z as z166 } from "zod";
5109
+ var WorkspaceContext = z166.object({
5110
+ workspaceId: z166.string(),
5115
5111
  product: ProductCodeSchema,
5116
5112
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5117
- publicDesignSystem: z167.boolean().optional()
5113
+ publicDesignSystem: z166.boolean().optional()
5118
5114
  });
5119
5115
 
5120
5116
  // src/workspace/workspace-create.ts
5121
- import { z as z168 } from "zod";
5117
+ import { z as z167 } from "zod";
5122
5118
  var WORKSPACE_NAME_MIN_LENGTH = 2;
5123
5119
  var WORKSPACE_NAME_MAX_LENGTH = 64;
5124
5120
  var HANDLE_MIN_LENGTH = 2;
5125
5121
  var HANDLE_MAX_LENGTH = 64;
5126
- var CreateWorkspaceInput = z168.object({
5127
- name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5122
+ var CreateWorkspaceInput = z167.object({
5123
+ name: z167.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5128
5124
  product: ProductCodeSchema,
5129
- priceId: z168.string(),
5130
- billingEmail: z168.string().email().optional(),
5131
- handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5125
+ priceId: z167.string(),
5126
+ billingEmail: z167.string().email().optional(),
5127
+ handle: z167.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5132
5128
  invites: UserInvites.optional(),
5133
- promoCode: z168.string().optional(),
5129
+ promoCode: z167.string().optional(),
5134
5130
  status: InternalStatusSchema.optional(),
5135
5131
  planInterval: BillingIntervalSchema.optional(),
5136
- seats: z168.number().optional(),
5137
- seatLimit: z168.number().optional(),
5132
+ seats: z167.number().optional(),
5133
+ seatLimit: z167.number().optional(),
5138
5134
  card: CardSchema.optional(),
5139
5135
  sso: SsoProvider.optional(),
5140
5136
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5142,47 +5138,47 @@ var CreateWorkspaceInput = z168.object({
5142
5138
  });
5143
5139
 
5144
5140
  // src/workspace/workspace-invitations.ts
5145
- import { z as z169 } from "zod";
5146
- var WorkspaceInvitation = z169.object({
5147
- id: z169.string(),
5148
- email: z169.string().email(),
5149
- createdAt: z169.coerce.date(),
5150
- resentAt: z169.coerce.date().nullish(),
5151
- role: z169.nativeEnum(WorkspaceRole),
5152
- workspaceId: z169.string(),
5153
- invitedBy: z169.string()
5141
+ import { z as z168 } from "zod";
5142
+ var WorkspaceInvitation = z168.object({
5143
+ id: z168.string(),
5144
+ email: z168.string().email(),
5145
+ createdAt: z168.coerce.date(),
5146
+ resentAt: z168.coerce.date().nullish(),
5147
+ role: z168.nativeEnum(WorkspaceRole),
5148
+ workspaceId: z168.string(),
5149
+ invitedBy: z168.string()
5154
5150
  });
5155
5151
 
5156
5152
  // src/workspace/workspace-membership.ts
5157
- import { z as z170 } from "zod";
5158
- var WorkspaceMembership = z170.object({
5159
- id: z170.string(),
5160
- userId: z170.string(),
5161
- workspaceId: z170.string(),
5162
- workspaceRole: z170.nativeEnum(WorkspaceRole),
5153
+ import { z as z169 } from "zod";
5154
+ var WorkspaceMembership = z169.object({
5155
+ id: z169.string(),
5156
+ userId: z169.string(),
5157
+ workspaceId: z169.string(),
5158
+ workspaceRole: z169.nativeEnum(WorkspaceRole),
5163
5159
  notificationSettings: UserNotificationSettings
5164
5160
  });
5165
- var UpdateMembershipRolesInput = z170.object({
5166
- members: z170.array(
5167
- z170.object({
5168
- userId: z170.string(),
5169
- role: z170.nativeEnum(WorkspaceRole)
5161
+ var UpdateMembershipRolesInput = z169.object({
5162
+ members: z169.array(
5163
+ z169.object({
5164
+ userId: z169.string(),
5165
+ role: z169.nativeEnum(WorkspaceRole)
5170
5166
  })
5171
5167
  )
5172
5168
  });
5173
5169
 
5174
5170
  // src/tokens/personal-access-token.ts
5175
- var PersonalAccessToken = z171.object({
5176
- id: z171.string(),
5177
- userId: z171.string(),
5178
- workspaceId: z171.string().optional(),
5171
+ var PersonalAccessToken = z170.object({
5172
+ id: z170.string(),
5173
+ userId: z170.string(),
5174
+ workspaceId: z170.string().optional(),
5179
5175
  workspaceRole: WorkspaceRoleSchema.optional(),
5180
- name: z171.string(),
5181
- hidden: z171.boolean(),
5182
- token: z171.string(),
5183
- scope: z171.string().optional(),
5184
- createdAt: z171.coerce.date(),
5185
- expireAt: z171.coerce.date().optional()
5176
+ name: z170.string(),
5177
+ hidden: z170.boolean(),
5178
+ token: z170.string(),
5179
+ scope: z170.string().optional(),
5180
+ createdAt: z170.coerce.date(),
5181
+ expireAt: z170.coerce.date().optional()
5186
5182
  });
5187
5183
  export {
5188
5184
  Address,
@@ -5229,7 +5225,6 @@ export {
5229
5225
  ContentLoadInstruction,
5230
5226
  ContentLoaderPayload,
5231
5227
  CreateDesignToken,
5232
- CreateUserInput,
5233
5228
  CreateWorkspaceInput,
5234
5229
  CustomDomain,
5235
5230
  Customer,
@@ -5756,6 +5751,7 @@ export {
5756
5751
  UserProfile,
5757
5752
  UserProfileUpdate,
5758
5753
  UserSession,
5754
+ UserSource,
5759
5755
  UserTest,
5760
5756
  VersionCreationJob,
5761
5757
  VersionCreationJobStatus,