@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.node.js
CHANGED
|
@@ -33284,7 +33284,7 @@ function createGatewayClient(baseUrl) {
|
|
|
33284
33284
|
async listFilesSince(owner, cursor, options) {
|
|
33285
33285
|
const params = new URLSearchParams({ user: owner });
|
|
33286
33286
|
if (cursor !== null) {
|
|
33287
|
-
params.set("
|
|
33287
|
+
params.set("cursor", cursor);
|
|
33288
33288
|
}
|
|
33289
33289
|
if (options?.includeDeleted) {
|
|
33290
33290
|
params.set("includeDeleted", "true");
|
|
@@ -33293,10 +33293,12 @@ function createGatewayClient(baseUrl) {
|
|
|
33293
33293
|
if (!res.ok) {
|
|
33294
33294
|
throw new Error(`Gateway error: ${res.status} ${res.statusText}`);
|
|
33295
33295
|
}
|
|
33296
|
-
const
|
|
33296
|
+
const envelope = await res.json();
|
|
33297
|
+
const { pagination } = envelope;
|
|
33298
|
+
const nextCursor = pagination?.hasMore === false ? null : pagination?.nextCursor ?? envelope.data.cursor ?? null;
|
|
33297
33299
|
return {
|
|
33298
|
-
files: data.files.map(normalizeFileRecord),
|
|
33299
|
-
cursor:
|
|
33300
|
+
files: envelope.data.files.map(normalizeFileRecord),
|
|
33301
|
+
cursor: nextCursor
|
|
33300
33302
|
};
|
|
33301
33303
|
},
|
|
33302
33304
|
async getSchema(schemaId) {
|