@supernova-studio/client 1.48.18 → 1.48.20
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 +54 -17
- package/dist/index.d.ts +54 -17
- package/dist/index.js +25 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5037,6 +5037,7 @@ var DesignSystem = z170.object({
|
|
|
5037
5037
|
approvalRequiredForPublishing: z170.boolean(),
|
|
5038
5038
|
accessMode: DesignSystemAccessMode,
|
|
5039
5039
|
membersGenerated: z170.boolean(),
|
|
5040
|
+
sharedDraftId: z170.string().optional(),
|
|
5040
5041
|
createdAt: z170.coerce.date(),
|
|
5041
5042
|
updatedAt: z170.coerce.date()
|
|
5042
5043
|
});
|
|
@@ -6860,12 +6861,14 @@ var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
|
6860
6861
|
var DTODesignSystem = DesignSystem.omit({
|
|
6861
6862
|
name: true,
|
|
6862
6863
|
description: true,
|
|
6863
|
-
docExporterId: true
|
|
6864
|
+
docExporterId: true,
|
|
6865
|
+
sharedDraftId: true
|
|
6864
6866
|
}).extend({
|
|
6865
6867
|
meta: ObjectMeta,
|
|
6866
6868
|
docExporterId: z232.string(),
|
|
6867
6869
|
sources: z232.array(z232.any()),
|
|
6868
6870
|
isPublic: z232.literal(true),
|
|
6871
|
+
sharedDraftId: z232.string(),
|
|
6869
6872
|
/**
|
|
6870
6873
|
* Whether or not user who is requesting the design system
|
|
6871
6874
|
* has access to the design system's contents.
|
|
@@ -12725,6 +12728,25 @@ var MCPStreamsEndpoint = class {
|
|
|
12725
12728
|
}
|
|
12726
12729
|
};
|
|
12727
12730
|
|
|
12731
|
+
// src/api/endpoints/workspaces/billing.ts
|
|
12732
|
+
var WorkspaceBillingEndpoint = class {
|
|
12733
|
+
constructor(requestExecutor) {
|
|
12734
|
+
this.requestExecutor = requestExecutor;
|
|
12735
|
+
}
|
|
12736
|
+
creditsSpend(wsId, body) {
|
|
12737
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/billing/credits/spend`, DTOBillingCreditsSpendResponse, {
|
|
12738
|
+
body,
|
|
12739
|
+
method: "POST"
|
|
12740
|
+
});
|
|
12741
|
+
}
|
|
12742
|
+
creditsCheck(wsId) {
|
|
12743
|
+
return this.requestExecutor.json(
|
|
12744
|
+
`/workspaces/${wsId}/billing/credits/check`,
|
|
12745
|
+
DTOBillingCreditsCheckIfCanSpendResponse
|
|
12746
|
+
);
|
|
12747
|
+
}
|
|
12748
|
+
};
|
|
12749
|
+
|
|
12728
12750
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12729
12751
|
import { z as z353 } from "zod";
|
|
12730
12752
|
var WorkspaceChatThreadsEndpoint = class {
|
|
@@ -12915,27 +12937,6 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12915
12937
|
|
|
12916
12938
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12917
12939
|
import { z as z357 } from "zod";
|
|
12918
|
-
|
|
12919
|
-
// src/api/endpoints/workspaces/billing.ts
|
|
12920
|
-
var WorkspaceBillingEndpoint = class {
|
|
12921
|
-
constructor(requestExecutor) {
|
|
12922
|
-
this.requestExecutor = requestExecutor;
|
|
12923
|
-
}
|
|
12924
|
-
creditsSpend(wsId, body) {
|
|
12925
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/billing/credits/spend`, DTOBillingCreditsSpendResponse, {
|
|
12926
|
-
body,
|
|
12927
|
-
method: "POST"
|
|
12928
|
-
});
|
|
12929
|
-
}
|
|
12930
|
-
creditsCheck(wsId) {
|
|
12931
|
-
return this.requestExecutor.json(
|
|
12932
|
-
`/workspaces/${wsId}/billing/credits/check`,
|
|
12933
|
-
DTOBillingCreditsCheckIfCanSpendResponse
|
|
12934
|
-
);
|
|
12935
|
-
}
|
|
12936
|
-
};
|
|
12937
|
-
|
|
12938
|
-
// src/api/endpoints/workspaces/workspaces.ts
|
|
12939
12940
|
var WorkspacesEndpoint = class {
|
|
12940
12941
|
constructor(requestExecutor) {
|
|
12941
12942
|
this.requestExecutor = requestExecutor;
|
|
@@ -20460,6 +20461,7 @@ export {
|
|
|
20460
20461
|
VersionRoomBaseYDoc,
|
|
20461
20462
|
VersionSQSPayload,
|
|
20462
20463
|
VersionStatsEndpoint,
|
|
20464
|
+
WorkspaceBillingEndpoint,
|
|
20463
20465
|
WorkspaceChatThreadsEndpoint,
|
|
20464
20466
|
WorkspaceConfigurationPayload,
|
|
20465
20467
|
WorkspaceIntegrationsEndpoint,
|