@sanity/client 7.11.1 → 7.11.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.
@@ -2018,6 +2018,21 @@ export declare type ImageDescriptionOperation = {
2018
2018
  }
2019
2019
  )
2020
2020
 
2021
+ /** @public */
2022
+ export declare type ImportReleaseAction =
2023
+ | {
2024
+ actionType: 'sanity.action.release.import'
2025
+ attributes: IdentifiedSanityDocumentStub
2026
+ releaseId: string
2027
+ ifExists: 'fail' | 'ignore' | 'replace'
2028
+ }
2029
+ | {
2030
+ actionType: 'sanity.action.release.import'
2031
+ document: IdentifiedSanityDocumentStub
2032
+ releaseId: string
2033
+ ifExists: 'fail' | 'ignore' | 'replace'
2034
+ }
2035
+
2021
2036
  /** @public */
2022
2037
  export declare interface InitializedClientConfig extends ClientConfig {
2023
2038
  apiHost: string
@@ -4407,6 +4422,7 @@ export declare type ReleaseAction =
4407
4422
  | ScheduleReleaseAction
4408
4423
  | UnscheduleReleaseAction
4409
4424
  | DeleteReleaseAction
4425
+ | ImportReleaseAction
4410
4426
 
4411
4427
  /** @public */
4412
4428
  export declare type ReleaseCardinality = 'many' | 'one' | undefined
@@ -2018,6 +2018,21 @@ export declare type ImageDescriptionOperation = {
2018
2018
  }
2019
2019
  )
2020
2020
 
2021
+ /** @public */
2022
+ export declare type ImportReleaseAction =
2023
+ | {
2024
+ actionType: 'sanity.action.release.import'
2025
+ attributes: IdentifiedSanityDocumentStub
2026
+ releaseId: string
2027
+ ifExists: 'fail' | 'ignore' | 'replace'
2028
+ }
2029
+ | {
2030
+ actionType: 'sanity.action.release.import'
2031
+ document: IdentifiedSanityDocumentStub
2032
+ releaseId: string
2033
+ ifExists: 'fail' | 'ignore' | 'replace'
2034
+ }
2035
+
2021
2036
  /** @public */
2022
2037
  export declare interface InitializedClientConfig extends ClientConfig {
2023
2038
  apiHost: string
@@ -4407,6 +4422,7 @@ export declare type ReleaseAction =
4407
4422
  | ScheduleReleaseAction
4408
4423
  | UnscheduleReleaseAction
4409
4424
  | DeleteReleaseAction
4425
+ | ImportReleaseAction
4410
4426
 
4411
4427
  /** @public */
4412
4428
  export declare type ReleaseCardinality = 'many' | 'one' | undefined
package/dist/stega.d.cts CHANGED
@@ -2018,6 +2018,21 @@ export declare type ImageDescriptionOperation = {
2018
2018
  }
2019
2019
  )
2020
2020
 
2021
+ /** @public */
2022
+ export declare type ImportReleaseAction =
2023
+ | {
2024
+ actionType: 'sanity.action.release.import'
2025
+ attributes: IdentifiedSanityDocumentStub
2026
+ releaseId: string
2027
+ ifExists: 'fail' | 'ignore' | 'replace'
2028
+ }
2029
+ | {
2030
+ actionType: 'sanity.action.release.import'
2031
+ document: IdentifiedSanityDocumentStub
2032
+ releaseId: string
2033
+ ifExists: 'fail' | 'ignore' | 'replace'
2034
+ }
2035
+
2021
2036
  /** @public */
2022
2037
  export declare interface InitializedClientConfig extends ClientConfig {
2023
2038
  apiHost: string
@@ -4407,6 +4422,7 @@ export declare type ReleaseAction =
4407
4422
  | ScheduleReleaseAction
4408
4423
  | UnscheduleReleaseAction
4409
4424
  | DeleteReleaseAction
4425
+ | ImportReleaseAction
4410
4426
 
4411
4427
  /** @public */
4412
4428
  export declare type ReleaseCardinality = 'many' | 'one' | undefined
package/dist/stega.d.ts CHANGED
@@ -2018,6 +2018,21 @@ export declare type ImageDescriptionOperation = {
2018
2018
  }
2019
2019
  )
2020
2020
 
2021
+ /** @public */
2022
+ export declare type ImportReleaseAction =
2023
+ | {
2024
+ actionType: 'sanity.action.release.import'
2025
+ attributes: IdentifiedSanityDocumentStub
2026
+ releaseId: string
2027
+ ifExists: 'fail' | 'ignore' | 'replace'
2028
+ }
2029
+ | {
2030
+ actionType: 'sanity.action.release.import'
2031
+ document: IdentifiedSanityDocumentStub
2032
+ releaseId: string
2033
+ ifExists: 'fail' | 'ignore' | 'replace'
2034
+ }
2035
+
2021
2036
  /** @public */
2022
2037
  export declare interface InitializedClientConfig extends ClientConfig {
2023
2038
  apiHost: string
@@ -4407,6 +4422,7 @@ export declare type ReleaseAction =
4407
4422
  | ScheduleReleaseAction
4408
4423
  | UnscheduleReleaseAction
4409
4424
  | DeleteReleaseAction
4425
+ | ImportReleaseAction
4410
4426
 
4411
4427
  /** @public */
4412
4428
  export declare type ReleaseCardinality = 'many' | 'one' | undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/client",
3
- "version": "7.11.1",
3
+ "version": "7.11.2",
4
4
  "description": "Client for retrieving, creating and patching data from Sanity.io",
5
5
  "keywords": [
6
6
  "sanity",
package/src/types.ts CHANGED
@@ -622,6 +622,7 @@ export type ReleaseAction =
622
622
  | ScheduleReleaseAction
623
623
  | UnscheduleReleaseAction
624
624
  | DeleteReleaseAction
625
+ | ImportReleaseAction
625
626
 
626
627
  /** @public */
627
628
  export type VersionAction =
@@ -642,6 +643,21 @@ export type Action =
642
643
  | VersionAction
643
644
  | ReleaseAction
644
645
 
646
+ /** @public */
647
+ export type ImportReleaseAction =
648
+ | {
649
+ actionType: 'sanity.action.release.import'
650
+ attributes: IdentifiedSanityDocumentStub
651
+ releaseId: string
652
+ ifExists: 'fail' | 'ignore' | 'replace'
653
+ }
654
+ | {
655
+ actionType: 'sanity.action.release.import'
656
+ document: IdentifiedSanityDocumentStub
657
+ releaseId: string
658
+ ifExists: 'fail' | 'ignore' | 'replace'
659
+ }
660
+
645
661
  /**
646
662
  * Creates a new release under the given id, with metadata.
647
663
  *