@supernova-studio/client 1.47.5 → 1.47.7
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 +126 -1
- package/dist/index.d.ts +126 -1
- package/dist/index.js +49 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +257 -209
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4470,6 +4470,7 @@ var Workspace = z133.object({
|
|
|
4470
4470
|
sso: nullishToOptional(SsoProvider),
|
|
4471
4471
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
|
|
4472
4472
|
aiFeaturesEnabled: z133.boolean().default(false),
|
|
4473
|
+
projectsEnabled: z133.boolean().default(false),
|
|
4473
4474
|
aiAskFeaturesEnabled: z133.boolean().default(false),
|
|
4474
4475
|
aiCustomInstruction: z133.string().optional(),
|
|
4475
4476
|
hasOpenMeterSubject: z133.boolean()
|
|
@@ -4485,6 +4486,7 @@ var WorkspaceConfigurationUpdate = z134.object({
|
|
|
4485
4486
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4486
4487
|
profile: WorkspaceProfileUpdate.optional(),
|
|
4487
4488
|
aiFeaturesEnabled: z134.boolean().optional(),
|
|
4489
|
+
projectsEnabled: z134.boolean().optional(),
|
|
4488
4490
|
aiAskFeaturesEnabled: z134.boolean().optional(),
|
|
4489
4491
|
aiCustomInstruction: z134.string().optional()
|
|
4490
4492
|
});
|
|
@@ -5860,6 +5862,10 @@ var PageScreenshotInput = z214.object({
|
|
|
5860
5862
|
}).optional(),
|
|
5861
5863
|
supernovaAuth: z214.object({
|
|
5862
5864
|
accessToken: z214.string()
|
|
5865
|
+
}).optional(),
|
|
5866
|
+
trace: z214.object({
|
|
5867
|
+
sentryTrace: z214.string().optional(),
|
|
5868
|
+
baggage: z214.string().optional()
|
|
5863
5869
|
}).optional()
|
|
5864
5870
|
});
|
|
5865
5871
|
var PageScreenshotOutput = z214.discriminatedUnion("success", [
|
|
@@ -7391,6 +7397,7 @@ var DTOWorkspace = z246.object({
|
|
|
7391
7397
|
subscription: Subscription,
|
|
7392
7398
|
npmRegistry: DTONpmRegistryConfig.optional(),
|
|
7393
7399
|
aiFeaturesEnabled: z246.boolean().default(false),
|
|
7400
|
+
projectsEnabled: z246.boolean().default(false),
|
|
7394
7401
|
aiAskFeaturesEnabled: z246.boolean().default(false),
|
|
7395
7402
|
aiCustomInstruction: z246.string().optional()
|
|
7396
7403
|
});
|
|
@@ -7897,6 +7904,7 @@ var WorkspaceConfigurationPayload = z263.object({
|
|
|
7897
7904
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
7898
7905
|
profile: WorkspaceProfile.partial().optional(),
|
|
7899
7906
|
aiFeaturesEnabled: z263.boolean().optional(),
|
|
7907
|
+
projectsEnabled: z263.boolean().optional(),
|
|
7900
7908
|
aiAskFeaturesEnabled: z263.boolean().optional(),
|
|
7901
7909
|
aiCustomInstruction: z263.string().optional()
|
|
7902
7910
|
});
|
|
@@ -10647,74 +10655,89 @@ var DTOLiveblocksAuthResponse = z334.object({
|
|
|
10647
10655
|
token: z334.string()
|
|
10648
10656
|
});
|
|
10649
10657
|
|
|
10658
|
+
// src/api/dto/mcp/stream.ts
|
|
10659
|
+
import z335 from "zod";
|
|
10660
|
+
var DTOMCPStream = z335.object({
|
|
10661
|
+
id: z335.string().uuid(),
|
|
10662
|
+
projectFeatureId: z335.string().optional(),
|
|
10663
|
+
projectDocumentId: z335.string().optional()
|
|
10664
|
+
});
|
|
10665
|
+
var DTOMCPStreamUpdateInput = z335.object({
|
|
10666
|
+
projectFeatureId: z335.string().optional(),
|
|
10667
|
+
projectDocumentId: z335.string().optional()
|
|
10668
|
+
});
|
|
10669
|
+
var DTOMCPStreamResponse = z335.object({
|
|
10670
|
+
stream: DTOMCPStream
|
|
10671
|
+
});
|
|
10672
|
+
|
|
10650
10673
|
// src/api/dto/portal/portal-settings.ts
|
|
10651
|
-
import { z as
|
|
10674
|
+
import { z as z336 } from "zod";
|
|
10652
10675
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
10653
10676
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
10654
10677
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
10655
10678
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
10656
|
-
var DTOPortalSettings =
|
|
10657
|
-
id:
|
|
10658
|
-
workspaceId:
|
|
10659
|
-
enabledDesignSystemIds:
|
|
10660
|
-
enabledBrandPersistentIds:
|
|
10679
|
+
var DTOPortalSettings = z336.object({
|
|
10680
|
+
id: z336.string(),
|
|
10681
|
+
workspaceId: z336.string(),
|
|
10682
|
+
enabledDesignSystemIds: z336.array(z336.string()),
|
|
10683
|
+
enabledBrandPersistentIds: z336.array(z336.string()),
|
|
10661
10684
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10662
10685
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
10663
|
-
createdAt:
|
|
10664
|
-
updatedAt:
|
|
10686
|
+
createdAt: z336.coerce.date(),
|
|
10687
|
+
updatedAt: z336.coerce.date()
|
|
10665
10688
|
});
|
|
10666
|
-
var DTOPortalSettingsGetResponse =
|
|
10689
|
+
var DTOPortalSettingsGetResponse = z336.object({
|
|
10667
10690
|
portalSettings: DTOPortalSettings
|
|
10668
10691
|
});
|
|
10669
|
-
var DTOPortalSettingsUpdatePayload =
|
|
10670
|
-
enabledDesignSystemIds:
|
|
10671
|
-
enabledBrandPersistentIds:
|
|
10692
|
+
var DTOPortalSettingsUpdatePayload = z336.object({
|
|
10693
|
+
enabledDesignSystemIds: z336.array(z336.string()).optional(),
|
|
10694
|
+
enabledBrandPersistentIds: z336.array(z336.string()).optional(),
|
|
10672
10695
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10673
10696
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
10674
10697
|
});
|
|
10675
10698
|
|
|
10676
10699
|
// src/api/dto/themes/override.ts
|
|
10677
|
-
import { z as
|
|
10700
|
+
import { z as z337 } from "zod";
|
|
10678
10701
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
10679
|
-
|
|
10680
|
-
tokenPersistentId:
|
|
10702
|
+
z337.object({
|
|
10703
|
+
tokenPersistentId: z337.string(),
|
|
10681
10704
|
origin: ThemeOverrideOrigin.optional()
|
|
10682
10705
|
})
|
|
10683
10706
|
);
|
|
10684
10707
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
10685
|
-
|
|
10686
|
-
tokenPersistentId:
|
|
10708
|
+
z337.object({
|
|
10709
|
+
tokenPersistentId: z337.string()
|
|
10687
10710
|
})
|
|
10688
10711
|
);
|
|
10689
10712
|
|
|
10690
10713
|
// src/api/dto/themes/theme.ts
|
|
10691
|
-
import { z as
|
|
10692
|
-
var DTOTheme =
|
|
10693
|
-
id:
|
|
10694
|
-
persistentId:
|
|
10695
|
-
designSystemVersionId:
|
|
10696
|
-
brandId:
|
|
10714
|
+
import { z as z338 } from "zod";
|
|
10715
|
+
var DTOTheme = z338.object({
|
|
10716
|
+
id: z338.string(),
|
|
10717
|
+
persistentId: z338.string(),
|
|
10718
|
+
designSystemVersionId: z338.string(),
|
|
10719
|
+
brandId: z338.string(),
|
|
10697
10720
|
meta: ObjectMeta,
|
|
10698
|
-
codeName:
|
|
10721
|
+
codeName: z338.string(),
|
|
10699
10722
|
overrides: DTOThemeOverride.array()
|
|
10700
10723
|
});
|
|
10701
|
-
var DTOThemeResponse =
|
|
10724
|
+
var DTOThemeResponse = z338.object({
|
|
10702
10725
|
theme: DTOTheme
|
|
10703
10726
|
});
|
|
10704
|
-
var DTOThemeListResponse =
|
|
10727
|
+
var DTOThemeListResponse = z338.object({
|
|
10705
10728
|
themes: DTOTheme.array()
|
|
10706
10729
|
});
|
|
10707
|
-
var DTOThemeCreatePayload =
|
|
10730
|
+
var DTOThemeCreatePayload = z338.object({
|
|
10708
10731
|
meta: ObjectMeta,
|
|
10709
|
-
persistentId:
|
|
10710
|
-
brandId:
|
|
10711
|
-
codeName:
|
|
10732
|
+
persistentId: z338.string(),
|
|
10733
|
+
brandId: z338.string(),
|
|
10734
|
+
codeName: z338.string(),
|
|
10712
10735
|
overrides: DTOThemeOverride.array()
|
|
10713
10736
|
});
|
|
10714
10737
|
|
|
10715
10738
|
// src/api/dto/trail-events/trail-events.ts
|
|
10716
|
-
import { z as
|
|
10717
|
-
var DTOTrailEventType =
|
|
10739
|
+
import { z as z339 } from "zod";
|
|
10740
|
+
var DTOTrailEventType = z339.enum([
|
|
10718
10741
|
"IterationCreated",
|
|
10719
10742
|
"IterationBookmarked",
|
|
10720
10743
|
"FeatureCreated",
|
|
@@ -10730,110 +10753,110 @@ var DTOTrailEventType = z338.enum([
|
|
|
10730
10753
|
"ProjectContextCreated",
|
|
10731
10754
|
"ProjectContextArchived"
|
|
10732
10755
|
]);
|
|
10733
|
-
var DTOTrailEventBase =
|
|
10734
|
-
id:
|
|
10735
|
-
projectId:
|
|
10736
|
-
userId:
|
|
10737
|
-
createdAt:
|
|
10738
|
-
updatedAt:
|
|
10739
|
-
});
|
|
10740
|
-
var DTOTrailEventIterationCreatedPayload =
|
|
10741
|
-
iterationName:
|
|
10742
|
-
iterationId:
|
|
10743
|
-
featureId:
|
|
10744
|
-
});
|
|
10745
|
-
var DTOTrailEventIterationBookmarkedPayload =
|
|
10746
|
-
iterationId:
|
|
10747
|
-
featureId:
|
|
10748
|
-
iterationName:
|
|
10749
|
-
});
|
|
10750
|
-
var DTOTrailEventIterationPromotedPayload =
|
|
10751
|
-
iterationId:
|
|
10752
|
-
featureId:
|
|
10753
|
-
iterationName:
|
|
10754
|
-
});
|
|
10755
|
-
var DTOTrailEventFeatureCreatedPayload =
|
|
10756
|
-
featureId:
|
|
10757
|
-
name:
|
|
10758
|
-
description:
|
|
10759
|
-
});
|
|
10760
|
-
var DTOTrailEventFeatureDeletedPayload =
|
|
10761
|
-
featureId:
|
|
10762
|
-
name:
|
|
10763
|
-
});
|
|
10764
|
-
var DTOTrailEventFeatureArchivedPayload =
|
|
10765
|
-
featureId:
|
|
10766
|
-
name:
|
|
10767
|
-
});
|
|
10768
|
-
var DTOTrailEventDocumentCreatedPayload =
|
|
10769
|
-
documentId:
|
|
10770
|
-
title:
|
|
10771
|
-
sectionId:
|
|
10772
|
-
});
|
|
10773
|
-
var DTOTrailEventDocumentDeletedPayload =
|
|
10774
|
-
documentId:
|
|
10775
|
-
title:
|
|
10776
|
-
});
|
|
10777
|
-
var DTOTrailEventDocumentUpdatedPayload =
|
|
10778
|
-
documentId:
|
|
10779
|
-
title:
|
|
10780
|
-
sectionId:
|
|
10781
|
-
});
|
|
10782
|
-
var DTOTrailEventDocumentCommentSentPayload =
|
|
10783
|
-
documentId:
|
|
10784
|
-
title:
|
|
10785
|
-
sectionId:
|
|
10786
|
-
});
|
|
10787
|
-
var DTOTrailEventProjectCreatedPayload =
|
|
10788
|
-
name:
|
|
10789
|
-
description:
|
|
10790
|
-
});
|
|
10791
|
-
var DTOTrailEventProjectArchivedPayload =
|
|
10792
|
-
name:
|
|
10793
|
-
});
|
|
10794
|
-
var DTOTrailEventProjectContextCreatedPayload =
|
|
10795
|
-
contextId:
|
|
10796
|
-
name:
|
|
10797
|
-
description:
|
|
10798
|
-
});
|
|
10799
|
-
var DTOTrailEventProjectContextArchivedPayload =
|
|
10800
|
-
contextId:
|
|
10801
|
-
});
|
|
10802
|
-
var DTOTrailEventPayload =
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10756
|
+
var DTOTrailEventBase = z339.object({
|
|
10757
|
+
id: z339.string(),
|
|
10758
|
+
projectId: z339.string(),
|
|
10759
|
+
userId: z339.string(),
|
|
10760
|
+
createdAt: z339.coerce.date(),
|
|
10761
|
+
updatedAt: z339.coerce.date()
|
|
10762
|
+
});
|
|
10763
|
+
var DTOTrailEventIterationCreatedPayload = z339.object({
|
|
10764
|
+
iterationName: z339.string(),
|
|
10765
|
+
iterationId: z339.string().uuid(),
|
|
10766
|
+
featureId: z339.string().uuid()
|
|
10767
|
+
});
|
|
10768
|
+
var DTOTrailEventIterationBookmarkedPayload = z339.object({
|
|
10769
|
+
iterationId: z339.string().uuid(),
|
|
10770
|
+
featureId: z339.string().uuid(),
|
|
10771
|
+
iterationName: z339.string()
|
|
10772
|
+
});
|
|
10773
|
+
var DTOTrailEventIterationPromotedPayload = z339.object({
|
|
10774
|
+
iterationId: z339.string().uuid(),
|
|
10775
|
+
featureId: z339.string().uuid(),
|
|
10776
|
+
iterationName: z339.string()
|
|
10777
|
+
});
|
|
10778
|
+
var DTOTrailEventFeatureCreatedPayload = z339.object({
|
|
10779
|
+
featureId: z339.string().uuid(),
|
|
10780
|
+
name: z339.string(),
|
|
10781
|
+
description: z339.string().optional()
|
|
10782
|
+
});
|
|
10783
|
+
var DTOTrailEventFeatureDeletedPayload = z339.object({
|
|
10784
|
+
featureId: z339.string().uuid(),
|
|
10785
|
+
name: z339.string()
|
|
10786
|
+
});
|
|
10787
|
+
var DTOTrailEventFeatureArchivedPayload = z339.object({
|
|
10788
|
+
featureId: z339.string().uuid(),
|
|
10789
|
+
name: z339.string()
|
|
10790
|
+
});
|
|
10791
|
+
var DTOTrailEventDocumentCreatedPayload = z339.object({
|
|
10792
|
+
documentId: z339.string().uuid(),
|
|
10793
|
+
title: z339.string(),
|
|
10794
|
+
sectionId: z339.string().uuid().optional()
|
|
10795
|
+
});
|
|
10796
|
+
var DTOTrailEventDocumentDeletedPayload = z339.object({
|
|
10797
|
+
documentId: z339.string().uuid(),
|
|
10798
|
+
title: z339.string()
|
|
10799
|
+
});
|
|
10800
|
+
var DTOTrailEventDocumentUpdatedPayload = z339.object({
|
|
10801
|
+
documentId: z339.string().uuid(),
|
|
10802
|
+
title: z339.string(),
|
|
10803
|
+
sectionId: z339.string().uuid().optional()
|
|
10804
|
+
});
|
|
10805
|
+
var DTOTrailEventDocumentCommentSentPayload = z339.object({
|
|
10806
|
+
documentId: z339.string().uuid(),
|
|
10807
|
+
title: z339.string(),
|
|
10808
|
+
sectionId: z339.string().uuid().optional()
|
|
10809
|
+
});
|
|
10810
|
+
var DTOTrailEventProjectCreatedPayload = z339.object({
|
|
10811
|
+
name: z339.string(),
|
|
10812
|
+
description: z339.string().optional()
|
|
10813
|
+
});
|
|
10814
|
+
var DTOTrailEventProjectArchivedPayload = z339.object({
|
|
10815
|
+
name: z339.string()
|
|
10816
|
+
});
|
|
10817
|
+
var DTOTrailEventProjectContextCreatedPayload = z339.object({
|
|
10818
|
+
contextId: z339.number(),
|
|
10819
|
+
name: z339.string(),
|
|
10820
|
+
description: z339.string().optional()
|
|
10821
|
+
});
|
|
10822
|
+
var DTOTrailEventProjectContextArchivedPayload = z339.object({
|
|
10823
|
+
contextId: z339.number()
|
|
10824
|
+
});
|
|
10825
|
+
var DTOTrailEventPayload = z339.discriminatedUnion("type", [
|
|
10826
|
+
z339.object({ type: z339.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
|
|
10827
|
+
z339.object({ type: z339.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
|
|
10828
|
+
z339.object({ type: z339.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
|
|
10829
|
+
z339.object({ type: z339.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
|
|
10830
|
+
z339.object({ type: z339.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
|
|
10831
|
+
z339.object({ type: z339.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
|
|
10832
|
+
z339.object({ type: z339.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
|
|
10833
|
+
z339.object({ type: z339.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
10834
|
+
z339.object({ type: z339.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
|
|
10835
|
+
z339.object({ type: z339.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
|
|
10836
|
+
z339.object({ type: z339.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
|
|
10837
|
+
z339.object({ type: z339.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
|
|
10838
|
+
z339.object({ type: z339.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
|
|
10839
|
+
z339.object({ type: z339.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload })
|
|
10817
10840
|
]);
|
|
10818
10841
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
10819
10842
|
var DTOTrailEventWithDetails = DTOTrailEvent.and(
|
|
10820
|
-
|
|
10821
|
-
projectName:
|
|
10822
|
-
userName:
|
|
10843
|
+
z339.object({
|
|
10844
|
+
projectName: z339.string().optional(),
|
|
10845
|
+
userName: z339.string().optional()
|
|
10823
10846
|
})
|
|
10824
10847
|
);
|
|
10825
|
-
var DTOTrailEventListInput =
|
|
10826
|
-
projectId:
|
|
10848
|
+
var DTOTrailEventListInput = z339.object({
|
|
10849
|
+
projectId: z339.string()
|
|
10827
10850
|
});
|
|
10828
|
-
var DTOTrailEventListResponse =
|
|
10829
|
-
events:
|
|
10851
|
+
var DTOTrailEventListResponse = z339.object({
|
|
10852
|
+
events: z339.array(DTOTrailEventWithDetails)
|
|
10830
10853
|
});
|
|
10831
10854
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
10832
10855
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
10833
10856
|
);
|
|
10834
|
-
var DTOTrailEventClientCreate =
|
|
10835
|
-
|
|
10836
|
-
|
|
10857
|
+
var DTOTrailEventClientCreate = z339.discriminatedUnion("type", [
|
|
10858
|
+
z339.object({ type: z339.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
10859
|
+
z339.object({ type: z339.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
10837
10860
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
10838
10861
|
|
|
10839
10862
|
// src/utils/figma.ts
|
|
@@ -11054,13 +11077,13 @@ var ExportersEndpoint = class {
|
|
|
11054
11077
|
};
|
|
11055
11078
|
|
|
11056
11079
|
// src/api/endpoints/codegen/jobs.ts
|
|
11057
|
-
import { z as
|
|
11080
|
+
import { z as z340 } from "zod";
|
|
11058
11081
|
var ExporterJobsEndpoint = class {
|
|
11059
11082
|
constructor(requestExecutor) {
|
|
11060
11083
|
this.requestExecutor = requestExecutor;
|
|
11061
11084
|
}
|
|
11062
11085
|
list(workspaceId) {
|
|
11063
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
11086
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z340.any());
|
|
11064
11087
|
}
|
|
11065
11088
|
get(workspaceId, jobId) {
|
|
11066
11089
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -11118,7 +11141,7 @@ var CodegenEndpoint = class {
|
|
|
11118
11141
|
};
|
|
11119
11142
|
|
|
11120
11143
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
11121
|
-
import { z as
|
|
11144
|
+
import { z as z341 } from "zod";
|
|
11122
11145
|
var BrandsEndpoint = class {
|
|
11123
11146
|
constructor(requestExecutor) {
|
|
11124
11147
|
this.requestExecutor = requestExecutor;
|
|
@@ -11152,7 +11175,7 @@ var BrandsEndpoint = class {
|
|
|
11152
11175
|
});
|
|
11153
11176
|
}
|
|
11154
11177
|
delete(dsId, vId, brandId) {
|
|
11155
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
11178
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z341.any(), {
|
|
11156
11179
|
method: "DELETE"
|
|
11157
11180
|
});
|
|
11158
11181
|
}
|
|
@@ -11428,7 +11451,7 @@ var ImportJobsEndpoint = class {
|
|
|
11428
11451
|
};
|
|
11429
11452
|
|
|
11430
11453
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
11431
|
-
import { z as
|
|
11454
|
+
import { z as z342 } from "zod";
|
|
11432
11455
|
var OverridesEndpoint = class {
|
|
11433
11456
|
constructor(requestExecutor) {
|
|
11434
11457
|
this.requestExecutor = requestExecutor;
|
|
@@ -11436,7 +11459,7 @@ var OverridesEndpoint = class {
|
|
|
11436
11459
|
create(dsId, versionId, themeId, body) {
|
|
11437
11460
|
return this.requestExecutor.json(
|
|
11438
11461
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
11439
|
-
|
|
11462
|
+
z342.any(),
|
|
11440
11463
|
{
|
|
11441
11464
|
method: "POST",
|
|
11442
11465
|
body
|
|
@@ -11446,7 +11469,7 @@ var OverridesEndpoint = class {
|
|
|
11446
11469
|
};
|
|
11447
11470
|
|
|
11448
11471
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
11449
|
-
import { z as
|
|
11472
|
+
import { z as z343 } from "zod";
|
|
11450
11473
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
11451
11474
|
constructor(requestExecutor) {
|
|
11452
11475
|
this.requestExecutor = requestExecutor;
|
|
@@ -11474,7 +11497,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
11474
11497
|
delete(designSystemId, versionId, defId) {
|
|
11475
11498
|
return this.requestExecutor.json(
|
|
11476
11499
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
11477
|
-
|
|
11500
|
+
z343.any(),
|
|
11478
11501
|
{ method: "DELETE" }
|
|
11479
11502
|
);
|
|
11480
11503
|
}
|
|
@@ -11513,7 +11536,7 @@ var VersionStatsEndpoint = class {
|
|
|
11513
11536
|
};
|
|
11514
11537
|
|
|
11515
11538
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
11516
|
-
import { z as
|
|
11539
|
+
import { z as z344 } from "zod";
|
|
11517
11540
|
var ThemesEndpoint = class {
|
|
11518
11541
|
constructor(requestExecutor) {
|
|
11519
11542
|
this.requestExecutor = requestExecutor;
|
|
@@ -11536,7 +11559,7 @@ var ThemesEndpoint = class {
|
|
|
11536
11559
|
});
|
|
11537
11560
|
}
|
|
11538
11561
|
delete(dsId, versionId, themeId) {
|
|
11539
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
11562
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z344.any(), {
|
|
11540
11563
|
method: "DELETE"
|
|
11541
11564
|
});
|
|
11542
11565
|
}
|
|
@@ -11709,7 +11732,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
11709
11732
|
};
|
|
11710
11733
|
|
|
11711
11734
|
// src/api/endpoints/design-system/design-systems.ts
|
|
11712
|
-
import { z as
|
|
11735
|
+
import { z as z348 } from "zod";
|
|
11713
11736
|
|
|
11714
11737
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
11715
11738
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -11786,7 +11809,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
11786
11809
|
};
|
|
11787
11810
|
|
|
11788
11811
|
// src/api/endpoints/design-system/sources.ts
|
|
11789
|
-
import { z as
|
|
11812
|
+
import { z as z345 } from "zod";
|
|
11790
11813
|
var DesignSystemSourcesEndpoint = class {
|
|
11791
11814
|
constructor(requestExecutor) {
|
|
11792
11815
|
this.requestExecutor = requestExecutor;
|
|
@@ -11804,7 +11827,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11804
11827
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
11805
11828
|
}
|
|
11806
11829
|
delete(dsId, sourceId) {
|
|
11807
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
11830
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z345.any(), { method: "DELETE" });
|
|
11808
11831
|
}
|
|
11809
11832
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
11810
11833
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -11847,7 +11870,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11847
11870
|
};
|
|
11848
11871
|
|
|
11849
11872
|
// src/api/endpoints/design-system/storybook.ts
|
|
11850
|
-
import { z as
|
|
11873
|
+
import { z as z346 } from "zod";
|
|
11851
11874
|
var StorybookEntriesEndpoint = class {
|
|
11852
11875
|
constructor(requestExecutor) {
|
|
11853
11876
|
this.requestExecutor = requestExecutor;
|
|
@@ -11865,14 +11888,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
11865
11888
|
);
|
|
11866
11889
|
}
|
|
11867
11890
|
delete(dsId, entryId) {
|
|
11868
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
11891
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z346.any(), {
|
|
11869
11892
|
method: "DELETE"
|
|
11870
11893
|
});
|
|
11871
11894
|
}
|
|
11872
11895
|
};
|
|
11873
11896
|
|
|
11874
11897
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
11875
|
-
import { z as
|
|
11898
|
+
import { z as z347 } from "zod";
|
|
11876
11899
|
var StorybookHostingEndpoint = class {
|
|
11877
11900
|
constructor(requestExecutor) {
|
|
11878
11901
|
this.requestExecutor = requestExecutor;
|
|
@@ -11886,7 +11909,7 @@ var StorybookHostingEndpoint = class {
|
|
|
11886
11909
|
delete(dsId, storybookUploadId) {
|
|
11887
11910
|
return this.requestExecutor.json(
|
|
11888
11911
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
11889
|
-
|
|
11912
|
+
z347.object({ ok: z347.boolean() }),
|
|
11890
11913
|
{
|
|
11891
11914
|
method: "DELETE"
|
|
11892
11915
|
}
|
|
@@ -11944,7 +11967,7 @@ var DesignSystemsEndpoint = class {
|
|
|
11944
11967
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
11945
11968
|
}
|
|
11946
11969
|
delete(dsId) {
|
|
11947
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
11970
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z348.any(), { method: "DELETE" });
|
|
11948
11971
|
}
|
|
11949
11972
|
update(dsId, body) {
|
|
11950
11973
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -12067,7 +12090,7 @@ var ForgeFeatureArtifactsEndpoint = class {
|
|
|
12067
12090
|
};
|
|
12068
12091
|
|
|
12069
12092
|
// src/api/endpoints/forge/feature-iterations.ts
|
|
12070
|
-
import
|
|
12093
|
+
import z349 from "zod";
|
|
12071
12094
|
var ForgeFeatureIterationsEndpoint = class {
|
|
12072
12095
|
constructor(requestExecutor) {
|
|
12073
12096
|
this.requestExecutor = requestExecutor;
|
|
@@ -12084,7 +12107,7 @@ var ForgeFeatureIterationsEndpoint = class {
|
|
|
12084
12107
|
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
12085
12108
|
return this.requestExecutor.json(
|
|
12086
12109
|
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
12087
|
-
|
|
12110
|
+
z349.any(),
|
|
12088
12111
|
{
|
|
12089
12112
|
body,
|
|
12090
12113
|
method: "POST"
|
|
@@ -12310,7 +12333,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
12310
12333
|
};
|
|
12311
12334
|
|
|
12312
12335
|
// src/api/endpoints/forge/projects.ts
|
|
12313
|
-
import
|
|
12336
|
+
import z350 from "zod";
|
|
12314
12337
|
var ForgeProjectsEndpoint = class {
|
|
12315
12338
|
constructor(requestExecutor) {
|
|
12316
12339
|
this.requestExecutor = requestExecutor;
|
|
@@ -12347,7 +12370,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
12347
12370
|
);
|
|
12348
12371
|
}
|
|
12349
12372
|
action(workspaceId, projectId, body) {
|
|
12350
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
12373
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z350.any(), {
|
|
12351
12374
|
body,
|
|
12352
12375
|
method: "POST"
|
|
12353
12376
|
});
|
|
@@ -12429,8 +12452,27 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
12429
12452
|
}
|
|
12430
12453
|
};
|
|
12431
12454
|
|
|
12455
|
+
// src/api/endpoints/mcp/streams.ts
|
|
12456
|
+
var MCPStreamsEndpoint = class {
|
|
12457
|
+
constructor(requestExecutor) {
|
|
12458
|
+
this.requestExecutor = requestExecutor;
|
|
12459
|
+
}
|
|
12460
|
+
getById(streamId) {
|
|
12461
|
+
return this.requestExecutor.json(`/mcp/streams/${streamId}`, DTOMCPStreamResponse);
|
|
12462
|
+
}
|
|
12463
|
+
getForUser() {
|
|
12464
|
+
return this.requestExecutor.json(`/mcp/streams/user`, DTOMCPStreamResponse);
|
|
12465
|
+
}
|
|
12466
|
+
updateForUser(body) {
|
|
12467
|
+
return this.requestExecutor.json(`/mcp/streams/user`, DTOMCPStreamResponse, {
|
|
12468
|
+
method: "PUT",
|
|
12469
|
+
body
|
|
12470
|
+
});
|
|
12471
|
+
}
|
|
12472
|
+
};
|
|
12473
|
+
|
|
12432
12474
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12433
|
-
import { z as
|
|
12475
|
+
import { z as z351 } from "zod";
|
|
12434
12476
|
var WorkspaceChatThreadsEndpoint = class {
|
|
12435
12477
|
constructor(requestExecutor) {
|
|
12436
12478
|
this.requestExecutor = requestExecutor;
|
|
@@ -12462,7 +12504,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
12462
12504
|
);
|
|
12463
12505
|
}
|
|
12464
12506
|
delete(workspaceId, threadId) {
|
|
12465
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
12507
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z351.any(), {
|
|
12466
12508
|
method: "DELETE"
|
|
12467
12509
|
});
|
|
12468
12510
|
}
|
|
@@ -12494,7 +12536,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12494
12536
|
);
|
|
12495
12537
|
}
|
|
12496
12538
|
score(workspaceId, threadId, body) {
|
|
12497
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
12539
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z351.any(), {
|
|
12498
12540
|
method: "POST",
|
|
12499
12541
|
body
|
|
12500
12542
|
});
|
|
@@ -12502,7 +12544,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12502
12544
|
};
|
|
12503
12545
|
|
|
12504
12546
|
// src/api/endpoints/workspaces/integrations.ts
|
|
12505
|
-
import { z as
|
|
12547
|
+
import { z as z352 } from "zod";
|
|
12506
12548
|
var WorkspaceIntegrationsEndpoint = class {
|
|
12507
12549
|
constructor(requestExecutor) {
|
|
12508
12550
|
this.requestExecutor = requestExecutor;
|
|
@@ -12511,7 +12553,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
12511
12553
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
12512
12554
|
}
|
|
12513
12555
|
delete(wsId, iId) {
|
|
12514
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
12556
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z352.unknown(), { method: "DELETE" });
|
|
12515
12557
|
}
|
|
12516
12558
|
};
|
|
12517
12559
|
|
|
@@ -12543,7 +12585,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
12543
12585
|
};
|
|
12544
12586
|
|
|
12545
12587
|
// src/api/endpoints/workspaces/members.ts
|
|
12546
|
-
import { z as
|
|
12588
|
+
import { z as z353 } from "zod";
|
|
12547
12589
|
var WorkspaceMembersEndpoint = class {
|
|
12548
12590
|
constructor(requestExecutor) {
|
|
12549
12591
|
this.requestExecutor = requestExecutor;
|
|
@@ -12560,7 +12602,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
12560
12602
|
});
|
|
12561
12603
|
}
|
|
12562
12604
|
invite(workspaceId, body) {
|
|
12563
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
12605
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z353.any(), { method: "POST", body });
|
|
12564
12606
|
}
|
|
12565
12607
|
delete(workspaceId, userId) {
|
|
12566
12608
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -12589,7 +12631,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
12589
12631
|
};
|
|
12590
12632
|
|
|
12591
12633
|
// src/api/endpoints/workspaces/subscription.ts
|
|
12592
|
-
import { z as
|
|
12634
|
+
import { z as z354 } from "zod";
|
|
12593
12635
|
var WorkspaceSubscriptionEndpoint = class {
|
|
12594
12636
|
constructor(requestExecutor) {
|
|
12595
12637
|
this.requestExecutor = requestExecutor;
|
|
@@ -12600,7 +12642,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12600
12642
|
});
|
|
12601
12643
|
}
|
|
12602
12644
|
update(workspaceId, body) {
|
|
12603
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
12645
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z354.any(), {
|
|
12604
12646
|
method: "PUT",
|
|
12605
12647
|
body
|
|
12606
12648
|
});
|
|
@@ -12618,7 +12660,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12618
12660
|
};
|
|
12619
12661
|
|
|
12620
12662
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12621
|
-
import { z as
|
|
12663
|
+
import { z as z355 } from "zod";
|
|
12622
12664
|
var WorkspacesEndpoint = class {
|
|
12623
12665
|
constructor(requestExecutor) {
|
|
12624
12666
|
this.requestExecutor = requestExecutor;
|
|
@@ -12652,7 +12694,7 @@ var WorkspacesEndpoint = class {
|
|
|
12652
12694
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
12653
12695
|
}
|
|
12654
12696
|
delete(workspaceId) {
|
|
12655
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
12697
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z355.any(), { method: "DELETE" });
|
|
12656
12698
|
}
|
|
12657
12699
|
getPortalSettings(workspaceId) {
|
|
12658
12700
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -12810,9 +12852,9 @@ ${bodyText}`,
|
|
|
12810
12852
|
|
|
12811
12853
|
// src/api/transport/request-executor.ts
|
|
12812
12854
|
import fetch from "node-fetch";
|
|
12813
|
-
import { z as
|
|
12814
|
-
var ResponseWrapper =
|
|
12815
|
-
result:
|
|
12855
|
+
import { z as z356 } from "zod";
|
|
12856
|
+
var ResponseWrapper = z356.object({
|
|
12857
|
+
result: z356.record(z356.any())
|
|
12816
12858
|
});
|
|
12817
12859
|
var RequestExecutor = class {
|
|
12818
12860
|
constructor(testServerConfig) {
|
|
@@ -12877,6 +12919,7 @@ var SupernovaApiClient = class {
|
|
|
12877
12919
|
__publicField(this, "forge");
|
|
12878
12920
|
__publicField(this, "files");
|
|
12879
12921
|
__publicField(this, "threads");
|
|
12922
|
+
__publicField(this, "mcpStreams");
|
|
12880
12923
|
const requestExecutor = new RequestExecutor({
|
|
12881
12924
|
host: config.host,
|
|
12882
12925
|
accessToken: config.accessToken
|
|
@@ -12889,29 +12932,30 @@ var SupernovaApiClient = class {
|
|
|
12889
12932
|
this.forge = new ForgeEndpoint(requestExecutor);
|
|
12890
12933
|
this.files = new FilesEndpoint(requestExecutor);
|
|
12891
12934
|
this.threads = new ThreadsEndpoint(requestExecutor);
|
|
12935
|
+
this.mcpStreams = new MCPStreamsEndpoint(requestExecutor);
|
|
12892
12936
|
}
|
|
12893
12937
|
};
|
|
12894
12938
|
|
|
12895
12939
|
// src/events/design-system.ts
|
|
12896
|
-
import { z as
|
|
12897
|
-
var DTOEventFigmaNodesRendered =
|
|
12898
|
-
type:
|
|
12899
|
-
designSystemId:
|
|
12900
|
-
versionId:
|
|
12901
|
-
figmaNodePersistentIds:
|
|
12902
|
-
});
|
|
12903
|
-
var DTOEventDataSourcesImported =
|
|
12904
|
-
type:
|
|
12905
|
-
designSystemId:
|
|
12906
|
-
versionId:
|
|
12907
|
-
importJobId:
|
|
12940
|
+
import { z as z357 } from "zod";
|
|
12941
|
+
var DTOEventFigmaNodesRendered = z357.object({
|
|
12942
|
+
type: z357.literal("DesignSystem.FigmaNodesRendered"),
|
|
12943
|
+
designSystemId: z357.string(),
|
|
12944
|
+
versionId: z357.string(),
|
|
12945
|
+
figmaNodePersistentIds: z357.string().array()
|
|
12946
|
+
});
|
|
12947
|
+
var DTOEventDataSourcesImported = z357.object({
|
|
12948
|
+
type: z357.literal("DesignSystem.ImportJobFinished"),
|
|
12949
|
+
designSystemId: z357.string(),
|
|
12950
|
+
versionId: z357.string(),
|
|
12951
|
+
importJobId: z357.string(),
|
|
12908
12952
|
dataSourceType: DataSourceRemoteType,
|
|
12909
|
-
dataSourceIds:
|
|
12953
|
+
dataSourceIds: z357.string().array()
|
|
12910
12954
|
});
|
|
12911
12955
|
|
|
12912
12956
|
// src/events/event.ts
|
|
12913
|
-
import { z as
|
|
12914
|
-
var DTOEvent =
|
|
12957
|
+
import { z as z358 } from "zod";
|
|
12958
|
+
var DTOEvent = z358.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
12915
12959
|
|
|
12916
12960
|
// src/sync/docs-local-action-executor.ts
|
|
12917
12961
|
function applyActionsLocally(input) {
|
|
@@ -13207,7 +13251,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13207
13251
|
import PQueue from "p-queue";
|
|
13208
13252
|
|
|
13209
13253
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13210
|
-
import { z as
|
|
13254
|
+
import { z as z359 } from "zod";
|
|
13211
13255
|
|
|
13212
13256
|
// src/yjs/version-room/base.ts
|
|
13213
13257
|
var VersionRoomBaseYDoc = class {
|
|
@@ -13757,24 +13801,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
13757
13801
|
};
|
|
13758
13802
|
|
|
13759
13803
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13760
|
-
var DocumentationHierarchySettings =
|
|
13761
|
-
routingVersion:
|
|
13762
|
-
isDraftFeatureAdopted:
|
|
13763
|
-
isApprovalFeatureEnabled:
|
|
13764
|
-
approvalRequiredForPublishing:
|
|
13804
|
+
var DocumentationHierarchySettings = z359.object({
|
|
13805
|
+
routingVersion: z359.string(),
|
|
13806
|
+
isDraftFeatureAdopted: z359.boolean(),
|
|
13807
|
+
isApprovalFeatureEnabled: z359.boolean(),
|
|
13808
|
+
approvalRequiredForPublishing: z359.boolean()
|
|
13765
13809
|
});
|
|
13766
13810
|
function yjsToDocumentationHierarchy(doc) {
|
|
13767
13811
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
13768
13812
|
}
|
|
13769
13813
|
|
|
13770
13814
|
// src/yjs/design-system-content/item-configuration.ts
|
|
13771
|
-
import { z as
|
|
13772
|
-
var DTODocumentationPageRoomHeaderData =
|
|
13773
|
-
title:
|
|
13815
|
+
import { z as z360 } from "zod";
|
|
13816
|
+
var DTODocumentationPageRoomHeaderData = z360.object({
|
|
13817
|
+
title: z360.string(),
|
|
13774
13818
|
configuration: DTODocumentationItemConfigurationV2
|
|
13775
13819
|
});
|
|
13776
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
13777
|
-
title:
|
|
13820
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z360.object({
|
|
13821
|
+
title: z360.string().optional(),
|
|
13778
13822
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
13779
13823
|
});
|
|
13780
13824
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -13809,9 +13853,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
13809
13853
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
13810
13854
|
|
|
13811
13855
|
// src/yjs/docs-editor/model/page.ts
|
|
13812
|
-
import { z as
|
|
13813
|
-
var DocumentationPageEditorModel =
|
|
13814
|
-
blocks:
|
|
13856
|
+
import { z as z361 } from "zod";
|
|
13857
|
+
var DocumentationPageEditorModel = z361.object({
|
|
13858
|
+
blocks: z361.array(DocumentationPageContentItem)
|
|
13815
13859
|
});
|
|
13816
13860
|
|
|
13817
13861
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -17488,7 +17532,7 @@ var blocks = [
|
|
|
17488
17532
|
|
|
17489
17533
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
17490
17534
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
17491
|
-
import { z as
|
|
17535
|
+
import { z as z362 } from "zod";
|
|
17492
17536
|
function yDocToPage(yDoc, definitions) {
|
|
17493
17537
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
17494
17538
|
}
|
|
@@ -17564,7 +17608,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
17564
17608
|
if (!id) return null;
|
|
17565
17609
|
return {
|
|
17566
17610
|
id,
|
|
17567
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
17611
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z362.string()) ?? "",
|
|
17568
17612
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
17569
17613
|
};
|
|
17570
17614
|
}
|
|
@@ -17598,7 +17642,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
17598
17642
|
});
|
|
17599
17643
|
}
|
|
17600
17644
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
17601
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
17645
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z362.string());
|
|
17602
17646
|
if (!definitionId) {
|
|
17603
17647
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
17604
17648
|
return [];
|
|
@@ -17639,7 +17683,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
17639
17683
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17640
17684
|
if (!id) return null;
|
|
17641
17685
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17642
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
17686
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z362.string().optional()));
|
|
17643
17687
|
return {
|
|
17644
17688
|
id,
|
|
17645
17689
|
type: "Block",
|
|
@@ -17762,9 +17806,9 @@ function parseRichTextAttribute(mark) {
|
|
|
17762
17806
|
return null;
|
|
17763
17807
|
}
|
|
17764
17808
|
function parseProsemirrorLink(mark) {
|
|
17765
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
17809
|
+
const href = getProsemirrorAttribute(mark, "href", z362.string().optional());
|
|
17766
17810
|
if (!href) return null;
|
|
17767
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
17811
|
+
const target = getProsemirrorAttribute(mark, "target", z362.string().optional());
|
|
17768
17812
|
const openInNewTab = target === "_blank";
|
|
17769
17813
|
if (href.startsWith("@")) {
|
|
17770
17814
|
return {
|
|
@@ -17783,9 +17827,9 @@ function parseProsemirrorLink(mark) {
|
|
|
17783
17827
|
}
|
|
17784
17828
|
}
|
|
17785
17829
|
function parseProsemirrorCommentHighlight(mark) {
|
|
17786
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
17830
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z362.string().optional());
|
|
17787
17831
|
if (!highlightId) return null;
|
|
17788
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
17832
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z362.boolean().optional()) ?? false;
|
|
17789
17833
|
return {
|
|
17790
17834
|
type: "Comment",
|
|
17791
17835
|
commentHighlightId: highlightId,
|
|
@@ -17796,7 +17840,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17796
17840
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17797
17841
|
if (!id) return null;
|
|
17798
17842
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17799
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
17843
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z362.boolean().optional()) !== false;
|
|
17800
17844
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
17801
17845
|
if (!tableChild) {
|
|
17802
17846
|
return emptyTable(id, variantId, 0);
|
|
@@ -17842,9 +17886,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17842
17886
|
function parseAsTableCell(prosemirrorNode) {
|
|
17843
17887
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17844
17888
|
if (!id) return null;
|
|
17845
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
17889
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z362.string().optional());
|
|
17846
17890
|
let columnWidth;
|
|
17847
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
17891
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z362.array(z362.number()).nullish());
|
|
17848
17892
|
if (columnWidthArray) {
|
|
17849
17893
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
17850
17894
|
}
|
|
@@ -17880,7 +17924,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
17880
17924
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
17881
17925
|
};
|
|
17882
17926
|
case "image":
|
|
17883
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17927
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z362.string());
|
|
17884
17928
|
if (!items) return null;
|
|
17885
17929
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
17886
17930
|
if (!parsedItems.success) return null;
|
|
@@ -17994,7 +18038,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
17994
18038
|
);
|
|
17995
18039
|
}
|
|
17996
18040
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
17997
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
18041
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z362.string());
|
|
17998
18042
|
if (!itemsString) return null;
|
|
17999
18043
|
const itemsJson = JSON.parse(itemsString);
|
|
18000
18044
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -18005,18 +18049,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
18005
18049
|
}
|
|
18006
18050
|
function parseAppearance(prosemirrorNode) {
|
|
18007
18051
|
let appearance = {};
|
|
18008
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
18052
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z362.string().optional());
|
|
18009
18053
|
if (rawAppearanceString) {
|
|
18010
18054
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
18011
18055
|
if (parsedAppearance.success) {
|
|
18012
18056
|
appearance = parsedAppearance.data;
|
|
18013
18057
|
}
|
|
18014
18058
|
}
|
|
18015
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
18059
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z362.number().optional());
|
|
18016
18060
|
if (columns) {
|
|
18017
18061
|
appearance.numberOfColumns = columns;
|
|
18018
18062
|
}
|
|
18019
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
18063
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z362.string().optional());
|
|
18020
18064
|
if (backgroundColor) {
|
|
18021
18065
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
18022
18066
|
if (parsedColor.success) {
|
|
@@ -18117,12 +18161,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
18117
18161
|
}
|
|
18118
18162
|
}
|
|
18119
18163
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
18120
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
18164
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z362.string());
|
|
18121
18165
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
18122
18166
|
return id;
|
|
18123
18167
|
}
|
|
18124
18168
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
18125
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
18169
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z362.string()));
|
|
18126
18170
|
}
|
|
18127
18171
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
18128
18172
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -19831,6 +19875,9 @@ export {
|
|
|
19831
19875
|
DTOIntegrationsGetListResponse,
|
|
19832
19876
|
DTOLiveblocksAuthRequest,
|
|
19833
19877
|
DTOLiveblocksAuthResponse,
|
|
19878
|
+
DTOMCPStream,
|
|
19879
|
+
DTOMCPStreamResponse,
|
|
19880
|
+
DTOMCPStreamUpdateInput,
|
|
19834
19881
|
DTOMoveDocumentationGroupInput,
|
|
19835
19882
|
DTOMoveDocumentationPageInputV2,
|
|
19836
19883
|
DTONpmRegistryAccessTokenResponse,
|
|
@@ -20066,6 +20113,7 @@ export {
|
|
|
20066
20113
|
LiveblocksEndpoint,
|
|
20067
20114
|
LocalDocsElementActionExecutor,
|
|
20068
20115
|
LocalProjectActionExecutor,
|
|
20116
|
+
MCPStreamsEndpoint,
|
|
20069
20117
|
NpmRegistryInput,
|
|
20070
20118
|
ObjectMeta2 as ObjectMeta,
|
|
20071
20119
|
OverridesEndpoint,
|