@sanity/client 6.15.13 → 6.15.15-canary.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.
package/dist/csm.d.cts CHANGED
@@ -1,5 +1,9 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMap as ContentSourceMap_2} from '@sanity/client'
4
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
5
+ import type {SanityDocument as SanityDocument_2} from '@sanity/client'
6
+
3
7
  /**
4
8
  * Used to tag types that is set to `any` as a temporary measure, but should be replaced with proper typings in the future
5
9
  * @internal
@@ -27,9 +31,9 @@ export declare function applySourceDocuments<Result = unknown>(
27
31
  export declare type ApplySourceDocumentsUpdateFunction = <T = unknown>(
28
32
  changedValue: T,
29
33
  context: {
30
- cachedDocument: Partial<SanityDocument>
34
+ cachedDocument: Partial<SanityDocument_2>
31
35
  previousValue: T
32
- sourceDocument: ContentSourceMapDocuments[number]
36
+ sourceDocument: ContentSourceMapDocuments_2[number]
33
37
  sourcePath: ContentSourceMapParsedPath
34
38
  },
35
39
  ) => T
@@ -232,7 +236,7 @@ export declare function resolveEditInfo(
232
236
  /** @alpha */
233
237
  export declare interface ResolveEditInfoOptions {
234
238
  studioUrl: StudioUrl | ResolveStudioUrl
235
- resultSourceMap: ContentSourceMap
239
+ resultSourceMap: ContentSourceMap_2
236
240
  resultPath: ContentSourceMapParsedPath
237
241
  }
238
242
 
@@ -262,7 +266,7 @@ export declare function resolveMapping(
262
266
 
263
267
  /** @alpha */
264
268
  export declare type ResolveStudioUrl = (
265
- sourceDocument: ContentSourceMapDocuments[number],
269
+ sourceDocument: ContentSourceMapDocuments_2[number],
266
270
  ) => StudioUrl
267
271
 
268
272
  /** @internal */
package/dist/csm.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMap as ContentSourceMap_2} from '@sanity/client'
4
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
5
+ import type {SanityDocument as SanityDocument_2} from '@sanity/client'
6
+
3
7
  /**
4
8
  * Used to tag types that is set to `any` as a temporary measure, but should be replaced with proper typings in the future
5
9
  * @internal
@@ -27,9 +31,9 @@ export declare function applySourceDocuments<Result = unknown>(
27
31
  export declare type ApplySourceDocumentsUpdateFunction = <T = unknown>(
28
32
  changedValue: T,
29
33
  context: {
30
- cachedDocument: Partial<SanityDocument>
34
+ cachedDocument: Partial<SanityDocument_2>
31
35
  previousValue: T
32
- sourceDocument: ContentSourceMapDocuments[number]
36
+ sourceDocument: ContentSourceMapDocuments_2[number]
33
37
  sourcePath: ContentSourceMapParsedPath
34
38
  },
35
39
  ) => T
@@ -232,7 +236,7 @@ export declare function resolveEditInfo(
232
236
  /** @alpha */
233
237
  export declare interface ResolveEditInfoOptions {
234
238
  studioUrl: StudioUrl | ResolveStudioUrl
235
- resultSourceMap: ContentSourceMap
239
+ resultSourceMap: ContentSourceMap_2
236
240
  resultPath: ContentSourceMapParsedPath
237
241
  }
238
242
 
@@ -262,7 +266,7 @@ export declare function resolveMapping(
262
266
 
263
267
  /** @alpha */
264
268
  export declare type ResolveStudioUrl = (
265
- sourceDocument: ContentSourceMapDocuments[number],
269
+ sourceDocument: ContentSourceMapDocuments_2[number],
266
270
  ) => StudioUrl
267
271
 
268
272
  /** @internal */
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1896,7 +1897,7 @@ export declare interface RequestOptions {
1896
1897
 
1897
1898
  /** @alpha */
1898
1899
  export declare type ResolveStudioUrl = (
1899
- sourceDocument: ContentSourceMapDocuments[number],
1900
+ sourceDocument: ContentSourceMapDocuments_2[number],
1900
1901
  ) => StudioUrl
1901
1902
 
1902
1903
  /** @public */
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1896,7 +1897,7 @@ export declare interface RequestOptions {
1896
1897
 
1897
1898
  /** @alpha */
1898
1899
  export declare type ResolveStudioUrl = (
1899
- sourceDocument: ContentSourceMapDocuments[number],
1900
+ sourceDocument: ContentSourceMapDocuments_2[number],
1900
1901
  ) => StudioUrl
1901
1902
 
1902
1903
  /** @public */
package/dist/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1896,7 +1897,7 @@ export declare interface RequestOptions {
1896
1897
 
1897
1898
  /** @alpha */
1898
1899
  export declare type ResolveStudioUrl = (
1899
- sourceDocument: ContentSourceMapDocuments[number],
1900
+ sourceDocument: ContentSourceMapDocuments_2[number],
1900
1901
  ) => StudioUrl
1901
1902
 
1902
1903
  /** @public */
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1896,7 +1897,7 @@ export declare interface RequestOptions {
1896
1897
 
1897
1898
  /** @alpha */
1898
1899
  export declare type ResolveStudioUrl = (
1899
- sourceDocument: ContentSourceMapDocuments[number],
1900
+ sourceDocument: ContentSourceMapDocuments_2[number],
1900
1901
  ) => StudioUrl
1901
1902
 
1902
1903
  /** @public */
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1931,7 +1932,7 @@ export declare interface RequestOptions {
1931
1932
 
1932
1933
  /** @alpha */
1933
1934
  export declare type ResolveStudioUrl = (
1934
- sourceDocument: ContentSourceMapDocuments[number],
1935
+ sourceDocument: ContentSourceMapDocuments_2[number],
1935
1936
  ) => StudioUrl
1936
1937
 
1937
1938
  /** @public */
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1931,7 +1932,7 @@ export declare interface RequestOptions {
1931
1932
 
1932
1933
  /** @alpha */
1933
1934
  export declare type ResolveStudioUrl = (
1934
- sourceDocument: ContentSourceMapDocuments[number],
1935
+ sourceDocument: ContentSourceMapDocuments_2[number],
1935
1936
  ) => StudioUrl
1936
1937
 
1937
1938
  /** @public */
package/dist/stega.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1931,7 +1932,7 @@ export declare interface RequestOptions {
1931
1932
 
1932
1933
  /** @alpha */
1933
1934
  export declare type ResolveStudioUrl = (
1934
- sourceDocument: ContentSourceMapDocuments[number],
1935
+ sourceDocument: ContentSourceMapDocuments_2[number],
1935
1936
  ) => StudioUrl
1936
1937
 
1937
1938
  /** @public */
package/dist/stega.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /// <reference types="node" />
2
2
 
3
+ import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client'
3
4
  import {Observable} from 'rxjs'
4
5
  import {Requester} from 'get-it'
5
6
  import {adapter as unstable__adapter} from 'get-it'
@@ -1931,7 +1932,7 @@ export declare interface RequestOptions {
1931
1932
 
1932
1933
  /** @alpha */
1933
1934
  export declare type ResolveStudioUrl = (
1934
- sourceDocument: ContentSourceMapDocuments[number],
1935
+ sourceDocument: ContentSourceMapDocuments_2[number],
1935
1936
  ) => StudioUrl
1936
1937
 
1937
1938
  /** @public */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.15.13",
3
+ "version": "6.15.15-canary.0",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -122,8 +122,7 @@
122
122
  },
123
123
  "dependencies": {
124
124
  "@sanity/eventsource": "^5.0.0",
125
- "@vercel/stega": "0.1.0",
126
- "get-it": "^8.4.21",
125
+ "get-it": "^8.4.23",
127
126
  "rxjs": "^7.0.0"
128
127
  },
129
128
  "devDependencies": {
@@ -131,30 +130,31 @@
131
130
  "@edge-runtime/vm": "^3.2.0",
132
131
  "@rollup/plugin-commonjs": "^25.0.7",
133
132
  "@rollup/plugin-node-resolve": "^15.2.3",
134
- "@sanity/pkg-utils": "^6.4.1",
133
+ "@sanity/pkg-utils": "^6.6.6",
135
134
  "@types/json-diff": "^1.0.3",
136
135
  "@types/node": "^20.8.8",
137
- "@typescript-eslint/eslint-plugin": "^7.6.0",
138
- "@typescript-eslint/parser": "^7.6.0",
139
- "@vitest/coverage-v8": "1.4.0",
136
+ "@typescript-eslint/eslint-plugin": "^7.7.0",
137
+ "@typescript-eslint/parser": "^7.7.0",
138
+ "@vercel/stega": "0.1.0",
139
+ "@vitest/coverage-v8": "1.5.0",
140
140
  "eslint": "^8.57.0",
141
141
  "eslint-config-prettier": "^9.1.0",
142
142
  "eslint-plugin-prettier": "^5.1.3",
143
- "eslint-plugin-simple-import-sort": "^12.0.0",
143
+ "eslint-plugin-simple-import-sort": "^12.1.0",
144
144
  "faucet": "^0.0.4",
145
145
  "happy-dom": "^12.10.3",
146
146
  "json-diff": "^1.0.6",
147
147
  "ls-engines": "^0.9.1",
148
- "next": "^14.1.4",
148
+ "next": "^14.2.1",
149
149
  "nock": "^13.5.4",
150
150
  "prettier": "^3.2.5",
151
- "prettier-plugin-packagejson": "^2.4.14",
151
+ "prettier-plugin-packagejson": "^2.5.0",
152
152
  "rimraf": "^5.0.1",
153
- "rollup": "^4.14.1",
153
+ "rollup": "^4.14.3",
154
154
  "sse-channel": "^4.0.0",
155
155
  "terser": "^5.30.3",
156
156
  "typescript": "5.4.5",
157
- "vitest": "1.4.0",
157
+ "vitest": "1.5.0",
158
158
  "vitest-github-actions-reporter": "0.11.1"
159
159
  },
160
160
  "engines": {
package/src/csm/types.ts CHANGED
@@ -1,4 +1,5 @@
1
- import type {ContentSourceMap, ContentSourceMapDocuments, SanityDocument} from '../types'
1
+ import type {ContentSourceMap, ContentSourceMapDocuments, SanityDocument} from '@sanity/client'
2
+
2
3
  import {Path} from './studioPath'
3
4
 
4
5
  export type {
@@ -1045,40 +1045,27 @@
1045
1045
  };
1046
1046
  } (browser$3, browser$3.exports));
1047
1047
 
1048
+ const isBuffer = typeof Buffer > "u" ? () => !1 : (obj) => Buffer.isBuffer(obj);
1048
1049
  /*!
1049
1050
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
1050
1051
  *
1051
1052
  * Copyright (c) 2014-2017, Jon Schlinkert.
1052
1053
  * Released under the MIT License.
1053
1054
  */
1054
-
1055
1055
  function isObject(o) {
1056
- return Object.prototype.toString.call(o) === '[object Object]';
1056
+ return Object.prototype.toString.call(o) === "[object Object]";
1057
1057
  }
1058
-
1059
1058
  function isPlainObject$1(o) {
1060
- var ctor,prot;
1061
-
1062
- if (isObject(o) === false) return false;
1063
-
1064
- // If has modified constructor
1065
- ctor = o.constructor;
1066
- if (ctor === undefined) return true;
1067
-
1068
- // If has modified prototype
1069
- prot = ctor.prototype;
1070
- if (isObject(prot) === false) return false;
1071
-
1072
- // If constructor does not have an Object-specific method
1073
- if (prot.hasOwnProperty('isPrototypeOf') === false) {
1074
- return false;
1075
- }
1076
-
1077
- // Most likely a plain Object
1078
- return true;
1079
- }
1080
-
1081
- const isBuffer = typeof Buffer > "u" ? () => !1 : (obj) => Buffer.isBuffer(obj), serializeTypes = ["boolean", "string", "number"];
1059
+ if (isObject(o) === !1)
1060
+ return !1;
1061
+ const ctor = o.constructor;
1062
+ if (ctor === void 0)
1063
+ return !0;
1064
+ const prot = ctor.prototype;
1065
+ return !(isObject(prot) === !1 || // eslint-disable-next-line no-prototype-builtins
1066
+ prot.hasOwnProperty("isPrototypeOf") === !1);
1067
+ }
1068
+ const serializeTypes = ["boolean", "string", "number"];
1082
1069
  function jsonRequest() {
1083
1070
  return {
1084
1071
  processOptions: (options) => {
@@ -2373,16 +2360,17 @@
2373
2360
  return combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));
2374
2361
  }
2375
2362
 
2363
+ var __defProp$3 = Object.defineProperty, __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __publicField$3 = (obj, key, value) => (__defNormalProp$3(obj, typeof key != "symbol" ? key + "" : key, value), value);
2376
2364
  class ClientError extends Error {
2377
2365
  constructor(res) {
2378
2366
  const props = extractErrorProps(res);
2379
- super(props.message), this.statusCode = 400, Object.assign(this, props);
2367
+ super(props.message), __publicField$3(this, "response"), __publicField$3(this, "statusCode", 400), __publicField$3(this, "responseBody"), __publicField$3(this, "details"), Object.assign(this, props);
2380
2368
  }
2381
2369
  }
2382
2370
  class ServerError extends Error {
2383
2371
  constructor(res) {
2384
2372
  const props = extractErrorProps(res);
2385
- super(props.message), this.statusCode = 500, Object.assign(this, props);
2373
+ super(props.message), __publicField$3(this, "response"), __publicField$3(this, "statusCode", 500), __publicField$3(this, "responseBody"), __publicField$3(this, "details"), Object.assign(this, props);
2386
2374
  }
2387
2375
  }
2388
2376
  function extractErrorProps(res) {
@@ -2523,7 +2511,7 @@ ${selectionOpts}`);
2523
2511
  );
2524
2512
  return tag;
2525
2513
  };
2526
- var __accessCheck$6 = (obj, member, msg) => {
2514
+ var __defProp$2 = Object.defineProperty, __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __publicField$2 = (obj, key, value) => (__defNormalProp$2(obj, typeof key != "symbol" ? key + "" : key, value), value), __accessCheck$6 = (obj, member, msg) => {
2527
2515
  if (!member.has(obj))
2528
2516
  throw TypeError("Cannot " + msg);
2529
2517
  }, __privateGet$6 = (obj, member, getter) => (__accessCheck$6(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)), __privateAdd$6 = (obj, member, value) => {
@@ -2533,7 +2521,7 @@ ${selectionOpts}`);
2533
2521
  }, __privateSet$6 = (obj, member, value, setter) => (__accessCheck$6(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
2534
2522
  class BasePatch {
2535
2523
  constructor(selection, operations = {}) {
2536
- this.selection = selection, this.operations = operations;
2524
+ __publicField$2(this, "selection"), __publicField$2(this, "operations"), this.selection = selection, this.operations = operations;
2537
2525
  }
2538
2526
  /**
2539
2527
  * Sets the given attributes to the document. Does NOT merge objects.
@@ -2708,7 +2696,7 @@ ${selectionOpts}`);
2708
2696
  };
2709
2697
  _client2$5 = /* @__PURE__ */ new WeakMap();
2710
2698
  let Patch = _Patch;
2711
- var __accessCheck$5 = (obj, member, msg) => {
2699
+ var __defProp$1 = Object.defineProperty, __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __publicField$1 = (obj, key, value) => (__defNormalProp$1(obj, typeof key != "symbol" ? key + "" : key, value), value), __accessCheck$5 = (obj, member, msg) => {
2712
2700
  if (!member.has(obj))
2713
2701
  throw TypeError("Cannot " + msg);
2714
2702
  }, __privateGet$5 = (obj, member, getter) => (__accessCheck$5(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)), __privateAdd$5 = (obj, member, value) => {
@@ -2719,7 +2707,7 @@ ${selectionOpts}`);
2719
2707
  const defaultMutateOptions = { returnDocuments: !1 };
2720
2708
  class BaseTransaction {
2721
2709
  constructor(operations = [], transactionId) {
2722
- this.operations = operations, this.trxId = transactionId;
2710
+ __publicField$1(this, "operations"), __publicField$1(this, "trxId"), this.operations = operations, this.trxId = transactionId;
2723
2711
  }
2724
2712
  /**
2725
2713
  * Creates a new Sanity document. If `_id` is provided and already exists, the mutation will fail. If no `_id` is given, one will automatically be generated by the database.
@@ -3529,7 +3517,7 @@ ${selectionOpts}`);
3529
3517
  }
3530
3518
  }
3531
3519
  _client2 = /* @__PURE__ */ new WeakMap(), _httpRequest2$1 = /* @__PURE__ */ new WeakMap();
3532
- var __accessCheck = (obj, member, msg) => {
3520
+ var __defProp = Object.defineProperty, __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value, __publicField = (obj, key, value) => (__defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value), value), __accessCheck = (obj, member, msg) => {
3533
3521
  if (!member.has(obj))
3534
3522
  throw TypeError("Cannot " + msg);
3535
3523
  }, __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)), __privateAdd = (obj, member, value) => {
@@ -3539,7 +3527,7 @@ ${selectionOpts}`);
3539
3527
  }, __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value), _clientConfig, _httpRequest;
3540
3528
  const _ObservableSanityClient = class _ObservableSanityClient2 {
3541
3529
  constructor(httpRequest, config = defaultConfig) {
3542
- __privateAdd(this, _clientConfig, void 0), __privateAdd(this, _httpRequest, void 0), this.listen = _listen, this.config(config), __privateSet(this, _httpRequest, httpRequest), this.assets = new ObservableAssetsClient(this, __privateGet(this, _httpRequest)), this.datasets = new ObservableDatasetsClient(this, __privateGet(this, _httpRequest)), this.projects = new ObservableProjectsClient(this, __privateGet(this, _httpRequest)), this.users = new ObservableUsersClient(this, __privateGet(this, _httpRequest));
3530
+ __publicField(this, "assets"), __publicField(this, "datasets"), __publicField(this, "projects"), __publicField(this, "users"), __privateAdd(this, _clientConfig, void 0), __privateAdd(this, _httpRequest, void 0), __publicField(this, "listen", _listen), this.config(config), __privateSet(this, _httpRequest, httpRequest), this.assets = new ObservableAssetsClient(this, __privateGet(this, _httpRequest)), this.datasets = new ObservableDatasetsClient(this, __privateGet(this, _httpRequest)), this.projects = new ObservableProjectsClient(this, __privateGet(this, _httpRequest)), this.users = new ObservableUsersClient(this, __privateGet(this, _httpRequest));
3543
3531
  }
3544
3532
  /**
3545
3533
  * Clone the client - returns a new instance
@@ -3668,7 +3656,7 @@ ${selectionOpts}`);
3668
3656
  var _clientConfig2, _httpRequest2;
3669
3657
  const _SanityClient = class _SanityClient2 {
3670
3658
  constructor(httpRequest, config = defaultConfig) {
3671
- __privateAdd(this, _clientConfig2, void 0), __privateAdd(this, _httpRequest2, void 0), this.listen = _listen, this.config(config), __privateSet(this, _httpRequest2, httpRequest), this.assets = new AssetsClient(this, __privateGet(this, _httpRequest2)), this.datasets = new DatasetsClient(this, __privateGet(this, _httpRequest2)), this.projects = new ProjectsClient(this, __privateGet(this, _httpRequest2)), this.users = new UsersClient(this, __privateGet(this, _httpRequest2)), this.observable = new ObservableSanityClient(httpRequest, config);
3659
+ __publicField(this, "assets"), __publicField(this, "datasets"), __publicField(this, "projects"), __publicField(this, "users"), __publicField(this, "observable"), __privateAdd(this, _clientConfig2, void 0), __privateAdd(this, _httpRequest2, void 0), __publicField(this, "listen", _listen), this.config(config), __privateSet(this, _httpRequest2, httpRequest), this.assets = new AssetsClient(this, __privateGet(this, _httpRequest2)), this.datasets = new DatasetsClient(this, __privateGet(this, _httpRequest2)), this.projects = new ProjectsClient(this, __privateGet(this, _httpRequest2)), this.users = new UsersClient(this, __privateGet(this, _httpRequest2)), this.observable = new ObservableSanityClient(httpRequest, config);
3672
3660
  }
3673
3661
  /**
3674
3662
  * Clone the client - returns a new instance