@supernova-studio/model 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1171,6 +1171,8 @@ var defaultDocumentationItemHeaderV1 = {
1171
1171
  // src/dsm/elements/data/documentation-v1.ts
1172
1172
  var DocumentationItemConfigurationV1 = z38.object({
1173
1173
  showSidebar: z38.boolean(),
1174
+ isPrivate: z38.boolean().optional(),
1175
+ isHidden: z38.boolean().optional(),
1174
1176
  header: DocumentationItemHeaderV1
1175
1177
  });
1176
1178
  var defaultDocumentationItemConfigurationV1 = {
@@ -1214,10 +1216,14 @@ var defaultDocumentationItemHeaderV2 = {
1214
1216
  // src/dsm/elements/data/documentation-v2.ts
1215
1217
  var DocumentationItemConfigurationV2 = z41.object({
1216
1218
  showSidebar: z41.boolean(),
1219
+ isPrivate: z41.boolean().optional(),
1220
+ isHidden: z41.boolean().optional(),
1217
1221
  header: DocumentationItemHeaderV2
1218
1222
  });
1219
1223
  var defaultDocumentationItemConfigurationV2 = {
1220
1224
  header: defaultDocumentationItemHeaderV2,
1225
+ isHidden: false,
1226
+ isPrivate: false,
1221
1227
  showSidebar: true
1222
1228
  };
1223
1229
 
@@ -2916,76 +2922,90 @@ var ExporterPropertyValuesCollection = z117.object({
2916
2922
  });
2917
2923
 
2918
2924
  // src/dsm/published-doc-page.ts
2925
+ import { z as z118 } from "zod";
2919
2926
  var SHORT_PERSISTENT_ID_LENGTH = 8;
2920
2927
  function tryParseShortPersistentId(url = "/") {
2921
2928
  const lastUrlPart = url.split("/").pop() || "";
2922
2929
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
2923
2930
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
2924
2931
  }
2932
+ var PublishedDocPage = z118.object({
2933
+ id: z118.string(),
2934
+ publishedDocId: z118.string(),
2935
+ pageShortPersistentId: z118.string(),
2936
+ pathV1: z118.string(),
2937
+ pathV2: z118.string(),
2938
+ storagePath: z118.string(),
2939
+ locale: z118.string().optional(),
2940
+ isPrivate: z118.boolean(),
2941
+ isHidden: z118.boolean(),
2942
+ createdAt: z118.coerce.date(),
2943
+ updatedAt: z118.coerce.date()
2944
+ });
2925
2945
 
2926
2946
  // src/dsm/published-doc.ts
2927
- import { z as z118 } from "zod";
2947
+ import { z as z119 } from "zod";
2928
2948
  var publishedDocEnvironments = ["Live", "Preview"];
2929
- var PublishedDocEnvironment = z118.enum(publishedDocEnvironments);
2930
- var PublishedDocsChecksums = z118.record(z118.string());
2931
- var PublishedDocRoutingVersion = z118.enum(["1", "2"]);
2932
- var PublishedDoc = z118.object({
2933
- id: z118.string(),
2934
- designSystemVersionId: z118.string(),
2935
- createdAt: z118.coerce.date(),
2936
- updatedAt: z118.coerce.date(),
2937
- lastPublishedAt: z118.coerce.date(),
2938
- isDefault: z118.boolean(),
2939
- isPublic: z118.boolean(),
2949
+ var PublishedDocEnvironment = z119.enum(publishedDocEnvironments);
2950
+ var PublishedDocsChecksums = z119.record(z119.string());
2951
+ var PublishedDocRoutingVersion = z119.enum(["1", "2"]);
2952
+ var PublishedDoc = z119.object({
2953
+ id: z119.string(),
2954
+ designSystemVersionId: z119.string(),
2955
+ createdAt: z119.coerce.date(),
2956
+ updatedAt: z119.coerce.date(),
2957
+ lastPublishedAt: z119.coerce.date(),
2958
+ isDefault: z119.boolean(),
2959
+ isPublic: z119.boolean(),
2940
2960
  environment: PublishedDocEnvironment,
2941
2961
  checksums: PublishedDocsChecksums,
2942
- storagePath: z118.string(),
2943
- wasMigrated: z118.boolean(),
2962
+ storagePath: z119.string(),
2963
+ wasMigrated: z119.boolean(),
2944
2964
  routingVersion: PublishedDocRoutingVersion,
2945
- usesLocalizations: z118.boolean(),
2946
- wasPublishedWithLocalizations: z118.boolean()
2965
+ usesLocalizations: z119.boolean(),
2966
+ wasPublishedWithLocalizations: z119.boolean()
2947
2967
  });
2948
2968
 
2949
2969
  // src/dsm/version.ts
2950
- import { z as z119 } from "zod";
2951
- var DesignSystemVersion = z119.object({
2952
- id: z119.string(),
2953
- version: z119.string(),
2954
- createdAt: z119.date(),
2955
- designSystemId: z119.string(),
2956
- name: z119.string(),
2957
- comment: z119.string(),
2958
- isReadonly: z119.boolean(),
2959
- changeLog: z119.string(),
2960
- parentId: z119.string().optional()
2970
+ import { z as z120 } from "zod";
2971
+ var DesignSystemVersion = z120.object({
2972
+ id: z120.string(),
2973
+ version: z120.string(),
2974
+ createdAt: z120.date(),
2975
+ designSystemId: z120.string(),
2976
+ name: z120.string(),
2977
+ comment: z120.string(),
2978
+ isReadonly: z120.boolean(),
2979
+ changeLog: z120.string(),
2980
+ parentId: z120.string().optional()
2961
2981
  });
2962
2982
 
2963
2983
  // src/codegen/export-jobs.ts
2964
- import { z as z120 } from "zod";
2965
- var ExporterJobDestination = z120.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2966
- var ExporterJobStatus = z120.enum(["InProgress", "Success", "Failed", "Timeout"]);
2967
- var ExporterJobLogEntryType = z120.enum(["success", "info", "warning", "error", "user"]);
2968
- var ExporterJobLogEntry = z120.object({
2969
- id: z120.string().optional(),
2970
- time: z120.coerce.date(),
2984
+ import { z as z121 } from "zod";
2985
+ var ExporterJobDestination = z121.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2986
+ var ExporterJobStatus = z121.enum(["InProgress", "Success", "Failed", "Timeout"]);
2987
+ var ExporterJobLogEntryType = z121.enum(["success", "info", "warning", "error", "user"]);
2988
+ var ExporterJobLogEntry = z121.object({
2989
+ id: z121.string().optional(),
2990
+ time: z121.coerce.date(),
2971
2991
  type: ExporterJobLogEntryType,
2972
- message: z120.string()
2992
+ message: z121.string()
2973
2993
  });
2974
- var ExporterJobResultPullRequestDestination = z120.object({
2975
- pullRequestUrl: z120.string()
2994
+ var ExporterJobResultPullRequestDestination = z121.object({
2995
+ pullRequestUrl: z121.string()
2976
2996
  });
2977
- var ExporterJobResultS3Destination = z120.object({
2978
- bucket: z120.string(),
2979
- urlPrefix: z120.string().optional(),
2980
- path: z120.string(),
2981
- files: z120.array(z120.string())
2997
+ var ExporterJobResultS3Destination = z121.object({
2998
+ bucket: z121.string(),
2999
+ urlPrefix: z121.string().optional(),
3000
+ path: z121.string(),
3001
+ files: z121.array(z121.string())
2982
3002
  });
2983
- var ExporterJobResultDocsDestination = z120.object({
2984
- url: z120.string()
3003
+ var ExporterJobResultDocsDestination = z121.object({
3004
+ url: z121.string()
2985
3005
  });
2986
- var ExporterJobResult = z120.object({
2987
- error: z120.string().optional(),
2988
- logs: z120.array(ExporterJobLogEntry).optional(),
3006
+ var ExporterJobResult = z121.object({
3007
+ error: z121.string().optional(),
3008
+ logs: z121.array(ExporterJobLogEntry).optional(),
2989
3009
  s3: ExporterJobResultS3Destination.optional(),
2990
3010
  github: ExporterJobResultPullRequestDestination.optional(),
2991
3011
  azure: ExporterJobResultPullRequestDestination.optional(),
@@ -2993,68 +3013,68 @@ var ExporterJobResult = z120.object({
2993
3013
  bitbucket: ExporterJobResultPullRequestDestination.optional(),
2994
3014
  sndocs: ExporterJobResultDocsDestination.optional()
2995
3015
  });
2996
- var ExporterDestinationSnDocs = z120.object({
3016
+ var ExporterDestinationSnDocs = z121.object({
2997
3017
  environment: PublishedDocEnvironment
2998
3018
  });
2999
- var ExporterDestinationS3 = z120.object({});
3000
- var ExporterDestinationGithub = z120.object({
3001
- connectionId: z120.string(),
3002
- url: z120.string(),
3003
- branch: z120.string(),
3004
- relativePath: z120.string(),
3019
+ var ExporterDestinationS3 = z121.object({});
3020
+ var ExporterDestinationGithub = z121.object({
3021
+ connectionId: z121.string(),
3022
+ url: z121.string(),
3023
+ branch: z121.string(),
3024
+ relativePath: z121.string(),
3005
3025
  // +
3006
- userId: z120.coerce.string()
3007
- });
3008
- var ExporterDestinationAzure = z120.object({
3009
- connectionId: z120.string(),
3010
- organizationId: z120.string(),
3011
- projectId: z120.string(),
3012
- repositoryId: z120.string(),
3013
- branch: z120.string(),
3014
- relativePath: z120.string(),
3026
+ userId: z121.coerce.string()
3027
+ });
3028
+ var ExporterDestinationAzure = z121.object({
3029
+ connectionId: z121.string(),
3030
+ organizationId: z121.string(),
3031
+ projectId: z121.string(),
3032
+ repositoryId: z121.string(),
3033
+ branch: z121.string(),
3034
+ relativePath: z121.string(),
3015
3035
  // +
3016
- userId: z120.coerce.string(),
3017
- url: z120.string()
3018
- });
3019
- var ExporterDestinationGitlab = z120.object({
3020
- connectionId: z120.string(),
3021
- projectId: z120.string(),
3022
- branch: z120.string(),
3023
- relativePath: z120.string(),
3036
+ userId: z121.coerce.string(),
3037
+ url: z121.string()
3038
+ });
3039
+ var ExporterDestinationGitlab = z121.object({
3040
+ connectionId: z121.string(),
3041
+ projectId: z121.string(),
3042
+ branch: z121.string(),
3043
+ relativePath: z121.string(),
3024
3044
  // +
3025
- userId: z120.coerce.string(),
3026
- url: z120.string()
3045
+ userId: z121.coerce.string(),
3046
+ url: z121.string()
3027
3047
  });
3028
3048
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3029
3049
  var BITBUCKET_MAX_LENGTH = 64;
3030
- var ExporterDestinationBitbucket = z120.object({
3031
- connectionId: z120.string(),
3032
- workspaceSlug: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3033
- projectKey: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3034
- repoSlug: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3035
- branch: z120.string(),
3036
- relativePath: z120.string(),
3050
+ var ExporterDestinationBitbucket = z121.object({
3051
+ connectionId: z121.string(),
3052
+ workspaceSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3053
+ projectKey: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3054
+ repoSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3055
+ branch: z121.string(),
3056
+ relativePath: z121.string(),
3037
3057
  // +
3038
- userId: z120.coerce.string(),
3039
- url: z120.string()
3040
- });
3041
- var ExporterJob = z120.object({
3042
- id: z120.coerce.string(),
3043
- createdAt: z120.coerce.date(),
3044
- finishedAt: z120.coerce.date().optional(),
3045
- designSystemId: z120.coerce.string(),
3046
- designSystemVersionId: z120.coerce.string(),
3047
- workspaceId: z120.coerce.string(),
3048
- scheduleId: z120.coerce.string().nullish(),
3049
- exporterId: z120.coerce.string(),
3050
- brandId: z120.coerce.string().optional(),
3051
- themeId: z120.coerce.string().optional(),
3052
- estimatedExecutionTime: z120.number().optional(),
3058
+ userId: z121.coerce.string(),
3059
+ url: z121.string()
3060
+ });
3061
+ var ExporterJob = z121.object({
3062
+ id: z121.coerce.string(),
3063
+ createdAt: z121.coerce.date(),
3064
+ finishedAt: z121.coerce.date().optional(),
3065
+ designSystemId: z121.coerce.string(),
3066
+ designSystemVersionId: z121.coerce.string(),
3067
+ workspaceId: z121.coerce.string(),
3068
+ scheduleId: z121.coerce.string().nullish(),
3069
+ exporterId: z121.coerce.string(),
3070
+ brandId: z121.coerce.string().optional(),
3071
+ themeId: z121.coerce.string().optional(),
3072
+ estimatedExecutionTime: z121.number().optional(),
3053
3073
  status: ExporterJobStatus,
3054
3074
  result: ExporterJobResult.optional(),
3055
- createdByUserId: z120.string().optional(),
3075
+ createdByUserId: z121.string().optional(),
3056
3076
  // CodegenDestinationsModel
3057
- webhookUrl: z120.string().optional(),
3077
+ webhookUrl: z121.string().optional(),
3058
3078
  destinationSnDocs: ExporterDestinationSnDocs.optional(),
3059
3079
  destinationS3: ExporterDestinationS3.optional(),
3060
3080
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3073,28 +3093,28 @@ var ExporterJobFindByFilter = ExporterJob.pick({
3073
3093
  themeId: true,
3074
3094
  brandId: true
3075
3095
  }).extend({
3076
- destinations: z120.array(ExporterJobDestination),
3096
+ destinations: z121.array(ExporterJobDestination),
3077
3097
  docsEnvironment: PublishedDocEnvironment
3078
3098
  }).partial();
3079
3099
 
3080
3100
  // src/codegen/exporter-workspace-membership-role.ts
3081
- import { z as z121 } from "zod";
3082
- var ExporterWorkspaceMembershipRole = z121.enum(["Owner", "OwnerArchived", "User"]);
3101
+ import { z as z122 } from "zod";
3102
+ var ExporterWorkspaceMembershipRole = z122.enum(["Owner", "OwnerArchived", "User"]);
3083
3103
 
3084
3104
  // src/codegen/exporter-workspace-membership.ts
3085
- import { z as z122 } from "zod";
3086
- var ExporterWorkspaceMembership = z122.object({
3087
- id: z122.string(),
3088
- workspaceId: z122.string(),
3089
- exporterId: z122.string(),
3105
+ import { z as z123 } from "zod";
3106
+ var ExporterWorkspaceMembership = z123.object({
3107
+ id: z123.string(),
3108
+ workspaceId: z123.string(),
3109
+ exporterId: z123.string(),
3090
3110
  role: ExporterWorkspaceMembershipRole
3091
3111
  });
3092
3112
 
3093
3113
  // src/codegen/exporter.ts
3094
- import { z as z125 } from "zod";
3114
+ import { z as z126 } from "zod";
3095
3115
 
3096
3116
  // src/codegen/git-providers.ts
3097
- import { z as z123 } from "zod";
3117
+ import { z as z124 } from "zod";
3098
3118
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3099
3119
  GitProviderNames2["Azure"] = "azure";
3100
3120
  GitProviderNames2["Github"] = "github";
@@ -3102,11 +3122,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3102
3122
  GitProviderNames2["Bitbucket"] = "bitbucket";
3103
3123
  return GitProviderNames2;
3104
3124
  })(GitProviderNames || {});
3105
- var GitProvider = z123.nativeEnum(GitProviderNames);
3125
+ var GitProvider = z124.nativeEnum(GitProviderNames);
3106
3126
 
3107
3127
  // src/codegen/pulsar.ts
3108
- import { z as z124 } from "zod";
3109
- var PulsarPropertyType = z124.enum([
3128
+ import { z as z125 } from "zod";
3129
+ var PulsarPropertyType = z125.enum([
3110
3130
  "string",
3111
3131
  "number",
3112
3132
  "boolean",
@@ -3119,108 +3139,108 @@ var PulsarPropertyType = z124.enum([
3119
3139
  "tokenProperties",
3120
3140
  "tokenType"
3121
3141
  ]);
3122
- var PulsarBaseProperty = z124.object({
3123
- label: z124.string(),
3124
- key: z124.string(),
3125
- description: z124.string().nullish(),
3142
+ var PulsarBaseProperty = z125.object({
3143
+ label: z125.string(),
3144
+ key: z125.string(),
3145
+ description: z125.string().nullish(),
3126
3146
  type: PulsarPropertyType,
3127
- values: z124.array(z124.string()).nullish(),
3128
- default: z124.union([z124.string(), z124.boolean(), z124.number()]).nullish(),
3147
+ values: z125.array(z125.string()).nullish(),
3148
+ default: z125.union([z125.string(), z125.boolean(), z125.number()]).nullish(),
3129
3149
  // PulsarPropertyValueType //is optional?
3130
- inputType: z124.enum(["code", "plain"]).optional(),
3150
+ inputType: z125.enum(["code", "plain"]).optional(),
3131
3151
  //is optional?
3132
- isMultiline: z124.boolean().nullish()
3152
+ isMultiline: z125.boolean().nullish()
3133
3153
  });
3134
3154
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
3135
- category: z124.string()
3155
+ category: z125.string()
3136
3156
  });
3137
- var PulsarContributionVariant = z124.object({
3138
- key: z124.string(),
3139
- name: z124.string(),
3140
- isDefault: nullishToOptional(z124.boolean()),
3141
- description: nullishToOptional(z124.string()),
3142
- thumbnailURL: nullishToOptional(z124.string())
3143
- });
3144
- var PulsarCustomBlock = z124.object({
3145
- title: nullishToOptional(z124.string()),
3146
- key: z124.string(),
3147
- category: nullishToOptional(z124.string()),
3148
- description: nullishToOptional(z124.string()),
3149
- iconURL: nullishToOptional(z124.string()),
3150
- mode: nullishToOptional(z124.enum(["array", "block"])),
3151
- properties: nullishToOptional(z124.array(PulsarBaseProperty)).transform((v) => v ?? [])
3157
+ var PulsarContributionVariant = z125.object({
3158
+ key: z125.string(),
3159
+ name: z125.string(),
3160
+ isDefault: nullishToOptional(z125.boolean()),
3161
+ description: nullishToOptional(z125.string()),
3162
+ thumbnailURL: nullishToOptional(z125.string())
3163
+ });
3164
+ var PulsarCustomBlock = z125.object({
3165
+ title: nullishToOptional(z125.string()),
3166
+ key: z125.string(),
3167
+ category: nullishToOptional(z125.string()),
3168
+ description: nullishToOptional(z125.string()),
3169
+ iconURL: nullishToOptional(z125.string()),
3170
+ mode: nullishToOptional(z125.enum(["array", "block"])),
3171
+ properties: nullishToOptional(z125.array(PulsarBaseProperty)).transform((v) => v ?? [])
3152
3172
  });
3153
3173
 
3154
3174
  // src/codegen/exporter.ts
3155
- var ExporterType = z125.enum(["code", "documentation"]);
3156
- var ExporterSource = z125.enum(["git", "upload"]);
3157
- var ExporterTag = z125.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3158
- var ExporterDetails = z125.object({
3159
- description: z125.string(),
3160
- version: z125.string(),
3161
- routingVersion: nullishToOptional(z125.string()),
3162
- author: nullishToOptional(z125.string()),
3163
- organization: nullishToOptional(z125.string()),
3164
- homepage: nullishToOptional(z125.string()),
3165
- readme: nullishToOptional(z125.string()),
3166
- tags: nullishToOptional(z125.array(ExporterTag)).default([]),
3167
- packageId: nullishToOptional(z125.string().max(255)),
3168
- iconURL: nullishToOptional(z125.string()),
3169
- configurationProperties: nullishToOptional(z125.array(PulsarContributionConfigurationProperty)).default([]),
3170
- customBlocks: nullishToOptional(z125.array(PulsarCustomBlock)).default([]),
3171
- blockVariants: nullishToOptional(z125.record(z125.string(), z125.array(PulsarContributionVariant))).default({}),
3172
- usesBrands: nullishToOptional(z125.boolean()).default(false),
3173
- usesThemes: nullishToOptional(z125.boolean()).default(false),
3175
+ var ExporterType = z126.enum(["code", "documentation"]);
3176
+ var ExporterSource = z126.enum(["git", "upload"]);
3177
+ var ExporterTag = z126.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3178
+ var ExporterDetails = z126.object({
3179
+ description: z126.string(),
3180
+ version: z126.string(),
3181
+ routingVersion: nullishToOptional(z126.string()),
3182
+ author: nullishToOptional(z126.string()),
3183
+ organization: nullishToOptional(z126.string()),
3184
+ homepage: nullishToOptional(z126.string()),
3185
+ readme: nullishToOptional(z126.string()),
3186
+ tags: nullishToOptional(z126.array(ExporterTag)).default([]),
3187
+ packageId: nullishToOptional(z126.string().max(255)),
3188
+ iconURL: nullishToOptional(z126.string()),
3189
+ configurationProperties: nullishToOptional(z126.array(PulsarContributionConfigurationProperty)).default([]),
3190
+ customBlocks: nullishToOptional(z126.array(PulsarCustomBlock)).default([]),
3191
+ blockVariants: nullishToOptional(z126.record(z126.string(), z126.array(PulsarContributionVariant))).default({}),
3192
+ usesBrands: nullishToOptional(z126.boolean()).default(false),
3193
+ usesThemes: nullishToOptional(z126.boolean()).default(false),
3174
3194
  source: ExporterSource,
3175
3195
  gitProvider: nullishToOptional(GitProvider),
3176
- gitUrl: nullishToOptional(z125.string()),
3177
- gitBranch: nullishToOptional(z125.string()),
3178
- gitDirectory: nullishToOptional(z125.string())
3196
+ gitUrl: nullishToOptional(z126.string()),
3197
+ gitBranch: nullishToOptional(z126.string()),
3198
+ gitDirectory: nullishToOptional(z126.string())
3179
3199
  });
3180
- var Exporter = z125.object({
3181
- id: z125.string(),
3182
- createdAt: z125.coerce.date(),
3183
- name: z125.string(),
3184
- isPrivate: z125.boolean(),
3200
+ var Exporter = z126.object({
3201
+ id: z126.string(),
3202
+ createdAt: z126.coerce.date(),
3203
+ name: z126.string(),
3204
+ isPrivate: z126.boolean(),
3185
3205
  details: ExporterDetails,
3186
3206
  exporterType: nullishToOptional(ExporterType).default("code"),
3187
- storagePath: nullishToOptional(z125.string()).default("")
3207
+ storagePath: nullishToOptional(z126.string()).default("")
3188
3208
  });
3189
3209
 
3190
3210
  // src/custom-domains/custom-domains.ts
3191
- import { z as z126 } from "zod";
3192
- var CustomDomain = z126.object({
3193
- id: z126.string(),
3194
- designSystemId: z126.string(),
3195
- state: z126.string(),
3196
- supernovaDomain: z126.string(),
3197
- customerDomain: z126.string().nullish(),
3198
- error: z126.string().nullish(),
3199
- errorCode: z126.string().nullish()
3211
+ import { z as z127 } from "zod";
3212
+ var CustomDomain = z127.object({
3213
+ id: z127.string(),
3214
+ designSystemId: z127.string(),
3215
+ state: z127.string(),
3216
+ supernovaDomain: z127.string(),
3217
+ customerDomain: z127.string().nullish(),
3218
+ error: z127.string().nullish(),
3219
+ errorCode: z127.string().nullish()
3200
3220
  });
3201
3221
 
3202
3222
  // src/docs-server/session.ts
3203
- import { z as z131 } from "zod";
3223
+ import { z as z132 } from "zod";
3204
3224
 
3205
3225
  // src/users/linked-integrations.ts
3206
- import { z as z127 } from "zod";
3207
- var IntegrationAuthType = z127.union([z127.literal("OAuth2"), z127.literal("PAT")]);
3208
- var ExternalServiceType = z127.union([
3209
- z127.literal("figma"),
3210
- z127.literal("github"),
3211
- z127.literal("azure"),
3212
- z127.literal("gitlab"),
3213
- z127.literal("bitbucket")
3226
+ import { z as z128 } from "zod";
3227
+ var IntegrationAuthType = z128.union([z128.literal("OAuth2"), z128.literal("PAT")]);
3228
+ var ExternalServiceType = z128.union([
3229
+ z128.literal("figma"),
3230
+ z128.literal("github"),
3231
+ z128.literal("azure"),
3232
+ z128.literal("gitlab"),
3233
+ z128.literal("bitbucket")
3214
3234
  ]);
3215
- var IntegrationUserInfo = z127.object({
3216
- id: z127.string(),
3217
- handle: z127.string().optional(),
3218
- avatarUrl: z127.string().optional(),
3219
- email: z127.string().optional(),
3235
+ var IntegrationUserInfo = z128.object({
3236
+ id: z128.string(),
3237
+ handle: z128.string().optional(),
3238
+ avatarUrl: z128.string().optional(),
3239
+ email: z128.string().optional(),
3220
3240
  authType: IntegrationAuthType.optional(),
3221
- customUrl: z127.string().optional()
3241
+ customUrl: z128.string().optional()
3222
3242
  });
3223
- var UserLinkedIntegrations = z127.object({
3243
+ var UserLinkedIntegrations = z128.object({
3224
3244
  figma: IntegrationUserInfo.optional(),
3225
3245
  github: IntegrationUserInfo.array().optional(),
3226
3246
  azure: IntegrationUserInfo.array().optional(),
@@ -3229,87 +3249,87 @@ var UserLinkedIntegrations = z127.object({
3229
3249
  });
3230
3250
 
3231
3251
  // src/users/user-identity.ts
3232
- import { z as z128 } from "zod";
3233
- var UserIdentity = z128.object({
3234
- id: z128.string(),
3235
- userId: z128.string()
3252
+ import { z as z129 } from "zod";
3253
+ var UserIdentity = z129.object({
3254
+ id: z129.string(),
3255
+ userId: z129.string()
3236
3256
  });
3237
3257
 
3238
3258
  // src/users/user-profile.ts
3239
- import { z as z129 } from "zod";
3240
- var UserOnboardingDepartment = z129.enum(["Design", "Engineering", "Brand", "Other"]);
3241
- var UserOnboardingJobLevel = z129.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3242
- var UserOnboarding = z129.object({
3243
- companyName: z129.string().optional(),
3244
- numberOfPeopleInOrg: z129.string().optional(),
3245
- numberOfPeopleInDesignTeam: z129.string().optional(),
3259
+ import { z as z130 } from "zod";
3260
+ var UserOnboardingDepartment = z130.enum(["Design", "Engineering", "Brand", "Other"]);
3261
+ var UserOnboardingJobLevel = z130.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
3262
+ var UserOnboarding = z130.object({
3263
+ companyName: z130.string().optional(),
3264
+ numberOfPeopleInOrg: z130.string().optional(),
3265
+ numberOfPeopleInDesignTeam: z130.string().optional(),
3246
3266
  department: UserOnboardingDepartment.optional(),
3247
- jobTitle: z129.string().optional(),
3248
- phase: z129.string().optional(),
3267
+ jobTitle: z130.string().optional(),
3268
+ phase: z130.string().optional(),
3249
3269
  jobLevel: UserOnboardingJobLevel.optional()
3250
3270
  });
3251
- var UserProfile = z129.object({
3252
- name: z129.string(),
3253
- avatar: z129.string().optional(),
3254
- nickname: z129.string().optional(),
3271
+ var UserProfile = z130.object({
3272
+ name: z130.string(),
3273
+ avatar: z130.string().optional(),
3274
+ nickname: z130.string().optional(),
3255
3275
  onboarding: UserOnboarding.optional()
3256
3276
  });
3257
3277
 
3258
3278
  // src/users/user.ts
3259
- import { z as z130 } from "zod";
3260
- var User = z130.object({
3261
- id: z130.string(),
3262
- email: z130.string(),
3263
- emailVerified: z130.boolean(),
3264
- createdAt: z130.coerce.date(),
3265
- trialExpiresAt: z130.coerce.date().optional(),
3279
+ import { z as z131 } from "zod";
3280
+ var User = z131.object({
3281
+ id: z131.string(),
3282
+ email: z131.string(),
3283
+ emailVerified: z131.boolean(),
3284
+ createdAt: z131.coerce.date(),
3285
+ trialExpiresAt: z131.coerce.date().optional(),
3266
3286
  profile: UserProfile,
3267
3287
  linkedIntegrations: UserLinkedIntegrations.optional(),
3268
- loggedOutAt: z130.coerce.date().optional(),
3269
- isProtected: z130.boolean()
3288
+ loggedOutAt: z131.coerce.date().optional(),
3289
+ isProtected: z131.boolean()
3270
3290
  });
3271
3291
 
3272
3292
  // src/docs-server/session.ts
3273
- var NpmProxyToken = z131.object({
3274
- access: z131.string(),
3275
- expiresAt: z131.number()
3293
+ var NpmProxyToken = z132.object({
3294
+ access: z132.string(),
3295
+ expiresAt: z132.number()
3276
3296
  });
3277
- var SessionData = z131.object({
3278
- returnToUrl: z131.string().optional(),
3297
+ var SessionData = z132.object({
3298
+ returnToUrl: z132.string().optional(),
3279
3299
  npmProxyToken: NpmProxyToken.optional()
3280
3300
  });
3281
- var Session = z131.object({
3282
- id: z131.string(),
3283
- expiresAt: z131.coerce.date(),
3284
- userId: z131.string().nullable(),
3301
+ var Session = z132.object({
3302
+ id: z132.string(),
3303
+ expiresAt: z132.coerce.date(),
3304
+ userId: z132.string().nullable(),
3285
3305
  data: SessionData
3286
3306
  });
3287
- var AuthTokens = z131.object({
3288
- access: z131.string(),
3289
- refresh: z131.string()
3307
+ var AuthTokens = z132.object({
3308
+ access: z132.string(),
3309
+ refresh: z132.string()
3290
3310
  });
3291
- var UserSession = z131.object({
3311
+ var UserSession = z132.object({
3292
3312
  session: Session,
3293
3313
  user: User.nullable()
3294
3314
  });
3295
3315
 
3296
3316
  // src/feature-flags/feature-flags.ts
3297
- import { z as z132 } from "zod";
3298
- var FlaggedFeature = z132.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3299
- var FeatureFlagMap = z132.record(FlaggedFeature, z132.boolean());
3300
- var FeatureFlag = z132.object({
3301
- id: z132.string(),
3317
+ import { z as z133 } from "zod";
3318
+ var FlaggedFeature = z133.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3319
+ var FeatureFlagMap = z133.record(FlaggedFeature, z133.boolean());
3320
+ var FeatureFlag = z133.object({
3321
+ id: z133.string(),
3302
3322
  feature: FlaggedFeature,
3303
- createdAt: z132.coerce.date(),
3304
- enabled: z132.boolean(),
3305
- designSystemId: z132.string().optional()
3323
+ createdAt: z133.coerce.date(),
3324
+ enabled: z133.boolean(),
3325
+ designSystemId: z133.string().optional()
3306
3326
  });
3307
3327
 
3308
3328
  // src/integrations/external-oauth-request.ts
3309
- import { z as z134 } from "zod";
3329
+ import { z as z135 } from "zod";
3310
3330
 
3311
3331
  // src/integrations/oauth-providers.ts
3312
- import { z as z133 } from "zod";
3332
+ import { z as z134 } from "zod";
3313
3333
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3314
3334
  OAuthProviderNames2["Figma"] = "figma";
3315
3335
  OAuthProviderNames2["Azure"] = "azure";
@@ -3318,110 +3338,110 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3318
3338
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3319
3339
  return OAuthProviderNames2;
3320
3340
  })(OAuthProviderNames || {});
3321
- var OAuthProviderSchema = z133.nativeEnum(OAuthProviderNames);
3341
+ var OAuthProviderSchema = z134.nativeEnum(OAuthProviderNames);
3322
3342
  var OAuthProvider = OAuthProviderSchema.enum;
3323
3343
 
3324
3344
  // src/integrations/external-oauth-request.ts
3325
- var ExternalOAuthRequest = z134.object({
3326
- id: z134.string(),
3345
+ var ExternalOAuthRequest = z135.object({
3346
+ id: z135.string(),
3327
3347
  provider: OAuthProviderSchema,
3328
- userId: z134.string(),
3329
- state: z134.string(),
3330
- createdAt: z134.coerce.date()
3348
+ userId: z135.string(),
3349
+ state: z135.string(),
3350
+ createdAt: z135.coerce.date()
3331
3351
  });
3332
3352
 
3333
3353
  // src/integrations/integration.ts
3334
- import { z as z135 } from "zod";
3335
- var IntegrationType = z135.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
3336
- var Integration = z135.object({
3337
- id: z135.string(),
3338
- workspaceId: z135.string(),
3354
+ import { z as z136 } from "zod";
3355
+ var IntegrationType = z136.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
3356
+ var Integration = z136.object({
3357
+ id: z136.string(),
3358
+ workspaceId: z136.string(),
3339
3359
  type: IntegrationType,
3340
- createdAt: z135.coerce.date()
3360
+ createdAt: z136.coerce.date()
3341
3361
  });
3342
- var IntegrationCredentialsType = z135.enum(["OAuth2", "PAT"]);
3343
- var IntegrationCredentialsProfile = z135.object({
3344
- id: z135.string(),
3345
- username: z135.string().optional(),
3346
- avatarUrl: z135.string().optional()
3362
+ var IntegrationCredentialsType = z136.enum(["OAuth2", "PAT"]);
3363
+ var IntegrationCredentialsProfile = z136.object({
3364
+ id: z136.string(),
3365
+ username: z136.string().optional(),
3366
+ avatarUrl: z136.string().optional()
3347
3367
  });
3348
- var IntegrationCredentialsSchema = z135.object({
3349
- id: z135.string(),
3368
+ var IntegrationCredentialsSchema = z136.object({
3369
+ id: z136.string(),
3350
3370
  type: IntegrationCredentialsType,
3351
- integrationId: z135.string(),
3352
- accessToken: z135.string(),
3353
- userId: z135.string(),
3354
- createdAt: z135.coerce.date(),
3355
- refreshToken: z135.string().optional(),
3371
+ integrationId: z136.string(),
3372
+ accessToken: z136.string(),
3373
+ userId: z136.string(),
3374
+ createdAt: z136.coerce.date(),
3375
+ refreshToken: z136.string().optional(),
3356
3376
  profile: IntegrationCredentialsProfile.optional()
3357
3377
  });
3358
3378
 
3359
3379
  // src/integrations/oauth-token.ts
3360
- import { z as z136 } from "zod";
3361
- var IntegrationTokenSchema = z136.object({
3362
- id: z136.string(),
3380
+ import { z as z137 } from "zod";
3381
+ var IntegrationTokenSchema = z137.object({
3382
+ id: z137.string(),
3363
3383
  provider: OAuthProviderSchema,
3364
- scope: z136.string(),
3365
- userId: z136.string(),
3366
- accessToken: z136.string(),
3367
- refreshToken: z136.string(),
3368
- expiresAt: z136.coerce.date(),
3369
- externalUserId: z136.string().nullish()
3384
+ scope: z137.string(),
3385
+ userId: z137.string(),
3386
+ accessToken: z137.string(),
3387
+ refreshToken: z137.string(),
3388
+ expiresAt: z137.coerce.date(),
3389
+ externalUserId: z137.string().nullish()
3370
3390
  });
3371
3391
 
3372
3392
  // src/integrations/workspace-oauth-requests.ts
3373
- import { z as z137 } from "zod";
3374
- var WorkspaceOAuthRequestSchema = z137.object({
3375
- id: z137.string(),
3376
- workspaceId: z137.string(),
3393
+ import { z as z138 } from "zod";
3394
+ var WorkspaceOAuthRequestSchema = z138.object({
3395
+ id: z138.string(),
3396
+ workspaceId: z138.string(),
3377
3397
  provider: OAuthProviderSchema,
3378
- userId: z137.string(),
3379
- createdAt: z137.coerce.date()
3398
+ userId: z138.string(),
3399
+ createdAt: z138.coerce.date()
3380
3400
  });
3381
3401
 
3382
3402
  // src/npm/npm-package.ts
3383
- import { z as z138 } from "zod";
3384
- var AnyRecord = z138.record(z138.any());
3403
+ import { z as z139 } from "zod";
3404
+ var AnyRecord = z139.record(z139.any());
3385
3405
  var NpmPackageVersionDist = AnyRecord.and(
3386
- z138.object({
3387
- tarball: z138.string()
3406
+ z139.object({
3407
+ tarball: z139.string()
3388
3408
  })
3389
3409
  );
3390
3410
  var NpmPackageVersion = AnyRecord.and(
3391
- z138.object({
3411
+ z139.object({
3392
3412
  dist: NpmPackageVersionDist
3393
3413
  })
3394
3414
  );
3395
3415
  var NpmPackage = AnyRecord.and(
3396
- z138.object({
3397
- _id: z138.string(),
3398
- name: z138.string(),
3416
+ z139.object({
3417
+ _id: z139.string(),
3418
+ name: z139.string(),
3399
3419
  // e.g. "latest": "1.2.3"
3400
- "dist-tags": z138.record(z138.string(), z138.string()),
3420
+ "dist-tags": z139.record(z139.string(), z139.string()),
3401
3421
  // "1.2.3": {...}
3402
- versions: z138.record(NpmPackageVersion)
3422
+ versions: z139.record(NpmPackageVersion)
3403
3423
  })
3404
3424
  );
3405
3425
 
3406
3426
  // src/npm/npm-proxy-token-payload.ts
3407
- import { z as z139 } from "zod";
3408
- var NpmProxyTokenPayload = z139.object({
3409
- npmProxyRegistryConfigId: z139.string()
3427
+ import { z as z140 } from "zod";
3428
+ var NpmProxyTokenPayload = z140.object({
3429
+ npmProxyRegistryConfigId: z140.string()
3410
3430
  });
3411
3431
 
3412
3432
  // src/tokens/personal-access-token.ts
3413
- import { z as z140 } from "zod";
3414
- var PersonalAccessToken = z140.object({
3415
- id: z140.string(),
3416
- userId: z140.string(),
3417
- workspaceId: z140.string().optional(),
3433
+ import { z as z141 } from "zod";
3434
+ var PersonalAccessToken = z141.object({
3435
+ id: z141.string(),
3436
+ userId: z141.string(),
3437
+ workspaceId: z141.string().optional(),
3418
3438
  workspaceRole: WorkspaceRoleSchema.optional(),
3419
- name: z140.string(),
3420
- hidden: z140.boolean(),
3421
- token: z140.string(),
3422
- scope: z140.string().optional(),
3423
- createdAt: z140.coerce.date(),
3424
- expireAt: z140.coerce.date().optional()
3439
+ name: z141.string(),
3440
+ hidden: z141.boolean(),
3441
+ token: z141.string(),
3442
+ scope: z141.string().optional(),
3443
+ createdAt: z141.coerce.date(),
3444
+ expireAt: z141.coerce.date().optional()
3425
3445
  });
3426
3446
 
3427
3447
  // src/utils/errors.ts
@@ -3556,26 +3576,26 @@ async function sleep(ms) {
3556
3576
  }
3557
3577
 
3558
3578
  // src/utils/content-loader-instruction.ts
3559
- import { z as z141 } from "zod";
3560
- var ContentLoadInstruction = z141.object({
3561
- from: z141.string(),
3562
- to: z141.string(),
3563
- authorizationHeaderKvsId: z141.string().optional(),
3564
- timeout: z141.number().optional()
3565
- });
3566
- var ContentLoaderPayload = z141.object({
3567
- type: z141.literal("Single"),
3579
+ import { z as z142 } from "zod";
3580
+ var ContentLoadInstruction = z142.object({
3581
+ from: z142.string(),
3582
+ to: z142.string(),
3583
+ authorizationHeaderKvsId: z142.string().optional(),
3584
+ timeout: z142.number().optional()
3585
+ });
3586
+ var ContentLoaderPayload = z142.object({
3587
+ type: z142.literal("Single"),
3568
3588
  instruction: ContentLoadInstruction
3569
3589
  }).or(
3570
- z141.object({
3571
- type: z141.literal("Multiple"),
3572
- loadingChunkSize: z141.number().optional(),
3573
- instructions: z141.array(ContentLoadInstruction)
3590
+ z142.object({
3591
+ type: z142.literal("Multiple"),
3592
+ loadingChunkSize: z142.number().optional(),
3593
+ instructions: z142.array(ContentLoadInstruction)
3574
3594
  })
3575
3595
  ).or(
3576
- z141.object({
3577
- type: z141.literal("S3"),
3578
- location: z141.string()
3596
+ z142.object({
3597
+ type: z142.literal("S3"),
3598
+ location: z142.string()
3579
3599
  })
3580
3600
  );
3581
3601
 
@@ -4626,6 +4646,7 @@ export {
4626
4646
  ProductCopyValue,
4627
4647
  PublishedDoc,
4628
4648
  PublishedDocEnvironment,
4649
+ PublishedDocPage,
4629
4650
  PublishedDocRoutingVersion,
4630
4651
  PublishedDocsChecksums,
4631
4652
  PulsarBaseProperty,