@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.
@@ -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("since", cursor);
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 data = await unwrapEnvelope(res);
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: data.cursor
32673
+ files: envelope.data.files.map(normalizeFileRecord),
32674
+ cursor: nextCursor
32673
32675
  };
32674
32676
  },
32675
32677
  async getSchema(schemaId) {