@supernova-studio/client 0.28.0 → 0.29.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 +444 -48
- package/dist/index.d.ts +444 -48
- package/dist/index.js +294 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1439 -1286
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +9 -4
- package/src/api/dto/documentation/index.ts +1 -0
- package/src/api/dto/documentation/link-preview.ts +23 -0
- package/src/api/dto/elements/elements-action-v2.ts +1 -1
- package/src/api/payloads/index.ts +1 -0
- package/src/api/payloads/workspaces/index.ts +1 -0
- package/src/api/payloads/workspaces/workspace-configuration.ts +50 -0
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +19 -10
- package/src/yjs/docs-editor/mock.ts +47 -2
- package/src/yjs/docs-editor/prosemirror/schema.ts +20 -42
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +29 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _supernova_studio_model from '@supernova-studio/model';
|
|
2
|
-
import { DocumentationPageV2, ElementGroup, DocumentationPageV1, PageBlockItemUntypedValue, PageBlockDefinition, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemTableValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
|
|
2
|
+
import { DocumentationPageV2, ElementGroup, DocumentationPageV1, SsoProvider, PageBlockItemUntypedValue, PageBlockDefinition, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemTableValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import * as Y from 'yjs';
|
|
5
5
|
import { Schema } from 'prosemirror-model';
|
|
@@ -85,6 +85,46 @@ declare const DTODesignSystem: z.ZodObject<{
|
|
|
85
85
|
}>;
|
|
86
86
|
type DTODesignSystem = z.infer<typeof DTODesignSystem>;
|
|
87
87
|
|
|
88
|
+
declare const DTODocumentationLinkPreviewResponse: z.ZodObject<{
|
|
89
|
+
linkPreview: z.ZodObject<{
|
|
90
|
+
title: z.ZodOptional<z.ZodString>;
|
|
91
|
+
description: z.ZodOptional<z.ZodString>;
|
|
92
|
+
thumbnailUrl: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
title?: string | undefined;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
thumbnailUrl?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
title?: string | undefined;
|
|
99
|
+
description?: string | undefined;
|
|
100
|
+
thumbnailUrl?: string | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
linkPreview: {
|
|
104
|
+
title?: string | undefined;
|
|
105
|
+
description?: string | undefined;
|
|
106
|
+
thumbnailUrl?: string | undefined;
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
linkPreview: {
|
|
110
|
+
title?: string | undefined;
|
|
111
|
+
description?: string | undefined;
|
|
112
|
+
thumbnailUrl?: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
type DTODocumentationLinkPreviewResponse = z.infer<typeof DTODocumentationLinkPreviewResponse>;
|
|
116
|
+
declare const DTODocumentationLinkPreviewRequest: z.ZodObject<{
|
|
117
|
+
url: z.ZodOptional<z.ZodString>;
|
|
118
|
+
documentationItemPersistentId: z.ZodOptional<z.ZodString>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
url?: string | undefined;
|
|
121
|
+
documentationItemPersistentId?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
url?: string | undefined;
|
|
124
|
+
documentationItemPersistentId?: string | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
type DTODocumentationLinkPreviewRequest = z.infer<typeof DTODocumentationLinkPreviewRequest>;
|
|
127
|
+
|
|
88
128
|
declare const DTODocumentationGroupCreateActionOutputV2: z.ZodObject<{
|
|
89
129
|
type: z.ZodLiteral<"DocumentationGroupCreate">;
|
|
90
130
|
output: z.ZodObject<{
|
|
@@ -2881,12 +2921,10 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
2881
2921
|
} | undefined;
|
|
2882
2922
|
} | null | undefined;
|
|
2883
2923
|
backgroundImageAsset?: {
|
|
2884
|
-
|
|
2885
|
-
|
|
2924
|
+
type: "image" | "figmaFrame";
|
|
2925
|
+
id?: string | undefined;
|
|
2886
2926
|
url?: string | undefined;
|
|
2887
|
-
|
|
2888
|
-
type: "figmaFrame";
|
|
2889
|
-
figmaFrame: {
|
|
2927
|
+
figmaFrame?: {
|
|
2890
2928
|
persistentId: string;
|
|
2891
2929
|
sourceId: string;
|
|
2892
2930
|
sourceFrameId: string;
|
|
@@ -2906,8 +2944,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
2906
2944
|
width?: number | undefined;
|
|
2907
2945
|
height?: number | undefined;
|
|
2908
2946
|
} | undefined;
|
|
2909
|
-
};
|
|
2910
|
-
url?: string | undefined;
|
|
2947
|
+
} | undefined;
|
|
2911
2948
|
} | null | undefined;
|
|
2912
2949
|
minHeight?: number | null | undefined;
|
|
2913
2950
|
};
|
|
@@ -2954,12 +2991,10 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
2954
2991
|
} | null | undefined;
|
|
2955
2992
|
} | null | undefined;
|
|
2956
2993
|
backgroundImageAsset?: {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
url?: string | undefined;
|
|
2960
|
-
|
|
2961
|
-
type: "figmaFrame";
|
|
2962
|
-
figmaFrame: {
|
|
2994
|
+
type: "image" | "figmaFrame";
|
|
2995
|
+
id?: string | null | undefined;
|
|
2996
|
+
url?: string | null | undefined;
|
|
2997
|
+
figmaFrame?: {
|
|
2963
2998
|
persistentId: string;
|
|
2964
2999
|
sourceId: string;
|
|
2965
3000
|
sourceFrameId: string;
|
|
@@ -2979,8 +3014,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
2979
3014
|
width?: number | null | undefined;
|
|
2980
3015
|
height?: number | null | undefined;
|
|
2981
3016
|
} | null | undefined;
|
|
2982
|
-
};
|
|
2983
|
-
url?: string | undefined;
|
|
3017
|
+
} | null | undefined;
|
|
2984
3018
|
} | null | undefined;
|
|
2985
3019
|
minHeight?: number | null | undefined;
|
|
2986
3020
|
};
|
|
@@ -3027,12 +3061,10 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3027
3061
|
} | undefined;
|
|
3028
3062
|
} | null | undefined;
|
|
3029
3063
|
backgroundImageAsset?: {
|
|
3030
|
-
|
|
3031
|
-
|
|
3064
|
+
type: "image" | "figmaFrame";
|
|
3065
|
+
id?: string | undefined;
|
|
3032
3066
|
url?: string | undefined;
|
|
3033
|
-
|
|
3034
|
-
type: "figmaFrame";
|
|
3035
|
-
figmaFrame: {
|
|
3067
|
+
figmaFrame?: {
|
|
3036
3068
|
persistentId: string;
|
|
3037
3069
|
sourceId: string;
|
|
3038
3070
|
sourceFrameId: string;
|
|
@@ -3052,8 +3084,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3052
3084
|
width?: number | undefined;
|
|
3053
3085
|
height?: number | undefined;
|
|
3054
3086
|
} | undefined;
|
|
3055
|
-
};
|
|
3056
|
-
url?: string | undefined;
|
|
3087
|
+
} | undefined;
|
|
3057
3088
|
} | null | undefined;
|
|
3058
3089
|
minHeight?: number | null | undefined;
|
|
3059
3090
|
};
|
|
@@ -3100,12 +3131,10 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3100
3131
|
} | null | undefined;
|
|
3101
3132
|
} | null | undefined;
|
|
3102
3133
|
backgroundImageAsset?: {
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
url?: string | undefined;
|
|
3106
|
-
|
|
3107
|
-
type: "figmaFrame";
|
|
3108
|
-
figmaFrame: {
|
|
3134
|
+
type: "image" | "figmaFrame";
|
|
3135
|
+
id?: string | null | undefined;
|
|
3136
|
+
url?: string | null | undefined;
|
|
3137
|
+
figmaFrame?: {
|
|
3109
3138
|
persistentId: string;
|
|
3110
3139
|
sourceId: string;
|
|
3111
3140
|
sourceFrameId: string;
|
|
@@ -3125,8 +3154,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3125
3154
|
width?: number | null | undefined;
|
|
3126
3155
|
height?: number | null | undefined;
|
|
3127
3156
|
} | null | undefined;
|
|
3128
|
-
};
|
|
3129
|
-
url?: string | undefined;
|
|
3157
|
+
} | null | undefined;
|
|
3130
3158
|
} | null | undefined;
|
|
3131
3159
|
minHeight?: number | null | undefined;
|
|
3132
3160
|
};
|
|
@@ -3369,12 +3397,10 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3369
3397
|
} | undefined;
|
|
3370
3398
|
} | null | undefined;
|
|
3371
3399
|
backgroundImageAsset?: {
|
|
3372
|
-
|
|
3373
|
-
|
|
3400
|
+
type: "image" | "figmaFrame";
|
|
3401
|
+
id?: string | undefined;
|
|
3374
3402
|
url?: string | undefined;
|
|
3375
|
-
|
|
3376
|
-
type: "figmaFrame";
|
|
3377
|
-
figmaFrame: {
|
|
3403
|
+
figmaFrame?: {
|
|
3378
3404
|
persistentId: string;
|
|
3379
3405
|
sourceId: string;
|
|
3380
3406
|
sourceFrameId: string;
|
|
@@ -3394,8 +3420,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3394
3420
|
width?: number | undefined;
|
|
3395
3421
|
height?: number | undefined;
|
|
3396
3422
|
} | undefined;
|
|
3397
|
-
};
|
|
3398
|
-
url?: string | undefined;
|
|
3423
|
+
} | undefined;
|
|
3399
3424
|
} | null | undefined;
|
|
3400
3425
|
minHeight?: number | null | undefined;
|
|
3401
3426
|
};
|
|
@@ -3635,12 +3660,10 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3635
3660
|
} | null | undefined;
|
|
3636
3661
|
} | null | undefined;
|
|
3637
3662
|
backgroundImageAsset?: {
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
url?: string | undefined;
|
|
3641
|
-
|
|
3642
|
-
type: "figmaFrame";
|
|
3643
|
-
figmaFrame: {
|
|
3663
|
+
type: "image" | "figmaFrame";
|
|
3664
|
+
id?: string | null | undefined;
|
|
3665
|
+
url?: string | null | undefined;
|
|
3666
|
+
figmaFrame?: {
|
|
3644
3667
|
persistentId: string;
|
|
3645
3668
|
sourceId: string;
|
|
3646
3669
|
sourceFrameId: string;
|
|
@@ -3660,8 +3683,7 @@ declare const DocumentationPageV1DTO: z.ZodObject<{
|
|
|
3660
3683
|
width?: number | null | undefined;
|
|
3661
3684
|
height?: number | null | undefined;
|
|
3662
3685
|
} | null | undefined;
|
|
3663
|
-
};
|
|
3664
|
-
url?: string | undefined;
|
|
3686
|
+
} | null | undefined;
|
|
3665
3687
|
} | null | undefined;
|
|
3666
3688
|
minHeight?: number | null | undefined;
|
|
3667
3689
|
};
|
|
@@ -11652,8 +11674,12 @@ declare function documentationElementsToHierarchyDto(docPages: DocumentationPage
|
|
|
11652
11674
|
declare function elementGroupsToDocumentationGroupStructureDTO(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupStructureV2[];
|
|
11653
11675
|
declare function elementGroupsToDocumentationGroupDTO(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV2[];
|
|
11654
11676
|
|
|
11677
|
+
type GroupLike = {
|
|
11678
|
+
persistentId: string;
|
|
11679
|
+
parentPersistentId?: string;
|
|
11680
|
+
};
|
|
11655
11681
|
declare function buildDocPagePublishPaths(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): Map<string, string>;
|
|
11656
|
-
declare function calculateElementParentChain(elementParentPersistentId: string, groupPersistentIdToGroupMap: Map<string,
|
|
11682
|
+
declare function calculateElementParentChain<T extends GroupLike>(elementParentPersistentId: string, groupPersistentIdToGroupMap: Map<string, T>): T[];
|
|
11657
11683
|
|
|
11658
11684
|
declare function documentationPagesToDTOV1(pages: DocumentationPageV1[], groups: ElementGroup[]): DocumentationPageV1DTO[];
|
|
11659
11685
|
|
|
@@ -12213,6 +12239,376 @@ declare const DTOLiveblocksAuthRequest: z.ZodObject<{
|
|
|
12213
12239
|
}>;
|
|
12214
12240
|
type DTOLiveblocksAuthRequest = z.infer<typeof DTOLiveblocksAuthRequest>;
|
|
12215
12241
|
|
|
12242
|
+
declare function validateSsoPayload(ssoPayload: Partial<SsoProvider> | undefined): {
|
|
12243
|
+
valid: boolean;
|
|
12244
|
+
keys: string[];
|
|
12245
|
+
};
|
|
12246
|
+
declare const NpmRegistryInput: z.ZodObject<{
|
|
12247
|
+
enabledScopes: z.ZodArray<z.ZodString, "many">;
|
|
12248
|
+
customRegistryUrl: z.ZodOptional<z.ZodString>;
|
|
12249
|
+
bypassProxy: z.ZodOptional<z.ZodBoolean>;
|
|
12250
|
+
npmProxyRegistryConfigId: z.ZodOptional<z.ZodString>;
|
|
12251
|
+
npmProxyVersion: z.ZodOptional<z.ZodNumber>;
|
|
12252
|
+
registryType: z.ZodString;
|
|
12253
|
+
authType: z.ZodString;
|
|
12254
|
+
authHeaderName: z.ZodString;
|
|
12255
|
+
authHeaderValue: z.ZodString;
|
|
12256
|
+
accessToken: z.ZodString;
|
|
12257
|
+
username: z.ZodString;
|
|
12258
|
+
password: z.ZodString;
|
|
12259
|
+
}, "strip", z.ZodTypeAny, {
|
|
12260
|
+
registryType: string;
|
|
12261
|
+
authType: string;
|
|
12262
|
+
accessToken: string;
|
|
12263
|
+
username: string;
|
|
12264
|
+
password: string;
|
|
12265
|
+
enabledScopes: string[];
|
|
12266
|
+
authHeaderName: string;
|
|
12267
|
+
authHeaderValue: string;
|
|
12268
|
+
customRegistryUrl?: string | undefined;
|
|
12269
|
+
bypassProxy?: boolean | undefined;
|
|
12270
|
+
npmProxyRegistryConfigId?: string | undefined;
|
|
12271
|
+
npmProxyVersion?: number | undefined;
|
|
12272
|
+
}, {
|
|
12273
|
+
registryType: string;
|
|
12274
|
+
authType: string;
|
|
12275
|
+
accessToken: string;
|
|
12276
|
+
username: string;
|
|
12277
|
+
password: string;
|
|
12278
|
+
enabledScopes: string[];
|
|
12279
|
+
authHeaderName: string;
|
|
12280
|
+
authHeaderValue: string;
|
|
12281
|
+
customRegistryUrl?: string | undefined;
|
|
12282
|
+
bypassProxy?: boolean | undefined;
|
|
12283
|
+
npmProxyRegistryConfigId?: string | undefined;
|
|
12284
|
+
npmProxyVersion?: number | undefined;
|
|
12285
|
+
}>;
|
|
12286
|
+
declare const WorkspaceConfigurationPayload: z.ZodObject<{
|
|
12287
|
+
ipWhitelist: z.ZodOptional<z.ZodObject<{
|
|
12288
|
+
isEnabledForCloud: z.ZodOptional<z.ZodBoolean>;
|
|
12289
|
+
isEnabledForDocs: z.ZodOptional<z.ZodBoolean>;
|
|
12290
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12291
|
+
isEnabled: z.ZodBoolean;
|
|
12292
|
+
name: z.ZodString;
|
|
12293
|
+
range: z.ZodEffects<z.ZodString, string, string>;
|
|
12294
|
+
}, "strip", z.ZodTypeAny, {
|
|
12295
|
+
name: string;
|
|
12296
|
+
isEnabled: boolean;
|
|
12297
|
+
range: string;
|
|
12298
|
+
}, {
|
|
12299
|
+
name: string;
|
|
12300
|
+
isEnabled: boolean;
|
|
12301
|
+
range: string;
|
|
12302
|
+
}>, "many">>;
|
|
12303
|
+
}, "strip", z.ZodTypeAny, {
|
|
12304
|
+
isEnabledForCloud?: boolean | undefined;
|
|
12305
|
+
isEnabledForDocs?: boolean | undefined;
|
|
12306
|
+
entries?: {
|
|
12307
|
+
name: string;
|
|
12308
|
+
isEnabled: boolean;
|
|
12309
|
+
range: string;
|
|
12310
|
+
}[] | undefined;
|
|
12311
|
+
}, {
|
|
12312
|
+
isEnabledForCloud?: boolean | undefined;
|
|
12313
|
+
isEnabledForDocs?: boolean | undefined;
|
|
12314
|
+
entries?: {
|
|
12315
|
+
name: string;
|
|
12316
|
+
isEnabled: boolean;
|
|
12317
|
+
range: string;
|
|
12318
|
+
}[] | undefined;
|
|
12319
|
+
}>>;
|
|
12320
|
+
sso: z.ZodOptional<z.ZodObject<{
|
|
12321
|
+
providerId: z.ZodOptional<z.ZodString>;
|
|
12322
|
+
defaultAutoInviteValue: z.ZodOptional<z.ZodBoolean>;
|
|
12323
|
+
autoInviteDomains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
12324
|
+
skipDocsSupernovaLogin: z.ZodOptional<z.ZodBoolean>;
|
|
12325
|
+
areInvitesDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
12326
|
+
isTestMode: z.ZodOptional<z.ZodBoolean>;
|
|
12327
|
+
emailDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12328
|
+
metadataXml: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
12329
|
+
}, "strip", z.ZodTypeAny, {
|
|
12330
|
+
providerId?: string | undefined;
|
|
12331
|
+
defaultAutoInviteValue?: boolean | undefined;
|
|
12332
|
+
autoInviteDomains?: Record<string, boolean> | undefined;
|
|
12333
|
+
skipDocsSupernovaLogin?: boolean | undefined;
|
|
12334
|
+
areInvitesDisabled?: boolean | undefined;
|
|
12335
|
+
isTestMode?: boolean | undefined;
|
|
12336
|
+
emailDomains?: string[] | undefined;
|
|
12337
|
+
metadataXml?: string | null | undefined;
|
|
12338
|
+
}, {
|
|
12339
|
+
providerId?: string | undefined;
|
|
12340
|
+
defaultAutoInviteValue?: boolean | undefined;
|
|
12341
|
+
autoInviteDomains?: Record<string, boolean> | undefined;
|
|
12342
|
+
skipDocsSupernovaLogin?: boolean | undefined;
|
|
12343
|
+
areInvitesDisabled?: boolean | undefined;
|
|
12344
|
+
isTestMode?: boolean | undefined;
|
|
12345
|
+
emailDomains?: string[] | undefined;
|
|
12346
|
+
metadataXml?: string | null | undefined;
|
|
12347
|
+
}>>;
|
|
12348
|
+
npmRegistrySettings: z.ZodOptional<z.ZodObject<{
|
|
12349
|
+
enabledScopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
12350
|
+
customRegistryUrl: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
12351
|
+
bypassProxy: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
12352
|
+
npmProxyRegistryConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
12353
|
+
npmProxyVersion: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
12354
|
+
registryType: z.ZodOptional<z.ZodString>;
|
|
12355
|
+
authType: z.ZodOptional<z.ZodString>;
|
|
12356
|
+
authHeaderName: z.ZodOptional<z.ZodString>;
|
|
12357
|
+
authHeaderValue: z.ZodOptional<z.ZodString>;
|
|
12358
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
12359
|
+
username: z.ZodOptional<z.ZodString>;
|
|
12360
|
+
password: z.ZodOptional<z.ZodString>;
|
|
12361
|
+
}, "strip", z.ZodTypeAny, {
|
|
12362
|
+
enabledScopes?: string[] | undefined;
|
|
12363
|
+
customRegistryUrl?: string | undefined;
|
|
12364
|
+
bypassProxy?: boolean | undefined;
|
|
12365
|
+
npmProxyRegistryConfigId?: string | undefined;
|
|
12366
|
+
npmProxyVersion?: number | undefined;
|
|
12367
|
+
registryType?: string | undefined;
|
|
12368
|
+
authType?: string | undefined;
|
|
12369
|
+
authHeaderName?: string | undefined;
|
|
12370
|
+
authHeaderValue?: string | undefined;
|
|
12371
|
+
accessToken?: string | undefined;
|
|
12372
|
+
username?: string | undefined;
|
|
12373
|
+
password?: string | undefined;
|
|
12374
|
+
}, {
|
|
12375
|
+
enabledScopes?: string[] | undefined;
|
|
12376
|
+
customRegistryUrl?: string | undefined;
|
|
12377
|
+
bypassProxy?: boolean | undefined;
|
|
12378
|
+
npmProxyRegistryConfigId?: string | undefined;
|
|
12379
|
+
npmProxyVersion?: number | undefined;
|
|
12380
|
+
registryType?: string | undefined;
|
|
12381
|
+
authType?: string | undefined;
|
|
12382
|
+
authHeaderName?: string | undefined;
|
|
12383
|
+
authHeaderValue?: string | undefined;
|
|
12384
|
+
accessToken?: string | undefined;
|
|
12385
|
+
username?: string | undefined;
|
|
12386
|
+
password?: string | undefined;
|
|
12387
|
+
}>>;
|
|
12388
|
+
profile: z.ZodOptional<z.ZodObject<{
|
|
12389
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12390
|
+
handle: z.ZodOptional<z.ZodString>;
|
|
12391
|
+
color: z.ZodOptional<z.ZodString>;
|
|
12392
|
+
avatar: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>>;
|
|
12393
|
+
billingDetails: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
12394
|
+
address?: {
|
|
12395
|
+
street1?: string | undefined;
|
|
12396
|
+
street2?: string | undefined;
|
|
12397
|
+
city?: string | undefined;
|
|
12398
|
+
postal?: string | undefined;
|
|
12399
|
+
country?: string | undefined;
|
|
12400
|
+
state?: string | undefined;
|
|
12401
|
+
} | undefined;
|
|
12402
|
+
email?: string | undefined;
|
|
12403
|
+
companyName?: string | undefined;
|
|
12404
|
+
companyId?: string | undefined;
|
|
12405
|
+
notes?: string | undefined;
|
|
12406
|
+
vat?: string | undefined;
|
|
12407
|
+
poNumber?: string | undefined;
|
|
12408
|
+
}, z.ZodTypeDef, {
|
|
12409
|
+
address?: {
|
|
12410
|
+
street1?: string | null | undefined;
|
|
12411
|
+
street2?: string | null | undefined;
|
|
12412
|
+
city?: string | null | undefined;
|
|
12413
|
+
postal?: string | null | undefined;
|
|
12414
|
+
country?: string | null | undefined;
|
|
12415
|
+
state?: string | null | undefined;
|
|
12416
|
+
} | null | undefined;
|
|
12417
|
+
email?: string | null | undefined;
|
|
12418
|
+
companyName?: string | null | undefined;
|
|
12419
|
+
companyId?: string | null | undefined;
|
|
12420
|
+
notes?: string | null | undefined;
|
|
12421
|
+
vat?: string | null | undefined;
|
|
12422
|
+
poNumber?: string | null | undefined;
|
|
12423
|
+
}>>>, {
|
|
12424
|
+
address?: {
|
|
12425
|
+
street1?: string | undefined;
|
|
12426
|
+
street2?: string | undefined;
|
|
12427
|
+
city?: string | undefined;
|
|
12428
|
+
postal?: string | undefined;
|
|
12429
|
+
country?: string | undefined;
|
|
12430
|
+
state?: string | undefined;
|
|
12431
|
+
} | undefined;
|
|
12432
|
+
email?: string | undefined;
|
|
12433
|
+
companyName?: string | undefined;
|
|
12434
|
+
companyId?: string | undefined;
|
|
12435
|
+
notes?: string | undefined;
|
|
12436
|
+
vat?: string | undefined;
|
|
12437
|
+
poNumber?: string | undefined;
|
|
12438
|
+
} | undefined, {
|
|
12439
|
+
address?: {
|
|
12440
|
+
street1?: string | null | undefined;
|
|
12441
|
+
street2?: string | null | undefined;
|
|
12442
|
+
city?: string | null | undefined;
|
|
12443
|
+
postal?: string | null | undefined;
|
|
12444
|
+
country?: string | null | undefined;
|
|
12445
|
+
state?: string | null | undefined;
|
|
12446
|
+
} | null | undefined;
|
|
12447
|
+
email?: string | null | undefined;
|
|
12448
|
+
companyName?: string | null | undefined;
|
|
12449
|
+
companyId?: string | null | undefined;
|
|
12450
|
+
notes?: string | null | undefined;
|
|
12451
|
+
vat?: string | null | undefined;
|
|
12452
|
+
poNumber?: string | null | undefined;
|
|
12453
|
+
} | null | undefined>>;
|
|
12454
|
+
}, "strip", z.ZodTypeAny, {
|
|
12455
|
+
name?: string | undefined;
|
|
12456
|
+
handle?: string | undefined;
|
|
12457
|
+
color?: string | undefined;
|
|
12458
|
+
avatar?: string | undefined;
|
|
12459
|
+
billingDetails?: {
|
|
12460
|
+
address?: {
|
|
12461
|
+
street1?: string | undefined;
|
|
12462
|
+
street2?: string | undefined;
|
|
12463
|
+
city?: string | undefined;
|
|
12464
|
+
postal?: string | undefined;
|
|
12465
|
+
country?: string | undefined;
|
|
12466
|
+
state?: string | undefined;
|
|
12467
|
+
} | undefined;
|
|
12468
|
+
email?: string | undefined;
|
|
12469
|
+
companyName?: string | undefined;
|
|
12470
|
+
companyId?: string | undefined;
|
|
12471
|
+
notes?: string | undefined;
|
|
12472
|
+
vat?: string | undefined;
|
|
12473
|
+
poNumber?: string | undefined;
|
|
12474
|
+
} | undefined;
|
|
12475
|
+
}, {
|
|
12476
|
+
name?: string | undefined;
|
|
12477
|
+
handle?: string | undefined;
|
|
12478
|
+
color?: string | undefined;
|
|
12479
|
+
avatar?: string | null | undefined;
|
|
12480
|
+
billingDetails?: {
|
|
12481
|
+
address?: {
|
|
12482
|
+
street1?: string | null | undefined;
|
|
12483
|
+
street2?: string | null | undefined;
|
|
12484
|
+
city?: string | null | undefined;
|
|
12485
|
+
postal?: string | null | undefined;
|
|
12486
|
+
country?: string | null | undefined;
|
|
12487
|
+
state?: string | null | undefined;
|
|
12488
|
+
} | null | undefined;
|
|
12489
|
+
email?: string | null | undefined;
|
|
12490
|
+
companyName?: string | null | undefined;
|
|
12491
|
+
companyId?: string | null | undefined;
|
|
12492
|
+
notes?: string | null | undefined;
|
|
12493
|
+
vat?: string | null | undefined;
|
|
12494
|
+
poNumber?: string | null | undefined;
|
|
12495
|
+
} | null | undefined;
|
|
12496
|
+
}>>;
|
|
12497
|
+
}, "strip", z.ZodTypeAny, {
|
|
12498
|
+
ipWhitelist?: {
|
|
12499
|
+
isEnabledForCloud?: boolean | undefined;
|
|
12500
|
+
isEnabledForDocs?: boolean | undefined;
|
|
12501
|
+
entries?: {
|
|
12502
|
+
name: string;
|
|
12503
|
+
isEnabled: boolean;
|
|
12504
|
+
range: string;
|
|
12505
|
+
}[] | undefined;
|
|
12506
|
+
} | undefined;
|
|
12507
|
+
sso?: {
|
|
12508
|
+
providerId?: string | undefined;
|
|
12509
|
+
defaultAutoInviteValue?: boolean | undefined;
|
|
12510
|
+
autoInviteDomains?: Record<string, boolean> | undefined;
|
|
12511
|
+
skipDocsSupernovaLogin?: boolean | undefined;
|
|
12512
|
+
areInvitesDisabled?: boolean | undefined;
|
|
12513
|
+
isTestMode?: boolean | undefined;
|
|
12514
|
+
emailDomains?: string[] | undefined;
|
|
12515
|
+
metadataXml?: string | null | undefined;
|
|
12516
|
+
} | undefined;
|
|
12517
|
+
npmRegistrySettings?: {
|
|
12518
|
+
enabledScopes?: string[] | undefined;
|
|
12519
|
+
customRegistryUrl?: string | undefined;
|
|
12520
|
+
bypassProxy?: boolean | undefined;
|
|
12521
|
+
npmProxyRegistryConfigId?: string | undefined;
|
|
12522
|
+
npmProxyVersion?: number | undefined;
|
|
12523
|
+
registryType?: string | undefined;
|
|
12524
|
+
authType?: string | undefined;
|
|
12525
|
+
authHeaderName?: string | undefined;
|
|
12526
|
+
authHeaderValue?: string | undefined;
|
|
12527
|
+
accessToken?: string | undefined;
|
|
12528
|
+
username?: string | undefined;
|
|
12529
|
+
password?: string | undefined;
|
|
12530
|
+
} | undefined;
|
|
12531
|
+
profile?: {
|
|
12532
|
+
name?: string | undefined;
|
|
12533
|
+
handle?: string | undefined;
|
|
12534
|
+
color?: string | undefined;
|
|
12535
|
+
avatar?: string | undefined;
|
|
12536
|
+
billingDetails?: {
|
|
12537
|
+
address?: {
|
|
12538
|
+
street1?: string | undefined;
|
|
12539
|
+
street2?: string | undefined;
|
|
12540
|
+
city?: string | undefined;
|
|
12541
|
+
postal?: string | undefined;
|
|
12542
|
+
country?: string | undefined;
|
|
12543
|
+
state?: string | undefined;
|
|
12544
|
+
} | undefined;
|
|
12545
|
+
email?: string | undefined;
|
|
12546
|
+
companyName?: string | undefined;
|
|
12547
|
+
companyId?: string | undefined;
|
|
12548
|
+
notes?: string | undefined;
|
|
12549
|
+
vat?: string | undefined;
|
|
12550
|
+
poNumber?: string | undefined;
|
|
12551
|
+
} | undefined;
|
|
12552
|
+
} | undefined;
|
|
12553
|
+
}, {
|
|
12554
|
+
ipWhitelist?: {
|
|
12555
|
+
isEnabledForCloud?: boolean | undefined;
|
|
12556
|
+
isEnabledForDocs?: boolean | undefined;
|
|
12557
|
+
entries?: {
|
|
12558
|
+
name: string;
|
|
12559
|
+
isEnabled: boolean;
|
|
12560
|
+
range: string;
|
|
12561
|
+
}[] | undefined;
|
|
12562
|
+
} | undefined;
|
|
12563
|
+
sso?: {
|
|
12564
|
+
providerId?: string | undefined;
|
|
12565
|
+
defaultAutoInviteValue?: boolean | undefined;
|
|
12566
|
+
autoInviteDomains?: Record<string, boolean> | undefined;
|
|
12567
|
+
skipDocsSupernovaLogin?: boolean | undefined;
|
|
12568
|
+
areInvitesDisabled?: boolean | undefined;
|
|
12569
|
+
isTestMode?: boolean | undefined;
|
|
12570
|
+
emailDomains?: string[] | undefined;
|
|
12571
|
+
metadataXml?: string | null | undefined;
|
|
12572
|
+
} | undefined;
|
|
12573
|
+
npmRegistrySettings?: {
|
|
12574
|
+
enabledScopes?: string[] | undefined;
|
|
12575
|
+
customRegistryUrl?: string | undefined;
|
|
12576
|
+
bypassProxy?: boolean | undefined;
|
|
12577
|
+
npmProxyRegistryConfigId?: string | undefined;
|
|
12578
|
+
npmProxyVersion?: number | undefined;
|
|
12579
|
+
registryType?: string | undefined;
|
|
12580
|
+
authType?: string | undefined;
|
|
12581
|
+
authHeaderName?: string | undefined;
|
|
12582
|
+
authHeaderValue?: string | undefined;
|
|
12583
|
+
accessToken?: string | undefined;
|
|
12584
|
+
username?: string | undefined;
|
|
12585
|
+
password?: string | undefined;
|
|
12586
|
+
} | undefined;
|
|
12587
|
+
profile?: {
|
|
12588
|
+
name?: string | undefined;
|
|
12589
|
+
handle?: string | undefined;
|
|
12590
|
+
color?: string | undefined;
|
|
12591
|
+
avatar?: string | null | undefined;
|
|
12592
|
+
billingDetails?: {
|
|
12593
|
+
address?: {
|
|
12594
|
+
street1?: string | null | undefined;
|
|
12595
|
+
street2?: string | null | undefined;
|
|
12596
|
+
city?: string | null | undefined;
|
|
12597
|
+
postal?: string | null | undefined;
|
|
12598
|
+
country?: string | null | undefined;
|
|
12599
|
+
state?: string | null | undefined;
|
|
12600
|
+
} | null | undefined;
|
|
12601
|
+
email?: string | null | undefined;
|
|
12602
|
+
companyName?: string | null | undefined;
|
|
12603
|
+
companyId?: string | null | undefined;
|
|
12604
|
+
notes?: string | null | undefined;
|
|
12605
|
+
vat?: string | null | undefined;
|
|
12606
|
+
poNumber?: string | null | undefined;
|
|
12607
|
+
} | null | undefined;
|
|
12608
|
+
} | undefined;
|
|
12609
|
+
}>;
|
|
12610
|
+
type WorkspaceConfigurationPayload = z.infer<typeof WorkspaceConfigurationPayload>;
|
|
12611
|
+
|
|
12216
12612
|
type DocumentationHierarchyTransaction = {
|
|
12217
12613
|
pages: DocumentationPageV2[];
|
|
12218
12614
|
groups: ElementGroup[];
|
|
@@ -14555,4 +14951,4 @@ declare const BlockDefinitionUtils: {
|
|
|
14555
14951
|
};
|
|
14556
14952
|
};
|
|
14557
14953
|
|
|
14558
|
-
export { BlockDefinitionUtils, BlockParsingUtils, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupStructureV2, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderInput, DTOGetBlockDefinitionsOutput, DTOLiveblocksAuthRequest, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceRole, DocumentationPageEditorModel, DocumentationPageV1DTO, PageBlockEditorModel, PageSectionEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, blockDefinitionForBlock, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, documentationElementsToHierarchyDto, documentationHierarchyToYjs, documentationPagesToDTOV1, documentationPagesToDTOV2, documentationPagesToStructureDTOV2, elementGroupsToDocumentationGroupDTO, elementGroupsToDocumentationGroupStructureDTO, getMockPageBlockDefinitions, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, prosemirrorNodeToSection, prosemirrorNodesToBlocks, sectionToProsemirrorNode, serializeAsCustomBlock, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|
|
14954
|
+
export { BlockDefinitionUtils, BlockParsingUtils, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupStructureV2, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageStructureV2, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderInput, DTOGetBlockDefinitionsOutput, DTOLiveblocksAuthRequest, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceRole, DocumentationPageEditorModel, DocumentationPageV1DTO, NpmRegistryInput, PageBlockEditorModel, PageSectionEditorModel, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, WorkspaceConfigurationPayload, blockDefinitionForBlock, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, documentationElementsToHierarchyDto, documentationHierarchyToYjs, documentationPagesToDTOV1, documentationPagesToDTOV2, documentationPagesToStructureDTOV2, elementGroupsToDocumentationGroupDTO, elementGroupsToDocumentationGroupStructureDTO, getMockPageBlockDefinitions, itemConfigurationToYjs, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, prosemirrorNodeToSection, prosemirrorNodesToBlocks, sectionToProsemirrorNode, serializeAsCustomBlock, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
|