@supernova-studio/model 1.6.2 → 1.6.3

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
@@ -575,13 +575,33 @@ var CodeComponent = z23.object({
575
575
  componentPath: z23.string(),
576
576
  description: z23.string(),
577
577
  properties: z23.record(z23.string(), CodeComponentProperty),
578
- tags: z23.record(z23.string(), z23.string()).optional()
578
+ tags: z23.record(z23.string(), z23.string()).nullable()
579
579
  });
580
580
  var CodeComponentUpsertResponse = z23.object({
581
581
  created: z23.number().nonnegative(),
582
582
  updated: z23.number().nonnegative(),
583
583
  deleted: z23.number().nonnegative()
584
584
  });
585
+ var RegistryType = z23.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
586
+ var Registry = z23.object({
587
+ type: RegistryType,
588
+ url: z23.string().optional(),
589
+ accessToken: z23.string().optional(),
590
+ scope: z23.string(),
591
+ authConfig: z23.record(z23.string()).optional()
592
+ });
593
+ var DependencyDefinition = z23.object({
594
+ name: z23.string(),
595
+ version: z23.string().optional()
596
+ });
597
+ var AnalyzeCodeComponentsInPackage = z23.object({
598
+ designSystemId: z23.string(),
599
+ versionId: z23.string(),
600
+ mainPackage: DependencyDefinition,
601
+ dependencies: z23.array(DependencyDefinition).optional(),
602
+ registries: Registry.array(),
603
+ userAccessToken: z23.string()
604
+ });
585
605
 
586
606
  // src/dsm/components/asset-rendering.ts
587
607
  import { z as z105 } from "zod";
@@ -962,6 +982,11 @@ function isNotNullish(value) {
962
982
  function isNullish(value) {
963
983
  return value === null || value === void 0;
964
984
  }
985
+ function hasProperty(prop) {
986
+ return (obj) => {
987
+ return obj[prop] !== null && obj[prop] !== void 0;
988
+ };
989
+ }
965
990
  function chunkedArray(array, chunkSize) {
966
991
  const result = [];
967
992
  for (let i = 0; i < array.length; i += chunkSize) {
@@ -3704,6 +3729,11 @@ var SourceImportComponentSummary = z90.object({
3704
3729
  componentAssetsUpdated: zeroNumberByDefault(),
3705
3730
  componentAssetsDeleted: zeroNumberByDefault()
3706
3731
  });
3732
+ var SourceImportStorybookSummary = z90.object({
3733
+ created: zeroNumberByDefault(),
3734
+ updated: zeroNumberByDefault(),
3735
+ deleted: zeroNumberByDefault()
3736
+ });
3707
3737
  var SourceImportFrameSummary = z90.object({
3708
3738
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
3709
3739
  invalidReferencesCount: nullishToOptional(z90.number().optional())
@@ -3791,9 +3821,12 @@ var DataSourceStorybookRemote = z91.object({
3791
3821
  ownerId: z91.string().optional(),
3792
3822
  lastImportedAt: z91.coerce.date().optional(),
3793
3823
  lastImportedSuccessfully: z91.coerce.date().optional(),
3824
+ lastImportedResult: SourceImportStorybookSummary.optional(),
3794
3825
  isFailed: z91.boolean(),
3795
3826
  storiesCount: z91.number(),
3796
- docsCount: z91.number()
3827
+ docsCount: z91.number(),
3828
+ description: z91.string().optional(),
3829
+ isUsingVpn: z91.boolean().optional()
3797
3830
  });
3798
3831
  var DataSourceRemote = z91.discriminatedUnion("type", [
3799
3832
  DataSourceFigmaRemote,
@@ -5295,8 +5328,7 @@ var DocumentationPageRoom = Entity.extend({
5295
5328
  isDirty: z161.boolean()
5296
5329
  });
5297
5330
  var DocumentationPageRoomState = z161.object({
5298
- pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5299
- itemConfiguration: DocumentationItemConfigurationV2
5331
+ pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
5300
5332
  });
5301
5333
  var DocumentationPageRoomRoomUpdate = z161.object({
5302
5334
  page: DocumentationPageV2,
@@ -5873,6 +5905,7 @@ var PersonalAccessToken = z190.object({
5873
5905
  });
5874
5906
  export {
5875
5907
  Address,
5908
+ AnalyzeCodeComponentsInPackage,
5876
5909
  Asset,
5877
5910
  AssetDeleteSchedule,
5878
5911
  AssetDynamoRecord,
@@ -5946,6 +5979,7 @@ export {
5946
5979
  DataSourceUploadRemote,
5947
5980
  DataSourceUploadRemoteSource,
5948
5981
  DataSourceVersion,
5982
+ DependencyDefinition,
5949
5983
  DesignElement,
5950
5984
  DesignElementBase,
5951
5985
  DesignElementBrandedPart,
@@ -6427,6 +6461,8 @@ export {
6427
6461
  PulsarPropertyType,
6428
6462
  RESERVED_SLUGS,
6429
6463
  RESERVED_SLUG_PREFIX,
6464
+ Registry,
6465
+ RegistryType,
6430
6466
  RenderedAssetFile,
6431
6467
  ResolvedAsset,
6432
6468
  RestoredDocumentationGroup,
@@ -6450,6 +6486,7 @@ export {
6450
6486
  SizeValue,
6451
6487
  SourceImportComponentSummary,
6452
6488
  SourceImportFrameSummary,
6489
+ SourceImportStorybookSummary,
6453
6490
  SourceImportSummary,
6454
6491
  SourceImportSummaryByTokenType,
6455
6492
  SourceImportTokenSummary,
@@ -6562,6 +6599,7 @@ export {
6562
6599
  getCodenameFromText,
6563
6600
  getFigmaRenderFormatFileExtension,
6564
6601
  groupBy,
6602
+ hasProperty,
6565
6603
  isDataSourceOfType,
6566
6604
  isDesignTokenImportModelOfType,
6567
6605
  isDesignTokenOfType,