@sanity/client 6.2.0 → 6.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.
@@ -1461,12 +1461,10 @@ class ObservableProjectsClient {
1461
1461
  __privateSet$2(this, _client$1, client);
1462
1462
  __privateSet$2(this, _httpRequest$2, httpRequest);
1463
1463
  }
1464
- /**
1465
- * Fetch a list of projects the authenticated user has access to
1466
- */
1467
- list() {
1464
+ list(options) {
1465
+ const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
1468
1466
  return _request(__privateGet$2(this, _client$1), __privateGet$2(this, _httpRequest$2), {
1469
- uri: "/projects"
1467
+ uri
1470
1468
  });
1471
1469
  }
1472
1470
  /**
@@ -1489,12 +1487,10 @@ class ProjectsClient {
1489
1487
  __privateSet$2(this, _client2$1, client);
1490
1488
  __privateSet$2(this, _httpRequest2$2, httpRequest);
1491
1489
  }
1492
- /**
1493
- * Fetch a list of projects the authenticated user has access to
1494
- */
1495
- list() {
1490
+ list(options) {
1491
+ const uri = (options == null ? void 0 : options.includeMembers) === false ? "/projects?includeMembers=false" : "/projects";
1496
1492
  return rxjs.lastValueFrom(_request(__privateGet$2(this, _client2$1), __privateGet$2(this, _httpRequest2$2), {
1497
- uri: "/projects"
1493
+ uri
1498
1494
  }));
1499
1495
  }
1500
1496
  /**