@sanity/client 6.28.3-instruct.4 → 6.28.3-instruct.5

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.
@@ -1076,7 +1076,7 @@ declare interface InstructRequestBase {
1076
1076
  }
1077
1077
  /**
1078
1078
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1079
- * Otherwise, such fields will be ignored.
1079
+ * Otherwise, such<> fields will be ignored.
1080
1080
  */
1081
1081
  localeSettings?: {
1082
1082
  /**
@@ -1101,6 +1101,19 @@ declare interface InstructRequestBase {
1101
1101
  */
1102
1102
  timeZone: string
1103
1103
  }
1104
+ /**
1105
+ * The max depth for document paths instruction can write to.
1106
+ *
1107
+ * Depth is based on field path segments:
1108
+ * - `title` has depth 1
1109
+ * - `array[_key="no"].title` has depth 3
1110
+ *
1111
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1112
+ * negative impact on performance; both runtime and quality of responses.
1113
+ *
1114
+ * Default: 4
1115
+ */
1116
+ maxPathDepth?: number
1104
1117
  }
1105
1118
 
1106
1119
  /** @beta */
@@ -1076,7 +1076,7 @@ declare interface InstructRequestBase {
1076
1076
  }
1077
1077
  /**
1078
1078
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1079
- * Otherwise, such fields will be ignored.
1079
+ * Otherwise, such<> fields will be ignored.
1080
1080
  */
1081
1081
  localeSettings?: {
1082
1082
  /**
@@ -1101,6 +1101,19 @@ declare interface InstructRequestBase {
1101
1101
  */
1102
1102
  timeZone: string
1103
1103
  }
1104
+ /**
1105
+ * The max depth for document paths instruction can write to.
1106
+ *
1107
+ * Depth is based on field path segments:
1108
+ * - `title` has depth 1
1109
+ * - `array[_key="no"].title` has depth 3
1110
+ *
1111
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1112
+ * negative impact on performance; both runtime and quality of responses.
1113
+ *
1114
+ * Default: 4
1115
+ */
1116
+ maxPathDepth?: number
1104
1117
  }
1105
1118
 
1106
1119
  /** @beta */
package/dist/index.cjs CHANGED
@@ -1550,7 +1550,7 @@ function defineDeprecatedCreateClient(createClient2) {
1550
1550
  return config.printNoDefaultExport(), createClient2(config$1);
1551
1551
  };
1552
1552
  }
1553
- var name = "@sanity/client", version = "6.28.3-instruct.4";
1553
+ var name = "@sanity/client", version = "6.28.3-instruct.5";
1554
1554
  const middleware = [
1555
1555
  middleware$1.debug({ verbose: !0, namespace: "sanity:client" }),
1556
1556
  middleware$1.headers({ "User-Agent": `${name} ${version}` }),
package/dist/index.d.cts CHANGED
@@ -1076,7 +1076,7 @@ declare interface InstructRequestBase {
1076
1076
  }
1077
1077
  /**
1078
1078
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1079
- * Otherwise, such fields will be ignored.
1079
+ * Otherwise, such<> fields will be ignored.
1080
1080
  */
1081
1081
  localeSettings?: {
1082
1082
  /**
@@ -1101,6 +1101,19 @@ declare interface InstructRequestBase {
1101
1101
  */
1102
1102
  timeZone: string
1103
1103
  }
1104
+ /**
1105
+ * The max depth for document paths instruction can write to.
1106
+ *
1107
+ * Depth is based on field path segments:
1108
+ * - `title` has depth 1
1109
+ * - `array[_key="no"].title` has depth 3
1110
+ *
1111
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1112
+ * negative impact on performance; both runtime and quality of responses.
1113
+ *
1114
+ * Default: 4
1115
+ */
1116
+ maxPathDepth?: number
1104
1117
  }
1105
1118
 
1106
1119
  /** @beta */
package/dist/index.d.ts CHANGED
@@ -1076,7 +1076,7 @@ declare interface InstructRequestBase {
1076
1076
  }
1077
1077
  /**
1078
1078
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1079
- * Otherwise, such fields will be ignored.
1079
+ * Otherwise, such<> fields will be ignored.
1080
1080
  */
1081
1081
  localeSettings?: {
1082
1082
  /**
@@ -1101,6 +1101,19 @@ declare interface InstructRequestBase {
1101
1101
  */
1102
1102
  timeZone: string
1103
1103
  }
1104
+ /**
1105
+ * The max depth for document paths instruction can write to.
1106
+ *
1107
+ * Depth is based on field path segments:
1108
+ * - `title` has depth 1
1109
+ * - `array[_key="no"].title` has depth 3
1110
+ *
1111
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1112
+ * negative impact on performance; both runtime and quality of responses.
1113
+ *
1114
+ * Default: 4
1115
+ */
1116
+ maxPathDepth?: number
1104
1117
  }
1105
1118
 
1106
1119
  /** @beta */
package/dist/index.js CHANGED
@@ -1533,7 +1533,7 @@ function defineDeprecatedCreateClient(createClient2) {
1533
1533
  return printNoDefaultExport(), createClient2(config);
1534
1534
  };
1535
1535
  }
1536
- var name = "@sanity/client", version = "6.28.3-instruct.4";
1536
+ var name = "@sanity/client", version = "6.28.3-instruct.5";
1537
1537
  const middleware = [
1538
1538
  debug({ verbose: !0, namespace: "sanity:client" }),
1539
1539
  headers({ "User-Agent": `${name} ${version}` }),
@@ -1239,7 +1239,7 @@ declare interface InstructRequestBase {
1239
1239
  }
1240
1240
  /**
1241
1241
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1242
- * Otherwise, such fields will be ignored.
1242
+ * Otherwise, such<> fields will be ignored.
1243
1243
  */
1244
1244
  localeSettings?: {
1245
1245
  /**
@@ -1264,6 +1264,19 @@ declare interface InstructRequestBase {
1264
1264
  */
1265
1265
  timeZone: string
1266
1266
  }
1267
+ /**
1268
+ * The max depth for document paths instruction can write to.
1269
+ *
1270
+ * Depth is based on field path segments:
1271
+ * - `title` has depth 1
1272
+ * - `array[_key="no"].title` has depth 3
1273
+ *
1274
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1275
+ * negative impact on performance; both runtime and quality of responses.
1276
+ *
1277
+ * Default: 4
1278
+ */
1279
+ maxPathDepth?: number
1267
1280
  }
1268
1281
 
1269
1282
  /** @beta */
@@ -1239,7 +1239,7 @@ declare interface InstructRequestBase {
1239
1239
  }
1240
1240
  /**
1241
1241
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1242
- * Otherwise, such fields will be ignored.
1242
+ * Otherwise, such<> fields will be ignored.
1243
1243
  */
1244
1244
  localeSettings?: {
1245
1245
  /**
@@ -1264,6 +1264,19 @@ declare interface InstructRequestBase {
1264
1264
  */
1265
1265
  timeZone: string
1266
1266
  }
1267
+ /**
1268
+ * The max depth for document paths instruction can write to.
1269
+ *
1270
+ * Depth is based on field path segments:
1271
+ * - `title` has depth 1
1272
+ * - `array[_key="no"].title` has depth 3
1273
+ *
1274
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1275
+ * negative impact on performance; both runtime and quality of responses.
1276
+ *
1277
+ * Default: 4
1278
+ */
1279
+ maxPathDepth?: number
1267
1280
  }
1268
1281
 
1269
1282
  /** @beta */
package/dist/stega.d.cts CHANGED
@@ -1239,7 +1239,7 @@ declare interface InstructRequestBase {
1239
1239
  }
1240
1240
  /**
1241
1241
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1242
- * Otherwise, such fields will be ignored.
1242
+ * Otherwise, such<> fields will be ignored.
1243
1243
  */
1244
1244
  localeSettings?: {
1245
1245
  /**
@@ -1264,6 +1264,19 @@ declare interface InstructRequestBase {
1264
1264
  */
1265
1265
  timeZone: string
1266
1266
  }
1267
+ /**
1268
+ * The max depth for document paths instruction can write to.
1269
+ *
1270
+ * Depth is based on field path segments:
1271
+ * - `title` has depth 1
1272
+ * - `array[_key="no"].title` has depth 3
1273
+ *
1274
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1275
+ * negative impact on performance; both runtime and quality of responses.
1276
+ *
1277
+ * Default: 4
1278
+ */
1279
+ maxPathDepth?: number
1267
1280
  }
1268
1281
 
1269
1282
  /** @beta */
package/dist/stega.d.ts CHANGED
@@ -1239,7 +1239,7 @@ declare interface InstructRequestBase {
1239
1239
  }
1240
1240
  /**
1241
1241
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
1242
- * Otherwise, such fields will be ignored.
1242
+ * Otherwise, such<> fields will be ignored.
1243
1243
  */
1244
1244
  localeSettings?: {
1245
1245
  /**
@@ -1264,6 +1264,19 @@ declare interface InstructRequestBase {
1264
1264
  */
1265
1265
  timeZone: string
1266
1266
  }
1267
+ /**
1268
+ * The max depth for document paths instruction can write to.
1269
+ *
1270
+ * Depth is based on field path segments:
1271
+ * - `title` has depth 1
1272
+ * - `array[_key="no"].title` has depth 3
1273
+ *
1274
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
1275
+ * negative impact on performance; both runtime and quality of responses.
1276
+ *
1277
+ * Default: 4
1278
+ */
1279
+ maxPathDepth?: number
1267
1280
  }
1268
1281
 
1269
1282
  /** @beta */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "6.28.3-instruct.4",
3
+ "version": "6.28.3-instruct.5",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
@@ -129,7 +129,7 @@ interface InstructRequestBase {
129
129
 
130
130
  /**
131
131
  * When localeSettings is provided on the request, instruct can write to date and datetime fields.
132
- * Otherwise, such fields will be ignored.
132
+ * Otherwise, such<> fields will be ignored.
133
133
  */
134
134
  localeSettings?: {
135
135
  /**
@@ -155,6 +155,20 @@ interface InstructRequestBase {
155
155
  */
156
156
  timeZone: string
157
157
  }
158
+
159
+ /**
160
+ * The max depth for document paths instruction can write to.
161
+ *
162
+ * Depth is based on field path segments:
163
+ * - `title` has depth 1
164
+ * - `array[_key="no"].title` has depth 3
165
+ *
166
+ * Be careful not to set this too high in studios with recursive document schemas, as it could have
167
+ * negative impact on performance; both runtime and quality of responses.
168
+ *
169
+ * Default: 4
170
+ */
171
+ maxPathDepth?: number
158
172
  }
159
173
 
160
174
  interface Sync {