@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.cjs
CHANGED
|
@@ -33420,7 +33420,7 @@ function createGatewayClient(baseUrl) {
|
|
|
33420
33420
|
async listFilesSince(owner, cursor, options) {
|
|
33421
33421
|
const params = new URLSearchParams({ user: owner });
|
|
33422
33422
|
if (cursor !== null) {
|
|
33423
|
-
params.set("
|
|
33423
|
+
params.set("cursor", cursor);
|
|
33424
33424
|
}
|
|
33425
33425
|
if (options?.includeDeleted) {
|
|
33426
33426
|
params.set("includeDeleted", "true");
|
|
@@ -33429,10 +33429,12 @@ function createGatewayClient(baseUrl) {
|
|
|
33429
33429
|
if (!res.ok) {
|
|
33430
33430
|
throw new Error(`Gateway error: ${res.status} ${res.statusText}`);
|
|
33431
33431
|
}
|
|
33432
|
-
const
|
|
33432
|
+
const envelope = await res.json();
|
|
33433
|
+
const { pagination } = envelope;
|
|
33434
|
+
const nextCursor = pagination?.hasMore === false ? null : pagination?.nextCursor ?? envelope.data.cursor ?? null;
|
|
33433
33435
|
return {
|
|
33434
|
-
files: data.files.map(normalizeFileRecord),
|
|
33435
|
-
cursor:
|
|
33436
|
+
files: envelope.data.files.map(normalizeFileRecord),
|
|
33437
|
+
cursor: nextCursor
|
|
33436
33438
|
};
|
|
33437
33439
|
},
|
|
33438
33440
|
async getSchema(schemaId) {
|