@sanity/workflow-engine 0.21.0 → 0.22.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/CHANGELOG.md +6 -0
- package/dist/_chunks-cjs/invariants.cjs +2 -2
- package/dist/_chunks-es/invariants.js +2 -2
- package/dist/define.d.cts +11 -16
- package/dist/define.d.ts +11 -16
- package/dist/index.d.cts +22 -12
- package/dist/index.d.ts +22 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -150,7 +150,7 @@ function parentRef(instance) {
|
|
|
150
150
|
return instance.ancestors.at(-1);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
const DATA_MODEL_VERSION = 4, DATA_MODEL_MIN_READER = 4, READER_MODEL_ROLLOUT_URL = "https://
|
|
153
|
+
const DATA_MODEL_VERSION = 4, DATA_MODEL_MIN_READER = 4, READER_MODEL_ROLLOUT_URL = "https://www.sanity.io/docs/editorial-workflows/prerelease";
|
|
154
154
|
|
|
155
155
|
class ReaderModelAcknowledgementError extends WorkflowError {
|
|
156
156
|
code="WORKFLOW_READER_MODEL_ACKNOWLEDGEMENT_MISMATCH";
|
|
@@ -160,7 +160,7 @@ class ReaderModelAcknowledgementError extends WorkflowError {
|
|
|
160
160
|
documentationUrl=READER_MODEL_ROLLOUT_URL;
|
|
161
161
|
constructor(expectedMinReaderModel, context = "Deployment") {
|
|
162
162
|
const expected = expectedMinReaderModel === void 0 ? "missing" : String(expectedMinReaderModel);
|
|
163
|
-
super("reader-model-acknowledgement", `${context} expected reader floor ${expected}; the installed engine requires acknowledgement ${DATA_MODEL_MIN_READER}.
|
|
163
|
+
super("reader-model-acknowledgement", `${context} expected reader floor ${expected}; the installed engine requires acknowledgement ${DATA_MODEL_MIN_READER}. Do not change the acknowledgement yet: accepting ${DATA_MODEL_MIN_READER} authorizes this engine to write documents that older readers will refuse. Upgrade every Studio, CLI, MCP server, Function, and other runtime that reads engine-owned documents; verify that rollout in every environment sharing the workflow resource; then change the literal in deployment configuration and deploy the writer. Rollout guide: ${READER_MODEL_ROLLOUT_URL}`),
|
|
164
164
|
this.name = "ReaderModelAcknowledgementError", this.expectedMinReaderModel = expectedMinReaderModel;
|
|
165
165
|
}
|
|
166
166
|
}
|
|
@@ -136,7 +136,7 @@ function parentRef(instance) {
|
|
|
136
136
|
return instance.ancestors.at(-1);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
const DATA_MODEL_VERSION = 4, DATA_MODEL_MIN_READER = 4, READER_MODEL_ROLLOUT_URL = "https://
|
|
139
|
+
const DATA_MODEL_VERSION = 4, DATA_MODEL_MIN_READER = 4, READER_MODEL_ROLLOUT_URL = "https://www.sanity.io/docs/editorial-workflows/prerelease";
|
|
140
140
|
|
|
141
141
|
class ReaderModelAcknowledgementError extends WorkflowError {
|
|
142
142
|
code="WORKFLOW_READER_MODEL_ACKNOWLEDGEMENT_MISMATCH";
|
|
@@ -146,7 +146,7 @@ class ReaderModelAcknowledgementError extends WorkflowError {
|
|
|
146
146
|
documentationUrl=READER_MODEL_ROLLOUT_URL;
|
|
147
147
|
constructor(expectedMinReaderModel, context = "Deployment") {
|
|
148
148
|
const expected = expectedMinReaderModel === void 0 ? "missing" : String(expectedMinReaderModel);
|
|
149
|
-
super("reader-model-acknowledgement", `${context} expected reader floor ${expected}; the installed engine requires acknowledgement ${DATA_MODEL_MIN_READER}.
|
|
149
|
+
super("reader-model-acknowledgement", `${context} expected reader floor ${expected}; the installed engine requires acknowledgement ${DATA_MODEL_MIN_READER}. Do not change the acknowledgement yet: accepting ${DATA_MODEL_MIN_READER} authorizes this engine to write documents that older readers will refuse. Upgrade every Studio, CLI, MCP server, Function, and other runtime that reads engine-owned documents; verify that rollout in every environment sharing the workflow resource; then change the literal in deployment configuration and deploy the writer. Rollout guide: ${READER_MODEL_ROLLOUT_URL}`),
|
|
150
150
|
this.name = "ReaderModelAcknowledgementError", this.expectedMinReaderModel = expectedMinReaderModel;
|
|
151
151
|
}
|
|
152
152
|
}
|
package/dist/define.d.cts
CHANGED
|
@@ -983,15 +983,6 @@ export declare interface ConditionVar {
|
|
|
983
983
|
*/
|
|
984
984
|
export declare type ConditionVarBinding = "always" | "caller" | "spawn";
|
|
985
985
|
|
|
986
|
-
/**
|
|
987
|
-
* The maximum reader floor this writer can emit. Individual documents derive
|
|
988
|
-
* their `minReaderModel` from the compatibility-bearing features actually
|
|
989
|
-
* present; a document written at {@link DATA_MODEL_VERSION} may therefore
|
|
990
|
-
* carry a lower floor. Raising this maximum is a declared, DATAMODEL.md-logged
|
|
991
|
-
* decision that requires readers-first fleet sequencing.
|
|
992
|
-
*/
|
|
993
|
-
declare const DATA_MODEL_MIN_READER = 4;
|
|
994
|
-
|
|
995
986
|
export declare function defineAction(action: AuthoringAction): AuthoringAction;
|
|
996
987
|
|
|
997
988
|
export declare function defineActivity(
|
|
@@ -1954,7 +1945,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
1954
1945
|
]
|
|
1955
1946
|
>;
|
|
1956
1947
|
readonly expectedMinReaderModel: v.OptionalSchema<
|
|
1957
|
-
v.CustomSchema<
|
|
1948
|
+
v.CustomSchema<number, undefined>,
|
|
1958
1949
|
undefined
|
|
1959
1950
|
>;
|
|
1960
1951
|
readonly tag: v.SchemaWithPipe<
|
|
@@ -2241,7 +2232,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2241
2232
|
v.MinLengthAction<
|
|
2242
2233
|
{
|
|
2243
2234
|
name: string;
|
|
2244
|
-
expectedMinReaderModel?:
|
|
2235
|
+
expectedMinReaderModel?: number | undefined;
|
|
2245
2236
|
tag: string;
|
|
2246
2237
|
workflowResource:
|
|
2247
2238
|
| {
|
|
@@ -2302,7 +2293,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2302
2293
|
v.CheckAction<
|
|
2303
2294
|
{
|
|
2304
2295
|
name: string;
|
|
2305
|
-
expectedMinReaderModel?:
|
|
2296
|
+
expectedMinReaderModel?: number | undefined;
|
|
2306
2297
|
tag: string;
|
|
2307
2298
|
workflowResource:
|
|
2308
2299
|
| {
|
|
@@ -2361,7 +2352,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2361
2352
|
issue: v.CheckIssue<
|
|
2362
2353
|
{
|
|
2363
2354
|
name: string;
|
|
2364
|
-
expectedMinReaderModel?:
|
|
2355
|
+
expectedMinReaderModel?: number | undefined;
|
|
2365
2356
|
tag: string;
|
|
2366
2357
|
workflowResource:
|
|
2367
2358
|
| {
|
|
@@ -2422,7 +2413,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2422
2413
|
v.CheckAction<
|
|
2423
2414
|
{
|
|
2424
2415
|
name: string;
|
|
2425
|
-
expectedMinReaderModel?:
|
|
2416
|
+
expectedMinReaderModel?: number | undefined;
|
|
2426
2417
|
tag: string;
|
|
2427
2418
|
workflowResource:
|
|
2428
2419
|
| {
|
|
@@ -2481,7 +2472,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2481
2472
|
issue: v.CheckIssue<
|
|
2482
2473
|
{
|
|
2483
2474
|
name: string;
|
|
2484
|
-
expectedMinReaderModel?:
|
|
2475
|
+
expectedMinReaderModel?: number | undefined;
|
|
2485
2476
|
tag: string;
|
|
2486
2477
|
workflowResource:
|
|
2487
2478
|
| {
|
|
@@ -2585,7 +2576,11 @@ declare type WorkflowDeployment = Omit<
|
|
|
2585
2576
|
ParsedWorkflowDeployment,
|
|
2586
2577
|
"expectedMinReaderModel"
|
|
2587
2578
|
> & {
|
|
2588
|
-
|
|
2579
|
+
/**
|
|
2580
|
+
* Reviewed numeric literal. Runtime validation owns the exact installed-floor check so a stale
|
|
2581
|
+
* acknowledgement reaches the readers-first rollout guidance instead of becoming a type error.
|
|
2582
|
+
*/
|
|
2583
|
+
expectedMinReaderModel: number;
|
|
2589
2584
|
};
|
|
2590
2585
|
|
|
2591
2586
|
/** Type-mirror of {@link workflowFields}, parameterised over field/stage/start. */
|
package/dist/define.d.ts
CHANGED
|
@@ -983,15 +983,6 @@ export declare interface ConditionVar {
|
|
|
983
983
|
*/
|
|
984
984
|
export declare type ConditionVarBinding = "always" | "caller" | "spawn";
|
|
985
985
|
|
|
986
|
-
/**
|
|
987
|
-
* The maximum reader floor this writer can emit. Individual documents derive
|
|
988
|
-
* their `minReaderModel` from the compatibility-bearing features actually
|
|
989
|
-
* present; a document written at {@link DATA_MODEL_VERSION} may therefore
|
|
990
|
-
* carry a lower floor. Raising this maximum is a declared, DATAMODEL.md-logged
|
|
991
|
-
* decision that requires readers-first fleet sequencing.
|
|
992
|
-
*/
|
|
993
|
-
declare const DATA_MODEL_MIN_READER = 4;
|
|
994
|
-
|
|
995
986
|
export declare function defineAction(action: AuthoringAction): AuthoringAction;
|
|
996
987
|
|
|
997
988
|
export declare function defineActivity(
|
|
@@ -1954,7 +1945,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
1954
1945
|
]
|
|
1955
1946
|
>;
|
|
1956
1947
|
readonly expectedMinReaderModel: v.OptionalSchema<
|
|
1957
|
-
v.CustomSchema<
|
|
1948
|
+
v.CustomSchema<number, undefined>,
|
|
1958
1949
|
undefined
|
|
1959
1950
|
>;
|
|
1960
1951
|
readonly tag: v.SchemaWithPipe<
|
|
@@ -2241,7 +2232,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2241
2232
|
v.MinLengthAction<
|
|
2242
2233
|
{
|
|
2243
2234
|
name: string;
|
|
2244
|
-
expectedMinReaderModel?:
|
|
2235
|
+
expectedMinReaderModel?: number | undefined;
|
|
2245
2236
|
tag: string;
|
|
2246
2237
|
workflowResource:
|
|
2247
2238
|
| {
|
|
@@ -2302,7 +2293,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2302
2293
|
v.CheckAction<
|
|
2303
2294
|
{
|
|
2304
2295
|
name: string;
|
|
2305
|
-
expectedMinReaderModel?:
|
|
2296
|
+
expectedMinReaderModel?: number | undefined;
|
|
2306
2297
|
tag: string;
|
|
2307
2298
|
workflowResource:
|
|
2308
2299
|
| {
|
|
@@ -2361,7 +2352,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2361
2352
|
issue: v.CheckIssue<
|
|
2362
2353
|
{
|
|
2363
2354
|
name: string;
|
|
2364
|
-
expectedMinReaderModel?:
|
|
2355
|
+
expectedMinReaderModel?: number | undefined;
|
|
2365
2356
|
tag: string;
|
|
2366
2357
|
workflowResource:
|
|
2367
2358
|
| {
|
|
@@ -2422,7 +2413,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2422
2413
|
v.CheckAction<
|
|
2423
2414
|
{
|
|
2424
2415
|
name: string;
|
|
2425
|
-
expectedMinReaderModel?:
|
|
2416
|
+
expectedMinReaderModel?: number | undefined;
|
|
2426
2417
|
tag: string;
|
|
2427
2418
|
workflowResource:
|
|
2428
2419
|
| {
|
|
@@ -2481,7 +2472,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
2481
2472
|
issue: v.CheckIssue<
|
|
2482
2473
|
{
|
|
2483
2474
|
name: string;
|
|
2484
|
-
expectedMinReaderModel?:
|
|
2475
|
+
expectedMinReaderModel?: number | undefined;
|
|
2485
2476
|
tag: string;
|
|
2486
2477
|
workflowResource:
|
|
2487
2478
|
| {
|
|
@@ -2585,7 +2576,11 @@ declare type WorkflowDeployment = Omit<
|
|
|
2585
2576
|
ParsedWorkflowDeployment,
|
|
2586
2577
|
"expectedMinReaderModel"
|
|
2587
2578
|
> & {
|
|
2588
|
-
|
|
2579
|
+
/**
|
|
2580
|
+
* Reviewed numeric literal. Runtime validation owns the exact installed-floor check so a stale
|
|
2581
|
+
* acknowledgement reaches the readers-first rollout guidance instead of becoming a type error.
|
|
2582
|
+
*/
|
|
2583
|
+
expectedMinReaderModel: number;
|
|
2589
2584
|
};
|
|
2590
2585
|
|
|
2591
2586
|
/** Type-mirror of {@link workflowFields}, parameterised over field/stage/start. */
|
package/dist/index.d.cts
CHANGED
|
@@ -2693,8 +2693,13 @@ export declare interface DeployDefinitionResult {
|
|
|
2693
2693
|
export declare interface DeployDefinitionsArgs<
|
|
2694
2694
|
T extends WorkflowDefinitionInput<T> = WorkflowDefinition,
|
|
2695
2695
|
> {
|
|
2696
|
-
/**
|
|
2697
|
-
|
|
2696
|
+
/**
|
|
2697
|
+
* Reviewed numeric literal acknowledging the installed writer's maximum reader-floor capability.
|
|
2698
|
+
* The deploy gate checks the exact installed value and links the readers-first rollout; do not
|
|
2699
|
+
* import {@link DATA_MODEL_MIN_READER}, because that would auto-advance this acknowledgement on
|
|
2700
|
+
* upgrade.
|
|
2701
|
+
*/
|
|
2702
|
+
expectedMinReaderModel: number;
|
|
2698
2703
|
/**
|
|
2699
2704
|
* Resource-alias bindings for this deploy (alias name → physical resource).
|
|
2700
2705
|
* A deploy-time abstraction ONLY: every `@<alias>:` reference in a
|
|
@@ -2764,7 +2769,8 @@ export declare function deployStageGuards(args: StageGuardArgs): Promise<void>;
|
|
|
2764
2769
|
* definitions themselves — carrying `resourceAliases` here is what keeps a diff
|
|
2765
2770
|
* fingerprinting the same physical content `deployDefinitions` would. */
|
|
2766
2771
|
export declare interface DeployTarget {
|
|
2767
|
-
|
|
2772
|
+
/** Reviewed numeric literal, checked against the exact installed floor before client access. */
|
|
2773
|
+
expectedMinReaderModel: number;
|
|
2768
2774
|
tag: string;
|
|
2769
2775
|
workflowResource: WorkflowResource;
|
|
2770
2776
|
resourceAliases?: ResourceAliases;
|
|
@@ -6773,7 +6779,7 @@ export declare interface QueryInScopeArgs extends InstanceRefArgs, QueryArgs {}
|
|
|
6773
6779
|
export { quoted };
|
|
6774
6780
|
|
|
6775
6781
|
export declare const READER_MODEL_ROLLOUT_URL =
|
|
6776
|
-
"https://
|
|
6782
|
+
"https://www.sanity.io/docs/editorial-workflows/prerelease";
|
|
6777
6783
|
|
|
6778
6784
|
/** A producer has not explicitly acknowledged this engine's writer capability. */
|
|
6779
6785
|
export declare class ReaderModelAcknowledgementError extends WorkflowError<"reader-model-acknowledgement"> {
|
|
@@ -6782,7 +6788,7 @@ export declare class ReaderModelAcknowledgementError extends WorkflowError<"read
|
|
|
6782
6788
|
readonly engineMinReaderModel = 4;
|
|
6783
6789
|
readonly engineModelVersion = 4;
|
|
6784
6790
|
readonly documentationUrl =
|
|
6785
|
-
"https://
|
|
6791
|
+
"https://www.sanity.io/docs/editorial-workflows/prerelease";
|
|
6786
6792
|
constructor(expectedMinReaderModel: unknown, context?: string);
|
|
6787
6793
|
}
|
|
6788
6794
|
|
|
@@ -9500,7 +9506,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9500
9506
|
]
|
|
9501
9507
|
>;
|
|
9502
9508
|
readonly expectedMinReaderModel: v.OptionalSchema<
|
|
9503
|
-
v.CustomSchema<
|
|
9509
|
+
v.CustomSchema<number, undefined>,
|
|
9504
9510
|
undefined
|
|
9505
9511
|
>;
|
|
9506
9512
|
readonly tag: v.SchemaWithPipe<
|
|
@@ -9787,7 +9793,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9787
9793
|
v.MinLengthAction<
|
|
9788
9794
|
{
|
|
9789
9795
|
name: string;
|
|
9790
|
-
expectedMinReaderModel?:
|
|
9796
|
+
expectedMinReaderModel?: number | undefined;
|
|
9791
9797
|
tag: string;
|
|
9792
9798
|
workflowResource:
|
|
9793
9799
|
| {
|
|
@@ -9848,7 +9854,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9848
9854
|
v.CheckAction<
|
|
9849
9855
|
{
|
|
9850
9856
|
name: string;
|
|
9851
|
-
expectedMinReaderModel?:
|
|
9857
|
+
expectedMinReaderModel?: number | undefined;
|
|
9852
9858
|
tag: string;
|
|
9853
9859
|
workflowResource:
|
|
9854
9860
|
| {
|
|
@@ -9907,7 +9913,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9907
9913
|
issue: v.CheckIssue<
|
|
9908
9914
|
{
|
|
9909
9915
|
name: string;
|
|
9910
|
-
expectedMinReaderModel?:
|
|
9916
|
+
expectedMinReaderModel?: number | undefined;
|
|
9911
9917
|
tag: string;
|
|
9912
9918
|
workflowResource:
|
|
9913
9919
|
| {
|
|
@@ -9968,7 +9974,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9968
9974
|
v.CheckAction<
|
|
9969
9975
|
{
|
|
9970
9976
|
name: string;
|
|
9971
|
-
expectedMinReaderModel?:
|
|
9977
|
+
expectedMinReaderModel?: number | undefined;
|
|
9972
9978
|
tag: string;
|
|
9973
9979
|
workflowResource:
|
|
9974
9980
|
| {
|
|
@@ -10027,7 +10033,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
10027
10033
|
issue: v.CheckIssue<
|
|
10028
10034
|
{
|
|
10029
10035
|
name: string;
|
|
10030
|
-
expectedMinReaderModel?:
|
|
10036
|
+
expectedMinReaderModel?: number | undefined;
|
|
10031
10037
|
tag: string;
|
|
10032
10038
|
workflowResource:
|
|
10033
10039
|
| {
|
|
@@ -10194,7 +10200,11 @@ export declare type WorkflowDeployment = Omit<
|
|
|
10194
10200
|
ParsedWorkflowDeployment,
|
|
10195
10201
|
"expectedMinReaderModel"
|
|
10196
10202
|
> & {
|
|
10197
|
-
|
|
10203
|
+
/**
|
|
10204
|
+
* Reviewed numeric literal. Runtime validation owns the exact installed-floor check so a stale
|
|
10205
|
+
* acknowledgement reaches the readers-first rollout guidance instead of becoming a type error.
|
|
10206
|
+
*/
|
|
10207
|
+
expectedMinReaderModel: number;
|
|
10198
10208
|
};
|
|
10199
10209
|
|
|
10200
10210
|
export declare const WorkflowEffectCompleted: WorkflowTelemetryEvent<WorkflowEffectCompletedData>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2693,8 +2693,13 @@ export declare interface DeployDefinitionResult {
|
|
|
2693
2693
|
export declare interface DeployDefinitionsArgs<
|
|
2694
2694
|
T extends WorkflowDefinitionInput<T> = WorkflowDefinition,
|
|
2695
2695
|
> {
|
|
2696
|
-
/**
|
|
2697
|
-
|
|
2696
|
+
/**
|
|
2697
|
+
* Reviewed numeric literal acknowledging the installed writer's maximum reader-floor capability.
|
|
2698
|
+
* The deploy gate checks the exact installed value and links the readers-first rollout; do not
|
|
2699
|
+
* import {@link DATA_MODEL_MIN_READER}, because that would auto-advance this acknowledgement on
|
|
2700
|
+
* upgrade.
|
|
2701
|
+
*/
|
|
2702
|
+
expectedMinReaderModel: number;
|
|
2698
2703
|
/**
|
|
2699
2704
|
* Resource-alias bindings for this deploy (alias name → physical resource).
|
|
2700
2705
|
* A deploy-time abstraction ONLY: every `@<alias>:` reference in a
|
|
@@ -2764,7 +2769,8 @@ export declare function deployStageGuards(args: StageGuardArgs): Promise<void>;
|
|
|
2764
2769
|
* definitions themselves — carrying `resourceAliases` here is what keeps a diff
|
|
2765
2770
|
* fingerprinting the same physical content `deployDefinitions` would. */
|
|
2766
2771
|
export declare interface DeployTarget {
|
|
2767
|
-
|
|
2772
|
+
/** Reviewed numeric literal, checked against the exact installed floor before client access. */
|
|
2773
|
+
expectedMinReaderModel: number;
|
|
2768
2774
|
tag: string;
|
|
2769
2775
|
workflowResource: WorkflowResource;
|
|
2770
2776
|
resourceAliases?: ResourceAliases;
|
|
@@ -6773,7 +6779,7 @@ export declare interface QueryInScopeArgs extends InstanceRefArgs, QueryArgs {}
|
|
|
6773
6779
|
export { quoted };
|
|
6774
6780
|
|
|
6775
6781
|
export declare const READER_MODEL_ROLLOUT_URL =
|
|
6776
|
-
"https://
|
|
6782
|
+
"https://www.sanity.io/docs/editorial-workflows/prerelease";
|
|
6777
6783
|
|
|
6778
6784
|
/** A producer has not explicitly acknowledged this engine's writer capability. */
|
|
6779
6785
|
export declare class ReaderModelAcknowledgementError extends WorkflowError<"reader-model-acknowledgement"> {
|
|
@@ -6782,7 +6788,7 @@ export declare class ReaderModelAcknowledgementError extends WorkflowError<"read
|
|
|
6782
6788
|
readonly engineMinReaderModel = 4;
|
|
6783
6789
|
readonly engineModelVersion = 4;
|
|
6784
6790
|
readonly documentationUrl =
|
|
6785
|
-
"https://
|
|
6791
|
+
"https://www.sanity.io/docs/editorial-workflows/prerelease";
|
|
6786
6792
|
constructor(expectedMinReaderModel: unknown, context?: string);
|
|
6787
6793
|
}
|
|
6788
6794
|
|
|
@@ -9500,7 +9506,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9500
9506
|
]
|
|
9501
9507
|
>;
|
|
9502
9508
|
readonly expectedMinReaderModel: v.OptionalSchema<
|
|
9503
|
-
v.CustomSchema<
|
|
9509
|
+
v.CustomSchema<number, undefined>,
|
|
9504
9510
|
undefined
|
|
9505
9511
|
>;
|
|
9506
9512
|
readonly tag: v.SchemaWithPipe<
|
|
@@ -9787,7 +9793,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9787
9793
|
v.MinLengthAction<
|
|
9788
9794
|
{
|
|
9789
9795
|
name: string;
|
|
9790
|
-
expectedMinReaderModel?:
|
|
9796
|
+
expectedMinReaderModel?: number | undefined;
|
|
9791
9797
|
tag: string;
|
|
9792
9798
|
workflowResource:
|
|
9793
9799
|
| {
|
|
@@ -9848,7 +9854,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9848
9854
|
v.CheckAction<
|
|
9849
9855
|
{
|
|
9850
9856
|
name: string;
|
|
9851
|
-
expectedMinReaderModel?:
|
|
9857
|
+
expectedMinReaderModel?: number | undefined;
|
|
9852
9858
|
tag: string;
|
|
9853
9859
|
workflowResource:
|
|
9854
9860
|
| {
|
|
@@ -9907,7 +9913,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9907
9913
|
issue: v.CheckIssue<
|
|
9908
9914
|
{
|
|
9909
9915
|
name: string;
|
|
9910
|
-
expectedMinReaderModel?:
|
|
9916
|
+
expectedMinReaderModel?: number | undefined;
|
|
9911
9917
|
tag: string;
|
|
9912
9918
|
workflowResource:
|
|
9913
9919
|
| {
|
|
@@ -9968,7 +9974,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
9968
9974
|
v.CheckAction<
|
|
9969
9975
|
{
|
|
9970
9976
|
name: string;
|
|
9971
|
-
expectedMinReaderModel?:
|
|
9977
|
+
expectedMinReaderModel?: number | undefined;
|
|
9972
9978
|
tag: string;
|
|
9973
9979
|
workflowResource:
|
|
9974
9980
|
| {
|
|
@@ -10027,7 +10033,7 @@ declare const WorkflowConfigSchema: v.ObjectSchema<
|
|
|
10027
10033
|
issue: v.CheckIssue<
|
|
10028
10034
|
{
|
|
10029
10035
|
name: string;
|
|
10030
|
-
expectedMinReaderModel?:
|
|
10036
|
+
expectedMinReaderModel?: number | undefined;
|
|
10031
10037
|
tag: string;
|
|
10032
10038
|
workflowResource:
|
|
10033
10039
|
| {
|
|
@@ -10194,7 +10200,11 @@ export declare type WorkflowDeployment = Omit<
|
|
|
10194
10200
|
ParsedWorkflowDeployment,
|
|
10195
10201
|
"expectedMinReaderModel"
|
|
10196
10202
|
> & {
|
|
10197
|
-
|
|
10203
|
+
/**
|
|
10204
|
+
* Reviewed numeric literal. Runtime validation owns the exact installed-floor check so a stale
|
|
10205
|
+
* acknowledgement reaches the readers-first rollout guidance instead of becoming a type error.
|
|
10206
|
+
*/
|
|
10207
|
+
expectedMinReaderModel: number;
|
|
10198
10208
|
};
|
|
10199
10209
|
|
|
10200
10210
|
export declare const WorkflowEffectCompleted: WorkflowTelemetryEvent<WorkflowEffectCompletedData>;
|
package/package.json
CHANGED