@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.
@@ -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("since", cursor);
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 data = await unwrapEnvelope(res);
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: data.cursor
33436
+ files: envelope.data.files.map(normalizeFileRecord),
33437
+ cursor: nextCursor
33436
33438
  };
33437
33439
  },
33438
33440
  async getSchema(schemaId) {