@supernova-studio/model 0.54.5 → 0.54.7

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