@supernova-studio/client 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.d.mts +81 -49
- package/dist/index.d.ts +81 -49
- package/dist/index.js +42 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +158 -147
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/workspaces/npm-registry.ts +6 -2
- package/src/api/payloads/design-systems/version.ts +9 -1
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 =
|
|
2649
|
+
var ExporterDestinationDocs = z127.object({
|
|
2670
2650
|
environment: PublishedDocEnvironment
|
|
2671
2651
|
});
|
|
2672
|
-
var ExporterDestinationS3 =
|
|
2673
|
-
var ExporterDestinationGithub =
|
|
2674
|
-
connectionId:
|
|
2675
|
-
branch:
|
|
2676
|
-
relativePath:
|
|
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 =
|
|
2681
|
-
connectionId:
|
|
2682
|
-
organizationId:
|
|
2683
|
-
projectId:
|
|
2684
|
-
repositoryId:
|
|
2685
|
-
branch:
|
|
2686
|
-
relativePath:
|
|
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 =
|
|
2692
|
-
connectionId:
|
|
2693
|
-
projectId:
|
|
2694
|
-
branch:
|
|
2695
|
-
relativePath:
|
|
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 =
|
|
2701
|
-
connectionId:
|
|
2702
|
-
workspaceSlug:
|
|
2703
|
-
projectKey:
|
|
2704
|
-
repoSlug:
|
|
2705
|
-
branch:
|
|
2706
|
-
relativePath:
|
|
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 =
|
|
2712
|
-
webhookUrl:
|
|
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 =
|
|
2721
|
-
var ExportJobStatus =
|
|
2722
|
-
var ExportJobLogEntryType =
|
|
2723
|
-
var ExportJobLogEntry =
|
|
2724
|
-
id:
|
|
2725
|
-
time:
|
|
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:
|
|
2707
|
+
message: z128.string()
|
|
2728
2708
|
});
|
|
2729
|
-
var ExportJobPullRequestDestinationResult =
|
|
2730
|
-
pullRequestUrl:
|
|
2709
|
+
var ExportJobPullRequestDestinationResult = z128.object({
|
|
2710
|
+
pullRequestUrl: z128.string()
|
|
2731
2711
|
});
|
|
2732
|
-
var ExportJobS3DestinationResult =
|
|
2733
|
-
bucket:
|
|
2734
|
-
urlPrefix:
|
|
2735
|
-
path:
|
|
2736
|
-
files:
|
|
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 =
|
|
2739
|
-
url:
|
|
2718
|
+
var ExportJobDocsDestinationResult = z128.object({
|
|
2719
|
+
url: z128.string()
|
|
2740
2720
|
});
|
|
2741
|
-
var ExportJobResult =
|
|
2742
|
-
error:
|
|
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 =
|
|
2751
|
-
id:
|
|
2752
|
-
createdAt:
|
|
2753
|
-
finishedAt:
|
|
2754
|
-
designSystemId:
|
|
2755
|
-
designSystemVersionId:
|
|
2756
|
-
workspaceId:
|
|
2757
|
-
scheduleId:
|
|
2758
|
-
exporterId:
|
|
2759
|
-
brandId:
|
|
2760
|
-
themeId:
|
|
2761
|
-
estimatedExecutionTime:
|
|
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:
|
|
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:
|
|
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 =
|
|
2811
|
-
var PulsarPropertyType =
|
|
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 =
|
|
2825
|
-
label:
|
|
2826
|
-
key:
|
|
2827
|
-
description:
|
|
2817
|
+
var PulsarBaseProperty = z133.object({
|
|
2818
|
+
label: z133.string(),
|
|
2819
|
+
key: z133.string(),
|
|
2820
|
+
description: z133.string().nullish(),
|
|
2828
2821
|
type: PulsarPropertyType,
|
|
2829
|
-
values:
|
|
2830
|
-
default:
|
|
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:
|
|
2825
|
+
inputType: z133.enum(["code", "plain"]).optional(),
|
|
2833
2826
|
//is optional?
|
|
2834
|
-
isMultiline:
|
|
2827
|
+
isMultiline: z133.boolean().nullish()
|
|
2835
2828
|
});
|
|
2836
2829
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2837
|
-
category:
|
|
2838
|
-
});
|
|
2839
|
-
var PulsarContributionVariant =
|
|
2840
|
-
key:
|
|
2841
|
-
name:
|
|
2842
|
-
isDefault: nullishToOptional(
|
|
2843
|
-
description: nullishToOptional(
|
|
2844
|
-
thumbnailURL: nullishToOptional(
|
|
2845
|
-
});
|
|
2846
|
-
var PulsarCustomBlock =
|
|
2847
|
-
title: nullishToOptional(
|
|
2848
|
-
key:
|
|
2849
|
-
category: nullishToOptional(
|
|
2850
|
-
description: nullishToOptional(
|
|
2851
|
-
iconURL: nullishToOptional(
|
|
2852
|
-
mode: nullishToOptional(
|
|
2853
|
-
properties: nullishToOptional(
|
|
2854
|
-
});
|
|
2855
|
-
var ExporterType =
|
|
2856
|
-
var ExporterSource =
|
|
2857
|
-
var ExporterTag =
|
|
2858
|
-
var ExporterDetails =
|
|
2859
|
-
description:
|
|
2860
|
-
version:
|
|
2861
|
-
routingVersion: nullishToOptional(
|
|
2862
|
-
author: nullishToOptional(
|
|
2863
|
-
organization: nullishToOptional(
|
|
2864
|
-
homepage: nullishToOptional(
|
|
2865
|
-
readme: nullishToOptional(
|
|
2866
|
-
tags: nullishToOptional(
|
|
2867
|
-
packageId: nullishToOptional(
|
|
2868
|
-
iconURL: nullishToOptional(
|
|
2869
|
-
configurationProperties: nullishToOptional(
|
|
2870
|
-
customBlocks: nullishToOptional(
|
|
2871
|
-
blockVariants: nullishToOptional(
|
|
2872
|
-
usesBrands: nullishToOptional(
|
|
2873
|
-
usesThemes: nullishToOptional(
|
|
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(
|
|
2877
|
-
gitBranch: nullishToOptional(
|
|
2878
|
-
gitDirectory: nullishToOptional(
|
|
2879
|
-
});
|
|
2880
|
-
var Exporter =
|
|
2881
|
-
id:
|
|
2882
|
-
createdAt:
|
|
2883
|
-
name:
|
|
2884
|
-
isPrivate:
|
|
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(
|
|
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().
|
|
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
|
|
@@ -4966,6 +4972,9 @@ import { z as z184 } from "zod";
|
|
|
4966
4972
|
|
|
4967
4973
|
// src/api/dto/workspaces/npm-registry.ts
|
|
4968
4974
|
import { z as z183 } from "zod";
|
|
4975
|
+
var DTONpmRegistryConfigConstants = {
|
|
4976
|
+
passwordPlaceholder: "redacted"
|
|
4977
|
+
};
|
|
4969
4978
|
var DTONpmRegistryConfig = z183.object({
|
|
4970
4979
|
// Registry basic configuration
|
|
4971
4980
|
registryType: NpmRegistryType,
|
|
@@ -4975,9 +4984,9 @@ var DTONpmRegistryConfig = z183.object({
|
|
|
4975
4984
|
proxyUrl: z183.string(),
|
|
4976
4985
|
// Auth configuration
|
|
4977
4986
|
authType: NpmRegistryAuthType,
|
|
4978
|
-
accessToken: z183.literal(
|
|
4987
|
+
accessToken: z183.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
4979
4988
|
username: z183.string().optional(),
|
|
4980
|
-
password: z183.literal(
|
|
4989
|
+
password: z183.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
4981
4990
|
// NPM package scopes for whih the proxy should be enabled
|
|
4982
4991
|
enabledScopes: z183.array(z183.string()),
|
|
4983
4992
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
@@ -8838,6 +8847,7 @@ export {
|
|
|
8838
8847
|
DTOMoveDocumentationGroupInput,
|
|
8839
8848
|
DTOMoveDocumentationPageInputV2,
|
|
8840
8849
|
DTONpmRegistryConfig,
|
|
8850
|
+
DTONpmRegistryConfigConstants,
|
|
8841
8851
|
DTOPropertyDefinitionCreateActionInputV2,
|
|
8842
8852
|
DTOPropertyDefinitionCreateActionOutputV2,
|
|
8843
8853
|
DTOPropertyDefinitionDeleteActionInputV2,
|
|
@@ -8847,6 +8857,7 @@ export {
|
|
|
8847
8857
|
DTOUpdateDocumentationGroupInput,
|
|
8848
8858
|
DTOUpdateDocumentationPageInputV2,
|
|
8849
8859
|
DTOUpdateElementPropertyDefinitionInputV2,
|
|
8860
|
+
DTOUpdateVersionInput,
|
|
8850
8861
|
DTOUserWorkspaceMembership,
|
|
8851
8862
|
DTOUserWorkspaceMembershipsResponse,
|
|
8852
8863
|
DTOWorkspace,
|