@sanity/client 6.21.1 → 6.21.3-bundle-perspective

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.
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
4
2
  import {ContentSourceMapParsedPath} from '@sanity/client/csm'
5
3
  import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
@@ -333,6 +331,7 @@ export declare interface ClientConfig {
333
331
  token?: string
334
332
  /** @defaultValue 'raw' */
335
333
  perspective?: ClientPerspective
334
+ bundlePerspective?: string
336
335
  apiHost?: string
337
336
  apiVersion?: string
338
337
  proxy?: string
@@ -2014,6 +2013,8 @@ export declare interface QueryParams {
2014
2013
  /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2015
2014
  perspective?: never
2016
2015
  /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2016
+ bundlePerspective?: never
2017
+ /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2017
2018
  query?: never
2018
2019
  /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2019
2020
  resultSourceMap?: never
@@ -2116,6 +2117,7 @@ export declare interface RequestObservableOptions extends Omit<RequestOptions, '
2116
2117
  returnQuery?: boolean
2117
2118
  resultSourceMap?: boolean | 'withKeyArraySelector'
2118
2119
  perspective?: ClientPerspective
2120
+ bundlePerspective?: string
2119
2121
  lastLiveEventId?: string
2120
2122
  }
2121
2123
 
@@ -2147,6 +2149,7 @@ export declare interface ResponseEvent<T = unknown> {
2147
2149
  /** @public */
2148
2150
  export declare interface ResponseQueryOptions extends RequestOptions {
2149
2151
  perspective?: ClientPerspective
2152
+ bundlePerspective?: string
2150
2153
  resultSourceMap?: boolean | 'withKeyArraySelector'
2151
2154
  returnQuery?: boolean
2152
2155
  useCdn?: boolean
@@ -2271,6 +2274,7 @@ export declare class SanityClient {
2271
2274
  getDocument<R extends Record<string, Any> = Record<string, Any>>(
2272
2275
  id: string,
2273
2276
  options?: {
2277
+ signal?: AbortSignal
2274
2278
  tag?: string
2275
2279
  },
2276
2280
  ): Promise<SanityDocument<R> | undefined>
@@ -2286,6 +2290,7 @@ export declare class SanityClient {
2286
2290
  getDocuments<R extends Record<string, Any> = Record<string, Any>>(
2287
2291
  ids: string[],
2288
2292
  options?: {
2293
+ signal?: AbortSignal
2289
2294
  tag?: string
2290
2295
  },
2291
2296
  ): Promise<(SanityDocument<R> | null)[]>
@@ -2701,7 +2706,7 @@ export declare type SanityDocument<T extends Record<string, Any> = Record<string
2701
2706
  _createdAt: string
2702
2707
  _updatedAt: string
2703
2708
  /**
2704
- * Present when `perspective` is set to `previewDrafts`
2709
+ * Present when `perspective` is set to `previewDrafts` or `bundlePerspective` is specified
2705
2710
  */
2706
2711
  _originalId?: string
2707
2712
  }
@@ -2760,6 +2765,10 @@ export declare interface SanityImagePalette {
2760
2765
  export declare interface SanityProject {
2761
2766
  id: string
2762
2767
  displayName: string
2768
+ /**
2769
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2770
+ * @see https://www.sanity.io/help/studio-host-user-applications
2771
+ */
2763
2772
  studioHost: string | null
2764
2773
  organizationId: string | null
2765
2774
  isBlocked: boolean
@@ -2772,6 +2781,10 @@ export declare interface SanityProject {
2772
2781
  metadata: {
2773
2782
  cliInitializedAt?: string
2774
2783
  color?: string
2784
+ /**
2785
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2786
+ * @see https://www.sanity.io/help/studio-host-user-applications
2787
+ */
2775
2788
  externalStudioHost?: string
2776
2789
  }
2777
2790
  }
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
-
3
1
  import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
4
2
  import {ContentSourceMapParsedPath} from '@sanity/client/csm'
5
3
  import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
@@ -333,6 +331,7 @@ export declare interface ClientConfig {
333
331
  token?: string
334
332
  /** @defaultValue 'raw' */
335
333
  perspective?: ClientPerspective
334
+ bundlePerspective?: string
336
335
  apiHost?: string
337
336
  apiVersion?: string
338
337
  proxy?: string
@@ -2014,6 +2013,8 @@ export declare interface QueryParams {
2014
2013
  /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2015
2014
  perspective?: never
2016
2015
  /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2016
+ bundlePerspective?: never
2017
+ /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2017
2018
  query?: never
2018
2019
  /** @deprecated you're using a fetch option as a GROQ parameter, this is likely a mistake */
2019
2020
  resultSourceMap?: never
@@ -2116,6 +2117,7 @@ export declare interface RequestObservableOptions extends Omit<RequestOptions, '
2116
2117
  returnQuery?: boolean
2117
2118
  resultSourceMap?: boolean | 'withKeyArraySelector'
2118
2119
  perspective?: ClientPerspective
2120
+ bundlePerspective?: string
2119
2121
  lastLiveEventId?: string
2120
2122
  }
2121
2123
 
@@ -2147,6 +2149,7 @@ export declare interface ResponseEvent<T = unknown> {
2147
2149
  /** @public */
2148
2150
  export declare interface ResponseQueryOptions extends RequestOptions {
2149
2151
  perspective?: ClientPerspective
2152
+ bundlePerspective?: string
2150
2153
  resultSourceMap?: boolean | 'withKeyArraySelector'
2151
2154
  returnQuery?: boolean
2152
2155
  useCdn?: boolean
@@ -2271,6 +2274,7 @@ export declare class SanityClient {
2271
2274
  getDocument<R extends Record<string, Any> = Record<string, Any>>(
2272
2275
  id: string,
2273
2276
  options?: {
2277
+ signal?: AbortSignal
2274
2278
  tag?: string
2275
2279
  },
2276
2280
  ): Promise<SanityDocument<R> | undefined>
@@ -2286,6 +2290,7 @@ export declare class SanityClient {
2286
2290
  getDocuments<R extends Record<string, Any> = Record<string, Any>>(
2287
2291
  ids: string[],
2288
2292
  options?: {
2293
+ signal?: AbortSignal
2289
2294
  tag?: string
2290
2295
  },
2291
2296
  ): Promise<(SanityDocument<R> | null)[]>
@@ -2701,7 +2706,7 @@ export declare type SanityDocument<T extends Record<string, Any> = Record<string
2701
2706
  _createdAt: string
2702
2707
  _updatedAt: string
2703
2708
  /**
2704
- * Present when `perspective` is set to `previewDrafts`
2709
+ * Present when `perspective` is set to `previewDrafts` or `bundlePerspective` is specified
2705
2710
  */
2706
2711
  _originalId?: string
2707
2712
  }
@@ -2760,6 +2765,10 @@ export declare interface SanityImagePalette {
2760
2765
  export declare interface SanityProject {
2761
2766
  id: string
2762
2767
  displayName: string
2768
+ /**
2769
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2770
+ * @see https://www.sanity.io/help/studio-host-user-applications
2771
+ */
2763
2772
  studioHost: string | null
2764
2773
  organizationId: string | null
2765
2774
  isBlocked: boolean
@@ -2772,6 +2781,10 @@ export declare interface SanityProject {
2772
2781
  metadata: {
2773
2782
  cliInitializedAt?: string
2774
2783
  color?: string
2784
+ /**
2785
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2786
+ * @see https://www.sanity.io/help/studio-host-user-applications
2787
+ */
2775
2788
  externalStudioHost?: string
2776
2789
  }
2777
2790
  }