@supernova-studio/model 0.54.4 → 0.54.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -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 z128 } from "zod";
289
+ import { z as z125 } 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 z127 } from "zod";
392
+ import { z as z124 } from "zod";
393
393
 
394
394
  // src/export/export-destinations.ts
395
- import { z as z126 } from "zod";
395
+ import { z as z123 } from "zod";
396
396
 
397
397
  // src/dsm/assets/asset-dynamo-record.ts
398
398
  import { z as z18 } from "zod";
@@ -4033,140 +4033,43 @@ var Brand = z115.object({
4033
4033
  });
4034
4034
 
4035
4035
  // src/dsm/design-system-update.ts
4036
- import { z as z120 } from "zod";
4037
-
4038
- // src/dsm/design-system.ts
4039
- import { z as z119 } from "zod";
4040
-
4041
- // src/workspace/workspace.ts
4042
- import IPCIDR from "ip-cidr";
4043
- import { z as z118 } from "zod";
4044
-
4045
- // src/workspace/npm-registry-settings.ts
4046
- import { z as z116 } from "zod";
4047
- var NpmRegistryAuthType = z116.enum(["Basic", "Bearer", "None", "Custom"]);
4048
- var NpmRegistryType = z116.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4049
- var NpmRegistryBasicAuthConfig = z116.object({
4050
- authType: z116.literal(NpmRegistryAuthType.Enum.Basic),
4051
- username: z116.string(),
4052
- password: z116.string()
4053
- });
4054
- var NpmRegistryBearerAuthConfig = z116.object({
4055
- authType: z116.literal(NpmRegistryAuthType.Enum.Bearer),
4056
- accessToken: z116.string()
4057
- });
4058
- var NpmRegistryNoAuthConfig = z116.object({
4059
- authType: z116.literal(NpmRegistryAuthType.Enum.None)
4060
- });
4061
- var NpmRegistrCustomAuthConfig = z116.object({
4062
- authType: z116.literal(NpmRegistryAuthType.Enum.Custom),
4063
- authHeaderName: z116.string(),
4064
- authHeaderValue: z116.string()
4065
- });
4066
- var NpmRegistryAuthConfig = z116.discriminatedUnion("authType", [
4067
- NpmRegistryBasicAuthConfig,
4068
- NpmRegistryBearerAuthConfig,
4069
- NpmRegistryNoAuthConfig,
4070
- NpmRegistrCustomAuthConfig
4071
- ]);
4072
- var NpmRegistryConfigBase = z116.object({
4073
- registryType: NpmRegistryType,
4074
- enabledScopes: z116.array(z116.string()),
4075
- customRegistryUrl: z116.string().optional(),
4076
- bypassProxy: z116.boolean().default(false),
4077
- npmProxyRegistryConfigId: z116.string().optional(),
4078
- npmProxyVersion: z116.number().optional()
4079
- });
4080
- var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4081
-
4082
- // src/workspace/sso-provider.ts
4083
4036
  import { z as z117 } from "zod";
4084
- var SsoProvider = z117.object({
4085
- providerId: z117.string(),
4086
- defaultAutoInviteValue: z117.boolean(),
4087
- autoInviteDomains: z117.record(z117.string(), z117.boolean()),
4088
- skipDocsSupernovaLogin: z117.boolean(),
4089
- areInvitesDisabled: z117.boolean(),
4090
- isTestMode: z117.boolean(),
4091
- emailDomains: z117.array(z117.string()),
4092
- metadataXml: z117.string().nullish()
4093
- });
4094
-
4095
- // src/workspace/workspace.ts
4096
- var isValidCIDR = (value) => {
4097
- return IPCIDR.isValidAddress(value);
4098
- };
4099
- var WorkspaceIpWhitelistEntry = z118.object({
4100
- isEnabled: z118.boolean(),
4101
- name: z118.string(),
4102
- range: z118.string().refine(isValidCIDR, {
4103
- message: "Invalid IP CIDR"
4104
- })
4105
- });
4106
- var WorkspaceIpSettings = z118.object({
4107
- isEnabledForCloud: z118.boolean(),
4108
- isEnabledForDocs: z118.boolean(),
4109
- entries: z118.array(WorkspaceIpWhitelistEntry)
4110
- });
4111
- var WorkspaceProfile = z118.object({
4112
- name: z118.string(),
4113
- handle: z118.string(),
4114
- color: z118.string(),
4115
- avatar: nullishToOptional(z118.string()),
4116
- billingDetails: nullishToOptional(BillingDetails)
4117
- });
4118
- var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4119
- avatar: true
4120
- });
4121
- var Workspace = z118.object({
4122
- id: z118.string(),
4123
- profile: WorkspaceProfile,
4124
- subscription: Subscription,
4125
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4126
- sso: nullishToOptional(SsoProvider),
4127
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4128
- });
4129
- var WorkspaceWithDesignSystems = z118.object({
4130
- workspace: Workspace,
4131
- designSystems: z118.array(DesignSystem)
4132
- });
4133
4037
 
4134
4038
  // src/dsm/design-system.ts
4135
- var DesignSystemSwitcher = z119.object({
4136
- isEnabled: z119.boolean(),
4137
- designSystemIds: z119.array(z119.string())
4138
- });
4139
- var DesignSystem = z119.object({
4140
- id: z119.string(),
4141
- workspaceId: z119.string(),
4142
- name: z119.string(),
4143
- description: z119.string(),
4144
- docExporterId: nullishToOptional(z119.string()),
4145
- docSlug: z119.string(),
4146
- docUserSlug: nullishToOptional(z119.string()),
4147
- docSlugDeprecated: z119.string(),
4148
- isPublic: z119.boolean(),
4149
- isMultibrand: z119.boolean(),
4150
- docViewUrl: nullishToOptional(z119.string()),
4151
- basePrefixes: z119.array(z119.string()),
4039
+ import { z as z116 } from "zod";
4040
+ var DesignSystemAccessMode = z116.enum(["Open", "InviteOnly"]);
4041
+ var DesignSystemSwitcher = z116.object({
4042
+ isEnabled: z116.boolean(),
4043
+ designSystemIds: z116.array(z116.string())
4044
+ });
4045
+ var DesignSystem = z116.object({
4046
+ id: z116.string(),
4047
+ workspaceId: z116.string(),
4048
+ name: z116.string(),
4049
+ description: z116.string(),
4050
+ docExporterId: nullishToOptional(z116.string()),
4051
+ docSlug: z116.string(),
4052
+ docUserSlug: nullishToOptional(z116.string()),
4053
+ docSlugDeprecated: z116.string(),
4054
+ isPublic: z116.boolean(),
4055
+ isMultibrand: z116.boolean(),
4056
+ docViewUrl: nullishToOptional(z116.string()),
4057
+ basePrefixes: z116.array(z116.string()),
4152
4058
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4153
- isApprovalFeatureEnabled: z119.boolean(),
4154
- approvalRequiredForPublishing: z119.boolean(),
4155
- createdAt: z119.coerce.date(),
4156
- updatedAt: z119.coerce.date()
4157
- });
4158
- var DesignSystemWithWorkspace = z119.object({
4159
- designSystem: DesignSystem,
4160
- workspace: Workspace
4059
+ isApprovalFeatureEnabled: z116.boolean(),
4060
+ approvalRequiredForPublishing: z116.boolean(),
4061
+ accessMode: DesignSystemAccessMode,
4062
+ createdAt: z116.coerce.date(),
4063
+ updatedAt: z116.coerce.date()
4161
4064
  });
4162
4065
 
4163
4066
  // src/dsm/design-system-update.ts
4164
4067
  var DS_NAME_MIN_LENGTH = 2;
4165
4068
  var DS_NAME_MAX_LENGTH = 64;
4166
4069
  var DS_DESC_MAX_LENGTH = 2048;
4167
- var DesignSystemUpdateInputMetadata = z120.object({
4168
- name: z120.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
4169
- description: z120.string().max(DS_DESC_MAX_LENGTH).trim().optional()
4070
+ var DesignSystemUpdateInputMetadata = z117.object({
4071
+ name: z117.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
4072
+ description: z117.string().max(DS_DESC_MAX_LENGTH).trim().optional()
4170
4073
  });
4171
4074
  var DesignSystemUpdateInput = DesignSystem.partial().omit({
4172
4075
  id: true,
@@ -4180,197 +4083,197 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
4180
4083
  });
4181
4084
 
4182
4085
  // src/dsm/desing-system-create.ts
4183
- import { z as z121 } from "zod";
4086
+ import { z as z118 } from "zod";
4184
4087
  var DS_NAME_MIN_LENGTH2 = 2;
4185
4088
  var DS_NAME_MAX_LENGTH2 = 64;
4186
4089
  var DS_DESC_MAX_LENGTH2 = 64;
4187
- var DesignSystemCreateInputMetadata = z121.object({
4188
- name: z121.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
4189
- description: z121.string().max(DS_DESC_MAX_LENGTH2).trim()
4090
+ var DesignSystemCreateInputMetadata = z118.object({
4091
+ name: z118.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
4092
+ description: z118.string().max(DS_DESC_MAX_LENGTH2).trim()
4190
4093
  });
4191
- var DesignSystemCreateInput = z121.object({
4094
+ var DesignSystemCreateInput = z118.object({
4192
4095
  meta: DesignSystemCreateInputMetadata,
4193
- workspaceId: z121.string(),
4194
- isPublic: z121.boolean().optional(),
4195
- basePrefixes: z121.array(z121.string()).optional(),
4196
- docUserSlug: z121.string().nullish().optional(),
4197
- source: z121.array(z121.string()).optional()
4096
+ workspaceId: z118.string(),
4097
+ isPublic: z118.boolean().optional(),
4098
+ basePrefixes: z118.array(z118.string()).optional(),
4099
+ docUserSlug: z118.string().nullish().optional(),
4100
+ source: z118.array(z118.string()).optional()
4198
4101
  });
4199
4102
 
4200
4103
  // src/dsm/exporter-property-values-collection.ts
4201
- import { z as z122 } from "zod";
4202
- var ExporterPropertyImageValue = z122.object({
4104
+ import { z as z119 } from "zod";
4105
+ var ExporterPropertyImageValue = z119.object({
4203
4106
  asset: PageBlockAsset.optional(),
4204
- assetId: z122.string().optional(),
4205
- assetUrl: z122.string().optional()
4206
- });
4207
- var ExporterPropertyValue = z122.object({
4208
- key: z122.string(),
4209
- value: z122.union([
4210
- z122.number(),
4211
- z122.string(),
4212
- z122.boolean(),
4107
+ assetId: z119.string().optional(),
4108
+ assetUrl: z119.string().optional()
4109
+ });
4110
+ var ExporterPropertyValue = z119.object({
4111
+ key: z119.string(),
4112
+ value: z119.union([
4113
+ z119.number(),
4114
+ z119.string(),
4115
+ z119.boolean(),
4213
4116
  ExporterPropertyImageValue,
4214
4117
  ColorTokenData,
4215
4118
  TypographyTokenData
4216
4119
  ])
4217
4120
  });
4218
- var ExporterPropertyValuesCollection = z122.object({
4219
- id: z122.string(),
4220
- designSystemId: z122.string(),
4221
- exporterId: z122.string(),
4222
- values: z122.array(ExporterPropertyValue)
4121
+ var ExporterPropertyValuesCollection = z119.object({
4122
+ id: z119.string(),
4123
+ designSystemId: z119.string(),
4124
+ exporterId: z119.string(),
4125
+ values: z119.array(ExporterPropertyValue)
4223
4126
  });
4224
4127
 
4225
4128
  // src/dsm/published-doc-page.ts
4226
- import { z as z123 } from "zod";
4129
+ import { z as z120 } from "zod";
4227
4130
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4228
4131
  function tryParseShortPersistentId(url = "/") {
4229
4132
  const lastUrlPart = url.split("/").pop() || "";
4230
4133
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4231
4134
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4232
4135
  }
4233
- var PublishedDocPage = z123.object({
4234
- id: z123.string(),
4235
- publishedDocId: z123.string(),
4236
- pageShortPersistentId: z123.string(),
4237
- pathV1: z123.string(),
4238
- pathV2: z123.string(),
4239
- storagePath: z123.string(),
4240
- locale: z123.string().optional(),
4241
- isPrivate: z123.boolean(),
4242
- isHidden: z123.boolean(),
4243
- createdAt: z123.coerce.date(),
4244
- updatedAt: z123.coerce.date()
4136
+ var PublishedDocPage = z120.object({
4137
+ id: z120.string(),
4138
+ publishedDocId: z120.string(),
4139
+ pageShortPersistentId: z120.string(),
4140
+ pathV1: z120.string(),
4141
+ pathV2: z120.string(),
4142
+ storagePath: z120.string(),
4143
+ locale: z120.string().optional(),
4144
+ isPrivate: z120.boolean(),
4145
+ isHidden: z120.boolean(),
4146
+ createdAt: z120.coerce.date(),
4147
+ updatedAt: z120.coerce.date()
4245
4148
  });
4246
4149
 
4247
4150
  // src/dsm/published-doc.ts
4248
- import { z as z124 } from "zod";
4151
+ import { z as z121 } from "zod";
4249
4152
  var publishedDocEnvironments = ["Live", "Preview"];
4250
- var PublishedDocEnvironment = z124.enum(publishedDocEnvironments);
4251
- var PublishedDocsChecksums = z124.record(z124.string());
4252
- var PublishedDocRoutingVersion = z124.enum(["1", "2"]);
4253
- var PublishedDoc = z124.object({
4254
- id: z124.string(),
4255
- designSystemVersionId: z124.string(),
4256
- createdAt: z124.coerce.date(),
4257
- updatedAt: z124.coerce.date(),
4258
- lastPublishedAt: z124.coerce.date(),
4259
- isDefault: z124.boolean(),
4260
- isPublic: z124.boolean(),
4153
+ var PublishedDocEnvironment = z121.enum(publishedDocEnvironments);
4154
+ var PublishedDocsChecksums = z121.record(z121.string());
4155
+ var PublishedDocRoutingVersion = z121.enum(["1", "2"]);
4156
+ var PublishedDoc = z121.object({
4157
+ id: z121.string(),
4158
+ designSystemVersionId: z121.string(),
4159
+ createdAt: z121.coerce.date(),
4160
+ updatedAt: z121.coerce.date(),
4161
+ lastPublishedAt: z121.coerce.date(),
4162
+ isDefault: z121.boolean(),
4163
+ isPublic: z121.boolean(),
4261
4164
  environment: PublishedDocEnvironment,
4262
4165
  checksums: PublishedDocsChecksums,
4263
- storagePath: z124.string(),
4264
- wasMigrated: z124.boolean(),
4166
+ storagePath: z121.string(),
4167
+ wasMigrated: z121.boolean(),
4265
4168
  routingVersion: PublishedDocRoutingVersion,
4266
- usesLocalizations: z124.boolean(),
4267
- wasPublishedWithLocalizations: z124.boolean(),
4268
- tokenCount: z124.number(),
4269
- assetCount: z124.number()
4169
+ usesLocalizations: z121.boolean(),
4170
+ wasPublishedWithLocalizations: z121.boolean(),
4171
+ tokenCount: z121.number(),
4172
+ assetCount: z121.number()
4270
4173
  });
4271
4174
 
4272
4175
  // src/dsm/version.ts
4273
- import { z as z125 } from "zod";
4274
- var DesignSystemVersion = z125.object({
4275
- id: z125.string(),
4276
- version: z125.string(),
4277
- createdAt: z125.coerce.date(),
4278
- designSystemId: z125.string(),
4279
- name: z125.string(),
4280
- comment: z125.string(),
4281
- isReadonly: z125.boolean(),
4282
- changeLog: z125.string(),
4283
- parentId: z125.string().optional(),
4284
- isDraftsFeatureAdopted: z125.boolean()
4285
- });
4286
- var VersionCreationJobStatus = z125.enum(["Success", "InProgress", "Error"]);
4287
- var VersionCreationJob = z125.object({
4288
- id: z125.string(),
4289
- version: z125.string(),
4290
- designSystemId: z125.string(),
4291
- designSystemVersionId: nullishToOptional(z125.string()),
4176
+ import { z as z122 } from "zod";
4177
+ var DesignSystemVersion = z122.object({
4178
+ id: z122.string(),
4179
+ version: z122.string(),
4180
+ createdAt: z122.coerce.date(),
4181
+ designSystemId: z122.string(),
4182
+ name: z122.string(),
4183
+ comment: z122.string(),
4184
+ isReadonly: z122.boolean(),
4185
+ changeLog: z122.string(),
4186
+ parentId: z122.string().optional(),
4187
+ isDraftsFeatureAdopted: z122.boolean()
4188
+ });
4189
+ var VersionCreationJobStatus = z122.enum(["Success", "InProgress", "Error"]);
4190
+ var VersionCreationJob = z122.object({
4191
+ id: z122.string(),
4192
+ version: z122.string(),
4193
+ designSystemId: z122.string(),
4194
+ designSystemVersionId: nullishToOptional(z122.string()),
4292
4195
  status: VersionCreationJobStatus,
4293
- errorMessage: nullishToOptional(z125.string())
4196
+ errorMessage: nullishToOptional(z122.string())
4294
4197
  });
4295
4198
 
4296
4199
  // src/export/export-destinations.ts
4297
4200
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4298
4201
  var BITBUCKET_MAX_LENGTH = 64;
4299
- var ExportJobDocumentationChanges = z126.object({
4300
- pagePersistentIds: z126.string().array(),
4301
- groupPersistentIds: z126.string().array()
4202
+ var ExportJobDocumentationChanges = z123.object({
4203
+ pagePersistentIds: z123.string().array(),
4204
+ groupPersistentIds: z123.string().array()
4302
4205
  });
4303
- var ExporterDestinationDocs = z126.object({
4206
+ var ExporterDestinationDocs = z123.object({
4304
4207
  environment: PublishedDocEnvironment,
4305
4208
  changes: nullishToOptional(ExportJobDocumentationChanges)
4306
4209
  });
4307
- var ExporterDestinationS3 = z126.object({});
4308
- var ExporterDestinationGithub = z126.object({
4309
- credentialId: z126.string().optional(),
4210
+ var ExporterDestinationS3 = z123.object({});
4211
+ var ExporterDestinationGithub = z123.object({
4212
+ credentialId: z123.string().optional(),
4310
4213
  // Repository
4311
- url: z126.string(),
4214
+ url: z123.string(),
4312
4215
  // Location
4313
- branch: z126.string(),
4314
- relativePath: nullishToOptional(z126.string()),
4216
+ branch: z123.string(),
4217
+ relativePath: nullishToOptional(z123.string()),
4315
4218
  // Commit metadata
4316
- commitAuthorName: nullishToOptional(z126.string()),
4317
- commitAuthorEmail: nullishToOptional(z126.string()),
4219
+ commitAuthorName: nullishToOptional(z123.string()),
4220
+ commitAuthorEmail: nullishToOptional(z123.string()),
4318
4221
  // Legacy deprecated fields. Use `credentialId` instead
4319
- connectionId: nullishToOptional(z126.string()),
4320
- userId: nullishToOptional(z126.number())
4222
+ connectionId: nullishToOptional(z123.string()),
4223
+ userId: nullishToOptional(z123.number())
4321
4224
  });
4322
- var ExporterDestinationAzure = z126.object({
4323
- credentialId: z126.string().optional(),
4225
+ var ExporterDestinationAzure = z123.object({
4226
+ credentialId: z123.string().optional(),
4324
4227
  // Repository
4325
- organizationId: z126.string(),
4326
- projectId: z126.string(),
4327
- repositoryId: z126.string(),
4228
+ organizationId: z123.string(),
4229
+ projectId: z123.string(),
4230
+ repositoryId: z123.string(),
4328
4231
  // Commit metadata
4329
- commitAuthorName: nullishToOptional(z126.string()),
4330
- commitAuthorEmail: nullishToOptional(z126.string()),
4232
+ commitAuthorName: nullishToOptional(z123.string()),
4233
+ commitAuthorEmail: nullishToOptional(z123.string()),
4331
4234
  // Location
4332
- branch: z126.string(),
4333
- relativePath: nullishToOptional(z126.string()),
4235
+ branch: z123.string(),
4236
+ relativePath: nullishToOptional(z123.string()),
4334
4237
  // Maybe not needed
4335
- url: nullishToOptional(z126.string()),
4238
+ url: nullishToOptional(z123.string()),
4336
4239
  // Legacy deprecated fields. Use `credentialId` instead
4337
- connectionId: nullishToOptional(z126.string()),
4338
- userId: nullishToOptional(z126.number())
4240
+ connectionId: nullishToOptional(z123.string()),
4241
+ userId: nullishToOptional(z123.number())
4339
4242
  });
4340
- var ExporterDestinationGitlab = z126.object({
4341
- credentialId: z126.string().optional(),
4243
+ var ExporterDestinationGitlab = z123.object({
4244
+ credentialId: z123.string().optional(),
4342
4245
  // Repository
4343
- projectId: z126.string(),
4246
+ projectId: z123.string(),
4344
4247
  // Commit metadata
4345
- commitAuthorName: nullishToOptional(z126.string()),
4346
- commitAuthorEmail: nullishToOptional(z126.string()),
4248
+ commitAuthorName: nullishToOptional(z123.string()),
4249
+ commitAuthorEmail: nullishToOptional(z123.string()),
4347
4250
  // Location
4348
- branch: z126.string(),
4349
- relativePath: nullishToOptional(z126.string()),
4251
+ branch: z123.string(),
4252
+ relativePath: nullishToOptional(z123.string()),
4350
4253
  // Maybe not needed
4351
- url: nullishToOptional(z126.string()),
4254
+ url: nullishToOptional(z123.string()),
4352
4255
  // Legacy deprecated fields. Use `credentialId` instead
4353
- connectionId: nullishToOptional(z126.string()),
4354
- userId: nullishToOptional(z126.number())
4256
+ connectionId: nullishToOptional(z123.string()),
4257
+ userId: nullishToOptional(z123.number())
4355
4258
  });
4356
- var ExporterDestinationBitbucket = z126.object({
4357
- credentialId: z126.string().optional(),
4259
+ var ExporterDestinationBitbucket = z123.object({
4260
+ credentialId: z123.string().optional(),
4358
4261
  // Repository
4359
- workspaceSlug: z126.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4360
- projectKey: z126.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4361
- repoSlug: z126.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4262
+ workspaceSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4263
+ projectKey: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4264
+ repoSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4362
4265
  // Commit metadata
4363
- commitAuthorName: nullishToOptional(z126.string()),
4364
- commitAuthorEmail: nullishToOptional(z126.string()),
4266
+ commitAuthorName: nullishToOptional(z123.string()),
4267
+ commitAuthorEmail: nullishToOptional(z123.string()),
4365
4268
  // Location
4366
- branch: z126.string(),
4367
- relativePath: nullishToOptional(z126.string()),
4269
+ branch: z123.string(),
4270
+ relativePath: nullishToOptional(z123.string()),
4368
4271
  // Legacy deprecated fields. Use `credentialId` instead
4369
- connectionId: nullishToOptional(z126.string()),
4370
- userId: nullishToOptional(z126.number())
4272
+ connectionId: nullishToOptional(z123.string()),
4273
+ userId: nullishToOptional(z123.number())
4371
4274
  });
4372
- var ExportDestinationsMap = z126.object({
4373
- webhookUrl: z126.string().optional(),
4275
+ var ExportDestinationsMap = z123.object({
4276
+ webhookUrl: z123.string().optional(),
4374
4277
  destinationSnDocs: ExporterDestinationDocs.optional(),
4375
4278
  destinationS3: ExporterDestinationS3.optional(),
4376
4279
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4380,148 +4283,148 @@ var ExportDestinationsMap = z126.object({
4380
4283
  });
4381
4284
 
4382
4285
  // src/export/pipeline.ts
4383
- var PipelineEventType = z127.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4384
- var PipelineDestinationGitType = z127.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4385
- var PipelineDestinationExtraType = z127.enum(["WebhookUrl", "S3", "Documentation"]);
4386
- var PipelineDestinationType = z127.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4387
- var Pipeline = z127.object({
4388
- id: z127.string(),
4389
- name: z127.string(),
4286
+ var PipelineEventType = z124.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4287
+ var PipelineDestinationGitType = z124.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4288
+ var PipelineDestinationExtraType = z124.enum(["WebhookUrl", "S3", "Documentation"]);
4289
+ var PipelineDestinationType = z124.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4290
+ var Pipeline = z124.object({
4291
+ id: z124.string(),
4292
+ name: z124.string(),
4390
4293
  eventType: PipelineEventType,
4391
- isEnabled: z127.boolean(),
4392
- workspaceId: z127.string(),
4393
- designSystemId: z127.string(),
4394
- exporterId: z127.string(),
4395
- brandPersistentId: z127.string().optional(),
4396
- themePersistentId: z127.string().optional(),
4294
+ isEnabled: z124.boolean(),
4295
+ workspaceId: z124.string(),
4296
+ designSystemId: z124.string(),
4297
+ exporterId: z124.string(),
4298
+ brandPersistentId: z124.string().optional(),
4299
+ themePersistentId: z124.string().optional(),
4397
4300
  // Destinations
4398
4301
  ...ExportDestinationsMap.shape
4399
4302
  });
4400
4303
 
4401
4304
  // src/data-dumps/code-integration-dump.ts
4402
- var ExportJobDump = z128.object({
4403
- id: z128.string(),
4404
- createdAt: z128.coerce.date(),
4405
- finishedAt: z128.coerce.date(),
4406
- exportArtefacts: z128.string()
4305
+ var ExportJobDump = z125.object({
4306
+ id: z125.string(),
4307
+ createdAt: z125.coerce.date(),
4308
+ finishedAt: z125.coerce.date(),
4309
+ exportArtefacts: z125.string()
4407
4310
  });
4408
- var CodeIntegrationDump = z128.object({
4311
+ var CodeIntegrationDump = z125.object({
4409
4312
  exporters: Exporter.array(),
4410
4313
  pipelines: Pipeline.array(),
4411
4314
  exportJobs: ExportJobDump.array()
4412
4315
  });
4413
4316
 
4414
4317
  // src/data-dumps/design-system-dump.ts
4415
- import { z as z135 } from "zod";
4318
+ import { z as z132 } from "zod";
4416
4319
 
4417
4320
  // src/data-dumps/design-system-version-dump.ts
4418
- import { z as z134 } from "zod";
4321
+ import { z as z131 } from "zod";
4419
4322
 
4420
4323
  // src/liveblocks/rooms/design-system-version-room.ts
4421
- import { z as z129 } from "zod";
4324
+ import { z as z126 } from "zod";
4422
4325
  var DesignSystemVersionRoom = Entity.extend({
4423
- designSystemVersionId: z129.string(),
4424
- liveblocksId: z129.string()
4425
- });
4426
- var DesignSystemVersionRoomInternalSettings = z129.object({
4427
- routingVersion: z129.string(),
4428
- isDraftFeatureAdopted: z129.boolean(),
4429
- isApprovalFeatureEnabled: z129.boolean(),
4430
- approvalRequiredForPublishing: z129.boolean()
4431
- });
4432
- var DesignSystemVersionRoomInitialState = z129.object({
4433
- pages: z129.array(DocumentationPageV2),
4434
- groups: z129.array(ElementGroup),
4435
- pageSnapshots: z129.array(DocumentationPageSnapshot),
4436
- groupSnapshots: z129.array(ElementGroupSnapshot),
4437
- pageApprovals: z129.array(DocumentationPageApproval),
4326
+ designSystemVersionId: z126.string(),
4327
+ liveblocksId: z126.string()
4328
+ });
4329
+ var DesignSystemVersionRoomInternalSettings = z126.object({
4330
+ routingVersion: z126.string(),
4331
+ isDraftFeatureAdopted: z126.boolean(),
4332
+ isApprovalFeatureEnabled: z126.boolean(),
4333
+ approvalRequiredForPublishing: z126.boolean()
4334
+ });
4335
+ var DesignSystemVersionRoomInitialState = z126.object({
4336
+ pages: z126.array(DocumentationPageV2),
4337
+ groups: z126.array(ElementGroup),
4338
+ pageSnapshots: z126.array(DocumentationPageSnapshot),
4339
+ groupSnapshots: z126.array(ElementGroupSnapshot),
4340
+ pageApprovals: z126.array(DocumentationPageApproval),
4438
4341
  internalSettings: DesignSystemVersionRoomInternalSettings
4439
4342
  });
4440
- var DesignSystemVersionRoomUpdate = z129.object({
4441
- pages: z129.array(DocumentationPageV2),
4442
- groups: z129.array(ElementGroup),
4443
- pageIdsToDelete: z129.array(z129.string()),
4444
- groupIdsToDelete: z129.array(z129.string()),
4445
- pageSnapshots: z129.array(DocumentationPageSnapshot),
4446
- groupSnapshots: z129.array(ElementGroupSnapshot),
4447
- pageSnapshotIdsToDelete: z129.array(z129.string()),
4448
- groupSnapshotIdsToDelete: z129.array(z129.string()),
4449
- pageHashesToUpdate: z129.record(z129.string(), z129.string()),
4450
- pageApprovals: z129.array(DocumentationPageApproval),
4451
- pageApprovalIdsToDelete: z129.array(z129.string())
4343
+ var DesignSystemVersionRoomUpdate = z126.object({
4344
+ pages: z126.array(DocumentationPageV2),
4345
+ groups: z126.array(ElementGroup),
4346
+ pageIdsToDelete: z126.array(z126.string()),
4347
+ groupIdsToDelete: z126.array(z126.string()),
4348
+ pageSnapshots: z126.array(DocumentationPageSnapshot),
4349
+ groupSnapshots: z126.array(ElementGroupSnapshot),
4350
+ pageSnapshotIdsToDelete: z126.array(z126.string()),
4351
+ groupSnapshotIdsToDelete: z126.array(z126.string()),
4352
+ pageHashesToUpdate: z126.record(z126.string(), z126.string()),
4353
+ pageApprovals: z126.array(DocumentationPageApproval),
4354
+ pageApprovalIdsToDelete: z126.array(z126.string())
4452
4355
  });
4453
4356
 
4454
4357
  // src/liveblocks/rooms/documentation-page-room.ts
4455
- import { z as z130 } from "zod";
4358
+ import { z as z127 } from "zod";
4456
4359
  var DocumentationPageRoom = Entity.extend({
4457
- designSystemVersionId: z130.string(),
4458
- documentationPageId: z130.string(),
4459
- liveblocksId: z130.string(),
4460
- isDirty: z130.boolean()
4360
+ designSystemVersionId: z127.string(),
4361
+ documentationPageId: z127.string(),
4362
+ liveblocksId: z127.string(),
4363
+ isDirty: z127.boolean()
4461
4364
  });
4462
- var DocumentationPageRoomState = z130.object({
4463
- pageItems: z130.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4365
+ var DocumentationPageRoomState = z127.object({
4366
+ pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4464
4367
  itemConfiguration: DocumentationItemConfigurationV2
4465
4368
  });
4466
- var DocumentationPageRoomRoomUpdate = z130.object({
4369
+ var DocumentationPageRoomRoomUpdate = z127.object({
4467
4370
  page: DocumentationPageV2,
4468
4371
  pageParent: ElementGroup
4469
4372
  });
4470
4373
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4471
- pageItems: z130.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4472
- blockDefinitions: z130.array(PageBlockDefinition)
4374
+ pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4375
+ blockDefinitions: z127.array(PageBlockDefinition)
4473
4376
  });
4474
- var RestoredDocumentationPage = z130.object({
4377
+ var RestoredDocumentationPage = z127.object({
4475
4378
  page: DocumentationPageV2,
4476
4379
  pageParent: ElementGroup,
4477
4380
  pageContent: DocumentationPageContentData,
4478
- contentHash: z130.string(),
4479
- snapshotId: z130.string(),
4480
- roomId: z130.string().optional()
4381
+ contentHash: z127.string(),
4382
+ snapshotId: z127.string(),
4383
+ roomId: z127.string().optional()
4481
4384
  });
4482
- var RestoredDocumentationGroup = z130.object({
4385
+ var RestoredDocumentationGroup = z127.object({
4483
4386
  group: ElementGroup,
4484
4387
  parent: ElementGroup
4485
4388
  });
4486
4389
 
4487
4390
  // src/liveblocks/rooms/room-type.ts
4488
- import { z as z131 } from "zod";
4391
+ import { z as z128 } from "zod";
4489
4392
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4490
4393
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4491
4394
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4492
4395
  RoomTypeEnum2["Workspace"] = "workspace";
4493
4396
  return RoomTypeEnum2;
4494
4397
  })(RoomTypeEnum || {});
4495
- var RoomTypeSchema = z131.nativeEnum(RoomTypeEnum);
4398
+ var RoomTypeSchema = z128.nativeEnum(RoomTypeEnum);
4496
4399
  var RoomType = RoomTypeSchema.enum;
4497
4400
 
4498
4401
  // src/liveblocks/rooms/workspace-room.ts
4499
- import { z as z132 } from "zod";
4402
+ import { z as z129 } from "zod";
4500
4403
  var WorkspaceRoom = Entity.extend({
4501
- workspaceId: z132.string(),
4502
- liveblocksId: z132.string()
4404
+ workspaceId: z129.string(),
4405
+ liveblocksId: z129.string()
4503
4406
  });
4504
4407
 
4505
4408
  // src/data-dumps/published-docs-dump.ts
4506
- import { z as z133 } from "zod";
4507
- var PublishedDocsDump = z133.object({
4409
+ import { z as z130 } from "zod";
4410
+ var PublishedDocsDump = z130.object({
4508
4411
  documentation: PublishedDoc,
4509
4412
  pages: PublishedDocPage.array()
4510
4413
  });
4511
4414
 
4512
4415
  // src/data-dumps/design-system-version-dump.ts
4513
- var DocumentationThreadDump = z134.object({
4416
+ var DocumentationThreadDump = z131.object({
4514
4417
  thread: DocumentationCommentThread,
4515
4418
  comments: DocumentationComment.array()
4516
4419
  });
4517
- var DocumentationPageRoomDump = z134.object({
4420
+ var DocumentationPageRoomDump = z131.object({
4518
4421
  room: DocumentationPageRoom,
4519
4422
  threads: DocumentationThreadDump.array()
4520
4423
  });
4521
- var DesignSystemVersionMultiplayerDump = z134.object({
4424
+ var DesignSystemVersionMultiplayerDump = z131.object({
4522
4425
  documentationPages: DocumentationPageRoomDump.array()
4523
4426
  });
4524
- var DesignSystemVersionDump = z134.object({
4427
+ var DesignSystemVersionDump = z131.object({
4525
4428
  version: DesignSystemVersion,
4526
4429
  brands: Brand.array(),
4527
4430
  elements: DesignElement.array(),
@@ -4536,7 +4439,7 @@ var DesignSystemVersionDump = z134.object({
4536
4439
  });
4537
4440
 
4538
4441
  // src/data-dumps/design-system-dump.ts
4539
- var DesignSystemDump = z135.object({
4442
+ var DesignSystemDump = z132.object({
4540
4443
  designSystem: DesignSystem,
4541
4444
  dataSources: DataSource.array(),
4542
4445
  versions: DesignSystemVersionDump.array(),
@@ -4548,24 +4451,24 @@ var DesignSystemDump = z135.object({
4548
4451
  import { z as z147 } from "zod";
4549
4452
 
4550
4453
  // src/users/linked-integrations.ts
4551
- import { z as z136 } from "zod";
4552
- var IntegrationAuthType = z136.union([z136.literal("OAuth2"), z136.literal("PAT")]);
4553
- var ExternalServiceType = z136.union([
4554
- z136.literal("figma"),
4555
- z136.literal("github"),
4556
- z136.literal("azure"),
4557
- z136.literal("gitlab"),
4558
- z136.literal("bitbucket")
4454
+ import { z as z133 } from "zod";
4455
+ var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
4456
+ var ExternalServiceType = z133.union([
4457
+ z133.literal("figma"),
4458
+ z133.literal("github"),
4459
+ z133.literal("azure"),
4460
+ z133.literal("gitlab"),
4461
+ z133.literal("bitbucket")
4559
4462
  ]);
4560
- var IntegrationUserInfo = z136.object({
4561
- id: z136.string(),
4562
- handle: z136.string().optional(),
4563
- avatarUrl: z136.string().optional(),
4564
- email: z136.string().optional(),
4463
+ var IntegrationUserInfo = z133.object({
4464
+ id: z133.string(),
4465
+ handle: z133.string().optional(),
4466
+ avatarUrl: z133.string().optional(),
4467
+ email: z133.string().optional(),
4565
4468
  authType: IntegrationAuthType.optional(),
4566
- customUrl: z136.string().optional()
4469
+ customUrl: z133.string().optional()
4567
4470
  });
4568
- var UserLinkedIntegrations = z136.object({
4471
+ var UserLinkedIntegrations = z133.object({
4569
4472
  figma: IntegrationUserInfo.optional(),
4570
4473
  github: IntegrationUserInfo.array().optional(),
4571
4474
  azure: IntegrationUserInfo.array().optional(),
@@ -4574,46 +4477,46 @@ var UserLinkedIntegrations = z136.object({
4574
4477
  });
4575
4478
 
4576
4479
  // src/users/user-analytics-cleanup-schedule.ts
4577
- import { z as z137 } from "zod";
4578
- var UserAnalyticsCleanupSchedule = z137.object({
4579
- userId: z137.string(),
4580
- createdAt: z137.coerce.date(),
4581
- deleteAt: z137.coerce.date()
4480
+ import { z as z134 } from "zod";
4481
+ var UserAnalyticsCleanupSchedule = z134.object({
4482
+ userId: z134.string(),
4483
+ createdAt: z134.coerce.date(),
4484
+ deleteAt: z134.coerce.date()
4582
4485
  });
4583
4486
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4584
4487
  createdAt: true
4585
4488
  });
4586
4489
 
4587
4490
  // src/users/user-create.ts
4588
- import { z as z138 } from "zod";
4589
- var CreateUserInput = z138.object({
4590
- email: z138.string(),
4591
- name: z138.string(),
4592
- username: z138.string()
4491
+ import { z as z135 } from "zod";
4492
+ var CreateUserInput = z135.object({
4493
+ email: z135.string(),
4494
+ name: z135.string(),
4495
+ username: z135.string()
4593
4496
  });
4594
4497
 
4595
4498
  // src/users/user-identity.ts
4596
- import { z as z139 } from "zod";
4597
- var UserIdentity = z139.object({
4598
- id: z139.string(),
4599
- userId: z139.string()
4499
+ import { z as z136 } from "zod";
4500
+ var UserIdentity = z136.object({
4501
+ id: z136.string(),
4502
+ userId: z136.string()
4600
4503
  });
4601
4504
 
4602
4505
  // src/users/user-minified.ts
4603
- import { z as z140 } from "zod";
4604
- var UserMinified = z140.object({
4605
- id: z140.string(),
4606
- name: z140.string(),
4607
- email: z140.string(),
4608
- avatar: z140.string().optional()
4506
+ import { z as z137 } from "zod";
4507
+ var UserMinified = z137.object({
4508
+ id: z137.string(),
4509
+ name: z137.string(),
4510
+ email: z137.string(),
4511
+ avatar: z137.string().optional()
4609
4512
  });
4610
4513
 
4611
4514
  // src/users/user-notification-settings.ts
4612
- import { z as z141 } from "zod";
4613
- var LiveblocksNotificationSettings = z141.object({
4614
- sendCommentNotificationEmails: z141.boolean()
4515
+ import { z as z138 } from "zod";
4516
+ var LiveblocksNotificationSettings = z138.object({
4517
+ sendCommentNotificationEmails: z138.boolean()
4615
4518
  });
4616
- var UserNotificationSettings = z141.object({
4519
+ var UserNotificationSettings = z138.object({
4617
4520
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4618
4521
  });
4619
4522
  var defaultNotificationSettings = {
@@ -4623,27 +4526,27 @@ var defaultNotificationSettings = {
4623
4526
  };
4624
4527
 
4625
4528
  // src/users/user-profile.ts
4626
- import { z as z142 } from "zod";
4627
- var UserOnboardingDepartment = z142.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4628
- var UserOnboardingJobLevel = z142.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4629
- var UserOnboarding = z142.object({
4630
- companyName: z142.string().optional(),
4631
- numberOfPeopleInOrg: z142.string().optional(),
4632
- numberOfPeopleInDesignTeam: z142.string().optional(),
4529
+ import { z as z139 } from "zod";
4530
+ var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4531
+ var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4532
+ var UserOnboarding = z139.object({
4533
+ companyName: z139.string().optional(),
4534
+ numberOfPeopleInOrg: z139.string().optional(),
4535
+ numberOfPeopleInDesignTeam: z139.string().optional(),
4633
4536
  department: UserOnboardingDepartment.optional(),
4634
- jobTitle: z142.string().optional(),
4635
- phase: z142.string().optional(),
4537
+ jobTitle: z139.string().optional(),
4538
+ phase: z139.string().optional(),
4636
4539
  jobLevel: UserOnboardingJobLevel.optional(),
4637
- designSystemName: z142.string().optional(),
4638
- defaultDestination: z142.string().optional(),
4639
- figmaUrl: z142.string().optional(),
4640
- isPageDraftOnboardingFinished: z142.boolean().optional(),
4641
- isApprovalsOnboardingFinished: z142.boolean().optional()
4642
- });
4643
- var UserProfile = z142.object({
4644
- name: z142.string(),
4645
- avatar: z142.string().optional(),
4646
- nickname: z142.string().optional(),
4540
+ designSystemName: z139.string().optional(),
4541
+ defaultDestination: z139.string().optional(),
4542
+ figmaUrl: z139.string().optional(),
4543
+ isPageDraftOnboardingFinished: z139.boolean().optional(),
4544
+ isApprovalsOnboardingFinished: z139.boolean().optional()
4545
+ });
4546
+ var UserProfile = z139.object({
4547
+ name: z139.string(),
4548
+ avatar: z139.string().optional(),
4549
+ nickname: z139.string().optional(),
4647
4550
  onboarding: UserOnboarding.optional()
4648
4551
  });
4649
4552
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -4651,68 +4554,68 @@ var UserProfileUpdate = UserProfile.partial().omit({
4651
4554
  });
4652
4555
 
4653
4556
  // src/users/user-test.ts
4654
- import { z as z143 } from "zod";
4655
- var UserTest = z143.object({
4656
- id: z143.string(),
4657
- email: z143.string()
4557
+ import { z as z140 } from "zod";
4558
+ var UserTest = z140.object({
4559
+ id: z140.string(),
4560
+ email: z140.string()
4658
4561
  });
4659
4562
 
4660
4563
  // src/users/user.ts
4661
- import { z as z144 } from "zod";
4662
- var User = z144.object({
4663
- id: z144.string(),
4664
- email: z144.string(),
4665
- emailVerified: z144.boolean(),
4666
- createdAt: z144.coerce.date(),
4667
- trialExpiresAt: z144.coerce.date().optional(),
4564
+ import { z as z141 } from "zod";
4565
+ var User = z141.object({
4566
+ id: z141.string(),
4567
+ email: z141.string(),
4568
+ emailVerified: z141.boolean(),
4569
+ createdAt: z141.coerce.date(),
4570
+ trialExpiresAt: z141.coerce.date().optional(),
4668
4571
  profile: UserProfile,
4669
4572
  linkedIntegrations: UserLinkedIntegrations.optional(),
4670
- loggedOutAt: z144.coerce.date().optional(),
4671
- isProtected: z144.boolean()
4573
+ loggedOutAt: z141.coerce.date().optional(),
4574
+ isProtected: z141.boolean()
4672
4575
  });
4673
4576
 
4674
4577
  // src/data-dumps/workspace-dump.ts
4675
4578
  import { z as z146 } from "zod";
4676
4579
 
4677
4580
  // src/integrations/integration.ts
4678
- import { z as z145 } from "zod";
4679
- var IntegrationDesignSystem = z145.object({
4680
- designSystemId: z145.string(),
4681
- brandId: z145.string(),
4682
- title: z145.string().optional(),
4683
- userId: z145.string().optional(),
4684
- date: z145.coerce.date().optional()
4685
- });
4686
- var IntegrationCredentialsType = z145.enum(["OAuth2", "PAT", "GithubApp"]);
4687
- var IntegrationCredentialsState = z145.enum(["Active", "Inactive"]);
4688
- var IntegrationCredentialsProfile = z145.object({
4689
- id: nullishToOptional(z145.string()),
4690
- email: nullishToOptional(z145.string()),
4691
- handle: nullishToOptional(z145.string()),
4692
- type: nullishToOptional(z145.string()),
4693
- avatarUrl: nullishToOptional(z145.string()),
4694
- organization: nullishToOptional(z145.string()),
4695
- collection: nullishToOptional(z145.string())
4696
- });
4697
- var IntegrationCredentials = z145.object({
4698
- id: z145.string(),
4581
+ import { z as z142 } from "zod";
4582
+ var IntegrationDesignSystem = z142.object({
4583
+ designSystemId: z142.string(),
4584
+ brandId: z142.string(),
4585
+ title: z142.string().optional(),
4586
+ userId: z142.string().optional(),
4587
+ date: z142.coerce.date().optional()
4588
+ });
4589
+ var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
4590
+ var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
4591
+ var IntegrationCredentialsProfile = z142.object({
4592
+ id: nullishToOptional(z142.string()),
4593
+ email: nullishToOptional(z142.string()),
4594
+ handle: nullishToOptional(z142.string()),
4595
+ type: nullishToOptional(z142.string()),
4596
+ avatarUrl: nullishToOptional(z142.string()),
4597
+ organization: nullishToOptional(z142.string()),
4598
+ collection: nullishToOptional(z142.string())
4599
+ });
4600
+ var IntegrationCredentials = z142.object({
4601
+ id: z142.string(),
4699
4602
  type: IntegrationCredentialsType,
4700
- integrationId: z145.string(),
4701
- accessToken: z145.string(),
4702
- userId: z145.string(),
4703
- createdAt: z145.coerce.date(),
4704
- refreshToken: z145.string().optional(),
4705
- tokenName: z145.string().optional(),
4706
- expiresAt: z145.coerce.date().optional(),
4707
- refreshedAt: z145.coerce.date().optional(),
4708
- username: z145.string().optional(),
4709
- appInstallationId: z145.string().optional(),
4603
+ integrationId: z142.string(),
4604
+ accessToken: z142.string(),
4605
+ userId: z142.string(),
4606
+ createdAt: z142.coerce.date(),
4607
+ refreshToken: z142.string().optional(),
4608
+ tokenName: z142.string().optional(),
4609
+ expiresAt: z142.coerce.date().optional(),
4610
+ refreshedAt: z142.coerce.date().optional(),
4611
+ username: z142.string().optional(),
4612
+ appInstallationId: z142.string().optional(),
4710
4613
  profile: IntegrationCredentialsProfile.optional(),
4711
- customUrl: z145.string().optional(),
4614
+ customUrl: z142.string().optional(),
4712
4615
  state: IntegrationCredentialsState,
4713
4616
  user: UserMinified.optional()
4714
4617
  });
4715
- var ExtendedIntegrationType = z145.enum([
4618
+ var ExtendedIntegrationType = z142.enum([
4716
4619
  "Figma",
4717
4620
  "Github",
4718
4621
  "Gitlab",
@@ -4723,26 +4626,26 @@ var ExtendedIntegrationType = z145.enum([
4723
4626
  ]);
4724
4627
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4725
4628
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4726
- var Integration = z145.object({
4727
- id: z145.string(),
4728
- workspaceId: z145.string(),
4629
+ var Integration = z142.object({
4630
+ id: z142.string(),
4631
+ workspaceId: z142.string(),
4729
4632
  type: IntegrationType,
4730
- createdAt: z145.coerce.date(),
4731
- integrationCredentials: z145.array(IntegrationCredentials).optional()
4732
- });
4733
- var IntegrationToken = z145.object({
4734
- access_token: z145.string(),
4735
- refresh_token: z145.string().optional(),
4736
- expires_in: z145.union([z145.number().optional(), z145.string().optional()]),
4737
- token_type: z145.string().optional(),
4738
- token_name: z145.string().optional(),
4739
- token_azure_organization_name: z145.string().optional(),
4633
+ createdAt: z142.coerce.date(),
4634
+ integrationCredentials: z142.array(IntegrationCredentials).optional()
4635
+ });
4636
+ var IntegrationToken = z142.object({
4637
+ access_token: z142.string(),
4638
+ refresh_token: z142.string().optional(),
4639
+ expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
4640
+ token_type: z142.string().optional(),
4641
+ token_name: z142.string().optional(),
4642
+ token_azure_organization_name: z142.string().optional(),
4740
4643
  // Azure Cloud PAT only
4741
- token_azure_collection_name: z145.string().optional(),
4644
+ token_azure_collection_name: z142.string().optional(),
4742
4645
  // Azure Server PAT only
4743
- token_bitbucket_username: z145.string().optional(),
4646
+ token_bitbucket_username: z142.string().optional(),
4744
4647
  // Bitbucket only
4745
- custom_url: z145.string().optional().transform((value) => {
4648
+ custom_url: z142.string().optional().transform((value) => {
4746
4649
  if (!value?.trim())
4747
4650
  return void 0;
4748
4651
  return formatCustomUrl(value);
@@ -4779,6 +4682,99 @@ function formatCustomUrl(url) {
4779
4682
  return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
4780
4683
  }
4781
4684
 
4685
+ // src/workspace/workspace.ts
4686
+ import IPCIDR from "ip-cidr";
4687
+ import { z as z145 } from "zod";
4688
+
4689
+ // src/workspace/npm-registry-settings.ts
4690
+ import { z as z143 } from "zod";
4691
+ var NpmRegistryAuthType = z143.enum(["Basic", "Bearer", "None", "Custom"]);
4692
+ var NpmRegistryType = z143.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4693
+ var NpmRegistryBasicAuthConfig = z143.object({
4694
+ authType: z143.literal(NpmRegistryAuthType.Enum.Basic),
4695
+ username: z143.string(),
4696
+ password: z143.string()
4697
+ });
4698
+ var NpmRegistryBearerAuthConfig = z143.object({
4699
+ authType: z143.literal(NpmRegistryAuthType.Enum.Bearer),
4700
+ accessToken: z143.string()
4701
+ });
4702
+ var NpmRegistryNoAuthConfig = z143.object({
4703
+ authType: z143.literal(NpmRegistryAuthType.Enum.None)
4704
+ });
4705
+ var NpmRegistrCustomAuthConfig = z143.object({
4706
+ authType: z143.literal(NpmRegistryAuthType.Enum.Custom),
4707
+ authHeaderName: z143.string(),
4708
+ authHeaderValue: z143.string()
4709
+ });
4710
+ var NpmRegistryAuthConfig = z143.discriminatedUnion("authType", [
4711
+ NpmRegistryBasicAuthConfig,
4712
+ NpmRegistryBearerAuthConfig,
4713
+ NpmRegistryNoAuthConfig,
4714
+ NpmRegistrCustomAuthConfig
4715
+ ]);
4716
+ var NpmRegistryConfigBase = z143.object({
4717
+ registryType: NpmRegistryType,
4718
+ enabledScopes: z143.array(z143.string()),
4719
+ customRegistryUrl: z143.string().optional(),
4720
+ bypassProxy: z143.boolean().default(false),
4721
+ npmProxyRegistryConfigId: z143.string().optional(),
4722
+ npmProxyVersion: z143.number().optional()
4723
+ });
4724
+ var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4725
+
4726
+ // src/workspace/sso-provider.ts
4727
+ import { z as z144 } from "zod";
4728
+ var SsoProvider = z144.object({
4729
+ providerId: z144.string(),
4730
+ defaultAutoInviteValue: z144.boolean(),
4731
+ autoInviteDomains: z144.record(z144.string(), z144.boolean()),
4732
+ skipDocsSupernovaLogin: z144.boolean(),
4733
+ areInvitesDisabled: z144.boolean(),
4734
+ isTestMode: z144.boolean(),
4735
+ emailDomains: z144.array(z144.string()),
4736
+ metadataXml: z144.string().nullish()
4737
+ });
4738
+
4739
+ // src/workspace/workspace.ts
4740
+ var isValidCIDR = (value) => {
4741
+ return IPCIDR.isValidAddress(value);
4742
+ };
4743
+ var WorkspaceIpWhitelistEntry = z145.object({
4744
+ isEnabled: z145.boolean(),
4745
+ name: z145.string(),
4746
+ range: z145.string().refine(isValidCIDR, {
4747
+ message: "Invalid IP CIDR"
4748
+ })
4749
+ });
4750
+ var WorkspaceIpSettings = z145.object({
4751
+ isEnabledForCloud: z145.boolean(),
4752
+ isEnabledForDocs: z145.boolean(),
4753
+ entries: z145.array(WorkspaceIpWhitelistEntry)
4754
+ });
4755
+ var WorkspaceProfile = z145.object({
4756
+ name: z145.string(),
4757
+ handle: z145.string(),
4758
+ color: z145.string(),
4759
+ avatar: nullishToOptional(z145.string()),
4760
+ billingDetails: nullishToOptional(BillingDetails)
4761
+ });
4762
+ var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4763
+ avatar: true
4764
+ });
4765
+ var Workspace = z145.object({
4766
+ id: z145.string(),
4767
+ profile: WorkspaceProfile,
4768
+ subscription: Subscription,
4769
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4770
+ sso: nullishToOptional(SsoProvider),
4771
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4772
+ });
4773
+ var WorkspaceWithDesignSystems = z145.object({
4774
+ workspace: Workspace,
4775
+ designSystems: z145.array(DesignSystem)
4776
+ });
4777
+
4782
4778
  // src/data-dumps/workspace-dump.ts
4783
4779
  var WorkspaceDump = z146.object({
4784
4780
  workspace: Workspace,
@@ -5278,6 +5274,7 @@ export {
5278
5274
  DesignElementSnapshotReason,
5279
5275
  DesignElementType,
5280
5276
  DesignSystem,
5277
+ DesignSystemAccessMode,
5281
5278
  DesignSystemCreateInput,
5282
5279
  DesignSystemDump,
5283
5280
  DesignSystemElementExportProps,
@@ -5290,7 +5287,6 @@ export {
5290
5287
  DesignSystemVersionRoomInitialState,
5291
5288
  DesignSystemVersionRoomInternalSettings,
5292
5289
  DesignSystemVersionRoomUpdate,
5293
- DesignSystemWithWorkspace,
5294
5290
  DesignToken,
5295
5291
  DesignTokenImportModel,
5296
5292
  DesignTokenImportModelBase,