@roottale/cms-core 0.68.0 → 0.69.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 +10 -0
- package/dist/index.cjs +433 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4121 -104
- package/dist/index.d.ts +4121 -104
- package/dist/index.js +413 -65
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -218,12 +218,28 @@ interface CategoryTreePresentation {
|
|
|
218
218
|
readonly basePath: string;
|
|
219
219
|
readonly categoryDepth: number;
|
|
220
220
|
readonly entryCategory?: CategoryTreeEntryCategory;
|
|
221
|
+
/** 생략하면 정확히 한 분류. first는 termOrder, id 순서의 첫 분류를 쓴다. */
|
|
222
|
+
readonly categorySelection?: "first";
|
|
223
|
+
/** first + 1단계 모델에서 실제 미분류 글에만 쓰는 가상 분류 slug. */
|
|
224
|
+
readonly categoryFallbackSlug?: string;
|
|
225
|
+
readonly reservedCategorySlugs?: readonly string[];
|
|
221
226
|
}
|
|
222
227
|
interface CategoryTreeTerm {
|
|
223
228
|
readonly id: string;
|
|
224
229
|
readonly slug: string;
|
|
225
230
|
readonly parentId?: string | null;
|
|
231
|
+
readonly termOrder?: number;
|
|
226
232
|
}
|
|
233
|
+
type CategoryTreeEntryResolution<T extends CategoryTreeTerm = CategoryTreeTerm> = {
|
|
234
|
+
readonly kind: "category";
|
|
235
|
+
readonly category: T;
|
|
236
|
+
readonly chain: readonly T[];
|
|
237
|
+
} | {
|
|
238
|
+
readonly kind: "fallback";
|
|
239
|
+
readonly slug: string;
|
|
240
|
+
};
|
|
241
|
+
/** 실제 분류가 사용할 수 없는 예약 주소. fallback은 분류 원장에 만들지 않는다. */
|
|
242
|
+
declare function isReservedCategoryTreeSlug(presentation: CategoryTreePresentation, slug: string): boolean;
|
|
227
243
|
interface CategoryTreeEntry {
|
|
228
244
|
readonly slug: string;
|
|
229
245
|
readonly terms: ReadonlyArray<{
|
|
@@ -239,12 +255,17 @@ interface CategoryTreeEntry {
|
|
|
239
255
|
* (`resolveCategoryTreeSelection`) — 글이 붙은 뒤 하위 분류가 생겨도 이미 발행한
|
|
240
256
|
* 글의 주소는 그대로 살아 있어야 한다.
|
|
241
257
|
*/
|
|
242
|
-
declare function resolveCategoryTreeChain(presentation: CategoryTreePresentation, termId: string, terms: readonly
|
|
258
|
+
declare function resolveCategoryTreeChain<T extends CategoryTreeTerm>(presentation: CategoryTreePresentation, termId: string, terms: readonly T[]): T[] | null;
|
|
243
259
|
/**
|
|
244
260
|
* 글에 새로 고를 수 있는 분류의 사슬 — 주소를 만들 수 있고 지금 하위 분류가 없어야
|
|
245
261
|
* 한다. 편집기 선택지와 발행 검사가 같은 규칙을 쓴다.
|
|
246
262
|
*/
|
|
247
|
-
declare function resolveCategoryTreeSelection(presentation: CategoryTreePresentation, termId: string, terms: readonly
|
|
263
|
+
declare function resolveCategoryTreeSelection<T extends CategoryTreeTerm>(presentation: CategoryTreePresentation, termId: string, terms: readonly T[]): T[] | null;
|
|
264
|
+
/**
|
|
265
|
+
* 상세 경로·분류 표시가 함께 쓰는 선택기. terms에는 해당 모델의 전체 분류를 준다.
|
|
266
|
+
* first의 미지정/외부 분류나 잘못된 계층은 fallback으로 숨기지 않는다.
|
|
267
|
+
*/
|
|
268
|
+
declare function resolveCategoryTreeEntryCategory<T extends CategoryTreeTerm>(presentation: CategoryTreePresentation, entry: Pick<CategoryTreeEntry, "terms">, terms: readonly T[]): CategoryTreeEntryResolution<T> | null;
|
|
248
269
|
/** 루트부터 선택 분류까지 모든 허브 주소. */
|
|
249
270
|
declare function resolveCategoryTreeHubPaths(presentation: CategoryTreePresentation, termId: string, terms: readonly CategoryTreeTerm[]): string[] | null;
|
|
250
271
|
/** 계층형 분류 모델 항목의 정규 상세 주소. */
|
|
@@ -271,12 +292,9 @@ type PublicPathPresentation = {
|
|
|
271
292
|
} | {
|
|
272
293
|
readonly kind: "detail";
|
|
273
294
|
readonly detailPath: string;
|
|
274
|
-
} | {
|
|
295
|
+
} | (CategoryTreePresentation & {
|
|
275
296
|
readonly kind: "category_tree";
|
|
276
|
-
|
|
277
|
-
readonly categoryDepth: number;
|
|
278
|
-
readonly entryCategory?: CategoryTreeEntryCategory;
|
|
279
|
-
};
|
|
297
|
+
});
|
|
280
298
|
interface PublicPathPost {
|
|
281
299
|
readonly slug: string;
|
|
282
300
|
readonly collectionKey?: string | null;
|
|
@@ -685,12 +703,16 @@ type MetadataPatch = z.infer<typeof MetadataPatchSchema>;
|
|
|
685
703
|
declare const MetadataRobotsPolicySchema: z.ZodObject<{
|
|
686
704
|
forceNoindex: z.ZodOptional<z.ZodBoolean>;
|
|
687
705
|
forceNofollow: z.ZodOptional<z.ZodBoolean>;
|
|
706
|
+
/** Stable policy reason codes. They explain an enforced exclusion, never relax it. */
|
|
707
|
+
noindexReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
688
708
|
}, "strict", z.ZodTypeAny, {
|
|
689
709
|
forceNoindex?: boolean | undefined;
|
|
690
710
|
forceNofollow?: boolean | undefined;
|
|
711
|
+
noindexReasons?: string[] | undefined;
|
|
691
712
|
}, {
|
|
692
713
|
forceNoindex?: boolean | undefined;
|
|
693
714
|
forceNofollow?: boolean | undefined;
|
|
715
|
+
noindexReasons?: string[] | undefined;
|
|
694
716
|
}>;
|
|
695
717
|
type MetadataRobotsPolicy = z.infer<typeof MetadataRobotsPolicySchema>;
|
|
696
718
|
interface MetadataTarget {
|
|
@@ -766,9 +788,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
766
788
|
fallbackWithoutParent: z.ZodOptional<z.ZodString>;
|
|
767
789
|
fallbackBySlug: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
768
790
|
}, "strict", z.ZodTypeAny, {
|
|
769
|
-
source?: "
|
|
770
|
-
template?: string | undefined;
|
|
791
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
771
792
|
fallback?: string | undefined;
|
|
793
|
+
template?: string | undefined;
|
|
772
794
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
773
795
|
replaceLineBreakTokens?: boolean | undefined;
|
|
774
796
|
removeEmDashes?: boolean | undefined;
|
|
@@ -785,9 +807,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
785
807
|
fallbackWithoutParent?: string | undefined;
|
|
786
808
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
787
809
|
}, {
|
|
788
|
-
source?: "
|
|
789
|
-
template?: string | undefined;
|
|
810
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
790
811
|
fallback?: string | undefined;
|
|
812
|
+
template?: string | undefined;
|
|
791
813
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
792
814
|
replaceLineBreakTokens?: boolean | undefined;
|
|
793
815
|
removeEmDashes?: boolean | undefined;
|
|
@@ -804,9 +826,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
804
826
|
fallbackWithoutParent?: string | undefined;
|
|
805
827
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
806
828
|
}>, {
|
|
807
|
-
source?: "
|
|
808
|
-
template?: string | undefined;
|
|
829
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
809
830
|
fallback?: string | undefined;
|
|
831
|
+
template?: string | undefined;
|
|
810
832
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
811
833
|
replaceLineBreakTokens?: boolean | undefined;
|
|
812
834
|
removeEmDashes?: boolean | undefined;
|
|
@@ -823,9 +845,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
823
845
|
fallbackWithoutParent?: string | undefined;
|
|
824
846
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
825
847
|
}, {
|
|
826
|
-
source?: "
|
|
827
|
-
template?: string | undefined;
|
|
848
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
828
849
|
fallback?: string | undefined;
|
|
850
|
+
template?: string | undefined;
|
|
829
851
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
830
852
|
replaceLineBreakTokens?: boolean | undefined;
|
|
831
853
|
removeEmDashes?: boolean | undefined;
|
|
@@ -842,9 +864,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
842
864
|
fallbackWithoutParent?: string | undefined;
|
|
843
865
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
844
866
|
}>, {
|
|
845
|
-
source?: "
|
|
846
|
-
template?: string | undefined;
|
|
867
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
847
868
|
fallback?: string | undefined;
|
|
869
|
+
template?: string | undefined;
|
|
848
870
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
849
871
|
replaceLineBreakTokens?: boolean | undefined;
|
|
850
872
|
removeEmDashes?: boolean | undefined;
|
|
@@ -861,9 +883,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
861
883
|
fallbackWithoutParent?: string | undefined;
|
|
862
884
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
863
885
|
}, {
|
|
864
|
-
source?: "
|
|
865
|
-
template?: string | undefined;
|
|
886
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
866
887
|
fallback?: string | undefined;
|
|
888
|
+
template?: string | undefined;
|
|
867
889
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
868
890
|
replaceLineBreakTokens?: boolean | undefined;
|
|
869
891
|
removeEmDashes?: boolean | undefined;
|
|
@@ -880,9 +902,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
880
902
|
fallbackWithoutParent?: string | undefined;
|
|
881
903
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
882
904
|
}>, {
|
|
883
|
-
source?: "
|
|
884
|
-
template?: string | undefined;
|
|
905
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
885
906
|
fallback?: string | undefined;
|
|
907
|
+
template?: string | undefined;
|
|
886
908
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
887
909
|
replaceLineBreakTokens?: boolean | undefined;
|
|
888
910
|
removeEmDashes?: boolean | undefined;
|
|
@@ -899,9 +921,9 @@ declare const MetadataTextRuleSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.Z
|
|
|
899
921
|
fallbackWithoutParent?: string | undefined;
|
|
900
922
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
901
923
|
}, {
|
|
902
|
-
source?: "
|
|
903
|
-
template?: string | undefined;
|
|
924
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
904
925
|
fallback?: string | undefined;
|
|
926
|
+
template?: string | undefined;
|
|
905
927
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
906
928
|
replaceLineBreakTokens?: boolean | undefined;
|
|
907
929
|
removeEmDashes?: boolean | undefined;
|
|
@@ -957,9 +979,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
957
979
|
fallbackWithoutParent: z.ZodOptional<z.ZodString>;
|
|
958
980
|
fallbackBySlug: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
959
981
|
}, "strict", z.ZodTypeAny, {
|
|
960
|
-
source?: "
|
|
961
|
-
template?: string | undefined;
|
|
982
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
962
983
|
fallback?: string | undefined;
|
|
984
|
+
template?: string | undefined;
|
|
963
985
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
964
986
|
replaceLineBreakTokens?: boolean | undefined;
|
|
965
987
|
removeEmDashes?: boolean | undefined;
|
|
@@ -976,9 +998,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
976
998
|
fallbackWithoutParent?: string | undefined;
|
|
977
999
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
978
1000
|
}, {
|
|
979
|
-
source?: "
|
|
980
|
-
template?: string | undefined;
|
|
1001
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
981
1002
|
fallback?: string | undefined;
|
|
1003
|
+
template?: string | undefined;
|
|
982
1004
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
983
1005
|
replaceLineBreakTokens?: boolean | undefined;
|
|
984
1006
|
removeEmDashes?: boolean | undefined;
|
|
@@ -995,9 +1017,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
995
1017
|
fallbackWithoutParent?: string | undefined;
|
|
996
1018
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
997
1019
|
}>, {
|
|
998
|
-
source?: "
|
|
999
|
-
template?: string | undefined;
|
|
1020
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1000
1021
|
fallback?: string | undefined;
|
|
1022
|
+
template?: string | undefined;
|
|
1001
1023
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1002
1024
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1003
1025
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1014,9 +1036,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1014
1036
|
fallbackWithoutParent?: string | undefined;
|
|
1015
1037
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1016
1038
|
}, {
|
|
1017
|
-
source?: "
|
|
1018
|
-
template?: string | undefined;
|
|
1039
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1019
1040
|
fallback?: string | undefined;
|
|
1041
|
+
template?: string | undefined;
|
|
1020
1042
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1021
1043
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1022
1044
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1033,9 +1055,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1033
1055
|
fallbackWithoutParent?: string | undefined;
|
|
1034
1056
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1035
1057
|
}>, {
|
|
1036
|
-
source?: "
|
|
1037
|
-
template?: string | undefined;
|
|
1058
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1038
1059
|
fallback?: string | undefined;
|
|
1060
|
+
template?: string | undefined;
|
|
1039
1061
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1040
1062
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1041
1063
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1052,9 +1074,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1052
1074
|
fallbackWithoutParent?: string | undefined;
|
|
1053
1075
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1054
1076
|
}, {
|
|
1055
|
-
source?: "
|
|
1056
|
-
template?: string | undefined;
|
|
1077
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1057
1078
|
fallback?: string | undefined;
|
|
1079
|
+
template?: string | undefined;
|
|
1058
1080
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1059
1081
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1060
1082
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1071,9 +1093,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1071
1093
|
fallbackWithoutParent?: string | undefined;
|
|
1072
1094
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1073
1095
|
}>, {
|
|
1074
|
-
source?: "
|
|
1075
|
-
template?: string | undefined;
|
|
1096
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1076
1097
|
fallback?: string | undefined;
|
|
1098
|
+
template?: string | undefined;
|
|
1077
1099
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1078
1100
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1079
1101
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1090,9 +1112,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1090
1112
|
fallbackWithoutParent?: string | undefined;
|
|
1091
1113
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1092
1114
|
}, {
|
|
1093
|
-
source?: "
|
|
1094
|
-
template?: string | undefined;
|
|
1115
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1095
1116
|
fallback?: string | undefined;
|
|
1117
|
+
template?: string | undefined;
|
|
1096
1118
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1097
1119
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1098
1120
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1136,9 +1158,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1136
1158
|
fallbackWithoutParent: z.ZodOptional<z.ZodString>;
|
|
1137
1159
|
fallbackBySlug: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1138
1160
|
}, "strict", z.ZodTypeAny, {
|
|
1139
|
-
source?: "
|
|
1140
|
-
template?: string | undefined;
|
|
1161
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1141
1162
|
fallback?: string | undefined;
|
|
1163
|
+
template?: string | undefined;
|
|
1142
1164
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1143
1165
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1144
1166
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1155,9 +1177,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1155
1177
|
fallbackWithoutParent?: string | undefined;
|
|
1156
1178
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1157
1179
|
}, {
|
|
1158
|
-
source?: "
|
|
1159
|
-
template?: string | undefined;
|
|
1180
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1160
1181
|
fallback?: string | undefined;
|
|
1182
|
+
template?: string | undefined;
|
|
1161
1183
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1162
1184
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1163
1185
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1174,9 +1196,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1174
1196
|
fallbackWithoutParent?: string | undefined;
|
|
1175
1197
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1176
1198
|
}>, {
|
|
1177
|
-
source?: "
|
|
1178
|
-
template?: string | undefined;
|
|
1199
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1179
1200
|
fallback?: string | undefined;
|
|
1201
|
+
template?: string | undefined;
|
|
1180
1202
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1181
1203
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1182
1204
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1193,9 +1215,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1193
1215
|
fallbackWithoutParent?: string | undefined;
|
|
1194
1216
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1195
1217
|
}, {
|
|
1196
|
-
source?: "
|
|
1197
|
-
template?: string | undefined;
|
|
1218
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1198
1219
|
fallback?: string | undefined;
|
|
1220
|
+
template?: string | undefined;
|
|
1199
1221
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1200
1222
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1201
1223
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1212,9 +1234,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1212
1234
|
fallbackWithoutParent?: string | undefined;
|
|
1213
1235
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1214
1236
|
}>, {
|
|
1215
|
-
source?: "
|
|
1216
|
-
template?: string | undefined;
|
|
1237
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1217
1238
|
fallback?: string | undefined;
|
|
1239
|
+
template?: string | undefined;
|
|
1218
1240
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1219
1241
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1220
1242
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1231,9 +1253,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1231
1253
|
fallbackWithoutParent?: string | undefined;
|
|
1232
1254
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1233
1255
|
}, {
|
|
1234
|
-
source?: "
|
|
1235
|
-
template?: string | undefined;
|
|
1256
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1236
1257
|
fallback?: string | undefined;
|
|
1258
|
+
template?: string | undefined;
|
|
1237
1259
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1238
1260
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1239
1261
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1250,9 +1272,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1250
1272
|
fallbackWithoutParent?: string | undefined;
|
|
1251
1273
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1252
1274
|
}>, {
|
|
1253
|
-
source?: "
|
|
1254
|
-
template?: string | undefined;
|
|
1275
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1255
1276
|
fallback?: string | undefined;
|
|
1277
|
+
template?: string | undefined;
|
|
1256
1278
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1257
1279
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1258
1280
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1269,9 +1291,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1269
1291
|
fallbackWithoutParent?: string | undefined;
|
|
1270
1292
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1271
1293
|
}, {
|
|
1272
|
-
source?: "
|
|
1273
|
-
template?: string | undefined;
|
|
1294
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1274
1295
|
fallback?: string | undefined;
|
|
1296
|
+
template?: string | undefined;
|
|
1275
1297
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1276
1298
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1277
1299
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1314,12 +1336,15 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1314
1336
|
robots: z.ZodOptional<z.ZodObject<{
|
|
1315
1337
|
forceNoindex: z.ZodOptional<z.ZodBoolean>;
|
|
1316
1338
|
forceNofollow: z.ZodOptional<z.ZodBoolean>;
|
|
1339
|
+
noindexReasons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1317
1340
|
}, "strict", z.ZodTypeAny, {
|
|
1318
1341
|
forceNoindex?: boolean | undefined;
|
|
1319
1342
|
forceNofollow?: boolean | undefined;
|
|
1343
|
+
noindexReasons?: string[] | undefined;
|
|
1320
1344
|
}, {
|
|
1321
1345
|
forceNoindex?: boolean | undefined;
|
|
1322
1346
|
forceNofollow?: boolean | undefined;
|
|
1347
|
+
noindexReasons?: string[] | undefined;
|
|
1323
1348
|
}>>;
|
|
1324
1349
|
useFeaturedImage: z.ZodOptional<z.ZodBoolean>;
|
|
1325
1350
|
useFirstBodyImage: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1352,10 +1377,18 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1352
1377
|
nofollow?: boolean | undefined;
|
|
1353
1378
|
}>>;
|
|
1354
1379
|
}, "strict", z.ZodTypeAny, {
|
|
1380
|
+
fallback?: {
|
|
1381
|
+
title?: string | undefined;
|
|
1382
|
+
description?: string | undefined;
|
|
1383
|
+
ogImage?: string | undefined;
|
|
1384
|
+
ogImageAlt?: string | undefined;
|
|
1385
|
+
noindex?: boolean | undefined;
|
|
1386
|
+
nofollow?: boolean | undefined;
|
|
1387
|
+
} | undefined;
|
|
1355
1388
|
title?: {
|
|
1356
|
-
source?: "
|
|
1357
|
-
template?: string | undefined;
|
|
1389
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1358
1390
|
fallback?: string | undefined;
|
|
1391
|
+
template?: string | undefined;
|
|
1359
1392
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1360
1393
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1361
1394
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1373,9 +1406,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1373
1406
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1374
1407
|
} | undefined;
|
|
1375
1408
|
description?: {
|
|
1376
|
-
source?: "
|
|
1377
|
-
template?: string | undefined;
|
|
1409
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1378
1410
|
fallback?: string | undefined;
|
|
1411
|
+
template?: string | undefined;
|
|
1379
1412
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1380
1413
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1381
1414
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1392,14 +1425,6 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1392
1425
|
fallbackWithoutParent?: string | undefined;
|
|
1393
1426
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1394
1427
|
} | undefined;
|
|
1395
|
-
fallback?: {
|
|
1396
|
-
title?: string | undefined;
|
|
1397
|
-
description?: string | undefined;
|
|
1398
|
-
ogImage?: string | undefined;
|
|
1399
|
-
ogImageAlt?: string | undefined;
|
|
1400
|
-
noindex?: boolean | undefined;
|
|
1401
|
-
nofollow?: boolean | undefined;
|
|
1402
|
-
} | undefined;
|
|
1403
1428
|
titleTemplateMaxLength?: number | undefined;
|
|
1404
1429
|
defaults?: {
|
|
1405
1430
|
title?: string | undefined;
|
|
@@ -1412,6 +1437,7 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1412
1437
|
robots?: {
|
|
1413
1438
|
forceNoindex?: boolean | undefined;
|
|
1414
1439
|
forceNofollow?: boolean | undefined;
|
|
1440
|
+
noindexReasons?: string[] | undefined;
|
|
1415
1441
|
} | undefined;
|
|
1416
1442
|
useFeaturedImage?: boolean | undefined;
|
|
1417
1443
|
useFirstBodyImage?: boolean | undefined;
|
|
@@ -1422,10 +1448,18 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1422
1448
|
legacyImageAllowedOrigins?: string[] | undefined;
|
|
1423
1449
|
normalizeCloudflareImages?: boolean | undefined;
|
|
1424
1450
|
}, {
|
|
1451
|
+
fallback?: {
|
|
1452
|
+
title?: string | undefined;
|
|
1453
|
+
description?: string | undefined;
|
|
1454
|
+
ogImage?: string | undefined;
|
|
1455
|
+
ogImageAlt?: string | undefined;
|
|
1456
|
+
noindex?: boolean | undefined;
|
|
1457
|
+
nofollow?: boolean | undefined;
|
|
1458
|
+
} | undefined;
|
|
1425
1459
|
title?: {
|
|
1426
|
-
source?: "
|
|
1427
|
-
template?: string | undefined;
|
|
1460
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1428
1461
|
fallback?: string | undefined;
|
|
1462
|
+
template?: string | undefined;
|
|
1429
1463
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1430
1464
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1431
1465
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1443,9 +1477,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1443
1477
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1444
1478
|
} | undefined;
|
|
1445
1479
|
description?: {
|
|
1446
|
-
source?: "
|
|
1447
|
-
template?: string | undefined;
|
|
1480
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1448
1481
|
fallback?: string | undefined;
|
|
1482
|
+
template?: string | undefined;
|
|
1449
1483
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1450
1484
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1451
1485
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1462,14 +1496,6 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1462
1496
|
fallbackWithoutParent?: string | undefined;
|
|
1463
1497
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1464
1498
|
} | undefined;
|
|
1465
|
-
fallback?: {
|
|
1466
|
-
title?: string | undefined;
|
|
1467
|
-
description?: string | undefined;
|
|
1468
|
-
ogImage?: string | undefined;
|
|
1469
|
-
ogImageAlt?: string | undefined;
|
|
1470
|
-
noindex?: boolean | undefined;
|
|
1471
|
-
nofollow?: boolean | undefined;
|
|
1472
|
-
} | undefined;
|
|
1473
1499
|
titleTemplateMaxLength?: number | undefined;
|
|
1474
1500
|
defaults?: {
|
|
1475
1501
|
title?: string | undefined;
|
|
@@ -1482,6 +1508,7 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1482
1508
|
robots?: {
|
|
1483
1509
|
forceNoindex?: boolean | undefined;
|
|
1484
1510
|
forceNofollow?: boolean | undefined;
|
|
1511
|
+
noindexReasons?: string[] | undefined;
|
|
1485
1512
|
} | undefined;
|
|
1486
1513
|
useFeaturedImage?: boolean | undefined;
|
|
1487
1514
|
useFirstBodyImage?: boolean | undefined;
|
|
@@ -1492,10 +1519,18 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1492
1519
|
legacyImageAllowedOrigins?: string[] | undefined;
|
|
1493
1520
|
normalizeCloudflareImages?: boolean | undefined;
|
|
1494
1521
|
}>, {
|
|
1522
|
+
fallback?: {
|
|
1523
|
+
title?: string | undefined;
|
|
1524
|
+
description?: string | undefined;
|
|
1525
|
+
ogImage?: string | undefined;
|
|
1526
|
+
ogImageAlt?: string | undefined;
|
|
1527
|
+
noindex?: boolean | undefined;
|
|
1528
|
+
nofollow?: boolean | undefined;
|
|
1529
|
+
} | undefined;
|
|
1495
1530
|
title?: {
|
|
1496
|
-
source?: "
|
|
1497
|
-
template?: string | undefined;
|
|
1531
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1498
1532
|
fallback?: string | undefined;
|
|
1533
|
+
template?: string | undefined;
|
|
1499
1534
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1500
1535
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1501
1536
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1513,9 +1548,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1513
1548
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1514
1549
|
} | undefined;
|
|
1515
1550
|
description?: {
|
|
1516
|
-
source?: "
|
|
1517
|
-
template?: string | undefined;
|
|
1551
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1518
1552
|
fallback?: string | undefined;
|
|
1553
|
+
template?: string | undefined;
|
|
1519
1554
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1520
1555
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1521
1556
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1532,14 +1567,6 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1532
1567
|
fallbackWithoutParent?: string | undefined;
|
|
1533
1568
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1534
1569
|
} | undefined;
|
|
1535
|
-
fallback?: {
|
|
1536
|
-
title?: string | undefined;
|
|
1537
|
-
description?: string | undefined;
|
|
1538
|
-
ogImage?: string | undefined;
|
|
1539
|
-
ogImageAlt?: string | undefined;
|
|
1540
|
-
noindex?: boolean | undefined;
|
|
1541
|
-
nofollow?: boolean | undefined;
|
|
1542
|
-
} | undefined;
|
|
1543
1570
|
titleTemplateMaxLength?: number | undefined;
|
|
1544
1571
|
defaults?: {
|
|
1545
1572
|
title?: string | undefined;
|
|
@@ -1552,6 +1579,7 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1552
1579
|
robots?: {
|
|
1553
1580
|
forceNoindex?: boolean | undefined;
|
|
1554
1581
|
forceNofollow?: boolean | undefined;
|
|
1582
|
+
noindexReasons?: string[] | undefined;
|
|
1555
1583
|
} | undefined;
|
|
1556
1584
|
useFeaturedImage?: boolean | undefined;
|
|
1557
1585
|
useFirstBodyImage?: boolean | undefined;
|
|
@@ -1562,10 +1590,18 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1562
1590
|
legacyImageAllowedOrigins?: string[] | undefined;
|
|
1563
1591
|
normalizeCloudflareImages?: boolean | undefined;
|
|
1564
1592
|
}, {
|
|
1593
|
+
fallback?: {
|
|
1594
|
+
title?: string | undefined;
|
|
1595
|
+
description?: string | undefined;
|
|
1596
|
+
ogImage?: string | undefined;
|
|
1597
|
+
ogImageAlt?: string | undefined;
|
|
1598
|
+
noindex?: boolean | undefined;
|
|
1599
|
+
nofollow?: boolean | undefined;
|
|
1600
|
+
} | undefined;
|
|
1565
1601
|
title?: {
|
|
1566
|
-
source?: "
|
|
1567
|
-
template?: string | undefined;
|
|
1602
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1568
1603
|
fallback?: string | undefined;
|
|
1604
|
+
template?: string | undefined;
|
|
1569
1605
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1570
1606
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1571
1607
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1583,9 +1619,9 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1583
1619
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1584
1620
|
} | undefined;
|
|
1585
1621
|
description?: {
|
|
1586
|
-
source?: "
|
|
1587
|
-
template?: string | undefined;
|
|
1622
|
+
source?: "fallback" | "template" | "content" | undefined;
|
|
1588
1623
|
fallback?: string | undefined;
|
|
1624
|
+
template?: string | undefined;
|
|
1589
1625
|
stripLeadingLabel?: "question" | "answer" | undefined;
|
|
1590
1626
|
replaceLineBreakTokens?: boolean | undefined;
|
|
1591
1627
|
removeEmDashes?: boolean | undefined;
|
|
@@ -1602,14 +1638,6 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1602
1638
|
fallbackWithoutParent?: string | undefined;
|
|
1603
1639
|
fallbackBySlug?: Record<string, string> | undefined;
|
|
1604
1640
|
} | undefined;
|
|
1605
|
-
fallback?: {
|
|
1606
|
-
title?: string | undefined;
|
|
1607
|
-
description?: string | undefined;
|
|
1608
|
-
ogImage?: string | undefined;
|
|
1609
|
-
ogImageAlt?: string | undefined;
|
|
1610
|
-
noindex?: boolean | undefined;
|
|
1611
|
-
nofollow?: boolean | undefined;
|
|
1612
|
-
} | undefined;
|
|
1613
1641
|
titleTemplateMaxLength?: number | undefined;
|
|
1614
1642
|
defaults?: {
|
|
1615
1643
|
title?: string | undefined;
|
|
@@ -1622,6 +1650,7 @@ declare const MetadataDefaultRulesSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1622
1650
|
robots?: {
|
|
1623
1651
|
forceNoindex?: boolean | undefined;
|
|
1624
1652
|
forceNofollow?: boolean | undefined;
|
|
1653
|
+
noindexReasons?: string[] | undefined;
|
|
1625
1654
|
} | undefined;
|
|
1626
1655
|
useFeaturedImage?: boolean | undefined;
|
|
1627
1656
|
useFirstBodyImage?: boolean | undefined;
|
|
@@ -1660,6 +1689,3994 @@ declare function metadataContentImageUrl(value: string, normalizeCloudflareImage
|
|
|
1660
1689
|
/** Receives automatic source values only. User-entered SEO never passes through cleanup/truncation. */
|
|
1661
1690
|
declare function formatMetadataDefaults(input: MetadataDefaultsInput, declaration: MetadataDefaultsDeclaration): MetadataValues;
|
|
1662
1691
|
|
|
1692
|
+
type PostBodySource = {
|
|
1693
|
+
readonly kind: "html";
|
|
1694
|
+
readonly html: string;
|
|
1695
|
+
} | {
|
|
1696
|
+
readonly kind: "json";
|
|
1697
|
+
};
|
|
1698
|
+
/** Imported HTML is authoritative when sanitization leaves visible content. */
|
|
1699
|
+
declare function resolvePostBodySource(bodyHtml: string | null | undefined): PostBodySource;
|
|
1700
|
+
|
|
1701
|
+
/** Public field names only: no property paths, prototype keys, or executable expressions. */
|
|
1702
|
+
declare const ContentPolicyFieldNameSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
1703
|
+
declare const ContentPolicyScalarSchema: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1704
|
+
declare const ContentPolicyWhenSchema: z.ZodObject<{
|
|
1705
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1706
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1707
|
+
}, "strict", z.ZodTypeAny, {
|
|
1708
|
+
field: string;
|
|
1709
|
+
equals: string | number | boolean | null;
|
|
1710
|
+
}, {
|
|
1711
|
+
field: string;
|
|
1712
|
+
equals: string | number | boolean | null;
|
|
1713
|
+
}>;
|
|
1714
|
+
declare const ContentPolicyInternalPathSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
1715
|
+
/** Repeater children cannot contain another repeater, body check, or conditional expression. */
|
|
1716
|
+
declare const ContentPolicyScalarCheckSchema: z.ZodDiscriminatedUnion<"op", readonly [z.ZodObject<{
|
|
1717
|
+
op: z.ZodLiteral<"equals">;
|
|
1718
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1719
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1720
|
+
}, "strict", z.ZodTypeAny, {
|
|
1721
|
+
value: string | number | boolean | null;
|
|
1722
|
+
field: string;
|
|
1723
|
+
op: "equals";
|
|
1724
|
+
}, {
|
|
1725
|
+
value: string | number | boolean | null;
|
|
1726
|
+
field: string;
|
|
1727
|
+
op: "equals";
|
|
1728
|
+
}>, z.ZodObject<{
|
|
1729
|
+
op: z.ZodLiteral<"notEquals">;
|
|
1730
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1731
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1732
|
+
}, "strict", z.ZodTypeAny, {
|
|
1733
|
+
value: string | number | boolean | null;
|
|
1734
|
+
field: string;
|
|
1735
|
+
op: "notEquals";
|
|
1736
|
+
}, {
|
|
1737
|
+
value: string | number | boolean | null;
|
|
1738
|
+
field: string;
|
|
1739
|
+
op: "notEquals";
|
|
1740
|
+
}>, z.ZodObject<{
|
|
1741
|
+
op: z.ZodLiteral<"oneOf">;
|
|
1742
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
1743
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
1744
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1745
|
+
}, "strict", z.ZodTypeAny, {
|
|
1746
|
+
values: (string | number | boolean | null)[];
|
|
1747
|
+
field: string;
|
|
1748
|
+
op: "oneOf";
|
|
1749
|
+
allowEmpty?: boolean | undefined;
|
|
1750
|
+
}, {
|
|
1751
|
+
values: (string | number | boolean | null)[];
|
|
1752
|
+
field: string;
|
|
1753
|
+
op: "oneOf";
|
|
1754
|
+
allowEmpty?: boolean | undefined;
|
|
1755
|
+
}>, z.ZodObject<{
|
|
1756
|
+
op: z.ZodLiteral<"text">;
|
|
1757
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1758
|
+
}, "strict", z.ZodTypeAny, {
|
|
1759
|
+
field: string;
|
|
1760
|
+
op: "text";
|
|
1761
|
+
}, {
|
|
1762
|
+
field: string;
|
|
1763
|
+
op: "text";
|
|
1764
|
+
}>, z.ZodObject<{
|
|
1765
|
+
op: z.ZodLiteral<"date">;
|
|
1766
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1767
|
+
}, "strict", z.ZodTypeAny, {
|
|
1768
|
+
field: string;
|
|
1769
|
+
op: "date";
|
|
1770
|
+
}, {
|
|
1771
|
+
field: string;
|
|
1772
|
+
op: "date";
|
|
1773
|
+
}>, z.ZodObject<{
|
|
1774
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
1775
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1776
|
+
}, "strict", z.ZodTypeAny, {
|
|
1777
|
+
field: string;
|
|
1778
|
+
op: "safeHttps";
|
|
1779
|
+
}, {
|
|
1780
|
+
field: string;
|
|
1781
|
+
op: "safeHttps";
|
|
1782
|
+
}>, z.ZodObject<{
|
|
1783
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
1784
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
1785
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1786
|
+
}, "strict", z.ZodTypeAny, {
|
|
1787
|
+
field: string;
|
|
1788
|
+
op: "allowedPath";
|
|
1789
|
+
paths: string[];
|
|
1790
|
+
}, {
|
|
1791
|
+
field: string;
|
|
1792
|
+
op: "allowedPath";
|
|
1793
|
+
paths: string[];
|
|
1794
|
+
}>]>;
|
|
1795
|
+
type ContentPolicyScalarCheck = z.infer<typeof ContentPolicyScalarCheckSchema>;
|
|
1796
|
+
declare const ContentPolicyCheckSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
1797
|
+
op: z.ZodLiteral<"equals">;
|
|
1798
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1799
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1800
|
+
} & {
|
|
1801
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
1802
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1803
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1804
|
+
}, "strict", z.ZodTypeAny, {
|
|
1805
|
+
field: string;
|
|
1806
|
+
equals: string | number | boolean | null;
|
|
1807
|
+
}, {
|
|
1808
|
+
field: string;
|
|
1809
|
+
equals: string | number | boolean | null;
|
|
1810
|
+
}>>;
|
|
1811
|
+
}, "strict", z.ZodTypeAny, {
|
|
1812
|
+
value: string | number | boolean | null;
|
|
1813
|
+
field: string;
|
|
1814
|
+
op: "equals";
|
|
1815
|
+
when?: {
|
|
1816
|
+
field: string;
|
|
1817
|
+
equals: string | number | boolean | null;
|
|
1818
|
+
} | undefined;
|
|
1819
|
+
}, {
|
|
1820
|
+
value: string | number | boolean | null;
|
|
1821
|
+
field: string;
|
|
1822
|
+
op: "equals";
|
|
1823
|
+
when?: {
|
|
1824
|
+
field: string;
|
|
1825
|
+
equals: string | number | boolean | null;
|
|
1826
|
+
} | undefined;
|
|
1827
|
+
}>, z.ZodObject<{
|
|
1828
|
+
op: z.ZodLiteral<"notEquals">;
|
|
1829
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1830
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1831
|
+
} & {
|
|
1832
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
1833
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1834
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1835
|
+
}, "strict", z.ZodTypeAny, {
|
|
1836
|
+
field: string;
|
|
1837
|
+
equals: string | number | boolean | null;
|
|
1838
|
+
}, {
|
|
1839
|
+
field: string;
|
|
1840
|
+
equals: string | number | boolean | null;
|
|
1841
|
+
}>>;
|
|
1842
|
+
}, "strict", z.ZodTypeAny, {
|
|
1843
|
+
value: string | number | boolean | null;
|
|
1844
|
+
field: string;
|
|
1845
|
+
op: "notEquals";
|
|
1846
|
+
when?: {
|
|
1847
|
+
field: string;
|
|
1848
|
+
equals: string | number | boolean | null;
|
|
1849
|
+
} | undefined;
|
|
1850
|
+
}, {
|
|
1851
|
+
value: string | number | boolean | null;
|
|
1852
|
+
field: string;
|
|
1853
|
+
op: "notEquals";
|
|
1854
|
+
when?: {
|
|
1855
|
+
field: string;
|
|
1856
|
+
equals: string | number | boolean | null;
|
|
1857
|
+
} | undefined;
|
|
1858
|
+
}>, z.ZodObject<{
|
|
1859
|
+
op: z.ZodLiteral<"oneOf">;
|
|
1860
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
1861
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
1862
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1863
|
+
} & {
|
|
1864
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
1865
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1866
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1867
|
+
}, "strict", z.ZodTypeAny, {
|
|
1868
|
+
field: string;
|
|
1869
|
+
equals: string | number | boolean | null;
|
|
1870
|
+
}, {
|
|
1871
|
+
field: string;
|
|
1872
|
+
equals: string | number | boolean | null;
|
|
1873
|
+
}>>;
|
|
1874
|
+
}, "strict", z.ZodTypeAny, {
|
|
1875
|
+
values: (string | number | boolean | null)[];
|
|
1876
|
+
field: string;
|
|
1877
|
+
op: "oneOf";
|
|
1878
|
+
allowEmpty?: boolean | undefined;
|
|
1879
|
+
when?: {
|
|
1880
|
+
field: string;
|
|
1881
|
+
equals: string | number | boolean | null;
|
|
1882
|
+
} | undefined;
|
|
1883
|
+
}, {
|
|
1884
|
+
values: (string | number | boolean | null)[];
|
|
1885
|
+
field: string;
|
|
1886
|
+
op: "oneOf";
|
|
1887
|
+
allowEmpty?: boolean | undefined;
|
|
1888
|
+
when?: {
|
|
1889
|
+
field: string;
|
|
1890
|
+
equals: string | number | boolean | null;
|
|
1891
|
+
} | undefined;
|
|
1892
|
+
}>, z.ZodObject<{
|
|
1893
|
+
op: z.ZodLiteral<"text">;
|
|
1894
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1895
|
+
} & {
|
|
1896
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
1897
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1898
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1899
|
+
}, "strict", z.ZodTypeAny, {
|
|
1900
|
+
field: string;
|
|
1901
|
+
equals: string | number | boolean | null;
|
|
1902
|
+
}, {
|
|
1903
|
+
field: string;
|
|
1904
|
+
equals: string | number | boolean | null;
|
|
1905
|
+
}>>;
|
|
1906
|
+
}, "strict", z.ZodTypeAny, {
|
|
1907
|
+
field: string;
|
|
1908
|
+
op: "text";
|
|
1909
|
+
when?: {
|
|
1910
|
+
field: string;
|
|
1911
|
+
equals: string | number | boolean | null;
|
|
1912
|
+
} | undefined;
|
|
1913
|
+
}, {
|
|
1914
|
+
field: string;
|
|
1915
|
+
op: "text";
|
|
1916
|
+
when?: {
|
|
1917
|
+
field: string;
|
|
1918
|
+
equals: string | number | boolean | null;
|
|
1919
|
+
} | undefined;
|
|
1920
|
+
}>, z.ZodObject<{
|
|
1921
|
+
op: z.ZodLiteral<"date">;
|
|
1922
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1923
|
+
} & {
|
|
1924
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
1925
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1926
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1927
|
+
}, "strict", z.ZodTypeAny, {
|
|
1928
|
+
field: string;
|
|
1929
|
+
equals: string | number | boolean | null;
|
|
1930
|
+
}, {
|
|
1931
|
+
field: string;
|
|
1932
|
+
equals: string | number | boolean | null;
|
|
1933
|
+
}>>;
|
|
1934
|
+
}, "strict", z.ZodTypeAny, {
|
|
1935
|
+
field: string;
|
|
1936
|
+
op: "date";
|
|
1937
|
+
when?: {
|
|
1938
|
+
field: string;
|
|
1939
|
+
equals: string | number | boolean | null;
|
|
1940
|
+
} | undefined;
|
|
1941
|
+
}, {
|
|
1942
|
+
field: string;
|
|
1943
|
+
op: "date";
|
|
1944
|
+
when?: {
|
|
1945
|
+
field: string;
|
|
1946
|
+
equals: string | number | boolean | null;
|
|
1947
|
+
} | undefined;
|
|
1948
|
+
}>, z.ZodObject<{
|
|
1949
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
1950
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1951
|
+
} & {
|
|
1952
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
1953
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1954
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1955
|
+
}, "strict", z.ZodTypeAny, {
|
|
1956
|
+
field: string;
|
|
1957
|
+
equals: string | number | boolean | null;
|
|
1958
|
+
}, {
|
|
1959
|
+
field: string;
|
|
1960
|
+
equals: string | number | boolean | null;
|
|
1961
|
+
}>>;
|
|
1962
|
+
}, "strict", z.ZodTypeAny, {
|
|
1963
|
+
field: string;
|
|
1964
|
+
op: "safeHttps";
|
|
1965
|
+
when?: {
|
|
1966
|
+
field: string;
|
|
1967
|
+
equals: string | number | boolean | null;
|
|
1968
|
+
} | undefined;
|
|
1969
|
+
}, {
|
|
1970
|
+
field: string;
|
|
1971
|
+
op: "safeHttps";
|
|
1972
|
+
when?: {
|
|
1973
|
+
field: string;
|
|
1974
|
+
equals: string | number | boolean | null;
|
|
1975
|
+
} | undefined;
|
|
1976
|
+
}>, z.ZodObject<{
|
|
1977
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
1978
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
1979
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1980
|
+
} & {
|
|
1981
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
1982
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
1983
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
1984
|
+
}, "strict", z.ZodTypeAny, {
|
|
1985
|
+
field: string;
|
|
1986
|
+
equals: string | number | boolean | null;
|
|
1987
|
+
}, {
|
|
1988
|
+
field: string;
|
|
1989
|
+
equals: string | number | boolean | null;
|
|
1990
|
+
}>>;
|
|
1991
|
+
}, "strict", z.ZodTypeAny, {
|
|
1992
|
+
field: string;
|
|
1993
|
+
op: "allowedPath";
|
|
1994
|
+
paths: string[];
|
|
1995
|
+
when?: {
|
|
1996
|
+
field: string;
|
|
1997
|
+
equals: string | number | boolean | null;
|
|
1998
|
+
} | undefined;
|
|
1999
|
+
}, {
|
|
2000
|
+
field: string;
|
|
2001
|
+
op: "allowedPath";
|
|
2002
|
+
paths: string[];
|
|
2003
|
+
when?: {
|
|
2004
|
+
field: string;
|
|
2005
|
+
equals: string | number | boolean | null;
|
|
2006
|
+
} | undefined;
|
|
2007
|
+
}>, z.ZodObject<{
|
|
2008
|
+
op: z.ZodLiteral<"some">;
|
|
2009
|
+
checks: z.ZodArray<z.ZodDiscriminatedUnion<"op", readonly [z.ZodObject<{
|
|
2010
|
+
op: z.ZodLiteral<"equals">;
|
|
2011
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2012
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2013
|
+
}, "strict", z.ZodTypeAny, {
|
|
2014
|
+
value: string | number | boolean | null;
|
|
2015
|
+
field: string;
|
|
2016
|
+
op: "equals";
|
|
2017
|
+
}, {
|
|
2018
|
+
value: string | number | boolean | null;
|
|
2019
|
+
field: string;
|
|
2020
|
+
op: "equals";
|
|
2021
|
+
}>, z.ZodObject<{
|
|
2022
|
+
op: z.ZodLiteral<"notEquals">;
|
|
2023
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2024
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2025
|
+
}, "strict", z.ZodTypeAny, {
|
|
2026
|
+
value: string | number | boolean | null;
|
|
2027
|
+
field: string;
|
|
2028
|
+
op: "notEquals";
|
|
2029
|
+
}, {
|
|
2030
|
+
value: string | number | boolean | null;
|
|
2031
|
+
field: string;
|
|
2032
|
+
op: "notEquals";
|
|
2033
|
+
}>, z.ZodObject<{
|
|
2034
|
+
op: z.ZodLiteral<"oneOf">;
|
|
2035
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
2036
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
2037
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2038
|
+
}, "strict", z.ZodTypeAny, {
|
|
2039
|
+
values: (string | number | boolean | null)[];
|
|
2040
|
+
field: string;
|
|
2041
|
+
op: "oneOf";
|
|
2042
|
+
allowEmpty?: boolean | undefined;
|
|
2043
|
+
}, {
|
|
2044
|
+
values: (string | number | boolean | null)[];
|
|
2045
|
+
field: string;
|
|
2046
|
+
op: "oneOf";
|
|
2047
|
+
allowEmpty?: boolean | undefined;
|
|
2048
|
+
}>, z.ZodObject<{
|
|
2049
|
+
op: z.ZodLiteral<"text">;
|
|
2050
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2051
|
+
}, "strict", z.ZodTypeAny, {
|
|
2052
|
+
field: string;
|
|
2053
|
+
op: "text";
|
|
2054
|
+
}, {
|
|
2055
|
+
field: string;
|
|
2056
|
+
op: "text";
|
|
2057
|
+
}>, z.ZodObject<{
|
|
2058
|
+
op: z.ZodLiteral<"date">;
|
|
2059
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2060
|
+
}, "strict", z.ZodTypeAny, {
|
|
2061
|
+
field: string;
|
|
2062
|
+
op: "date";
|
|
2063
|
+
}, {
|
|
2064
|
+
field: string;
|
|
2065
|
+
op: "date";
|
|
2066
|
+
}>, z.ZodObject<{
|
|
2067
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
2068
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2069
|
+
}, "strict", z.ZodTypeAny, {
|
|
2070
|
+
field: string;
|
|
2071
|
+
op: "safeHttps";
|
|
2072
|
+
}, {
|
|
2073
|
+
field: string;
|
|
2074
|
+
op: "safeHttps";
|
|
2075
|
+
}>, z.ZodObject<{
|
|
2076
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
2077
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2078
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2079
|
+
}, "strict", z.ZodTypeAny, {
|
|
2080
|
+
field: string;
|
|
2081
|
+
op: "allowedPath";
|
|
2082
|
+
paths: string[];
|
|
2083
|
+
}, {
|
|
2084
|
+
field: string;
|
|
2085
|
+
op: "allowedPath";
|
|
2086
|
+
paths: string[];
|
|
2087
|
+
}>]>, "many">;
|
|
2088
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2089
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2090
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2091
|
+
}, "strict", z.ZodTypeAny, {
|
|
2092
|
+
field: string;
|
|
2093
|
+
equals: string | number | boolean | null;
|
|
2094
|
+
}, {
|
|
2095
|
+
field: string;
|
|
2096
|
+
equals: string | number | boolean | null;
|
|
2097
|
+
}>>;
|
|
2098
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2099
|
+
}, "strict", z.ZodTypeAny, {
|
|
2100
|
+
field: string;
|
|
2101
|
+
op: "some";
|
|
2102
|
+
checks: ({
|
|
2103
|
+
value: string | number | boolean | null;
|
|
2104
|
+
field: string;
|
|
2105
|
+
op: "equals";
|
|
2106
|
+
} | {
|
|
2107
|
+
value: string | number | boolean | null;
|
|
2108
|
+
field: string;
|
|
2109
|
+
op: "notEquals";
|
|
2110
|
+
} | {
|
|
2111
|
+
values: (string | number | boolean | null)[];
|
|
2112
|
+
field: string;
|
|
2113
|
+
op: "oneOf";
|
|
2114
|
+
allowEmpty?: boolean | undefined;
|
|
2115
|
+
} | {
|
|
2116
|
+
field: string;
|
|
2117
|
+
op: "text";
|
|
2118
|
+
} | {
|
|
2119
|
+
field: string;
|
|
2120
|
+
op: "date";
|
|
2121
|
+
} | {
|
|
2122
|
+
field: string;
|
|
2123
|
+
op: "safeHttps";
|
|
2124
|
+
} | {
|
|
2125
|
+
field: string;
|
|
2126
|
+
op: "allowedPath";
|
|
2127
|
+
paths: string[];
|
|
2128
|
+
})[];
|
|
2129
|
+
when?: {
|
|
2130
|
+
field: string;
|
|
2131
|
+
equals: string | number | boolean | null;
|
|
2132
|
+
} | undefined;
|
|
2133
|
+
}, {
|
|
2134
|
+
field: string;
|
|
2135
|
+
op: "some";
|
|
2136
|
+
checks: ({
|
|
2137
|
+
value: string | number | boolean | null;
|
|
2138
|
+
field: string;
|
|
2139
|
+
op: "equals";
|
|
2140
|
+
} | {
|
|
2141
|
+
value: string | number | boolean | null;
|
|
2142
|
+
field: string;
|
|
2143
|
+
op: "notEquals";
|
|
2144
|
+
} | {
|
|
2145
|
+
values: (string | number | boolean | null)[];
|
|
2146
|
+
field: string;
|
|
2147
|
+
op: "oneOf";
|
|
2148
|
+
allowEmpty?: boolean | undefined;
|
|
2149
|
+
} | {
|
|
2150
|
+
field: string;
|
|
2151
|
+
op: "text";
|
|
2152
|
+
} | {
|
|
2153
|
+
field: string;
|
|
2154
|
+
op: "date";
|
|
2155
|
+
} | {
|
|
2156
|
+
field: string;
|
|
2157
|
+
op: "safeHttps";
|
|
2158
|
+
} | {
|
|
2159
|
+
field: string;
|
|
2160
|
+
op: "allowedPath";
|
|
2161
|
+
paths: string[];
|
|
2162
|
+
})[];
|
|
2163
|
+
when?: {
|
|
2164
|
+
field: string;
|
|
2165
|
+
equals: string | number | boolean | null;
|
|
2166
|
+
} | undefined;
|
|
2167
|
+
}>, z.ZodObject<{
|
|
2168
|
+
op: z.ZodLiteral<"bodyContent">;
|
|
2169
|
+
allowExcerpt: z.ZodOptional<z.ZodBoolean>;
|
|
2170
|
+
allowFeaturedImage: z.ZodOptional<z.ZodBoolean>;
|
|
2171
|
+
additionalUrl: z.ZodOptional<z.ZodObject<{
|
|
2172
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2173
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2174
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2175
|
+
}, "strict", z.ZodTypeAny, {
|
|
2176
|
+
field: string;
|
|
2177
|
+
equals: string | number | boolean | null;
|
|
2178
|
+
}, {
|
|
2179
|
+
field: string;
|
|
2180
|
+
equals: string | number | boolean | null;
|
|
2181
|
+
}>>;
|
|
2182
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2183
|
+
}, "strict", z.ZodTypeAny, {
|
|
2184
|
+
field: string;
|
|
2185
|
+
when?: {
|
|
2186
|
+
field: string;
|
|
2187
|
+
equals: string | number | boolean | null;
|
|
2188
|
+
} | undefined;
|
|
2189
|
+
}, {
|
|
2190
|
+
field: string;
|
|
2191
|
+
when?: {
|
|
2192
|
+
field: string;
|
|
2193
|
+
equals: string | number | boolean | null;
|
|
2194
|
+
} | undefined;
|
|
2195
|
+
}>>;
|
|
2196
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2197
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2198
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2199
|
+
}, "strict", z.ZodTypeAny, {
|
|
2200
|
+
field: string;
|
|
2201
|
+
equals: string | number | boolean | null;
|
|
2202
|
+
}, {
|
|
2203
|
+
field: string;
|
|
2204
|
+
equals: string | number | boolean | null;
|
|
2205
|
+
}>>;
|
|
2206
|
+
}, "strict", z.ZodTypeAny, {
|
|
2207
|
+
op: "bodyContent";
|
|
2208
|
+
when?: {
|
|
2209
|
+
field: string;
|
|
2210
|
+
equals: string | number | boolean | null;
|
|
2211
|
+
} | undefined;
|
|
2212
|
+
allowExcerpt?: boolean | undefined;
|
|
2213
|
+
allowFeaturedImage?: boolean | undefined;
|
|
2214
|
+
additionalUrl?: {
|
|
2215
|
+
field: string;
|
|
2216
|
+
when?: {
|
|
2217
|
+
field: string;
|
|
2218
|
+
equals: string | number | boolean | null;
|
|
2219
|
+
} | undefined;
|
|
2220
|
+
} | undefined;
|
|
2221
|
+
}, {
|
|
2222
|
+
op: "bodyContent";
|
|
2223
|
+
when?: {
|
|
2224
|
+
field: string;
|
|
2225
|
+
equals: string | number | boolean | null;
|
|
2226
|
+
} | undefined;
|
|
2227
|
+
allowExcerpt?: boolean | undefined;
|
|
2228
|
+
allowFeaturedImage?: boolean | undefined;
|
|
2229
|
+
additionalUrl?: {
|
|
2230
|
+
field: string;
|
|
2231
|
+
when?: {
|
|
2232
|
+
field: string;
|
|
2233
|
+
equals: string | number | boolean | null;
|
|
2234
|
+
} | undefined;
|
|
2235
|
+
} | undefined;
|
|
2236
|
+
}>, z.ZodObject<{
|
|
2237
|
+
op: z.ZodLiteral<"bodyText">;
|
|
2238
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2239
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2240
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2241
|
+
}, "strict", z.ZodTypeAny, {
|
|
2242
|
+
field: string;
|
|
2243
|
+
equals: string | number | boolean | null;
|
|
2244
|
+
}, {
|
|
2245
|
+
field: string;
|
|
2246
|
+
equals: string | number | boolean | null;
|
|
2247
|
+
}>>;
|
|
2248
|
+
}, "strict", z.ZodTypeAny, {
|
|
2249
|
+
op: "bodyText";
|
|
2250
|
+
when?: {
|
|
2251
|
+
field: string;
|
|
2252
|
+
equals: string | number | boolean | null;
|
|
2253
|
+
} | undefined;
|
|
2254
|
+
}, {
|
|
2255
|
+
op: "bodyText";
|
|
2256
|
+
when?: {
|
|
2257
|
+
field: string;
|
|
2258
|
+
equals: string | number | boolean | null;
|
|
2259
|
+
} | undefined;
|
|
2260
|
+
}>]>;
|
|
2261
|
+
type ContentPolicyCheck = z.infer<typeof ContentPolicyCheckSchema>;
|
|
2262
|
+
/** Flat requirements with one conditional equality and at most one repeater level. */
|
|
2263
|
+
declare const contentPolicy: z.ZodObject<{
|
|
2264
|
+
visibility: z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
2265
|
+
op: z.ZodLiteral<"equals">;
|
|
2266
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2267
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2268
|
+
} & {
|
|
2269
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2270
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2271
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2272
|
+
}, "strict", z.ZodTypeAny, {
|
|
2273
|
+
field: string;
|
|
2274
|
+
equals: string | number | boolean | null;
|
|
2275
|
+
}, {
|
|
2276
|
+
field: string;
|
|
2277
|
+
equals: string | number | boolean | null;
|
|
2278
|
+
}>>;
|
|
2279
|
+
}, "strict", z.ZodTypeAny, {
|
|
2280
|
+
value: string | number | boolean | null;
|
|
2281
|
+
field: string;
|
|
2282
|
+
op: "equals";
|
|
2283
|
+
when?: {
|
|
2284
|
+
field: string;
|
|
2285
|
+
equals: string | number | boolean | null;
|
|
2286
|
+
} | undefined;
|
|
2287
|
+
}, {
|
|
2288
|
+
value: string | number | boolean | null;
|
|
2289
|
+
field: string;
|
|
2290
|
+
op: "equals";
|
|
2291
|
+
when?: {
|
|
2292
|
+
field: string;
|
|
2293
|
+
equals: string | number | boolean | null;
|
|
2294
|
+
} | undefined;
|
|
2295
|
+
}>, z.ZodObject<{
|
|
2296
|
+
op: z.ZodLiteral<"notEquals">;
|
|
2297
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2298
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2299
|
+
} & {
|
|
2300
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2301
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2302
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2303
|
+
}, "strict", z.ZodTypeAny, {
|
|
2304
|
+
field: string;
|
|
2305
|
+
equals: string | number | boolean | null;
|
|
2306
|
+
}, {
|
|
2307
|
+
field: string;
|
|
2308
|
+
equals: string | number | boolean | null;
|
|
2309
|
+
}>>;
|
|
2310
|
+
}, "strict", z.ZodTypeAny, {
|
|
2311
|
+
value: string | number | boolean | null;
|
|
2312
|
+
field: string;
|
|
2313
|
+
op: "notEquals";
|
|
2314
|
+
when?: {
|
|
2315
|
+
field: string;
|
|
2316
|
+
equals: string | number | boolean | null;
|
|
2317
|
+
} | undefined;
|
|
2318
|
+
}, {
|
|
2319
|
+
value: string | number | boolean | null;
|
|
2320
|
+
field: string;
|
|
2321
|
+
op: "notEquals";
|
|
2322
|
+
when?: {
|
|
2323
|
+
field: string;
|
|
2324
|
+
equals: string | number | boolean | null;
|
|
2325
|
+
} | undefined;
|
|
2326
|
+
}>, z.ZodObject<{
|
|
2327
|
+
op: z.ZodLiteral<"oneOf">;
|
|
2328
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
2329
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
2330
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2331
|
+
} & {
|
|
2332
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2333
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2334
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2335
|
+
}, "strict", z.ZodTypeAny, {
|
|
2336
|
+
field: string;
|
|
2337
|
+
equals: string | number | boolean | null;
|
|
2338
|
+
}, {
|
|
2339
|
+
field: string;
|
|
2340
|
+
equals: string | number | boolean | null;
|
|
2341
|
+
}>>;
|
|
2342
|
+
}, "strict", z.ZodTypeAny, {
|
|
2343
|
+
values: (string | number | boolean | null)[];
|
|
2344
|
+
field: string;
|
|
2345
|
+
op: "oneOf";
|
|
2346
|
+
allowEmpty?: boolean | undefined;
|
|
2347
|
+
when?: {
|
|
2348
|
+
field: string;
|
|
2349
|
+
equals: string | number | boolean | null;
|
|
2350
|
+
} | undefined;
|
|
2351
|
+
}, {
|
|
2352
|
+
values: (string | number | boolean | null)[];
|
|
2353
|
+
field: string;
|
|
2354
|
+
op: "oneOf";
|
|
2355
|
+
allowEmpty?: boolean | undefined;
|
|
2356
|
+
when?: {
|
|
2357
|
+
field: string;
|
|
2358
|
+
equals: string | number | boolean | null;
|
|
2359
|
+
} | undefined;
|
|
2360
|
+
}>, z.ZodObject<{
|
|
2361
|
+
op: z.ZodLiteral<"text">;
|
|
2362
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2363
|
+
} & {
|
|
2364
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2365
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2366
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2367
|
+
}, "strict", z.ZodTypeAny, {
|
|
2368
|
+
field: string;
|
|
2369
|
+
equals: string | number | boolean | null;
|
|
2370
|
+
}, {
|
|
2371
|
+
field: string;
|
|
2372
|
+
equals: string | number | boolean | null;
|
|
2373
|
+
}>>;
|
|
2374
|
+
}, "strict", z.ZodTypeAny, {
|
|
2375
|
+
field: string;
|
|
2376
|
+
op: "text";
|
|
2377
|
+
when?: {
|
|
2378
|
+
field: string;
|
|
2379
|
+
equals: string | number | boolean | null;
|
|
2380
|
+
} | undefined;
|
|
2381
|
+
}, {
|
|
2382
|
+
field: string;
|
|
2383
|
+
op: "text";
|
|
2384
|
+
when?: {
|
|
2385
|
+
field: string;
|
|
2386
|
+
equals: string | number | boolean | null;
|
|
2387
|
+
} | undefined;
|
|
2388
|
+
}>, z.ZodObject<{
|
|
2389
|
+
op: z.ZodLiteral<"date">;
|
|
2390
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2391
|
+
} & {
|
|
2392
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2393
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2394
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2395
|
+
}, "strict", z.ZodTypeAny, {
|
|
2396
|
+
field: string;
|
|
2397
|
+
equals: string | number | boolean | null;
|
|
2398
|
+
}, {
|
|
2399
|
+
field: string;
|
|
2400
|
+
equals: string | number | boolean | null;
|
|
2401
|
+
}>>;
|
|
2402
|
+
}, "strict", z.ZodTypeAny, {
|
|
2403
|
+
field: string;
|
|
2404
|
+
op: "date";
|
|
2405
|
+
when?: {
|
|
2406
|
+
field: string;
|
|
2407
|
+
equals: string | number | boolean | null;
|
|
2408
|
+
} | undefined;
|
|
2409
|
+
}, {
|
|
2410
|
+
field: string;
|
|
2411
|
+
op: "date";
|
|
2412
|
+
when?: {
|
|
2413
|
+
field: string;
|
|
2414
|
+
equals: string | number | boolean | null;
|
|
2415
|
+
} | undefined;
|
|
2416
|
+
}>, z.ZodObject<{
|
|
2417
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
2418
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2419
|
+
} & {
|
|
2420
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2421
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2422
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2423
|
+
}, "strict", z.ZodTypeAny, {
|
|
2424
|
+
field: string;
|
|
2425
|
+
equals: string | number | boolean | null;
|
|
2426
|
+
}, {
|
|
2427
|
+
field: string;
|
|
2428
|
+
equals: string | number | boolean | null;
|
|
2429
|
+
}>>;
|
|
2430
|
+
}, "strict", z.ZodTypeAny, {
|
|
2431
|
+
field: string;
|
|
2432
|
+
op: "safeHttps";
|
|
2433
|
+
when?: {
|
|
2434
|
+
field: string;
|
|
2435
|
+
equals: string | number | boolean | null;
|
|
2436
|
+
} | undefined;
|
|
2437
|
+
}, {
|
|
2438
|
+
field: string;
|
|
2439
|
+
op: "safeHttps";
|
|
2440
|
+
when?: {
|
|
2441
|
+
field: string;
|
|
2442
|
+
equals: string | number | boolean | null;
|
|
2443
|
+
} | undefined;
|
|
2444
|
+
}>, z.ZodObject<{
|
|
2445
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
2446
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2447
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2448
|
+
} & {
|
|
2449
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2450
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2451
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2452
|
+
}, "strict", z.ZodTypeAny, {
|
|
2453
|
+
field: string;
|
|
2454
|
+
equals: string | number | boolean | null;
|
|
2455
|
+
}, {
|
|
2456
|
+
field: string;
|
|
2457
|
+
equals: string | number | boolean | null;
|
|
2458
|
+
}>>;
|
|
2459
|
+
}, "strict", z.ZodTypeAny, {
|
|
2460
|
+
field: string;
|
|
2461
|
+
op: "allowedPath";
|
|
2462
|
+
paths: string[];
|
|
2463
|
+
when?: {
|
|
2464
|
+
field: string;
|
|
2465
|
+
equals: string | number | boolean | null;
|
|
2466
|
+
} | undefined;
|
|
2467
|
+
}, {
|
|
2468
|
+
field: string;
|
|
2469
|
+
op: "allowedPath";
|
|
2470
|
+
paths: string[];
|
|
2471
|
+
when?: {
|
|
2472
|
+
field: string;
|
|
2473
|
+
equals: string | number | boolean | null;
|
|
2474
|
+
} | undefined;
|
|
2475
|
+
}>, z.ZodObject<{
|
|
2476
|
+
op: z.ZodLiteral<"some">;
|
|
2477
|
+
checks: z.ZodArray<z.ZodDiscriminatedUnion<"op", readonly [z.ZodObject<{
|
|
2478
|
+
op: z.ZodLiteral<"equals">;
|
|
2479
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2480
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2481
|
+
}, "strict", z.ZodTypeAny, {
|
|
2482
|
+
value: string | number | boolean | null;
|
|
2483
|
+
field: string;
|
|
2484
|
+
op: "equals";
|
|
2485
|
+
}, {
|
|
2486
|
+
value: string | number | boolean | null;
|
|
2487
|
+
field: string;
|
|
2488
|
+
op: "equals";
|
|
2489
|
+
}>, z.ZodObject<{
|
|
2490
|
+
op: z.ZodLiteral<"notEquals">;
|
|
2491
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2492
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2493
|
+
}, "strict", z.ZodTypeAny, {
|
|
2494
|
+
value: string | number | boolean | null;
|
|
2495
|
+
field: string;
|
|
2496
|
+
op: "notEquals";
|
|
2497
|
+
}, {
|
|
2498
|
+
value: string | number | boolean | null;
|
|
2499
|
+
field: string;
|
|
2500
|
+
op: "notEquals";
|
|
2501
|
+
}>, z.ZodObject<{
|
|
2502
|
+
op: z.ZodLiteral<"oneOf">;
|
|
2503
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
2504
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
2505
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2506
|
+
}, "strict", z.ZodTypeAny, {
|
|
2507
|
+
values: (string | number | boolean | null)[];
|
|
2508
|
+
field: string;
|
|
2509
|
+
op: "oneOf";
|
|
2510
|
+
allowEmpty?: boolean | undefined;
|
|
2511
|
+
}, {
|
|
2512
|
+
values: (string | number | boolean | null)[];
|
|
2513
|
+
field: string;
|
|
2514
|
+
op: "oneOf";
|
|
2515
|
+
allowEmpty?: boolean | undefined;
|
|
2516
|
+
}>, z.ZodObject<{
|
|
2517
|
+
op: z.ZodLiteral<"text">;
|
|
2518
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2519
|
+
}, "strict", z.ZodTypeAny, {
|
|
2520
|
+
field: string;
|
|
2521
|
+
op: "text";
|
|
2522
|
+
}, {
|
|
2523
|
+
field: string;
|
|
2524
|
+
op: "text";
|
|
2525
|
+
}>, z.ZodObject<{
|
|
2526
|
+
op: z.ZodLiteral<"date">;
|
|
2527
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2528
|
+
}, "strict", z.ZodTypeAny, {
|
|
2529
|
+
field: string;
|
|
2530
|
+
op: "date";
|
|
2531
|
+
}, {
|
|
2532
|
+
field: string;
|
|
2533
|
+
op: "date";
|
|
2534
|
+
}>, z.ZodObject<{
|
|
2535
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
2536
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2537
|
+
}, "strict", z.ZodTypeAny, {
|
|
2538
|
+
field: string;
|
|
2539
|
+
op: "safeHttps";
|
|
2540
|
+
}, {
|
|
2541
|
+
field: string;
|
|
2542
|
+
op: "safeHttps";
|
|
2543
|
+
}>, z.ZodObject<{
|
|
2544
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
2545
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2546
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2547
|
+
}, "strict", z.ZodTypeAny, {
|
|
2548
|
+
field: string;
|
|
2549
|
+
op: "allowedPath";
|
|
2550
|
+
paths: string[];
|
|
2551
|
+
}, {
|
|
2552
|
+
field: string;
|
|
2553
|
+
op: "allowedPath";
|
|
2554
|
+
paths: string[];
|
|
2555
|
+
}>]>, "many">;
|
|
2556
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2557
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2558
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2559
|
+
}, "strict", z.ZodTypeAny, {
|
|
2560
|
+
field: string;
|
|
2561
|
+
equals: string | number | boolean | null;
|
|
2562
|
+
}, {
|
|
2563
|
+
field: string;
|
|
2564
|
+
equals: string | number | boolean | null;
|
|
2565
|
+
}>>;
|
|
2566
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2567
|
+
}, "strict", z.ZodTypeAny, {
|
|
2568
|
+
field: string;
|
|
2569
|
+
op: "some";
|
|
2570
|
+
checks: ({
|
|
2571
|
+
value: string | number | boolean | null;
|
|
2572
|
+
field: string;
|
|
2573
|
+
op: "equals";
|
|
2574
|
+
} | {
|
|
2575
|
+
value: string | number | boolean | null;
|
|
2576
|
+
field: string;
|
|
2577
|
+
op: "notEquals";
|
|
2578
|
+
} | {
|
|
2579
|
+
values: (string | number | boolean | null)[];
|
|
2580
|
+
field: string;
|
|
2581
|
+
op: "oneOf";
|
|
2582
|
+
allowEmpty?: boolean | undefined;
|
|
2583
|
+
} | {
|
|
2584
|
+
field: string;
|
|
2585
|
+
op: "text";
|
|
2586
|
+
} | {
|
|
2587
|
+
field: string;
|
|
2588
|
+
op: "date";
|
|
2589
|
+
} | {
|
|
2590
|
+
field: string;
|
|
2591
|
+
op: "safeHttps";
|
|
2592
|
+
} | {
|
|
2593
|
+
field: string;
|
|
2594
|
+
op: "allowedPath";
|
|
2595
|
+
paths: string[];
|
|
2596
|
+
})[];
|
|
2597
|
+
when?: {
|
|
2598
|
+
field: string;
|
|
2599
|
+
equals: string | number | boolean | null;
|
|
2600
|
+
} | undefined;
|
|
2601
|
+
}, {
|
|
2602
|
+
field: string;
|
|
2603
|
+
op: "some";
|
|
2604
|
+
checks: ({
|
|
2605
|
+
value: string | number | boolean | null;
|
|
2606
|
+
field: string;
|
|
2607
|
+
op: "equals";
|
|
2608
|
+
} | {
|
|
2609
|
+
value: string | number | boolean | null;
|
|
2610
|
+
field: string;
|
|
2611
|
+
op: "notEquals";
|
|
2612
|
+
} | {
|
|
2613
|
+
values: (string | number | boolean | null)[];
|
|
2614
|
+
field: string;
|
|
2615
|
+
op: "oneOf";
|
|
2616
|
+
allowEmpty?: boolean | undefined;
|
|
2617
|
+
} | {
|
|
2618
|
+
field: string;
|
|
2619
|
+
op: "text";
|
|
2620
|
+
} | {
|
|
2621
|
+
field: string;
|
|
2622
|
+
op: "date";
|
|
2623
|
+
} | {
|
|
2624
|
+
field: string;
|
|
2625
|
+
op: "safeHttps";
|
|
2626
|
+
} | {
|
|
2627
|
+
field: string;
|
|
2628
|
+
op: "allowedPath";
|
|
2629
|
+
paths: string[];
|
|
2630
|
+
})[];
|
|
2631
|
+
when?: {
|
|
2632
|
+
field: string;
|
|
2633
|
+
equals: string | number | boolean | null;
|
|
2634
|
+
} | undefined;
|
|
2635
|
+
}>, z.ZodObject<{
|
|
2636
|
+
op: z.ZodLiteral<"bodyContent">;
|
|
2637
|
+
allowExcerpt: z.ZodOptional<z.ZodBoolean>;
|
|
2638
|
+
allowFeaturedImage: z.ZodOptional<z.ZodBoolean>;
|
|
2639
|
+
additionalUrl: z.ZodOptional<z.ZodObject<{
|
|
2640
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2641
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2642
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2643
|
+
}, "strict", z.ZodTypeAny, {
|
|
2644
|
+
field: string;
|
|
2645
|
+
equals: string | number | boolean | null;
|
|
2646
|
+
}, {
|
|
2647
|
+
field: string;
|
|
2648
|
+
equals: string | number | boolean | null;
|
|
2649
|
+
}>>;
|
|
2650
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2651
|
+
}, "strict", z.ZodTypeAny, {
|
|
2652
|
+
field: string;
|
|
2653
|
+
when?: {
|
|
2654
|
+
field: string;
|
|
2655
|
+
equals: string | number | boolean | null;
|
|
2656
|
+
} | undefined;
|
|
2657
|
+
}, {
|
|
2658
|
+
field: string;
|
|
2659
|
+
when?: {
|
|
2660
|
+
field: string;
|
|
2661
|
+
equals: string | number | boolean | null;
|
|
2662
|
+
} | undefined;
|
|
2663
|
+
}>>;
|
|
2664
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2665
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2666
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2667
|
+
}, "strict", z.ZodTypeAny, {
|
|
2668
|
+
field: string;
|
|
2669
|
+
equals: string | number | boolean | null;
|
|
2670
|
+
}, {
|
|
2671
|
+
field: string;
|
|
2672
|
+
equals: string | number | boolean | null;
|
|
2673
|
+
}>>;
|
|
2674
|
+
}, "strict", z.ZodTypeAny, {
|
|
2675
|
+
op: "bodyContent";
|
|
2676
|
+
when?: {
|
|
2677
|
+
field: string;
|
|
2678
|
+
equals: string | number | boolean | null;
|
|
2679
|
+
} | undefined;
|
|
2680
|
+
allowExcerpt?: boolean | undefined;
|
|
2681
|
+
allowFeaturedImage?: boolean | undefined;
|
|
2682
|
+
additionalUrl?: {
|
|
2683
|
+
field: string;
|
|
2684
|
+
when?: {
|
|
2685
|
+
field: string;
|
|
2686
|
+
equals: string | number | boolean | null;
|
|
2687
|
+
} | undefined;
|
|
2688
|
+
} | undefined;
|
|
2689
|
+
}, {
|
|
2690
|
+
op: "bodyContent";
|
|
2691
|
+
when?: {
|
|
2692
|
+
field: string;
|
|
2693
|
+
equals: string | number | boolean | null;
|
|
2694
|
+
} | undefined;
|
|
2695
|
+
allowExcerpt?: boolean | undefined;
|
|
2696
|
+
allowFeaturedImage?: boolean | undefined;
|
|
2697
|
+
additionalUrl?: {
|
|
2698
|
+
field: string;
|
|
2699
|
+
when?: {
|
|
2700
|
+
field: string;
|
|
2701
|
+
equals: string | number | boolean | null;
|
|
2702
|
+
} | undefined;
|
|
2703
|
+
} | undefined;
|
|
2704
|
+
}>, z.ZodObject<{
|
|
2705
|
+
op: z.ZodLiteral<"bodyText">;
|
|
2706
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2707
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2708
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2709
|
+
}, "strict", z.ZodTypeAny, {
|
|
2710
|
+
field: string;
|
|
2711
|
+
equals: string | number | boolean | null;
|
|
2712
|
+
}, {
|
|
2713
|
+
field: string;
|
|
2714
|
+
equals: string | number | boolean | null;
|
|
2715
|
+
}>>;
|
|
2716
|
+
}, "strict", z.ZodTypeAny, {
|
|
2717
|
+
op: "bodyText";
|
|
2718
|
+
when?: {
|
|
2719
|
+
field: string;
|
|
2720
|
+
equals: string | number | boolean | null;
|
|
2721
|
+
} | undefined;
|
|
2722
|
+
}, {
|
|
2723
|
+
op: "bodyText";
|
|
2724
|
+
when?: {
|
|
2725
|
+
field: string;
|
|
2726
|
+
equals: string | number | boolean | null;
|
|
2727
|
+
} | undefined;
|
|
2728
|
+
}>]>, "many">;
|
|
2729
|
+
indexing: z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
2730
|
+
op: z.ZodLiteral<"equals">;
|
|
2731
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2732
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2733
|
+
} & {
|
|
2734
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2735
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2736
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2737
|
+
}, "strict", z.ZodTypeAny, {
|
|
2738
|
+
field: string;
|
|
2739
|
+
equals: string | number | boolean | null;
|
|
2740
|
+
}, {
|
|
2741
|
+
field: string;
|
|
2742
|
+
equals: string | number | boolean | null;
|
|
2743
|
+
}>>;
|
|
2744
|
+
}, "strict", z.ZodTypeAny, {
|
|
2745
|
+
value: string | number | boolean | null;
|
|
2746
|
+
field: string;
|
|
2747
|
+
op: "equals";
|
|
2748
|
+
when?: {
|
|
2749
|
+
field: string;
|
|
2750
|
+
equals: string | number | boolean | null;
|
|
2751
|
+
} | undefined;
|
|
2752
|
+
}, {
|
|
2753
|
+
value: string | number | boolean | null;
|
|
2754
|
+
field: string;
|
|
2755
|
+
op: "equals";
|
|
2756
|
+
when?: {
|
|
2757
|
+
field: string;
|
|
2758
|
+
equals: string | number | boolean | null;
|
|
2759
|
+
} | undefined;
|
|
2760
|
+
}>, z.ZodObject<{
|
|
2761
|
+
op: z.ZodLiteral<"notEquals">;
|
|
2762
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2763
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2764
|
+
} & {
|
|
2765
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2766
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2767
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2768
|
+
}, "strict", z.ZodTypeAny, {
|
|
2769
|
+
field: string;
|
|
2770
|
+
equals: string | number | boolean | null;
|
|
2771
|
+
}, {
|
|
2772
|
+
field: string;
|
|
2773
|
+
equals: string | number | boolean | null;
|
|
2774
|
+
}>>;
|
|
2775
|
+
}, "strict", z.ZodTypeAny, {
|
|
2776
|
+
value: string | number | boolean | null;
|
|
2777
|
+
field: string;
|
|
2778
|
+
op: "notEquals";
|
|
2779
|
+
when?: {
|
|
2780
|
+
field: string;
|
|
2781
|
+
equals: string | number | boolean | null;
|
|
2782
|
+
} | undefined;
|
|
2783
|
+
}, {
|
|
2784
|
+
value: string | number | boolean | null;
|
|
2785
|
+
field: string;
|
|
2786
|
+
op: "notEquals";
|
|
2787
|
+
when?: {
|
|
2788
|
+
field: string;
|
|
2789
|
+
equals: string | number | boolean | null;
|
|
2790
|
+
} | undefined;
|
|
2791
|
+
}>, z.ZodObject<{
|
|
2792
|
+
op: z.ZodLiteral<"oneOf">;
|
|
2793
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
2794
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
2795
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2796
|
+
} & {
|
|
2797
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2798
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2799
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2800
|
+
}, "strict", z.ZodTypeAny, {
|
|
2801
|
+
field: string;
|
|
2802
|
+
equals: string | number | boolean | null;
|
|
2803
|
+
}, {
|
|
2804
|
+
field: string;
|
|
2805
|
+
equals: string | number | boolean | null;
|
|
2806
|
+
}>>;
|
|
2807
|
+
}, "strict", z.ZodTypeAny, {
|
|
2808
|
+
values: (string | number | boolean | null)[];
|
|
2809
|
+
field: string;
|
|
2810
|
+
op: "oneOf";
|
|
2811
|
+
allowEmpty?: boolean | undefined;
|
|
2812
|
+
when?: {
|
|
2813
|
+
field: string;
|
|
2814
|
+
equals: string | number | boolean | null;
|
|
2815
|
+
} | undefined;
|
|
2816
|
+
}, {
|
|
2817
|
+
values: (string | number | boolean | null)[];
|
|
2818
|
+
field: string;
|
|
2819
|
+
op: "oneOf";
|
|
2820
|
+
allowEmpty?: boolean | undefined;
|
|
2821
|
+
when?: {
|
|
2822
|
+
field: string;
|
|
2823
|
+
equals: string | number | boolean | null;
|
|
2824
|
+
} | undefined;
|
|
2825
|
+
}>, z.ZodObject<{
|
|
2826
|
+
op: z.ZodLiteral<"text">;
|
|
2827
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2828
|
+
} & {
|
|
2829
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2830
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2831
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2832
|
+
}, "strict", z.ZodTypeAny, {
|
|
2833
|
+
field: string;
|
|
2834
|
+
equals: string | number | boolean | null;
|
|
2835
|
+
}, {
|
|
2836
|
+
field: string;
|
|
2837
|
+
equals: string | number | boolean | null;
|
|
2838
|
+
}>>;
|
|
2839
|
+
}, "strict", z.ZodTypeAny, {
|
|
2840
|
+
field: string;
|
|
2841
|
+
op: "text";
|
|
2842
|
+
when?: {
|
|
2843
|
+
field: string;
|
|
2844
|
+
equals: string | number | boolean | null;
|
|
2845
|
+
} | undefined;
|
|
2846
|
+
}, {
|
|
2847
|
+
field: string;
|
|
2848
|
+
op: "text";
|
|
2849
|
+
when?: {
|
|
2850
|
+
field: string;
|
|
2851
|
+
equals: string | number | boolean | null;
|
|
2852
|
+
} | undefined;
|
|
2853
|
+
}>, z.ZodObject<{
|
|
2854
|
+
op: z.ZodLiteral<"date">;
|
|
2855
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2856
|
+
} & {
|
|
2857
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2858
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2859
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2860
|
+
}, "strict", z.ZodTypeAny, {
|
|
2861
|
+
field: string;
|
|
2862
|
+
equals: string | number | boolean | null;
|
|
2863
|
+
}, {
|
|
2864
|
+
field: string;
|
|
2865
|
+
equals: string | number | boolean | null;
|
|
2866
|
+
}>>;
|
|
2867
|
+
}, "strict", z.ZodTypeAny, {
|
|
2868
|
+
field: string;
|
|
2869
|
+
op: "date";
|
|
2870
|
+
when?: {
|
|
2871
|
+
field: string;
|
|
2872
|
+
equals: string | number | boolean | null;
|
|
2873
|
+
} | undefined;
|
|
2874
|
+
}, {
|
|
2875
|
+
field: string;
|
|
2876
|
+
op: "date";
|
|
2877
|
+
when?: {
|
|
2878
|
+
field: string;
|
|
2879
|
+
equals: string | number | boolean | null;
|
|
2880
|
+
} | undefined;
|
|
2881
|
+
}>, z.ZodObject<{
|
|
2882
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
2883
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2884
|
+
} & {
|
|
2885
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2886
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2887
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2888
|
+
}, "strict", z.ZodTypeAny, {
|
|
2889
|
+
field: string;
|
|
2890
|
+
equals: string | number | boolean | null;
|
|
2891
|
+
}, {
|
|
2892
|
+
field: string;
|
|
2893
|
+
equals: string | number | boolean | null;
|
|
2894
|
+
}>>;
|
|
2895
|
+
}, "strict", z.ZodTypeAny, {
|
|
2896
|
+
field: string;
|
|
2897
|
+
op: "safeHttps";
|
|
2898
|
+
when?: {
|
|
2899
|
+
field: string;
|
|
2900
|
+
equals: string | number | boolean | null;
|
|
2901
|
+
} | undefined;
|
|
2902
|
+
}, {
|
|
2903
|
+
field: string;
|
|
2904
|
+
op: "safeHttps";
|
|
2905
|
+
when?: {
|
|
2906
|
+
field: string;
|
|
2907
|
+
equals: string | number | boolean | null;
|
|
2908
|
+
} | undefined;
|
|
2909
|
+
}>, z.ZodObject<{
|
|
2910
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
2911
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
2912
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2913
|
+
} & {
|
|
2914
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
2915
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2916
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2917
|
+
}, "strict", z.ZodTypeAny, {
|
|
2918
|
+
field: string;
|
|
2919
|
+
equals: string | number | boolean | null;
|
|
2920
|
+
}, {
|
|
2921
|
+
field: string;
|
|
2922
|
+
equals: string | number | boolean | null;
|
|
2923
|
+
}>>;
|
|
2924
|
+
}, "strict", z.ZodTypeAny, {
|
|
2925
|
+
field: string;
|
|
2926
|
+
op: "allowedPath";
|
|
2927
|
+
paths: string[];
|
|
2928
|
+
when?: {
|
|
2929
|
+
field: string;
|
|
2930
|
+
equals: string | number | boolean | null;
|
|
2931
|
+
} | undefined;
|
|
2932
|
+
}, {
|
|
2933
|
+
field: string;
|
|
2934
|
+
op: "allowedPath";
|
|
2935
|
+
paths: string[];
|
|
2936
|
+
when?: {
|
|
2937
|
+
field: string;
|
|
2938
|
+
equals: string | number | boolean | null;
|
|
2939
|
+
} | undefined;
|
|
2940
|
+
}>, z.ZodObject<{
|
|
2941
|
+
op: z.ZodLiteral<"some">;
|
|
2942
|
+
checks: z.ZodArray<z.ZodDiscriminatedUnion<"op", readonly [z.ZodObject<{
|
|
2943
|
+
op: z.ZodLiteral<"equals">;
|
|
2944
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2945
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2946
|
+
}, "strict", z.ZodTypeAny, {
|
|
2947
|
+
value: string | number | boolean | null;
|
|
2948
|
+
field: string;
|
|
2949
|
+
op: "equals";
|
|
2950
|
+
}, {
|
|
2951
|
+
value: string | number | boolean | null;
|
|
2952
|
+
field: string;
|
|
2953
|
+
op: "equals";
|
|
2954
|
+
}>, z.ZodObject<{
|
|
2955
|
+
op: z.ZodLiteral<"notEquals">;
|
|
2956
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
2957
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2958
|
+
}, "strict", z.ZodTypeAny, {
|
|
2959
|
+
value: string | number | boolean | null;
|
|
2960
|
+
field: string;
|
|
2961
|
+
op: "notEquals";
|
|
2962
|
+
}, {
|
|
2963
|
+
value: string | number | boolean | null;
|
|
2964
|
+
field: string;
|
|
2965
|
+
op: "notEquals";
|
|
2966
|
+
}>, z.ZodObject<{
|
|
2967
|
+
op: z.ZodLiteral<"oneOf">;
|
|
2968
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
2969
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
2970
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2971
|
+
}, "strict", z.ZodTypeAny, {
|
|
2972
|
+
values: (string | number | boolean | null)[];
|
|
2973
|
+
field: string;
|
|
2974
|
+
op: "oneOf";
|
|
2975
|
+
allowEmpty?: boolean | undefined;
|
|
2976
|
+
}, {
|
|
2977
|
+
values: (string | number | boolean | null)[];
|
|
2978
|
+
field: string;
|
|
2979
|
+
op: "oneOf";
|
|
2980
|
+
allowEmpty?: boolean | undefined;
|
|
2981
|
+
}>, z.ZodObject<{
|
|
2982
|
+
op: z.ZodLiteral<"text">;
|
|
2983
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2984
|
+
}, "strict", z.ZodTypeAny, {
|
|
2985
|
+
field: string;
|
|
2986
|
+
op: "text";
|
|
2987
|
+
}, {
|
|
2988
|
+
field: string;
|
|
2989
|
+
op: "text";
|
|
2990
|
+
}>, z.ZodObject<{
|
|
2991
|
+
op: z.ZodLiteral<"date">;
|
|
2992
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
2993
|
+
}, "strict", z.ZodTypeAny, {
|
|
2994
|
+
field: string;
|
|
2995
|
+
op: "date";
|
|
2996
|
+
}, {
|
|
2997
|
+
field: string;
|
|
2998
|
+
op: "date";
|
|
2999
|
+
}>, z.ZodObject<{
|
|
3000
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
3001
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3002
|
+
}, "strict", z.ZodTypeAny, {
|
|
3003
|
+
field: string;
|
|
3004
|
+
op: "safeHttps";
|
|
3005
|
+
}, {
|
|
3006
|
+
field: string;
|
|
3007
|
+
op: "safeHttps";
|
|
3008
|
+
}>, z.ZodObject<{
|
|
3009
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
3010
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
3011
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3012
|
+
}, "strict", z.ZodTypeAny, {
|
|
3013
|
+
field: string;
|
|
3014
|
+
op: "allowedPath";
|
|
3015
|
+
paths: string[];
|
|
3016
|
+
}, {
|
|
3017
|
+
field: string;
|
|
3018
|
+
op: "allowedPath";
|
|
3019
|
+
paths: string[];
|
|
3020
|
+
}>]>, "many">;
|
|
3021
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3022
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3023
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3024
|
+
}, "strict", z.ZodTypeAny, {
|
|
3025
|
+
field: string;
|
|
3026
|
+
equals: string | number | boolean | null;
|
|
3027
|
+
}, {
|
|
3028
|
+
field: string;
|
|
3029
|
+
equals: string | number | boolean | null;
|
|
3030
|
+
}>>;
|
|
3031
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3032
|
+
}, "strict", z.ZodTypeAny, {
|
|
3033
|
+
field: string;
|
|
3034
|
+
op: "some";
|
|
3035
|
+
checks: ({
|
|
3036
|
+
value: string | number | boolean | null;
|
|
3037
|
+
field: string;
|
|
3038
|
+
op: "equals";
|
|
3039
|
+
} | {
|
|
3040
|
+
value: string | number | boolean | null;
|
|
3041
|
+
field: string;
|
|
3042
|
+
op: "notEquals";
|
|
3043
|
+
} | {
|
|
3044
|
+
values: (string | number | boolean | null)[];
|
|
3045
|
+
field: string;
|
|
3046
|
+
op: "oneOf";
|
|
3047
|
+
allowEmpty?: boolean | undefined;
|
|
3048
|
+
} | {
|
|
3049
|
+
field: string;
|
|
3050
|
+
op: "text";
|
|
3051
|
+
} | {
|
|
3052
|
+
field: string;
|
|
3053
|
+
op: "date";
|
|
3054
|
+
} | {
|
|
3055
|
+
field: string;
|
|
3056
|
+
op: "safeHttps";
|
|
3057
|
+
} | {
|
|
3058
|
+
field: string;
|
|
3059
|
+
op: "allowedPath";
|
|
3060
|
+
paths: string[];
|
|
3061
|
+
})[];
|
|
3062
|
+
when?: {
|
|
3063
|
+
field: string;
|
|
3064
|
+
equals: string | number | boolean | null;
|
|
3065
|
+
} | undefined;
|
|
3066
|
+
}, {
|
|
3067
|
+
field: string;
|
|
3068
|
+
op: "some";
|
|
3069
|
+
checks: ({
|
|
3070
|
+
value: string | number | boolean | null;
|
|
3071
|
+
field: string;
|
|
3072
|
+
op: "equals";
|
|
3073
|
+
} | {
|
|
3074
|
+
value: string | number | boolean | null;
|
|
3075
|
+
field: string;
|
|
3076
|
+
op: "notEquals";
|
|
3077
|
+
} | {
|
|
3078
|
+
values: (string | number | boolean | null)[];
|
|
3079
|
+
field: string;
|
|
3080
|
+
op: "oneOf";
|
|
3081
|
+
allowEmpty?: boolean | undefined;
|
|
3082
|
+
} | {
|
|
3083
|
+
field: string;
|
|
3084
|
+
op: "text";
|
|
3085
|
+
} | {
|
|
3086
|
+
field: string;
|
|
3087
|
+
op: "date";
|
|
3088
|
+
} | {
|
|
3089
|
+
field: string;
|
|
3090
|
+
op: "safeHttps";
|
|
3091
|
+
} | {
|
|
3092
|
+
field: string;
|
|
3093
|
+
op: "allowedPath";
|
|
3094
|
+
paths: string[];
|
|
3095
|
+
})[];
|
|
3096
|
+
when?: {
|
|
3097
|
+
field: string;
|
|
3098
|
+
equals: string | number | boolean | null;
|
|
3099
|
+
} | undefined;
|
|
3100
|
+
}>, z.ZodObject<{
|
|
3101
|
+
op: z.ZodLiteral<"bodyContent">;
|
|
3102
|
+
allowExcerpt: z.ZodOptional<z.ZodBoolean>;
|
|
3103
|
+
allowFeaturedImage: z.ZodOptional<z.ZodBoolean>;
|
|
3104
|
+
additionalUrl: z.ZodOptional<z.ZodObject<{
|
|
3105
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3106
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3107
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3108
|
+
}, "strict", z.ZodTypeAny, {
|
|
3109
|
+
field: string;
|
|
3110
|
+
equals: string | number | boolean | null;
|
|
3111
|
+
}, {
|
|
3112
|
+
field: string;
|
|
3113
|
+
equals: string | number | boolean | null;
|
|
3114
|
+
}>>;
|
|
3115
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3116
|
+
}, "strict", z.ZodTypeAny, {
|
|
3117
|
+
field: string;
|
|
3118
|
+
when?: {
|
|
3119
|
+
field: string;
|
|
3120
|
+
equals: string | number | boolean | null;
|
|
3121
|
+
} | undefined;
|
|
3122
|
+
}, {
|
|
3123
|
+
field: string;
|
|
3124
|
+
when?: {
|
|
3125
|
+
field: string;
|
|
3126
|
+
equals: string | number | boolean | null;
|
|
3127
|
+
} | undefined;
|
|
3128
|
+
}>>;
|
|
3129
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3130
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3131
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3132
|
+
}, "strict", z.ZodTypeAny, {
|
|
3133
|
+
field: string;
|
|
3134
|
+
equals: string | number | boolean | null;
|
|
3135
|
+
}, {
|
|
3136
|
+
field: string;
|
|
3137
|
+
equals: string | number | boolean | null;
|
|
3138
|
+
}>>;
|
|
3139
|
+
}, "strict", z.ZodTypeAny, {
|
|
3140
|
+
op: "bodyContent";
|
|
3141
|
+
when?: {
|
|
3142
|
+
field: string;
|
|
3143
|
+
equals: string | number | boolean | null;
|
|
3144
|
+
} | undefined;
|
|
3145
|
+
allowExcerpt?: boolean | undefined;
|
|
3146
|
+
allowFeaturedImage?: boolean | undefined;
|
|
3147
|
+
additionalUrl?: {
|
|
3148
|
+
field: string;
|
|
3149
|
+
when?: {
|
|
3150
|
+
field: string;
|
|
3151
|
+
equals: string | number | boolean | null;
|
|
3152
|
+
} | undefined;
|
|
3153
|
+
} | undefined;
|
|
3154
|
+
}, {
|
|
3155
|
+
op: "bodyContent";
|
|
3156
|
+
when?: {
|
|
3157
|
+
field: string;
|
|
3158
|
+
equals: string | number | boolean | null;
|
|
3159
|
+
} | undefined;
|
|
3160
|
+
allowExcerpt?: boolean | undefined;
|
|
3161
|
+
allowFeaturedImage?: boolean | undefined;
|
|
3162
|
+
additionalUrl?: {
|
|
3163
|
+
field: string;
|
|
3164
|
+
when?: {
|
|
3165
|
+
field: string;
|
|
3166
|
+
equals: string | number | boolean | null;
|
|
3167
|
+
} | undefined;
|
|
3168
|
+
} | undefined;
|
|
3169
|
+
}>, z.ZodObject<{
|
|
3170
|
+
op: z.ZodLiteral<"bodyText">;
|
|
3171
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3172
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3173
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3174
|
+
}, "strict", z.ZodTypeAny, {
|
|
3175
|
+
field: string;
|
|
3176
|
+
equals: string | number | boolean | null;
|
|
3177
|
+
}, {
|
|
3178
|
+
field: string;
|
|
3179
|
+
equals: string | number | boolean | null;
|
|
3180
|
+
}>>;
|
|
3181
|
+
}, "strict", z.ZodTypeAny, {
|
|
3182
|
+
op: "bodyText";
|
|
3183
|
+
when?: {
|
|
3184
|
+
field: string;
|
|
3185
|
+
equals: string | number | boolean | null;
|
|
3186
|
+
} | undefined;
|
|
3187
|
+
}, {
|
|
3188
|
+
op: "bodyText";
|
|
3189
|
+
when?: {
|
|
3190
|
+
field: string;
|
|
3191
|
+
equals: string | number | boolean | null;
|
|
3192
|
+
} | undefined;
|
|
3193
|
+
}>]>, "many">;
|
|
3194
|
+
pathSegmentFormat: z.ZodOptional<z.ZodLiteral<"lower-kebab">>;
|
|
3195
|
+
}, "strict", z.ZodTypeAny, {
|
|
3196
|
+
visibility: ({
|
|
3197
|
+
value: string | number | boolean | null;
|
|
3198
|
+
field: string;
|
|
3199
|
+
op: "equals";
|
|
3200
|
+
when?: {
|
|
3201
|
+
field: string;
|
|
3202
|
+
equals: string | number | boolean | null;
|
|
3203
|
+
} | undefined;
|
|
3204
|
+
} | {
|
|
3205
|
+
value: string | number | boolean | null;
|
|
3206
|
+
field: string;
|
|
3207
|
+
op: "notEquals";
|
|
3208
|
+
when?: {
|
|
3209
|
+
field: string;
|
|
3210
|
+
equals: string | number | boolean | null;
|
|
3211
|
+
} | undefined;
|
|
3212
|
+
} | {
|
|
3213
|
+
values: (string | number | boolean | null)[];
|
|
3214
|
+
field: string;
|
|
3215
|
+
op: "oneOf";
|
|
3216
|
+
allowEmpty?: boolean | undefined;
|
|
3217
|
+
when?: {
|
|
3218
|
+
field: string;
|
|
3219
|
+
equals: string | number | boolean | null;
|
|
3220
|
+
} | undefined;
|
|
3221
|
+
} | {
|
|
3222
|
+
field: string;
|
|
3223
|
+
op: "text";
|
|
3224
|
+
when?: {
|
|
3225
|
+
field: string;
|
|
3226
|
+
equals: string | number | boolean | null;
|
|
3227
|
+
} | undefined;
|
|
3228
|
+
} | {
|
|
3229
|
+
field: string;
|
|
3230
|
+
op: "date";
|
|
3231
|
+
when?: {
|
|
3232
|
+
field: string;
|
|
3233
|
+
equals: string | number | boolean | null;
|
|
3234
|
+
} | undefined;
|
|
3235
|
+
} | {
|
|
3236
|
+
field: string;
|
|
3237
|
+
op: "safeHttps";
|
|
3238
|
+
when?: {
|
|
3239
|
+
field: string;
|
|
3240
|
+
equals: string | number | boolean | null;
|
|
3241
|
+
} | undefined;
|
|
3242
|
+
} | {
|
|
3243
|
+
field: string;
|
|
3244
|
+
op: "allowedPath";
|
|
3245
|
+
paths: string[];
|
|
3246
|
+
when?: {
|
|
3247
|
+
field: string;
|
|
3248
|
+
equals: string | number | boolean | null;
|
|
3249
|
+
} | undefined;
|
|
3250
|
+
} | {
|
|
3251
|
+
field: string;
|
|
3252
|
+
op: "some";
|
|
3253
|
+
checks: ({
|
|
3254
|
+
value: string | number | boolean | null;
|
|
3255
|
+
field: string;
|
|
3256
|
+
op: "equals";
|
|
3257
|
+
} | {
|
|
3258
|
+
value: string | number | boolean | null;
|
|
3259
|
+
field: string;
|
|
3260
|
+
op: "notEquals";
|
|
3261
|
+
} | {
|
|
3262
|
+
values: (string | number | boolean | null)[];
|
|
3263
|
+
field: string;
|
|
3264
|
+
op: "oneOf";
|
|
3265
|
+
allowEmpty?: boolean | undefined;
|
|
3266
|
+
} | {
|
|
3267
|
+
field: string;
|
|
3268
|
+
op: "text";
|
|
3269
|
+
} | {
|
|
3270
|
+
field: string;
|
|
3271
|
+
op: "date";
|
|
3272
|
+
} | {
|
|
3273
|
+
field: string;
|
|
3274
|
+
op: "safeHttps";
|
|
3275
|
+
} | {
|
|
3276
|
+
field: string;
|
|
3277
|
+
op: "allowedPath";
|
|
3278
|
+
paths: string[];
|
|
3279
|
+
})[];
|
|
3280
|
+
when?: {
|
|
3281
|
+
field: string;
|
|
3282
|
+
equals: string | number | boolean | null;
|
|
3283
|
+
} | undefined;
|
|
3284
|
+
} | {
|
|
3285
|
+
op: "bodyContent";
|
|
3286
|
+
when?: {
|
|
3287
|
+
field: string;
|
|
3288
|
+
equals: string | number | boolean | null;
|
|
3289
|
+
} | undefined;
|
|
3290
|
+
allowExcerpt?: boolean | undefined;
|
|
3291
|
+
allowFeaturedImage?: boolean | undefined;
|
|
3292
|
+
additionalUrl?: {
|
|
3293
|
+
field: string;
|
|
3294
|
+
when?: {
|
|
3295
|
+
field: string;
|
|
3296
|
+
equals: string | number | boolean | null;
|
|
3297
|
+
} | undefined;
|
|
3298
|
+
} | undefined;
|
|
3299
|
+
} | {
|
|
3300
|
+
op: "bodyText";
|
|
3301
|
+
when?: {
|
|
3302
|
+
field: string;
|
|
3303
|
+
equals: string | number | boolean | null;
|
|
3304
|
+
} | undefined;
|
|
3305
|
+
})[];
|
|
3306
|
+
indexing: ({
|
|
3307
|
+
value: string | number | boolean | null;
|
|
3308
|
+
field: string;
|
|
3309
|
+
op: "equals";
|
|
3310
|
+
when?: {
|
|
3311
|
+
field: string;
|
|
3312
|
+
equals: string | number | boolean | null;
|
|
3313
|
+
} | undefined;
|
|
3314
|
+
} | {
|
|
3315
|
+
value: string | number | boolean | null;
|
|
3316
|
+
field: string;
|
|
3317
|
+
op: "notEquals";
|
|
3318
|
+
when?: {
|
|
3319
|
+
field: string;
|
|
3320
|
+
equals: string | number | boolean | null;
|
|
3321
|
+
} | undefined;
|
|
3322
|
+
} | {
|
|
3323
|
+
values: (string | number | boolean | null)[];
|
|
3324
|
+
field: string;
|
|
3325
|
+
op: "oneOf";
|
|
3326
|
+
allowEmpty?: boolean | undefined;
|
|
3327
|
+
when?: {
|
|
3328
|
+
field: string;
|
|
3329
|
+
equals: string | number | boolean | null;
|
|
3330
|
+
} | undefined;
|
|
3331
|
+
} | {
|
|
3332
|
+
field: string;
|
|
3333
|
+
op: "text";
|
|
3334
|
+
when?: {
|
|
3335
|
+
field: string;
|
|
3336
|
+
equals: string | number | boolean | null;
|
|
3337
|
+
} | undefined;
|
|
3338
|
+
} | {
|
|
3339
|
+
field: string;
|
|
3340
|
+
op: "date";
|
|
3341
|
+
when?: {
|
|
3342
|
+
field: string;
|
|
3343
|
+
equals: string | number | boolean | null;
|
|
3344
|
+
} | undefined;
|
|
3345
|
+
} | {
|
|
3346
|
+
field: string;
|
|
3347
|
+
op: "safeHttps";
|
|
3348
|
+
when?: {
|
|
3349
|
+
field: string;
|
|
3350
|
+
equals: string | number | boolean | null;
|
|
3351
|
+
} | undefined;
|
|
3352
|
+
} | {
|
|
3353
|
+
field: string;
|
|
3354
|
+
op: "allowedPath";
|
|
3355
|
+
paths: string[];
|
|
3356
|
+
when?: {
|
|
3357
|
+
field: string;
|
|
3358
|
+
equals: string | number | boolean | null;
|
|
3359
|
+
} | undefined;
|
|
3360
|
+
} | {
|
|
3361
|
+
field: string;
|
|
3362
|
+
op: "some";
|
|
3363
|
+
checks: ({
|
|
3364
|
+
value: string | number | boolean | null;
|
|
3365
|
+
field: string;
|
|
3366
|
+
op: "equals";
|
|
3367
|
+
} | {
|
|
3368
|
+
value: string | number | boolean | null;
|
|
3369
|
+
field: string;
|
|
3370
|
+
op: "notEquals";
|
|
3371
|
+
} | {
|
|
3372
|
+
values: (string | number | boolean | null)[];
|
|
3373
|
+
field: string;
|
|
3374
|
+
op: "oneOf";
|
|
3375
|
+
allowEmpty?: boolean | undefined;
|
|
3376
|
+
} | {
|
|
3377
|
+
field: string;
|
|
3378
|
+
op: "text";
|
|
3379
|
+
} | {
|
|
3380
|
+
field: string;
|
|
3381
|
+
op: "date";
|
|
3382
|
+
} | {
|
|
3383
|
+
field: string;
|
|
3384
|
+
op: "safeHttps";
|
|
3385
|
+
} | {
|
|
3386
|
+
field: string;
|
|
3387
|
+
op: "allowedPath";
|
|
3388
|
+
paths: string[];
|
|
3389
|
+
})[];
|
|
3390
|
+
when?: {
|
|
3391
|
+
field: string;
|
|
3392
|
+
equals: string | number | boolean | null;
|
|
3393
|
+
} | undefined;
|
|
3394
|
+
} | {
|
|
3395
|
+
op: "bodyContent";
|
|
3396
|
+
when?: {
|
|
3397
|
+
field: string;
|
|
3398
|
+
equals: string | number | boolean | null;
|
|
3399
|
+
} | undefined;
|
|
3400
|
+
allowExcerpt?: boolean | undefined;
|
|
3401
|
+
allowFeaturedImage?: boolean | undefined;
|
|
3402
|
+
additionalUrl?: {
|
|
3403
|
+
field: string;
|
|
3404
|
+
when?: {
|
|
3405
|
+
field: string;
|
|
3406
|
+
equals: string | number | boolean | null;
|
|
3407
|
+
} | undefined;
|
|
3408
|
+
} | undefined;
|
|
3409
|
+
} | {
|
|
3410
|
+
op: "bodyText";
|
|
3411
|
+
when?: {
|
|
3412
|
+
field: string;
|
|
3413
|
+
equals: string | number | boolean | null;
|
|
3414
|
+
} | undefined;
|
|
3415
|
+
})[];
|
|
3416
|
+
pathSegmentFormat?: "lower-kebab" | undefined;
|
|
3417
|
+
}, {
|
|
3418
|
+
visibility: ({
|
|
3419
|
+
value: string | number | boolean | null;
|
|
3420
|
+
field: string;
|
|
3421
|
+
op: "equals";
|
|
3422
|
+
when?: {
|
|
3423
|
+
field: string;
|
|
3424
|
+
equals: string | number | boolean | null;
|
|
3425
|
+
} | undefined;
|
|
3426
|
+
} | {
|
|
3427
|
+
value: string | number | boolean | null;
|
|
3428
|
+
field: string;
|
|
3429
|
+
op: "notEquals";
|
|
3430
|
+
when?: {
|
|
3431
|
+
field: string;
|
|
3432
|
+
equals: string | number | boolean | null;
|
|
3433
|
+
} | undefined;
|
|
3434
|
+
} | {
|
|
3435
|
+
values: (string | number | boolean | null)[];
|
|
3436
|
+
field: string;
|
|
3437
|
+
op: "oneOf";
|
|
3438
|
+
allowEmpty?: boolean | undefined;
|
|
3439
|
+
when?: {
|
|
3440
|
+
field: string;
|
|
3441
|
+
equals: string | number | boolean | null;
|
|
3442
|
+
} | undefined;
|
|
3443
|
+
} | {
|
|
3444
|
+
field: string;
|
|
3445
|
+
op: "text";
|
|
3446
|
+
when?: {
|
|
3447
|
+
field: string;
|
|
3448
|
+
equals: string | number | boolean | null;
|
|
3449
|
+
} | undefined;
|
|
3450
|
+
} | {
|
|
3451
|
+
field: string;
|
|
3452
|
+
op: "date";
|
|
3453
|
+
when?: {
|
|
3454
|
+
field: string;
|
|
3455
|
+
equals: string | number | boolean | null;
|
|
3456
|
+
} | undefined;
|
|
3457
|
+
} | {
|
|
3458
|
+
field: string;
|
|
3459
|
+
op: "safeHttps";
|
|
3460
|
+
when?: {
|
|
3461
|
+
field: string;
|
|
3462
|
+
equals: string | number | boolean | null;
|
|
3463
|
+
} | undefined;
|
|
3464
|
+
} | {
|
|
3465
|
+
field: string;
|
|
3466
|
+
op: "allowedPath";
|
|
3467
|
+
paths: string[];
|
|
3468
|
+
when?: {
|
|
3469
|
+
field: string;
|
|
3470
|
+
equals: string | number | boolean | null;
|
|
3471
|
+
} | undefined;
|
|
3472
|
+
} | {
|
|
3473
|
+
field: string;
|
|
3474
|
+
op: "some";
|
|
3475
|
+
checks: ({
|
|
3476
|
+
value: string | number | boolean | null;
|
|
3477
|
+
field: string;
|
|
3478
|
+
op: "equals";
|
|
3479
|
+
} | {
|
|
3480
|
+
value: string | number | boolean | null;
|
|
3481
|
+
field: string;
|
|
3482
|
+
op: "notEquals";
|
|
3483
|
+
} | {
|
|
3484
|
+
values: (string | number | boolean | null)[];
|
|
3485
|
+
field: string;
|
|
3486
|
+
op: "oneOf";
|
|
3487
|
+
allowEmpty?: boolean | undefined;
|
|
3488
|
+
} | {
|
|
3489
|
+
field: string;
|
|
3490
|
+
op: "text";
|
|
3491
|
+
} | {
|
|
3492
|
+
field: string;
|
|
3493
|
+
op: "date";
|
|
3494
|
+
} | {
|
|
3495
|
+
field: string;
|
|
3496
|
+
op: "safeHttps";
|
|
3497
|
+
} | {
|
|
3498
|
+
field: string;
|
|
3499
|
+
op: "allowedPath";
|
|
3500
|
+
paths: string[];
|
|
3501
|
+
})[];
|
|
3502
|
+
when?: {
|
|
3503
|
+
field: string;
|
|
3504
|
+
equals: string | number | boolean | null;
|
|
3505
|
+
} | undefined;
|
|
3506
|
+
} | {
|
|
3507
|
+
op: "bodyContent";
|
|
3508
|
+
when?: {
|
|
3509
|
+
field: string;
|
|
3510
|
+
equals: string | number | boolean | null;
|
|
3511
|
+
} | undefined;
|
|
3512
|
+
allowExcerpt?: boolean | undefined;
|
|
3513
|
+
allowFeaturedImage?: boolean | undefined;
|
|
3514
|
+
additionalUrl?: {
|
|
3515
|
+
field: string;
|
|
3516
|
+
when?: {
|
|
3517
|
+
field: string;
|
|
3518
|
+
equals: string | number | boolean | null;
|
|
3519
|
+
} | undefined;
|
|
3520
|
+
} | undefined;
|
|
3521
|
+
} | {
|
|
3522
|
+
op: "bodyText";
|
|
3523
|
+
when?: {
|
|
3524
|
+
field: string;
|
|
3525
|
+
equals: string | number | boolean | null;
|
|
3526
|
+
} | undefined;
|
|
3527
|
+
})[];
|
|
3528
|
+
indexing: ({
|
|
3529
|
+
value: string | number | boolean | null;
|
|
3530
|
+
field: string;
|
|
3531
|
+
op: "equals";
|
|
3532
|
+
when?: {
|
|
3533
|
+
field: string;
|
|
3534
|
+
equals: string | number | boolean | null;
|
|
3535
|
+
} | undefined;
|
|
3536
|
+
} | {
|
|
3537
|
+
value: string | number | boolean | null;
|
|
3538
|
+
field: string;
|
|
3539
|
+
op: "notEquals";
|
|
3540
|
+
when?: {
|
|
3541
|
+
field: string;
|
|
3542
|
+
equals: string | number | boolean | null;
|
|
3543
|
+
} | undefined;
|
|
3544
|
+
} | {
|
|
3545
|
+
values: (string | number | boolean | null)[];
|
|
3546
|
+
field: string;
|
|
3547
|
+
op: "oneOf";
|
|
3548
|
+
allowEmpty?: boolean | undefined;
|
|
3549
|
+
when?: {
|
|
3550
|
+
field: string;
|
|
3551
|
+
equals: string | number | boolean | null;
|
|
3552
|
+
} | undefined;
|
|
3553
|
+
} | {
|
|
3554
|
+
field: string;
|
|
3555
|
+
op: "text";
|
|
3556
|
+
when?: {
|
|
3557
|
+
field: string;
|
|
3558
|
+
equals: string | number | boolean | null;
|
|
3559
|
+
} | undefined;
|
|
3560
|
+
} | {
|
|
3561
|
+
field: string;
|
|
3562
|
+
op: "date";
|
|
3563
|
+
when?: {
|
|
3564
|
+
field: string;
|
|
3565
|
+
equals: string | number | boolean | null;
|
|
3566
|
+
} | undefined;
|
|
3567
|
+
} | {
|
|
3568
|
+
field: string;
|
|
3569
|
+
op: "safeHttps";
|
|
3570
|
+
when?: {
|
|
3571
|
+
field: string;
|
|
3572
|
+
equals: string | number | boolean | null;
|
|
3573
|
+
} | undefined;
|
|
3574
|
+
} | {
|
|
3575
|
+
field: string;
|
|
3576
|
+
op: "allowedPath";
|
|
3577
|
+
paths: string[];
|
|
3578
|
+
when?: {
|
|
3579
|
+
field: string;
|
|
3580
|
+
equals: string | number | boolean | null;
|
|
3581
|
+
} | undefined;
|
|
3582
|
+
} | {
|
|
3583
|
+
field: string;
|
|
3584
|
+
op: "some";
|
|
3585
|
+
checks: ({
|
|
3586
|
+
value: string | number | boolean | null;
|
|
3587
|
+
field: string;
|
|
3588
|
+
op: "equals";
|
|
3589
|
+
} | {
|
|
3590
|
+
value: string | number | boolean | null;
|
|
3591
|
+
field: string;
|
|
3592
|
+
op: "notEquals";
|
|
3593
|
+
} | {
|
|
3594
|
+
values: (string | number | boolean | null)[];
|
|
3595
|
+
field: string;
|
|
3596
|
+
op: "oneOf";
|
|
3597
|
+
allowEmpty?: boolean | undefined;
|
|
3598
|
+
} | {
|
|
3599
|
+
field: string;
|
|
3600
|
+
op: "text";
|
|
3601
|
+
} | {
|
|
3602
|
+
field: string;
|
|
3603
|
+
op: "date";
|
|
3604
|
+
} | {
|
|
3605
|
+
field: string;
|
|
3606
|
+
op: "safeHttps";
|
|
3607
|
+
} | {
|
|
3608
|
+
field: string;
|
|
3609
|
+
op: "allowedPath";
|
|
3610
|
+
paths: string[];
|
|
3611
|
+
})[];
|
|
3612
|
+
when?: {
|
|
3613
|
+
field: string;
|
|
3614
|
+
equals: string | number | boolean | null;
|
|
3615
|
+
} | undefined;
|
|
3616
|
+
} | {
|
|
3617
|
+
op: "bodyContent";
|
|
3618
|
+
when?: {
|
|
3619
|
+
field: string;
|
|
3620
|
+
equals: string | number | boolean | null;
|
|
3621
|
+
} | undefined;
|
|
3622
|
+
allowExcerpt?: boolean | undefined;
|
|
3623
|
+
allowFeaturedImage?: boolean | undefined;
|
|
3624
|
+
additionalUrl?: {
|
|
3625
|
+
field: string;
|
|
3626
|
+
when?: {
|
|
3627
|
+
field: string;
|
|
3628
|
+
equals: string | number | boolean | null;
|
|
3629
|
+
} | undefined;
|
|
3630
|
+
} | undefined;
|
|
3631
|
+
} | {
|
|
3632
|
+
op: "bodyText";
|
|
3633
|
+
when?: {
|
|
3634
|
+
field: string;
|
|
3635
|
+
equals: string | number | boolean | null;
|
|
3636
|
+
} | undefined;
|
|
3637
|
+
})[];
|
|
3638
|
+
pathSegmentFormat?: "lower-kebab" | undefined;
|
|
3639
|
+
}>;
|
|
3640
|
+
type ContentPolicy = z.infer<typeof contentPolicy>;
|
|
3641
|
+
declare const ContentPolicySchema: z.ZodEffects<z.ZodObject<{
|
|
3642
|
+
visibility: z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
3643
|
+
op: z.ZodLiteral<"equals">;
|
|
3644
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3645
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3646
|
+
} & {
|
|
3647
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3648
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3649
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3650
|
+
}, "strict", z.ZodTypeAny, {
|
|
3651
|
+
field: string;
|
|
3652
|
+
equals: string | number | boolean | null;
|
|
3653
|
+
}, {
|
|
3654
|
+
field: string;
|
|
3655
|
+
equals: string | number | boolean | null;
|
|
3656
|
+
}>>;
|
|
3657
|
+
}, "strict", z.ZodTypeAny, {
|
|
3658
|
+
value: string | number | boolean | null;
|
|
3659
|
+
field: string;
|
|
3660
|
+
op: "equals";
|
|
3661
|
+
when?: {
|
|
3662
|
+
field: string;
|
|
3663
|
+
equals: string | number | boolean | null;
|
|
3664
|
+
} | undefined;
|
|
3665
|
+
}, {
|
|
3666
|
+
value: string | number | boolean | null;
|
|
3667
|
+
field: string;
|
|
3668
|
+
op: "equals";
|
|
3669
|
+
when?: {
|
|
3670
|
+
field: string;
|
|
3671
|
+
equals: string | number | boolean | null;
|
|
3672
|
+
} | undefined;
|
|
3673
|
+
}>, z.ZodObject<{
|
|
3674
|
+
op: z.ZodLiteral<"notEquals">;
|
|
3675
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3676
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3677
|
+
} & {
|
|
3678
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3679
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3680
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3681
|
+
}, "strict", z.ZodTypeAny, {
|
|
3682
|
+
field: string;
|
|
3683
|
+
equals: string | number | boolean | null;
|
|
3684
|
+
}, {
|
|
3685
|
+
field: string;
|
|
3686
|
+
equals: string | number | boolean | null;
|
|
3687
|
+
}>>;
|
|
3688
|
+
}, "strict", z.ZodTypeAny, {
|
|
3689
|
+
value: string | number | boolean | null;
|
|
3690
|
+
field: string;
|
|
3691
|
+
op: "notEquals";
|
|
3692
|
+
when?: {
|
|
3693
|
+
field: string;
|
|
3694
|
+
equals: string | number | boolean | null;
|
|
3695
|
+
} | undefined;
|
|
3696
|
+
}, {
|
|
3697
|
+
value: string | number | boolean | null;
|
|
3698
|
+
field: string;
|
|
3699
|
+
op: "notEquals";
|
|
3700
|
+
when?: {
|
|
3701
|
+
field: string;
|
|
3702
|
+
equals: string | number | boolean | null;
|
|
3703
|
+
} | undefined;
|
|
3704
|
+
}>, z.ZodObject<{
|
|
3705
|
+
op: z.ZodLiteral<"oneOf">;
|
|
3706
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
3707
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
3708
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3709
|
+
} & {
|
|
3710
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3711
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3712
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3713
|
+
}, "strict", z.ZodTypeAny, {
|
|
3714
|
+
field: string;
|
|
3715
|
+
equals: string | number | boolean | null;
|
|
3716
|
+
}, {
|
|
3717
|
+
field: string;
|
|
3718
|
+
equals: string | number | boolean | null;
|
|
3719
|
+
}>>;
|
|
3720
|
+
}, "strict", z.ZodTypeAny, {
|
|
3721
|
+
values: (string | number | boolean | null)[];
|
|
3722
|
+
field: string;
|
|
3723
|
+
op: "oneOf";
|
|
3724
|
+
allowEmpty?: boolean | undefined;
|
|
3725
|
+
when?: {
|
|
3726
|
+
field: string;
|
|
3727
|
+
equals: string | number | boolean | null;
|
|
3728
|
+
} | undefined;
|
|
3729
|
+
}, {
|
|
3730
|
+
values: (string | number | boolean | null)[];
|
|
3731
|
+
field: string;
|
|
3732
|
+
op: "oneOf";
|
|
3733
|
+
allowEmpty?: boolean | undefined;
|
|
3734
|
+
when?: {
|
|
3735
|
+
field: string;
|
|
3736
|
+
equals: string | number | boolean | null;
|
|
3737
|
+
} | undefined;
|
|
3738
|
+
}>, z.ZodObject<{
|
|
3739
|
+
op: z.ZodLiteral<"text">;
|
|
3740
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3741
|
+
} & {
|
|
3742
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3743
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3744
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3745
|
+
}, "strict", z.ZodTypeAny, {
|
|
3746
|
+
field: string;
|
|
3747
|
+
equals: string | number | boolean | null;
|
|
3748
|
+
}, {
|
|
3749
|
+
field: string;
|
|
3750
|
+
equals: string | number | boolean | null;
|
|
3751
|
+
}>>;
|
|
3752
|
+
}, "strict", z.ZodTypeAny, {
|
|
3753
|
+
field: string;
|
|
3754
|
+
op: "text";
|
|
3755
|
+
when?: {
|
|
3756
|
+
field: string;
|
|
3757
|
+
equals: string | number | boolean | null;
|
|
3758
|
+
} | undefined;
|
|
3759
|
+
}, {
|
|
3760
|
+
field: string;
|
|
3761
|
+
op: "text";
|
|
3762
|
+
when?: {
|
|
3763
|
+
field: string;
|
|
3764
|
+
equals: string | number | boolean | null;
|
|
3765
|
+
} | undefined;
|
|
3766
|
+
}>, z.ZodObject<{
|
|
3767
|
+
op: z.ZodLiteral<"date">;
|
|
3768
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3769
|
+
} & {
|
|
3770
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3771
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3772
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3773
|
+
}, "strict", z.ZodTypeAny, {
|
|
3774
|
+
field: string;
|
|
3775
|
+
equals: string | number | boolean | null;
|
|
3776
|
+
}, {
|
|
3777
|
+
field: string;
|
|
3778
|
+
equals: string | number | boolean | null;
|
|
3779
|
+
}>>;
|
|
3780
|
+
}, "strict", z.ZodTypeAny, {
|
|
3781
|
+
field: string;
|
|
3782
|
+
op: "date";
|
|
3783
|
+
when?: {
|
|
3784
|
+
field: string;
|
|
3785
|
+
equals: string | number | boolean | null;
|
|
3786
|
+
} | undefined;
|
|
3787
|
+
}, {
|
|
3788
|
+
field: string;
|
|
3789
|
+
op: "date";
|
|
3790
|
+
when?: {
|
|
3791
|
+
field: string;
|
|
3792
|
+
equals: string | number | boolean | null;
|
|
3793
|
+
} | undefined;
|
|
3794
|
+
}>, z.ZodObject<{
|
|
3795
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
3796
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3797
|
+
} & {
|
|
3798
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3799
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3800
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3801
|
+
}, "strict", z.ZodTypeAny, {
|
|
3802
|
+
field: string;
|
|
3803
|
+
equals: string | number | boolean | null;
|
|
3804
|
+
}, {
|
|
3805
|
+
field: string;
|
|
3806
|
+
equals: string | number | boolean | null;
|
|
3807
|
+
}>>;
|
|
3808
|
+
}, "strict", z.ZodTypeAny, {
|
|
3809
|
+
field: string;
|
|
3810
|
+
op: "safeHttps";
|
|
3811
|
+
when?: {
|
|
3812
|
+
field: string;
|
|
3813
|
+
equals: string | number | boolean | null;
|
|
3814
|
+
} | undefined;
|
|
3815
|
+
}, {
|
|
3816
|
+
field: string;
|
|
3817
|
+
op: "safeHttps";
|
|
3818
|
+
when?: {
|
|
3819
|
+
field: string;
|
|
3820
|
+
equals: string | number | boolean | null;
|
|
3821
|
+
} | undefined;
|
|
3822
|
+
}>, z.ZodObject<{
|
|
3823
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
3824
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
3825
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3826
|
+
} & {
|
|
3827
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3828
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3829
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3830
|
+
}, "strict", z.ZodTypeAny, {
|
|
3831
|
+
field: string;
|
|
3832
|
+
equals: string | number | boolean | null;
|
|
3833
|
+
}, {
|
|
3834
|
+
field: string;
|
|
3835
|
+
equals: string | number | boolean | null;
|
|
3836
|
+
}>>;
|
|
3837
|
+
}, "strict", z.ZodTypeAny, {
|
|
3838
|
+
field: string;
|
|
3839
|
+
op: "allowedPath";
|
|
3840
|
+
paths: string[];
|
|
3841
|
+
when?: {
|
|
3842
|
+
field: string;
|
|
3843
|
+
equals: string | number | boolean | null;
|
|
3844
|
+
} | undefined;
|
|
3845
|
+
}, {
|
|
3846
|
+
field: string;
|
|
3847
|
+
op: "allowedPath";
|
|
3848
|
+
paths: string[];
|
|
3849
|
+
when?: {
|
|
3850
|
+
field: string;
|
|
3851
|
+
equals: string | number | boolean | null;
|
|
3852
|
+
} | undefined;
|
|
3853
|
+
}>, z.ZodObject<{
|
|
3854
|
+
op: z.ZodLiteral<"some">;
|
|
3855
|
+
checks: z.ZodArray<z.ZodDiscriminatedUnion<"op", readonly [z.ZodObject<{
|
|
3856
|
+
op: z.ZodLiteral<"equals">;
|
|
3857
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3858
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3859
|
+
}, "strict", z.ZodTypeAny, {
|
|
3860
|
+
value: string | number | boolean | null;
|
|
3861
|
+
field: string;
|
|
3862
|
+
op: "equals";
|
|
3863
|
+
}, {
|
|
3864
|
+
value: string | number | boolean | null;
|
|
3865
|
+
field: string;
|
|
3866
|
+
op: "equals";
|
|
3867
|
+
}>, z.ZodObject<{
|
|
3868
|
+
op: z.ZodLiteral<"notEquals">;
|
|
3869
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3870
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3871
|
+
}, "strict", z.ZodTypeAny, {
|
|
3872
|
+
value: string | number | boolean | null;
|
|
3873
|
+
field: string;
|
|
3874
|
+
op: "notEquals";
|
|
3875
|
+
}, {
|
|
3876
|
+
value: string | number | boolean | null;
|
|
3877
|
+
field: string;
|
|
3878
|
+
op: "notEquals";
|
|
3879
|
+
}>, z.ZodObject<{
|
|
3880
|
+
op: z.ZodLiteral<"oneOf">;
|
|
3881
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
3882
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
3883
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3884
|
+
}, "strict", z.ZodTypeAny, {
|
|
3885
|
+
values: (string | number | boolean | null)[];
|
|
3886
|
+
field: string;
|
|
3887
|
+
op: "oneOf";
|
|
3888
|
+
allowEmpty?: boolean | undefined;
|
|
3889
|
+
}, {
|
|
3890
|
+
values: (string | number | boolean | null)[];
|
|
3891
|
+
field: string;
|
|
3892
|
+
op: "oneOf";
|
|
3893
|
+
allowEmpty?: boolean | undefined;
|
|
3894
|
+
}>, z.ZodObject<{
|
|
3895
|
+
op: z.ZodLiteral<"text">;
|
|
3896
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3897
|
+
}, "strict", z.ZodTypeAny, {
|
|
3898
|
+
field: string;
|
|
3899
|
+
op: "text";
|
|
3900
|
+
}, {
|
|
3901
|
+
field: string;
|
|
3902
|
+
op: "text";
|
|
3903
|
+
}>, z.ZodObject<{
|
|
3904
|
+
op: z.ZodLiteral<"date">;
|
|
3905
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3906
|
+
}, "strict", z.ZodTypeAny, {
|
|
3907
|
+
field: string;
|
|
3908
|
+
op: "date";
|
|
3909
|
+
}, {
|
|
3910
|
+
field: string;
|
|
3911
|
+
op: "date";
|
|
3912
|
+
}>, z.ZodObject<{
|
|
3913
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
3914
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3915
|
+
}, "strict", z.ZodTypeAny, {
|
|
3916
|
+
field: string;
|
|
3917
|
+
op: "safeHttps";
|
|
3918
|
+
}, {
|
|
3919
|
+
field: string;
|
|
3920
|
+
op: "safeHttps";
|
|
3921
|
+
}>, z.ZodObject<{
|
|
3922
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
3923
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
3924
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3925
|
+
}, "strict", z.ZodTypeAny, {
|
|
3926
|
+
field: string;
|
|
3927
|
+
op: "allowedPath";
|
|
3928
|
+
paths: string[];
|
|
3929
|
+
}, {
|
|
3930
|
+
field: string;
|
|
3931
|
+
op: "allowedPath";
|
|
3932
|
+
paths: string[];
|
|
3933
|
+
}>]>, "many">;
|
|
3934
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
3935
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3936
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
3937
|
+
}, "strict", z.ZodTypeAny, {
|
|
3938
|
+
field: string;
|
|
3939
|
+
equals: string | number | boolean | null;
|
|
3940
|
+
}, {
|
|
3941
|
+
field: string;
|
|
3942
|
+
equals: string | number | boolean | null;
|
|
3943
|
+
}>>;
|
|
3944
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
3945
|
+
}, "strict", z.ZodTypeAny, {
|
|
3946
|
+
field: string;
|
|
3947
|
+
op: "some";
|
|
3948
|
+
checks: ({
|
|
3949
|
+
value: string | number | boolean | null;
|
|
3950
|
+
field: string;
|
|
3951
|
+
op: "equals";
|
|
3952
|
+
} | {
|
|
3953
|
+
value: string | number | boolean | null;
|
|
3954
|
+
field: string;
|
|
3955
|
+
op: "notEquals";
|
|
3956
|
+
} | {
|
|
3957
|
+
values: (string | number | boolean | null)[];
|
|
3958
|
+
field: string;
|
|
3959
|
+
op: "oneOf";
|
|
3960
|
+
allowEmpty?: boolean | undefined;
|
|
3961
|
+
} | {
|
|
3962
|
+
field: string;
|
|
3963
|
+
op: "text";
|
|
3964
|
+
} | {
|
|
3965
|
+
field: string;
|
|
3966
|
+
op: "date";
|
|
3967
|
+
} | {
|
|
3968
|
+
field: string;
|
|
3969
|
+
op: "safeHttps";
|
|
3970
|
+
} | {
|
|
3971
|
+
field: string;
|
|
3972
|
+
op: "allowedPath";
|
|
3973
|
+
paths: string[];
|
|
3974
|
+
})[];
|
|
3975
|
+
when?: {
|
|
3976
|
+
field: string;
|
|
3977
|
+
equals: string | number | boolean | null;
|
|
3978
|
+
} | undefined;
|
|
3979
|
+
}, {
|
|
3980
|
+
field: string;
|
|
3981
|
+
op: "some";
|
|
3982
|
+
checks: ({
|
|
3983
|
+
value: string | number | boolean | null;
|
|
3984
|
+
field: string;
|
|
3985
|
+
op: "equals";
|
|
3986
|
+
} | {
|
|
3987
|
+
value: string | number | boolean | null;
|
|
3988
|
+
field: string;
|
|
3989
|
+
op: "notEquals";
|
|
3990
|
+
} | {
|
|
3991
|
+
values: (string | number | boolean | null)[];
|
|
3992
|
+
field: string;
|
|
3993
|
+
op: "oneOf";
|
|
3994
|
+
allowEmpty?: boolean | undefined;
|
|
3995
|
+
} | {
|
|
3996
|
+
field: string;
|
|
3997
|
+
op: "text";
|
|
3998
|
+
} | {
|
|
3999
|
+
field: string;
|
|
4000
|
+
op: "date";
|
|
4001
|
+
} | {
|
|
4002
|
+
field: string;
|
|
4003
|
+
op: "safeHttps";
|
|
4004
|
+
} | {
|
|
4005
|
+
field: string;
|
|
4006
|
+
op: "allowedPath";
|
|
4007
|
+
paths: string[];
|
|
4008
|
+
})[];
|
|
4009
|
+
when?: {
|
|
4010
|
+
field: string;
|
|
4011
|
+
equals: string | number | boolean | null;
|
|
4012
|
+
} | undefined;
|
|
4013
|
+
}>, z.ZodObject<{
|
|
4014
|
+
op: z.ZodLiteral<"bodyContent">;
|
|
4015
|
+
allowExcerpt: z.ZodOptional<z.ZodBoolean>;
|
|
4016
|
+
allowFeaturedImage: z.ZodOptional<z.ZodBoolean>;
|
|
4017
|
+
additionalUrl: z.ZodOptional<z.ZodObject<{
|
|
4018
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4019
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4020
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4021
|
+
}, "strict", z.ZodTypeAny, {
|
|
4022
|
+
field: string;
|
|
4023
|
+
equals: string | number | boolean | null;
|
|
4024
|
+
}, {
|
|
4025
|
+
field: string;
|
|
4026
|
+
equals: string | number | boolean | null;
|
|
4027
|
+
}>>;
|
|
4028
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4029
|
+
}, "strict", z.ZodTypeAny, {
|
|
4030
|
+
field: string;
|
|
4031
|
+
when?: {
|
|
4032
|
+
field: string;
|
|
4033
|
+
equals: string | number | boolean | null;
|
|
4034
|
+
} | undefined;
|
|
4035
|
+
}, {
|
|
4036
|
+
field: string;
|
|
4037
|
+
when?: {
|
|
4038
|
+
field: string;
|
|
4039
|
+
equals: string | number | boolean | null;
|
|
4040
|
+
} | undefined;
|
|
4041
|
+
}>>;
|
|
4042
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4043
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4044
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4045
|
+
}, "strict", z.ZodTypeAny, {
|
|
4046
|
+
field: string;
|
|
4047
|
+
equals: string | number | boolean | null;
|
|
4048
|
+
}, {
|
|
4049
|
+
field: string;
|
|
4050
|
+
equals: string | number | boolean | null;
|
|
4051
|
+
}>>;
|
|
4052
|
+
}, "strict", z.ZodTypeAny, {
|
|
4053
|
+
op: "bodyContent";
|
|
4054
|
+
when?: {
|
|
4055
|
+
field: string;
|
|
4056
|
+
equals: string | number | boolean | null;
|
|
4057
|
+
} | undefined;
|
|
4058
|
+
allowExcerpt?: boolean | undefined;
|
|
4059
|
+
allowFeaturedImage?: boolean | undefined;
|
|
4060
|
+
additionalUrl?: {
|
|
4061
|
+
field: string;
|
|
4062
|
+
when?: {
|
|
4063
|
+
field: string;
|
|
4064
|
+
equals: string | number | boolean | null;
|
|
4065
|
+
} | undefined;
|
|
4066
|
+
} | undefined;
|
|
4067
|
+
}, {
|
|
4068
|
+
op: "bodyContent";
|
|
4069
|
+
when?: {
|
|
4070
|
+
field: string;
|
|
4071
|
+
equals: string | number | boolean | null;
|
|
4072
|
+
} | undefined;
|
|
4073
|
+
allowExcerpt?: boolean | undefined;
|
|
4074
|
+
allowFeaturedImage?: boolean | undefined;
|
|
4075
|
+
additionalUrl?: {
|
|
4076
|
+
field: string;
|
|
4077
|
+
when?: {
|
|
4078
|
+
field: string;
|
|
4079
|
+
equals: string | number | boolean | null;
|
|
4080
|
+
} | undefined;
|
|
4081
|
+
} | undefined;
|
|
4082
|
+
}>, z.ZodObject<{
|
|
4083
|
+
op: z.ZodLiteral<"bodyText">;
|
|
4084
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4085
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4086
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4087
|
+
}, "strict", z.ZodTypeAny, {
|
|
4088
|
+
field: string;
|
|
4089
|
+
equals: string | number | boolean | null;
|
|
4090
|
+
}, {
|
|
4091
|
+
field: string;
|
|
4092
|
+
equals: string | number | boolean | null;
|
|
4093
|
+
}>>;
|
|
4094
|
+
}, "strict", z.ZodTypeAny, {
|
|
4095
|
+
op: "bodyText";
|
|
4096
|
+
when?: {
|
|
4097
|
+
field: string;
|
|
4098
|
+
equals: string | number | boolean | null;
|
|
4099
|
+
} | undefined;
|
|
4100
|
+
}, {
|
|
4101
|
+
op: "bodyText";
|
|
4102
|
+
when?: {
|
|
4103
|
+
field: string;
|
|
4104
|
+
equals: string | number | boolean | null;
|
|
4105
|
+
} | undefined;
|
|
4106
|
+
}>]>, "many">;
|
|
4107
|
+
indexing: z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
4108
|
+
op: z.ZodLiteral<"equals">;
|
|
4109
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4110
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4111
|
+
} & {
|
|
4112
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4113
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4114
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4115
|
+
}, "strict", z.ZodTypeAny, {
|
|
4116
|
+
field: string;
|
|
4117
|
+
equals: string | number | boolean | null;
|
|
4118
|
+
}, {
|
|
4119
|
+
field: string;
|
|
4120
|
+
equals: string | number | boolean | null;
|
|
4121
|
+
}>>;
|
|
4122
|
+
}, "strict", z.ZodTypeAny, {
|
|
4123
|
+
value: string | number | boolean | null;
|
|
4124
|
+
field: string;
|
|
4125
|
+
op: "equals";
|
|
4126
|
+
when?: {
|
|
4127
|
+
field: string;
|
|
4128
|
+
equals: string | number | boolean | null;
|
|
4129
|
+
} | undefined;
|
|
4130
|
+
}, {
|
|
4131
|
+
value: string | number | boolean | null;
|
|
4132
|
+
field: string;
|
|
4133
|
+
op: "equals";
|
|
4134
|
+
when?: {
|
|
4135
|
+
field: string;
|
|
4136
|
+
equals: string | number | boolean | null;
|
|
4137
|
+
} | undefined;
|
|
4138
|
+
}>, z.ZodObject<{
|
|
4139
|
+
op: z.ZodLiteral<"notEquals">;
|
|
4140
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4141
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4142
|
+
} & {
|
|
4143
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4144
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4145
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4146
|
+
}, "strict", z.ZodTypeAny, {
|
|
4147
|
+
field: string;
|
|
4148
|
+
equals: string | number | boolean | null;
|
|
4149
|
+
}, {
|
|
4150
|
+
field: string;
|
|
4151
|
+
equals: string | number | boolean | null;
|
|
4152
|
+
}>>;
|
|
4153
|
+
}, "strict", z.ZodTypeAny, {
|
|
4154
|
+
value: string | number | boolean | null;
|
|
4155
|
+
field: string;
|
|
4156
|
+
op: "notEquals";
|
|
4157
|
+
when?: {
|
|
4158
|
+
field: string;
|
|
4159
|
+
equals: string | number | boolean | null;
|
|
4160
|
+
} | undefined;
|
|
4161
|
+
}, {
|
|
4162
|
+
value: string | number | boolean | null;
|
|
4163
|
+
field: string;
|
|
4164
|
+
op: "notEquals";
|
|
4165
|
+
when?: {
|
|
4166
|
+
field: string;
|
|
4167
|
+
equals: string | number | boolean | null;
|
|
4168
|
+
} | undefined;
|
|
4169
|
+
}>, z.ZodObject<{
|
|
4170
|
+
op: z.ZodLiteral<"oneOf">;
|
|
4171
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
4172
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
4173
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4174
|
+
} & {
|
|
4175
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4176
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4177
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4178
|
+
}, "strict", z.ZodTypeAny, {
|
|
4179
|
+
field: string;
|
|
4180
|
+
equals: string | number | boolean | null;
|
|
4181
|
+
}, {
|
|
4182
|
+
field: string;
|
|
4183
|
+
equals: string | number | boolean | null;
|
|
4184
|
+
}>>;
|
|
4185
|
+
}, "strict", z.ZodTypeAny, {
|
|
4186
|
+
values: (string | number | boolean | null)[];
|
|
4187
|
+
field: string;
|
|
4188
|
+
op: "oneOf";
|
|
4189
|
+
allowEmpty?: boolean | undefined;
|
|
4190
|
+
when?: {
|
|
4191
|
+
field: string;
|
|
4192
|
+
equals: string | number | boolean | null;
|
|
4193
|
+
} | undefined;
|
|
4194
|
+
}, {
|
|
4195
|
+
values: (string | number | boolean | null)[];
|
|
4196
|
+
field: string;
|
|
4197
|
+
op: "oneOf";
|
|
4198
|
+
allowEmpty?: boolean | undefined;
|
|
4199
|
+
when?: {
|
|
4200
|
+
field: string;
|
|
4201
|
+
equals: string | number | boolean | null;
|
|
4202
|
+
} | undefined;
|
|
4203
|
+
}>, z.ZodObject<{
|
|
4204
|
+
op: z.ZodLiteral<"text">;
|
|
4205
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4206
|
+
} & {
|
|
4207
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4208
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4209
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4210
|
+
}, "strict", z.ZodTypeAny, {
|
|
4211
|
+
field: string;
|
|
4212
|
+
equals: string | number | boolean | null;
|
|
4213
|
+
}, {
|
|
4214
|
+
field: string;
|
|
4215
|
+
equals: string | number | boolean | null;
|
|
4216
|
+
}>>;
|
|
4217
|
+
}, "strict", z.ZodTypeAny, {
|
|
4218
|
+
field: string;
|
|
4219
|
+
op: "text";
|
|
4220
|
+
when?: {
|
|
4221
|
+
field: string;
|
|
4222
|
+
equals: string | number | boolean | null;
|
|
4223
|
+
} | undefined;
|
|
4224
|
+
}, {
|
|
4225
|
+
field: string;
|
|
4226
|
+
op: "text";
|
|
4227
|
+
when?: {
|
|
4228
|
+
field: string;
|
|
4229
|
+
equals: string | number | boolean | null;
|
|
4230
|
+
} | undefined;
|
|
4231
|
+
}>, z.ZodObject<{
|
|
4232
|
+
op: z.ZodLiteral<"date">;
|
|
4233
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4234
|
+
} & {
|
|
4235
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4236
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4237
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4238
|
+
}, "strict", z.ZodTypeAny, {
|
|
4239
|
+
field: string;
|
|
4240
|
+
equals: string | number | boolean | null;
|
|
4241
|
+
}, {
|
|
4242
|
+
field: string;
|
|
4243
|
+
equals: string | number | boolean | null;
|
|
4244
|
+
}>>;
|
|
4245
|
+
}, "strict", z.ZodTypeAny, {
|
|
4246
|
+
field: string;
|
|
4247
|
+
op: "date";
|
|
4248
|
+
when?: {
|
|
4249
|
+
field: string;
|
|
4250
|
+
equals: string | number | boolean | null;
|
|
4251
|
+
} | undefined;
|
|
4252
|
+
}, {
|
|
4253
|
+
field: string;
|
|
4254
|
+
op: "date";
|
|
4255
|
+
when?: {
|
|
4256
|
+
field: string;
|
|
4257
|
+
equals: string | number | boolean | null;
|
|
4258
|
+
} | undefined;
|
|
4259
|
+
}>, z.ZodObject<{
|
|
4260
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
4261
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4262
|
+
} & {
|
|
4263
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4264
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4265
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4266
|
+
}, "strict", z.ZodTypeAny, {
|
|
4267
|
+
field: string;
|
|
4268
|
+
equals: string | number | boolean | null;
|
|
4269
|
+
}, {
|
|
4270
|
+
field: string;
|
|
4271
|
+
equals: string | number | boolean | null;
|
|
4272
|
+
}>>;
|
|
4273
|
+
}, "strict", z.ZodTypeAny, {
|
|
4274
|
+
field: string;
|
|
4275
|
+
op: "safeHttps";
|
|
4276
|
+
when?: {
|
|
4277
|
+
field: string;
|
|
4278
|
+
equals: string | number | boolean | null;
|
|
4279
|
+
} | undefined;
|
|
4280
|
+
}, {
|
|
4281
|
+
field: string;
|
|
4282
|
+
op: "safeHttps";
|
|
4283
|
+
when?: {
|
|
4284
|
+
field: string;
|
|
4285
|
+
equals: string | number | boolean | null;
|
|
4286
|
+
} | undefined;
|
|
4287
|
+
}>, z.ZodObject<{
|
|
4288
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
4289
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
4290
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4291
|
+
} & {
|
|
4292
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4293
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4294
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4295
|
+
}, "strict", z.ZodTypeAny, {
|
|
4296
|
+
field: string;
|
|
4297
|
+
equals: string | number | boolean | null;
|
|
4298
|
+
}, {
|
|
4299
|
+
field: string;
|
|
4300
|
+
equals: string | number | boolean | null;
|
|
4301
|
+
}>>;
|
|
4302
|
+
}, "strict", z.ZodTypeAny, {
|
|
4303
|
+
field: string;
|
|
4304
|
+
op: "allowedPath";
|
|
4305
|
+
paths: string[];
|
|
4306
|
+
when?: {
|
|
4307
|
+
field: string;
|
|
4308
|
+
equals: string | number | boolean | null;
|
|
4309
|
+
} | undefined;
|
|
4310
|
+
}, {
|
|
4311
|
+
field: string;
|
|
4312
|
+
op: "allowedPath";
|
|
4313
|
+
paths: string[];
|
|
4314
|
+
when?: {
|
|
4315
|
+
field: string;
|
|
4316
|
+
equals: string | number | boolean | null;
|
|
4317
|
+
} | undefined;
|
|
4318
|
+
}>, z.ZodObject<{
|
|
4319
|
+
op: z.ZodLiteral<"some">;
|
|
4320
|
+
checks: z.ZodArray<z.ZodDiscriminatedUnion<"op", readonly [z.ZodObject<{
|
|
4321
|
+
op: z.ZodLiteral<"equals">;
|
|
4322
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4323
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4324
|
+
}, "strict", z.ZodTypeAny, {
|
|
4325
|
+
value: string | number | boolean | null;
|
|
4326
|
+
field: string;
|
|
4327
|
+
op: "equals";
|
|
4328
|
+
}, {
|
|
4329
|
+
value: string | number | boolean | null;
|
|
4330
|
+
field: string;
|
|
4331
|
+
op: "equals";
|
|
4332
|
+
}>, z.ZodObject<{
|
|
4333
|
+
op: z.ZodLiteral<"notEquals">;
|
|
4334
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4335
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4336
|
+
}, "strict", z.ZodTypeAny, {
|
|
4337
|
+
value: string | number | boolean | null;
|
|
4338
|
+
field: string;
|
|
4339
|
+
op: "notEquals";
|
|
4340
|
+
}, {
|
|
4341
|
+
value: string | number | boolean | null;
|
|
4342
|
+
field: string;
|
|
4343
|
+
op: "notEquals";
|
|
4344
|
+
}>, z.ZodObject<{
|
|
4345
|
+
op: z.ZodLiteral<"oneOf">;
|
|
4346
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
4347
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
4348
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4349
|
+
}, "strict", z.ZodTypeAny, {
|
|
4350
|
+
values: (string | number | boolean | null)[];
|
|
4351
|
+
field: string;
|
|
4352
|
+
op: "oneOf";
|
|
4353
|
+
allowEmpty?: boolean | undefined;
|
|
4354
|
+
}, {
|
|
4355
|
+
values: (string | number | boolean | null)[];
|
|
4356
|
+
field: string;
|
|
4357
|
+
op: "oneOf";
|
|
4358
|
+
allowEmpty?: boolean | undefined;
|
|
4359
|
+
}>, z.ZodObject<{
|
|
4360
|
+
op: z.ZodLiteral<"text">;
|
|
4361
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4362
|
+
}, "strict", z.ZodTypeAny, {
|
|
4363
|
+
field: string;
|
|
4364
|
+
op: "text";
|
|
4365
|
+
}, {
|
|
4366
|
+
field: string;
|
|
4367
|
+
op: "text";
|
|
4368
|
+
}>, z.ZodObject<{
|
|
4369
|
+
op: z.ZodLiteral<"date">;
|
|
4370
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4371
|
+
}, "strict", z.ZodTypeAny, {
|
|
4372
|
+
field: string;
|
|
4373
|
+
op: "date";
|
|
4374
|
+
}, {
|
|
4375
|
+
field: string;
|
|
4376
|
+
op: "date";
|
|
4377
|
+
}>, z.ZodObject<{
|
|
4378
|
+
op: z.ZodLiteral<"safeHttps">;
|
|
4379
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4380
|
+
}, "strict", z.ZodTypeAny, {
|
|
4381
|
+
field: string;
|
|
4382
|
+
op: "safeHttps";
|
|
4383
|
+
}, {
|
|
4384
|
+
field: string;
|
|
4385
|
+
op: "safeHttps";
|
|
4386
|
+
}>, z.ZodObject<{
|
|
4387
|
+
op: z.ZodLiteral<"allowedPath">;
|
|
4388
|
+
paths: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
4389
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4390
|
+
}, "strict", z.ZodTypeAny, {
|
|
4391
|
+
field: string;
|
|
4392
|
+
op: "allowedPath";
|
|
4393
|
+
paths: string[];
|
|
4394
|
+
}, {
|
|
4395
|
+
field: string;
|
|
4396
|
+
op: "allowedPath";
|
|
4397
|
+
paths: string[];
|
|
4398
|
+
}>]>, "many">;
|
|
4399
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4400
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4401
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4402
|
+
}, "strict", z.ZodTypeAny, {
|
|
4403
|
+
field: string;
|
|
4404
|
+
equals: string | number | boolean | null;
|
|
4405
|
+
}, {
|
|
4406
|
+
field: string;
|
|
4407
|
+
equals: string | number | boolean | null;
|
|
4408
|
+
}>>;
|
|
4409
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4410
|
+
}, "strict", z.ZodTypeAny, {
|
|
4411
|
+
field: string;
|
|
4412
|
+
op: "some";
|
|
4413
|
+
checks: ({
|
|
4414
|
+
value: string | number | boolean | null;
|
|
4415
|
+
field: string;
|
|
4416
|
+
op: "equals";
|
|
4417
|
+
} | {
|
|
4418
|
+
value: string | number | boolean | null;
|
|
4419
|
+
field: string;
|
|
4420
|
+
op: "notEquals";
|
|
4421
|
+
} | {
|
|
4422
|
+
values: (string | number | boolean | null)[];
|
|
4423
|
+
field: string;
|
|
4424
|
+
op: "oneOf";
|
|
4425
|
+
allowEmpty?: boolean | undefined;
|
|
4426
|
+
} | {
|
|
4427
|
+
field: string;
|
|
4428
|
+
op: "text";
|
|
4429
|
+
} | {
|
|
4430
|
+
field: string;
|
|
4431
|
+
op: "date";
|
|
4432
|
+
} | {
|
|
4433
|
+
field: string;
|
|
4434
|
+
op: "safeHttps";
|
|
4435
|
+
} | {
|
|
4436
|
+
field: string;
|
|
4437
|
+
op: "allowedPath";
|
|
4438
|
+
paths: string[];
|
|
4439
|
+
})[];
|
|
4440
|
+
when?: {
|
|
4441
|
+
field: string;
|
|
4442
|
+
equals: string | number | boolean | null;
|
|
4443
|
+
} | undefined;
|
|
4444
|
+
}, {
|
|
4445
|
+
field: string;
|
|
4446
|
+
op: "some";
|
|
4447
|
+
checks: ({
|
|
4448
|
+
value: string | number | boolean | null;
|
|
4449
|
+
field: string;
|
|
4450
|
+
op: "equals";
|
|
4451
|
+
} | {
|
|
4452
|
+
value: string | number | boolean | null;
|
|
4453
|
+
field: string;
|
|
4454
|
+
op: "notEquals";
|
|
4455
|
+
} | {
|
|
4456
|
+
values: (string | number | boolean | null)[];
|
|
4457
|
+
field: string;
|
|
4458
|
+
op: "oneOf";
|
|
4459
|
+
allowEmpty?: boolean | undefined;
|
|
4460
|
+
} | {
|
|
4461
|
+
field: string;
|
|
4462
|
+
op: "text";
|
|
4463
|
+
} | {
|
|
4464
|
+
field: string;
|
|
4465
|
+
op: "date";
|
|
4466
|
+
} | {
|
|
4467
|
+
field: string;
|
|
4468
|
+
op: "safeHttps";
|
|
4469
|
+
} | {
|
|
4470
|
+
field: string;
|
|
4471
|
+
op: "allowedPath";
|
|
4472
|
+
paths: string[];
|
|
4473
|
+
})[];
|
|
4474
|
+
when?: {
|
|
4475
|
+
field: string;
|
|
4476
|
+
equals: string | number | boolean | null;
|
|
4477
|
+
} | undefined;
|
|
4478
|
+
}>, z.ZodObject<{
|
|
4479
|
+
op: z.ZodLiteral<"bodyContent">;
|
|
4480
|
+
allowExcerpt: z.ZodOptional<z.ZodBoolean>;
|
|
4481
|
+
allowFeaturedImage: z.ZodOptional<z.ZodBoolean>;
|
|
4482
|
+
additionalUrl: z.ZodOptional<z.ZodObject<{
|
|
4483
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4484
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4485
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4486
|
+
}, "strict", z.ZodTypeAny, {
|
|
4487
|
+
field: string;
|
|
4488
|
+
equals: string | number | boolean | null;
|
|
4489
|
+
}, {
|
|
4490
|
+
field: string;
|
|
4491
|
+
equals: string | number | boolean | null;
|
|
4492
|
+
}>>;
|
|
4493
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4494
|
+
}, "strict", z.ZodTypeAny, {
|
|
4495
|
+
field: string;
|
|
4496
|
+
when?: {
|
|
4497
|
+
field: string;
|
|
4498
|
+
equals: string | number | boolean | null;
|
|
4499
|
+
} | undefined;
|
|
4500
|
+
}, {
|
|
4501
|
+
field: string;
|
|
4502
|
+
when?: {
|
|
4503
|
+
field: string;
|
|
4504
|
+
equals: string | number | boolean | null;
|
|
4505
|
+
} | undefined;
|
|
4506
|
+
}>>;
|
|
4507
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4508
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4509
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4510
|
+
}, "strict", z.ZodTypeAny, {
|
|
4511
|
+
field: string;
|
|
4512
|
+
equals: string | number | boolean | null;
|
|
4513
|
+
}, {
|
|
4514
|
+
field: string;
|
|
4515
|
+
equals: string | number | boolean | null;
|
|
4516
|
+
}>>;
|
|
4517
|
+
}, "strict", z.ZodTypeAny, {
|
|
4518
|
+
op: "bodyContent";
|
|
4519
|
+
when?: {
|
|
4520
|
+
field: string;
|
|
4521
|
+
equals: string | number | boolean | null;
|
|
4522
|
+
} | undefined;
|
|
4523
|
+
allowExcerpt?: boolean | undefined;
|
|
4524
|
+
allowFeaturedImage?: boolean | undefined;
|
|
4525
|
+
additionalUrl?: {
|
|
4526
|
+
field: string;
|
|
4527
|
+
when?: {
|
|
4528
|
+
field: string;
|
|
4529
|
+
equals: string | number | boolean | null;
|
|
4530
|
+
} | undefined;
|
|
4531
|
+
} | undefined;
|
|
4532
|
+
}, {
|
|
4533
|
+
op: "bodyContent";
|
|
4534
|
+
when?: {
|
|
4535
|
+
field: string;
|
|
4536
|
+
equals: string | number | boolean | null;
|
|
4537
|
+
} | undefined;
|
|
4538
|
+
allowExcerpt?: boolean | undefined;
|
|
4539
|
+
allowFeaturedImage?: boolean | undefined;
|
|
4540
|
+
additionalUrl?: {
|
|
4541
|
+
field: string;
|
|
4542
|
+
when?: {
|
|
4543
|
+
field: string;
|
|
4544
|
+
equals: string | number | boolean | null;
|
|
4545
|
+
} | undefined;
|
|
4546
|
+
} | undefined;
|
|
4547
|
+
}>, z.ZodObject<{
|
|
4548
|
+
op: z.ZodLiteral<"bodyText">;
|
|
4549
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4550
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
4551
|
+
equals: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
4552
|
+
}, "strict", z.ZodTypeAny, {
|
|
4553
|
+
field: string;
|
|
4554
|
+
equals: string | number | boolean | null;
|
|
4555
|
+
}, {
|
|
4556
|
+
field: string;
|
|
4557
|
+
equals: string | number | boolean | null;
|
|
4558
|
+
}>>;
|
|
4559
|
+
}, "strict", z.ZodTypeAny, {
|
|
4560
|
+
op: "bodyText";
|
|
4561
|
+
when?: {
|
|
4562
|
+
field: string;
|
|
4563
|
+
equals: string | number | boolean | null;
|
|
4564
|
+
} | undefined;
|
|
4565
|
+
}, {
|
|
4566
|
+
op: "bodyText";
|
|
4567
|
+
when?: {
|
|
4568
|
+
field: string;
|
|
4569
|
+
equals: string | number | boolean | null;
|
|
4570
|
+
} | undefined;
|
|
4571
|
+
}>]>, "many">;
|
|
4572
|
+
pathSegmentFormat: z.ZodOptional<z.ZodLiteral<"lower-kebab">>;
|
|
4573
|
+
}, "strict", z.ZodTypeAny, {
|
|
4574
|
+
visibility: ({
|
|
4575
|
+
value: string | number | boolean | null;
|
|
4576
|
+
field: string;
|
|
4577
|
+
op: "equals";
|
|
4578
|
+
when?: {
|
|
4579
|
+
field: string;
|
|
4580
|
+
equals: string | number | boolean | null;
|
|
4581
|
+
} | undefined;
|
|
4582
|
+
} | {
|
|
4583
|
+
value: string | number | boolean | null;
|
|
4584
|
+
field: string;
|
|
4585
|
+
op: "notEquals";
|
|
4586
|
+
when?: {
|
|
4587
|
+
field: string;
|
|
4588
|
+
equals: string | number | boolean | null;
|
|
4589
|
+
} | undefined;
|
|
4590
|
+
} | {
|
|
4591
|
+
values: (string | number | boolean | null)[];
|
|
4592
|
+
field: string;
|
|
4593
|
+
op: "oneOf";
|
|
4594
|
+
allowEmpty?: boolean | undefined;
|
|
4595
|
+
when?: {
|
|
4596
|
+
field: string;
|
|
4597
|
+
equals: string | number | boolean | null;
|
|
4598
|
+
} | undefined;
|
|
4599
|
+
} | {
|
|
4600
|
+
field: string;
|
|
4601
|
+
op: "text";
|
|
4602
|
+
when?: {
|
|
4603
|
+
field: string;
|
|
4604
|
+
equals: string | number | boolean | null;
|
|
4605
|
+
} | undefined;
|
|
4606
|
+
} | {
|
|
4607
|
+
field: string;
|
|
4608
|
+
op: "date";
|
|
4609
|
+
when?: {
|
|
4610
|
+
field: string;
|
|
4611
|
+
equals: string | number | boolean | null;
|
|
4612
|
+
} | undefined;
|
|
4613
|
+
} | {
|
|
4614
|
+
field: string;
|
|
4615
|
+
op: "safeHttps";
|
|
4616
|
+
when?: {
|
|
4617
|
+
field: string;
|
|
4618
|
+
equals: string | number | boolean | null;
|
|
4619
|
+
} | undefined;
|
|
4620
|
+
} | {
|
|
4621
|
+
field: string;
|
|
4622
|
+
op: "allowedPath";
|
|
4623
|
+
paths: string[];
|
|
4624
|
+
when?: {
|
|
4625
|
+
field: string;
|
|
4626
|
+
equals: string | number | boolean | null;
|
|
4627
|
+
} | undefined;
|
|
4628
|
+
} | {
|
|
4629
|
+
field: string;
|
|
4630
|
+
op: "some";
|
|
4631
|
+
checks: ({
|
|
4632
|
+
value: string | number | boolean | null;
|
|
4633
|
+
field: string;
|
|
4634
|
+
op: "equals";
|
|
4635
|
+
} | {
|
|
4636
|
+
value: string | number | boolean | null;
|
|
4637
|
+
field: string;
|
|
4638
|
+
op: "notEquals";
|
|
4639
|
+
} | {
|
|
4640
|
+
values: (string | number | boolean | null)[];
|
|
4641
|
+
field: string;
|
|
4642
|
+
op: "oneOf";
|
|
4643
|
+
allowEmpty?: boolean | undefined;
|
|
4644
|
+
} | {
|
|
4645
|
+
field: string;
|
|
4646
|
+
op: "text";
|
|
4647
|
+
} | {
|
|
4648
|
+
field: string;
|
|
4649
|
+
op: "date";
|
|
4650
|
+
} | {
|
|
4651
|
+
field: string;
|
|
4652
|
+
op: "safeHttps";
|
|
4653
|
+
} | {
|
|
4654
|
+
field: string;
|
|
4655
|
+
op: "allowedPath";
|
|
4656
|
+
paths: string[];
|
|
4657
|
+
})[];
|
|
4658
|
+
when?: {
|
|
4659
|
+
field: string;
|
|
4660
|
+
equals: string | number | boolean | null;
|
|
4661
|
+
} | undefined;
|
|
4662
|
+
} | {
|
|
4663
|
+
op: "bodyContent";
|
|
4664
|
+
when?: {
|
|
4665
|
+
field: string;
|
|
4666
|
+
equals: string | number | boolean | null;
|
|
4667
|
+
} | undefined;
|
|
4668
|
+
allowExcerpt?: boolean | undefined;
|
|
4669
|
+
allowFeaturedImage?: boolean | undefined;
|
|
4670
|
+
additionalUrl?: {
|
|
4671
|
+
field: string;
|
|
4672
|
+
when?: {
|
|
4673
|
+
field: string;
|
|
4674
|
+
equals: string | number | boolean | null;
|
|
4675
|
+
} | undefined;
|
|
4676
|
+
} | undefined;
|
|
4677
|
+
} | {
|
|
4678
|
+
op: "bodyText";
|
|
4679
|
+
when?: {
|
|
4680
|
+
field: string;
|
|
4681
|
+
equals: string | number | boolean | null;
|
|
4682
|
+
} | undefined;
|
|
4683
|
+
})[];
|
|
4684
|
+
indexing: ({
|
|
4685
|
+
value: string | number | boolean | null;
|
|
4686
|
+
field: string;
|
|
4687
|
+
op: "equals";
|
|
4688
|
+
when?: {
|
|
4689
|
+
field: string;
|
|
4690
|
+
equals: string | number | boolean | null;
|
|
4691
|
+
} | undefined;
|
|
4692
|
+
} | {
|
|
4693
|
+
value: string | number | boolean | null;
|
|
4694
|
+
field: string;
|
|
4695
|
+
op: "notEquals";
|
|
4696
|
+
when?: {
|
|
4697
|
+
field: string;
|
|
4698
|
+
equals: string | number | boolean | null;
|
|
4699
|
+
} | undefined;
|
|
4700
|
+
} | {
|
|
4701
|
+
values: (string | number | boolean | null)[];
|
|
4702
|
+
field: string;
|
|
4703
|
+
op: "oneOf";
|
|
4704
|
+
allowEmpty?: boolean | undefined;
|
|
4705
|
+
when?: {
|
|
4706
|
+
field: string;
|
|
4707
|
+
equals: string | number | boolean | null;
|
|
4708
|
+
} | undefined;
|
|
4709
|
+
} | {
|
|
4710
|
+
field: string;
|
|
4711
|
+
op: "text";
|
|
4712
|
+
when?: {
|
|
4713
|
+
field: string;
|
|
4714
|
+
equals: string | number | boolean | null;
|
|
4715
|
+
} | undefined;
|
|
4716
|
+
} | {
|
|
4717
|
+
field: string;
|
|
4718
|
+
op: "date";
|
|
4719
|
+
when?: {
|
|
4720
|
+
field: string;
|
|
4721
|
+
equals: string | number | boolean | null;
|
|
4722
|
+
} | undefined;
|
|
4723
|
+
} | {
|
|
4724
|
+
field: string;
|
|
4725
|
+
op: "safeHttps";
|
|
4726
|
+
when?: {
|
|
4727
|
+
field: string;
|
|
4728
|
+
equals: string | number | boolean | null;
|
|
4729
|
+
} | undefined;
|
|
4730
|
+
} | {
|
|
4731
|
+
field: string;
|
|
4732
|
+
op: "allowedPath";
|
|
4733
|
+
paths: string[];
|
|
4734
|
+
when?: {
|
|
4735
|
+
field: string;
|
|
4736
|
+
equals: string | number | boolean | null;
|
|
4737
|
+
} | undefined;
|
|
4738
|
+
} | {
|
|
4739
|
+
field: string;
|
|
4740
|
+
op: "some";
|
|
4741
|
+
checks: ({
|
|
4742
|
+
value: string | number | boolean | null;
|
|
4743
|
+
field: string;
|
|
4744
|
+
op: "equals";
|
|
4745
|
+
} | {
|
|
4746
|
+
value: string | number | boolean | null;
|
|
4747
|
+
field: string;
|
|
4748
|
+
op: "notEquals";
|
|
4749
|
+
} | {
|
|
4750
|
+
values: (string | number | boolean | null)[];
|
|
4751
|
+
field: string;
|
|
4752
|
+
op: "oneOf";
|
|
4753
|
+
allowEmpty?: boolean | undefined;
|
|
4754
|
+
} | {
|
|
4755
|
+
field: string;
|
|
4756
|
+
op: "text";
|
|
4757
|
+
} | {
|
|
4758
|
+
field: string;
|
|
4759
|
+
op: "date";
|
|
4760
|
+
} | {
|
|
4761
|
+
field: string;
|
|
4762
|
+
op: "safeHttps";
|
|
4763
|
+
} | {
|
|
4764
|
+
field: string;
|
|
4765
|
+
op: "allowedPath";
|
|
4766
|
+
paths: string[];
|
|
4767
|
+
})[];
|
|
4768
|
+
when?: {
|
|
4769
|
+
field: string;
|
|
4770
|
+
equals: string | number | boolean | null;
|
|
4771
|
+
} | undefined;
|
|
4772
|
+
} | {
|
|
4773
|
+
op: "bodyContent";
|
|
4774
|
+
when?: {
|
|
4775
|
+
field: string;
|
|
4776
|
+
equals: string | number | boolean | null;
|
|
4777
|
+
} | undefined;
|
|
4778
|
+
allowExcerpt?: boolean | undefined;
|
|
4779
|
+
allowFeaturedImage?: boolean | undefined;
|
|
4780
|
+
additionalUrl?: {
|
|
4781
|
+
field: string;
|
|
4782
|
+
when?: {
|
|
4783
|
+
field: string;
|
|
4784
|
+
equals: string | number | boolean | null;
|
|
4785
|
+
} | undefined;
|
|
4786
|
+
} | undefined;
|
|
4787
|
+
} | {
|
|
4788
|
+
op: "bodyText";
|
|
4789
|
+
when?: {
|
|
4790
|
+
field: string;
|
|
4791
|
+
equals: string | number | boolean | null;
|
|
4792
|
+
} | undefined;
|
|
4793
|
+
})[];
|
|
4794
|
+
pathSegmentFormat?: "lower-kebab" | undefined;
|
|
4795
|
+
}, {
|
|
4796
|
+
visibility: ({
|
|
4797
|
+
value: string | number | boolean | null;
|
|
4798
|
+
field: string;
|
|
4799
|
+
op: "equals";
|
|
4800
|
+
when?: {
|
|
4801
|
+
field: string;
|
|
4802
|
+
equals: string | number | boolean | null;
|
|
4803
|
+
} | undefined;
|
|
4804
|
+
} | {
|
|
4805
|
+
value: string | number | boolean | null;
|
|
4806
|
+
field: string;
|
|
4807
|
+
op: "notEquals";
|
|
4808
|
+
when?: {
|
|
4809
|
+
field: string;
|
|
4810
|
+
equals: string | number | boolean | null;
|
|
4811
|
+
} | undefined;
|
|
4812
|
+
} | {
|
|
4813
|
+
values: (string | number | boolean | null)[];
|
|
4814
|
+
field: string;
|
|
4815
|
+
op: "oneOf";
|
|
4816
|
+
allowEmpty?: boolean | undefined;
|
|
4817
|
+
when?: {
|
|
4818
|
+
field: string;
|
|
4819
|
+
equals: string | number | boolean | null;
|
|
4820
|
+
} | undefined;
|
|
4821
|
+
} | {
|
|
4822
|
+
field: string;
|
|
4823
|
+
op: "text";
|
|
4824
|
+
when?: {
|
|
4825
|
+
field: string;
|
|
4826
|
+
equals: string | number | boolean | null;
|
|
4827
|
+
} | undefined;
|
|
4828
|
+
} | {
|
|
4829
|
+
field: string;
|
|
4830
|
+
op: "date";
|
|
4831
|
+
when?: {
|
|
4832
|
+
field: string;
|
|
4833
|
+
equals: string | number | boolean | null;
|
|
4834
|
+
} | undefined;
|
|
4835
|
+
} | {
|
|
4836
|
+
field: string;
|
|
4837
|
+
op: "safeHttps";
|
|
4838
|
+
when?: {
|
|
4839
|
+
field: string;
|
|
4840
|
+
equals: string | number | boolean | null;
|
|
4841
|
+
} | undefined;
|
|
4842
|
+
} | {
|
|
4843
|
+
field: string;
|
|
4844
|
+
op: "allowedPath";
|
|
4845
|
+
paths: string[];
|
|
4846
|
+
when?: {
|
|
4847
|
+
field: string;
|
|
4848
|
+
equals: string | number | boolean | null;
|
|
4849
|
+
} | undefined;
|
|
4850
|
+
} | {
|
|
4851
|
+
field: string;
|
|
4852
|
+
op: "some";
|
|
4853
|
+
checks: ({
|
|
4854
|
+
value: string | number | boolean | null;
|
|
4855
|
+
field: string;
|
|
4856
|
+
op: "equals";
|
|
4857
|
+
} | {
|
|
4858
|
+
value: string | number | boolean | null;
|
|
4859
|
+
field: string;
|
|
4860
|
+
op: "notEquals";
|
|
4861
|
+
} | {
|
|
4862
|
+
values: (string | number | boolean | null)[];
|
|
4863
|
+
field: string;
|
|
4864
|
+
op: "oneOf";
|
|
4865
|
+
allowEmpty?: boolean | undefined;
|
|
4866
|
+
} | {
|
|
4867
|
+
field: string;
|
|
4868
|
+
op: "text";
|
|
4869
|
+
} | {
|
|
4870
|
+
field: string;
|
|
4871
|
+
op: "date";
|
|
4872
|
+
} | {
|
|
4873
|
+
field: string;
|
|
4874
|
+
op: "safeHttps";
|
|
4875
|
+
} | {
|
|
4876
|
+
field: string;
|
|
4877
|
+
op: "allowedPath";
|
|
4878
|
+
paths: string[];
|
|
4879
|
+
})[];
|
|
4880
|
+
when?: {
|
|
4881
|
+
field: string;
|
|
4882
|
+
equals: string | number | boolean | null;
|
|
4883
|
+
} | undefined;
|
|
4884
|
+
} | {
|
|
4885
|
+
op: "bodyContent";
|
|
4886
|
+
when?: {
|
|
4887
|
+
field: string;
|
|
4888
|
+
equals: string | number | boolean | null;
|
|
4889
|
+
} | undefined;
|
|
4890
|
+
allowExcerpt?: boolean | undefined;
|
|
4891
|
+
allowFeaturedImage?: boolean | undefined;
|
|
4892
|
+
additionalUrl?: {
|
|
4893
|
+
field: string;
|
|
4894
|
+
when?: {
|
|
4895
|
+
field: string;
|
|
4896
|
+
equals: string | number | boolean | null;
|
|
4897
|
+
} | undefined;
|
|
4898
|
+
} | undefined;
|
|
4899
|
+
} | {
|
|
4900
|
+
op: "bodyText";
|
|
4901
|
+
when?: {
|
|
4902
|
+
field: string;
|
|
4903
|
+
equals: string | number | boolean | null;
|
|
4904
|
+
} | undefined;
|
|
4905
|
+
})[];
|
|
4906
|
+
indexing: ({
|
|
4907
|
+
value: string | number | boolean | null;
|
|
4908
|
+
field: string;
|
|
4909
|
+
op: "equals";
|
|
4910
|
+
when?: {
|
|
4911
|
+
field: string;
|
|
4912
|
+
equals: string | number | boolean | null;
|
|
4913
|
+
} | undefined;
|
|
4914
|
+
} | {
|
|
4915
|
+
value: string | number | boolean | null;
|
|
4916
|
+
field: string;
|
|
4917
|
+
op: "notEquals";
|
|
4918
|
+
when?: {
|
|
4919
|
+
field: string;
|
|
4920
|
+
equals: string | number | boolean | null;
|
|
4921
|
+
} | undefined;
|
|
4922
|
+
} | {
|
|
4923
|
+
values: (string | number | boolean | null)[];
|
|
4924
|
+
field: string;
|
|
4925
|
+
op: "oneOf";
|
|
4926
|
+
allowEmpty?: boolean | undefined;
|
|
4927
|
+
when?: {
|
|
4928
|
+
field: string;
|
|
4929
|
+
equals: string | number | boolean | null;
|
|
4930
|
+
} | undefined;
|
|
4931
|
+
} | {
|
|
4932
|
+
field: string;
|
|
4933
|
+
op: "text";
|
|
4934
|
+
when?: {
|
|
4935
|
+
field: string;
|
|
4936
|
+
equals: string | number | boolean | null;
|
|
4937
|
+
} | undefined;
|
|
4938
|
+
} | {
|
|
4939
|
+
field: string;
|
|
4940
|
+
op: "date";
|
|
4941
|
+
when?: {
|
|
4942
|
+
field: string;
|
|
4943
|
+
equals: string | number | boolean | null;
|
|
4944
|
+
} | undefined;
|
|
4945
|
+
} | {
|
|
4946
|
+
field: string;
|
|
4947
|
+
op: "safeHttps";
|
|
4948
|
+
when?: {
|
|
4949
|
+
field: string;
|
|
4950
|
+
equals: string | number | boolean | null;
|
|
4951
|
+
} | undefined;
|
|
4952
|
+
} | {
|
|
4953
|
+
field: string;
|
|
4954
|
+
op: "allowedPath";
|
|
4955
|
+
paths: string[];
|
|
4956
|
+
when?: {
|
|
4957
|
+
field: string;
|
|
4958
|
+
equals: string | number | boolean | null;
|
|
4959
|
+
} | undefined;
|
|
4960
|
+
} | {
|
|
4961
|
+
field: string;
|
|
4962
|
+
op: "some";
|
|
4963
|
+
checks: ({
|
|
4964
|
+
value: string | number | boolean | null;
|
|
4965
|
+
field: string;
|
|
4966
|
+
op: "equals";
|
|
4967
|
+
} | {
|
|
4968
|
+
value: string | number | boolean | null;
|
|
4969
|
+
field: string;
|
|
4970
|
+
op: "notEquals";
|
|
4971
|
+
} | {
|
|
4972
|
+
values: (string | number | boolean | null)[];
|
|
4973
|
+
field: string;
|
|
4974
|
+
op: "oneOf";
|
|
4975
|
+
allowEmpty?: boolean | undefined;
|
|
4976
|
+
} | {
|
|
4977
|
+
field: string;
|
|
4978
|
+
op: "text";
|
|
4979
|
+
} | {
|
|
4980
|
+
field: string;
|
|
4981
|
+
op: "date";
|
|
4982
|
+
} | {
|
|
4983
|
+
field: string;
|
|
4984
|
+
op: "safeHttps";
|
|
4985
|
+
} | {
|
|
4986
|
+
field: string;
|
|
4987
|
+
op: "allowedPath";
|
|
4988
|
+
paths: string[];
|
|
4989
|
+
})[];
|
|
4990
|
+
when?: {
|
|
4991
|
+
field: string;
|
|
4992
|
+
equals: string | number | boolean | null;
|
|
4993
|
+
} | undefined;
|
|
4994
|
+
} | {
|
|
4995
|
+
op: "bodyContent";
|
|
4996
|
+
when?: {
|
|
4997
|
+
field: string;
|
|
4998
|
+
equals: string | number | boolean | null;
|
|
4999
|
+
} | undefined;
|
|
5000
|
+
allowExcerpt?: boolean | undefined;
|
|
5001
|
+
allowFeaturedImage?: boolean | undefined;
|
|
5002
|
+
additionalUrl?: {
|
|
5003
|
+
field: string;
|
|
5004
|
+
when?: {
|
|
5005
|
+
field: string;
|
|
5006
|
+
equals: string | number | boolean | null;
|
|
5007
|
+
} | undefined;
|
|
5008
|
+
} | undefined;
|
|
5009
|
+
} | {
|
|
5010
|
+
op: "bodyText";
|
|
5011
|
+
when?: {
|
|
5012
|
+
field: string;
|
|
5013
|
+
equals: string | number | boolean | null;
|
|
5014
|
+
} | undefined;
|
|
5015
|
+
})[];
|
|
5016
|
+
pathSegmentFormat?: "lower-kebab" | undefined;
|
|
5017
|
+
}>, {
|
|
5018
|
+
visibility: ({
|
|
5019
|
+
value: string | number | boolean | null;
|
|
5020
|
+
field: string;
|
|
5021
|
+
op: "equals";
|
|
5022
|
+
when?: {
|
|
5023
|
+
field: string;
|
|
5024
|
+
equals: string | number | boolean | null;
|
|
5025
|
+
} | undefined;
|
|
5026
|
+
} | {
|
|
5027
|
+
value: string | number | boolean | null;
|
|
5028
|
+
field: string;
|
|
5029
|
+
op: "notEquals";
|
|
5030
|
+
when?: {
|
|
5031
|
+
field: string;
|
|
5032
|
+
equals: string | number | boolean | null;
|
|
5033
|
+
} | undefined;
|
|
5034
|
+
} | {
|
|
5035
|
+
values: (string | number | boolean | null)[];
|
|
5036
|
+
field: string;
|
|
5037
|
+
op: "oneOf";
|
|
5038
|
+
allowEmpty?: boolean | undefined;
|
|
5039
|
+
when?: {
|
|
5040
|
+
field: string;
|
|
5041
|
+
equals: string | number | boolean | null;
|
|
5042
|
+
} | undefined;
|
|
5043
|
+
} | {
|
|
5044
|
+
field: string;
|
|
5045
|
+
op: "text";
|
|
5046
|
+
when?: {
|
|
5047
|
+
field: string;
|
|
5048
|
+
equals: string | number | boolean | null;
|
|
5049
|
+
} | undefined;
|
|
5050
|
+
} | {
|
|
5051
|
+
field: string;
|
|
5052
|
+
op: "date";
|
|
5053
|
+
when?: {
|
|
5054
|
+
field: string;
|
|
5055
|
+
equals: string | number | boolean | null;
|
|
5056
|
+
} | undefined;
|
|
5057
|
+
} | {
|
|
5058
|
+
field: string;
|
|
5059
|
+
op: "safeHttps";
|
|
5060
|
+
when?: {
|
|
5061
|
+
field: string;
|
|
5062
|
+
equals: string | number | boolean | null;
|
|
5063
|
+
} | undefined;
|
|
5064
|
+
} | {
|
|
5065
|
+
field: string;
|
|
5066
|
+
op: "allowedPath";
|
|
5067
|
+
paths: string[];
|
|
5068
|
+
when?: {
|
|
5069
|
+
field: string;
|
|
5070
|
+
equals: string | number | boolean | null;
|
|
5071
|
+
} | undefined;
|
|
5072
|
+
} | {
|
|
5073
|
+
field: string;
|
|
5074
|
+
op: "some";
|
|
5075
|
+
checks: ({
|
|
5076
|
+
value: string | number | boolean | null;
|
|
5077
|
+
field: string;
|
|
5078
|
+
op: "equals";
|
|
5079
|
+
} | {
|
|
5080
|
+
value: string | number | boolean | null;
|
|
5081
|
+
field: string;
|
|
5082
|
+
op: "notEquals";
|
|
5083
|
+
} | {
|
|
5084
|
+
values: (string | number | boolean | null)[];
|
|
5085
|
+
field: string;
|
|
5086
|
+
op: "oneOf";
|
|
5087
|
+
allowEmpty?: boolean | undefined;
|
|
5088
|
+
} | {
|
|
5089
|
+
field: string;
|
|
5090
|
+
op: "text";
|
|
5091
|
+
} | {
|
|
5092
|
+
field: string;
|
|
5093
|
+
op: "date";
|
|
5094
|
+
} | {
|
|
5095
|
+
field: string;
|
|
5096
|
+
op: "safeHttps";
|
|
5097
|
+
} | {
|
|
5098
|
+
field: string;
|
|
5099
|
+
op: "allowedPath";
|
|
5100
|
+
paths: string[];
|
|
5101
|
+
})[];
|
|
5102
|
+
when?: {
|
|
5103
|
+
field: string;
|
|
5104
|
+
equals: string | number | boolean | null;
|
|
5105
|
+
} | undefined;
|
|
5106
|
+
} | {
|
|
5107
|
+
op: "bodyContent";
|
|
5108
|
+
when?: {
|
|
5109
|
+
field: string;
|
|
5110
|
+
equals: string | number | boolean | null;
|
|
5111
|
+
} | undefined;
|
|
5112
|
+
allowExcerpt?: boolean | undefined;
|
|
5113
|
+
allowFeaturedImage?: boolean | undefined;
|
|
5114
|
+
additionalUrl?: {
|
|
5115
|
+
field: string;
|
|
5116
|
+
when?: {
|
|
5117
|
+
field: string;
|
|
5118
|
+
equals: string | number | boolean | null;
|
|
5119
|
+
} | undefined;
|
|
5120
|
+
} | undefined;
|
|
5121
|
+
} | {
|
|
5122
|
+
op: "bodyText";
|
|
5123
|
+
when?: {
|
|
5124
|
+
field: string;
|
|
5125
|
+
equals: string | number | boolean | null;
|
|
5126
|
+
} | undefined;
|
|
5127
|
+
})[];
|
|
5128
|
+
indexing: ({
|
|
5129
|
+
value: string | number | boolean | null;
|
|
5130
|
+
field: string;
|
|
5131
|
+
op: "equals";
|
|
5132
|
+
when?: {
|
|
5133
|
+
field: string;
|
|
5134
|
+
equals: string | number | boolean | null;
|
|
5135
|
+
} | undefined;
|
|
5136
|
+
} | {
|
|
5137
|
+
value: string | number | boolean | null;
|
|
5138
|
+
field: string;
|
|
5139
|
+
op: "notEquals";
|
|
5140
|
+
when?: {
|
|
5141
|
+
field: string;
|
|
5142
|
+
equals: string | number | boolean | null;
|
|
5143
|
+
} | undefined;
|
|
5144
|
+
} | {
|
|
5145
|
+
values: (string | number | boolean | null)[];
|
|
5146
|
+
field: string;
|
|
5147
|
+
op: "oneOf";
|
|
5148
|
+
allowEmpty?: boolean | undefined;
|
|
5149
|
+
when?: {
|
|
5150
|
+
field: string;
|
|
5151
|
+
equals: string | number | boolean | null;
|
|
5152
|
+
} | undefined;
|
|
5153
|
+
} | {
|
|
5154
|
+
field: string;
|
|
5155
|
+
op: "text";
|
|
5156
|
+
when?: {
|
|
5157
|
+
field: string;
|
|
5158
|
+
equals: string | number | boolean | null;
|
|
5159
|
+
} | undefined;
|
|
5160
|
+
} | {
|
|
5161
|
+
field: string;
|
|
5162
|
+
op: "date";
|
|
5163
|
+
when?: {
|
|
5164
|
+
field: string;
|
|
5165
|
+
equals: string | number | boolean | null;
|
|
5166
|
+
} | undefined;
|
|
5167
|
+
} | {
|
|
5168
|
+
field: string;
|
|
5169
|
+
op: "safeHttps";
|
|
5170
|
+
when?: {
|
|
5171
|
+
field: string;
|
|
5172
|
+
equals: string | number | boolean | null;
|
|
5173
|
+
} | undefined;
|
|
5174
|
+
} | {
|
|
5175
|
+
field: string;
|
|
5176
|
+
op: "allowedPath";
|
|
5177
|
+
paths: string[];
|
|
5178
|
+
when?: {
|
|
5179
|
+
field: string;
|
|
5180
|
+
equals: string | number | boolean | null;
|
|
5181
|
+
} | undefined;
|
|
5182
|
+
} | {
|
|
5183
|
+
field: string;
|
|
5184
|
+
op: "some";
|
|
5185
|
+
checks: ({
|
|
5186
|
+
value: string | number | boolean | null;
|
|
5187
|
+
field: string;
|
|
5188
|
+
op: "equals";
|
|
5189
|
+
} | {
|
|
5190
|
+
value: string | number | boolean | null;
|
|
5191
|
+
field: string;
|
|
5192
|
+
op: "notEquals";
|
|
5193
|
+
} | {
|
|
5194
|
+
values: (string | number | boolean | null)[];
|
|
5195
|
+
field: string;
|
|
5196
|
+
op: "oneOf";
|
|
5197
|
+
allowEmpty?: boolean | undefined;
|
|
5198
|
+
} | {
|
|
5199
|
+
field: string;
|
|
5200
|
+
op: "text";
|
|
5201
|
+
} | {
|
|
5202
|
+
field: string;
|
|
5203
|
+
op: "date";
|
|
5204
|
+
} | {
|
|
5205
|
+
field: string;
|
|
5206
|
+
op: "safeHttps";
|
|
5207
|
+
} | {
|
|
5208
|
+
field: string;
|
|
5209
|
+
op: "allowedPath";
|
|
5210
|
+
paths: string[];
|
|
5211
|
+
})[];
|
|
5212
|
+
when?: {
|
|
5213
|
+
field: string;
|
|
5214
|
+
equals: string | number | boolean | null;
|
|
5215
|
+
} | undefined;
|
|
5216
|
+
} | {
|
|
5217
|
+
op: "bodyContent";
|
|
5218
|
+
when?: {
|
|
5219
|
+
field: string;
|
|
5220
|
+
equals: string | number | boolean | null;
|
|
5221
|
+
} | undefined;
|
|
5222
|
+
allowExcerpt?: boolean | undefined;
|
|
5223
|
+
allowFeaturedImage?: boolean | undefined;
|
|
5224
|
+
additionalUrl?: {
|
|
5225
|
+
field: string;
|
|
5226
|
+
when?: {
|
|
5227
|
+
field: string;
|
|
5228
|
+
equals: string | number | boolean | null;
|
|
5229
|
+
} | undefined;
|
|
5230
|
+
} | undefined;
|
|
5231
|
+
} | {
|
|
5232
|
+
op: "bodyText";
|
|
5233
|
+
when?: {
|
|
5234
|
+
field: string;
|
|
5235
|
+
equals: string | number | boolean | null;
|
|
5236
|
+
} | undefined;
|
|
5237
|
+
})[];
|
|
5238
|
+
pathSegmentFormat?: "lower-kebab" | undefined;
|
|
5239
|
+
}, {
|
|
5240
|
+
visibility: ({
|
|
5241
|
+
value: string | number | boolean | null;
|
|
5242
|
+
field: string;
|
|
5243
|
+
op: "equals";
|
|
5244
|
+
when?: {
|
|
5245
|
+
field: string;
|
|
5246
|
+
equals: string | number | boolean | null;
|
|
5247
|
+
} | undefined;
|
|
5248
|
+
} | {
|
|
5249
|
+
value: string | number | boolean | null;
|
|
5250
|
+
field: string;
|
|
5251
|
+
op: "notEquals";
|
|
5252
|
+
when?: {
|
|
5253
|
+
field: string;
|
|
5254
|
+
equals: string | number | boolean | null;
|
|
5255
|
+
} | undefined;
|
|
5256
|
+
} | {
|
|
5257
|
+
values: (string | number | boolean | null)[];
|
|
5258
|
+
field: string;
|
|
5259
|
+
op: "oneOf";
|
|
5260
|
+
allowEmpty?: boolean | undefined;
|
|
5261
|
+
when?: {
|
|
5262
|
+
field: string;
|
|
5263
|
+
equals: string | number | boolean | null;
|
|
5264
|
+
} | undefined;
|
|
5265
|
+
} | {
|
|
5266
|
+
field: string;
|
|
5267
|
+
op: "text";
|
|
5268
|
+
when?: {
|
|
5269
|
+
field: string;
|
|
5270
|
+
equals: string | number | boolean | null;
|
|
5271
|
+
} | undefined;
|
|
5272
|
+
} | {
|
|
5273
|
+
field: string;
|
|
5274
|
+
op: "date";
|
|
5275
|
+
when?: {
|
|
5276
|
+
field: string;
|
|
5277
|
+
equals: string | number | boolean | null;
|
|
5278
|
+
} | undefined;
|
|
5279
|
+
} | {
|
|
5280
|
+
field: string;
|
|
5281
|
+
op: "safeHttps";
|
|
5282
|
+
when?: {
|
|
5283
|
+
field: string;
|
|
5284
|
+
equals: string | number | boolean | null;
|
|
5285
|
+
} | undefined;
|
|
5286
|
+
} | {
|
|
5287
|
+
field: string;
|
|
5288
|
+
op: "allowedPath";
|
|
5289
|
+
paths: string[];
|
|
5290
|
+
when?: {
|
|
5291
|
+
field: string;
|
|
5292
|
+
equals: string | number | boolean | null;
|
|
5293
|
+
} | undefined;
|
|
5294
|
+
} | {
|
|
5295
|
+
field: string;
|
|
5296
|
+
op: "some";
|
|
5297
|
+
checks: ({
|
|
5298
|
+
value: string | number | boolean | null;
|
|
5299
|
+
field: string;
|
|
5300
|
+
op: "equals";
|
|
5301
|
+
} | {
|
|
5302
|
+
value: string | number | boolean | null;
|
|
5303
|
+
field: string;
|
|
5304
|
+
op: "notEquals";
|
|
5305
|
+
} | {
|
|
5306
|
+
values: (string | number | boolean | null)[];
|
|
5307
|
+
field: string;
|
|
5308
|
+
op: "oneOf";
|
|
5309
|
+
allowEmpty?: boolean | undefined;
|
|
5310
|
+
} | {
|
|
5311
|
+
field: string;
|
|
5312
|
+
op: "text";
|
|
5313
|
+
} | {
|
|
5314
|
+
field: string;
|
|
5315
|
+
op: "date";
|
|
5316
|
+
} | {
|
|
5317
|
+
field: string;
|
|
5318
|
+
op: "safeHttps";
|
|
5319
|
+
} | {
|
|
5320
|
+
field: string;
|
|
5321
|
+
op: "allowedPath";
|
|
5322
|
+
paths: string[];
|
|
5323
|
+
})[];
|
|
5324
|
+
when?: {
|
|
5325
|
+
field: string;
|
|
5326
|
+
equals: string | number | boolean | null;
|
|
5327
|
+
} | undefined;
|
|
5328
|
+
} | {
|
|
5329
|
+
op: "bodyContent";
|
|
5330
|
+
when?: {
|
|
5331
|
+
field: string;
|
|
5332
|
+
equals: string | number | boolean | null;
|
|
5333
|
+
} | undefined;
|
|
5334
|
+
allowExcerpt?: boolean | undefined;
|
|
5335
|
+
allowFeaturedImage?: boolean | undefined;
|
|
5336
|
+
additionalUrl?: {
|
|
5337
|
+
field: string;
|
|
5338
|
+
when?: {
|
|
5339
|
+
field: string;
|
|
5340
|
+
equals: string | number | boolean | null;
|
|
5341
|
+
} | undefined;
|
|
5342
|
+
} | undefined;
|
|
5343
|
+
} | {
|
|
5344
|
+
op: "bodyText";
|
|
5345
|
+
when?: {
|
|
5346
|
+
field: string;
|
|
5347
|
+
equals: string | number | boolean | null;
|
|
5348
|
+
} | undefined;
|
|
5349
|
+
})[];
|
|
5350
|
+
indexing: ({
|
|
5351
|
+
value: string | number | boolean | null;
|
|
5352
|
+
field: string;
|
|
5353
|
+
op: "equals";
|
|
5354
|
+
when?: {
|
|
5355
|
+
field: string;
|
|
5356
|
+
equals: string | number | boolean | null;
|
|
5357
|
+
} | undefined;
|
|
5358
|
+
} | {
|
|
5359
|
+
value: string | number | boolean | null;
|
|
5360
|
+
field: string;
|
|
5361
|
+
op: "notEquals";
|
|
5362
|
+
when?: {
|
|
5363
|
+
field: string;
|
|
5364
|
+
equals: string | number | boolean | null;
|
|
5365
|
+
} | undefined;
|
|
5366
|
+
} | {
|
|
5367
|
+
values: (string | number | boolean | null)[];
|
|
5368
|
+
field: string;
|
|
5369
|
+
op: "oneOf";
|
|
5370
|
+
allowEmpty?: boolean | undefined;
|
|
5371
|
+
when?: {
|
|
5372
|
+
field: string;
|
|
5373
|
+
equals: string | number | boolean | null;
|
|
5374
|
+
} | undefined;
|
|
5375
|
+
} | {
|
|
5376
|
+
field: string;
|
|
5377
|
+
op: "text";
|
|
5378
|
+
when?: {
|
|
5379
|
+
field: string;
|
|
5380
|
+
equals: string | number | boolean | null;
|
|
5381
|
+
} | undefined;
|
|
5382
|
+
} | {
|
|
5383
|
+
field: string;
|
|
5384
|
+
op: "date";
|
|
5385
|
+
when?: {
|
|
5386
|
+
field: string;
|
|
5387
|
+
equals: string | number | boolean | null;
|
|
5388
|
+
} | undefined;
|
|
5389
|
+
} | {
|
|
5390
|
+
field: string;
|
|
5391
|
+
op: "safeHttps";
|
|
5392
|
+
when?: {
|
|
5393
|
+
field: string;
|
|
5394
|
+
equals: string | number | boolean | null;
|
|
5395
|
+
} | undefined;
|
|
5396
|
+
} | {
|
|
5397
|
+
field: string;
|
|
5398
|
+
op: "allowedPath";
|
|
5399
|
+
paths: string[];
|
|
5400
|
+
when?: {
|
|
5401
|
+
field: string;
|
|
5402
|
+
equals: string | number | boolean | null;
|
|
5403
|
+
} | undefined;
|
|
5404
|
+
} | {
|
|
5405
|
+
field: string;
|
|
5406
|
+
op: "some";
|
|
5407
|
+
checks: ({
|
|
5408
|
+
value: string | number | boolean | null;
|
|
5409
|
+
field: string;
|
|
5410
|
+
op: "equals";
|
|
5411
|
+
} | {
|
|
5412
|
+
value: string | number | boolean | null;
|
|
5413
|
+
field: string;
|
|
5414
|
+
op: "notEquals";
|
|
5415
|
+
} | {
|
|
5416
|
+
values: (string | number | boolean | null)[];
|
|
5417
|
+
field: string;
|
|
5418
|
+
op: "oneOf";
|
|
5419
|
+
allowEmpty?: boolean | undefined;
|
|
5420
|
+
} | {
|
|
5421
|
+
field: string;
|
|
5422
|
+
op: "text";
|
|
5423
|
+
} | {
|
|
5424
|
+
field: string;
|
|
5425
|
+
op: "date";
|
|
5426
|
+
} | {
|
|
5427
|
+
field: string;
|
|
5428
|
+
op: "safeHttps";
|
|
5429
|
+
} | {
|
|
5430
|
+
field: string;
|
|
5431
|
+
op: "allowedPath";
|
|
5432
|
+
paths: string[];
|
|
5433
|
+
})[];
|
|
5434
|
+
when?: {
|
|
5435
|
+
field: string;
|
|
5436
|
+
equals: string | number | boolean | null;
|
|
5437
|
+
} | undefined;
|
|
5438
|
+
} | {
|
|
5439
|
+
op: "bodyContent";
|
|
5440
|
+
when?: {
|
|
5441
|
+
field: string;
|
|
5442
|
+
equals: string | number | boolean | null;
|
|
5443
|
+
} | undefined;
|
|
5444
|
+
allowExcerpt?: boolean | undefined;
|
|
5445
|
+
allowFeaturedImage?: boolean | undefined;
|
|
5446
|
+
additionalUrl?: {
|
|
5447
|
+
field: string;
|
|
5448
|
+
when?: {
|
|
5449
|
+
field: string;
|
|
5450
|
+
equals: string | number | boolean | null;
|
|
5451
|
+
} | undefined;
|
|
5452
|
+
} | undefined;
|
|
5453
|
+
} | {
|
|
5454
|
+
op: "bodyText";
|
|
5455
|
+
when?: {
|
|
5456
|
+
field: string;
|
|
5457
|
+
equals: string | number | boolean | null;
|
|
5458
|
+
} | undefined;
|
|
5459
|
+
})[];
|
|
5460
|
+
pathSegmentFormat?: "lower-kebab" | undefined;
|
|
5461
|
+
}>;
|
|
5462
|
+
interface ContentPolicyFieldRef {
|
|
5463
|
+
readonly name: string;
|
|
5464
|
+
readonly children?: string[];
|
|
5465
|
+
}
|
|
5466
|
+
declare function collectContentPolicyFieldRefs(policy: ContentPolicy): ContentPolicyFieldRef[];
|
|
5467
|
+
|
|
5468
|
+
/** Only the SDK's public projection belongs here; never pass private ACF as fields. */
|
|
5469
|
+
interface ContentPolicyPost {
|
|
5470
|
+
readonly id: string;
|
|
5471
|
+
readonly title: string;
|
|
5472
|
+
readonly slug: string;
|
|
5473
|
+
readonly path: string | null;
|
|
5474
|
+
readonly status?: string;
|
|
5475
|
+
readonly publishedAt?: string | null;
|
|
5476
|
+
readonly modelKey?: string | null;
|
|
5477
|
+
readonly collectionKey?: string | null;
|
|
5478
|
+
readonly fields?: Readonly<Record<string, unknown>> | null;
|
|
5479
|
+
readonly bodyJson?: unknown;
|
|
5480
|
+
readonly bodyHtml?: string | null;
|
|
5481
|
+
readonly excerpt?: string | null;
|
|
5482
|
+
readonly featuredImageUrl?: string | null;
|
|
5483
|
+
readonly metaJson?: {
|
|
5484
|
+
readonly seo?: unknown;
|
|
5485
|
+
} | null;
|
|
5486
|
+
readonly terms?: ReadonlyArray<{
|
|
5487
|
+
readonly id: string;
|
|
5488
|
+
readonly taxonomy: string;
|
|
5489
|
+
}>;
|
|
5490
|
+
}
|
|
5491
|
+
interface ContentPolicyOptions {
|
|
5492
|
+
readonly now?: number;
|
|
5493
|
+
/** Supply the shared model resolver result, including null. The policy does not own route templates. */
|
|
5494
|
+
readonly expectedPath?: string | null;
|
|
5495
|
+
readonly robots?: MetadataRobotsPolicy;
|
|
5496
|
+
}
|
|
5497
|
+
interface ContentPolicyResult {
|
|
5498
|
+
readonly visible: boolean;
|
|
5499
|
+
readonly indexable: boolean;
|
|
5500
|
+
readonly robots: MetadataRobotsPolicy & {
|
|
5501
|
+
readonly noindexReasons?: string[];
|
|
5502
|
+
};
|
|
5503
|
+
readonly reasons: string[];
|
|
5504
|
+
}
|
|
5505
|
+
/** Same strict HTTPS boundary used for public images and source links. */
|
|
5506
|
+
declare function contentPolicySafeHttpsUrl(value: unknown): string | null;
|
|
5507
|
+
/** Text nodes only: an image-only JSON document is not textual content. */
|
|
5508
|
+
declare function contentPolicyBodyText(bodyJson: unknown): string;
|
|
5509
|
+
declare function matchesContentScalarCheck(check: ContentPolicyScalarCheck, fields: Readonly<Record<string, unknown>>): boolean;
|
|
5510
|
+
/**
|
|
5511
|
+
* Evaluate opt-in policy only. Callers supply the model's expectedPath to enforce prefixes,
|
|
5512
|
+
* category selection and reserved slugs; without it only the common path boundary is checked.
|
|
5513
|
+
*/
|
|
5514
|
+
declare function evaluateContentPolicy(policy: ContentPolicy, post: ContentPolicyPost, options?: ContentPolicyOptions): ContentPolicyResult;
|
|
5515
|
+
|
|
5516
|
+
declare const ContentQueryFilterSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
5517
|
+
op: z.ZodLiteral<"equals">;
|
|
5518
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
5519
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
5520
|
+
}, "strict", z.ZodTypeAny, {
|
|
5521
|
+
value: string | number | boolean | null;
|
|
5522
|
+
field: string;
|
|
5523
|
+
op: "equals";
|
|
5524
|
+
}, {
|
|
5525
|
+
value: string | number | boolean | null;
|
|
5526
|
+
field: string;
|
|
5527
|
+
op: "equals";
|
|
5528
|
+
}>, z.ZodObject<{
|
|
5529
|
+
op: z.ZodLiteral<"notEquals">;
|
|
5530
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
5531
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
5532
|
+
}, "strict", z.ZodTypeAny, {
|
|
5533
|
+
value: string | number | boolean | null;
|
|
5534
|
+
field: string;
|
|
5535
|
+
op: "notEquals";
|
|
5536
|
+
}, {
|
|
5537
|
+
value: string | number | boolean | null;
|
|
5538
|
+
field: string;
|
|
5539
|
+
op: "notEquals";
|
|
5540
|
+
}>, z.ZodObject<{
|
|
5541
|
+
op: z.ZodLiteral<"oneOf">;
|
|
5542
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
5543
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
5544
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
5545
|
+
}, "strict", z.ZodTypeAny, {
|
|
5546
|
+
values: (string | number | boolean | null)[];
|
|
5547
|
+
field: string;
|
|
5548
|
+
op: "oneOf";
|
|
5549
|
+
allowEmpty?: boolean | undefined;
|
|
5550
|
+
}, {
|
|
5551
|
+
values: (string | number | boolean | null)[];
|
|
5552
|
+
field: string;
|
|
5553
|
+
op: "oneOf";
|
|
5554
|
+
allowEmpty?: boolean | undefined;
|
|
5555
|
+
}>]>;
|
|
5556
|
+
/** Ordering is fixed: optional pinned=true first, publication newest first, then id ascending. */
|
|
5557
|
+
declare const ContentQuerySchema: z.ZodObject<{
|
|
5558
|
+
modelKeys: z.ZodArray<z.ZodString, "many">;
|
|
5559
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
5560
|
+
op: z.ZodLiteral<"equals">;
|
|
5561
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
5562
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
5563
|
+
}, "strict", z.ZodTypeAny, {
|
|
5564
|
+
value: string | number | boolean | null;
|
|
5565
|
+
field: string;
|
|
5566
|
+
op: "equals";
|
|
5567
|
+
}, {
|
|
5568
|
+
value: string | number | boolean | null;
|
|
5569
|
+
field: string;
|
|
5570
|
+
op: "equals";
|
|
5571
|
+
}>, z.ZodObject<{
|
|
5572
|
+
op: z.ZodLiteral<"notEquals">;
|
|
5573
|
+
value: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
5574
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
5575
|
+
}, "strict", z.ZodTypeAny, {
|
|
5576
|
+
value: string | number | boolean | null;
|
|
5577
|
+
field: string;
|
|
5578
|
+
op: "notEquals";
|
|
5579
|
+
}, {
|
|
5580
|
+
value: string | number | boolean | null;
|
|
5581
|
+
field: string;
|
|
5582
|
+
op: "notEquals";
|
|
5583
|
+
}>, z.ZodObject<{
|
|
5584
|
+
op: z.ZodLiteral<"oneOf">;
|
|
5585
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, "many">;
|
|
5586
|
+
allowEmpty: z.ZodOptional<z.ZodBoolean>;
|
|
5587
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
5588
|
+
}, "strict", z.ZodTypeAny, {
|
|
5589
|
+
values: (string | number | boolean | null)[];
|
|
5590
|
+
field: string;
|
|
5591
|
+
op: "oneOf";
|
|
5592
|
+
allowEmpty?: boolean | undefined;
|
|
5593
|
+
}, {
|
|
5594
|
+
values: (string | number | boolean | null)[];
|
|
5595
|
+
field: string;
|
|
5596
|
+
op: "oneOf";
|
|
5597
|
+
allowEmpty?: boolean | undefined;
|
|
5598
|
+
}>]>, "many">>;
|
|
5599
|
+
scope: z.ZodOptional<z.ZodEnum<["currentTerm", "currentPath"]>>;
|
|
5600
|
+
pinnedField: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
5601
|
+
pageSize: z.ZodNumber;
|
|
5602
|
+
requireItems: z.ZodOptional<z.ZodBoolean>;
|
|
5603
|
+
}, "strict", z.ZodTypeAny, {
|
|
5604
|
+
modelKeys: string[];
|
|
5605
|
+
pageSize: number;
|
|
5606
|
+
scope?: "currentTerm" | "currentPath" | undefined;
|
|
5607
|
+
filters?: ({
|
|
5608
|
+
value: string | number | boolean | null;
|
|
5609
|
+
field: string;
|
|
5610
|
+
op: "equals";
|
|
5611
|
+
} | {
|
|
5612
|
+
value: string | number | boolean | null;
|
|
5613
|
+
field: string;
|
|
5614
|
+
op: "notEquals";
|
|
5615
|
+
} | {
|
|
5616
|
+
values: (string | number | boolean | null)[];
|
|
5617
|
+
field: string;
|
|
5618
|
+
op: "oneOf";
|
|
5619
|
+
allowEmpty?: boolean | undefined;
|
|
5620
|
+
})[] | undefined;
|
|
5621
|
+
pinnedField?: string | undefined;
|
|
5622
|
+
requireItems?: boolean | undefined;
|
|
5623
|
+
}, {
|
|
5624
|
+
modelKeys: string[];
|
|
5625
|
+
pageSize: number;
|
|
5626
|
+
scope?: "currentTerm" | "currentPath" | undefined;
|
|
5627
|
+
filters?: ({
|
|
5628
|
+
value: string | number | boolean | null;
|
|
5629
|
+
field: string;
|
|
5630
|
+
op: "equals";
|
|
5631
|
+
} | {
|
|
5632
|
+
value: string | number | boolean | null;
|
|
5633
|
+
field: string;
|
|
5634
|
+
op: "notEquals";
|
|
5635
|
+
} | {
|
|
5636
|
+
values: (string | number | boolean | null)[];
|
|
5637
|
+
field: string;
|
|
5638
|
+
op: "oneOf";
|
|
5639
|
+
allowEmpty?: boolean | undefined;
|
|
5640
|
+
})[] | undefined;
|
|
5641
|
+
pinnedField?: string | undefined;
|
|
5642
|
+
requireItems?: boolean | undefined;
|
|
5643
|
+
}>;
|
|
5644
|
+
type ContentQuery = z.infer<typeof ContentQuerySchema>;
|
|
5645
|
+
declare function collectContentQueryFieldRefs(query: ContentQuery): ContentPolicyFieldRef[];
|
|
5646
|
+
interface ContentQueryCandidate<T extends ContentPolicyPost = ContentPolicyPost> {
|
|
5647
|
+
readonly post: T;
|
|
5648
|
+
readonly policy: ContentPolicyResult;
|
|
5649
|
+
}
|
|
5650
|
+
interface ContentQueryOptions {
|
|
5651
|
+
/** A missing or failed cursor page must throw instead of becoming an empty noindex page. */
|
|
5652
|
+
readonly complete: boolean;
|
|
5653
|
+
readonly page?: number;
|
|
5654
|
+
readonly path?: string | null;
|
|
5655
|
+
readonly termId?: string | null;
|
|
5656
|
+
readonly robots?: MetadataRobotsPolicy;
|
|
5657
|
+
}
|
|
5658
|
+
interface ContentQueryResult<T extends ContentPolicyPost = ContentPolicyPost> {
|
|
5659
|
+
readonly items: T[];
|
|
5660
|
+
readonly total: number;
|
|
5661
|
+
readonly page: number;
|
|
5662
|
+
readonly pageCount: number;
|
|
5663
|
+
readonly visible: boolean;
|
|
5664
|
+
readonly indexable: boolean;
|
|
5665
|
+
readonly robots: MetadataRobotsPolicy & {
|
|
5666
|
+
readonly noindexReasons?: string[];
|
|
5667
|
+
};
|
|
5668
|
+
readonly reasons: string[];
|
|
5669
|
+
}
|
|
5670
|
+
/** Reuse already evaluated posts across routes and terms within a request. */
|
|
5671
|
+
declare function evaluateContentQuery<T extends ContentPolicyPost>(query: ContentQuery, candidates: ReadonlyArray<ContentQueryCandidate<T>>, options: ContentQueryOptions): ContentQueryResult<T>;
|
|
5672
|
+
/** Convenience entry point for FRONT consumers; DB readers may reuse evaluated candidates. */
|
|
5673
|
+
declare function selectContentQuery<T extends ContentPolicyPost>(query: ContentQuery, posts: ReadonlyArray<T>, policies: Readonly<Record<string, ContentPolicy>>, options: ContentQueryOptions & {
|
|
5674
|
+
readonly now?: number;
|
|
5675
|
+
readonly postOptions: (post: T) => ContentPolicyOptions & {
|
|
5676
|
+
expectedPath: string | null;
|
|
5677
|
+
};
|
|
5678
|
+
}): ContentQueryResult<T>;
|
|
5679
|
+
|
|
1663
5680
|
/** 검색 관리의 등록·검토·공개 Proxy가 공유하는 정확 경로 계약. */
|
|
1664
5681
|
type NormalizedRedirectSourceResult = {
|
|
1665
5682
|
readonly ok: true;
|
|
@@ -1682,4 +5699,4 @@ declare function isProtectedRedirectPath(path: string): boolean;
|
|
|
1682
5699
|
declare function normalizeRedirectSource(raw: string): NormalizedRedirectSourceResult;
|
|
1683
5700
|
declare function normalizeRedirectTarget(raw: string): NormalizedRedirectTargetResult;
|
|
1684
5701
|
|
|
1685
|
-
export { BLOCK_NAME_PATTERN, type BindingResolver, type Block, type BlockBinding, type BlockDefinition, type BlockRegistry, CMS_FONT_SIZES, CMS_IMAGE_WIDTHS, CMS_LINE_HEIGHTS, CMS_PARAGRAPH_SPACINGS, type CategoryTreeEntry, type CategoryTreeEntryCategory, type CategoryTreePresentation, type CategoryTreeTerm, type ClientHydrationSpec, DEFAULT_SITE_PATTERN_PRESENTATION, EMPTY_SITE_PATTERN_PLACEMENTS, type EmbedProvider, FIELD_BINDING_SOURCE, FIELD_BINDING_SOURCE_ALIAS, type FaqEntry, IMAGE_ALT_MAX_LENGTH, INTERNAL_CONTENT_LINK_CLASS, INTERNAL_CONTENT_LINK_PENDING_ATTR, INTERNAL_CONTENT_LINK_PENDING_CLASS, INTERNAL_CONTENT_LINK_TOKEN_SOURCE, type InternalContentLinkResolver, type InternalContentLinkToken, LEGACY_BLOG_DETAIL_PATH, METADATA_FIELDS, type MetadataDefaultRules, MetadataDefaultRulesSchema, type MetadataDefaultsDeclaration, type MetadataDefaultsInput, type MetadataField, MetadataFieldSchema, type MetadataPatch, MetadataPatchSchema, type MetadataResolutionInput, type MetadataRobotsPolicy, MetadataRobotsPolicySchema, type MetadataTarget, type MetadataTargetKind, MetadataTargetKindSchema, type MetadataTextRule, MetadataTextRuleSchema, type MetadataValues, MetadataValuesSchema, type NormalizedEmbed, type NormalizedRedirectSourceResult, type NormalizedRedirectTargetResult, PHASE_1_CORE_BLOCKS, PHASE_1_CSP, POST_FOOTER_SLOT, type PatternSlots, type Phase1CoreBlockName, type PreviewTokenPayload, type PublicPathContext, type PublicPathPost, type PublicPathPresentation, type PublicRouteMetadata, type RoutablePost, type RouteCollection, SITE_PATTERN_BUTTON_COLORS_MAX, SITE_PATTERN_KEY_PATTERN, SITE_PATTERN_PLACEMENTS_KEY, SITE_PATTERN_SLOTS, type SectionLock, type SectionLockViolation, type SectionLockViolationCode, type SitePatternLayout, type SitePatternLinkStyle, type SitePatternPlacementRule, type SitePatternPlacements, type SitePatternPresentation, type SitePatternSlotKey, applyBlockBindings, bindingSrcValue, bindingTextValue, blockSchema, boundFieldValue, chainResolvers, cmsFontSize, cmsImageAlign, cmsImageStyle, cmsImageWidth, cmsLineHeight, cmsParagraphSpacing, createFieldBindingResolver, emptyPatternSlots, ensureImportedHtmlDocumentRoots, ensureStableIds, extractFaqEntries, faqPageJsonLd, findInternalContentLinkTokens, findSectionLockViolations, findSitePatternPlacementRule, formatMetadataDefaults, formatSectionLockViolations, htmlToPlainText, injectStableIdsTree, internalContentKeyFromPath, internalContentLinkResolverFrom, internalContentPathIndex, isAllowedEmbedSrc, isAllowedMapEmbedSrc, isInCollectionMode, isProtectedRedirectPath, isSectionContentPropPath, isSitePatternSlotKey, isValidBlock, isValidSitePatternKey, issuePreviewToken, mergeMetadataPatch, metadataBodyParagraphs, metadataContentImageUrl, normalizeEmbed, normalizeHexColor, normalizeImageAlt, normalizeRedirectPath, normalizeRedirectSource, normalizeRedirectTarget, parseBlock, postsForCollection, postsInAnyCollection, postsNotInAnyCollection, readMetadataValues, readSitePatternPlacements, readSitePatternPresentation, referencedSitePatternKeys, renderInternalContentLinksInHtml, renderInternalContentLinksInText, resolveCategoryPath, resolveCategoryTreeChain, resolveCategoryTreeEntryPath, resolveCategoryTreeHubPaths, resolveCategoryTreeSelection, resolveMetadata, resolvePatternSlots, resolvePostCategorySlug, resolvePostCollection, resolvePostPath, resolvePostPublicPath, resolvePostUrl, sanitizeHtml, sanitizeImportedCss, sanitizeImportedHtml, scopeImportedCss, serializeBlock, setSitePatternPlacementRule, sitePatternButtonColor, sitePatternPresentationAttributes, validateCollections, verifyPreviewToken };
|
|
5702
|
+
export { BLOCK_NAME_PATTERN, type BindingResolver, type Block, type BlockBinding, type BlockDefinition, type BlockRegistry, CMS_FONT_SIZES, CMS_IMAGE_WIDTHS, CMS_LINE_HEIGHTS, CMS_PARAGRAPH_SPACINGS, type CategoryTreeEntry, type CategoryTreeEntryCategory, type CategoryTreeEntryResolution, type CategoryTreePresentation, type CategoryTreeTerm, type ClientHydrationSpec, type ContentPolicy, type ContentPolicyCheck, ContentPolicyCheckSchema, ContentPolicyFieldNameSchema, type ContentPolicyFieldRef, ContentPolicyInternalPathSchema, type ContentPolicyOptions, type ContentPolicyPost, type ContentPolicyResult, type ContentPolicyScalarCheck, ContentPolicyScalarCheckSchema, ContentPolicyScalarSchema, ContentPolicySchema, ContentPolicyWhenSchema, type ContentQuery, type ContentQueryCandidate, ContentQueryFilterSchema, type ContentQueryOptions, type ContentQueryResult, ContentQuerySchema, DEFAULT_SITE_PATTERN_PRESENTATION, EMPTY_SITE_PATTERN_PLACEMENTS, type EmbedProvider, FIELD_BINDING_SOURCE, FIELD_BINDING_SOURCE_ALIAS, type FaqEntry, IMAGE_ALT_MAX_LENGTH, INTERNAL_CONTENT_LINK_CLASS, INTERNAL_CONTENT_LINK_PENDING_ATTR, INTERNAL_CONTENT_LINK_PENDING_CLASS, INTERNAL_CONTENT_LINK_TOKEN_SOURCE, type InternalContentLinkResolver, type InternalContentLinkToken, LEGACY_BLOG_DETAIL_PATH, METADATA_FIELDS, type MetadataDefaultRules, MetadataDefaultRulesSchema, type MetadataDefaultsDeclaration, type MetadataDefaultsInput, type MetadataField, MetadataFieldSchema, type MetadataPatch, MetadataPatchSchema, type MetadataResolutionInput, type MetadataRobotsPolicy, MetadataRobotsPolicySchema, type MetadataTarget, type MetadataTargetKind, MetadataTargetKindSchema, type MetadataTextRule, MetadataTextRuleSchema, type MetadataValues, MetadataValuesSchema, type NormalizedEmbed, type NormalizedRedirectSourceResult, type NormalizedRedirectTargetResult, PHASE_1_CORE_BLOCKS, PHASE_1_CSP, POST_FOOTER_SLOT, type PatternSlots, type Phase1CoreBlockName, type PostBodySource, type PreviewTokenPayload, type PublicPathContext, type PublicPathPost, type PublicPathPresentation, type PublicRouteMetadata, type RoutablePost, type RouteCollection, SITE_PATTERN_BUTTON_COLORS_MAX, SITE_PATTERN_KEY_PATTERN, SITE_PATTERN_PLACEMENTS_KEY, SITE_PATTERN_SLOTS, type SectionLock, type SectionLockViolation, type SectionLockViolationCode, type SitePatternLayout, type SitePatternLinkStyle, type SitePatternPlacementRule, type SitePatternPlacements, type SitePatternPresentation, type SitePatternSlotKey, applyBlockBindings, bindingSrcValue, bindingTextValue, blockSchema, boundFieldValue, chainResolvers, cmsFontSize, cmsImageAlign, cmsImageStyle, cmsImageWidth, cmsLineHeight, cmsParagraphSpacing, collectContentPolicyFieldRefs, collectContentQueryFieldRefs, contentPolicyBodyText, contentPolicySafeHttpsUrl, createFieldBindingResolver, emptyPatternSlots, ensureImportedHtmlDocumentRoots, ensureStableIds, evaluateContentPolicy, evaluateContentQuery, extractFaqEntries, faqPageJsonLd, findInternalContentLinkTokens, findSectionLockViolations, findSitePatternPlacementRule, formatMetadataDefaults, formatSectionLockViolations, htmlToPlainText, injectStableIdsTree, internalContentKeyFromPath, internalContentLinkResolverFrom, internalContentPathIndex, isAllowedEmbedSrc, isAllowedMapEmbedSrc, isInCollectionMode, isProtectedRedirectPath, isReservedCategoryTreeSlug, isSectionContentPropPath, isSitePatternSlotKey, isValidBlock, isValidSitePatternKey, issuePreviewToken, matchesContentScalarCheck, mergeMetadataPatch, metadataBodyParagraphs, metadataContentImageUrl, normalizeEmbed, normalizeHexColor, normalizeImageAlt, normalizeRedirectPath, normalizeRedirectSource, normalizeRedirectTarget, parseBlock, postsForCollection, postsInAnyCollection, postsNotInAnyCollection, readMetadataValues, readSitePatternPlacements, readSitePatternPresentation, referencedSitePatternKeys, renderInternalContentLinksInHtml, renderInternalContentLinksInText, resolveCategoryPath, resolveCategoryTreeChain, resolveCategoryTreeEntryCategory, resolveCategoryTreeEntryPath, resolveCategoryTreeHubPaths, resolveCategoryTreeSelection, resolveMetadata, resolvePatternSlots, resolvePostBodySource, resolvePostCategorySlug, resolvePostCollection, resolvePostPath, resolvePostPublicPath, resolvePostUrl, sanitizeHtml, sanitizeImportedCss, sanitizeImportedHtml, scopeImportedCss, selectContentQuery, serializeBlock, setSitePatternPlacementRule, sitePatternButtonColor, sitePatternPresentationAttributes, validateCollections, verifyPreviewToken };
|