@supernova-studio/model 0.59.9 → 0.59.11

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