@sanity/client 7.8.1 → 7.8.2
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/README.md +17 -16
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs +29 -2
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +29 -2
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +21 -10
- package/dist/index.browser.d.ts +21 -10
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -10
- package/dist/index.d.ts +6 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +5 -10
- package/dist/stega.browser.d.ts +5 -10
- package/dist/stega.d.cts +5 -10
- package/dist/stega.d.ts +5 -10
- package/package.json +1 -1
- package/src/agent/actions/commonTypes.ts +3 -0
- package/src/agent/actions/prompt.ts +4 -10
- package/src/stega/filterDefault.ts +30 -2
- package/umd/sanityClient.js +29 -2
- package/umd/sanityClient.min.js +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {ClientPerspective as ClientPerspective_2} from '@sanity/client'
|
|
1
2
|
import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
|
|
2
3
|
import {ContentSourceMapParsedPath} from '@sanity/client/csm'
|
|
3
4
|
import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
|
|
@@ -1749,6 +1750,7 @@ export declare interface GroqAgentActionParam {
|
|
|
1749
1750
|
type: 'groq'
|
|
1750
1751
|
query: string
|
|
1751
1752
|
params?: Record<string, string>
|
|
1753
|
+
perspective?: ClientPerspective_2
|
|
1752
1754
|
}
|
|
1753
1755
|
|
|
1754
1756
|
/**
|
|
@@ -3826,10 +3828,8 @@ export declare class ProjectsClient {
|
|
|
3826
3828
|
declare interface PromptJsonResponse<T extends Record<string, Any> = Record<string, Any>> {
|
|
3827
3829
|
/**
|
|
3828
3830
|
*
|
|
3829
|
-
* When
|
|
3830
|
-
*
|
|
3831
|
-
*
|
|
3832
|
-
* Note: In addition to setting this to true, `instruction` MUST include the word 'JSON', or 'json' for this to work.
|
|
3831
|
+
* When format is 'json', the response will be json according to the instruction.
|
|
3832
|
+
* Note: In addition to setting this to 'json', `instruction` MUST include the word 'JSON', or 'json' for this to work.
|
|
3833
3833
|
*/
|
|
3834
3834
|
format: 'json'
|
|
3835
3835
|
}
|
|
@@ -3936,13 +3936,9 @@ declare interface PromptRequestBase {
|
|
|
3936
3936
|
|
|
3937
3937
|
declare interface PromptTextResponse {
|
|
3938
3938
|
/**
|
|
3939
|
-
*
|
|
3940
|
-
* When true, the response body will be json according to the instruction.
|
|
3941
|
-
* When false, the response is the raw text response to the instruction.
|
|
3942
|
-
*
|
|
3943
|
-
* Note: In addition to setting this to true, `instruction` MUST include the word 'JSON', or 'json' for this to work.
|
|
3939
|
+
* When format is 'string', the response will be a raw text response to the instruction.
|
|
3944
3940
|
*/
|
|
3945
|
-
format?: '
|
|
3941
|
+
format?: 'string'
|
|
3946
3942
|
}
|
|
3947
3943
|
|
|
3948
3944
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type {ClientPerspective as ClientPerspective_2} from '@sanity/client'
|
|
1
2
|
import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
|
|
2
3
|
import {ContentSourceMapParsedPath} from '@sanity/client/csm'
|
|
3
4
|
import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
|
|
@@ -1749,6 +1750,7 @@ export declare interface GroqAgentActionParam {
|
|
|
1749
1750
|
type: 'groq'
|
|
1750
1751
|
query: string
|
|
1751
1752
|
params?: Record<string, string>
|
|
1753
|
+
perspective?: ClientPerspective_2
|
|
1752
1754
|
}
|
|
1753
1755
|
|
|
1754
1756
|
/**
|
|
@@ -3826,10 +3828,8 @@ export declare class ProjectsClient {
|
|
|
3826
3828
|
declare interface PromptJsonResponse<T extends Record<string, Any> = Record<string, Any>> {
|
|
3827
3829
|
/**
|
|
3828
3830
|
*
|
|
3829
|
-
* When
|
|
3830
|
-
*
|
|
3831
|
-
*
|
|
3832
|
-
* Note: In addition to setting this to true, `instruction` MUST include the word 'JSON', or 'json' for this to work.
|
|
3831
|
+
* When format is 'json', the response will be json according to the instruction.
|
|
3832
|
+
* Note: In addition to setting this to 'json', `instruction` MUST include the word 'JSON', or 'json' for this to work.
|
|
3833
3833
|
*/
|
|
3834
3834
|
format: 'json'
|
|
3835
3835
|
}
|
|
@@ -3936,13 +3936,9 @@ declare interface PromptRequestBase {
|
|
|
3936
3936
|
|
|
3937
3937
|
declare interface PromptTextResponse {
|
|
3938
3938
|
/**
|
|
3939
|
-
*
|
|
3940
|
-
* When true, the response body will be json according to the instruction.
|
|
3941
|
-
* When false, the response is the raw text response to the instruction.
|
|
3942
|
-
*
|
|
3943
|
-
* Note: In addition to setting this to true, `instruction` MUST include the word 'JSON', or 'json' for this to work.
|
|
3939
|
+
* When format is 'string', the response will be a raw text response to the instruction.
|
|
3944
3940
|
*/
|
|
3945
|
-
format?: '
|
|
3941
|
+
format?: 'string'
|
|
3946
3942
|
}
|
|
3947
3943
|
|
|
3948
3944
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2560,7 +2560,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
2560
2560
|
return printNoDefaultExport(), createClient2(config);
|
|
2561
2561
|
};
|
|
2562
2562
|
}
|
|
2563
|
-
var name = "@sanity/client", version = "7.8.
|
|
2563
|
+
var name = "@sanity/client", version = "7.8.2";
|
|
2564
2564
|
const middleware = [
|
|
2565
2565
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
2566
2566
|
headers({ "User-Agent": `${name} ${version}` }),
|