@supernova-studio/model 0.54.4 → 0.54.6

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