@sanity/client 6.28.3-instruct.3 → 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.
- package/dist/index.browser.d.cts +40 -0
- package/dist/index.browser.d.ts +40 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +1 -1
- package/dist/stega.browser.d.cts +40 -0
- package/dist/stega.browser.d.ts +40 -0
- package/dist/stega.d.cts +40 -0
- package/dist/stega.d.ts +40 -0
- package/package.json +1 -1
- package/src/instruct/types.ts +43 -0
package/dist/index.browser.d.cts
CHANGED
|
@@ -1074,6 +1074,46 @@ declare interface InstructRequestBase {
|
|
|
1074
1074
|
hidden: boolean
|
|
1075
1075
|
}[]
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1079
|
+
* Otherwise, such<> fields will be ignored.
|
|
1080
|
+
*/
|
|
1081
|
+
localeSettings?: {
|
|
1082
|
+
/**
|
|
1083
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1084
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1085
|
+
*
|
|
1086
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1087
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1088
|
+
*
|
|
1089
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1090
|
+
*/
|
|
1091
|
+
locale: string
|
|
1092
|
+
/**
|
|
1093
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1094
|
+
* date expressions to a specific point in time. Examples include
|
|
1095
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1096
|
+
*
|
|
1097
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1098
|
+
* based on the user's local time.
|
|
1099
|
+
*
|
|
1100
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1101
|
+
*/
|
|
1102
|
+
timeZone: string
|
|
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
|
|
1077
1117
|
}
|
|
1078
1118
|
|
|
1079
1119
|
/** @beta */
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1074,6 +1074,46 @@ declare interface InstructRequestBase {
|
|
|
1074
1074
|
hidden: boolean
|
|
1075
1075
|
}[]
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1079
|
+
* Otherwise, such<> fields will be ignored.
|
|
1080
|
+
*/
|
|
1081
|
+
localeSettings?: {
|
|
1082
|
+
/**
|
|
1083
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1084
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1085
|
+
*
|
|
1086
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1087
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1088
|
+
*
|
|
1089
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1090
|
+
*/
|
|
1091
|
+
locale: string
|
|
1092
|
+
/**
|
|
1093
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1094
|
+
* date expressions to a specific point in time. Examples include
|
|
1095
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1096
|
+
*
|
|
1097
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1098
|
+
* based on the user's local time.
|
|
1099
|
+
*
|
|
1100
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1101
|
+
*/
|
|
1102
|
+
timeZone: string
|
|
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
|
|
1077
1117
|
}
|
|
1078
1118
|
|
|
1079
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.
|
|
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
|
@@ -1074,6 +1074,46 @@ declare interface InstructRequestBase {
|
|
|
1074
1074
|
hidden: boolean
|
|
1075
1075
|
}[]
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1079
|
+
* Otherwise, such<> fields will be ignored.
|
|
1080
|
+
*/
|
|
1081
|
+
localeSettings?: {
|
|
1082
|
+
/**
|
|
1083
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1084
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1085
|
+
*
|
|
1086
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1087
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1088
|
+
*
|
|
1089
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1090
|
+
*/
|
|
1091
|
+
locale: string
|
|
1092
|
+
/**
|
|
1093
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1094
|
+
* date expressions to a specific point in time. Examples include
|
|
1095
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1096
|
+
*
|
|
1097
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1098
|
+
* based on the user's local time.
|
|
1099
|
+
*
|
|
1100
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1101
|
+
*/
|
|
1102
|
+
timeZone: string
|
|
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
|
|
1077
1117
|
}
|
|
1078
1118
|
|
|
1079
1119
|
/** @beta */
|
package/dist/index.d.ts
CHANGED
|
@@ -1074,6 +1074,46 @@ declare interface InstructRequestBase {
|
|
|
1074
1074
|
hidden: boolean
|
|
1075
1075
|
}[]
|
|
1076
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1079
|
+
* Otherwise, such<> fields will be ignored.
|
|
1080
|
+
*/
|
|
1081
|
+
localeSettings?: {
|
|
1082
|
+
/**
|
|
1083
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1084
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1085
|
+
*
|
|
1086
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1087
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1088
|
+
*
|
|
1089
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1090
|
+
*/
|
|
1091
|
+
locale: string
|
|
1092
|
+
/**
|
|
1093
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1094
|
+
* date expressions to a specific point in time. Examples include
|
|
1095
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1096
|
+
*
|
|
1097
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1098
|
+
* based on the user's local time.
|
|
1099
|
+
*
|
|
1100
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1101
|
+
*/
|
|
1102
|
+
timeZone: string
|
|
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
|
|
1077
1117
|
}
|
|
1078
1118
|
|
|
1079
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.
|
|
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}` }),
|
package/dist/stega.browser.d.cts
CHANGED
|
@@ -1237,6 +1237,46 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such<> fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
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
|
|
1240
1280
|
}
|
|
1241
1281
|
|
|
1242
1282
|
/** @beta */
|
package/dist/stega.browser.d.ts
CHANGED
|
@@ -1237,6 +1237,46 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such<> fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
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
|
|
1240
1280
|
}
|
|
1241
1281
|
|
|
1242
1282
|
/** @beta */
|
package/dist/stega.d.cts
CHANGED
|
@@ -1237,6 +1237,46 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such<> fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
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
|
|
1240
1280
|
}
|
|
1241
1281
|
|
|
1242
1282
|
/** @beta */
|
package/dist/stega.d.ts
CHANGED
|
@@ -1237,6 +1237,46 @@ declare interface InstructRequestBase {
|
|
|
1237
1237
|
hidden: boolean
|
|
1238
1238
|
}[]
|
|
1239
1239
|
}
|
|
1240
|
+
/**
|
|
1241
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
1242
|
+
* Otherwise, such<> fields will be ignored.
|
|
1243
|
+
*/
|
|
1244
|
+
localeSettings?: {
|
|
1245
|
+
/**
|
|
1246
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
1247
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
1248
|
+
*
|
|
1249
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
1250
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
1251
|
+
*
|
|
1252
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
1253
|
+
*/
|
|
1254
|
+
locale: string
|
|
1255
|
+
/**
|
|
1256
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
1257
|
+
* date expressions to a specific point in time. Examples include
|
|
1258
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
1259
|
+
*
|
|
1260
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
1261
|
+
* based on the user's local time.
|
|
1262
|
+
*
|
|
1263
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
1264
|
+
*/
|
|
1265
|
+
timeZone: string
|
|
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
|
|
1240
1280
|
}
|
|
1241
1281
|
|
|
1242
1282
|
/** @beta */
|
package/package.json
CHANGED
package/src/instruct/types.ts
CHANGED
|
@@ -126,6 +126,49 @@ interface InstructRequestBase {
|
|
|
126
126
|
hidden: boolean
|
|
127
127
|
}[]
|
|
128
128
|
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* When localeSettings is provided on the request, instruct can write to date and datetime fields.
|
|
132
|
+
* Otherwise, such<> fields will be ignored.
|
|
133
|
+
*/
|
|
134
|
+
localeSettings?: {
|
|
135
|
+
/**
|
|
136
|
+
* A valid Unicode BCP 47 locale identifier used to interpret and format
|
|
137
|
+
* natural language inputs and date output. Examples include "en-US", "fr-FR", or "ja-JP".
|
|
138
|
+
*
|
|
139
|
+
* This affects how phrases like "next Friday" or "in two weeks" are parsed,
|
|
140
|
+
* and how resulting dates are presented (e.g., 12-hour vs 24-hour format).
|
|
141
|
+
*
|
|
142
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#getcanonicalocales
|
|
143
|
+
*/
|
|
144
|
+
locale: string
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* A valid IANA time zone identifier used to resolve relative and absolute
|
|
148
|
+
* date expressions to a specific point in time. Examples include
|
|
149
|
+
* "America/New_York", "Europe/Paris", or "Asia/Tokyo".
|
|
150
|
+
*
|
|
151
|
+
* This ensures phrases like "tomorrow at 9am" are interpreted correctly
|
|
152
|
+
* based on the user's local time.
|
|
153
|
+
*
|
|
154
|
+
* @see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
155
|
+
*/
|
|
156
|
+
timeZone: string
|
|
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
|
|
129
172
|
}
|
|
130
173
|
|
|
131
174
|
interface Sync {
|