@supernova-studio/model 0.48.30 → 0.48.32

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