@sanity/client 7.26.1 → 7.26.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.
- package/dist/_chunks-cjs/resolveEditInfo.cjs +4 -4
- package/dist/_chunks-cjs/resolveEditInfo.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs +3 -3
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/resolveEditInfo.js +4 -4
- package/dist/_chunks-es/resolveEditInfo.js.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +3 -3
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/csm.cjs.map +1 -1
- package/dist/csm.d.cts +5 -17
- package/dist/csm.d.ts +5 -17
- package/dist/csm.js.map +1 -1
- package/dist/index.browser.cjs +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +23 -62
- package/dist/index.browser.d.ts +23 -62
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -57
- package/dist/index.d.ts +22 -57
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +26 -68
- package/dist/stega.browser.d.ts +26 -68
- package/dist/stega.d.cts +26 -68
- package/dist/stega.d.ts +26 -68
- package/package.json +31 -31
- package/src/agent/actions/commonTypes.ts +1 -2
- package/src/agent/actions/generate.ts +3 -6
- package/src/agent/actions/patch.ts +3 -6
- package/src/agent/actions/prompt.ts +1 -2
- package/src/agent/actions/transform.ts +1 -2
- package/src/agent/actions/translate.ts +1 -2
- package/src/csm/applySourceDocuments.ts +1 -3
- package/src/csm/types.ts +1 -3
- package/src/data/listen.ts +1 -2
- package/src/releases/ReleasesClient.ts +2 -4
- package/src/stega/types.ts +1 -2
- package/src/types.ts +9 -38
- package/umd/sanityClient.js +21 -14
- package/umd/sanityClient.min.js +2 -2
package/dist/index.browser.d.cts
CHANGED
|
@@ -423,14 +423,7 @@ export declare interface ArchiveReleaseAction {
|
|
|
423
423
|
|
|
424
424
|
/** @public */
|
|
425
425
|
export declare type AssetMetadataType =
|
|
426
|
-
| '
|
|
427
|
-
| 'exif'
|
|
428
|
-
| 'image'
|
|
429
|
-
| 'palette'
|
|
430
|
-
| 'lqip'
|
|
431
|
-
| 'blurhash'
|
|
432
|
-
| 'thumbhash'
|
|
433
|
-
| 'none'
|
|
426
|
+
'location' | 'exif' | 'image' | 'palette' | 'lqip' | 'blurhash' | 'thumbhash' | 'none'
|
|
434
427
|
|
|
435
428
|
/** @internal */
|
|
436
429
|
export declare class AssetsClient {
|
|
@@ -872,19 +865,11 @@ export declare class ClientError extends Error {
|
|
|
872
865
|
|
|
873
866
|
/** @public */
|
|
874
867
|
export declare type ClientPerspective =
|
|
875
|
-
|
|
|
876
|
-
| 'published'
|
|
877
|
-
| 'drafts'
|
|
878
|
-
| 'raw'
|
|
879
|
-
| StackablePerspective[]
|
|
868
|
+
DeprecatedPreviewDrafts | 'published' | 'drafts' | 'raw' | StackablePerspective[]
|
|
880
869
|
|
|
881
870
|
/** @public */
|
|
882
871
|
declare type ClientPerspective_2 =
|
|
883
|
-
|
|
|
884
|
-
| 'published'
|
|
885
|
-
| 'drafts'
|
|
886
|
-
| 'raw'
|
|
887
|
-
| StackablePerspective_2[]
|
|
872
|
+
DeprecatedPreviewDrafts_2 | 'published' | 'drafts' | 'raw' | StackablePerspective_2[]
|
|
888
873
|
|
|
889
874
|
/** @public */
|
|
890
875
|
export declare type ClientReturn<
|
|
@@ -1010,8 +995,7 @@ export declare interface ContentSourceMapDocumentBase {
|
|
|
1010
995
|
|
|
1011
996
|
/** @public */
|
|
1012
997
|
export declare type ContentSourceMapDocuments = (
|
|
1013
|
-
|
|
|
1014
|
-
| ContentSourceMapRemoteDocument
|
|
998
|
+
ContentSourceMapDocument | ContentSourceMapRemoteDocument
|
|
1015
999
|
)[]
|
|
1016
1000
|
|
|
1017
1001
|
/**
|
|
@@ -1608,8 +1592,7 @@ export declare function formatQueryParseError(
|
|
|
1608
1592
|
|
|
1609
1593
|
/** @beta */
|
|
1610
1594
|
declare type GenerateAsyncInstruction<T extends Record<string, Any> = Record<string, Any>> = (
|
|
1611
|
-
|
|
|
1612
|
-
| GenerateTargetDocumentRequest<T>
|
|
1595
|
+
GenerateExistingDocumentRequest | GenerateTargetDocumentRequest<T>
|
|
1613
1596
|
) &
|
|
1614
1597
|
GenerateRequestBase &
|
|
1615
1598
|
AgentActionAsync
|
|
@@ -1628,8 +1611,7 @@ declare interface GenerateExistingDocumentRequest {
|
|
|
1628
1611
|
|
|
1629
1612
|
/** @beta */
|
|
1630
1613
|
export declare type GenerateInstruction<T extends Record<string, Any> = Record<string, Any>> =
|
|
1631
|
-
|
|
|
1632
|
-
| GenerateAsyncInstruction<T>
|
|
1614
|
+
GenerateSyncInstruction<T> | GenerateAsyncInstruction<T>
|
|
1633
1615
|
|
|
1634
1616
|
/** @beta */
|
|
1635
1617
|
export declare type GenerateOperation = 'set' | 'append' | 'mixed'
|
|
@@ -1760,8 +1742,7 @@ declare interface GenerateRequestBase extends AgentActionRequestBase {
|
|
|
1760
1742
|
|
|
1761
1743
|
/** @beta */
|
|
1762
1744
|
declare type GenerateSyncInstruction<T extends Record<string, Any> = Record<string, Any>> = (
|
|
1763
|
-
|
|
|
1764
|
-
| GenerateTargetDocumentRequest<T>
|
|
1745
|
+
GenerateExistingDocumentRequest | GenerateTargetDocumentRequest<T>
|
|
1765
1746
|
) &
|
|
1766
1747
|
GenerateRequestBase &
|
|
1767
1748
|
AgentActionSync
|
|
@@ -2098,12 +2079,7 @@ export declare function _listen<
|
|
|
2098
2079
|
|
|
2099
2080
|
/** @public */
|
|
2100
2081
|
export declare type ListenEvent<R extends Record<string, Any> = Record<string, Any>> =
|
|
2101
|
-
|
|
2102
|
-
| ReconnectEvent
|
|
2103
|
-
| WelcomeBackEvent
|
|
2104
|
-
| ResetEvent
|
|
2105
|
-
| WelcomeEvent
|
|
2106
|
-
| OpenEvent
|
|
2082
|
+
MutationEvent<R> | ReconnectEvent | WelcomeBackEvent | ResetEvent | WelcomeEvent | OpenEvent
|
|
2107
2083
|
|
|
2108
2084
|
/**
|
|
2109
2085
|
* Maps a ListenOptions object and returns the Listen events opted for, e.g:
|
|
@@ -2243,11 +2219,7 @@ export declare class LiveClient {
|
|
|
2243
2219
|
|
|
2244
2220
|
/** @public */
|
|
2245
2221
|
export declare type LiveEvent =
|
|
2246
|
-
|
|
|
2247
|
-
| LiveEventReconnect
|
|
2248
|
-
| LiveEventMessage
|
|
2249
|
-
| LiveEventWelcome
|
|
2250
|
-
| LiveEventGoAway
|
|
2222
|
+
LiveEventRestart | LiveEventReconnect | LiveEventMessage | LiveEventWelcome | LiveEventGoAway
|
|
2251
2223
|
|
|
2252
2224
|
/**
|
|
2253
2225
|
* The `id` field is the position at which the connection was rejected or closed.
|
|
@@ -2302,8 +2274,7 @@ export declare type Logger =
|
|
|
2302
2274
|
declare type MapListenEventNamesToListenEvents<
|
|
2303
2275
|
R extends Record<string, Any> = Record<string, Any>,
|
|
2304
2276
|
Events extends (ResumableListenEventNames | ListenEventName)[] = (
|
|
2305
|
-
|
|
|
2306
|
-
| ListenEventName
|
|
2277
|
+
ResumableListenEventNames | ListenEventName
|
|
2307
2278
|
)[],
|
|
2308
2279
|
> = Events extends (infer E)[]
|
|
2309
2280
|
? E extends 'welcome'
|
|
@@ -4024,21 +3995,18 @@ export declare type PatchBuilder = (patch: Patch) => Patch
|
|
|
4024
3995
|
|
|
4025
3996
|
/** @beta */
|
|
4026
3997
|
export declare type PatchDocument<T extends Record<string, Any> = Record<string, Any>> =
|
|
4027
|
-
|
|
|
4028
|
-
| PatchDocumentAsync<T>
|
|
3998
|
+
PatchDocumentSync<T> | PatchDocumentAsync<T>
|
|
4029
3999
|
|
|
4030
4000
|
/** @beta */
|
|
4031
4001
|
declare type PatchDocumentAsync<T extends Record<string, Any> = Record<string, Any>> = (
|
|
4032
|
-
|
|
|
4033
|
-
| PatchTargetDocumentRequest<T>
|
|
4002
|
+
PatchExistingDocumentRequest | PatchTargetDocumentRequest<T>
|
|
4034
4003
|
) &
|
|
4035
4004
|
PatchRequestBase &
|
|
4036
4005
|
AgentActionAsync
|
|
4037
4006
|
|
|
4038
4007
|
/** @beta */
|
|
4039
4008
|
declare type PatchDocumentSync<T extends Record<string, Any> = Record<string, Any>> = (
|
|
4040
|
-
|
|
|
4041
|
-
| PatchTargetDocumentRequest<T>
|
|
4009
|
+
PatchExistingDocumentRequest | PatchTargetDocumentRequest<T>
|
|
4042
4010
|
) &
|
|
4043
4011
|
PatchRequestBase &
|
|
4044
4012
|
AgentActionSync
|
|
@@ -4204,8 +4172,7 @@ declare interface PromptJsonResponse<T extends Record<string, Any> = Record<stri
|
|
|
4204
4172
|
|
|
4205
4173
|
/** @beta */
|
|
4206
4174
|
export declare type PromptRequest<T extends Record<string, Any> = Record<string, Any>> = (
|
|
4207
|
-
|
|
|
4208
|
-
| PromptJsonResponse<T>
|
|
4175
|
+
PromptTextResponse | PromptJsonResponse<T>
|
|
4209
4176
|
) &
|
|
4210
4177
|
PromptRequestBase
|
|
4211
4178
|
|
|
@@ -4350,9 +4317,7 @@ export declare interface PublishReleaseAction {
|
|
|
4350
4317
|
|
|
4351
4318
|
/** @public */
|
|
4352
4319
|
export declare type QueryOptions =
|
|
4353
|
-
|
|
|
4354
|
-
| UnfilteredResponseQueryOptions
|
|
4355
|
-
| UnfilteredResponseWithoutQuery
|
|
4320
|
+
FilteredResponseQueryOptions | UnfilteredResponseQueryOptions | UnfilteredResponseWithoutQuery
|
|
4356
4321
|
|
|
4357
4322
|
/** @public */
|
|
4358
4323
|
export declare interface QueryParams {
|
|
@@ -4989,8 +4954,10 @@ export declare type ResumableListenEventNames =
|
|
|
4989
4954
|
| 'reset'
|
|
4990
4955
|
|
|
4991
4956
|
/** @public */
|
|
4992
|
-
export declare interface ResumableListenOptions
|
|
4993
|
-
|
|
4957
|
+
export declare interface ResumableListenOptions extends Omit<
|
|
4958
|
+
ListenOptions,
|
|
4959
|
+
'events' | 'enableResume'
|
|
4960
|
+
> {
|
|
4994
4961
|
/**
|
|
4995
4962
|
* If this is enabled, the client will normally resume events upon reconnect
|
|
4996
4963
|
* Note that you should also subscribe to `reset`-events and handle the case where the backend is unable to resume
|
|
@@ -6162,8 +6129,7 @@ export declare type TransactionMutationOptions =
|
|
|
6162
6129
|
|
|
6163
6130
|
/** @beta */
|
|
6164
6131
|
export declare type TransformDocument<T extends Record<string, Any> = Record<string, Any>> =
|
|
6165
|
-
|
|
6166
|
-
| TransformDocumentAsync
|
|
6132
|
+
TransformDocumentSync<T> | TransformDocumentAsync
|
|
6167
6133
|
|
|
6168
6134
|
/** @beta */
|
|
6169
6135
|
declare type TransformDocumentAsync = TransformRequestBase & AgentActionAsync
|
|
@@ -6427,8 +6393,7 @@ export declare interface TransformTargetInclude extends AgentActionTargetInclude
|
|
|
6427
6393
|
|
|
6428
6394
|
/** @beta */
|
|
6429
6395
|
export declare type TranslateDocument<T extends Record<string, Any> = Record<string, Any>> =
|
|
6430
|
-
|
|
6431
|
-
| TranslateDocumentAsync
|
|
6396
|
+
TranslateDocumentSync<T> | TranslateDocumentAsync
|
|
6432
6397
|
|
|
6433
6398
|
/** @beta */
|
|
6434
6399
|
declare type TranslateDocumentAsync = TranslateRequestBase & AgentActionAsync
|
|
@@ -6705,10 +6670,7 @@ export declare function validateApiPerspective(
|
|
|
6705
6670
|
|
|
6706
6671
|
/** @public */
|
|
6707
6672
|
export declare type VersionAction =
|
|
6708
|
-
|
|
|
6709
|
-
| DiscardVersionAction
|
|
6710
|
-
| ReplaceVersionAction
|
|
6711
|
-
| UnpublishVersionAction
|
|
6673
|
+
CreateVersionAction | DiscardVersionAction | ReplaceVersionAction | UnpublishVersionAction
|
|
6712
6674
|
|
|
6713
6675
|
/** @public */
|
|
6714
6676
|
export declare interface VideoPlaybackInfo<
|
|
@@ -6733,8 +6695,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6733
6695
|
|
|
6734
6696
|
/** @public */
|
|
6735
6697
|
export declare type VideoPlaybackInfoItem =
|
|
6736
|
-
|
|
|
6737
|
-
| VideoPlaybackInfoItemSigned
|
|
6698
|
+
VideoPlaybackInfoItemPublic | VideoPlaybackInfoItemSigned
|
|
6738
6699
|
|
|
6739
6700
|
/** @public */
|
|
6740
6701
|
export declare interface VideoPlaybackInfoItemPublic {
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -423,14 +423,7 @@ export declare interface ArchiveReleaseAction {
|
|
|
423
423
|
|
|
424
424
|
/** @public */
|
|
425
425
|
export declare type AssetMetadataType =
|
|
426
|
-
| '
|
|
427
|
-
| 'exif'
|
|
428
|
-
| 'image'
|
|
429
|
-
| 'palette'
|
|
430
|
-
| 'lqip'
|
|
431
|
-
| 'blurhash'
|
|
432
|
-
| 'thumbhash'
|
|
433
|
-
| 'none'
|
|
426
|
+
'location' | 'exif' | 'image' | 'palette' | 'lqip' | 'blurhash' | 'thumbhash' | 'none'
|
|
434
427
|
|
|
435
428
|
/** @internal */
|
|
436
429
|
export declare class AssetsClient {
|
|
@@ -872,19 +865,11 @@ export declare class ClientError extends Error {
|
|
|
872
865
|
|
|
873
866
|
/** @public */
|
|
874
867
|
export declare type ClientPerspective =
|
|
875
|
-
|
|
|
876
|
-
| 'published'
|
|
877
|
-
| 'drafts'
|
|
878
|
-
| 'raw'
|
|
879
|
-
| StackablePerspective[]
|
|
868
|
+
DeprecatedPreviewDrafts | 'published' | 'drafts' | 'raw' | StackablePerspective[]
|
|
880
869
|
|
|
881
870
|
/** @public */
|
|
882
871
|
declare type ClientPerspective_2 =
|
|
883
|
-
|
|
|
884
|
-
| 'published'
|
|
885
|
-
| 'drafts'
|
|
886
|
-
| 'raw'
|
|
887
|
-
| StackablePerspective_2[]
|
|
872
|
+
DeprecatedPreviewDrafts_2 | 'published' | 'drafts' | 'raw' | StackablePerspective_2[]
|
|
888
873
|
|
|
889
874
|
/** @public */
|
|
890
875
|
export declare type ClientReturn<
|
|
@@ -1010,8 +995,7 @@ export declare interface ContentSourceMapDocumentBase {
|
|
|
1010
995
|
|
|
1011
996
|
/** @public */
|
|
1012
997
|
export declare type ContentSourceMapDocuments = (
|
|
1013
|
-
|
|
|
1014
|
-
| ContentSourceMapRemoteDocument
|
|
998
|
+
ContentSourceMapDocument | ContentSourceMapRemoteDocument
|
|
1015
999
|
)[]
|
|
1016
1000
|
|
|
1017
1001
|
/**
|
|
@@ -1608,8 +1592,7 @@ export declare function formatQueryParseError(
|
|
|
1608
1592
|
|
|
1609
1593
|
/** @beta */
|
|
1610
1594
|
declare type GenerateAsyncInstruction<T extends Record<string, Any> = Record<string, Any>> = (
|
|
1611
|
-
|
|
|
1612
|
-
| GenerateTargetDocumentRequest<T>
|
|
1595
|
+
GenerateExistingDocumentRequest | GenerateTargetDocumentRequest<T>
|
|
1613
1596
|
) &
|
|
1614
1597
|
GenerateRequestBase &
|
|
1615
1598
|
AgentActionAsync
|
|
@@ -1628,8 +1611,7 @@ declare interface GenerateExistingDocumentRequest {
|
|
|
1628
1611
|
|
|
1629
1612
|
/** @beta */
|
|
1630
1613
|
export declare type GenerateInstruction<T extends Record<string, Any> = Record<string, Any>> =
|
|
1631
|
-
|
|
|
1632
|
-
| GenerateAsyncInstruction<T>
|
|
1614
|
+
GenerateSyncInstruction<T> | GenerateAsyncInstruction<T>
|
|
1633
1615
|
|
|
1634
1616
|
/** @beta */
|
|
1635
1617
|
export declare type GenerateOperation = 'set' | 'append' | 'mixed'
|
|
@@ -1760,8 +1742,7 @@ declare interface GenerateRequestBase extends AgentActionRequestBase {
|
|
|
1760
1742
|
|
|
1761
1743
|
/** @beta */
|
|
1762
1744
|
declare type GenerateSyncInstruction<T extends Record<string, Any> = Record<string, Any>> = (
|
|
1763
|
-
|
|
|
1764
|
-
| GenerateTargetDocumentRequest<T>
|
|
1745
|
+
GenerateExistingDocumentRequest | GenerateTargetDocumentRequest<T>
|
|
1765
1746
|
) &
|
|
1766
1747
|
GenerateRequestBase &
|
|
1767
1748
|
AgentActionSync
|
|
@@ -2098,12 +2079,7 @@ export declare function _listen<
|
|
|
2098
2079
|
|
|
2099
2080
|
/** @public */
|
|
2100
2081
|
export declare type ListenEvent<R extends Record<string, Any> = Record<string, Any>> =
|
|
2101
|
-
|
|
2102
|
-
| ReconnectEvent
|
|
2103
|
-
| WelcomeBackEvent
|
|
2104
|
-
| ResetEvent
|
|
2105
|
-
| WelcomeEvent
|
|
2106
|
-
| OpenEvent
|
|
2082
|
+
MutationEvent<R> | ReconnectEvent | WelcomeBackEvent | ResetEvent | WelcomeEvent | OpenEvent
|
|
2107
2083
|
|
|
2108
2084
|
/**
|
|
2109
2085
|
* Maps a ListenOptions object and returns the Listen events opted for, e.g:
|
|
@@ -2243,11 +2219,7 @@ export declare class LiveClient {
|
|
|
2243
2219
|
|
|
2244
2220
|
/** @public */
|
|
2245
2221
|
export declare type LiveEvent =
|
|
2246
|
-
|
|
|
2247
|
-
| LiveEventReconnect
|
|
2248
|
-
| LiveEventMessage
|
|
2249
|
-
| LiveEventWelcome
|
|
2250
|
-
| LiveEventGoAway
|
|
2222
|
+
LiveEventRestart | LiveEventReconnect | LiveEventMessage | LiveEventWelcome | LiveEventGoAway
|
|
2251
2223
|
|
|
2252
2224
|
/**
|
|
2253
2225
|
* The `id` field is the position at which the connection was rejected or closed.
|
|
@@ -2302,8 +2274,7 @@ export declare type Logger =
|
|
|
2302
2274
|
declare type MapListenEventNamesToListenEvents<
|
|
2303
2275
|
R extends Record<string, Any> = Record<string, Any>,
|
|
2304
2276
|
Events extends (ResumableListenEventNames | ListenEventName)[] = (
|
|
2305
|
-
|
|
|
2306
|
-
| ListenEventName
|
|
2277
|
+
ResumableListenEventNames | ListenEventName
|
|
2307
2278
|
)[],
|
|
2308
2279
|
> = Events extends (infer E)[]
|
|
2309
2280
|
? E extends 'welcome'
|
|
@@ -4024,21 +3995,18 @@ export declare type PatchBuilder = (patch: Patch) => Patch
|
|
|
4024
3995
|
|
|
4025
3996
|
/** @beta */
|
|
4026
3997
|
export declare type PatchDocument<T extends Record<string, Any> = Record<string, Any>> =
|
|
4027
|
-
|
|
|
4028
|
-
| PatchDocumentAsync<T>
|
|
3998
|
+
PatchDocumentSync<T> | PatchDocumentAsync<T>
|
|
4029
3999
|
|
|
4030
4000
|
/** @beta */
|
|
4031
4001
|
declare type PatchDocumentAsync<T extends Record<string, Any> = Record<string, Any>> = (
|
|
4032
|
-
|
|
|
4033
|
-
| PatchTargetDocumentRequest<T>
|
|
4002
|
+
PatchExistingDocumentRequest | PatchTargetDocumentRequest<T>
|
|
4034
4003
|
) &
|
|
4035
4004
|
PatchRequestBase &
|
|
4036
4005
|
AgentActionAsync
|
|
4037
4006
|
|
|
4038
4007
|
/** @beta */
|
|
4039
4008
|
declare type PatchDocumentSync<T extends Record<string, Any> = Record<string, Any>> = (
|
|
4040
|
-
|
|
|
4041
|
-
| PatchTargetDocumentRequest<T>
|
|
4009
|
+
PatchExistingDocumentRequest | PatchTargetDocumentRequest<T>
|
|
4042
4010
|
) &
|
|
4043
4011
|
PatchRequestBase &
|
|
4044
4012
|
AgentActionSync
|
|
@@ -4204,8 +4172,7 @@ declare interface PromptJsonResponse<T extends Record<string, Any> = Record<stri
|
|
|
4204
4172
|
|
|
4205
4173
|
/** @beta */
|
|
4206
4174
|
export declare type PromptRequest<T extends Record<string, Any> = Record<string, Any>> = (
|
|
4207
|
-
|
|
|
4208
|
-
| PromptJsonResponse<T>
|
|
4175
|
+
PromptTextResponse | PromptJsonResponse<T>
|
|
4209
4176
|
) &
|
|
4210
4177
|
PromptRequestBase
|
|
4211
4178
|
|
|
@@ -4350,9 +4317,7 @@ export declare interface PublishReleaseAction {
|
|
|
4350
4317
|
|
|
4351
4318
|
/** @public */
|
|
4352
4319
|
export declare type QueryOptions =
|
|
4353
|
-
|
|
|
4354
|
-
| UnfilteredResponseQueryOptions
|
|
4355
|
-
| UnfilteredResponseWithoutQuery
|
|
4320
|
+
FilteredResponseQueryOptions | UnfilteredResponseQueryOptions | UnfilteredResponseWithoutQuery
|
|
4356
4321
|
|
|
4357
4322
|
/** @public */
|
|
4358
4323
|
export declare interface QueryParams {
|
|
@@ -4989,8 +4954,10 @@ export declare type ResumableListenEventNames =
|
|
|
4989
4954
|
| 'reset'
|
|
4990
4955
|
|
|
4991
4956
|
/** @public */
|
|
4992
|
-
export declare interface ResumableListenOptions
|
|
4993
|
-
|
|
4957
|
+
export declare interface ResumableListenOptions extends Omit<
|
|
4958
|
+
ListenOptions,
|
|
4959
|
+
'events' | 'enableResume'
|
|
4960
|
+
> {
|
|
4994
4961
|
/**
|
|
4995
4962
|
* If this is enabled, the client will normally resume events upon reconnect
|
|
4996
4963
|
* Note that you should also subscribe to `reset`-events and handle the case where the backend is unable to resume
|
|
@@ -6162,8 +6129,7 @@ export declare type TransactionMutationOptions =
|
|
|
6162
6129
|
|
|
6163
6130
|
/** @beta */
|
|
6164
6131
|
export declare type TransformDocument<T extends Record<string, Any> = Record<string, Any>> =
|
|
6165
|
-
|
|
6166
|
-
| TransformDocumentAsync
|
|
6132
|
+
TransformDocumentSync<T> | TransformDocumentAsync
|
|
6167
6133
|
|
|
6168
6134
|
/** @beta */
|
|
6169
6135
|
declare type TransformDocumentAsync = TransformRequestBase & AgentActionAsync
|
|
@@ -6427,8 +6393,7 @@ export declare interface TransformTargetInclude extends AgentActionTargetInclude
|
|
|
6427
6393
|
|
|
6428
6394
|
/** @beta */
|
|
6429
6395
|
export declare type TranslateDocument<T extends Record<string, Any> = Record<string, Any>> =
|
|
6430
|
-
|
|
6431
|
-
| TranslateDocumentAsync
|
|
6396
|
+
TranslateDocumentSync<T> | TranslateDocumentAsync
|
|
6432
6397
|
|
|
6433
6398
|
/** @beta */
|
|
6434
6399
|
declare type TranslateDocumentAsync = TranslateRequestBase & AgentActionAsync
|
|
@@ -6705,10 +6670,7 @@ export declare function validateApiPerspective(
|
|
|
6705
6670
|
|
|
6706
6671
|
/** @public */
|
|
6707
6672
|
export declare type VersionAction =
|
|
6708
|
-
|
|
|
6709
|
-
| DiscardVersionAction
|
|
6710
|
-
| ReplaceVersionAction
|
|
6711
|
-
| UnpublishVersionAction
|
|
6673
|
+
CreateVersionAction | DiscardVersionAction | ReplaceVersionAction | UnpublishVersionAction
|
|
6712
6674
|
|
|
6713
6675
|
/** @public */
|
|
6714
6676
|
export declare interface VideoPlaybackInfo<
|
|
@@ -6733,8 +6695,7 @@ export declare interface VideoPlaybackInfo<
|
|
|
6733
6695
|
|
|
6734
6696
|
/** @public */
|
|
6735
6697
|
export declare type VideoPlaybackInfoItem =
|
|
6736
|
-
|
|
|
6737
|
-
| VideoPlaybackInfoItemSigned
|
|
6698
|
+
VideoPlaybackInfoItemPublic | VideoPlaybackInfoItemSigned
|
|
6738
6699
|
|
|
6739
6700
|
/** @public */
|
|
6740
6701
|
export declare interface VideoPlaybackInfoItemPublic {
|
package/dist/index.browser.js
CHANGED
|
@@ -870,7 +870,7 @@ function requestOptions(config, overrides = {}) {
|
|
|
870
870
|
const withCredentials = !!(typeof overrides.withCredentials > "u" ? config.withCredentials : overrides.withCredentials), timeout = typeof overrides.timeout > "u" ? config.timeout : overrides.timeout;
|
|
871
871
|
return Object.assign({}, overrides, {
|
|
872
872
|
headers: Object.assign({}, headers, overrides.headers || {}),
|
|
873
|
-
timeout: typeof timeout > "u" ?
|
|
873
|
+
timeout: typeof timeout > "u" ? 300 * 1e3 : timeout,
|
|
874
874
|
proxy: overrides.proxy || config.proxy,
|
|
875
875
|
json: !0,
|
|
876
876
|
withCredentials,
|