@supernova-studio/model 0.46.9 → 0.46.11

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
@@ -3076,80 +3076,54 @@ var VersionCreationJob = z126.object({
3076
3076
  errorMessage: nullishToOptional(z126.string())
3077
3077
  });
3078
3078
 
3079
- // src/export/export-runner/export-context.ts
3080
- import { z as z127 } from "zod";
3081
- var ExportJobDocumentationContext = z127.object({
3082
- isSingleVersionDocs: z127.boolean(),
3083
- versionSlug: z127.string(),
3084
- environment: PublishedDocEnvironment
3085
- });
3086
- var ExportJobContext = z127.object({
3087
- apiUrl: z127.string(),
3088
- accessToken: z127.string(),
3089
- designSystemId: z127.string(),
3090
- designSystemVersionId: z127.string(),
3091
- brandId: z127.string().optional(),
3092
- exporterPackageUrl: z127.string(),
3093
- exporterPropertyValues: ExporterPropertyValue.array(),
3094
- documentation: ExportJobDocumentationContext.optional()
3095
- });
3096
-
3097
- // src/export/export-runner/exporter-payload.ts
3098
- import { z as z128 } from "zod";
3099
- var ExporterFunctionPayload = z128.object({
3100
- exportJobId: z128.string(),
3101
- exportContextId: z128.string(),
3102
- designSystemId: z128.string()
3103
- });
3104
-
3105
3079
  // src/export/export-destinations.ts
3106
- import { z as z129 } from "zod";
3080
+ import { z as z127 } from "zod";
3107
3081
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3108
3082
  var BITBUCKET_MAX_LENGTH = 64;
3109
- var ExporterDestinationDocs = z129.object({
3083
+ var ExporterDestinationDocs = z127.object({
3110
3084
  environment: PublishedDocEnvironment
3111
3085
  });
3112
- var ExporterDestinationS3 = z129.object({});
3113
- var ExporterDestinationGithub = z129.object({
3114
- connectionId: z129.string(),
3115
- branch: z129.string(),
3116
- relativePath: z129.string()
3086
+ var ExporterDestinationS3 = z127.object({});
3087
+ var ExporterDestinationGithub = z127.object({
3088
+ connectionId: z127.string(),
3089
+ branch: z127.string(),
3090
+ relativePath: z127.string()
3117
3091
  // // +
3118
3092
  // userId: z.coerce.string(),
3119
3093
  });
3120
- var ExporterDestinationAzure = z129.object({
3121
- connectionId: z129.string(),
3122
- organizationId: z129.string(),
3123
- projectId: z129.string(),
3124
- repositoryId: z129.string(),
3125
- branch: z129.string(),
3126
- relativePath: z129.string()
3094
+ var ExporterDestinationAzure = z127.object({
3095
+ connectionId: z127.string(),
3096
+ organizationId: z127.string(),
3097
+ projectId: z127.string(),
3098
+ repositoryId: z127.string(),
3099
+ branch: z127.string(),
3100
+ relativePath: z127.string()
3127
3101
  // // +
3128
3102
  // userId: z.coerce.string(),
3129
3103
  // url: z.string(),
3130
3104
  });
3131
- var ExporterDestinationGitlab = z129.object({
3132
- connectionId: z129.string(),
3133
- projectId: z129.string(),
3134
- branch: z129.string(),
3135
- relativePath: z129.string()
3105
+ var ExporterDestinationGitlab = z127.object({
3106
+ connectionId: z127.string(),
3107
+ projectId: z127.string(),
3108
+ branch: z127.string(),
3109
+ relativePath: z127.string()
3136
3110
  // // +
3137
3111
  // userId: z.coerce.string(),
3138
3112
  // url: z.string(),
3139
3113
  });
3140
- var ExporterDestinationBitbucket = z129.object({
3141
- connectionId: z129.string(),
3142
- workspaceSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3143
- projectKey: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3144
- repoSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3145
- branch: z129.string(),
3146
- relativePath: z129.string()
3114
+ var ExporterDestinationBitbucket = z127.object({
3115
+ connectionId: z127.string(),
3116
+ workspaceSlug: z127.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3117
+ projectKey: z127.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3118
+ repoSlug: z127.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3119
+ branch: z127.string(),
3120
+ relativePath: z127.string()
3147
3121
  // // +
3148
3122
  // userId: z.string(),
3149
3123
  // url: z.string(),
3150
3124
  });
3151
- var ExportDestinationsMap = z129.object({
3152
- webhookUrl: z129.string().optional(),
3125
+ var ExportDestinationsMap = z127.object({
3126
+ webhookUrl: z127.string().optional(),
3153
3127
  destinationSnDocs: ExporterDestinationDocs.optional(),
3154
3128
  destinationS3: ExporterDestinationS3.optional(),
3155
3129
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3159,30 +3133,30 @@ var ExportDestinationsMap = z129.object({
3159
3133
  });
3160
3134
 
3161
3135
  // src/export/export-jobs.ts
3162
- import { z as z130 } from "zod";
3163
- var ExportJobDestinationType = z130.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3164
- var ExportJobStatus = z130.enum(["InProgress", "Success", "Failed", "Timeout"]);
3165
- var ExportJobLogEntryType = z130.enum(["success", "info", "warning", "error", "user"]);
3166
- var ExportJobLogEntry = z130.object({
3167
- id: z130.string().optional(),
3168
- time: z130.coerce.date(),
3136
+ import { z as z128 } from "zod";
3137
+ var ExportJobDestinationType = z128.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3138
+ var ExportJobStatus = z128.enum(["InProgress", "Success", "Failed", "Timeout"]);
3139
+ var ExportJobLogEntryType = z128.enum(["success", "info", "warning", "error", "user"]);
3140
+ var ExportJobLogEntry = z128.object({
3141
+ id: z128.string().optional(),
3142
+ time: z128.coerce.date(),
3169
3143
  type: ExportJobLogEntryType,
3170
- message: z130.string()
3144
+ message: z128.string()
3171
3145
  });
3172
- var ExportJobPullRequestDestinationResult = z130.object({
3173
- pullRequestUrl: z130.string()
3146
+ var ExportJobPullRequestDestinationResult = z128.object({
3147
+ pullRequestUrl: z128.string()
3174
3148
  });
3175
- var ExportJobS3DestinationResult = z130.object({
3176
- bucket: z130.string(),
3177
- urlPrefix: z130.string().optional(),
3178
- path: z130.string(),
3179
- files: z130.array(z130.string())
3149
+ var ExportJobS3DestinationResult = z128.object({
3150
+ bucket: z128.string(),
3151
+ urlPrefix: z128.string().optional(),
3152
+ path: z128.string(),
3153
+ files: z128.array(z128.string())
3180
3154
  });
3181
- var ExportJobDocsDestinationResult = z130.object({
3182
- url: z130.string()
3155
+ var ExportJobDocsDestinationResult = z128.object({
3156
+ url: z128.string()
3183
3157
  });
3184
- var ExportJobResult = z130.object({
3185
- error: z130.string().optional(),
3158
+ var ExportJobResult = z128.object({
3159
+ error: z128.string().optional(),
3186
3160
  s3: ExportJobS3DestinationResult.optional(),
3187
3161
  github: ExportJobPullRequestDestinationResult.optional(),
3188
3162
  azure: ExportJobPullRequestDestinationResult.optional(),
@@ -3190,21 +3164,21 @@ var ExportJobResult = z130.object({
3190
3164
  bitbucket: ExportJobPullRequestDestinationResult.optional(),
3191
3165
  sndocs: ExportJobDocsDestinationResult.optional()
3192
3166
  });
3193
- var ExportJob = z130.object({
3194
- id: z130.string(),
3195
- createdAt: z130.date(),
3196
- finishedAt: z130.date().optional(),
3197
- designSystemId: z130.string(),
3198
- designSystemVersionId: z130.string(),
3199
- workspaceId: z130.string(),
3200
- scheduleId: z130.string().nullish(),
3201
- exporterId: z130.string(),
3202
- brandId: z130.string().optional(),
3203
- themeId: z130.string().optional(),
3204
- estimatedExecutionTime: z130.number().optional(),
3167
+ var ExportJob = z128.object({
3168
+ id: z128.string(),
3169
+ createdAt: z128.date(),
3170
+ finishedAt: z128.date().optional(),
3171
+ designSystemId: z128.string(),
3172
+ designSystemVersionId: z128.string(),
3173
+ workspaceId: z128.string(),
3174
+ scheduleId: z128.string().nullish(),
3175
+ exporterId: z128.string(),
3176
+ brandId: z128.string().optional(),
3177
+ themeId: z128.string().optional(),
3178
+ estimatedExecutionTime: z128.number().optional(),
3205
3179
  status: ExportJobStatus,
3206
3180
  result: ExportJobResult.optional(),
3207
- createdByUserId: z130.string().optional(),
3181
+ createdByUserId: z128.string().optional(),
3208
3182
  // Destinations
3209
3183
  ...ExportDestinationsMap.shape
3210
3184
  });
@@ -3219,10 +3193,36 @@ var ExportJobFindByFilter = ExportJob.pick({
3219
3193
  themeId: true,
3220
3194
  brandId: true
3221
3195
  }).extend({
3222
- destinations: z130.array(ExportJobDestinationType),
3196
+ destinations: z128.array(ExportJobDestinationType),
3223
3197
  docsEnvironment: PublishedDocEnvironment
3224
3198
  }).partial();
3225
3199
 
3200
+ // src/export/export-runner/export-context.ts
3201
+ import { z as z129 } from "zod";
3202
+ var ExportJobDocumentationContext = z129.object({
3203
+ isSingleVersionDocs: z129.boolean(),
3204
+ versionSlug: z129.string(),
3205
+ environment: PublishedDocEnvironment
3206
+ });
3207
+ var ExportJobContext = z129.object({
3208
+ apiUrl: z129.string(),
3209
+ accessToken: z129.string(),
3210
+ designSystemId: z129.string(),
3211
+ designSystemVersionId: z129.string(),
3212
+ brandId: z129.string().optional(),
3213
+ exporterPackageUrl: z129.string(),
3214
+ exporterPropertyValues: ExporterPropertyValue.array(),
3215
+ documentation: ExportJobDocumentationContext.optional()
3216
+ });
3217
+
3218
+ // src/export/export-runner/exporter-payload.ts
3219
+ import { z as z130 } from "zod";
3220
+ var ExporterFunctionPayload = z130.object({
3221
+ exportJobId: z130.string(),
3222
+ exportContextId: z130.string(),
3223
+ designSystemId: z130.string()
3224
+ });
3225
+
3226
3226
  // src/export/export-schedule.ts
3227
3227
  import { z as z131 } from "zod";
3228
3228
  var ExporterScheduleEventType = z131.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
@@ -3240,24 +3240,11 @@ var ExporterSchedule = z131.object({
3240
3240
  ...ExportDestinationsMap.shape
3241
3241
  });
3242
3242
 
3243
- // src/export/exporter-workspace-membership-role.ts
3244
- import { z as z132 } from "zod";
3245
- var ExporterWorkspaceMembershipRole = z132.enum(["Owner", "OwnerArchived", "User"]);
3246
-
3247
- // src/export/exporter-workspace-membership.ts
3248
- import { z as z133 } from "zod";
3249
- var ExporterWorkspaceMembership = z133.object({
3250
- id: z133.string(),
3251
- workspaceId: z133.string(),
3252
- exporterId: z133.string(),
3253
- role: ExporterWorkspaceMembershipRole
3254
- });
3255
-
3256
3243
  // src/export/exporter.ts
3257
- import { z as z136 } from "zod";
3244
+ import { z as z134 } from "zod";
3258
3245
 
3259
3246
  // src/export/git-providers.ts
3260
- import { z as z134 } from "zod";
3247
+ import { z as z132 } from "zod";
3261
3248
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3262
3249
  GitProviderNames2["Azure"] = "azure";
3263
3250
  GitProviderNames2["Github"] = "github";
@@ -3265,11 +3252,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3265
3252
  GitProviderNames2["Bitbucket"] = "bitbucket";
3266
3253
  return GitProviderNames2;
3267
3254
  })(GitProviderNames || {});
3268
- var GitProvider = z134.nativeEnum(GitProviderNames);
3255
+ var GitProvider = z132.nativeEnum(GitProviderNames);
3269
3256
 
3270
3257
  // src/export/pulsar.ts
3271
- import { z as z135 } from "zod";
3272
- var PulsarPropertyType = z135.enum([
3258
+ import { z as z133 } from "zod";
3259
+ var PulsarPropertyType = z133.enum([
3273
3260
  "string",
3274
3261
  "number",
3275
3262
  "boolean",
@@ -3282,72 +3269,87 @@ var PulsarPropertyType = z135.enum([
3282
3269
  "tokenProperties",
3283
3270
  "tokenType"
3284
3271
  ]);
3285
- var PulsarBaseProperty = z135.object({
3286
- label: z135.string(),
3287
- key: z135.string(),
3288
- description: z135.string().nullish(),
3272
+ var PulsarBaseProperty = z133.object({
3273
+ label: z133.string(),
3274
+ key: z133.string(),
3275
+ description: z133.string().nullish(),
3289
3276
  type: PulsarPropertyType,
3290
- values: z135.array(z135.string()).nullish(),
3291
- default: z135.union([z135.string(), z135.boolean(), z135.number()]).nullish(),
3277
+ values: z133.array(z133.string()).nullish(),
3278
+ default: z133.union([z133.string(), z133.boolean(), z133.number()]).nullish(),
3292
3279
  // PulsarPropertyValueType //is optional?
3293
- inputType: z135.enum(["code", "plain"]).optional(),
3280
+ inputType: z133.enum(["code", "plain"]).optional(),
3294
3281
  //is optional?
3295
- isMultiline: z135.boolean().nullish()
3282
+ isMultiline: z133.boolean().nullish()
3296
3283
  });
3297
3284
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
3298
- category: z135.string()
3285
+ category: z133.string()
3299
3286
  });
3300
- var PulsarContributionVariant = z135.object({
3301
- key: z135.string(),
3302
- name: z135.string(),
3303
- isDefault: nullishToOptional(z135.boolean()),
3304
- description: nullishToOptional(z135.string()),
3305
- thumbnailURL: nullishToOptional(z135.string())
3287
+ var PulsarContributionVariant = z133.object({
3288
+ key: z133.string(),
3289
+ name: z133.string(),
3290
+ isDefault: nullishToOptional(z133.boolean()),
3291
+ description: nullishToOptional(z133.string()),
3292
+ thumbnailURL: nullishToOptional(z133.string())
3306
3293
  });
3307
- var PulsarCustomBlock = z135.object({
3308
- title: nullishToOptional(z135.string()),
3309
- key: z135.string(),
3310
- category: nullishToOptional(z135.string()),
3311
- description: nullishToOptional(z135.string()),
3312
- iconURL: nullishToOptional(z135.string()),
3313
- mode: nullishToOptional(z135.enum(["array", "block"])),
3314
- properties: nullishToOptional(z135.array(PulsarBaseProperty)).transform((v) => v ?? [])
3294
+ var PulsarCustomBlock = z133.object({
3295
+ title: nullishToOptional(z133.string()),
3296
+ key: z133.string(),
3297
+ category: nullishToOptional(z133.string()),
3298
+ description: nullishToOptional(z133.string()),
3299
+ iconURL: nullishToOptional(z133.string()),
3300
+ mode: nullishToOptional(z133.enum(["array", "block"])),
3301
+ properties: nullishToOptional(z133.array(PulsarBaseProperty)).transform((v) => v ?? [])
3315
3302
  });
3316
3303
 
3317
3304
  // src/export/exporter.ts
3318
- var ExporterType = z136.enum(["code", "documentation"]);
3319
- var ExporterSource = z136.enum(["git", "upload"]);
3320
- var ExporterTag = z136.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3321
- var ExporterDetails = z136.object({
3322
- description: z136.string(),
3323
- version: z136.string(),
3324
- routingVersion: nullishToOptional(z136.string()),
3325
- author: nullishToOptional(z136.string()),
3326
- organization: nullishToOptional(z136.string()),
3327
- homepage: nullishToOptional(z136.string()),
3328
- readme: nullishToOptional(z136.string()),
3329
- tags: nullishToOptional(z136.array(ExporterTag)).default([]),
3330
- packageId: nullishToOptional(z136.string().max(255)),
3331
- iconURL: nullishToOptional(z136.string()),
3332
- configurationProperties: nullishToOptional(z136.array(PulsarContributionConfigurationProperty)).default([]),
3333
- customBlocks: nullishToOptional(z136.array(PulsarCustomBlock)).default([]),
3334
- blockVariants: nullishToOptional(z136.record(z136.string(), z136.array(PulsarContributionVariant))).default({}),
3335
- usesBrands: nullishToOptional(z136.boolean()).default(false),
3336
- usesThemes: nullishToOptional(z136.boolean()).default(false),
3305
+ var ExporterType = z134.enum(["code", "documentation"]);
3306
+ var ExporterSource = z134.enum(["git", "upload"]);
3307
+ var ExporterTag = z134.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3308
+ var ExporterDetails = z134.object({
3309
+ description: z134.string(),
3310
+ version: z134.string(),
3311
+ routingVersion: nullishToOptional(z134.string()),
3312
+ author: nullishToOptional(z134.string()),
3313
+ organization: nullishToOptional(z134.string()),
3314
+ homepage: nullishToOptional(z134.string()),
3315
+ readme: nullishToOptional(z134.string()),
3316
+ tags: nullishToOptional(z134.array(ExporterTag)).default([]),
3317
+ packageId: nullishToOptional(z134.string().max(255)),
3318
+ iconURL: nullishToOptional(z134.string()),
3319
+ configurationProperties: nullishToOptional(z134.array(PulsarContributionConfigurationProperty)).default([]),
3320
+ customBlocks: nullishToOptional(z134.array(PulsarCustomBlock)).default([]),
3321
+ blockVariants: nullishToOptional(z134.record(z134.string(), z134.array(PulsarContributionVariant))).default({}),
3322
+ usesBrands: nullishToOptional(z134.boolean()).default(false),
3323
+ usesThemes: nullishToOptional(z134.boolean()).default(false),
3337
3324
  source: ExporterSource,
3338
3325
  gitProvider: nullishToOptional(GitProvider),
3339
- gitUrl: nullishToOptional(z136.string()),
3340
- gitBranch: nullishToOptional(z136.string()),
3341
- gitDirectory: nullishToOptional(z136.string())
3342
- });
3343
- var Exporter = z136.object({
3344
- id: z136.string(),
3345
- createdAt: z136.coerce.date(),
3346
- name: z136.string(),
3347
- isPrivate: z136.boolean(),
3326
+ gitUrl: nullishToOptional(z134.string()),
3327
+ gitBranch: nullishToOptional(z134.string()),
3328
+ gitDirectory: nullishToOptional(z134.string())
3329
+ });
3330
+ var Exporter = z134.object({
3331
+ id: z134.string(),
3332
+ createdAt: z134.coerce.date(),
3333
+ name: z134.string(),
3334
+ isPrivate: z134.boolean(),
3348
3335
  details: ExporterDetails,
3349
3336
  exporterType: nullishToOptional(ExporterType).default("code"),
3350
- storagePath: nullishToOptional(z136.string()).default("")
3337
+ storagePath: nullishToOptional(z134.string()).default("")
3338
+ });
3339
+
3340
+ // src/export/exporter-workspace-membership.ts
3341
+ import { z as z136 } from "zod";
3342
+
3343
+ // src/export/exporter-workspace-membership-role.ts
3344
+ import { z as z135 } from "zod";
3345
+ var ExporterWorkspaceMembershipRole = z135.enum(["Owner", "OwnerArchived", "User"]);
3346
+
3347
+ // src/export/exporter-workspace-membership.ts
3348
+ var ExporterWorkspaceMembership = z136.object({
3349
+ id: z136.string(),
3350
+ workspaceId: z136.string(),
3351
+ exporterId: z136.string(),
3352
+ role: ExporterWorkspaceMembershipRole
3351
3353
  });
3352
3354
 
3353
3355
  // src/feature-flags/feature-flags.ts