@financial-times/cp-content-pipeline-schema 1.4.3 → 1.5.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.
Files changed (87) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/fixtures/capiObject.js +1 -1
  3. package/lib/fixtures/capiObject.js.map +1 -1
  4. package/lib/fixtures/clipSet.d.ts +2 -0
  5. package/lib/fixtures/clipSet.js +70 -0
  6. package/lib/fixtures/clipSet.js.map +1 -0
  7. package/lib/generated/index.d.ts +136 -3
  8. package/lib/model/CapiResponse.d.ts +3 -2
  9. package/lib/model/CapiResponse.js +10 -1
  10. package/lib/model/CapiResponse.js.map +1 -1
  11. package/lib/model/Clip.d.ts +28 -0
  12. package/lib/model/Clip.js +51 -0
  13. package/lib/model/Clip.js.map +1 -0
  14. package/lib/model/schemas/capi/article.d.ts +605 -9
  15. package/lib/model/schemas/capi/article.js +1 -0
  16. package/lib/model/schemas/capi/article.js.map +1 -1
  17. package/lib/model/schemas/capi/audio.d.ts +34 -31
  18. package/lib/model/schemas/capi/audio.js +1 -0
  19. package/lib/model/schemas/capi/audio.js.map +1 -1
  20. package/lib/model/schemas/capi/base-schema.d.ts +1358 -14
  21. package/lib/model/schemas/capi/base-schema.js +46 -2
  22. package/lib/model/schemas/capi/base-schema.js.map +1 -1
  23. package/lib/model/schemas/capi/content-package.d.ts +6 -3
  24. package/lib/model/schemas/capi/content-package.js +1 -0
  25. package/lib/model/schemas/capi/content-package.js.map +1 -1
  26. package/lib/model/schemas/capi/live-blog-package.d.ts +605 -9
  27. package/lib/model/schemas/capi/live-blog-package.js +1 -0
  28. package/lib/model/schemas/capi/live-blog-package.js.map +1 -1
  29. package/lib/model/schemas/capi/placeholder.d.ts +605 -9
  30. package/lib/model/schemas/capi/placeholder.js +1 -0
  31. package/lib/model/schemas/capi/placeholder.js.map +1 -1
  32. package/lib/resolvers/clip.d.ts +10 -0
  33. package/lib/resolvers/clip.js +13 -0
  34. package/lib/resolvers/clip.js.map +1 -0
  35. package/lib/resolvers/content-tree/Workarounds.d.ts +10 -2
  36. package/lib/resolvers/content-tree/nodePredicates.d.ts +3 -3
  37. package/lib/resolvers/content-tree/references/ClipSet.d.ts +27 -0
  38. package/lib/resolvers/content-tree/references/ClipSet.js +37 -0
  39. package/lib/resolvers/content-tree/references/ClipSet.js.map +1 -0
  40. package/lib/resolvers/content-tree/references/ImageSet.js +3 -2
  41. package/lib/resolvers/content-tree/references/ImageSet.js.map +1 -1
  42. package/lib/resolvers/content-tree/references/Reference.d.ts +1 -1
  43. package/lib/resolvers/content-tree/references/ScrollyImage.js +3 -2
  44. package/lib/resolvers/content-tree/references/ScrollyImage.js.map +1 -1
  45. package/lib/resolvers/content-tree/references/index.d.ts +4 -1
  46. package/lib/resolvers/content-tree/references/index.js +4 -0
  47. package/lib/resolvers/content-tree/references/index.js.map +1 -1
  48. package/lib/resolvers/content-tree/tagMappings.js +9 -0
  49. package/lib/resolvers/content-tree/tagMappings.js.map +1 -1
  50. package/lib/resolvers/content.d.ts +1 -0
  51. package/lib/resolvers/content.js +1 -0
  52. package/lib/resolvers/content.js.map +1 -1
  53. package/lib/resolvers/index.d.ts +10 -0
  54. package/lib/resolvers/index.js +2 -0
  55. package/lib/resolvers/index.js.map +1 -1
  56. package/lib/resolvers/scalars.d.ts +2 -0
  57. package/lib/resolvers/scalars.js +6 -1
  58. package/lib/resolvers/scalars.js.map +1 -1
  59. package/package.json +1 -1
  60. package/src/fixtures/capiObject.ts +1 -1
  61. package/src/fixtures/clipSet.ts +72 -0
  62. package/src/generated/index.ts +144 -3
  63. package/src/model/CapiResponse.ts +12 -2
  64. package/src/model/Clip.ts +75 -0
  65. package/src/model/__snapshots__/RichText.test.ts.snap +25 -0
  66. package/src/model/schemas/capi/article.ts +1 -0
  67. package/src/model/schemas/capi/audio.ts +1 -0
  68. package/src/model/schemas/capi/base-schema.ts +50 -1
  69. package/src/model/schemas/capi/content-package.ts +1 -0
  70. package/src/model/schemas/capi/live-blog-package.ts +1 -0
  71. package/src/model/schemas/capi/placeholder.ts +1 -0
  72. package/src/resolvers/clip.ts +13 -0
  73. package/src/resolvers/content-tree/Workarounds.ts +13 -2
  74. package/src/resolvers/content-tree/references/ClipSet.ts +49 -0
  75. package/src/resolvers/content-tree/references/ImageSet.ts +9 -5
  76. package/src/resolvers/content-tree/references/ScrollyImage.ts +9 -5
  77. package/src/resolvers/content-tree/references/index.ts +6 -0
  78. package/src/resolvers/content-tree/tagMappings.ts +10 -0
  79. package/src/resolvers/content.ts +1 -0
  80. package/src/resolvers/index.ts +2 -0
  81. package/src/resolvers/scalars.ts +8 -0
  82. package/src/types/internal-content.d.ts +4 -0
  83. package/tsconfig.tsbuildinfo +1 -1
  84. package/typedefs/clip.graphql +28 -0
  85. package/typedefs/content.graphql +8 -2
  86. package/typedefs/references/clipSet.graphql +19 -0
  87. package/typedefs/scalars.graphql +1 -0
@@ -4,6 +4,7 @@ export declare const articleSchema: import("zod").ZodObject<{
4
4
  types: import("zod").ZodArray<import("zod").ZodString, "many">;
5
5
  standfirst: import("zod").ZodOptional<import("zod").ZodString>;
6
6
  title: import("zod").ZodString;
7
+ publishedDate: import("zod").ZodString;
7
8
  annotations: import("zod").ZodArray<import("zod").ZodObject<{
8
9
  id: import("zod").ZodString;
9
10
  apiUrl: import("zod").ZodString;
@@ -47,10 +48,10 @@ export declare const articleSchema: import("zod").ZodObject<{
47
48
  exclusive: boolean;
48
49
  scoop: boolean;
49
50
  }>>;
50
- publishedDate: import("zod").ZodString;
51
51
  firstPublishedDate: import("zod").ZodString;
52
52
  accessLevel: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"premium">, import("zod").ZodLiteral<"subscribed">, import("zod").ZodLiteral<"registered">, import("zod").ZodLiteral<"free">]>>;
53
53
  canBeSyndicated: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">, import("zod").ZodLiteral<"withContributorPayment">, import("zod").ZodLiteral<"unknown">]>;
54
+ canBeDistributed: import("zod").ZodUnion<[import("zod").ZodLiteral<"yes">, import("zod").ZodLiteral<"no">, import("zod").ZodLiteral<"verify">]>;
54
55
  topper: import("zod").ZodOptional<import("zod").ZodObject<{
55
56
  headline: import("zod").ZodOptional<import("zod").ZodString>;
56
57
  standfirst: import("zod").ZodOptional<import("zod").ZodString>;
@@ -604,7 +605,7 @@ export declare const articleSchema: import("zod").ZodObject<{
604
605
  pixelHeight?: number | undefined;
605
606
  };
606
607
  }>>;
607
- embeds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
608
+ embeds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
608
609
  id: import("zod").ZodString;
609
610
  type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
610
611
  description: import("zod").ZodOptional<import("zod").ZodString>;
@@ -767,11 +768,471 @@ export declare const articleSchema: import("zod").ZodObject<{
767
768
  pixelHeight?: number | undefined;
768
769
  })[];
769
770
  description?: string | undefined;
770
- }>, "many">>;
771
+ }>, import("zod").ZodObject<{
772
+ id: import("zod").ZodString;
773
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ClipSet">;
774
+ members: import("zod").ZodArray<import("zod").ZodObject<{
775
+ id: import("zod").ZodString;
776
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Clip">;
777
+ format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">]>>;
778
+ dataSource: import("zod").ZodArray<import("zod").ZodObject<{
779
+ audioCodec: import("zod").ZodOptional<import("zod").ZodString>;
780
+ binaryUrl: import("zod").ZodOptional<import("zod").ZodString>;
781
+ duration: import("zod").ZodOptional<import("zod").ZodNumber>;
782
+ mediaType: import("zod").ZodOptional<import("zod").ZodString>;
783
+ pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
784
+ pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
785
+ videoCodec: import("zod").ZodOptional<import("zod").ZodString>;
786
+ }, "strip", import("zod").ZodTypeAny, {
787
+ audioCodec?: string | undefined;
788
+ binaryUrl?: string | undefined;
789
+ duration?: number | undefined;
790
+ mediaType?: string | undefined;
791
+ pixelHeight?: number | undefined;
792
+ pixelWidth?: number | undefined;
793
+ videoCodec?: string | undefined;
794
+ }, {
795
+ audioCodec?: string | undefined;
796
+ binaryUrl?: string | undefined;
797
+ duration?: number | undefined;
798
+ mediaType?: string | undefined;
799
+ pixelHeight?: number | undefined;
800
+ pixelWidth?: number | undefined;
801
+ videoCodec?: string | undefined;
802
+ }>, "many">;
803
+ poster: import("zod").ZodOptional<import("zod").ZodObject<{
804
+ id: import("zod").ZodString;
805
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
806
+ description: import("zod").ZodOptional<import("zod").ZodString>;
807
+ members: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodObject<{
808
+ id: import("zod").ZodString;
809
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
810
+ format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">, import("zod").ZodLiteral<"desktop">, import("zod").ZodLiteral<"standard">, import("zod").ZodLiteral<"square">, import("zod").ZodLiteral<"ftEditSquare">, import("zod").ZodLiteral<"wide">, import("zod").ZodLiteral<"portrait">, import("zod").ZodLiteral<"landscape">]>>;
811
+ title: import("zod").ZodOptional<import("zod").ZodString>;
812
+ description: import("zod").ZodOptional<import("zod").ZodString>;
813
+ binaryUrl: import("zod").ZodString;
814
+ copyright: import("zod").ZodOptional<import("zod").ZodObject<{
815
+ notice: import("zod").ZodString;
816
+ }, "strip", import("zod").ZodTypeAny, {
817
+ notice: string;
818
+ }, {
819
+ notice: string;
820
+ }>>;
821
+ minDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
822
+ maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
823
+ pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
824
+ pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
825
+ }, "strip", import("zod").ZodTypeAny, {
826
+ id: string;
827
+ type: "http://www.ft.com/ontology/content/Image";
828
+ binaryUrl: string;
829
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
830
+ title?: string | undefined;
831
+ description?: string | undefined;
832
+ copyright?: {
833
+ notice: string;
834
+ } | undefined;
835
+ minDisplayWidth?: string | undefined;
836
+ maxDisplayWidth?: string | undefined;
837
+ pixelWidth?: number | undefined;
838
+ pixelHeight?: number | undefined;
839
+ }, {
840
+ id: string;
841
+ type: "http://www.ft.com/ontology/content/Image";
842
+ binaryUrl: string;
843
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
844
+ title?: string | undefined;
845
+ description?: string | undefined;
846
+ copyright?: {
847
+ notice: string;
848
+ } | undefined;
849
+ minDisplayWidth?: string | undefined;
850
+ maxDisplayWidth?: string | undefined;
851
+ pixelWidth?: number | undefined;
852
+ pixelHeight?: number | undefined;
853
+ }>, import("zod").ZodObject<{
854
+ id: import("zod").ZodString;
855
+ format: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"standardInline">, import("zod").ZodLiteral<"mobile">, import("zod").ZodLiteral<"desktop">, import("zod").ZodLiteral<"standard">, import("zod").ZodLiteral<"square">, import("zod").ZodLiteral<"ftEditSquare">, import("zod").ZodLiteral<"wide">, import("zod").ZodLiteral<"portrait">, import("zod").ZodLiteral<"landscape">]>>;
856
+ title: import("zod").ZodOptional<import("zod").ZodString>;
857
+ description: import("zod").ZodOptional<import("zod").ZodString>;
858
+ binaryUrl: import("zod").ZodString;
859
+ copyright: import("zod").ZodOptional<import("zod").ZodObject<{
860
+ notice: import("zod").ZodString;
861
+ }, "strip", import("zod").ZodTypeAny, {
862
+ notice: string;
863
+ }, {
864
+ notice: string;
865
+ }>>;
866
+ minDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
867
+ maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
868
+ pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
869
+ pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
870
+ type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
871
+ }, "strip", import("zod").ZodTypeAny, {
872
+ id: string;
873
+ type: "http://www.ft.com/ontology/content/Graphic";
874
+ binaryUrl: string;
875
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
876
+ title?: string | undefined;
877
+ description?: string | undefined;
878
+ copyright?: {
879
+ notice: string;
880
+ } | undefined;
881
+ minDisplayWidth?: string | undefined;
882
+ maxDisplayWidth?: string | undefined;
883
+ pixelWidth?: number | undefined;
884
+ pixelHeight?: number | undefined;
885
+ }, {
886
+ id: string;
887
+ type: "http://www.ft.com/ontology/content/Graphic";
888
+ binaryUrl: string;
889
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
890
+ title?: string | undefined;
891
+ description?: string | undefined;
892
+ copyright?: {
893
+ notice: string;
894
+ } | undefined;
895
+ minDisplayWidth?: string | undefined;
896
+ maxDisplayWidth?: string | undefined;
897
+ pixelWidth?: number | undefined;
898
+ pixelHeight?: number | undefined;
899
+ }>]>, "many">;
900
+ }, "strip", import("zod").ZodTypeAny, {
901
+ id: string;
902
+ type: "http://www.ft.com/ontology/content/ImageSet";
903
+ members: ({
904
+ id: string;
905
+ type: "http://www.ft.com/ontology/content/Image";
906
+ binaryUrl: string;
907
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
908
+ title?: string | undefined;
909
+ description?: string | undefined;
910
+ copyright?: {
911
+ notice: string;
912
+ } | undefined;
913
+ minDisplayWidth?: string | undefined;
914
+ maxDisplayWidth?: string | undefined;
915
+ pixelWidth?: number | undefined;
916
+ pixelHeight?: number | undefined;
917
+ } | {
918
+ id: string;
919
+ type: "http://www.ft.com/ontology/content/Graphic";
920
+ binaryUrl: string;
921
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
922
+ title?: string | undefined;
923
+ description?: string | undefined;
924
+ copyright?: {
925
+ notice: string;
926
+ } | undefined;
927
+ minDisplayWidth?: string | undefined;
928
+ maxDisplayWidth?: string | undefined;
929
+ pixelWidth?: number | undefined;
930
+ pixelHeight?: number | undefined;
931
+ })[];
932
+ description?: string | undefined;
933
+ }, {
934
+ id: string;
935
+ type: "http://www.ft.com/ontology/content/ImageSet";
936
+ members: ({
937
+ id: string;
938
+ type: "http://www.ft.com/ontology/content/Image";
939
+ binaryUrl: string;
940
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
941
+ title?: string | undefined;
942
+ description?: string | undefined;
943
+ copyright?: {
944
+ notice: string;
945
+ } | undefined;
946
+ minDisplayWidth?: string | undefined;
947
+ maxDisplayWidth?: string | undefined;
948
+ pixelWidth?: number | undefined;
949
+ pixelHeight?: number | undefined;
950
+ } | {
951
+ id: string;
952
+ type: "http://www.ft.com/ontology/content/Graphic";
953
+ binaryUrl: string;
954
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
955
+ title?: string | undefined;
956
+ description?: string | undefined;
957
+ copyright?: {
958
+ notice: string;
959
+ } | undefined;
960
+ minDisplayWidth?: string | undefined;
961
+ maxDisplayWidth?: string | undefined;
962
+ pixelWidth?: number | undefined;
963
+ pixelHeight?: number | undefined;
964
+ })[];
965
+ description?: string | undefined;
966
+ }>>;
967
+ }, "strip", import("zod").ZodTypeAny, {
968
+ id: string;
969
+ type: "http://www.ft.com/ontology/content/Clip";
970
+ dataSource: {
971
+ audioCodec?: string | undefined;
972
+ binaryUrl?: string | undefined;
973
+ duration?: number | undefined;
974
+ mediaType?: string | undefined;
975
+ pixelHeight?: number | undefined;
976
+ pixelWidth?: number | undefined;
977
+ videoCodec?: string | undefined;
978
+ }[];
979
+ format?: "standardInline" | "mobile" | undefined;
980
+ poster?: {
981
+ id: string;
982
+ type: "http://www.ft.com/ontology/content/ImageSet";
983
+ members: ({
984
+ id: string;
985
+ type: "http://www.ft.com/ontology/content/Image";
986
+ binaryUrl: string;
987
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
988
+ title?: string | undefined;
989
+ description?: string | undefined;
990
+ copyright?: {
991
+ notice: string;
992
+ } | undefined;
993
+ minDisplayWidth?: string | undefined;
994
+ maxDisplayWidth?: string | undefined;
995
+ pixelWidth?: number | undefined;
996
+ pixelHeight?: number | undefined;
997
+ } | {
998
+ id: string;
999
+ type: "http://www.ft.com/ontology/content/Graphic";
1000
+ binaryUrl: string;
1001
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1002
+ title?: string | undefined;
1003
+ description?: string | undefined;
1004
+ copyright?: {
1005
+ notice: string;
1006
+ } | undefined;
1007
+ minDisplayWidth?: string | undefined;
1008
+ maxDisplayWidth?: string | undefined;
1009
+ pixelWidth?: number | undefined;
1010
+ pixelHeight?: number | undefined;
1011
+ })[];
1012
+ description?: string | undefined;
1013
+ } | undefined;
1014
+ }, {
1015
+ id: string;
1016
+ type: "http://www.ft.com/ontology/content/Clip";
1017
+ dataSource: {
1018
+ audioCodec?: string | undefined;
1019
+ binaryUrl?: string | undefined;
1020
+ duration?: number | undefined;
1021
+ mediaType?: string | undefined;
1022
+ pixelHeight?: number | undefined;
1023
+ pixelWidth?: number | undefined;
1024
+ videoCodec?: string | undefined;
1025
+ }[];
1026
+ format?: "standardInline" | "mobile" | undefined;
1027
+ poster?: {
1028
+ id: string;
1029
+ type: "http://www.ft.com/ontology/content/ImageSet";
1030
+ members: ({
1031
+ id: string;
1032
+ type: "http://www.ft.com/ontology/content/Image";
1033
+ binaryUrl: string;
1034
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1035
+ title?: string | undefined;
1036
+ description?: string | undefined;
1037
+ copyright?: {
1038
+ notice: string;
1039
+ } | undefined;
1040
+ minDisplayWidth?: string | undefined;
1041
+ maxDisplayWidth?: string | undefined;
1042
+ pixelWidth?: number | undefined;
1043
+ pixelHeight?: number | undefined;
1044
+ } | {
1045
+ id: string;
1046
+ type: "http://www.ft.com/ontology/content/Graphic";
1047
+ binaryUrl: string;
1048
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1049
+ title?: string | undefined;
1050
+ description?: string | undefined;
1051
+ copyright?: {
1052
+ notice: string;
1053
+ } | undefined;
1054
+ minDisplayWidth?: string | undefined;
1055
+ maxDisplayWidth?: string | undefined;
1056
+ pixelWidth?: number | undefined;
1057
+ pixelHeight?: number | undefined;
1058
+ })[];
1059
+ description?: string | undefined;
1060
+ } | undefined;
1061
+ }>, "many">;
1062
+ caption: import("zod").ZodOptional<import("zod").ZodString>;
1063
+ dataCopyright: import("zod").ZodOptional<import("zod").ZodString>;
1064
+ description: import("zod").ZodOptional<import("zod").ZodString>;
1065
+ displayTitle: import("zod").ZodOptional<import("zod").ZodString>;
1066
+ contentWarning: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1067
+ noAudio: import("zod").ZodOptional<import("zod").ZodBoolean>;
1068
+ source: import("zod").ZodOptional<import("zod").ZodString>;
1069
+ subtitle: import("zod").ZodOptional<import("zod").ZodString>;
1070
+ publishedDate: import("zod").ZodOptional<import("zod").ZodString>;
1071
+ accessibility: import("zod").ZodObject<{
1072
+ captions: import("zod").ZodArray<import("zod").ZodObject<{
1073
+ mediaType: import("zod").ZodString;
1074
+ url: import("zod").ZodString;
1075
+ }, "strip", import("zod").ZodTypeAny, {
1076
+ mediaType: string;
1077
+ url: string;
1078
+ }, {
1079
+ mediaType: string;
1080
+ url: string;
1081
+ }>, "many">;
1082
+ transcript: import("zod").ZodOptional<import("zod").ZodString>;
1083
+ }, "strip", import("zod").ZodTypeAny, {
1084
+ captions: {
1085
+ mediaType: string;
1086
+ url: string;
1087
+ }[];
1088
+ transcript?: string | undefined;
1089
+ }, {
1090
+ captions: {
1091
+ mediaType: string;
1092
+ url: string;
1093
+ }[];
1094
+ transcript?: string | undefined;
1095
+ }>;
1096
+ }, "strip", import("zod").ZodTypeAny, {
1097
+ id: string;
1098
+ type: "http://www.ft.com/ontology/content/ClipSet";
1099
+ members: {
1100
+ id: string;
1101
+ type: "http://www.ft.com/ontology/content/Clip";
1102
+ dataSource: {
1103
+ audioCodec?: string | undefined;
1104
+ binaryUrl?: string | undefined;
1105
+ duration?: number | undefined;
1106
+ mediaType?: string | undefined;
1107
+ pixelHeight?: number | undefined;
1108
+ pixelWidth?: number | undefined;
1109
+ videoCodec?: string | undefined;
1110
+ }[];
1111
+ format?: "standardInline" | "mobile" | undefined;
1112
+ poster?: {
1113
+ id: string;
1114
+ type: "http://www.ft.com/ontology/content/ImageSet";
1115
+ members: ({
1116
+ id: string;
1117
+ type: "http://www.ft.com/ontology/content/Image";
1118
+ binaryUrl: string;
1119
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1120
+ title?: string | undefined;
1121
+ description?: string | undefined;
1122
+ copyright?: {
1123
+ notice: string;
1124
+ } | undefined;
1125
+ minDisplayWidth?: string | undefined;
1126
+ maxDisplayWidth?: string | undefined;
1127
+ pixelWidth?: number | undefined;
1128
+ pixelHeight?: number | undefined;
1129
+ } | {
1130
+ id: string;
1131
+ type: "http://www.ft.com/ontology/content/Graphic";
1132
+ binaryUrl: string;
1133
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1134
+ title?: string | undefined;
1135
+ description?: string | undefined;
1136
+ copyright?: {
1137
+ notice: string;
1138
+ } | undefined;
1139
+ minDisplayWidth?: string | undefined;
1140
+ maxDisplayWidth?: string | undefined;
1141
+ pixelWidth?: number | undefined;
1142
+ pixelHeight?: number | undefined;
1143
+ })[];
1144
+ description?: string | undefined;
1145
+ } | undefined;
1146
+ }[];
1147
+ accessibility: {
1148
+ captions: {
1149
+ mediaType: string;
1150
+ url: string;
1151
+ }[];
1152
+ transcript?: string | undefined;
1153
+ };
1154
+ caption?: string | undefined;
1155
+ dataCopyright?: string | undefined;
1156
+ description?: string | undefined;
1157
+ displayTitle?: string | undefined;
1158
+ contentWarning?: string[] | undefined;
1159
+ noAudio?: boolean | undefined;
1160
+ source?: string | undefined;
1161
+ subtitle?: string | undefined;
1162
+ publishedDate?: string | undefined;
1163
+ }, {
1164
+ id: string;
1165
+ type: "http://www.ft.com/ontology/content/ClipSet";
1166
+ members: {
1167
+ id: string;
1168
+ type: "http://www.ft.com/ontology/content/Clip";
1169
+ dataSource: {
1170
+ audioCodec?: string | undefined;
1171
+ binaryUrl?: string | undefined;
1172
+ duration?: number | undefined;
1173
+ mediaType?: string | undefined;
1174
+ pixelHeight?: number | undefined;
1175
+ pixelWidth?: number | undefined;
1176
+ videoCodec?: string | undefined;
1177
+ }[];
1178
+ format?: "standardInline" | "mobile" | undefined;
1179
+ poster?: {
1180
+ id: string;
1181
+ type: "http://www.ft.com/ontology/content/ImageSet";
1182
+ members: ({
1183
+ id: string;
1184
+ type: "http://www.ft.com/ontology/content/Image";
1185
+ binaryUrl: string;
1186
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1187
+ title?: string | undefined;
1188
+ description?: string | undefined;
1189
+ copyright?: {
1190
+ notice: string;
1191
+ } | undefined;
1192
+ minDisplayWidth?: string | undefined;
1193
+ maxDisplayWidth?: string | undefined;
1194
+ pixelWidth?: number | undefined;
1195
+ pixelHeight?: number | undefined;
1196
+ } | {
1197
+ id: string;
1198
+ type: "http://www.ft.com/ontology/content/Graphic";
1199
+ binaryUrl: string;
1200
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1201
+ title?: string | undefined;
1202
+ description?: string | undefined;
1203
+ copyright?: {
1204
+ notice: string;
1205
+ } | undefined;
1206
+ minDisplayWidth?: string | undefined;
1207
+ maxDisplayWidth?: string | undefined;
1208
+ pixelWidth?: number | undefined;
1209
+ pixelHeight?: number | undefined;
1210
+ })[];
1211
+ description?: string | undefined;
1212
+ } | undefined;
1213
+ }[];
1214
+ accessibility: {
1215
+ captions: {
1216
+ mediaType: string;
1217
+ url: string;
1218
+ }[];
1219
+ transcript?: string | undefined;
1220
+ };
1221
+ caption?: string | undefined;
1222
+ dataCopyright?: string | undefined;
1223
+ description?: string | undefined;
1224
+ displayTitle?: string | undefined;
1225
+ contentWarning?: string[] | undefined;
1226
+ noAudio?: boolean | undefined;
1227
+ source?: string | undefined;
1228
+ subtitle?: string | undefined;
1229
+ publishedDate?: string | undefined;
1230
+ }>]>, "many">>;
771
1231
  }, "strip", import("zod").ZodTypeAny, {
772
1232
  id: string;
773
1233
  types: string[];
774
1234
  title: string;
1235
+ publishedDate: string;
775
1236
  annotations: {
776
1237
  id: string;
777
1238
  apiUrl: string;
@@ -782,9 +1243,9 @@ export declare const articleSchema: import("zod").ZodObject<{
782
1243
  type?: string | undefined;
783
1244
  headshot?: string | undefined;
784
1245
  }[];
785
- publishedDate: string;
786
1246
  firstPublishedDate: string;
787
1247
  canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
1248
+ canBeDistributed: "yes" | "no" | "verify";
788
1249
  bodyXML: string;
789
1250
  type?: string | undefined;
790
1251
  standfirst?: string | undefined;
@@ -930,7 +1391,7 @@ export declare const articleSchema: import("zod").ZodObject<{
930
1391
  pixelHeight?: number | undefined;
931
1392
  };
932
1393
  } | undefined;
933
- embeds?: {
1394
+ embeds?: ({
934
1395
  id: string;
935
1396
  type: "http://www.ft.com/ontology/content/ImageSet";
936
1397
  members: ({
@@ -963,11 +1424,79 @@ export declare const articleSchema: import("zod").ZodObject<{
963
1424
  pixelHeight?: number | undefined;
964
1425
  })[];
965
1426
  description?: string | undefined;
966
- }[] | undefined;
1427
+ } | {
1428
+ id: string;
1429
+ type: "http://www.ft.com/ontology/content/ClipSet";
1430
+ members: {
1431
+ id: string;
1432
+ type: "http://www.ft.com/ontology/content/Clip";
1433
+ dataSource: {
1434
+ audioCodec?: string | undefined;
1435
+ binaryUrl?: string | undefined;
1436
+ duration?: number | undefined;
1437
+ mediaType?: string | undefined;
1438
+ pixelHeight?: number | undefined;
1439
+ pixelWidth?: number | undefined;
1440
+ videoCodec?: string | undefined;
1441
+ }[];
1442
+ format?: "standardInline" | "mobile" | undefined;
1443
+ poster?: {
1444
+ id: string;
1445
+ type: "http://www.ft.com/ontology/content/ImageSet";
1446
+ members: ({
1447
+ id: string;
1448
+ type: "http://www.ft.com/ontology/content/Image";
1449
+ binaryUrl: string;
1450
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1451
+ title?: string | undefined;
1452
+ description?: string | undefined;
1453
+ copyright?: {
1454
+ notice: string;
1455
+ } | undefined;
1456
+ minDisplayWidth?: string | undefined;
1457
+ maxDisplayWidth?: string | undefined;
1458
+ pixelWidth?: number | undefined;
1459
+ pixelHeight?: number | undefined;
1460
+ } | {
1461
+ id: string;
1462
+ type: "http://www.ft.com/ontology/content/Graphic";
1463
+ binaryUrl: string;
1464
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1465
+ title?: string | undefined;
1466
+ description?: string | undefined;
1467
+ copyright?: {
1468
+ notice: string;
1469
+ } | undefined;
1470
+ minDisplayWidth?: string | undefined;
1471
+ maxDisplayWidth?: string | undefined;
1472
+ pixelWidth?: number | undefined;
1473
+ pixelHeight?: number | undefined;
1474
+ })[];
1475
+ description?: string | undefined;
1476
+ } | undefined;
1477
+ }[];
1478
+ accessibility: {
1479
+ captions: {
1480
+ mediaType: string;
1481
+ url: string;
1482
+ }[];
1483
+ transcript?: string | undefined;
1484
+ };
1485
+ caption?: string | undefined;
1486
+ dataCopyright?: string | undefined;
1487
+ description?: string | undefined;
1488
+ displayTitle?: string | undefined;
1489
+ contentWarning?: string[] | undefined;
1490
+ noAudio?: boolean | undefined;
1491
+ source?: string | undefined;
1492
+ subtitle?: string | undefined;
1493
+ publishedDate?: string | undefined;
1494
+ })[] | undefined;
967
1495
  }, {
968
1496
  id: string;
969
1497
  types: string[];
970
1498
  title: string;
1499
+ publishedDate: string;
971
1500
  annotations: {
972
1501
  id: string;
973
1502
  apiUrl: string;
@@ -978,9 +1507,9 @@ export declare const articleSchema: import("zod").ZodObject<{
978
1507
  type?: string | undefined;
979
1508
  headshot?: string | undefined;
980
1509
  }[];
981
- publishedDate: string;
982
1510
  firstPublishedDate: string;
983
1511
  canBeSyndicated: "unknown" | "yes" | "no" | "verify" | "withContributorPayment";
1512
+ canBeDistributed: "yes" | "no" | "verify";
984
1513
  bodyXML: string;
985
1514
  type?: string | undefined;
986
1515
  standfirst?: string | undefined;
@@ -1126,7 +1655,7 @@ export declare const articleSchema: import("zod").ZodObject<{
1126
1655
  pixelHeight?: number | undefined;
1127
1656
  };
1128
1657
  } | undefined;
1129
- embeds?: {
1658
+ embeds?: ({
1130
1659
  id: string;
1131
1660
  type: "http://www.ft.com/ontology/content/ImageSet";
1132
1661
  members: ({
@@ -1159,5 +1688,72 @@ export declare const articleSchema: import("zod").ZodObject<{
1159
1688
  pixelHeight?: number | undefined;
1160
1689
  })[];
1161
1690
  description?: string | undefined;
1162
- }[] | undefined;
1691
+ } | {
1692
+ id: string;
1693
+ type: "http://www.ft.com/ontology/content/ClipSet";
1694
+ members: {
1695
+ id: string;
1696
+ type: "http://www.ft.com/ontology/content/Clip";
1697
+ dataSource: {
1698
+ audioCodec?: string | undefined;
1699
+ binaryUrl?: string | undefined;
1700
+ duration?: number | undefined;
1701
+ mediaType?: string | undefined;
1702
+ pixelHeight?: number | undefined;
1703
+ pixelWidth?: number | undefined;
1704
+ videoCodec?: string | undefined;
1705
+ }[];
1706
+ format?: "standardInline" | "mobile" | undefined;
1707
+ poster?: {
1708
+ id: string;
1709
+ type: "http://www.ft.com/ontology/content/ImageSet";
1710
+ members: ({
1711
+ id: string;
1712
+ type: "http://www.ft.com/ontology/content/Image";
1713
+ binaryUrl: string;
1714
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1715
+ title?: string | undefined;
1716
+ description?: string | undefined;
1717
+ copyright?: {
1718
+ notice: string;
1719
+ } | undefined;
1720
+ minDisplayWidth?: string | undefined;
1721
+ maxDisplayWidth?: string | undefined;
1722
+ pixelWidth?: number | undefined;
1723
+ pixelHeight?: number | undefined;
1724
+ } | {
1725
+ id: string;
1726
+ type: "http://www.ft.com/ontology/content/Graphic";
1727
+ binaryUrl: string;
1728
+ format?: "standardInline" | "mobile" | "desktop" | "standard" | "square" | "ftEditSquare" | "wide" | "portrait" | "landscape" | undefined;
1729
+ title?: string | undefined;
1730
+ description?: string | undefined;
1731
+ copyright?: {
1732
+ notice: string;
1733
+ } | undefined;
1734
+ minDisplayWidth?: string | undefined;
1735
+ maxDisplayWidth?: string | undefined;
1736
+ pixelWidth?: number | undefined;
1737
+ pixelHeight?: number | undefined;
1738
+ })[];
1739
+ description?: string | undefined;
1740
+ } | undefined;
1741
+ }[];
1742
+ accessibility: {
1743
+ captions: {
1744
+ mediaType: string;
1745
+ url: string;
1746
+ }[];
1747
+ transcript?: string | undefined;
1748
+ };
1749
+ caption?: string | undefined;
1750
+ dataCopyright?: string | undefined;
1751
+ description?: string | undefined;
1752
+ displayTitle?: string | undefined;
1753
+ contentWarning?: string[] | undefined;
1754
+ noAudio?: boolean | undefined;
1755
+ source?: string | undefined;
1756
+ subtitle?: string | undefined;
1757
+ publishedDate?: string | undefined;
1758
+ })[] | undefined;
1163
1759
  }>;