@supernova-studio/model 1.4.3 → 1.4.5

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