@opendatalabs/vana-sdk 3.9.0 → 3.10.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.browser.d.ts +1 -1
- package/dist/index.browser.js +8 -0
- package/dist/index.browser.js.map +2 -2
- package/dist/index.node.cjs +8 -0
- package/dist/index.node.cjs.map +2 -2
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.js +8 -0
- package/dist/index.node.js.map +2 -2
- package/dist/protocol/gateway.cjs +8 -0
- package/dist/protocol/gateway.cjs.map +1 -1
- package/dist/protocol/gateway.d.ts +24 -0
- package/dist/protocol/gateway.js +8 -0
- package/dist/protocol/gateway.js.map +1 -1
- package/package.json +1 -1
package/dist/index.node.cjs
CHANGED
|
@@ -33707,6 +33707,14 @@ function createGatewayClient(baseUrl) {
|
|
|
33707
33707
|
}
|
|
33708
33708
|
return unwrapEnvelope(res);
|
|
33709
33709
|
},
|
|
33710
|
+
async listServersByOwner(owner) {
|
|
33711
|
+
const params = new URLSearchParams({ owner });
|
|
33712
|
+
const res = await fetch(`${base}/v1/servers?${params.toString()}`);
|
|
33713
|
+
if (!res.ok) {
|
|
33714
|
+
throw new Error(`Gateway error: ${res.status} ${res.statusText}`);
|
|
33715
|
+
}
|
|
33716
|
+
return await res.json();
|
|
33717
|
+
},
|
|
33710
33718
|
async getDataPoint(dataPointId) {
|
|
33711
33719
|
const res = await fetch(`${base}/v1/data/${dataPointId}`);
|
|
33712
33720
|
if (res.status === 404) return null;
|