@supernova-studio/client 1.47.6 → 1.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +185 -80
- package/dist/index.d.ts +185 -80
- package/dist/index.js +44 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +170 -161
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4470,6 +4470,7 @@ var Workspace = _zod.z.object({
|
|
|
4470
4470
|
sso: nullishToOptional(SsoProvider),
|
|
4471
4471
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
|
|
4472
4472
|
aiFeaturesEnabled: _zod.z.boolean().default(false),
|
|
4473
|
+
projectsEnabled: _zod.z.boolean().default(false),
|
|
4473
4474
|
aiAskFeaturesEnabled: _zod.z.boolean().default(false),
|
|
4474
4475
|
aiCustomInstruction: _zod.z.string().optional(),
|
|
4475
4476
|
hasOpenMeterSubject: _zod.z.boolean()
|
|
@@ -4485,6 +4486,7 @@ var WorkspaceConfigurationUpdate = _zod.z.object({
|
|
|
4485
4486
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4486
4487
|
profile: WorkspaceProfileUpdate.optional(),
|
|
4487
4488
|
aiFeaturesEnabled: _zod.z.boolean().optional(),
|
|
4489
|
+
projectsEnabled: _zod.z.boolean().optional(),
|
|
4488
4490
|
aiAskFeaturesEnabled: _zod.z.boolean().optional(),
|
|
4489
4491
|
aiCustomInstruction: _zod.z.string().optional()
|
|
4490
4492
|
});
|
|
@@ -7395,6 +7397,7 @@ var DTOWorkspace = _zod.z.object({
|
|
|
7395
7397
|
subscription: Subscription,
|
|
7396
7398
|
npmRegistry: DTONpmRegistryConfig.optional(),
|
|
7397
7399
|
aiFeaturesEnabled: _zod.z.boolean().default(false),
|
|
7400
|
+
projectsEnabled: _zod.z.boolean().default(false),
|
|
7398
7401
|
aiAskFeaturesEnabled: _zod.z.boolean().default(false),
|
|
7399
7402
|
aiCustomInstruction: _zod.z.string().optional()
|
|
7400
7403
|
});
|
|
@@ -7901,6 +7904,7 @@ var WorkspaceConfigurationPayload = _zod.z.object({
|
|
|
7901
7904
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
7902
7905
|
profile: WorkspaceProfile.partial().optional(),
|
|
7903
7906
|
aiFeaturesEnabled: _zod.z.boolean().optional(),
|
|
7907
|
+
projectsEnabled: _zod.z.boolean().optional(),
|
|
7904
7908
|
aiAskFeaturesEnabled: _zod.z.boolean().optional(),
|
|
7905
7909
|
aiCustomInstruction: _zod.z.string().optional()
|
|
7906
7910
|
});
|
|
@@ -9542,6 +9546,10 @@ var DTOFeatureIteration = _zod2.default.object({
|
|
|
9542
9546
|
* To be used for "fix with AI"
|
|
9543
9547
|
*/
|
|
9544
9548
|
errorDescription: _zod2.default.string().nullish(),
|
|
9549
|
+
/**
|
|
9550
|
+
* The cost in credits to generate this iteration
|
|
9551
|
+
*/
|
|
9552
|
+
creditsCost: _zod2.default.number().optional(),
|
|
9545
9553
|
/**
|
|
9546
9554
|
* URL of a static preview of the feature
|
|
9547
9555
|
*/
|
|
@@ -9900,7 +9908,8 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
|
|
|
9900
9908
|
var DTOThreadMessageFinalizeInput = _zod2.default.object({
|
|
9901
9909
|
messageId: Id,
|
|
9902
9910
|
agentMessageBody: _zod2.default.string().optional(),
|
|
9903
|
-
promptState: DTOThreadPromptState.optional()
|
|
9911
|
+
promptState: DTOThreadPromptState.optional(),
|
|
9912
|
+
creditsSpend: DTOBillingCreditsSpendInput.optional()
|
|
9904
9913
|
});
|
|
9905
9914
|
var DTOThreadMessageRetryInput = _zod2.default.object({
|
|
9906
9915
|
agentMessageId: Id
|
|
@@ -10651,6 +10660,21 @@ var DTOLiveblocksAuthResponse = _zod.z.object({
|
|
|
10651
10660
|
token: _zod.z.string()
|
|
10652
10661
|
});
|
|
10653
10662
|
|
|
10663
|
+
// src/api/dto/mcp/stream.ts
|
|
10664
|
+
|
|
10665
|
+
var DTOMCPStream = _zod2.default.object({
|
|
10666
|
+
id: _zod2.default.string().uuid(),
|
|
10667
|
+
projectFeatureId: _zod2.default.string().optional(),
|
|
10668
|
+
projectDocumentId: _zod2.default.string().optional()
|
|
10669
|
+
});
|
|
10670
|
+
var DTOMCPStreamUpdateInput = _zod2.default.object({
|
|
10671
|
+
projectFeatureId: _zod2.default.string().optional(),
|
|
10672
|
+
projectDocumentId: _zod2.default.string().optional()
|
|
10673
|
+
});
|
|
10674
|
+
var DTOMCPStreamResponse = _zod2.default.object({
|
|
10675
|
+
stream: DTOMCPStream
|
|
10676
|
+
});
|
|
10677
|
+
|
|
10654
10678
|
// src/api/dto/portal/portal-settings.ts
|
|
10655
10679
|
|
|
10656
10680
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
@@ -10840,21 +10864,6 @@ var DTOTrailEventClientCreate = _zod.z.discriminatedUnion("type", [
|
|
|
10840
10864
|
_zod.z.object({ type: _zod.z.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
10841
10865
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
10842
10866
|
|
|
10843
|
-
// src/api/dto/mcp/stream.ts
|
|
10844
|
-
|
|
10845
|
-
var DTOMCPStream = _zod2.default.object({
|
|
10846
|
-
id: _zod2.default.string().uuid(),
|
|
10847
|
-
projectFeatureId: _zod2.default.string().optional(),
|
|
10848
|
-
projectDocumentId: _zod2.default.string().optional()
|
|
10849
|
-
});
|
|
10850
|
-
var DTOMCPStreamUpdateInput = _zod2.default.object({
|
|
10851
|
-
projectFeatureId: _zod2.default.string().optional(),
|
|
10852
|
-
projectDocumentId: _zod2.default.string().optional()
|
|
10853
|
-
});
|
|
10854
|
-
var DTOMCPStreamResponse = _zod2.default.object({
|
|
10855
|
-
stream: DTOMCPStream
|
|
10856
|
-
});
|
|
10857
|
-
|
|
10858
10867
|
// src/utils/figma.ts
|
|
10859
10868
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
10860
10869
|
var nodeIdRegex = /^\d+-\d+$/;
|
|
@@ -12448,6 +12457,25 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
12448
12457
|
}
|
|
12449
12458
|
};
|
|
12450
12459
|
|
|
12460
|
+
// src/api/endpoints/mcp/streams.ts
|
|
12461
|
+
var MCPStreamsEndpoint = class {
|
|
12462
|
+
constructor(requestExecutor) {
|
|
12463
|
+
this.requestExecutor = requestExecutor;
|
|
12464
|
+
}
|
|
12465
|
+
getById(streamId) {
|
|
12466
|
+
return this.requestExecutor.json(`/mcp/streams/${streamId}`, DTOMCPStreamResponse);
|
|
12467
|
+
}
|
|
12468
|
+
getForUser() {
|
|
12469
|
+
return this.requestExecutor.json(`/mcp/streams/user`, DTOMCPStreamResponse);
|
|
12470
|
+
}
|
|
12471
|
+
updateForUser(body) {
|
|
12472
|
+
return this.requestExecutor.json(`/mcp/streams/user`, DTOMCPStreamResponse, {
|
|
12473
|
+
method: "PUT",
|
|
12474
|
+
body
|
|
12475
|
+
});
|
|
12476
|
+
}
|
|
12477
|
+
};
|
|
12478
|
+
|
|
12451
12479
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12452
12480
|
|
|
12453
12481
|
var WorkspaceChatThreadsEndpoint = class {
|
|
@@ -12774,25 +12802,6 @@ var UsersEndpoint = class {
|
|
|
12774
12802
|
}
|
|
12775
12803
|
};
|
|
12776
12804
|
|
|
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
12805
|
// src/api/transport/request-executor-error.ts
|
|
12797
12806
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
12798
12807
|
constructor(type, message, errorCode, serverErrorType, cause) {
|