feedsmith 2.1.0 → 2.1.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.
Files changed (2) hide show
  1. package/dist/index.d.cts +1016 -0
  2. package/package.json +16 -12
@@ -0,0 +1,1016 @@
1
+ //#region src/common/types.d.ts
2
+ type DateLike = Date | string;
3
+ type ExtraFields<F extends ReadonlyArray<string>, V = unknown> = { [K in F[number]]?: V };
4
+ type IsPlainObject<T> = T extends Array<unknown> ? false : T extends ((...args: Array<unknown>) => unknown) ? false : T extends Date ? false : T extends object ? T extends null ? false : true : false;
5
+ type RemoveUndefined<T> = T extends undefined ? never : T;
6
+ type DeepPartial<T> = IsPlainObject<T> extends true ? { [P in keyof T]?: DeepPartial<RemoveUndefined<T[P]>> } : T extends Array<infer U> ? Array<DeepPartial<U>> : T;
7
+ type XmlStylesheet = {
8
+ type: string;
9
+ href: string;
10
+ title?: string;
11
+ media?: string;
12
+ charset?: string;
13
+ alternate?: boolean;
14
+ };
15
+ type XmlGenerateOptions<O, F extends boolean = false> = O & {
16
+ lenient?: F;
17
+ stylesheets?: Array<XmlStylesheet>;
18
+ };
19
+ type JsonGenerateOptions<O, F extends boolean = false> = O & {
20
+ lenient?: F;
21
+ };
22
+ type XmlGenerateMain<S, L, O = Record<string, unknown>> = <F extends boolean = false>(value: F extends true ? L : S, options?: XmlGenerateOptions<O, F>) => string;
23
+ type JsonGenerateMain<S, L, O = Record<string, unknown>> = <F extends boolean = false>(value: F extends true ? L : S, options?: JsonGenerateOptions<O, F>) => unknown;
24
+ //#endregion
25
+ //#region src/namespaces/dc/common/types.d.ts
26
+ type ItemOrFeed<TDate extends DateLike> = {
27
+ title?: string;
28
+ creator?: string;
29
+ subject?: string;
30
+ description?: string;
31
+ publisher?: string;
32
+ contributor?: string;
33
+ date?: TDate;
34
+ type?: string;
35
+ format?: string;
36
+ identifier?: string;
37
+ source?: string;
38
+ language?: string;
39
+ relation?: string;
40
+ coverage?: string;
41
+ rights?: string;
42
+ };
43
+ //#endregion
44
+ //#region src/namespaces/dcterms/common/types.d.ts
45
+ type ItemOrFeed$1<TDate extends DateLike> = {
46
+ abstract?: string;
47
+ accessRights?: string;
48
+ accrualMethod?: string;
49
+ accrualPeriodicity?: string;
50
+ accrualPolicy?: string;
51
+ alternative?: string;
52
+ audience?: string;
53
+ available?: TDate;
54
+ bibliographicCitation?: string;
55
+ conformsTo?: string;
56
+ contributor?: string;
57
+ coverage?: string;
58
+ created?: TDate;
59
+ creator?: string;
60
+ date?: TDate;
61
+ dateAccepted?: TDate;
62
+ dateCopyrighted?: TDate;
63
+ dateSubmitted?: TDate;
64
+ description?: string;
65
+ educationLevel?: string;
66
+ extent?: string;
67
+ format?: string;
68
+ hasFormat?: string;
69
+ hasPart?: string;
70
+ hasVersion?: string;
71
+ identifier?: string;
72
+ instructionalMethod?: string;
73
+ isFormatOf?: string;
74
+ isPartOf?: string;
75
+ isReferencedBy?: string;
76
+ isReplacedBy?: string;
77
+ isRequiredBy?: string;
78
+ issued?: TDate;
79
+ isVersionOf?: string;
80
+ language?: string;
81
+ license?: string;
82
+ mediator?: string;
83
+ medium?: string;
84
+ modified?: TDate;
85
+ provenance?: string;
86
+ publisher?: string;
87
+ references?: string;
88
+ relation?: string;
89
+ replaces?: string;
90
+ requires?: string;
91
+ rights?: string;
92
+ rightsHolder?: string;
93
+ source?: string;
94
+ spatial?: string;
95
+ subject?: string;
96
+ tableOfContents?: string;
97
+ temporal?: string;
98
+ title?: string;
99
+ type?: string;
100
+ valid?: TDate;
101
+ };
102
+ //#endregion
103
+ //#region src/namespaces/georss/common/types.d.ts
104
+ type Point = {
105
+ lat: number;
106
+ lng: number;
107
+ };
108
+ type Line = {
109
+ points: Array<Point>;
110
+ };
111
+ type Polygon = {
112
+ points: Array<Point>;
113
+ };
114
+ type Box = {
115
+ lowerCorner: Point;
116
+ upperCorner: Point;
117
+ };
118
+ type ItemOrFeed$2 = {
119
+ point?: Point;
120
+ line?: Line;
121
+ polygon?: Polygon;
122
+ box?: Box;
123
+ featureTypeTag?: string;
124
+ relationshipTag?: string;
125
+ featureName?: string;
126
+ elev?: number;
127
+ floor?: number;
128
+ radius?: number;
129
+ };
130
+ //#endregion
131
+ //#region src/namespaces/itunes/common/types.d.ts
132
+ type Category$3 = {
133
+ text: string;
134
+ categories?: Array<Category$3>;
135
+ };
136
+ type Owner = {
137
+ name?: string;
138
+ email?: string;
139
+ };
140
+ type Item$1 = {
141
+ duration?: number;
142
+ image?: string;
143
+ explicit?: boolean;
144
+ title?: string;
145
+ episode?: number;
146
+ season?: number;
147
+ episodeType?: string;
148
+ block?: boolean;
149
+ /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
150
+ summary?: string;
151
+ /** @deprecated No longer used by Apple Podcasts. */
152
+ subtitle?: string;
153
+ /** @deprecated No longer used for search in Apple Podcasts. */
154
+ keywords?: Array<string>;
155
+ };
156
+ type Feed$6 = {
157
+ image?: string;
158
+ categories?: Array<Category$3>;
159
+ explicit?: boolean;
160
+ author?: string;
161
+ title?: string;
162
+ type?: string;
163
+ newFeedUrl?: string;
164
+ block?: boolean;
165
+ complete?: boolean;
166
+ applePodcastsVerify?: string;
167
+ /** @deprecated Use standard RSS description instead. No longer used by Apple Podcasts. */
168
+ summary?: string;
169
+ /** @deprecated No longer used by Apple Podcasts. */
170
+ subtitle?: string;
171
+ /** @deprecated No longer used for search in Apple Podcasts. */
172
+ keywords?: Array<string>;
173
+ /** @deprecated No longer required for submission to Apple Podcasts. */
174
+ owner?: Owner;
175
+ };
176
+ //#endregion
177
+ //#region src/namespaces/media/common/types.d.ts
178
+ type Rating = {
179
+ value: string;
180
+ scheme?: string;
181
+ };
182
+ type TitleOrDescription = {
183
+ value: string;
184
+ type?: string;
185
+ };
186
+ type Thumbnail = {
187
+ url: string;
188
+ height?: number;
189
+ width?: number;
190
+ time?: string;
191
+ };
192
+ type Category$2 = {
193
+ name: string;
194
+ scheme?: string;
195
+ label?: string;
196
+ };
197
+ type Hash = {
198
+ value: string;
199
+ algo?: string;
200
+ };
201
+ type Player = {
202
+ url: string;
203
+ height?: number;
204
+ width?: number;
205
+ };
206
+ type Credit = {
207
+ value: string;
208
+ role?: string;
209
+ scheme?: string;
210
+ };
211
+ type Copyright = {
212
+ value: string;
213
+ url?: string;
214
+ };
215
+ type Text$1 = {
216
+ value: string;
217
+ type?: string;
218
+ lang?: string;
219
+ start?: string;
220
+ end?: string;
221
+ };
222
+ type Restriction = {
223
+ value: string;
224
+ relationship: string;
225
+ type?: string;
226
+ };
227
+ type Community = {
228
+ starRating?: StarRating;
229
+ statistics?: Statistics;
230
+ tags?: Array<Tag>;
231
+ };
232
+ type StarRating = {
233
+ average?: number;
234
+ count?: number;
235
+ min?: number;
236
+ max?: number;
237
+ };
238
+ type Statistics = {
239
+ views?: number;
240
+ favorites?: number;
241
+ };
242
+ type Tag = {
243
+ name: string;
244
+ weight: number;
245
+ };
246
+ type Embed = {
247
+ url: string;
248
+ width?: number;
249
+ height?: number;
250
+ params?: Array<Param>;
251
+ };
252
+ type Param = {
253
+ name: string;
254
+ value: string;
255
+ };
256
+ type Status = {
257
+ state: string;
258
+ reason?: string;
259
+ };
260
+ type Price = {
261
+ type?: string;
262
+ info?: string;
263
+ price?: number;
264
+ currency?: string;
265
+ };
266
+ type License$1 = {
267
+ name?: string;
268
+ type?: string;
269
+ href?: string;
270
+ } & ({
271
+ name: string;
272
+ } | {
273
+ href: string;
274
+ });
275
+ type SubTitle = {
276
+ type?: string;
277
+ lang?: string;
278
+ href: string;
279
+ };
280
+ type PeerLink = {
281
+ type?: string;
282
+ href: string;
283
+ };
284
+ type Rights = {
285
+ status?: string;
286
+ };
287
+ type Scene = {
288
+ title?: string;
289
+ description?: string;
290
+ startTime?: string;
291
+ endTime?: string;
292
+ };
293
+ type Location$1 = {
294
+ description?: string;
295
+ start?: string;
296
+ end?: string;
297
+ lat?: number;
298
+ lng?: number;
299
+ };
300
+ type CommonElements = {
301
+ ratings?: Array<Rating>;
302
+ title?: TitleOrDescription;
303
+ description?: TitleOrDescription;
304
+ keywords?: Array<string>;
305
+ thumbnails?: Array<Thumbnail>;
306
+ categories?: Array<Category$2>;
307
+ hashes?: Array<Hash>;
308
+ player?: Player;
309
+ credits?: Array<Credit>;
310
+ copyright?: Copyright;
311
+ texts?: Array<Text$1>;
312
+ restrictions?: Array<Restriction>;
313
+ community?: Community;
314
+ comments?: Array<string>;
315
+ embed?: Embed;
316
+ responses?: Array<string>;
317
+ backLinks?: Array<string>;
318
+ status?: Status;
319
+ prices?: Array<Price>;
320
+ licenses?: Array<License$1>;
321
+ subTitles?: Array<SubTitle>;
322
+ peerLinks?: Array<PeerLink>;
323
+ locations?: Array<Location$1>;
324
+ rights?: Rights;
325
+ scenes?: Array<Scene>;
326
+ };
327
+ type Content = {
328
+ url: string;
329
+ fileSize?: number;
330
+ type?: string;
331
+ medium?: string;
332
+ isDefault?: boolean;
333
+ expression?: string;
334
+ bitrate?: number;
335
+ framerate?: number;
336
+ samplingrate?: number;
337
+ channels?: number;
338
+ duration?: number;
339
+ height?: number;
340
+ width?: number;
341
+ lang?: string;
342
+ } & CommonElements;
343
+ type Group = {
344
+ contents?: Array<Content>;
345
+ } & CommonElements;
346
+ type ItemOrFeed$3 = {
347
+ group?: Group;
348
+ contents?: Array<Content>;
349
+ } & CommonElements;
350
+ //#endregion
351
+ //#region src/namespaces/psc/common/types.d.ts
352
+ type Chapter = {
353
+ start: string;
354
+ title?: string;
355
+ href?: string;
356
+ image?: string;
357
+ };
358
+ type Item$3 = {
359
+ chapters?: Array<Chapter>;
360
+ };
361
+ //#endregion
362
+ //#region src/namespaces/slash/common/types.d.ts
363
+ type HitParade = Array<number>;
364
+ type Item$4 = {
365
+ section?: string;
366
+ department?: string;
367
+ comments?: number;
368
+ hitParade?: HitParade;
369
+ };
370
+ //#endregion
371
+ //#region src/namespaces/sy/common/types.d.ts
372
+ type Feed$9<TDate extends DateLike> = {
373
+ updatePeriod?: string;
374
+ updateFrequency?: number;
375
+ updateBase?: TDate;
376
+ };
377
+ //#endregion
378
+ //#region src/namespaces/thr/common/types.d.ts
379
+ type InReplyTo = {
380
+ ref: string;
381
+ href?: string;
382
+ type?: string;
383
+ source?: string;
384
+ };
385
+ type Link<TDate extends DateLike> = {
386
+ count?: number;
387
+ updated?: TDate;
388
+ };
389
+ type Item$6 = {
390
+ total?: number;
391
+ inReplyTos?: Array<InReplyTo>;
392
+ };
393
+ //#endregion
394
+ //#region src/namespaces/wfw/common/types.d.ts
395
+ type Item$7 = {
396
+ comment?: string;
397
+ commentRss?: string;
398
+ };
399
+ //#endregion
400
+ //#region src/namespaces/yt/common/types.d.ts
401
+ type Item$11 = {
402
+ videoId?: string;
403
+ channelId?: string;
404
+ };
405
+ type Feed$10 = {
406
+ channelId?: string;
407
+ playlistId?: string;
408
+ };
409
+ //#endregion
410
+ //#region src/feeds/atom/common/types.d.ts
411
+ type Text = string;
412
+ type Link$1<TDate extends DateLike> = {
413
+ href: string;
414
+ rel?: string;
415
+ type?: string;
416
+ hreflang?: string;
417
+ title?: string;
418
+ length?: number;
419
+ thr?: Link<TDate>;
420
+ };
421
+ type Person$2 = {
422
+ name: string;
423
+ uri?: string;
424
+ email?: string;
425
+ };
426
+ type Category$1 = {
427
+ term: string;
428
+ scheme?: string;
429
+ label?: string;
430
+ };
431
+ type Generator = {
432
+ text: string;
433
+ uri?: string;
434
+ version?: string;
435
+ };
436
+ type Source$2<TDate extends DateLike> = {
437
+ authors?: Array<Person$2>;
438
+ categories?: Array<Category$1>;
439
+ contributors?: Array<Person$2>;
440
+ generator?: Generator;
441
+ icon?: string;
442
+ id?: string;
443
+ links?: Array<Link$1<TDate>>;
444
+ logo?: string;
445
+ rights?: Text;
446
+ subtitle?: Text;
447
+ title?: Text;
448
+ updated?: TDate;
449
+ };
450
+ type Entry$1<TDate extends DateLike> = {
451
+ authors?: Array<Person$2>;
452
+ categories?: Array<Category$1>;
453
+ content?: Text;
454
+ contributors?: Array<Person$2>;
455
+ id: string;
456
+ links?: Array<Link$1<TDate>>;
457
+ published?: TDate;
458
+ rights?: Text;
459
+ source?: Source$2<TDate>;
460
+ summary?: Text;
461
+ title: Text;
462
+ updated: TDate;
463
+ dc?: ItemOrFeed<TDate>;
464
+ slash?: Item$4;
465
+ itunes?: Item$1;
466
+ psc?: Item$3;
467
+ media?: ItemOrFeed$3;
468
+ georss?: ItemOrFeed$2;
469
+ thr?: Item$6;
470
+ dcterms?: ItemOrFeed$1<TDate>;
471
+ wfw?: Item$7;
472
+ yt?: Item$11;
473
+ };
474
+ type Feed<TDate extends DateLike> = {
475
+ authors?: Array<Person$2>;
476
+ categories?: Array<Category$1>;
477
+ contributors?: Array<Person$2>;
478
+ generator?: Generator;
479
+ icon?: string;
480
+ id: string;
481
+ links?: Array<Link$1<TDate>>;
482
+ logo?: string;
483
+ rights?: Text;
484
+ subtitle?: Text;
485
+ title: Text;
486
+ updated: TDate;
487
+ entries?: Array<Entry$1<TDate>>;
488
+ dc?: ItemOrFeed<TDate>;
489
+ sy?: Feed$9<TDate>;
490
+ itunes?: Feed$6;
491
+ media?: ItemOrFeed$3;
492
+ georss?: ItemOrFeed$2;
493
+ dcterms?: ItemOrFeed$1<TDate>;
494
+ yt?: Feed$10;
495
+ };
496
+ //#endregion
497
+ //#region src/feeds/json/common/types.d.ts
498
+ type Author = {
499
+ name?: string;
500
+ url?: string;
501
+ avatar?: string;
502
+ };
503
+ type Attachment = {
504
+ url: string;
505
+ mime_type: string;
506
+ title?: string;
507
+ size_in_bytes?: number;
508
+ duration_in_seconds?: number;
509
+ };
510
+ type Item$10<TDate extends DateLike> = {
511
+ id: string;
512
+ url?: string;
513
+ external_url?: string;
514
+ title?: string;
515
+ content_html?: string;
516
+ content_text?: string;
517
+ summary?: string;
518
+ image?: string;
519
+ banner_image?: string;
520
+ date_published?: TDate;
521
+ date_modified?: TDate;
522
+ tags?: Array<string>;
523
+ authors?: Array<Author>;
524
+ language?: string;
525
+ attachments?: Array<Attachment>;
526
+ } & ({
527
+ content_html: string;
528
+ } | {
529
+ content_text: string;
530
+ });
531
+ type Hub = {
532
+ type: string;
533
+ url: string;
534
+ };
535
+ type Feed$1<TDate extends DateLike> = {
536
+ title: string;
537
+ home_page_url?: string;
538
+ feed_url?: string;
539
+ description?: string;
540
+ user_comment?: string;
541
+ next_url?: string;
542
+ icon?: string;
543
+ favicon?: string;
544
+ language?: string;
545
+ expired?: boolean;
546
+ hubs?: Array<Hub>;
547
+ authors?: Array<Author>;
548
+ items: Array<Item$10<TDate>>;
549
+ };
550
+ //#endregion
551
+ //#region src/namespaces/atom/common/types.d.ts
552
+ type Entry<TDate extends DateLike> = Partial<Entry$1<TDate>>;
553
+ type Feed$5<TDate extends DateLike> = Partial<Feed<TDate>>;
554
+ //#endregion
555
+ //#region src/namespaces/content/common/types.d.ts
556
+ type Item = {
557
+ encoded?: string;
558
+ };
559
+ //#endregion
560
+ //#region src/feeds/rdf/common/types.d.ts
561
+ type Image$1 = {
562
+ title: string;
563
+ link: string;
564
+ url?: string;
565
+ };
566
+ type TextInput$1 = {
567
+ title: string;
568
+ description: string;
569
+ name: string;
570
+ link: string;
571
+ };
572
+ type Item$9<TDate extends DateLike> = {
573
+ title: string;
574
+ link: string;
575
+ description?: string;
576
+ atom?: Entry<TDate>;
577
+ dc?: ItemOrFeed<TDate>;
578
+ content?: Item;
579
+ slash?: Item$4;
580
+ media?: ItemOrFeed$3;
581
+ georss?: ItemOrFeed$2;
582
+ dcterms?: ItemOrFeed$1<TDate>;
583
+ wfw?: Item$7;
584
+ };
585
+ type Feed$2<TDate extends DateLike> = {
586
+ title: string;
587
+ link: string;
588
+ description: string;
589
+ image?: Image$1;
590
+ items?: Array<Item$9<TDate>>;
591
+ textInput?: TextInput$1;
592
+ atom?: Feed$5<TDate>;
593
+ dc?: ItemOrFeed<TDate>;
594
+ sy?: Feed$9<TDate>;
595
+ media?: ItemOrFeed$3;
596
+ georss?: ItemOrFeed$2;
597
+ dcterms?: ItemOrFeed$1<TDate>;
598
+ };
599
+ //#endregion
600
+ //#region src/namespaces/podcast/common/types.d.ts
601
+ type BaseItem = {
602
+ transcripts?: Array<Transcript>;
603
+ chapters?: Chapters;
604
+ soundbites?: Array<Soundbite>;
605
+ persons?: Array<Person$1>;
606
+ location?: Location;
607
+ season?: Season;
608
+ episode?: Episode;
609
+ license?: License;
610
+ alternateEnclosures?: Array<AlternateEnclosure>;
611
+ value?: Value;
612
+ images?: Images;
613
+ socialInteracts?: Array<SocialInteract>;
614
+ txts?: Array<Txt>;
615
+ };
616
+ type Transcript = {
617
+ url: string;
618
+ type: string;
619
+ language?: string;
620
+ rel?: string;
621
+ };
622
+ type Locked = {
623
+ value: boolean;
624
+ owner?: string;
625
+ };
626
+ type Funding = {
627
+ url: string;
628
+ display?: string;
629
+ };
630
+ type Chapters = {
631
+ url: string;
632
+ type: string;
633
+ };
634
+ type Soundbite = {
635
+ startTime: number;
636
+ duration: number;
637
+ display?: string;
638
+ };
639
+ type Person$1 = {
640
+ display: string;
641
+ role?: string;
642
+ group?: string;
643
+ img?: string;
644
+ href?: string;
645
+ };
646
+ type Location = {
647
+ display: string;
648
+ geo?: string;
649
+ osm?: string;
650
+ };
651
+ type Season = {
652
+ number: number;
653
+ name?: string;
654
+ };
655
+ type Episode = {
656
+ number: number;
657
+ display?: string;
658
+ };
659
+ type Trailer<TDate extends DateLike> = {
660
+ display: string;
661
+ url: string;
662
+ pubDate: TDate;
663
+ length?: number;
664
+ type?: string;
665
+ season?: number;
666
+ };
667
+ type License = {
668
+ display: string;
669
+ url?: string;
670
+ };
671
+ type AlternateEnclosure = {
672
+ type: string;
673
+ length?: number;
674
+ bitrate?: number;
675
+ height?: number;
676
+ lang?: string;
677
+ title?: string;
678
+ rel?: string;
679
+ codecs?: string;
680
+ default?: boolean;
681
+ sources?: Array<Source$1>;
682
+ integrity?: Integrity;
683
+ };
684
+ type Source$1 = {
685
+ uri: string;
686
+ contentType?: string;
687
+ };
688
+ type Integrity = {
689
+ type: string;
690
+ value: string;
691
+ };
692
+ type Value = {
693
+ type: string;
694
+ method: string;
695
+ suggested?: number;
696
+ valueRecipients?: Array<ValueRecipient>;
697
+ valueTimeSplits?: Array<ValueTimeSplit>;
698
+ };
699
+ type ValueRecipient = {
700
+ name?: string;
701
+ customKey?: string;
702
+ customValue?: string;
703
+ type: string;
704
+ address: string;
705
+ split: number;
706
+ fee?: boolean;
707
+ };
708
+ type Images = {
709
+ srcset?: string;
710
+ };
711
+ type LiveItem<TDate extends DateLike> = BaseItem & {
712
+ status: string;
713
+ start: TDate;
714
+ end?: TDate;
715
+ contentLinks?: Array<ContentLink>;
716
+ };
717
+ type ContentLink = {
718
+ href: string;
719
+ display?: string;
720
+ };
721
+ type SocialInteract = {
722
+ uri?: string;
723
+ protocol: string;
724
+ accountId?: string;
725
+ accountUrl?: string;
726
+ priority?: number;
727
+ };
728
+ type Block = {
729
+ value: boolean;
730
+ id?: string;
731
+ };
732
+ type Txt = {
733
+ display: string;
734
+ purpose?: string;
735
+ };
736
+ type RemoteItem = {
737
+ feedGuid: string;
738
+ feedUrl?: string;
739
+ itemGuid?: string;
740
+ medium?: string;
741
+ };
742
+ type Podroll = {
743
+ remoteItems?: Array<RemoteItem>;
744
+ };
745
+ type UpdateFrequency<TDate extends DateLike> = {
746
+ display: string;
747
+ complete?: boolean;
748
+ dtstart?: TDate;
749
+ rrule?: string;
750
+ };
751
+ type Podping = {
752
+ usesPodping?: boolean;
753
+ };
754
+ type ValueTimeSplit = {
755
+ startTime: number;
756
+ duration: number;
757
+ remoteStartTime?: number;
758
+ remotePercentage?: number;
759
+ remoteItem?: RemoteItem;
760
+ valueRecipients?: Array<ValueRecipient>;
761
+ };
762
+ type Item$2 = BaseItem;
763
+ type Feed$7<TDate extends DateLike> = {
764
+ locked?: Locked;
765
+ fundings?: Array<Funding>;
766
+ persons?: Array<Person$1>;
767
+ location?: Location;
768
+ trailers?: Array<Trailer<TDate>>;
769
+ license?: License;
770
+ guid?: string;
771
+ value?: Value;
772
+ medium?: string;
773
+ images?: Images;
774
+ liveItems?: Array<LiveItem<TDate>>;
775
+ blocks?: Array<Block>;
776
+ txts?: Array<Txt>;
777
+ remoteItems?: Array<RemoteItem>;
778
+ podroll?: Podroll;
779
+ updateFrequency?: UpdateFrequency<TDate>;
780
+ podping?: Podping;
781
+ };
782
+ //#endregion
783
+ //#region src/namespaces/source/common/types.d.ts
784
+ type Account = {
785
+ service: string;
786
+ value?: string;
787
+ };
788
+ type Likes = {
789
+ server: string;
790
+ };
791
+ type Archive = {
792
+ url: string;
793
+ startDay: string;
794
+ endDay?: string;
795
+ filename?: string;
796
+ };
797
+ type SubscriptionList = {
798
+ url: string;
799
+ value?: string;
800
+ };
801
+ type Feed$8 = {
802
+ accounts?: Array<Account>;
803
+ likes?: Likes;
804
+ archive?: Archive;
805
+ subscriptionLists?: Array<SubscriptionList>;
806
+ cloud?: string;
807
+ blogroll?: string;
808
+ self?: string;
809
+ };
810
+ type Item$5 = {
811
+ markdown?: string;
812
+ outlines?: Array<string>;
813
+ localTime?: string;
814
+ linkFull?: string;
815
+ };
816
+ //#endregion
817
+ //#region src/feeds/rss/common/types.d.ts
818
+ type Person = string;
819
+ type Category = {
820
+ name: string;
821
+ domain?: string;
822
+ };
823
+ type Cloud = {
824
+ domain: string;
825
+ port: number;
826
+ path: string;
827
+ registerProcedure: string;
828
+ protocol: string;
829
+ };
830
+ type Image = {
831
+ url: string;
832
+ title: string;
833
+ link: string;
834
+ description?: string;
835
+ height?: number;
836
+ width?: number;
837
+ };
838
+ type TextInput = {
839
+ title: string;
840
+ description: string;
841
+ name: string;
842
+ link: string;
843
+ };
844
+ type Enclosure = {
845
+ url: string;
846
+ length: number;
847
+ type: string;
848
+ };
849
+ type Guid = {
850
+ value: string;
851
+ isPermaLink?: boolean;
852
+ };
853
+ type Source = {
854
+ title: string;
855
+ url?: string;
856
+ };
857
+ type Item$8<TDate extends DateLike> = {
858
+ title?: string;
859
+ link?: string;
860
+ description?: string;
861
+ authors?: Array<Person>;
862
+ categories?: Array<Category>;
863
+ comments?: string;
864
+ enclosures?: Array<Enclosure>;
865
+ guid?: Guid;
866
+ pubDate?: TDate;
867
+ source?: Source;
868
+ atom?: Entry<TDate>;
869
+ dc?: ItemOrFeed<TDate>;
870
+ content?: Item;
871
+ slash?: Item$4;
872
+ itunes?: Item$1;
873
+ podcast?: Item$2;
874
+ psc?: Item$3;
875
+ media?: ItemOrFeed$3;
876
+ georss?: ItemOrFeed$2;
877
+ thr?: Item$6;
878
+ dcterms?: ItemOrFeed$1<TDate>;
879
+ wfw?: Item$7;
880
+ src?: Item$5;
881
+ } & ({
882
+ title: string;
883
+ } | {
884
+ description: string;
885
+ });
886
+ type Feed$3<TDate extends DateLike> = {
887
+ title: string;
888
+ link?: string;
889
+ description: string;
890
+ language?: string;
891
+ copyright?: string;
892
+ managingEditor?: Person;
893
+ webMaster?: Person;
894
+ pubDate?: TDate;
895
+ lastBuildDate?: TDate;
896
+ categories?: Array<Category>;
897
+ generator?: string;
898
+ docs?: string;
899
+ cloud?: Cloud;
900
+ ttl?: number;
901
+ image?: Image;
902
+ rating?: string;
903
+ textInput?: TextInput;
904
+ skipHours?: Array<number>;
905
+ skipDays?: Array<string>;
906
+ items?: Array<Item$8<TDate>>;
907
+ atom?: Feed$5<TDate>;
908
+ dc?: ItemOrFeed<TDate>;
909
+ sy?: Feed$9<TDate>;
910
+ itunes?: Feed$6;
911
+ podcast?: Feed$7<TDate>;
912
+ media?: ItemOrFeed$3;
913
+ georss?: ItemOrFeed$2;
914
+ dcterms?: ItemOrFeed$1<TDate>;
915
+ src?: Feed$8;
916
+ };
917
+ //#endregion
918
+ //#region src/common/parse.d.ts
919
+ type Feed$4 = {
920
+ format: 'rss';
921
+ feed: DeepPartial<Feed$3<string>>;
922
+ } | {
923
+ format: 'atom';
924
+ feed: DeepPartial<Feed<string>>;
925
+ } | {
926
+ format: 'rdf';
927
+ feed: DeepPartial<Feed$2<string>>;
928
+ } | {
929
+ format: 'json';
930
+ feed: DeepPartial<Feed$1<string>>;
931
+ };
932
+ declare const parse$1: (value: unknown) => Feed$4;
933
+ //#endregion
934
+ //#region src/feeds/atom/detect/index.d.ts
935
+ declare const detect: (value: unknown) => value is string;
936
+ //#endregion
937
+ //#region src/feeds/atom/generate/index.d.ts
938
+ declare const generate: XmlGenerateMain<Feed<Date>, DeepPartial<Feed<DateLike>>>;
939
+ //#endregion
940
+ //#region src/feeds/atom/parse/index.d.ts
941
+ declare const parse: (value: unknown) => DeepPartial<Feed<string>>;
942
+ //#endregion
943
+ //#region src/feeds/json/detect/index.d.ts
944
+ declare const detect$1: (value: unknown) => value is object;
945
+ //#endregion
946
+ //#region src/feeds/json/generate/index.d.ts
947
+ declare const generate$1: JsonGenerateMain<Feed$1<Date>, DeepPartial<Feed$1<DateLike>>>;
948
+ //#endregion
949
+ //#region src/feeds/json/parse/index.d.ts
950
+ declare const parse$2: (value: unknown) => DeepPartial<Feed$1<string>>;
951
+ //#endregion
952
+ //#region src/feeds/rdf/detect/index.d.ts
953
+ declare const detect$2: (value: unknown) => value is string;
954
+ //#endregion
955
+ //#region src/feeds/rdf/parse/index.d.ts
956
+ declare const parse$4: (value: unknown) => DeepPartial<Feed$2<string>>;
957
+ //#endregion
958
+ //#region src/feeds/rss/detect/index.d.ts
959
+ declare const detect$3: (value: unknown) => value is string;
960
+ //#endregion
961
+ //#region src/feeds/rss/generate/index.d.ts
962
+ declare const generate$3: XmlGenerateMain<Feed$3<Date>, DeepPartial<Feed$3<DateLike>>>;
963
+ //#endregion
964
+ //#region src/feeds/rss/parse/index.d.ts
965
+ declare const parse$5: (value: unknown) => DeepPartial<Feed$3<string>>;
966
+ //#endregion
967
+ //#region src/opml/common/types.d.ts
968
+ type MainOptions<A extends ReadonlyArray<string> = ReadonlyArray<string>> = {
969
+ extraOutlineAttributes?: A;
970
+ };
971
+ type Outline<TDate extends DateLike, A extends ReadonlyArray<string> = ReadonlyArray<string>> = {
972
+ text: string;
973
+ type?: string;
974
+ isComment?: boolean;
975
+ isBreakpoint?: boolean;
976
+ created?: TDate;
977
+ category?: string;
978
+ description?: string;
979
+ xmlUrl?: string;
980
+ htmlUrl?: string;
981
+ language?: string;
982
+ title?: string;
983
+ version?: string;
984
+ url?: string;
985
+ outlines?: Array<Outline<TDate, A>>;
986
+ } & ExtraFields<A>;
987
+ type Head<TDate extends DateLike> = {
988
+ title?: string;
989
+ dateCreated?: TDate;
990
+ dateModified?: TDate;
991
+ ownerName?: string;
992
+ ownerEmail?: string;
993
+ ownerId?: string;
994
+ docs?: string;
995
+ expansionState?: Array<number>;
996
+ vertScrollState?: number;
997
+ windowTop?: number;
998
+ windowLeft?: number;
999
+ windowBottom?: number;
1000
+ windowRight?: number;
1001
+ };
1002
+ type Body<TDate extends DateLike, A extends ReadonlyArray<string> = ReadonlyArray<string>> = {
1003
+ outlines?: Array<Outline<TDate, A>>;
1004
+ };
1005
+ type Opml<TDate extends DateLike, A extends ReadonlyArray<string> = ReadonlyArray<string>> = {
1006
+ head?: Head<TDate>;
1007
+ body?: Body<TDate, A>;
1008
+ };
1009
+ //#endregion
1010
+ //#region src/opml/generate/index.d.ts
1011
+ declare const generate$2: <A extends ReadonlyArray<string> = [], F extends boolean = false>(value: F extends true ? DeepPartial<Opml<DateLike, A>> : Opml<Date, A>, options?: XmlGenerateOptions<MainOptions<A>, F>) => string;
1012
+ //#endregion
1013
+ //#region src/opml/parse/index.d.ts
1014
+ declare const parse$3: <const A extends ReadonlyArray<string> = []>(value: string, options?: MainOptions<A>) => DeepPartial<Opml<string, A>>;
1015
+ //#endregion
1016
+ export { type Feed as AtomFeed, type Feed$1 as JsonFeed, type Opml, type Feed$2 as RdfFeed, type Feed$3 as RssFeed, detect as detectAtomFeed, detect$1 as detectJsonFeed, detect$2 as detectRdfFeed, detect$3 as detectRssFeed, generate as generateAtomFeed, generate$1 as generateJsonFeed, generate$2 as generateOpml, generate$3 as generateRssFeed, parse as parseAtomFeed, parse$1 as parseFeed, parse$2 as parseJsonFeed, parse$3 as parseOpml, parse$4 as parseRdfFeed, parse$5 as parseRssFeed };
package/package.json CHANGED
@@ -31,21 +31,25 @@
31
31
  "type": "module",
32
32
  "exports": {
33
33
  ".": {
34
- "types": "./dist/index.d.ts",
35
- "import": "./dist/index.js",
36
- "require": "./dist/index.cjs"
37
- }
34
+ "import": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "require": {
39
+ "types": "./dist/index.d.cts",
40
+ "default": "./dist/index.cjs"
41
+ }
42
+ },
43
+ "./package.json": "./package.json"
38
44
  },
39
45
  "files": [
40
- "dist/*.js",
41
- "dist/*.cjs",
42
- "dist/*.d.ts"
46
+ "dist"
43
47
  ],
44
48
  "scripts": {
45
49
  "prepare": "lefthook install",
46
50
  "lint:tsc": "tsc --pretty --noEmit",
47
51
  "lint:biome": "bunx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true",
48
- "build": "tsdown --format cjs,esm",
52
+ "build": "tsdown --format cjs,esm --dts --clean",
49
53
  "docs:dev": "vitepress dev docs",
50
54
  "docs:build": "vitepress build docs",
51
55
  "docs:preview": "vitepress preview docs"
@@ -60,12 +64,12 @@
60
64
  "@commitlint/config-conventional": "^19.8.1",
61
65
  "@types/bun": "^1.2.22",
62
66
  "conventional-changelog-conventionalcommits": "^9.1.0",
63
- "lefthook": "^1.13.0",
64
- "semantic-release": "^24.2.8",
65
- "tsdown": "^0.15.1",
67
+ "lefthook": "^1.13.4",
68
+ "semantic-release": "^24.2.9",
69
+ "tsdown": "^0.15.4",
66
70
  "typescript": "^5.9.2",
67
71
  "vitepress": "^1.6.4",
68
72
  "vitepress-plugin-llms": "^1.7.5"
69
73
  },
70
- "version": "2.1.0"
74
+ "version": "2.1.1"
71
75
  }