@opendatalabs/vana-sdk 3.3.0 → 3.4.0

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.
@@ -33356,7 +33356,8 @@ function createGatewayClient(baseUrl) {
33356
33356
  owner: record.owner ?? record.ownerAddress ?? "",
33357
33357
  url: record.url,
33358
33358
  schemaId: record.schemaId,
33359
- createdAt: record.createdAt ?? record.addedAt ?? ""
33359
+ createdAt: record.createdAt ?? record.addedAt ?? "",
33360
+ deletedAt: record.deletedAt ?? null
33360
33361
  };
33361
33362
  }
33362
33363
  function getMutationId(body, key) {
@@ -33416,11 +33417,14 @@ function createGatewayClient(baseUrl) {
33416
33417
  }
33417
33418
  return normalizeFileRecord(await unwrapEnvelope(res));
33418
33419
  },
33419
- async listFilesSince(owner, cursor) {
33420
+ async listFilesSince(owner, cursor, options) {
33420
33421
  const params = new URLSearchParams({ user: owner });
33421
33422
  if (cursor !== null) {
33422
33423
  params.set("since", cursor);
33423
33424
  }
33425
+ if (options?.includeDeleted) {
33426
+ params.set("includeDeleted", "true");
33427
+ }
33424
33428
  const res = await fetch(`${base}/v1/files?${params.toString()}`);
33425
33429
  if (!res.ok) {
33426
33430
  throw new Error(`Gateway error: ${res.status} ${res.statusText}`);