@sanity/client 6.21.2 → 6.21.3-canary.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/index.d.cts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+
1
3
  import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
2
4
  import {ContentSourceMapParsedPath} from '@sanity/client/csm'
3
5
  import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
@@ -2269,6 +2271,7 @@ export declare class SanityClient {
2269
2271
  getDocument<R extends Record<string, Any> = Record<string, Any>>(
2270
2272
  id: string,
2271
2273
  options?: {
2274
+ signal?: AbortSignal
2272
2275
  tag?: string
2273
2276
  },
2274
2277
  ): Promise<SanityDocument<R> | undefined>
@@ -2284,6 +2287,7 @@ export declare class SanityClient {
2284
2287
  getDocuments<R extends Record<string, Any> = Record<string, Any>>(
2285
2288
  ids: string[],
2286
2289
  options?: {
2290
+ signal?: AbortSignal
2287
2291
  tag?: string
2288
2292
  },
2289
2293
  ): Promise<(SanityDocument<R> | null)[]>
@@ -2758,6 +2762,10 @@ export declare interface SanityImagePalette {
2758
2762
  export declare interface SanityProject {
2759
2763
  id: string
2760
2764
  displayName: string
2765
+ /**
2766
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2767
+ * @see https://www.sanity.io/help/studio-host-user-applications
2768
+ */
2761
2769
  studioHost: string | null
2762
2770
  organizationId: string | null
2763
2771
  isBlocked: boolean
@@ -2770,6 +2778,10 @@ export declare interface SanityProject {
2770
2778
  metadata: {
2771
2779
  cliInitializedAt?: string
2772
2780
  color?: string
2781
+ /**
2782
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2783
+ * @see https://www.sanity.io/help/studio-host-user-applications
2784
+ */
2773
2785
  externalStudioHost?: string
2774
2786
  }
2775
2787
  }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference types="node" />
2
+
1
3
  import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
2
4
  import {ContentSourceMapParsedPath} from '@sanity/client/csm'
3
5
  import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
@@ -2269,6 +2271,7 @@ export declare class SanityClient {
2269
2271
  getDocument<R extends Record<string, Any> = Record<string, Any>>(
2270
2272
  id: string,
2271
2273
  options?: {
2274
+ signal?: AbortSignal
2272
2275
  tag?: string
2273
2276
  },
2274
2277
  ): Promise<SanityDocument<R> | undefined>
@@ -2284,6 +2287,7 @@ export declare class SanityClient {
2284
2287
  getDocuments<R extends Record<string, Any> = Record<string, Any>>(
2285
2288
  ids: string[],
2286
2289
  options?: {
2290
+ signal?: AbortSignal
2287
2291
  tag?: string
2288
2292
  },
2289
2293
  ): Promise<(SanityDocument<R> | null)[]>
@@ -2758,6 +2762,10 @@ export declare interface SanityImagePalette {
2758
2762
  export declare interface SanityProject {
2759
2763
  id: string
2760
2764
  displayName: string
2765
+ /**
2766
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2767
+ * @see https://www.sanity.io/help/studio-host-user-applications
2768
+ */
2761
2769
  studioHost: string | null
2762
2770
  organizationId: string | null
2763
2771
  isBlocked: boolean
@@ -2770,6 +2778,10 @@ export declare interface SanityProject {
2770
2778
  metadata: {
2771
2779
  cliInitializedAt?: string
2772
2780
  color?: string
2781
+ /**
2782
+ * @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
2783
+ * @see https://www.sanity.io/help/studio-host-user-applications
2784
+ */
2773
2785
  externalStudioHost?: string
2774
2786
  }
2775
2787
  }