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