@supernova-studio/client 0.42.0 → 0.44.0
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 +2089 -434
- package/dist/index.d.ts +2089 -434
- package/dist/index.js +80 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +510 -476
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +1 -0
- package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +1 -0
- package/src/api/conversion/index.ts +1 -0
- package/src/api/conversion/integrations/index.ts +1 -0
- package/src/api/conversion/integrations/integration.ts +12 -0
- package/src/api/dto/elements/documentation/group-v2.ts +5 -7
- package/src/api/dto/elements/documentation/page-v2.ts +8 -9
- package/src/api/dto/workspaces/integrations.ts +12 -1
- package/src/api/payloads/liveblocks/auth.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -218,21 +218,23 @@ import { z as z126 } from "zod";
|
|
|
218
218
|
import { z as z124 } from "zod";
|
|
219
219
|
import { z as z125 } from "zod";
|
|
220
220
|
import { z as z127 } from "zod";
|
|
221
|
-
import { z as
|
|
221
|
+
import { z as z134 } from "zod";
|
|
222
222
|
import { z as z128 } from "zod";
|
|
223
223
|
import { z as z129 } from "zod";
|
|
224
224
|
import { z as z130 } from "zod";
|
|
225
225
|
import { z as z131 } from "zod";
|
|
226
|
+
import { z as z132 } from "zod";
|
|
226
227
|
import { z as z133 } from "zod";
|
|
227
228
|
import { z as z135 } from "zod";
|
|
228
|
-
import { z as z134 } from "zod";
|
|
229
|
-
import { z as z136 } from "zod";
|
|
230
229
|
import { z as z137 } from "zod";
|
|
230
|
+
import { z as z136 } from "zod";
|
|
231
231
|
import { z as z138 } from "zod";
|
|
232
232
|
import { z as z139 } from "zod";
|
|
233
233
|
import { z as z140 } from "zod";
|
|
234
234
|
import { z as z141 } from "zod";
|
|
235
235
|
import { z as z142 } from "zod";
|
|
236
|
+
import { z as z143 } from "zod";
|
|
237
|
+
import { z as z144 } from "zod";
|
|
236
238
|
import slugifyImplementation from "@sindresorhus/slugify";
|
|
237
239
|
var PluginOAuthRequestSchema = z.object({
|
|
238
240
|
id: z.string(),
|
|
@@ -331,7 +333,8 @@ var FeaturesSummary = z6.object({
|
|
|
331
333
|
sso: featureToggleSchema,
|
|
332
334
|
workspacePaidSeats: featureLimitedSchema,
|
|
333
335
|
workspaceViewers: featureLimitedSchema,
|
|
334
|
-
customDocumentationExporter: featureToggleSchema
|
|
336
|
+
customDocumentationExporter: featureToggleSchema,
|
|
337
|
+
protectedPages: featureToggleSchema
|
|
335
338
|
});
|
|
336
339
|
var InvoiceSchema = z7.object({
|
|
337
340
|
id: z7.string(),
|
|
@@ -1284,8 +1287,8 @@ var defaultDocumentationItemHeaderV2 = {
|
|
|
1284
1287
|
};
|
|
1285
1288
|
var DocumentationItemConfigurationV2 = z41.object({
|
|
1286
1289
|
showSidebar: z41.boolean(),
|
|
1287
|
-
isPrivate: z41.boolean()
|
|
1288
|
-
isHidden: z41.boolean()
|
|
1290
|
+
isPrivate: z41.boolean(),
|
|
1291
|
+
isHidden: z41.boolean(),
|
|
1289
1292
|
header: DocumentationItemHeaderV2
|
|
1290
1293
|
});
|
|
1291
1294
|
var DocumentationPageDataV2 = z42.object({
|
|
@@ -2886,68 +2889,77 @@ var UserLinkedIntegrations = z128.object({
|
|
|
2886
2889
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
2887
2890
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
2888
2891
|
});
|
|
2889
|
-
var
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
var
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2892
|
+
var CreateUserInput = z129.object({
|
|
2893
|
+
email: z129.string(),
|
|
2894
|
+
name: z129.string(),
|
|
2895
|
+
username: z129.string()
|
|
2896
|
+
});
|
|
2897
|
+
var UserIdentity = z130.object({
|
|
2898
|
+
id: z130.string(),
|
|
2899
|
+
userId: z130.string()
|
|
2900
|
+
});
|
|
2901
|
+
var UserOnboardingDepartment = z131.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
2902
|
+
var UserOnboardingJobLevel = z131.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2903
|
+
var UserOnboarding = z131.object({
|
|
2904
|
+
companyName: z131.string().optional(),
|
|
2905
|
+
numberOfPeopleInOrg: z131.string().optional(),
|
|
2906
|
+
numberOfPeopleInDesignTeam: z131.string().optional(),
|
|
2899
2907
|
department: UserOnboardingDepartment.optional(),
|
|
2900
|
-
jobTitle:
|
|
2901
|
-
phase:
|
|
2908
|
+
jobTitle: z131.string().optional(),
|
|
2909
|
+
phase: z131.string().optional(),
|
|
2902
2910
|
jobLevel: UserOnboardingJobLevel.optional()
|
|
2903
2911
|
});
|
|
2904
|
-
var UserProfile =
|
|
2905
|
-
name:
|
|
2906
|
-
avatar:
|
|
2907
|
-
nickname:
|
|
2912
|
+
var UserProfile = z131.object({
|
|
2913
|
+
name: z131.string(),
|
|
2914
|
+
avatar: z131.string().optional(),
|
|
2915
|
+
nickname: z131.string().optional(),
|
|
2908
2916
|
onboarding: UserOnboarding.optional()
|
|
2909
2917
|
});
|
|
2910
|
-
var
|
|
2911
|
-
id:
|
|
2912
|
-
email:
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2918
|
+
var UserTest = z132.object({
|
|
2919
|
+
id: z132.string(),
|
|
2920
|
+
email: z132.string()
|
|
2921
|
+
});
|
|
2922
|
+
var User = z133.object({
|
|
2923
|
+
id: z133.string(),
|
|
2924
|
+
email: z133.string(),
|
|
2925
|
+
emailVerified: z133.boolean(),
|
|
2926
|
+
createdAt: z133.coerce.date(),
|
|
2927
|
+
trialExpiresAt: z133.coerce.date().optional(),
|
|
2916
2928
|
profile: UserProfile,
|
|
2917
2929
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2918
|
-
loggedOutAt:
|
|
2919
|
-
isProtected:
|
|
2930
|
+
loggedOutAt: z133.coerce.date().optional(),
|
|
2931
|
+
isProtected: z133.boolean()
|
|
2920
2932
|
});
|
|
2921
|
-
var NpmProxyToken =
|
|
2922
|
-
access:
|
|
2923
|
-
expiresAt:
|
|
2933
|
+
var NpmProxyToken = z134.object({
|
|
2934
|
+
access: z134.string(),
|
|
2935
|
+
expiresAt: z134.number()
|
|
2924
2936
|
});
|
|
2925
|
-
var SessionData =
|
|
2926
|
-
returnToUrl:
|
|
2937
|
+
var SessionData = z134.object({
|
|
2938
|
+
returnToUrl: z134.string().optional(),
|
|
2927
2939
|
npmProxyToken: NpmProxyToken.optional()
|
|
2928
2940
|
});
|
|
2929
|
-
var Session =
|
|
2930
|
-
id:
|
|
2931
|
-
expiresAt:
|
|
2932
|
-
userId:
|
|
2941
|
+
var Session = z134.object({
|
|
2942
|
+
id: z134.string(),
|
|
2943
|
+
expiresAt: z134.coerce.date(),
|
|
2944
|
+
userId: z134.string().nullable(),
|
|
2933
2945
|
data: SessionData
|
|
2934
2946
|
});
|
|
2935
|
-
var AuthTokens =
|
|
2936
|
-
access:
|
|
2937
|
-
refresh:
|
|
2947
|
+
var AuthTokens = z134.object({
|
|
2948
|
+
access: z134.string(),
|
|
2949
|
+
refresh: z134.string()
|
|
2938
2950
|
});
|
|
2939
|
-
var UserSession =
|
|
2951
|
+
var UserSession = z134.object({
|
|
2940
2952
|
session: Session,
|
|
2941
2953
|
user: User.nullable()
|
|
2942
2954
|
});
|
|
2943
|
-
var FlaggedFeature =
|
|
2944
|
-
var FeatureFlagMap =
|
|
2945
|
-
var FeatureFlag =
|
|
2946
|
-
id:
|
|
2955
|
+
var FlaggedFeature = z135.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
2956
|
+
var FeatureFlagMap = z135.record(FlaggedFeature, z135.boolean());
|
|
2957
|
+
var FeatureFlag = z135.object({
|
|
2958
|
+
id: z135.string(),
|
|
2947
2959
|
feature: FlaggedFeature,
|
|
2948
|
-
createdAt:
|
|
2949
|
-
enabled:
|
|
2950
|
-
designSystemId:
|
|
2960
|
+
createdAt: z135.coerce.date(),
|
|
2961
|
+
enabled: z135.boolean(),
|
|
2962
|
+
designSystemId: z135.string().optional()
|
|
2951
2963
|
});
|
|
2952
2964
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
2953
2965
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -2957,90 +2969,91 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
2957
2969
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
2958
2970
|
return OAuthProviderNames2;
|
|
2959
2971
|
})(OAuthProviderNames || {});
|
|
2960
|
-
var OAuthProviderSchema =
|
|
2972
|
+
var OAuthProviderSchema = z136.nativeEnum(OAuthProviderNames);
|
|
2961
2973
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
2962
|
-
var ExternalOAuthRequest =
|
|
2963
|
-
id:
|
|
2974
|
+
var ExternalOAuthRequest = z137.object({
|
|
2975
|
+
id: z137.string(),
|
|
2964
2976
|
provider: OAuthProviderSchema,
|
|
2965
|
-
userId:
|
|
2966
|
-
state:
|
|
2967
|
-
createdAt:
|
|
2968
|
-
});
|
|
2969
|
-
var IntegrationType = z136.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2970
|
-
var Integration = z136.object({
|
|
2971
|
-
id: z136.string(),
|
|
2972
|
-
workspaceId: z136.string(),
|
|
2973
|
-
type: IntegrationType,
|
|
2974
|
-
createdAt: z136.coerce.date()
|
|
2977
|
+
userId: z137.string(),
|
|
2978
|
+
state: z137.string(),
|
|
2979
|
+
createdAt: z137.coerce.date()
|
|
2975
2980
|
});
|
|
2976
|
-
var IntegrationCredentialsType =
|
|
2977
|
-
var IntegrationCredentialsProfile =
|
|
2978
|
-
id:
|
|
2979
|
-
username:
|
|
2980
|
-
avatarUrl:
|
|
2981
|
+
var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT"]);
|
|
2982
|
+
var IntegrationCredentialsProfile = z138.object({
|
|
2983
|
+
id: z138.string(),
|
|
2984
|
+
username: z138.string().optional(),
|
|
2985
|
+
avatarUrl: z138.string().optional()
|
|
2981
2986
|
});
|
|
2982
|
-
var IntegrationCredentialsSchema =
|
|
2983
|
-
id:
|
|
2987
|
+
var IntegrationCredentialsSchema = z138.object({
|
|
2988
|
+
id: z138.string(),
|
|
2984
2989
|
type: IntegrationCredentialsType,
|
|
2985
|
-
integrationId:
|
|
2986
|
-
accessToken:
|
|
2987
|
-
userId:
|
|
2988
|
-
createdAt:
|
|
2989
|
-
refreshToken:
|
|
2990
|
+
integrationId: z138.string(),
|
|
2991
|
+
accessToken: z138.string(),
|
|
2992
|
+
userId: z138.string(),
|
|
2993
|
+
createdAt: z138.coerce.date(),
|
|
2994
|
+
refreshToken: z138.string().optional(),
|
|
2990
2995
|
profile: IntegrationCredentialsProfile.optional()
|
|
2991
2996
|
});
|
|
2992
|
-
var
|
|
2993
|
-
|
|
2994
|
-
provider: OAuthProviderSchema,
|
|
2995
|
-
scope: z137.string(),
|
|
2996
|
-
userId: z137.string(),
|
|
2997
|
-
accessToken: z137.string(),
|
|
2998
|
-
refreshToken: z137.string(),
|
|
2999
|
-
expiresAt: z137.coerce.date(),
|
|
3000
|
-
externalUserId: z137.string().nullish()
|
|
3001
|
-
});
|
|
3002
|
-
var WorkspaceOAuthRequestSchema = z138.object({
|
|
2997
|
+
var IntegrationType = z138.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2998
|
+
var Integration = z138.object({
|
|
3003
2999
|
id: z138.string(),
|
|
3004
3000
|
workspaceId: z138.string(),
|
|
3001
|
+
type: IntegrationType,
|
|
3002
|
+
createdAt: z138.coerce.date(),
|
|
3003
|
+
integrationCredentials: z138.array(IntegrationCredentialsSchema).optional()
|
|
3004
|
+
});
|
|
3005
|
+
var IntegrationTokenSchema = z139.object({
|
|
3006
|
+
id: z139.string(),
|
|
3005
3007
|
provider: OAuthProviderSchema,
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
+
scope: z139.string(),
|
|
3009
|
+
userId: z139.string(),
|
|
3010
|
+
accessToken: z139.string(),
|
|
3011
|
+
refreshToken: z139.string(),
|
|
3012
|
+
expiresAt: z139.coerce.date(),
|
|
3013
|
+
externalUserId: z139.string().nullish()
|
|
3014
|
+
});
|
|
3015
|
+
var WorkspaceOAuthRequestSchema = z140.object({
|
|
3016
|
+
id: z140.string(),
|
|
3017
|
+
workspaceId: z140.string(),
|
|
3018
|
+
provider: OAuthProviderSchema,
|
|
3019
|
+
userId: z140.string(),
|
|
3020
|
+
createdAt: z140.coerce.date()
|
|
3008
3021
|
});
|
|
3009
|
-
var AnyRecord =
|
|
3022
|
+
var AnyRecord = z141.record(z141.any());
|
|
3010
3023
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
3011
|
-
|
|
3012
|
-
tarball:
|
|
3024
|
+
z141.object({
|
|
3025
|
+
tarball: z141.string()
|
|
3013
3026
|
})
|
|
3014
3027
|
);
|
|
3015
3028
|
var NpmPackageVersion = AnyRecord.and(
|
|
3016
|
-
|
|
3029
|
+
z141.object({
|
|
3017
3030
|
dist: NpmPackageVersionDist
|
|
3018
3031
|
})
|
|
3019
3032
|
);
|
|
3020
3033
|
var NpmPackage = AnyRecord.and(
|
|
3021
|
-
|
|
3022
|
-
_id:
|
|
3023
|
-
name:
|
|
3034
|
+
z141.object({
|
|
3035
|
+
_id: z141.string(),
|
|
3036
|
+
name: z141.string(),
|
|
3024
3037
|
// e.g. "latest": "1.2.3"
|
|
3025
|
-
"dist-tags":
|
|
3038
|
+
"dist-tags": z141.record(z141.string(), z141.string()),
|
|
3026
3039
|
// "1.2.3": {...}
|
|
3027
|
-
versions:
|
|
3040
|
+
versions: z141.record(NpmPackageVersion)
|
|
3028
3041
|
})
|
|
3029
3042
|
);
|
|
3030
|
-
var NpmProxyTokenPayload =
|
|
3031
|
-
npmProxyRegistryConfigId:
|
|
3043
|
+
var NpmProxyTokenPayload = z142.object({
|
|
3044
|
+
npmProxyRegistryConfigId: z142.string()
|
|
3032
3045
|
});
|
|
3033
|
-
var PersonalAccessToken =
|
|
3034
|
-
id:
|
|
3035
|
-
userId:
|
|
3036
|
-
workspaceId:
|
|
3046
|
+
var PersonalAccessToken = z143.object({
|
|
3047
|
+
id: z143.string(),
|
|
3048
|
+
userId: z143.string(),
|
|
3049
|
+
workspaceId: z143.string().optional(),
|
|
3037
3050
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
3038
|
-
name:
|
|
3039
|
-
hidden:
|
|
3040
|
-
token:
|
|
3041
|
-
scope:
|
|
3042
|
-
createdAt:
|
|
3043
|
-
expireAt:
|
|
3051
|
+
name: z143.string(),
|
|
3052
|
+
hidden: z143.boolean(),
|
|
3053
|
+
token: z143.string(),
|
|
3054
|
+
scope: z143.string().optional(),
|
|
3055
|
+
createdAt: z143.coerce.date(),
|
|
3056
|
+
expireAt: z143.coerce.date().optional()
|
|
3044
3057
|
});
|
|
3045
3058
|
var SupernovaException = class _SupernovaException extends Error {
|
|
3046
3059
|
//
|
|
@@ -3128,25 +3141,25 @@ function groupBy(items, keyFn) {
|
|
|
3128
3141
|
}
|
|
3129
3142
|
return result;
|
|
3130
3143
|
}
|
|
3131
|
-
var ContentLoadInstruction =
|
|
3132
|
-
from:
|
|
3133
|
-
to:
|
|
3134
|
-
authorizationHeaderKvsId:
|
|
3135
|
-
timeout:
|
|
3136
|
-
});
|
|
3137
|
-
var ContentLoaderPayload =
|
|
3138
|
-
type:
|
|
3144
|
+
var ContentLoadInstruction = z144.object({
|
|
3145
|
+
from: z144.string(),
|
|
3146
|
+
to: z144.string(),
|
|
3147
|
+
authorizationHeaderKvsId: z144.string().optional(),
|
|
3148
|
+
timeout: z144.number().optional()
|
|
3149
|
+
});
|
|
3150
|
+
var ContentLoaderPayload = z144.object({
|
|
3151
|
+
type: z144.literal("Single"),
|
|
3139
3152
|
instruction: ContentLoadInstruction
|
|
3140
3153
|
}).or(
|
|
3141
|
-
|
|
3142
|
-
type:
|
|
3143
|
-
loadingChunkSize:
|
|
3144
|
-
instructions:
|
|
3154
|
+
z144.object({
|
|
3155
|
+
type: z144.literal("Multiple"),
|
|
3156
|
+
loadingChunkSize: z144.number().optional(),
|
|
3157
|
+
instructions: z144.array(ContentLoadInstruction)
|
|
3145
3158
|
})
|
|
3146
3159
|
).or(
|
|
3147
|
-
|
|
3148
|
-
type:
|
|
3149
|
-
location:
|
|
3160
|
+
z144.object({
|
|
3161
|
+
type: z144.literal("S3"),
|
|
3162
|
+
location: z144.string()
|
|
3150
3163
|
})
|
|
3151
3164
|
);
|
|
3152
3165
|
function slugify(str, options) {
|
|
@@ -3826,6 +3839,7 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
|
3826
3839
|
createdAt: group.createdAt,
|
|
3827
3840
|
updatedAt: group.updatedAt,
|
|
3828
3841
|
title: group.meta.name,
|
|
3842
|
+
configuration: documentationItemConfigurationToDTOV2(group?.data?.configuration),
|
|
3829
3843
|
childrenIds,
|
|
3830
3844
|
isRoot: !group.parentPersistentId,
|
|
3831
3845
|
groupBehavior: group.data?.behavior ?? "Group",
|
|
@@ -3912,6 +3926,7 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
|
|
|
3912
3926
|
title: page.meta.name,
|
|
3913
3927
|
slug: page.slug,
|
|
3914
3928
|
userSlug: page.userSlug,
|
|
3929
|
+
configuration: documentationItemConfigurationToDTOV2(page.data.configuration),
|
|
3915
3930
|
createdAt: page.createdAt,
|
|
3916
3931
|
updatedAt: page.updatedAt,
|
|
3917
3932
|
path,
|
|
@@ -4044,125 +4059,136 @@ function documentationPagesToDTOV1(pages, groups, routingVersion) {
|
|
|
4044
4059
|
});
|
|
4045
4060
|
}
|
|
4046
4061
|
|
|
4062
|
+
// src/api/conversion/integrations/integration.ts
|
|
4063
|
+
function integrationToDto(integration) {
|
|
4064
|
+
return {
|
|
4065
|
+
id: integration.id,
|
|
4066
|
+
workspaceId: integration.workspaceId,
|
|
4067
|
+
type: integration.type,
|
|
4068
|
+
createdAt: integration.createdAt,
|
|
4069
|
+
integrationCredentials: integration.integrationCredentials ?? void 0
|
|
4070
|
+
};
|
|
4071
|
+
}
|
|
4072
|
+
|
|
4047
4073
|
// src/api/dto/design-systems/brand.ts
|
|
4048
|
-
import { z as
|
|
4049
|
-
var DTOBrand =
|
|
4050
|
-
id:
|
|
4051
|
-
designSystemVersionId:
|
|
4052
|
-
persistentId:
|
|
4074
|
+
import { z as z145 } from "zod";
|
|
4075
|
+
var DTOBrand = z145.object({
|
|
4076
|
+
id: z145.string(),
|
|
4077
|
+
designSystemVersionId: z145.string(),
|
|
4078
|
+
persistentId: z145.string(),
|
|
4053
4079
|
meta: ObjectMeta
|
|
4054
4080
|
});
|
|
4055
|
-
var DTOBrandGetResponse =
|
|
4056
|
-
var DTOBrandCreateResponse =
|
|
4081
|
+
var DTOBrandGetResponse = z145.object({ brand: DTOBrand });
|
|
4082
|
+
var DTOBrandCreateResponse = z145.object({
|
|
4057
4083
|
brand: DTOBrand
|
|
4058
4084
|
});
|
|
4059
|
-
var DTOBrandsListResponse =
|
|
4085
|
+
var DTOBrandsListResponse = z145.object({ brands: z145.array(DTOBrand) });
|
|
4060
4086
|
|
|
4061
4087
|
// src/api/dto/design-systems/design-system.ts
|
|
4062
|
-
import { z as
|
|
4088
|
+
import { z as z146 } from "zod";
|
|
4063
4089
|
var DTODesignSystem = DesignSystem.omit({
|
|
4064
4090
|
name: true,
|
|
4065
4091
|
description: true,
|
|
4066
4092
|
docExporterId: true
|
|
4067
4093
|
}).extend({
|
|
4068
4094
|
meta: ObjectMeta,
|
|
4069
|
-
docExporterId:
|
|
4095
|
+
docExporterId: z146.string()
|
|
4070
4096
|
});
|
|
4071
4097
|
|
|
4072
4098
|
// src/api/dto/design-systems/exporter-property.ts
|
|
4073
|
-
import { z as
|
|
4074
|
-
var DTOExporterProperty =
|
|
4075
|
-
var DTOExporterPropertyListResponse =
|
|
4099
|
+
import { z as z147 } from "zod";
|
|
4100
|
+
var DTOExporterProperty = z147.any({});
|
|
4101
|
+
var DTOExporterPropertyListResponse = z147.object({ items: z147.array(DTOExporterProperty) });
|
|
4076
4102
|
|
|
4077
4103
|
// src/api/dto/design-systems/version.ts
|
|
4078
|
-
import { z as
|
|
4079
|
-
var DTODesignSystemVersion =
|
|
4080
|
-
id:
|
|
4081
|
-
createdAt:
|
|
4104
|
+
import { z as z148 } from "zod";
|
|
4105
|
+
var DTODesignSystemVersion = z148.object({
|
|
4106
|
+
id: z148.string(),
|
|
4107
|
+
createdAt: z148.date(),
|
|
4082
4108
|
meta: ObjectMeta,
|
|
4083
|
-
version:
|
|
4084
|
-
isReadonly:
|
|
4085
|
-
changeLog:
|
|
4086
|
-
designSystemId:
|
|
4109
|
+
version: z148.string(),
|
|
4110
|
+
isReadonly: z148.boolean(),
|
|
4111
|
+
changeLog: z148.string(),
|
|
4112
|
+
designSystemId: z148.string()
|
|
4087
4113
|
});
|
|
4088
|
-
var DTODesignSystemVersionsListResponse =
|
|
4089
|
-
designSystemVersions:
|
|
4114
|
+
var DTODesignSystemVersionsListResponse = z148.object({
|
|
4115
|
+
designSystemVersions: z148.array(DTODesignSystemVersion)
|
|
4090
4116
|
});
|
|
4091
|
-
var DTODesignSystemVersionGetResponse =
|
|
4117
|
+
var DTODesignSystemVersionGetResponse = z148.object({
|
|
4092
4118
|
designSystemVersion: DTODesignSystemVersion
|
|
4093
4119
|
});
|
|
4094
4120
|
|
|
4095
4121
|
// src/api/dto/design-systems/view.ts
|
|
4096
|
-
import { z as
|
|
4097
|
-
var DTOElementViewColumnSharedAttributes =
|
|
4098
|
-
id:
|
|
4099
|
-
persistentId:
|
|
4100
|
-
width:
|
|
4122
|
+
import { z as z149 } from "zod";
|
|
4123
|
+
var DTOElementViewColumnSharedAttributes = z149.object({
|
|
4124
|
+
id: z149.string(),
|
|
4125
|
+
persistentId: z149.string(),
|
|
4126
|
+
width: z149.number()
|
|
4101
4127
|
});
|
|
4102
4128
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4103
|
-
type:
|
|
4129
|
+
type: z149.literal("BaseProperty"),
|
|
4104
4130
|
basePropertyType: ElementViewBaseColumnType
|
|
4105
4131
|
});
|
|
4106
4132
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4107
|
-
type:
|
|
4108
|
-
propertyDefinitionId:
|
|
4133
|
+
type: z149.literal("PropertyDefinition"),
|
|
4134
|
+
propertyDefinitionId: z149.string()
|
|
4109
4135
|
});
|
|
4110
4136
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4111
|
-
type:
|
|
4112
|
-
themeId:
|
|
4137
|
+
type: z149.literal("Theme"),
|
|
4138
|
+
themeId: z149.string()
|
|
4113
4139
|
});
|
|
4114
|
-
var DTOElementViewColumn =
|
|
4140
|
+
var DTOElementViewColumn = z149.discriminatedUnion("type", [
|
|
4115
4141
|
DTOElementViewBasePropertyColumn,
|
|
4116
4142
|
DTOElementViewPropertyDefinitionColumn,
|
|
4117
4143
|
DTOElementViewThemeColumn
|
|
4118
4144
|
]);
|
|
4119
|
-
var DTOElementView =
|
|
4145
|
+
var DTOElementView = z149.object({
|
|
4120
4146
|
meta: ObjectMeta,
|
|
4121
|
-
persistentId:
|
|
4147
|
+
persistentId: z149.string(),
|
|
4122
4148
|
targetElementType: ElementPropertyTargetType,
|
|
4123
|
-
id:
|
|
4124
|
-
isDefault:
|
|
4125
|
-
columns:
|
|
4149
|
+
id: z149.string(),
|
|
4150
|
+
isDefault: z149.boolean(),
|
|
4151
|
+
columns: z149.array(DTOElementViewColumn)
|
|
4126
4152
|
});
|
|
4127
|
-
var DTOElementViewsListResponse =
|
|
4128
|
-
elementDataViews:
|
|
4153
|
+
var DTOElementViewsListResponse = z149.object({
|
|
4154
|
+
elementDataViews: z149.array(DTOElementView)
|
|
4129
4155
|
});
|
|
4130
4156
|
|
|
4131
4157
|
// src/api/dto/documentation/anchor.ts
|
|
4132
|
-
import { z as
|
|
4158
|
+
import { z as z150 } from "zod";
|
|
4133
4159
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4134
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
4135
|
-
anchors:
|
|
4160
|
+
var DTOGetDocumentationPageAnchorsResponse = z150.object({
|
|
4161
|
+
anchors: z150.array(DTODocumentationPageAnchor)
|
|
4136
4162
|
});
|
|
4137
4163
|
|
|
4138
4164
|
// src/api/dto/documentation/link-preview.ts
|
|
4139
|
-
import { z as
|
|
4140
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4165
|
+
import { z as z151 } from "zod";
|
|
4166
|
+
var DTODocumentationLinkPreviewResponse = z151.object({
|
|
4141
4167
|
linkPreview: DocumentationLinkPreview
|
|
4142
4168
|
});
|
|
4143
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4144
|
-
url:
|
|
4145
|
-
documentationItemPersistentId:
|
|
4169
|
+
var DTODocumentationLinkPreviewRequest = z151.object({
|
|
4170
|
+
url: z151.string().optional(),
|
|
4171
|
+
documentationItemPersistentId: z151.string().optional()
|
|
4146
4172
|
});
|
|
4147
4173
|
|
|
4148
4174
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4149
|
-
import { z as
|
|
4175
|
+
import { z as z154 } from "zod";
|
|
4150
4176
|
|
|
4151
4177
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4152
|
-
import { z as
|
|
4178
|
+
import { z as z153 } from "zod";
|
|
4153
4179
|
|
|
4154
4180
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4155
|
-
import { z as
|
|
4181
|
+
import { z as z152 } from "zod";
|
|
4156
4182
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4157
|
-
var DTODocumentationItemConfigurationV2 =
|
|
4158
|
-
showSidebar:
|
|
4159
|
-
isPrivate:
|
|
4160
|
-
isHidden:
|
|
4183
|
+
var DTODocumentationItemConfigurationV2 = z152.object({
|
|
4184
|
+
showSidebar: z152.boolean(),
|
|
4185
|
+
isPrivate: z152.boolean(),
|
|
4186
|
+
isHidden: z152.boolean(),
|
|
4161
4187
|
header: DTODocumentationItemHeaderV2
|
|
4162
4188
|
});
|
|
4163
4189
|
|
|
4164
4190
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4165
|
-
var
|
|
4191
|
+
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
4166
4192
|
sortOrder: true,
|
|
4167
4193
|
parentPersistentId: true,
|
|
4168
4194
|
brandPersistentId: true,
|
|
@@ -4171,137 +4197,136 @@ var DTODocumentationGroupStructureV2 = ElementGroup.omit({
|
|
|
4171
4197
|
data: true,
|
|
4172
4198
|
shortPersistentId: true
|
|
4173
4199
|
}).extend({
|
|
4174
|
-
title:
|
|
4175
|
-
isRoot:
|
|
4176
|
-
childrenIds:
|
|
4200
|
+
title: z153.string(),
|
|
4201
|
+
isRoot: z153.boolean(),
|
|
4202
|
+
childrenIds: z153.array(z153.string()),
|
|
4177
4203
|
groupBehavior: DocumentationGroupBehavior,
|
|
4178
|
-
shortPersistentId:
|
|
4179
|
-
|
|
4204
|
+
shortPersistentId: z153.string(),
|
|
4205
|
+
configuration: DTODocumentationItemConfigurationV2,
|
|
4206
|
+
type: z153.literal("Group")
|
|
4180
4207
|
});
|
|
4181
|
-
var
|
|
4182
|
-
|
|
4183
|
-
});
|
|
4184
|
-
var DTOCreateDocumentationGroupInput = z151.object({
|
|
4208
|
+
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4209
|
+
var DTOCreateDocumentationGroupInput = z153.object({
|
|
4185
4210
|
// Identifier
|
|
4186
|
-
persistentId:
|
|
4211
|
+
persistentId: z153.string().uuid(),
|
|
4187
4212
|
// Group properties
|
|
4188
|
-
title:
|
|
4213
|
+
title: z153.string(),
|
|
4189
4214
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4190
4215
|
// Group placement properties
|
|
4191
|
-
afterPersistentId:
|
|
4192
|
-
parentPersistentId:
|
|
4216
|
+
afterPersistentId: z153.string().uuid().nullish(),
|
|
4217
|
+
parentPersistentId: z153.string().uuid()
|
|
4193
4218
|
});
|
|
4194
|
-
var DTOUpdateDocumentationGroupInput =
|
|
4219
|
+
var DTOUpdateDocumentationGroupInput = z153.object({
|
|
4195
4220
|
// Identifier of the group to update
|
|
4196
|
-
id:
|
|
4221
|
+
id: z153.string(),
|
|
4197
4222
|
// Group properties
|
|
4198
|
-
title:
|
|
4199
|
-
configuration: DTODocumentationItemConfigurationV2.optional()
|
|
4223
|
+
title: z153.string().optional(),
|
|
4224
|
+
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4200
4225
|
});
|
|
4201
|
-
var DTOMoveDocumentationGroupInput =
|
|
4226
|
+
var DTOMoveDocumentationGroupInput = z153.object({
|
|
4202
4227
|
// Identifier of the group to update
|
|
4203
|
-
id:
|
|
4228
|
+
id: z153.string(),
|
|
4204
4229
|
// Group placement properties
|
|
4205
|
-
parentPersistentId:
|
|
4206
|
-
afterPersistentId:
|
|
4230
|
+
parentPersistentId: z153.string().uuid(),
|
|
4231
|
+
afterPersistentId: z153.string().uuid().nullish()
|
|
4207
4232
|
});
|
|
4208
|
-
var DTODuplicateDocumentationGroupInput =
|
|
4233
|
+
var DTODuplicateDocumentationGroupInput = z153.object({
|
|
4209
4234
|
// Identifier of the group to duplicate from
|
|
4210
|
-
id:
|
|
4235
|
+
id: z153.string(),
|
|
4211
4236
|
// New group persistent id
|
|
4212
|
-
persistentId:
|
|
4237
|
+
persistentId: z153.string().uuid(),
|
|
4213
4238
|
// Group placement properties
|
|
4214
|
-
afterPersistentId:
|
|
4215
|
-
parentPersistentId:
|
|
4239
|
+
afterPersistentId: z153.string().uuid().nullish(),
|
|
4240
|
+
parentPersistentId: z153.string().uuid()
|
|
4216
4241
|
});
|
|
4217
|
-
var DTOCreateDocumentationTabInput =
|
|
4242
|
+
var DTOCreateDocumentationTabInput = z153.object({
|
|
4218
4243
|
// New group persistent id
|
|
4219
|
-
persistentId:
|
|
4244
|
+
persistentId: z153.string().uuid(),
|
|
4220
4245
|
// If this is page, we will attempt to convert it to tab
|
|
4221
4246
|
// If this is tab group, we will add a new tab to it
|
|
4222
|
-
fromItemPersistentId:
|
|
4223
|
-
tabName:
|
|
4247
|
+
fromItemPersistentId: z153.string(),
|
|
4248
|
+
tabName: z153.string()
|
|
4224
4249
|
});
|
|
4225
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
4250
|
+
var DTODeleteDocumentationTabGroupInput = z153.object({
|
|
4226
4251
|
// Deleted group id
|
|
4227
|
-
id:
|
|
4252
|
+
id: z153.string()
|
|
4228
4253
|
});
|
|
4229
|
-
var DTODeleteDocumentationGroupInput =
|
|
4254
|
+
var DTODeleteDocumentationGroupInput = z153.object({
|
|
4230
4255
|
// Identifier
|
|
4231
|
-
id:
|
|
4256
|
+
id: z153.string(),
|
|
4232
4257
|
// Deletion options
|
|
4233
|
-
deleteSubtree:
|
|
4258
|
+
deleteSubtree: z153.boolean().default(false)
|
|
4234
4259
|
});
|
|
4235
4260
|
|
|
4236
4261
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4237
|
-
var SuccessPayload =
|
|
4238
|
-
success:
|
|
4262
|
+
var SuccessPayload = z154.object({
|
|
4263
|
+
success: z154.literal(true)
|
|
4239
4264
|
});
|
|
4240
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
4241
|
-
type:
|
|
4265
|
+
var DTODocumentationGroupCreateActionOutputV2 = z154.object({
|
|
4266
|
+
type: z154.literal("DocumentationGroupCreate"),
|
|
4242
4267
|
output: SuccessPayload
|
|
4243
4268
|
});
|
|
4244
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
4245
|
-
type:
|
|
4269
|
+
var DTODocumentationTabCreateActionOutputV2 = z154.object({
|
|
4270
|
+
type: z154.literal("DocumentationTabCreate"),
|
|
4246
4271
|
output: SuccessPayload
|
|
4247
4272
|
});
|
|
4248
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
4249
|
-
type:
|
|
4273
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z154.object({
|
|
4274
|
+
type: z154.literal("DocumentationGroupUpdate"),
|
|
4250
4275
|
output: SuccessPayload
|
|
4251
4276
|
});
|
|
4252
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
4253
|
-
type:
|
|
4277
|
+
var DTODocumentationGroupMoveActionOutputV2 = z154.object({
|
|
4278
|
+
type: z154.literal("DocumentationGroupMove"),
|
|
4254
4279
|
output: SuccessPayload
|
|
4255
4280
|
});
|
|
4256
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
4257
|
-
type:
|
|
4281
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z154.object({
|
|
4282
|
+
type: z154.literal("DocumentationGroupDuplicate"),
|
|
4258
4283
|
output: SuccessPayload
|
|
4259
4284
|
});
|
|
4260
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
4261
|
-
type:
|
|
4285
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z154.object({
|
|
4286
|
+
type: z154.literal("DocumentationGroupDelete"),
|
|
4262
4287
|
output: SuccessPayload
|
|
4263
4288
|
});
|
|
4264
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
4265
|
-
type:
|
|
4289
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z154.object({
|
|
4290
|
+
type: z154.literal("DocumentationTabGroupDelete"),
|
|
4266
4291
|
output: SuccessPayload
|
|
4267
4292
|
});
|
|
4268
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
4269
|
-
type:
|
|
4293
|
+
var DTODocumentationGroupCreateActionInputV2 = z154.object({
|
|
4294
|
+
type: z154.literal("DocumentationGroupCreate"),
|
|
4270
4295
|
input: DTOCreateDocumentationGroupInput
|
|
4271
4296
|
});
|
|
4272
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
4273
|
-
type:
|
|
4297
|
+
var DTODocumentationTabCreateActionInputV2 = z154.object({
|
|
4298
|
+
type: z154.literal("DocumentationTabCreate"),
|
|
4274
4299
|
input: DTOCreateDocumentationTabInput
|
|
4275
4300
|
});
|
|
4276
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
4277
|
-
type:
|
|
4301
|
+
var DTODocumentationGroupUpdateActionInputV2 = z154.object({
|
|
4302
|
+
type: z154.literal("DocumentationGroupUpdate"),
|
|
4278
4303
|
input: DTOUpdateDocumentationGroupInput
|
|
4279
4304
|
});
|
|
4280
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
4281
|
-
type:
|
|
4305
|
+
var DTODocumentationGroupMoveActionInputV2 = z154.object({
|
|
4306
|
+
type: z154.literal("DocumentationGroupMove"),
|
|
4282
4307
|
input: DTOMoveDocumentationGroupInput
|
|
4283
4308
|
});
|
|
4284
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
4285
|
-
type:
|
|
4309
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z154.object({
|
|
4310
|
+
type: z154.literal("DocumentationGroupDuplicate"),
|
|
4286
4311
|
input: DTODuplicateDocumentationGroupInput
|
|
4287
4312
|
});
|
|
4288
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
4289
|
-
type:
|
|
4313
|
+
var DTODocumentationGroupDeleteActionInputV2 = z154.object({
|
|
4314
|
+
type: z154.literal("DocumentationGroupDelete"),
|
|
4290
4315
|
input: DTODeleteDocumentationGroupInput
|
|
4291
4316
|
});
|
|
4292
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
4293
|
-
type:
|
|
4317
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z154.object({
|
|
4318
|
+
type: z154.literal("DocumentationTabGroupDelete"),
|
|
4294
4319
|
input: DTODeleteDocumentationTabGroupInput
|
|
4295
4320
|
});
|
|
4296
4321
|
|
|
4297
4322
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
4298
|
-
import { z as
|
|
4323
|
+
import { z as z156 } from "zod";
|
|
4299
4324
|
|
|
4300
4325
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
4301
|
-
import { z as
|
|
4302
|
-
var DocumentationColorV1 =
|
|
4303
|
-
aliasTo:
|
|
4304
|
-
value:
|
|
4326
|
+
import { z as z155 } from "zod";
|
|
4327
|
+
var DocumentationColorV1 = z155.object({
|
|
4328
|
+
aliasTo: z155.string().optional(),
|
|
4329
|
+
value: z155.string().optional()
|
|
4305
4330
|
});
|
|
4306
4331
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
4307
4332
|
foregroundColor: true,
|
|
@@ -4310,10 +4335,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
4310
4335
|
foregroundColor: DocumentationColorV1.optional(),
|
|
4311
4336
|
backgroundColor: DocumentationColorV1.optional()
|
|
4312
4337
|
});
|
|
4313
|
-
var DTODocumentationItemConfigurationV1 =
|
|
4314
|
-
showSidebar:
|
|
4315
|
-
isPrivate:
|
|
4316
|
-
isHidden:
|
|
4338
|
+
var DTODocumentationItemConfigurationV1 = z155.object({
|
|
4339
|
+
showSidebar: z155.boolean(),
|
|
4340
|
+
isPrivate: z155.boolean(),
|
|
4341
|
+
isHidden: z155.boolean(),
|
|
4317
4342
|
header: DTODocumentationItemHeaderV1
|
|
4318
4343
|
});
|
|
4319
4344
|
|
|
@@ -4327,131 +4352,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
4327
4352
|
data: true,
|
|
4328
4353
|
shortPersistentId: true
|
|
4329
4354
|
}).extend({
|
|
4330
|
-
title:
|
|
4331
|
-
isRoot:
|
|
4332
|
-
childrenIds:
|
|
4355
|
+
title: z156.string(),
|
|
4356
|
+
isRoot: z156.boolean(),
|
|
4357
|
+
childrenIds: z156.array(z156.string()),
|
|
4333
4358
|
groupBehavior: DocumentationGroupBehavior,
|
|
4334
|
-
shortPersistentId:
|
|
4335
|
-
type:
|
|
4359
|
+
shortPersistentId: z156.string(),
|
|
4360
|
+
type: z156.literal("Group")
|
|
4336
4361
|
});
|
|
4337
4362
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
4338
4363
|
configuration: DTODocumentationItemConfigurationV1
|
|
4339
4364
|
});
|
|
4340
4365
|
|
|
4341
4366
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4342
|
-
import { z as
|
|
4367
|
+
import { z as z158 } from "zod";
|
|
4343
4368
|
|
|
4344
4369
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
4345
|
-
import { z as
|
|
4346
|
-
var
|
|
4370
|
+
import { z as z157 } from "zod";
|
|
4371
|
+
var DTODocumentationPageV2 = DocumentationPageV2.omit({
|
|
4347
4372
|
data: true,
|
|
4348
4373
|
meta: true,
|
|
4349
4374
|
parentPersistentId: true,
|
|
4350
4375
|
sortOrder: true
|
|
4351
4376
|
}).extend({
|
|
4352
|
-
title:
|
|
4353
|
-
path:
|
|
4354
|
-
type:
|
|
4355
|
-
});
|
|
4356
|
-
var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
|
|
4377
|
+
title: z157.string(),
|
|
4378
|
+
path: z157.string(),
|
|
4379
|
+
type: z157.literal("Page"),
|
|
4357
4380
|
configuration: DTODocumentationItemConfigurationV2
|
|
4358
4381
|
});
|
|
4359
|
-
var
|
|
4360
|
-
|
|
4361
|
-
|
|
4382
|
+
var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
|
|
4383
|
+
var DTODocumentationHierarchyV2 = z157.object({
|
|
4384
|
+
pages: z157.array(DTODocumentationPageStructureV2),
|
|
4385
|
+
groups: z157.array(DTODocumentationGroupStructureV2)
|
|
4362
4386
|
});
|
|
4363
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
4387
|
+
var DTOCreateDocumentationPageInputV2 = z157.object({
|
|
4364
4388
|
// Identifier
|
|
4365
|
-
persistentId:
|
|
4389
|
+
persistentId: z157.string().uuid(),
|
|
4366
4390
|
// Page properties
|
|
4367
|
-
title:
|
|
4391
|
+
title: z157.string(),
|
|
4368
4392
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4369
4393
|
// Page placement properties
|
|
4370
|
-
parentPersistentId:
|
|
4371
|
-
afterPersistentId:
|
|
4394
|
+
parentPersistentId: z157.string().uuid(),
|
|
4395
|
+
afterPersistentId: z157.string().uuid().nullish()
|
|
4372
4396
|
});
|
|
4373
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
4397
|
+
var DTOUpdateDocumentationPageInputV2 = z157.object({
|
|
4374
4398
|
// Identifier of the group to update
|
|
4375
|
-
id:
|
|
4399
|
+
id: z157.string(),
|
|
4376
4400
|
// Page properties
|
|
4377
|
-
title:
|
|
4378
|
-
configuration: DTODocumentationItemConfigurationV2.optional()
|
|
4401
|
+
title: z157.string().optional(),
|
|
4402
|
+
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4379
4403
|
});
|
|
4380
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
4404
|
+
var DTOMoveDocumentationPageInputV2 = z157.object({
|
|
4381
4405
|
// Identifier of the group to update
|
|
4382
|
-
id:
|
|
4406
|
+
id: z157.string(),
|
|
4383
4407
|
// Page placement properties
|
|
4384
|
-
parentPersistentId:
|
|
4385
|
-
afterPersistentId:
|
|
4408
|
+
parentPersistentId: z157.string().uuid(),
|
|
4409
|
+
afterPersistentId: z157.string().uuid().nullish()
|
|
4386
4410
|
});
|
|
4387
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
4411
|
+
var DTODuplicateDocumentationPageInputV2 = z157.object({
|
|
4388
4412
|
// Identifier of the page to duplicate from
|
|
4389
|
-
id:
|
|
4413
|
+
id: z157.string(),
|
|
4390
4414
|
// New page persistent id
|
|
4391
|
-
persistentId:
|
|
4415
|
+
persistentId: z157.string().uuid(),
|
|
4392
4416
|
// Page placement properties
|
|
4393
|
-
parentPersistentId:
|
|
4394
|
-
afterPersistentId:
|
|
4417
|
+
parentPersistentId: z157.string().uuid(),
|
|
4418
|
+
afterPersistentId: z157.string().uuid().nullish()
|
|
4395
4419
|
});
|
|
4396
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
4420
|
+
var DTODeleteDocumentationPageInputV2 = z157.object({
|
|
4397
4421
|
// Identifier
|
|
4398
|
-
id:
|
|
4422
|
+
id: z157.string()
|
|
4399
4423
|
});
|
|
4400
4424
|
|
|
4401
4425
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4402
|
-
var SuccessPayload2 =
|
|
4403
|
-
success:
|
|
4426
|
+
var SuccessPayload2 = z158.object({
|
|
4427
|
+
success: z158.literal(true)
|
|
4404
4428
|
});
|
|
4405
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
4406
|
-
type:
|
|
4429
|
+
var DTODocumentationPageCreateActionOutputV2 = z158.object({
|
|
4430
|
+
type: z158.literal("DocumentationPageCreate"),
|
|
4407
4431
|
output: SuccessPayload2
|
|
4408
4432
|
});
|
|
4409
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
4410
|
-
type:
|
|
4433
|
+
var DTODocumentationPageUpdateActionOutputV2 = z158.object({
|
|
4434
|
+
type: z158.literal("DocumentationPageUpdate"),
|
|
4411
4435
|
output: SuccessPayload2
|
|
4412
4436
|
});
|
|
4413
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
4414
|
-
type:
|
|
4437
|
+
var DTODocumentationPageMoveActionOutputV2 = z158.object({
|
|
4438
|
+
type: z158.literal("DocumentationPageMove"),
|
|
4415
4439
|
output: SuccessPayload2
|
|
4416
4440
|
});
|
|
4417
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
4418
|
-
type:
|
|
4441
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z158.object({
|
|
4442
|
+
type: z158.literal("DocumentationPageDuplicate"),
|
|
4419
4443
|
output: SuccessPayload2
|
|
4420
4444
|
});
|
|
4421
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
4422
|
-
type:
|
|
4445
|
+
var DTODocumentationPageDeleteActionOutputV2 = z158.object({
|
|
4446
|
+
type: z158.literal("DocumentationPageDelete"),
|
|
4423
4447
|
output: SuccessPayload2
|
|
4424
4448
|
});
|
|
4425
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
4426
|
-
type:
|
|
4449
|
+
var DTODocumentationPageCreateActionInputV2 = z158.object({
|
|
4450
|
+
type: z158.literal("DocumentationPageCreate"),
|
|
4427
4451
|
input: DTOCreateDocumentationPageInputV2
|
|
4428
4452
|
});
|
|
4429
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
4430
|
-
type:
|
|
4453
|
+
var DTODocumentationPageUpdateActionInputV2 = z158.object({
|
|
4454
|
+
type: z158.literal("DocumentationPageUpdate"),
|
|
4431
4455
|
input: DTOUpdateDocumentationPageInputV2
|
|
4432
4456
|
});
|
|
4433
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
4434
|
-
type:
|
|
4457
|
+
var DTODocumentationPageMoveActionInputV2 = z158.object({
|
|
4458
|
+
type: z158.literal("DocumentationPageMove"),
|
|
4435
4459
|
input: DTOMoveDocumentationPageInputV2
|
|
4436
4460
|
});
|
|
4437
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
4438
|
-
type:
|
|
4461
|
+
var DTODocumentationPageDuplicateActionInputV2 = z158.object({
|
|
4462
|
+
type: z158.literal("DocumentationPageDuplicate"),
|
|
4439
4463
|
input: DTODuplicateDocumentationPageInputV2
|
|
4440
4464
|
});
|
|
4441
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
4442
|
-
type:
|
|
4465
|
+
var DTODocumentationPageDeleteActionInputV2 = z158.object({
|
|
4466
|
+
type: z158.literal("DocumentationPageDelete"),
|
|
4443
4467
|
input: DTODeleteDocumentationPageInputV2
|
|
4444
4468
|
});
|
|
4445
4469
|
|
|
4446
4470
|
// src/api/dto/elements/documentation/page-content.ts
|
|
4447
|
-
import { z as
|
|
4471
|
+
import { z as z159 } from "zod";
|
|
4448
4472
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
4449
|
-
var DTODocumentationPageContentGetResponse =
|
|
4473
|
+
var DTODocumentationPageContentGetResponse = z159.object({
|
|
4450
4474
|
pageContent: DTODocumentationPageContent
|
|
4451
4475
|
});
|
|
4452
4476
|
|
|
4453
4477
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
4454
|
-
import { z as
|
|
4478
|
+
import { z as z160 } from "zod";
|
|
4455
4479
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
4456
4480
|
data: true,
|
|
4457
4481
|
meta: true,
|
|
@@ -4459,130 +4483,130 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
4459
4483
|
sortOrder: true
|
|
4460
4484
|
}).extend({
|
|
4461
4485
|
configuration: DTODocumentationItemConfigurationV1,
|
|
4462
|
-
blocks:
|
|
4463
|
-
title:
|
|
4464
|
-
path:
|
|
4486
|
+
blocks: z160.array(PageBlockV1),
|
|
4487
|
+
title: z160.string(),
|
|
4488
|
+
path: z160.string()
|
|
4465
4489
|
});
|
|
4466
4490
|
|
|
4467
4491
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
4468
|
-
import { z as
|
|
4469
|
-
var DTOFigmaNodeData =
|
|
4492
|
+
import { z as z161 } from "zod";
|
|
4493
|
+
var DTOFigmaNodeData = z161.object({
|
|
4470
4494
|
// Id of the node in the Figma file
|
|
4471
|
-
figmaNodeId:
|
|
4495
|
+
figmaNodeId: z161.string(),
|
|
4472
4496
|
// Validity
|
|
4473
|
-
isValid:
|
|
4497
|
+
isValid: z161.boolean(),
|
|
4474
4498
|
// Asset data
|
|
4475
|
-
assetId:
|
|
4476
|
-
assetUrl:
|
|
4499
|
+
assetId: z161.string(),
|
|
4500
|
+
assetUrl: z161.string(),
|
|
4477
4501
|
// Asset metadata
|
|
4478
|
-
assetScale:
|
|
4479
|
-
assetWidth:
|
|
4480
|
-
assetHeight:
|
|
4502
|
+
assetScale: z161.number(),
|
|
4503
|
+
assetWidth: z161.number().optional(),
|
|
4504
|
+
assetHeight: z161.number().optional()
|
|
4481
4505
|
});
|
|
4482
4506
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
4483
4507
|
data: true
|
|
4484
4508
|
}).extend({
|
|
4485
4509
|
data: DTOFigmaNodeData
|
|
4486
4510
|
});
|
|
4487
|
-
var DTOFigmaNodeRenderInput =
|
|
4511
|
+
var DTOFigmaNodeRenderInput = z161.object({
|
|
4488
4512
|
// Id of a design system's data source representing a linked Figma file
|
|
4489
|
-
sourceId:
|
|
4513
|
+
sourceId: z161.string(),
|
|
4490
4514
|
// Id of a node within the Figma file
|
|
4491
|
-
figmaFileNodeId:
|
|
4515
|
+
figmaFileNodeId: z161.string()
|
|
4492
4516
|
});
|
|
4493
4517
|
|
|
4494
4518
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
4495
|
-
import { z as
|
|
4496
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
4497
|
-
type:
|
|
4498
|
-
figmaNodes:
|
|
4519
|
+
import { z as z162 } from "zod";
|
|
4520
|
+
var DTOFigmaNodeRenderActionOutput = z162.object({
|
|
4521
|
+
type: z162.literal("FigmaNodeRender"),
|
|
4522
|
+
figmaNodes: z162.array(DTOFigmaNode)
|
|
4499
4523
|
});
|
|
4500
|
-
var DTOFigmaNodeRenderActionInput =
|
|
4501
|
-
type:
|
|
4524
|
+
var DTOFigmaNodeRenderActionInput = z162.object({
|
|
4525
|
+
type: z162.literal("FigmaNodeRender"),
|
|
4502
4526
|
input: DTOFigmaNodeRenderInput.array()
|
|
4503
4527
|
});
|
|
4504
4528
|
|
|
4505
4529
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4506
|
-
import { z as
|
|
4530
|
+
import { z as z164 } from "zod";
|
|
4507
4531
|
|
|
4508
4532
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
4509
|
-
import { z as
|
|
4533
|
+
import { z as z163 } from "zod";
|
|
4510
4534
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
4511
|
-
var DTOElementPropertyDefinition =
|
|
4512
|
-
id:
|
|
4513
|
-
designSystemVersionId:
|
|
4535
|
+
var DTOElementPropertyDefinition = z163.object({
|
|
4536
|
+
id: z163.string(),
|
|
4537
|
+
designSystemVersionId: z163.string(),
|
|
4514
4538
|
meta: ObjectMeta,
|
|
4515
|
-
persistentId:
|
|
4539
|
+
persistentId: z163.string(),
|
|
4516
4540
|
type: ElementPropertyTypeSchema,
|
|
4517
4541
|
targetElementType: ElementPropertyTargetType,
|
|
4518
|
-
codeName:
|
|
4519
|
-
options:
|
|
4542
|
+
codeName: z163.string().regex(CODE_NAME_REGEX2),
|
|
4543
|
+
options: z163.array(ElementPropertyDefinitionOption).optional(),
|
|
4520
4544
|
linkElementType: ElementPropertyLinkType.optional()
|
|
4521
4545
|
});
|
|
4522
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
4523
|
-
definitions:
|
|
4546
|
+
var DTOElementPropertyDefinitionsGetResponse = z163.object({
|
|
4547
|
+
definitions: z163.array(DTOElementPropertyDefinition)
|
|
4524
4548
|
});
|
|
4525
4549
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
4526
4550
|
id: true,
|
|
4527
4551
|
designSystemVersionId: true
|
|
4528
4552
|
});
|
|
4529
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
4530
|
-
id:
|
|
4531
|
-
name:
|
|
4532
|
-
description:
|
|
4533
|
-
codeName:
|
|
4534
|
-
options:
|
|
4553
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z163.object({
|
|
4554
|
+
id: z163.string(),
|
|
4555
|
+
name: z163.string().optional(),
|
|
4556
|
+
description: z163.string().optional(),
|
|
4557
|
+
codeName: z163.string().regex(CODE_NAME_REGEX2).optional(),
|
|
4558
|
+
options: z163.array(ElementPropertyDefinitionOption).optional()
|
|
4535
4559
|
});
|
|
4536
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
4537
|
-
id:
|
|
4560
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z163.object({
|
|
4561
|
+
id: z163.string()
|
|
4538
4562
|
});
|
|
4539
4563
|
|
|
4540
4564
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
4541
|
-
var SuccessPayload3 =
|
|
4542
|
-
success:
|
|
4565
|
+
var SuccessPayload3 = z164.object({
|
|
4566
|
+
success: z164.literal(true)
|
|
4543
4567
|
});
|
|
4544
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
4545
|
-
type:
|
|
4568
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z164.object({
|
|
4569
|
+
type: z164.literal("PropertyDefinitionCreate"),
|
|
4546
4570
|
definition: DTOElementPropertyDefinition
|
|
4547
4571
|
});
|
|
4548
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
4549
|
-
type:
|
|
4572
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z164.object({
|
|
4573
|
+
type: z164.literal("PropertyDefinitionUpdate"),
|
|
4550
4574
|
definition: DTOElementPropertyDefinition
|
|
4551
4575
|
});
|
|
4552
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
4553
|
-
type:
|
|
4576
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z164.object({
|
|
4577
|
+
type: z164.literal("PropertyDefinitionDelete"),
|
|
4554
4578
|
output: SuccessPayload3
|
|
4555
4579
|
});
|
|
4556
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
4557
|
-
type:
|
|
4580
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z164.object({
|
|
4581
|
+
type: z164.literal("PropertyDefinitionCreate"),
|
|
4558
4582
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
4559
4583
|
});
|
|
4560
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
4561
|
-
type:
|
|
4584
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z164.object({
|
|
4585
|
+
type: z164.literal("PropertyDefinitionUpdate"),
|
|
4562
4586
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
4563
4587
|
});
|
|
4564
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
4565
|
-
type:
|
|
4588
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z164.object({
|
|
4589
|
+
type: z164.literal("PropertyDefinitionDelete"),
|
|
4566
4590
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
4567
4591
|
});
|
|
4568
4592
|
|
|
4569
4593
|
// src/api/dto/elements/properties/property-values.ts
|
|
4570
|
-
import { z as
|
|
4571
|
-
var DTOElementPropertyValue =
|
|
4572
|
-
id:
|
|
4573
|
-
designSystemVersionId:
|
|
4574
|
-
definitionId:
|
|
4575
|
-
targetElementId:
|
|
4576
|
-
value:
|
|
4577
|
-
valuePreview:
|
|
4594
|
+
import { z as z165 } from "zod";
|
|
4595
|
+
var DTOElementPropertyValue = z165.object({
|
|
4596
|
+
id: z165.string(),
|
|
4597
|
+
designSystemVersionId: z165.string(),
|
|
4598
|
+
definitionId: z165.string(),
|
|
4599
|
+
targetElementId: z165.string(),
|
|
4600
|
+
value: z165.union([z165.string(), z165.number(), z165.boolean()]).optional(),
|
|
4601
|
+
valuePreview: z165.string().optional()
|
|
4578
4602
|
});
|
|
4579
|
-
var DTOElementPropertyValuesGetResponse =
|
|
4580
|
-
values:
|
|
4603
|
+
var DTOElementPropertyValuesGetResponse = z165.object({
|
|
4604
|
+
values: z165.array(DTOElementPropertyValue)
|
|
4581
4605
|
});
|
|
4582
4606
|
|
|
4583
4607
|
// src/api/dto/elements/elements-action-v2.ts
|
|
4584
|
-
import { z as
|
|
4585
|
-
var DTOElementActionOutput =
|
|
4608
|
+
import { z as z166 } from "zod";
|
|
4609
|
+
var DTOElementActionOutput = z166.discriminatedUnion("type", [
|
|
4586
4610
|
// Documentation pages
|
|
4587
4611
|
DTODocumentationPageCreateActionOutputV2,
|
|
4588
4612
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -4604,7 +4628,7 @@ var DTOElementActionOutput = z164.discriminatedUnion("type", [
|
|
|
4604
4628
|
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
4605
4629
|
DTOPropertyDefinitionDeleteActionOutputV2
|
|
4606
4630
|
]);
|
|
4607
|
-
var DTOElementActionInput =
|
|
4631
|
+
var DTOElementActionInput = z166.discriminatedUnion("type", [
|
|
4608
4632
|
// Documentation pages
|
|
4609
4633
|
DTODocumentationPageCreateActionInputV2,
|
|
4610
4634
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -4628,65 +4652,72 @@ var DTOElementActionInput = z164.discriminatedUnion("type", [
|
|
|
4628
4652
|
]);
|
|
4629
4653
|
|
|
4630
4654
|
// src/api/dto/elements/get-elements-v2.ts
|
|
4631
|
-
import { z as
|
|
4632
|
-
var DTOElementsGetTypeFilter =
|
|
4633
|
-
var DTOElementsGetQuerySchema =
|
|
4634
|
-
types:
|
|
4655
|
+
import { z as z167 } from "zod";
|
|
4656
|
+
var DTOElementsGetTypeFilter = z167.enum(["FigmaNode"]);
|
|
4657
|
+
var DTOElementsGetQuerySchema = z167.object({
|
|
4658
|
+
types: z167.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
4635
4659
|
});
|
|
4636
|
-
var DTOElementsGetOutput =
|
|
4637
|
-
figmaNodes:
|
|
4660
|
+
var DTOElementsGetOutput = z167.object({
|
|
4661
|
+
figmaNodes: z167.array(DTOFigmaNode).optional()
|
|
4638
4662
|
});
|
|
4639
4663
|
|
|
4640
4664
|
// src/api/dto/workspaces/integrations.ts
|
|
4641
|
-
import { z as
|
|
4642
|
-
var DTOIntegration =
|
|
4643
|
-
id:
|
|
4644
|
-
workspaceId:
|
|
4665
|
+
import { z as z168 } from "zod";
|
|
4666
|
+
var DTOIntegration = z168.object({
|
|
4667
|
+
id: z168.string(),
|
|
4668
|
+
workspaceId: z168.string(),
|
|
4645
4669
|
type: IntegrationType,
|
|
4646
|
-
createdAt:
|
|
4670
|
+
createdAt: z168.coerce.date(),
|
|
4671
|
+
integrationCredentials: z168.array(IntegrationCredentialsSchema).optional()
|
|
4672
|
+
});
|
|
4673
|
+
var DTOIntegrationOAuthGetResponse = z168.object({
|
|
4674
|
+
url: z168.string()
|
|
4647
4675
|
});
|
|
4648
|
-
var
|
|
4649
|
-
|
|
4676
|
+
var DTOIntegrationPostResponse = z168.object({
|
|
4677
|
+
integration: DTOIntegration
|
|
4678
|
+
});
|
|
4679
|
+
var DTOIntegrationsGetListResponse = z168.object({
|
|
4680
|
+
integrations: DTOIntegration.array()
|
|
4650
4681
|
});
|
|
4651
4682
|
|
|
4652
4683
|
// src/api/dto/workspaces/membership.ts
|
|
4653
|
-
import { z as
|
|
4684
|
+
import { z as z171 } from "zod";
|
|
4654
4685
|
|
|
4655
4686
|
// src/api/dto/workspaces/workspace.ts
|
|
4656
|
-
import { z as
|
|
4687
|
+
import { z as z170 } from "zod";
|
|
4657
4688
|
|
|
4658
4689
|
// src/api/dto/workspaces/npm-registry.ts
|
|
4659
|
-
import { z as
|
|
4660
|
-
var DTONpmRegistryConfig =
|
|
4690
|
+
import { z as z169 } from "zod";
|
|
4691
|
+
var DTONpmRegistryConfig = z169.object({
|
|
4661
4692
|
// Registry basic configuration
|
|
4662
4693
|
registryType: NpmRegistryType,
|
|
4663
|
-
registryUrl:
|
|
4664
|
-
customRegistryUrl:
|
|
4694
|
+
registryUrl: z169.string(),
|
|
4695
|
+
customRegistryUrl: z169.string().optional(),
|
|
4665
4696
|
// URL of Supernova NPM packages proxy
|
|
4666
|
-
proxyUrl:
|
|
4697
|
+
proxyUrl: z169.string(),
|
|
4667
4698
|
// Auth configuration
|
|
4668
4699
|
authType: NpmRegistryAuthType,
|
|
4669
|
-
accessToken:
|
|
4670
|
-
username:
|
|
4671
|
-
password:
|
|
4700
|
+
accessToken: z169.literal("redacted").optional(),
|
|
4701
|
+
username: z169.string().optional(),
|
|
4702
|
+
password: z169.literal("redacted").optional(),
|
|
4672
4703
|
// NPM package scopes for whih the proxy should be enabled
|
|
4673
|
-
enabledScopes:
|
|
4704
|
+
enabledScopes: z169.array(z169.string()),
|
|
4674
4705
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
4675
4706
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
4676
|
-
bypassProxy:
|
|
4707
|
+
bypassProxy: z169.boolean()
|
|
4677
4708
|
});
|
|
4678
4709
|
|
|
4679
4710
|
// src/api/dto/workspaces/workspace.ts
|
|
4680
|
-
var DTOWorkspace =
|
|
4681
|
-
id:
|
|
4711
|
+
var DTOWorkspace = z170.object({
|
|
4712
|
+
id: z170.string(),
|
|
4682
4713
|
profile: WorkspaceProfile,
|
|
4683
4714
|
subscription: Subscription,
|
|
4684
4715
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
4685
4716
|
});
|
|
4686
4717
|
|
|
4687
4718
|
// src/api/dto/workspaces/membership.ts
|
|
4688
|
-
var DTOWorkspaceRole =
|
|
4689
|
-
var DTOUserWorkspaceMembership =
|
|
4719
|
+
var DTOWorkspaceRole = z171.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
4720
|
+
var DTOUserWorkspaceMembership = z171.object({
|
|
4690
4721
|
// Workspace the user is a member of
|
|
4691
4722
|
workspace: DTOWorkspace,
|
|
4692
4723
|
// Assigned role the user has in the workspace
|
|
@@ -4696,48 +4727,48 @@ var DTOUserWorkspaceMembership = z169.object({
|
|
|
4696
4727
|
// when a workspace's subscription is downgraded to free tier
|
|
4697
4728
|
effectiveRole: DTOWorkspaceRole
|
|
4698
4729
|
});
|
|
4699
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
4700
|
-
membership:
|
|
4730
|
+
var DTOUserWorkspaceMembershipsResponse = z171.object({
|
|
4731
|
+
membership: z171.array(DTOUserWorkspaceMembership)
|
|
4701
4732
|
});
|
|
4702
4733
|
|
|
4703
4734
|
// src/api/payloads/design-systems/brand.ts
|
|
4704
|
-
import { z as
|
|
4705
|
-
var DTOCreateBrandInput =
|
|
4706
|
-
persistentId:
|
|
4707
|
-
meta:
|
|
4708
|
-
name:
|
|
4709
|
-
description:
|
|
4735
|
+
import { z as z172 } from "zod";
|
|
4736
|
+
var DTOCreateBrandInput = z172.object({
|
|
4737
|
+
persistentId: z172.string().uuid(),
|
|
4738
|
+
meta: z172.object({
|
|
4739
|
+
name: z172.string(),
|
|
4740
|
+
description: z172.string()
|
|
4710
4741
|
})
|
|
4711
4742
|
});
|
|
4712
4743
|
|
|
4713
4744
|
// src/api/payloads/design-systems/version.ts
|
|
4714
|
-
import { z as
|
|
4745
|
+
import { z as z173 } from "zod";
|
|
4715
4746
|
function validateSemver(version) {
|
|
4716
4747
|
const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
|
|
4717
4748
|
return semverRegex.test(version);
|
|
4718
4749
|
}
|
|
4719
|
-
var DTOCreateVersionInput =
|
|
4750
|
+
var DTOCreateVersionInput = z173.object({
|
|
4720
4751
|
meta: ObjectMeta,
|
|
4721
|
-
version:
|
|
4752
|
+
version: z173.string().refine(validateSemver, {
|
|
4722
4753
|
message: "Invalid semantic versioning format"
|
|
4723
4754
|
}),
|
|
4724
|
-
changeLog:
|
|
4755
|
+
changeLog: z173.string()
|
|
4725
4756
|
});
|
|
4726
4757
|
|
|
4727
4758
|
// src/api/payloads/documentation/block-definitions.ts
|
|
4728
|
-
import { z as
|
|
4729
|
-
var DTOGetBlockDefinitionsOutput =
|
|
4730
|
-
definitions:
|
|
4759
|
+
import { z as z174 } from "zod";
|
|
4760
|
+
var DTOGetBlockDefinitionsOutput = z174.object({
|
|
4761
|
+
definitions: z174.array(PageBlockDefinition)
|
|
4731
4762
|
});
|
|
4732
4763
|
|
|
4733
4764
|
// src/api/payloads/liveblocks/auth.ts
|
|
4734
|
-
import { z as
|
|
4735
|
-
var DTOLiveblocksAuthRequest =
|
|
4736
|
-
room:
|
|
4765
|
+
import { z as z175 } from "zod";
|
|
4766
|
+
var DTOLiveblocksAuthRequest = z175.object({
|
|
4767
|
+
room: z175.string().optional()
|
|
4737
4768
|
});
|
|
4738
4769
|
|
|
4739
4770
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4740
|
-
import { z as
|
|
4771
|
+
import { z as z176 } from "zod";
|
|
4741
4772
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4742
4773
|
function validateSsoPayload(ssoPayload) {
|
|
4743
4774
|
const keys = [];
|
|
@@ -4760,21 +4791,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
4760
4791
|
keys
|
|
4761
4792
|
};
|
|
4762
4793
|
}
|
|
4763
|
-
var NpmRegistryInput =
|
|
4764
|
-
enabledScopes:
|
|
4765
|
-
customRegistryUrl:
|
|
4766
|
-
bypassProxy:
|
|
4767
|
-
npmProxyRegistryConfigId:
|
|
4768
|
-
npmProxyVersion:
|
|
4769
|
-
registryType:
|
|
4770
|
-
authType:
|
|
4771
|
-
authHeaderName:
|
|
4772
|
-
authHeaderValue:
|
|
4773
|
-
accessToken:
|
|
4774
|
-
username:
|
|
4775
|
-
password:
|
|
4776
|
-
});
|
|
4777
|
-
var WorkspaceConfigurationPayload =
|
|
4794
|
+
var NpmRegistryInput = z176.object({
|
|
4795
|
+
enabledScopes: z176.array(z176.string()),
|
|
4796
|
+
customRegistryUrl: z176.string().optional(),
|
|
4797
|
+
bypassProxy: z176.boolean().optional(),
|
|
4798
|
+
npmProxyRegistryConfigId: z176.string().optional(),
|
|
4799
|
+
npmProxyVersion: z176.number().optional(),
|
|
4800
|
+
registryType: z176.string(),
|
|
4801
|
+
authType: z176.string(),
|
|
4802
|
+
authHeaderName: z176.string(),
|
|
4803
|
+
authHeaderValue: z176.string(),
|
|
4804
|
+
accessToken: z176.string(),
|
|
4805
|
+
username: z176.string(),
|
|
4806
|
+
password: z176.string()
|
|
4807
|
+
});
|
|
4808
|
+
var WorkspaceConfigurationPayload = z176.object({
|
|
4778
4809
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4779
4810
|
sso: SsoProvider.partial().optional(),
|
|
4780
4811
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -4782,15 +4813,15 @@ var WorkspaceConfigurationPayload = z174.object({
|
|
|
4782
4813
|
});
|
|
4783
4814
|
|
|
4784
4815
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4785
|
-
import { z as
|
|
4786
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
4816
|
+
import { z as z177 } from "zod";
|
|
4817
|
+
var DTOWorkspaceIntegrationOauthInput = z177.object({
|
|
4787
4818
|
type: IntegrationType
|
|
4788
4819
|
});
|
|
4789
4820
|
|
|
4790
4821
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
4791
|
-
import { z as
|
|
4792
|
-
var DocumentationHierarchySettings =
|
|
4793
|
-
routingVersion:
|
|
4822
|
+
import { z as z178 } from "zod";
|
|
4823
|
+
var DocumentationHierarchySettings = z178.object({
|
|
4824
|
+
routingVersion: z178.string()
|
|
4794
4825
|
});
|
|
4795
4826
|
function documentationHierarchyToYjs(doc, transaction) {
|
|
4796
4827
|
doc.transact((trx) => {
|
|
@@ -4865,13 +4896,13 @@ function getInternalSettingsYMap(doc) {
|
|
|
4865
4896
|
}
|
|
4866
4897
|
|
|
4867
4898
|
// src/yjs/design-system-content/item-configuration.ts
|
|
4868
|
-
import { z as
|
|
4869
|
-
var DTODocumentationPageRoomHeaderData =
|
|
4870
|
-
title:
|
|
4899
|
+
import { z as z179 } from "zod";
|
|
4900
|
+
var DTODocumentationPageRoomHeaderData = z179.object({
|
|
4901
|
+
title: z179.string(),
|
|
4871
4902
|
configuration: DTODocumentationItemConfigurationV2
|
|
4872
4903
|
});
|
|
4873
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
4874
|
-
title:
|
|
4904
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z179.object({
|
|
4905
|
+
title: z179.string().optional(),
|
|
4875
4906
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
4876
4907
|
});
|
|
4877
4908
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -4922,7 +4953,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
4922
4953
|
header: rawHeader
|
|
4923
4954
|
};
|
|
4924
4955
|
return {
|
|
4925
|
-
title:
|
|
4956
|
+
title: z179.string().parse(title),
|
|
4926
4957
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
4927
4958
|
};
|
|
4928
4959
|
}
|
|
@@ -4932,9 +4963,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
4932
4963
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
4933
4964
|
|
|
4934
4965
|
// src/yjs/docs-editor/model/page.ts
|
|
4935
|
-
import { z as
|
|
4936
|
-
var DocumentationPageEditorModel =
|
|
4937
|
-
blocks:
|
|
4966
|
+
import { z as z180 } from "zod";
|
|
4967
|
+
var DocumentationPageEditorModel = z180.object({
|
|
4968
|
+
blocks: z180.array(PageBlockEditorModel.or(PageSectionEditorModel))
|
|
4938
4969
|
});
|
|
4939
4970
|
|
|
4940
4971
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -7903,7 +7934,7 @@ var blocks = [
|
|
|
7903
7934
|
|
|
7904
7935
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
7905
7936
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
7906
|
-
import { z as
|
|
7937
|
+
import { z as z181 } from "zod";
|
|
7907
7938
|
function yDocToPage(yDoc, definitions) {
|
|
7908
7939
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
7909
7940
|
}
|
|
@@ -7946,7 +7977,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
7946
7977
|
return null;
|
|
7947
7978
|
return {
|
|
7948
7979
|
id,
|
|
7949
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
7980
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z181.string()) ?? "",
|
|
7950
7981
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
7951
7982
|
};
|
|
7952
7983
|
}
|
|
@@ -7981,7 +8012,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
7981
8012
|
});
|
|
7982
8013
|
}
|
|
7983
8014
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
7984
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
8015
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z181.string());
|
|
7985
8016
|
if (!definitionId) {
|
|
7986
8017
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
7987
8018
|
return [];
|
|
@@ -8023,7 +8054,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
8023
8054
|
if (!id)
|
|
8024
8055
|
return null;
|
|
8025
8056
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8026
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
8057
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z181.string().optional()));
|
|
8027
8058
|
return {
|
|
8028
8059
|
// TODO Artem: indent
|
|
8029
8060
|
id,
|
|
@@ -8150,10 +8181,10 @@ function parseRichTextAttribute(mark) {
|
|
|
8150
8181
|
return null;
|
|
8151
8182
|
}
|
|
8152
8183
|
function parseProsemirrorLink(mark) {
|
|
8153
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
8184
|
+
const href = getProsemirrorAttribute(mark, "href", z181.string().optional());
|
|
8154
8185
|
if (!href)
|
|
8155
8186
|
return null;
|
|
8156
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
8187
|
+
const target = getProsemirrorAttribute(mark, "target", z181.string().optional());
|
|
8157
8188
|
const openInNewTab = target === "_blank";
|
|
8158
8189
|
if (href.startsWith("@")) {
|
|
8159
8190
|
return {
|
|
@@ -8176,7 +8207,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
8176
8207
|
if (!id)
|
|
8177
8208
|
return null;
|
|
8178
8209
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8179
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
8210
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z181.boolean().optional()) !== false;
|
|
8180
8211
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
8181
8212
|
if (!tableChild) {
|
|
8182
8213
|
return emptyTable(id, variantId, 0);
|
|
@@ -8223,9 +8254,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
8223
8254
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
8224
8255
|
if (!id)
|
|
8225
8256
|
return null;
|
|
8226
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
8257
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z181.string().optional());
|
|
8227
8258
|
let columnWidth;
|
|
8228
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
8259
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z181.array(z181.number()).optional());
|
|
8229
8260
|
if (columnWidthArray) {
|
|
8230
8261
|
columnWidth = columnWidthArray[0];
|
|
8231
8262
|
}
|
|
@@ -8263,7 +8294,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8263
8294
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
8264
8295
|
};
|
|
8265
8296
|
case "image":
|
|
8266
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8297
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
|
|
8267
8298
|
if (!items)
|
|
8268
8299
|
return null;
|
|
8269
8300
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -8368,7 +8399,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
8368
8399
|
};
|
|
8369
8400
|
}
|
|
8370
8401
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
8371
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8402
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z181.string());
|
|
8372
8403
|
if (!itemsString)
|
|
8373
8404
|
return null;
|
|
8374
8405
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -8380,18 +8411,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
8380
8411
|
}
|
|
8381
8412
|
function parseAppearance(prosemirrorNode) {
|
|
8382
8413
|
let appearance = {};
|
|
8383
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
8414
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z181.string().optional());
|
|
8384
8415
|
if (rawAppearanceString) {
|
|
8385
8416
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
8386
8417
|
if (parsedAppearance.success) {
|
|
8387
8418
|
appearance = parsedAppearance.data;
|
|
8388
8419
|
}
|
|
8389
8420
|
}
|
|
8390
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
8421
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z181.number().optional());
|
|
8391
8422
|
if (columns) {
|
|
8392
8423
|
appearance.numberOfColumns = columns;
|
|
8393
8424
|
}
|
|
8394
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
8425
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z181.string().optional());
|
|
8395
8426
|
if (backgroundColor) {
|
|
8396
8427
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
8397
8428
|
if (parsedColor.success) {
|
|
@@ -8482,13 +8513,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
8482
8513
|
}
|
|
8483
8514
|
}
|
|
8484
8515
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
8485
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
8516
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z181.string());
|
|
8486
8517
|
if (!id)
|
|
8487
8518
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
8488
8519
|
return id;
|
|
8489
8520
|
}
|
|
8490
8521
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
8491
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
8522
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z181.string()));
|
|
8492
8523
|
}
|
|
8493
8524
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
8494
8525
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -8601,6 +8632,8 @@ export {
|
|
|
8601
8632
|
DTOGetDocumentationPageAnchorsResponse,
|
|
8602
8633
|
DTOIntegration,
|
|
8603
8634
|
DTOIntegrationOAuthGetResponse,
|
|
8635
|
+
DTOIntegrationPostResponse,
|
|
8636
|
+
DTOIntegrationsGetListResponse,
|
|
8604
8637
|
DTOLiveblocksAuthRequest,
|
|
8605
8638
|
DTOMoveDocumentationGroupInput,
|
|
8606
8639
|
DTOMoveDocumentationPageInputV2,
|
|
@@ -8648,6 +8681,7 @@ export {
|
|
|
8648
8681
|
elementPropertyValueToDto,
|
|
8649
8682
|
elementViewToDto,
|
|
8650
8683
|
getMockPageBlockDefinitions,
|
|
8684
|
+
integrationToDto,
|
|
8651
8685
|
itemConfigurationToYjs,
|
|
8652
8686
|
pageToProsemirrorDoc,
|
|
8653
8687
|
pageToYXmlFragment,
|