@code.store/arcxp-sdk-ts 5.0.0-beta → 5.0.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/dist/api/migration-center/index.d.ts +4 -4
- package/dist/api/migration-center/types.d.ts +3 -3
- package/dist/api/site/index.d.ts +1 -1
- package/dist/api/tags/index.d.ts +3 -3
- package/dist/api/tags/types.d.ts +2 -2
- package/dist/index.cjs +178 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +178 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/arc/index.d.ts +2 -0
- package/dist/utils/arc/section.d.ts +33 -0
- package/package.json +9 -3
- package/dist/lib/axios-rate-limiter.d.ts +0 -2
- package/dist/types/author.d.ts +0 -1640
- package/dist/types/gallery.d.ts +0 -52
- package/dist/types/section.d.ts +0 -88
- package/dist/types/story.d.ts +0 -1994
- package/dist/types/video.d.ts +0 -1425
package/dist/types/author.d.ts
DELETED
|
@@ -1,1640 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* A globally unique identifier of the content in the ANS repository.
|
|
8
|
-
*/
|
|
9
|
-
export type GloballyUniqueIDTrait = string;
|
|
10
|
-
/**
|
|
11
|
-
* The version of ANS that this object was serialized as, in major.minor.patch format. For top-level content objects, this is a required trait.
|
|
12
|
-
*/
|
|
13
|
-
export type DescribesTheANSVersionOfThisObject = '0.10.10';
|
|
14
|
-
/**
|
|
15
|
-
* The full human name of contributor. See also byline, first_name, last_name, middle_name, suffix.
|
|
16
|
-
*/
|
|
17
|
-
export type Name = string;
|
|
18
|
-
/**
|
|
19
|
-
* A user-defined categorization method to supplement type. In Arc, this field is reserved for organization-defined purposes, such as selecting the PageBuilder template that should be used to render a document.
|
|
20
|
-
*/
|
|
21
|
-
export type SubtypeOrTemplate = string;
|
|
22
|
-
/**
|
|
23
|
-
* An optional list of output types for which this element should be visible
|
|
24
|
-
*/
|
|
25
|
-
export type ChannelTrait = string[];
|
|
26
|
-
/**
|
|
27
|
-
* A property used to determine horizontal positioning of a content element relative to the elements that immediately follow it in the element sequence.
|
|
28
|
-
*/
|
|
29
|
-
export type Alignment = 'left' | 'right' | 'center';
|
|
30
|
-
/**
|
|
31
|
-
* The primary language of the content. The value should follow IETF BCP47. (e.g. 'en', 'es-419', etc.)
|
|
32
|
-
*/
|
|
33
|
-
export type Locale = string;
|
|
34
|
-
/**
|
|
35
|
-
* A copyright notice for the legal owner of this content. E.g., '© 1996-2018 The Washington Post.' Format may vary between organizations.
|
|
36
|
-
*/
|
|
37
|
-
export type CopyrightInformation = string;
|
|
38
|
-
/**
|
|
39
|
-
* The relative URL to this document on the website specified by the `canonical_website` field. In the Arc ecosystem, this will be populated by the content api from the arc-canonical-url service if present based on the canonical_website. In conjunction with canonical_website, it can be used to determine the SEO canonical url or open graph url. In a multi-site context, this field may be different from the website_url field.
|
|
40
|
-
*/
|
|
41
|
-
export type CanonicalURL = string;
|
|
42
|
-
/**
|
|
43
|
-
* A url-shortened version of the canonical url.
|
|
44
|
-
*/
|
|
45
|
-
export type Short_Url = string;
|
|
46
|
-
/**
|
|
47
|
-
* When the content was originally created (RFC3339-formatted). In the Arc ecosystem, this will be automatically generated for stories in the Story API.
|
|
48
|
-
*/
|
|
49
|
-
export type CreatedDate = string;
|
|
50
|
-
/**
|
|
51
|
-
* When the content was last updated (RFC3339-formatted).
|
|
52
|
-
*/
|
|
53
|
-
export type LastUpdatedDate = string;
|
|
54
|
-
/**
|
|
55
|
-
* When the story was published.
|
|
56
|
-
*/
|
|
57
|
-
export type Publish_Date = string;
|
|
58
|
-
/**
|
|
59
|
-
* When the story was first published.
|
|
60
|
-
*/
|
|
61
|
-
export type FirstPublishDate = string;
|
|
62
|
-
/**
|
|
63
|
-
* The RFC3339-formatted dated time of the most recent date the story was (re)displayed on a public site.
|
|
64
|
-
*/
|
|
65
|
-
export type Display_Date = string;
|
|
66
|
-
/**
|
|
67
|
-
* A description of the location, useful if a full address or lat/long specification is overkill.
|
|
68
|
-
*/
|
|
69
|
-
export type LocationRelatedTrait = string;
|
|
70
|
-
/**
|
|
71
|
-
* Additional information to be displayed near the content from the editor.
|
|
72
|
-
*/
|
|
73
|
-
export type Editor_Note = string;
|
|
74
|
-
/**
|
|
75
|
-
* Optional field to story story workflow related status (e.g. published/embargoed/etc)
|
|
76
|
-
*/
|
|
77
|
-
export type Status = string;
|
|
78
|
-
/**
|
|
79
|
-
* The full human name of contributor. See also byline, first_name, last_name, middle_name, suffix.
|
|
80
|
-
*/
|
|
81
|
-
export type Name1 = string;
|
|
82
|
-
/**
|
|
83
|
-
* Links to various social media
|
|
84
|
-
*/
|
|
85
|
-
export type SocialLinks = {
|
|
86
|
-
site?: string;
|
|
87
|
-
url?: string;
|
|
88
|
-
[k: string]: unknown;
|
|
89
|
-
}[];
|
|
90
|
-
/**
|
|
91
|
-
* A short reference name for internal editorial use
|
|
92
|
-
*/
|
|
93
|
-
export type Slug = string;
|
|
94
|
-
/**
|
|
95
|
-
* The real first name of a human author.
|
|
96
|
-
*/
|
|
97
|
-
export type FirstName = string;
|
|
98
|
-
/**
|
|
99
|
-
* The real middle name of a human author.
|
|
100
|
-
*/
|
|
101
|
-
export type MiddleName = string;
|
|
102
|
-
/**
|
|
103
|
-
* The real last name of a human author.
|
|
104
|
-
*/
|
|
105
|
-
export type LastName = string;
|
|
106
|
-
/**
|
|
107
|
-
* The real suffix of a human author.
|
|
108
|
-
*/
|
|
109
|
-
export type Suffix = string;
|
|
110
|
-
/**
|
|
111
|
-
* The public-facing name, or nom-de-plume, name of the author.
|
|
112
|
-
*/
|
|
113
|
-
export type Byline = string;
|
|
114
|
-
/**
|
|
115
|
-
* The city or locality that the author resides in or is primarily associated with.
|
|
116
|
-
*/
|
|
117
|
-
export type Location = string;
|
|
118
|
-
/**
|
|
119
|
-
* The desk or group that this author normally reports to. E.g., 'Politics' or 'Sports.'
|
|
120
|
-
*/
|
|
121
|
-
export type Division = string;
|
|
122
|
-
/**
|
|
123
|
-
* The professional email address of this author.
|
|
124
|
-
*/
|
|
125
|
-
export type EMail = string;
|
|
126
|
-
/**
|
|
127
|
-
* The organizational role or title of this author.
|
|
128
|
-
*/
|
|
129
|
-
export type Role = string;
|
|
130
|
-
/**
|
|
131
|
-
* A comma-delimited list of subjects the author in which the author has expertise.
|
|
132
|
-
*/
|
|
133
|
-
export type Expertise = string;
|
|
134
|
-
/**
|
|
135
|
-
* The name of an organization the author is affiliated with. E.g., The Washington Post, or George Mason University.
|
|
136
|
-
*/
|
|
137
|
-
export type Affiliation = string;
|
|
138
|
-
/**
|
|
139
|
-
* A description of list of languages that the author is somewhat fluent in, excluding the native language of the parent publication, and identified in the language of the parent publication. E.g., Russian, Japanese, Greek.
|
|
140
|
-
*/
|
|
141
|
-
export type Languages = string;
|
|
142
|
-
/**
|
|
143
|
-
* A one or two sentence description of the author.
|
|
144
|
-
*/
|
|
145
|
-
export type ShortBiography = string;
|
|
146
|
-
/**
|
|
147
|
-
* The full biography of the author.
|
|
148
|
-
*/
|
|
149
|
-
export type LongBiography = string;
|
|
150
|
-
/**
|
|
151
|
-
* The book title.
|
|
152
|
-
*/
|
|
153
|
-
export type Title = string;
|
|
154
|
-
/**
|
|
155
|
-
* A link to a page to purchase or learn more about the book.
|
|
156
|
-
*/
|
|
157
|
-
export type URL = string;
|
|
158
|
-
/**
|
|
159
|
-
* A list of books written by the author.
|
|
160
|
-
*/
|
|
161
|
-
export type Books = Book[];
|
|
162
|
-
/**
|
|
163
|
-
* The name of the school.
|
|
164
|
-
*/
|
|
165
|
-
export type SchoolName = string;
|
|
166
|
-
/**
|
|
167
|
-
* A list of schools that this author has graduated from.
|
|
168
|
-
*/
|
|
169
|
-
export type Education = School[];
|
|
170
|
-
/**
|
|
171
|
-
* The name of the award.
|
|
172
|
-
*/
|
|
173
|
-
export type AwardName = string;
|
|
174
|
-
/**
|
|
175
|
-
* A list of awards the author has received.
|
|
176
|
-
*/
|
|
177
|
-
export type Awards = {
|
|
178
|
-
award_name?: AwardName;
|
|
179
|
-
}[];
|
|
180
|
-
/**
|
|
181
|
-
* If true, this author is an external contributor to the publication.
|
|
182
|
-
*/
|
|
183
|
-
export type Contributor = boolean;
|
|
184
|
-
/**
|
|
185
|
-
* Deprecated. In ANS 0.5.8 and prior versions, this field is populated with the 'location' field from Arc Author Service. New implementations should use the 'location' and 'affiliation' field. Content should be identical to 'location.'
|
|
186
|
-
*/
|
|
187
|
-
export type Org = string;
|
|
188
|
-
/**
|
|
189
|
-
* Links to various social media
|
|
190
|
-
*/
|
|
191
|
-
export type SocialLinks1 = {
|
|
192
|
-
site?: string;
|
|
193
|
-
url?: string;
|
|
194
|
-
[k: string]: unknown;
|
|
195
|
-
}[];
|
|
196
|
-
/**
|
|
197
|
-
* The primary author(s) of this document. For a story, is is the writer or reporter. For an image, it is the photographer.
|
|
198
|
-
*/
|
|
199
|
-
export type By = (AnAuthorOfAPieceOfContent1 | RepresentationOfANormalizedElement)[];
|
|
200
|
-
/**
|
|
201
|
-
* The photographer(s) of supplementary images included in this document, if it is a story. Note that if this document is an image, the photographer(s) should appear in the 'by' slot.
|
|
202
|
-
*/
|
|
203
|
-
export type PhotosBy = (AnAuthorOfAPieceOfContent1 | RepresentationOfANormalizedElement)[];
|
|
204
|
-
/**
|
|
205
|
-
* The primary author(s) of this document. For a story, is is the writer or reporter. For an image, it is the photographer.
|
|
206
|
-
*/
|
|
207
|
-
export type By1 = (AnAuthorOfAPieceOfContent1 | RepresentationOfANormalizedElement)[];
|
|
208
|
-
/**
|
|
209
|
-
* The photographer(s) of supplementary images included in this document, if it is a story. Note that if this document is an image, the photographer(s) should appear in the 'by' slot.
|
|
210
|
-
*/
|
|
211
|
-
export type PhotosBy1 = (AnAuthorOfAPieceOfContent1 | RepresentationOfANormalizedElement)[];
|
|
212
|
-
/**
|
|
213
|
-
* The _id of the website on which this document exists. This field is only available in Content API. If different from canonical_website, then this document was originally sourced from the canonical_website. Generated at fetch time by Content API.
|
|
214
|
-
*/
|
|
215
|
-
export type Website = string;
|
|
216
|
-
/**
|
|
217
|
-
* Foreign ID of embedded item.
|
|
218
|
-
*/
|
|
219
|
-
export type EmbedID = string;
|
|
220
|
-
/**
|
|
221
|
-
* Provider URL for this embed item. When concatenated with Embed ID, should produce a URL that returns json metadata about the embedded content.
|
|
222
|
-
*/
|
|
223
|
-
export type EmbedProviderURL = string;
|
|
224
|
-
/**
|
|
225
|
-
* This note is used for shared communication inside the newsroom.
|
|
226
|
-
*/
|
|
227
|
-
export type InternalNote = string;
|
|
228
|
-
/**
|
|
229
|
-
* Used for the newsroom to identify what the story is about, especially if a user is unfamiliar with the slug of a story and the headline or they do not yet exist. Newsroom use only.
|
|
230
|
-
*/
|
|
231
|
-
export type BudgetLine = string;
|
|
232
|
-
/**
|
|
233
|
-
* Information about a third party that provided this content from outside this document's hosted organization.
|
|
234
|
-
*/
|
|
235
|
-
export type Distributor = {
|
|
236
|
-
/**
|
|
237
|
-
* The human-readable name of the distributor of this content. E.g., Reuters.
|
|
238
|
-
*/
|
|
239
|
-
name?: string;
|
|
240
|
-
/**
|
|
241
|
-
* The machine-readable category of how this content was produced. Use 'staff' if this content was produced by an employee of the organization who owns this document repository. (Multisite note: content produced within a single *organization*, but shared across multiple *websites* should still be considered 'staff.') Use ‘wires’ if this content was produced for another organization and shared with the one who owns this document repository. Use 'freelance' if this content was produced by an individual on behalf of the organization who owns this document repository. Use 'stock' if this content is stock media distributed directly from a stock media provider. Use 'handout' if this is content provided from a source for an article (usually promotional media distributed directly from a company). Use 'other' for all other cases.
|
|
242
|
-
*/
|
|
243
|
-
category?: 'staff' | 'wires' | 'freelance' | 'stock' | 'handout' | 'other';
|
|
244
|
-
/**
|
|
245
|
-
* The machine-readable subcategory of how this content was produced. E.g., 'freelance - signed'. May vary between organizations.
|
|
246
|
-
*/
|
|
247
|
-
subcategory?: string;
|
|
248
|
-
additional_properties?: HasAdditionalProperties;
|
|
249
|
-
mode?: 'custom';
|
|
250
|
-
} | {
|
|
251
|
-
/**
|
|
252
|
-
* The ARC UUID of the distributor of this content. E.g., ABCDEFGHIJKLMNOPQRSTUVWXYZ.
|
|
253
|
-
*/
|
|
254
|
-
reference_id: string;
|
|
255
|
-
mode: 'reference';
|
|
256
|
-
};
|
|
257
|
-
/**
|
|
258
|
-
* An list of alternate names that this content can be fetched by instead of id.
|
|
259
|
-
*/
|
|
260
|
-
export type AliasesTrait = string[];
|
|
261
|
-
/**
|
|
262
|
-
* A more specific category for an image.
|
|
263
|
-
*/
|
|
264
|
-
export type ImageType = string;
|
|
265
|
-
/**
|
|
266
|
-
* The direct ANS equivalent of the HTML 'alt' attribute. A description of the contents of an image for improved accessibility.
|
|
267
|
-
*/
|
|
268
|
-
export type AltText = string;
|
|
269
|
-
/**
|
|
270
|
-
* Human-friendly filename used by PageBuilder & Resizer to improve image SEO scoring.
|
|
271
|
-
*/
|
|
272
|
-
export type SEOFilename = string;
|
|
273
|
-
/**
|
|
274
|
-
* The real first name of a human author.
|
|
275
|
-
*/
|
|
276
|
-
export type FirstName1 = string;
|
|
277
|
-
/**
|
|
278
|
-
* The real middle name of a human author.
|
|
279
|
-
*/
|
|
280
|
-
export type MiddleName1 = string;
|
|
281
|
-
/**
|
|
282
|
-
* The real last name of a human author.
|
|
283
|
-
*/
|
|
284
|
-
export type LastName1 = string;
|
|
285
|
-
/**
|
|
286
|
-
* The real suffix of a human author.
|
|
287
|
-
*/
|
|
288
|
-
export type Suffix1 = string;
|
|
289
|
-
/**
|
|
290
|
-
* The public-facing name, or nom-de-plume, name of the author.
|
|
291
|
-
*/
|
|
292
|
-
export type Byline1 = string;
|
|
293
|
-
/**
|
|
294
|
-
* The city or locality that the author resides in or is primarily associated with.
|
|
295
|
-
*/
|
|
296
|
-
export type Location1 = string;
|
|
297
|
-
/**
|
|
298
|
-
* The desk or group that this author normally reports to. E.g., 'Politics' or 'Sports.'
|
|
299
|
-
*/
|
|
300
|
-
export type Division1 = string;
|
|
301
|
-
/**
|
|
302
|
-
* The professional email address of this author.
|
|
303
|
-
*/
|
|
304
|
-
export type EMail1 = string;
|
|
305
|
-
/**
|
|
306
|
-
* The organizational role or title of this author.
|
|
307
|
-
*/
|
|
308
|
-
export type Role1 = string;
|
|
309
|
-
/**
|
|
310
|
-
* A comma-delimited list of subjects the author in which the author has expertise.
|
|
311
|
-
*/
|
|
312
|
-
export type Expertise1 = string;
|
|
313
|
-
/**
|
|
314
|
-
* The name of an organization the author is affiliated with. E.g., The Washington Post, or George Mason University.
|
|
315
|
-
*/
|
|
316
|
-
export type Affiliation1 = string;
|
|
317
|
-
/**
|
|
318
|
-
* A description of list of languages that the author is somewhat fluent in, excluding the native language of the parent publication, and identified in the language of the parent publication. E.g., Russian, Japanese, Greek.
|
|
319
|
-
*/
|
|
320
|
-
export type Languages1 = string;
|
|
321
|
-
/**
|
|
322
|
-
* A one or two sentence description of the author.
|
|
323
|
-
*/
|
|
324
|
-
export type ShortBiography1 = string;
|
|
325
|
-
/**
|
|
326
|
-
* The full biography of the author.
|
|
327
|
-
*/
|
|
328
|
-
export type LongBiography1 = string;
|
|
329
|
-
/**
|
|
330
|
-
* The book title.
|
|
331
|
-
*/
|
|
332
|
-
export type Title1 = string;
|
|
333
|
-
/**
|
|
334
|
-
* A link to a page to purchase or learn more about the book.
|
|
335
|
-
*/
|
|
336
|
-
export type URL1 = string;
|
|
337
|
-
/**
|
|
338
|
-
* A list of books written by the author.
|
|
339
|
-
*/
|
|
340
|
-
export type Books1 = Book1[];
|
|
341
|
-
/**
|
|
342
|
-
* The name of the school.
|
|
343
|
-
*/
|
|
344
|
-
export type SchoolName1 = string;
|
|
345
|
-
/**
|
|
346
|
-
* A list of schools that this author has graduated from.
|
|
347
|
-
*/
|
|
348
|
-
export type Education1 = School1[];
|
|
349
|
-
/**
|
|
350
|
-
* The name of the award.
|
|
351
|
-
*/
|
|
352
|
-
export type AwardName1 = string;
|
|
353
|
-
/**
|
|
354
|
-
* A list of awards the author has received.
|
|
355
|
-
*/
|
|
356
|
-
export type Awards1 = {
|
|
357
|
-
award_name?: AwardName1;
|
|
358
|
-
}[];
|
|
359
|
-
/**
|
|
360
|
-
* If true, this author is an external contributor to the publication.
|
|
361
|
-
*/
|
|
362
|
-
export type Contributor1 = boolean;
|
|
363
|
-
/**
|
|
364
|
-
* Deprecated. In ANS 0.5.8 and prior versions, this field is populated with the 'location' field from Arc Author Service. New implementations should use the 'location' and 'affiliation' field. Content should be identical to 'location.'
|
|
365
|
-
*/
|
|
366
|
-
export type Org1 = string;
|
|
367
|
-
/**
|
|
368
|
-
* Links to various social media
|
|
369
|
-
*/
|
|
370
|
-
export type SocialLinks2 = {
|
|
371
|
-
site?: string;
|
|
372
|
-
url?: string;
|
|
373
|
-
[k: string]: unknown;
|
|
374
|
-
}[];
|
|
375
|
-
/**
|
|
376
|
-
* Models attribution to an individual or group for contribution towards some content item. In the Arc ecosystem, these are stored in the arc-author-service.
|
|
377
|
-
*/
|
|
378
|
-
export interface AnAuthorOfAPieceOfContent {
|
|
379
|
-
_id?: GloballyUniqueIDTrait;
|
|
380
|
-
/**
|
|
381
|
-
* Indicates that this is an author
|
|
382
|
-
*/
|
|
383
|
-
type: 'author';
|
|
384
|
-
version?: DescribesTheANSVersionOfThisObject;
|
|
385
|
-
name: Name;
|
|
386
|
-
image?: AnImage;
|
|
387
|
-
/**
|
|
388
|
-
* A link to an author's landing page on the website, or a personal website.
|
|
389
|
-
*/
|
|
390
|
-
url?: string;
|
|
391
|
-
social_links?: SocialLinks;
|
|
392
|
-
slug?: Slug;
|
|
393
|
-
first_name?: FirstName1;
|
|
394
|
-
middle_name?: MiddleName1;
|
|
395
|
-
last_name?: LastName1;
|
|
396
|
-
suffix?: Suffix1;
|
|
397
|
-
byline?: Byline1;
|
|
398
|
-
location?: Location1;
|
|
399
|
-
division?: Division1;
|
|
400
|
-
email?: EMail1;
|
|
401
|
-
role?: Role1;
|
|
402
|
-
expertise?: Expertise1;
|
|
403
|
-
affiliation?: Affiliation1;
|
|
404
|
-
languages?: Languages1;
|
|
405
|
-
bio?: ShortBiography1;
|
|
406
|
-
long_bio?: LongBiography1;
|
|
407
|
-
books?: Books1;
|
|
408
|
-
education?: Education1;
|
|
409
|
-
awards?: Awards1;
|
|
410
|
-
contributor?: Contributor1;
|
|
411
|
-
org?: Org1;
|
|
412
|
-
socialLinks?: SocialLinks2;
|
|
413
|
-
additional_properties?: HasAdditionalProperties;
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* Holds attributes of an ANS image component. In the Arc ecosystem, these are stored in Anglerfish.
|
|
417
|
-
*/
|
|
418
|
-
export interface AnImage {
|
|
419
|
-
type: 'image';
|
|
420
|
-
_id?: GloballyUniqueIDTrait;
|
|
421
|
-
version: DescribesTheANSVersionOfThisObject;
|
|
422
|
-
subtype?: SubtypeOrTemplate;
|
|
423
|
-
channels?: ChannelTrait;
|
|
424
|
-
alignment?: Alignment;
|
|
425
|
-
language?: Locale;
|
|
426
|
-
copyright?: CopyrightInformation;
|
|
427
|
-
canonical_url?: CanonicalURL;
|
|
428
|
-
short_url?: Short_Url;
|
|
429
|
-
created_date?: CreatedDate;
|
|
430
|
-
last_updated_date?: LastUpdatedDate;
|
|
431
|
-
publish_date?: Publish_Date;
|
|
432
|
-
first_publish_date?: FirstPublishDate;
|
|
433
|
-
display_date?: Display_Date;
|
|
434
|
-
location?: LocationRelatedTrait;
|
|
435
|
-
geo?: Geo;
|
|
436
|
-
address?: Address;
|
|
437
|
-
editor_note?: Editor_Note;
|
|
438
|
-
status?: Status;
|
|
439
|
-
headlines?: Headlines;
|
|
440
|
-
subheadlines?: SubHeadlines;
|
|
441
|
-
description?: Description;
|
|
442
|
-
credits?: CreditTrait;
|
|
443
|
-
vanity_credits?: VanityCreditsTrait;
|
|
444
|
-
taxonomy?: Taxonomy;
|
|
445
|
-
promo_items?: PromoItems;
|
|
446
|
-
related_content?: Related_Content;
|
|
447
|
-
owner?: OwnerInformation;
|
|
448
|
-
planning?: SchedulingInformation;
|
|
449
|
-
workflow?: WorkflowInformation;
|
|
450
|
-
pitches?: Pitches;
|
|
451
|
-
revision?: Revision;
|
|
452
|
-
syndication?: Syndication;
|
|
453
|
-
source?: Source;
|
|
454
|
-
distributor?: Distributor;
|
|
455
|
-
tracking?: Tracking;
|
|
456
|
-
comments?: Comments;
|
|
457
|
-
label?: Label;
|
|
458
|
-
slug?: Slug;
|
|
459
|
-
content_restrictions?: ContentRestrictions;
|
|
460
|
-
image_type?: ImageType;
|
|
461
|
-
alt_text?: AltText;
|
|
462
|
-
focal_point?: FocalPoint;
|
|
463
|
-
auth?: Auth;
|
|
464
|
-
seo_filename?: SEOFilename;
|
|
465
|
-
additional_properties?: HasAdditionalProperties;
|
|
466
|
-
/**
|
|
467
|
-
* Subtitle for the image.
|
|
468
|
-
*/
|
|
469
|
-
subtitle?: string;
|
|
470
|
-
/**
|
|
471
|
-
* Caption for the image.
|
|
472
|
-
*/
|
|
473
|
-
caption?: string;
|
|
474
|
-
/**
|
|
475
|
-
* URL for the image.
|
|
476
|
-
*/
|
|
477
|
-
url?: string;
|
|
478
|
-
/**
|
|
479
|
-
* Width for the image.
|
|
480
|
-
*/
|
|
481
|
-
width?: number;
|
|
482
|
-
/**
|
|
483
|
-
* Height for the image.
|
|
484
|
-
*/
|
|
485
|
-
height?: number;
|
|
486
|
-
/**
|
|
487
|
-
* True if the image can legally be licensed to others.
|
|
488
|
-
*/
|
|
489
|
-
licensable?: boolean;
|
|
490
|
-
contributors?: Contributors;
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* Latitidue and Longitude of the content
|
|
494
|
-
*/
|
|
495
|
-
export interface Geo {
|
|
496
|
-
latitude?: number;
|
|
497
|
-
longitude?: number;
|
|
498
|
-
[k: string]: unknown;
|
|
499
|
-
}
|
|
500
|
-
/**
|
|
501
|
-
* An Address following the convention of http://microformats.org/wiki/hcard
|
|
502
|
-
*/
|
|
503
|
-
export interface Address {
|
|
504
|
-
post_office_box?: string;
|
|
505
|
-
extended_address?: string;
|
|
506
|
-
street_address?: string;
|
|
507
|
-
locality?: string;
|
|
508
|
-
region?: string;
|
|
509
|
-
postal_code?: string;
|
|
510
|
-
country_name?: string;
|
|
511
|
-
additional_properties?: HasAdditionalProperties;
|
|
512
|
-
}
|
|
513
|
-
/**
|
|
514
|
-
* A grab-bag object for non-validatable data.
|
|
515
|
-
*/
|
|
516
|
-
export interface HasAdditionalProperties {
|
|
517
|
-
[k: string]: unknown;
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* The headline(s) or title for this content. The 'basic' key is required.
|
|
521
|
-
*/
|
|
522
|
-
export interface Headlines {
|
|
523
|
-
basic: string;
|
|
524
|
-
/**
|
|
525
|
-
* This interface was referenced by `Headlines`'s JSON-Schema definition
|
|
526
|
-
* via the `patternProperty` ".*".
|
|
527
|
-
*
|
|
528
|
-
* This interface was referenced by `SubHeadlines`'s JSON-Schema definition
|
|
529
|
-
* via the `patternProperty` ".*".
|
|
530
|
-
*
|
|
531
|
-
* This interface was referenced by `Description`'s JSON-Schema definition
|
|
532
|
-
* via the `patternProperty` ".*".
|
|
533
|
-
*/
|
|
534
|
-
[k: string]: string;
|
|
535
|
-
}
|
|
536
|
-
/**
|
|
537
|
-
* The sub-headline(s) for the content.
|
|
538
|
-
*/
|
|
539
|
-
export interface SubHeadlines {
|
|
540
|
-
basic: string;
|
|
541
|
-
/**
|
|
542
|
-
* This interface was referenced by `Headlines`'s JSON-Schema definition
|
|
543
|
-
* via the `patternProperty` ".*".
|
|
544
|
-
*
|
|
545
|
-
* This interface was referenced by `SubHeadlines`'s JSON-Schema definition
|
|
546
|
-
* via the `patternProperty` ".*".
|
|
547
|
-
*
|
|
548
|
-
* This interface was referenced by `Description`'s JSON-Schema definition
|
|
549
|
-
* via the `patternProperty` ".*".
|
|
550
|
-
*/
|
|
551
|
-
[k: string]: string;
|
|
552
|
-
}
|
|
553
|
-
/**
|
|
554
|
-
* The descriptions, or blurbs, for the content.
|
|
555
|
-
*/
|
|
556
|
-
export interface Description {
|
|
557
|
-
basic: string;
|
|
558
|
-
/**
|
|
559
|
-
* This interface was referenced by `Headlines`'s JSON-Schema definition
|
|
560
|
-
* via the `patternProperty` ".*".
|
|
561
|
-
*
|
|
562
|
-
* This interface was referenced by `SubHeadlines`'s JSON-Schema definition
|
|
563
|
-
* via the `patternProperty` ".*".
|
|
564
|
-
*
|
|
565
|
-
* This interface was referenced by `Description`'s JSON-Schema definition
|
|
566
|
-
* via the `patternProperty` ".*".
|
|
567
|
-
*/
|
|
568
|
-
[k: string]: string;
|
|
569
|
-
}
|
|
570
|
-
/**
|
|
571
|
-
* A list of people and groups attributed to this content, keyed by type of contribution. In the Arc ecosystem, references in this list will be denormalized into author objects from the arc-author-service.
|
|
572
|
-
*/
|
|
573
|
-
export interface CreditTrait {
|
|
574
|
-
by?: By;
|
|
575
|
-
photos_by?: PhotosBy;
|
|
576
|
-
/**
|
|
577
|
-
* This interface was referenced by `CreditTrait`'s JSON-Schema definition
|
|
578
|
-
* via the `patternProperty` "^[a-zA-Z0-9_]*".
|
|
579
|
-
*/
|
|
580
|
-
[k: string]: (AnAuthorOfAPieceOfContent1 | RepresentationOfANormalizedElement)[] | undefined;
|
|
581
|
-
}
|
|
582
|
-
/**
|
|
583
|
-
* Models attribution to an individual or group for contribution towards some content item. In the Arc ecosystem, these are stored in the arc-author-service.
|
|
584
|
-
*/
|
|
585
|
-
export interface AnAuthorOfAPieceOfContent1 {
|
|
586
|
-
_id?: GloballyUniqueIDTrait;
|
|
587
|
-
/**
|
|
588
|
-
* Indicates that this is an author
|
|
589
|
-
*/
|
|
590
|
-
type: 'author';
|
|
591
|
-
version?: DescribesTheANSVersionOfThisObject;
|
|
592
|
-
name: Name1;
|
|
593
|
-
image?: AnImage;
|
|
594
|
-
/**
|
|
595
|
-
* A link to an author's landing page on the website, or a personal website.
|
|
596
|
-
*/
|
|
597
|
-
url?: string;
|
|
598
|
-
social_links?: SocialLinks;
|
|
599
|
-
slug?: Slug;
|
|
600
|
-
first_name?: FirstName;
|
|
601
|
-
middle_name?: MiddleName;
|
|
602
|
-
last_name?: LastName;
|
|
603
|
-
suffix?: Suffix;
|
|
604
|
-
byline?: Byline;
|
|
605
|
-
location?: Location;
|
|
606
|
-
division?: Division;
|
|
607
|
-
email?: EMail;
|
|
608
|
-
role?: Role;
|
|
609
|
-
expertise?: Expertise;
|
|
610
|
-
affiliation?: Affiliation;
|
|
611
|
-
languages?: Languages;
|
|
612
|
-
bio?: ShortBiography;
|
|
613
|
-
long_bio?: LongBiography;
|
|
614
|
-
books?: Books;
|
|
615
|
-
education?: Education;
|
|
616
|
-
awards?: Awards;
|
|
617
|
-
contributor?: Contributor;
|
|
618
|
-
org?: Org;
|
|
619
|
-
socialLinks?: SocialLinks1;
|
|
620
|
-
additional_properties?: HasAdditionalProperties;
|
|
621
|
-
}
|
|
622
|
-
export interface Book {
|
|
623
|
-
book_title?: Title;
|
|
624
|
-
book_url?: URL;
|
|
625
|
-
}
|
|
626
|
-
export interface School {
|
|
627
|
-
school_name?: SchoolName;
|
|
628
|
-
}
|
|
629
|
-
/**
|
|
630
|
-
* This represents a reference to external content that should be denormalized
|
|
631
|
-
*/
|
|
632
|
-
export interface RepresentationOfANormalizedElement {
|
|
633
|
-
type: 'reference';
|
|
634
|
-
additional_properties?: HasAdditionalProperties;
|
|
635
|
-
_id?: GloballyUniqueIDTrait;
|
|
636
|
-
subtype?: SubtypeOrTemplate;
|
|
637
|
-
channels?: ChannelTrait;
|
|
638
|
-
alignment?: Alignment;
|
|
639
|
-
referent: {
|
|
640
|
-
/**
|
|
641
|
-
* The ANS type that the provider should return.
|
|
642
|
-
*/
|
|
643
|
-
type?: string;
|
|
644
|
-
/**
|
|
645
|
-
* The type of interaction the provider expects. E.g., 'oembed'
|
|
646
|
-
*/
|
|
647
|
-
service?: string;
|
|
648
|
-
/**
|
|
649
|
-
* The id passed to the provider to retrieve an ANS document
|
|
650
|
-
*/
|
|
651
|
-
id: string;
|
|
652
|
-
/**
|
|
653
|
-
* A URL that can resolve the id into an ANS element
|
|
654
|
-
*/
|
|
655
|
-
provider?: string;
|
|
656
|
-
/**
|
|
657
|
-
* The website which the referenced id belongs to. Currently supported only for sections.
|
|
658
|
-
*/
|
|
659
|
-
website?: string;
|
|
660
|
-
/**
|
|
661
|
-
* An object for key-value pairs that should override the values of keys with the same name in the denormalized object
|
|
662
|
-
*/
|
|
663
|
-
referent_properties?: {
|
|
664
|
-
[k: string]: unknown;
|
|
665
|
-
};
|
|
666
|
-
};
|
|
667
|
-
}
|
|
668
|
-
/**
|
|
669
|
-
* Similar to the credits trait, but to be used only when ANS is being directly rendered to readers natively. For legal and technical reasons, the `credits` trait is preferred when converting ANS into feeds or other distribution formats. However, when present, `vanity_credits` allows more sophisticated credits presentation to override the default without losing that original data.
|
|
670
|
-
*/
|
|
671
|
-
export interface VanityCreditsTrait {
|
|
672
|
-
by?: By1;
|
|
673
|
-
photos_by?: PhotosBy1;
|
|
674
|
-
/**
|
|
675
|
-
* This interface was referenced by `VanityCreditsTrait`'s JSON-Schema definition
|
|
676
|
-
* via the `patternProperty` "^[a-zA-Z0-9_]*".
|
|
677
|
-
*/
|
|
678
|
-
[k: string]: (AnAuthorOfAPieceOfContent1 | RepresentationOfANormalizedElement)[] | undefined;
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* Holds the collection of tags, categories, keywords, etc that describe content.
|
|
682
|
-
*/
|
|
683
|
-
export interface Taxonomy {
|
|
684
|
-
/**
|
|
685
|
-
* A list of keywords. In the Arc ecosystem, this list is populated by Clavis.
|
|
686
|
-
*/
|
|
687
|
-
keywords?: Keyword[];
|
|
688
|
-
/**
|
|
689
|
-
* A list of named entities. In the Arc ecosystem, this list is populated by Clavis.
|
|
690
|
-
*/
|
|
691
|
-
named_entities?: NamedEntity[];
|
|
692
|
-
/**
|
|
693
|
-
* A list of topics. In the Arc ecosystem, this list is populated by Clavis.
|
|
694
|
-
*/
|
|
695
|
-
topics?: Topic[];
|
|
696
|
-
/**
|
|
697
|
-
* A list of auxiliaries. In the Arc ecosystem, this list is populated by Clavis.
|
|
698
|
-
*/
|
|
699
|
-
auxiliaries?: Auxiliary[];
|
|
700
|
-
tags?: Tag[];
|
|
701
|
-
/**
|
|
702
|
-
* A list of categories. Categories are overall, high-level classification of what the content is about.
|
|
703
|
-
*/
|
|
704
|
-
categories?: Category[];
|
|
705
|
-
/**
|
|
706
|
-
* A list of topics. Topics are the subjects that the content is about.
|
|
707
|
-
*/
|
|
708
|
-
content_topics?: ContentTopic[];
|
|
709
|
-
/**
|
|
710
|
-
* A list of entities. Entities are proper nouns, like people, places, and organizations.
|
|
711
|
-
*/
|
|
712
|
-
entities?: Entity[];
|
|
713
|
-
/**
|
|
714
|
-
* A list of custom categories. Categories are overall, high-level classification of what the content is about.
|
|
715
|
-
*/
|
|
716
|
-
custom_categories?: CustomCategory[];
|
|
717
|
-
/**
|
|
718
|
-
* A list of custom entities. Entities are proper nouns, like people, places, and organizations.
|
|
719
|
-
*/
|
|
720
|
-
custom_entities?: CustomEntity[];
|
|
721
|
-
/**
|
|
722
|
-
* Deprecated in 0.10.10. (See `primary_section` instead.) A primary site object or reference to one. In the Arc ecosystem, a reference here is denormalized into a site from the arc-site-service.
|
|
723
|
-
*/
|
|
724
|
-
primary_site?: Site | (RepresentationOfANormalizedElement & {
|
|
725
|
-
referent?: {
|
|
726
|
-
type?: 'site';
|
|
727
|
-
[k: string]: unknown;
|
|
728
|
-
};
|
|
729
|
-
[k: string]: unknown;
|
|
730
|
-
});
|
|
731
|
-
/**
|
|
732
|
-
* A primary section object or reference to one. In the Arc ecosystem, a reference here is denormalized into a site from the arc-site-service.
|
|
733
|
-
*/
|
|
734
|
-
primary_section?: Section | (RepresentationOfANormalizedElement & {
|
|
735
|
-
referent?: {
|
|
736
|
-
type?: 'section';
|
|
737
|
-
[k: string]: unknown;
|
|
738
|
-
};
|
|
739
|
-
[k: string]: unknown;
|
|
740
|
-
});
|
|
741
|
-
/**
|
|
742
|
-
* Deprecated in 0.10.10. (See `sections` instead.) A list of site objects or references to them. In the Arc ecosystem, references in this list are denormalized into sites from the arc-site-service. In a multi-site context, sites will be denormalized against an organization's default website only.
|
|
743
|
-
*/
|
|
744
|
-
sites?: (Site | (RepresentationOfANormalizedElement & {
|
|
745
|
-
referent?: {
|
|
746
|
-
type?: 'site';
|
|
747
|
-
[k: string]: unknown;
|
|
748
|
-
};
|
|
749
|
-
[k: string]: unknown;
|
|
750
|
-
}))[];
|
|
751
|
-
/**
|
|
752
|
-
* A list of site objects or references to them. In the Arc ecosystem, references in this list are denormalized into sites from the arc-site-service. In a multi-site context, sites will be denormalized against an organization's default website only.
|
|
753
|
-
*/
|
|
754
|
-
sections?: (Section | (RepresentationOfANormalizedElement & {
|
|
755
|
-
referent?: {
|
|
756
|
-
type?: 'section';
|
|
757
|
-
[k: string]: unknown;
|
|
758
|
-
};
|
|
759
|
-
[k: string]: unknown;
|
|
760
|
-
}))[];
|
|
761
|
-
/**
|
|
762
|
-
* A list of user-editable manually entered keywords for search purposes. In the Arc ecosystem, these can be generated and saved in source CMS systems, editors, etc.
|
|
763
|
-
*/
|
|
764
|
-
seo_keywords?: string[];
|
|
765
|
-
/**
|
|
766
|
-
* A list of stock symbols of companies related to this content. In the Arc ecosystem, these can be generated and saved in source CMS systems, editors, etc.
|
|
767
|
-
*/
|
|
768
|
-
stock_symbols?: string[];
|
|
769
|
-
/**
|
|
770
|
-
* A list of WebSked task IDs that this content was created or curated to satisfy.
|
|
771
|
-
*
|
|
772
|
-
* @maxItems 200
|
|
773
|
-
*/
|
|
774
|
-
associated_tasks?: string[];
|
|
775
|
-
additional_properties?: HasAdditionalProperties;
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
* Models a keyword used in describing a piece of content.
|
|
779
|
-
*/
|
|
780
|
-
export interface Keyword {
|
|
781
|
-
/**
|
|
782
|
-
* The keyword used to describe a piece of content
|
|
783
|
-
*/
|
|
784
|
-
keyword: string;
|
|
785
|
-
/**
|
|
786
|
-
* An arbitrary weighting to give the keyword
|
|
787
|
-
*/
|
|
788
|
-
score: number;
|
|
789
|
-
/**
|
|
790
|
-
* The Part of Speech tag for this keyword.
|
|
791
|
-
*/
|
|
792
|
-
tag?: string;
|
|
793
|
-
/**
|
|
794
|
-
* An optional count of the frequency of the keyword as it appears in the content it describes
|
|
795
|
-
*/
|
|
796
|
-
frequency?: number;
|
|
797
|
-
}
|
|
798
|
-
/**
|
|
799
|
-
* Models a named entity (i.e. name of a person, place, or organization) used in a piece of content.
|
|
800
|
-
*/
|
|
801
|
-
export interface NamedEntity {
|
|
802
|
-
/**
|
|
803
|
-
* A unique identifier for the concept of the named entity.
|
|
804
|
-
*/
|
|
805
|
-
_id: string;
|
|
806
|
-
/**
|
|
807
|
-
* The actual string of text that was identified as a named entity.
|
|
808
|
-
*/
|
|
809
|
-
name: string;
|
|
810
|
-
/**
|
|
811
|
-
* A description of what the named entity is. E.g. 'organization', 'person', or 'location'.
|
|
812
|
-
*/
|
|
813
|
-
type: string;
|
|
814
|
-
score?: number;
|
|
815
|
-
}
|
|
816
|
-
/**
|
|
817
|
-
* Models a topic used in describing a piece of content.
|
|
818
|
-
*/
|
|
819
|
-
export interface Topic {
|
|
820
|
-
/**
|
|
821
|
-
* The unique identifier for this topic.
|
|
822
|
-
*/
|
|
823
|
-
_id: string;
|
|
824
|
-
/**
|
|
825
|
-
* The general name for this topic.
|
|
826
|
-
*/
|
|
827
|
-
name?: string;
|
|
828
|
-
/**
|
|
829
|
-
* An arbitrary weighting to give the topic
|
|
830
|
-
*/
|
|
831
|
-
score: number;
|
|
832
|
-
/**
|
|
833
|
-
* A short identifier for this topic. Usually used in cases where a long form id cannot work.
|
|
834
|
-
*/
|
|
835
|
-
uid: string;
|
|
836
|
-
}
|
|
837
|
-
/**
|
|
838
|
-
* Models a auxiliary used in targeting a piece of content.
|
|
839
|
-
*/
|
|
840
|
-
export interface Auxiliary {
|
|
841
|
-
/**
|
|
842
|
-
* The unique identifier for this auxiliary.
|
|
843
|
-
*/
|
|
844
|
-
_id: string;
|
|
845
|
-
/**
|
|
846
|
-
* The general name for this auxiliary.
|
|
847
|
-
*/
|
|
848
|
-
name?: string;
|
|
849
|
-
/**
|
|
850
|
-
* A short identifier for this auxiliary. Usually used in cases where a long form id cannot work.
|
|
851
|
-
*/
|
|
852
|
-
uid: string;
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Models a keyword used in describing a piece of content.
|
|
856
|
-
*/
|
|
857
|
-
export interface Tag {
|
|
858
|
-
_id?: GloballyUniqueIDTrait;
|
|
859
|
-
type?: 'tag';
|
|
860
|
-
subtype?: SubtypeOrTemplate;
|
|
861
|
-
/**
|
|
862
|
-
* The text of the tag as displayed to users.
|
|
863
|
-
*/
|
|
864
|
-
text: string;
|
|
865
|
-
/**
|
|
866
|
-
* A more detailed description of the tag.
|
|
867
|
-
*/
|
|
868
|
-
description?: string;
|
|
869
|
-
additional_properties?: HasAdditionalProperties;
|
|
870
|
-
slug?: Slug;
|
|
871
|
-
}
|
|
872
|
-
/**
|
|
873
|
-
* Models a category used in classifying a piece of content.
|
|
874
|
-
*/
|
|
875
|
-
export interface Category {
|
|
876
|
-
/**
|
|
877
|
-
* The unique ID for this category within its classifier.
|
|
878
|
-
*/
|
|
879
|
-
_id: string;
|
|
880
|
-
/**
|
|
881
|
-
* The unique identifier for the classifier that matched this category.
|
|
882
|
-
*/
|
|
883
|
-
classifier: string;
|
|
884
|
-
/**
|
|
885
|
-
* The human readable label for this category.
|
|
886
|
-
*/
|
|
887
|
-
name: string;
|
|
888
|
-
/**
|
|
889
|
-
* The score assigned to this category between 0 and 1, where 1 is an exact match.
|
|
890
|
-
*/
|
|
891
|
-
score?: number;
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* Models a keyword used in describing a piece of content.
|
|
895
|
-
*/
|
|
896
|
-
export interface ContentTopic {
|
|
897
|
-
/**
|
|
898
|
-
* The unique Wikidata ID for this topic.
|
|
899
|
-
*/
|
|
900
|
-
_id: string;
|
|
901
|
-
/**
|
|
902
|
-
* A topic this piece of content is about.
|
|
903
|
-
*/
|
|
904
|
-
label: string;
|
|
905
|
-
/**
|
|
906
|
-
* The score assigned to this topic between 0 and 1, where 1 is an exact match.
|
|
907
|
-
*/
|
|
908
|
-
score: number;
|
|
909
|
-
}
|
|
910
|
-
/**
|
|
911
|
-
* Models a named entity (i.e. name of a person, place, or organization) used in a piece of content.
|
|
912
|
-
*/
|
|
913
|
-
export interface Entity {
|
|
914
|
-
/**
|
|
915
|
-
* The unique Wikidata ID for this entity.
|
|
916
|
-
*/
|
|
917
|
-
_id?: string;
|
|
918
|
-
/**
|
|
919
|
-
* A unique identifier for a custom-defined entity.
|
|
920
|
-
*/
|
|
921
|
-
custom_id?: string;
|
|
922
|
-
/**
|
|
923
|
-
* The actual string of text that was identified as a named entity.
|
|
924
|
-
*/
|
|
925
|
-
label: string;
|
|
926
|
-
/**
|
|
927
|
-
* A description of what the named entity is. E.g. 'organization', 'person', or 'location'.
|
|
928
|
-
*/
|
|
929
|
-
type?: string;
|
|
930
|
-
/**
|
|
931
|
-
* The score assigned to this entity between 0 and 1, where 1 is an exact match.
|
|
932
|
-
*/
|
|
933
|
-
score?: number;
|
|
934
|
-
}
|
|
935
|
-
/**
|
|
936
|
-
* Models a category used in classifying a piece of content.
|
|
937
|
-
*/
|
|
938
|
-
export interface CustomCategory {
|
|
939
|
-
/**
|
|
940
|
-
* The unique ID for this category within its classifier.
|
|
941
|
-
*/
|
|
942
|
-
_id: string;
|
|
943
|
-
/**
|
|
944
|
-
* The unique identifier for the classifier that matched this category.
|
|
945
|
-
*/
|
|
946
|
-
classifier: string;
|
|
947
|
-
/**
|
|
948
|
-
* The human readable label for this category.
|
|
949
|
-
*/
|
|
950
|
-
name: string;
|
|
951
|
-
/**
|
|
952
|
-
* The score assigned to this category between 0 and 1, where 1 is an exact match.
|
|
953
|
-
*/
|
|
954
|
-
score?: number;
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Models a named custom entity (i.e. name of a person, place, or organization) used in a piece of content.
|
|
958
|
-
*/
|
|
959
|
-
export interface CustomEntity {
|
|
960
|
-
/**
|
|
961
|
-
* The unique ID for this entity.
|
|
962
|
-
*/
|
|
963
|
-
_id?: string;
|
|
964
|
-
/**
|
|
965
|
-
* A unique identifier for a custom-defined entity.
|
|
966
|
-
*/
|
|
967
|
-
custom_id?: string;
|
|
968
|
-
/**
|
|
969
|
-
* The actual string of text that was identified as a named entity.
|
|
970
|
-
*/
|
|
971
|
-
label: string;
|
|
972
|
-
/**
|
|
973
|
-
* A description of what the named entity is. E.g. 'organization', 'person', or 'location'.
|
|
974
|
-
*/
|
|
975
|
-
type?: string;
|
|
976
|
-
/**
|
|
977
|
-
* The score assigned to this entity between 0 and 1, where 1 is an exact match.
|
|
978
|
-
*/
|
|
979
|
-
score?: number;
|
|
980
|
-
}
|
|
981
|
-
/**
|
|
982
|
-
* A hierarchical section or 'site' in a taxonomy. In the Arc ecosystem, these are stored in the arc-site-service.
|
|
983
|
-
*/
|
|
984
|
-
export interface Site {
|
|
985
|
-
type: 'site';
|
|
986
|
-
_id?: GloballyUniqueIDTrait;
|
|
987
|
-
version: DescribesTheANSVersionOfThisObject;
|
|
988
|
-
additional_properties?: HasAdditionalProperties;
|
|
989
|
-
/**
|
|
990
|
-
* The name of this site
|
|
991
|
-
*/
|
|
992
|
-
name: string;
|
|
993
|
-
/**
|
|
994
|
-
* A short description or tagline about this site
|
|
995
|
-
*/
|
|
996
|
-
description?: string;
|
|
997
|
-
/**
|
|
998
|
-
* The url path to this site
|
|
999
|
-
*/
|
|
1000
|
-
path?: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* The id of this section's parent site, if any
|
|
1003
|
-
*/
|
|
1004
|
-
parent_id?: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* Is this the primary site?
|
|
1007
|
-
*/
|
|
1008
|
-
primary?: boolean;
|
|
1009
|
-
}
|
|
1010
|
-
/**
|
|
1011
|
-
* A hierarchical section in a taxonomy. In the Arc ecosystem, these are stored in the arc-site-service.
|
|
1012
|
-
*/
|
|
1013
|
-
export interface Section {
|
|
1014
|
-
type: 'section';
|
|
1015
|
-
_id?: GloballyUniqueIDTrait;
|
|
1016
|
-
_website?: Website;
|
|
1017
|
-
version: DescribesTheANSVersionOfThisObject;
|
|
1018
|
-
additional_properties?: HasAdditionalProperties;
|
|
1019
|
-
/**
|
|
1020
|
-
* The name of this site
|
|
1021
|
-
*/
|
|
1022
|
-
name: string;
|
|
1023
|
-
/**
|
|
1024
|
-
* A short description or tagline about this site
|
|
1025
|
-
*/
|
|
1026
|
-
description?: string;
|
|
1027
|
-
/**
|
|
1028
|
-
* The url path to this site
|
|
1029
|
-
*/
|
|
1030
|
-
path?: string;
|
|
1031
|
-
/**
|
|
1032
|
-
* The id of this section's parent section in the default hierarchy, if any.
|
|
1033
|
-
*/
|
|
1034
|
-
parent_id?: string;
|
|
1035
|
-
/**
|
|
1036
|
-
* The id of this section's parent section in various commonly-used hierarchies, where available.
|
|
1037
|
-
*/
|
|
1038
|
-
parent?: {
|
|
1039
|
-
default?: string;
|
|
1040
|
-
[k: string]: unknown;
|
|
1041
|
-
};
|
|
1042
|
-
/**
|
|
1043
|
-
* Is this the primary site?
|
|
1044
|
-
*/
|
|
1045
|
-
primary?: boolean;
|
|
1046
|
-
}
|
|
1047
|
-
/**
|
|
1048
|
-
* Lists of promotional content to use when highlighting the story. In the Arc ecosystem, references in these lists will be denormalized.
|
|
1049
|
-
*/
|
|
1050
|
-
export interface PromoItems {
|
|
1051
|
-
basic?: AContentObject | RepresentationOfANormalizedElement | HttpsRawGithubusercontentComWashingtonpostAnsSchemaMasterSrcMainResourcesSchemaAns01010StoryElementsRawHtmlJson | CustomEmbed;
|
|
1052
|
-
/**
|
|
1053
|
-
* This interface was referenced by `PromoItems`'s JSON-Schema definition
|
|
1054
|
-
* via the `patternProperty` ".*".
|
|
1055
|
-
*/
|
|
1056
|
-
[k: string]: AContentObject | RepresentationOfANormalizedElement | HttpsRawGithubusercontentComWashingtonpostAnsSchemaMasterSrcMainResourcesSchemaAns01010StoryElementsRawHtmlJson | CustomEmbed | undefined;
|
|
1057
|
-
}
|
|
1058
|
-
/**
|
|
1059
|
-
* Holds common attributes of ANS Content objects.
|
|
1060
|
-
*/
|
|
1061
|
-
export interface AContentObject {
|
|
1062
|
-
type: string;
|
|
1063
|
-
_id?: GloballyUniqueIDTrait;
|
|
1064
|
-
version: DescribesTheANSVersionOfThisObject;
|
|
1065
|
-
subtype?: SubtypeOrTemplate;
|
|
1066
|
-
channels?: ChannelTrait;
|
|
1067
|
-
alignment?: Alignment;
|
|
1068
|
-
language?: Locale;
|
|
1069
|
-
copyright?: CopyrightInformation;
|
|
1070
|
-
canonical_url?: CanonicalURL;
|
|
1071
|
-
short_url?: Short_Url;
|
|
1072
|
-
created_date?: CreatedDate;
|
|
1073
|
-
last_updated_date?: LastUpdatedDate;
|
|
1074
|
-
publish_date?: Publish_Date;
|
|
1075
|
-
first_publish_date?: FirstPublishDate;
|
|
1076
|
-
display_date?: Display_Date;
|
|
1077
|
-
location?: LocationRelatedTrait;
|
|
1078
|
-
geo?: Geo;
|
|
1079
|
-
address?: Address;
|
|
1080
|
-
editor_note?: Editor_Note;
|
|
1081
|
-
status?: Status;
|
|
1082
|
-
headlines?: Headlines;
|
|
1083
|
-
subheadlines?: SubHeadlines;
|
|
1084
|
-
description?: Description;
|
|
1085
|
-
credits?: CreditTrait;
|
|
1086
|
-
vanity_credits?: VanityCreditsTrait;
|
|
1087
|
-
taxonomy?: Taxonomy;
|
|
1088
|
-
promo_items?: PromoItems;
|
|
1089
|
-
related_content?: Related_Content;
|
|
1090
|
-
owner?: OwnerInformation;
|
|
1091
|
-
planning?: SchedulingInformation;
|
|
1092
|
-
workflow?: WorkflowInformation;
|
|
1093
|
-
pitches?: Pitches;
|
|
1094
|
-
revision?: Revision;
|
|
1095
|
-
syndication?: Syndication;
|
|
1096
|
-
source?: Source;
|
|
1097
|
-
distributor?: Distributor;
|
|
1098
|
-
tracking?: Tracking;
|
|
1099
|
-
comments?: Comments;
|
|
1100
|
-
label?: Label;
|
|
1101
|
-
slug?: Slug;
|
|
1102
|
-
content_restrictions?: ContentRestrictions;
|
|
1103
|
-
additional_properties?: HasAdditionalProperties;
|
|
1104
|
-
content_aliases?: AliasesTrait;
|
|
1105
|
-
contributors?: Contributors;
|
|
1106
|
-
[k: string]: unknown;
|
|
1107
|
-
}
|
|
1108
|
-
/**
|
|
1109
|
-
* Lists of content items or references this story is related to, arbitrarily keyed. In the Arc ecosystem, references in this object will be denormalized into the fully-inflated content objects they represent.
|
|
1110
|
-
*/
|
|
1111
|
-
export interface Related_Content {
|
|
1112
|
-
/**
|
|
1113
|
-
* An attached redirect. In Arc, when this content item is fetched by url, content api will instead return this redirect object with appropriate headers. In all other cases, this content should be treated normally.
|
|
1114
|
-
*
|
|
1115
|
-
* @maxItems 1
|
|
1116
|
-
*/
|
|
1117
|
-
redirect?: [] | [ARedirectObject];
|
|
1118
|
-
/**
|
|
1119
|
-
* This interface was referenced by `Related_Content`'s JSON-Schema definition
|
|
1120
|
-
* via the `patternProperty` ".*".
|
|
1121
|
-
*/
|
|
1122
|
-
[k: string]: [ARedirectObject] | (AContentObject | RepresentationOfANormalizedElement | CustomEmbed)[] | undefined;
|
|
1123
|
-
}
|
|
1124
|
-
/**
|
|
1125
|
-
* A redirect to another story.
|
|
1126
|
-
*/
|
|
1127
|
-
export interface ARedirectObject {
|
|
1128
|
-
type: 'redirect';
|
|
1129
|
-
_id?: GloballyUniqueIDTrait;
|
|
1130
|
-
version: DescribesTheANSVersionOfThisObject;
|
|
1131
|
-
owner?: OwnerInformation;
|
|
1132
|
-
revision?: Revision;
|
|
1133
|
-
canonical_url: CanonicalURL;
|
|
1134
|
-
redirect_url: CanonicalURL;
|
|
1135
|
-
}
|
|
1136
|
-
/**
|
|
1137
|
-
* Various unrelated fields that should be preserved for backwards-compatibility reasons. See also trait_source.
|
|
1138
|
-
*/
|
|
1139
|
-
export interface OwnerInformation {
|
|
1140
|
-
/**
|
|
1141
|
-
* The machine-readable unique identifier of the organization whose database this content is stored in. In Arc, this is equivalent to ARC_ORG_NAME.
|
|
1142
|
-
*/
|
|
1143
|
-
id?: string;
|
|
1144
|
-
/**
|
|
1145
|
-
* Deprecated in 0.10.10. See `distributor.name`. (Formerly: The human-readable name of original producer of content. Distinguishes between Wires, Staff and other sources.)
|
|
1146
|
-
*/
|
|
1147
|
-
name?: string;
|
|
1148
|
-
/**
|
|
1149
|
-
* True if this content is advertorial or native advertising.
|
|
1150
|
-
*/
|
|
1151
|
-
sponsored?: boolean;
|
|
1152
|
-
[k: string]: unknown;
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* Trait that applies revision information to a document. In the Arc ecosystem, many of these fields are populated in stories by the Story API.
|
|
1156
|
-
*/
|
|
1157
|
-
export interface Revision {
|
|
1158
|
-
/**
|
|
1159
|
-
* The unique id of this revision.
|
|
1160
|
-
*/
|
|
1161
|
-
revision_id?: string;
|
|
1162
|
-
/**
|
|
1163
|
-
* The unique id of the revision that this revisions was branched from, or preceded it on the current branch.
|
|
1164
|
-
*/
|
|
1165
|
-
parent_id?: string;
|
|
1166
|
-
/**
|
|
1167
|
-
* The name of the branch this revision was created on.
|
|
1168
|
-
*/
|
|
1169
|
-
branch?: string;
|
|
1170
|
-
/**
|
|
1171
|
-
* A list of identifiers of editions that point to this revision.
|
|
1172
|
-
*/
|
|
1173
|
-
editions?: string[];
|
|
1174
|
-
/**
|
|
1175
|
-
* The unique user id of the person who created this revision.
|
|
1176
|
-
*/
|
|
1177
|
-
user_id?: string;
|
|
1178
|
-
/**
|
|
1179
|
-
* Whether or not this revision's parent story is published, in any form or place
|
|
1180
|
-
*/
|
|
1181
|
-
published?: boolean;
|
|
1182
|
-
additional_properties?: HasAdditionalProperties;
|
|
1183
|
-
}
|
|
1184
|
-
/**
|
|
1185
|
-
* A custom embed element. Can be used to reference content from external providers about which little is known.
|
|
1186
|
-
*/
|
|
1187
|
-
export interface CustomEmbed {
|
|
1188
|
-
type: 'custom_embed';
|
|
1189
|
-
_id?: GloballyUniqueIDTrait;
|
|
1190
|
-
subtype?: SubtypeOrTemplate;
|
|
1191
|
-
channels?: ChannelTrait;
|
|
1192
|
-
alignment?: Alignment;
|
|
1193
|
-
additional_properties?: HasAdditionalProperties;
|
|
1194
|
-
embed: Embed;
|
|
1195
|
-
}
|
|
1196
|
-
/**
|
|
1197
|
-
* The embed data.
|
|
1198
|
-
*/
|
|
1199
|
-
export interface Embed {
|
|
1200
|
-
id: EmbedID;
|
|
1201
|
-
url: EmbedProviderURL;
|
|
1202
|
-
config?: EmbedConfiguration;
|
|
1203
|
-
}
|
|
1204
|
-
/**
|
|
1205
|
-
* Arbitrary configuration data generated by a plugin. Users are responsible for maintaining schema.
|
|
1206
|
-
*/
|
|
1207
|
-
export interface EmbedConfiguration {
|
|
1208
|
-
referent?: {
|
|
1209
|
-
[k: string]: unknown;
|
|
1210
|
-
};
|
|
1211
|
-
type?: {
|
|
1212
|
-
[k: string]: unknown;
|
|
1213
|
-
};
|
|
1214
|
-
version?: {
|
|
1215
|
-
[k: string]: unknown;
|
|
1216
|
-
};
|
|
1217
|
-
/**
|
|
1218
|
-
* This interface was referenced by `EmbedConfiguration`'s JSON-Schema definition
|
|
1219
|
-
* via the `patternProperty` "^([a-zA-Z0-9_])*$".
|
|
1220
|
-
*/
|
|
1221
|
-
[k: string]: unknown;
|
|
1222
|
-
}
|
|
1223
|
-
/**
|
|
1224
|
-
* Trait that applies planning information to a document or resource. In the Arc ecosystem, this data is generated by WebSked. Newsroom use only. All these fields should be available and editable in WebSked.
|
|
1225
|
-
*/
|
|
1226
|
-
export interface SchedulingInformation {
|
|
1227
|
-
additional_properties?: HasAdditionalProperties;
|
|
1228
|
-
/**
|
|
1229
|
-
* Date to be used for chronological sorting in WebSked.
|
|
1230
|
-
*/
|
|
1231
|
-
websked_sort_date?: string;
|
|
1232
|
-
/**
|
|
1233
|
-
* The delta between the story's planned publish date and actual first publish time, in minutes.
|
|
1234
|
-
*/
|
|
1235
|
-
deadline_miss?: number;
|
|
1236
|
-
internal_note?: InternalNote;
|
|
1237
|
-
budget_line?: BudgetLine;
|
|
1238
|
-
/**
|
|
1239
|
-
* Scheduling information.
|
|
1240
|
-
*/
|
|
1241
|
-
scheduling?: {
|
|
1242
|
-
/**
|
|
1243
|
-
* When the content is planned to be published.
|
|
1244
|
-
*/
|
|
1245
|
-
planned_publish_date?: string;
|
|
1246
|
-
/**
|
|
1247
|
-
* When the content was first published.
|
|
1248
|
-
*/
|
|
1249
|
-
scheduled_publish_date?: string;
|
|
1250
|
-
/**
|
|
1251
|
-
* Will this content have galleries?
|
|
1252
|
-
*/
|
|
1253
|
-
will_have_gallery?: boolean;
|
|
1254
|
-
/**
|
|
1255
|
-
* Will this content have graphics?
|
|
1256
|
-
*/
|
|
1257
|
-
will_have_graphic?: boolean;
|
|
1258
|
-
/**
|
|
1259
|
-
* Will this content have images?
|
|
1260
|
-
*/
|
|
1261
|
-
will_have_image?: boolean;
|
|
1262
|
-
/**
|
|
1263
|
-
* Will this content have videos?
|
|
1264
|
-
*/
|
|
1265
|
-
will_have_video?: boolean;
|
|
1266
|
-
};
|
|
1267
|
-
/**
|
|
1268
|
-
* Story length information.
|
|
1269
|
-
*/
|
|
1270
|
-
story_length?: {
|
|
1271
|
-
/**
|
|
1272
|
-
* The anticipated number of words in the story.
|
|
1273
|
-
*/
|
|
1274
|
-
word_count_planned?: number;
|
|
1275
|
-
/**
|
|
1276
|
-
* Current number of words.
|
|
1277
|
-
*/
|
|
1278
|
-
word_count_actual?: number;
|
|
1279
|
-
/**
|
|
1280
|
-
* The anticipated length of the story in inches.
|
|
1281
|
-
*/
|
|
1282
|
-
inch_count_planned?: number;
|
|
1283
|
-
/**
|
|
1284
|
-
* The current length of the story in inches.
|
|
1285
|
-
*/
|
|
1286
|
-
inch_count_actual?: number;
|
|
1287
|
-
/**
|
|
1288
|
-
* The anticipated length of the story in lines.
|
|
1289
|
-
*/
|
|
1290
|
-
line_count_planned?: number;
|
|
1291
|
-
/**
|
|
1292
|
-
* The current length of the story in lines.
|
|
1293
|
-
*/
|
|
1294
|
-
line_count_actual?: number;
|
|
1295
|
-
/**
|
|
1296
|
-
* The anticipated number of characters in the story.
|
|
1297
|
-
*/
|
|
1298
|
-
character_count_planned?: number;
|
|
1299
|
-
/**
|
|
1300
|
-
* The current number of characters in the story.
|
|
1301
|
-
*/
|
|
1302
|
-
character_count_actual?: number;
|
|
1303
|
-
/**
|
|
1304
|
-
* The encoding used for counting characters in the story.
|
|
1305
|
-
*/
|
|
1306
|
-
character_encoding?: string;
|
|
1307
|
-
};
|
|
1308
|
-
}
|
|
1309
|
-
/**
|
|
1310
|
-
* Trait that applies workflow information to a document or resource. In the Arc ecosystem, this data is generated by WebSked.
|
|
1311
|
-
*/
|
|
1312
|
-
export interface WorkflowInformation {
|
|
1313
|
-
additional_properties?: HasAdditionalProperties;
|
|
1314
|
-
/**
|
|
1315
|
-
* Code indicating the story's current workflow status. This number should match the values configured in WebSked.
|
|
1316
|
-
*/
|
|
1317
|
-
status_code?: number;
|
|
1318
|
-
/**
|
|
1319
|
-
* This note will be used for any task automatically generated via WebSked task triggers.
|
|
1320
|
-
*/
|
|
1321
|
-
note?: string;
|
|
1322
|
-
}
|
|
1323
|
-
/**
|
|
1324
|
-
* Trait that represents a story's pitches. In the Arc ecosystem, this data is generated by WebSked.
|
|
1325
|
-
*/
|
|
1326
|
-
export interface Pitches {
|
|
1327
|
-
additional_properties?: HasAdditionalProperties;
|
|
1328
|
-
/**
|
|
1329
|
-
* A list of the story's pitches to a platform.
|
|
1330
|
-
*/
|
|
1331
|
-
platform?: PlatformPitch[];
|
|
1332
|
-
/**
|
|
1333
|
-
* A list of the story's pitches to a publication.
|
|
1334
|
-
*/
|
|
1335
|
-
publication?: PublicationPitch[];
|
|
1336
|
-
}
|
|
1337
|
-
/**
|
|
1338
|
-
* Trait that represents a pitch to a platform. In the Arc ecosystem, this data is generated by WebSked.
|
|
1339
|
-
*/
|
|
1340
|
-
export interface PlatformPitch {
|
|
1341
|
-
additional_properties?: HasAdditionalProperties;
|
|
1342
|
-
/**
|
|
1343
|
-
* The path of the platform that this pitch targets.
|
|
1344
|
-
*/
|
|
1345
|
-
platform_path?: string;
|
|
1346
|
-
creation_event?: PlatformPitchEvent;
|
|
1347
|
-
latest_event?: PlatformPitchEvent;
|
|
1348
|
-
}
|
|
1349
|
-
/**
|
|
1350
|
-
* Trait that represents an update event for a pitch to a platform. In the Arc ecosystem, this data is generated by WebSked.
|
|
1351
|
-
*/
|
|
1352
|
-
export interface PlatformPitchEvent {
|
|
1353
|
-
additional_properties?: HasAdditionalProperties;
|
|
1354
|
-
/**
|
|
1355
|
-
* The current status of the pitch.
|
|
1356
|
-
*/
|
|
1357
|
-
status?: string;
|
|
1358
|
-
/**
|
|
1359
|
-
* The time of this update.
|
|
1360
|
-
*/
|
|
1361
|
-
time?: string;
|
|
1362
|
-
/**
|
|
1363
|
-
* The ID of the user who made this update.
|
|
1364
|
-
*/
|
|
1365
|
-
user_id?: string;
|
|
1366
|
-
/**
|
|
1367
|
-
* Optional note associated with this update.
|
|
1368
|
-
*/
|
|
1369
|
-
note?: string;
|
|
1370
|
-
}
|
|
1371
|
-
/**
|
|
1372
|
-
* Trait that represents a pitch to a publication. In the Arc ecosystem, this data is generated by WebSked.
|
|
1373
|
-
*/
|
|
1374
|
-
export interface PublicationPitch {
|
|
1375
|
-
additional_properties?: HasAdditionalProperties;
|
|
1376
|
-
/**
|
|
1377
|
-
* The ID of the publication that this pitch targets.
|
|
1378
|
-
*/
|
|
1379
|
-
publication_id?: string;
|
|
1380
|
-
creation_event?: PublicationPitchEvent;
|
|
1381
|
-
latest_event?: PublicationPitchEvent;
|
|
1382
|
-
}
|
|
1383
|
-
/**
|
|
1384
|
-
* Trait that represents an update event for a pitch to a publication. In the Arc ecosystem, this data is generated by WebSked.
|
|
1385
|
-
*/
|
|
1386
|
-
export interface PublicationPitchEvent {
|
|
1387
|
-
additional_properties?: HasAdditionalProperties;
|
|
1388
|
-
/**
|
|
1389
|
-
* The current status of the pitch.
|
|
1390
|
-
*/
|
|
1391
|
-
status?: string;
|
|
1392
|
-
/**
|
|
1393
|
-
* The time of this update.
|
|
1394
|
-
*/
|
|
1395
|
-
time?: string;
|
|
1396
|
-
/**
|
|
1397
|
-
* The ID of the user who made this update.
|
|
1398
|
-
*/
|
|
1399
|
-
user_id?: string;
|
|
1400
|
-
/**
|
|
1401
|
-
* Optional note associated with this update.
|
|
1402
|
-
*/
|
|
1403
|
-
note?: string;
|
|
1404
|
-
/**
|
|
1405
|
-
* The ID of the publication edition that this pitch targets.
|
|
1406
|
-
*/
|
|
1407
|
-
edition_id?: string;
|
|
1408
|
-
/**
|
|
1409
|
-
* The time of the publication edition that this pitch targets.
|
|
1410
|
-
*/
|
|
1411
|
-
edition_time?: string;
|
|
1412
|
-
}
|
|
1413
|
-
/**
|
|
1414
|
-
* Key-boolean pair of syndication services where this article may go
|
|
1415
|
-
*/
|
|
1416
|
-
export interface Syndication {
|
|
1417
|
-
/**
|
|
1418
|
-
* Necessary for fulfilling contractual agreements with third party clients
|
|
1419
|
-
*/
|
|
1420
|
-
external_distribution?: boolean;
|
|
1421
|
-
/**
|
|
1422
|
-
* Necessary so that we can filter out all articles that editorial has deemed should not be discoverable via search
|
|
1423
|
-
*/
|
|
1424
|
-
search?: boolean;
|
|
1425
|
-
/**
|
|
1426
|
-
* This interface was referenced by `Syndication`'s JSON-Schema definition
|
|
1427
|
-
* via the `patternProperty` ".*".
|
|
1428
|
-
*/
|
|
1429
|
-
[k: string]: boolean | undefined;
|
|
1430
|
-
}
|
|
1431
|
-
/**
|
|
1432
|
-
* Information about the original source and/or owner of this content
|
|
1433
|
-
*/
|
|
1434
|
-
export interface Source {
|
|
1435
|
-
/**
|
|
1436
|
-
* The id of this content in a foreign CMS.
|
|
1437
|
-
*/
|
|
1438
|
-
source_id?: string;
|
|
1439
|
-
/**
|
|
1440
|
-
* Deprecated in 0.10.10. See `distributor.category` and `distributor.subcategory`. (Formerly: The method used to enter this content. E.g. 'staff', 'wires'.)
|
|
1441
|
-
*/
|
|
1442
|
-
source_type?: string;
|
|
1443
|
-
/**
|
|
1444
|
-
* Deprecated in 0.10.10. See `distributor.name`. (Formerly: The human-readable name of the organization who first produced this content. E.g., 'Reuters'.)
|
|
1445
|
-
*/
|
|
1446
|
-
name?: string;
|
|
1447
|
-
/**
|
|
1448
|
-
* The software (CMS or editor) that was used to enter this content. E.g., 'wordpress', 'ellipsis'.
|
|
1449
|
-
*/
|
|
1450
|
-
system?: string;
|
|
1451
|
-
/**
|
|
1452
|
-
* A link to edit this content in its source CMS.
|
|
1453
|
-
*/
|
|
1454
|
-
edit_url?: string;
|
|
1455
|
-
additional_properties?: HasAdditionalProperties;
|
|
1456
|
-
}
|
|
1457
|
-
/**
|
|
1458
|
-
* Tracking information, probably implementation-dependent
|
|
1459
|
-
*/
|
|
1460
|
-
export interface Tracking {
|
|
1461
|
-
[k: string]: unknown;
|
|
1462
|
-
}
|
|
1463
|
-
/**
|
|
1464
|
-
* Comment configuration data
|
|
1465
|
-
*/
|
|
1466
|
-
export interface Comments {
|
|
1467
|
-
/**
|
|
1468
|
-
* How long (in days) after publish date until comments are closed.
|
|
1469
|
-
*/
|
|
1470
|
-
comments_period?: number;
|
|
1471
|
-
/**
|
|
1472
|
-
* If false, commenting is disabled on this content.
|
|
1473
|
-
*/
|
|
1474
|
-
allow_comments?: boolean;
|
|
1475
|
-
/**
|
|
1476
|
-
* If false, do not render comments on this content.
|
|
1477
|
-
*/
|
|
1478
|
-
display_comments?: boolean;
|
|
1479
|
-
/**
|
|
1480
|
-
* If true, comments must be moderator-approved before being displayed.
|
|
1481
|
-
*/
|
|
1482
|
-
moderation_required?: boolean;
|
|
1483
|
-
additional_properties?: HasAdditionalProperties;
|
|
1484
|
-
[k: string]: unknown;
|
|
1485
|
-
}
|
|
1486
|
-
/**
|
|
1487
|
-
* What the Washington Post calls a Kicker
|
|
1488
|
-
*/
|
|
1489
|
-
export interface Label {
|
|
1490
|
-
/**
|
|
1491
|
-
* The default label object for this piece of content.
|
|
1492
|
-
*/
|
|
1493
|
-
basic?: {
|
|
1494
|
-
/**
|
|
1495
|
-
* The text of this label.
|
|
1496
|
-
*/
|
|
1497
|
-
text: string;
|
|
1498
|
-
/**
|
|
1499
|
-
* An optional destination url of this label.
|
|
1500
|
-
*/
|
|
1501
|
-
url?: string;
|
|
1502
|
-
/**
|
|
1503
|
-
* If false, this label should be hidden.
|
|
1504
|
-
*/
|
|
1505
|
-
display?: boolean;
|
|
1506
|
-
additional_properties?: HasAdditionalProperties;
|
|
1507
|
-
};
|
|
1508
|
-
/**
|
|
1509
|
-
* Additional user-defined keyed label objects.
|
|
1510
|
-
*
|
|
1511
|
-
* This interface was referenced by `Label`'s JSON-Schema definition
|
|
1512
|
-
* via the `patternProperty` "^[a-zA-Z0-9_]*$".
|
|
1513
|
-
*/
|
|
1514
|
-
[k: string]: {
|
|
1515
|
-
/**
|
|
1516
|
-
* The text of this label.
|
|
1517
|
-
*/
|
|
1518
|
-
text: string;
|
|
1519
|
-
/**
|
|
1520
|
-
* An optional destination url of this label.
|
|
1521
|
-
*/
|
|
1522
|
-
url?: string;
|
|
1523
|
-
/**
|
|
1524
|
-
* If false, this label should be hidden.
|
|
1525
|
-
*/
|
|
1526
|
-
display?: boolean;
|
|
1527
|
-
additional_properties?: HasAdditionalProperties;
|
|
1528
|
-
} | undefined;
|
|
1529
|
-
}
|
|
1530
|
-
/**
|
|
1531
|
-
* Trait that applies contains the content restrictions of an ANS object.
|
|
1532
|
-
*/
|
|
1533
|
-
export interface ContentRestrictions {
|
|
1534
|
-
/**
|
|
1535
|
-
* The content restriction code/level/flag associated with the ANS object
|
|
1536
|
-
*/
|
|
1537
|
-
content_code?: string;
|
|
1538
|
-
/**
|
|
1539
|
-
* Embargo configuration to enforce publishing restrictions. Embargoed content must not go live.
|
|
1540
|
-
*/
|
|
1541
|
-
embargo?: {
|
|
1542
|
-
/**
|
|
1543
|
-
* The boolean flag to indicate if the embargo is active or not. If this field is false, ignore the embargo.
|
|
1544
|
-
*/
|
|
1545
|
-
active: boolean;
|
|
1546
|
-
/**
|
|
1547
|
-
* An optional end time for the embargo to indicate when it ends. When it's not defined, it means the embargo keeps applying. The end time should be ignored if active flag is false.
|
|
1548
|
-
*/
|
|
1549
|
-
end_time?: string;
|
|
1550
|
-
/**
|
|
1551
|
-
* An optional description for the embargo.
|
|
1552
|
-
*/
|
|
1553
|
-
description?: string;
|
|
1554
|
-
};
|
|
1555
|
-
/**
|
|
1556
|
-
* Geo-Restriction configuration that contains the restriction ids that this content should be associated with.
|
|
1557
|
-
*/
|
|
1558
|
-
geo?: {
|
|
1559
|
-
/**
|
|
1560
|
-
* An array containing the geo-restriction objects. Limited to a size of 1 for now.
|
|
1561
|
-
*
|
|
1562
|
-
* @minItems 1
|
|
1563
|
-
* @maxItems 1
|
|
1564
|
-
*/
|
|
1565
|
-
restrictions: [
|
|
1566
|
-
{
|
|
1567
|
-
/**
|
|
1568
|
-
* The _id of the restriction that is stored in Global Settings.
|
|
1569
|
-
*/
|
|
1570
|
-
restriction_id: string;
|
|
1571
|
-
}
|
|
1572
|
-
];
|
|
1573
|
-
};
|
|
1574
|
-
[k: string]: unknown;
|
|
1575
|
-
}
|
|
1576
|
-
/**
|
|
1577
|
-
* Trait that holds information on who created and contributed to a given document in Arc.
|
|
1578
|
-
*/
|
|
1579
|
-
export interface Contributors {
|
|
1580
|
-
/**
|
|
1581
|
-
* The Creator of the Document.
|
|
1582
|
-
*/
|
|
1583
|
-
created_by?: {
|
|
1584
|
-
/**
|
|
1585
|
-
* The unique ID of the Arc user who created the Document
|
|
1586
|
-
*/
|
|
1587
|
-
user_id?: string;
|
|
1588
|
-
/**
|
|
1589
|
-
* The display name of the Arc user who created the Document
|
|
1590
|
-
*/
|
|
1591
|
-
display_name?: string;
|
|
1592
|
-
[k: string]: unknown;
|
|
1593
|
-
};
|
|
1594
|
-
}
|
|
1595
|
-
/**
|
|
1596
|
-
* An html content element
|
|
1597
|
-
*/
|
|
1598
|
-
export interface HttpsRawGithubusercontentComWashingtonpostAnsSchemaMasterSrcMainResourcesSchemaAns01010StoryElementsRawHtmlJson {
|
|
1599
|
-
type: 'raw_html';
|
|
1600
|
-
_id?: GloballyUniqueIDTrait;
|
|
1601
|
-
subtype?: SubtypeOrTemplate;
|
|
1602
|
-
channels?: ChannelTrait;
|
|
1603
|
-
alignment?: Alignment;
|
|
1604
|
-
additional_properties?: HasAdditionalProperties;
|
|
1605
|
-
/**
|
|
1606
|
-
* Any arbitrary chunk of HTML.
|
|
1607
|
-
*/
|
|
1608
|
-
content: string;
|
|
1609
|
-
}
|
|
1610
|
-
/**
|
|
1611
|
-
* Coordinates representing the 'visual center' of an image. The X axis is horizontal line and the Y axis the vertical line, with 0,0 being the LEFT, TOP of the image.
|
|
1612
|
-
*/
|
|
1613
|
-
export interface FocalPoint {
|
|
1614
|
-
/**
|
|
1615
|
-
* The coordinate point on the horizontal axis
|
|
1616
|
-
*/
|
|
1617
|
-
x: number;
|
|
1618
|
-
/**
|
|
1619
|
-
* The coordinate point on the vertical axis
|
|
1620
|
-
*/
|
|
1621
|
-
y: number;
|
|
1622
|
-
[k: string]: unknown;
|
|
1623
|
-
}
|
|
1624
|
-
/**
|
|
1625
|
-
* Mapping of integers to tokens, where the integer represents the Signing Service's secret version, and token represents an object's public key for usage on the frontend.
|
|
1626
|
-
*/
|
|
1627
|
-
export interface Auth {
|
|
1628
|
-
/**
|
|
1629
|
-
* This interface was referenced by `Auth`'s JSON-Schema definition
|
|
1630
|
-
* via the `patternProperty` "^\d+$".
|
|
1631
|
-
*/
|
|
1632
|
-
[k: string]: string;
|
|
1633
|
-
}
|
|
1634
|
-
export interface Book1 {
|
|
1635
|
-
book_title?: Title1;
|
|
1636
|
-
book_url?: URL1;
|
|
1637
|
-
}
|
|
1638
|
-
export interface School1 {
|
|
1639
|
-
school_name?: SchoolName1;
|
|
1640
|
-
}
|