@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.
@@ -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("since", cursor);
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 data = await unwrapEnvelope(res);
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: data.cursor
33300
+ files: envelope.data.files.map(normalizeFileRecord),
33301
+ cursor: nextCursor
33300
33302
  };
33301
33303
  },
33302
33304
  async getSchema(schemaId) {