@sanity/client 7.15.0 → 7.17.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/_chunks-cjs/config.cjs.map +1 -1
- package/dist/_chunks-cjs/isRecord.cjs.map +1 -1
- package/dist/_chunks-cjs/resolveEditInfo.cjs +1 -1
- package/dist/_chunks-cjs/resolveEditInfo.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaClean.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/config.js.map +1 -1
- package/dist/_chunks-es/isRecord.js.map +1 -1
- package/dist/_chunks-es/resolveEditInfo.js +1 -1
- package/dist/_chunks-es/resolveEditInfo.js.map +1 -1
- package/dist/_chunks-es/stegaClean.js.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/csm.cjs.map +1 -1
- package/dist/csm.js.map +1 -1
- package/dist/index.browser.cjs +62 -4
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +73 -28
- package/dist/index.browser.d.ts +73 -28
- package/dist/index.browser.js +63 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +63 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +73 -28
- package/dist/index.d.ts +73 -28
- package/dist/index.js +64 -6
- package/dist/index.js.map +1 -1
- package/dist/media-library.cjs.map +1 -1
- package/dist/media-library.js.map +1 -1
- package/dist/stega.browser.cjs.map +1 -1
- package/dist/stega.browser.d.cts +73 -28
- package/dist/stega.browser.d.ts +73 -28
- package/dist/stega.browser.js +1 -1
- package/dist/stega.browser.js.map +1 -1
- package/dist/stega.cjs.map +1 -1
- package/dist/stega.d.cts +73 -28
- package/dist/stega.d.ts +73 -28
- package/dist/stega.js +1 -1
- package/dist/stega.js.map +1 -1
- package/package.json +1 -1
- package/src/datasets/DatasetsClient.ts +93 -8
- package/src/projects/ProjectsClient.ts +22 -2
- package/src/types.ts +27 -0
- package/umd/sanityClient.js +71 -13
- package/umd/sanityClient.min.js +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-library.cjs","sources":["../src/media-library.ts"],"sourcesContent":["import type {\n VideoPlaybackInfo,\n VideoPlaybackInfoItem,\n VideoPlaybackInfoItemSigned,\n VideoPlaybackInfoSigned,\n VideoPlaybackTokens,\n} from './types'\n\n/**\n * Check if a playback info item (stream/thumbnail/etc) has a signed token\n * @internal\n */\nfunction isSignedPlayback(item: VideoPlaybackInfoItem): item is VideoPlaybackInfoItemSigned {\n return 'token' in item\n}\n\n/**\n * Check if the entire playback info response requires signed URLs\n * @public\n */\nexport function isSignedPlaybackInfo(\n playbackInfo: VideoPlaybackInfo,\n): playbackInfo is VideoPlaybackInfoSigned {\n return isSignedPlayback(playbackInfo.stream)\n}\n\n/**\n * Extract playback tokens from signed video playback info\n * @param playbackInfo - The video playback info\n * @returns The playback tokens or undefined if the response is not signed\n * @public\n * @example\n * const tokens = getPlaybackTokens(playbackInfo)\n * console.log(tokens)\n * ```json\n * {\n * stream: \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * thumbnail: \"eyJ0a2VuIjoiVGh1bWJuYWlsVG9rZW4tMTIz...\",\n * animated: \"eyJ0a2VuIjoiQW5pbWF0ZWRUb2tlbi1kZWY...\",\n * storyboard: \"eyJ0a2VuIjoiU3Rvcnlib2FyZFRva2VuLTc4...\"\n * }\n * ```\n */\nexport function getPlaybackTokens(\n playbackInfo: VideoPlaybackInfo,\n): VideoPlaybackTokens | undefined {\n if (isSignedPlaybackInfo(playbackInfo)) {\n return {\n stream: playbackInfo.stream.token,\n thumbnail: playbackInfo.thumbnail.token,\n storyboard: playbackInfo.storyboard.token,\n animated: playbackInfo.animated.token,\n }\n }\n\n return undefined\n}\n"],"names":[],"mappings":";;AAYA,SAAS,iBAAiB,MAAkE;AAC1F,SAAO,WAAW;AACpB;AAMO,SAAS,qBACd,cACyC;
|
|
1
|
+
{"version":3,"file":"media-library.cjs","sources":["../src/media-library.ts"],"sourcesContent":["import type {\n VideoPlaybackInfo,\n VideoPlaybackInfoItem,\n VideoPlaybackInfoItemSigned,\n VideoPlaybackInfoSigned,\n VideoPlaybackTokens,\n} from './types'\n\n/**\n * Check if a playback info item (stream/thumbnail/etc) has a signed token\n * @internal\n */\nfunction isSignedPlayback(item: VideoPlaybackInfoItem): item is VideoPlaybackInfoItemSigned {\n return 'token' in item\n}\n\n/**\n * Check if the entire playback info response requires signed URLs\n * @public\n */\nexport function isSignedPlaybackInfo(\n playbackInfo: VideoPlaybackInfo,\n): playbackInfo is VideoPlaybackInfoSigned {\n return isSignedPlayback(playbackInfo.stream)\n}\n\n/**\n * Extract playback tokens from signed video playback info\n * @param playbackInfo - The video playback info\n * @returns The playback tokens or undefined if the response is not signed\n * @public\n * @example\n * const tokens = getPlaybackTokens(playbackInfo)\n * console.log(tokens)\n * ```json\n * {\n * stream: \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * thumbnail: \"eyJ0a2VuIjoiVGh1bWJuYWlsVG9rZW4tMTIz...\",\n * animated: \"eyJ0a2VuIjoiQW5pbWF0ZWRUb2tlbi1kZWY...\",\n * storyboard: \"eyJ0a2VuIjoiU3Rvcnlib2FyZFRva2VuLTc4...\"\n * }\n * ```\n */\nexport function getPlaybackTokens(\n playbackInfo: VideoPlaybackInfo,\n): VideoPlaybackTokens | undefined {\n if (isSignedPlaybackInfo(playbackInfo)) {\n return {\n stream: playbackInfo.stream.token,\n thumbnail: playbackInfo.thumbnail.token,\n storyboard: playbackInfo.storyboard.token,\n animated: playbackInfo.animated.token,\n }\n }\n\n return undefined\n}\n"],"names":[],"mappings":";;AAYA,SAAS,iBAAiB,MAAkE;AAC1F,SAAO,WAAW;AACpB;AAMO,SAAS,qBACd,cACyC;AACzC,SAAO,iBAAiB,aAAa,MAAM;AAC7C;AAmBO,SAAS,kBACd,cACiC;AACjC,MAAI,qBAAqB,YAAY;AACnC,WAAO;AAAA,MACL,QAAQ,aAAa,OAAO;AAAA,MAC5B,WAAW,aAAa,UAAU;AAAA,MAClC,YAAY,aAAa,WAAW;AAAA,MACpC,UAAU,aAAa,SAAS;AAAA,IAAA;AAKtC;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-library.js","sources":["../src/media-library.ts"],"sourcesContent":["import type {\n VideoPlaybackInfo,\n VideoPlaybackInfoItem,\n VideoPlaybackInfoItemSigned,\n VideoPlaybackInfoSigned,\n VideoPlaybackTokens,\n} from './types'\n\n/**\n * Check if a playback info item (stream/thumbnail/etc) has a signed token\n * @internal\n */\nfunction isSignedPlayback(item: VideoPlaybackInfoItem): item is VideoPlaybackInfoItemSigned {\n return 'token' in item\n}\n\n/**\n * Check if the entire playback info response requires signed URLs\n * @public\n */\nexport function isSignedPlaybackInfo(\n playbackInfo: VideoPlaybackInfo,\n): playbackInfo is VideoPlaybackInfoSigned {\n return isSignedPlayback(playbackInfo.stream)\n}\n\n/**\n * Extract playback tokens from signed video playback info\n * @param playbackInfo - The video playback info\n * @returns The playback tokens or undefined if the response is not signed\n * @public\n * @example\n * const tokens = getPlaybackTokens(playbackInfo)\n * console.log(tokens)\n * ```json\n * {\n * stream: \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * thumbnail: \"eyJ0a2VuIjoiVGh1bWJuYWlsVG9rZW4tMTIz...\",\n * animated: \"eyJ0a2VuIjoiQW5pbWF0ZWRUb2tlbi1kZWY...\",\n * storyboard: \"eyJ0a2VuIjoiU3Rvcnlib2FyZFRva2VuLTc4...\"\n * }\n * ```\n */\nexport function getPlaybackTokens(\n playbackInfo: VideoPlaybackInfo,\n): VideoPlaybackTokens | undefined {\n if (isSignedPlaybackInfo(playbackInfo)) {\n return {\n stream: playbackInfo.stream.token,\n thumbnail: playbackInfo.thumbnail.token,\n storyboard: playbackInfo.storyboard.token,\n animated: playbackInfo.animated.token,\n }\n }\n\n return undefined\n}\n"],"names":[],"mappings":"AAYA,SAAS,iBAAiB,MAAkE;AAC1F,SAAO,WAAW;AACpB;AAMO,SAAS,qBACd,cACyC;
|
|
1
|
+
{"version":3,"file":"media-library.js","sources":["../src/media-library.ts"],"sourcesContent":["import type {\n VideoPlaybackInfo,\n VideoPlaybackInfoItem,\n VideoPlaybackInfoItemSigned,\n VideoPlaybackInfoSigned,\n VideoPlaybackTokens,\n} from './types'\n\n/**\n * Check if a playback info item (stream/thumbnail/etc) has a signed token\n * @internal\n */\nfunction isSignedPlayback(item: VideoPlaybackInfoItem): item is VideoPlaybackInfoItemSigned {\n return 'token' in item\n}\n\n/**\n * Check if the entire playback info response requires signed URLs\n * @public\n */\nexport function isSignedPlaybackInfo(\n playbackInfo: VideoPlaybackInfo,\n): playbackInfo is VideoPlaybackInfoSigned {\n return isSignedPlayback(playbackInfo.stream)\n}\n\n/**\n * Extract playback tokens from signed video playback info\n * @param playbackInfo - The video playback info\n * @returns The playback tokens or undefined if the response is not signed\n * @public\n * @example\n * const tokens = getPlaybackTokens(playbackInfo)\n * console.log(tokens)\n * ```json\n * {\n * stream: \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...\",\n * thumbnail: \"eyJ0a2VuIjoiVGh1bWJuYWlsVG9rZW4tMTIz...\",\n * animated: \"eyJ0a2VuIjoiQW5pbWF0ZWRUb2tlbi1kZWY...\",\n * storyboard: \"eyJ0a2VuIjoiU3Rvcnlib2FyZFRva2VuLTc4...\"\n * }\n * ```\n */\nexport function getPlaybackTokens(\n playbackInfo: VideoPlaybackInfo,\n): VideoPlaybackTokens | undefined {\n if (isSignedPlaybackInfo(playbackInfo)) {\n return {\n stream: playbackInfo.stream.token,\n thumbnail: playbackInfo.thumbnail.token,\n storyboard: playbackInfo.storyboard.token,\n animated: playbackInfo.animated.token,\n }\n }\n\n return undefined\n}\n"],"names":[],"mappings":"AAYA,SAAS,iBAAiB,MAAkE;AAC1F,SAAO,WAAW;AACpB;AAMO,SAAS,qBACd,cACyC;AACzC,SAAO,iBAAiB,aAAa,MAAM;AAC7C;AAmBO,SAAS,kBACd,cACiC;AACjC,MAAI,qBAAqB,YAAY;AACnC,WAAO;AAAA,MACL,QAAQ,aAAa,OAAO;AAAA,MAC5B,WAAW,aAAa,UAAU;AAAA,MAClC,YAAY,aAAa,WAAW;AAAA,MACpC,UAAU,aAAa,SAAS;AAAA,IAAA;AAKtC;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stega.browser.cjs","sources":["../src/stega/index.ts"],"sourcesContent":["export * from '@sanity/client'\nimport {\n createClient as originalCreateClient,\n ObservableSanityClient,\n requester as originalRequester,\n SanityClient,\n} from '@sanity/client'\n\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaClean, vercelStegaCleanAll} from './stegaClean'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n\n/**\n * @deprecated -- Use `import {requester} from '@sanity/client'` instead\n * @public\n */\nexport const requester = originalRequester\n\n/**\n * @deprecated -- Use `import {createClient} from '@sanity/client'` instead\n * @public\n */\nexport const createClient = originalCreateClient\n"],"names":["SanityClient","ObservableSanityClient","originalRequester","originalCreateClient"],"mappings":";;;AAiBO,MAAM,0BAA0BA,OAAAA,aAAa;AAAC;AAM9C,MAAM,oCAAoCC,OAAAA,uBAAuB;AAAC;
|
|
1
|
+
{"version":3,"file":"stega.browser.cjs","sources":["../src/stega/index.ts"],"sourcesContent":["export * from '@sanity/client'\nimport {\n createClient as originalCreateClient,\n ObservableSanityClient,\n requester as originalRequester,\n SanityClient,\n} from '@sanity/client'\n\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaClean, vercelStegaCleanAll} from './stegaClean'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n\n/**\n * @deprecated -- Use `import {requester} from '@sanity/client'` instead\n * @public\n */\nexport const requester = originalRequester\n\n/**\n * @deprecated -- Use `import {createClient} from '@sanity/client'` instead\n * @public\n */\nexport const createClient = originalCreateClient\n"],"names":["SanityClient","ObservableSanityClient","originalRequester","originalCreateClient"],"mappings":";;;AAiBO,MAAM,0BAA0BA,OAAAA,aAAa;AAAC;AAM9C,MAAM,oCAAoCC,OAAAA,uBAAuB;AAAC;AAMlE,MAAM,YAAYC,OAAAA,WAMZ,eAAeC,OAAAA;;;;;;;;;;;;;;;;;"}
|
package/dist/stega.browser.d.cts
CHANGED
|
@@ -1190,6 +1190,20 @@ export declare interface CurrentSanityUser {
|
|
|
1190
1190
|
/** @public */
|
|
1191
1191
|
export declare type DatasetAclMode = 'public' | 'private' | 'custom'
|
|
1192
1192
|
|
|
1193
|
+
/** @public */
|
|
1194
|
+
export declare type DatasetCreateOptions = {
|
|
1195
|
+
aclMode?: DatasetAclMode
|
|
1196
|
+
embeddings?: {
|
|
1197
|
+
enabled: boolean
|
|
1198
|
+
projection?: string
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/** @public */
|
|
1203
|
+
export declare type DatasetEditOptions = {
|
|
1204
|
+
aclMode?: DatasetAclMode
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1193
1207
|
/** @public */
|
|
1194
1208
|
export declare type DatasetResponse = {
|
|
1195
1209
|
datasetName: string
|
|
@@ -1204,26 +1218,16 @@ export declare class DatasetsClient {
|
|
|
1204
1218
|
* Create a new dataset with the given name
|
|
1205
1219
|
*
|
|
1206
1220
|
* @param name - Name of the dataset to create
|
|
1207
|
-
* @param options - Options for the dataset
|
|
1221
|
+
* @param options - Options for the dataset, including optional embeddings configuration
|
|
1208
1222
|
*/
|
|
1209
|
-
create(
|
|
1210
|
-
name: string,
|
|
1211
|
-
options?: {
|
|
1212
|
-
aclMode?: DatasetAclMode
|
|
1213
|
-
},
|
|
1214
|
-
): Promise<DatasetResponse>
|
|
1223
|
+
create(name: string, options?: DatasetCreateOptions): Promise<DatasetResponse>
|
|
1215
1224
|
/**
|
|
1216
1225
|
* Edit a dataset with the given name
|
|
1217
1226
|
*
|
|
1218
1227
|
* @param name - Name of the dataset to edit
|
|
1219
1228
|
* @param options - New options for the dataset
|
|
1220
1229
|
*/
|
|
1221
|
-
edit(
|
|
1222
|
-
name: string,
|
|
1223
|
-
options?: {
|
|
1224
|
-
aclMode?: DatasetAclMode
|
|
1225
|
-
},
|
|
1226
|
-
): Promise<DatasetResponse>
|
|
1230
|
+
edit(name: string, options?: DatasetEditOptions): Promise<DatasetResponse>
|
|
1227
1231
|
/**
|
|
1228
1232
|
* Delete a dataset with the given name
|
|
1229
1233
|
*
|
|
@@ -1236,6 +1240,19 @@ export declare class DatasetsClient {
|
|
|
1236
1240
|
* Fetch a list of datasets for the configured project
|
|
1237
1241
|
*/
|
|
1238
1242
|
list(): Promise<DatasetsResponse>
|
|
1243
|
+
/**
|
|
1244
|
+
* Get embeddings settings for a dataset
|
|
1245
|
+
*
|
|
1246
|
+
* @param name - Name of the dataset
|
|
1247
|
+
*/
|
|
1248
|
+
getEmbeddingsSettings(name: string): Promise<EmbeddingsSettings>
|
|
1249
|
+
/**
|
|
1250
|
+
* Edit embeddings settings for a dataset
|
|
1251
|
+
*
|
|
1252
|
+
* @param name - Name of the dataset
|
|
1253
|
+
* @param settings - Embeddings settings to apply
|
|
1254
|
+
*/
|
|
1255
|
+
editEmbeddingsSettings(name: string, settings: EmbeddingsSettingsBody): Promise<void>
|
|
1239
1256
|
}
|
|
1240
1257
|
|
|
1241
1258
|
/** @public */
|
|
@@ -1434,6 +1451,19 @@ export declare interface EditReleaseAction {
|
|
|
1434
1451
|
patch: PatchOperations
|
|
1435
1452
|
}
|
|
1436
1453
|
|
|
1454
|
+
/** @public */
|
|
1455
|
+
export declare type EmbeddingsSettings = {
|
|
1456
|
+
enabled: boolean
|
|
1457
|
+
projection?: string
|
|
1458
|
+
status: string
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/** @public */
|
|
1462
|
+
export declare type EmbeddingsSettingsBody = {
|
|
1463
|
+
enabled: boolean
|
|
1464
|
+
projection?: string
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1437
1467
|
/**
|
|
1438
1468
|
* @internal
|
|
1439
1469
|
*/
|
|
@@ -2717,26 +2747,16 @@ export declare class ObservableDatasetsClient {
|
|
|
2717
2747
|
* Create a new dataset with the given name
|
|
2718
2748
|
*
|
|
2719
2749
|
* @param name - Name of the dataset to create
|
|
2720
|
-
* @param options - Options for the dataset
|
|
2750
|
+
* @param options - Options for the dataset, including optional embeddings configuration
|
|
2721
2751
|
*/
|
|
2722
|
-
create(
|
|
2723
|
-
name: string,
|
|
2724
|
-
options?: {
|
|
2725
|
-
aclMode?: DatasetAclMode
|
|
2726
|
-
},
|
|
2727
|
-
): Observable<DatasetResponse>
|
|
2752
|
+
create(name: string, options?: DatasetCreateOptions): Observable<DatasetResponse>
|
|
2728
2753
|
/**
|
|
2729
2754
|
* Edit a dataset with the given name
|
|
2730
2755
|
*
|
|
2731
2756
|
* @param name - Name of the dataset to edit
|
|
2732
2757
|
* @param options - New options for the dataset
|
|
2733
2758
|
*/
|
|
2734
|
-
edit(
|
|
2735
|
-
name: string,
|
|
2736
|
-
options?: {
|
|
2737
|
-
aclMode?: DatasetAclMode
|
|
2738
|
-
},
|
|
2739
|
-
): Observable<DatasetResponse>
|
|
2759
|
+
edit(name: string, options?: DatasetEditOptions): Observable<DatasetResponse>
|
|
2740
2760
|
/**
|
|
2741
2761
|
* Delete a dataset with the given name
|
|
2742
2762
|
*
|
|
@@ -2749,6 +2769,19 @@ export declare class ObservableDatasetsClient {
|
|
|
2749
2769
|
* Fetch a list of datasets for the configured project
|
|
2750
2770
|
*/
|
|
2751
2771
|
list(): Observable<DatasetsResponse>
|
|
2772
|
+
/**
|
|
2773
|
+
* Get embeddings settings for a dataset
|
|
2774
|
+
*
|
|
2775
|
+
* @param name - Name of the dataset
|
|
2776
|
+
*/
|
|
2777
|
+
getEmbeddingsSettings(name: string): Observable<EmbeddingsSettings>
|
|
2778
|
+
/**
|
|
2779
|
+
* Edit embeddings settings for a dataset
|
|
2780
|
+
*
|
|
2781
|
+
* @param name - Name of the dataset
|
|
2782
|
+
* @param settings - Embeddings settings to apply
|
|
2783
|
+
*/
|
|
2784
|
+
editEmbeddingsSettings(name: string, settings: EmbeddingsSettingsBody): Observable<void>
|
|
2752
2785
|
}
|
|
2753
2786
|
|
|
2754
2787
|
/** @internal */
|
|
@@ -2830,11 +2863,17 @@ export declare class ObservableProjectsClient {
|
|
|
2830
2863
|
* @param options - Options for the list request
|
|
2831
2864
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
2832
2865
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
2866
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
2833
2867
|
*/
|
|
2834
|
-
list(options?: {
|
|
2868
|
+
list(options?: {
|
|
2869
|
+
includeMembers?: true
|
|
2870
|
+
organizationId?: string
|
|
2871
|
+
onlyExplicitMembership?: boolean
|
|
2872
|
+
}): Observable<SanityProject[]>
|
|
2835
2873
|
list(options?: {
|
|
2836
2874
|
includeMembers?: false
|
|
2837
2875
|
organizationId?: string
|
|
2876
|
+
onlyExplicitMembership?: boolean
|
|
2838
2877
|
}): Observable<Omit<SanityProject, 'members'>[]>
|
|
2839
2878
|
/**
|
|
2840
2879
|
* Fetch a project by project ID
|
|
@@ -4213,11 +4252,17 @@ export declare class ProjectsClient {
|
|
|
4213
4252
|
* @param options - Options for the list request
|
|
4214
4253
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
4215
4254
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
4255
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
4216
4256
|
*/
|
|
4217
|
-
list(options?: {
|
|
4257
|
+
list(options?: {
|
|
4258
|
+
includeMembers?: true
|
|
4259
|
+
organizationId?: string
|
|
4260
|
+
onlyExplicitMembership?: boolean
|
|
4261
|
+
}): Promise<SanityProject[]>
|
|
4218
4262
|
list(options?: {
|
|
4219
4263
|
includeMembers?: false
|
|
4220
4264
|
organizationId?: string
|
|
4265
|
+
onlyExplicitMembership?: boolean
|
|
4221
4266
|
}): Promise<Omit<SanityProject, 'members'>[]>
|
|
4222
4267
|
/**
|
|
4223
4268
|
* Fetch a project by project ID
|
package/dist/stega.browser.d.ts
CHANGED
|
@@ -1190,6 +1190,20 @@ export declare interface CurrentSanityUser {
|
|
|
1190
1190
|
/** @public */
|
|
1191
1191
|
export declare type DatasetAclMode = 'public' | 'private' | 'custom'
|
|
1192
1192
|
|
|
1193
|
+
/** @public */
|
|
1194
|
+
export declare type DatasetCreateOptions = {
|
|
1195
|
+
aclMode?: DatasetAclMode
|
|
1196
|
+
embeddings?: {
|
|
1197
|
+
enabled: boolean
|
|
1198
|
+
projection?: string
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/** @public */
|
|
1203
|
+
export declare type DatasetEditOptions = {
|
|
1204
|
+
aclMode?: DatasetAclMode
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1193
1207
|
/** @public */
|
|
1194
1208
|
export declare type DatasetResponse = {
|
|
1195
1209
|
datasetName: string
|
|
@@ -1204,26 +1218,16 @@ export declare class DatasetsClient {
|
|
|
1204
1218
|
* Create a new dataset with the given name
|
|
1205
1219
|
*
|
|
1206
1220
|
* @param name - Name of the dataset to create
|
|
1207
|
-
* @param options - Options for the dataset
|
|
1221
|
+
* @param options - Options for the dataset, including optional embeddings configuration
|
|
1208
1222
|
*/
|
|
1209
|
-
create(
|
|
1210
|
-
name: string,
|
|
1211
|
-
options?: {
|
|
1212
|
-
aclMode?: DatasetAclMode
|
|
1213
|
-
},
|
|
1214
|
-
): Promise<DatasetResponse>
|
|
1223
|
+
create(name: string, options?: DatasetCreateOptions): Promise<DatasetResponse>
|
|
1215
1224
|
/**
|
|
1216
1225
|
* Edit a dataset with the given name
|
|
1217
1226
|
*
|
|
1218
1227
|
* @param name - Name of the dataset to edit
|
|
1219
1228
|
* @param options - New options for the dataset
|
|
1220
1229
|
*/
|
|
1221
|
-
edit(
|
|
1222
|
-
name: string,
|
|
1223
|
-
options?: {
|
|
1224
|
-
aclMode?: DatasetAclMode
|
|
1225
|
-
},
|
|
1226
|
-
): Promise<DatasetResponse>
|
|
1230
|
+
edit(name: string, options?: DatasetEditOptions): Promise<DatasetResponse>
|
|
1227
1231
|
/**
|
|
1228
1232
|
* Delete a dataset with the given name
|
|
1229
1233
|
*
|
|
@@ -1236,6 +1240,19 @@ export declare class DatasetsClient {
|
|
|
1236
1240
|
* Fetch a list of datasets for the configured project
|
|
1237
1241
|
*/
|
|
1238
1242
|
list(): Promise<DatasetsResponse>
|
|
1243
|
+
/**
|
|
1244
|
+
* Get embeddings settings for a dataset
|
|
1245
|
+
*
|
|
1246
|
+
* @param name - Name of the dataset
|
|
1247
|
+
*/
|
|
1248
|
+
getEmbeddingsSettings(name: string): Promise<EmbeddingsSettings>
|
|
1249
|
+
/**
|
|
1250
|
+
* Edit embeddings settings for a dataset
|
|
1251
|
+
*
|
|
1252
|
+
* @param name - Name of the dataset
|
|
1253
|
+
* @param settings - Embeddings settings to apply
|
|
1254
|
+
*/
|
|
1255
|
+
editEmbeddingsSettings(name: string, settings: EmbeddingsSettingsBody): Promise<void>
|
|
1239
1256
|
}
|
|
1240
1257
|
|
|
1241
1258
|
/** @public */
|
|
@@ -1434,6 +1451,19 @@ export declare interface EditReleaseAction {
|
|
|
1434
1451
|
patch: PatchOperations
|
|
1435
1452
|
}
|
|
1436
1453
|
|
|
1454
|
+
/** @public */
|
|
1455
|
+
export declare type EmbeddingsSettings = {
|
|
1456
|
+
enabled: boolean
|
|
1457
|
+
projection?: string
|
|
1458
|
+
status: string
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/** @public */
|
|
1462
|
+
export declare type EmbeddingsSettingsBody = {
|
|
1463
|
+
enabled: boolean
|
|
1464
|
+
projection?: string
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1437
1467
|
/**
|
|
1438
1468
|
* @internal
|
|
1439
1469
|
*/
|
|
@@ -2717,26 +2747,16 @@ export declare class ObservableDatasetsClient {
|
|
|
2717
2747
|
* Create a new dataset with the given name
|
|
2718
2748
|
*
|
|
2719
2749
|
* @param name - Name of the dataset to create
|
|
2720
|
-
* @param options - Options for the dataset
|
|
2750
|
+
* @param options - Options for the dataset, including optional embeddings configuration
|
|
2721
2751
|
*/
|
|
2722
|
-
create(
|
|
2723
|
-
name: string,
|
|
2724
|
-
options?: {
|
|
2725
|
-
aclMode?: DatasetAclMode
|
|
2726
|
-
},
|
|
2727
|
-
): Observable<DatasetResponse>
|
|
2752
|
+
create(name: string, options?: DatasetCreateOptions): Observable<DatasetResponse>
|
|
2728
2753
|
/**
|
|
2729
2754
|
* Edit a dataset with the given name
|
|
2730
2755
|
*
|
|
2731
2756
|
* @param name - Name of the dataset to edit
|
|
2732
2757
|
* @param options - New options for the dataset
|
|
2733
2758
|
*/
|
|
2734
|
-
edit(
|
|
2735
|
-
name: string,
|
|
2736
|
-
options?: {
|
|
2737
|
-
aclMode?: DatasetAclMode
|
|
2738
|
-
},
|
|
2739
|
-
): Observable<DatasetResponse>
|
|
2759
|
+
edit(name: string, options?: DatasetEditOptions): Observable<DatasetResponse>
|
|
2740
2760
|
/**
|
|
2741
2761
|
* Delete a dataset with the given name
|
|
2742
2762
|
*
|
|
@@ -2749,6 +2769,19 @@ export declare class ObservableDatasetsClient {
|
|
|
2749
2769
|
* Fetch a list of datasets for the configured project
|
|
2750
2770
|
*/
|
|
2751
2771
|
list(): Observable<DatasetsResponse>
|
|
2772
|
+
/**
|
|
2773
|
+
* Get embeddings settings for a dataset
|
|
2774
|
+
*
|
|
2775
|
+
* @param name - Name of the dataset
|
|
2776
|
+
*/
|
|
2777
|
+
getEmbeddingsSettings(name: string): Observable<EmbeddingsSettings>
|
|
2778
|
+
/**
|
|
2779
|
+
* Edit embeddings settings for a dataset
|
|
2780
|
+
*
|
|
2781
|
+
* @param name - Name of the dataset
|
|
2782
|
+
* @param settings - Embeddings settings to apply
|
|
2783
|
+
*/
|
|
2784
|
+
editEmbeddingsSettings(name: string, settings: EmbeddingsSettingsBody): Observable<void>
|
|
2752
2785
|
}
|
|
2753
2786
|
|
|
2754
2787
|
/** @internal */
|
|
@@ -2830,11 +2863,17 @@ export declare class ObservableProjectsClient {
|
|
|
2830
2863
|
* @param options - Options for the list request
|
|
2831
2864
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
2832
2865
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
2866
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
2833
2867
|
*/
|
|
2834
|
-
list(options?: {
|
|
2868
|
+
list(options?: {
|
|
2869
|
+
includeMembers?: true
|
|
2870
|
+
organizationId?: string
|
|
2871
|
+
onlyExplicitMembership?: boolean
|
|
2872
|
+
}): Observable<SanityProject[]>
|
|
2835
2873
|
list(options?: {
|
|
2836
2874
|
includeMembers?: false
|
|
2837
2875
|
organizationId?: string
|
|
2876
|
+
onlyExplicitMembership?: boolean
|
|
2838
2877
|
}): Observable<Omit<SanityProject, 'members'>[]>
|
|
2839
2878
|
/**
|
|
2840
2879
|
* Fetch a project by project ID
|
|
@@ -4213,11 +4252,17 @@ export declare class ProjectsClient {
|
|
|
4213
4252
|
* @param options - Options for the list request
|
|
4214
4253
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
4215
4254
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
4255
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
4216
4256
|
*/
|
|
4217
|
-
list(options?: {
|
|
4257
|
+
list(options?: {
|
|
4258
|
+
includeMembers?: true
|
|
4259
|
+
organizationId?: string
|
|
4260
|
+
onlyExplicitMembership?: boolean
|
|
4261
|
+
}): Promise<SanityProject[]>
|
|
4218
4262
|
list(options?: {
|
|
4219
4263
|
includeMembers?: false
|
|
4220
4264
|
organizationId?: string
|
|
4265
|
+
onlyExplicitMembership?: boolean
|
|
4221
4266
|
}): Promise<Omit<SanityProject, 'members'>[]>
|
|
4222
4267
|
/**
|
|
4223
4268
|
* Fetch a project by project ID
|
package/dist/stega.browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createClient as createClient$1, requester as requester$1, ObservableSanityClient, SanityClient } from "@sanity/client";
|
|
2
2
|
export * from "@sanity/client";
|
|
3
3
|
import { encodeIntoResult, stegaEncodeSourceMap } from "./_chunks-es/stegaEncodeSourceMap.js";
|
|
4
4
|
import { stegaClean, vercelStegaCleanAll } from "./_chunks-es/stegaClean.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stega.browser.js","sources":["../src/stega/index.ts"],"sourcesContent":["export * from '@sanity/client'\nimport {\n createClient as originalCreateClient,\n ObservableSanityClient,\n requester as originalRequester,\n SanityClient,\n} from '@sanity/client'\n\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaClean, vercelStegaCleanAll} from './stegaClean'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n\n/**\n * @deprecated -- Use `import {requester} from '@sanity/client'` instead\n * @public\n */\nexport const requester = originalRequester\n\n/**\n * @deprecated -- Use `import {createClient} from '@sanity/client'` instead\n * @public\n */\nexport const createClient = originalCreateClient\n"],"names":["originalRequester","originalCreateClient"],"mappings":";;;;AAiBO,MAAM,0BAA0B,aAAa;AAAC;AAM9C,MAAM,oCAAoC,uBAAuB;AAAC;
|
|
1
|
+
{"version":3,"file":"stega.browser.js","sources":["../src/stega/index.ts"],"sourcesContent":["export * from '@sanity/client'\nimport {\n createClient as originalCreateClient,\n ObservableSanityClient,\n requester as originalRequester,\n SanityClient,\n} from '@sanity/client'\n\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaClean, vercelStegaCleanAll} from './stegaClean'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n\n/**\n * @deprecated -- Use `import {requester} from '@sanity/client'` instead\n * @public\n */\nexport const requester = originalRequester\n\n/**\n * @deprecated -- Use `import {createClient} from '@sanity/client'` instead\n * @public\n */\nexport const createClient = originalCreateClient\n"],"names":["originalRequester","originalCreateClient"],"mappings":";;;;AAiBO,MAAM,0BAA0B,aAAa;AAAC;AAM9C,MAAM,oCAAoC,uBAAuB;AAAC;AAMlE,MAAM,YAAYA,aAMZ,eAAeC;"}
|
package/dist/stega.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stega.cjs","sources":["../src/stega/index.ts"],"sourcesContent":["export * from '@sanity/client'\nimport {\n createClient as originalCreateClient,\n ObservableSanityClient,\n requester as originalRequester,\n SanityClient,\n} from '@sanity/client'\n\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaClean, vercelStegaCleanAll} from './stegaClean'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n\n/**\n * @deprecated -- Use `import {requester} from '@sanity/client'` instead\n * @public\n */\nexport const requester = originalRequester\n\n/**\n * @deprecated -- Use `import {createClient} from '@sanity/client'` instead\n * @public\n */\nexport const createClient = originalCreateClient\n"],"names":["SanityClient","ObservableSanityClient","originalRequester","originalCreateClient"],"mappings":";;;AAiBO,MAAM,0BAA0BA,OAAAA,aAAa;AAAC;AAM9C,MAAM,oCAAoCC,OAAAA,uBAAuB;AAAC;
|
|
1
|
+
{"version":3,"file":"stega.cjs","sources":["../src/stega/index.ts"],"sourcesContent":["export * from '@sanity/client'\nimport {\n createClient as originalCreateClient,\n ObservableSanityClient,\n requester as originalRequester,\n SanityClient,\n} from '@sanity/client'\n\nexport {encodeIntoResult} from './encodeIntoResult'\nexport {stegaClean, vercelStegaCleanAll} from './stegaClean'\nexport {stegaEncodeSourceMap} from './stegaEncodeSourceMap'\nexport * from './types'\n\n/**\n * @deprecated -- Use `import {SanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class SanityStegaClient extends SanityClient {}\n\n/**\n * @deprecated -- Use `import {ObservableSanityClient} from '@sanity/client'` instead\n * @public\n */\nexport class ObservableSanityStegaClient extends ObservableSanityClient {}\n\n/**\n * @deprecated -- Use `import {requester} from '@sanity/client'` instead\n * @public\n */\nexport const requester = originalRequester\n\n/**\n * @deprecated -- Use `import {createClient} from '@sanity/client'` instead\n * @public\n */\nexport const createClient = originalCreateClient\n"],"names":["SanityClient","ObservableSanityClient","originalRequester","originalCreateClient"],"mappings":";;;AAiBO,MAAM,0BAA0BA,OAAAA,aAAa;AAAC;AAM9C,MAAM,oCAAoCC,OAAAA,uBAAuB;AAAC;AAMlE,MAAM,YAAYC,OAAAA,WAMZ,eAAeC,OAAAA;;;;;;;;;;;;;;;;;"}
|
package/dist/stega.d.cts
CHANGED
|
@@ -1190,6 +1190,20 @@ export declare interface CurrentSanityUser {
|
|
|
1190
1190
|
/** @public */
|
|
1191
1191
|
export declare type DatasetAclMode = 'public' | 'private' | 'custom'
|
|
1192
1192
|
|
|
1193
|
+
/** @public */
|
|
1194
|
+
export declare type DatasetCreateOptions = {
|
|
1195
|
+
aclMode?: DatasetAclMode
|
|
1196
|
+
embeddings?: {
|
|
1197
|
+
enabled: boolean
|
|
1198
|
+
projection?: string
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
/** @public */
|
|
1203
|
+
export declare type DatasetEditOptions = {
|
|
1204
|
+
aclMode?: DatasetAclMode
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1193
1207
|
/** @public */
|
|
1194
1208
|
export declare type DatasetResponse = {
|
|
1195
1209
|
datasetName: string
|
|
@@ -1204,26 +1218,16 @@ export declare class DatasetsClient {
|
|
|
1204
1218
|
* Create a new dataset with the given name
|
|
1205
1219
|
*
|
|
1206
1220
|
* @param name - Name of the dataset to create
|
|
1207
|
-
* @param options - Options for the dataset
|
|
1221
|
+
* @param options - Options for the dataset, including optional embeddings configuration
|
|
1208
1222
|
*/
|
|
1209
|
-
create(
|
|
1210
|
-
name: string,
|
|
1211
|
-
options?: {
|
|
1212
|
-
aclMode?: DatasetAclMode
|
|
1213
|
-
},
|
|
1214
|
-
): Promise<DatasetResponse>
|
|
1223
|
+
create(name: string, options?: DatasetCreateOptions): Promise<DatasetResponse>
|
|
1215
1224
|
/**
|
|
1216
1225
|
* Edit a dataset with the given name
|
|
1217
1226
|
*
|
|
1218
1227
|
* @param name - Name of the dataset to edit
|
|
1219
1228
|
* @param options - New options for the dataset
|
|
1220
1229
|
*/
|
|
1221
|
-
edit(
|
|
1222
|
-
name: string,
|
|
1223
|
-
options?: {
|
|
1224
|
-
aclMode?: DatasetAclMode
|
|
1225
|
-
},
|
|
1226
|
-
): Promise<DatasetResponse>
|
|
1230
|
+
edit(name: string, options?: DatasetEditOptions): Promise<DatasetResponse>
|
|
1227
1231
|
/**
|
|
1228
1232
|
* Delete a dataset with the given name
|
|
1229
1233
|
*
|
|
@@ -1236,6 +1240,19 @@ export declare class DatasetsClient {
|
|
|
1236
1240
|
* Fetch a list of datasets for the configured project
|
|
1237
1241
|
*/
|
|
1238
1242
|
list(): Promise<DatasetsResponse>
|
|
1243
|
+
/**
|
|
1244
|
+
* Get embeddings settings for a dataset
|
|
1245
|
+
*
|
|
1246
|
+
* @param name - Name of the dataset
|
|
1247
|
+
*/
|
|
1248
|
+
getEmbeddingsSettings(name: string): Promise<EmbeddingsSettings>
|
|
1249
|
+
/**
|
|
1250
|
+
* Edit embeddings settings for a dataset
|
|
1251
|
+
*
|
|
1252
|
+
* @param name - Name of the dataset
|
|
1253
|
+
* @param settings - Embeddings settings to apply
|
|
1254
|
+
*/
|
|
1255
|
+
editEmbeddingsSettings(name: string, settings: EmbeddingsSettingsBody): Promise<void>
|
|
1239
1256
|
}
|
|
1240
1257
|
|
|
1241
1258
|
/** @public */
|
|
@@ -1434,6 +1451,19 @@ export declare interface EditReleaseAction {
|
|
|
1434
1451
|
patch: PatchOperations
|
|
1435
1452
|
}
|
|
1436
1453
|
|
|
1454
|
+
/** @public */
|
|
1455
|
+
export declare type EmbeddingsSettings = {
|
|
1456
|
+
enabled: boolean
|
|
1457
|
+
projection?: string
|
|
1458
|
+
status: string
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/** @public */
|
|
1462
|
+
export declare type EmbeddingsSettingsBody = {
|
|
1463
|
+
enabled: boolean
|
|
1464
|
+
projection?: string
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1437
1467
|
/**
|
|
1438
1468
|
* @internal
|
|
1439
1469
|
*/
|
|
@@ -2717,26 +2747,16 @@ export declare class ObservableDatasetsClient {
|
|
|
2717
2747
|
* Create a new dataset with the given name
|
|
2718
2748
|
*
|
|
2719
2749
|
* @param name - Name of the dataset to create
|
|
2720
|
-
* @param options - Options for the dataset
|
|
2750
|
+
* @param options - Options for the dataset, including optional embeddings configuration
|
|
2721
2751
|
*/
|
|
2722
|
-
create(
|
|
2723
|
-
name: string,
|
|
2724
|
-
options?: {
|
|
2725
|
-
aclMode?: DatasetAclMode
|
|
2726
|
-
},
|
|
2727
|
-
): Observable<DatasetResponse>
|
|
2752
|
+
create(name: string, options?: DatasetCreateOptions): Observable<DatasetResponse>
|
|
2728
2753
|
/**
|
|
2729
2754
|
* Edit a dataset with the given name
|
|
2730
2755
|
*
|
|
2731
2756
|
* @param name - Name of the dataset to edit
|
|
2732
2757
|
* @param options - New options for the dataset
|
|
2733
2758
|
*/
|
|
2734
|
-
edit(
|
|
2735
|
-
name: string,
|
|
2736
|
-
options?: {
|
|
2737
|
-
aclMode?: DatasetAclMode
|
|
2738
|
-
},
|
|
2739
|
-
): Observable<DatasetResponse>
|
|
2759
|
+
edit(name: string, options?: DatasetEditOptions): Observable<DatasetResponse>
|
|
2740
2760
|
/**
|
|
2741
2761
|
* Delete a dataset with the given name
|
|
2742
2762
|
*
|
|
@@ -2749,6 +2769,19 @@ export declare class ObservableDatasetsClient {
|
|
|
2749
2769
|
* Fetch a list of datasets for the configured project
|
|
2750
2770
|
*/
|
|
2751
2771
|
list(): Observable<DatasetsResponse>
|
|
2772
|
+
/**
|
|
2773
|
+
* Get embeddings settings for a dataset
|
|
2774
|
+
*
|
|
2775
|
+
* @param name - Name of the dataset
|
|
2776
|
+
*/
|
|
2777
|
+
getEmbeddingsSettings(name: string): Observable<EmbeddingsSettings>
|
|
2778
|
+
/**
|
|
2779
|
+
* Edit embeddings settings for a dataset
|
|
2780
|
+
*
|
|
2781
|
+
* @param name - Name of the dataset
|
|
2782
|
+
* @param settings - Embeddings settings to apply
|
|
2783
|
+
*/
|
|
2784
|
+
editEmbeddingsSettings(name: string, settings: EmbeddingsSettingsBody): Observable<void>
|
|
2752
2785
|
}
|
|
2753
2786
|
|
|
2754
2787
|
/** @internal */
|
|
@@ -2830,11 +2863,17 @@ export declare class ObservableProjectsClient {
|
|
|
2830
2863
|
* @param options - Options for the list request
|
|
2831
2864
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
2832
2865
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
2866
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
2833
2867
|
*/
|
|
2834
|
-
list(options?: {
|
|
2868
|
+
list(options?: {
|
|
2869
|
+
includeMembers?: true
|
|
2870
|
+
organizationId?: string
|
|
2871
|
+
onlyExplicitMembership?: boolean
|
|
2872
|
+
}): Observable<SanityProject[]>
|
|
2835
2873
|
list(options?: {
|
|
2836
2874
|
includeMembers?: false
|
|
2837
2875
|
organizationId?: string
|
|
2876
|
+
onlyExplicitMembership?: boolean
|
|
2838
2877
|
}): Observable<Omit<SanityProject, 'members'>[]>
|
|
2839
2878
|
/**
|
|
2840
2879
|
* Fetch a project by project ID
|
|
@@ -4213,11 +4252,17 @@ export declare class ProjectsClient {
|
|
|
4213
4252
|
* @param options - Options for the list request
|
|
4214
4253
|
* - `includeMembers` - Whether to include members in the response (default: true)
|
|
4215
4254
|
* - `organizationId` - ID of the organization to fetch projects for
|
|
4255
|
+
* - `onlyExplicitMembership` - Only include projects where the user has explicit membership (default: false)
|
|
4216
4256
|
*/
|
|
4217
|
-
list(options?: {
|
|
4257
|
+
list(options?: {
|
|
4258
|
+
includeMembers?: true
|
|
4259
|
+
organizationId?: string
|
|
4260
|
+
onlyExplicitMembership?: boolean
|
|
4261
|
+
}): Promise<SanityProject[]>
|
|
4218
4262
|
list(options?: {
|
|
4219
4263
|
includeMembers?: false
|
|
4220
4264
|
organizationId?: string
|
|
4265
|
+
onlyExplicitMembership?: boolean
|
|
4221
4266
|
}): Promise<Omit<SanityProject, 'members'>[]>
|
|
4222
4267
|
/**
|
|
4223
4268
|
* Fetch a project by project ID
|