@code.store/arcxp-sdk-ts 4.32.1 → 4.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/dist/ans/doc.d.ts +56 -0
  2. package/dist/ans/doc.js +132 -0
  3. package/dist/ans/doc.js.map +1 -0
  4. package/dist/ans/image.d.ts +5 -0
  5. package/dist/ans/image.js +12 -0
  6. package/dist/ans/image.js.map +1 -0
  7. package/dist/ans/index.d.ts +3 -0
  8. package/dist/ans/index.js +10 -0
  9. package/dist/ans/index.js.map +1 -0
  10. package/dist/ans/story.d.ts +58 -0
  11. package/dist/ans/story.js +83 -0
  12. package/dist/ans/story.js.map +1 -0
  13. package/dist/api/abstract-api.d.ts +1 -1
  14. package/dist/api/abstract-api.js +1 -1
  15. package/dist/api/abstract-api.js.map +1 -1
  16. package/dist/api/author/index.d.ts +2 -2
  17. package/dist/api/author/index.js +1 -1
  18. package/dist/api/author/index.js.map +1 -1
  19. package/dist/api/author/types.d.ts +1 -1
  20. package/dist/api/content/index.d.ts +3 -3
  21. package/dist/api/content/index.js +5 -7
  22. package/dist/api/content/index.js.map +1 -1
  23. package/dist/api/content/types.d.ts +2 -2
  24. package/dist/api/content-ops/index.d.ts +2 -2
  25. package/dist/api/content-ops/index.js +4 -4
  26. package/dist/api/content-ops/index.js.map +1 -1
  27. package/dist/api/draft/index.d.ts +2 -2
  28. package/dist/api/global-settings/index.d.ts +2 -2
  29. package/dist/api/global-settings/index.js +2 -2
  30. package/dist/api/global-settings/index.js.map +1 -1
  31. package/dist/api/identity/index.d.ts +2 -2
  32. package/dist/api/identity/index.js.map +1 -1
  33. package/dist/api/ifx/index.d.ts +2 -2
  34. package/dist/api/ifx/index.js +2 -2
  35. package/dist/api/ifx/index.js.map +1 -1
  36. package/dist/api/index.d.ts +7 -6
  37. package/dist/api/index.js +5 -5
  38. package/dist/api/index.js.map +1 -1
  39. package/dist/api/migration-center/index.d.ts +2 -2
  40. package/dist/api/migration-center/index.js +4 -7
  41. package/dist/api/migration-center/index.js.map +1 -1
  42. package/dist/api/migration-center/types.d.ts +8 -6
  43. package/dist/api/migration-center/types.js.map +1 -1
  44. package/dist/api/photo-center/index.d.ts +4 -4
  45. package/dist/api/photo-center/index.js +3 -3
  46. package/dist/api/photo-center/index.js.map +1 -1
  47. package/dist/api/photo-center/types.d.ts +2 -2
  48. package/dist/api/redirect/index.d.ts +2 -2
  49. package/dist/api/redirect/index.js +1 -1
  50. package/dist/api/redirect/index.js.map +1 -1
  51. package/dist/api/retail-events/index.d.ts +1 -1
  52. package/dist/api/retail-events/index.js.map +1 -1
  53. package/dist/api/sales/index.d.ts +2 -2
  54. package/dist/api/sales/index.js +1 -1
  55. package/dist/api/sales/index.js.map +1 -1
  56. package/dist/api/signing-service/index.d.ts +2 -2
  57. package/dist/api/signing-service/index.js.map +1 -1
  58. package/dist/api/site/index.d.ts +3 -3
  59. package/dist/api/site/index.js.map +1 -1
  60. package/dist/api/site/types.d.ts +1 -1
  61. package/dist/api/tags/index.d.ts +2 -2
  62. package/dist/api/tags/index.js +4 -4
  63. package/dist/api/tags/index.js.map +1 -1
  64. package/dist/api/websked/index.d.ts +2 -2
  65. package/dist/api/websked/index.js +1 -1
  66. package/dist/api/websked/index.js.map +1 -1
  67. package/dist/api/ws.client.d.ts +1 -1
  68. package/dist/api/ws.client.js +1 -1
  69. package/dist/api/ws.client.js.map +1 -1
  70. package/dist/content-elements/index.d.ts +1 -1
  71. package/dist/index.d.ts +5 -4
  72. package/dist/index.js +7 -5
  73. package/dist/index.js.map +1 -1
  74. package/dist/scripts/json-schema-to-ts.js +2 -2
  75. package/dist/scripts/json-schema-to-ts.js.map +1 -1
  76. package/dist/tests/ans/story.test.d.ts +1 -0
  77. package/dist/tests/ans/story.test.js +69 -0
  78. package/dist/tests/ans/story.test.js.map +1 -0
  79. package/dist/tests/api/utils.test.js +1 -1
  80. package/dist/tests/api/utils.test.js.map +1 -1
  81. package/dist/types/author.js +0 -1
  82. package/dist/types/author.js.map +1 -1
  83. package/dist/types/gallery.d.ts +1 -1
  84. package/dist/types/index.d.ts +2 -0
  85. package/dist/types/index.js +3 -1
  86. package/dist/types/index.js.map +1 -1
  87. package/dist/types/story.js +0 -1
  88. package/dist/types/story.js.map +1 -1
  89. package/dist/types/utils.d.ts +2 -0
  90. package/dist/types/utils.js +3 -0
  91. package/dist/types/utils.js.map +1 -0
  92. package/dist/types/video.d.ts +1425 -0
  93. package/dist/types/video.js +8 -0
  94. package/dist/types/video.js.map +1 -0
  95. package/dist/utils/arc/ans.d.ts +1 -1
  96. package/dist/utils/arc/content.d.ts +1 -1
  97. package/dist/utils/arc/content.js +1 -4
  98. package/dist/utils/arc/content.js.map +1 -1
  99. package/dist/utils/arc/index.d.ts +1 -1
  100. package/dist/utils/arc/index.js +2 -2
  101. package/dist/utils/arc/index.js.map +1 -1
  102. package/dist/utils/cache.d.ts +1 -1
  103. package/dist/utils/cache.js +3 -3
  104. package/dist/utils/cache.js.map +1 -1
  105. package/dist/utils/decorator.d.ts +2 -2
  106. package/dist/utils/decorator.js +1 -1
  107. package/dist/utils/decorator.js.map +1 -1
  108. package/package.json +5 -6
@@ -0,0 +1,1425 @@
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.8.0';
14
+ /**
15
+ * A more granular type than story, gallery, etc. (E.g., column, blog_post)
16
+ */
17
+ export type SubtypeTrait = string;
18
+ /**
19
+ * An optional list of output types for which this element should be visible
20
+ */
21
+ export type ChannelTrait = string[];
22
+ /**
23
+ * A property used to determine horizontal positioning of a content element relative to the elements that immediately follow it in the element sequence.
24
+ */
25
+ export type Alignment = 'left' | 'right' | 'center';
26
+ /**
27
+ * The primary language of the content. The value should follow IETF BCP47. (e.g. 'en', 'es-419', etc.)
28
+ */
29
+ export type DescribesLanguageForAnElement = string;
30
+ /**
31
+ * A copyright notice for the legal owner of this content. E.g., '© 1996-2018 The Washington Post.' Format may vary between organizations.
32
+ */
33
+ export type CopyrightInformation = string;
34
+ /**
35
+ * 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.
36
+ */
37
+ export type CanonicalURL = string;
38
+ /**
39
+ * The _id of the website from which this document was originally authored. In conjunction with canonical_url, 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 field.
40
+ */
41
+ export type CanonicalWebsite = string;
42
+ /**
43
+ * 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.
44
+ */
45
+ export type Website = string;
46
+ /**
47
+ * The relative URL to this document on the website specified by the `website` field. In a multi-site context, this is the url that is typically queried on when fetching by URL. It may be different than canonical_url. Generated at fetch time by Content API.
48
+ */
49
+ export type WebsiteURL = string;
50
+ /**
51
+ * A url-shortened version of the canonical url.
52
+ */
53
+ export type Short_Url = string;
54
+ /**
55
+ * When the content was originally created (RFC3339-formatted). In the Arc ecosystem, this will be automatically generated for stories in the Story API.
56
+ */
57
+ export type CreatedDate = string;
58
+ /**
59
+ * When the content was last updated (RFC3339-formatted).
60
+ */
61
+ export type LastUpdatedDate = string;
62
+ /**
63
+ * When the story was published.
64
+ */
65
+ export type Publish_Date = string;
66
+ /**
67
+ * When the story was first published.
68
+ */
69
+ export type FirstPublishDate = string;
70
+ /**
71
+ * The RFC3339-formatted dated time of the most recent date the story was (re)displayed on a public site.
72
+ */
73
+ export type Display_Date = string;
74
+ /**
75
+ * A description of the location, useful if a full address or lat/long specification is overkill.
76
+ */
77
+ export type LocationRelatedTrait = string;
78
+ /**
79
+ * Additional information to be displayed near the content from the editor.
80
+ */
81
+ export type Editor_Note = string;
82
+ /**
83
+ * Optional field to story story workflow related status (e.g. published/embargoed/etc)
84
+ */
85
+ export type Status = string;
86
+ /**
87
+ * The full human name of contributor. See also byline, first_name, last_name, middle_name, suffix.
88
+ */
89
+ export type Name = string;
90
+ /**
91
+ * A short reference name for internal editorial use
92
+ */
93
+ export type Slug = string;
94
+ /**
95
+ * This note is used for shared communication inside the newsroom.
96
+ */
97
+ export type InternalNote = string;
98
+ /**
99
+ * 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.
100
+ */
101
+ export type BudgetLine = string;
102
+ /**
103
+ * Information about a third party that provided this content from outside this document's hosted organization.
104
+ */
105
+ export type Distributor = {
106
+ /**
107
+ * The human-readable name of the distributor of this content. E.g., Reuters.
108
+ */
109
+ name?: string;
110
+ /**
111
+ * 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.
112
+ */
113
+ category?: 'staff' | 'wires' | 'freelance' | 'stock' | 'handout' | 'other';
114
+ /**
115
+ * The machine-readable subcategory of how this content was produced. E.g., 'freelance - signed'. May vary between organizations.
116
+ */
117
+ subcategory?: string;
118
+ additional_properties?: HasAdditionalProperties;
119
+ mode?: 'custom';
120
+ } | {
121
+ /**
122
+ * The ARC UUID of the distributor of this content. E.g., ABCDEFGHIJKLMNOPQRSTUVWXYZ.
123
+ */
124
+ reference_id: string;
125
+ mode: 'reference';
126
+ };
127
+ /**
128
+ * An list of alternate names that this content can be fetched by instead of id.
129
+ */
130
+ export type AliasesTrait = string[];
131
+ /**
132
+ * Links to various social media
133
+ */
134
+ export type SocialLinks = {
135
+ site?: string;
136
+ url?: string;
137
+ [k: string]: unknown;
138
+ }[];
139
+ /**
140
+ * The real first name of a human author.
141
+ */
142
+ export type FirstName = string;
143
+ /**
144
+ * The real middle name of a human author.
145
+ */
146
+ export type MiddleName = string;
147
+ /**
148
+ * The real last name of a human author.
149
+ */
150
+ export type LastName = string;
151
+ /**
152
+ * The real suffix of a human author.
153
+ */
154
+ export type Suffix = string;
155
+ /**
156
+ * The public-facing name, or nom-de-plume, name of the author.
157
+ */
158
+ export type Byline = string;
159
+ /**
160
+ * The city or locality that the author resides in or is primarily associated with.
161
+ */
162
+ export type Location = string;
163
+ /**
164
+ * The desk or group that this author normally reports to. E.g., 'Politics' or 'Sports.'
165
+ */
166
+ export type Division = string;
167
+ /**
168
+ * The professional email address of this author.
169
+ */
170
+ export type EMail = string;
171
+ /**
172
+ * The organizational role or title of this author.
173
+ */
174
+ export type Role = string;
175
+ /**
176
+ * A comma-delimited list of subjects the author in which the author has expertise.
177
+ */
178
+ export type Expertise = string;
179
+ /**
180
+ * The name of an organization the author is affiliated with. E.g., The Washington Post, or George Mason University.
181
+ */
182
+ export type Affiliation = string;
183
+ /**
184
+ * 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.
185
+ */
186
+ export type Languages = string;
187
+ /**
188
+ * A one or two sentence description of the author.
189
+ */
190
+ export type ShortBiography = string;
191
+ /**
192
+ * The full biography of the author.
193
+ */
194
+ export type LongBiography = string;
195
+ /**
196
+ * The book title.
197
+ */
198
+ export type Title = string;
199
+ /**
200
+ * A link to a page to purchase or learn more about the book.
201
+ */
202
+ export type URL = string;
203
+ /**
204
+ * A list of books written by the author.
205
+ */
206
+ export type Books = Book[];
207
+ /**
208
+ * The name of the school.
209
+ */
210
+ export type SchoolName = string;
211
+ /**
212
+ * A list of schools that this author has graduated from.
213
+ */
214
+ export type Education = School[];
215
+ /**
216
+ * The name of the award.
217
+ */
218
+ export type AwardName = string;
219
+ /**
220
+ * A list of awards the author has received.
221
+ */
222
+ export type Awards = {
223
+ award_name?: AwardName;
224
+ }[];
225
+ /**
226
+ * If true, this author is an external contributor to the publication.
227
+ */
228
+ export type Contributor = boolean;
229
+ /**
230
+ * 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.'
231
+ */
232
+ export type Org = string;
233
+ /**
234
+ * Links to various social media
235
+ */
236
+ export type SocialLinks1 = {
237
+ site?: string;
238
+ url?: string;
239
+ [k: string]: unknown;
240
+ }[];
241
+ /**
242
+ * The primary author(s) of this document. For a story, is is the writer or reporter. For an image, it is the photographer.
243
+ */
244
+ export type By = (AnAuthorOfAPieceOfContent | RepresentationOfANormalizedElement)[];
245
+ /**
246
+ * 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.
247
+ */
248
+ export type PhotosBy = (AnAuthorOfAPieceOfContent | RepresentationOfANormalizedElement)[];
249
+ /**
250
+ * Trait that applies a list of corrections to a document.
251
+ */
252
+ export type Corrections = Correction[];
253
+ /**
254
+ * Holds attributes of an ANS video component. In the Arc ecosystem, these are stored in Goldfish.
255
+ */
256
+ export interface VideoContent {
257
+ type: 'video';
258
+ _id?: GloballyUniqueIDTrait;
259
+ version: DescribesTheANSVersionOfThisObject;
260
+ subtype?: SubtypeTrait;
261
+ channels?: ChannelTrait;
262
+ alignment?: Alignment;
263
+ language?: DescribesLanguageForAnElement;
264
+ copyright?: CopyrightInformation;
265
+ canonical_url?: CanonicalURL;
266
+ canonical_website?: CanonicalWebsite;
267
+ website?: Website;
268
+ website_url?: WebsiteURL;
269
+ short_url?: Short_Url;
270
+ created_date?: CreatedDate;
271
+ last_updated_date?: LastUpdatedDate;
272
+ publish_date?: Publish_Date;
273
+ first_publish_date?: FirstPublishDate;
274
+ display_date?: Display_Date;
275
+ location?: LocationRelatedTrait;
276
+ geo?: Geo;
277
+ address?: Address;
278
+ editor_note?: Editor_Note;
279
+ status?: Status;
280
+ headlines?: Headlines;
281
+ subheadlines?: SubHeadlines;
282
+ description?: Description;
283
+ credits?: CreditTrait;
284
+ taxonomy?: Taxonomy;
285
+ promo_items?: PromoItems;
286
+ related_content?: Related_Content;
287
+ owner?: OwnerInformation;
288
+ planning?: SchedulingInformation;
289
+ workflow?: WorkflowInformation;
290
+ pitches?: Pitches;
291
+ revision?: Revision;
292
+ syndication?: Syndication;
293
+ source?: Source;
294
+ distributor?: Distributor;
295
+ tracking?: Tracking;
296
+ comments?: Comments;
297
+ label?: Label;
298
+ slug?: Slug;
299
+ content_restrictions?: ContentRestrictions;
300
+ additional_properties?: HasAdditionalProperties;
301
+ content_aliases?: AliasesTrait;
302
+ /**
303
+ * Runtime of the video in milliseconds.
304
+ */
305
+ duration?: number;
306
+ /**
307
+ * A transcript of the contents of the video.
308
+ */
309
+ transcript?: string;
310
+ /**
311
+ * A rating of the video, to be used for appropriate age/content warnings.
312
+ */
313
+ rating?: string;
314
+ /**
315
+ * The type of video (e.g. clip, livestream, etc)
316
+ */
317
+ video_type?: string;
318
+ /**
319
+ * The YouTube ID of the content, if (re)hosted on youtube.com
320
+ */
321
+ youtube_content_id?: string;
322
+ /**
323
+ * The different streams this video can play in.
324
+ */
325
+ streams?: AStreamOfVideo[];
326
+ subtitles?: VideoSubtitleConfigurationSchema;
327
+ promo_image?: AnImage1;
328
+ /**
329
+ * An HTML snippet used to embed this video in another document. Used for oembed responses.
330
+ */
331
+ embed_html?: string;
332
+ corrections?: Corrections;
333
+ websites?: WebsitesInput;
334
+ }
335
+ /**
336
+ * Latitidue and Longitude of the content
337
+ */
338
+ export interface Geo {
339
+ latitude?: number;
340
+ longitude?: number;
341
+ [k: string]: unknown;
342
+ }
343
+ /**
344
+ * An Address following the convention of http://microformats.org/wiki/hcard
345
+ */
346
+ export interface Address {
347
+ post_office_box?: string;
348
+ extended_address?: string;
349
+ street_address?: string;
350
+ locality?: string;
351
+ region?: string;
352
+ postal_code?: string;
353
+ country_name?: string;
354
+ additional_properties?: HasAdditionalProperties;
355
+ }
356
+ /**
357
+ * A grab-bag object for non-validatable data.
358
+ */
359
+ export interface HasAdditionalProperties {
360
+ [k: string]: unknown;
361
+ }
362
+ /**
363
+ * The headline(s) or title for this content. The 'basic' key is required.
364
+ */
365
+ export interface Headlines {
366
+ basic: string;
367
+ /**
368
+ * This interface was referenced by `Headlines`'s JSON-Schema definition
369
+ * via the `patternProperty` ".*".
370
+ *
371
+ * This interface was referenced by `SubHeadlines`'s JSON-Schema definition
372
+ * via the `patternProperty` ".*".
373
+ *
374
+ * This interface was referenced by `Description`'s JSON-Schema definition
375
+ * via the `patternProperty` ".*".
376
+ */
377
+ [k: string]: string;
378
+ }
379
+ /**
380
+ * The sub-headline(s) for the content.
381
+ */
382
+ export interface SubHeadlines {
383
+ basic: string;
384
+ /**
385
+ * This interface was referenced by `Headlines`'s JSON-Schema definition
386
+ * via the `patternProperty` ".*".
387
+ *
388
+ * This interface was referenced by `SubHeadlines`'s JSON-Schema definition
389
+ * via the `patternProperty` ".*".
390
+ *
391
+ * This interface was referenced by `Description`'s JSON-Schema definition
392
+ * via the `patternProperty` ".*".
393
+ */
394
+ [k: string]: string;
395
+ }
396
+ /**
397
+ * The descriptions, or blurbs, for the content.
398
+ */
399
+ export interface Description {
400
+ basic: string;
401
+ /**
402
+ * This interface was referenced by `Headlines`'s JSON-Schema definition
403
+ * via the `patternProperty` ".*".
404
+ *
405
+ * This interface was referenced by `SubHeadlines`'s JSON-Schema definition
406
+ * via the `patternProperty` ".*".
407
+ *
408
+ * This interface was referenced by `Description`'s JSON-Schema definition
409
+ * via the `patternProperty` ".*".
410
+ */
411
+ [k: string]: string;
412
+ }
413
+ /**
414
+ * 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.
415
+ */
416
+ export interface CreditTrait {
417
+ by?: By;
418
+ photos_by?: PhotosBy;
419
+ /**
420
+ * This interface was referenced by `CreditTrait`'s JSON-Schema definition
421
+ * via the `patternProperty` "^[a-zA-Z0-9_]*".
422
+ */
423
+ [k: string]: (AnAuthorOfAPieceOfContent | RepresentationOfANormalizedElement)[] | undefined;
424
+ }
425
+ /**
426
+ * 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.
427
+ */
428
+ export interface AnAuthorOfAPieceOfContent {
429
+ _id?: GloballyUniqueIDTrait;
430
+ /**
431
+ * Indicates that this is an author
432
+ */
433
+ type: 'author';
434
+ version?: DescribesTheANSVersionOfThisObject;
435
+ name: Name;
436
+ image?: AnImage;
437
+ /**
438
+ * A link to an author's landing page on the website, or a personal website.
439
+ */
440
+ url?: string;
441
+ social_links?: SocialLinks;
442
+ slug?: Slug;
443
+ first_name?: FirstName;
444
+ middle_name?: MiddleName;
445
+ last_name?: LastName;
446
+ suffix?: Suffix;
447
+ byline?: Byline;
448
+ location?: Location;
449
+ division?: Division;
450
+ email?: EMail;
451
+ role?: Role;
452
+ expertise?: Expertise;
453
+ affiliation?: Affiliation;
454
+ languages?: Languages;
455
+ bio?: ShortBiography;
456
+ long_bio?: LongBiography;
457
+ books?: Books;
458
+ education?: Education;
459
+ awards?: Awards;
460
+ contributor?: Contributor;
461
+ org?: Org;
462
+ socialLinks?: SocialLinks1;
463
+ additional_properties?: HasAdditionalProperties;
464
+ }
465
+ /**
466
+ * Holds attributes of an ANS image component. In the Arc ecosystem, these are stored in Anglerfish.
467
+ */
468
+ export interface AnImage {
469
+ type: 'image';
470
+ _id?: GloballyUniqueIDTrait;
471
+ version: DescribesTheANSVersionOfThisObject;
472
+ subtype?: SubtypeTrait;
473
+ channels?: ChannelTrait;
474
+ alignment?: Alignment;
475
+ language?: DescribesLanguageForAnElement;
476
+ copyright?: CopyrightInformation;
477
+ canonical_url?: CanonicalURL;
478
+ short_url?: Short_Url;
479
+ created_date?: CreatedDate;
480
+ last_updated_date?: LastUpdatedDate;
481
+ publish_date?: Publish_Date;
482
+ first_publish_date?: FirstPublishDate;
483
+ display_date?: Display_Date;
484
+ location?: LocationRelatedTrait;
485
+ geo?: Geo;
486
+ address?: Address;
487
+ editor_note?: Editor_Note;
488
+ status?: Status;
489
+ headlines?: Headlines;
490
+ subheadlines?: SubHeadlines;
491
+ description?: Description;
492
+ credits?: CreditTrait;
493
+ taxonomy?: Taxonomy;
494
+ promo_items?: PromoItems;
495
+ related_content?: Related_Content;
496
+ owner?: OwnerInformation;
497
+ planning?: SchedulingInformation;
498
+ workflow?: WorkflowInformation;
499
+ pitches?: Pitches;
500
+ revision?: Revision;
501
+ syndication?: Syndication;
502
+ source?: Source;
503
+ distributor?: Distributor;
504
+ tracking?: Tracking;
505
+ comments?: Comments;
506
+ label?: Label;
507
+ slug?: Slug;
508
+ content_restrictions?: ContentRestrictions;
509
+ additional_properties?: HasAdditionalProperties;
510
+ /**
511
+ * Subtitle for the image.
512
+ */
513
+ subtitle?: string;
514
+ /**
515
+ * Caption for the image.
516
+ */
517
+ caption?: string;
518
+ /**
519
+ * URL for the image.
520
+ */
521
+ url?: string;
522
+ /**
523
+ * Width for the image.
524
+ */
525
+ width?: number;
526
+ /**
527
+ * Height for the image.
528
+ */
529
+ height?: number;
530
+ /**
531
+ * True if the image can legally be licensed to others.
532
+ */
533
+ licensable?: boolean;
534
+ }
535
+ /**
536
+ * Holds the collection of tags, categories, keywords, etc that describe content.
537
+ */
538
+ export interface Taxonomy {
539
+ /**
540
+ * A list of keywords. In the Arc ecosystem, this list is populated by Clavis.
541
+ */
542
+ keywords?: Keyword[];
543
+ /**
544
+ * A list of named entities. In the Arc ecosystem, this list is populated by Clavis.
545
+ */
546
+ named_entities?: NamedEntity[];
547
+ /**
548
+ * A list of topics. In the Arc ecosystem, this list is populated by Clavis.
549
+ */
550
+ topics?: Topic[];
551
+ /**
552
+ * A list of auxiliaries. In the Arc ecosystem, this list is populated by Clavis.
553
+ */
554
+ auxiliaries?: Auxiliary[];
555
+ tags?: Tag[];
556
+ /**
557
+ * Deprecated in 0.8.0. (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.
558
+ */
559
+ primary_site?: Site | (RepresentationOfANormalizedElement & {
560
+ referent?: {
561
+ type?: 'site';
562
+ [k: string]: unknown;
563
+ };
564
+ [k: string]: unknown;
565
+ });
566
+ /**
567
+ * 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.
568
+ */
569
+ primary_section?: Section | (RepresentationOfANormalizedElement & {
570
+ referent?: {
571
+ type?: 'section';
572
+ [k: string]: unknown;
573
+ };
574
+ [k: string]: unknown;
575
+ });
576
+ /**
577
+ * Deprecated in 0.8.0. (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.
578
+ */
579
+ sites?: (Site | (RepresentationOfANormalizedElement & {
580
+ referent?: {
581
+ type?: 'site';
582
+ [k: string]: unknown;
583
+ };
584
+ [k: string]: unknown;
585
+ }))[];
586
+ /**
587
+ * 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.
588
+ */
589
+ sections?: (Section | (RepresentationOfANormalizedElement & {
590
+ referent?: {
591
+ type?: 'section';
592
+ [k: string]: unknown;
593
+ };
594
+ [k: string]: unknown;
595
+ }))[];
596
+ /**
597
+ * 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.
598
+ */
599
+ seo_keywords?: string[];
600
+ /**
601
+ * 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.
602
+ */
603
+ stock_symbols?: string[];
604
+ /**
605
+ * A list of WebSked task IDs that this content was created or curated to satisfy.
606
+ *
607
+ * @maxItems 200
608
+ */
609
+ associated_tasks?: string[];
610
+ additional_properties?: HasAdditionalProperties;
611
+ }
612
+ /**
613
+ * Models a keyword used in describing a piece of content.
614
+ */
615
+ export interface Keyword {
616
+ /**
617
+ * The keyword used to describe a piece of content
618
+ */
619
+ keyword: string;
620
+ /**
621
+ * An arbitrary weighting to give the keyword
622
+ */
623
+ score: number;
624
+ /**
625
+ * The Part of Speech tag for this keyword.
626
+ */
627
+ tag?: string;
628
+ /**
629
+ * An optional count of the frequency of the keyword as it appears in the content it describes
630
+ */
631
+ frequency?: number;
632
+ }
633
+ /**
634
+ * Models a named entity (i.e. name of a person, place, or organization) used in a piece of content.
635
+ */
636
+ export interface NamedEntity {
637
+ /**
638
+ * A unique identifier for the concept of the named entity.
639
+ */
640
+ _id: string;
641
+ /**
642
+ * The actual string of text that was identified as a named entity.
643
+ */
644
+ name: string;
645
+ /**
646
+ * A description of what the named entity is. E.g. 'organization', 'person', or 'location'.
647
+ */
648
+ type: string;
649
+ score?: number;
650
+ }
651
+ /**
652
+ * Models a topic used in describing a piece of content.
653
+ */
654
+ export interface Topic {
655
+ /**
656
+ * The unique identifier for this topic.
657
+ */
658
+ _id: string;
659
+ /**
660
+ * The general name for this topic.
661
+ */
662
+ name?: string;
663
+ /**
664
+ * An arbitrary weighting to give the topic
665
+ */
666
+ score: number;
667
+ /**
668
+ * A short identifier for this topic. Usually used in cases where a long form id cannot work.
669
+ */
670
+ uid: string;
671
+ }
672
+ /**
673
+ * Models a auxiliary used in targeting a piece of content.
674
+ */
675
+ export interface Auxiliary {
676
+ /**
677
+ * The unique identifier for this auxiliary.
678
+ */
679
+ _id: string;
680
+ /**
681
+ * The general name for this auxiliary.
682
+ */
683
+ name?: string;
684
+ /**
685
+ * A short identifier for this auxiliary. Usually used in cases where a long form id cannot work.
686
+ */
687
+ uid: string;
688
+ }
689
+ /**
690
+ * Models a keyword used in describing a piece of content.
691
+ */
692
+ export interface Tag {
693
+ _id?: GloballyUniqueIDTrait;
694
+ /**
695
+ * The text of the tag as displayed to users.
696
+ */
697
+ text: string;
698
+ /**
699
+ * A more detailed description of the tag.
700
+ */
701
+ description?: string;
702
+ additional_properties?: HasAdditionalProperties;
703
+ slug?: Slug;
704
+ }
705
+ /**
706
+ * A hierarchical section or 'site' in a taxonomy. In the Arc ecosystem, these are stored in the arc-site-service.
707
+ */
708
+ export interface Site {
709
+ type: 'site';
710
+ _id?: GloballyUniqueIDTrait;
711
+ version: DescribesTheANSVersionOfThisObject;
712
+ additional_properties?: HasAdditionalProperties;
713
+ /**
714
+ * The name of this site
715
+ */
716
+ name: string;
717
+ /**
718
+ * A short description or tagline about this site
719
+ */
720
+ description?: string;
721
+ /**
722
+ * The url path to this site
723
+ */
724
+ path?: string;
725
+ /**
726
+ * The id of this section's parent site, if any
727
+ */
728
+ parent_id?: string;
729
+ /**
730
+ * Is this the primary site?
731
+ */
732
+ primary?: boolean;
733
+ }
734
+ /**
735
+ * This represents a reference to external content that should be denormalized
736
+ */
737
+ export interface RepresentationOfANormalizedElement {
738
+ type: 'reference';
739
+ additional_properties?: HasAdditionalProperties;
740
+ _id?: GloballyUniqueIDTrait;
741
+ subtype?: SubtypeTrait;
742
+ channels?: ChannelTrait;
743
+ alignment?: Alignment;
744
+ referent: {
745
+ /**
746
+ * The ANS type that the provider should return.
747
+ */
748
+ type?: string;
749
+ /**
750
+ * The type of interaction the provider expects. E.g., 'oembed'
751
+ */
752
+ service?: string;
753
+ /**
754
+ * The id passed to the provider to retrieve an ANS document
755
+ */
756
+ id: string;
757
+ /**
758
+ * A URL that can resolve the id into an ANS element
759
+ */
760
+ provider?: string;
761
+ /**
762
+ * The website which the referenced id belongs to. Currently supported only for sections.
763
+ */
764
+ website?: string;
765
+ /**
766
+ * An object for key-value pairs that should override the values of keys with the same name in the denormalized object
767
+ */
768
+ referent_properties?: {
769
+ [k: string]: unknown;
770
+ };
771
+ };
772
+ }
773
+ /**
774
+ * A hierarchical section in a taxonomy. In the Arc ecosystem, these are stored in the arc-site-service.
775
+ */
776
+ export interface Section {
777
+ type: 'section';
778
+ _id?: GloballyUniqueIDTrait;
779
+ _website?: Website;
780
+ version: DescribesTheANSVersionOfThisObject;
781
+ additional_properties?: HasAdditionalProperties;
782
+ /**
783
+ * The name of this site
784
+ */
785
+ name: string;
786
+ /**
787
+ * A short description or tagline about this site
788
+ */
789
+ description?: string;
790
+ /**
791
+ * The url path to this site
792
+ */
793
+ path?: string;
794
+ /**
795
+ * The id of this section's parent section in the default hierarchy, if any.
796
+ */
797
+ parent_id?: string;
798
+ /**
799
+ * The id of this section's parent section in various commonly-used hierarchies, where available.
800
+ */
801
+ parent?: {
802
+ default?: string;
803
+ [k: string]: unknown;
804
+ };
805
+ /**
806
+ * Is this the primary site?
807
+ */
808
+ primary?: boolean;
809
+ }
810
+ /**
811
+ * Lists of promotional content to use when highlighting the story. In the Arc ecosystem, references in these lists will be denormalized.
812
+ */
813
+ export interface PromoItems {
814
+ basic?: AContentObject | RepresentationOfANormalizedElement;
815
+ /**
816
+ * This interface was referenced by `PromoItems`'s JSON-Schema definition
817
+ * via the `patternProperty` ".*".
818
+ */
819
+ [k: string]: AContentObject | RepresentationOfANormalizedElement | undefined;
820
+ }
821
+ /**
822
+ * Holds common attributes of ANS Content objects.
823
+ */
824
+ export interface AContentObject {
825
+ type: string;
826
+ _id?: GloballyUniqueIDTrait;
827
+ version: DescribesTheANSVersionOfThisObject;
828
+ subtype?: SubtypeTrait;
829
+ channels?: ChannelTrait;
830
+ alignment?: Alignment;
831
+ language?: DescribesLanguageForAnElement;
832
+ copyright?: CopyrightInformation;
833
+ canonical_url?: CanonicalURL;
834
+ short_url?: Short_Url;
835
+ created_date?: CreatedDate;
836
+ last_updated_date?: LastUpdatedDate;
837
+ publish_date?: Publish_Date;
838
+ first_publish_date?: FirstPublishDate;
839
+ display_date?: Display_Date;
840
+ location?: LocationRelatedTrait;
841
+ geo?: Geo;
842
+ address?: Address;
843
+ editor_note?: Editor_Note;
844
+ status?: Status;
845
+ headlines?: Headlines;
846
+ subheadlines?: SubHeadlines;
847
+ description?: Description;
848
+ credits?: CreditTrait;
849
+ taxonomy?: Taxonomy;
850
+ promo_items?: PromoItems;
851
+ related_content?: Related_Content;
852
+ owner?: OwnerInformation;
853
+ planning?: SchedulingInformation;
854
+ workflow?: WorkflowInformation;
855
+ pitches?: Pitches;
856
+ revision?: Revision;
857
+ syndication?: Syndication;
858
+ source?: Source;
859
+ distributor?: Distributor;
860
+ tracking?: Tracking;
861
+ comments?: Comments;
862
+ label?: Label;
863
+ slug?: Slug;
864
+ content_restrictions?: ContentRestrictions;
865
+ additional_properties?: HasAdditionalProperties;
866
+ content_aliases?: AliasesTrait;
867
+ [k: string]: unknown;
868
+ }
869
+ /**
870
+ * 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.
871
+ */
872
+ export interface Related_Content {
873
+ /**
874
+ * 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.
875
+ *
876
+ * @maxItems 1
877
+ */
878
+ redirect?: [] | [ARedirectObject];
879
+ /**
880
+ * This interface was referenced by `Related_Content`'s JSON-Schema definition
881
+ * via the `patternProperty` ".*".
882
+ */
883
+ [k: string]: [ARedirectObject] | (AContentObject | RepresentationOfANormalizedElement)[] | undefined;
884
+ }
885
+ /**
886
+ * A redirect to another story.
887
+ */
888
+ export interface ARedirectObject {
889
+ type: 'redirect';
890
+ _id?: GloballyUniqueIDTrait;
891
+ version: DescribesTheANSVersionOfThisObject;
892
+ owner?: OwnerInformation;
893
+ revision?: Revision;
894
+ canonical_url: CanonicalURL;
895
+ redirect_url: CanonicalURL;
896
+ }
897
+ /**
898
+ * Various unrelated fields that should be preserved for backwards-compatibility reasons. See also trait_source.
899
+ */
900
+ export interface OwnerInformation {
901
+ /**
902
+ * The machine-readable unique identifier of the organization whose database this content is stored in. In Arc, this is equivalent to ARC_ORG_NAME.
903
+ */
904
+ id?: string;
905
+ /**
906
+ * Deprecated in 0.8.0. See `distributor.name`. (Formerly: The human-readable name of original producer of content. Distinguishes between Wires, Staff and other sources.)
907
+ */
908
+ name?: string;
909
+ /**
910
+ * True if this content is advertorial or native advertising.
911
+ */
912
+ sponsored?: boolean;
913
+ [k: string]: unknown;
914
+ }
915
+ /**
916
+ * Trait that applies revision information to a document. In the Arc ecosystem, many of these fields are populated in stories by the Story API.
917
+ */
918
+ export interface Revision {
919
+ /**
920
+ * The unique id of this revision.
921
+ */
922
+ revision_id?: string;
923
+ /**
924
+ * The unique id of the revision that this revisions was branched from, or preceded it on the current branch.
925
+ */
926
+ parent_id?: string;
927
+ /**
928
+ * The name of the branch this revision was created on.
929
+ */
930
+ branch?: string;
931
+ /**
932
+ * A list of identifiers of editions that point to this revision.
933
+ */
934
+ editions?: string[];
935
+ /**
936
+ * The unique user id of the person who created this revision.
937
+ */
938
+ user_id?: string;
939
+ /**
940
+ * Whether or not this revision's parent story is published, in any form or place
941
+ */
942
+ published?: boolean;
943
+ additional_properties?: HasAdditionalProperties;
944
+ }
945
+ /**
946
+ * 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.
947
+ */
948
+ export interface SchedulingInformation {
949
+ additional_properties?: HasAdditionalProperties;
950
+ /**
951
+ * Date to be used for chronological sorting in WebSked.
952
+ */
953
+ websked_sort_date?: string;
954
+ /**
955
+ * The delta between the story's planned publish date and actual first publish time, in minutes.
956
+ */
957
+ deadline_miss?: number;
958
+ internal_note?: InternalNote;
959
+ budget_line?: BudgetLine;
960
+ /**
961
+ * Scheduling information.
962
+ */
963
+ scheduling?: {
964
+ /**
965
+ * When the content is planned to be published.
966
+ */
967
+ planned_publish_date?: string;
968
+ /**
969
+ * When the content was first published.
970
+ */
971
+ scheduled_publish_date?: string;
972
+ /**
973
+ * Will this content have galleries?
974
+ */
975
+ will_have_gallery?: boolean;
976
+ /**
977
+ * Will this content have graphics?
978
+ */
979
+ will_have_graphic?: boolean;
980
+ /**
981
+ * Will this content have images?
982
+ */
983
+ will_have_image?: boolean;
984
+ /**
985
+ * Will this content have videos?
986
+ */
987
+ will_have_video?: boolean;
988
+ };
989
+ /**
990
+ * Story length information.
991
+ */
992
+ story_length?: {
993
+ /**
994
+ * The anticipated number of words in the story.
995
+ */
996
+ word_count_planned?: number;
997
+ /**
998
+ * Current number of words.
999
+ */
1000
+ word_count_actual?: number;
1001
+ /**
1002
+ * The anticipated length of the story in inches.
1003
+ */
1004
+ inch_count_planned?: number;
1005
+ /**
1006
+ * The current length of the story in inches.
1007
+ */
1008
+ inch_count_actual?: number;
1009
+ /**
1010
+ * The anticipated length of the story in lines.
1011
+ */
1012
+ line_count_planned?: number;
1013
+ /**
1014
+ * The current length of the story in lines.
1015
+ */
1016
+ line_count_actual?: number;
1017
+ };
1018
+ }
1019
+ /**
1020
+ * Trait that applies workflow information to a document or resource. In the Arc ecosystem, this data is generated by WebSked.
1021
+ */
1022
+ export interface WorkflowInformation {
1023
+ additional_properties?: HasAdditionalProperties;
1024
+ /**
1025
+ * Code indicating the story's current workflow status. This number should match the values configured in WebSked.
1026
+ */
1027
+ status_code?: number;
1028
+ /**
1029
+ * This note will be used for any task automatically generated via WebSked task triggers.
1030
+ */
1031
+ note?: string;
1032
+ }
1033
+ /**
1034
+ * Trait that represents a story's pitches. In the Arc ecosystem, this data is generated by WebSked.
1035
+ */
1036
+ export interface Pitches {
1037
+ additional_properties?: HasAdditionalProperties;
1038
+ /**
1039
+ * A list of the story's pitches to a platform.
1040
+ */
1041
+ platform?: PlatformPitch[];
1042
+ /**
1043
+ * A list of the story's pitches to a publication.
1044
+ */
1045
+ publication?: PublicationPitch[];
1046
+ }
1047
+ /**
1048
+ * Trait that represents a pitch to a platform. In the Arc ecosystem, this data is generated by WebSked.
1049
+ */
1050
+ export interface PlatformPitch {
1051
+ additional_properties?: HasAdditionalProperties;
1052
+ /**
1053
+ * The path of the platform that this pitch targets.
1054
+ */
1055
+ platform_path?: string;
1056
+ creation_event?: PlatformPitchEvent;
1057
+ latest_event?: PlatformPitchEvent;
1058
+ }
1059
+ /**
1060
+ * Trait that represents an update event for a pitch to a platform. In the Arc ecosystem, this data is generated by WebSked.
1061
+ */
1062
+ export interface PlatformPitchEvent {
1063
+ additional_properties?: HasAdditionalProperties;
1064
+ /**
1065
+ * The current status of the pitch.
1066
+ */
1067
+ status?: string;
1068
+ /**
1069
+ * The time of this update.
1070
+ */
1071
+ time?: string;
1072
+ /**
1073
+ * The ID of the user who made this update.
1074
+ */
1075
+ user_id?: string;
1076
+ /**
1077
+ * Optional note associated with this update.
1078
+ */
1079
+ note?: string;
1080
+ }
1081
+ /**
1082
+ * Trait that represents a pitch to a publication. In the Arc ecosystem, this data is generated by WebSked.
1083
+ */
1084
+ export interface PublicationPitch {
1085
+ additional_properties?: HasAdditionalProperties;
1086
+ /**
1087
+ * The ID of the publication that this pitch targets.
1088
+ */
1089
+ publication_id?: string;
1090
+ creation_event?: PublicationPitchEvent;
1091
+ latest_event?: PublicationPitchEvent;
1092
+ }
1093
+ /**
1094
+ * Trait that represents an update event for a pitch to a publication. In the Arc ecosystem, this data is generated by WebSked.
1095
+ */
1096
+ export interface PublicationPitchEvent {
1097
+ additional_properties?: HasAdditionalProperties;
1098
+ /**
1099
+ * The current status of the pitch.
1100
+ */
1101
+ status?: string;
1102
+ /**
1103
+ * The time of this update.
1104
+ */
1105
+ time?: string;
1106
+ /**
1107
+ * The ID of the user who made this update.
1108
+ */
1109
+ user_id?: string;
1110
+ /**
1111
+ * Optional note associated with this update.
1112
+ */
1113
+ note?: string;
1114
+ /**
1115
+ * The ID of the publication edition that this pitch targets.
1116
+ */
1117
+ edition_id?: string;
1118
+ /**
1119
+ * The time of the publication edition that this pitch targets.
1120
+ */
1121
+ edition_time?: string;
1122
+ }
1123
+ /**
1124
+ * Key-boolean pair of syndication services where this article may go
1125
+ */
1126
+ export interface Syndication {
1127
+ /**
1128
+ * Necessary for fulfilling contractual agreements with third party Globe and Mail clients
1129
+ */
1130
+ external_distribution?: boolean;
1131
+ /**
1132
+ * Necessary so that we can filter out all articles that editorial has deemed should not be discoverable via search
1133
+ */
1134
+ search?: boolean;
1135
+ /**
1136
+ * This interface was referenced by `Syndication`'s JSON-Schema definition
1137
+ * via the `patternProperty` ".*".
1138
+ */
1139
+ [k: string]: boolean | undefined;
1140
+ }
1141
+ /**
1142
+ * Information about the original source and/or owner of this content
1143
+ */
1144
+ export interface Source {
1145
+ /**
1146
+ * The id of this content in a foreign CMS.
1147
+ */
1148
+ source_id?: string;
1149
+ /**
1150
+ * Deprecated in 0.8.0. See `distributor.category` and `distributor.subcategory`. (Formerly: The method used to enter this content. E.g. 'staff', 'wires'.)
1151
+ */
1152
+ source_type?: string;
1153
+ /**
1154
+ * Deprecated in 0.8.0. See `distributor.name`. (Formerly: The human-readable name of the organization who first produced this content. E.g., 'Reuters'.)
1155
+ */
1156
+ name?: string;
1157
+ /**
1158
+ * The software (CMS or editor) that was used to enter this content. E.g., 'wordpress', 'ellipsis'.
1159
+ */
1160
+ system?: string;
1161
+ /**
1162
+ * A link to edit this content in its source CMS.
1163
+ */
1164
+ edit_url?: string;
1165
+ additional_properties?: HasAdditionalProperties;
1166
+ }
1167
+ /**
1168
+ * Tracking information, probably implementation-dependent
1169
+ */
1170
+ export interface Tracking {
1171
+ [k: string]: unknown;
1172
+ }
1173
+ /**
1174
+ * Comment configuration data
1175
+ */
1176
+ export interface Comments {
1177
+ /**
1178
+ * How long (in days) after publish date until comments are closed.
1179
+ */
1180
+ comments_period?: number;
1181
+ /**
1182
+ * If false, commenting is disabled on this content.
1183
+ */
1184
+ allow_comments?: boolean;
1185
+ /**
1186
+ * If false, do not render comments on this content.
1187
+ */
1188
+ display_comments?: boolean;
1189
+ /**
1190
+ * If true, comments must be moderator-approved before being displayed.
1191
+ */
1192
+ moderation_required?: boolean;
1193
+ additional_properties?: HasAdditionalProperties;
1194
+ [k: string]: unknown;
1195
+ }
1196
+ /**
1197
+ * What the Washington Post calls a Kicker
1198
+ */
1199
+ export interface Label {
1200
+ /**
1201
+ * The default label object for this piece of content.
1202
+ */
1203
+ basic?: {
1204
+ /**
1205
+ * The text of this label.
1206
+ */
1207
+ text: string;
1208
+ /**
1209
+ * An optional destination url of this label.
1210
+ */
1211
+ url?: string;
1212
+ /**
1213
+ * If false, this label should be hidden.
1214
+ */
1215
+ display?: boolean;
1216
+ additional_properties?: HasAdditionalProperties;
1217
+ };
1218
+ /**
1219
+ * Additional user-defined keyed label objects.
1220
+ *
1221
+ * This interface was referenced by `Label`'s JSON-Schema definition
1222
+ * via the `patternProperty` "^[a-zA-Z0-9_]*$".
1223
+ */
1224
+ [k: string]: {
1225
+ /**
1226
+ * The text of this label.
1227
+ */
1228
+ text: string;
1229
+ /**
1230
+ * An optional destination url of this label.
1231
+ */
1232
+ url?: string;
1233
+ /**
1234
+ * If false, this label should be hidden.
1235
+ */
1236
+ display?: boolean;
1237
+ additional_properties?: HasAdditionalProperties | undefined;
1238
+ } | undefined;
1239
+ }
1240
+ /**
1241
+ * Trait that applies contains the content restrictions of an ANS object.
1242
+ */
1243
+ export interface ContentRestrictions {
1244
+ /**
1245
+ * The content restriction code/level/flag associated with the ANS object
1246
+ */
1247
+ content_code?: string;
1248
+ [k: string]: unknown;
1249
+ }
1250
+ export interface Book {
1251
+ book_title?: Title;
1252
+ book_url?: URL;
1253
+ }
1254
+ export interface School {
1255
+ school_name?: SchoolName;
1256
+ }
1257
+ /**
1258
+ * Configuration for a piece of video content, over a stream.
1259
+ */
1260
+ export interface AStreamOfVideo {
1261
+ /**
1262
+ * The height of the video.
1263
+ */
1264
+ height?: number;
1265
+ /**
1266
+ * The width of the video.
1267
+ */
1268
+ width?: number;
1269
+ /**
1270
+ * The size of the video, in bytes.
1271
+ */
1272
+ filesize?: number;
1273
+ /**
1274
+ * The audio codec.
1275
+ */
1276
+ audio_codec?: string;
1277
+ /**
1278
+ * The video codec.
1279
+ */
1280
+ video_codec?: string;
1281
+ /**
1282
+ * The type of video (e.g. mp4).
1283
+ */
1284
+ stream_type?: string;
1285
+ /**
1286
+ * Where to get the stream from.
1287
+ */
1288
+ url?: string;
1289
+ /**
1290
+ * The bitrate of the video
1291
+ */
1292
+ bitrate?: number;
1293
+ /**
1294
+ * The provider of the video.
1295
+ */
1296
+ provider?: string;
1297
+ [k: string]: unknown;
1298
+ }
1299
+ /**
1300
+ * Data about different subtitle encodings and confidences of auto-transcribed content.
1301
+ */
1302
+ export interface VideoSubtitleConfigurationSchema {
1303
+ /**
1304
+ * How confident the transcriber (human or automated) is of the accuracy of the subtitles.
1305
+ */
1306
+ confidence?: number;
1307
+ /**
1308
+ * The locations of any subtitle transcriptions of the video.
1309
+ */
1310
+ urls?: SubtitleUrl[];
1311
+ [k: string]: unknown;
1312
+ }
1313
+ export interface SubtitleUrl {
1314
+ /**
1315
+ * The format of the subtitles (e.g. SRT, DFXP, WEB_VTT, etc)
1316
+ */
1317
+ format?: string;
1318
+ /**
1319
+ * The url of the subtitle stream.
1320
+ */
1321
+ url?: string;
1322
+ [k: string]: unknown;
1323
+ }
1324
+ /**
1325
+ * Holds attributes of an ANS image component. In the Arc ecosystem, these are stored in Anglerfish.
1326
+ */
1327
+ export interface AnImage1 {
1328
+ type: 'image';
1329
+ _id?: GloballyUniqueIDTrait;
1330
+ version: DescribesTheANSVersionOfThisObject;
1331
+ subtype?: SubtypeTrait;
1332
+ channels?: ChannelTrait;
1333
+ alignment?: Alignment;
1334
+ language?: DescribesLanguageForAnElement;
1335
+ copyright?: CopyrightInformation;
1336
+ canonical_url?: CanonicalURL;
1337
+ short_url?: Short_Url;
1338
+ created_date?: CreatedDate;
1339
+ last_updated_date?: LastUpdatedDate;
1340
+ publish_date?: Publish_Date;
1341
+ first_publish_date?: FirstPublishDate;
1342
+ display_date?: Display_Date;
1343
+ location?: LocationRelatedTrait;
1344
+ geo?: Geo;
1345
+ address?: Address;
1346
+ editor_note?: Editor_Note;
1347
+ status?: Status;
1348
+ headlines?: Headlines;
1349
+ subheadlines?: SubHeadlines;
1350
+ description?: Description;
1351
+ credits?: CreditTrait;
1352
+ taxonomy?: Taxonomy;
1353
+ promo_items?: PromoItems;
1354
+ related_content?: Related_Content;
1355
+ owner?: OwnerInformation;
1356
+ planning?: SchedulingInformation;
1357
+ workflow?: WorkflowInformation;
1358
+ pitches?: Pitches;
1359
+ revision?: Revision;
1360
+ syndication?: Syndication;
1361
+ source?: Source;
1362
+ distributor?: Distributor;
1363
+ tracking?: Tracking;
1364
+ comments?: Comments;
1365
+ label?: Label;
1366
+ slug?: Slug;
1367
+ content_restrictions?: ContentRestrictions;
1368
+ additional_properties?: HasAdditionalProperties;
1369
+ /**
1370
+ * Subtitle for the image.
1371
+ */
1372
+ subtitle?: string;
1373
+ /**
1374
+ * Caption for the image.
1375
+ */
1376
+ caption?: string;
1377
+ /**
1378
+ * URL for the image.
1379
+ */
1380
+ url?: string;
1381
+ /**
1382
+ * Width for the image.
1383
+ */
1384
+ width?: number;
1385
+ /**
1386
+ * Height for the image.
1387
+ */
1388
+ height?: number;
1389
+ /**
1390
+ * True if the image can legally be licensed to others.
1391
+ */
1392
+ licensable?: boolean;
1393
+ }
1394
+ /**
1395
+ * Describes a change that has been made to the document for transparency, or describes inaccuracies or falsehoods that remain in the document.
1396
+ */
1397
+ export interface Correction {
1398
+ type: 'correction';
1399
+ _id?: GloballyUniqueIDTrait;
1400
+ subtype?: SubtypeTrait;
1401
+ channels?: ChannelTrait;
1402
+ alignment?: Alignment;
1403
+ additional_properties?: HasAdditionalProperties;
1404
+ /**
1405
+ * Type of correction. E.g., clarification, retraction.
1406
+ */
1407
+ correction_type?: string;
1408
+ /**
1409
+ * The text of the correction.
1410
+ */
1411
+ text: string;
1412
+ }
1413
+ /**
1414
+ * Website-specific metadata for url generation for multi-site copies. These fields are not indexed in Content API.
1415
+ */
1416
+ export interface WebsitesInput {
1417
+ /**
1418
+ * This interface was referenced by `WebsitesInput`'s JSON-Schema definition
1419
+ * via the `patternProperty` "^[a-zA-Z0-9_]*".
1420
+ */
1421
+ [k: string]: {
1422
+ website_section?: RepresentationOfANormalizedElement | Section;
1423
+ website_url?: WebsiteURL;
1424
+ };
1425
+ }