@supernova-studio/model 0.54.29 → 0.54.31

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