@supernova-studio/client 0.46.8 → 0.46.10

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
@@ -140,10 +140,10 @@ import { z as z128 } from "zod";
140
140
  import { z as z129 } from "zod";
141
141
  import { z as z130 } from "zod";
142
142
  import { z as z131 } from "zod";
143
+ import { z as z134 } from "zod";
143
144
  import { z as z132 } from "zod";
144
145
  import { z as z133 } from "zod";
145
146
  import { z as z136 } from "zod";
146
- import { z as z134 } from "zod";
147
147
  import { z as z135 } from "zod";
148
148
  import { z as z137 } from "zod";
149
149
  import { z as z139 } from "zod";
@@ -1789,7 +1789,8 @@ var ThemeOrigin = z85.object({
1789
1789
  });
1790
1790
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
1791
1791
  origin: ThemeOrigin.optional(),
1792
- overrides: z85.array(ThemeOverride)
1792
+ overrides: z85.array(ThemeOverride),
1793
+ codeName: z85.string()
1793
1794
  });
1794
1795
  var FigmaFileDownloadScope = z86.object({
1795
1796
  styles: z86.boolean(),
@@ -2643,72 +2644,52 @@ var VersionCreationJob = z126.object({
2643
2644
  status: VersionCreationJobStatus,
2644
2645
  errorMessage: nullishToOptional(z126.string())
2645
2646
  });
2646
- var ExportJobDocumentationContext = z127.object({
2647
- isSingleVersionDocs: z127.boolean(),
2648
- versionSlug: z127.string(),
2649
- environment: PublishedDocEnvironment
2650
- });
2651
- var ExportJobContext = z127.object({
2652
- apiUrl: z127.string(),
2653
- accessToken: z127.string(),
2654
- designSystemId: z127.string(),
2655
- designSystemVersionId: z127.string(),
2656
- brandId: z127.string().optional(),
2657
- exporterPackageUrl: z127.string(),
2658
- exporterPropertyValues: ExporterPropertyValue.array(),
2659
- documentation: ExportJobDocumentationContext.optional()
2660
- });
2661
- var ExporterFunctionPayload = z128.object({
2662
- exportJobId: z128.string(),
2663
- exportContextId: z128.string(),
2664
- designSystemId: z128.string()
2665
- });
2666
2647
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
2667
2648
  var BITBUCKET_MAX_LENGTH = 64;
2668
- var ExporterDestinationDocs = z129.object({
2649
+ var ExporterDestinationDocs = z127.object({
2669
2650
  environment: PublishedDocEnvironment
2670
2651
  });
2671
- var ExporterDestinationS3 = z129.object({});
2672
- var ExporterDestinationGithub = z129.object({
2673
- connectionId: z129.string(),
2674
- branch: z129.string(),
2675
- relativePath: z129.string()
2652
+ var ExporterDestinationS3 = z127.object({});
2653
+ var ExporterDestinationGithub = z127.object({
2654
+ connectionId: z127.string(),
2655
+ branch: z127.string(),
2656
+ relativePath: z127.string()
2676
2657
  // // +
2677
2658
  // userId: z.coerce.string(),
2678
2659
  });
2679
- var ExporterDestinationAzure = z129.object({
2680
- connectionId: z129.string(),
2681
- organizationId: z129.string(),
2682
- projectId: z129.string(),
2683
- repositoryId: z129.string(),
2684
- branch: z129.string(),
2685
- relativePath: z129.string()
2660
+ var ExporterDestinationAzure = z127.object({
2661
+ connectionId: z127.string(),
2662
+ organizationId: z127.string(),
2663
+ projectId: z127.string(),
2664
+ repositoryId: z127.string(),
2665
+ branch: z127.string(),
2666
+ relativePath: z127.string()
2686
2667
  // // +
2687
2668
  // userId: z.coerce.string(),
2688
2669
  // url: z.string(),
2689
2670
  });
2690
- var ExporterDestinationGitlab = z129.object({
2691
- connectionId: z129.string(),
2692
- projectId: z129.string(),
2693
- branch: z129.string(),
2694
- relativePath: z129.string()
2671
+ var ExporterDestinationGitlab = z127.object({
2672
+ connectionId: z127.string(),
2673
+ projectId: z127.string(),
2674
+ branch: z127.string(),
2675
+ relativePath: z127.string()
2695
2676
  // // +
2696
2677
  // userId: z.coerce.string(),
2697
2678
  // url: z.string(),
2698
2679
  });
2699
- var ExporterDestinationBitbucket = z129.object({
2700
- connectionId: z129.string(),
2701
- workspaceSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2702
- projectKey: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2703
- repoSlug: z129.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2704
- branch: z129.string(),
2705
- relativePath: z129.string()
2680
+ var ExporterDestinationBitbucket = z127.object({
2681
+ connectionId: z127.string(),
2682
+ workspaceSlug: z127.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2683
+ projectKey: z127.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2684
+ repoSlug: z127.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2685
+ branch: z127.string(),
2686
+ relativePath: z127.string()
2706
2687
  // // +
2707
2688
  // userId: z.string(),
2708
2689
  // url: z.string(),
2709
2690
  });
2710
- var ExportDestinationsMap = z129.object({
2711
- webhookUrl: z129.string().optional(),
2691
+ var ExportDestinationsMap = z127.object({
2692
+ webhookUrl: z127.string().optional(),
2712
2693
  destinationSnDocs: ExporterDestinationDocs.optional(),
2713
2694
  destinationS3: ExporterDestinationS3.optional(),
2714
2695
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -2716,29 +2697,29 @@ var ExportDestinationsMap = z129.object({
2716
2697
  destinationGitlab: ExporterDestinationGitlab.optional(),
2717
2698
  destinationBitbucket: ExporterDestinationBitbucket.optional()
2718
2699
  });
2719
- var ExportJobDestinationType = z130.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2720
- var ExportJobStatus = z130.enum(["InProgress", "Success", "Failed", "Timeout"]);
2721
- var ExportJobLogEntryType = z130.enum(["success", "info", "warning", "error", "user"]);
2722
- var ExportJobLogEntry = z130.object({
2723
- id: z130.string().optional(),
2724
- time: z130.coerce.date(),
2700
+ var ExportJobDestinationType = z128.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2701
+ var ExportJobStatus = z128.enum(["InProgress", "Success", "Failed", "Timeout"]);
2702
+ var ExportJobLogEntryType = z128.enum(["success", "info", "warning", "error", "user"]);
2703
+ var ExportJobLogEntry = z128.object({
2704
+ id: z128.string().optional(),
2705
+ time: z128.coerce.date(),
2725
2706
  type: ExportJobLogEntryType,
2726
- message: z130.string()
2707
+ message: z128.string()
2727
2708
  });
2728
- var ExportJobPullRequestDestinationResult = z130.object({
2729
- pullRequestUrl: z130.string()
2709
+ var ExportJobPullRequestDestinationResult = z128.object({
2710
+ pullRequestUrl: z128.string()
2730
2711
  });
2731
- var ExportJobS3DestinationResult = z130.object({
2732
- bucket: z130.string(),
2733
- urlPrefix: z130.string().optional(),
2734
- path: z130.string(),
2735
- files: z130.array(z130.string())
2712
+ var ExportJobS3DestinationResult = z128.object({
2713
+ bucket: z128.string(),
2714
+ urlPrefix: z128.string().optional(),
2715
+ path: z128.string(),
2716
+ files: z128.array(z128.string())
2736
2717
  });
2737
- var ExportJobDocsDestinationResult = z130.object({
2738
- url: z130.string()
2718
+ var ExportJobDocsDestinationResult = z128.object({
2719
+ url: z128.string()
2739
2720
  });
2740
- var ExportJobResult = z130.object({
2741
- error: z130.string().optional(),
2721
+ var ExportJobResult = z128.object({
2722
+ error: z128.string().optional(),
2742
2723
  s3: ExportJobS3DestinationResult.optional(),
2743
2724
  github: ExportJobPullRequestDestinationResult.optional(),
2744
2725
  azure: ExportJobPullRequestDestinationResult.optional(),
@@ -2746,21 +2727,21 @@ var ExportJobResult = z130.object({
2746
2727
  bitbucket: ExportJobPullRequestDestinationResult.optional(),
2747
2728
  sndocs: ExportJobDocsDestinationResult.optional()
2748
2729
  });
2749
- var ExportJob = z130.object({
2750
- id: z130.string(),
2751
- createdAt: z130.date(),
2752
- finishedAt: z130.date().optional(),
2753
- designSystemId: z130.string(),
2754
- designSystemVersionId: z130.string(),
2755
- workspaceId: z130.string(),
2756
- scheduleId: z130.string().nullish(),
2757
- exporterId: z130.string(),
2758
- brandId: z130.string().optional(),
2759
- themeId: z130.string().optional(),
2760
- estimatedExecutionTime: z130.number().optional(),
2730
+ var ExportJob = z128.object({
2731
+ id: z128.string(),
2732
+ createdAt: z128.date(),
2733
+ finishedAt: z128.date().optional(),
2734
+ designSystemId: z128.string(),
2735
+ designSystemVersionId: z128.string(),
2736
+ workspaceId: z128.string(),
2737
+ scheduleId: z128.string().nullish(),
2738
+ exporterId: z128.string(),
2739
+ brandId: z128.string().optional(),
2740
+ themeId: z128.string().optional(),
2741
+ estimatedExecutionTime: z128.number().optional(),
2761
2742
  status: ExportJobStatus,
2762
2743
  result: ExportJobResult.optional(),
2763
- createdByUserId: z130.string().optional(),
2744
+ createdByUserId: z128.string().optional(),
2764
2745
  // Destinations
2765
2746
  ...ExportDestinationsMap.shape
2766
2747
  });
@@ -2775,9 +2756,29 @@ var ExportJobFindByFilter = ExportJob.pick({
2775
2756
  themeId: true,
2776
2757
  brandId: true
2777
2758
  }).extend({
2778
- destinations: z130.array(ExportJobDestinationType),
2759
+ destinations: z128.array(ExportJobDestinationType),
2779
2760
  docsEnvironment: PublishedDocEnvironment
2780
2761
  }).partial();
2762
+ var ExportJobDocumentationContext = z129.object({
2763
+ isSingleVersionDocs: z129.boolean(),
2764
+ versionSlug: z129.string(),
2765
+ environment: PublishedDocEnvironment
2766
+ });
2767
+ var ExportJobContext = z129.object({
2768
+ apiUrl: z129.string(),
2769
+ accessToken: z129.string(),
2770
+ designSystemId: z129.string(),
2771
+ designSystemVersionId: z129.string(),
2772
+ brandId: z129.string().optional(),
2773
+ exporterPackageUrl: z129.string(),
2774
+ exporterPropertyValues: ExporterPropertyValue.array(),
2775
+ documentation: ExportJobDocumentationContext.optional()
2776
+ });
2777
+ var ExporterFunctionPayload = z130.object({
2778
+ exportJobId: z130.string(),
2779
+ exportContextId: z130.string(),
2780
+ designSystemId: z130.string()
2781
+ });
2781
2782
  var ExporterScheduleEventType = z131.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
2782
2783
  var ExporterSchedule = z131.object({
2783
2784
  id: z131.string(),
@@ -2792,13 +2793,6 @@ var ExporterSchedule = z131.object({
2792
2793
  // Destinations
2793
2794
  ...ExportDestinationsMap.shape
2794
2795
  });
2795
- var ExporterWorkspaceMembershipRole = z132.enum(["Owner", "OwnerArchived", "User"]);
2796
- var ExporterWorkspaceMembership = z133.object({
2797
- id: z133.string(),
2798
- workspaceId: z133.string(),
2799
- exporterId: z133.string(),
2800
- role: ExporterWorkspaceMembershipRole
2801
- });
2802
2796
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2803
2797
  GitProviderNames2["Azure"] = "azure";
2804
2798
  GitProviderNames2["Github"] = "github";
@@ -2806,8 +2800,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2806
2800
  GitProviderNames2["Bitbucket"] = "bitbucket";
2807
2801
  return GitProviderNames2;
2808
2802
  })(GitProviderNames || {});
2809
- var GitProvider = z134.nativeEnum(GitProviderNames);
2810
- var PulsarPropertyType = z135.enum([
2803
+ var GitProvider = z132.nativeEnum(GitProviderNames);
2804
+ var PulsarPropertyType = z133.enum([
2811
2805
  "string",
2812
2806
  "number",
2813
2807
  "boolean",
@@ -2820,70 +2814,77 @@ var PulsarPropertyType = z135.enum([
2820
2814
  "tokenProperties",
2821
2815
  "tokenType"
2822
2816
  ]);
2823
- var PulsarBaseProperty = z135.object({
2824
- label: z135.string(),
2825
- key: z135.string(),
2826
- description: z135.string().nullish(),
2817
+ var PulsarBaseProperty = z133.object({
2818
+ label: z133.string(),
2819
+ key: z133.string(),
2820
+ description: z133.string().nullish(),
2827
2821
  type: PulsarPropertyType,
2828
- values: z135.array(z135.string()).nullish(),
2829
- default: z135.union([z135.string(), z135.boolean(), z135.number()]).nullish(),
2822
+ values: z133.array(z133.string()).nullish(),
2823
+ default: z133.union([z133.string(), z133.boolean(), z133.number()]).nullish(),
2830
2824
  // PulsarPropertyValueType //is optional?
2831
- inputType: z135.enum(["code", "plain"]).optional(),
2825
+ inputType: z133.enum(["code", "plain"]).optional(),
2832
2826
  //is optional?
2833
- isMultiline: z135.boolean().nullish()
2827
+ isMultiline: z133.boolean().nullish()
2834
2828
  });
2835
2829
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2836
- category: z135.string()
2837
- });
2838
- var PulsarContributionVariant = z135.object({
2839
- key: z135.string(),
2840
- name: z135.string(),
2841
- isDefault: nullishToOptional(z135.boolean()),
2842
- description: nullishToOptional(z135.string()),
2843
- thumbnailURL: nullishToOptional(z135.string())
2844
- });
2845
- var PulsarCustomBlock = z135.object({
2846
- title: nullishToOptional(z135.string()),
2847
- key: z135.string(),
2848
- category: nullishToOptional(z135.string()),
2849
- description: nullishToOptional(z135.string()),
2850
- iconURL: nullishToOptional(z135.string()),
2851
- mode: nullishToOptional(z135.enum(["array", "block"])),
2852
- properties: nullishToOptional(z135.array(PulsarBaseProperty)).transform((v) => v ?? [])
2853
- });
2854
- var ExporterType = z136.enum(["code", "documentation"]);
2855
- var ExporterSource = z136.enum(["git", "upload"]);
2856
- var ExporterTag = z136.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2857
- var ExporterDetails = z136.object({
2858
- description: z136.string(),
2859
- version: z136.string(),
2860
- routingVersion: nullishToOptional(z136.string()),
2861
- author: nullishToOptional(z136.string()),
2862
- organization: nullishToOptional(z136.string()),
2863
- homepage: nullishToOptional(z136.string()),
2864
- readme: nullishToOptional(z136.string()),
2865
- tags: nullishToOptional(z136.array(ExporterTag)).default([]),
2866
- packageId: nullishToOptional(z136.string().max(255)),
2867
- iconURL: nullishToOptional(z136.string()),
2868
- configurationProperties: nullishToOptional(z136.array(PulsarContributionConfigurationProperty)).default([]),
2869
- customBlocks: nullishToOptional(z136.array(PulsarCustomBlock)).default([]),
2870
- blockVariants: nullishToOptional(z136.record(z136.string(), z136.array(PulsarContributionVariant))).default({}),
2871
- usesBrands: nullishToOptional(z136.boolean()).default(false),
2872
- usesThemes: nullishToOptional(z136.boolean()).default(false),
2830
+ category: z133.string()
2831
+ });
2832
+ var PulsarContributionVariant = z133.object({
2833
+ key: z133.string(),
2834
+ name: z133.string(),
2835
+ isDefault: nullishToOptional(z133.boolean()),
2836
+ description: nullishToOptional(z133.string()),
2837
+ thumbnailURL: nullishToOptional(z133.string())
2838
+ });
2839
+ var PulsarCustomBlock = z133.object({
2840
+ title: nullishToOptional(z133.string()),
2841
+ key: z133.string(),
2842
+ category: nullishToOptional(z133.string()),
2843
+ description: nullishToOptional(z133.string()),
2844
+ iconURL: nullishToOptional(z133.string()),
2845
+ mode: nullishToOptional(z133.enum(["array", "block"])),
2846
+ properties: nullishToOptional(z133.array(PulsarBaseProperty)).transform((v) => v ?? [])
2847
+ });
2848
+ var ExporterType = z134.enum(["code", "documentation"]);
2849
+ var ExporterSource = z134.enum(["git", "upload"]);
2850
+ var ExporterTag = z134.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2851
+ var ExporterDetails = z134.object({
2852
+ description: z134.string(),
2853
+ version: z134.string(),
2854
+ routingVersion: nullishToOptional(z134.string()),
2855
+ author: nullishToOptional(z134.string()),
2856
+ organization: nullishToOptional(z134.string()),
2857
+ homepage: nullishToOptional(z134.string()),
2858
+ readme: nullishToOptional(z134.string()),
2859
+ tags: nullishToOptional(z134.array(ExporterTag)).default([]),
2860
+ packageId: nullishToOptional(z134.string().max(255)),
2861
+ iconURL: nullishToOptional(z134.string()),
2862
+ configurationProperties: nullishToOptional(z134.array(PulsarContributionConfigurationProperty)).default([]),
2863
+ customBlocks: nullishToOptional(z134.array(PulsarCustomBlock)).default([]),
2864
+ blockVariants: nullishToOptional(z134.record(z134.string(), z134.array(PulsarContributionVariant))).default({}),
2865
+ usesBrands: nullishToOptional(z134.boolean()).default(false),
2866
+ usesThemes: nullishToOptional(z134.boolean()).default(false),
2873
2867
  source: ExporterSource,
2874
2868
  gitProvider: nullishToOptional(GitProvider),
2875
- gitUrl: nullishToOptional(z136.string()),
2876
- gitBranch: nullishToOptional(z136.string()),
2877
- gitDirectory: nullishToOptional(z136.string())
2878
- });
2879
- var Exporter = z136.object({
2880
- id: z136.string(),
2881
- createdAt: z136.coerce.date(),
2882
- name: z136.string(),
2883
- isPrivate: z136.boolean(),
2869
+ gitUrl: nullishToOptional(z134.string()),
2870
+ gitBranch: nullishToOptional(z134.string()),
2871
+ gitDirectory: nullishToOptional(z134.string())
2872
+ });
2873
+ var Exporter = z134.object({
2874
+ id: z134.string(),
2875
+ createdAt: z134.coerce.date(),
2876
+ name: z134.string(),
2877
+ isPrivate: z134.boolean(),
2884
2878
  details: ExporterDetails,
2885
2879
  exporterType: nullishToOptional(ExporterType).default("code"),
2886
- storagePath: nullishToOptional(z136.string()).default("")
2880
+ storagePath: nullishToOptional(z134.string()).default("")
2881
+ });
2882
+ var ExporterWorkspaceMembershipRole = z135.enum(["Owner", "OwnerArchived", "User"]);
2883
+ var ExporterWorkspaceMembership = z136.object({
2884
+ id: z136.string(),
2885
+ workspaceId: z136.string(),
2886
+ exporterId: z136.string(),
2887
+ role: ExporterWorkspaceMembershipRole
2887
2888
  });
2888
2889
  var FlaggedFeature = z137.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
2889
2890
  var FeatureFlagMap = z137.record(FlaggedFeature, z137.boolean());
@@ -4233,7 +4234,13 @@ var DTOCreateVersionInput = z155.object({
4233
4234
  version: z155.string().refine(validateDesignSystemVersion, {
4234
4235
  message: "Invalid semantic versioning format"
4235
4236
  }),
4236
- changeLog: z155.string().max(2e3).optional()
4237
+ changeLog: z155.string().optional()
4238
+ });
4239
+ var DTOUpdateVersionInput = z155.object({
4240
+ meta: ObjectMeta2,
4241
+ version: z155.string(),
4242
+ // required for PUT, but not editable
4243
+ changeLog: z155.string()
4237
4244
  });
4238
4245
 
4239
4246
  // src/api/payloads/documentation/block-definitions.ts
@@ -8846,6 +8853,7 @@ export {
8846
8853
  DTOUpdateDocumentationGroupInput,
8847
8854
  DTOUpdateDocumentationPageInputV2,
8848
8855
  DTOUpdateElementPropertyDefinitionInputV2,
8856
+ DTOUpdateVersionInput,
8849
8857
  DTOUserWorkspaceMembership,
8850
8858
  DTOUserWorkspaceMembershipsResponse,
8851
8859
  DTOWorkspace,