@financial-times/content-curation-client 6.1.0 → 6.3.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.
@@ -493,6 +493,8 @@ declare const DraftSchema: z.ZodObject<{
493
493
  sponsorText: z.ZodOptional<z.ZodString>;
494
494
  sponsorImage: z.ZodOptional<z.ZodString>;
495
495
  pageCategory: z.ZodOptional<z.ZodString>;
496
+ } & {
497
+ lastPublishedDate: z.ZodOptional<z.ZodString>;
496
498
  }, "strip", z.ZodTypeAny, {
497
499
  title: string;
498
500
  pageId: string;
@@ -503,6 +505,7 @@ declare const DraftSchema: z.ZodObject<{
503
505
  metaDescription?: string | undefined;
504
506
  pageTheme?: string | undefined;
505
507
  pageCategory?: string | undefined;
508
+ lastPublishedDate?: string | undefined;
506
509
  }, {
507
510
  title: string;
508
511
  pageId: string;
@@ -513,6 +516,7 @@ declare const DraftSchema: z.ZodObject<{
513
516
  metaDescription?: string | undefined;
514
517
  pageTheme?: string | undefined;
515
518
  pageCategory?: string | undefined;
519
+ lastPublishedDate?: string | undefined;
516
520
  }>;
517
521
  children: z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
518
522
  type: z.ZodLiteral<"Interactive">;
@@ -1338,6 +1342,7 @@ declare const DraftSchema: z.ZodObject<{
1338
1342
  metaDescription?: string | undefined;
1339
1343
  pageTheme?: string | undefined;
1340
1344
  pageCategory?: string | undefined;
1345
+ lastPublishedDate?: string | undefined;
1341
1346
  };
1342
1347
  children: ({
1343
1348
  type: "Interactive";
@@ -1468,6 +1473,7 @@ declare const DraftSchema: z.ZodObject<{
1468
1473
  metaDescription?: string | undefined;
1469
1474
  pageTheme?: string | undefined;
1470
1475
  pageCategory?: string | undefined;
1476
+ lastPublishedDate?: string | undefined;
1471
1477
  };
1472
1478
  children: ({
1473
1479
  type: "Interactive";
@@ -1610,6 +1616,7 @@ declare const DraftSchema: z.ZodObject<{
1610
1616
  metaDescription?: string | undefined;
1611
1617
  pageTheme?: string | undefined;
1612
1618
  pageCategory?: string | undefined;
1619
+ lastPublishedDate?: string | undefined;
1613
1620
  };
1614
1621
  children: ({
1615
1622
  type: "Interactive";
@@ -1752,6 +1759,7 @@ declare const DraftSchema: z.ZodObject<{
1752
1759
  metaDescription?: string | undefined;
1753
1760
  pageTheme?: string | undefined;
1754
1761
  pageCategory?: string | undefined;
1762
+ lastPublishedDate?: string | undefined;
1755
1763
  };
1756
1764
  children: ({
1757
1765
  type: "Interactive";
@@ -2783,152 +2791,1407 @@ declare const LegacyPageStructureOutputSchema: z.ZodObject<{
2783
2791
  }, "strip", z.ZodTypeAny, {
2784
2792
  type: "experiment";
2785
2793
  properties: {
2786
- id: string;
2787
- experimentName: string;
2788
- title?: string | undefined;
2789
- config?: {
2790
- value?: unknown;
2791
- format?: "json" | undefined;
2794
+ id: string;
2795
+ experimentName: string;
2796
+ title?: string | undefined;
2797
+ config?: {
2798
+ value?: unknown;
2799
+ format?: "json" | undefined;
2800
+ } | undefined;
2801
+ };
2802
+ children: [];
2803
+ }, {
2804
+ type: "experiment";
2805
+ properties: {
2806
+ id: string;
2807
+ experimentName: string;
2808
+ title?: string | undefined;
2809
+ config?: {
2810
+ value?: unknown;
2811
+ format?: "json" | undefined;
2812
+ } | undefined;
2813
+ };
2814
+ children: [];
2815
+ }>]>, "many">;
2816
+ }, "strip", z.ZodTypeAny, {
2817
+ title: string;
2818
+ uuid: string;
2819
+ blocks: ({
2820
+ type: "topper-basic";
2821
+ properties: {
2822
+ title: string;
2823
+ sponsorText?: string | undefined;
2824
+ sponsorImage?: string | undefined;
2825
+ };
2826
+ } | {
2827
+ type: "info-box";
2828
+ properties: {
2829
+ bodyHTML: string;
2830
+ title?: string | undefined;
2831
+ };
2832
+ } | {
2833
+ type: "container";
2834
+ properties: {
2835
+ design: "chart" | "four-story" | "freeform" | "hero-lead";
2836
+ title?: string | undefined;
2837
+ backgroundColor?: string | undefined;
2838
+ };
2839
+ children: ({
2840
+ source: "flourish";
2841
+ properties: {
2842
+ id: string;
2843
+ };
2844
+ } | {
2845
+ source: "list";
2846
+ properties: {
2847
+ id: string;
2848
+ maxItems?: number | undefined;
2849
+ };
2850
+ } | {
2851
+ source: "content";
2852
+ properties: {
2853
+ ids: [string, ...string[]];
2854
+ };
2855
+ })[];
2856
+ } | {
2857
+ type: "experiment";
2858
+ properties: {
2859
+ id: string;
2860
+ experimentName: string;
2861
+ title?: string | undefined;
2862
+ config?: {
2863
+ value?: unknown;
2864
+ format?: "json" | undefined;
2865
+ } | undefined;
2866
+ };
2867
+ children: [];
2868
+ })[];
2869
+ conceptId?: string | undefined;
2870
+ themeName?: string | undefined;
2871
+ metaDescription?: string | undefined;
2872
+ }, {
2873
+ title: string;
2874
+ uuid: string;
2875
+ blocks: ({
2876
+ type: "topper-basic";
2877
+ properties: {
2878
+ title: string;
2879
+ sponsorText?: string | undefined;
2880
+ sponsorImage?: string | undefined;
2881
+ };
2882
+ } | {
2883
+ type: "info-box";
2884
+ properties: {
2885
+ bodyHTML: string;
2886
+ title?: string | undefined;
2887
+ };
2888
+ } | {
2889
+ type: "container";
2890
+ properties: {
2891
+ title?: string | undefined;
2892
+ design?: "chart" | "four-story" | "freeform" | "hero-lead" | undefined;
2893
+ backgroundColor?: string | undefined;
2894
+ };
2895
+ children: ({
2896
+ source: "flourish";
2897
+ properties: {
2898
+ id: string;
2899
+ };
2900
+ } | {
2901
+ source: "list";
2902
+ properties: {
2903
+ id: string;
2904
+ maxItems?: number | undefined;
2905
+ };
2906
+ } | {
2907
+ source: "content";
2908
+ properties: {
2909
+ ids: [string, ...string[]];
2910
+ };
2911
+ })[];
2912
+ } | {
2913
+ type: "experiment";
2914
+ properties: {
2915
+ id: string;
2916
+ experimentName: string;
2917
+ title?: string | undefined;
2918
+ config?: {
2919
+ value?: unknown;
2920
+ format?: "json" | undefined;
2921
+ } | undefined;
2922
+ };
2923
+ children: [];
2924
+ })[];
2925
+ conceptId?: string | undefined;
2926
+ themeName?: string | undefined;
2927
+ metaDescription?: string | undefined;
2928
+ }>;
2929
+ export { LegacyPageStructureOutputSchema }
2930
+ export { LegacyPageStructureOutputSchema as LegacyPageStructureOutputSchema_alias_1 }
2931
+
2932
+ declare type ListPagesOptions = {
2933
+ pageCategory?: string;
2934
+ };
2935
+ export { ListPagesOptions }
2936
+ export { ListPagesOptions as ListPagesOptions_alias_1 }
2937
+
2938
+ /**
2939
+ * Array of Page Structures
2940
+ */
2941
+ export declare const ListPagesOutputSchema: z.ZodArray<z.ZodObject<{
2942
+ type: z.ZodLiteral<"Page">;
2943
+ schemaVersion: z.ZodNumber;
2944
+ properties: z.ZodObject<{
2945
+ title: z.ZodString;
2946
+ pageId: z.ZodString;
2947
+ publicationId: z.ZodString;
2948
+ conceptId: z.ZodOptional<z.ZodString>;
2949
+ metaDescription: z.ZodOptional<z.ZodString>;
2950
+ pageTheme: z.ZodOptional<z.ZodString>;
2951
+ sponsorText: z.ZodOptional<z.ZodString>;
2952
+ sponsorImage: z.ZodOptional<z.ZodString>;
2953
+ pageCategory: z.ZodOptional<z.ZodString>;
2954
+ } & {
2955
+ lastPublishedDate: z.ZodOptional<z.ZodString>;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ title: string;
2958
+ pageId: string;
2959
+ publicationId: string;
2960
+ sponsorText?: string | undefined;
2961
+ sponsorImage?: string | undefined;
2962
+ conceptId?: string | undefined;
2963
+ metaDescription?: string | undefined;
2964
+ pageTheme?: string | undefined;
2965
+ pageCategory?: string | undefined;
2966
+ lastPublishedDate?: string | undefined;
2967
+ }, {
2968
+ title: string;
2969
+ pageId: string;
2970
+ publicationId: string;
2971
+ sponsorText?: string | undefined;
2972
+ sponsorImage?: string | undefined;
2973
+ conceptId?: string | undefined;
2974
+ metaDescription?: string | undefined;
2975
+ pageTheme?: string | undefined;
2976
+ pageCategory?: string | undefined;
2977
+ lastPublishedDate?: string | undefined;
2978
+ }>;
2979
+ children: z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
2980
+ type: z.ZodLiteral<"Interactive">;
2981
+ hidden: z.ZodOptional<z.ZodBoolean>;
2982
+ properties: z.ZodObject<{
2983
+ heading: z.ZodOptional<z.ZodObject<{
2984
+ text: z.ZodString;
2985
+ href: z.ZodOptional<z.ZodString>;
2986
+ }, "strip", z.ZodTypeAny, {
2987
+ text: string;
2988
+ href?: string | undefined;
2989
+ }, {
2990
+ text: string;
2991
+ href?: string | undefined;
2992
+ }>>;
2993
+ } & {
2994
+ flourishDescription: z.ZodOptional<z.ZodString>;
2995
+ flourishId: z.ZodString;
2996
+ flourishAltText: z.ZodString;
2997
+ storyUUID: z.ZodOptional<z.ZodString>;
2998
+ theme: z.ZodOptional<z.ZodString>;
2999
+ }, "strip", z.ZodTypeAny, {
3000
+ flourishId: string;
3001
+ flourishAltText: string;
3002
+ heading?: {
3003
+ text: string;
3004
+ href?: string | undefined;
3005
+ } | undefined;
3006
+ flourishDescription?: string | undefined;
3007
+ storyUUID?: string | undefined;
3008
+ theme?: string | undefined;
3009
+ }, {
3010
+ flourishId: string;
3011
+ flourishAltText: string;
3012
+ heading?: {
3013
+ text: string;
3014
+ href?: string | undefined;
3015
+ } | undefined;
3016
+ flourishDescription?: string | undefined;
3017
+ storyUUID?: string | undefined;
3018
+ theme?: string | undefined;
3019
+ }>;
3020
+ } & {
3021
+ sliceId: z.ZodString;
3022
+ }, "strip", z.ZodTypeAny, {
3023
+ type: "Interactive";
3024
+ properties: {
3025
+ flourishId: string;
3026
+ flourishAltText: string;
3027
+ heading?: {
3028
+ text: string;
3029
+ href?: string | undefined;
3030
+ } | undefined;
3031
+ flourishDescription?: string | undefined;
3032
+ storyUUID?: string | undefined;
3033
+ theme?: string | undefined;
3034
+ };
3035
+ sliceId: string;
3036
+ hidden?: boolean | undefined;
3037
+ }, {
3038
+ type: "Interactive";
3039
+ properties: {
3040
+ flourishId: string;
3041
+ flourishAltText: string;
3042
+ heading?: {
3043
+ text: string;
3044
+ href?: string | undefined;
3045
+ } | undefined;
3046
+ flourishDescription?: string | undefined;
3047
+ storyUUID?: string | undefined;
3048
+ theme?: string | undefined;
3049
+ };
3050
+ sliceId: string;
3051
+ hidden?: boolean | undefined;
3052
+ }>, z.ZodObject<{
3053
+ type: z.ZodLiteral<"Experiment">;
3054
+ hidden: z.ZodOptional<z.ZodBoolean>;
3055
+ properties: z.ZodObject<{
3056
+ heading: z.ZodOptional<z.ZodObject<{
3057
+ text: z.ZodString;
3058
+ href: z.ZodOptional<z.ZodString>;
3059
+ }, "strip", z.ZodTypeAny, {
3060
+ text: string;
3061
+ href?: string | undefined;
3062
+ }, {
3063
+ text: string;
3064
+ href?: string | undefined;
3065
+ }>>;
3066
+ } & {
3067
+ experimentId: z.ZodString;
3068
+ experimentName: z.ZodString;
3069
+ contentJson: z.ZodEffects<z.ZodString, string, string>;
3070
+ }, "strip", z.ZodTypeAny, {
3071
+ experimentName: string;
3072
+ experimentId: string;
3073
+ contentJson: string;
3074
+ heading?: {
3075
+ text: string;
3076
+ href?: string | undefined;
3077
+ } | undefined;
3078
+ }, {
3079
+ experimentName: string;
3080
+ experimentId: string;
3081
+ contentJson: string;
3082
+ heading?: {
3083
+ text: string;
3084
+ href?: string | undefined;
3085
+ } | undefined;
3086
+ }>;
3087
+ } & {
3088
+ sliceId: z.ZodString;
3089
+ }, "strip", z.ZodTypeAny, {
3090
+ type: "Experiment";
3091
+ properties: {
3092
+ experimentName: string;
3093
+ experimentId: string;
3094
+ contentJson: string;
3095
+ heading?: {
3096
+ text: string;
3097
+ href?: string | undefined;
3098
+ } | undefined;
3099
+ };
3100
+ sliceId: string;
3101
+ hidden?: boolean | undefined;
3102
+ }, {
3103
+ type: "Experiment";
3104
+ properties: {
3105
+ experimentName: string;
3106
+ experimentId: string;
3107
+ contentJson: string;
3108
+ heading?: {
3109
+ text: string;
3110
+ href?: string | undefined;
3111
+ } | undefined;
3112
+ };
3113
+ sliceId: string;
3114
+ hidden?: boolean | undefined;
3115
+ }>, z.ZodObject<{
3116
+ type: z.ZodLiteral<"Strip">;
3117
+ hidden: z.ZodOptional<z.ZodBoolean>;
3118
+ properties: z.ZodObject<{
3119
+ heading: z.ZodOptional<z.ZodObject<{
3120
+ text: z.ZodString;
3121
+ href: z.ZodOptional<z.ZodString>;
3122
+ }, "strip", z.ZodTypeAny, {
3123
+ text: string;
3124
+ href?: string | undefined;
3125
+ }, {
3126
+ text: string;
3127
+ href?: string | undefined;
3128
+ }>>;
3129
+ } & {
3130
+ listId: z.ZodString;
3131
+ maxStories: z.ZodNumber;
3132
+ }, "strip", z.ZodTypeAny, {
3133
+ listId: string;
3134
+ maxStories: number;
3135
+ heading?: {
3136
+ text: string;
3137
+ href?: string | undefined;
3138
+ } | undefined;
3139
+ }, {
3140
+ listId: string;
3141
+ maxStories: number;
3142
+ heading?: {
3143
+ text: string;
3144
+ href?: string | undefined;
3145
+ } | undefined;
3146
+ }>;
3147
+ } & {
3148
+ sliceId: z.ZodString;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ type: "Strip";
3151
+ properties: {
3152
+ listId: string;
3153
+ maxStories: number;
3154
+ heading?: {
3155
+ text: string;
3156
+ href?: string | undefined;
3157
+ } | undefined;
3158
+ };
3159
+ sliceId: string;
3160
+ hidden?: boolean | undefined;
3161
+ }, {
3162
+ type: "Strip";
3163
+ properties: {
3164
+ listId: string;
3165
+ maxStories: number;
3166
+ heading?: {
3167
+ text: string;
3168
+ href?: string | undefined;
3169
+ } | undefined;
3170
+ };
3171
+ sliceId: string;
3172
+ hidden?: boolean | undefined;
3173
+ }>, z.ZodObject<{
3174
+ type: z.ZodLiteral<"Topper">;
3175
+ hidden: z.ZodOptional<z.ZodBoolean>;
3176
+ properties: z.ZodObject<{
3177
+ heading: z.ZodOptional<z.ZodObject<{
3178
+ text: z.ZodString;
3179
+ href: z.ZodOptional<z.ZodString>;
3180
+ }, "strip", z.ZodTypeAny, {
3181
+ text: string;
3182
+ href?: string | undefined;
3183
+ }, {
3184
+ text: string;
3185
+ href?: string | undefined;
3186
+ }>>;
3187
+ } & {
3188
+ description: z.ZodObject<{
3189
+ type: z.ZodLiteral<"doc">;
3190
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3191
+ type: z.ZodLiteral<"paragraph">;
3192
+ content: z.ZodArray<z.ZodObject<{
3193
+ type: z.ZodLiteral<"text">;
3194
+ text: z.ZodString;
3195
+ marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3196
+ type: z.ZodLiteral<"link">;
3197
+ attrs: z.ZodObject<{
3198
+ href: z.ZodEffects<z.ZodString, string, string>;
3199
+ }, "strip", z.ZodTypeAny, {
3200
+ href: string;
3201
+ }, {
3202
+ href: string;
3203
+ }>;
3204
+ }, "strip", z.ZodTypeAny, {
3205
+ type: "link";
3206
+ attrs: {
3207
+ href: string;
3208
+ };
3209
+ }, {
3210
+ type: "link";
3211
+ attrs: {
3212
+ href: string;
3213
+ };
3214
+ }>, z.ZodObject<{
3215
+ type: z.ZodLiteral<"bold">;
3216
+ }, "strip", z.ZodTypeAny, {
3217
+ type: "bold";
3218
+ }, {
3219
+ type: "bold";
3220
+ }>, z.ZodObject<{
3221
+ type: z.ZodLiteral<"italic">;
3222
+ }, "strip", z.ZodTypeAny, {
3223
+ type: "italic";
3224
+ }, {
3225
+ type: "italic";
3226
+ }>, z.ZodObject<{
3227
+ type: z.ZodLiteral<"underline">;
3228
+ }, "strip", z.ZodTypeAny, {
3229
+ type: "underline";
3230
+ }, {
3231
+ type: "underline";
3232
+ }>, z.ZodObject<{
3233
+ type: z.ZodLiteral<"strike">;
3234
+ }, "strip", z.ZodTypeAny, {
3235
+ type: "strike";
3236
+ }, {
3237
+ type: "strike";
3238
+ }>]>, "many">>;
3239
+ }, "strip", z.ZodTypeAny, {
3240
+ type: "text";
3241
+ text: string;
3242
+ marks?: ({
3243
+ type: "link";
3244
+ attrs: {
3245
+ href: string;
3246
+ };
3247
+ } | {
3248
+ type: "bold";
3249
+ } | {
3250
+ type: "italic";
3251
+ } | {
3252
+ type: "underline";
3253
+ } | {
3254
+ type: "strike";
3255
+ })[] | undefined;
3256
+ }, {
3257
+ type: "text";
3258
+ text: string;
3259
+ marks?: ({
3260
+ type: "link";
3261
+ attrs: {
3262
+ href: string;
3263
+ };
3264
+ } | {
3265
+ type: "bold";
3266
+ } | {
3267
+ type: "italic";
3268
+ } | {
3269
+ type: "underline";
3270
+ } | {
3271
+ type: "strike";
3272
+ })[] | undefined;
3273
+ }>, "many">;
3274
+ }, "strip", z.ZodTypeAny, {
3275
+ type: "paragraph";
3276
+ content: {
3277
+ type: "text";
3278
+ text: string;
3279
+ marks?: ({
3280
+ type: "link";
3281
+ attrs: {
3282
+ href: string;
3283
+ };
3284
+ } | {
3285
+ type: "bold";
3286
+ } | {
3287
+ type: "italic";
3288
+ } | {
3289
+ type: "underline";
3290
+ } | {
3291
+ type: "strike";
3292
+ })[] | undefined;
3293
+ }[];
3294
+ }, {
3295
+ type: "paragraph";
3296
+ content: {
3297
+ type: "text";
3298
+ text: string;
3299
+ marks?: ({
3300
+ type: "link";
3301
+ attrs: {
3302
+ href: string;
3303
+ };
3304
+ } | {
3305
+ type: "bold";
3306
+ } | {
3307
+ type: "italic";
3308
+ } | {
3309
+ type: "underline";
3310
+ } | {
3311
+ type: "strike";
3312
+ })[] | undefined;
3313
+ }[];
3314
+ }>, z.ZodObject<{
3315
+ type: z.ZodLiteral<"text">;
3316
+ text: z.ZodString;
3317
+ marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3318
+ type: z.ZodLiteral<"link">;
3319
+ attrs: z.ZodObject<{
3320
+ href: z.ZodEffects<z.ZodString, string, string>;
3321
+ }, "strip", z.ZodTypeAny, {
3322
+ href: string;
3323
+ }, {
3324
+ href: string;
3325
+ }>;
3326
+ }, "strip", z.ZodTypeAny, {
3327
+ type: "link";
3328
+ attrs: {
3329
+ href: string;
3330
+ };
3331
+ }, {
3332
+ type: "link";
3333
+ attrs: {
3334
+ href: string;
3335
+ };
3336
+ }>, z.ZodObject<{
3337
+ type: z.ZodLiteral<"bold">;
3338
+ }, "strip", z.ZodTypeAny, {
3339
+ type: "bold";
3340
+ }, {
3341
+ type: "bold";
3342
+ }>, z.ZodObject<{
3343
+ type: z.ZodLiteral<"italic">;
3344
+ }, "strip", z.ZodTypeAny, {
3345
+ type: "italic";
3346
+ }, {
3347
+ type: "italic";
3348
+ }>, z.ZodObject<{
3349
+ type: z.ZodLiteral<"underline">;
3350
+ }, "strip", z.ZodTypeAny, {
3351
+ type: "underline";
3352
+ }, {
3353
+ type: "underline";
3354
+ }>, z.ZodObject<{
3355
+ type: z.ZodLiteral<"strike">;
3356
+ }, "strip", z.ZodTypeAny, {
3357
+ type: "strike";
3358
+ }, {
3359
+ type: "strike";
3360
+ }>]>, "many">>;
3361
+ }, "strip", z.ZodTypeAny, {
3362
+ type: "text";
3363
+ text: string;
3364
+ marks?: ({
3365
+ type: "link";
3366
+ attrs: {
3367
+ href: string;
3368
+ };
3369
+ } | {
3370
+ type: "bold";
3371
+ } | {
3372
+ type: "italic";
3373
+ } | {
3374
+ type: "underline";
3375
+ } | {
3376
+ type: "strike";
3377
+ })[] | undefined;
3378
+ }, {
3379
+ type: "text";
3380
+ text: string;
3381
+ marks?: ({
3382
+ type: "link";
3383
+ attrs: {
3384
+ href: string;
3385
+ };
3386
+ } | {
3387
+ type: "bold";
3388
+ } | {
3389
+ type: "italic";
3390
+ } | {
3391
+ type: "underline";
3392
+ } | {
3393
+ type: "strike";
3394
+ })[] | undefined;
3395
+ }>]>, "many">;
3396
+ }, "strip", z.ZodTypeAny, {
3397
+ type: "doc";
3398
+ content: ({
3399
+ type: "text";
3400
+ text: string;
3401
+ marks?: ({
3402
+ type: "link";
3403
+ attrs: {
3404
+ href: string;
3405
+ };
3406
+ } | {
3407
+ type: "bold";
3408
+ } | {
3409
+ type: "italic";
3410
+ } | {
3411
+ type: "underline";
3412
+ } | {
3413
+ type: "strike";
3414
+ })[] | undefined;
3415
+ } | {
3416
+ type: "paragraph";
3417
+ content: {
3418
+ type: "text";
3419
+ text: string;
3420
+ marks?: ({
3421
+ type: "link";
3422
+ attrs: {
3423
+ href: string;
3424
+ };
3425
+ } | {
3426
+ type: "bold";
3427
+ } | {
3428
+ type: "italic";
3429
+ } | {
3430
+ type: "underline";
3431
+ } | {
3432
+ type: "strike";
3433
+ })[] | undefined;
3434
+ }[];
3435
+ })[];
3436
+ }, {
3437
+ type: "doc";
3438
+ content: ({
3439
+ type: "text";
3440
+ text: string;
3441
+ marks?: ({
3442
+ type: "link";
3443
+ attrs: {
3444
+ href: string;
3445
+ };
3446
+ } | {
3447
+ type: "bold";
3448
+ } | {
3449
+ type: "italic";
3450
+ } | {
3451
+ type: "underline";
3452
+ } | {
3453
+ type: "strike";
3454
+ })[] | undefined;
3455
+ } | {
3456
+ type: "paragraph";
3457
+ content: {
3458
+ type: "text";
3459
+ text: string;
3460
+ marks?: ({
3461
+ type: "link";
3462
+ attrs: {
3463
+ href: string;
3464
+ };
3465
+ } | {
3466
+ type: "bold";
3467
+ } | {
3468
+ type: "italic";
3469
+ } | {
3470
+ type: "underline";
3471
+ } | {
3472
+ type: "strike";
3473
+ })[] | undefined;
3474
+ }[];
3475
+ })[];
3476
+ }>;
3477
+ strapline: z.ZodOptional<z.ZodString>;
3478
+ }, "strip", z.ZodTypeAny, {
3479
+ description: {
3480
+ type: "doc";
3481
+ content: ({
3482
+ type: "text";
3483
+ text: string;
3484
+ marks?: ({
3485
+ type: "link";
3486
+ attrs: {
3487
+ href: string;
3488
+ };
3489
+ } | {
3490
+ type: "bold";
3491
+ } | {
3492
+ type: "italic";
3493
+ } | {
3494
+ type: "underline";
3495
+ } | {
3496
+ type: "strike";
3497
+ })[] | undefined;
3498
+ } | {
3499
+ type: "paragraph";
3500
+ content: {
3501
+ type: "text";
3502
+ text: string;
3503
+ marks?: ({
3504
+ type: "link";
3505
+ attrs: {
3506
+ href: string;
3507
+ };
3508
+ } | {
3509
+ type: "bold";
3510
+ } | {
3511
+ type: "italic";
3512
+ } | {
3513
+ type: "underline";
3514
+ } | {
3515
+ type: "strike";
3516
+ })[] | undefined;
3517
+ }[];
3518
+ })[];
3519
+ };
3520
+ heading?: {
3521
+ text: string;
3522
+ href?: string | undefined;
3523
+ } | undefined;
3524
+ strapline?: string | undefined;
3525
+ }, {
3526
+ description: {
3527
+ type: "doc";
3528
+ content: ({
3529
+ type: "text";
3530
+ text: string;
3531
+ marks?: ({
3532
+ type: "link";
3533
+ attrs: {
3534
+ href: string;
3535
+ };
3536
+ } | {
3537
+ type: "bold";
3538
+ } | {
3539
+ type: "italic";
3540
+ } | {
3541
+ type: "underline";
3542
+ } | {
3543
+ type: "strike";
3544
+ })[] | undefined;
3545
+ } | {
3546
+ type: "paragraph";
3547
+ content: {
3548
+ type: "text";
3549
+ text: string;
3550
+ marks?: ({
3551
+ type: "link";
3552
+ attrs: {
3553
+ href: string;
3554
+ };
3555
+ } | {
3556
+ type: "bold";
3557
+ } | {
3558
+ type: "italic";
3559
+ } | {
3560
+ type: "underline";
3561
+ } | {
3562
+ type: "strike";
3563
+ })[] | undefined;
3564
+ }[];
3565
+ })[];
3566
+ };
3567
+ heading?: {
3568
+ text: string;
3569
+ href?: string | undefined;
3570
+ } | undefined;
3571
+ strapline?: string | undefined;
3572
+ }>;
3573
+ } & {
3574
+ sliceId: z.ZodString;
3575
+ }, "strip", z.ZodTypeAny, {
3576
+ type: "Topper";
3577
+ properties: {
3578
+ description: {
3579
+ type: "doc";
3580
+ content: ({
3581
+ type: "text";
3582
+ text: string;
3583
+ marks?: ({
3584
+ type: "link";
3585
+ attrs: {
3586
+ href: string;
3587
+ };
3588
+ } | {
3589
+ type: "bold";
3590
+ } | {
3591
+ type: "italic";
3592
+ } | {
3593
+ type: "underline";
3594
+ } | {
3595
+ type: "strike";
3596
+ })[] | undefined;
3597
+ } | {
3598
+ type: "paragraph";
3599
+ content: {
3600
+ type: "text";
3601
+ text: string;
3602
+ marks?: ({
3603
+ type: "link";
3604
+ attrs: {
3605
+ href: string;
3606
+ };
3607
+ } | {
3608
+ type: "bold";
3609
+ } | {
3610
+ type: "italic";
3611
+ } | {
3612
+ type: "underline";
3613
+ } | {
3614
+ type: "strike";
3615
+ })[] | undefined;
3616
+ }[];
3617
+ })[];
3618
+ };
3619
+ heading?: {
3620
+ text: string;
3621
+ href?: string | undefined;
3622
+ } | undefined;
3623
+ strapline?: string | undefined;
3624
+ };
3625
+ sliceId: string;
3626
+ hidden?: boolean | undefined;
3627
+ }, {
3628
+ type: "Topper";
3629
+ properties: {
3630
+ description: {
3631
+ type: "doc";
3632
+ content: ({
3633
+ type: "text";
3634
+ text: string;
3635
+ marks?: ({
3636
+ type: "link";
3637
+ attrs: {
3638
+ href: string;
3639
+ };
3640
+ } | {
3641
+ type: "bold";
3642
+ } | {
3643
+ type: "italic";
3644
+ } | {
3645
+ type: "underline";
3646
+ } | {
3647
+ type: "strike";
3648
+ })[] | undefined;
3649
+ } | {
3650
+ type: "paragraph";
3651
+ content: {
3652
+ type: "text";
3653
+ text: string;
3654
+ marks?: ({
3655
+ type: "link";
3656
+ attrs: {
3657
+ href: string;
3658
+ };
3659
+ } | {
3660
+ type: "bold";
3661
+ } | {
3662
+ type: "italic";
3663
+ } | {
3664
+ type: "underline";
3665
+ } | {
3666
+ type: "strike";
3667
+ })[] | undefined;
3668
+ }[];
3669
+ })[];
3670
+ };
3671
+ heading?: {
3672
+ text: string;
3673
+ href?: string | undefined;
3674
+ } | undefined;
3675
+ strapline?: string | undefined;
3676
+ };
3677
+ sliceId: string;
3678
+ hidden?: boolean | undefined;
3679
+ }>, z.ZodObject<{
3680
+ type: z.ZodLiteral<"Hero">;
3681
+ hidden: z.ZodOptional<z.ZodBoolean>;
3682
+ properties: z.ZodObject<{
3683
+ heading: z.ZodOptional<z.ZodObject<{
3684
+ text: z.ZodString;
3685
+ href: z.ZodOptional<z.ZodString>;
3686
+ }, "strip", z.ZodTypeAny, {
3687
+ text: string;
3688
+ href?: string | undefined;
3689
+ }, {
3690
+ text: string;
3691
+ href?: string | undefined;
3692
+ }>>;
3693
+ } & {
3694
+ listId: z.ZodString;
3695
+ maxStories: z.ZodNumber;
3696
+ }, "strip", z.ZodTypeAny, {
3697
+ listId: string;
3698
+ maxStories: number;
3699
+ heading?: {
3700
+ text: string;
3701
+ href?: string | undefined;
3702
+ } | undefined;
3703
+ }, {
3704
+ listId: string;
3705
+ maxStories: number;
3706
+ heading?: {
3707
+ text: string;
3708
+ href?: string | undefined;
3709
+ } | undefined;
3710
+ }>;
3711
+ } & {
3712
+ sliceId: z.ZodString;
3713
+ }, "strip", z.ZodTypeAny, {
3714
+ type: "Hero";
3715
+ properties: {
3716
+ listId: string;
3717
+ maxStories: number;
3718
+ heading?: {
3719
+ text: string;
3720
+ href?: string | undefined;
3721
+ } | undefined;
3722
+ };
3723
+ sliceId: string;
3724
+ hidden?: boolean | undefined;
3725
+ }, {
3726
+ type: "Hero";
3727
+ properties: {
3728
+ listId: string;
3729
+ maxStories: number;
3730
+ heading?: {
3731
+ text: string;
3732
+ href?: string | undefined;
3733
+ } | undefined;
3734
+ };
3735
+ sliceId: string;
3736
+ hidden?: boolean | undefined;
3737
+ }>, z.ZodObject<{
3738
+ type: z.ZodLiteral<"StoryGroup">;
3739
+ hidden: z.ZodOptional<z.ZodBoolean>;
3740
+ properties: z.ZodObject<{
3741
+ heading: z.ZodOptional<z.ZodObject<{
3742
+ text: z.ZodString;
3743
+ href: z.ZodOptional<z.ZodString>;
3744
+ }, "strip", z.ZodTypeAny, {
3745
+ text: string;
3746
+ href?: string | undefined;
3747
+ }, {
3748
+ text: string;
3749
+ href?: string | undefined;
3750
+ }>>;
3751
+ } & {
3752
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
3753
+ }, "strip", z.ZodTypeAny, {
3754
+ storySlots: [string, ...string[]];
3755
+ heading?: {
3756
+ text: string;
3757
+ href?: string | undefined;
3758
+ } | undefined;
3759
+ }, {
3760
+ storySlots: [string, ...string[]];
3761
+ heading?: {
3762
+ text: string;
3763
+ href?: string | undefined;
3764
+ } | undefined;
3765
+ }>;
3766
+ } & {
3767
+ sliceId: z.ZodString;
3768
+ }, "strip", z.ZodTypeAny, {
3769
+ type: "StoryGroup";
3770
+ properties: {
3771
+ storySlots: [string, ...string[]];
3772
+ heading?: {
3773
+ text: string;
3774
+ href?: string | undefined;
3775
+ } | undefined;
3776
+ };
3777
+ sliceId: string;
3778
+ hidden?: boolean | undefined;
3779
+ }, {
3780
+ type: "StoryGroup";
3781
+ properties: {
3782
+ storySlots: [string, ...string[]];
3783
+ heading?: {
3784
+ text: string;
3785
+ href?: string | undefined;
3786
+ } | undefined;
3787
+ };
3788
+ sliceId: string;
3789
+ hidden?: boolean | undefined;
3790
+ }>]>, "many">;
3791
+ }, "strip", z.ZodTypeAny, {
3792
+ type: "Page";
3793
+ properties: {
3794
+ title: string;
3795
+ pageId: string;
3796
+ publicationId: string;
3797
+ sponsorText?: string | undefined;
3798
+ sponsorImage?: string | undefined;
3799
+ conceptId?: string | undefined;
3800
+ metaDescription?: string | undefined;
3801
+ pageTheme?: string | undefined;
3802
+ pageCategory?: string | undefined;
3803
+ lastPublishedDate?: string | undefined;
3804
+ };
3805
+ children: ({
3806
+ type: "Interactive";
3807
+ properties: {
3808
+ flourishId: string;
3809
+ flourishAltText: string;
3810
+ heading?: {
3811
+ text: string;
3812
+ href?: string | undefined;
3813
+ } | undefined;
3814
+ flourishDescription?: string | undefined;
3815
+ storyUUID?: string | undefined;
3816
+ theme?: string | undefined;
3817
+ };
3818
+ sliceId: string;
3819
+ hidden?: boolean | undefined;
3820
+ } | {
3821
+ type: "Experiment";
3822
+ properties: {
3823
+ experimentName: string;
3824
+ experimentId: string;
3825
+ contentJson: string;
3826
+ heading?: {
3827
+ text: string;
3828
+ href?: string | undefined;
3829
+ } | undefined;
3830
+ };
3831
+ sliceId: string;
3832
+ hidden?: boolean | undefined;
3833
+ } | {
3834
+ type: "Strip";
3835
+ properties: {
3836
+ listId: string;
3837
+ maxStories: number;
3838
+ heading?: {
3839
+ text: string;
3840
+ href?: string | undefined;
3841
+ } | undefined;
3842
+ };
3843
+ sliceId: string;
3844
+ hidden?: boolean | undefined;
3845
+ } | {
3846
+ type: "Topper";
3847
+ properties: {
3848
+ description: {
3849
+ type: "doc";
3850
+ content: ({
3851
+ type: "text";
3852
+ text: string;
3853
+ marks?: ({
3854
+ type: "link";
3855
+ attrs: {
3856
+ href: string;
3857
+ };
3858
+ } | {
3859
+ type: "bold";
3860
+ } | {
3861
+ type: "italic";
3862
+ } | {
3863
+ type: "underline";
3864
+ } | {
3865
+ type: "strike";
3866
+ })[] | undefined;
3867
+ } | {
3868
+ type: "paragraph";
3869
+ content: {
3870
+ type: "text";
3871
+ text: string;
3872
+ marks?: ({
3873
+ type: "link";
3874
+ attrs: {
3875
+ href: string;
3876
+ };
3877
+ } | {
3878
+ type: "bold";
3879
+ } | {
3880
+ type: "italic";
3881
+ } | {
3882
+ type: "underline";
3883
+ } | {
3884
+ type: "strike";
3885
+ })[] | undefined;
3886
+ }[];
3887
+ })[];
3888
+ };
3889
+ heading?: {
3890
+ text: string;
3891
+ href?: string | undefined;
3892
+ } | undefined;
3893
+ strapline?: string | undefined;
3894
+ };
3895
+ sliceId: string;
3896
+ hidden?: boolean | undefined;
3897
+ } | {
3898
+ type: "Hero";
3899
+ properties: {
3900
+ listId: string;
3901
+ maxStories: number;
3902
+ heading?: {
3903
+ text: string;
3904
+ href?: string | undefined;
3905
+ } | undefined;
3906
+ };
3907
+ sliceId: string;
3908
+ hidden?: boolean | undefined;
3909
+ } | {
3910
+ type: "StoryGroup";
3911
+ properties: {
3912
+ storySlots: [string, ...string[]];
3913
+ heading?: {
3914
+ text: string;
3915
+ href?: string | undefined;
3916
+ } | undefined;
3917
+ };
3918
+ sliceId: string;
3919
+ hidden?: boolean | undefined;
3920
+ })[];
3921
+ schemaVersion: number;
3922
+ }, {
3923
+ type: "Page";
3924
+ properties: {
3925
+ title: string;
3926
+ pageId: string;
3927
+ publicationId: string;
3928
+ sponsorText?: string | undefined;
3929
+ sponsorImage?: string | undefined;
3930
+ conceptId?: string | undefined;
3931
+ metaDescription?: string | undefined;
3932
+ pageTheme?: string | undefined;
3933
+ pageCategory?: string | undefined;
3934
+ lastPublishedDate?: string | undefined;
3935
+ };
3936
+ children: ({
3937
+ type: "Interactive";
3938
+ properties: {
3939
+ flourishId: string;
3940
+ flourishAltText: string;
3941
+ heading?: {
3942
+ text: string;
3943
+ href?: string | undefined;
3944
+ } | undefined;
3945
+ flourishDescription?: string | undefined;
3946
+ storyUUID?: string | undefined;
3947
+ theme?: string | undefined;
3948
+ };
3949
+ sliceId: string;
3950
+ hidden?: boolean | undefined;
3951
+ } | {
3952
+ type: "Experiment";
3953
+ properties: {
3954
+ experimentName: string;
3955
+ experimentId: string;
3956
+ contentJson: string;
3957
+ heading?: {
3958
+ text: string;
3959
+ href?: string | undefined;
3960
+ } | undefined;
3961
+ };
3962
+ sliceId: string;
3963
+ hidden?: boolean | undefined;
3964
+ } | {
3965
+ type: "Strip";
3966
+ properties: {
3967
+ listId: string;
3968
+ maxStories: number;
3969
+ heading?: {
3970
+ text: string;
3971
+ href?: string | undefined;
3972
+ } | undefined;
3973
+ };
3974
+ sliceId: string;
3975
+ hidden?: boolean | undefined;
3976
+ } | {
3977
+ type: "Topper";
3978
+ properties: {
3979
+ description: {
3980
+ type: "doc";
3981
+ content: ({
3982
+ type: "text";
3983
+ text: string;
3984
+ marks?: ({
3985
+ type: "link";
3986
+ attrs: {
3987
+ href: string;
3988
+ };
3989
+ } | {
3990
+ type: "bold";
3991
+ } | {
3992
+ type: "italic";
3993
+ } | {
3994
+ type: "underline";
3995
+ } | {
3996
+ type: "strike";
3997
+ })[] | undefined;
3998
+ } | {
3999
+ type: "paragraph";
4000
+ content: {
4001
+ type: "text";
4002
+ text: string;
4003
+ marks?: ({
4004
+ type: "link";
4005
+ attrs: {
4006
+ href: string;
4007
+ };
4008
+ } | {
4009
+ type: "bold";
4010
+ } | {
4011
+ type: "italic";
4012
+ } | {
4013
+ type: "underline";
4014
+ } | {
4015
+ type: "strike";
4016
+ })[] | undefined;
4017
+ }[];
4018
+ })[];
4019
+ };
4020
+ heading?: {
4021
+ text: string;
4022
+ href?: string | undefined;
4023
+ } | undefined;
4024
+ strapline?: string | undefined;
4025
+ };
4026
+ sliceId: string;
4027
+ hidden?: boolean | undefined;
4028
+ } | {
4029
+ type: "Hero";
4030
+ properties: {
4031
+ listId: string;
4032
+ maxStories: number;
4033
+ heading?: {
4034
+ text: string;
4035
+ href?: string | undefined;
2792
4036
  } | undefined;
2793
4037
  };
2794
- children: [];
2795
- }, {
2796
- type: "experiment";
4038
+ sliceId: string;
4039
+ hidden?: boolean | undefined;
4040
+ } | {
4041
+ type: "StoryGroup";
2797
4042
  properties: {
2798
- id: string;
2799
- experimentName: string;
2800
- title?: string | undefined;
2801
- config?: {
2802
- value?: unknown;
2803
- format?: "json" | undefined;
4043
+ storySlots: [string, ...string[]];
4044
+ heading?: {
4045
+ text: string;
4046
+ href?: string | undefined;
2804
4047
  } | undefined;
2805
4048
  };
2806
- children: [];
2807
- }>]>, "many">;
2808
- }, "strip", z.ZodTypeAny, {
2809
- title: string;
2810
- uuid: string;
2811
- blocks: ({
2812
- type: "topper-basic";
4049
+ sliceId: string;
4050
+ hidden?: boolean | undefined;
4051
+ })[];
4052
+ schemaVersion: number;
4053
+ }>, "many">;
4054
+
4055
+ /**
4056
+ * Client for Page structure endpoints
4057
+ */
4058
+ declare class PageClient extends BaseApiClient {
4059
+ getStructure(pageId: string): Promise<PageStructureOutput>;
4060
+ getDraft(pageId: string): Promise<PageDraft | null>;
4061
+ getLegacyHubPageStructure(pageId: string): Promise<LegacyPageStructureOutput>;
4062
+ upsertStructure(pageId: string, data: Omit<PageStructureInput, "type">): Promise<PageStructureOutput>;
4063
+ listPages(options?: ListPagesOptions): Promise<{
4064
+ type: "Page";
2813
4065
  properties: {
2814
4066
  title: string;
4067
+ pageId: string;
4068
+ publicationId: string;
2815
4069
  sponsorText?: string | undefined;
2816
4070
  sponsorImage?: string | undefined;
2817
- };
2818
- } | {
2819
- type: "info-box";
2820
- properties: {
2821
- bodyHTML: string;
2822
- title?: string | undefined;
2823
- };
2824
- } | {
2825
- type: "container";
2826
- properties: {
2827
- design: "chart" | "four-story" | "freeform" | "hero-lead";
2828
- title?: string | undefined;
2829
- backgroundColor?: string | undefined;
4071
+ conceptId?: string | undefined;
4072
+ metaDescription?: string | undefined;
4073
+ pageTheme?: string | undefined;
4074
+ pageCategory?: string | undefined;
4075
+ lastPublishedDate?: string | undefined;
2830
4076
  };
2831
4077
  children: ({
2832
- source: "flourish";
4078
+ type: "Interactive";
2833
4079
  properties: {
2834
- id: string;
4080
+ flourishId: string;
4081
+ flourishAltText: string;
4082
+ heading?: {
4083
+ text: string;
4084
+ href?: string | undefined;
4085
+ } | undefined;
4086
+ flourishDescription?: string | undefined;
4087
+ storyUUID?: string | undefined;
4088
+ theme?: string | undefined;
2835
4089
  };
4090
+ sliceId: string;
4091
+ hidden?: boolean | undefined;
2836
4092
  } | {
2837
- source: "list";
4093
+ type: "Experiment";
2838
4094
  properties: {
2839
- id: string;
2840
- maxItems?: number | undefined;
4095
+ experimentName: string;
4096
+ experimentId: string;
4097
+ contentJson: string;
4098
+ heading?: {
4099
+ text: string;
4100
+ href?: string | undefined;
4101
+ } | undefined;
2841
4102
  };
4103
+ sliceId: string;
4104
+ hidden?: boolean | undefined;
2842
4105
  } | {
2843
- source: "content";
4106
+ type: "Strip";
2844
4107
  properties: {
2845
- ids: [string, ...string[]];
4108
+ listId: string;
4109
+ maxStories: number;
4110
+ heading?: {
4111
+ text: string;
4112
+ href?: string | undefined;
4113
+ } | undefined;
2846
4114
  };
2847
- })[];
2848
- } | {
2849
- type: "experiment";
2850
- properties: {
2851
- id: string;
2852
- experimentName: string;
2853
- title?: string | undefined;
2854
- config?: {
2855
- value?: unknown;
2856
- format?: "json" | undefined;
2857
- } | undefined;
2858
- };
2859
- children: [];
2860
- })[];
2861
- conceptId?: string | undefined;
2862
- themeName?: string | undefined;
2863
- metaDescription?: string | undefined;
2864
- }, {
2865
- title: string;
2866
- uuid: string;
2867
- blocks: ({
2868
- type: "topper-basic";
2869
- properties: {
2870
- title: string;
2871
- sponsorText?: string | undefined;
2872
- sponsorImage?: string | undefined;
2873
- };
2874
- } | {
2875
- type: "info-box";
2876
- properties: {
2877
- bodyHTML: string;
2878
- title?: string | undefined;
2879
- };
2880
- } | {
2881
- type: "container";
2882
- properties: {
2883
- title?: string | undefined;
2884
- design?: "chart" | "four-story" | "freeform" | "hero-lead" | undefined;
2885
- backgroundColor?: string | undefined;
2886
- };
2887
- children: ({
2888
- source: "flourish";
4115
+ sliceId: string;
4116
+ hidden?: boolean | undefined;
4117
+ } | {
4118
+ type: "Topper";
2889
4119
  properties: {
2890
- id: string;
4120
+ description: {
4121
+ type: "doc";
4122
+ content: ({
4123
+ type: "text";
4124
+ text: string;
4125
+ marks?: ({
4126
+ type: "link";
4127
+ attrs: {
4128
+ href: string;
4129
+ };
4130
+ } | {
4131
+ type: "bold";
4132
+ } | {
4133
+ type: "italic";
4134
+ } | {
4135
+ type: "underline";
4136
+ } | {
4137
+ type: "strike";
4138
+ })[] | undefined;
4139
+ } | {
4140
+ type: "paragraph";
4141
+ content: {
4142
+ type: "text";
4143
+ text: string;
4144
+ marks?: ({
4145
+ type: "link";
4146
+ attrs: {
4147
+ href: string;
4148
+ };
4149
+ } | {
4150
+ type: "bold";
4151
+ } | {
4152
+ type: "italic";
4153
+ } | {
4154
+ type: "underline";
4155
+ } | {
4156
+ type: "strike";
4157
+ })[] | undefined;
4158
+ }[];
4159
+ })[];
4160
+ };
4161
+ heading?: {
4162
+ text: string;
4163
+ href?: string | undefined;
4164
+ } | undefined;
4165
+ strapline?: string | undefined;
2891
4166
  };
4167
+ sliceId: string;
4168
+ hidden?: boolean | undefined;
2892
4169
  } | {
2893
- source: "list";
4170
+ type: "Hero";
2894
4171
  properties: {
2895
- id: string;
2896
- maxItems?: number | undefined;
4172
+ listId: string;
4173
+ maxStories: number;
4174
+ heading?: {
4175
+ text: string;
4176
+ href?: string | undefined;
4177
+ } | undefined;
2897
4178
  };
4179
+ sliceId: string;
4180
+ hidden?: boolean | undefined;
2898
4181
  } | {
2899
- source: "content";
4182
+ type: "StoryGroup";
2900
4183
  properties: {
2901
- ids: [string, ...string[]];
4184
+ storySlots: [string, ...string[]];
4185
+ heading?: {
4186
+ text: string;
4187
+ href?: string | undefined;
4188
+ } | undefined;
2902
4189
  };
4190
+ sliceId: string;
4191
+ hidden?: boolean | undefined;
2903
4192
  })[];
2904
- } | {
2905
- type: "experiment";
2906
- properties: {
2907
- id: string;
2908
- experimentName: string;
2909
- title?: string | undefined;
2910
- config?: {
2911
- value?: unknown;
2912
- format?: "json" | undefined;
2913
- } | undefined;
2914
- };
2915
- children: [];
2916
- })[];
2917
- conceptId?: string | undefined;
2918
- themeName?: string | undefined;
2919
- metaDescription?: string | undefined;
2920
- }>;
2921
- export { LegacyPageStructureOutputSchema }
2922
- export { LegacyPageStructureOutputSchema as LegacyPageStructureOutputSchema_alias_1 }
2923
-
2924
- /**
2925
- * Client for Page structure endpoints
2926
- */
2927
- declare class PageClient extends BaseApiClient {
2928
- getStructure(pageId: string): Promise<PageStructureOutput>;
2929
- getDraft(pageId: string): Promise<PageDraft | null>;
2930
- getLegacyHubPageStructure(pageId: string): Promise<LegacyPageStructureOutput>;
2931
- upsertStructure(pageId: string, data: Omit<PageStructureInput, "type">): Promise<PageStructureOutput>;
4193
+ schemaVersion: number;
4194
+ }[]>;
2932
4195
  }
2933
4196
  export { PageClient }
2934
4197
  export { PageClient as PageClient_alias_1 }
@@ -2975,6 +4238,8 @@ declare const PageDraftSchema: z.ZodObject<{
2975
4238
  sponsorText: z.ZodOptional<z.ZodString>;
2976
4239
  sponsorImage: z.ZodOptional<z.ZodString>;
2977
4240
  pageCategory: z.ZodOptional<z.ZodString>;
4241
+ } & {
4242
+ lastPublishedDate: z.ZodOptional<z.ZodString>;
2978
4243
  }, "strip", z.ZodTypeAny, {
2979
4244
  title: string;
2980
4245
  pageId: string;
@@ -2985,6 +4250,7 @@ declare const PageDraftSchema: z.ZodObject<{
2985
4250
  metaDescription?: string | undefined;
2986
4251
  pageTheme?: string | undefined;
2987
4252
  pageCategory?: string | undefined;
4253
+ lastPublishedDate?: string | undefined;
2988
4254
  }, {
2989
4255
  title: string;
2990
4256
  pageId: string;
@@ -2995,6 +4261,7 @@ declare const PageDraftSchema: z.ZodObject<{
2995
4261
  metaDescription?: string | undefined;
2996
4262
  pageTheme?: string | undefined;
2997
4263
  pageCategory?: string | undefined;
4264
+ lastPublishedDate?: string | undefined;
2998
4265
  }>;
2999
4266
  children: z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
3000
4267
  type: z.ZodLiteral<"Interactive">;
@@ -3820,6 +5087,7 @@ declare const PageDraftSchema: z.ZodObject<{
3820
5087
  metaDescription?: string | undefined;
3821
5088
  pageTheme?: string | undefined;
3822
5089
  pageCategory?: string | undefined;
5090
+ lastPublishedDate?: string | undefined;
3823
5091
  };
3824
5092
  children: ({
3825
5093
  type: "Interactive";
@@ -3950,6 +5218,7 @@ declare const PageDraftSchema: z.ZodObject<{
3950
5218
  metaDescription?: string | undefined;
3951
5219
  pageTheme?: string | undefined;
3952
5220
  pageCategory?: string | undefined;
5221
+ lastPublishedDate?: string | undefined;
3953
5222
  };
3954
5223
  children: ({
3955
5224
  type: "Interactive";
@@ -4092,6 +5361,7 @@ declare const PageDraftSchema: z.ZodObject<{
4092
5361
  metaDescription?: string | undefined;
4093
5362
  pageTheme?: string | undefined;
4094
5363
  pageCategory?: string | undefined;
5364
+ lastPublishedDate?: string | undefined;
4095
5365
  };
4096
5366
  children: ({
4097
5367
  type: "Interactive";
@@ -4234,6 +5504,7 @@ declare const PageDraftSchema: z.ZodObject<{
4234
5504
  metaDescription?: string | undefined;
4235
5505
  pageTheme?: string | undefined;
4236
5506
  pageCategory?: string | undefined;
5507
+ lastPublishedDate?: string | undefined;
4237
5508
  };
4238
5509
  children: ({
4239
5510
  type: "Interactive";
@@ -5492,6 +6763,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
5492
6763
  sponsorText: z.ZodOptional<z.ZodString>;
5493
6764
  sponsorImage: z.ZodOptional<z.ZodString>;
5494
6765
  pageCategory: z.ZodOptional<z.ZodString>;
6766
+ } & {
6767
+ lastPublishedDate: z.ZodOptional<z.ZodString>;
5495
6768
  }, "strip", z.ZodTypeAny, {
5496
6769
  title: string;
5497
6770
  pageId: string;
@@ -5502,6 +6775,7 @@ declare const PageStructureOutputSchema: z.ZodObject<{
5502
6775
  metaDescription?: string | undefined;
5503
6776
  pageTheme?: string | undefined;
5504
6777
  pageCategory?: string | undefined;
6778
+ lastPublishedDate?: string | undefined;
5505
6779
  }, {
5506
6780
  title: string;
5507
6781
  pageId: string;
@@ -5512,6 +6786,7 @@ declare const PageStructureOutputSchema: z.ZodObject<{
5512
6786
  metaDescription?: string | undefined;
5513
6787
  pageTheme?: string | undefined;
5514
6788
  pageCategory?: string | undefined;
6789
+ lastPublishedDate?: string | undefined;
5515
6790
  }>;
5516
6791
  children: z.ZodArray<z.ZodDiscriminatedUnion<"type", readonly [z.ZodObject<{
5517
6792
  type: z.ZodLiteral<"Interactive">;
@@ -6337,6 +7612,7 @@ declare const PageStructureOutputSchema: z.ZodObject<{
6337
7612
  metaDescription?: string | undefined;
6338
7613
  pageTheme?: string | undefined;
6339
7614
  pageCategory?: string | undefined;
7615
+ lastPublishedDate?: string | undefined;
6340
7616
  };
6341
7617
  children: ({
6342
7618
  type: "Interactive";
@@ -6467,6 +7743,7 @@ declare const PageStructureOutputSchema: z.ZodObject<{
6467
7743
  metaDescription?: string | undefined;
6468
7744
  pageTheme?: string | undefined;
6469
7745
  pageCategory?: string | undefined;
7746
+ lastPublishedDate?: string | undefined;
6470
7747
  };
6471
7748
  children: ({
6472
7749
  type: "Interactive";