@sanity/sdk 0.0.0-alpha.16 → 0.0.0-alpha.18

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.ts CHANGED
@@ -20,7 +20,6 @@ import {SanityClient} from '@sanity/client'
20
20
  import {SanityDocument} from '@sanity/types'
21
21
  import {SanityDocumentLike} from '@sanity/types'
22
22
  import {SanityProject as SanityProject_2} from '@sanity/client'
23
- import {SchemaTypeDefinition} from '@sanity/types'
24
23
  import {Subject} from 'rxjs'
25
24
 
26
25
  declare interface AccessAttributeNode extends BaseNode {
@@ -303,6 +302,7 @@ export declare interface AuthStoreState {
303
302
  callbackUrl: string | undefined
304
303
  providedToken: string | undefined
305
304
  }
305
+ dashboardContext?: DashboardContext
306
306
  }
307
307
 
308
308
  /** The base interface for SyntaxNode. */
@@ -481,6 +481,17 @@ export declare const createUsersStore: (instance: SanityInstance | ActionContext
481
481
 
482
482
  export {CurrentUser}
483
483
 
484
+ /**
485
+ * Represents the various states the authentication can be in.
486
+ *
487
+ * @public
488
+ */
489
+ declare interface DashboardContext {
490
+ mode?: string
491
+ env?: string
492
+ orgId?: string | object
493
+ }
494
+
484
495
  declare class DateTime {
485
496
  date: Date
486
497
  constructor(date: Date)
@@ -1524,6 +1535,17 @@ declare interface PosNode extends BaseNode {
1524
1535
  base: ExprNode
1525
1536
  }
1526
1537
 
1538
+ /**
1539
+ * Represents a media asset in a preview.
1540
+ *
1541
+ * @public
1542
+ */
1543
+ declare interface PreviewMedia {
1544
+ type: 'image-asset'
1545
+ _ref: string
1546
+ url: string
1547
+ }
1548
+
1527
1549
  /**
1528
1550
  * @public
1529
1551
  */
@@ -1561,10 +1583,7 @@ export declare interface PreviewValue {
1561
1583
  * An optional piece of media representing the document within its preview.
1562
1584
  * Currently, only image assets are available.
1563
1585
  */
1564
- media?: {
1565
- type: 'image-asset'
1566
- url: string
1567
- } | null
1586
+ media?: PreviewMedia | null
1568
1587
  /**
1569
1588
  * The status of the document.
1570
1589
  */
@@ -1818,7 +1837,6 @@ export declare interface SanityConfig {
1818
1837
  projectId: string
1819
1838
  dataset: string
1820
1839
  auth?: AuthConfig
1821
- schema?: SchemaConfig
1822
1840
  }
1823
1841
 
1824
1842
  export {SanityDocument}
@@ -1838,7 +1856,9 @@ export declare interface SanityInstance {
1838
1856
  dispose: () => void
1839
1857
  }
1840
1858
 
1841
- /** @public */
1859
+ /**
1860
+ * @public
1861
+ */
1842
1862
  export declare type SanityProject = SanityProject_2
1843
1863
 
1844
1864
  /**
@@ -1859,13 +1879,6 @@ declare interface SanityUserResponse {
1859
1879
  nextCursor: string | null
1860
1880
  }
1861
1881
 
1862
- /**
1863
- * @public
1864
- */
1865
- export declare interface SchemaConfig {
1866
- types: SchemaTypeDefinition[]
1867
- }
1868
-
1869
1882
  declare class Scope {
1870
1883
  params: Record<string, unknown>
1871
1884
  source: Value