@supernova-studio/client 1.47.6 → 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 +124 -80
- package/dist/index.d.ts +124 -80
- package/dist/index.js +38 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +164 -160
- 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
|
});
|
|
@@ -7395,6 +7397,7 @@ var DTOWorkspace = z246.object({
|
|
|
7395
7397
|
subscription: Subscription,
|
|
7396
7398
|
npmRegistry: DTONpmRegistryConfig.optional(),
|
|
7397
7399
|
aiFeaturesEnabled: z246.boolean().default(false),
|
|
7400
|
+
projectsEnabled: z246.boolean().default(false),
|
|
7398
7401
|
aiAskFeaturesEnabled: z246.boolean().default(false),
|
|
7399
7402
|
aiCustomInstruction: z246.string().optional()
|
|
7400
7403
|
});
|
|
@@ -7901,6 +7904,7 @@ var WorkspaceConfigurationPayload = z263.object({
|
|
|
7901
7904
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
7902
7905
|
profile: WorkspaceProfile.partial().optional(),
|
|
7903
7906
|
aiFeaturesEnabled: z263.boolean().optional(),
|
|
7907
|
+
projectsEnabled: z263.boolean().optional(),
|
|
7904
7908
|
aiAskFeaturesEnabled: z263.boolean().optional(),
|
|
7905
7909
|
aiCustomInstruction: z263.string().optional()
|
|
7906
7910
|
});
|
|
@@ -10651,74 +10655,89 @@ var DTOLiveblocksAuthResponse = z334.object({
|
|
|
10651
10655
|
token: z334.string()
|
|
10652
10656
|
});
|
|
10653
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
|
+
|
|
10654
10673
|
// src/api/dto/portal/portal-settings.ts
|
|
10655
|
-
import { z as
|
|
10674
|
+
import { z as z336 } from "zod";
|
|
10656
10675
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
10657
10676
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
10658
10677
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
10659
10678
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
10660
|
-
var DTOPortalSettings =
|
|
10661
|
-
id:
|
|
10662
|
-
workspaceId:
|
|
10663
|
-
enabledDesignSystemIds:
|
|
10664
|
-
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()),
|
|
10665
10684
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10666
10685
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
10667
|
-
createdAt:
|
|
10668
|
-
updatedAt:
|
|
10686
|
+
createdAt: z336.coerce.date(),
|
|
10687
|
+
updatedAt: z336.coerce.date()
|
|
10669
10688
|
});
|
|
10670
|
-
var DTOPortalSettingsGetResponse =
|
|
10689
|
+
var DTOPortalSettingsGetResponse = z336.object({
|
|
10671
10690
|
portalSettings: DTOPortalSettings
|
|
10672
10691
|
});
|
|
10673
|
-
var DTOPortalSettingsUpdatePayload =
|
|
10674
|
-
enabledDesignSystemIds:
|
|
10675
|
-
enabledBrandPersistentIds:
|
|
10692
|
+
var DTOPortalSettingsUpdatePayload = z336.object({
|
|
10693
|
+
enabledDesignSystemIds: z336.array(z336.string()).optional(),
|
|
10694
|
+
enabledBrandPersistentIds: z336.array(z336.string()).optional(),
|
|
10676
10695
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10677
10696
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
10678
10697
|
});
|
|
10679
10698
|
|
|
10680
10699
|
// src/api/dto/themes/override.ts
|
|
10681
|
-
import { z as
|
|
10700
|
+
import { z as z337 } from "zod";
|
|
10682
10701
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
10683
|
-
|
|
10684
|
-
tokenPersistentId:
|
|
10702
|
+
z337.object({
|
|
10703
|
+
tokenPersistentId: z337.string(),
|
|
10685
10704
|
origin: ThemeOverrideOrigin.optional()
|
|
10686
10705
|
})
|
|
10687
10706
|
);
|
|
10688
10707
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
10689
|
-
|
|
10690
|
-
tokenPersistentId:
|
|
10708
|
+
z337.object({
|
|
10709
|
+
tokenPersistentId: z337.string()
|
|
10691
10710
|
})
|
|
10692
10711
|
);
|
|
10693
10712
|
|
|
10694
10713
|
// src/api/dto/themes/theme.ts
|
|
10695
|
-
import { z as
|
|
10696
|
-
var DTOTheme =
|
|
10697
|
-
id:
|
|
10698
|
-
persistentId:
|
|
10699
|
-
designSystemVersionId:
|
|
10700
|
-
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(),
|
|
10701
10720
|
meta: ObjectMeta,
|
|
10702
|
-
codeName:
|
|
10721
|
+
codeName: z338.string(),
|
|
10703
10722
|
overrides: DTOThemeOverride.array()
|
|
10704
10723
|
});
|
|
10705
|
-
var DTOThemeResponse =
|
|
10724
|
+
var DTOThemeResponse = z338.object({
|
|
10706
10725
|
theme: DTOTheme
|
|
10707
10726
|
});
|
|
10708
|
-
var DTOThemeListResponse =
|
|
10727
|
+
var DTOThemeListResponse = z338.object({
|
|
10709
10728
|
themes: DTOTheme.array()
|
|
10710
10729
|
});
|
|
10711
|
-
var DTOThemeCreatePayload =
|
|
10730
|
+
var DTOThemeCreatePayload = z338.object({
|
|
10712
10731
|
meta: ObjectMeta,
|
|
10713
|
-
persistentId:
|
|
10714
|
-
brandId:
|
|
10715
|
-
codeName:
|
|
10732
|
+
persistentId: z338.string(),
|
|
10733
|
+
brandId: z338.string(),
|
|
10734
|
+
codeName: z338.string(),
|
|
10716
10735
|
overrides: DTOThemeOverride.array()
|
|
10717
10736
|
});
|
|
10718
10737
|
|
|
10719
10738
|
// src/api/dto/trail-events/trail-events.ts
|
|
10720
|
-
import { z as
|
|
10721
|
-
var DTOTrailEventType =
|
|
10739
|
+
import { z as z339 } from "zod";
|
|
10740
|
+
var DTOTrailEventType = z339.enum([
|
|
10722
10741
|
"IterationCreated",
|
|
10723
10742
|
"IterationBookmarked",
|
|
10724
10743
|
"FeatureCreated",
|
|
@@ -10734,127 +10753,112 @@ var DTOTrailEventType = z338.enum([
|
|
|
10734
10753
|
"ProjectContextCreated",
|
|
10735
10754
|
"ProjectContextArchived"
|
|
10736
10755
|
]);
|
|
10737
|
-
var DTOTrailEventBase =
|
|
10738
|
-
id:
|
|
10739
|
-
projectId:
|
|
10740
|
-
userId:
|
|
10741
|
-
createdAt:
|
|
10742
|
-
updatedAt:
|
|
10743
|
-
});
|
|
10744
|
-
var DTOTrailEventIterationCreatedPayload =
|
|
10745
|
-
iterationName:
|
|
10746
|
-
iterationId:
|
|
10747
|
-
featureId:
|
|
10748
|
-
});
|
|
10749
|
-
var DTOTrailEventIterationBookmarkedPayload =
|
|
10750
|
-
iterationId:
|
|
10751
|
-
featureId:
|
|
10752
|
-
iterationName:
|
|
10753
|
-
});
|
|
10754
|
-
var DTOTrailEventIterationPromotedPayload =
|
|
10755
|
-
iterationId:
|
|
10756
|
-
featureId:
|
|
10757
|
-
iterationName:
|
|
10758
|
-
});
|
|
10759
|
-
var DTOTrailEventFeatureCreatedPayload =
|
|
10760
|
-
featureId:
|
|
10761
|
-
name:
|
|
10762
|
-
description:
|
|
10763
|
-
});
|
|
10764
|
-
var DTOTrailEventFeatureDeletedPayload =
|
|
10765
|
-
featureId:
|
|
10766
|
-
name:
|
|
10767
|
-
});
|
|
10768
|
-
var DTOTrailEventFeatureArchivedPayload =
|
|
10769
|
-
featureId:
|
|
10770
|
-
name:
|
|
10771
|
-
});
|
|
10772
|
-
var DTOTrailEventDocumentCreatedPayload =
|
|
10773
|
-
documentId:
|
|
10774
|
-
title:
|
|
10775
|
-
sectionId:
|
|
10776
|
-
});
|
|
10777
|
-
var DTOTrailEventDocumentDeletedPayload =
|
|
10778
|
-
documentId:
|
|
10779
|
-
title:
|
|
10780
|
-
});
|
|
10781
|
-
var DTOTrailEventDocumentUpdatedPayload =
|
|
10782
|
-
documentId:
|
|
10783
|
-
title:
|
|
10784
|
-
sectionId:
|
|
10785
|
-
});
|
|
10786
|
-
var DTOTrailEventDocumentCommentSentPayload =
|
|
10787
|
-
documentId:
|
|
10788
|
-
title:
|
|
10789
|
-
sectionId:
|
|
10790
|
-
});
|
|
10791
|
-
var DTOTrailEventProjectCreatedPayload =
|
|
10792
|
-
name:
|
|
10793
|
-
description:
|
|
10794
|
-
});
|
|
10795
|
-
var DTOTrailEventProjectArchivedPayload =
|
|
10796
|
-
name:
|
|
10797
|
-
});
|
|
10798
|
-
var DTOTrailEventProjectContextCreatedPayload =
|
|
10799
|
-
contextId:
|
|
10800
|
-
name:
|
|
10801
|
-
description:
|
|
10802
|
-
});
|
|
10803
|
-
var DTOTrailEventProjectContextArchivedPayload =
|
|
10804
|
-
contextId:
|
|
10805
|
-
});
|
|
10806
|
-
var DTOTrailEventPayload =
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
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 })
|
|
10821
10840
|
]);
|
|
10822
10841
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
10823
10842
|
var DTOTrailEventWithDetails = DTOTrailEvent.and(
|
|
10824
|
-
|
|
10825
|
-
projectName:
|
|
10826
|
-
userName:
|
|
10843
|
+
z339.object({
|
|
10844
|
+
projectName: z339.string().optional(),
|
|
10845
|
+
userName: z339.string().optional()
|
|
10827
10846
|
})
|
|
10828
10847
|
);
|
|
10829
|
-
var DTOTrailEventListInput =
|
|
10830
|
-
projectId:
|
|
10848
|
+
var DTOTrailEventListInput = z339.object({
|
|
10849
|
+
projectId: z339.string()
|
|
10831
10850
|
});
|
|
10832
|
-
var DTOTrailEventListResponse =
|
|
10833
|
-
events:
|
|
10851
|
+
var DTOTrailEventListResponse = z339.object({
|
|
10852
|
+
events: z339.array(DTOTrailEventWithDetails)
|
|
10834
10853
|
});
|
|
10835
10854
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
10836
10855
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
10837
10856
|
);
|
|
10838
|
-
var DTOTrailEventClientCreate =
|
|
10839
|
-
|
|
10840
|
-
|
|
10857
|
+
var DTOTrailEventClientCreate = z339.discriminatedUnion("type", [
|
|
10858
|
+
z339.object({ type: z339.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
10859
|
+
z339.object({ type: z339.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
10841
10860
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
10842
10861
|
|
|
10843
|
-
// src/api/dto/mcp/stream.ts
|
|
10844
|
-
import z339 from "zod";
|
|
10845
|
-
var DTOMCPStream = z339.object({
|
|
10846
|
-
id: z339.string().uuid(),
|
|
10847
|
-
projectFeatureId: z339.string().optional(),
|
|
10848
|
-
projectDocumentId: z339.string().optional()
|
|
10849
|
-
});
|
|
10850
|
-
var DTOMCPStreamUpdateInput = z339.object({
|
|
10851
|
-
projectFeatureId: z339.string().optional(),
|
|
10852
|
-
projectDocumentId: z339.string().optional()
|
|
10853
|
-
});
|
|
10854
|
-
var DTOMCPStreamResponse = z339.object({
|
|
10855
|
-
stream: DTOMCPStream
|
|
10856
|
-
});
|
|
10857
|
-
|
|
10858
10862
|
// src/utils/figma.ts
|
|
10859
10863
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
10860
10864
|
var nodeIdRegex = /^\d+-\d+$/;
|
|
@@ -12448,6 +12452,25 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
12448
12452
|
}
|
|
12449
12453
|
};
|
|
12450
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
|
+
|
|
12451
12474
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12452
12475
|
import { z as z351 } from "zod";
|
|
12453
12476
|
var WorkspaceChatThreadsEndpoint = class {
|
|
@@ -12774,25 +12797,6 @@ var UsersEndpoint = class {
|
|
|
12774
12797
|
}
|
|
12775
12798
|
};
|
|
12776
12799
|
|
|
12777
|
-
// src/api/endpoints/mcp/streams.ts
|
|
12778
|
-
var MCPStreamsEndpoint = class {
|
|
12779
|
-
constructor(requestExecutor) {
|
|
12780
|
-
this.requestExecutor = requestExecutor;
|
|
12781
|
-
}
|
|
12782
|
-
getById(streamId) {
|
|
12783
|
-
return this.requestExecutor.json(`/mcp/streams/${streamId}`, DTOMCPStreamResponse);
|
|
12784
|
-
}
|
|
12785
|
-
getForUser() {
|
|
12786
|
-
return this.requestExecutor.json(`/mcp/streams/user`, DTOMCPStreamResponse);
|
|
12787
|
-
}
|
|
12788
|
-
updateForUser(body) {
|
|
12789
|
-
return this.requestExecutor.json(`/mcp/streams/user`, DTOMCPStreamResponse, {
|
|
12790
|
-
method: "PUT",
|
|
12791
|
-
body
|
|
12792
|
-
});
|
|
12793
|
-
}
|
|
12794
|
-
};
|
|
12795
|
-
|
|
12796
12800
|
// src/api/transport/request-executor-error.ts
|
|
12797
12801
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
12798
12802
|
constructor(type, message, errorCode, serverErrorType, cause) {
|