@supernova-studio/model 1.0.0-alpha.13 → 1.0.0-alpha.15

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