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