@opendatalabs/vana-sdk 3.4.0 → 3.4.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/index.browser.js +6 -4
- package/dist/index.browser.js.map +2 -2
- package/dist/index.node.cjs +6 -4
- package/dist/index.node.cjs.map +2 -2
- package/dist/index.node.js +6 -4
- package/dist/index.node.js.map +2 -2
- package/dist/protocol/gateway.cjs +6 -4
- package/dist/protocol/gateway.cjs.map +1 -1
- package/dist/protocol/gateway.d.ts +16 -0
- package/dist/protocol/gateway.js +6 -4
- package/dist/protocol/gateway.js.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -32657,7 +32657,7 @@ function createGatewayClient(baseUrl) {
|
|
|
32657
32657
|
async listFilesSince(owner, cursor, options) {
|
|
32658
32658
|
const params = new URLSearchParams({ user: owner });
|
|
32659
32659
|
if (cursor !== null) {
|
|
32660
|
-
params.set("
|
|
32660
|
+
params.set("cursor", cursor);
|
|
32661
32661
|
}
|
|
32662
32662
|
if (options?.includeDeleted) {
|
|
32663
32663
|
params.set("includeDeleted", "true");
|
|
@@ -32666,10 +32666,12 @@ function createGatewayClient(baseUrl) {
|
|
|
32666
32666
|
if (!res.ok) {
|
|
32667
32667
|
throw new Error(`Gateway error: ${res.status} ${res.statusText}`);
|
|
32668
32668
|
}
|
|
32669
|
-
const
|
|
32669
|
+
const envelope = await res.json();
|
|
32670
|
+
const { pagination } = envelope;
|
|
32671
|
+
const nextCursor = pagination?.hasMore === false ? null : pagination?.nextCursor ?? envelope.data.cursor ?? null;
|
|
32670
32672
|
return {
|
|
32671
|
-
files: data.files.map(normalizeFileRecord),
|
|
32672
|
-
cursor:
|
|
32673
|
+
files: envelope.data.files.map(normalizeFileRecord),
|
|
32674
|
+
cursor: nextCursor
|
|
32673
32675
|
};
|
|
32674
32676
|
},
|
|
32675
32677
|
async getSchema(schemaId) {
|