@supernova-studio/model 0.48.12 → 0.48.14

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.js CHANGED
@@ -2833,948 +2833,248 @@ var DocumentationCommentThread = _zod.z.object({
2833
2833
 
2834
2834
  // src/dsm/element-snapshots/base.ts
2835
2835
 
2836
- var DesignElementSnapshotReason = _zod.z.enum(["Publish", "Deletion"]);
2837
- var DesignElementSnapshotBase = _zod.z.object({
2838
- id: _zod.z.string(),
2839
- persistentId: _zod.z.string(),
2840
- designSystemVersionId: _zod.z.string(),
2841
- createdAt: _zod.z.coerce.date(),
2842
- updatedAt: _zod.z.coerce.date(),
2843
- reason: DesignElementSnapshotReason
2844
- });
2845
-
2846
- // src/dsm/element-snapshots/documentation-page-snapshot.ts
2847
-
2848
- var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
2849
- page: DocumentationPageV2,
2850
- pageContentHash: _zod.z.string(),
2851
- pageContentStorageKey: _zod.z.string()
2852
- });
2853
-
2854
- // src/dsm/element-snapshots/group-snapshot.ts
2855
- var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
2856
- group: ElementGroup
2857
- });
2858
-
2859
- // src/dsm/views/column.ts
2860
-
2861
- var ElementViewBaseColumnType = _zod.z.enum(["Name", "Description", "Value", "UpdatedAt"]);
2862
- var ElementViewColumnType = _zod.z.union([
2863
- _zod.z.literal("BaseProperty"),
2864
- _zod.z.literal("PropertyDefinition"),
2865
- _zod.z.literal("Theme")
2866
- ]);
2867
- var ElementViewColumnSharedAttributes = _zod.z.object({
2868
- id: _zod.z.string(),
2869
- persistentId: _zod.z.string(),
2870
- elementDataViewId: _zod.z.string(),
2871
- sortPosition: _zod.z.number(),
2872
- width: _zod.z.number()
2873
- });
2874
- var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2875
- type: _zod.z.literal("BaseProperty"),
2876
- basePropertyType: ElementViewBaseColumnType
2877
- });
2878
- var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2879
- type: _zod.z.literal("PropertyDefinition"),
2880
- propertyDefinitionId: _zod.z.string()
2881
- });
2882
- var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2883
- type: _zod.z.literal("Theme"),
2884
- themeId: _zod.z.string()
2885
- });
2886
- var ElementViewColumn = _zod.z.discriminatedUnion("type", [
2887
- ElementViewBasePropertyColumn,
2888
- ElementViewPropertyDefinitionColumn,
2889
- ElementViewThemeColumn
2890
- ]);
2891
2836
 
2892
- // src/dsm/views/view.ts
2837
+ // src/utils/errors.ts
2838
+ var SupernovaException = class _SupernovaException extends Error {
2839
+ //
2840
+ // Properties
2841
+ //
2842
+ constructor(type, message) {
2843
+ super(`${type}: ${message}`);
2844
+ this.type = type;
2845
+ }
2846
+ static wrongFormat(message) {
2847
+ return new _SupernovaException("WrongFormat", message);
2848
+ }
2849
+ static validationError(message) {
2850
+ return new _SupernovaException("ValidationError", message);
2851
+ }
2852
+ static accessDenied(message) {
2853
+ return new _SupernovaException("AccessDenied", message);
2854
+ }
2855
+ static tooMuchWork(message) {
2856
+ return new _SupernovaException("TooMuchWork", message);
2857
+ }
2858
+ static notFound(message) {
2859
+ return new _SupernovaException("ResourceNotFound", message);
2860
+ }
2861
+ static timeout(message) {
2862
+ return new _SupernovaException("Timeout", message);
2863
+ }
2864
+ static conflict(message) {
2865
+ return new _SupernovaException("Conflict", message);
2866
+ }
2867
+ static notImplemented(message) {
2868
+ return new _SupernovaException("NotImplemented", message);
2869
+ }
2870
+ static wrongActionOrder(message) {
2871
+ return new _SupernovaException("WrongActionOrder", message);
2872
+ }
2873
+ static invalidOperation(message) {
2874
+ return new _SupernovaException("InvalidOperation", message);
2875
+ }
2876
+ static shouldNotHappen(message) {
2877
+ return new _SupernovaException("UnexpectedError", message);
2878
+ }
2879
+ static ipRestricted(message) {
2880
+ return new _SupernovaException("IPRestricted", message);
2881
+ }
2882
+ static planRestricted(message) {
2883
+ return new _SupernovaException("PlanRestricted", message);
2884
+ }
2885
+ static missingWorkspacePermission(message) {
2886
+ return new _SupernovaException("MissingWorkspacePermission", message);
2887
+ }
2888
+ static missingExporterPermission(message) {
2889
+ return new _SupernovaException("MissingExporterPermission", message);
2890
+ }
2891
+ static missingIntegration(message) {
2892
+ return new _SupernovaException("MissingIntegration", message);
2893
+ }
2894
+ static missingIntegrationAccess(message) {
2895
+ return new _SupernovaException("MissingIntegrationAccess", message);
2896
+ }
2897
+ static noAccess(message) {
2898
+ return new _SupernovaException("NoAccess", message);
2899
+ }
2900
+ static missingCredentials(message) {
2901
+ return new _SupernovaException("MissingCredentials", message);
2902
+ }
2903
+ static thirdPartyError(message) {
2904
+ return new _SupernovaException("ThirdPartyError", message);
2905
+ }
2906
+ //
2907
+ // To refactor
2908
+ //
2909
+ static badRequest(message) {
2910
+ return new _SupernovaException("BadRequest", message);
2911
+ }
2912
+ };
2893
2913
 
2894
- var ElementView = _zod.z.object({
2895
- id: _zod.z.string(),
2896
- persistentId: _zod.z.string(),
2897
- designSystemVersionId: _zod.z.string(),
2898
- name: _zod.z.string(),
2899
- description: _zod.z.string(),
2900
- targetElementType: ElementPropertyTargetType,
2901
- isDefault: _zod.z.boolean()
2902
- });
2914
+ // src/utils/common.ts
2915
+ function forceUnwrapNullish(value) {
2916
+ if (value === null)
2917
+ throw new Error("Illegal null");
2918
+ if (value === void 0)
2919
+ throw new Error("Illegal undefined");
2920
+ return value;
2921
+ }
2922
+ function trimLeadingSlash(string) {
2923
+ return string.startsWith("/") ? string.substring(1) : string;
2924
+ }
2925
+ function trimTrailingSlash(string) {
2926
+ return string.endsWith("/") ? string.substring(0, string.length - 1) : string;
2927
+ }
2928
+ function tryParseUrl(url) {
2929
+ try {
2930
+ return parseUrl(url);
2931
+ } catch (e) {
2932
+ console.error(`Error parsing URL ${url}`);
2933
+ console.error(e);
2934
+ return null;
2935
+ }
2936
+ }
2937
+ function parseUrl(url) {
2938
+ return new URL(url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`);
2939
+ }
2940
+ function mapByUnique(items, keyFn) {
2941
+ const result = /* @__PURE__ */ new Map();
2942
+ for (const item of items) {
2943
+ result.set(keyFn(item), item);
2944
+ }
2945
+ return result;
2946
+ }
2947
+ function groupBy(items, keyFn) {
2948
+ const result = /* @__PURE__ */ new Map();
2949
+ for (const item of items) {
2950
+ const key = keyFn(item);
2951
+ const array = result.get(key);
2952
+ if (array) {
2953
+ array.push(item);
2954
+ } else {
2955
+ result.set(key, [item]);
2956
+ }
2957
+ }
2958
+ return result;
2959
+ }
2960
+ function filterNonNullish(items) {
2961
+ return items.filter(Boolean);
2962
+ }
2963
+ function nonNullishFilter(item) {
2964
+ return !!item;
2965
+ }
2966
+ function nonNullFilter(item) {
2967
+ return item !== null;
2968
+ }
2969
+ function buildConstantEnum(values) {
2970
+ const constMap = values.reduce((acc, code) => ({ ...acc, [code]: code }), {});
2971
+ return constMap;
2972
+ }
2973
+ async function promiseWithTimeout(timeoutMs, promise) {
2974
+ let timeoutHandle;
2975
+ const timeoutPromise = new Promise((_, reject) => {
2976
+ timeoutHandle = setTimeout(() => reject(SupernovaException.timeout()), timeoutMs);
2977
+ });
2978
+ const result = await Promise.race([promise(), timeoutPromise]);
2979
+ clearTimeout(timeoutHandle);
2980
+ return result;
2981
+ }
2982
+ async function sleep(ms) {
2983
+ return new Promise((resolve) => setTimeout(resolve, ms));
2984
+ }
2985
+ function uniqueBy(items, prop) {
2986
+ return Array.from(mapByUnique(items, prop).values());
2987
+ }
2903
2988
 
2904
- // src/dsm/brand.ts
2989
+ // src/utils/content-loader-instruction.ts
2905
2990
 
2906
- var Brand = _zod.z.object({
2907
- id: _zod.z.string(),
2908
- designSystemVersionId: _zod.z.string(),
2909
- persistentId: _zod.z.string(),
2910
- name: _zod.z.string(),
2911
- description: _zod.z.string()
2991
+ var ContentLoadInstruction = _zod.z.object({
2992
+ from: _zod.z.string(),
2993
+ to: _zod.z.string(),
2994
+ authorizationHeaderKvsId: _zod.z.string().optional(),
2995
+ timeout: _zod.z.number().optional()
2912
2996
  });
2997
+ var ContentLoaderPayload = _zod.z.object({
2998
+ type: _zod.z.literal("Single"),
2999
+ instruction: ContentLoadInstruction
3000
+ }).or(
3001
+ _zod.z.object({
3002
+ type: _zod.z.literal("Multiple"),
3003
+ loadingChunkSize: _zod.z.number().optional(),
3004
+ instructions: _zod.z.array(ContentLoadInstruction)
3005
+ })
3006
+ ).or(
3007
+ _zod.z.object({
3008
+ type: _zod.z.literal("S3"),
3009
+ location: _zod.z.string()
3010
+ })
3011
+ );
2913
3012
 
2914
- // src/dsm/design-system-update.ts
2915
-
2916
-
2917
- // src/dsm/design-system.ts
2918
-
2919
-
2920
- // src/workspace/workspace.ts
2921
- var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
2922
-
2923
-
2924
- // src/workspace/npm-registry-settings.ts
2925
-
2926
- var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
2927
- var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2928
- var NpmRegistryBasicAuthConfig = _zod.z.object({
2929
- authType: _zod.z.literal(NpmRegistryAuthType.Enum.Basic),
2930
- username: _zod.z.string(),
2931
- password: _zod.z.string()
2932
- });
2933
- var NpmRegistryBearerAuthConfig = _zod.z.object({
2934
- authType: _zod.z.literal(NpmRegistryAuthType.Enum.Bearer),
2935
- accessToken: _zod.z.string()
2936
- });
2937
- var NpmRegistryNoAuthConfig = _zod.z.object({
2938
- authType: _zod.z.literal(NpmRegistryAuthType.Enum.None)
2939
- });
2940
- var NpmRegistrCustomAuthConfig = _zod.z.object({
2941
- authType: _zod.z.literal(NpmRegistryAuthType.Enum.Custom),
2942
- authHeaderName: _zod.z.string(),
2943
- authHeaderValue: _zod.z.string()
2944
- });
2945
- var NpmRegistryAuthConfig = _zod.z.discriminatedUnion("authType", [
2946
- NpmRegistryBasicAuthConfig,
2947
- NpmRegistryBearerAuthConfig,
2948
- NpmRegistryNoAuthConfig,
2949
- NpmRegistrCustomAuthConfig
2950
- ]);
2951
- var NpmRegistryConfigBase = _zod.z.object({
2952
- registryType: NpmRegistryType,
2953
- enabledScopes: _zod.z.array(_zod.z.string()),
2954
- customRegistryUrl: _zod.z.string().optional(),
2955
- bypassProxy: _zod.z.boolean().default(false),
2956
- npmProxyRegistryConfigId: _zod.z.string().optional(),
2957
- npmProxyVersion: _zod.z.number().optional()
2958
- });
2959
- var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2960
-
2961
- // src/workspace/sso-provider.ts
2962
-
2963
- var SsoProvider = _zod.z.object({
2964
- providerId: _zod.z.string(),
2965
- defaultAutoInviteValue: _zod.z.boolean(),
2966
- autoInviteDomains: _zod.z.record(_zod.z.string(), _zod.z.boolean()),
2967
- skipDocsSupernovaLogin: _zod.z.boolean(),
2968
- areInvitesDisabled: _zod.z.boolean(),
2969
- isTestMode: _zod.z.boolean(),
2970
- emailDomains: _zod.z.array(_zod.z.string()),
2971
- metadataXml: _zod.z.string().nullish()
2972
- });
2973
-
2974
- // src/workspace/workspace.ts
2975
- var isValidCIDR = (value) => {
2976
- return _ipcidr2.default.isValidAddress(value);
2977
- };
2978
- var WorkspaceIpWhitelistEntry = _zod.z.object({
2979
- isEnabled: _zod.z.boolean(),
2980
- name: _zod.z.string(),
2981
- range: _zod.z.string().refine(isValidCIDR, {
2982
- message: "Invalid IP CIDR"
2983
- })
2984
- });
2985
- var WorkspaceIpSettings = _zod.z.object({
2986
- isEnabledForCloud: _zod.z.boolean(),
2987
- isEnabledForDocs: _zod.z.boolean(),
2988
- entries: _zod.z.array(WorkspaceIpWhitelistEntry)
2989
- });
2990
- var WorkspaceProfile = _zod.z.object({
2991
- name: _zod.z.string(),
2992
- handle: _zod.z.string(),
2993
- color: _zod.z.string(),
2994
- avatar: nullishToOptional(_zod.z.string()),
2995
- billingDetails: nullishToOptional(BillingDetails)
2996
- });
2997
- var WorkspaceProfileUpdate = WorkspaceProfile.omit({
2998
- avatar: true
2999
- });
3000
- var Workspace = _zod.z.object({
3001
- id: _zod.z.string(),
3002
- profile: WorkspaceProfile,
3003
- subscription: Subscription,
3004
- ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3005
- sso: nullishToOptional(SsoProvider),
3006
- npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
3007
- });
3008
- var WorkspaceWithDesignSystems = _zod.z.object({
3009
- workspace: Workspace,
3010
- designSystems: _zod.z.array(DesignSystem)
3011
- });
3012
-
3013
- // src/dsm/design-system.ts
3014
- var DesignSystemSwitcher = _zod.z.object({
3015
- isEnabled: _zod.z.boolean(),
3016
- designSystemIds: _zod.z.array(_zod.z.string())
3017
- });
3018
- var DesignSystem = _zod.z.object({
3019
- id: _zod.z.string(),
3020
- workspaceId: _zod.z.string(),
3021
- name: _zod.z.string(),
3022
- description: _zod.z.string(),
3023
- docExporterId: nullishToOptional(_zod.z.string()),
3024
- docSlug: _zod.z.string(),
3025
- docUserSlug: nullishToOptional(_zod.z.string()),
3026
- docSlugDeprecated: _zod.z.string(),
3027
- isPublic: _zod.z.boolean(),
3028
- isMultibrand: _zod.z.boolean(),
3029
- docViewUrl: nullishToOptional(_zod.z.string()),
3030
- basePrefixes: _zod.z.array(_zod.z.string()),
3031
- designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3032
- createdAt: _zod.z.coerce.date(),
3033
- updatedAt: _zod.z.coerce.date()
3034
- });
3035
- var DesignSystemWithWorkspace = _zod.z.object({
3036
- designSystem: DesignSystem,
3037
- workspace: Workspace
3038
- });
3039
-
3040
- // src/dsm/design-system-update.ts
3041
- var DS_NAME_MIN_LENGTH = 2;
3042
- var DS_NAME_MAX_LENGTH = 64;
3043
- var DS_DESC_MAX_LENGTH = 64;
3044
- var DesignSystemUpdateInputMetadata = _zod.z.object({
3045
- name: _zod.z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
3046
- description: _zod.z.string().max(DS_DESC_MAX_LENGTH).trim().optional()
3047
- });
3048
- var DesignSystemUpdateInput = DesignSystem.partial().omit({
3049
- id: true,
3050
- createdAt: true,
3051
- updatedAt: true,
3052
- docSlug: true,
3053
- docViewUrl: true,
3054
- designSystemSwitcher: true
3055
- }).extend({
3056
- meta: DesignSystemUpdateInputMetadata.optional()
3057
- });
3058
-
3059
- // src/dsm/desing-system-create.ts
3060
-
3061
- var DS_NAME_MIN_LENGTH2 = 2;
3062
- var DS_NAME_MAX_LENGTH2 = 64;
3063
- var DS_DESC_MAX_LENGTH2 = 64;
3064
- var DesignSystemCreateInputMetadata = _zod.z.object({
3065
- name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
3066
- description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim()
3067
- });
3068
- var DesignSystemCreateInput = _zod.z.object({
3069
- meta: DesignSystemCreateInputMetadata,
3070
- workspaceId: _zod.z.string(),
3071
- isPublic: _zod.z.boolean().optional(),
3072
- basePrefixes: _zod.z.array(_zod.z.string()).optional(),
3073
- docUserSlug: _zod.z.string().nullish().optional(),
3074
- source: _zod.z.array(_zod.z.string()).optional()
3075
- });
3076
-
3077
- // src/dsm/exporter-property-values-collection.ts
3078
-
3079
- var ExporterPropertyImageValue = _zod.z.object({
3080
- asset: PageBlockAsset.optional(),
3081
- assetId: _zod.z.string().optional(),
3082
- assetUrl: _zod.z.string().optional()
3083
- });
3084
- var ExporterPropertyValue = _zod.z.object({
3085
- key: _zod.z.string(),
3086
- value: _zod.z.union([
3087
- _zod.z.number(),
3088
- _zod.z.string(),
3089
- _zod.z.boolean(),
3090
- ExporterPropertyImageValue,
3091
- ColorTokenData,
3092
- TypographyTokenData
3093
- ])
3094
- });
3095
- var ExporterPropertyValuesCollection = _zod.z.object({
3096
- id: _zod.z.string(),
3097
- designSystemId: _zod.z.string(),
3098
- exporterId: _zod.z.string(),
3099
- values: _zod.z.array(ExporterPropertyValue)
3100
- });
3101
-
3102
- // src/dsm/published-doc-page.ts
3103
-
3104
- var SHORT_PERSISTENT_ID_LENGTH = 8;
3105
- function tryParseShortPersistentId(url = "/") {
3106
- const lastUrlPart = url.split("/").pop() || "";
3107
- const shortPersistentId = _optionalChain([lastUrlPart, 'access', _2 => _2.split, 'call', _3 => _3("-"), 'access', _4 => _4.pop, 'call', _5 => _5(), 'optionalAccess', _6 => _6.replaceAll, 'call', _7 => _7(".html", "")]) || null;
3108
- return _optionalChain([shortPersistentId, 'optionalAccess', _8 => _8.length]) === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
3109
- }
3110
- var PublishedDocPage = _zod.z.object({
3111
- id: _zod.z.string(),
3112
- publishedDocId: _zod.z.string(),
3113
- pageShortPersistentId: _zod.z.string(),
3114
- pathV1: _zod.z.string(),
3115
- pathV2: _zod.z.string(),
3116
- storagePath: _zod.z.string(),
3117
- locale: _zod.z.string().optional(),
3118
- isPrivate: _zod.z.boolean(),
3119
- isHidden: _zod.z.boolean(),
3120
- createdAt: _zod.z.coerce.date(),
3121
- updatedAt: _zod.z.coerce.date()
3122
- });
3123
-
3124
- // src/dsm/published-doc.ts
3125
-
3126
- var publishedDocEnvironments = ["Live", "Preview"];
3127
- var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
3128
- var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
3129
- var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
3130
- var PublishedDoc = _zod.z.object({
3131
- id: _zod.z.string(),
3132
- designSystemVersionId: _zod.z.string(),
3133
- createdAt: _zod.z.coerce.date(),
3134
- updatedAt: _zod.z.coerce.date(),
3135
- lastPublishedAt: _zod.z.coerce.date(),
3136
- isDefault: _zod.z.boolean(),
3137
- isPublic: _zod.z.boolean(),
3138
- environment: PublishedDocEnvironment,
3139
- checksums: PublishedDocsChecksums,
3140
- storagePath: _zod.z.string(),
3141
- wasMigrated: _zod.z.boolean(),
3142
- routingVersion: PublishedDocRoutingVersion,
3143
- usesLocalizations: _zod.z.boolean(),
3144
- wasPublishedWithLocalizations: _zod.z.boolean(),
3145
- tokenCount: _zod.z.number(),
3146
- assetCount: _zod.z.number()
3147
- });
3148
-
3149
- // src/dsm/version.ts
3150
-
3151
- var DesignSystemVersion = _zod.z.object({
3152
- id: _zod.z.string(),
3153
- version: _zod.z.string(),
3154
- createdAt: _zod.z.date(),
3155
- designSystemId: _zod.z.string(),
3156
- name: _zod.z.string(),
3157
- comment: _zod.z.string(),
3158
- isReadonly: _zod.z.boolean(),
3159
- changeLog: _zod.z.string(),
3160
- parentId: _zod.z.string().optional(),
3161
- isDraftsFeatureAdopted: _zod.z.boolean()
3162
- });
3163
- var VersionCreationJobStatus = _zod.z.enum(["Success", "InProgress", "Error"]);
3164
- var VersionCreationJob = _zod.z.object({
3165
- id: _zod.z.string(),
3166
- version: _zod.z.string(),
3167
- designSystemId: _zod.z.string(),
3168
- designSystemVersionId: nullishToOptional(_zod.z.string()),
3169
- status: VersionCreationJobStatus,
3170
- errorMessage: nullishToOptional(_zod.z.string())
3171
- });
3172
-
3173
- // src/export/export-destinations.ts
3174
- var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3175
- var BITBUCKET_MAX_LENGTH = 64;
3176
- var ExportJobDocumentationChanges = _zod.z.object({
3177
- pagePersistentIds: _zod.z.string().array(),
3178
- groupPersistentIds: _zod.z.string().array()
3179
- });
3180
- var ExporterDestinationDocs = _zod.z.object({
3181
- environment: PublishedDocEnvironment,
3182
- changes: nullishToOptional(ExportJobDocumentationChanges)
3183
- });
3184
- var ExporterDestinationS3 = _zod.z.object({});
3185
- var ExporterDestinationGithub = _zod.z.object({
3186
- credentialId: _zod.z.string().optional(),
3187
- // Repository
3188
- url: _zod.z.string(),
3189
- // Location
3190
- branch: _zod.z.string(),
3191
- relativePath: nullishToOptional(_zod.z.string()),
3192
- // Legacy deprecated fields. Use `credentialId` instead
3193
- connectionId: nullishToOptional(_zod.z.string()),
3194
- userId: nullishToOptional(_zod.z.number())
3195
- });
3196
- var ExporterDestinationAzure = _zod.z.object({
3197
- credentialId: _zod.z.string().optional(),
3198
- // Repository
3199
- organizationId: _zod.z.string(),
3200
- projectId: _zod.z.string(),
3201
- repositoryId: _zod.z.string(),
3202
- // Location
3203
- branch: _zod.z.string(),
3204
- relativePath: nullishToOptional(_zod.z.string()),
3205
- // Maybe not needed
3206
- url: nullishToOptional(_zod.z.string()),
3207
- // Legacy deprecated fields. Use `credentialId` instead
3208
- connectionId: nullishToOptional(_zod.z.string()),
3209
- userId: nullishToOptional(_zod.z.number())
3210
- });
3211
- var ExporterDestinationGitlab = _zod.z.object({
3212
- credentialId: _zod.z.string().optional(),
3213
- // Repository
3214
- projectId: _zod.z.string(),
3215
- // Location
3216
- branch: _zod.z.string(),
3217
- relativePath: nullishToOptional(_zod.z.string()),
3218
- // Maybe not needed
3219
- url: nullishToOptional(_zod.z.string()),
3220
- // Legacy deprecated fields. Use `credentialId` instead
3221
- connectionId: nullishToOptional(_zod.z.string()),
3222
- userId: nullishToOptional(_zod.z.number())
3223
- });
3224
- var ExporterDestinationBitbucket = _zod.z.object({
3225
- credentialId: _zod.z.string().optional(),
3226
- // Repository
3227
- workspaceSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3228
- projectKey: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3229
- repoSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3230
- // Location
3231
- branch: _zod.z.string(),
3232
- relativePath: nullishToOptional(_zod.z.string()),
3233
- // Legacy deprecated fields. Use `credentialId` instead
3234
- connectionId: nullishToOptional(_zod.z.string()),
3235
- userId: nullishToOptional(_zod.z.number())
3236
- });
3237
- var ExportDestinationsMap = _zod.z.object({
3238
- webhookUrl: _zod.z.string().optional(),
3239
- destinationSnDocs: ExporterDestinationDocs.optional(),
3240
- destinationS3: ExporterDestinationS3.optional(),
3241
- destinationGithub: ExporterDestinationGithub.optional(),
3242
- destinationAzure: ExporterDestinationAzure.optional(),
3243
- destinationGitlab: ExporterDestinationGitlab.optional(),
3244
- destinationBitbucket: ExporterDestinationBitbucket.optional()
3245
- });
3246
-
3247
- // src/export/pipeline.ts
3248
- var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3249
- var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
3250
- var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
3251
- var PipelineDestinationType = _zod.z.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
3252
- var Pipeline = _zod.z.object({
3253
- id: _zod.z.string(),
3254
- name: _zod.z.string(),
3255
- eventType: PipelineEventType,
3256
- isEnabled: _zod.z.boolean(),
3257
- workspaceId: _zod.z.string(),
3258
- designSystemId: _zod.z.string(),
3259
- exporterId: _zod.z.string(),
3260
- brandPersistentId: _zod.z.string().optional(),
3261
- themePersistentId: _zod.z.string().optional(),
3262
- // Destinations
3263
- ...ExportDestinationsMap.shape
3264
- });
3265
-
3266
- // src/data-dumps/code-integration-dump.ts
3267
- var ExportJobDump = _zod.z.object({
3268
- id: _zod.z.string(),
3269
- createdAt: _zod.z.coerce.date(),
3270
- finishedAt: _zod.z.coerce.date(),
3271
- exportArtefacts: _zod.z.string()
3272
- });
3273
- var CodeIntegrationDump = _zod.z.object({
3274
- exporters: Exporter.array(),
3275
- pipelines: Pipeline.array(),
3276
- exportJobs: ExportJobDump.array()
3277
- });
3278
-
3279
- // src/data-dumps/design-system-dump.ts
3280
-
3281
-
3282
- // src/data-dumps/design-system-version-dump.ts
3283
-
3284
-
3285
- // src/liveblocks/rooms/design-system-version-room.ts
3286
-
3287
- var DesignSystemVersionRoom = Entity.extend({
3288
- designSystemVersionId: _zod.z.string(),
3289
- liveblocksId: _zod.z.string()
3290
- });
3291
- var DesignSystemVersionRoomInternalSettings = _zod.z.object({
3292
- routingVersion: _zod.z.string(),
3293
- isDraftFeatureAdopted: _zod.z.boolean()
3294
- });
3295
- var DesignSystemVersionRoomInitialState = _zod.z.object({
3296
- pages: _zod.z.array(DocumentationPageV2),
3297
- groups: _zod.z.array(ElementGroup),
3298
- pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
3299
- groupSnapshots: _zod.z.array(ElementGroupSnapshot),
3300
- internalSettings: DesignSystemVersionRoomInternalSettings
3301
- });
3302
- var DesignSystemVersionRoomUpdate = _zod.z.object({
3303
- pages: _zod.z.array(DocumentationPageV2),
3304
- groups: _zod.z.array(ElementGroup),
3305
- pageIdsToDelete: _zod.z.array(_zod.z.string()),
3306
- groupIdsToDelete: _zod.z.array(_zod.z.string()),
3307
- pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
3308
- groupSnapshots: _zod.z.array(ElementGroupSnapshot),
3309
- pageSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
3310
- groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
3311
- pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string())
3312
- });
3313
-
3314
- // src/liveblocks/rooms/documentation-page-room.ts
3315
-
3316
- var DocumentationPageRoom = Entity.extend({
3317
- designSystemVersionId: _zod.z.string(),
3318
- documentationPageId: _zod.z.string(),
3319
- liveblocksId: _zod.z.string(),
3320
- isDirty: _zod.z.boolean()
3321
- });
3322
- var DocumentationPageRoomState = _zod.z.object({
3323
- pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3324
- itemConfiguration: DocumentationItemConfigurationV2
3325
- });
3326
- var DocumentationPageRoomRoomUpdate = _zod.z.object({
3327
- page: DocumentationPageV2,
3328
- pageParent: ElementGroup
3329
- });
3330
- var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3331
- pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3332
- blockDefinitions: _zod.z.array(PageBlockDefinition)
3333
- });
3334
- var RestoredDocumentationPage = _zod.z.object({
3335
- page: DocumentationPageV2,
3336
- pageParent: ElementGroup,
3337
- pageContent: DocumentationPageContentData,
3338
- contentHash: _zod.z.string(),
3339
- roomId: _zod.z.string().optional()
3340
- });
3341
- var RestoredDocumentationGroup = _zod.z.object({
3342
- group: ElementGroup,
3343
- parent: ElementGroup
3344
- });
3345
-
3346
- // src/liveblocks/rooms/room-type.ts
3347
-
3348
- var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3349
- RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3350
- RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3351
- RoomTypeEnum2["Workspace"] = "workspace";
3352
- return RoomTypeEnum2;
3353
- })(RoomTypeEnum || {});
3354
- var RoomTypeSchema = _zod.z.nativeEnum(RoomTypeEnum);
3355
- var RoomType = RoomTypeSchema.enum;
3356
-
3357
- // src/liveblocks/rooms/workspace-room.ts
3358
-
3359
- var WorkspaceRoom = Entity.extend({
3360
- workspaceId: _zod.z.string(),
3361
- liveblocksId: _zod.z.string()
3362
- });
3363
-
3364
- // src/data-dumps/published-docs-dump.ts
3365
-
3366
- var PublishedDocsDump = _zod.z.object({
3367
- documentation: PublishedDoc,
3368
- pages: PublishedDocPage.array()
3369
- });
3370
-
3371
- // src/data-dumps/design-system-version-dump.ts
3372
- var DocumentationThreadDump = _zod.z.object({
3373
- thread: DocumentationCommentThread,
3374
- comments: DocumentationComment.array()
3375
- });
3376
- var DocumentationPageRoomDump = _zod.z.object({
3377
- room: DocumentationPageRoom,
3378
- threads: DocumentationThreadDump.array()
3379
- });
3380
- var DesignSystemVersionMultiplayerDump = _zod.z.object({
3381
- documentationPages: DocumentationPageRoomDump.array()
3382
- });
3383
- var DesignSystemVersionDump = _zod.z.object({
3384
- version: DesignSystemVersion,
3385
- brands: Brand.array(),
3386
- elements: DesignElement.array(),
3387
- elementPropertyDefinitions: ElementPropertyDefinition.array(),
3388
- elementPropertyValues: ElementPropertyValue.array(),
3389
- elementViews: ElementView.array(),
3390
- elementColumns: ElementViewColumn.array(),
3391
- documentationPageContents: DocumentationPageContent.array(),
3392
- documentationPageRooms: DocumentationPageRoomDump.array(),
3393
- publishedDocumentations: PublishedDocsDump.array(),
3394
- assetReferences: AssetReference.array()
3395
- });
3396
-
3397
- // src/data-dumps/design-system-dump.ts
3398
- var DesignSystemDump = _zod.z.object({
3399
- designSystem: DesignSystem,
3400
- dataSources: DataSource.array(),
3401
- versions: DesignSystemVersionDump.array(),
3402
- customDomain: CustomDomain.optional(),
3403
- files: Asset.array()
3404
- });
3405
-
3406
- // src/data-dumps/user-data-dump.ts
3407
-
3408
-
3409
- // src/users/linked-integrations.ts
3410
-
3411
- var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
3412
- var ExternalServiceType = _zod.z.union([
3413
- _zod.z.literal("figma"),
3414
- _zod.z.literal("github"),
3415
- _zod.z.literal("azure"),
3416
- _zod.z.literal("gitlab"),
3417
- _zod.z.literal("bitbucket")
3418
- ]);
3419
- var IntegrationUserInfo = _zod.z.object({
3420
- id: _zod.z.string(),
3421
- handle: _zod.z.string().optional(),
3422
- avatarUrl: _zod.z.string().optional(),
3423
- email: _zod.z.string().optional(),
3424
- authType: IntegrationAuthType.optional(),
3425
- customUrl: _zod.z.string().optional()
3426
- });
3427
- var UserLinkedIntegrations = _zod.z.object({
3428
- figma: IntegrationUserInfo.optional(),
3429
- github: IntegrationUserInfo.array().optional(),
3430
- azure: IntegrationUserInfo.array().optional(),
3431
- gitlab: IntegrationUserInfo.array().optional(),
3432
- bitbucket: IntegrationUserInfo.array().optional()
3433
- });
3434
-
3435
- // src/users/user-analytics-cleanup-schedule.ts
3436
-
3437
- var UserAnalyticsCleanupSchedule = _zod.z.object({
3438
- userId: _zod.z.string(),
3439
- createdAt: _zod.z.coerce.date(),
3440
- deleteAt: _zod.z.coerce.date()
3441
- });
3442
- var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
3443
- createdAt: true
3444
- });
3445
-
3446
- // src/users/user-create.ts
3447
-
3448
- var CreateUserInput = _zod.z.object({
3449
- email: _zod.z.string(),
3450
- name: _zod.z.string(),
3451
- username: _zod.z.string()
3452
- });
3453
-
3454
- // src/users/user-identity.ts
3455
-
3456
- var UserIdentity = _zod.z.object({
3457
- id: _zod.z.string(),
3458
- userId: _zod.z.string()
3459
- });
3460
-
3461
- // src/users/user-minified.ts
3462
-
3463
- var UserMinified = _zod.z.object({
3464
- id: _zod.z.string(),
3465
- name: _zod.z.string(),
3466
- email: _zod.z.string(),
3467
- avatar: _zod.z.string().optional()
3468
- });
3469
-
3470
- // src/users/user-notification-settings.ts
3471
-
3472
- var LiveblocksNotificationSettings = _zod.z.object({
3473
- sendCommentNotificationEmails: _zod.z.boolean()
3474
- });
3475
- var UserNotificationSettings = _zod.z.object({
3476
- liveblocksNotificationSettings: LiveblocksNotificationSettings
3477
- });
3478
- var defaultNotificationSettings = {
3479
- liveblocksNotificationSettings: {
3480
- sendCommentNotificationEmails: true
3481
- }
3482
- };
3483
-
3484
- // src/users/user-profile.ts
3485
-
3486
- var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
3487
- var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3488
- var UserOnboarding = _zod.z.object({
3489
- companyName: _zod.z.string().optional(),
3490
- numberOfPeopleInOrg: _zod.z.string().optional(),
3491
- numberOfPeopleInDesignTeam: _zod.z.string().optional(),
3492
- department: UserOnboardingDepartment.optional(),
3493
- jobTitle: _zod.z.string().optional(),
3494
- phase: _zod.z.string().optional(),
3495
- jobLevel: UserOnboardingJobLevel.optional(),
3496
- designSystemName: _zod.z.string().optional(),
3497
- defaultDestination: _zod.z.string().optional(),
3498
- figmaUrl: _zod.z.string().optional()
3499
- });
3500
- var UserProfile = _zod.z.object({
3501
- name: _zod.z.string(),
3502
- avatar: _zod.z.string().optional(),
3503
- nickname: _zod.z.string().optional(),
3504
- onboarding: UserOnboarding.optional()
3505
- });
3506
- var UserProfileUpdate = UserProfile.partial().omit({
3507
- avatar: true
3508
- });
3509
-
3510
- // src/users/user-test.ts
3511
-
3512
- var UserTest = _zod.z.object({
3513
- id: _zod.z.string(),
3514
- email: _zod.z.string()
3515
- });
3516
-
3517
- // src/users/user.ts
3518
-
3519
- var User = _zod.z.object({
3520
- id: _zod.z.string(),
3521
- email: _zod.z.string(),
3522
- emailVerified: _zod.z.boolean(),
3523
- createdAt: _zod.z.coerce.date(),
3524
- trialExpiresAt: _zod.z.coerce.date().optional(),
3525
- profile: UserProfile,
3526
- linkedIntegrations: UserLinkedIntegrations.optional(),
3527
- loggedOutAt: _zod.z.coerce.date().optional(),
3528
- isProtected: _zod.z.boolean()
3529
- });
3530
-
3531
- // src/data-dumps/workspace-dump.ts
3532
-
3533
-
3534
- // src/integrations/integration.ts
3535
-
3536
-
3537
- // src/utils/errors.ts
3538
- var SupernovaException = class _SupernovaException extends Error {
3539
- //
3540
- // Properties
3541
- //
3542
- constructor(type, message) {
3543
- super(`${type}: ${message}`);
3544
- this.type = type;
3545
- }
3546
- static wrongFormat(message) {
3547
- return new _SupernovaException("WrongFormat", message);
3548
- }
3549
- static validationError(message) {
3550
- return new _SupernovaException("ValidationError", message);
3551
- }
3552
- static accessDenied(message) {
3553
- return new _SupernovaException("AccessDenied", message);
3554
- }
3555
- static tooMuchWork(message) {
3556
- return new _SupernovaException("TooMuchWork", message);
3557
- }
3558
- static notFound(message) {
3559
- return new _SupernovaException("ResourceNotFound", message);
3560
- }
3561
- static timeout(message) {
3562
- return new _SupernovaException("Timeout", message);
3563
- }
3564
- static conflict(message) {
3565
- return new _SupernovaException("Conflict", message);
3566
- }
3567
- static notImplemented(message) {
3568
- return new _SupernovaException("NotImplemented", message);
3569
- }
3570
- static wrongActionOrder(message) {
3571
- return new _SupernovaException("WrongActionOrder", message);
3572
- }
3573
- static invalidOperation(message) {
3574
- return new _SupernovaException("InvalidOperation", message);
3575
- }
3576
- static shouldNotHappen(message) {
3577
- return new _SupernovaException("UnexpectedError", message);
3578
- }
3579
- static ipRestricted(message) {
3580
- return new _SupernovaException("IPRestricted", message);
3581
- }
3582
- static planRestricted(message) {
3583
- return new _SupernovaException("PlanRestricted", message);
3584
- }
3585
- static missingWorkspacePermission(message) {
3586
- return new _SupernovaException("MissingWorkspacePermission", message);
3587
- }
3588
- static missingExporterPermission(message) {
3589
- return new _SupernovaException("MissingExporterPermission", message);
3590
- }
3591
- static missingIntegration(message) {
3592
- return new _SupernovaException("MissingIntegration", message);
3593
- }
3594
- static missingIntegrationAccess(message) {
3595
- return new _SupernovaException("MissingIntegrationAccess", message);
3596
- }
3597
- static noAccess(message) {
3598
- return new _SupernovaException("NoAccess", message);
3599
- }
3600
- static missingCredentials(message) {
3601
- return new _SupernovaException("MissingCredentials", message);
3602
- }
3603
- static thirdPartyError(message) {
3604
- return new _SupernovaException("ThirdPartyError", message);
3605
- }
3606
- //
3607
- // To refactor
3608
- //
3609
- static badRequest(message) {
3610
- return new _SupernovaException("BadRequest", message);
3611
- }
3612
- };
3613
-
3614
- // src/utils/common.ts
3615
- function forceUnwrapNullish(value) {
3616
- if (value === null)
3617
- throw new Error("Illegal null");
3618
- if (value === void 0)
3619
- throw new Error("Illegal undefined");
3620
- return value;
3621
- }
3622
- function trimLeadingSlash(string) {
3623
- return string.startsWith("/") ? string.substring(1) : string;
3624
- }
3625
- function trimTrailingSlash(string) {
3626
- return string.endsWith("/") ? string.substring(0, string.length - 1) : string;
3627
- }
3628
- function tryParseUrl(url) {
3629
- try {
3630
- return parseUrl(url);
3631
- } catch (e) {
3632
- console.error(`Error parsing URL ${url}`);
3633
- console.error(e);
3634
- return null;
3635
- }
3636
- }
3637
- function parseUrl(url) {
3638
- return new URL(url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`);
3639
- }
3640
- function mapByUnique(items, keyFn) {
3641
- const result = /* @__PURE__ */ new Map();
3642
- for (const item of items) {
3643
- result.set(keyFn(item), item);
3644
- }
3645
- return result;
3646
- }
3647
- function groupBy(items, keyFn) {
3648
- const result = /* @__PURE__ */ new Map();
3649
- for (const item of items) {
3650
- const key = keyFn(item);
3651
- const array = result.get(key);
3652
- if (array) {
3653
- array.push(item);
3654
- } else {
3655
- result.set(key, [item]);
3656
- }
3657
- }
3658
- return result;
3659
- }
3660
- function filterNonNullish(items) {
3661
- return items.filter(Boolean);
3662
- }
3663
- function nonNullishFilter(item) {
3664
- return !!item;
3665
- }
3666
- function nonNullFilter(item) {
3667
- return item !== null;
3668
- }
3669
- function buildConstantEnum(values) {
3670
- const constMap = values.reduce((acc, code) => ({ ...acc, [code]: code }), {});
3671
- return constMap;
3672
- }
3673
- async function promiseWithTimeout(timeoutMs, promise) {
3674
- let timeoutHandle;
3675
- const timeoutPromise = new Promise((_, reject) => {
3676
- timeoutHandle = setTimeout(() => reject(SupernovaException.timeout()), timeoutMs);
3677
- });
3678
- const result = await Promise.race([promise(), timeoutPromise]);
3679
- clearTimeout(timeoutHandle);
3680
- return result;
3681
- }
3682
- async function sleep(ms) {
3683
- return new Promise((resolve) => setTimeout(resolve, ms));
3684
- }
3685
- function uniqueBy(items, prop) {
3686
- return Array.from(mapByUnique(items, prop).values());
3687
- }
3688
-
3689
- // src/utils/content-loader-instruction.ts
3690
-
3691
- var ContentLoadInstruction = _zod.z.object({
3692
- from: _zod.z.string(),
3693
- to: _zod.z.string(),
3694
- authorizationHeaderKvsId: _zod.z.string().optional(),
3695
- timeout: _zod.z.number().optional()
3696
- });
3697
- var ContentLoaderPayload = _zod.z.object({
3698
- type: _zod.z.literal("Single"),
3699
- instruction: ContentLoadInstruction
3700
- }).or(
3701
- _zod.z.object({
3702
- type: _zod.z.literal("Multiple"),
3703
- loadingChunkSize: _zod.z.number().optional(),
3704
- instructions: _zod.z.array(ContentLoadInstruction)
3705
- })
3706
- ).or(
3707
- _zod.z.object({
3708
- type: _zod.z.literal("S3"),
3709
- location: _zod.z.string()
3710
- })
3711
- );
3712
-
3713
- // src/utils/naming.ts
3714
- function getCodenameFromText(name) {
3715
- let codeName = removeDiacritics(name);
3716
- codeName = codeName.replace(/[^a-zA-Z0-9$_ ]+/g, "");
3717
- codeName = codeName.replace(/^[0-9 ]+/g, "");
3718
- codeName = toCamelCase(codeName.toLowerCase());
3719
- codeName = codeName.replace(/ /g, "");
3720
- if (codeName) {
3721
- codeName = codeName.charAt(0).toLowerCase() + codeName.slice(1);
3722
- }
3723
- return codeName;
3724
- }
3725
- function toCamelCase(str) {
3726
- return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
3727
- if (+match === 0)
3728
- return "";
3729
- return index === 0 ? match.toLowerCase() : match.toUpperCase();
3730
- });
3731
- }
3732
- function removeDiacritics(str) {
3733
- const diacriticsMap = [
3734
- {
3735
- base: "A",
3736
- letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g
3737
- },
3738
- { base: "AA", letters: /[\uA732]/g },
3739
- { base: "AE", letters: /[\u00C6\u01FC\u01E2]/g },
3740
- { base: "AO", letters: /[\uA734]/g },
3741
- { base: "AU", letters: /[\uA736]/g },
3742
- { base: "AV", letters: /[\uA738\uA73A]/g },
3743
- { base: "AY", letters: /[\uA73C]/g },
3744
- {
3745
- base: "B",
3746
- letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g
3747
- },
3748
- {
3749
- base: "C",
3750
- letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g
3751
- },
3752
- /* ... */
3753
- {
3754
- base: "Z",
3755
- letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g
3756
- },
3757
- {
3758
- base: "a",
3759
- letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g
3760
- },
3761
- /* ... */
3762
- {
3763
- base: "z",
3764
- letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g
3765
- }
3766
- ];
3767
- diacriticsMap.forEach((diacritic) => {
3768
- str = str.replace(diacritic.letters, diacritic.base);
3769
- });
3770
- return str;
3013
+ // src/utils/naming.ts
3014
+ function getCodenameFromText(name) {
3015
+ let codeName = removeDiacritics(name);
3016
+ codeName = codeName.replace(/[^a-zA-Z0-9$_ ]+/g, "");
3017
+ codeName = codeName.replace(/^[0-9 ]+/g, "");
3018
+ codeName = toCamelCase(codeName.toLowerCase());
3019
+ codeName = codeName.replace(/ /g, "");
3020
+ if (codeName) {
3021
+ codeName = codeName.charAt(0).toLowerCase() + codeName.slice(1);
3022
+ }
3023
+ return codeName;
3024
+ }
3025
+ function toCamelCase(str) {
3026
+ return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
3027
+ if (+match === 0)
3028
+ return "";
3029
+ return index === 0 ? match.toLowerCase() : match.toUpperCase();
3030
+ });
3031
+ }
3032
+ function removeDiacritics(str) {
3033
+ const diacriticsMap = [
3034
+ {
3035
+ base: "A",
3036
+ letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g
3037
+ },
3038
+ { base: "AA", letters: /[\uA732]/g },
3039
+ { base: "AE", letters: /[\u00C6\u01FC\u01E2]/g },
3040
+ { base: "AO", letters: /[\uA734]/g },
3041
+ { base: "AU", letters: /[\uA736]/g },
3042
+ { base: "AV", letters: /[\uA738\uA73A]/g },
3043
+ { base: "AY", letters: /[\uA73C]/g },
3044
+ {
3045
+ base: "B",
3046
+ letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g
3047
+ },
3048
+ {
3049
+ base: "C",
3050
+ letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g
3051
+ },
3052
+ /* ... */
3053
+ {
3054
+ base: "Z",
3055
+ letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g
3056
+ },
3057
+ {
3058
+ base: "a",
3059
+ letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g
3060
+ },
3061
+ /* ... */
3062
+ {
3063
+ base: "z",
3064
+ letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g
3065
+ }
3066
+ ];
3067
+ diacriticsMap.forEach((diacritic) => {
3068
+ str = str.replace(diacritic.letters, diacritic.base);
3069
+ });
3070
+ return str;
3771
3071
  }
3772
3072
 
3773
3073
  // src/utils/slugify.ts
3774
3074
  var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
3775
3075
  function slugify(str, options) {
3776
3076
  const slug = _slugify2.default.call(void 0, _nullishCoalesce(str, () => ( "")), options);
3777
- return _optionalChain([slug, 'optionalAccess', _9 => _9.length]) > 0 ? slug : "item";
3077
+ return _optionalChain([slug, 'optionalAccess', _2 => _2.length]) > 0 ? slug : "item";
3778
3078
  }
3779
3079
  var RESERVED_SLUGS = [
3780
3080
  "workspaces",
@@ -4397,15 +3697,729 @@ var RESERVED_SLUGS = [
4397
3697
  ];
4398
3698
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
4399
3699
  var RESERVED_SLUG_PREFIX = "x-sn-reserved-";
4400
- var isSlugReservedInternal = (slug) => _optionalChain([slug, 'optionalAccess', _10 => _10.startsWith, 'call', _11 => _11(RESERVED_SLUG_PREFIX)]);
3700
+ var isSlugReservedInternal = (slug) => _optionalChain([slug, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4(RESERVED_SLUG_PREFIX)]);
4401
3701
  function isSlugReserved(slug) {
4402
3702
  return RESERVED_SLUGS_SET.has(slug) || isSlugReservedInternal(slug);
4403
3703
  }
4404
3704
 
4405
- // src/utils/validation.ts
4406
- var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
3705
+ // src/utils/validation.ts
3706
+ var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
3707
+
3708
+ // src/dsm/element-snapshots/base.ts
3709
+ var DesignElementSnapshotReason = _zod.z.enum(["Publish", "Deletion"]);
3710
+ var DesignElementSnapshotBase = _zod.z.object({
3711
+ id: _zod.z.string(),
3712
+ persistentId: _zod.z.string(),
3713
+ designSystemVersionId: _zod.z.string(),
3714
+ createdAt: _zod.z.coerce.date(),
3715
+ updatedAt: _zod.z.coerce.date(),
3716
+ reason: DesignElementSnapshotReason,
3717
+ createdByUserId: _zod.z.string()
3718
+ });
3719
+ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
3720
+ const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
3721
+ return Array.from(groupedSnapshots.entries()).map(([_, snapshots2]) => {
3722
+ const sorted = snapshots2.sort((lhs, rhs) => rhs.createdAt.getTime() - lhs.createdAt.getTime());
3723
+ return sorted[0];
3724
+ });
3725
+ }
3726
+
3727
+ // src/dsm/element-snapshots/documentation-page-snapshot.ts
3728
+
3729
+ var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
3730
+ page: DocumentationPageV2,
3731
+ pageContentHash: _zod.z.string(),
3732
+ pageContentStorageKey: _zod.z.string()
3733
+ });
3734
+ function pickLatestPageSnapshots(snapshots) {
3735
+ return pickLatestSnapshots(snapshots, (s) => s.page.id);
3736
+ }
3737
+
3738
+ // src/dsm/element-snapshots/group-snapshot.ts
3739
+ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
3740
+ group: ElementGroup
3741
+ });
3742
+ function pickLatestGroupSnapshots(snapshots) {
3743
+ return pickLatestSnapshots(snapshots, (s) => s.group.id);
3744
+ }
3745
+
3746
+ // src/dsm/views/column.ts
3747
+
3748
+ var ElementViewBaseColumnType = _zod.z.enum(["Name", "Description", "Value", "UpdatedAt"]);
3749
+ var ElementViewColumnType = _zod.z.union([
3750
+ _zod.z.literal("BaseProperty"),
3751
+ _zod.z.literal("PropertyDefinition"),
3752
+ _zod.z.literal("Theme")
3753
+ ]);
3754
+ var ElementViewColumnSharedAttributes = _zod.z.object({
3755
+ id: _zod.z.string(),
3756
+ persistentId: _zod.z.string(),
3757
+ elementDataViewId: _zod.z.string(),
3758
+ sortPosition: _zod.z.number(),
3759
+ width: _zod.z.number()
3760
+ });
3761
+ var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
3762
+ type: _zod.z.literal("BaseProperty"),
3763
+ basePropertyType: ElementViewBaseColumnType
3764
+ });
3765
+ var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3766
+ type: _zod.z.literal("PropertyDefinition"),
3767
+ propertyDefinitionId: _zod.z.string()
3768
+ });
3769
+ var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3770
+ type: _zod.z.literal("Theme"),
3771
+ themeId: _zod.z.string()
3772
+ });
3773
+ var ElementViewColumn = _zod.z.discriminatedUnion("type", [
3774
+ ElementViewBasePropertyColumn,
3775
+ ElementViewPropertyDefinitionColumn,
3776
+ ElementViewThemeColumn
3777
+ ]);
3778
+
3779
+ // src/dsm/views/view.ts
3780
+
3781
+ var ElementView = _zod.z.object({
3782
+ id: _zod.z.string(),
3783
+ persistentId: _zod.z.string(),
3784
+ designSystemVersionId: _zod.z.string(),
3785
+ name: _zod.z.string(),
3786
+ description: _zod.z.string(),
3787
+ targetElementType: ElementPropertyTargetType,
3788
+ isDefault: _zod.z.boolean()
3789
+ });
3790
+
3791
+ // src/dsm/brand.ts
3792
+
3793
+ var Brand = _zod.z.object({
3794
+ id: _zod.z.string(),
3795
+ designSystemVersionId: _zod.z.string(),
3796
+ persistentId: _zod.z.string(),
3797
+ name: _zod.z.string(),
3798
+ description: _zod.z.string()
3799
+ });
3800
+
3801
+ // src/dsm/design-system-update.ts
3802
+
3803
+
3804
+ // src/dsm/design-system.ts
3805
+
3806
+
3807
+ // src/workspace/workspace.ts
3808
+ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
3809
+
3810
+
3811
+ // src/workspace/npm-registry-settings.ts
3812
+
3813
+ var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
3814
+ var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3815
+ var NpmRegistryBasicAuthConfig = _zod.z.object({
3816
+ authType: _zod.z.literal(NpmRegistryAuthType.Enum.Basic),
3817
+ username: _zod.z.string(),
3818
+ password: _zod.z.string()
3819
+ });
3820
+ var NpmRegistryBearerAuthConfig = _zod.z.object({
3821
+ authType: _zod.z.literal(NpmRegistryAuthType.Enum.Bearer),
3822
+ accessToken: _zod.z.string()
3823
+ });
3824
+ var NpmRegistryNoAuthConfig = _zod.z.object({
3825
+ authType: _zod.z.literal(NpmRegistryAuthType.Enum.None)
3826
+ });
3827
+ var NpmRegistrCustomAuthConfig = _zod.z.object({
3828
+ authType: _zod.z.literal(NpmRegistryAuthType.Enum.Custom),
3829
+ authHeaderName: _zod.z.string(),
3830
+ authHeaderValue: _zod.z.string()
3831
+ });
3832
+ var NpmRegistryAuthConfig = _zod.z.discriminatedUnion("authType", [
3833
+ NpmRegistryBasicAuthConfig,
3834
+ NpmRegistryBearerAuthConfig,
3835
+ NpmRegistryNoAuthConfig,
3836
+ NpmRegistrCustomAuthConfig
3837
+ ]);
3838
+ var NpmRegistryConfigBase = _zod.z.object({
3839
+ registryType: NpmRegistryType,
3840
+ enabledScopes: _zod.z.array(_zod.z.string()),
3841
+ customRegistryUrl: _zod.z.string().optional(),
3842
+ bypassProxy: _zod.z.boolean().default(false),
3843
+ npmProxyRegistryConfigId: _zod.z.string().optional(),
3844
+ npmProxyVersion: _zod.z.number().optional()
3845
+ });
3846
+ var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
3847
+
3848
+ // src/workspace/sso-provider.ts
3849
+
3850
+ var SsoProvider = _zod.z.object({
3851
+ providerId: _zod.z.string(),
3852
+ defaultAutoInviteValue: _zod.z.boolean(),
3853
+ autoInviteDomains: _zod.z.record(_zod.z.string(), _zod.z.boolean()),
3854
+ skipDocsSupernovaLogin: _zod.z.boolean(),
3855
+ areInvitesDisabled: _zod.z.boolean(),
3856
+ isTestMode: _zod.z.boolean(),
3857
+ emailDomains: _zod.z.array(_zod.z.string()),
3858
+ metadataXml: _zod.z.string().nullish()
3859
+ });
3860
+
3861
+ // src/workspace/workspace.ts
3862
+ var isValidCIDR = (value) => {
3863
+ return _ipcidr2.default.isValidAddress(value);
3864
+ };
3865
+ var WorkspaceIpWhitelistEntry = _zod.z.object({
3866
+ isEnabled: _zod.z.boolean(),
3867
+ name: _zod.z.string(),
3868
+ range: _zod.z.string().refine(isValidCIDR, {
3869
+ message: "Invalid IP CIDR"
3870
+ })
3871
+ });
3872
+ var WorkspaceIpSettings = _zod.z.object({
3873
+ isEnabledForCloud: _zod.z.boolean(),
3874
+ isEnabledForDocs: _zod.z.boolean(),
3875
+ entries: _zod.z.array(WorkspaceIpWhitelistEntry)
3876
+ });
3877
+ var WorkspaceProfile = _zod.z.object({
3878
+ name: _zod.z.string(),
3879
+ handle: _zod.z.string(),
3880
+ color: _zod.z.string(),
3881
+ avatar: nullishToOptional(_zod.z.string()),
3882
+ billingDetails: nullishToOptional(BillingDetails)
3883
+ });
3884
+ var WorkspaceProfileUpdate = WorkspaceProfile.omit({
3885
+ avatar: true
3886
+ });
3887
+ var Workspace = _zod.z.object({
3888
+ id: _zod.z.string(),
3889
+ profile: WorkspaceProfile,
3890
+ subscription: Subscription,
3891
+ ipWhitelist: nullishToOptional(WorkspaceIpSettings),
3892
+ sso: nullishToOptional(SsoProvider),
3893
+ npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
3894
+ });
3895
+ var WorkspaceWithDesignSystems = _zod.z.object({
3896
+ workspace: Workspace,
3897
+ designSystems: _zod.z.array(DesignSystem)
3898
+ });
3899
+
3900
+ // src/dsm/design-system.ts
3901
+ var DesignSystemSwitcher = _zod.z.object({
3902
+ isEnabled: _zod.z.boolean(),
3903
+ designSystemIds: _zod.z.array(_zod.z.string())
3904
+ });
3905
+ var DesignSystem = _zod.z.object({
3906
+ id: _zod.z.string(),
3907
+ workspaceId: _zod.z.string(),
3908
+ name: _zod.z.string(),
3909
+ description: _zod.z.string(),
3910
+ docExporterId: nullishToOptional(_zod.z.string()),
3911
+ docSlug: _zod.z.string(),
3912
+ docUserSlug: nullishToOptional(_zod.z.string()),
3913
+ docSlugDeprecated: _zod.z.string(),
3914
+ isPublic: _zod.z.boolean(),
3915
+ isMultibrand: _zod.z.boolean(),
3916
+ docViewUrl: nullishToOptional(_zod.z.string()),
3917
+ basePrefixes: _zod.z.array(_zod.z.string()),
3918
+ designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3919
+ createdAt: _zod.z.coerce.date(),
3920
+ updatedAt: _zod.z.coerce.date()
3921
+ });
3922
+ var DesignSystemWithWorkspace = _zod.z.object({
3923
+ designSystem: DesignSystem,
3924
+ workspace: Workspace
3925
+ });
3926
+
3927
+ // src/dsm/design-system-update.ts
3928
+ var DS_NAME_MIN_LENGTH = 2;
3929
+ var DS_NAME_MAX_LENGTH = 64;
3930
+ var DS_DESC_MAX_LENGTH = 64;
3931
+ var DesignSystemUpdateInputMetadata = _zod.z.object({
3932
+ name: _zod.z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
3933
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH).trim().optional()
3934
+ });
3935
+ var DesignSystemUpdateInput = DesignSystem.partial().omit({
3936
+ id: true,
3937
+ createdAt: true,
3938
+ updatedAt: true,
3939
+ docSlug: true,
3940
+ docViewUrl: true,
3941
+ designSystemSwitcher: true
3942
+ }).extend({
3943
+ meta: DesignSystemUpdateInputMetadata.optional()
3944
+ });
3945
+
3946
+ // src/dsm/desing-system-create.ts
3947
+
3948
+ var DS_NAME_MIN_LENGTH2 = 2;
3949
+ var DS_NAME_MAX_LENGTH2 = 64;
3950
+ var DS_DESC_MAX_LENGTH2 = 64;
3951
+ var DesignSystemCreateInputMetadata = _zod.z.object({
3952
+ name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
3953
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim()
3954
+ });
3955
+ var DesignSystemCreateInput = _zod.z.object({
3956
+ meta: DesignSystemCreateInputMetadata,
3957
+ workspaceId: _zod.z.string(),
3958
+ isPublic: _zod.z.boolean().optional(),
3959
+ basePrefixes: _zod.z.array(_zod.z.string()).optional(),
3960
+ docUserSlug: _zod.z.string().nullish().optional(),
3961
+ source: _zod.z.array(_zod.z.string()).optional()
3962
+ });
3963
+
3964
+ // src/dsm/exporter-property-values-collection.ts
3965
+
3966
+ var ExporterPropertyImageValue = _zod.z.object({
3967
+ asset: PageBlockAsset.optional(),
3968
+ assetId: _zod.z.string().optional(),
3969
+ assetUrl: _zod.z.string().optional()
3970
+ });
3971
+ var ExporterPropertyValue = _zod.z.object({
3972
+ key: _zod.z.string(),
3973
+ value: _zod.z.union([
3974
+ _zod.z.number(),
3975
+ _zod.z.string(),
3976
+ _zod.z.boolean(),
3977
+ ExporterPropertyImageValue,
3978
+ ColorTokenData,
3979
+ TypographyTokenData
3980
+ ])
3981
+ });
3982
+ var ExporterPropertyValuesCollection = _zod.z.object({
3983
+ id: _zod.z.string(),
3984
+ designSystemId: _zod.z.string(),
3985
+ exporterId: _zod.z.string(),
3986
+ values: _zod.z.array(ExporterPropertyValue)
3987
+ });
3988
+
3989
+ // src/dsm/published-doc-page.ts
3990
+
3991
+ var SHORT_PERSISTENT_ID_LENGTH = 8;
3992
+ function tryParseShortPersistentId(url = "/") {
3993
+ const lastUrlPart = url.split("/").pop() || "";
3994
+ const shortPersistentId = _optionalChain([lastUrlPart, 'access', _5 => _5.split, 'call', _6 => _6("-"), 'access', _7 => _7.pop, 'call', _8 => _8(), 'optionalAccess', _9 => _9.replaceAll, 'call', _10 => _10(".html", "")]) || null;
3995
+ return _optionalChain([shortPersistentId, 'optionalAccess', _11 => _11.length]) === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
3996
+ }
3997
+ var PublishedDocPage = _zod.z.object({
3998
+ id: _zod.z.string(),
3999
+ publishedDocId: _zod.z.string(),
4000
+ pageShortPersistentId: _zod.z.string(),
4001
+ pathV1: _zod.z.string(),
4002
+ pathV2: _zod.z.string(),
4003
+ storagePath: _zod.z.string(),
4004
+ locale: _zod.z.string().optional(),
4005
+ isPrivate: _zod.z.boolean(),
4006
+ isHidden: _zod.z.boolean(),
4007
+ createdAt: _zod.z.coerce.date(),
4008
+ updatedAt: _zod.z.coerce.date()
4009
+ });
4010
+
4011
+ // src/dsm/published-doc.ts
4012
+
4013
+ var publishedDocEnvironments = ["Live", "Preview"];
4014
+ var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
4015
+ var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
4016
+ var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
4017
+ var PublishedDoc = _zod.z.object({
4018
+ id: _zod.z.string(),
4019
+ designSystemVersionId: _zod.z.string(),
4020
+ createdAt: _zod.z.coerce.date(),
4021
+ updatedAt: _zod.z.coerce.date(),
4022
+ lastPublishedAt: _zod.z.coerce.date(),
4023
+ isDefault: _zod.z.boolean(),
4024
+ isPublic: _zod.z.boolean(),
4025
+ environment: PublishedDocEnvironment,
4026
+ checksums: PublishedDocsChecksums,
4027
+ storagePath: _zod.z.string(),
4028
+ wasMigrated: _zod.z.boolean(),
4029
+ routingVersion: PublishedDocRoutingVersion,
4030
+ usesLocalizations: _zod.z.boolean(),
4031
+ wasPublishedWithLocalizations: _zod.z.boolean(),
4032
+ tokenCount: _zod.z.number(),
4033
+ assetCount: _zod.z.number()
4034
+ });
4035
+
4036
+ // src/dsm/version.ts
4037
+
4038
+ var DesignSystemVersion = _zod.z.object({
4039
+ id: _zod.z.string(),
4040
+ version: _zod.z.string(),
4041
+ createdAt: _zod.z.date(),
4042
+ designSystemId: _zod.z.string(),
4043
+ name: _zod.z.string(),
4044
+ comment: _zod.z.string(),
4045
+ isReadonly: _zod.z.boolean(),
4046
+ changeLog: _zod.z.string(),
4047
+ parentId: _zod.z.string().optional(),
4048
+ isDraftsFeatureAdopted: _zod.z.boolean()
4049
+ });
4050
+ var VersionCreationJobStatus = _zod.z.enum(["Success", "InProgress", "Error"]);
4051
+ var VersionCreationJob = _zod.z.object({
4052
+ id: _zod.z.string(),
4053
+ version: _zod.z.string(),
4054
+ designSystemId: _zod.z.string(),
4055
+ designSystemVersionId: nullishToOptional(_zod.z.string()),
4056
+ status: VersionCreationJobStatus,
4057
+ errorMessage: nullishToOptional(_zod.z.string())
4058
+ });
4059
+
4060
+ // src/export/export-destinations.ts
4061
+ var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4062
+ var BITBUCKET_MAX_LENGTH = 64;
4063
+ var ExportJobDocumentationChanges = _zod.z.object({
4064
+ pagePersistentIds: _zod.z.string().array(),
4065
+ groupPersistentIds: _zod.z.string().array()
4066
+ });
4067
+ var ExporterDestinationDocs = _zod.z.object({
4068
+ environment: PublishedDocEnvironment,
4069
+ changes: nullishToOptional(ExportJobDocumentationChanges)
4070
+ });
4071
+ var ExporterDestinationS3 = _zod.z.object({});
4072
+ var ExporterDestinationGithub = _zod.z.object({
4073
+ credentialId: _zod.z.string().optional(),
4074
+ // Repository
4075
+ url: _zod.z.string(),
4076
+ // Location
4077
+ branch: _zod.z.string(),
4078
+ relativePath: nullishToOptional(_zod.z.string()),
4079
+ // Legacy deprecated fields. Use `credentialId` instead
4080
+ connectionId: nullishToOptional(_zod.z.string()),
4081
+ userId: nullishToOptional(_zod.z.number())
4082
+ });
4083
+ var ExporterDestinationAzure = _zod.z.object({
4084
+ credentialId: _zod.z.string().optional(),
4085
+ // Repository
4086
+ organizationId: _zod.z.string(),
4087
+ projectId: _zod.z.string(),
4088
+ repositoryId: _zod.z.string(),
4089
+ // Location
4090
+ branch: _zod.z.string(),
4091
+ relativePath: nullishToOptional(_zod.z.string()),
4092
+ // Maybe not needed
4093
+ url: nullishToOptional(_zod.z.string()),
4094
+ // Legacy deprecated fields. Use `credentialId` instead
4095
+ connectionId: nullishToOptional(_zod.z.string()),
4096
+ userId: nullishToOptional(_zod.z.number())
4097
+ });
4098
+ var ExporterDestinationGitlab = _zod.z.object({
4099
+ credentialId: _zod.z.string().optional(),
4100
+ // Repository
4101
+ projectId: _zod.z.string(),
4102
+ // Location
4103
+ branch: _zod.z.string(),
4104
+ relativePath: nullishToOptional(_zod.z.string()),
4105
+ // Maybe not needed
4106
+ url: nullishToOptional(_zod.z.string()),
4107
+ // Legacy deprecated fields. Use `credentialId` instead
4108
+ connectionId: nullishToOptional(_zod.z.string()),
4109
+ userId: nullishToOptional(_zod.z.number())
4110
+ });
4111
+ var ExporterDestinationBitbucket = _zod.z.object({
4112
+ credentialId: _zod.z.string().optional(),
4113
+ // Repository
4114
+ workspaceSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4115
+ projectKey: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4116
+ repoSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4117
+ // Location
4118
+ branch: _zod.z.string(),
4119
+ relativePath: nullishToOptional(_zod.z.string()),
4120
+ // Legacy deprecated fields. Use `credentialId` instead
4121
+ connectionId: nullishToOptional(_zod.z.string()),
4122
+ userId: nullishToOptional(_zod.z.number())
4123
+ });
4124
+ var ExportDestinationsMap = _zod.z.object({
4125
+ webhookUrl: _zod.z.string().optional(),
4126
+ destinationSnDocs: ExporterDestinationDocs.optional(),
4127
+ destinationS3: ExporterDestinationS3.optional(),
4128
+ destinationGithub: ExporterDestinationGithub.optional(),
4129
+ destinationAzure: ExporterDestinationAzure.optional(),
4130
+ destinationGitlab: ExporterDestinationGitlab.optional(),
4131
+ destinationBitbucket: ExporterDestinationBitbucket.optional()
4132
+ });
4133
+
4134
+ // src/export/pipeline.ts
4135
+ var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4136
+ var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4137
+ var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
4138
+ var PipelineDestinationType = _zod.z.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4139
+ var Pipeline = _zod.z.object({
4140
+ id: _zod.z.string(),
4141
+ name: _zod.z.string(),
4142
+ eventType: PipelineEventType,
4143
+ isEnabled: _zod.z.boolean(),
4144
+ workspaceId: _zod.z.string(),
4145
+ designSystemId: _zod.z.string(),
4146
+ exporterId: _zod.z.string(),
4147
+ brandPersistentId: _zod.z.string().optional(),
4148
+ themePersistentId: _zod.z.string().optional(),
4149
+ // Destinations
4150
+ ...ExportDestinationsMap.shape
4151
+ });
4152
+
4153
+ // src/data-dumps/code-integration-dump.ts
4154
+ var ExportJobDump = _zod.z.object({
4155
+ id: _zod.z.string(),
4156
+ createdAt: _zod.z.coerce.date(),
4157
+ finishedAt: _zod.z.coerce.date(),
4158
+ exportArtefacts: _zod.z.string()
4159
+ });
4160
+ var CodeIntegrationDump = _zod.z.object({
4161
+ exporters: Exporter.array(),
4162
+ pipelines: Pipeline.array(),
4163
+ exportJobs: ExportJobDump.array()
4164
+ });
4165
+
4166
+ // src/data-dumps/design-system-dump.ts
4167
+
4168
+
4169
+ // src/data-dumps/design-system-version-dump.ts
4170
+
4171
+
4172
+ // src/liveblocks/rooms/design-system-version-room.ts
4173
+
4174
+ var DesignSystemVersionRoom = Entity.extend({
4175
+ designSystemVersionId: _zod.z.string(),
4176
+ liveblocksId: _zod.z.string()
4177
+ });
4178
+ var DesignSystemVersionRoomInternalSettings = _zod.z.object({
4179
+ routingVersion: _zod.z.string(),
4180
+ isDraftFeatureAdopted: _zod.z.boolean()
4181
+ });
4182
+ var DesignSystemVersionRoomInitialState = _zod.z.object({
4183
+ pages: _zod.z.array(DocumentationPageV2),
4184
+ groups: _zod.z.array(ElementGroup),
4185
+ pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
4186
+ groupSnapshots: _zod.z.array(ElementGroupSnapshot),
4187
+ internalSettings: DesignSystemVersionRoomInternalSettings
4188
+ });
4189
+ var DesignSystemVersionRoomUpdate = _zod.z.object({
4190
+ pages: _zod.z.array(DocumentationPageV2),
4191
+ groups: _zod.z.array(ElementGroup),
4192
+ pageIdsToDelete: _zod.z.array(_zod.z.string()),
4193
+ groupIdsToDelete: _zod.z.array(_zod.z.string()),
4194
+ pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
4195
+ groupSnapshots: _zod.z.array(ElementGroupSnapshot),
4196
+ pageSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
4197
+ groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
4198
+ pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string())
4199
+ });
4200
+
4201
+ // src/liveblocks/rooms/documentation-page-room.ts
4202
+
4203
+ var DocumentationPageRoom = Entity.extend({
4204
+ designSystemVersionId: _zod.z.string(),
4205
+ documentationPageId: _zod.z.string(),
4206
+ liveblocksId: _zod.z.string(),
4207
+ isDirty: _zod.z.boolean()
4208
+ });
4209
+ var DocumentationPageRoomState = _zod.z.object({
4210
+ pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4211
+ itemConfiguration: DocumentationItemConfigurationV2
4212
+ });
4213
+ var DocumentationPageRoomRoomUpdate = _zod.z.object({
4214
+ page: DocumentationPageV2,
4215
+ pageParent: ElementGroup
4216
+ });
4217
+ var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4218
+ pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4219
+ blockDefinitions: _zod.z.array(PageBlockDefinition)
4220
+ });
4221
+ var RestoredDocumentationPage = _zod.z.object({
4222
+ page: DocumentationPageV2,
4223
+ pageParent: ElementGroup,
4224
+ pageContent: DocumentationPageContentData,
4225
+ contentHash: _zod.z.string(),
4226
+ roomId: _zod.z.string().optional()
4227
+ });
4228
+ var RestoredDocumentationGroup = _zod.z.object({
4229
+ group: ElementGroup,
4230
+ parent: ElementGroup
4231
+ });
4232
+
4233
+ // src/liveblocks/rooms/room-type.ts
4234
+
4235
+ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4236
+ RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4237
+ RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4238
+ RoomTypeEnum2["Workspace"] = "workspace";
4239
+ return RoomTypeEnum2;
4240
+ })(RoomTypeEnum || {});
4241
+ var RoomTypeSchema = _zod.z.nativeEnum(RoomTypeEnum);
4242
+ var RoomType = RoomTypeSchema.enum;
4243
+
4244
+ // src/liveblocks/rooms/workspace-room.ts
4245
+
4246
+ var WorkspaceRoom = Entity.extend({
4247
+ workspaceId: _zod.z.string(),
4248
+ liveblocksId: _zod.z.string()
4249
+ });
4250
+
4251
+ // src/data-dumps/published-docs-dump.ts
4252
+
4253
+ var PublishedDocsDump = _zod.z.object({
4254
+ documentation: PublishedDoc,
4255
+ pages: PublishedDocPage.array()
4256
+ });
4257
+
4258
+ // src/data-dumps/design-system-version-dump.ts
4259
+ var DocumentationThreadDump = _zod.z.object({
4260
+ thread: DocumentationCommentThread,
4261
+ comments: DocumentationComment.array()
4262
+ });
4263
+ var DocumentationPageRoomDump = _zod.z.object({
4264
+ room: DocumentationPageRoom,
4265
+ threads: DocumentationThreadDump.array()
4266
+ });
4267
+ var DesignSystemVersionMultiplayerDump = _zod.z.object({
4268
+ documentationPages: DocumentationPageRoomDump.array()
4269
+ });
4270
+ var DesignSystemVersionDump = _zod.z.object({
4271
+ version: DesignSystemVersion,
4272
+ brands: Brand.array(),
4273
+ elements: DesignElement.array(),
4274
+ elementPropertyDefinitions: ElementPropertyDefinition.array(),
4275
+ elementPropertyValues: ElementPropertyValue.array(),
4276
+ elementViews: ElementView.array(),
4277
+ elementColumns: ElementViewColumn.array(),
4278
+ documentationPageContents: DocumentationPageContent.array(),
4279
+ documentationPageRooms: DocumentationPageRoomDump.array(),
4280
+ publishedDocumentations: PublishedDocsDump.array(),
4281
+ assetReferences: AssetReference.array()
4282
+ });
4283
+
4284
+ // src/data-dumps/design-system-dump.ts
4285
+ var DesignSystemDump = _zod.z.object({
4286
+ designSystem: DesignSystem,
4287
+ dataSources: DataSource.array(),
4288
+ versions: DesignSystemVersionDump.array(),
4289
+ customDomain: CustomDomain.optional(),
4290
+ files: Asset.array()
4291
+ });
4292
+
4293
+ // src/data-dumps/user-data-dump.ts
4294
+
4295
+
4296
+ // src/users/linked-integrations.ts
4297
+
4298
+ var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
4299
+ var ExternalServiceType = _zod.z.union([
4300
+ _zod.z.literal("figma"),
4301
+ _zod.z.literal("github"),
4302
+ _zod.z.literal("azure"),
4303
+ _zod.z.literal("gitlab"),
4304
+ _zod.z.literal("bitbucket")
4305
+ ]);
4306
+ var IntegrationUserInfo = _zod.z.object({
4307
+ id: _zod.z.string(),
4308
+ handle: _zod.z.string().optional(),
4309
+ avatarUrl: _zod.z.string().optional(),
4310
+ email: _zod.z.string().optional(),
4311
+ authType: IntegrationAuthType.optional(),
4312
+ customUrl: _zod.z.string().optional()
4313
+ });
4314
+ var UserLinkedIntegrations = _zod.z.object({
4315
+ figma: IntegrationUserInfo.optional(),
4316
+ github: IntegrationUserInfo.array().optional(),
4317
+ azure: IntegrationUserInfo.array().optional(),
4318
+ gitlab: IntegrationUserInfo.array().optional(),
4319
+ bitbucket: IntegrationUserInfo.array().optional()
4320
+ });
4321
+
4322
+ // src/users/user-analytics-cleanup-schedule.ts
4323
+
4324
+ var UserAnalyticsCleanupSchedule = _zod.z.object({
4325
+ userId: _zod.z.string(),
4326
+ createdAt: _zod.z.coerce.date(),
4327
+ deleteAt: _zod.z.coerce.date()
4328
+ });
4329
+ var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4330
+ createdAt: true
4331
+ });
4332
+
4333
+ // src/users/user-create.ts
4334
+
4335
+ var CreateUserInput = _zod.z.object({
4336
+ email: _zod.z.string(),
4337
+ name: _zod.z.string(),
4338
+ username: _zod.z.string()
4339
+ });
4340
+
4341
+ // src/users/user-identity.ts
4342
+
4343
+ var UserIdentity = _zod.z.object({
4344
+ id: _zod.z.string(),
4345
+ userId: _zod.z.string()
4346
+ });
4347
+
4348
+ // src/users/user-minified.ts
4349
+
4350
+ var UserMinified = _zod.z.object({
4351
+ id: _zod.z.string(),
4352
+ name: _zod.z.string(),
4353
+ email: _zod.z.string(),
4354
+ avatar: _zod.z.string().optional()
4355
+ });
4356
+
4357
+ // src/users/user-notification-settings.ts
4358
+
4359
+ var LiveblocksNotificationSettings = _zod.z.object({
4360
+ sendCommentNotificationEmails: _zod.z.boolean()
4361
+ });
4362
+ var UserNotificationSettings = _zod.z.object({
4363
+ liveblocksNotificationSettings: LiveblocksNotificationSettings
4364
+ });
4365
+ var defaultNotificationSettings = {
4366
+ liveblocksNotificationSettings: {
4367
+ sendCommentNotificationEmails: true
4368
+ }
4369
+ };
4370
+
4371
+ // src/users/user-profile.ts
4372
+
4373
+ var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4374
+ var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4375
+ var UserOnboarding = _zod.z.object({
4376
+ companyName: _zod.z.string().optional(),
4377
+ numberOfPeopleInOrg: _zod.z.string().optional(),
4378
+ numberOfPeopleInDesignTeam: _zod.z.string().optional(),
4379
+ department: UserOnboardingDepartment.optional(),
4380
+ jobTitle: _zod.z.string().optional(),
4381
+ phase: _zod.z.string().optional(),
4382
+ jobLevel: UserOnboardingJobLevel.optional(),
4383
+ designSystemName: _zod.z.string().optional(),
4384
+ defaultDestination: _zod.z.string().optional(),
4385
+ figmaUrl: _zod.z.string().optional()
4386
+ });
4387
+ var UserProfile = _zod.z.object({
4388
+ name: _zod.z.string(),
4389
+ avatar: _zod.z.string().optional(),
4390
+ nickname: _zod.z.string().optional(),
4391
+ onboarding: UserOnboarding.optional()
4392
+ });
4393
+ var UserProfileUpdate = UserProfile.partial().omit({
4394
+ avatar: true
4395
+ });
4396
+
4397
+ // src/users/user-test.ts
4398
+
4399
+ var UserTest = _zod.z.object({
4400
+ id: _zod.z.string(),
4401
+ email: _zod.z.string()
4402
+ });
4403
+
4404
+ // src/users/user.ts
4405
+
4406
+ var User = _zod.z.object({
4407
+ id: _zod.z.string(),
4408
+ email: _zod.z.string(),
4409
+ emailVerified: _zod.z.boolean(),
4410
+ createdAt: _zod.z.coerce.date(),
4411
+ trialExpiresAt: _zod.z.coerce.date().optional(),
4412
+ profile: UserProfile,
4413
+ linkedIntegrations: UserLinkedIntegrations.optional(),
4414
+ loggedOutAt: _zod.z.coerce.date().optional(),
4415
+ isProtected: _zod.z.boolean()
4416
+ });
4417
+
4418
+ // src/data-dumps/workspace-dump.ts
4419
+
4407
4420
 
4408
4421
  // src/integrations/integration.ts
4422
+
4409
4423
  var IntegrationDesignSystem = _zod.z.object({
4410
4424
  designSystemId: _zod.z.string(),
4411
4425
  brandId: _zod.z.string(),
@@ -5527,5 +5541,8 @@ var PersonalAccessToken = _zod.z.object({
5527
5541
 
5528
5542
 
5529
5543
 
5530
- exports.Address = Address; exports.Asset = Asset; exports.AssetDeleteSchedule = AssetDeleteSchedule; exports.AssetDynamoRecord = AssetDynamoRecord; exports.AssetFontProperties = AssetFontProperties; exports.AssetImportModelInput = AssetImportModelInput; exports.AssetOrigin = AssetOrigin; exports.AssetProcessStatus = AssetProcessStatus; exports.AssetProperties = AssetProperties; exports.AssetReference = AssetReference; exports.AssetRenderConfiguration = AssetRenderConfiguration; exports.AssetScope = AssetScope; exports.AssetType = AssetType; exports.AssetValue = AssetValue; exports.AuthTokens = AuthTokens; exports.BillingDetails = BillingDetails; exports.BillingIntervalSchema = BillingIntervalSchema; exports.BillingType = BillingType; exports.BillingTypeSchema = BillingTypeSchema; exports.BlurTokenData = BlurTokenData; exports.BlurType = BlurType; exports.BlurValue = BlurValue; exports.BorderPosition = BorderPosition; exports.BorderRadiusTokenData = BorderRadiusTokenData; exports.BorderRadiusUnit = BorderRadiusUnit; exports.BorderRadiusValue = BorderRadiusValue; exports.BorderStyle = BorderStyle; exports.BorderTokenData = BorderTokenData; exports.BorderValue = BorderValue; exports.BorderWidthTokenData = BorderWidthTokenData; exports.BorderWidthUnit = BorderWidthUnit; exports.BorderWidthValue = BorderWidthValue; exports.Brand = Brand; exports.BrandedElementGroup = BrandedElementGroup; exports.CardSchema = CardSchema; exports.ChangedImportedFigmaSourceData = ChangedImportedFigmaSourceData; exports.CodeIntegrationDump = CodeIntegrationDump; exports.ColorTokenData = ColorTokenData; exports.ColorTokenInlineData = ColorTokenInlineData; exports.ColorValue = ColorValue; exports.Component = Component; exports.ComponentElementData = ComponentElementData; exports.ComponentImportModel = ComponentImportModel; exports.ComponentImportModelInput = ComponentImportModelInput; exports.ComponentOrigin = ComponentOrigin; exports.ComponentOriginPart = ComponentOriginPart; exports.ContentLoadInstruction = ContentLoadInstruction; exports.ContentLoaderPayload = ContentLoaderPayload; exports.CreateDesignToken = CreateDesignToken; exports.CreateUserInput = CreateUserInput; exports.CreateWorkspaceInput = CreateWorkspaceInput; exports.CustomDomain = CustomDomain; exports.Customer = Customer; exports.DataSource = DataSource; exports.DataSourceAutoImportMode = DataSourceAutoImportMode; exports.DataSourceFigmaFileData = DataSourceFigmaFileData; exports.DataSourceFigmaFileVersionData = DataSourceFigmaFileVersionData; exports.DataSourceFigmaImportMetadata = DataSourceFigmaImportMetadata; exports.DataSourceFigmaRemote = DataSourceFigmaRemote; exports.DataSourceFigmaScope = DataSourceFigmaScope; exports.DataSourceFigmaState = DataSourceFigmaState; exports.DataSourceImportModel = DataSourceImportModel; exports.DataSourceRemote = DataSourceRemote; exports.DataSourceRemoteType = DataSourceRemoteType; exports.DataSourceStats = DataSourceStats; exports.DataSourceTokenStudioRemote = DataSourceTokenStudioRemote; exports.DataSourceUploadImportMetadata = DataSourceUploadImportMetadata; exports.DataSourceUploadRemote = DataSourceUploadRemote; exports.DataSourceUploadRemoteSource = DataSourceUploadRemoteSource; exports.DataSourceVersion = DataSourceVersion; exports.DesignElement = DesignElement; exports.DesignElementBase = DesignElementBase; exports.DesignElementBrandedPart = DesignElementBrandedPart; exports.DesignElementCategory = DesignElementCategory; exports.DesignElementGroupableBase = DesignElementGroupableBase; exports.DesignElementGroupablePart = DesignElementGroupablePart; exports.DesignElementGroupableRequiredPart = DesignElementGroupableRequiredPart; exports.DesignElementImportedBase = DesignElementImportedBase; exports.DesignElementOrigin = DesignElementOrigin; exports.DesignElementSlugPart = DesignElementSlugPart; exports.DesignElementSnapshotBase = DesignElementSnapshotBase; exports.DesignElementSnapshotReason = DesignElementSnapshotReason; exports.DesignElementType = DesignElementType; exports.DesignSystem = DesignSystem; exports.DesignSystemCreateInput = DesignSystemCreateInput; exports.DesignSystemDump = DesignSystemDump; exports.DesignSystemElementExportProps = DesignSystemElementExportProps; exports.DesignSystemSwitcher = DesignSystemSwitcher; exports.DesignSystemUpdateInput = DesignSystemUpdateInput; exports.DesignSystemVersion = DesignSystemVersion; exports.DesignSystemVersionDump = DesignSystemVersionDump; exports.DesignSystemVersionMultiplayerDump = DesignSystemVersionMultiplayerDump; exports.DesignSystemVersionRoom = DesignSystemVersionRoom; exports.DesignSystemVersionRoomInitialState = DesignSystemVersionRoomInitialState; exports.DesignSystemVersionRoomInternalSettings = DesignSystemVersionRoomInternalSettings; exports.DesignSystemVersionRoomUpdate = DesignSystemVersionRoomUpdate; exports.DesignSystemWithWorkspace = DesignSystemWithWorkspace; exports.DesignToken = DesignToken; exports.DesignTokenImportModel = DesignTokenImportModel; exports.DesignTokenImportModelBase = DesignTokenImportModelBase; exports.DesignTokenImportModelInput = DesignTokenImportModelInput; exports.DesignTokenImportModelInputBase = DesignTokenImportModelInputBase; exports.DesignTokenOrigin = DesignTokenOrigin; exports.DesignTokenOriginPart = DesignTokenOriginPart; exports.DesignTokenType = DesignTokenType; exports.DesignTokenTypedData = DesignTokenTypedData; exports.DimensionTokenData = DimensionTokenData; exports.DimensionUnit = DimensionUnit; exports.DimensionValue = DimensionValue; exports.DocumentationComment = DocumentationComment; exports.DocumentationCommentThread = DocumentationCommentThread; exports.DocumentationGroupBehavior = DocumentationGroupBehavior; exports.DocumentationGroupV1 = DocumentationGroupV1; exports.DocumentationItemConfigurationV1 = DocumentationItemConfigurationV1; exports.DocumentationItemConfigurationV2 = DocumentationItemConfigurationV2; exports.DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignment; exports.DocumentationItemHeaderAlignmentSchema = DocumentationItemHeaderAlignmentSchema; exports.DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleType; exports.DocumentationItemHeaderImageScaleTypeSchema = DocumentationItemHeaderImageScaleTypeSchema; exports.DocumentationItemHeaderV1 = DocumentationItemHeaderV1; exports.DocumentationItemHeaderV2 = DocumentationItemHeaderV2; exports.DocumentationLinkPreview = DocumentationLinkPreview; exports.DocumentationPage = DocumentationPage; exports.DocumentationPageAnchor = DocumentationPageAnchor; exports.DocumentationPageContent = DocumentationPageContent; exports.DocumentationPageContentBackup = DocumentationPageContentBackup; exports.DocumentationPageContentData = DocumentationPageContentData; exports.DocumentationPageContentItem = DocumentationPageContentItem; exports.DocumentationPageDataV1 = DocumentationPageDataV1; exports.DocumentationPageDataV2 = DocumentationPageDataV2; exports.DocumentationPageGroup = DocumentationPageGroup; exports.DocumentationPageRoom = DocumentationPageRoom; exports.DocumentationPageRoomDump = DocumentationPageRoomDump; exports.DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomInitialStateUpdate; exports.DocumentationPageRoomRoomUpdate = DocumentationPageRoomRoomUpdate; exports.DocumentationPageRoomState = DocumentationPageRoomState; exports.DocumentationPageSnapshot = DocumentationPageSnapshot; exports.DocumentationPageV1 = DocumentationPageV1; exports.DocumentationPageV2 = DocumentationPageV2; exports.DocumentationThreadDump = DocumentationThreadDump; exports.DurationTokenData = DurationTokenData; exports.DurationUnit = DurationUnit; exports.DurationValue = DurationValue; exports.ElementGroup = ElementGroup; exports.ElementGroupDataV1 = ElementGroupDataV1; exports.ElementGroupDataV2 = ElementGroupDataV2; exports.ElementGroupSnapshot = ElementGroupSnapshot; exports.ElementPropertyDefinition = ElementPropertyDefinition; exports.ElementPropertyDefinitionOption = ElementPropertyDefinitionOption; exports.ElementPropertyLinkType = ElementPropertyLinkType; exports.ElementPropertyTargetType = ElementPropertyTargetType; exports.ElementPropertyType = ElementPropertyType; exports.ElementPropertyTypeSchema = ElementPropertyTypeSchema; exports.ElementPropertyValue = ElementPropertyValue; exports.ElementView = ElementView; exports.ElementViewBaseColumnType = ElementViewBaseColumnType; exports.ElementViewBasePropertyColumn = ElementViewBasePropertyColumn; exports.ElementViewColumn = ElementViewColumn; exports.ElementViewColumnSharedAttributes = ElementViewColumnSharedAttributes; exports.ElementViewColumnType = ElementViewColumnType; exports.ElementViewPropertyDefinitionColumn = ElementViewPropertyDefinitionColumn; exports.ElementViewThemeColumn = ElementViewThemeColumn; exports.Entity = Entity; exports.ExportDestinationsMap = ExportDestinationsMap; exports.ExportJob = ExportJob; exports.ExportJobContext = ExportJobContext; exports.ExportJobDestinationType = ExportJobDestinationType; exports.ExportJobDocsDestinationResult = ExportJobDocsDestinationResult; exports.ExportJobDocumentationChanges = ExportJobDocumentationChanges; exports.ExportJobDocumentationContext = ExportJobDocumentationContext; exports.ExportJobDump = ExportJobDump; exports.ExportJobFindByFilter = ExportJobFindByFilter; exports.ExportJobLogEntry = ExportJobLogEntry; exports.ExportJobLogEntryType = ExportJobLogEntryType; exports.ExportJobPullRequestDestinationResult = ExportJobPullRequestDestinationResult; exports.ExportJobResult = ExportJobResult; exports.ExportJobS3DestinationResult = ExportJobS3DestinationResult; exports.ExportJobStatus = ExportJobStatus; exports.Exporter = Exporter; exports.ExporterDestinationAzure = ExporterDestinationAzure; exports.ExporterDestinationBitbucket = ExporterDestinationBitbucket; exports.ExporterDestinationDocs = ExporterDestinationDocs; exports.ExporterDestinationGithub = ExporterDestinationGithub; exports.ExporterDestinationGitlab = ExporterDestinationGitlab; exports.ExporterDestinationS3 = ExporterDestinationS3; exports.ExporterDetails = ExporterDetails; exports.ExporterFunctionPayload = ExporterFunctionPayload; exports.ExporterPropertyImageValue = ExporterPropertyImageValue; exports.ExporterPropertyValue = ExporterPropertyValue; exports.ExporterPropertyValuesCollection = ExporterPropertyValuesCollection; exports.ExporterPulsarDetails = ExporterPulsarDetails; exports.ExporterSource = ExporterSource; exports.ExporterTag = ExporterTag; exports.ExporterType = ExporterType; exports.ExporterWorkspaceMembership = ExporterWorkspaceMembership; exports.ExporterWorkspaceMembershipRole = ExporterWorkspaceMembershipRole; exports.ExtendedIntegrationType = ExtendedIntegrationType; exports.ExternalOAuthRequest = ExternalOAuthRequest; exports.ExternalServiceType = ExternalServiceType; exports.FeatureFlag = FeatureFlag; exports.FeatureFlagMap = FeatureFlagMap; exports.FeaturesSummary = FeaturesSummary; exports.FigmaFileAccessData = FigmaFileAccessData; exports.FigmaFileDownloadScope = FigmaFileDownloadScope; exports.FigmaFileStructure = FigmaFileStructure; exports.FigmaFileStructureData = FigmaFileStructureData; exports.FigmaFileStructureElementData = FigmaFileStructureElementData; exports.FigmaFileStructureImportModel = FigmaFileStructureImportModel; exports.FigmaFileStructureImportModelInput = FigmaFileStructureImportModelInput; exports.FigmaFileStructureNode = FigmaFileStructureNode; exports.FigmaFileStructureNodeBase = FigmaFileStructureNodeBase; exports.FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModel; exports.FigmaFileStructureNodeType = FigmaFileStructureNodeType; exports.FigmaFileStructureOrigin = FigmaFileStructureOrigin; exports.FigmaFileStructureStatistics = FigmaFileStructureStatistics; exports.FigmaImportBaseContext = FigmaImportBaseContext; exports.FigmaImportContextWithDownloadScopes = FigmaImportContextWithDownloadScopes; exports.FigmaImportContextWithSourcesState = FigmaImportContextWithSourcesState; exports.FigmaNodeReference = FigmaNodeReference; exports.FigmaNodeReferenceData = FigmaNodeReferenceData; exports.FigmaNodeReferenceElementData = FigmaNodeReferenceElementData; exports.FigmaNodeReferenceOrigin = FigmaNodeReferenceOrigin; exports.FigmaPngRenderImportModel = FigmaPngRenderImportModel; exports.FigmaRenderFormat = FigmaRenderFormat; exports.FigmaRenderImportModel = FigmaRenderImportModel; exports.FigmaSvgRenderImportModel = FigmaSvgRenderImportModel; exports.FileStructureStats = FileStructureStats; exports.FlaggedFeature = FlaggedFeature; exports.FontFamilyTokenData = FontFamilyTokenData; exports.FontFamilyValue = FontFamilyValue; exports.FontSizeTokenData = FontSizeTokenData; exports.FontSizeUnit = FontSizeUnit; exports.FontSizeValue = FontSizeValue; exports.FontWeightTokenData = FontWeightTokenData; exports.FontWeightValue = FontWeightValue; exports.GitBranch = GitBranch; exports.GitIntegrationType = GitIntegrationType; exports.GitObjectsQuery = GitObjectsQuery; exports.GitOrganization = GitOrganization; exports.GitProject = GitProject; exports.GitProvider = GitProvider; exports.GitProviderNames = GitProviderNames; exports.GitRepository = GitRepository; exports.GradientLayerData = GradientLayerData; exports.GradientLayerValue = GradientLayerValue; exports.GradientStop = GradientStop; exports.GradientTokenData = GradientTokenData; exports.GradientTokenValue = GradientTokenValue; exports.GradientType = GradientType; exports.HANDLE_MAX_LENGTH = HANDLE_MAX_LENGTH; exports.HANDLE_MIN_LENGTH = HANDLE_MIN_LENGTH; exports.HierarchicalElements = HierarchicalElements; exports.IconSet = IconSet; exports.ImageImportModel = ImageImportModel; exports.ImageImportModelType = ImageImportModelType; exports.ImportFunctionInput = ImportFunctionInput; exports.ImportJob = ImportJob; exports.ImportJobOperation = ImportJobOperation; exports.ImportJobState = ImportJobState; exports.ImportModelBase = ImportModelBase; exports.ImportModelCollection = ImportModelCollection; exports.ImportModelInputBase = ImportModelInputBase; exports.ImportModelInputCollection = ImportModelInputCollection; exports.ImportWarning = ImportWarning; exports.ImportWarningType = ImportWarningType; exports.ImportedFigmaSourceData = ImportedFigmaSourceData; exports.Integration = Integration; exports.IntegrationAuthType = IntegrationAuthType; exports.IntegrationCredentials = IntegrationCredentials; exports.IntegrationCredentialsProfile = IntegrationCredentialsProfile; exports.IntegrationCredentialsState = IntegrationCredentialsState; exports.IntegrationCredentialsType = IntegrationCredentialsType; exports.IntegrationDesignSystem = IntegrationDesignSystem; exports.IntegrationToken = IntegrationToken; exports.IntegrationTokenSchemaOld = IntegrationTokenSchemaOld; exports.IntegrationType = IntegrationType; exports.IntegrationUserInfo = IntegrationUserInfo; exports.InternalStatus = InternalStatus; exports.InternalStatusSchema = InternalStatusSchema; exports.InvoiceCouponSchema = InvoiceCouponSchema; exports.InvoiceLineSchema = InvoiceLineSchema; exports.InvoiceSchema = InvoiceSchema; exports.LetterSpacingTokenData = LetterSpacingTokenData; exports.LetterSpacingUnit = LetterSpacingUnit; exports.LetterSpacingValue = LetterSpacingValue; exports.LineHeightTokenData = LineHeightTokenData; exports.LineHeightUnit = LineHeightUnit; exports.LineHeightValue = LineHeightValue; exports.LiveblocksNotificationSettings = LiveblocksNotificationSettings; exports.MAX_MEMBERS_COUNT = MAX_MEMBERS_COUNT; exports.NpmPackage = NpmPackage; exports.NpmProxyToken = NpmProxyToken; exports.NpmProxyTokenPayload = NpmProxyTokenPayload; exports.NpmRegistrCustomAuthConfig = NpmRegistrCustomAuthConfig; exports.NpmRegistryAuthConfig = NpmRegistryAuthConfig; exports.NpmRegistryAuthType = NpmRegistryAuthType; exports.NpmRegistryBasicAuthConfig = NpmRegistryBasicAuthConfig; exports.NpmRegistryBearerAuthConfig = NpmRegistryBearerAuthConfig; exports.NpmRegistryConfig = NpmRegistryConfig; exports.NpmRegistryNoAuthConfig = NpmRegistryNoAuthConfig; exports.NpmRegistryType = NpmRegistryType; exports.OAuthProvider = OAuthProvider; exports.OAuthProviderNames = OAuthProviderNames; exports.OAuthProviderSchema = OAuthProviderSchema; exports.ObjectMeta = ObjectMeta; exports.OpacityTokenData = OpacityTokenData; exports.OpacityValue = OpacityValue; exports.PageBlockAlignment = PageBlockAlignment; exports.PageBlockAppearanceV2 = PageBlockAppearanceV2; exports.PageBlockAsset = PageBlockAsset; exports.PageBlockAssetComponent = PageBlockAssetComponent; exports.PageBlockAssetEntityMeta = PageBlockAssetEntityMeta; exports.PageBlockAssetType = PageBlockAssetType; exports.PageBlockBaseV1 = PageBlockBaseV1; exports.PageBlockBehaviorDataType = PageBlockBehaviorDataType; exports.PageBlockBehaviorSelectionType = PageBlockBehaviorSelectionType; exports.PageBlockCalloutType = PageBlockCalloutType; exports.PageBlockCategory = PageBlockCategory; exports.PageBlockCodeLanguage = PageBlockCodeLanguage; exports.PageBlockColorV2 = PageBlockColorV2; exports.PageBlockCustomBlockPropertyImageValue = PageBlockCustomBlockPropertyImageValue; exports.PageBlockCustomBlockPropertyValue = PageBlockCustomBlockPropertyValue; exports.PageBlockDataV2 = PageBlockDataV2; exports.PageBlockDefinition = PageBlockDefinition; exports.PageBlockDefinitionAppearance = PageBlockDefinitionAppearance; exports.PageBlockDefinitionBehavior = PageBlockDefinitionBehavior; exports.PageBlockDefinitionBooleanOptions = PageBlockDefinitionBooleanOptions; exports.PageBlockDefinitionBooleanPropertyStyle = PageBlockDefinitionBooleanPropertyStyle; exports.PageBlockDefinitionComponentOptions = PageBlockDefinitionComponentOptions; exports.PageBlockDefinitionImageAspectRatio = PageBlockDefinitionImageAspectRatio; exports.PageBlockDefinitionImageOptions = PageBlockDefinitionImageOptions; exports.PageBlockDefinitionImageWidth = PageBlockDefinitionImageWidth; exports.PageBlockDefinitionItem = PageBlockDefinitionItem; exports.PageBlockDefinitionLayout = PageBlockDefinitionLayout; exports.PageBlockDefinitionLayoutAlign = PageBlockDefinitionLayoutAlign; exports.PageBlockDefinitionLayoutBase = PageBlockDefinitionLayoutBase; exports.PageBlockDefinitionLayoutGap = PageBlockDefinitionLayoutGap; exports.PageBlockDefinitionLayoutResizing = PageBlockDefinitionLayoutResizing; exports.PageBlockDefinitionLayoutType = PageBlockDefinitionLayoutType; exports.PageBlockDefinitionMultiRichTextPropertyStyle = PageBlockDefinitionMultiRichTextPropertyStyle; exports.PageBlockDefinitionMultiSelectPropertyStyle = PageBlockDefinitionMultiSelectPropertyStyle; exports.PageBlockDefinitionMutiRichTextOptions = PageBlockDefinitionMutiRichTextOptions; exports.PageBlockDefinitionNumberOptions = PageBlockDefinitionNumberOptions; exports.PageBlockDefinitionOnboarding = PageBlockDefinitionOnboarding; exports.PageBlockDefinitionProperty = PageBlockDefinitionProperty; exports.PageBlockDefinitionPropertyType = PageBlockDefinitionPropertyType; exports.PageBlockDefinitionRichTextOptions = PageBlockDefinitionRichTextOptions; exports.PageBlockDefinitionRichTextPropertyStyle = PageBlockDefinitionRichTextPropertyStyle; exports.PageBlockDefinitionSelectChoice = PageBlockDefinitionSelectChoice; exports.PageBlockDefinitionSelectOptions = PageBlockDefinitionSelectOptions; exports.PageBlockDefinitionSingleSelectPropertyColor = PageBlockDefinitionSingleSelectPropertyColor; exports.PageBlockDefinitionSingleSelectPropertyStyle = PageBlockDefinitionSingleSelectPropertyStyle; exports.PageBlockDefinitionTextOptions = PageBlockDefinitionTextOptions; exports.PageBlockDefinitionTextPropertyColor = PageBlockDefinitionTextPropertyColor; exports.PageBlockDefinitionTextPropertyStyle = PageBlockDefinitionTextPropertyStyle; exports.PageBlockDefinitionUntypedPropertyOptions = PageBlockDefinitionUntypedPropertyOptions; exports.PageBlockDefinitionVariant = PageBlockDefinitionVariant; exports.PageBlockDefinitionsMap = PageBlockDefinitionsMap; exports.PageBlockEditorModelV2 = PageBlockEditorModelV2; exports.PageBlockFigmaComponentEntityMeta = PageBlockFigmaComponentEntityMeta; exports.PageBlockFigmaFrameProperties = PageBlockFigmaFrameProperties; exports.PageBlockFigmaNodeEntityMeta = PageBlockFigmaNodeEntityMeta; exports.PageBlockFrame = PageBlockFrame; exports.PageBlockFrameOrigin = PageBlockFrameOrigin; exports.PageBlockGuideline = PageBlockGuideline; exports.PageBlockImageAlignment = PageBlockImageAlignment; exports.PageBlockImageReference = PageBlockImageReference; exports.PageBlockImageResourceReference = PageBlockImageResourceReference; exports.PageBlockImageType = PageBlockImageType; exports.PageBlockItemAssetPropertyValue = PageBlockItemAssetPropertyValue; exports.PageBlockItemAssetValue = PageBlockItemAssetValue; exports.PageBlockItemBooleanValue = PageBlockItemBooleanValue; exports.PageBlockItemCodeValue = PageBlockItemCodeValue; exports.PageBlockItemColorValue = PageBlockItemColorValue; exports.PageBlockItemComponentPropertyValue = PageBlockItemComponentPropertyValue; exports.PageBlockItemComponentValue = PageBlockItemComponentValue; exports.PageBlockItemDividerValue = PageBlockItemDividerValue; exports.PageBlockItemEmbedValue = PageBlockItemEmbedValue; exports.PageBlockItemFigmaComponentValue = PageBlockItemFigmaComponentValue; exports.PageBlockItemFigmaNodeValue = PageBlockItemFigmaNodeValue; exports.PageBlockItemImageValue = PageBlockItemImageValue; exports.PageBlockItemMarkdownValue = PageBlockItemMarkdownValue; exports.PageBlockItemMultiRichTextValue = PageBlockItemMultiRichTextValue; exports.PageBlockItemMultiSelectValue = PageBlockItemMultiSelectValue; exports.PageBlockItemNumberValue = PageBlockItemNumberValue; exports.PageBlockItemRichTextValue = PageBlockItemRichTextValue; exports.PageBlockItemSandboxValue = PageBlockItemSandboxValue; exports.PageBlockItemSingleSelectValue = PageBlockItemSingleSelectValue; exports.PageBlockItemStorybookValue = PageBlockItemStorybookValue; exports.PageBlockItemTableCell = PageBlockItemTableCell; exports.PageBlockItemTableImageNode = PageBlockItemTableImageNode; exports.PageBlockItemTableMultiRichTextNode = PageBlockItemTableMultiRichTextNode; exports.PageBlockItemTableNode = PageBlockItemTableNode; exports.PageBlockItemTableRichTextNode = PageBlockItemTableRichTextNode; exports.PageBlockItemTableRow = PageBlockItemTableRow; exports.PageBlockItemTableValue = PageBlockItemTableValue; exports.PageBlockItemTextValue = PageBlockItemTextValue; exports.PageBlockItemTokenPropertyValue = PageBlockItemTokenPropertyValue; exports.PageBlockItemTokenTypeValue = PageBlockItemTokenTypeValue; exports.PageBlockItemTokenValue = PageBlockItemTokenValue; exports.PageBlockItemUntypedValue = PageBlockItemUntypedValue; exports.PageBlockItemUrlValue = PageBlockItemUrlValue; exports.PageBlockItemV2 = PageBlockItemV2; exports.PageBlockLinkPreview = PageBlockLinkPreview; exports.PageBlockLinkType = PageBlockLinkType; exports.PageBlockLinkV2 = PageBlockLinkV2; exports.PageBlockPreviewContainerSize = PageBlockPreviewContainerSize; exports.PageBlockRenderCodeProperties = PageBlockRenderCodeProperties; exports.PageBlockResourceFrameNodeReference = PageBlockResourceFrameNodeReference; exports.PageBlockShortcut = PageBlockShortcut; exports.PageBlockTableCellAlignment = PageBlockTableCellAlignment; exports.PageBlockTableColumn = PageBlockTableColumn; exports.PageBlockTableProperties = PageBlockTableProperties; exports.PageBlockText = PageBlockText; exports.PageBlockTextSpan = PageBlockTextSpan; exports.PageBlockTextSpanAttribute = PageBlockTextSpanAttribute; exports.PageBlockTextSpanAttributeType = PageBlockTextSpanAttributeType; exports.PageBlockTheme = PageBlockTheme; exports.PageBlockThemeDisplayMode = PageBlockThemeDisplayMode; exports.PageBlockThemeType = PageBlockThemeType; exports.PageBlockTilesAlignment = PageBlockTilesAlignment; exports.PageBlockTilesLayout = PageBlockTilesLayout; exports.PageBlockTypeV1 = PageBlockTypeV1; exports.PageBlockUrlPreview = PageBlockUrlPreview; exports.PageBlockV1 = PageBlockV1; exports.PageBlockV2 = PageBlockV2; exports.PageSectionAppearanceV2 = PageSectionAppearanceV2; exports.PageSectionColumnV2 = PageSectionColumnV2; exports.PageSectionEditorModelV2 = PageSectionEditorModelV2; exports.PageSectionItemV2 = PageSectionItemV2; exports.PageSectionPaddingV2 = PageSectionPaddingV2; exports.PageSectionTypeV2 = PageSectionTypeV2; exports.ParagraphIndentTokenData = ParagraphIndentTokenData; exports.ParagraphIndentUnit = ParagraphIndentUnit; exports.ParagraphIndentValue = ParagraphIndentValue; exports.ParagraphSpacingTokenData = ParagraphSpacingTokenData; exports.ParagraphSpacingUnit = ParagraphSpacingUnit; exports.ParagraphSpacingValue = ParagraphSpacingValue; exports.PeriodSchema = PeriodSchema; exports.PersonalAccessToken = PersonalAccessToken; exports.Pipeline = Pipeline; exports.PipelineDestinationExtraType = PipelineDestinationExtraType; exports.PipelineDestinationGitType = PipelineDestinationGitType; exports.PipelineDestinationType = PipelineDestinationType; exports.PipelineEventType = PipelineEventType; exports.PluginOAuthRequestSchema = PluginOAuthRequestSchema; exports.Point2D = Point2D; exports.PostStripeCheckoutBodyInputSchema = PostStripeCheckoutBodyInputSchema; exports.PostStripeCheckoutOutputSchema = PostStripeCheckoutOutputSchema; exports.PostStripePortalSessionBodyInputSchema = PostStripePortalSessionBodyInputSchema; exports.PostStripePortalSessionOutputSchema = PostStripePortalSessionOutputSchema; exports.PostStripePortalUpdateSessionBodyInputSchema = PostStripePortalUpdateSessionBodyInputSchema; exports.PriceSchema = PriceSchema; exports.ProductCode = ProductCode; exports.ProductCodeSchema = ProductCodeSchema; exports.ProductCopyTokenData = ProductCopyTokenData; exports.ProductCopyValue = ProductCopyValue; exports.PublishedDoc = PublishedDoc; exports.PublishedDocEnvironment = PublishedDocEnvironment; exports.PublishedDocPage = PublishedDocPage; exports.PublishedDocRoutingVersion = PublishedDocRoutingVersion; exports.PublishedDocsChecksums = PublishedDocsChecksums; exports.PublishedDocsDump = PublishedDocsDump; exports.PulsarBaseProperty = PulsarBaseProperty; exports.PulsarContributionConfigurationProperty = PulsarContributionConfigurationProperty; exports.PulsarContributionVariant = PulsarContributionVariant; exports.PulsarCustomBlock = PulsarCustomBlock; exports.PulsarPropertyType = PulsarPropertyType; exports.RESERVED_SLUGS = RESERVED_SLUGS; exports.RESERVED_SLUG_PREFIX = RESERVED_SLUG_PREFIX; exports.RenderedAssetFile = RenderedAssetFile; exports.ResolvedAsset = ResolvedAsset; exports.RestoredDocumentationGroup = RestoredDocumentationGroup; exports.RestoredDocumentationPage = RestoredDocumentationPage; exports.RoomType = RoomType; exports.RoomTypeEnum = RoomTypeEnum; exports.RoomTypeSchema = RoomTypeSchema; exports.SHORT_PERSISTENT_ID_LENGTH = SHORT_PERSISTENT_ID_LENGTH; exports.SafeIdSchema = SafeIdSchema; exports.Session = Session; exports.SessionData = SessionData; exports.ShadowLayerValue = ShadowLayerValue; exports.ShadowTokenData = ShadowTokenData; exports.ShadowType = ShadowType; exports.ShallowDesignElement = ShallowDesignElement; exports.Size = Size; exports.SizeOrUndefined = SizeOrUndefined; exports.SizeTokenData = SizeTokenData; exports.SizeUnit = SizeUnit; exports.SizeValue = SizeValue; exports.SourceImportComponentSummary = SourceImportComponentSummary; exports.SourceImportFrameSummary = SourceImportFrameSummary; exports.SourceImportSummary = SourceImportSummary; exports.SourceImportSummaryByTokenType = SourceImportSummaryByTokenType; exports.SourceImportTokenSummary = SourceImportTokenSummary; exports.SpaceTokenData = SpaceTokenData; exports.SpaceUnit = SpaceUnit; exports.SpaceValue = SpaceValue; exports.SsoProvider = SsoProvider; exports.StringTokenData = StringTokenData; exports.StringValue = StringValue; exports.StripeSubscriptionStatus = StripeSubscriptionStatus; exports.StripeSubscriptionStatusSchema = StripeSubscriptionStatusSchema; exports.Subscription = Subscription; exports.SupernovaException = SupernovaException; exports.TextCase = TextCase; exports.TextCaseTokenData = TextCaseTokenData; exports.TextCaseValue = TextCaseValue; exports.TextDecoration = TextDecoration; exports.TextDecorationTokenData = TextDecorationTokenData; exports.TextDecorationValue = TextDecorationValue; exports.Theme = Theme; exports.ThemeElementData = ThemeElementData; exports.ThemeImportModel = ThemeImportModel; exports.ThemeImportModelInput = ThemeImportModelInput; exports.ThemeOrigin = ThemeOrigin; exports.ThemeOriginObject = ThemeOriginObject; exports.ThemeOriginPart = ThemeOriginPart; exports.ThemeOriginSource = ThemeOriginSource; exports.ThemeOverride = ThemeOverride; exports.ThemeOverrideImportModel = ThemeOverrideImportModel; exports.ThemeOverrideImportModelBase = ThemeOverrideImportModelBase; exports.ThemeOverrideImportModelInput = ThemeOverrideImportModelInput; exports.ThemeOverrideOrigin = ThemeOverrideOrigin; exports.ThemeOverrideOriginPart = ThemeOverrideOriginPart; exports.ThemeUpdateImportModel = ThemeUpdateImportModel; exports.ThemeUpdateImportModelInput = ThemeUpdateImportModelInput; exports.TokenDataAliasSchema = TokenDataAliasSchema; exports.TypographyTokenData = TypographyTokenData; exports.TypographyValue = TypographyValue; exports.UpdateMembershipRolesInput = UpdateMembershipRolesInput; exports.UrlImageImportModel = UrlImageImportModel; exports.User = User; exports.UserAnalyticsCleanupSchedule = UserAnalyticsCleanupSchedule; exports.UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupScheduleDbInput; exports.UserDump = UserDump; exports.UserIdentity = UserIdentity; exports.UserInvite = UserInvite; exports.UserInvites = UserInvites; exports.UserLinkedIntegrations = UserLinkedIntegrations; exports.UserMinified = UserMinified; exports.UserNotificationSettings = UserNotificationSettings; exports.UserOnboarding = UserOnboarding; exports.UserOnboardingDepartment = UserOnboardingDepartment; exports.UserOnboardingJobLevel = UserOnboardingJobLevel; exports.UserProfile = UserProfile; exports.UserProfileUpdate = UserProfileUpdate; exports.UserSession = UserSession; exports.UserTest = UserTest; exports.VersionCreationJob = VersionCreationJob; exports.VersionCreationJobStatus = VersionCreationJobStatus; exports.Visibility = Visibility; exports.VisibilityTokenData = VisibilityTokenData; exports.VisibilityValue = VisibilityValue; exports.Workspace = Workspace; exports.WorkspaceConfigurationUpdate = WorkspaceConfigurationUpdate; exports.WorkspaceContext = WorkspaceContext; exports.WorkspaceDump = WorkspaceDump; exports.WorkspaceInvitation = WorkspaceInvitation; exports.WorkspaceIpSettings = WorkspaceIpSettings; exports.WorkspaceIpWhitelistEntry = WorkspaceIpWhitelistEntry; exports.WorkspaceMembership = WorkspaceMembership; exports.WorkspaceOAuthRequestSchema = WorkspaceOAuthRequestSchema; exports.WorkspaceProfile = WorkspaceProfile; exports.WorkspaceProfileUpdate = WorkspaceProfileUpdate; exports.WorkspaceRole = WorkspaceRole; exports.WorkspaceRoleSchema = WorkspaceRoleSchema; exports.WorkspaceRoom = WorkspaceRoom; exports.WorkspaceWithDesignSystems = WorkspaceWithDesignSystems; exports.ZIndexTokenData = ZIndexTokenData; exports.ZIndexUnit = ZIndexUnit; exports.ZIndexValue = ZIndexValue; exports.addImportModelCollections = addImportModelCollections; exports.buildConstantEnum = buildConstantEnum; exports.defaultDocumentationItemConfigurationV1 = defaultDocumentationItemConfigurationV1; exports.defaultDocumentationItemConfigurationV2 = defaultDocumentationItemConfigurationV2; exports.defaultDocumentationItemHeaderV1 = defaultDocumentationItemHeaderV1; exports.defaultDocumentationItemHeaderV2 = defaultDocumentationItemHeaderV2; exports.defaultNotificationSettings = defaultNotificationSettings; exports.designTokenImportModelTypeFilter = designTokenImportModelTypeFilter; exports.designTokenTypeFilter = designTokenTypeFilter; exports.extractTokenTypedData = extractTokenTypedData; exports.figmaFileStructureImportModelToMap = figmaFileStructureImportModelToMap; exports.figmaFileStructureToMap = figmaFileStructureToMap; exports.filterNonNullish = filterNonNullish; exports.forceUnwrapNullish = forceUnwrapNullish; exports.getCodenameFromText = getCodenameFromText; exports.getFigmaRenderFormatFileExtension = getFigmaRenderFormatFileExtension; exports.groupBy = groupBy; exports.isDesignTokenImportModelOfType = isDesignTokenImportModelOfType; exports.isDesignTokenOfType = isDesignTokenOfType; exports.isImportedAsset = isImportedAsset; exports.isImportedComponent = isImportedComponent; exports.isImportedDesignToken = isImportedDesignToken; exports.isSlugReserved = isSlugReserved; exports.isTokenType = isTokenType; exports.mapByUnique = mapByUnique; exports.mapPageBlockItemValuesV2 = mapPageBlockItemValuesV2; exports.nonNullFilter = nonNullFilter; exports.nonNullishFilter = nonNullishFilter; exports.nullishToOptional = nullishToOptional; exports.parseUrl = parseUrl; exports.promiseWithTimeout = promiseWithTimeout; exports.publishedDocEnvironments = publishedDocEnvironments; exports.sleep = sleep; exports.slugRegex = slugRegex; exports.slugify = slugify; exports.tokenAliasOrValue = tokenAliasOrValue; exports.tokenElementTypes = tokenElementTypes; exports.traversePageBlockItemValuesV2 = traversePageBlockItemValuesV2; exports.traversePageBlockItemsV2 = traversePageBlockItemsV2; exports.traversePageBlocksV1 = traversePageBlocksV1; exports.traversePageItemsV2 = traversePageItemsV2; exports.traverseStructure = traverseStructure; exports.trimLeadingSlash = trimLeadingSlash; exports.trimTrailingSlash = trimTrailingSlash; exports.tryParseShortPersistentId = tryParseShortPersistentId; exports.tryParseUrl = tryParseUrl; exports.uniqueBy = uniqueBy; exports.zodCreateInputOmit = zodCreateInputOmit; exports.zodUpdateInputOmit = zodUpdateInputOmit;
5544
+
5545
+
5546
+
5547
+ exports.Address = Address; exports.Asset = Asset; exports.AssetDeleteSchedule = AssetDeleteSchedule; exports.AssetDynamoRecord = AssetDynamoRecord; exports.AssetFontProperties = AssetFontProperties; exports.AssetImportModelInput = AssetImportModelInput; exports.AssetOrigin = AssetOrigin; exports.AssetProcessStatus = AssetProcessStatus; exports.AssetProperties = AssetProperties; exports.AssetReference = AssetReference; exports.AssetRenderConfiguration = AssetRenderConfiguration; exports.AssetScope = AssetScope; exports.AssetType = AssetType; exports.AssetValue = AssetValue; exports.AuthTokens = AuthTokens; exports.BillingDetails = BillingDetails; exports.BillingIntervalSchema = BillingIntervalSchema; exports.BillingType = BillingType; exports.BillingTypeSchema = BillingTypeSchema; exports.BlurTokenData = BlurTokenData; exports.BlurType = BlurType; exports.BlurValue = BlurValue; exports.BorderPosition = BorderPosition; exports.BorderRadiusTokenData = BorderRadiusTokenData; exports.BorderRadiusUnit = BorderRadiusUnit; exports.BorderRadiusValue = BorderRadiusValue; exports.BorderStyle = BorderStyle; exports.BorderTokenData = BorderTokenData; exports.BorderValue = BorderValue; exports.BorderWidthTokenData = BorderWidthTokenData; exports.BorderWidthUnit = BorderWidthUnit; exports.BorderWidthValue = BorderWidthValue; exports.Brand = Brand; exports.BrandedElementGroup = BrandedElementGroup; exports.CardSchema = CardSchema; exports.ChangedImportedFigmaSourceData = ChangedImportedFigmaSourceData; exports.CodeIntegrationDump = CodeIntegrationDump; exports.ColorTokenData = ColorTokenData; exports.ColorTokenInlineData = ColorTokenInlineData; exports.ColorValue = ColorValue; exports.Component = Component; exports.ComponentElementData = ComponentElementData; exports.ComponentImportModel = ComponentImportModel; exports.ComponentImportModelInput = ComponentImportModelInput; exports.ComponentOrigin = ComponentOrigin; exports.ComponentOriginPart = ComponentOriginPart; exports.ContentLoadInstruction = ContentLoadInstruction; exports.ContentLoaderPayload = ContentLoaderPayload; exports.CreateDesignToken = CreateDesignToken; exports.CreateUserInput = CreateUserInput; exports.CreateWorkspaceInput = CreateWorkspaceInput; exports.CustomDomain = CustomDomain; exports.Customer = Customer; exports.DataSource = DataSource; exports.DataSourceAutoImportMode = DataSourceAutoImportMode; exports.DataSourceFigmaFileData = DataSourceFigmaFileData; exports.DataSourceFigmaFileVersionData = DataSourceFigmaFileVersionData; exports.DataSourceFigmaImportMetadata = DataSourceFigmaImportMetadata; exports.DataSourceFigmaRemote = DataSourceFigmaRemote; exports.DataSourceFigmaScope = DataSourceFigmaScope; exports.DataSourceFigmaState = DataSourceFigmaState; exports.DataSourceImportModel = DataSourceImportModel; exports.DataSourceRemote = DataSourceRemote; exports.DataSourceRemoteType = DataSourceRemoteType; exports.DataSourceStats = DataSourceStats; exports.DataSourceTokenStudioRemote = DataSourceTokenStudioRemote; exports.DataSourceUploadImportMetadata = DataSourceUploadImportMetadata; exports.DataSourceUploadRemote = DataSourceUploadRemote; exports.DataSourceUploadRemoteSource = DataSourceUploadRemoteSource; exports.DataSourceVersion = DataSourceVersion; exports.DesignElement = DesignElement; exports.DesignElementBase = DesignElementBase; exports.DesignElementBrandedPart = DesignElementBrandedPart; exports.DesignElementCategory = DesignElementCategory; exports.DesignElementGroupableBase = DesignElementGroupableBase; exports.DesignElementGroupablePart = DesignElementGroupablePart; exports.DesignElementGroupableRequiredPart = DesignElementGroupableRequiredPart; exports.DesignElementImportedBase = DesignElementImportedBase; exports.DesignElementOrigin = DesignElementOrigin; exports.DesignElementSlugPart = DesignElementSlugPart; exports.DesignElementSnapshotBase = DesignElementSnapshotBase; exports.DesignElementSnapshotReason = DesignElementSnapshotReason; exports.DesignElementType = DesignElementType; exports.DesignSystem = DesignSystem; exports.DesignSystemCreateInput = DesignSystemCreateInput; exports.DesignSystemDump = DesignSystemDump; exports.DesignSystemElementExportProps = DesignSystemElementExportProps; exports.DesignSystemSwitcher = DesignSystemSwitcher; exports.DesignSystemUpdateInput = DesignSystemUpdateInput; exports.DesignSystemVersion = DesignSystemVersion; exports.DesignSystemVersionDump = DesignSystemVersionDump; exports.DesignSystemVersionMultiplayerDump = DesignSystemVersionMultiplayerDump; exports.DesignSystemVersionRoom = DesignSystemVersionRoom; exports.DesignSystemVersionRoomInitialState = DesignSystemVersionRoomInitialState; exports.DesignSystemVersionRoomInternalSettings = DesignSystemVersionRoomInternalSettings; exports.DesignSystemVersionRoomUpdate = DesignSystemVersionRoomUpdate; exports.DesignSystemWithWorkspace = DesignSystemWithWorkspace; exports.DesignToken = DesignToken; exports.DesignTokenImportModel = DesignTokenImportModel; exports.DesignTokenImportModelBase = DesignTokenImportModelBase; exports.DesignTokenImportModelInput = DesignTokenImportModelInput; exports.DesignTokenImportModelInputBase = DesignTokenImportModelInputBase; exports.DesignTokenOrigin = DesignTokenOrigin; exports.DesignTokenOriginPart = DesignTokenOriginPart; exports.DesignTokenType = DesignTokenType; exports.DesignTokenTypedData = DesignTokenTypedData; exports.DimensionTokenData = DimensionTokenData; exports.DimensionUnit = DimensionUnit; exports.DimensionValue = DimensionValue; exports.DocumentationComment = DocumentationComment; exports.DocumentationCommentThread = DocumentationCommentThread; exports.DocumentationGroupBehavior = DocumentationGroupBehavior; exports.DocumentationGroupV1 = DocumentationGroupV1; exports.DocumentationItemConfigurationV1 = DocumentationItemConfigurationV1; exports.DocumentationItemConfigurationV2 = DocumentationItemConfigurationV2; exports.DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignment; exports.DocumentationItemHeaderAlignmentSchema = DocumentationItemHeaderAlignmentSchema; exports.DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleType; exports.DocumentationItemHeaderImageScaleTypeSchema = DocumentationItemHeaderImageScaleTypeSchema; exports.DocumentationItemHeaderV1 = DocumentationItemHeaderV1; exports.DocumentationItemHeaderV2 = DocumentationItemHeaderV2; exports.DocumentationLinkPreview = DocumentationLinkPreview; exports.DocumentationPage = DocumentationPage; exports.DocumentationPageAnchor = DocumentationPageAnchor; exports.DocumentationPageContent = DocumentationPageContent; exports.DocumentationPageContentBackup = DocumentationPageContentBackup; exports.DocumentationPageContentData = DocumentationPageContentData; exports.DocumentationPageContentItem = DocumentationPageContentItem; exports.DocumentationPageDataV1 = DocumentationPageDataV1; exports.DocumentationPageDataV2 = DocumentationPageDataV2; exports.DocumentationPageGroup = DocumentationPageGroup; exports.DocumentationPageRoom = DocumentationPageRoom; exports.DocumentationPageRoomDump = DocumentationPageRoomDump; exports.DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomInitialStateUpdate; exports.DocumentationPageRoomRoomUpdate = DocumentationPageRoomRoomUpdate; exports.DocumentationPageRoomState = DocumentationPageRoomState; exports.DocumentationPageSnapshot = DocumentationPageSnapshot; exports.DocumentationPageV1 = DocumentationPageV1; exports.DocumentationPageV2 = DocumentationPageV2; exports.DocumentationThreadDump = DocumentationThreadDump; exports.DurationTokenData = DurationTokenData; exports.DurationUnit = DurationUnit; exports.DurationValue = DurationValue; exports.ElementGroup = ElementGroup; exports.ElementGroupDataV1 = ElementGroupDataV1; exports.ElementGroupDataV2 = ElementGroupDataV2; exports.ElementGroupSnapshot = ElementGroupSnapshot; exports.ElementPropertyDefinition = ElementPropertyDefinition; exports.ElementPropertyDefinitionOption = ElementPropertyDefinitionOption; exports.ElementPropertyLinkType = ElementPropertyLinkType; exports.ElementPropertyTargetType = ElementPropertyTargetType; exports.ElementPropertyType = ElementPropertyType; exports.ElementPropertyTypeSchema = ElementPropertyTypeSchema; exports.ElementPropertyValue = ElementPropertyValue; exports.ElementView = ElementView; exports.ElementViewBaseColumnType = ElementViewBaseColumnType; exports.ElementViewBasePropertyColumn = ElementViewBasePropertyColumn; exports.ElementViewColumn = ElementViewColumn; exports.ElementViewColumnSharedAttributes = ElementViewColumnSharedAttributes; exports.ElementViewColumnType = ElementViewColumnType; exports.ElementViewPropertyDefinitionColumn = ElementViewPropertyDefinitionColumn; exports.ElementViewThemeColumn = ElementViewThemeColumn; exports.Entity = Entity; exports.ExportDestinationsMap = ExportDestinationsMap; exports.ExportJob = ExportJob; exports.ExportJobContext = ExportJobContext; exports.ExportJobDestinationType = ExportJobDestinationType; exports.ExportJobDocsDestinationResult = ExportJobDocsDestinationResult; exports.ExportJobDocumentationChanges = ExportJobDocumentationChanges; exports.ExportJobDocumentationContext = ExportJobDocumentationContext; exports.ExportJobDump = ExportJobDump; exports.ExportJobFindByFilter = ExportJobFindByFilter; exports.ExportJobLogEntry = ExportJobLogEntry; exports.ExportJobLogEntryType = ExportJobLogEntryType; exports.ExportJobPullRequestDestinationResult = ExportJobPullRequestDestinationResult; exports.ExportJobResult = ExportJobResult; exports.ExportJobS3DestinationResult = ExportJobS3DestinationResult; exports.ExportJobStatus = ExportJobStatus; exports.Exporter = Exporter; exports.ExporterDestinationAzure = ExporterDestinationAzure; exports.ExporterDestinationBitbucket = ExporterDestinationBitbucket; exports.ExporterDestinationDocs = ExporterDestinationDocs; exports.ExporterDestinationGithub = ExporterDestinationGithub; exports.ExporterDestinationGitlab = ExporterDestinationGitlab; exports.ExporterDestinationS3 = ExporterDestinationS3; exports.ExporterDetails = ExporterDetails; exports.ExporterFunctionPayload = ExporterFunctionPayload; exports.ExporterPropertyImageValue = ExporterPropertyImageValue; exports.ExporterPropertyValue = ExporterPropertyValue; exports.ExporterPropertyValuesCollection = ExporterPropertyValuesCollection; exports.ExporterPulsarDetails = ExporterPulsarDetails; exports.ExporterSource = ExporterSource; exports.ExporterTag = ExporterTag; exports.ExporterType = ExporterType; exports.ExporterWorkspaceMembership = ExporterWorkspaceMembership; exports.ExporterWorkspaceMembershipRole = ExporterWorkspaceMembershipRole; exports.ExtendedIntegrationType = ExtendedIntegrationType; exports.ExternalOAuthRequest = ExternalOAuthRequest; exports.ExternalServiceType = ExternalServiceType; exports.FeatureFlag = FeatureFlag; exports.FeatureFlagMap = FeatureFlagMap; exports.FeaturesSummary = FeaturesSummary; exports.FigmaFileAccessData = FigmaFileAccessData; exports.FigmaFileDownloadScope = FigmaFileDownloadScope; exports.FigmaFileStructure = FigmaFileStructure; exports.FigmaFileStructureData = FigmaFileStructureData; exports.FigmaFileStructureElementData = FigmaFileStructureElementData; exports.FigmaFileStructureImportModel = FigmaFileStructureImportModel; exports.FigmaFileStructureImportModelInput = FigmaFileStructureImportModelInput; exports.FigmaFileStructureNode = FigmaFileStructureNode; exports.FigmaFileStructureNodeBase = FigmaFileStructureNodeBase; exports.FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModel; exports.FigmaFileStructureNodeType = FigmaFileStructureNodeType; exports.FigmaFileStructureOrigin = FigmaFileStructureOrigin; exports.FigmaFileStructureStatistics = FigmaFileStructureStatistics; exports.FigmaImportBaseContext = FigmaImportBaseContext; exports.FigmaImportContextWithDownloadScopes = FigmaImportContextWithDownloadScopes; exports.FigmaImportContextWithSourcesState = FigmaImportContextWithSourcesState; exports.FigmaNodeReference = FigmaNodeReference; exports.FigmaNodeReferenceData = FigmaNodeReferenceData; exports.FigmaNodeReferenceElementData = FigmaNodeReferenceElementData; exports.FigmaNodeReferenceOrigin = FigmaNodeReferenceOrigin; exports.FigmaPngRenderImportModel = FigmaPngRenderImportModel; exports.FigmaRenderFormat = FigmaRenderFormat; exports.FigmaRenderImportModel = FigmaRenderImportModel; exports.FigmaSvgRenderImportModel = FigmaSvgRenderImportModel; exports.FileStructureStats = FileStructureStats; exports.FlaggedFeature = FlaggedFeature; exports.FontFamilyTokenData = FontFamilyTokenData; exports.FontFamilyValue = FontFamilyValue; exports.FontSizeTokenData = FontSizeTokenData; exports.FontSizeUnit = FontSizeUnit; exports.FontSizeValue = FontSizeValue; exports.FontWeightTokenData = FontWeightTokenData; exports.FontWeightValue = FontWeightValue; exports.GitBranch = GitBranch; exports.GitIntegrationType = GitIntegrationType; exports.GitObjectsQuery = GitObjectsQuery; exports.GitOrganization = GitOrganization; exports.GitProject = GitProject; exports.GitProvider = GitProvider; exports.GitProviderNames = GitProviderNames; exports.GitRepository = GitRepository; exports.GradientLayerData = GradientLayerData; exports.GradientLayerValue = GradientLayerValue; exports.GradientStop = GradientStop; exports.GradientTokenData = GradientTokenData; exports.GradientTokenValue = GradientTokenValue; exports.GradientType = GradientType; exports.HANDLE_MAX_LENGTH = HANDLE_MAX_LENGTH; exports.HANDLE_MIN_LENGTH = HANDLE_MIN_LENGTH; exports.HierarchicalElements = HierarchicalElements; exports.IconSet = IconSet; exports.ImageImportModel = ImageImportModel; exports.ImageImportModelType = ImageImportModelType; exports.ImportFunctionInput = ImportFunctionInput; exports.ImportJob = ImportJob; exports.ImportJobOperation = ImportJobOperation; exports.ImportJobState = ImportJobState; exports.ImportModelBase = ImportModelBase; exports.ImportModelCollection = ImportModelCollection; exports.ImportModelInputBase = ImportModelInputBase; exports.ImportModelInputCollection = ImportModelInputCollection; exports.ImportWarning = ImportWarning; exports.ImportWarningType = ImportWarningType; exports.ImportedFigmaSourceData = ImportedFigmaSourceData; exports.Integration = Integration; exports.IntegrationAuthType = IntegrationAuthType; exports.IntegrationCredentials = IntegrationCredentials; exports.IntegrationCredentialsProfile = IntegrationCredentialsProfile; exports.IntegrationCredentialsState = IntegrationCredentialsState; exports.IntegrationCredentialsType = IntegrationCredentialsType; exports.IntegrationDesignSystem = IntegrationDesignSystem; exports.IntegrationToken = IntegrationToken; exports.IntegrationTokenSchemaOld = IntegrationTokenSchemaOld; exports.IntegrationType = IntegrationType; exports.IntegrationUserInfo = IntegrationUserInfo; exports.InternalStatus = InternalStatus; exports.InternalStatusSchema = InternalStatusSchema; exports.InvoiceCouponSchema = InvoiceCouponSchema; exports.InvoiceLineSchema = InvoiceLineSchema; exports.InvoiceSchema = InvoiceSchema; exports.LetterSpacingTokenData = LetterSpacingTokenData; exports.LetterSpacingUnit = LetterSpacingUnit; exports.LetterSpacingValue = LetterSpacingValue; exports.LineHeightTokenData = LineHeightTokenData; exports.LineHeightUnit = LineHeightUnit; exports.LineHeightValue = LineHeightValue; exports.LiveblocksNotificationSettings = LiveblocksNotificationSettings; exports.MAX_MEMBERS_COUNT = MAX_MEMBERS_COUNT; exports.NpmPackage = NpmPackage; exports.NpmProxyToken = NpmProxyToken; exports.NpmProxyTokenPayload = NpmProxyTokenPayload; exports.NpmRegistrCustomAuthConfig = NpmRegistrCustomAuthConfig; exports.NpmRegistryAuthConfig = NpmRegistryAuthConfig; exports.NpmRegistryAuthType = NpmRegistryAuthType; exports.NpmRegistryBasicAuthConfig = NpmRegistryBasicAuthConfig; exports.NpmRegistryBearerAuthConfig = NpmRegistryBearerAuthConfig; exports.NpmRegistryConfig = NpmRegistryConfig; exports.NpmRegistryNoAuthConfig = NpmRegistryNoAuthConfig; exports.NpmRegistryType = NpmRegistryType; exports.OAuthProvider = OAuthProvider; exports.OAuthProviderNames = OAuthProviderNames; exports.OAuthProviderSchema = OAuthProviderSchema; exports.ObjectMeta = ObjectMeta; exports.OpacityTokenData = OpacityTokenData; exports.OpacityValue = OpacityValue; exports.PageBlockAlignment = PageBlockAlignment; exports.PageBlockAppearanceV2 = PageBlockAppearanceV2; exports.PageBlockAsset = PageBlockAsset; exports.PageBlockAssetComponent = PageBlockAssetComponent; exports.PageBlockAssetEntityMeta = PageBlockAssetEntityMeta; exports.PageBlockAssetType = PageBlockAssetType; exports.PageBlockBaseV1 = PageBlockBaseV1; exports.PageBlockBehaviorDataType = PageBlockBehaviorDataType; exports.PageBlockBehaviorSelectionType = PageBlockBehaviorSelectionType; exports.PageBlockCalloutType = PageBlockCalloutType; exports.PageBlockCategory = PageBlockCategory; exports.PageBlockCodeLanguage = PageBlockCodeLanguage; exports.PageBlockColorV2 = PageBlockColorV2; exports.PageBlockCustomBlockPropertyImageValue = PageBlockCustomBlockPropertyImageValue; exports.PageBlockCustomBlockPropertyValue = PageBlockCustomBlockPropertyValue; exports.PageBlockDataV2 = PageBlockDataV2; exports.PageBlockDefinition = PageBlockDefinition; exports.PageBlockDefinitionAppearance = PageBlockDefinitionAppearance; exports.PageBlockDefinitionBehavior = PageBlockDefinitionBehavior; exports.PageBlockDefinitionBooleanOptions = PageBlockDefinitionBooleanOptions; exports.PageBlockDefinitionBooleanPropertyStyle = PageBlockDefinitionBooleanPropertyStyle; exports.PageBlockDefinitionComponentOptions = PageBlockDefinitionComponentOptions; exports.PageBlockDefinitionImageAspectRatio = PageBlockDefinitionImageAspectRatio; exports.PageBlockDefinitionImageOptions = PageBlockDefinitionImageOptions; exports.PageBlockDefinitionImageWidth = PageBlockDefinitionImageWidth; exports.PageBlockDefinitionItem = PageBlockDefinitionItem; exports.PageBlockDefinitionLayout = PageBlockDefinitionLayout; exports.PageBlockDefinitionLayoutAlign = PageBlockDefinitionLayoutAlign; exports.PageBlockDefinitionLayoutBase = PageBlockDefinitionLayoutBase; exports.PageBlockDefinitionLayoutGap = PageBlockDefinitionLayoutGap; exports.PageBlockDefinitionLayoutResizing = PageBlockDefinitionLayoutResizing; exports.PageBlockDefinitionLayoutType = PageBlockDefinitionLayoutType; exports.PageBlockDefinitionMultiRichTextPropertyStyle = PageBlockDefinitionMultiRichTextPropertyStyle; exports.PageBlockDefinitionMultiSelectPropertyStyle = PageBlockDefinitionMultiSelectPropertyStyle; exports.PageBlockDefinitionMutiRichTextOptions = PageBlockDefinitionMutiRichTextOptions; exports.PageBlockDefinitionNumberOptions = PageBlockDefinitionNumberOptions; exports.PageBlockDefinitionOnboarding = PageBlockDefinitionOnboarding; exports.PageBlockDefinitionProperty = PageBlockDefinitionProperty; exports.PageBlockDefinitionPropertyType = PageBlockDefinitionPropertyType; exports.PageBlockDefinitionRichTextOptions = PageBlockDefinitionRichTextOptions; exports.PageBlockDefinitionRichTextPropertyStyle = PageBlockDefinitionRichTextPropertyStyle; exports.PageBlockDefinitionSelectChoice = PageBlockDefinitionSelectChoice; exports.PageBlockDefinitionSelectOptions = PageBlockDefinitionSelectOptions; exports.PageBlockDefinitionSingleSelectPropertyColor = PageBlockDefinitionSingleSelectPropertyColor; exports.PageBlockDefinitionSingleSelectPropertyStyle = PageBlockDefinitionSingleSelectPropertyStyle; exports.PageBlockDefinitionTextOptions = PageBlockDefinitionTextOptions; exports.PageBlockDefinitionTextPropertyColor = PageBlockDefinitionTextPropertyColor; exports.PageBlockDefinitionTextPropertyStyle = PageBlockDefinitionTextPropertyStyle; exports.PageBlockDefinitionUntypedPropertyOptions = PageBlockDefinitionUntypedPropertyOptions; exports.PageBlockDefinitionVariant = PageBlockDefinitionVariant; exports.PageBlockDefinitionsMap = PageBlockDefinitionsMap; exports.PageBlockEditorModelV2 = PageBlockEditorModelV2; exports.PageBlockFigmaComponentEntityMeta = PageBlockFigmaComponentEntityMeta; exports.PageBlockFigmaFrameProperties = PageBlockFigmaFrameProperties; exports.PageBlockFigmaNodeEntityMeta = PageBlockFigmaNodeEntityMeta; exports.PageBlockFrame = PageBlockFrame; exports.PageBlockFrameOrigin = PageBlockFrameOrigin; exports.PageBlockGuideline = PageBlockGuideline; exports.PageBlockImageAlignment = PageBlockImageAlignment; exports.PageBlockImageReference = PageBlockImageReference; exports.PageBlockImageResourceReference = PageBlockImageResourceReference; exports.PageBlockImageType = PageBlockImageType; exports.PageBlockItemAssetPropertyValue = PageBlockItemAssetPropertyValue; exports.PageBlockItemAssetValue = PageBlockItemAssetValue; exports.PageBlockItemBooleanValue = PageBlockItemBooleanValue; exports.PageBlockItemCodeValue = PageBlockItemCodeValue; exports.PageBlockItemColorValue = PageBlockItemColorValue; exports.PageBlockItemComponentPropertyValue = PageBlockItemComponentPropertyValue; exports.PageBlockItemComponentValue = PageBlockItemComponentValue; exports.PageBlockItemDividerValue = PageBlockItemDividerValue; exports.PageBlockItemEmbedValue = PageBlockItemEmbedValue; exports.PageBlockItemFigmaComponentValue = PageBlockItemFigmaComponentValue; exports.PageBlockItemFigmaNodeValue = PageBlockItemFigmaNodeValue; exports.PageBlockItemImageValue = PageBlockItemImageValue; exports.PageBlockItemMarkdownValue = PageBlockItemMarkdownValue; exports.PageBlockItemMultiRichTextValue = PageBlockItemMultiRichTextValue; exports.PageBlockItemMultiSelectValue = PageBlockItemMultiSelectValue; exports.PageBlockItemNumberValue = PageBlockItemNumberValue; exports.PageBlockItemRichTextValue = PageBlockItemRichTextValue; exports.PageBlockItemSandboxValue = PageBlockItemSandboxValue; exports.PageBlockItemSingleSelectValue = PageBlockItemSingleSelectValue; exports.PageBlockItemStorybookValue = PageBlockItemStorybookValue; exports.PageBlockItemTableCell = PageBlockItemTableCell; exports.PageBlockItemTableImageNode = PageBlockItemTableImageNode; exports.PageBlockItemTableMultiRichTextNode = PageBlockItemTableMultiRichTextNode; exports.PageBlockItemTableNode = PageBlockItemTableNode; exports.PageBlockItemTableRichTextNode = PageBlockItemTableRichTextNode; exports.PageBlockItemTableRow = PageBlockItemTableRow; exports.PageBlockItemTableValue = PageBlockItemTableValue; exports.PageBlockItemTextValue = PageBlockItemTextValue; exports.PageBlockItemTokenPropertyValue = PageBlockItemTokenPropertyValue; exports.PageBlockItemTokenTypeValue = PageBlockItemTokenTypeValue; exports.PageBlockItemTokenValue = PageBlockItemTokenValue; exports.PageBlockItemUntypedValue = PageBlockItemUntypedValue; exports.PageBlockItemUrlValue = PageBlockItemUrlValue; exports.PageBlockItemV2 = PageBlockItemV2; exports.PageBlockLinkPreview = PageBlockLinkPreview; exports.PageBlockLinkType = PageBlockLinkType; exports.PageBlockLinkV2 = PageBlockLinkV2; exports.PageBlockPreviewContainerSize = PageBlockPreviewContainerSize; exports.PageBlockRenderCodeProperties = PageBlockRenderCodeProperties; exports.PageBlockResourceFrameNodeReference = PageBlockResourceFrameNodeReference; exports.PageBlockShortcut = PageBlockShortcut; exports.PageBlockTableCellAlignment = PageBlockTableCellAlignment; exports.PageBlockTableColumn = PageBlockTableColumn; exports.PageBlockTableProperties = PageBlockTableProperties; exports.PageBlockText = PageBlockText; exports.PageBlockTextSpan = PageBlockTextSpan; exports.PageBlockTextSpanAttribute = PageBlockTextSpanAttribute; exports.PageBlockTextSpanAttributeType = PageBlockTextSpanAttributeType; exports.PageBlockTheme = PageBlockTheme; exports.PageBlockThemeDisplayMode = PageBlockThemeDisplayMode; exports.PageBlockThemeType = PageBlockThemeType; exports.PageBlockTilesAlignment = PageBlockTilesAlignment; exports.PageBlockTilesLayout = PageBlockTilesLayout; exports.PageBlockTypeV1 = PageBlockTypeV1; exports.PageBlockUrlPreview = PageBlockUrlPreview; exports.PageBlockV1 = PageBlockV1; exports.PageBlockV2 = PageBlockV2; exports.PageSectionAppearanceV2 = PageSectionAppearanceV2; exports.PageSectionColumnV2 = PageSectionColumnV2; exports.PageSectionEditorModelV2 = PageSectionEditorModelV2; exports.PageSectionItemV2 = PageSectionItemV2; exports.PageSectionPaddingV2 = PageSectionPaddingV2; exports.PageSectionTypeV2 = PageSectionTypeV2; exports.ParagraphIndentTokenData = ParagraphIndentTokenData; exports.ParagraphIndentUnit = ParagraphIndentUnit; exports.ParagraphIndentValue = ParagraphIndentValue; exports.ParagraphSpacingTokenData = ParagraphSpacingTokenData; exports.ParagraphSpacingUnit = ParagraphSpacingUnit; exports.ParagraphSpacingValue = ParagraphSpacingValue; exports.PeriodSchema = PeriodSchema; exports.PersonalAccessToken = PersonalAccessToken; exports.Pipeline = Pipeline; exports.PipelineDestinationExtraType = PipelineDestinationExtraType; exports.PipelineDestinationGitType = PipelineDestinationGitType; exports.PipelineDestinationType = PipelineDestinationType; exports.PipelineEventType = PipelineEventType; exports.PluginOAuthRequestSchema = PluginOAuthRequestSchema; exports.Point2D = Point2D; exports.PostStripeCheckoutBodyInputSchema = PostStripeCheckoutBodyInputSchema; exports.PostStripeCheckoutOutputSchema = PostStripeCheckoutOutputSchema; exports.PostStripePortalSessionBodyInputSchema = PostStripePortalSessionBodyInputSchema; exports.PostStripePortalSessionOutputSchema = PostStripePortalSessionOutputSchema; exports.PostStripePortalUpdateSessionBodyInputSchema = PostStripePortalUpdateSessionBodyInputSchema; exports.PriceSchema = PriceSchema; exports.ProductCode = ProductCode; exports.ProductCodeSchema = ProductCodeSchema; exports.ProductCopyTokenData = ProductCopyTokenData; exports.ProductCopyValue = ProductCopyValue; exports.PublishedDoc = PublishedDoc; exports.PublishedDocEnvironment = PublishedDocEnvironment; exports.PublishedDocPage = PublishedDocPage; exports.PublishedDocRoutingVersion = PublishedDocRoutingVersion; exports.PublishedDocsChecksums = PublishedDocsChecksums; exports.PublishedDocsDump = PublishedDocsDump; exports.PulsarBaseProperty = PulsarBaseProperty; exports.PulsarContributionConfigurationProperty = PulsarContributionConfigurationProperty; exports.PulsarContributionVariant = PulsarContributionVariant; exports.PulsarCustomBlock = PulsarCustomBlock; exports.PulsarPropertyType = PulsarPropertyType; exports.RESERVED_SLUGS = RESERVED_SLUGS; exports.RESERVED_SLUG_PREFIX = RESERVED_SLUG_PREFIX; exports.RenderedAssetFile = RenderedAssetFile; exports.ResolvedAsset = ResolvedAsset; exports.RestoredDocumentationGroup = RestoredDocumentationGroup; exports.RestoredDocumentationPage = RestoredDocumentationPage; exports.RoomType = RoomType; exports.RoomTypeEnum = RoomTypeEnum; exports.RoomTypeSchema = RoomTypeSchema; exports.SHORT_PERSISTENT_ID_LENGTH = SHORT_PERSISTENT_ID_LENGTH; exports.SafeIdSchema = SafeIdSchema; exports.Session = Session; exports.SessionData = SessionData; exports.ShadowLayerValue = ShadowLayerValue; exports.ShadowTokenData = ShadowTokenData; exports.ShadowType = ShadowType; exports.ShallowDesignElement = ShallowDesignElement; exports.Size = Size; exports.SizeOrUndefined = SizeOrUndefined; exports.SizeTokenData = SizeTokenData; exports.SizeUnit = SizeUnit; exports.SizeValue = SizeValue; exports.SourceImportComponentSummary = SourceImportComponentSummary; exports.SourceImportFrameSummary = SourceImportFrameSummary; exports.SourceImportSummary = SourceImportSummary; exports.SourceImportSummaryByTokenType = SourceImportSummaryByTokenType; exports.SourceImportTokenSummary = SourceImportTokenSummary; exports.SpaceTokenData = SpaceTokenData; exports.SpaceUnit = SpaceUnit; exports.SpaceValue = SpaceValue; exports.SsoProvider = SsoProvider; exports.StringTokenData = StringTokenData; exports.StringValue = StringValue; exports.StripeSubscriptionStatus = StripeSubscriptionStatus; exports.StripeSubscriptionStatusSchema = StripeSubscriptionStatusSchema; exports.Subscription = Subscription; exports.SupernovaException = SupernovaException; exports.TextCase = TextCase; exports.TextCaseTokenData = TextCaseTokenData; exports.TextCaseValue = TextCaseValue; exports.TextDecoration = TextDecoration; exports.TextDecorationTokenData = TextDecorationTokenData; exports.TextDecorationValue = TextDecorationValue; exports.Theme = Theme; exports.ThemeElementData = ThemeElementData; exports.ThemeImportModel = ThemeImportModel; exports.ThemeImportModelInput = ThemeImportModelInput; exports.ThemeOrigin = ThemeOrigin; exports.ThemeOriginObject = ThemeOriginObject; exports.ThemeOriginPart = ThemeOriginPart; exports.ThemeOriginSource = ThemeOriginSource; exports.ThemeOverride = ThemeOverride; exports.ThemeOverrideImportModel = ThemeOverrideImportModel; exports.ThemeOverrideImportModelBase = ThemeOverrideImportModelBase; exports.ThemeOverrideImportModelInput = ThemeOverrideImportModelInput; exports.ThemeOverrideOrigin = ThemeOverrideOrigin; exports.ThemeOverrideOriginPart = ThemeOverrideOriginPart; exports.ThemeUpdateImportModel = ThemeUpdateImportModel; exports.ThemeUpdateImportModelInput = ThemeUpdateImportModelInput; exports.TokenDataAliasSchema = TokenDataAliasSchema; exports.TypographyTokenData = TypographyTokenData; exports.TypographyValue = TypographyValue; exports.UpdateMembershipRolesInput = UpdateMembershipRolesInput; exports.UrlImageImportModel = UrlImageImportModel; exports.User = User; exports.UserAnalyticsCleanupSchedule = UserAnalyticsCleanupSchedule; exports.UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupScheduleDbInput; exports.UserDump = UserDump; exports.UserIdentity = UserIdentity; exports.UserInvite = UserInvite; exports.UserInvites = UserInvites; exports.UserLinkedIntegrations = UserLinkedIntegrations; exports.UserMinified = UserMinified; exports.UserNotificationSettings = UserNotificationSettings; exports.UserOnboarding = UserOnboarding; exports.UserOnboardingDepartment = UserOnboardingDepartment; exports.UserOnboardingJobLevel = UserOnboardingJobLevel; exports.UserProfile = UserProfile; exports.UserProfileUpdate = UserProfileUpdate; exports.UserSession = UserSession; exports.UserTest = UserTest; exports.VersionCreationJob = VersionCreationJob; exports.VersionCreationJobStatus = VersionCreationJobStatus; exports.Visibility = Visibility; exports.VisibilityTokenData = VisibilityTokenData; exports.VisibilityValue = VisibilityValue; exports.Workspace = Workspace; exports.WorkspaceConfigurationUpdate = WorkspaceConfigurationUpdate; exports.WorkspaceContext = WorkspaceContext; exports.WorkspaceDump = WorkspaceDump; exports.WorkspaceInvitation = WorkspaceInvitation; exports.WorkspaceIpSettings = WorkspaceIpSettings; exports.WorkspaceIpWhitelistEntry = WorkspaceIpWhitelistEntry; exports.WorkspaceMembership = WorkspaceMembership; exports.WorkspaceOAuthRequestSchema = WorkspaceOAuthRequestSchema; exports.WorkspaceProfile = WorkspaceProfile; exports.WorkspaceProfileUpdate = WorkspaceProfileUpdate; exports.WorkspaceRole = WorkspaceRole; exports.WorkspaceRoleSchema = WorkspaceRoleSchema; exports.WorkspaceRoom = WorkspaceRoom; exports.WorkspaceWithDesignSystems = WorkspaceWithDesignSystems; exports.ZIndexTokenData = ZIndexTokenData; exports.ZIndexUnit = ZIndexUnit; exports.ZIndexValue = ZIndexValue; exports.addImportModelCollections = addImportModelCollections; exports.buildConstantEnum = buildConstantEnum; exports.defaultDocumentationItemConfigurationV1 = defaultDocumentationItemConfigurationV1; exports.defaultDocumentationItemConfigurationV2 = defaultDocumentationItemConfigurationV2; exports.defaultDocumentationItemHeaderV1 = defaultDocumentationItemHeaderV1; exports.defaultDocumentationItemHeaderV2 = defaultDocumentationItemHeaderV2; exports.defaultNotificationSettings = defaultNotificationSettings; exports.designTokenImportModelTypeFilter = designTokenImportModelTypeFilter; exports.designTokenTypeFilter = designTokenTypeFilter; exports.extractTokenTypedData = extractTokenTypedData; exports.figmaFileStructureImportModelToMap = figmaFileStructureImportModelToMap; exports.figmaFileStructureToMap = figmaFileStructureToMap; exports.filterNonNullish = filterNonNullish; exports.forceUnwrapNullish = forceUnwrapNullish; exports.getCodenameFromText = getCodenameFromText; exports.getFigmaRenderFormatFileExtension = getFigmaRenderFormatFileExtension; exports.groupBy = groupBy; exports.isDesignTokenImportModelOfType = isDesignTokenImportModelOfType; exports.isDesignTokenOfType = isDesignTokenOfType; exports.isImportedAsset = isImportedAsset; exports.isImportedComponent = isImportedComponent; exports.isImportedDesignToken = isImportedDesignToken; exports.isSlugReserved = isSlugReserved; exports.isTokenType = isTokenType; exports.mapByUnique = mapByUnique; exports.mapPageBlockItemValuesV2 = mapPageBlockItemValuesV2; exports.nonNullFilter = nonNullFilter; exports.nonNullishFilter = nonNullishFilter; exports.nullishToOptional = nullishToOptional; exports.parseUrl = parseUrl; exports.pickLatestGroupSnapshots = pickLatestGroupSnapshots; exports.pickLatestPageSnapshots = pickLatestPageSnapshots; exports.pickLatestSnapshots = pickLatestSnapshots; exports.promiseWithTimeout = promiseWithTimeout; exports.publishedDocEnvironments = publishedDocEnvironments; exports.sleep = sleep; exports.slugRegex = slugRegex; exports.slugify = slugify; exports.tokenAliasOrValue = tokenAliasOrValue; exports.tokenElementTypes = tokenElementTypes; exports.traversePageBlockItemValuesV2 = traversePageBlockItemValuesV2; exports.traversePageBlockItemsV2 = traversePageBlockItemsV2; exports.traversePageBlocksV1 = traversePageBlocksV1; exports.traversePageItemsV2 = traversePageItemsV2; exports.traverseStructure = traverseStructure; exports.trimLeadingSlash = trimLeadingSlash; exports.trimTrailingSlash = trimTrailingSlash; exports.tryParseShortPersistentId = tryParseShortPersistentId; exports.tryParseUrl = tryParseUrl; exports.uniqueBy = uniqueBy; exports.zodCreateInputOmit = zodCreateInputOmit; exports.zodUpdateInputOmit = zodUpdateInputOmit;
5531
5548
  //# sourceMappingURL=index.js.map