@supernova-studio/model 0.54.13 → 0.54.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
@@ -286,7 +286,7 @@ var CustomDomain = z14.object({
286
286
  });
287
287
 
288
288
  // src/data-dumps/code-integration-dump.ts
289
- import { z as z126 } from "zod";
289
+ import { z as z124 } from "zod";
290
290
 
291
291
  // src/export/exporter.ts
292
292
  import { z as z17 } from "zod";
@@ -389,10 +389,10 @@ var Exporter = z17.object({
389
389
  });
390
390
 
391
391
  // src/export/pipeline.ts
392
- import { z as z125 } from "zod";
392
+ import { z as z123 } from "zod";
393
393
 
394
394
  // src/export/export-destinations.ts
395
- import { z as z124 } from "zod";
395
+ import { z as z122 } from "zod";
396
396
 
397
397
  // src/dsm/assets/asset-dynamo-record.ts
398
398
  import { z as z18 } from "zod";
@@ -1631,7 +1631,6 @@ var DesignTokenType = z39.enum([
1631
1631
  "ParagraphSpacing",
1632
1632
  "BorderWidth",
1633
1633
  "BorderRadius",
1634
- "Duration",
1635
1634
  "ZIndex",
1636
1635
  "Image",
1637
1636
  "String",
@@ -4055,9 +4054,6 @@ var Brand = z116.object({
4055
4054
  description: z116.string()
4056
4055
  });
4057
4056
 
4058
- // src/dsm/design-system-update.ts
4059
- import { z as z118 } from "zod";
4060
-
4061
4057
  // src/dsm/design-system.ts
4062
4058
  import { z as z117 } from "zod";
4063
4059
  var DesignSystemAccessMode = z117.enum(["Open", "InviteOnly"]);
@@ -4086,217 +4082,180 @@ var DesignSystem = z117.object({
4086
4082
  updatedAt: z117.coerce.date()
4087
4083
  });
4088
4084
 
4089
- // src/dsm/design-system-update.ts
4090
- var DS_NAME_MIN_LENGTH = 2;
4091
- var DS_NAME_MAX_LENGTH = 64;
4092
- var DS_DESC_MAX_LENGTH = 2048;
4093
- var DesignSystemUpdateInputMetadata = z118.object({
4094
- name: z118.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
4095
- description: z118.string().max(DS_DESC_MAX_LENGTH).trim().optional()
4096
- });
4097
- var DesignSystemUpdateInput = DesignSystem.partial().omit({
4098
- id: true,
4099
- workspaceId: true,
4100
- createdAt: true,
4101
- updatedAt: true,
4102
- docSlug: true,
4103
- docViewUrl: true
4104
- }).extend({
4105
- meta: DesignSystemUpdateInputMetadata.optional()
4106
- });
4107
-
4108
- // src/dsm/desing-system-create.ts
4109
- import { z as z119 } from "zod";
4110
- var DS_NAME_MIN_LENGTH2 = 2;
4111
- var DS_NAME_MAX_LENGTH2 = 64;
4112
- var DS_DESC_MAX_LENGTH2 = 64;
4113
- var DesignSystemCreateInputMetadata = z119.object({
4114
- name: z119.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
4115
- description: z119.string().max(DS_DESC_MAX_LENGTH2).trim()
4116
- });
4117
- var DesignSystemCreateInput = z119.object({
4118
- meta: DesignSystemCreateInputMetadata,
4119
- workspaceId: z119.string(),
4120
- isPublic: z119.boolean().optional(),
4121
- basePrefixes: z119.array(z119.string()).optional(),
4122
- docUserSlug: z119.string().nullish().optional(),
4123
- source: z119.array(z119.string()).optional()
4124
- });
4125
-
4126
4085
  // src/dsm/exporter-property-values-collection.ts
4127
- import { z as z120 } from "zod";
4128
- var ExporterPropertyImageValue = z120.object({
4086
+ import { z as z118 } from "zod";
4087
+ var ExporterPropertyImageValue = z118.object({
4129
4088
  asset: PageBlockAsset.optional(),
4130
- assetId: z120.string().optional(),
4131
- assetUrl: z120.string().optional()
4132
- });
4133
- var ExporterPropertyValue = z120.object({
4134
- key: z120.string(),
4135
- value: z120.union([
4136
- z120.number(),
4137
- z120.string(),
4138
- z120.boolean(),
4089
+ assetId: z118.string().optional(),
4090
+ assetUrl: z118.string().optional()
4091
+ });
4092
+ var ExporterPropertyValue = z118.object({
4093
+ key: z118.string(),
4094
+ value: z118.union([
4095
+ z118.number(),
4096
+ z118.string(),
4097
+ z118.boolean(),
4139
4098
  ExporterPropertyImageValue,
4140
4099
  ColorTokenData,
4141
4100
  TypographyTokenData
4142
4101
  ])
4143
4102
  });
4144
- var ExporterPropertyValuesCollection = z120.object({
4145
- id: z120.string(),
4146
- designSystemId: z120.string(),
4147
- exporterId: z120.string(),
4148
- values: z120.array(ExporterPropertyValue)
4103
+ var ExporterPropertyValuesCollection = z118.object({
4104
+ id: z118.string(),
4105
+ designSystemId: z118.string(),
4106
+ exporterId: z118.string(),
4107
+ values: z118.array(ExporterPropertyValue)
4149
4108
  });
4150
4109
 
4151
4110
  // src/dsm/published-doc-page.ts
4152
- import { z as z121 } from "zod";
4111
+ import { z as z119 } from "zod";
4153
4112
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4154
4113
  function tryParseShortPersistentId(url = "/") {
4155
4114
  const lastUrlPart = url.split("/").pop() || "";
4156
4115
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4157
4116
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4158
4117
  }
4159
- var PublishedDocPage = z121.object({
4160
- id: z121.string(),
4161
- publishedDocId: z121.string(),
4162
- pageShortPersistentId: z121.string(),
4163
- pathV1: z121.string(),
4164
- pathV2: z121.string(),
4165
- storagePath: z121.string(),
4166
- locale: z121.string().optional(),
4167
- isPrivate: z121.boolean(),
4168
- isHidden: z121.boolean(),
4169
- createdAt: z121.coerce.date(),
4170
- updatedAt: z121.coerce.date()
4118
+ var PublishedDocPage = z119.object({
4119
+ id: z119.string(),
4120
+ publishedDocId: z119.string(),
4121
+ pageShortPersistentId: z119.string(),
4122
+ pathV1: z119.string(),
4123
+ pathV2: z119.string(),
4124
+ storagePath: z119.string(),
4125
+ locale: z119.string().optional(),
4126
+ isPrivate: z119.boolean(),
4127
+ isHidden: z119.boolean(),
4128
+ createdAt: z119.coerce.date(),
4129
+ updatedAt: z119.coerce.date()
4171
4130
  });
4172
4131
 
4173
4132
  // src/dsm/published-doc.ts
4174
- import { z as z122 } from "zod";
4133
+ import { z as z120 } from "zod";
4175
4134
  var publishedDocEnvironments = ["Live", "Preview"];
4176
- var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
4177
- var PublishedDocsChecksums = z122.record(z122.string());
4178
- var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
4179
- var PublishedDoc = z122.object({
4180
- id: z122.string(),
4181
- designSystemVersionId: z122.string(),
4182
- createdAt: z122.coerce.date(),
4183
- updatedAt: z122.coerce.date(),
4184
- lastPublishedAt: z122.coerce.date(),
4185
- isDefault: z122.boolean(),
4186
- isPublic: z122.boolean(),
4135
+ var PublishedDocEnvironment = z120.enum(publishedDocEnvironments);
4136
+ var PublishedDocsChecksums = z120.record(z120.string());
4137
+ var PublishedDocRoutingVersion = z120.enum(["1", "2"]);
4138
+ var PublishedDoc = z120.object({
4139
+ id: z120.string(),
4140
+ designSystemVersionId: z120.string(),
4141
+ createdAt: z120.coerce.date(),
4142
+ updatedAt: z120.coerce.date(),
4143
+ lastPublishedAt: z120.coerce.date(),
4144
+ isDefault: z120.boolean(),
4145
+ isPublic: z120.boolean(),
4187
4146
  environment: PublishedDocEnvironment,
4188
4147
  checksums: PublishedDocsChecksums,
4189
- storagePath: z122.string(),
4190
- wasMigrated: z122.boolean(),
4148
+ storagePath: z120.string(),
4149
+ wasMigrated: z120.boolean(),
4191
4150
  routingVersion: PublishedDocRoutingVersion,
4192
- usesLocalizations: z122.boolean(),
4193
- wasPublishedWithLocalizations: z122.boolean(),
4194
- tokenCount: z122.number(),
4195
- assetCount: z122.number()
4151
+ usesLocalizations: z120.boolean(),
4152
+ wasPublishedWithLocalizations: z120.boolean(),
4153
+ tokenCount: z120.number(),
4154
+ assetCount: z120.number()
4196
4155
  });
4197
4156
 
4198
4157
  // src/dsm/version.ts
4199
- import { z as z123 } from "zod";
4200
- var DesignSystemVersion = z123.object({
4201
- id: z123.string(),
4202
- version: z123.string(),
4203
- createdAt: z123.coerce.date(),
4204
- designSystemId: z123.string(),
4205
- name: z123.string(),
4206
- comment: z123.string(),
4207
- isReadonly: z123.boolean(),
4208
- changeLog: z123.string(),
4209
- parentId: z123.string().optional(),
4210
- isDraftsFeatureAdopted: z123.boolean()
4211
- });
4212
- var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
4213
- var VersionCreationJob = z123.object({
4214
- id: z123.string(),
4215
- version: z123.string(),
4216
- designSystemId: z123.string(),
4217
- designSystemVersionId: nullishToOptional(z123.string()),
4158
+ import { z as z121 } from "zod";
4159
+ var DesignSystemVersion = z121.object({
4160
+ id: z121.string(),
4161
+ version: z121.string(),
4162
+ createdAt: z121.coerce.date(),
4163
+ designSystemId: z121.string(),
4164
+ name: z121.string(),
4165
+ comment: z121.string(),
4166
+ isReadonly: z121.boolean(),
4167
+ changeLog: z121.string(),
4168
+ parentId: z121.string().optional(),
4169
+ isDraftsFeatureAdopted: z121.boolean()
4170
+ });
4171
+ var VersionCreationJobStatus = z121.enum(["Success", "InProgress", "Error"]);
4172
+ var VersionCreationJob = z121.object({
4173
+ id: z121.string(),
4174
+ version: z121.string(),
4175
+ designSystemId: z121.string(),
4176
+ designSystemVersionId: nullishToOptional(z121.string()),
4218
4177
  status: VersionCreationJobStatus,
4219
- errorMessage: nullishToOptional(z123.string())
4178
+ errorMessage: nullishToOptional(z121.string())
4220
4179
  });
4221
4180
 
4222
4181
  // src/export/export-destinations.ts
4223
4182
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4224
4183
  var BITBUCKET_MAX_LENGTH = 64;
4225
- var ExportJobDocumentationChanges = z124.object({
4226
- pagePersistentIds: z124.string().array(),
4227
- groupPersistentIds: z124.string().array()
4184
+ var ExportJobDocumentationChanges = z122.object({
4185
+ pagePersistentIds: z122.string().array(),
4186
+ groupPersistentIds: z122.string().array()
4228
4187
  });
4229
- var ExporterDestinationDocs = z124.object({
4188
+ var ExporterDestinationDocs = z122.object({
4230
4189
  environment: PublishedDocEnvironment,
4231
4190
  changes: nullishToOptional(ExportJobDocumentationChanges)
4232
4191
  });
4233
- var ExporterDestinationS3 = z124.object({});
4234
- var ExporterDestinationGithub = z124.object({
4235
- credentialId: z124.string().optional(),
4192
+ var ExporterDestinationS3 = z122.object({});
4193
+ var ExporterDestinationGithub = z122.object({
4194
+ credentialId: z122.string().optional(),
4236
4195
  // Repository
4237
- url: z124.string(),
4196
+ url: z122.string(),
4238
4197
  // Location
4239
- branch: z124.string(),
4240
- relativePath: nullishToOptional(z124.string()),
4198
+ branch: z122.string(),
4199
+ relativePath: nullishToOptional(z122.string()),
4241
4200
  // Commit metadata
4242
- commitAuthorName: nullishToOptional(z124.string()),
4243
- commitAuthorEmail: nullishToOptional(z124.string()),
4201
+ commitAuthorName: nullishToOptional(z122.string()),
4202
+ commitAuthorEmail: nullishToOptional(z122.string()),
4244
4203
  // Legacy deprecated fields. Use `credentialId` instead
4245
- connectionId: nullishToOptional(z124.string()),
4246
- userId: nullishToOptional(z124.number())
4204
+ connectionId: nullishToOptional(z122.string()),
4205
+ userId: nullishToOptional(z122.number())
4247
4206
  });
4248
- var ExporterDestinationAzure = z124.object({
4249
- credentialId: z124.string().optional(),
4207
+ var ExporterDestinationAzure = z122.object({
4208
+ credentialId: z122.string().optional(),
4250
4209
  // Repository
4251
- organizationId: z124.string(),
4252
- projectId: z124.string(),
4253
- repositoryId: z124.string(),
4210
+ organizationId: z122.string(),
4211
+ projectId: z122.string(),
4212
+ repositoryId: z122.string(),
4254
4213
  // Commit metadata
4255
- commitAuthorName: nullishToOptional(z124.string()),
4256
- commitAuthorEmail: nullishToOptional(z124.string()),
4214
+ commitAuthorName: nullishToOptional(z122.string()),
4215
+ commitAuthorEmail: nullishToOptional(z122.string()),
4257
4216
  // Location
4258
- branch: z124.string(),
4259
- relativePath: nullishToOptional(z124.string()),
4217
+ branch: z122.string(),
4218
+ relativePath: nullishToOptional(z122.string()),
4260
4219
  // Maybe not needed
4261
- url: nullishToOptional(z124.string()),
4220
+ url: nullishToOptional(z122.string()),
4262
4221
  // Legacy deprecated fields. Use `credentialId` instead
4263
- connectionId: nullishToOptional(z124.string()),
4264
- userId: nullishToOptional(z124.number())
4222
+ connectionId: nullishToOptional(z122.string()),
4223
+ userId: nullishToOptional(z122.number())
4265
4224
  });
4266
- var ExporterDestinationGitlab = z124.object({
4267
- credentialId: z124.string().optional(),
4225
+ var ExporterDestinationGitlab = z122.object({
4226
+ credentialId: z122.string().optional(),
4268
4227
  // Repository
4269
- projectId: z124.string(),
4228
+ projectId: z122.string(),
4270
4229
  // Commit metadata
4271
- commitAuthorName: nullishToOptional(z124.string()),
4272
- commitAuthorEmail: nullishToOptional(z124.string()),
4230
+ commitAuthorName: nullishToOptional(z122.string()),
4231
+ commitAuthorEmail: nullishToOptional(z122.string()),
4273
4232
  // Location
4274
- branch: z124.string(),
4275
- relativePath: nullishToOptional(z124.string()),
4233
+ branch: z122.string(),
4234
+ relativePath: nullishToOptional(z122.string()),
4276
4235
  // Maybe not needed
4277
- url: nullishToOptional(z124.string()),
4236
+ url: nullishToOptional(z122.string()),
4278
4237
  // Legacy deprecated fields. Use `credentialId` instead
4279
- connectionId: nullishToOptional(z124.string()),
4280
- userId: nullishToOptional(z124.number())
4238
+ connectionId: nullishToOptional(z122.string()),
4239
+ userId: nullishToOptional(z122.number())
4281
4240
  });
4282
- var ExporterDestinationBitbucket = z124.object({
4283
- credentialId: z124.string().optional(),
4241
+ var ExporterDestinationBitbucket = z122.object({
4242
+ credentialId: z122.string().optional(),
4284
4243
  // Repository
4285
- workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4286
- projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4287
- repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4244
+ workspaceSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4245
+ projectKey: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4246
+ repoSlug: z122.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4288
4247
  // Commit metadata
4289
- commitAuthorName: nullishToOptional(z124.string()),
4290
- commitAuthorEmail: nullishToOptional(z124.string()),
4248
+ commitAuthorName: nullishToOptional(z122.string()),
4249
+ commitAuthorEmail: nullishToOptional(z122.string()),
4291
4250
  // Location
4292
- branch: z124.string(),
4293
- relativePath: nullishToOptional(z124.string()),
4251
+ branch: z122.string(),
4252
+ relativePath: nullishToOptional(z122.string()),
4294
4253
  // Legacy deprecated fields. Use `credentialId` instead
4295
- connectionId: nullishToOptional(z124.string()),
4296
- userId: nullishToOptional(z124.number())
4254
+ connectionId: nullishToOptional(z122.string()),
4255
+ userId: nullishToOptional(z122.number())
4297
4256
  });
4298
- var ExportDestinationsMap = z124.object({
4299
- webhookUrl: z124.string().optional(),
4257
+ var ExportDestinationsMap = z122.object({
4258
+ webhookUrl: z122.string().optional(),
4300
4259
  destinationSnDocs: ExporterDestinationDocs.optional(),
4301
4260
  destinationS3: ExporterDestinationS3.optional(),
4302
4261
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4306,149 +4265,149 @@ var ExportDestinationsMap = z124.object({
4306
4265
  });
4307
4266
 
4308
4267
  // src/export/pipeline.ts
4309
- var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4310
- var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4311
- var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
4312
- var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4313
- var Pipeline = z125.object({
4314
- id: z125.string(),
4315
- name: z125.string(),
4268
+ var PipelineEventType = z123.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4269
+ var PipelineDestinationGitType = z123.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4270
+ var PipelineDestinationExtraType = z123.enum(["WebhookUrl", "S3", "Documentation"]);
4271
+ var PipelineDestinationType = z123.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4272
+ var Pipeline = z123.object({
4273
+ id: z123.string(),
4274
+ name: z123.string(),
4316
4275
  eventType: PipelineEventType,
4317
- isEnabled: z125.boolean(),
4318
- workspaceId: z125.string(),
4319
- designSystemId: z125.string(),
4320
- exporterId: z125.string(),
4321
- brandPersistentId: z125.string().optional(),
4322
- themePersistentId: z125.string().optional(),
4323
- themePersistentIds: z125.string().array().optional(),
4276
+ isEnabled: z123.boolean(),
4277
+ workspaceId: z123.string(),
4278
+ designSystemId: z123.string(),
4279
+ exporterId: z123.string(),
4280
+ brandPersistentId: z123.string().optional(),
4281
+ themePersistentId: z123.string().optional(),
4282
+ themePersistentIds: z123.string().array().optional(),
4324
4283
  // Destinations
4325
4284
  ...ExportDestinationsMap.shape
4326
4285
  });
4327
4286
 
4328
4287
  // src/data-dumps/code-integration-dump.ts
4329
- var ExportJobDump = z126.object({
4330
- id: z126.string(),
4331
- createdAt: z126.coerce.date(),
4332
- finishedAt: z126.coerce.date(),
4333
- exportArtefacts: z126.string()
4288
+ var ExportJobDump = z124.object({
4289
+ id: z124.string(),
4290
+ createdAt: z124.coerce.date(),
4291
+ finishedAt: z124.coerce.date(),
4292
+ exportArtefacts: z124.string()
4334
4293
  });
4335
- var CodeIntegrationDump = z126.object({
4294
+ var CodeIntegrationDump = z124.object({
4336
4295
  exporters: Exporter.array(),
4337
4296
  pipelines: Pipeline.array(),
4338
4297
  exportJobs: ExportJobDump.array()
4339
4298
  });
4340
4299
 
4341
4300
  // src/data-dumps/design-system-dump.ts
4342
- import { z as z133 } from "zod";
4301
+ import { z as z131 } from "zod";
4343
4302
 
4344
4303
  // src/data-dumps/design-system-version-dump.ts
4345
- import { z as z132 } from "zod";
4304
+ import { z as z130 } from "zod";
4346
4305
 
4347
4306
  // src/liveblocks/rooms/design-system-version-room.ts
4348
- import { z as z127 } from "zod";
4307
+ import { z as z125 } from "zod";
4349
4308
  var DesignSystemVersionRoom = Entity.extend({
4350
- designSystemVersionId: z127.string(),
4351
- liveblocksId: z127.string()
4352
- });
4353
- var DesignSystemVersionRoomInternalSettings = z127.object({
4354
- routingVersion: z127.string(),
4355
- isDraftFeatureAdopted: z127.boolean(),
4356
- isApprovalFeatureEnabled: z127.boolean(),
4357
- approvalRequiredForPublishing: z127.boolean()
4358
- });
4359
- var DesignSystemVersionRoomInitialState = z127.object({
4360
- pages: z127.array(DocumentationPageV2),
4361
- groups: z127.array(ElementGroup),
4362
- pageSnapshots: z127.array(DocumentationPageSnapshot),
4363
- groupSnapshots: z127.array(ElementGroupSnapshot),
4364
- pageApprovals: z127.array(DocumentationPageApproval),
4309
+ designSystemVersionId: z125.string(),
4310
+ liveblocksId: z125.string()
4311
+ });
4312
+ var DesignSystemVersionRoomInternalSettings = z125.object({
4313
+ routingVersion: z125.string(),
4314
+ isDraftFeatureAdopted: z125.boolean(),
4315
+ isApprovalFeatureEnabled: z125.boolean(),
4316
+ approvalRequiredForPublishing: z125.boolean()
4317
+ });
4318
+ var DesignSystemVersionRoomInitialState = z125.object({
4319
+ pages: z125.array(DocumentationPageV2),
4320
+ groups: z125.array(ElementGroup),
4321
+ pageSnapshots: z125.array(DocumentationPageSnapshot),
4322
+ groupSnapshots: z125.array(ElementGroupSnapshot),
4323
+ pageApprovals: z125.array(DocumentationPageApproval),
4365
4324
  internalSettings: DesignSystemVersionRoomInternalSettings
4366
4325
  });
4367
- var DesignSystemVersionRoomUpdate = z127.object({
4368
- pages: z127.array(DocumentationPageV2),
4369
- groups: z127.array(ElementGroup),
4370
- pageIdsToDelete: z127.array(z127.string()),
4371
- groupIdsToDelete: z127.array(z127.string()),
4372
- pageSnapshots: z127.array(DocumentationPageSnapshot),
4373
- groupSnapshots: z127.array(ElementGroupSnapshot),
4374
- pageSnapshotIdsToDelete: z127.array(z127.string()),
4375
- groupSnapshotIdsToDelete: z127.array(z127.string()),
4376
- pageHashesToUpdate: z127.record(z127.string(), z127.string()),
4377
- pageApprovals: z127.array(DocumentationPageApproval),
4378
- pageApprovalIdsToDelete: z127.array(z127.string())
4326
+ var DesignSystemVersionRoomUpdate = z125.object({
4327
+ pages: z125.array(DocumentationPageV2),
4328
+ groups: z125.array(ElementGroup),
4329
+ pageIdsToDelete: z125.array(z125.string()),
4330
+ groupIdsToDelete: z125.array(z125.string()),
4331
+ pageSnapshots: z125.array(DocumentationPageSnapshot),
4332
+ groupSnapshots: z125.array(ElementGroupSnapshot),
4333
+ pageSnapshotIdsToDelete: z125.array(z125.string()),
4334
+ groupSnapshotIdsToDelete: z125.array(z125.string()),
4335
+ pageHashesToUpdate: z125.record(z125.string(), z125.string()),
4336
+ pageApprovals: z125.array(DocumentationPageApproval),
4337
+ pageApprovalIdsToDelete: z125.array(z125.string())
4379
4338
  });
4380
4339
 
4381
4340
  // src/liveblocks/rooms/documentation-page-room.ts
4382
- import { z as z128 } from "zod";
4341
+ import { z as z126 } from "zod";
4383
4342
  var DocumentationPageRoom = Entity.extend({
4384
- designSystemVersionId: z128.string(),
4385
- documentationPageId: z128.string(),
4386
- liveblocksId: z128.string(),
4387
- isDirty: z128.boolean()
4343
+ designSystemVersionId: z126.string(),
4344
+ documentationPageId: z126.string(),
4345
+ liveblocksId: z126.string(),
4346
+ isDirty: z126.boolean()
4388
4347
  });
4389
- var DocumentationPageRoomState = z128.object({
4390
- pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4348
+ var DocumentationPageRoomState = z126.object({
4349
+ pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4391
4350
  itemConfiguration: DocumentationItemConfigurationV2
4392
4351
  });
4393
- var DocumentationPageRoomRoomUpdate = z128.object({
4352
+ var DocumentationPageRoomRoomUpdate = z126.object({
4394
4353
  page: DocumentationPageV2,
4395
4354
  pageParent: ElementGroup
4396
4355
  });
4397
4356
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4398
- pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4399
- blockDefinitions: z128.array(PageBlockDefinition)
4357
+ pageItems: z126.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4358
+ blockDefinitions: z126.array(PageBlockDefinition)
4400
4359
  });
4401
- var RestoredDocumentationPage = z128.object({
4360
+ var RestoredDocumentationPage = z126.object({
4402
4361
  page: DocumentationPageV2,
4403
4362
  pageParent: ElementGroup,
4404
4363
  pageContent: DocumentationPageContentData,
4405
- contentHash: z128.string(),
4406
- snapshotId: z128.string(),
4407
- roomId: z128.string().optional()
4364
+ contentHash: z126.string(),
4365
+ snapshotId: z126.string(),
4366
+ roomId: z126.string().optional()
4408
4367
  });
4409
- var RestoredDocumentationGroup = z128.object({
4368
+ var RestoredDocumentationGroup = z126.object({
4410
4369
  group: ElementGroup,
4411
4370
  parent: ElementGroup
4412
4371
  });
4413
4372
 
4414
4373
  // src/liveblocks/rooms/room-type.ts
4415
- import { z as z129 } from "zod";
4374
+ import { z as z127 } from "zod";
4416
4375
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4417
4376
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4418
4377
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4419
4378
  RoomTypeEnum2["Workspace"] = "workspace";
4420
4379
  return RoomTypeEnum2;
4421
4380
  })(RoomTypeEnum || {});
4422
- var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
4381
+ var RoomTypeSchema = z127.nativeEnum(RoomTypeEnum);
4423
4382
  var RoomType = RoomTypeSchema.enum;
4424
4383
 
4425
4384
  // src/liveblocks/rooms/workspace-room.ts
4426
- import { z as z130 } from "zod";
4385
+ import { z as z128 } from "zod";
4427
4386
  var WorkspaceRoom = Entity.extend({
4428
- workspaceId: z130.string(),
4429
- liveblocksId: z130.string()
4387
+ workspaceId: z128.string(),
4388
+ liveblocksId: z128.string()
4430
4389
  });
4431
4390
 
4432
4391
  // src/data-dumps/published-docs-dump.ts
4433
- import { z as z131 } from "zod";
4434
- var PublishedDocsDump = z131.object({
4392
+ import { z as z129 } from "zod";
4393
+ var PublishedDocsDump = z129.object({
4435
4394
  documentation: PublishedDoc,
4436
4395
  pages: PublishedDocPage.array()
4437
4396
  });
4438
4397
 
4439
4398
  // src/data-dumps/design-system-version-dump.ts
4440
- var DocumentationThreadDump = z132.object({
4399
+ var DocumentationThreadDump = z130.object({
4441
4400
  thread: DocumentationCommentThread,
4442
4401
  comments: DocumentationComment.array()
4443
4402
  });
4444
- var DocumentationPageRoomDump = z132.object({
4403
+ var DocumentationPageRoomDump = z130.object({
4445
4404
  room: DocumentationPageRoom,
4446
4405
  threads: DocumentationThreadDump.array()
4447
4406
  });
4448
- var DesignSystemVersionMultiplayerDump = z132.object({
4407
+ var DesignSystemVersionMultiplayerDump = z130.object({
4449
4408
  documentationPages: DocumentationPageRoomDump.array()
4450
4409
  });
4451
- var DesignSystemVersionDump = z132.object({
4410
+ var DesignSystemVersionDump = z130.object({
4452
4411
  version: DesignSystemVersion,
4453
4412
  brands: Brand.array(),
4454
4413
  elements: DesignElement.array(),
@@ -4463,7 +4422,7 @@ var DesignSystemVersionDump = z132.object({
4463
4422
  });
4464
4423
 
4465
4424
  // src/data-dumps/design-system-dump.ts
4466
- var DesignSystemDump = z133.object({
4425
+ var DesignSystemDump = z131.object({
4467
4426
  designSystem: DesignSystem,
4468
4427
  dataSources: DataSource.array(),
4469
4428
  versions: DesignSystemVersionDump.array(),
@@ -4472,27 +4431,27 @@ var DesignSystemDump = z133.object({
4472
4431
  });
4473
4432
 
4474
4433
  // src/data-dumps/user-data-dump.ts
4475
- import { z as z148 } from "zod";
4434
+ import { z as z146 } from "zod";
4476
4435
 
4477
4436
  // src/users/linked-integrations.ts
4478
- import { z as z134 } from "zod";
4479
- var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
4480
- var ExternalServiceType = z134.union([
4481
- z134.literal("figma"),
4482
- z134.literal("github"),
4483
- z134.literal("azure"),
4484
- z134.literal("gitlab"),
4485
- z134.literal("bitbucket")
4437
+ import { z as z132 } from "zod";
4438
+ var IntegrationAuthType = z132.union([z132.literal("OAuth2"), z132.literal("PAT")]);
4439
+ var ExternalServiceType = z132.union([
4440
+ z132.literal("figma"),
4441
+ z132.literal("github"),
4442
+ z132.literal("azure"),
4443
+ z132.literal("gitlab"),
4444
+ z132.literal("bitbucket")
4486
4445
  ]);
4487
- var IntegrationUserInfo = z134.object({
4488
- id: z134.string(),
4489
- handle: z134.string().optional(),
4490
- avatarUrl: z134.string().optional(),
4491
- email: z134.string().optional(),
4446
+ var IntegrationUserInfo = z132.object({
4447
+ id: z132.string(),
4448
+ handle: z132.string().optional(),
4449
+ avatarUrl: z132.string().optional(),
4450
+ email: z132.string().optional(),
4492
4451
  authType: IntegrationAuthType.optional(),
4493
- customUrl: z134.string().optional()
4452
+ customUrl: z132.string().optional()
4494
4453
  });
4495
- var UserLinkedIntegrations = z134.object({
4454
+ var UserLinkedIntegrations = z132.object({
4496
4455
  figma: IntegrationUserInfo.optional(),
4497
4456
  github: IntegrationUserInfo.array().optional(),
4498
4457
  azure: IntegrationUserInfo.array().optional(),
@@ -4501,46 +4460,46 @@ var UserLinkedIntegrations = z134.object({
4501
4460
  });
4502
4461
 
4503
4462
  // src/users/user-analytics-cleanup-schedule.ts
4504
- import { z as z135 } from "zod";
4505
- var UserAnalyticsCleanupSchedule = z135.object({
4506
- userId: z135.string(),
4507
- createdAt: z135.coerce.date(),
4508
- deleteAt: z135.coerce.date()
4463
+ import { z as z133 } from "zod";
4464
+ var UserAnalyticsCleanupSchedule = z133.object({
4465
+ userId: z133.string(),
4466
+ createdAt: z133.coerce.date(),
4467
+ deleteAt: z133.coerce.date()
4509
4468
  });
4510
4469
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4511
4470
  createdAt: true
4512
4471
  });
4513
4472
 
4514
4473
  // src/users/user-create.ts
4515
- import { z as z136 } from "zod";
4516
- var CreateUserInput = z136.object({
4517
- email: z136.string(),
4518
- name: z136.string(),
4519
- username: z136.string()
4474
+ import { z as z134 } from "zod";
4475
+ var CreateUserInput = z134.object({
4476
+ email: z134.string(),
4477
+ name: z134.string(),
4478
+ username: z134.string()
4520
4479
  });
4521
4480
 
4522
4481
  // src/users/user-identity.ts
4523
- import { z as z137 } from "zod";
4524
- var UserIdentity = z137.object({
4525
- id: z137.string(),
4526
- userId: z137.string()
4482
+ import { z as z135 } from "zod";
4483
+ var UserIdentity = z135.object({
4484
+ id: z135.string(),
4485
+ userId: z135.string()
4527
4486
  });
4528
4487
 
4529
4488
  // src/users/user-minified.ts
4530
- import { z as z138 } from "zod";
4531
- var UserMinified = z138.object({
4532
- id: z138.string(),
4533
- name: z138.string(),
4534
- email: z138.string(),
4535
- avatar: z138.string().optional()
4489
+ import { z as z136 } from "zod";
4490
+ var UserMinified = z136.object({
4491
+ id: z136.string(),
4492
+ name: z136.string(),
4493
+ email: z136.string(),
4494
+ avatar: z136.string().optional()
4536
4495
  });
4537
4496
 
4538
4497
  // src/users/user-notification-settings.ts
4539
- import { z as z139 } from "zod";
4540
- var LiveblocksNotificationSettings = z139.object({
4541
- sendCommentNotificationEmails: z139.boolean()
4498
+ import { z as z137 } from "zod";
4499
+ var LiveblocksNotificationSettings = z137.object({
4500
+ sendCommentNotificationEmails: z137.boolean()
4542
4501
  });
4543
- var UserNotificationSettings = z139.object({
4502
+ var UserNotificationSettings = z137.object({
4544
4503
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4545
4504
  });
4546
4505
  var defaultNotificationSettings = {
@@ -4550,27 +4509,27 @@ var defaultNotificationSettings = {
4550
4509
  };
4551
4510
 
4552
4511
  // src/users/user-profile.ts
4553
- import { z as z140 } from "zod";
4554
- var UserOnboardingDepartment = z140.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4555
- var UserOnboardingJobLevel = z140.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4556
- var UserOnboarding = z140.object({
4557
- companyName: z140.string().optional(),
4558
- numberOfPeopleInOrg: z140.string().optional(),
4559
- numberOfPeopleInDesignTeam: z140.string().optional(),
4512
+ import { z as z138 } from "zod";
4513
+ var UserOnboardingDepartment = z138.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4514
+ var UserOnboardingJobLevel = z138.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4515
+ var UserOnboarding = z138.object({
4516
+ companyName: z138.string().optional(),
4517
+ numberOfPeopleInOrg: z138.string().optional(),
4518
+ numberOfPeopleInDesignTeam: z138.string().optional(),
4560
4519
  department: UserOnboardingDepartment.optional(),
4561
- jobTitle: z140.string().optional(),
4562
- phase: z140.string().optional(),
4520
+ jobTitle: z138.string().optional(),
4521
+ phase: z138.string().optional(),
4563
4522
  jobLevel: UserOnboardingJobLevel.optional(),
4564
- designSystemName: z140.string().optional(),
4565
- defaultDestination: z140.string().optional(),
4566
- figmaUrl: z140.string().optional(),
4567
- isPageDraftOnboardingFinished: z140.boolean().optional(),
4568
- isApprovalsOnboardingFinished: z140.boolean().optional()
4569
- });
4570
- var UserProfile = z140.object({
4571
- name: z140.string(),
4572
- avatar: z140.string().optional(),
4573
- nickname: z140.string().optional(),
4523
+ designSystemName: z138.string().optional(),
4524
+ defaultDestination: z138.string().optional(),
4525
+ figmaUrl: z138.string().optional(),
4526
+ isPageDraftOnboardingFinished: z138.boolean().optional(),
4527
+ isApprovalsOnboardingFinished: z138.boolean().optional()
4528
+ });
4529
+ var UserProfile = z138.object({
4530
+ name: z138.string(),
4531
+ avatar: z138.string().optional(),
4532
+ nickname: z138.string().optional(),
4574
4533
  onboarding: UserOnboarding.optional()
4575
4534
  });
4576
4535
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -4578,68 +4537,68 @@ var UserProfileUpdate = UserProfile.partial().omit({
4578
4537
  });
4579
4538
 
4580
4539
  // src/users/user-test.ts
4581
- import { z as z141 } from "zod";
4582
- var UserTest = z141.object({
4583
- id: z141.string(),
4584
- email: z141.string()
4540
+ import { z as z139 } from "zod";
4541
+ var UserTest = z139.object({
4542
+ id: z139.string(),
4543
+ email: z139.string()
4585
4544
  });
4586
4545
 
4587
4546
  // src/users/user.ts
4588
- import { z as z142 } from "zod";
4589
- var User = z142.object({
4590
- id: z142.string(),
4591
- email: z142.string(),
4592
- emailVerified: z142.boolean(),
4593
- createdAt: z142.coerce.date(),
4594
- trialExpiresAt: z142.coerce.date().optional(),
4547
+ import { z as z140 } from "zod";
4548
+ var User = z140.object({
4549
+ id: z140.string(),
4550
+ email: z140.string(),
4551
+ emailVerified: z140.boolean(),
4552
+ createdAt: z140.coerce.date(),
4553
+ trialExpiresAt: z140.coerce.date().optional(),
4595
4554
  profile: UserProfile,
4596
4555
  linkedIntegrations: UserLinkedIntegrations.optional(),
4597
- loggedOutAt: z142.coerce.date().optional(),
4598
- isProtected: z142.boolean()
4556
+ loggedOutAt: z140.coerce.date().optional(),
4557
+ isProtected: z140.boolean()
4599
4558
  });
4600
4559
 
4601
4560
  // src/data-dumps/workspace-dump.ts
4602
- import { z as z147 } from "zod";
4561
+ import { z as z145 } from "zod";
4603
4562
 
4604
4563
  // src/integrations/integration.ts
4605
- import { z as z143 } from "zod";
4606
- var IntegrationDesignSystem = z143.object({
4607
- designSystemId: z143.string(),
4608
- brandId: z143.string(),
4609
- title: z143.string().optional(),
4610
- userId: z143.string().optional(),
4611
- date: z143.coerce.date().optional()
4612
- });
4613
- var IntegrationCredentialsType = z143.enum(["OAuth2", "PAT", "GithubApp"]);
4614
- var IntegrationCredentialsState = z143.enum(["Active", "Inactive"]);
4615
- var IntegrationCredentialsProfile = z143.object({
4616
- id: nullishToOptional(z143.string()),
4617
- email: nullishToOptional(z143.string()),
4618
- handle: nullishToOptional(z143.string()),
4619
- type: nullishToOptional(z143.string()),
4620
- avatarUrl: nullishToOptional(z143.string()),
4621
- organization: nullishToOptional(z143.string()),
4622
- collection: nullishToOptional(z143.string())
4623
- });
4624
- var IntegrationCredentials = z143.object({
4625
- id: z143.string(),
4564
+ import { z as z141 } from "zod";
4565
+ var IntegrationDesignSystem = z141.object({
4566
+ designSystemId: z141.string(),
4567
+ brandId: z141.string(),
4568
+ title: z141.string().optional(),
4569
+ userId: z141.string().optional(),
4570
+ date: z141.coerce.date().optional()
4571
+ });
4572
+ var IntegrationCredentialsType = z141.enum(["OAuth2", "PAT", "GithubApp"]);
4573
+ var IntegrationCredentialsState = z141.enum(["Active", "Inactive"]);
4574
+ var IntegrationCredentialsProfile = z141.object({
4575
+ id: nullishToOptional(z141.string()),
4576
+ email: nullishToOptional(z141.string()),
4577
+ handle: nullishToOptional(z141.string()),
4578
+ type: nullishToOptional(z141.string()),
4579
+ avatarUrl: nullishToOptional(z141.string()),
4580
+ organization: nullishToOptional(z141.string()),
4581
+ collection: nullishToOptional(z141.string())
4582
+ });
4583
+ var IntegrationCredentials = z141.object({
4584
+ id: z141.string(),
4626
4585
  type: IntegrationCredentialsType,
4627
- integrationId: z143.string(),
4628
- accessToken: z143.string(),
4629
- userId: z143.string(),
4630
- createdAt: z143.coerce.date(),
4631
- refreshToken: z143.string().optional(),
4632
- tokenName: z143.string().optional(),
4633
- expiresAt: z143.coerce.date().optional(),
4634
- refreshedAt: z143.coerce.date().optional(),
4635
- username: z143.string().optional(),
4636
- appInstallationId: z143.string().optional(),
4586
+ integrationId: z141.string(),
4587
+ accessToken: z141.string(),
4588
+ userId: z141.string(),
4589
+ createdAt: z141.coerce.date(),
4590
+ refreshToken: z141.string().optional(),
4591
+ tokenName: z141.string().optional(),
4592
+ expiresAt: z141.coerce.date().optional(),
4593
+ refreshedAt: z141.coerce.date().optional(),
4594
+ username: z141.string().optional(),
4595
+ appInstallationId: z141.string().optional(),
4637
4596
  profile: IntegrationCredentialsProfile.optional(),
4638
- customUrl: z143.string().optional(),
4597
+ customUrl: z141.string().optional(),
4639
4598
  state: IntegrationCredentialsState,
4640
4599
  user: UserMinified.optional()
4641
4600
  });
4642
- var ExtendedIntegrationType = z143.enum([
4601
+ var ExtendedIntegrationType = z141.enum([
4643
4602
  "Figma",
4644
4603
  "Github",
4645
4604
  "Gitlab",
@@ -4650,26 +4609,26 @@ var ExtendedIntegrationType = z143.enum([
4650
4609
  ]);
4651
4610
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4652
4611
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4653
- var Integration = z143.object({
4654
- id: z143.string(),
4655
- workspaceId: z143.string(),
4612
+ var Integration = z141.object({
4613
+ id: z141.string(),
4614
+ workspaceId: z141.string(),
4656
4615
  type: IntegrationType,
4657
- createdAt: z143.coerce.date(),
4658
- integrationCredentials: z143.array(IntegrationCredentials).optional()
4659
- });
4660
- var IntegrationToken = z143.object({
4661
- access_token: z143.string(),
4662
- refresh_token: z143.string().optional(),
4663
- expires_in: z143.union([z143.number().optional(), z143.string().optional()]),
4664
- token_type: z143.string().optional(),
4665
- token_name: z143.string().optional(),
4666
- token_azure_organization_name: z143.string().optional(),
4616
+ createdAt: z141.coerce.date(),
4617
+ integrationCredentials: z141.array(IntegrationCredentials).optional()
4618
+ });
4619
+ var IntegrationToken = z141.object({
4620
+ access_token: z141.string(),
4621
+ refresh_token: z141.string().optional(),
4622
+ expires_in: z141.union([z141.number().optional(), z141.string().optional()]),
4623
+ token_type: z141.string().optional(),
4624
+ token_name: z141.string().optional(),
4625
+ token_azure_organization_name: z141.string().optional(),
4667
4626
  // Azure Cloud PAT only
4668
- token_azure_collection_name: z143.string().optional(),
4627
+ token_azure_collection_name: z141.string().optional(),
4669
4628
  // Azure Server PAT only
4670
- token_bitbucket_username: z143.string().optional(),
4629
+ token_bitbucket_username: z141.string().optional(),
4671
4630
  // Bitbucket only
4672
- custom_url: z143.string().optional().transform((value) => {
4631
+ custom_url: z141.string().optional().transform((value) => {
4673
4632
  if (!value?.trim())
4674
4633
  return void 0;
4675
4634
  return formatCustomUrl(value);
@@ -4708,99 +4667,99 @@ function formatCustomUrl(url) {
4708
4667
 
4709
4668
  // src/workspace/workspace.ts
4710
4669
  import IPCIDR from "ip-cidr";
4711
- import { z as z146 } from "zod";
4670
+ import { z as z144 } from "zod";
4712
4671
 
4713
4672
  // src/workspace/npm-registry-settings.ts
4714
- import { z as z144 } from "zod";
4715
- var NpmRegistryAuthType = z144.enum(["Basic", "Bearer", "None", "Custom"]);
4716
- var NpmRegistryType = z144.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4717
- var NpmRegistryBasicAuthConfig = z144.object({
4718
- authType: z144.literal(NpmRegistryAuthType.Enum.Basic),
4719
- username: z144.string(),
4720
- password: z144.string()
4721
- });
4722
- var NpmRegistryBearerAuthConfig = z144.object({
4723
- authType: z144.literal(NpmRegistryAuthType.Enum.Bearer),
4724
- accessToken: z144.string()
4725
- });
4726
- var NpmRegistryNoAuthConfig = z144.object({
4727
- authType: z144.literal(NpmRegistryAuthType.Enum.None)
4728
- });
4729
- var NpmRegistrCustomAuthConfig = z144.object({
4730
- authType: z144.literal(NpmRegistryAuthType.Enum.Custom),
4731
- authHeaderName: z144.string(),
4732
- authHeaderValue: z144.string()
4733
- });
4734
- var NpmRegistryAuthConfig = z144.discriminatedUnion("authType", [
4673
+ import { z as z142 } from "zod";
4674
+ var NpmRegistryAuthType = z142.enum(["Basic", "Bearer", "None", "Custom"]);
4675
+ var NpmRegistryType = z142.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4676
+ var NpmRegistryBasicAuthConfig = z142.object({
4677
+ authType: z142.literal(NpmRegistryAuthType.Enum.Basic),
4678
+ username: z142.string(),
4679
+ password: z142.string()
4680
+ });
4681
+ var NpmRegistryBearerAuthConfig = z142.object({
4682
+ authType: z142.literal(NpmRegistryAuthType.Enum.Bearer),
4683
+ accessToken: z142.string()
4684
+ });
4685
+ var NpmRegistryNoAuthConfig = z142.object({
4686
+ authType: z142.literal(NpmRegistryAuthType.Enum.None)
4687
+ });
4688
+ var NpmRegistrCustomAuthConfig = z142.object({
4689
+ authType: z142.literal(NpmRegistryAuthType.Enum.Custom),
4690
+ authHeaderName: z142.string(),
4691
+ authHeaderValue: z142.string()
4692
+ });
4693
+ var NpmRegistryAuthConfig = z142.discriminatedUnion("authType", [
4735
4694
  NpmRegistryBasicAuthConfig,
4736
4695
  NpmRegistryBearerAuthConfig,
4737
4696
  NpmRegistryNoAuthConfig,
4738
4697
  NpmRegistrCustomAuthConfig
4739
4698
  ]);
4740
- var NpmRegistryConfigBase = z144.object({
4699
+ var NpmRegistryConfigBase = z142.object({
4741
4700
  registryType: NpmRegistryType,
4742
- enabledScopes: z144.array(z144.string()),
4743
- customRegistryUrl: z144.string().optional(),
4744
- bypassProxy: z144.boolean().default(false),
4745
- npmProxyRegistryConfigId: z144.string().optional(),
4746
- npmProxyVersion: z144.number().optional()
4701
+ enabledScopes: z142.array(z142.string()),
4702
+ customRegistryUrl: z142.string().optional(),
4703
+ bypassProxy: z142.boolean().default(false),
4704
+ npmProxyRegistryConfigId: z142.string().optional(),
4705
+ npmProxyVersion: z142.number().optional()
4747
4706
  });
4748
4707
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4749
4708
 
4750
4709
  // src/workspace/sso-provider.ts
4751
- import { z as z145 } from "zod";
4752
- var SsoProvider = z145.object({
4753
- providerId: z145.string(),
4754
- defaultAutoInviteValue: z145.boolean(),
4755
- autoInviteDomains: z145.record(z145.string(), z145.boolean()),
4756
- skipDocsSupernovaLogin: z145.boolean(),
4757
- areInvitesDisabled: z145.boolean(),
4758
- isTestMode: z145.boolean(),
4759
- emailDomains: z145.array(z145.string()),
4760
- metadataXml: z145.string().nullish()
4710
+ import { z as z143 } from "zod";
4711
+ var SsoProvider = z143.object({
4712
+ providerId: z143.string(),
4713
+ defaultAutoInviteValue: z143.boolean(),
4714
+ autoInviteDomains: z143.record(z143.string(), z143.boolean()),
4715
+ skipDocsSupernovaLogin: z143.boolean(),
4716
+ areInvitesDisabled: z143.boolean(),
4717
+ isTestMode: z143.boolean(),
4718
+ emailDomains: z143.array(z143.string()),
4719
+ metadataXml: z143.string().nullish()
4761
4720
  });
4762
4721
 
4763
4722
  // src/workspace/workspace.ts
4764
4723
  var isValidCIDR = (value) => {
4765
4724
  return IPCIDR.isValidAddress(value);
4766
4725
  };
4767
- var WorkspaceIpWhitelistEntry = z146.object({
4768
- isEnabled: z146.boolean(),
4769
- name: z146.string(),
4770
- range: z146.string().refine(isValidCIDR, {
4726
+ var WorkspaceIpWhitelistEntry = z144.object({
4727
+ isEnabled: z144.boolean(),
4728
+ name: z144.string(),
4729
+ range: z144.string().refine(isValidCIDR, {
4771
4730
  message: "Invalid IP CIDR"
4772
4731
  })
4773
4732
  });
4774
- var WorkspaceIpSettings = z146.object({
4775
- isEnabledForCloud: z146.boolean(),
4776
- isEnabledForDocs: z146.boolean(),
4777
- entries: z146.array(WorkspaceIpWhitelistEntry)
4733
+ var WorkspaceIpSettings = z144.object({
4734
+ isEnabledForCloud: z144.boolean(),
4735
+ isEnabledForDocs: z144.boolean(),
4736
+ entries: z144.array(WorkspaceIpWhitelistEntry)
4778
4737
  });
4779
- var WorkspaceProfile = z146.object({
4780
- name: z146.string(),
4781
- handle: z146.string(),
4782
- color: z146.string(),
4783
- avatar: nullishToOptional(z146.string()),
4738
+ var WorkspaceProfile = z144.object({
4739
+ name: z144.string(),
4740
+ handle: z144.string(),
4741
+ color: z144.string(),
4742
+ avatar: nullishToOptional(z144.string()),
4784
4743
  billingDetails: nullishToOptional(BillingDetails)
4785
4744
  });
4786
4745
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4787
4746
  avatar: true
4788
4747
  });
4789
- var Workspace = z146.object({
4790
- id: z146.string(),
4748
+ var Workspace = z144.object({
4749
+ id: z144.string(),
4791
4750
  profile: WorkspaceProfile,
4792
4751
  subscription: Subscription,
4793
4752
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4794
4753
  sso: nullishToOptional(SsoProvider),
4795
4754
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4796
4755
  });
4797
- var WorkspaceWithDesignSystems = z146.object({
4756
+ var WorkspaceWithDesignSystems = z144.object({
4798
4757
  workspace: Workspace,
4799
- designSystems: z146.array(DesignSystem)
4758
+ designSystems: z144.array(DesignSystem)
4800
4759
  });
4801
4760
 
4802
4761
  // src/data-dumps/workspace-dump.ts
4803
- var WorkspaceDump = z147.object({
4762
+ var WorkspaceDump = z145.object({
4804
4763
  workspace: Workspace,
4805
4764
  designSystems: DesignSystemDump.array(),
4806
4765
  codeIntegration: CodeIntegrationDump,
@@ -4808,94 +4767,94 @@ var WorkspaceDump = z147.object({
4808
4767
  });
4809
4768
 
4810
4769
  // src/data-dumps/user-data-dump.ts
4811
- var UserDump = z148.object({
4770
+ var UserDump = z146.object({
4812
4771
  user: User,
4813
4772
  workspaces: WorkspaceDump.array()
4814
4773
  });
4815
4774
 
4816
4775
  // src/docs-server/session.ts
4817
- import { z as z149 } from "zod";
4818
- var NpmProxyToken = z149.object({
4819
- access: z149.string(),
4820
- expiresAt: z149.number()
4776
+ import { z as z147 } from "zod";
4777
+ var NpmProxyToken = z147.object({
4778
+ access: z147.string(),
4779
+ expiresAt: z147.number()
4821
4780
  });
4822
- var SessionData = z149.object({
4823
- returnToUrl: z149.string().optional(),
4781
+ var SessionData = z147.object({
4782
+ returnToUrl: z147.string().optional(),
4824
4783
  npmProxyToken: NpmProxyToken.optional()
4825
4784
  });
4826
- var Session = z149.object({
4827
- id: z149.string(),
4828
- expiresAt: z149.coerce.date(),
4829
- userId: z149.string().nullable(),
4785
+ var Session = z147.object({
4786
+ id: z147.string(),
4787
+ expiresAt: z147.coerce.date(),
4788
+ userId: z147.string().nullable(),
4830
4789
  data: SessionData
4831
4790
  });
4832
- var AuthTokens = z149.object({
4833
- access: z149.string(),
4834
- refresh: z149.string()
4791
+ var AuthTokens = z147.object({
4792
+ access: z147.string(),
4793
+ refresh: z147.string()
4835
4794
  });
4836
- var UserSession = z149.object({
4795
+ var UserSession = z147.object({
4837
4796
  session: Session,
4838
4797
  user: User.nullable()
4839
4798
  });
4840
4799
 
4841
4800
  // src/events/base.ts
4842
- import { z as z152 } from "zod";
4801
+ import { z as z150 } from "zod";
4843
4802
 
4844
4803
  // src/events/data-source-imported.ts
4845
- import { z as z150 } from "zod";
4846
- var EventDataSourceImported = z150.object({
4847
- type: z150.literal("DataSourceImported"),
4848
- workspaceId: z150.string(),
4849
- designSystemId: z150.string()
4804
+ import { z as z148 } from "zod";
4805
+ var EventDataSourceImported = z148.object({
4806
+ type: z148.literal("DataSourceImported"),
4807
+ workspaceId: z148.string(),
4808
+ designSystemId: z148.string()
4850
4809
  });
4851
4810
 
4852
4811
  // src/events/version-released.ts
4853
- import { z as z151 } from "zod";
4854
- var EventVersionReleased = z151.object({
4855
- type: z151.literal("DesignSystemVersionReleased"),
4856
- workspaceId: z151.string(),
4857
- designSystemId: z151.string(),
4858
- versionId: z151.string()
4812
+ import { z as z149 } from "zod";
4813
+ var EventVersionReleased = z149.object({
4814
+ type: z149.literal("DesignSystemVersionReleased"),
4815
+ workspaceId: z149.string(),
4816
+ designSystemId: z149.string(),
4817
+ versionId: z149.string()
4859
4818
  });
4860
4819
 
4861
4820
  // src/events/base.ts
4862
- var Event = z152.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4821
+ var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4863
4822
 
4864
4823
  // src/export/export-runner/export-context.ts
4865
- import { z as z153 } from "zod";
4866
- var ExportJobDocumentationContext = z153.object({
4867
- isSingleVersionDocs: z153.boolean(),
4868
- versionSlug: z153.string(),
4824
+ import { z as z151 } from "zod";
4825
+ var ExportJobDocumentationContext = z151.object({
4826
+ isSingleVersionDocs: z151.boolean(),
4827
+ versionSlug: z151.string(),
4869
4828
  environment: PublishedDocEnvironment
4870
4829
  });
4871
- var ExportJobContext = z153.object({
4872
- apiUrl: z153.string(),
4873
- accessToken: z153.string(),
4874
- designSystemId: z153.string(),
4875
- designSystemName: z153.string(),
4876
- exporterId: z153.string(),
4877
- versionId: z153.string(),
4878
- brandId: z153.string().optional(),
4879
- themeId: z153.string().optional(),
4880
- themePersistentIds: z153.string().array().optional(),
4881
- exporterName: z153.string(),
4882
- exporterPackageUrl: z153.string(),
4830
+ var ExportJobContext = z151.object({
4831
+ apiUrl: z151.string(),
4832
+ accessToken: z151.string(),
4833
+ designSystemId: z151.string(),
4834
+ designSystemName: z151.string(),
4835
+ exporterId: z151.string(),
4836
+ versionId: z151.string(),
4837
+ brandId: z151.string().optional(),
4838
+ themeId: z151.string().optional(),
4839
+ themePersistentIds: z151.string().array().optional(),
4840
+ exporterName: z151.string(),
4841
+ exporterPackageUrl: z151.string(),
4883
4842
  exporterPropertyValues: ExporterPropertyValue.array(),
4884
4843
  documentation: ExportJobDocumentationContext.optional()
4885
4844
  });
4886
4845
 
4887
4846
  // src/export/export-runner/exporter-payload.ts
4888
- import { z as z154 } from "zod";
4889
- var ExporterFunctionPayload = z154.object({
4890
- exportJobId: z154.string(),
4891
- exportContextId: z154.string(),
4892
- designSystemId: z154.string(),
4893
- workspaceId: z154.string()
4847
+ import { z as z152 } from "zod";
4848
+ var ExporterFunctionPayload = z152.object({
4849
+ exportJobId: z152.string(),
4850
+ exportContextId: z152.string(),
4851
+ designSystemId: z152.string(),
4852
+ workspaceId: z152.string()
4894
4853
  });
4895
4854
 
4896
4855
  // src/export/export-jobs.ts
4897
- import { z as z155 } from "zod";
4898
- var ExportJobDestinationType = z155.enum([
4856
+ import { z as z153 } from "zod";
4857
+ var ExportJobDestinationType = z153.enum([
4899
4858
  "s3",
4900
4859
  "webhookUrl",
4901
4860
  "github",
@@ -4904,30 +4863,30 @@ var ExportJobDestinationType = z155.enum([
4904
4863
  "gitlab",
4905
4864
  "bitbucket"
4906
4865
  ]);
4907
- var ExportJobStatus = z155.enum(["InProgress", "Success", "Failed", "Timeout"]);
4908
- var ExportJobLogEntryType = z155.enum(["success", "info", "warning", "error", "user"]);
4909
- var ExportJobLogEntry = z155.object({
4910
- id: z155.string().optional(),
4911
- time: z155.coerce.date(),
4866
+ var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
4867
+ var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
4868
+ var ExportJobLogEntry = z153.object({
4869
+ id: z153.string().optional(),
4870
+ time: z153.coerce.date(),
4912
4871
  type: ExportJobLogEntryType,
4913
- message: z155.string()
4872
+ message: z153.string()
4914
4873
  });
4915
- var ExportJobPullRequestDestinationResult = z155.object({
4916
- pullRequestUrl: z155.string()
4874
+ var ExportJobPullRequestDestinationResult = z153.object({
4875
+ pullRequestUrl: z153.string()
4917
4876
  });
4918
- var ExportJobS3DestinationResult = z155.object({
4919
- bucket: z155.string(),
4920
- urlPrefix: z155.string().optional(),
4921
- path: z155.string(),
4922
- files: z155.array(z155.string()),
4923
- url: nullishToOptional(z155.string()),
4924
- urls: nullishToOptional(z155.string().array())
4877
+ var ExportJobS3DestinationResult = z153.object({
4878
+ bucket: z153.string(),
4879
+ urlPrefix: z153.string().optional(),
4880
+ path: z153.string(),
4881
+ files: z153.array(z153.string()),
4882
+ url: nullishToOptional(z153.string()),
4883
+ urls: nullishToOptional(z153.string().array())
4925
4884
  });
4926
- var ExportJobDocsDestinationResult = z155.object({
4927
- url: z155.string()
4885
+ var ExportJobDocsDestinationResult = z153.object({
4886
+ url: z153.string()
4928
4887
  });
4929
- var ExportJobResult = z155.object({
4930
- error: z155.string().optional(),
4888
+ var ExportJobResult = z153.object({
4889
+ error: z153.string().optional(),
4931
4890
  s3: nullishToOptional(ExportJobS3DestinationResult),
4932
4891
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4933
4892
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4936,22 +4895,22 @@ var ExportJobResult = z155.object({
4936
4895
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4937
4896
  logs: nullishToOptional(ExportJobLogEntry.array())
4938
4897
  });
4939
- var ExportJob = z155.object({
4940
- id: z155.string(),
4941
- createdAt: z155.coerce.date(),
4942
- finishedAt: z155.coerce.date().optional(),
4943
- designSystemId: z155.string(),
4944
- designSystemVersionId: z155.string(),
4945
- workspaceId: z155.string(),
4946
- scheduleId: z155.string().nullish(),
4947
- exporterId: z155.string(),
4948
- brandId: z155.string().optional(),
4949
- themeId: z155.string().optional(),
4950
- themePersistentIds: z155.string().array().optional(),
4951
- estimatedExecutionTime: z155.number().optional(),
4898
+ var ExportJob = z153.object({
4899
+ id: z153.string(),
4900
+ createdAt: z153.coerce.date(),
4901
+ finishedAt: z153.coerce.date().optional(),
4902
+ designSystemId: z153.string(),
4903
+ designSystemVersionId: z153.string(),
4904
+ workspaceId: z153.string(),
4905
+ scheduleId: z153.string().nullish(),
4906
+ exporterId: z153.string(),
4907
+ brandId: z153.string().optional(),
4908
+ themeId: z153.string().optional(),
4909
+ themePersistentIds: z153.string().array().optional(),
4910
+ estimatedExecutionTime: z153.number().optional(),
4952
4911
  status: ExportJobStatus,
4953
4912
  result: ExportJobResult.optional(),
4954
- createdByUserId: z155.string().optional(),
4913
+ createdByUserId: z153.string().optional(),
4955
4914
  // Destinations
4956
4915
  ...ExportDestinationsMap.shape
4957
4916
  });
@@ -4965,40 +4924,40 @@ var ExportJobFindByFilter = ExportJob.pick({
4965
4924
  themeId: true,
4966
4925
  brandId: true
4967
4926
  }).extend({
4968
- destinations: z155.array(ExportJobDestinationType),
4927
+ destinations: z153.array(ExportJobDestinationType),
4969
4928
  docsEnvironment: PublishedDocEnvironment
4970
4929
  }).partial();
4971
4930
 
4972
4931
  // src/export/exporter-workspace-membership-role.ts
4973
- import { z as z156 } from "zod";
4974
- var ExporterWorkspaceMembershipRole = z156.enum(["Owner", "OwnerArchived", "User"]);
4932
+ import { z as z154 } from "zod";
4933
+ var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
4975
4934
 
4976
4935
  // src/export/exporter-workspace-membership.ts
4977
- import { z as z157 } from "zod";
4978
- var ExporterWorkspaceMembership = z157.object({
4979
- id: z157.string(),
4980
- workspaceId: z157.string(),
4981
- exporterId: z157.string(),
4936
+ import { z as z155 } from "zod";
4937
+ var ExporterWorkspaceMembership = z155.object({
4938
+ id: z155.string(),
4939
+ workspaceId: z155.string(),
4940
+ exporterId: z155.string(),
4982
4941
  role: ExporterWorkspaceMembershipRole
4983
4942
  });
4984
4943
 
4985
4944
  // src/feature-flags/feature-flags.ts
4986
- import { z as z158 } from "zod";
4987
- var FlaggedFeature = z158.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4988
- var FeatureFlagMap = z158.record(FlaggedFeature, z158.boolean());
4989
- var FeatureFlag = z158.object({
4990
- id: z158.string(),
4945
+ import { z as z156 } from "zod";
4946
+ var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
4947
+ var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
4948
+ var FeatureFlag = z156.object({
4949
+ id: z156.string(),
4991
4950
  feature: FlaggedFeature,
4992
- createdAt: z158.coerce.date(),
4993
- enabled: z158.boolean(),
4994
- designSystemId: z158.string().optional()
4951
+ createdAt: z156.coerce.date(),
4952
+ enabled: z156.boolean(),
4953
+ designSystemId: z156.string().optional()
4995
4954
  });
4996
4955
 
4997
4956
  // src/integrations/external-oauth-request.ts
4998
- import { z as z160 } from "zod";
4957
+ import { z as z158 } from "zod";
4999
4958
 
5000
4959
  // src/integrations/oauth-providers.ts
5001
- import { z as z159 } from "zod";
4960
+ import { z as z157 } from "zod";
5002
4961
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5003
4962
  OAuthProviderNames2["Figma"] = "figma";
5004
4963
  OAuthProviderNames2["Azure"] = "azure";
@@ -5007,137 +4966,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5007
4966
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5008
4967
  return OAuthProviderNames2;
5009
4968
  })(OAuthProviderNames || {});
5010
- var OAuthProviderSchema = z159.nativeEnum(OAuthProviderNames);
4969
+ var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
5011
4970
  var OAuthProvider = OAuthProviderSchema.enum;
5012
4971
 
5013
4972
  // src/integrations/external-oauth-request.ts
5014
- var ExternalOAuthRequest = z160.object({
5015
- id: z160.string(),
4973
+ var ExternalOAuthRequest = z158.object({
4974
+ id: z158.string(),
5016
4975
  provider: OAuthProviderSchema,
5017
- userId: z160.string(),
5018
- state: z160.string(),
5019
- createdAt: z160.coerce.date()
4976
+ userId: z158.string(),
4977
+ state: z158.string(),
4978
+ createdAt: z158.coerce.date()
5020
4979
  });
5021
4980
 
5022
4981
  // src/integrations/git.ts
5023
- import { z as z161 } from "zod";
5024
- var GitObjectsQuery = z161.object({
5025
- organization: z161.string().optional(),
4982
+ import { z as z159 } from "zod";
4983
+ var GitObjectsQuery = z159.object({
4984
+ organization: z159.string().optional(),
5026
4985
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5027
- project: z161.string().optional(),
4986
+ project: z159.string().optional(),
5028
4987
  // Only for Bitbucket and Azure
5029
- repository: z161.string().optional(),
4988
+ repository: z159.string().optional(),
5030
4989
  // For all providers. For Gitlab, it's called "project".
5031
- branch: z161.string().optional(),
4990
+ branch: z159.string().optional(),
5032
4991
  // For all providers.
5033
- user: z161.string().optional()
4992
+ user: z159.string().optional()
5034
4993
  // Gitlab user
5035
4994
  });
5036
- var GitOrganization = z161.object({
5037
- id: z161.string(),
5038
- name: z161.string(),
5039
- url: z161.string(),
5040
- slug: z161.string()
5041
- });
5042
- var GitProject = z161.object({
5043
- id: z161.string(),
5044
- name: z161.string(),
5045
- url: z161.string(),
5046
- slug: z161.string()
5047
- });
5048
- var GitRepository = z161.object({
5049
- id: z161.string(),
5050
- name: z161.string(),
5051
- url: z161.string(),
5052
- slug: z161.string(),
4995
+ var GitOrganization = z159.object({
4996
+ id: z159.string(),
4997
+ name: z159.string(),
4998
+ url: z159.string(),
4999
+ slug: z159.string()
5000
+ });
5001
+ var GitProject = z159.object({
5002
+ id: z159.string(),
5003
+ name: z159.string(),
5004
+ url: z159.string(),
5005
+ slug: z159.string()
5006
+ });
5007
+ var GitRepository = z159.object({
5008
+ id: z159.string(),
5009
+ name: z159.string(),
5010
+ url: z159.string(),
5011
+ slug: z159.string(),
5053
5012
  /**
5054
5013
  * Can be undefined when:
5055
5014
  * - there are no branches in the repository yet
5056
5015
  * - Git provider doesn't expose this information on a repository via their API
5057
5016
  */
5058
- defaultBranch: z161.string().optional()
5017
+ defaultBranch: z159.string().optional()
5059
5018
  });
5060
- var GitBranch = z161.object({
5061
- name: z161.string(),
5062
- lastCommitId: z161.string()
5019
+ var GitBranch = z159.object({
5020
+ name: z159.string(),
5021
+ lastCommitId: z159.string()
5063
5022
  });
5064
5023
 
5065
5024
  // src/integrations/oauth-token.ts
5066
- import { z as z162 } from "zod";
5067
- var IntegrationTokenSchemaOld = z162.object({
5068
- id: z162.string(),
5025
+ import { z as z160 } from "zod";
5026
+ var IntegrationTokenSchemaOld = z160.object({
5027
+ id: z160.string(),
5069
5028
  provider: OAuthProviderSchema,
5070
- scope: z162.string(),
5071
- userId: z162.string(),
5072
- accessToken: z162.string(),
5073
- refreshToken: z162.string(),
5074
- expiresAt: z162.coerce.date(),
5075
- externalUserId: z162.string().nullish()
5029
+ scope: z160.string(),
5030
+ userId: z160.string(),
5031
+ accessToken: z160.string(),
5032
+ refreshToken: z160.string(),
5033
+ expiresAt: z160.coerce.date(),
5034
+ externalUserId: z160.string().nullish()
5076
5035
  });
5077
5036
 
5078
5037
  // src/integrations/workspace-oauth-requests.ts
5079
- import { z as z163 } from "zod";
5080
- var WorkspaceOAuthRequestSchema = z163.object({
5081
- id: z163.string(),
5082
- workspaceId: z163.string(),
5038
+ import { z as z161 } from "zod";
5039
+ var WorkspaceOAuthRequestSchema = z161.object({
5040
+ id: z161.string(),
5041
+ workspaceId: z161.string(),
5083
5042
  provider: OAuthProviderSchema,
5084
- userId: z163.string(),
5085
- createdAt: z163.coerce.date()
5043
+ userId: z161.string(),
5044
+ createdAt: z161.coerce.date()
5086
5045
  });
5087
5046
 
5088
5047
  // src/npm/npm-package.ts
5089
- import { z as z164 } from "zod";
5090
- var AnyRecord = z164.record(z164.any());
5048
+ import { z as z162 } from "zod";
5049
+ var AnyRecord = z162.record(z162.any());
5091
5050
  var NpmPackageVersionDist = AnyRecord.and(
5092
- z164.object({
5093
- tarball: z164.string()
5051
+ z162.object({
5052
+ tarball: z162.string()
5094
5053
  })
5095
5054
  );
5096
5055
  var NpmPackageVersion = AnyRecord.and(
5097
- z164.object({
5056
+ z162.object({
5098
5057
  dist: NpmPackageVersionDist
5099
5058
  })
5100
5059
  );
5101
5060
  var NpmPackage = AnyRecord.and(
5102
- z164.object({
5103
- _id: z164.string(),
5104
- name: z164.string(),
5061
+ z162.object({
5062
+ _id: z162.string(),
5063
+ name: z162.string(),
5105
5064
  // e.g. "latest": "1.2.3"
5106
- "dist-tags": z164.record(z164.string(), z164.string()),
5065
+ "dist-tags": z162.record(z162.string(), z162.string()),
5107
5066
  // "1.2.3": {...}
5108
- versions: z164.record(NpmPackageVersion)
5067
+ versions: z162.record(NpmPackageVersion)
5109
5068
  })
5110
5069
  );
5111
5070
 
5112
5071
  // src/npm/npm-proxy-token-payload.ts
5113
- import { z as z165 } from "zod";
5114
- var NpmProxyTokenPayload = z165.object({
5115
- npmProxyRegistryConfigId: z165.string()
5072
+ import { z as z163 } from "zod";
5073
+ var NpmProxyTokenPayload = z163.object({
5074
+ npmProxyRegistryConfigId: z163.string()
5116
5075
  });
5117
5076
 
5118
5077
  // src/tokens/personal-access-token.ts
5119
- import { z as z173 } from "zod";
5078
+ import { z as z171 } from "zod";
5120
5079
 
5121
5080
  // src/workspace/user-invite.ts
5122
- import { z as z167 } from "zod";
5081
+ import { z as z165 } from "zod";
5123
5082
 
5124
5083
  // src/workspace/workspace-role.ts
5125
- import { z as z166 } from "zod";
5126
- var WorkspaceRoleSchema = z166.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5084
+ import { z as z164 } from "zod";
5085
+ var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
5127
5086
  var WorkspaceRole = WorkspaceRoleSchema.enum;
5128
5087
 
5129
5088
  // src/workspace/user-invite.ts
5130
5089
  var MAX_MEMBERS_COUNT = 100;
5131
- var UserInvite = z167.object({
5132
- email: z167.string().email().trim().transform((value) => value.toLowerCase()),
5090
+ var UserInvite = z165.object({
5091
+ email: z165.string().email().trim().transform((value) => value.toLowerCase()),
5133
5092
  role: WorkspaceRoleSchema
5134
5093
  });
5135
- var UserInvites = z167.array(UserInvite).max(MAX_MEMBERS_COUNT);
5094
+ var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
5136
5095
 
5137
5096
  // src/workspace/workspace-configuration.ts
5138
- import { z as z168 } from "zod";
5139
- var WorkspaceConfigurationUpdate = z168.object({
5140
- id: z168.string(),
5097
+ import { z as z166 } from "zod";
5098
+ var WorkspaceConfigurationUpdate = z166.object({
5099
+ id: z166.string(),
5141
5100
  ipWhitelist: WorkspaceIpSettings.optional(),
5142
5101
  sso: SsoProvider.optional(),
5143
5102
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5145,32 +5104,32 @@ var WorkspaceConfigurationUpdate = z168.object({
5145
5104
  });
5146
5105
 
5147
5106
  // src/workspace/workspace-context.ts
5148
- import { z as z169 } from "zod";
5149
- var WorkspaceContext = z169.object({
5150
- workspaceId: z169.string(),
5107
+ import { z as z167 } from "zod";
5108
+ var WorkspaceContext = z167.object({
5109
+ workspaceId: z167.string(),
5151
5110
  product: ProductCodeSchema,
5152
5111
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5153
- publicDesignSystem: z169.boolean().optional()
5112
+ publicDesignSystem: z167.boolean().optional()
5154
5113
  });
5155
5114
 
5156
5115
  // src/workspace/workspace-create.ts
5157
- import { z as z170 } from "zod";
5116
+ import { z as z168 } from "zod";
5158
5117
  var WORKSPACE_NAME_MIN_LENGTH = 2;
5159
5118
  var WORKSPACE_NAME_MAX_LENGTH = 64;
5160
5119
  var HANDLE_MIN_LENGTH = 2;
5161
5120
  var HANDLE_MAX_LENGTH = 64;
5162
- var CreateWorkspaceInput = z170.object({
5163
- name: z170.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5121
+ var CreateWorkspaceInput = z168.object({
5122
+ name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5164
5123
  product: ProductCodeSchema,
5165
- priceId: z170.string(),
5166
- billingEmail: z170.string().email().optional(),
5167
- handle: z170.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5124
+ priceId: z168.string(),
5125
+ billingEmail: z168.string().email().optional(),
5126
+ handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5168
5127
  invites: UserInvites.optional(),
5169
- promoCode: z170.string().optional(),
5128
+ promoCode: z168.string().optional(),
5170
5129
  status: InternalStatusSchema.optional(),
5171
5130
  planInterval: BillingIntervalSchema.optional(),
5172
- seats: z170.number().optional(),
5173
- seatLimit: z170.number().optional(),
5131
+ seats: z168.number().optional(),
5132
+ seatLimit: z168.number().optional(),
5174
5133
  card: CardSchema.optional(),
5175
5134
  sso: SsoProvider.optional(),
5176
5135
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5178,47 +5137,47 @@ var CreateWorkspaceInput = z170.object({
5178
5137
  });
5179
5138
 
5180
5139
  // src/workspace/workspace-invitations.ts
5181
- import { z as z171 } from "zod";
5182
- var WorkspaceInvitation = z171.object({
5183
- id: z171.string(),
5184
- email: z171.string().email(),
5185
- createdAt: z171.coerce.date(),
5186
- resentAt: z171.coerce.date().nullish(),
5187
- role: z171.nativeEnum(WorkspaceRole),
5188
- workspaceId: z171.string(),
5189
- invitedBy: z171.string()
5140
+ import { z as z169 } from "zod";
5141
+ var WorkspaceInvitation = z169.object({
5142
+ id: z169.string(),
5143
+ email: z169.string().email(),
5144
+ createdAt: z169.coerce.date(),
5145
+ resentAt: z169.coerce.date().nullish(),
5146
+ role: z169.nativeEnum(WorkspaceRole),
5147
+ workspaceId: z169.string(),
5148
+ invitedBy: z169.string()
5190
5149
  });
5191
5150
 
5192
5151
  // src/workspace/workspace-membership.ts
5193
- import { z as z172 } from "zod";
5194
- var WorkspaceMembership = z172.object({
5195
- id: z172.string(),
5196
- userId: z172.string(),
5197
- workspaceId: z172.string(),
5198
- workspaceRole: z172.nativeEnum(WorkspaceRole),
5152
+ import { z as z170 } from "zod";
5153
+ var WorkspaceMembership = z170.object({
5154
+ id: z170.string(),
5155
+ userId: z170.string(),
5156
+ workspaceId: z170.string(),
5157
+ workspaceRole: z170.nativeEnum(WorkspaceRole),
5199
5158
  notificationSettings: UserNotificationSettings
5200
5159
  });
5201
- var UpdateMembershipRolesInput = z172.object({
5202
- members: z172.array(
5203
- z172.object({
5204
- userId: z172.string(),
5205
- role: z172.nativeEnum(WorkspaceRole)
5160
+ var UpdateMembershipRolesInput = z170.object({
5161
+ members: z170.array(
5162
+ z170.object({
5163
+ userId: z170.string(),
5164
+ role: z170.nativeEnum(WorkspaceRole)
5206
5165
  })
5207
5166
  )
5208
5167
  });
5209
5168
 
5210
5169
  // src/tokens/personal-access-token.ts
5211
- var PersonalAccessToken = z173.object({
5212
- id: z173.string(),
5213
- userId: z173.string(),
5214
- workspaceId: z173.string().optional(),
5170
+ var PersonalAccessToken = z171.object({
5171
+ id: z171.string(),
5172
+ userId: z171.string(),
5173
+ workspaceId: z171.string().optional(),
5215
5174
  workspaceRole: WorkspaceRoleSchema.optional(),
5216
- name: z173.string(),
5217
- hidden: z173.boolean(),
5218
- token: z173.string(),
5219
- scope: z173.string().optional(),
5220
- createdAt: z173.coerce.date(),
5221
- expireAt: z173.coerce.date().optional()
5175
+ name: z171.string(),
5176
+ hidden: z171.boolean(),
5177
+ token: z171.string(),
5178
+ scope: z171.string().optional(),
5179
+ createdAt: z171.coerce.date(),
5180
+ expireAt: z171.coerce.date().optional()
5222
5181
  });
5223
5182
  export {
5224
5183
  Address,
@@ -5301,12 +5260,10 @@ export {
5301
5260
  DesignElementType,
5302
5261
  DesignSystem,
5303
5262
  DesignSystemAccessMode,
5304
- DesignSystemCreateInput,
5305
5263
  DesignSystemDump,
5306
5264
  DesignSystemElementExportProps,
5307
5265
  DesignSystemMembership,
5308
5266
  DesignSystemSwitcher,
5309
- DesignSystemUpdateInput,
5310
5267
  DesignSystemVersion,
5311
5268
  DesignSystemVersionDump,
5312
5269
  DesignSystemVersionMultiplayerDump,