@supernova-studio/client 1.48.18 → 1.48.19

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.mjs CHANGED
@@ -12725,6 +12725,25 @@ var MCPStreamsEndpoint = class {
12725
12725
  }
12726
12726
  };
12727
12727
 
12728
+ // src/api/endpoints/workspaces/billing.ts
12729
+ var WorkspaceBillingEndpoint = class {
12730
+ constructor(requestExecutor) {
12731
+ this.requestExecutor = requestExecutor;
12732
+ }
12733
+ creditsSpend(wsId, body) {
12734
+ return this.requestExecutor.json(`/workspaces/${wsId}/billing/credits/spend`, DTOBillingCreditsSpendResponse, {
12735
+ body,
12736
+ method: "POST"
12737
+ });
12738
+ }
12739
+ creditsCheck(wsId) {
12740
+ return this.requestExecutor.json(
12741
+ `/workspaces/${wsId}/billing/credits/check`,
12742
+ DTOBillingCreditsCheckIfCanSpendResponse
12743
+ );
12744
+ }
12745
+ };
12746
+
12728
12747
  // src/api/endpoints/workspaces/chat-threads.ts
12729
12748
  import { z as z353 } from "zod";
12730
12749
  var WorkspaceChatThreadsEndpoint = class {
@@ -12915,27 +12934,6 @@ var WorkspaceSubscriptionEndpoint = class {
12915
12934
 
12916
12935
  // src/api/endpoints/workspaces/workspaces.ts
12917
12936
  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
12937
  var WorkspacesEndpoint = class {
12940
12938
  constructor(requestExecutor) {
12941
12939
  this.requestExecutor = requestExecutor;
@@ -20460,6 +20458,7 @@ export {
20460
20458
  VersionRoomBaseYDoc,
20461
20459
  VersionSQSPayload,
20462
20460
  VersionStatsEndpoint,
20461
+ WorkspaceBillingEndpoint,
20463
20462
  WorkspaceChatThreadsEndpoint,
20464
20463
  WorkspaceConfigurationPayload,
20465
20464
  WorkspaceIntegrationsEndpoint,