@financial-times/cp-content-pipeline-schema 3.12.0 → 3.12.1
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 +7 -0
- package/README.md +4 -4
- package/lib/model/schemas/capi/article.d.ts +29 -34
- package/lib/model/schemas/capi/audio.d.ts +29 -34
- package/lib/model/schemas/capi/base-schema.d.ts +56 -68
- package/lib/model/schemas/capi/content-package.d.ts +30 -52
- package/lib/model/schemas/capi/custom-code-component.d.ts +34 -39
- package/lib/model/schemas/capi/index.d.ts +180 -227
- package/lib/model/schemas/capi/live-blog-package.d.ts +29 -34
- package/lib/model/schemas/capi/placeholder.d.ts +29 -34
- package/lib/model/schemas/capi/video.d.ts +29 -34
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.12.1](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-schema-v3.12.0...cp-content-pipeline-schema-v3.12.1) (2025-09-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* update reliability kit packages ([903e7b8](https://github.com/Financial-Times/cp-content-pipeline/commit/903e7b8bed212a62ee0bab9a5cd9a58ca2e1618a))
|
|
9
|
+
|
|
3
10
|
## [3.12.0](https://github.com/Financial-Times/cp-content-pipeline/compare/cp-content-pipeline-schema-v3.11.0...cp-content-pipeline-schema-v3.12.0) (2025-06-05)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -77,17 +77,17 @@ There is no agreed schema provided by `CAPI`, so there is a chance it will occas
|
|
|
77
77
|
|
|
78
78
|
Manual updates will be required to keep it in sync with the responses we receive.
|
|
79
79
|
|
|
80
|
-
We monitor such errors in [Grafana](https://grafana.ft.com/d/zLejY5EVz/cp-content-pipeline-api-alerts?orgId=1&from=1712743002053&to=1712764602053&viewPanel=2) and log such errors to [Splunk](https://financialtimes.splunkcloud.com/en-US/app/search/search?q=search%20index%
|
|
80
|
+
We monitor such errors in [Grafana](https://grafana.ft.com/d/zLejY5EVz/cp-content-pipeline-api-alerts?orgId=1&from=1712743002053&to=1712764602053&viewPanel=2) and log such errors to [Splunk](https://financialtimes.splunkcloud.com/en-US/app/search/search?q=search%20index%3Dhako%20source%3Dcp-content-pipeline-api%20error.code%3DCAPI_SCHEMA_VALIDATION_FAILURE&display.page.search.mode=smart&dispatch.sample_ratio=1&workload_pool=standard_perf&earliest=1706054400&latest=1706227200&display.page.search.tab=events&display.general.type=events&sid=1712764428.6764482) in a non-blocking format, for example:
|
|
81
81
|
|
|
82
82
|
```json
|
|
83
83
|
{
|
|
84
84
|
"event": "RECOVERABLE_ERROR",
|
|
85
|
-
"error": {
|
|
85
|
+
"error": {
|
|
86
86
|
"code": "CAPI_SCHEMA_VALIDATION_FAILURE",
|
|
87
|
-
"data": {
|
|
87
|
+
"data": {
|
|
88
88
|
"contentId": "http://www.ft.com/thing/31884c4d-2da7-4b43-917e-3180e9eafa3d",
|
|
89
89
|
"contentType": "Article",
|
|
90
|
-
"schemaError": [
|
|
90
|
+
"schemaError": [
|
|
91
91
|
"mainImage.members.[].format": "Invalid literal value, received 'promo', expected one of 'standardInline','mobile','desktop'..."
|
|
92
92
|
]
|
|
93
93
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const articleSchema: import("zod").ZodObject<
|
|
1
|
+
export declare const articleSchema: import("zod").ZodObject<Pick<{
|
|
2
2
|
title: import("zod").ZodString;
|
|
3
3
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
4
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -43,9 +43,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
43
43
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
44
44
|
}>;
|
|
45
45
|
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
-
}, "standfirst" | "title" | "byline" | "bodyXML" | "alternativeTitles" | "alternativeStandfirsts"
|
|
46
|
+
}, "standfirst" | "title" | "byline" | "bodyXML" | "alternativeTitles" | "alternativeStandfirsts"> & Pick<{
|
|
47
47
|
id: import("zod").ZodString;
|
|
48
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
48
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
49
49
|
id: import("zod").ZodString;
|
|
50
50
|
apiUrl: import("zod").ZodString;
|
|
51
51
|
directType: import("zod").ZodString;
|
|
@@ -53,9 +53,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
53
53
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
54
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
55
55
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
-
}
|
|
56
|
+
} & {
|
|
57
57
|
predicate: import("zod").ZodString;
|
|
58
|
-
}
|
|
58
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
59
59
|
id: string;
|
|
60
60
|
apiUrl: string;
|
|
61
61
|
directType: string;
|
|
@@ -159,7 +159,7 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
159
159
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
160
160
|
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
161
161
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
162
|
-
}, "id" | "type" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "standout" | "firstPublishedDate" | "publishReference" | "lastModified" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "topper" | "comments" | "containedIn" | "publication" | "clientName" | "disclaimerType" | "internalAnalyticsTags"
|
|
162
|
+
}, "id" | "type" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "standout" | "firstPublishedDate" | "publishReference" | "lastModified" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "topper" | "comments" | "containedIn" | "publication" | "clientName" | "disclaimerType" | "internalAnalyticsTags"> & Pick<{
|
|
163
163
|
mainImage: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
164
164
|
id: import("zod").ZodString;
|
|
165
165
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
|
|
@@ -210,9 +210,8 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
210
210
|
maxDisplayWidth?: string | undefined;
|
|
211
211
|
pixelWidth?: number | undefined;
|
|
212
212
|
pixelHeight?: number | undefined;
|
|
213
|
-
}>, import("zod").ZodObject<
|
|
213
|
+
}>, import("zod").ZodObject<{
|
|
214
214
|
id: import("zod").ZodString;
|
|
215
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
216
215
|
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">]>>;
|
|
217
216
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
218
217
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -228,9 +227,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
228
227
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
229
228
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
230
229
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
231
|
-
}
|
|
230
|
+
} & {
|
|
232
231
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
233
|
-
}
|
|
232
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
234
233
|
id: string;
|
|
235
234
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
236
235
|
binaryUrl: string;
|
|
@@ -371,9 +370,8 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
371
370
|
maxDisplayWidth?: string | undefined;
|
|
372
371
|
pixelWidth?: number | undefined;
|
|
373
372
|
pixelHeight?: number | undefined;
|
|
374
|
-
}>, import("zod").ZodObject<
|
|
373
|
+
}>, import("zod").ZodObject<{
|
|
375
374
|
id: import("zod").ZodString;
|
|
376
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
377
375
|
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">]>>;
|
|
378
376
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
379
377
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -389,9 +387,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
389
387
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
390
388
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
391
389
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
392
|
-
}
|
|
390
|
+
} & {
|
|
393
391
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
394
|
-
}
|
|
392
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
395
393
|
id: string;
|
|
396
394
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
397
395
|
binaryUrl: string;
|
|
@@ -469,9 +467,8 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
469
467
|
maxDisplayWidth?: string | undefined;
|
|
470
468
|
pixelWidth?: number | undefined;
|
|
471
469
|
pixelHeight?: number | undefined;
|
|
472
|
-
}>, import("zod").ZodObject<
|
|
470
|
+
}>, import("zod").ZodObject<{
|
|
473
471
|
id: import("zod").ZodString;
|
|
474
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
475
472
|
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">]>>;
|
|
476
473
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
477
474
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -487,9 +484,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
487
484
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
488
485
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
489
486
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
490
|
-
}
|
|
487
|
+
} & {
|
|
491
488
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
492
|
-
}
|
|
489
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
493
490
|
id: string;
|
|
494
491
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
495
492
|
binaryUrl: string;
|
|
@@ -727,9 +724,8 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
727
724
|
maxDisplayWidth?: string | undefined;
|
|
728
725
|
pixelWidth?: number | undefined;
|
|
729
726
|
pixelHeight?: number | undefined;
|
|
730
|
-
}>, import("zod").ZodObject<
|
|
727
|
+
}>, import("zod").ZodObject<{
|
|
731
728
|
id: import("zod").ZodString;
|
|
732
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
733
729
|
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">]>>;
|
|
734
730
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
735
731
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -745,9 +741,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
745
741
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
746
742
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
747
743
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
748
|
-
}
|
|
744
|
+
} & {
|
|
749
745
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
750
|
-
}
|
|
746
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
751
747
|
id: string;
|
|
752
748
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
753
749
|
binaryUrl: string;
|
|
@@ -924,9 +920,8 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
924
920
|
maxDisplayWidth?: string | undefined;
|
|
925
921
|
pixelWidth?: number | undefined;
|
|
926
922
|
pixelHeight?: number | undefined;
|
|
927
|
-
}>, import("zod").ZodObject<
|
|
923
|
+
}>, import("zod").ZodObject<{
|
|
928
924
|
id: import("zod").ZodString;
|
|
929
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
930
925
|
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">]>>;
|
|
931
926
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
932
927
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -942,9 +937,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
942
937
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
943
938
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
944
939
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
945
|
-
}
|
|
940
|
+
} & {
|
|
946
941
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
947
|
-
}
|
|
942
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
948
943
|
id: string;
|
|
949
944
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
950
945
|
binaryUrl: string;
|
|
@@ -1306,9 +1301,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
1306
1301
|
}[] | undefined;
|
|
1307
1302
|
transcript?: string | undefined;
|
|
1308
1303
|
} | undefined;
|
|
1309
|
-
}>, import("zod").ZodObject<
|
|
1304
|
+
}>, import("zod").ZodObject<Pick<{
|
|
1310
1305
|
id: import("zod").ZodString;
|
|
1311
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
1306
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1312
1307
|
id: import("zod").ZodString;
|
|
1313
1308
|
apiUrl: import("zod").ZodString;
|
|
1314
1309
|
directType: import("zod").ZodString;
|
|
@@ -1316,9 +1311,9 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
1316
1311
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1317
1312
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1318
1313
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1319
|
-
}
|
|
1314
|
+
} & {
|
|
1320
1315
|
predicate: import("zod").ZodString;
|
|
1321
|
-
}
|
|
1316
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1322
1317
|
id: string;
|
|
1323
1318
|
apiUrl: string;
|
|
1324
1319
|
directType: string;
|
|
@@ -1422,7 +1417,7 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
1422
1417
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1423
1418
|
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
1424
1419
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1425
|
-
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"
|
|
1420
|
+
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"> & Pick<{
|
|
1426
1421
|
title: import("zod").ZodString;
|
|
1427
1422
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1428
1423
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1467,13 +1462,13 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
1467
1462
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1468
1463
|
}>;
|
|
1469
1464
|
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1470
|
-
}, "bodyXML"
|
|
1465
|
+
}, "bodyXML"> & {
|
|
1471
1466
|
apiUrl: import("zod").ZodString;
|
|
1472
1467
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/CustomCodeComponent">;
|
|
1473
1468
|
path: import("zod").ZodString;
|
|
1474
1469
|
versionRange: import("zod").ZodString;
|
|
1475
1470
|
attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodUndefined]>>;
|
|
1476
|
-
}
|
|
1471
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1477
1472
|
id: string;
|
|
1478
1473
|
apiUrl: string;
|
|
1479
1474
|
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
@@ -1518,7 +1513,7 @@ export declare const articleSchema: import("zod").ZodObject<import("zod").object
|
|
|
1518
1513
|
mediaType: string;
|
|
1519
1514
|
filesize?: number | undefined;
|
|
1520
1515
|
}>, "many">>;
|
|
1521
|
-
}, "mainImage" | "leadImages" | "alternativeImages" | "leadFlourish" | "embeds"
|
|
1516
|
+
}, "mainImage" | "leadImages" | "alternativeImages" | "leadFlourish" | "embeds">, "strip", import("zod").ZodTypeAny, {
|
|
1522
1517
|
id: string;
|
|
1523
1518
|
types: string[];
|
|
1524
1519
|
title: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const audioSchema: import("zod").ZodObject<
|
|
1
|
+
export declare const audioSchema: import("zod").ZodObject<Pick<{
|
|
2
2
|
title: import("zod").ZodString;
|
|
3
3
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
4
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -43,9 +43,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
43
43
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
44
44
|
}>;
|
|
45
45
|
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
-
}, "title" | "byline" | "alternativeTitles"
|
|
46
|
+
}, "title" | "byline" | "alternativeTitles"> & Pick<{
|
|
47
47
|
id: import("zod").ZodString;
|
|
48
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
48
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
49
49
|
id: import("zod").ZodString;
|
|
50
50
|
apiUrl: import("zod").ZodString;
|
|
51
51
|
directType: import("zod").ZodString;
|
|
@@ -53,9 +53,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
53
53
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
54
54
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
55
55
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
-
}
|
|
56
|
+
} & {
|
|
57
57
|
predicate: import("zod").ZodString;
|
|
58
|
-
}
|
|
58
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
59
59
|
id: string;
|
|
60
60
|
apiUrl: string;
|
|
61
61
|
directType: string;
|
|
@@ -159,7 +159,7 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
159
159
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
160
160
|
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
161
161
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
162
|
-
}, "id" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "lastModified" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "internalAnalyticsTags"
|
|
162
|
+
}, "id" | "types" | "publishedDate" | "annotations" | "webUrl" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "lastModified" | "editorialDesk" | "accessLevel" | "canBeSyndicated" | "canBeDistributed" | "internalAnalyticsTags"> & Pick<{
|
|
163
163
|
mainImage: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
164
164
|
id: import("zod").ZodString;
|
|
165
165
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/ImageSet">;
|
|
@@ -210,9 +210,8 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
210
210
|
maxDisplayWidth?: string | undefined;
|
|
211
211
|
pixelWidth?: number | undefined;
|
|
212
212
|
pixelHeight?: number | undefined;
|
|
213
|
-
}>, import("zod").ZodObject<
|
|
213
|
+
}>, import("zod").ZodObject<{
|
|
214
214
|
id: import("zod").ZodString;
|
|
215
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
216
215
|
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">]>>;
|
|
217
216
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
218
217
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -228,9 +227,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
228
227
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
229
228
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
230
229
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
231
|
-
}
|
|
230
|
+
} & {
|
|
232
231
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
233
|
-
}
|
|
232
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
234
233
|
id: string;
|
|
235
234
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
236
235
|
binaryUrl: string;
|
|
@@ -371,9 +370,8 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
371
370
|
maxDisplayWidth?: string | undefined;
|
|
372
371
|
pixelWidth?: number | undefined;
|
|
373
372
|
pixelHeight?: number | undefined;
|
|
374
|
-
}>, import("zod").ZodObject<
|
|
373
|
+
}>, import("zod").ZodObject<{
|
|
375
374
|
id: import("zod").ZodString;
|
|
376
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
377
375
|
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">]>>;
|
|
378
376
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
379
377
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -389,9 +387,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
389
387
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
390
388
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
391
389
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
392
|
-
}
|
|
390
|
+
} & {
|
|
393
391
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
394
|
-
}
|
|
392
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
395
393
|
id: string;
|
|
396
394
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
397
395
|
binaryUrl: string;
|
|
@@ -469,9 +467,8 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
469
467
|
maxDisplayWidth?: string | undefined;
|
|
470
468
|
pixelWidth?: number | undefined;
|
|
471
469
|
pixelHeight?: number | undefined;
|
|
472
|
-
}>, import("zod").ZodObject<
|
|
470
|
+
}>, import("zod").ZodObject<{
|
|
473
471
|
id: import("zod").ZodString;
|
|
474
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
475
472
|
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">]>>;
|
|
476
473
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
477
474
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -487,9 +484,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
487
484
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
488
485
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
489
486
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
490
|
-
}
|
|
487
|
+
} & {
|
|
491
488
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
492
|
-
}
|
|
489
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
493
490
|
id: string;
|
|
494
491
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
495
492
|
binaryUrl: string;
|
|
@@ -727,9 +724,8 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
727
724
|
maxDisplayWidth?: string | undefined;
|
|
728
725
|
pixelWidth?: number | undefined;
|
|
729
726
|
pixelHeight?: number | undefined;
|
|
730
|
-
}>, import("zod").ZodObject<
|
|
727
|
+
}>, import("zod").ZodObject<{
|
|
731
728
|
id: import("zod").ZodString;
|
|
732
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
733
729
|
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">]>>;
|
|
734
730
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
735
731
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -745,9 +741,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
745
741
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
746
742
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
747
743
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
748
|
-
}
|
|
744
|
+
} & {
|
|
749
745
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
750
|
-
}
|
|
746
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
751
747
|
id: string;
|
|
752
748
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
753
749
|
binaryUrl: string;
|
|
@@ -924,9 +920,8 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
924
920
|
maxDisplayWidth?: string | undefined;
|
|
925
921
|
pixelWidth?: number | undefined;
|
|
926
922
|
pixelHeight?: number | undefined;
|
|
927
|
-
}>, import("zod").ZodObject<
|
|
923
|
+
}>, import("zod").ZodObject<{
|
|
928
924
|
id: import("zod").ZodString;
|
|
929
|
-
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Image">;
|
|
930
925
|
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">]>>;
|
|
931
926
|
title: import("zod").ZodOptional<import("zod").ZodString>;
|
|
932
927
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -942,9 +937,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
942
937
|
maxDisplayWidth: import("zod").ZodOptional<import("zod").ZodString>;
|
|
943
938
|
pixelWidth: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
944
939
|
pixelHeight: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
945
|
-
}
|
|
940
|
+
} & {
|
|
946
941
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/Graphic">;
|
|
947
|
-
}
|
|
942
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
948
943
|
id: string;
|
|
949
944
|
type: "http://www.ft.com/ontology/content/Graphic";
|
|
950
945
|
binaryUrl: string;
|
|
@@ -1306,9 +1301,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
1306
1301
|
}[] | undefined;
|
|
1307
1302
|
transcript?: string | undefined;
|
|
1308
1303
|
} | undefined;
|
|
1309
|
-
}>, import("zod").ZodObject<
|
|
1304
|
+
}>, import("zod").ZodObject<Pick<{
|
|
1310
1305
|
id: import("zod").ZodString;
|
|
1311
|
-
annotations: import("zod").ZodArray<import("zod").ZodObject<
|
|
1306
|
+
annotations: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1312
1307
|
id: import("zod").ZodString;
|
|
1313
1308
|
apiUrl: import("zod").ZodString;
|
|
1314
1309
|
directType: import("zod").ZodString;
|
|
@@ -1316,9 +1311,9 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
1316
1311
|
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1317
1312
|
types: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1318
1313
|
headshot: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1319
|
-
}
|
|
1314
|
+
} & {
|
|
1320
1315
|
predicate: import("zod").ZodString;
|
|
1321
|
-
}
|
|
1316
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1322
1317
|
id: string;
|
|
1323
1318
|
apiUrl: string;
|
|
1324
1319
|
directType: string;
|
|
@@ -1422,7 +1417,7 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
1422
1417
|
clientName: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1423
1418
|
disclaimerType: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"co-created-content">, import("zod").ZodLiteral<"client-supplied-content">, import("zod").ZodLiteral<"ft-studios-risky">, import("zod").ZodLiteral<"auditor">]>>;
|
|
1424
1419
|
internalAnalyticsTags: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1425
|
-
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"
|
|
1420
|
+
}, "id" | "publishedDate" | "canonicalWebUrl" | "firstPublishedDate" | "publishReference" | "canBeSyndicated" | "canBeDistributed"> & Pick<{
|
|
1426
1421
|
title: import("zod").ZodString;
|
|
1427
1422
|
standfirst: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1428
1423
|
byline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1467,13 +1462,13 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
1467
1462
|
theme: "special-report" | "extra" | "basic" | "extra-wide";
|
|
1468
1463
|
}>;
|
|
1469
1464
|
transcript: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1470
|
-
}, "bodyXML"
|
|
1465
|
+
}, "bodyXML"> & {
|
|
1471
1466
|
apiUrl: import("zod").ZodString;
|
|
1472
1467
|
type: import("zod").ZodLiteral<"http://www.ft.com/ontology/content/CustomCodeComponent">;
|
|
1473
1468
|
path: import("zod").ZodString;
|
|
1474
1469
|
versionRange: import("zod").ZodString;
|
|
1475
1470
|
attributes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodBoolean, import("zod").ZodUndefined]>>;
|
|
1476
|
-
}
|
|
1471
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1477
1472
|
id: string;
|
|
1478
1473
|
apiUrl: string;
|
|
1479
1474
|
type: "http://www.ft.com/ontology/content/CustomCodeComponent";
|
|
@@ -1518,7 +1513,7 @@ export declare const audioSchema: import("zod").ZodObject<import("zod").objectUt
|
|
|
1518
1513
|
mediaType: string;
|
|
1519
1514
|
filesize?: number | undefined;
|
|
1520
1515
|
}>, "many">>;
|
|
1521
|
-
}, "dataSource" | "mainImage"
|
|
1516
|
+
}, "dataSource" | "mainImage">, "strip", import("zod").ZodTypeAny, {
|
|
1522
1517
|
id: string;
|
|
1523
1518
|
types: string[];
|
|
1524
1519
|
title: string;
|