@dotbots-boutique/server-sdk 0.3.0 → 0.3.1

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/client.js CHANGED
@@ -101,7 +101,7 @@ class DotBotsBackend {
101
101
  }
102
102
  }
103
103
  async charge(featureCode, options) {
104
- const response = await fetch(`${this.getProxyUrl()}/charge`, {
104
+ const response = await fetch(`${this.getProxyUrl()}/payments/charge`, {
105
105
  method: 'POST',
106
106
  headers: this.baseHeaders(),
107
107
  body: JSON.stringify({
@@ -80,7 +80,7 @@ function handleAiCall(store, decodeJwt, getFeatureConfig, processAiCall) {
80
80
  };
81
81
  }
82
82
  // ---------------------------------------------------------------------------
83
- // POST /charge
83
+ // POST /payments/charge
84
84
  // ---------------------------------------------------------------------------
85
85
  function handleCharge(store, decodeJwt, getFeatureConfig, processCharge) {
86
86
  const authenticate = resolveAuth(store, decodeJwt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotbots-boutique/server-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "DotBots Backend SDK — server-side AI calls, payments, and user lookups via the DotBots proxy",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",