@supernova-studio/client 0.48.13 → 0.48.14
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 +344 -2892
- package/dist/index.d.ts +344 -2892
- package/dist/index.js +797 -764
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1077 -1044
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/documentation/draft-state.ts +2 -0
- package/src/api/dto/elements/documentation/group-v2.ts +4 -0
- package/src/api/dto/elements/documentation/hierarchy.ts +0 -14
- package/src/api/dto/elements/documentation/index.ts +1 -0
- package/src/api/dto/elements/documentation/metadata.ts +8 -0
- package/src/api/dto/elements/documentation/page-v2.ts +4 -0
- package/src/yjs/version-room/frontend.ts +105 -34
package/dist/index.mjs
CHANGED
|
@@ -20,12 +20,12 @@ import { z as z11 } from "zod";
|
|
|
20
20
|
import { z as z12 } from "zod";
|
|
21
21
|
import { z as z13 } from "zod";
|
|
22
22
|
import { z as z14 } from "zod";
|
|
23
|
-
import { z as
|
|
23
|
+
import { z as z123 } from "zod";
|
|
24
24
|
import { z as z17 } from "zod";
|
|
25
25
|
import { z as z15 } from "zod";
|
|
26
26
|
import { z as z16 } from "zod";
|
|
27
|
+
import { z as z122 } from "zod";
|
|
27
28
|
import { z as z121 } from "zod";
|
|
28
|
-
import { z as z120 } from "zod";
|
|
29
29
|
import { z as z18 } from "zod";
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
@@ -113,31 +113,32 @@ import { z as z101 } from "zod";
|
|
|
113
113
|
import { z as z102 } from "zod";
|
|
114
114
|
import { z as z103 } from "zod";
|
|
115
115
|
import { z as z104 } from "zod";
|
|
116
|
-
import { z as z105 } from "zod";
|
|
117
116
|
import { z as z106 } from "zod";
|
|
117
|
+
import { z as z105 } from "zod";
|
|
118
|
+
import slugifyImplementation from "@sindresorhus/slugify";
|
|
118
119
|
import { z as z107 } from "zod";
|
|
119
120
|
import { z as z108 } from "zod";
|
|
120
121
|
import { z as z109 } from "zod";
|
|
122
|
+
import { z as z110 } from "zod";
|
|
123
|
+
import { z as z115 } from "zod";
|
|
121
124
|
import { z as z114 } from "zod";
|
|
122
|
-
import { z as z113 } from "zod";
|
|
123
125
|
import IPCIDR from "ip-cidr";
|
|
124
|
-
import { z as
|
|
125
|
-
import { z as z110 } from "zod";
|
|
126
|
+
import { z as z113 } from "zod";
|
|
126
127
|
import { z as z111 } from "zod";
|
|
127
|
-
import { z as
|
|
128
|
+
import { z as z112 } from "zod";
|
|
128
129
|
import { z as z116 } from "zod";
|
|
129
130
|
import { z as z117 } from "zod";
|
|
130
131
|
import { z as z118 } from "zod";
|
|
131
132
|
import { z as z119 } from "zod";
|
|
133
|
+
import { z as z120 } from "zod";
|
|
134
|
+
import { z as z130 } from "zod";
|
|
132
135
|
import { z as z129 } from "zod";
|
|
133
|
-
import { z as z128 } from "zod";
|
|
134
|
-
import { z as z123 } from "zod";
|
|
135
136
|
import { z as z124 } from "zod";
|
|
136
137
|
import { z as z125 } from "zod";
|
|
137
138
|
import { z as z126 } from "zod";
|
|
138
139
|
import { z as z127 } from "zod";
|
|
140
|
+
import { z as z128 } from "zod";
|
|
139
141
|
import { z as z142 } from "zod";
|
|
140
|
-
import { z as z130 } from "zod";
|
|
141
142
|
import { z as z131 } from "zod";
|
|
142
143
|
import { z as z132 } from "zod";
|
|
143
144
|
import { z as z133 } from "zod";
|
|
@@ -146,10 +147,9 @@ import { z as z135 } from "zod";
|
|
|
146
147
|
import { z as z136 } from "zod";
|
|
147
148
|
import { z as z137 } from "zod";
|
|
148
149
|
import { z as z138 } from "zod";
|
|
150
|
+
import { z as z139 } from "zod";
|
|
149
151
|
import { z as z141 } from "zod";
|
|
150
152
|
import { z as z140 } from "zod";
|
|
151
|
-
import { z as z139 } from "zod";
|
|
152
|
-
import slugifyImplementation from "@sindresorhus/slugify";
|
|
153
153
|
import { z as z143 } from "zod";
|
|
154
154
|
import { z as z144 } from "zod";
|
|
155
155
|
import { z as z145 } from "zod";
|
|
@@ -2475,578 +2475,6 @@ var DocumentationCommentThread = z104.object({
|
|
|
2475
2475
|
createdAt: z104.coerce.date(),
|
|
2476
2476
|
updatedAt: z104.coerce.date()
|
|
2477
2477
|
});
|
|
2478
|
-
var DesignElementSnapshotReason = z105.enum(["Publish", "Deletion"]);
|
|
2479
|
-
var DesignElementSnapshotBase = z105.object({
|
|
2480
|
-
id: z105.string(),
|
|
2481
|
-
persistentId: z105.string(),
|
|
2482
|
-
designSystemVersionId: z105.string(),
|
|
2483
|
-
createdAt: z105.coerce.date(),
|
|
2484
|
-
updatedAt: z105.coerce.date(),
|
|
2485
|
-
reason: DesignElementSnapshotReason,
|
|
2486
|
-
createdByUserId: z105.string()
|
|
2487
|
-
});
|
|
2488
|
-
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
2489
|
-
page: DocumentationPageV2,
|
|
2490
|
-
pageContentHash: z106.string(),
|
|
2491
|
-
pageContentStorageKey: z106.string()
|
|
2492
|
-
});
|
|
2493
|
-
var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
2494
|
-
group: ElementGroup
|
|
2495
|
-
});
|
|
2496
|
-
var ElementViewBaseColumnType = z107.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2497
|
-
var ElementViewColumnType = z107.union([
|
|
2498
|
-
z107.literal("BaseProperty"),
|
|
2499
|
-
z107.literal("PropertyDefinition"),
|
|
2500
|
-
z107.literal("Theme")
|
|
2501
|
-
]);
|
|
2502
|
-
var ElementViewColumnSharedAttributes = z107.object({
|
|
2503
|
-
id: z107.string(),
|
|
2504
|
-
persistentId: z107.string(),
|
|
2505
|
-
elementDataViewId: z107.string(),
|
|
2506
|
-
sortPosition: z107.number(),
|
|
2507
|
-
width: z107.number()
|
|
2508
|
-
});
|
|
2509
|
-
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
2510
|
-
type: z107.literal("BaseProperty"),
|
|
2511
|
-
basePropertyType: ElementViewBaseColumnType
|
|
2512
|
-
});
|
|
2513
|
-
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
2514
|
-
type: z107.literal("PropertyDefinition"),
|
|
2515
|
-
propertyDefinitionId: z107.string()
|
|
2516
|
-
});
|
|
2517
|
-
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
2518
|
-
type: z107.literal("Theme"),
|
|
2519
|
-
themeId: z107.string()
|
|
2520
|
-
});
|
|
2521
|
-
var ElementViewColumn = z107.discriminatedUnion("type", [
|
|
2522
|
-
ElementViewBasePropertyColumn,
|
|
2523
|
-
ElementViewPropertyDefinitionColumn,
|
|
2524
|
-
ElementViewThemeColumn
|
|
2525
|
-
]);
|
|
2526
|
-
var ElementView = z108.object({
|
|
2527
|
-
id: z108.string(),
|
|
2528
|
-
persistentId: z108.string(),
|
|
2529
|
-
designSystemVersionId: z108.string(),
|
|
2530
|
-
name: z108.string(),
|
|
2531
|
-
description: z108.string(),
|
|
2532
|
-
targetElementType: ElementPropertyTargetType,
|
|
2533
|
-
isDefault: z108.boolean()
|
|
2534
|
-
});
|
|
2535
|
-
var Brand = z109.object({
|
|
2536
|
-
id: z109.string(),
|
|
2537
|
-
designSystemVersionId: z109.string(),
|
|
2538
|
-
persistentId: z109.string(),
|
|
2539
|
-
name: z109.string(),
|
|
2540
|
-
description: z109.string()
|
|
2541
|
-
});
|
|
2542
|
-
var NpmRegistryAuthType = z110.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2543
|
-
var NpmRegistryType = z110.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2544
|
-
var NpmRegistryBasicAuthConfig = z110.object({
|
|
2545
|
-
authType: z110.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2546
|
-
username: z110.string(),
|
|
2547
|
-
password: z110.string()
|
|
2548
|
-
});
|
|
2549
|
-
var NpmRegistryBearerAuthConfig = z110.object({
|
|
2550
|
-
authType: z110.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2551
|
-
accessToken: z110.string()
|
|
2552
|
-
});
|
|
2553
|
-
var NpmRegistryNoAuthConfig = z110.object({
|
|
2554
|
-
authType: z110.literal(NpmRegistryAuthType.Enum.None)
|
|
2555
|
-
});
|
|
2556
|
-
var NpmRegistrCustomAuthConfig = z110.object({
|
|
2557
|
-
authType: z110.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2558
|
-
authHeaderName: z110.string(),
|
|
2559
|
-
authHeaderValue: z110.string()
|
|
2560
|
-
});
|
|
2561
|
-
var NpmRegistryAuthConfig = z110.discriminatedUnion("authType", [
|
|
2562
|
-
NpmRegistryBasicAuthConfig,
|
|
2563
|
-
NpmRegistryBearerAuthConfig,
|
|
2564
|
-
NpmRegistryNoAuthConfig,
|
|
2565
|
-
NpmRegistrCustomAuthConfig
|
|
2566
|
-
]);
|
|
2567
|
-
var NpmRegistryConfigBase = z110.object({
|
|
2568
|
-
registryType: NpmRegistryType,
|
|
2569
|
-
enabledScopes: z110.array(z110.string()),
|
|
2570
|
-
customRegistryUrl: z110.string().optional(),
|
|
2571
|
-
bypassProxy: z110.boolean().default(false),
|
|
2572
|
-
npmProxyRegistryConfigId: z110.string().optional(),
|
|
2573
|
-
npmProxyVersion: z110.number().optional()
|
|
2574
|
-
});
|
|
2575
|
-
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2576
|
-
var SsoProvider = z111.object({
|
|
2577
|
-
providerId: z111.string(),
|
|
2578
|
-
defaultAutoInviteValue: z111.boolean(),
|
|
2579
|
-
autoInviteDomains: z111.record(z111.string(), z111.boolean()),
|
|
2580
|
-
skipDocsSupernovaLogin: z111.boolean(),
|
|
2581
|
-
areInvitesDisabled: z111.boolean(),
|
|
2582
|
-
isTestMode: z111.boolean(),
|
|
2583
|
-
emailDomains: z111.array(z111.string()),
|
|
2584
|
-
metadataXml: z111.string().nullish()
|
|
2585
|
-
});
|
|
2586
|
-
var isValidCIDR = (value) => {
|
|
2587
|
-
return IPCIDR.isValidAddress(value);
|
|
2588
|
-
};
|
|
2589
|
-
var WorkspaceIpWhitelistEntry = z112.object({
|
|
2590
|
-
isEnabled: z112.boolean(),
|
|
2591
|
-
name: z112.string(),
|
|
2592
|
-
range: z112.string().refine(isValidCIDR, {
|
|
2593
|
-
message: "Invalid IP CIDR"
|
|
2594
|
-
})
|
|
2595
|
-
});
|
|
2596
|
-
var WorkspaceIpSettings = z112.object({
|
|
2597
|
-
isEnabledForCloud: z112.boolean(),
|
|
2598
|
-
isEnabledForDocs: z112.boolean(),
|
|
2599
|
-
entries: z112.array(WorkspaceIpWhitelistEntry)
|
|
2600
|
-
});
|
|
2601
|
-
var WorkspaceProfile = z112.object({
|
|
2602
|
-
name: z112.string(),
|
|
2603
|
-
handle: z112.string(),
|
|
2604
|
-
color: z112.string(),
|
|
2605
|
-
avatar: nullishToOptional(z112.string()),
|
|
2606
|
-
billingDetails: nullishToOptional(BillingDetails)
|
|
2607
|
-
});
|
|
2608
|
-
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
2609
|
-
avatar: true
|
|
2610
|
-
});
|
|
2611
|
-
var Workspace = z112.object({
|
|
2612
|
-
id: z112.string(),
|
|
2613
|
-
profile: WorkspaceProfile,
|
|
2614
|
-
subscription: Subscription,
|
|
2615
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2616
|
-
sso: nullishToOptional(SsoProvider),
|
|
2617
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
2618
|
-
});
|
|
2619
|
-
var WorkspaceWithDesignSystems = z112.object({
|
|
2620
|
-
workspace: Workspace,
|
|
2621
|
-
designSystems: z112.array(DesignSystem)
|
|
2622
|
-
});
|
|
2623
|
-
var DesignSystemSwitcher = z113.object({
|
|
2624
|
-
isEnabled: z113.boolean(),
|
|
2625
|
-
designSystemIds: z113.array(z113.string())
|
|
2626
|
-
});
|
|
2627
|
-
var DesignSystem = z113.object({
|
|
2628
|
-
id: z113.string(),
|
|
2629
|
-
workspaceId: z113.string(),
|
|
2630
|
-
name: z113.string(),
|
|
2631
|
-
description: z113.string(),
|
|
2632
|
-
docExporterId: nullishToOptional(z113.string()),
|
|
2633
|
-
docSlug: z113.string(),
|
|
2634
|
-
docUserSlug: nullishToOptional(z113.string()),
|
|
2635
|
-
docSlugDeprecated: z113.string(),
|
|
2636
|
-
isPublic: z113.boolean(),
|
|
2637
|
-
isMultibrand: z113.boolean(),
|
|
2638
|
-
docViewUrl: nullishToOptional(z113.string()),
|
|
2639
|
-
basePrefixes: z113.array(z113.string()),
|
|
2640
|
-
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2641
|
-
createdAt: z113.coerce.date(),
|
|
2642
|
-
updatedAt: z113.coerce.date()
|
|
2643
|
-
});
|
|
2644
|
-
var DesignSystemWithWorkspace = z113.object({
|
|
2645
|
-
designSystem: DesignSystem,
|
|
2646
|
-
workspace: Workspace
|
|
2647
|
-
});
|
|
2648
|
-
var DS_NAME_MIN_LENGTH = 2;
|
|
2649
|
-
var DS_NAME_MAX_LENGTH = 64;
|
|
2650
|
-
var DS_DESC_MAX_LENGTH = 64;
|
|
2651
|
-
var DesignSystemUpdateInputMetadata = z114.object({
|
|
2652
|
-
name: z114.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
2653
|
-
description: z114.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
2654
|
-
});
|
|
2655
|
-
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
2656
|
-
id: true,
|
|
2657
|
-
createdAt: true,
|
|
2658
|
-
updatedAt: true,
|
|
2659
|
-
docSlug: true,
|
|
2660
|
-
docViewUrl: true,
|
|
2661
|
-
designSystemSwitcher: true
|
|
2662
|
-
}).extend({
|
|
2663
|
-
meta: DesignSystemUpdateInputMetadata.optional()
|
|
2664
|
-
});
|
|
2665
|
-
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2666
|
-
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2667
|
-
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2668
|
-
var DesignSystemCreateInputMetadata = z115.object({
|
|
2669
|
-
name: z115.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
2670
|
-
description: z115.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
2671
|
-
});
|
|
2672
|
-
var DesignSystemCreateInput = z115.object({
|
|
2673
|
-
meta: DesignSystemCreateInputMetadata,
|
|
2674
|
-
workspaceId: z115.string(),
|
|
2675
|
-
isPublic: z115.boolean().optional(),
|
|
2676
|
-
basePrefixes: z115.array(z115.string()).optional(),
|
|
2677
|
-
docUserSlug: z115.string().nullish().optional(),
|
|
2678
|
-
source: z115.array(z115.string()).optional()
|
|
2679
|
-
});
|
|
2680
|
-
var ExporterPropertyImageValue = z116.object({
|
|
2681
|
-
asset: PageBlockAsset.optional(),
|
|
2682
|
-
assetId: z116.string().optional(),
|
|
2683
|
-
assetUrl: z116.string().optional()
|
|
2684
|
-
});
|
|
2685
|
-
var ExporterPropertyValue = z116.object({
|
|
2686
|
-
key: z116.string(),
|
|
2687
|
-
value: z116.union([
|
|
2688
|
-
z116.number(),
|
|
2689
|
-
z116.string(),
|
|
2690
|
-
z116.boolean(),
|
|
2691
|
-
ExporterPropertyImageValue,
|
|
2692
|
-
ColorTokenData,
|
|
2693
|
-
TypographyTokenData
|
|
2694
|
-
])
|
|
2695
|
-
});
|
|
2696
|
-
var ExporterPropertyValuesCollection = z116.object({
|
|
2697
|
-
id: z116.string(),
|
|
2698
|
-
designSystemId: z116.string(),
|
|
2699
|
-
exporterId: z116.string(),
|
|
2700
|
-
values: z116.array(ExporterPropertyValue)
|
|
2701
|
-
});
|
|
2702
|
-
var PublishedDocPage = z117.object({
|
|
2703
|
-
id: z117.string(),
|
|
2704
|
-
publishedDocId: z117.string(),
|
|
2705
|
-
pageShortPersistentId: z117.string(),
|
|
2706
|
-
pathV1: z117.string(),
|
|
2707
|
-
pathV2: z117.string(),
|
|
2708
|
-
storagePath: z117.string(),
|
|
2709
|
-
locale: z117.string().optional(),
|
|
2710
|
-
isPrivate: z117.boolean(),
|
|
2711
|
-
isHidden: z117.boolean(),
|
|
2712
|
-
createdAt: z117.coerce.date(),
|
|
2713
|
-
updatedAt: z117.coerce.date()
|
|
2714
|
-
});
|
|
2715
|
-
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2716
|
-
var PublishedDocEnvironment = z118.enum(publishedDocEnvironments);
|
|
2717
|
-
var PublishedDocsChecksums = z118.record(z118.string());
|
|
2718
|
-
var PublishedDocRoutingVersion = z118.enum(["1", "2"]);
|
|
2719
|
-
var PublishedDoc = z118.object({
|
|
2720
|
-
id: z118.string(),
|
|
2721
|
-
designSystemVersionId: z118.string(),
|
|
2722
|
-
createdAt: z118.coerce.date(),
|
|
2723
|
-
updatedAt: z118.coerce.date(),
|
|
2724
|
-
lastPublishedAt: z118.coerce.date(),
|
|
2725
|
-
isDefault: z118.boolean(),
|
|
2726
|
-
isPublic: z118.boolean(),
|
|
2727
|
-
environment: PublishedDocEnvironment,
|
|
2728
|
-
checksums: PublishedDocsChecksums,
|
|
2729
|
-
storagePath: z118.string(),
|
|
2730
|
-
wasMigrated: z118.boolean(),
|
|
2731
|
-
routingVersion: PublishedDocRoutingVersion,
|
|
2732
|
-
usesLocalizations: z118.boolean(),
|
|
2733
|
-
wasPublishedWithLocalizations: z118.boolean(),
|
|
2734
|
-
tokenCount: z118.number(),
|
|
2735
|
-
assetCount: z118.number()
|
|
2736
|
-
});
|
|
2737
|
-
var DesignSystemVersion = z119.object({
|
|
2738
|
-
id: z119.string(),
|
|
2739
|
-
version: z119.string(),
|
|
2740
|
-
createdAt: z119.date(),
|
|
2741
|
-
designSystemId: z119.string(),
|
|
2742
|
-
name: z119.string(),
|
|
2743
|
-
comment: z119.string(),
|
|
2744
|
-
isReadonly: z119.boolean(),
|
|
2745
|
-
changeLog: z119.string(),
|
|
2746
|
-
parentId: z119.string().optional(),
|
|
2747
|
-
isDraftsFeatureAdopted: z119.boolean()
|
|
2748
|
-
});
|
|
2749
|
-
var VersionCreationJobStatus = z119.enum(["Success", "InProgress", "Error"]);
|
|
2750
|
-
var VersionCreationJob = z119.object({
|
|
2751
|
-
id: z119.string(),
|
|
2752
|
-
version: z119.string(),
|
|
2753
|
-
designSystemId: z119.string(),
|
|
2754
|
-
designSystemVersionId: nullishToOptional(z119.string()),
|
|
2755
|
-
status: VersionCreationJobStatus,
|
|
2756
|
-
errorMessage: nullishToOptional(z119.string())
|
|
2757
|
-
});
|
|
2758
|
-
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2759
|
-
var BITBUCKET_MAX_LENGTH = 64;
|
|
2760
|
-
var ExportJobDocumentationChanges = z120.object({
|
|
2761
|
-
pagePersistentIds: z120.string().array(),
|
|
2762
|
-
groupPersistentIds: z120.string().array()
|
|
2763
|
-
});
|
|
2764
|
-
var ExporterDestinationDocs = z120.object({
|
|
2765
|
-
environment: PublishedDocEnvironment,
|
|
2766
|
-
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
2767
|
-
});
|
|
2768
|
-
var ExporterDestinationS3 = z120.object({});
|
|
2769
|
-
var ExporterDestinationGithub = z120.object({
|
|
2770
|
-
credentialId: z120.string().optional(),
|
|
2771
|
-
// Repository
|
|
2772
|
-
url: z120.string(),
|
|
2773
|
-
// Location
|
|
2774
|
-
branch: z120.string(),
|
|
2775
|
-
relativePath: nullishToOptional(z120.string()),
|
|
2776
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2777
|
-
connectionId: nullishToOptional(z120.string()),
|
|
2778
|
-
userId: nullishToOptional(z120.number())
|
|
2779
|
-
});
|
|
2780
|
-
var ExporterDestinationAzure = z120.object({
|
|
2781
|
-
credentialId: z120.string().optional(),
|
|
2782
|
-
// Repository
|
|
2783
|
-
organizationId: z120.string(),
|
|
2784
|
-
projectId: z120.string(),
|
|
2785
|
-
repositoryId: z120.string(),
|
|
2786
|
-
// Location
|
|
2787
|
-
branch: z120.string(),
|
|
2788
|
-
relativePath: nullishToOptional(z120.string()),
|
|
2789
|
-
// Maybe not needed
|
|
2790
|
-
url: nullishToOptional(z120.string()),
|
|
2791
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2792
|
-
connectionId: nullishToOptional(z120.string()),
|
|
2793
|
-
userId: nullishToOptional(z120.number())
|
|
2794
|
-
});
|
|
2795
|
-
var ExporterDestinationGitlab = z120.object({
|
|
2796
|
-
credentialId: z120.string().optional(),
|
|
2797
|
-
// Repository
|
|
2798
|
-
projectId: z120.string(),
|
|
2799
|
-
// Location
|
|
2800
|
-
branch: z120.string(),
|
|
2801
|
-
relativePath: nullishToOptional(z120.string()),
|
|
2802
|
-
// Maybe not needed
|
|
2803
|
-
url: nullishToOptional(z120.string()),
|
|
2804
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2805
|
-
connectionId: nullishToOptional(z120.string()),
|
|
2806
|
-
userId: nullishToOptional(z120.number())
|
|
2807
|
-
});
|
|
2808
|
-
var ExporterDestinationBitbucket = z120.object({
|
|
2809
|
-
credentialId: z120.string().optional(),
|
|
2810
|
-
// Repository
|
|
2811
|
-
workspaceSlug: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2812
|
-
projectKey: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2813
|
-
repoSlug: z120.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2814
|
-
// Location
|
|
2815
|
-
branch: z120.string(),
|
|
2816
|
-
relativePath: nullishToOptional(z120.string()),
|
|
2817
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2818
|
-
connectionId: nullishToOptional(z120.string()),
|
|
2819
|
-
userId: nullishToOptional(z120.number())
|
|
2820
|
-
});
|
|
2821
|
-
var ExportDestinationsMap = z120.object({
|
|
2822
|
-
webhookUrl: z120.string().optional(),
|
|
2823
|
-
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
2824
|
-
destinationS3: ExporterDestinationS3.optional(),
|
|
2825
|
-
destinationGithub: ExporterDestinationGithub.optional(),
|
|
2826
|
-
destinationAzure: ExporterDestinationAzure.optional(),
|
|
2827
|
-
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2828
|
-
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2829
|
-
});
|
|
2830
|
-
var PipelineEventType = z121.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
2831
|
-
var PipelineDestinationGitType = z121.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2832
|
-
var PipelineDestinationExtraType = z121.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
2833
|
-
var PipelineDestinationType = z121.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
2834
|
-
var Pipeline = z121.object({
|
|
2835
|
-
id: z121.string(),
|
|
2836
|
-
name: z121.string(),
|
|
2837
|
-
eventType: PipelineEventType,
|
|
2838
|
-
isEnabled: z121.boolean(),
|
|
2839
|
-
workspaceId: z121.string(),
|
|
2840
|
-
designSystemId: z121.string(),
|
|
2841
|
-
exporterId: z121.string(),
|
|
2842
|
-
brandPersistentId: z121.string().optional(),
|
|
2843
|
-
themePersistentId: z121.string().optional(),
|
|
2844
|
-
// Destinations
|
|
2845
|
-
...ExportDestinationsMap.shape
|
|
2846
|
-
});
|
|
2847
|
-
var ExportJobDump = z122.object({
|
|
2848
|
-
id: z122.string(),
|
|
2849
|
-
createdAt: z122.coerce.date(),
|
|
2850
|
-
finishedAt: z122.coerce.date(),
|
|
2851
|
-
exportArtefacts: z122.string()
|
|
2852
|
-
});
|
|
2853
|
-
var CodeIntegrationDump = z122.object({
|
|
2854
|
-
exporters: Exporter.array(),
|
|
2855
|
-
pipelines: Pipeline.array(),
|
|
2856
|
-
exportJobs: ExportJobDump.array()
|
|
2857
|
-
});
|
|
2858
|
-
var DesignSystemVersionRoom = Entity.extend({
|
|
2859
|
-
designSystemVersionId: z123.string(),
|
|
2860
|
-
liveblocksId: z123.string()
|
|
2861
|
-
});
|
|
2862
|
-
var DesignSystemVersionRoomInternalSettings = z123.object({
|
|
2863
|
-
routingVersion: z123.string(),
|
|
2864
|
-
isDraftFeatureAdopted: z123.boolean()
|
|
2865
|
-
});
|
|
2866
|
-
var DesignSystemVersionRoomInitialState = z123.object({
|
|
2867
|
-
pages: z123.array(DocumentationPageV2),
|
|
2868
|
-
groups: z123.array(ElementGroup),
|
|
2869
|
-
pageSnapshots: z123.array(DocumentationPageSnapshot),
|
|
2870
|
-
groupSnapshots: z123.array(ElementGroupSnapshot),
|
|
2871
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
2872
|
-
});
|
|
2873
|
-
var DesignSystemVersionRoomUpdate = z123.object({
|
|
2874
|
-
pages: z123.array(DocumentationPageV2),
|
|
2875
|
-
groups: z123.array(ElementGroup),
|
|
2876
|
-
pageIdsToDelete: z123.array(z123.string()),
|
|
2877
|
-
groupIdsToDelete: z123.array(z123.string()),
|
|
2878
|
-
pageSnapshots: z123.array(DocumentationPageSnapshot),
|
|
2879
|
-
groupSnapshots: z123.array(ElementGroupSnapshot),
|
|
2880
|
-
pageSnapshotIdsToDelete: z123.array(z123.string()),
|
|
2881
|
-
groupSnapshotIdsToDelete: z123.array(z123.string()),
|
|
2882
|
-
pageHashesToUpdate: z123.record(z123.string(), z123.string())
|
|
2883
|
-
});
|
|
2884
|
-
var DocumentationPageRoom = Entity.extend({
|
|
2885
|
-
designSystemVersionId: z124.string(),
|
|
2886
|
-
documentationPageId: z124.string(),
|
|
2887
|
-
liveblocksId: z124.string(),
|
|
2888
|
-
isDirty: z124.boolean()
|
|
2889
|
-
});
|
|
2890
|
-
var DocumentationPageRoomState = z124.object({
|
|
2891
|
-
pageItems: z124.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2892
|
-
itemConfiguration: DocumentationItemConfigurationV2
|
|
2893
|
-
});
|
|
2894
|
-
var DocumentationPageRoomRoomUpdate = z124.object({
|
|
2895
|
-
page: DocumentationPageV2,
|
|
2896
|
-
pageParent: ElementGroup
|
|
2897
|
-
});
|
|
2898
|
-
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
2899
|
-
pageItems: z124.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2900
|
-
blockDefinitions: z124.array(PageBlockDefinition)
|
|
2901
|
-
});
|
|
2902
|
-
var RestoredDocumentationPage = z124.object({
|
|
2903
|
-
page: DocumentationPageV2,
|
|
2904
|
-
pageParent: ElementGroup,
|
|
2905
|
-
pageContent: DocumentationPageContentData,
|
|
2906
|
-
contentHash: z124.string(),
|
|
2907
|
-
roomId: z124.string().optional()
|
|
2908
|
-
});
|
|
2909
|
-
var RestoredDocumentationGroup = z124.object({
|
|
2910
|
-
group: ElementGroup,
|
|
2911
|
-
parent: ElementGroup
|
|
2912
|
-
});
|
|
2913
|
-
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2914
|
-
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2915
|
-
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2916
|
-
RoomTypeEnum2["Workspace"] = "workspace";
|
|
2917
|
-
return RoomTypeEnum2;
|
|
2918
|
-
})(RoomTypeEnum || {});
|
|
2919
|
-
var RoomTypeSchema = z125.nativeEnum(RoomTypeEnum);
|
|
2920
|
-
var RoomType = RoomTypeSchema.enum;
|
|
2921
|
-
var WorkspaceRoom = Entity.extend({
|
|
2922
|
-
workspaceId: z126.string(),
|
|
2923
|
-
liveblocksId: z126.string()
|
|
2924
|
-
});
|
|
2925
|
-
var PublishedDocsDump = z127.object({
|
|
2926
|
-
documentation: PublishedDoc,
|
|
2927
|
-
pages: PublishedDocPage.array()
|
|
2928
|
-
});
|
|
2929
|
-
var DocumentationThreadDump = z128.object({
|
|
2930
|
-
thread: DocumentationCommentThread,
|
|
2931
|
-
comments: DocumentationComment.array()
|
|
2932
|
-
});
|
|
2933
|
-
var DocumentationPageRoomDump = z128.object({
|
|
2934
|
-
room: DocumentationPageRoom,
|
|
2935
|
-
threads: DocumentationThreadDump.array()
|
|
2936
|
-
});
|
|
2937
|
-
var DesignSystemVersionMultiplayerDump = z128.object({
|
|
2938
|
-
documentationPages: DocumentationPageRoomDump.array()
|
|
2939
|
-
});
|
|
2940
|
-
var DesignSystemVersionDump = z128.object({
|
|
2941
|
-
version: DesignSystemVersion,
|
|
2942
|
-
brands: Brand.array(),
|
|
2943
|
-
elements: DesignElement.array(),
|
|
2944
|
-
elementPropertyDefinitions: ElementPropertyDefinition.array(),
|
|
2945
|
-
elementPropertyValues: ElementPropertyValue.array(),
|
|
2946
|
-
elementViews: ElementView.array(),
|
|
2947
|
-
elementColumns: ElementViewColumn.array(),
|
|
2948
|
-
documentationPageContents: DocumentationPageContent.array(),
|
|
2949
|
-
documentationPageRooms: DocumentationPageRoomDump.array(),
|
|
2950
|
-
publishedDocumentations: PublishedDocsDump.array(),
|
|
2951
|
-
assetReferences: AssetReference.array()
|
|
2952
|
-
});
|
|
2953
|
-
var DesignSystemDump = z129.object({
|
|
2954
|
-
designSystem: DesignSystem,
|
|
2955
|
-
dataSources: DataSource.array(),
|
|
2956
|
-
versions: DesignSystemVersionDump.array(),
|
|
2957
|
-
customDomain: CustomDomain.optional(),
|
|
2958
|
-
files: Asset.array()
|
|
2959
|
-
});
|
|
2960
|
-
var IntegrationAuthType = z130.union([z130.literal("OAuth2"), z130.literal("PAT")]);
|
|
2961
|
-
var ExternalServiceType = z130.union([
|
|
2962
|
-
z130.literal("figma"),
|
|
2963
|
-
z130.literal("github"),
|
|
2964
|
-
z130.literal("azure"),
|
|
2965
|
-
z130.literal("gitlab"),
|
|
2966
|
-
z130.literal("bitbucket")
|
|
2967
|
-
]);
|
|
2968
|
-
var IntegrationUserInfo = z130.object({
|
|
2969
|
-
id: z130.string(),
|
|
2970
|
-
handle: z130.string().optional(),
|
|
2971
|
-
avatarUrl: z130.string().optional(),
|
|
2972
|
-
email: z130.string().optional(),
|
|
2973
|
-
authType: IntegrationAuthType.optional(),
|
|
2974
|
-
customUrl: z130.string().optional()
|
|
2975
|
-
});
|
|
2976
|
-
var UserLinkedIntegrations = z130.object({
|
|
2977
|
-
figma: IntegrationUserInfo.optional(),
|
|
2978
|
-
github: IntegrationUserInfo.array().optional(),
|
|
2979
|
-
azure: IntegrationUserInfo.array().optional(),
|
|
2980
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
2981
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
2982
|
-
});
|
|
2983
|
-
var UserAnalyticsCleanupSchedule = z131.object({
|
|
2984
|
-
userId: z131.string(),
|
|
2985
|
-
createdAt: z131.coerce.date(),
|
|
2986
|
-
deleteAt: z131.coerce.date()
|
|
2987
|
-
});
|
|
2988
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
2989
|
-
createdAt: true
|
|
2990
|
-
});
|
|
2991
|
-
var CreateUserInput = z132.object({
|
|
2992
|
-
email: z132.string(),
|
|
2993
|
-
name: z132.string(),
|
|
2994
|
-
username: z132.string()
|
|
2995
|
-
});
|
|
2996
|
-
var UserIdentity = z133.object({
|
|
2997
|
-
id: z133.string(),
|
|
2998
|
-
userId: z133.string()
|
|
2999
|
-
});
|
|
3000
|
-
var UserMinified = z134.object({
|
|
3001
|
-
id: z134.string(),
|
|
3002
|
-
name: z134.string(),
|
|
3003
|
-
email: z134.string(),
|
|
3004
|
-
avatar: z134.string().optional()
|
|
3005
|
-
});
|
|
3006
|
-
var LiveblocksNotificationSettings = z135.object({
|
|
3007
|
-
sendCommentNotificationEmails: z135.boolean()
|
|
3008
|
-
});
|
|
3009
|
-
var UserNotificationSettings = z135.object({
|
|
3010
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3011
|
-
});
|
|
3012
|
-
var UserOnboardingDepartment = z136.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3013
|
-
var UserOnboardingJobLevel = z136.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3014
|
-
var UserOnboarding = z136.object({
|
|
3015
|
-
companyName: z136.string().optional(),
|
|
3016
|
-
numberOfPeopleInOrg: z136.string().optional(),
|
|
3017
|
-
numberOfPeopleInDesignTeam: z136.string().optional(),
|
|
3018
|
-
department: UserOnboardingDepartment.optional(),
|
|
3019
|
-
jobTitle: z136.string().optional(),
|
|
3020
|
-
phase: z136.string().optional(),
|
|
3021
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3022
|
-
designSystemName: z136.string().optional(),
|
|
3023
|
-
defaultDestination: z136.string().optional(),
|
|
3024
|
-
figmaUrl: z136.string().optional()
|
|
3025
|
-
});
|
|
3026
|
-
var UserProfile = z136.object({
|
|
3027
|
-
name: z136.string(),
|
|
3028
|
-
avatar: z136.string().optional(),
|
|
3029
|
-
nickname: z136.string().optional(),
|
|
3030
|
-
onboarding: UserOnboarding.optional()
|
|
3031
|
-
});
|
|
3032
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3033
|
-
avatar: true
|
|
3034
|
-
});
|
|
3035
|
-
var UserTest = z137.object({
|
|
3036
|
-
id: z137.string(),
|
|
3037
|
-
email: z137.string()
|
|
3038
|
-
});
|
|
3039
|
-
var User = z138.object({
|
|
3040
|
-
id: z138.string(),
|
|
3041
|
-
email: z138.string(),
|
|
3042
|
-
emailVerified: z138.boolean(),
|
|
3043
|
-
createdAt: z138.coerce.date(),
|
|
3044
|
-
trialExpiresAt: z138.coerce.date().optional(),
|
|
3045
|
-
profile: UserProfile,
|
|
3046
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3047
|
-
loggedOutAt: z138.coerce.date().optional(),
|
|
3048
|
-
isProtected: z138.boolean()
|
|
3049
|
-
});
|
|
3050
2478
|
var SupernovaException = class _SupernovaException extends Error {
|
|
3051
2479
|
//
|
|
3052
2480
|
// Properties
|
|
@@ -3154,25 +2582,25 @@ function groupBy(items, keyFn) {
|
|
|
3154
2582
|
}
|
|
3155
2583
|
return result;
|
|
3156
2584
|
}
|
|
3157
|
-
var ContentLoadInstruction =
|
|
3158
|
-
from:
|
|
3159
|
-
to:
|
|
3160
|
-
authorizationHeaderKvsId:
|
|
3161
|
-
timeout:
|
|
2585
|
+
var ContentLoadInstruction = z105.object({
|
|
2586
|
+
from: z105.string(),
|
|
2587
|
+
to: z105.string(),
|
|
2588
|
+
authorizationHeaderKvsId: z105.string().optional(),
|
|
2589
|
+
timeout: z105.number().optional()
|
|
3162
2590
|
});
|
|
3163
|
-
var ContentLoaderPayload =
|
|
3164
|
-
type:
|
|
2591
|
+
var ContentLoaderPayload = z105.object({
|
|
2592
|
+
type: z105.literal("Single"),
|
|
3165
2593
|
instruction: ContentLoadInstruction
|
|
3166
2594
|
}).or(
|
|
3167
|
-
|
|
3168
|
-
type:
|
|
3169
|
-
loadingChunkSize:
|
|
3170
|
-
instructions:
|
|
2595
|
+
z105.object({
|
|
2596
|
+
type: z105.literal("Multiple"),
|
|
2597
|
+
loadingChunkSize: z105.number().optional(),
|
|
2598
|
+
instructions: z105.array(ContentLoadInstruction)
|
|
3171
2599
|
})
|
|
3172
2600
|
).or(
|
|
3173
|
-
|
|
3174
|
-
type:
|
|
3175
|
-
location:
|
|
2601
|
+
z105.object({
|
|
2602
|
+
type: z105.literal("S3"),
|
|
2603
|
+
location: z105.string()
|
|
3176
2604
|
})
|
|
3177
2605
|
);
|
|
3178
2606
|
function slugify(str, options) {
|
|
@@ -3800,6 +3228,591 @@ var RESERVED_SLUGS = [
|
|
|
3800
3228
|
];
|
|
3801
3229
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3802
3230
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
3231
|
+
var DesignElementSnapshotReason = z106.enum(["Publish", "Deletion"]);
|
|
3232
|
+
var DesignElementSnapshotBase = z106.object({
|
|
3233
|
+
id: z106.string(),
|
|
3234
|
+
persistentId: z106.string(),
|
|
3235
|
+
designSystemVersionId: z106.string(),
|
|
3236
|
+
createdAt: z106.coerce.date(),
|
|
3237
|
+
updatedAt: z106.coerce.date(),
|
|
3238
|
+
reason: DesignElementSnapshotReason,
|
|
3239
|
+
createdByUserId: z106.string()
|
|
3240
|
+
});
|
|
3241
|
+
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
3242
|
+
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
3243
|
+
return Array.from(groupedSnapshots.entries()).map(([_, snapshots2]) => {
|
|
3244
|
+
const sorted = snapshots2.sort((lhs, rhs) => rhs.createdAt.getTime() - lhs.createdAt.getTime());
|
|
3245
|
+
return sorted[0];
|
|
3246
|
+
});
|
|
3247
|
+
}
|
|
3248
|
+
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
3249
|
+
page: DocumentationPageV2,
|
|
3250
|
+
pageContentHash: z107.string(),
|
|
3251
|
+
pageContentStorageKey: z107.string()
|
|
3252
|
+
});
|
|
3253
|
+
function pickLatestPageSnapshots(snapshots) {
|
|
3254
|
+
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
3255
|
+
}
|
|
3256
|
+
var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
3257
|
+
group: ElementGroup
|
|
3258
|
+
});
|
|
3259
|
+
function pickLatestGroupSnapshots(snapshots) {
|
|
3260
|
+
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3261
|
+
}
|
|
3262
|
+
var ElementViewBaseColumnType = z108.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3263
|
+
var ElementViewColumnType = z108.union([
|
|
3264
|
+
z108.literal("BaseProperty"),
|
|
3265
|
+
z108.literal("PropertyDefinition"),
|
|
3266
|
+
z108.literal("Theme")
|
|
3267
|
+
]);
|
|
3268
|
+
var ElementViewColumnSharedAttributes = z108.object({
|
|
3269
|
+
id: z108.string(),
|
|
3270
|
+
persistentId: z108.string(),
|
|
3271
|
+
elementDataViewId: z108.string(),
|
|
3272
|
+
sortPosition: z108.number(),
|
|
3273
|
+
width: z108.number()
|
|
3274
|
+
});
|
|
3275
|
+
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3276
|
+
type: z108.literal("BaseProperty"),
|
|
3277
|
+
basePropertyType: ElementViewBaseColumnType
|
|
3278
|
+
});
|
|
3279
|
+
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3280
|
+
type: z108.literal("PropertyDefinition"),
|
|
3281
|
+
propertyDefinitionId: z108.string()
|
|
3282
|
+
});
|
|
3283
|
+
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3284
|
+
type: z108.literal("Theme"),
|
|
3285
|
+
themeId: z108.string()
|
|
3286
|
+
});
|
|
3287
|
+
var ElementViewColumn = z108.discriminatedUnion("type", [
|
|
3288
|
+
ElementViewBasePropertyColumn,
|
|
3289
|
+
ElementViewPropertyDefinitionColumn,
|
|
3290
|
+
ElementViewThemeColumn
|
|
3291
|
+
]);
|
|
3292
|
+
var ElementView = z109.object({
|
|
3293
|
+
id: z109.string(),
|
|
3294
|
+
persistentId: z109.string(),
|
|
3295
|
+
designSystemVersionId: z109.string(),
|
|
3296
|
+
name: z109.string(),
|
|
3297
|
+
description: z109.string(),
|
|
3298
|
+
targetElementType: ElementPropertyTargetType,
|
|
3299
|
+
isDefault: z109.boolean()
|
|
3300
|
+
});
|
|
3301
|
+
var Brand = z110.object({
|
|
3302
|
+
id: z110.string(),
|
|
3303
|
+
designSystemVersionId: z110.string(),
|
|
3304
|
+
persistentId: z110.string(),
|
|
3305
|
+
name: z110.string(),
|
|
3306
|
+
description: z110.string()
|
|
3307
|
+
});
|
|
3308
|
+
var NpmRegistryAuthType = z111.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3309
|
+
var NpmRegistryType = z111.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3310
|
+
var NpmRegistryBasicAuthConfig = z111.object({
|
|
3311
|
+
authType: z111.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3312
|
+
username: z111.string(),
|
|
3313
|
+
password: z111.string()
|
|
3314
|
+
});
|
|
3315
|
+
var NpmRegistryBearerAuthConfig = z111.object({
|
|
3316
|
+
authType: z111.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3317
|
+
accessToken: z111.string()
|
|
3318
|
+
});
|
|
3319
|
+
var NpmRegistryNoAuthConfig = z111.object({
|
|
3320
|
+
authType: z111.literal(NpmRegistryAuthType.Enum.None)
|
|
3321
|
+
});
|
|
3322
|
+
var NpmRegistrCustomAuthConfig = z111.object({
|
|
3323
|
+
authType: z111.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3324
|
+
authHeaderName: z111.string(),
|
|
3325
|
+
authHeaderValue: z111.string()
|
|
3326
|
+
});
|
|
3327
|
+
var NpmRegistryAuthConfig = z111.discriminatedUnion("authType", [
|
|
3328
|
+
NpmRegistryBasicAuthConfig,
|
|
3329
|
+
NpmRegistryBearerAuthConfig,
|
|
3330
|
+
NpmRegistryNoAuthConfig,
|
|
3331
|
+
NpmRegistrCustomAuthConfig
|
|
3332
|
+
]);
|
|
3333
|
+
var NpmRegistryConfigBase = z111.object({
|
|
3334
|
+
registryType: NpmRegistryType,
|
|
3335
|
+
enabledScopes: z111.array(z111.string()),
|
|
3336
|
+
customRegistryUrl: z111.string().optional(),
|
|
3337
|
+
bypassProxy: z111.boolean().default(false),
|
|
3338
|
+
npmProxyRegistryConfigId: z111.string().optional(),
|
|
3339
|
+
npmProxyVersion: z111.number().optional()
|
|
3340
|
+
});
|
|
3341
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3342
|
+
var SsoProvider = z112.object({
|
|
3343
|
+
providerId: z112.string(),
|
|
3344
|
+
defaultAutoInviteValue: z112.boolean(),
|
|
3345
|
+
autoInviteDomains: z112.record(z112.string(), z112.boolean()),
|
|
3346
|
+
skipDocsSupernovaLogin: z112.boolean(),
|
|
3347
|
+
areInvitesDisabled: z112.boolean(),
|
|
3348
|
+
isTestMode: z112.boolean(),
|
|
3349
|
+
emailDomains: z112.array(z112.string()),
|
|
3350
|
+
metadataXml: z112.string().nullish()
|
|
3351
|
+
});
|
|
3352
|
+
var isValidCIDR = (value) => {
|
|
3353
|
+
return IPCIDR.isValidAddress(value);
|
|
3354
|
+
};
|
|
3355
|
+
var WorkspaceIpWhitelistEntry = z113.object({
|
|
3356
|
+
isEnabled: z113.boolean(),
|
|
3357
|
+
name: z113.string(),
|
|
3358
|
+
range: z113.string().refine(isValidCIDR, {
|
|
3359
|
+
message: "Invalid IP CIDR"
|
|
3360
|
+
})
|
|
3361
|
+
});
|
|
3362
|
+
var WorkspaceIpSettings = z113.object({
|
|
3363
|
+
isEnabledForCloud: z113.boolean(),
|
|
3364
|
+
isEnabledForDocs: z113.boolean(),
|
|
3365
|
+
entries: z113.array(WorkspaceIpWhitelistEntry)
|
|
3366
|
+
});
|
|
3367
|
+
var WorkspaceProfile = z113.object({
|
|
3368
|
+
name: z113.string(),
|
|
3369
|
+
handle: z113.string(),
|
|
3370
|
+
color: z113.string(),
|
|
3371
|
+
avatar: nullishToOptional(z113.string()),
|
|
3372
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
3373
|
+
});
|
|
3374
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3375
|
+
avatar: true
|
|
3376
|
+
});
|
|
3377
|
+
var Workspace = z113.object({
|
|
3378
|
+
id: z113.string(),
|
|
3379
|
+
profile: WorkspaceProfile,
|
|
3380
|
+
subscription: Subscription,
|
|
3381
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3382
|
+
sso: nullishToOptional(SsoProvider),
|
|
3383
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3384
|
+
});
|
|
3385
|
+
var WorkspaceWithDesignSystems = z113.object({
|
|
3386
|
+
workspace: Workspace,
|
|
3387
|
+
designSystems: z113.array(DesignSystem)
|
|
3388
|
+
});
|
|
3389
|
+
var DesignSystemSwitcher = z114.object({
|
|
3390
|
+
isEnabled: z114.boolean(),
|
|
3391
|
+
designSystemIds: z114.array(z114.string())
|
|
3392
|
+
});
|
|
3393
|
+
var DesignSystem = z114.object({
|
|
3394
|
+
id: z114.string(),
|
|
3395
|
+
workspaceId: z114.string(),
|
|
3396
|
+
name: z114.string(),
|
|
3397
|
+
description: z114.string(),
|
|
3398
|
+
docExporterId: nullishToOptional(z114.string()),
|
|
3399
|
+
docSlug: z114.string(),
|
|
3400
|
+
docUserSlug: nullishToOptional(z114.string()),
|
|
3401
|
+
docSlugDeprecated: z114.string(),
|
|
3402
|
+
isPublic: z114.boolean(),
|
|
3403
|
+
isMultibrand: z114.boolean(),
|
|
3404
|
+
docViewUrl: nullishToOptional(z114.string()),
|
|
3405
|
+
basePrefixes: z114.array(z114.string()),
|
|
3406
|
+
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3407
|
+
createdAt: z114.coerce.date(),
|
|
3408
|
+
updatedAt: z114.coerce.date()
|
|
3409
|
+
});
|
|
3410
|
+
var DesignSystemWithWorkspace = z114.object({
|
|
3411
|
+
designSystem: DesignSystem,
|
|
3412
|
+
workspace: Workspace
|
|
3413
|
+
});
|
|
3414
|
+
var DS_NAME_MIN_LENGTH = 2;
|
|
3415
|
+
var DS_NAME_MAX_LENGTH = 64;
|
|
3416
|
+
var DS_DESC_MAX_LENGTH = 64;
|
|
3417
|
+
var DesignSystemUpdateInputMetadata = z115.object({
|
|
3418
|
+
name: z115.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3419
|
+
description: z115.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3420
|
+
});
|
|
3421
|
+
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3422
|
+
id: true,
|
|
3423
|
+
createdAt: true,
|
|
3424
|
+
updatedAt: true,
|
|
3425
|
+
docSlug: true,
|
|
3426
|
+
docViewUrl: true,
|
|
3427
|
+
designSystemSwitcher: true
|
|
3428
|
+
}).extend({
|
|
3429
|
+
meta: DesignSystemUpdateInputMetadata.optional()
|
|
3430
|
+
});
|
|
3431
|
+
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3432
|
+
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3433
|
+
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3434
|
+
var DesignSystemCreateInputMetadata = z116.object({
|
|
3435
|
+
name: z116.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3436
|
+
description: z116.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
3437
|
+
});
|
|
3438
|
+
var DesignSystemCreateInput = z116.object({
|
|
3439
|
+
meta: DesignSystemCreateInputMetadata,
|
|
3440
|
+
workspaceId: z116.string(),
|
|
3441
|
+
isPublic: z116.boolean().optional(),
|
|
3442
|
+
basePrefixes: z116.array(z116.string()).optional(),
|
|
3443
|
+
docUserSlug: z116.string().nullish().optional(),
|
|
3444
|
+
source: z116.array(z116.string()).optional()
|
|
3445
|
+
});
|
|
3446
|
+
var ExporterPropertyImageValue = z117.object({
|
|
3447
|
+
asset: PageBlockAsset.optional(),
|
|
3448
|
+
assetId: z117.string().optional(),
|
|
3449
|
+
assetUrl: z117.string().optional()
|
|
3450
|
+
});
|
|
3451
|
+
var ExporterPropertyValue = z117.object({
|
|
3452
|
+
key: z117.string(),
|
|
3453
|
+
value: z117.union([
|
|
3454
|
+
z117.number(),
|
|
3455
|
+
z117.string(),
|
|
3456
|
+
z117.boolean(),
|
|
3457
|
+
ExporterPropertyImageValue,
|
|
3458
|
+
ColorTokenData,
|
|
3459
|
+
TypographyTokenData
|
|
3460
|
+
])
|
|
3461
|
+
});
|
|
3462
|
+
var ExporterPropertyValuesCollection = z117.object({
|
|
3463
|
+
id: z117.string(),
|
|
3464
|
+
designSystemId: z117.string(),
|
|
3465
|
+
exporterId: z117.string(),
|
|
3466
|
+
values: z117.array(ExporterPropertyValue)
|
|
3467
|
+
});
|
|
3468
|
+
var PublishedDocPage = z118.object({
|
|
3469
|
+
id: z118.string(),
|
|
3470
|
+
publishedDocId: z118.string(),
|
|
3471
|
+
pageShortPersistentId: z118.string(),
|
|
3472
|
+
pathV1: z118.string(),
|
|
3473
|
+
pathV2: z118.string(),
|
|
3474
|
+
storagePath: z118.string(),
|
|
3475
|
+
locale: z118.string().optional(),
|
|
3476
|
+
isPrivate: z118.boolean(),
|
|
3477
|
+
isHidden: z118.boolean(),
|
|
3478
|
+
createdAt: z118.coerce.date(),
|
|
3479
|
+
updatedAt: z118.coerce.date()
|
|
3480
|
+
});
|
|
3481
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3482
|
+
var PublishedDocEnvironment = z119.enum(publishedDocEnvironments);
|
|
3483
|
+
var PublishedDocsChecksums = z119.record(z119.string());
|
|
3484
|
+
var PublishedDocRoutingVersion = z119.enum(["1", "2"]);
|
|
3485
|
+
var PublishedDoc = z119.object({
|
|
3486
|
+
id: z119.string(),
|
|
3487
|
+
designSystemVersionId: z119.string(),
|
|
3488
|
+
createdAt: z119.coerce.date(),
|
|
3489
|
+
updatedAt: z119.coerce.date(),
|
|
3490
|
+
lastPublishedAt: z119.coerce.date(),
|
|
3491
|
+
isDefault: z119.boolean(),
|
|
3492
|
+
isPublic: z119.boolean(),
|
|
3493
|
+
environment: PublishedDocEnvironment,
|
|
3494
|
+
checksums: PublishedDocsChecksums,
|
|
3495
|
+
storagePath: z119.string(),
|
|
3496
|
+
wasMigrated: z119.boolean(),
|
|
3497
|
+
routingVersion: PublishedDocRoutingVersion,
|
|
3498
|
+
usesLocalizations: z119.boolean(),
|
|
3499
|
+
wasPublishedWithLocalizations: z119.boolean(),
|
|
3500
|
+
tokenCount: z119.number(),
|
|
3501
|
+
assetCount: z119.number()
|
|
3502
|
+
});
|
|
3503
|
+
var DesignSystemVersion = z120.object({
|
|
3504
|
+
id: z120.string(),
|
|
3505
|
+
version: z120.string(),
|
|
3506
|
+
createdAt: z120.date(),
|
|
3507
|
+
designSystemId: z120.string(),
|
|
3508
|
+
name: z120.string(),
|
|
3509
|
+
comment: z120.string(),
|
|
3510
|
+
isReadonly: z120.boolean(),
|
|
3511
|
+
changeLog: z120.string(),
|
|
3512
|
+
parentId: z120.string().optional(),
|
|
3513
|
+
isDraftsFeatureAdopted: z120.boolean()
|
|
3514
|
+
});
|
|
3515
|
+
var VersionCreationJobStatus = z120.enum(["Success", "InProgress", "Error"]);
|
|
3516
|
+
var VersionCreationJob = z120.object({
|
|
3517
|
+
id: z120.string(),
|
|
3518
|
+
version: z120.string(),
|
|
3519
|
+
designSystemId: z120.string(),
|
|
3520
|
+
designSystemVersionId: nullishToOptional(z120.string()),
|
|
3521
|
+
status: VersionCreationJobStatus,
|
|
3522
|
+
errorMessage: nullishToOptional(z120.string())
|
|
3523
|
+
});
|
|
3524
|
+
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3525
|
+
var BITBUCKET_MAX_LENGTH = 64;
|
|
3526
|
+
var ExportJobDocumentationChanges = z121.object({
|
|
3527
|
+
pagePersistentIds: z121.string().array(),
|
|
3528
|
+
groupPersistentIds: z121.string().array()
|
|
3529
|
+
});
|
|
3530
|
+
var ExporterDestinationDocs = z121.object({
|
|
3531
|
+
environment: PublishedDocEnvironment,
|
|
3532
|
+
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3533
|
+
});
|
|
3534
|
+
var ExporterDestinationS3 = z121.object({});
|
|
3535
|
+
var ExporterDestinationGithub = z121.object({
|
|
3536
|
+
credentialId: z121.string().optional(),
|
|
3537
|
+
// Repository
|
|
3538
|
+
url: z121.string(),
|
|
3539
|
+
// Location
|
|
3540
|
+
branch: z121.string(),
|
|
3541
|
+
relativePath: nullishToOptional(z121.string()),
|
|
3542
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3543
|
+
connectionId: nullishToOptional(z121.string()),
|
|
3544
|
+
userId: nullishToOptional(z121.number())
|
|
3545
|
+
});
|
|
3546
|
+
var ExporterDestinationAzure = z121.object({
|
|
3547
|
+
credentialId: z121.string().optional(),
|
|
3548
|
+
// Repository
|
|
3549
|
+
organizationId: z121.string(),
|
|
3550
|
+
projectId: z121.string(),
|
|
3551
|
+
repositoryId: z121.string(),
|
|
3552
|
+
// Location
|
|
3553
|
+
branch: z121.string(),
|
|
3554
|
+
relativePath: nullishToOptional(z121.string()),
|
|
3555
|
+
// Maybe not needed
|
|
3556
|
+
url: nullishToOptional(z121.string()),
|
|
3557
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3558
|
+
connectionId: nullishToOptional(z121.string()),
|
|
3559
|
+
userId: nullishToOptional(z121.number())
|
|
3560
|
+
});
|
|
3561
|
+
var ExporterDestinationGitlab = z121.object({
|
|
3562
|
+
credentialId: z121.string().optional(),
|
|
3563
|
+
// Repository
|
|
3564
|
+
projectId: z121.string(),
|
|
3565
|
+
// Location
|
|
3566
|
+
branch: z121.string(),
|
|
3567
|
+
relativePath: nullishToOptional(z121.string()),
|
|
3568
|
+
// Maybe not needed
|
|
3569
|
+
url: nullishToOptional(z121.string()),
|
|
3570
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3571
|
+
connectionId: nullishToOptional(z121.string()),
|
|
3572
|
+
userId: nullishToOptional(z121.number())
|
|
3573
|
+
});
|
|
3574
|
+
var ExporterDestinationBitbucket = z121.object({
|
|
3575
|
+
credentialId: z121.string().optional(),
|
|
3576
|
+
// Repository
|
|
3577
|
+
workspaceSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3578
|
+
projectKey: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3579
|
+
repoSlug: z121.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3580
|
+
// Location
|
|
3581
|
+
branch: z121.string(),
|
|
3582
|
+
relativePath: nullishToOptional(z121.string()),
|
|
3583
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3584
|
+
connectionId: nullishToOptional(z121.string()),
|
|
3585
|
+
userId: nullishToOptional(z121.number())
|
|
3586
|
+
});
|
|
3587
|
+
var ExportDestinationsMap = z121.object({
|
|
3588
|
+
webhookUrl: z121.string().optional(),
|
|
3589
|
+
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3590
|
+
destinationS3: ExporterDestinationS3.optional(),
|
|
3591
|
+
destinationGithub: ExporterDestinationGithub.optional(),
|
|
3592
|
+
destinationAzure: ExporterDestinationAzure.optional(),
|
|
3593
|
+
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3594
|
+
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3595
|
+
});
|
|
3596
|
+
var PipelineEventType = z122.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3597
|
+
var PipelineDestinationGitType = z122.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3598
|
+
var PipelineDestinationExtraType = z122.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3599
|
+
var PipelineDestinationType = z122.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3600
|
+
var Pipeline = z122.object({
|
|
3601
|
+
id: z122.string(),
|
|
3602
|
+
name: z122.string(),
|
|
3603
|
+
eventType: PipelineEventType,
|
|
3604
|
+
isEnabled: z122.boolean(),
|
|
3605
|
+
workspaceId: z122.string(),
|
|
3606
|
+
designSystemId: z122.string(),
|
|
3607
|
+
exporterId: z122.string(),
|
|
3608
|
+
brandPersistentId: z122.string().optional(),
|
|
3609
|
+
themePersistentId: z122.string().optional(),
|
|
3610
|
+
// Destinations
|
|
3611
|
+
...ExportDestinationsMap.shape
|
|
3612
|
+
});
|
|
3613
|
+
var ExportJobDump = z123.object({
|
|
3614
|
+
id: z123.string(),
|
|
3615
|
+
createdAt: z123.coerce.date(),
|
|
3616
|
+
finishedAt: z123.coerce.date(),
|
|
3617
|
+
exportArtefacts: z123.string()
|
|
3618
|
+
});
|
|
3619
|
+
var CodeIntegrationDump = z123.object({
|
|
3620
|
+
exporters: Exporter.array(),
|
|
3621
|
+
pipelines: Pipeline.array(),
|
|
3622
|
+
exportJobs: ExportJobDump.array()
|
|
3623
|
+
});
|
|
3624
|
+
var DesignSystemVersionRoom = Entity.extend({
|
|
3625
|
+
designSystemVersionId: z124.string(),
|
|
3626
|
+
liveblocksId: z124.string()
|
|
3627
|
+
});
|
|
3628
|
+
var DesignSystemVersionRoomInternalSettings = z124.object({
|
|
3629
|
+
routingVersion: z124.string(),
|
|
3630
|
+
isDraftFeatureAdopted: z124.boolean()
|
|
3631
|
+
});
|
|
3632
|
+
var DesignSystemVersionRoomInitialState = z124.object({
|
|
3633
|
+
pages: z124.array(DocumentationPageV2),
|
|
3634
|
+
groups: z124.array(ElementGroup),
|
|
3635
|
+
pageSnapshots: z124.array(DocumentationPageSnapshot),
|
|
3636
|
+
groupSnapshots: z124.array(ElementGroupSnapshot),
|
|
3637
|
+
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3638
|
+
});
|
|
3639
|
+
var DesignSystemVersionRoomUpdate = z124.object({
|
|
3640
|
+
pages: z124.array(DocumentationPageV2),
|
|
3641
|
+
groups: z124.array(ElementGroup),
|
|
3642
|
+
pageIdsToDelete: z124.array(z124.string()),
|
|
3643
|
+
groupIdsToDelete: z124.array(z124.string()),
|
|
3644
|
+
pageSnapshots: z124.array(DocumentationPageSnapshot),
|
|
3645
|
+
groupSnapshots: z124.array(ElementGroupSnapshot),
|
|
3646
|
+
pageSnapshotIdsToDelete: z124.array(z124.string()),
|
|
3647
|
+
groupSnapshotIdsToDelete: z124.array(z124.string()),
|
|
3648
|
+
pageHashesToUpdate: z124.record(z124.string(), z124.string())
|
|
3649
|
+
});
|
|
3650
|
+
var DocumentationPageRoom = Entity.extend({
|
|
3651
|
+
designSystemVersionId: z125.string(),
|
|
3652
|
+
documentationPageId: z125.string(),
|
|
3653
|
+
liveblocksId: z125.string(),
|
|
3654
|
+
isDirty: z125.boolean()
|
|
3655
|
+
});
|
|
3656
|
+
var DocumentationPageRoomState = z125.object({
|
|
3657
|
+
pageItems: z125.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3658
|
+
itemConfiguration: DocumentationItemConfigurationV2
|
|
3659
|
+
});
|
|
3660
|
+
var DocumentationPageRoomRoomUpdate = z125.object({
|
|
3661
|
+
page: DocumentationPageV2,
|
|
3662
|
+
pageParent: ElementGroup
|
|
3663
|
+
});
|
|
3664
|
+
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3665
|
+
pageItems: z125.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3666
|
+
blockDefinitions: z125.array(PageBlockDefinition)
|
|
3667
|
+
});
|
|
3668
|
+
var RestoredDocumentationPage = z125.object({
|
|
3669
|
+
page: DocumentationPageV2,
|
|
3670
|
+
pageParent: ElementGroup,
|
|
3671
|
+
pageContent: DocumentationPageContentData,
|
|
3672
|
+
contentHash: z125.string(),
|
|
3673
|
+
roomId: z125.string().optional()
|
|
3674
|
+
});
|
|
3675
|
+
var RestoredDocumentationGroup = z125.object({
|
|
3676
|
+
group: ElementGroup,
|
|
3677
|
+
parent: ElementGroup
|
|
3678
|
+
});
|
|
3679
|
+
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
3680
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
3681
|
+
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
3682
|
+
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3683
|
+
return RoomTypeEnum2;
|
|
3684
|
+
})(RoomTypeEnum || {});
|
|
3685
|
+
var RoomTypeSchema = z126.nativeEnum(RoomTypeEnum);
|
|
3686
|
+
var RoomType = RoomTypeSchema.enum;
|
|
3687
|
+
var WorkspaceRoom = Entity.extend({
|
|
3688
|
+
workspaceId: z127.string(),
|
|
3689
|
+
liveblocksId: z127.string()
|
|
3690
|
+
});
|
|
3691
|
+
var PublishedDocsDump = z128.object({
|
|
3692
|
+
documentation: PublishedDoc,
|
|
3693
|
+
pages: PublishedDocPage.array()
|
|
3694
|
+
});
|
|
3695
|
+
var DocumentationThreadDump = z129.object({
|
|
3696
|
+
thread: DocumentationCommentThread,
|
|
3697
|
+
comments: DocumentationComment.array()
|
|
3698
|
+
});
|
|
3699
|
+
var DocumentationPageRoomDump = z129.object({
|
|
3700
|
+
room: DocumentationPageRoom,
|
|
3701
|
+
threads: DocumentationThreadDump.array()
|
|
3702
|
+
});
|
|
3703
|
+
var DesignSystemVersionMultiplayerDump = z129.object({
|
|
3704
|
+
documentationPages: DocumentationPageRoomDump.array()
|
|
3705
|
+
});
|
|
3706
|
+
var DesignSystemVersionDump = z129.object({
|
|
3707
|
+
version: DesignSystemVersion,
|
|
3708
|
+
brands: Brand.array(),
|
|
3709
|
+
elements: DesignElement.array(),
|
|
3710
|
+
elementPropertyDefinitions: ElementPropertyDefinition.array(),
|
|
3711
|
+
elementPropertyValues: ElementPropertyValue.array(),
|
|
3712
|
+
elementViews: ElementView.array(),
|
|
3713
|
+
elementColumns: ElementViewColumn.array(),
|
|
3714
|
+
documentationPageContents: DocumentationPageContent.array(),
|
|
3715
|
+
documentationPageRooms: DocumentationPageRoomDump.array(),
|
|
3716
|
+
publishedDocumentations: PublishedDocsDump.array(),
|
|
3717
|
+
assetReferences: AssetReference.array()
|
|
3718
|
+
});
|
|
3719
|
+
var DesignSystemDump = z130.object({
|
|
3720
|
+
designSystem: DesignSystem,
|
|
3721
|
+
dataSources: DataSource.array(),
|
|
3722
|
+
versions: DesignSystemVersionDump.array(),
|
|
3723
|
+
customDomain: CustomDomain.optional(),
|
|
3724
|
+
files: Asset.array()
|
|
3725
|
+
});
|
|
3726
|
+
var IntegrationAuthType = z131.union([z131.literal("OAuth2"), z131.literal("PAT")]);
|
|
3727
|
+
var ExternalServiceType = z131.union([
|
|
3728
|
+
z131.literal("figma"),
|
|
3729
|
+
z131.literal("github"),
|
|
3730
|
+
z131.literal("azure"),
|
|
3731
|
+
z131.literal("gitlab"),
|
|
3732
|
+
z131.literal("bitbucket")
|
|
3733
|
+
]);
|
|
3734
|
+
var IntegrationUserInfo = z131.object({
|
|
3735
|
+
id: z131.string(),
|
|
3736
|
+
handle: z131.string().optional(),
|
|
3737
|
+
avatarUrl: z131.string().optional(),
|
|
3738
|
+
email: z131.string().optional(),
|
|
3739
|
+
authType: IntegrationAuthType.optional(),
|
|
3740
|
+
customUrl: z131.string().optional()
|
|
3741
|
+
});
|
|
3742
|
+
var UserLinkedIntegrations = z131.object({
|
|
3743
|
+
figma: IntegrationUserInfo.optional(),
|
|
3744
|
+
github: IntegrationUserInfo.array().optional(),
|
|
3745
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
3746
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
3747
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
3748
|
+
});
|
|
3749
|
+
var UserAnalyticsCleanupSchedule = z132.object({
|
|
3750
|
+
userId: z132.string(),
|
|
3751
|
+
createdAt: z132.coerce.date(),
|
|
3752
|
+
deleteAt: z132.coerce.date()
|
|
3753
|
+
});
|
|
3754
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3755
|
+
createdAt: true
|
|
3756
|
+
});
|
|
3757
|
+
var CreateUserInput = z133.object({
|
|
3758
|
+
email: z133.string(),
|
|
3759
|
+
name: z133.string(),
|
|
3760
|
+
username: z133.string()
|
|
3761
|
+
});
|
|
3762
|
+
var UserIdentity = z134.object({
|
|
3763
|
+
id: z134.string(),
|
|
3764
|
+
userId: z134.string()
|
|
3765
|
+
});
|
|
3766
|
+
var UserMinified = z135.object({
|
|
3767
|
+
id: z135.string(),
|
|
3768
|
+
name: z135.string(),
|
|
3769
|
+
email: z135.string(),
|
|
3770
|
+
avatar: z135.string().optional()
|
|
3771
|
+
});
|
|
3772
|
+
var LiveblocksNotificationSettings = z136.object({
|
|
3773
|
+
sendCommentNotificationEmails: z136.boolean()
|
|
3774
|
+
});
|
|
3775
|
+
var UserNotificationSettings = z136.object({
|
|
3776
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3777
|
+
});
|
|
3778
|
+
var UserOnboardingDepartment = z137.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3779
|
+
var UserOnboardingJobLevel = z137.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3780
|
+
var UserOnboarding = z137.object({
|
|
3781
|
+
companyName: z137.string().optional(),
|
|
3782
|
+
numberOfPeopleInOrg: z137.string().optional(),
|
|
3783
|
+
numberOfPeopleInDesignTeam: z137.string().optional(),
|
|
3784
|
+
department: UserOnboardingDepartment.optional(),
|
|
3785
|
+
jobTitle: z137.string().optional(),
|
|
3786
|
+
phase: z137.string().optional(),
|
|
3787
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3788
|
+
designSystemName: z137.string().optional(),
|
|
3789
|
+
defaultDestination: z137.string().optional(),
|
|
3790
|
+
figmaUrl: z137.string().optional()
|
|
3791
|
+
});
|
|
3792
|
+
var UserProfile = z137.object({
|
|
3793
|
+
name: z137.string(),
|
|
3794
|
+
avatar: z137.string().optional(),
|
|
3795
|
+
nickname: z137.string().optional(),
|
|
3796
|
+
onboarding: UserOnboarding.optional()
|
|
3797
|
+
});
|
|
3798
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3799
|
+
avatar: true
|
|
3800
|
+
});
|
|
3801
|
+
var UserTest = z138.object({
|
|
3802
|
+
id: z138.string(),
|
|
3803
|
+
email: z138.string()
|
|
3804
|
+
});
|
|
3805
|
+
var User = z139.object({
|
|
3806
|
+
id: z139.string(),
|
|
3807
|
+
email: z139.string(),
|
|
3808
|
+
emailVerified: z139.boolean(),
|
|
3809
|
+
createdAt: z139.coerce.date(),
|
|
3810
|
+
trialExpiresAt: z139.coerce.date().optional(),
|
|
3811
|
+
profile: UserProfile,
|
|
3812
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3813
|
+
loggedOutAt: z139.coerce.date().optional(),
|
|
3814
|
+
isProtected: z139.boolean()
|
|
3815
|
+
});
|
|
3803
3816
|
var IntegrationDesignSystem = z140.object({
|
|
3804
3817
|
designSystemId: z140.string(),
|
|
3805
3818
|
brandId: z140.string(),
|
|
@@ -5040,10 +5053,10 @@ var DTOGetDocumentationPageAnchorsResponse = z181.object({
|
|
|
5040
5053
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5041
5054
|
|
|
5042
5055
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5043
|
-
import { z as
|
|
5056
|
+
import { z as z186 } from "zod";
|
|
5044
5057
|
|
|
5045
5058
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5046
|
-
import { z as
|
|
5059
|
+
import { z as z185 } from "zod";
|
|
5047
5060
|
|
|
5048
5061
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5049
5062
|
import { z as z183 } from "zod";
|
|
@@ -5072,7 +5085,9 @@ var DTODocumentationDraftStateUpdated = z183.object({
|
|
|
5072
5085
|
})
|
|
5073
5086
|
});
|
|
5074
5087
|
var DTODocumentationDraftStateDeleted = z183.object({
|
|
5075
|
-
changeType: z183.literal(DTODocumentationDraftChangeType.enum.Deleted)
|
|
5088
|
+
changeType: z183.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5089
|
+
deletedAt: z183.coerce.date(),
|
|
5090
|
+
deletedByUserId: z183.string()
|
|
5076
5091
|
});
|
|
5077
5092
|
var DTODocumentationDraftState = z183.discriminatedUnion("changeType", [
|
|
5078
5093
|
DTODocumentationDraftStateCreated,
|
|
@@ -5080,199 +5095,208 @@ var DTODocumentationDraftState = z183.discriminatedUnion("changeType", [
|
|
|
5080
5095
|
DTODocumentationDraftStateDeleted
|
|
5081
5096
|
]);
|
|
5082
5097
|
|
|
5098
|
+
// src/api/dto/elements/documentation/metadata.ts
|
|
5099
|
+
import { z as z184 } from "zod";
|
|
5100
|
+
var DTODocumentationPublishMetadata = z184.object({
|
|
5101
|
+
lastPublishedByUserId: z184.string(),
|
|
5102
|
+
lastPublishedAt: z184.coerce.date()
|
|
5103
|
+
});
|
|
5104
|
+
|
|
5083
5105
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5084
|
-
var DTODocumentationPageV2 =
|
|
5085
|
-
id:
|
|
5086
|
-
persistentId:
|
|
5087
|
-
designSystemVersionId:
|
|
5088
|
-
title:
|
|
5106
|
+
var DTODocumentationPageV2 = z185.object({
|
|
5107
|
+
id: z185.string(),
|
|
5108
|
+
persistentId: z185.string(),
|
|
5109
|
+
designSystemVersionId: z185.string(),
|
|
5110
|
+
title: z185.string(),
|
|
5089
5111
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5090
|
-
shortPersistentId:
|
|
5091
|
-
slug:
|
|
5092
|
-
userSlug:
|
|
5093
|
-
createdAt:
|
|
5094
|
-
updatedAt:
|
|
5095
|
-
path:
|
|
5112
|
+
shortPersistentId: z185.string(),
|
|
5113
|
+
slug: z185.string().optional(),
|
|
5114
|
+
userSlug: z185.string().optional(),
|
|
5115
|
+
createdAt: z185.coerce.date(),
|
|
5116
|
+
updatedAt: z185.coerce.date(),
|
|
5117
|
+
path: z185.string(),
|
|
5096
5118
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5097
5119
|
draftState: DTODocumentationDraftState.optional(),
|
|
5120
|
+
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
5121
|
+
publishMetadata: DTODocumentationPublishMetadata.optional(),
|
|
5098
5122
|
// Backward compatibility
|
|
5099
|
-
type:
|
|
5123
|
+
type: z185.literal("Page")
|
|
5100
5124
|
});
|
|
5101
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5125
|
+
var DTOCreateDocumentationPageInputV2 = z185.object({
|
|
5102
5126
|
// Identifier
|
|
5103
|
-
persistentId:
|
|
5127
|
+
persistentId: z185.string().uuid(),
|
|
5104
5128
|
// Page properties
|
|
5105
|
-
title:
|
|
5129
|
+
title: z185.string(),
|
|
5106
5130
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5107
5131
|
// Page placement properties
|
|
5108
|
-
parentPersistentId:
|
|
5109
|
-
afterPersistentId:
|
|
5132
|
+
parentPersistentId: z185.string().uuid(),
|
|
5133
|
+
afterPersistentId: z185.string().uuid().nullish()
|
|
5110
5134
|
});
|
|
5111
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5135
|
+
var DTOUpdateDocumentationPageInputV2 = z185.object({
|
|
5112
5136
|
// Identifier of the group to update
|
|
5113
|
-
id:
|
|
5137
|
+
id: z185.string(),
|
|
5114
5138
|
// Page properties
|
|
5115
|
-
title:
|
|
5139
|
+
title: z185.string().optional(),
|
|
5116
5140
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5117
5141
|
});
|
|
5118
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5142
|
+
var DTOMoveDocumentationPageInputV2 = z185.object({
|
|
5119
5143
|
// Identifier of the group to update
|
|
5120
|
-
id:
|
|
5144
|
+
id: z185.string(),
|
|
5121
5145
|
// Page placement properties
|
|
5122
|
-
parentPersistentId:
|
|
5123
|
-
afterPersistentId:
|
|
5146
|
+
parentPersistentId: z185.string().uuid(),
|
|
5147
|
+
afterPersistentId: z185.string().uuid().nullish()
|
|
5124
5148
|
});
|
|
5125
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5149
|
+
var DTODuplicateDocumentationPageInputV2 = z185.object({
|
|
5126
5150
|
// Identifier of the page to duplicate from
|
|
5127
|
-
id:
|
|
5151
|
+
id: z185.string(),
|
|
5128
5152
|
// New page persistent id
|
|
5129
|
-
persistentId:
|
|
5153
|
+
persistentId: z185.string().uuid(),
|
|
5130
5154
|
// Page placement properties
|
|
5131
|
-
parentPersistentId:
|
|
5132
|
-
afterPersistentId:
|
|
5155
|
+
parentPersistentId: z185.string().uuid(),
|
|
5156
|
+
afterPersistentId: z185.string().uuid().nullish()
|
|
5133
5157
|
});
|
|
5134
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5158
|
+
var DTODeleteDocumentationPageInputV2 = z185.object({
|
|
5135
5159
|
// Identifier
|
|
5136
|
-
id:
|
|
5160
|
+
id: z185.string()
|
|
5137
5161
|
});
|
|
5138
|
-
var DTORestoreDocumentationPageInput =
|
|
5139
|
-
persistentId:
|
|
5140
|
-
snapshotId:
|
|
5162
|
+
var DTORestoreDocumentationPageInput = z185.object({
|
|
5163
|
+
persistentId: z185.string(),
|
|
5164
|
+
snapshotId: z185.string().optional()
|
|
5141
5165
|
});
|
|
5142
|
-
var DTORestoreDocumentationGroupInput =
|
|
5143
|
-
persistentId:
|
|
5144
|
-
snapshotId:
|
|
5166
|
+
var DTORestoreDocumentationGroupInput = z185.object({
|
|
5167
|
+
persistentId: z185.string(),
|
|
5168
|
+
snapshotId: z185.string().optional()
|
|
5145
5169
|
});
|
|
5146
5170
|
|
|
5147
5171
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5148
|
-
var DTODocumentationPageSnapshot =
|
|
5149
|
-
id:
|
|
5150
|
-
designSystemVersionId:
|
|
5151
|
-
createdAt:
|
|
5152
|
-
updatedAt:
|
|
5172
|
+
var DTODocumentationPageSnapshot = z186.object({
|
|
5173
|
+
id: z186.string(),
|
|
5174
|
+
designSystemVersionId: z186.string(),
|
|
5175
|
+
createdAt: z186.string(),
|
|
5176
|
+
updatedAt: z186.string(),
|
|
5153
5177
|
documentationPage: DTODocumentationPageV2,
|
|
5154
|
-
pageContentHash:
|
|
5178
|
+
pageContentHash: z186.string(),
|
|
5155
5179
|
reason: DesignElementSnapshotReason
|
|
5156
5180
|
});
|
|
5157
5181
|
|
|
5158
5182
|
// src/api/dto/documentation/link-preview.ts
|
|
5159
|
-
import { z as
|
|
5160
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5183
|
+
import { z as z187 } from "zod";
|
|
5184
|
+
var DTODocumentationLinkPreviewResponse = z187.object({
|
|
5161
5185
|
linkPreview: DocumentationLinkPreview
|
|
5162
5186
|
});
|
|
5163
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5164
|
-
url:
|
|
5165
|
-
documentationItemPersistentId:
|
|
5187
|
+
var DTODocumentationLinkPreviewRequest = z187.object({
|
|
5188
|
+
url: z187.string().optional(),
|
|
5189
|
+
documentationItemPersistentId: z187.string().optional()
|
|
5166
5190
|
});
|
|
5167
5191
|
|
|
5168
5192
|
// src/api/dto/documentation/publish.ts
|
|
5169
|
-
import { z as
|
|
5193
|
+
import { z as z191 } from "zod";
|
|
5170
5194
|
|
|
5171
5195
|
// src/api/dto/export/exporter.ts
|
|
5172
|
-
import { z as
|
|
5173
|
-
var DTOExporterType =
|
|
5174
|
-
var DTOExporterSource =
|
|
5175
|
-
var DTOExporterMembershipRole =
|
|
5176
|
-
var DTOExporter =
|
|
5177
|
-
id:
|
|
5178
|
-
name:
|
|
5179
|
-
isPrivate:
|
|
5196
|
+
import { z as z188 } from "zod";
|
|
5197
|
+
var DTOExporterType = z188.enum(["documentation", "code"]);
|
|
5198
|
+
var DTOExporterSource = z188.enum(["git", "upload"]);
|
|
5199
|
+
var DTOExporterMembershipRole = z188.enum(["Owner", "OwnerArchived", "User"]);
|
|
5200
|
+
var DTOExporter = z188.object({
|
|
5201
|
+
id: z188.string(),
|
|
5202
|
+
name: z188.string(),
|
|
5203
|
+
isPrivate: z188.boolean(),
|
|
5180
5204
|
exporterType: DTOExporterType,
|
|
5181
|
-
isDefaultDocumentationExporter:
|
|
5182
|
-
iconURL:
|
|
5205
|
+
isDefaultDocumentationExporter: z188.boolean(),
|
|
5206
|
+
iconURL: z188.string().optional(),
|
|
5183
5207
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5184
5208
|
customBlocks: PulsarCustomBlock.array(),
|
|
5185
|
-
blockVariants:
|
|
5186
|
-
usesBrands:
|
|
5187
|
-
usesThemes:
|
|
5209
|
+
blockVariants: z188.record(z188.string(), PulsarContributionVariant.array()),
|
|
5210
|
+
usesBrands: z188.boolean(),
|
|
5211
|
+
usesThemes: z188.boolean(),
|
|
5188
5212
|
source: DTOExporterSource,
|
|
5189
|
-
gitUrl:
|
|
5190
|
-
gitBranch:
|
|
5191
|
-
gitDirectory:
|
|
5213
|
+
gitUrl: z188.string().optional(),
|
|
5214
|
+
gitBranch: z188.string().optional(),
|
|
5215
|
+
gitDirectory: z188.string().optional()
|
|
5192
5216
|
});
|
|
5193
|
-
var DTOExporterMembership =
|
|
5194
|
-
workspaceId:
|
|
5195
|
-
exporterId:
|
|
5217
|
+
var DTOExporterMembership = z188.object({
|
|
5218
|
+
workspaceId: z188.string(),
|
|
5219
|
+
exporterId: z188.string(),
|
|
5196
5220
|
role: DTOExporterMembershipRole
|
|
5197
5221
|
});
|
|
5198
|
-
var DTOExporterCreateOutput =
|
|
5222
|
+
var DTOExporterCreateOutput = z188.object({
|
|
5199
5223
|
exporter: DTOExporter,
|
|
5200
5224
|
membership: DTOExporterMembership
|
|
5201
5225
|
});
|
|
5202
|
-
var DTOExporterGitProviderEnum =
|
|
5203
|
-
var DTOExporterCreateInput =
|
|
5204
|
-
url:
|
|
5226
|
+
var DTOExporterGitProviderEnum = z188.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5227
|
+
var DTOExporterCreateInput = z188.object({
|
|
5228
|
+
url: z188.string(),
|
|
5205
5229
|
provider: DTOExporterGitProviderEnum
|
|
5206
5230
|
});
|
|
5207
|
-
var DTOExporterUpdateInput =
|
|
5208
|
-
url:
|
|
5231
|
+
var DTOExporterUpdateInput = z188.object({
|
|
5232
|
+
url: z188.string().optional()
|
|
5209
5233
|
});
|
|
5210
5234
|
|
|
5211
5235
|
// src/api/dto/export/job.ts
|
|
5212
|
-
import { z as
|
|
5213
|
-
var DTOExportJobCreatedBy =
|
|
5214
|
-
userId:
|
|
5215
|
-
userName:
|
|
5236
|
+
import { z as z189 } from "zod";
|
|
5237
|
+
var DTOExportJobCreatedBy = z189.object({
|
|
5238
|
+
userId: z189.string(),
|
|
5239
|
+
userName: z189.string()
|
|
5216
5240
|
});
|
|
5217
|
-
var DTOExportJobDesignSystemPreview =
|
|
5218
|
-
id:
|
|
5241
|
+
var DTOExportJobDesignSystemPreview = z189.object({
|
|
5242
|
+
id: z189.string(),
|
|
5219
5243
|
meta: ObjectMeta
|
|
5220
5244
|
});
|
|
5221
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5222
|
-
id:
|
|
5245
|
+
var DTOExportJobDesignSystemVersionPreview = z189.object({
|
|
5246
|
+
id: z189.string(),
|
|
5223
5247
|
meta: ObjectMeta,
|
|
5224
|
-
version:
|
|
5225
|
-
isReadonly:
|
|
5248
|
+
version: z189.string(),
|
|
5249
|
+
isReadonly: z189.boolean()
|
|
5226
5250
|
});
|
|
5227
|
-
var DTOExportJobDestinations =
|
|
5251
|
+
var DTOExportJobDestinations = z189.object({
|
|
5228
5252
|
s3: ExporterDestinationS3.optional(),
|
|
5229
5253
|
azure: ExporterDestinationAzure.optional(),
|
|
5230
5254
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5231
5255
|
github: ExporterDestinationGithub.optional(),
|
|
5232
5256
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5233
5257
|
documentation: ExporterDestinationDocs.optional(),
|
|
5234
|
-
webhookUrl:
|
|
5258
|
+
webhookUrl: z189.string().optional()
|
|
5235
5259
|
});
|
|
5236
|
-
var DTOExportJob =
|
|
5237
|
-
id:
|
|
5238
|
-
createdAt:
|
|
5239
|
-
finishedAt:
|
|
5240
|
-
index:
|
|
5260
|
+
var DTOExportJob = z189.object({
|
|
5261
|
+
id: z189.string(),
|
|
5262
|
+
createdAt: z189.coerce.date(),
|
|
5263
|
+
finishedAt: z189.coerce.date().optional(),
|
|
5264
|
+
index: z189.number().optional(),
|
|
5241
5265
|
status: ExportJobStatus,
|
|
5242
|
-
estimatedExecutionTime:
|
|
5266
|
+
estimatedExecutionTime: z189.number().optional(),
|
|
5243
5267
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5244
5268
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5245
5269
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5246
5270
|
destinations: DTOExportJobDestinations,
|
|
5247
|
-
exporterId:
|
|
5248
|
-
scheduleId:
|
|
5271
|
+
exporterId: z189.string(),
|
|
5272
|
+
scheduleId: z189.string().optional(),
|
|
5249
5273
|
result: ExportJobResult.optional(),
|
|
5250
|
-
brandPersistentId:
|
|
5251
|
-
themePersistentId:
|
|
5274
|
+
brandPersistentId: z189.string().optional(),
|
|
5275
|
+
themePersistentId: z189.string().optional()
|
|
5252
5276
|
});
|
|
5253
|
-
var DTOExportJobResponse =
|
|
5277
|
+
var DTOExportJobResponse = z189.object({
|
|
5254
5278
|
job: DTOExportJob
|
|
5255
5279
|
});
|
|
5256
5280
|
|
|
5257
5281
|
// src/api/dto/export/pipeline.ts
|
|
5258
|
-
import { z as
|
|
5259
|
-
var DTOPipeline =
|
|
5260
|
-
id:
|
|
5261
|
-
name:
|
|
5282
|
+
import { z as z190 } from "zod";
|
|
5283
|
+
var DTOPipeline = z190.object({
|
|
5284
|
+
id: z190.string(),
|
|
5285
|
+
name: z190.string(),
|
|
5262
5286
|
eventType: PipelineEventType,
|
|
5263
|
-
isEnabled:
|
|
5264
|
-
workspaceId:
|
|
5265
|
-
designSystemId:
|
|
5266
|
-
exporterId:
|
|
5267
|
-
brandPersistentId:
|
|
5268
|
-
themePersistentId:
|
|
5287
|
+
isEnabled: z190.boolean(),
|
|
5288
|
+
workspaceId: z190.string(),
|
|
5289
|
+
designSystemId: z190.string(),
|
|
5290
|
+
exporterId: z190.string(),
|
|
5291
|
+
brandPersistentId: z190.string().optional(),
|
|
5292
|
+
themePersistentId: z190.string().optional(),
|
|
5269
5293
|
...ExportDestinationsMap.shape,
|
|
5270
5294
|
latestJobs: DTOExportJob.array()
|
|
5271
5295
|
});
|
|
5272
5296
|
|
|
5273
5297
|
// src/api/dto/documentation/publish.ts
|
|
5274
5298
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5275
|
-
var DTOPublishDocumentationRequest =
|
|
5299
|
+
var DTOPublishDocumentationRequest = z191.object({
|
|
5276
5300
|
environment: PublishedDocEnvironment,
|
|
5277
5301
|
/**
|
|
5278
5302
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5280,15 +5304,15 @@ var DTOPublishDocumentationRequest = z190.object({
|
|
|
5280
5304
|
*/
|
|
5281
5305
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5282
5306
|
});
|
|
5283
|
-
var DTOPublishDocumentationResponse =
|
|
5307
|
+
var DTOPublishDocumentationResponse = z191.object({
|
|
5284
5308
|
job: DTOExportJob
|
|
5285
5309
|
});
|
|
5286
5310
|
|
|
5287
5311
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5288
|
-
import { z as
|
|
5312
|
+
import { z as z193 } from "zod";
|
|
5289
5313
|
|
|
5290
5314
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5291
|
-
import { z as
|
|
5315
|
+
import { z as z192 } from "zod";
|
|
5292
5316
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5293
5317
|
sortOrder: true,
|
|
5294
5318
|
parentPersistentId: true,
|
|
@@ -5298,137 +5322,139 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5298
5322
|
data: true,
|
|
5299
5323
|
shortPersistentId: true
|
|
5300
5324
|
}).extend({
|
|
5301
|
-
title:
|
|
5302
|
-
isRoot:
|
|
5303
|
-
childrenIds:
|
|
5325
|
+
title: z192.string(),
|
|
5326
|
+
isRoot: z192.boolean(),
|
|
5327
|
+
childrenIds: z192.array(z192.string()),
|
|
5304
5328
|
groupBehavior: DocumentationGroupBehavior,
|
|
5305
|
-
shortPersistentId:
|
|
5329
|
+
shortPersistentId: z192.string(),
|
|
5306
5330
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5307
|
-
type:
|
|
5331
|
+
type: z192.literal("Group"),
|
|
5308
5332
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5309
|
-
draftState: DTODocumentationDraftState.optional()
|
|
5333
|
+
draftState: DTODocumentationDraftState.optional(),
|
|
5334
|
+
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
5335
|
+
publishMetadata: DTODocumentationPublishMetadata.optional()
|
|
5310
5336
|
});
|
|
5311
|
-
var DTOCreateDocumentationGroupInput =
|
|
5337
|
+
var DTOCreateDocumentationGroupInput = z192.object({
|
|
5312
5338
|
// Identifier
|
|
5313
|
-
persistentId:
|
|
5339
|
+
persistentId: z192.string().uuid(),
|
|
5314
5340
|
// Group properties
|
|
5315
|
-
title:
|
|
5341
|
+
title: z192.string(),
|
|
5316
5342
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5317
5343
|
// Group placement properties
|
|
5318
|
-
afterPersistentId:
|
|
5319
|
-
parentPersistentId:
|
|
5344
|
+
afterPersistentId: z192.string().uuid().nullish(),
|
|
5345
|
+
parentPersistentId: z192.string().uuid()
|
|
5320
5346
|
});
|
|
5321
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5347
|
+
var DTOUpdateDocumentationGroupInput = z192.object({
|
|
5322
5348
|
// Identifier of the group to update
|
|
5323
|
-
id:
|
|
5349
|
+
id: z192.string(),
|
|
5324
5350
|
// Group properties
|
|
5325
|
-
title:
|
|
5351
|
+
title: z192.string().optional(),
|
|
5326
5352
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5327
5353
|
});
|
|
5328
|
-
var DTOMoveDocumentationGroupInput =
|
|
5354
|
+
var DTOMoveDocumentationGroupInput = z192.object({
|
|
5329
5355
|
// Identifier of the group to update
|
|
5330
|
-
id:
|
|
5356
|
+
id: z192.string(),
|
|
5331
5357
|
// Group placement properties
|
|
5332
|
-
parentPersistentId:
|
|
5333
|
-
afterPersistentId:
|
|
5358
|
+
parentPersistentId: z192.string().uuid(),
|
|
5359
|
+
afterPersistentId: z192.string().uuid().nullish()
|
|
5334
5360
|
});
|
|
5335
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5361
|
+
var DTODuplicateDocumentationGroupInput = z192.object({
|
|
5336
5362
|
// Identifier of the group to duplicate from
|
|
5337
|
-
id:
|
|
5363
|
+
id: z192.string(),
|
|
5338
5364
|
// New group persistent id
|
|
5339
|
-
persistentId:
|
|
5365
|
+
persistentId: z192.string().uuid(),
|
|
5340
5366
|
// Group placement properties
|
|
5341
|
-
afterPersistentId:
|
|
5342
|
-
parentPersistentId:
|
|
5367
|
+
afterPersistentId: z192.string().uuid().nullish(),
|
|
5368
|
+
parentPersistentId: z192.string().uuid()
|
|
5343
5369
|
});
|
|
5344
|
-
var DTOCreateDocumentationTabInput =
|
|
5370
|
+
var DTOCreateDocumentationTabInput = z192.object({
|
|
5345
5371
|
// New group persistent id
|
|
5346
|
-
persistentId:
|
|
5372
|
+
persistentId: z192.string().uuid(),
|
|
5347
5373
|
// If this is page, we will attempt to convert it to tab
|
|
5348
5374
|
// If this is tab group, we will add a new tab to it
|
|
5349
|
-
fromItemPersistentId:
|
|
5350
|
-
tabName:
|
|
5375
|
+
fromItemPersistentId: z192.string(),
|
|
5376
|
+
tabName: z192.string()
|
|
5351
5377
|
});
|
|
5352
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5378
|
+
var DTODeleteDocumentationTabGroupInput = z192.object({
|
|
5353
5379
|
// Deleted group id
|
|
5354
|
-
id:
|
|
5380
|
+
id: z192.string()
|
|
5355
5381
|
});
|
|
5356
|
-
var DTODeleteDocumentationGroupInput =
|
|
5382
|
+
var DTODeleteDocumentationGroupInput = z192.object({
|
|
5357
5383
|
// Identifier
|
|
5358
|
-
id:
|
|
5384
|
+
id: z192.string(),
|
|
5359
5385
|
// Deletion options
|
|
5360
|
-
deleteSubtree:
|
|
5386
|
+
deleteSubtree: z192.boolean().default(false)
|
|
5361
5387
|
});
|
|
5362
5388
|
|
|
5363
5389
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5364
|
-
var SuccessPayload =
|
|
5365
|
-
success:
|
|
5390
|
+
var SuccessPayload = z193.object({
|
|
5391
|
+
success: z193.literal(true)
|
|
5366
5392
|
});
|
|
5367
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5368
|
-
type:
|
|
5393
|
+
var DTODocumentationGroupCreateActionOutputV2 = z193.object({
|
|
5394
|
+
type: z193.literal("DocumentationGroupCreate"),
|
|
5369
5395
|
output: SuccessPayload
|
|
5370
5396
|
});
|
|
5371
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5372
|
-
type:
|
|
5397
|
+
var DTODocumentationTabCreateActionOutputV2 = z193.object({
|
|
5398
|
+
type: z193.literal("DocumentationTabCreate"),
|
|
5373
5399
|
output: SuccessPayload
|
|
5374
5400
|
});
|
|
5375
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5376
|
-
type:
|
|
5401
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z193.object({
|
|
5402
|
+
type: z193.literal("DocumentationGroupUpdate"),
|
|
5377
5403
|
output: SuccessPayload
|
|
5378
5404
|
});
|
|
5379
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5380
|
-
type:
|
|
5405
|
+
var DTODocumentationGroupMoveActionOutputV2 = z193.object({
|
|
5406
|
+
type: z193.literal("DocumentationGroupMove"),
|
|
5381
5407
|
output: SuccessPayload
|
|
5382
5408
|
});
|
|
5383
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5384
|
-
type:
|
|
5409
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z193.object({
|
|
5410
|
+
type: z193.literal("DocumentationGroupDuplicate"),
|
|
5385
5411
|
output: SuccessPayload
|
|
5386
5412
|
});
|
|
5387
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5388
|
-
type:
|
|
5413
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z193.object({
|
|
5414
|
+
type: z193.literal("DocumentationGroupDelete"),
|
|
5389
5415
|
output: SuccessPayload
|
|
5390
5416
|
});
|
|
5391
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5392
|
-
type:
|
|
5417
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z193.object({
|
|
5418
|
+
type: z193.literal("DocumentationTabGroupDelete"),
|
|
5393
5419
|
output: SuccessPayload
|
|
5394
5420
|
});
|
|
5395
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5396
|
-
type:
|
|
5421
|
+
var DTODocumentationGroupCreateActionInputV2 = z193.object({
|
|
5422
|
+
type: z193.literal("DocumentationGroupCreate"),
|
|
5397
5423
|
input: DTOCreateDocumentationGroupInput
|
|
5398
5424
|
});
|
|
5399
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5400
|
-
type:
|
|
5425
|
+
var DTODocumentationTabCreateActionInputV2 = z193.object({
|
|
5426
|
+
type: z193.literal("DocumentationTabCreate"),
|
|
5401
5427
|
input: DTOCreateDocumentationTabInput
|
|
5402
5428
|
});
|
|
5403
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5404
|
-
type:
|
|
5429
|
+
var DTODocumentationGroupUpdateActionInputV2 = z193.object({
|
|
5430
|
+
type: z193.literal("DocumentationGroupUpdate"),
|
|
5405
5431
|
input: DTOUpdateDocumentationGroupInput
|
|
5406
5432
|
});
|
|
5407
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5408
|
-
type:
|
|
5433
|
+
var DTODocumentationGroupMoveActionInputV2 = z193.object({
|
|
5434
|
+
type: z193.literal("DocumentationGroupMove"),
|
|
5409
5435
|
input: DTOMoveDocumentationGroupInput
|
|
5410
5436
|
});
|
|
5411
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5412
|
-
type:
|
|
5437
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z193.object({
|
|
5438
|
+
type: z193.literal("DocumentationGroupDuplicate"),
|
|
5413
5439
|
input: DTODuplicateDocumentationGroupInput
|
|
5414
5440
|
});
|
|
5415
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5416
|
-
type:
|
|
5441
|
+
var DTODocumentationGroupDeleteActionInputV2 = z193.object({
|
|
5442
|
+
type: z193.literal("DocumentationGroupDelete"),
|
|
5417
5443
|
input: DTODeleteDocumentationGroupInput
|
|
5418
5444
|
});
|
|
5419
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5420
|
-
type:
|
|
5445
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z193.object({
|
|
5446
|
+
type: z193.literal("DocumentationTabGroupDelete"),
|
|
5421
5447
|
input: DTODeleteDocumentationTabGroupInput
|
|
5422
5448
|
});
|
|
5423
5449
|
|
|
5424
5450
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
5425
|
-
import { z as
|
|
5451
|
+
import { z as z195 } from "zod";
|
|
5426
5452
|
|
|
5427
5453
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5428
|
-
import { z as
|
|
5429
|
-
var DocumentationColorV1 =
|
|
5430
|
-
aliasTo:
|
|
5431
|
-
value:
|
|
5454
|
+
import { z as z194 } from "zod";
|
|
5455
|
+
var DocumentationColorV1 = z194.object({
|
|
5456
|
+
aliasTo: z194.string().optional(),
|
|
5457
|
+
value: z194.string().optional()
|
|
5432
5458
|
});
|
|
5433
5459
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
5434
5460
|
foregroundColor: true,
|
|
@@ -5437,10 +5463,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
5437
5463
|
foregroundColor: DocumentationColorV1.optional(),
|
|
5438
5464
|
backgroundColor: DocumentationColorV1.optional()
|
|
5439
5465
|
});
|
|
5440
|
-
var DTODocumentationItemConfigurationV1 =
|
|
5441
|
-
showSidebar:
|
|
5442
|
-
isPrivate:
|
|
5443
|
-
isHidden:
|
|
5466
|
+
var DTODocumentationItemConfigurationV1 = z194.object({
|
|
5467
|
+
showSidebar: z194.boolean(),
|
|
5468
|
+
isPrivate: z194.boolean(),
|
|
5469
|
+
isHidden: z194.boolean(),
|
|
5444
5470
|
header: DTODocumentationItemHeaderV1
|
|
5445
5471
|
});
|
|
5446
5472
|
|
|
@@ -5454,117 +5480,105 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
5454
5480
|
data: true,
|
|
5455
5481
|
shortPersistentId: true
|
|
5456
5482
|
}).extend({
|
|
5457
|
-
title:
|
|
5458
|
-
isRoot:
|
|
5459
|
-
childrenIds:
|
|
5483
|
+
title: z195.string(),
|
|
5484
|
+
isRoot: z195.boolean(),
|
|
5485
|
+
childrenIds: z195.array(z195.string()),
|
|
5460
5486
|
groupBehavior: DocumentationGroupBehavior,
|
|
5461
|
-
shortPersistentId:
|
|
5462
|
-
type:
|
|
5487
|
+
shortPersistentId: z195.string(),
|
|
5488
|
+
type: z195.literal("Group")
|
|
5463
5489
|
});
|
|
5464
5490
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
5465
5491
|
configuration: DTODocumentationItemConfigurationV1
|
|
5466
5492
|
});
|
|
5467
5493
|
|
|
5468
5494
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
5469
|
-
import { z as
|
|
5470
|
-
var DTODocumentationHierarchyV2 =
|
|
5471
|
-
pages:
|
|
5495
|
+
import { z as z196 } from "zod";
|
|
5496
|
+
var DTODocumentationHierarchyV2 = z196.object({
|
|
5497
|
+
pages: z196.array(
|
|
5472
5498
|
DTODocumentationPageV2.extend({
|
|
5473
5499
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5474
5500
|
draftState: DTODocumentationDraftState.optional()
|
|
5475
5501
|
})
|
|
5476
5502
|
),
|
|
5477
|
-
groups:
|
|
5503
|
+
groups: z196.array(
|
|
5478
5504
|
DTODocumentationGroupV2.extend({
|
|
5479
5505
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5480
5506
|
draftState: DTODocumentationDraftState.optional()
|
|
5481
5507
|
})
|
|
5482
|
-
),
|
|
5483
|
-
deletedPages: z195.array(
|
|
5484
|
-
DTODocumentationPageV2.extend({
|
|
5485
|
-
/** Deleted page is always a draft change */
|
|
5486
|
-
draftState: DTODocumentationDraftState
|
|
5487
|
-
})
|
|
5488
|
-
),
|
|
5489
|
-
deletedGroups: z195.array(
|
|
5490
|
-
DTODocumentationGroupV2.extend({
|
|
5491
|
-
/** Deleted page is always a draft change */
|
|
5492
|
-
draftState: DTODocumentationDraftState
|
|
5493
|
-
})
|
|
5494
5508
|
)
|
|
5495
5509
|
});
|
|
5496
5510
|
|
|
5497
5511
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5498
|
-
import { z as
|
|
5499
|
-
var SuccessPayload2 =
|
|
5500
|
-
success:
|
|
5512
|
+
import { z as z197 } from "zod";
|
|
5513
|
+
var SuccessPayload2 = z197.object({
|
|
5514
|
+
success: z197.literal(true)
|
|
5501
5515
|
});
|
|
5502
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5503
|
-
type:
|
|
5516
|
+
var DTODocumentationPageCreateActionOutputV2 = z197.object({
|
|
5517
|
+
type: z197.literal("DocumentationPageCreate"),
|
|
5504
5518
|
output: SuccessPayload2
|
|
5505
5519
|
});
|
|
5506
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5507
|
-
type:
|
|
5520
|
+
var DTODocumentationPageUpdateActionOutputV2 = z197.object({
|
|
5521
|
+
type: z197.literal("DocumentationPageUpdate"),
|
|
5508
5522
|
output: SuccessPayload2
|
|
5509
5523
|
});
|
|
5510
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5511
|
-
type:
|
|
5524
|
+
var DTODocumentationPageMoveActionOutputV2 = z197.object({
|
|
5525
|
+
type: z197.literal("DocumentationPageMove"),
|
|
5512
5526
|
output: SuccessPayload2
|
|
5513
5527
|
});
|
|
5514
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5515
|
-
type:
|
|
5528
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z197.object({
|
|
5529
|
+
type: z197.literal("DocumentationPageDuplicate"),
|
|
5516
5530
|
output: SuccessPayload2
|
|
5517
5531
|
});
|
|
5518
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5519
|
-
type:
|
|
5532
|
+
var DTODocumentationPageDeleteActionOutputV2 = z197.object({
|
|
5533
|
+
type: z197.literal("DocumentationPageDelete"),
|
|
5520
5534
|
output: SuccessPayload2
|
|
5521
5535
|
});
|
|
5522
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
5523
|
-
type:
|
|
5536
|
+
var DTODocumentationPageRestoreActionOutput = z197.object({
|
|
5537
|
+
type: z197.literal("DocumentationPageRestore"),
|
|
5524
5538
|
output: SuccessPayload2
|
|
5525
5539
|
});
|
|
5526
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
5527
|
-
type:
|
|
5540
|
+
var DTODocumentationGroupRestoreActionOutput = z197.object({
|
|
5541
|
+
type: z197.literal("DocumentationGroupRestore"),
|
|
5528
5542
|
output: SuccessPayload2
|
|
5529
5543
|
});
|
|
5530
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5531
|
-
type:
|
|
5544
|
+
var DTODocumentationPageCreateActionInputV2 = z197.object({
|
|
5545
|
+
type: z197.literal("DocumentationPageCreate"),
|
|
5532
5546
|
input: DTOCreateDocumentationPageInputV2
|
|
5533
5547
|
});
|
|
5534
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5535
|
-
type:
|
|
5548
|
+
var DTODocumentationPageUpdateActionInputV2 = z197.object({
|
|
5549
|
+
type: z197.literal("DocumentationPageUpdate"),
|
|
5536
5550
|
input: DTOUpdateDocumentationPageInputV2
|
|
5537
5551
|
});
|
|
5538
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5539
|
-
type:
|
|
5552
|
+
var DTODocumentationPageMoveActionInputV2 = z197.object({
|
|
5553
|
+
type: z197.literal("DocumentationPageMove"),
|
|
5540
5554
|
input: DTOMoveDocumentationPageInputV2
|
|
5541
5555
|
});
|
|
5542
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5543
|
-
type:
|
|
5556
|
+
var DTODocumentationPageDuplicateActionInputV2 = z197.object({
|
|
5557
|
+
type: z197.literal("DocumentationPageDuplicate"),
|
|
5544
5558
|
input: DTODuplicateDocumentationPageInputV2
|
|
5545
5559
|
});
|
|
5546
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5547
|
-
type:
|
|
5560
|
+
var DTODocumentationPageDeleteActionInputV2 = z197.object({
|
|
5561
|
+
type: z197.literal("DocumentationPageDelete"),
|
|
5548
5562
|
input: DTODeleteDocumentationPageInputV2
|
|
5549
5563
|
});
|
|
5550
|
-
var DTODocumentationPageRestoreActionInput =
|
|
5551
|
-
type:
|
|
5564
|
+
var DTODocumentationPageRestoreActionInput = z197.object({
|
|
5565
|
+
type: z197.literal("DocumentationPageRestore"),
|
|
5552
5566
|
input: DTORestoreDocumentationPageInput
|
|
5553
5567
|
});
|
|
5554
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
5555
|
-
type:
|
|
5568
|
+
var DTODocumentationGroupRestoreActionInput = z197.object({
|
|
5569
|
+
type: z197.literal("DocumentationGroupRestore"),
|
|
5556
5570
|
input: DTORestoreDocumentationGroupInput
|
|
5557
5571
|
});
|
|
5558
5572
|
|
|
5559
5573
|
// src/api/dto/elements/documentation/page-content.ts
|
|
5560
|
-
import { z as
|
|
5574
|
+
import { z as z198 } from "zod";
|
|
5561
5575
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5562
|
-
var DTODocumentationPageContentGetResponse =
|
|
5576
|
+
var DTODocumentationPageContentGetResponse = z198.object({
|
|
5563
5577
|
pageContent: DTODocumentationPageContent
|
|
5564
5578
|
});
|
|
5565
5579
|
|
|
5566
5580
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
5567
|
-
import { z as
|
|
5581
|
+
import { z as z199 } from "zod";
|
|
5568
5582
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
5569
5583
|
data: true,
|
|
5570
5584
|
meta: true,
|
|
@@ -5572,30 +5586,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
5572
5586
|
sortOrder: true
|
|
5573
5587
|
}).extend({
|
|
5574
5588
|
configuration: DTODocumentationItemConfigurationV1,
|
|
5575
|
-
blocks:
|
|
5576
|
-
title:
|
|
5577
|
-
path:
|
|
5589
|
+
blocks: z199.array(PageBlockV1),
|
|
5590
|
+
title: z199.string(),
|
|
5591
|
+
path: z199.string()
|
|
5578
5592
|
});
|
|
5579
5593
|
|
|
5580
5594
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
5581
|
-
import { z as
|
|
5582
|
-
var DTOFigmaNodeOrigin =
|
|
5583
|
-
sourceId:
|
|
5584
|
-
fileId:
|
|
5585
|
-
parentName:
|
|
5595
|
+
import { z as z200 } from "zod";
|
|
5596
|
+
var DTOFigmaNodeOrigin = z200.object({
|
|
5597
|
+
sourceId: z200.string(),
|
|
5598
|
+
fileId: z200.string().optional(),
|
|
5599
|
+
parentName: z200.string().optional()
|
|
5586
5600
|
});
|
|
5587
|
-
var DTOFigmaNodeData =
|
|
5601
|
+
var DTOFigmaNodeData = z200.object({
|
|
5588
5602
|
// Id of the node in the Figma file
|
|
5589
|
-
figmaNodeId:
|
|
5603
|
+
figmaNodeId: z200.string(),
|
|
5590
5604
|
// Validity
|
|
5591
|
-
isValid:
|
|
5605
|
+
isValid: z200.boolean(),
|
|
5592
5606
|
// Asset data
|
|
5593
|
-
assetId:
|
|
5594
|
-
assetUrl:
|
|
5607
|
+
assetId: z200.string(),
|
|
5608
|
+
assetUrl: z200.string(),
|
|
5595
5609
|
// Asset metadata
|
|
5596
|
-
assetScale:
|
|
5597
|
-
assetWidth:
|
|
5598
|
-
assetHeight:
|
|
5610
|
+
assetScale: z200.number(),
|
|
5611
|
+
assetWidth: z200.number().optional(),
|
|
5612
|
+
assetHeight: z200.number().optional()
|
|
5599
5613
|
});
|
|
5600
5614
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
5601
5615
|
data: true,
|
|
@@ -5604,105 +5618,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
5604
5618
|
data: DTOFigmaNodeData,
|
|
5605
5619
|
origin: DTOFigmaNodeOrigin
|
|
5606
5620
|
});
|
|
5607
|
-
var DTOFigmaNodeRenderInput =
|
|
5621
|
+
var DTOFigmaNodeRenderInput = z200.object({
|
|
5608
5622
|
// Id of a design system's data source representing a linked Figma file
|
|
5609
|
-
sourceId:
|
|
5623
|
+
sourceId: z200.string(),
|
|
5610
5624
|
// Id of a node within the Figma file
|
|
5611
|
-
figmaFileNodeId:
|
|
5625
|
+
figmaFileNodeId: z200.string()
|
|
5612
5626
|
});
|
|
5613
5627
|
|
|
5614
5628
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5615
|
-
import { z as
|
|
5616
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5617
|
-
type:
|
|
5618
|
-
figmaNodes:
|
|
5629
|
+
import { z as z201 } from "zod";
|
|
5630
|
+
var DTOFigmaNodeRenderActionOutput = z201.object({
|
|
5631
|
+
type: z201.literal("FigmaNodeRender"),
|
|
5632
|
+
figmaNodes: z201.array(DTOFigmaNode)
|
|
5619
5633
|
});
|
|
5620
|
-
var DTOFigmaNodeRenderActionInput =
|
|
5621
|
-
type:
|
|
5634
|
+
var DTOFigmaNodeRenderActionInput = z201.object({
|
|
5635
|
+
type: z201.literal("FigmaNodeRender"),
|
|
5622
5636
|
input: DTOFigmaNodeRenderInput.array()
|
|
5623
5637
|
});
|
|
5624
5638
|
|
|
5625
5639
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5626
|
-
import { z as
|
|
5640
|
+
import { z as z203 } from "zod";
|
|
5627
5641
|
|
|
5628
5642
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5629
|
-
import { z as
|
|
5643
|
+
import { z as z202 } from "zod";
|
|
5630
5644
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
5631
|
-
var DTOElementPropertyDefinition =
|
|
5632
|
-
id:
|
|
5633
|
-
designSystemVersionId:
|
|
5645
|
+
var DTOElementPropertyDefinition = z202.object({
|
|
5646
|
+
id: z202.string(),
|
|
5647
|
+
designSystemVersionId: z202.string(),
|
|
5634
5648
|
meta: ObjectMeta,
|
|
5635
|
-
persistentId:
|
|
5649
|
+
persistentId: z202.string(),
|
|
5636
5650
|
type: ElementPropertyTypeSchema,
|
|
5637
5651
|
targetElementType: ElementPropertyTargetType,
|
|
5638
|
-
codeName:
|
|
5639
|
-
options:
|
|
5652
|
+
codeName: z202.string().regex(CODE_NAME_REGEX2),
|
|
5653
|
+
options: z202.array(ElementPropertyDefinitionOption).optional(),
|
|
5640
5654
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5641
5655
|
});
|
|
5642
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5643
|
-
definitions:
|
|
5656
|
+
var DTOElementPropertyDefinitionsGetResponse = z202.object({
|
|
5657
|
+
definitions: z202.array(DTOElementPropertyDefinition)
|
|
5644
5658
|
});
|
|
5645
5659
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
5646
5660
|
id: true,
|
|
5647
5661
|
designSystemVersionId: true
|
|
5648
5662
|
});
|
|
5649
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
5650
|
-
id:
|
|
5651
|
-
name:
|
|
5652
|
-
description:
|
|
5653
|
-
codeName:
|
|
5654
|
-
options:
|
|
5663
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z202.object({
|
|
5664
|
+
id: z202.string(),
|
|
5665
|
+
name: z202.string().optional(),
|
|
5666
|
+
description: z202.string().optional(),
|
|
5667
|
+
codeName: z202.string().regex(CODE_NAME_REGEX2).optional(),
|
|
5668
|
+
options: z202.array(ElementPropertyDefinitionOption).optional()
|
|
5655
5669
|
});
|
|
5656
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
5657
|
-
id:
|
|
5670
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z202.object({
|
|
5671
|
+
id: z202.string()
|
|
5658
5672
|
});
|
|
5659
5673
|
|
|
5660
5674
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5661
|
-
var SuccessPayload3 =
|
|
5662
|
-
success:
|
|
5675
|
+
var SuccessPayload3 = z203.object({
|
|
5676
|
+
success: z203.literal(true)
|
|
5663
5677
|
});
|
|
5664
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5665
|
-
type:
|
|
5678
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z203.object({
|
|
5679
|
+
type: z203.literal("PropertyDefinitionCreate"),
|
|
5666
5680
|
definition: DTOElementPropertyDefinition
|
|
5667
5681
|
});
|
|
5668
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5669
|
-
type:
|
|
5682
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z203.object({
|
|
5683
|
+
type: z203.literal("PropertyDefinitionUpdate"),
|
|
5670
5684
|
definition: DTOElementPropertyDefinition
|
|
5671
5685
|
});
|
|
5672
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5673
|
-
type:
|
|
5686
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z203.object({
|
|
5687
|
+
type: z203.literal("PropertyDefinitionDelete"),
|
|
5674
5688
|
output: SuccessPayload3
|
|
5675
5689
|
});
|
|
5676
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5677
|
-
type:
|
|
5690
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z203.object({
|
|
5691
|
+
type: z203.literal("PropertyDefinitionCreate"),
|
|
5678
5692
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5679
5693
|
});
|
|
5680
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5681
|
-
type:
|
|
5694
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z203.object({
|
|
5695
|
+
type: z203.literal("PropertyDefinitionUpdate"),
|
|
5682
5696
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5683
5697
|
});
|
|
5684
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5685
|
-
type:
|
|
5698
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z203.object({
|
|
5699
|
+
type: z203.literal("PropertyDefinitionDelete"),
|
|
5686
5700
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
5687
5701
|
});
|
|
5688
5702
|
|
|
5689
5703
|
// src/api/dto/elements/properties/property-values.ts
|
|
5690
|
-
import { z as
|
|
5691
|
-
var DTOElementPropertyValue =
|
|
5692
|
-
id:
|
|
5693
|
-
designSystemVersionId:
|
|
5694
|
-
definitionId:
|
|
5695
|
-
targetElementId:
|
|
5696
|
-
value:
|
|
5697
|
-
valuePreview:
|
|
5704
|
+
import { z as z204 } from "zod";
|
|
5705
|
+
var DTOElementPropertyValue = z204.object({
|
|
5706
|
+
id: z204.string(),
|
|
5707
|
+
designSystemVersionId: z204.string(),
|
|
5708
|
+
definitionId: z204.string(),
|
|
5709
|
+
targetElementId: z204.string(),
|
|
5710
|
+
value: z204.union([z204.string(), z204.number(), z204.boolean()]).optional(),
|
|
5711
|
+
valuePreview: z204.string().optional()
|
|
5698
5712
|
});
|
|
5699
|
-
var DTOElementPropertyValuesGetResponse =
|
|
5700
|
-
values:
|
|
5713
|
+
var DTOElementPropertyValuesGetResponse = z204.object({
|
|
5714
|
+
values: z204.array(DTOElementPropertyValue)
|
|
5701
5715
|
});
|
|
5702
5716
|
|
|
5703
5717
|
// src/api/dto/elements/elements-action-v2.ts
|
|
5704
|
-
import { z as
|
|
5705
|
-
var DTOElementActionOutput =
|
|
5718
|
+
import { z as z205 } from "zod";
|
|
5719
|
+
var DTOElementActionOutput = z205.discriminatedUnion("type", [
|
|
5706
5720
|
// Documentation pages
|
|
5707
5721
|
DTODocumentationPageCreateActionOutputV2,
|
|
5708
5722
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -5727,7 +5741,7 @@ var DTOElementActionOutput = z204.discriminatedUnion("type", [
|
|
|
5727
5741
|
DTODocumentationPageRestoreActionOutput,
|
|
5728
5742
|
DTODocumentationGroupRestoreActionOutput
|
|
5729
5743
|
]);
|
|
5730
|
-
var DTOElementActionInput =
|
|
5744
|
+
var DTOElementActionInput = z205.discriminatedUnion("type", [
|
|
5731
5745
|
// Documentation pages
|
|
5732
5746
|
DTODocumentationPageCreateActionInputV2,
|
|
5733
5747
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -5754,141 +5768,141 @@ var DTOElementActionInput = z204.discriminatedUnion("type", [
|
|
|
5754
5768
|
]);
|
|
5755
5769
|
|
|
5756
5770
|
// src/api/dto/elements/get-elements-v2.ts
|
|
5757
|
-
import { z as
|
|
5758
|
-
var DTOElementsGetTypeFilter =
|
|
5759
|
-
var DTOElementsGetQuerySchema =
|
|
5760
|
-
types:
|
|
5771
|
+
import { z as z206 } from "zod";
|
|
5772
|
+
var DTOElementsGetTypeFilter = z206.enum(["FigmaNode"]);
|
|
5773
|
+
var DTOElementsGetQuerySchema = z206.object({
|
|
5774
|
+
types: z206.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
5761
5775
|
});
|
|
5762
|
-
var DTOElementsGetOutput =
|
|
5763
|
-
figmaNodes:
|
|
5776
|
+
var DTOElementsGetOutput = z206.object({
|
|
5777
|
+
figmaNodes: z206.array(DTOFigmaNode).optional()
|
|
5764
5778
|
});
|
|
5765
5779
|
|
|
5766
5780
|
// src/api/dto/figma-components/assets/download.ts
|
|
5767
|
-
import { z as
|
|
5768
|
-
var DTOAssetRenderConfiguration =
|
|
5769
|
-
prefix:
|
|
5770
|
-
suffix:
|
|
5771
|
-
scale:
|
|
5772
|
-
format:
|
|
5773
|
-
});
|
|
5774
|
-
var DTORenderedAssetFile =
|
|
5775
|
-
assetId:
|
|
5776
|
-
fileName:
|
|
5777
|
-
sourceUrl:
|
|
5781
|
+
import { z as z207 } from "zod";
|
|
5782
|
+
var DTOAssetRenderConfiguration = z207.object({
|
|
5783
|
+
prefix: z207.string().optional(),
|
|
5784
|
+
suffix: z207.string().optional(),
|
|
5785
|
+
scale: z207.enum(["x1", "x2", "x3", "x4"]),
|
|
5786
|
+
format: z207.enum(["png", "pdf", "svg"])
|
|
5787
|
+
});
|
|
5788
|
+
var DTORenderedAssetFile = z207.object({
|
|
5789
|
+
assetId: z207.string(),
|
|
5790
|
+
fileName: z207.string(),
|
|
5791
|
+
sourceUrl: z207.string(),
|
|
5778
5792
|
settings: DTOAssetRenderConfiguration,
|
|
5779
|
-
originalName:
|
|
5793
|
+
originalName: z207.string()
|
|
5780
5794
|
});
|
|
5781
|
-
var DTODownloadAssetsRequest =
|
|
5782
|
-
persistentIds:
|
|
5795
|
+
var DTODownloadAssetsRequest = z207.object({
|
|
5796
|
+
persistentIds: z207.array(z207.string().uuid()).optional(),
|
|
5783
5797
|
settings: DTOAssetRenderConfiguration.array()
|
|
5784
5798
|
});
|
|
5785
|
-
var DTODownloadAssetsResponse =
|
|
5799
|
+
var DTODownloadAssetsResponse = z207.object({
|
|
5786
5800
|
items: DTORenderedAssetFile.array()
|
|
5787
5801
|
});
|
|
5788
5802
|
|
|
5789
5803
|
// src/api/dto/liveblocks/auth-response.ts
|
|
5790
|
-
import { z as
|
|
5791
|
-
var DTOLiveblocksAuthResponse =
|
|
5792
|
-
token:
|
|
5804
|
+
import { z as z208 } from "zod";
|
|
5805
|
+
var DTOLiveblocksAuthResponse = z208.object({
|
|
5806
|
+
token: z208.string()
|
|
5793
5807
|
});
|
|
5794
5808
|
|
|
5795
5809
|
// src/api/dto/users/profile/update.ts
|
|
5796
|
-
import { z as
|
|
5797
|
-
var DTOUserProfileUpdateResponse =
|
|
5810
|
+
import { z as z209 } from "zod";
|
|
5811
|
+
var DTOUserProfileUpdateResponse = z209.object({
|
|
5798
5812
|
user: User
|
|
5799
5813
|
});
|
|
5800
5814
|
|
|
5801
5815
|
// src/api/dto/workspaces/git.ts
|
|
5802
|
-
import { z as
|
|
5803
|
-
var DTOGitOrganization =
|
|
5804
|
-
id:
|
|
5805
|
-
name:
|
|
5806
|
-
url:
|
|
5807
|
-
slug:
|
|
5808
|
-
});
|
|
5809
|
-
var DTOGitProject =
|
|
5810
|
-
id:
|
|
5811
|
-
name:
|
|
5812
|
-
url:
|
|
5813
|
-
slug:
|
|
5814
|
-
});
|
|
5815
|
-
var DTOGitRepository =
|
|
5816
|
-
id:
|
|
5817
|
-
name:
|
|
5818
|
-
url:
|
|
5819
|
-
slug:
|
|
5820
|
-
defaultBranch:
|
|
5821
|
-
});
|
|
5822
|
-
var DTOGitBranch =
|
|
5823
|
-
name:
|
|
5824
|
-
lastCommitId:
|
|
5816
|
+
import { z as z210 } from "zod";
|
|
5817
|
+
var DTOGitOrganization = z210.object({
|
|
5818
|
+
id: z210.string(),
|
|
5819
|
+
name: z210.string(),
|
|
5820
|
+
url: z210.string(),
|
|
5821
|
+
slug: z210.string()
|
|
5822
|
+
});
|
|
5823
|
+
var DTOGitProject = z210.object({
|
|
5824
|
+
id: z210.string(),
|
|
5825
|
+
name: z210.string(),
|
|
5826
|
+
url: z210.string(),
|
|
5827
|
+
slug: z210.string()
|
|
5828
|
+
});
|
|
5829
|
+
var DTOGitRepository = z210.object({
|
|
5830
|
+
id: z210.string(),
|
|
5831
|
+
name: z210.string(),
|
|
5832
|
+
url: z210.string(),
|
|
5833
|
+
slug: z210.string(),
|
|
5834
|
+
defaultBranch: z210.string().optional()
|
|
5835
|
+
});
|
|
5836
|
+
var DTOGitBranch = z210.object({
|
|
5837
|
+
name: z210.string(),
|
|
5838
|
+
lastCommitId: z210.string()
|
|
5825
5839
|
});
|
|
5826
5840
|
|
|
5827
5841
|
// src/api/dto/workspaces/integrations.ts
|
|
5828
|
-
import { z as
|
|
5842
|
+
import { z as z211 } from "zod";
|
|
5829
5843
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5830
5844
|
accessToken: true,
|
|
5831
5845
|
refreshToken: true
|
|
5832
5846
|
});
|
|
5833
|
-
var DTOIntegration =
|
|
5834
|
-
id:
|
|
5835
|
-
workspaceId:
|
|
5847
|
+
var DTOIntegration = z211.object({
|
|
5848
|
+
id: z211.string(),
|
|
5849
|
+
workspaceId: z211.string(),
|
|
5836
5850
|
type: ExtendedIntegrationType,
|
|
5837
|
-
createdAt:
|
|
5838
|
-
integrationCredentials:
|
|
5839
|
-
integrationDesignSystems:
|
|
5851
|
+
createdAt: z211.coerce.date(),
|
|
5852
|
+
integrationCredentials: z211.array(DTOIntegrationCredentials).optional(),
|
|
5853
|
+
integrationDesignSystems: z211.array(IntegrationDesignSystem).optional()
|
|
5840
5854
|
});
|
|
5841
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5842
|
-
url:
|
|
5855
|
+
var DTOIntegrationOAuthGetResponse = z211.object({
|
|
5856
|
+
url: z211.string()
|
|
5843
5857
|
});
|
|
5844
|
-
var DTOIntegrationPostResponse =
|
|
5858
|
+
var DTOIntegrationPostResponse = z211.object({
|
|
5845
5859
|
integration: DTOIntegration
|
|
5846
5860
|
});
|
|
5847
|
-
var DTOIntegrationsGetListResponse =
|
|
5861
|
+
var DTOIntegrationsGetListResponse = z211.object({
|
|
5848
5862
|
integrations: DTOIntegration.array()
|
|
5849
5863
|
});
|
|
5850
5864
|
|
|
5851
5865
|
// src/api/dto/workspaces/membership.ts
|
|
5852
|
-
import { z as
|
|
5866
|
+
import { z as z214 } from "zod";
|
|
5853
5867
|
|
|
5854
5868
|
// src/api/dto/workspaces/workspace.ts
|
|
5855
|
-
import { z as
|
|
5869
|
+
import { z as z213 } from "zod";
|
|
5856
5870
|
|
|
5857
5871
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5858
|
-
import { z as
|
|
5872
|
+
import { z as z212 } from "zod";
|
|
5859
5873
|
var DTONpmRegistryConfigConstants = {
|
|
5860
5874
|
passwordPlaceholder: "redacted"
|
|
5861
5875
|
};
|
|
5862
|
-
var DTONpmRegistryConfig =
|
|
5876
|
+
var DTONpmRegistryConfig = z212.object({
|
|
5863
5877
|
// Registry basic configuration
|
|
5864
5878
|
registryType: NpmRegistryType,
|
|
5865
|
-
registryUrl:
|
|
5866
|
-
customRegistryUrl:
|
|
5879
|
+
registryUrl: z212.string(),
|
|
5880
|
+
customRegistryUrl: z212.string().optional(),
|
|
5867
5881
|
// URL of Supernova NPM packages proxy
|
|
5868
|
-
proxyUrl:
|
|
5882
|
+
proxyUrl: z212.string(),
|
|
5869
5883
|
// Auth configuration
|
|
5870
5884
|
authType: NpmRegistryAuthType,
|
|
5871
|
-
accessToken:
|
|
5872
|
-
username:
|
|
5873
|
-
password:
|
|
5885
|
+
accessToken: z212.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5886
|
+
username: z212.string().optional(),
|
|
5887
|
+
password: z212.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5874
5888
|
// NPM package scopes for whih the proxy should be enabled
|
|
5875
|
-
enabledScopes:
|
|
5889
|
+
enabledScopes: z212.array(z212.string()),
|
|
5876
5890
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5877
5891
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5878
|
-
bypassProxy:
|
|
5892
|
+
bypassProxy: z212.boolean()
|
|
5879
5893
|
});
|
|
5880
5894
|
|
|
5881
5895
|
// src/api/dto/workspaces/workspace.ts
|
|
5882
|
-
var DTOWorkspace =
|
|
5883
|
-
id:
|
|
5896
|
+
var DTOWorkspace = z213.object({
|
|
5897
|
+
id: z213.string(),
|
|
5884
5898
|
profile: WorkspaceProfile,
|
|
5885
5899
|
subscription: Subscription,
|
|
5886
5900
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5887
5901
|
});
|
|
5888
5902
|
|
|
5889
5903
|
// src/api/dto/workspaces/membership.ts
|
|
5890
|
-
var DTOWorkspaceRole =
|
|
5891
|
-
var DTOUserWorkspaceMembership =
|
|
5904
|
+
var DTOWorkspaceRole = z214.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
5905
|
+
var DTOUserWorkspaceMembership = z214.object({
|
|
5892
5906
|
// Workspace the user is a member of
|
|
5893
5907
|
workspace: DTOWorkspace,
|
|
5894
5908
|
// Assigned role the user has in the workspace
|
|
@@ -5898,8 +5912,8 @@ var DTOUserWorkspaceMembership = z213.object({
|
|
|
5898
5912
|
// when a workspace's subscription is downgraded to free tier
|
|
5899
5913
|
effectiveRole: DTOWorkspaceRole
|
|
5900
5914
|
});
|
|
5901
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5902
|
-
membership:
|
|
5915
|
+
var DTOUserWorkspaceMembershipsResponse = z214.object({
|
|
5916
|
+
membership: z214.array(DTOUserWorkspaceMembership)
|
|
5903
5917
|
});
|
|
5904
5918
|
|
|
5905
5919
|
// src/utils/hash.ts
|
|
@@ -5961,7 +5975,7 @@ function generateHash(input, debug = false) {
|
|
|
5961
5975
|
}
|
|
5962
5976
|
|
|
5963
5977
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
5964
|
-
import { z as
|
|
5978
|
+
import { z as z215 } from "zod";
|
|
5965
5979
|
|
|
5966
5980
|
// src/yjs/version-room/base.ts
|
|
5967
5981
|
var VersionRoomBaseYDoc = class {
|
|
@@ -6131,7 +6145,8 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6131
6145
|
//
|
|
6132
6146
|
// Hierarchy
|
|
6133
6147
|
//
|
|
6134
|
-
getDocumentationHierarchy() {
|
|
6148
|
+
getDocumentationHierarchy(options = {}) {
|
|
6149
|
+
const { includeDeletedContent } = options;
|
|
6135
6150
|
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6136
6151
|
const pages = doc.getPages();
|
|
6137
6152
|
const groups = doc.getGroups();
|
|
@@ -6143,48 +6158,28 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6143
6158
|
if (!settings.isDraftFeatureAdopted) {
|
|
6144
6159
|
return {
|
|
6145
6160
|
pages: pageDTOs,
|
|
6146
|
-
groups: groupDTOs
|
|
6147
|
-
deletedGroups: [],
|
|
6148
|
-
deletedPages: []
|
|
6161
|
+
groups: groupDTOs
|
|
6149
6162
|
};
|
|
6150
6163
|
}
|
|
6151
6164
|
const pageDraftStates = this.buildPageDraftStates(pages, pageSnapshots);
|
|
6165
|
+
const pagePublishedMetadata = this.buildPagePublishedMetadata(pages, pageSnapshots);
|
|
6152
6166
|
pageDTOs.forEach((p) => {
|
|
6153
6167
|
const draftState = pageDraftStates.get(p.id);
|
|
6154
6168
|
draftState && (p.draftState = draftState);
|
|
6169
|
+
const publishMetadata = pagePublishedMetadata.get(p.id);
|
|
6170
|
+
publishMetadata && (p.publishMetadata = publishMetadata);
|
|
6155
6171
|
});
|
|
6156
6172
|
const groupDraftStates = this.buildGroupDraftStates(groups, groupSnapshots);
|
|
6173
|
+
const groupPublishedMetadata = this.buildGroupPublishedMetadata(groups, groupSnapshots);
|
|
6157
6174
|
groupDTOs.forEach((g) => {
|
|
6158
6175
|
const draftState = groupDraftStates.get(g.id);
|
|
6159
6176
|
draftState && (g.draftState = draftState);
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
const deletedPagesMap = mapByUnique(
|
|
6163
|
-
pageSnapshots.filter((s) => !pageIds.has(s.page.id)).map((s) => s.page),
|
|
6164
|
-
(p) => p.id
|
|
6165
|
-
);
|
|
6166
|
-
const deletedPages = Array.from(deletedPagesMap.values());
|
|
6167
|
-
const groupIds = new Set(groups.map((p) => p.id));
|
|
6168
|
-
const deletedGroupsMap = mapByUnique(
|
|
6169
|
-
groupSnapshots.filter((s) => !groupIds.has(s.group.id)).map((s) => s.group),
|
|
6170
|
-
(g) => g.id
|
|
6171
|
-
);
|
|
6172
|
-
const deletedGroups = Array.from(deletedGroupsMap.values());
|
|
6173
|
-
const deletedPageDTOs = documentationPagesToDTOV2(
|
|
6174
|
-
deletedPages,
|
|
6175
|
-
[...groups, ...deletedGroups],
|
|
6176
|
-
settings.routingVersion
|
|
6177
|
-
).map((p) => {
|
|
6178
|
-
return { ...p, draftState: { changeType: "Deleted" } };
|
|
6179
|
-
});
|
|
6180
|
-
const deletedGroupDTOs = elementGroupsToDocumentationGroupDTOV2(deletedGroups, deletedPages).map((g) => {
|
|
6181
|
-
return { ...g, draftState: { changeType: "Deleted" } };
|
|
6177
|
+
const publishMetadata = groupPublishedMetadata.get(g.id);
|
|
6178
|
+
publishMetadata && (g.publishMetadata = publishMetadata);
|
|
6182
6179
|
});
|
|
6183
6180
|
return {
|
|
6184
6181
|
pages: pageDTOs,
|
|
6185
|
-
groups: groupDTOs
|
|
6186
|
-
deletedPages: deletedPageDTOs,
|
|
6187
|
-
deletedGroups: deletedGroupDTOs
|
|
6182
|
+
groups: groupDTOs
|
|
6188
6183
|
};
|
|
6189
6184
|
}
|
|
6190
6185
|
//
|
|
@@ -6215,6 +6210,40 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6215
6210
|
});
|
|
6216
6211
|
return result;
|
|
6217
6212
|
}
|
|
6213
|
+
buildPagePublishedMetadata(pages, pageSnapshots) {
|
|
6214
|
+
const publishedPageSnapshotsById = mapByUnique(
|
|
6215
|
+
pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Publish")),
|
|
6216
|
+
(s) => s.page.id
|
|
6217
|
+
);
|
|
6218
|
+
const result = /* @__PURE__ */ new Map();
|
|
6219
|
+
pages.forEach((p) => {
|
|
6220
|
+
const publishedSnapshot = publishedPageSnapshotsById.get(p.id);
|
|
6221
|
+
if (!publishedSnapshot)
|
|
6222
|
+
return;
|
|
6223
|
+
result.set(p.id, {
|
|
6224
|
+
lastPublishedAt: publishedSnapshot.createdAt,
|
|
6225
|
+
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
6226
|
+
});
|
|
6227
|
+
});
|
|
6228
|
+
return result;
|
|
6229
|
+
}
|
|
6230
|
+
buildGroupPublishedMetadata(groups, groupSnapshots) {
|
|
6231
|
+
const publishedGroupSnapshotsById = mapByUnique(
|
|
6232
|
+
pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Publish")),
|
|
6233
|
+
(s) => s.group.id
|
|
6234
|
+
);
|
|
6235
|
+
const result = /* @__PURE__ */ new Map();
|
|
6236
|
+
groups.forEach((g) => {
|
|
6237
|
+
const publishedSnapshot = publishedGroupSnapshotsById.get(g.id);
|
|
6238
|
+
if (!publishedSnapshot)
|
|
6239
|
+
return;
|
|
6240
|
+
result.set(g.id, {
|
|
6241
|
+
lastPublishedAt: publishedSnapshot.createdAt,
|
|
6242
|
+
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
6243
|
+
});
|
|
6244
|
+
});
|
|
6245
|
+
return result;
|
|
6246
|
+
}
|
|
6218
6247
|
itemStateFromPage(page, pageContentHash) {
|
|
6219
6248
|
return {
|
|
6220
6249
|
title: page.meta.name,
|
|
@@ -6312,25 +6341,29 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6312
6341
|
const settings = doc.getDocumentationInternalSettings();
|
|
6313
6342
|
return settings.isDraftFeatureAdopted;
|
|
6314
6343
|
}
|
|
6344
|
+
hasPublishedDocumentationContent() {
|
|
6345
|
+
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6346
|
+
return doc.getPageSnapshots().filter((s) => s.reason === "Publish").length > 0 || doc.getGroupSnapshots().filter((s) => s.reason === "Publish").length > 0;
|
|
6347
|
+
}
|
|
6315
6348
|
};
|
|
6316
6349
|
|
|
6317
6350
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6318
|
-
var DocumentationHierarchySettings =
|
|
6319
|
-
routingVersion:
|
|
6320
|
-
isDraftFeatureAdopted:
|
|
6351
|
+
var DocumentationHierarchySettings = z215.object({
|
|
6352
|
+
routingVersion: z215.string(),
|
|
6353
|
+
isDraftFeatureAdopted: z215.boolean()
|
|
6321
6354
|
});
|
|
6322
6355
|
function yjsToDocumentationHierarchy(doc) {
|
|
6323
6356
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
6324
6357
|
}
|
|
6325
6358
|
|
|
6326
6359
|
// src/yjs/design-system-content/item-configuration.ts
|
|
6327
|
-
import { z as
|
|
6328
|
-
var DTODocumentationPageRoomHeaderData =
|
|
6329
|
-
title:
|
|
6360
|
+
import { z as z216 } from "zod";
|
|
6361
|
+
var DTODocumentationPageRoomHeaderData = z216.object({
|
|
6362
|
+
title: z216.string(),
|
|
6330
6363
|
configuration: DTODocumentationItemConfigurationV2
|
|
6331
6364
|
});
|
|
6332
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
6333
|
-
title:
|
|
6365
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z216.object({
|
|
6366
|
+
title: z216.string().optional(),
|
|
6334
6367
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
6335
6368
|
});
|
|
6336
6369
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -6381,7 +6414,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
6381
6414
|
header: rawHeader
|
|
6382
6415
|
};
|
|
6383
6416
|
return {
|
|
6384
|
-
title:
|
|
6417
|
+
title: z216.string().parse(title),
|
|
6385
6418
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
6386
6419
|
};
|
|
6387
6420
|
}
|
|
@@ -6391,9 +6424,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
6391
6424
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
6392
6425
|
|
|
6393
6426
|
// src/yjs/docs-editor/model/page.ts
|
|
6394
|
-
import { z as
|
|
6395
|
-
var DocumentationPageEditorModel =
|
|
6396
|
-
blocks:
|
|
6427
|
+
import { z as z217 } from "zod";
|
|
6428
|
+
var DocumentationPageEditorModel = z217.object({
|
|
6429
|
+
blocks: z217.array(DocumentationPageContentItem)
|
|
6397
6430
|
});
|
|
6398
6431
|
|
|
6399
6432
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -10143,7 +10176,7 @@ var blocks = [
|
|
|
10143
10176
|
|
|
10144
10177
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10145
10178
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10146
|
-
import { z as
|
|
10179
|
+
import { z as z218 } from "zod";
|
|
10147
10180
|
function yDocToPage(yDoc, definitions) {
|
|
10148
10181
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10149
10182
|
}
|
|
@@ -10186,7 +10219,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10186
10219
|
return null;
|
|
10187
10220
|
return {
|
|
10188
10221
|
id,
|
|
10189
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10222
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z218.string()) ?? "",
|
|
10190
10223
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10191
10224
|
};
|
|
10192
10225
|
}
|
|
@@ -10221,7 +10254,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
10221
10254
|
});
|
|
10222
10255
|
}
|
|
10223
10256
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
10224
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
10257
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z218.string());
|
|
10225
10258
|
if (!definitionId) {
|
|
10226
10259
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
10227
10260
|
return [];
|
|
@@ -10263,7 +10296,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
10263
10296
|
if (!id)
|
|
10264
10297
|
return null;
|
|
10265
10298
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10266
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
10299
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z218.string().optional()));
|
|
10267
10300
|
return {
|
|
10268
10301
|
id,
|
|
10269
10302
|
type: "Block",
|
|
@@ -10389,10 +10422,10 @@ function parseRichTextAttribute(mark) {
|
|
|
10389
10422
|
return null;
|
|
10390
10423
|
}
|
|
10391
10424
|
function parseProsemirrorLink(mark) {
|
|
10392
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
10425
|
+
const href = getProsemirrorAttribute(mark, "href", z218.string().optional());
|
|
10393
10426
|
if (!href)
|
|
10394
10427
|
return null;
|
|
10395
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
10428
|
+
const target = getProsemirrorAttribute(mark, "target", z218.string().optional());
|
|
10396
10429
|
const openInNewTab = target === "_blank";
|
|
10397
10430
|
if (href.startsWith("@")) {
|
|
10398
10431
|
return {
|
|
@@ -10415,7 +10448,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
10415
10448
|
if (!id)
|
|
10416
10449
|
return null;
|
|
10417
10450
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10418
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
10451
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z218.boolean().optional()) !== false;
|
|
10419
10452
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
10420
10453
|
if (!tableChild) {
|
|
10421
10454
|
return emptyTable(id, variantId, 0);
|
|
@@ -10462,9 +10495,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
10462
10495
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
10463
10496
|
if (!id)
|
|
10464
10497
|
return null;
|
|
10465
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
10498
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z218.string().optional());
|
|
10466
10499
|
let columnWidth;
|
|
10467
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
10500
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z218.array(z218.number()).optional());
|
|
10468
10501
|
if (columnWidthArray) {
|
|
10469
10502
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
10470
10503
|
}
|
|
@@ -10502,7 +10535,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
10502
10535
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
10503
10536
|
};
|
|
10504
10537
|
case "image":
|
|
10505
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
10538
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z218.string());
|
|
10506
10539
|
if (!items)
|
|
10507
10540
|
return null;
|
|
10508
10541
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -10619,7 +10652,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
10619
10652
|
);
|
|
10620
10653
|
}
|
|
10621
10654
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
10622
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
10655
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z218.string());
|
|
10623
10656
|
if (!itemsString)
|
|
10624
10657
|
return null;
|
|
10625
10658
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -10631,18 +10664,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
10631
10664
|
}
|
|
10632
10665
|
function parseAppearance(prosemirrorNode) {
|
|
10633
10666
|
let appearance = {};
|
|
10634
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
10667
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z218.string().optional());
|
|
10635
10668
|
if (rawAppearanceString) {
|
|
10636
10669
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
10637
10670
|
if (parsedAppearance.success) {
|
|
10638
10671
|
appearance = parsedAppearance.data;
|
|
10639
10672
|
}
|
|
10640
10673
|
}
|
|
10641
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
10674
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z218.number().optional());
|
|
10642
10675
|
if (columns) {
|
|
10643
10676
|
appearance.numberOfColumns = columns;
|
|
10644
10677
|
}
|
|
10645
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
10678
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z218.string().optional());
|
|
10646
10679
|
if (backgroundColor) {
|
|
10647
10680
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
10648
10681
|
if (parsedColor.success) {
|
|
@@ -10735,13 +10768,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
10735
10768
|
}
|
|
10736
10769
|
}
|
|
10737
10770
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
10738
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
10771
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z218.string());
|
|
10739
10772
|
if (!id)
|
|
10740
10773
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
10741
10774
|
return id;
|
|
10742
10775
|
}
|
|
10743
10776
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
10744
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
10777
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z218.string()));
|
|
10745
10778
|
}
|
|
10746
10779
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
10747
10780
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|