harvester_sdk 1.0.9 → 1.0.11

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/types.d.ts CHANGED
@@ -219,123 +219,1586 @@ export declare const zodGeoSelectionSchema: z.ZodObject<{
219
219
  region?: string | undefined;
220
220
  geos?: string[] | undefined;
221
221
  }>;
222
+ export declare const telegramMetadataSchema: z.ZodObject<{
223
+ channel_id: z.ZodString;
224
+ views: z.ZodOptional<z.ZodNumber>;
225
+ forwards: z.ZodOptional<z.ZodNumber>;
226
+ reactions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
227
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
228
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
229
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
230
+ is_edited: z.ZodOptional<z.ZodBoolean>;
231
+ edit_date: z.ZodOptional<z.ZodNumber>;
232
+ post_author: z.ZodNullable<z.ZodString>;
233
+ via_bot_id: z.ZodOptional<z.ZodString>;
234
+ grouped_id: z.ZodOptional<z.ZodString>;
235
+ is_silent: z.ZodOptional<z.ZodBoolean>;
236
+ forwarded_from_id: z.ZodOptional<z.ZodString>;
237
+ forwarded_date: z.ZodOptional<z.ZodNumber>;
238
+ }, "strip", z.ZodTypeAny, {
239
+ channel_id: string;
240
+ post_author: string | null;
241
+ views?: number | undefined;
242
+ forwards?: number | undefined;
243
+ reactions?: any[] | undefined;
244
+ hashtags?: string[] | undefined;
245
+ mentions?: string[] | undefined;
246
+ is_pinned?: boolean | undefined;
247
+ is_edited?: boolean | undefined;
248
+ edit_date?: number | undefined;
249
+ via_bot_id?: string | undefined;
250
+ grouped_id?: string | undefined;
251
+ is_silent?: boolean | undefined;
252
+ forwarded_from_id?: string | undefined;
253
+ forwarded_date?: number | undefined;
254
+ }, {
255
+ channel_id: string;
256
+ post_author: string | null;
257
+ views?: number | undefined;
258
+ forwards?: number | undefined;
259
+ reactions?: any[] | undefined;
260
+ hashtags?: string[] | undefined;
261
+ mentions?: string[] | undefined;
262
+ is_pinned?: boolean | undefined;
263
+ is_edited?: boolean | undefined;
264
+ edit_date?: number | undefined;
265
+ via_bot_id?: string | undefined;
266
+ grouped_id?: string | undefined;
267
+ is_silent?: boolean | undefined;
268
+ forwarded_from_id?: string | undefined;
269
+ forwarded_date?: number | undefined;
270
+ }>;
271
+ export declare const facebookMetadataSchema: z.ZodObject<{
272
+ post_id: z.ZodString;
273
+ likes: z.ZodOptional<z.ZodNumber>;
274
+ shares: z.ZodOptional<z.ZodNumber>;
275
+ comments_count: z.ZodOptional<z.ZodNumber>;
276
+ reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
277
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
278
+ is_edited: z.ZodOptional<z.ZodBoolean>;
279
+ edit_date: z.ZodOptional<z.ZodNumber>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ post_id: string;
282
+ reactions?: Record<string, number> | undefined;
283
+ is_pinned?: boolean | undefined;
284
+ is_edited?: boolean | undefined;
285
+ edit_date?: number | undefined;
286
+ likes?: number | undefined;
287
+ shares?: number | undefined;
288
+ comments_count?: number | undefined;
289
+ }, {
290
+ post_id: string;
291
+ reactions?: Record<string, number> | undefined;
292
+ is_pinned?: boolean | undefined;
293
+ is_edited?: boolean | undefined;
294
+ edit_date?: number | undefined;
295
+ likes?: number | undefined;
296
+ shares?: number | undefined;
297
+ comments_count?: number | undefined;
298
+ }>;
299
+ export declare const instagramMetadataSchema: z.ZodObject<{
300
+ post_id: z.ZodString;
301
+ likes: z.ZodOptional<z.ZodNumber>;
302
+ comments_count: z.ZodOptional<z.ZodNumber>;
303
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
304
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
305
+ location: z.ZodOptional<z.ZodString>;
306
+ is_reel: z.ZodOptional<z.ZodBoolean>;
307
+ is_story: z.ZodOptional<z.ZodBoolean>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ post_id: string;
310
+ hashtags?: string[] | undefined;
311
+ mentions?: string[] | undefined;
312
+ likes?: number | undefined;
313
+ comments_count?: number | undefined;
314
+ location?: string | undefined;
315
+ is_reel?: boolean | undefined;
316
+ is_story?: boolean | undefined;
317
+ }, {
318
+ post_id: string;
319
+ hashtags?: string[] | undefined;
320
+ mentions?: string[] | undefined;
321
+ likes?: number | undefined;
322
+ comments_count?: number | undefined;
323
+ location?: string | undefined;
324
+ is_reel?: boolean | undefined;
325
+ is_story?: boolean | undefined;
326
+ }>;
327
+ export declare const tiktokMetadataSchema: z.ZodObject<{
328
+ video_id: z.ZodString;
329
+ likes: z.ZodOptional<z.ZodNumber>;
330
+ shares: z.ZodOptional<z.ZodNumber>;
331
+ comments_count: z.ZodOptional<z.ZodNumber>;
332
+ views: z.ZodOptional<z.ZodNumber>;
333
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ sound_name: z.ZodOptional<z.ZodString>;
336
+ sound_id: z.ZodOptional<z.ZodString>;
337
+ duration: z.ZodOptional<z.ZodNumber>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ video_id: string;
340
+ views?: number | undefined;
341
+ hashtags?: string[] | undefined;
342
+ mentions?: string[] | undefined;
343
+ likes?: number | undefined;
344
+ shares?: number | undefined;
345
+ comments_count?: number | undefined;
346
+ sound_name?: string | undefined;
347
+ sound_id?: string | undefined;
348
+ duration?: number | undefined;
349
+ }, {
350
+ video_id: string;
351
+ views?: number | undefined;
352
+ hashtags?: string[] | undefined;
353
+ mentions?: string[] | undefined;
354
+ likes?: number | undefined;
355
+ shares?: number | undefined;
356
+ comments_count?: number | undefined;
357
+ sound_name?: string | undefined;
358
+ sound_id?: string | undefined;
359
+ duration?: number | undefined;
360
+ }>;
361
+ export declare const websiteMetadataSchema: z.ZodObject<{
362
+ article_id: z.ZodOptional<z.ZodString>;
363
+ url: z.ZodString;
364
+ title: z.ZodOptional<z.ZodString>;
365
+ author: z.ZodOptional<z.ZodString>;
366
+ publish_date: z.ZodOptional<z.ZodNumber>;
367
+ category: z.ZodOptional<z.ZodString>;
368
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ url: string;
371
+ title?: string | undefined;
372
+ tags?: string[] | undefined;
373
+ article_id?: string | undefined;
374
+ author?: string | undefined;
375
+ publish_date?: number | undefined;
376
+ category?: string | undefined;
377
+ }, {
378
+ url: string;
379
+ title?: string | undefined;
380
+ tags?: string[] | undefined;
381
+ article_id?: string | undefined;
382
+ author?: string | undefined;
383
+ publish_date?: number | undefined;
384
+ category?: string | undefined;
385
+ }>;
386
+ export declare const mediaItemSchema: z.ZodObject<{
387
+ type: z.ZodEnum<["image", "video", "audio", "link", "document", "gif", "sticker"]>;
388
+ url: z.ZodString;
389
+ caption: z.ZodOptional<z.ZodString>;
390
+ thumbnail_url: z.ZodOptional<z.ZodString>;
391
+ width: z.ZodOptional<z.ZodNumber>;
392
+ height: z.ZodOptional<z.ZodNumber>;
393
+ duration: z.ZodOptional<z.ZodNumber>;
394
+ size: z.ZodOptional<z.ZodNumber>;
395
+ mime_type: z.ZodOptional<z.ZodString>;
396
+ }, "strip", z.ZodTypeAny, {
397
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
398
+ url: string;
399
+ duration?: number | undefined;
400
+ caption?: string | undefined;
401
+ thumbnail_url?: string | undefined;
402
+ width?: number | undefined;
403
+ height?: number | undefined;
404
+ size?: number | undefined;
405
+ mime_type?: string | undefined;
406
+ }, {
407
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
408
+ url: string;
409
+ duration?: number | undefined;
410
+ caption?: string | undefined;
411
+ thumbnail_url?: string | undefined;
412
+ width?: number | undefined;
413
+ height?: number | undefined;
414
+ size?: number | undefined;
415
+ mime_type?: string | undefined;
416
+ }>;
417
+ export declare const repliesInfoSchema: z.ZodObject<{
418
+ count: z.ZodDefault<z.ZodNumber>;
419
+ recent_repliers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
420
+ has_thread: z.ZodOptional<z.ZodBoolean>;
421
+ thread_id: z.ZodOptional<z.ZodString>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ count: number;
424
+ recent_repliers?: string[] | undefined;
425
+ has_thread?: boolean | undefined;
426
+ thread_id?: string | undefined;
427
+ }, {
428
+ count?: number | undefined;
429
+ recent_repliers?: string[] | undefined;
430
+ has_thread?: boolean | undefined;
431
+ thread_id?: string | undefined;
432
+ }>;
433
+ export declare const authorSchema: z.ZodObject<{
434
+ id: z.ZodOptional<z.ZodString>;
435
+ username: z.ZodOptional<z.ZodString>;
436
+ display_name: z.ZodOptional<z.ZodString>;
437
+ avatar_url: z.ZodOptional<z.ZodString>;
438
+ is_verified: z.ZodOptional<z.ZodBoolean>;
439
+ follower_count: z.ZodOptional<z.ZodNumber>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ username?: string | undefined;
442
+ id?: string | undefined;
443
+ display_name?: string | undefined;
444
+ avatar_url?: string | undefined;
445
+ is_verified?: boolean | undefined;
446
+ follower_count?: number | undefined;
447
+ }, {
448
+ username?: string | undefined;
449
+ id?: string | undefined;
450
+ display_name?: string | undefined;
451
+ avatar_url?: string | undefined;
452
+ is_verified?: boolean | undefined;
453
+ follower_count?: number | undefined;
454
+ }>;
222
455
  export declare const zodDataSchema: z.ZodObject<{
223
456
  _id: z.ZodOptional<z.ZodString>;
224
457
  timestamp: z.ZodOptional<z.ZodNumber>;
458
+ data_timestamp: z.ZodOptional<z.ZodNumber>;
459
+ created_at: z.ZodNumber;
460
+ updated_at: z.ZodNumber;
225
461
  platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "instagram", "tiktok", "website"]>>;
226
- source_region_id: z.ZodOptional<z.ZodString>;
227
- source_region_title: z.ZodOptional<z.ZodString>;
228
- source_dominant_geos: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
229
462
  source_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
230
463
  source_title: z.ZodOptional<z.ZodString>;
231
464
  source_url: z.ZodOptional<z.ZodString>;
465
+ source_region_id: z.ZodOptional<z.ZodString>;
466
+ source_region_title: z.ZodOptional<z.ZodString>;
232
467
  source_group_id: z.ZodOptional<z.ZodString>;
468
+ source_dominant_geos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
233
469
  data_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
234
- data_geo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
235
- data_text: z.ZodOptional<z.ZodString>;
236
470
  data_url: z.ZodOptional<z.ZodString>;
237
- data_original_type: z.ZodOptional<z.ZodString>;
471
+ data_original_type: z.ZodOptional<z.ZodEnum<["post", "comment", "reply", "video", "image", "photo", "story", "reel", "article", "link", "document"]>>;
472
+ data_text: z.ZodOptional<z.ZodString>;
238
473
  data_language: z.ZodOptional<z.ZodString>;
239
- data_sentiment: z.ZodOptional<z.ZodString>;
240
- data_timestamp: z.ZodOptional<z.ZodNumber>;
241
- is_reply: z.ZodOptional<z.ZodBoolean>;
242
- reply_to_message_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
243
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
244
- created_at: z.ZodNumber;
245
- updated_at: z.ZodNumber;
246
- media: z.ZodOptional<z.ZodArray<z.ZodObject<{
247
- type: z.ZodEnum<["image", "video", "audio", "link"]>;
474
+ data_geo: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
475
+ data_sentiment: z.ZodOptional<z.ZodEnum<["positive", "negative", "neutral", "mixed"]>>;
476
+ data_topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
477
+ data_keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
478
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
479
+ type: z.ZodEnum<["image", "video", "audio", "link", "document", "gif", "sticker"]>;
248
480
  url: z.ZodString;
249
481
  caption: z.ZodOptional<z.ZodString>;
482
+ thumbnail_url: z.ZodOptional<z.ZodString>;
483
+ width: z.ZodOptional<z.ZodNumber>;
484
+ height: z.ZodOptional<z.ZodNumber>;
485
+ duration: z.ZodOptional<z.ZodNumber>;
486
+ size: z.ZodOptional<z.ZodNumber>;
487
+ mime_type: z.ZodOptional<z.ZodString>;
250
488
  }, "strip", z.ZodTypeAny, {
251
- type: "image" | "video" | "audio" | "link";
489
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
252
490
  url: string;
491
+ duration?: number | undefined;
253
492
  caption?: string | undefined;
493
+ thumbnail_url?: string | undefined;
494
+ width?: number | undefined;
495
+ height?: number | undefined;
496
+ size?: number | undefined;
497
+ mime_type?: string | undefined;
254
498
  }, {
255
- type: "image" | "video" | "audio" | "link";
499
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
256
500
  url: string;
501
+ duration?: number | undefined;
257
502
  caption?: string | undefined;
258
- }>, "many">>;
503
+ thumbnail_url?: string | undefined;
504
+ width?: number | undefined;
505
+ height?: number | undefined;
506
+ size?: number | undefined;
507
+ mime_type?: string | undefined;
508
+ }>, "many">>>;
259
509
  author: z.ZodOptional<z.ZodString>;
260
510
  author_username: z.ZodOptional<z.ZodString>;
261
- replies: z.ZodOptional<z.ZodAny>;
262
511
  author_id: z.ZodOptional<z.ZodString>;
512
+ author_info: z.ZodOptional<z.ZodObject<{
513
+ id: z.ZodOptional<z.ZodString>;
514
+ username: z.ZodOptional<z.ZodString>;
515
+ display_name: z.ZodOptional<z.ZodString>;
516
+ avatar_url: z.ZodOptional<z.ZodString>;
517
+ is_verified: z.ZodOptional<z.ZodBoolean>;
518
+ follower_count: z.ZodOptional<z.ZodNumber>;
519
+ }, "strip", z.ZodTypeAny, {
520
+ username?: string | undefined;
521
+ id?: string | undefined;
522
+ display_name?: string | undefined;
523
+ avatar_url?: string | undefined;
524
+ is_verified?: boolean | undefined;
525
+ follower_count?: number | undefined;
526
+ }, {
527
+ username?: string | undefined;
528
+ id?: string | undefined;
529
+ display_name?: string | undefined;
530
+ avatar_url?: string | undefined;
531
+ is_verified?: boolean | undefined;
532
+ follower_count?: number | undefined;
533
+ }>>;
534
+ is_reply: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
535
+ reply_to_message_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
536
+ reply_to_author_id: z.ZodOptional<z.ZodString>;
537
+ replies: z.ZodOptional<z.ZodAny>;
538
+ replies_info: z.ZodOptional<z.ZodObject<{
539
+ count: z.ZodDefault<z.ZodNumber>;
540
+ recent_repliers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
541
+ has_thread: z.ZodOptional<z.ZodBoolean>;
542
+ thread_id: z.ZodOptional<z.ZodString>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ count: number;
545
+ recent_repliers?: string[] | undefined;
546
+ has_thread?: boolean | undefined;
547
+ thread_id?: string | undefined;
548
+ }, {
549
+ count?: number | undefined;
550
+ recent_repliers?: string[] | undefined;
551
+ has_thread?: boolean | undefined;
552
+ thread_id?: string | undefined;
553
+ }>>;
554
+ engagement: z.ZodOptional<z.ZodObject<{
555
+ views: z.ZodOptional<z.ZodNumber>;
556
+ likes: z.ZodOptional<z.ZodNumber>;
557
+ shares: z.ZodOptional<z.ZodNumber>;
558
+ comments: z.ZodOptional<z.ZodNumber>;
559
+ reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ views?: number | undefined;
562
+ reactions?: Record<string, number> | undefined;
563
+ likes?: number | undefined;
564
+ shares?: number | undefined;
565
+ comments?: number | undefined;
566
+ }, {
567
+ views?: number | undefined;
568
+ reactions?: Record<string, number> | undefined;
569
+ likes?: number | undefined;
570
+ shares?: number | undefined;
571
+ comments?: number | undefined;
572
+ }>>;
573
+ is_edited: z.ZodOptional<z.ZodBoolean>;
574
+ edit_date: z.ZodOptional<z.ZodNumber>;
575
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
576
+ is_deleted: z.ZodOptional<z.ZodBoolean>;
577
+ is_forwarded: z.ZodOptional<z.ZodBoolean>;
578
+ forwarded_from_id: z.ZodOptional<z.ZodString>;
579
+ forwarded_date: z.ZodOptional<z.ZodNumber>;
580
+ hashtags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
581
+ mentions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
582
+ metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
583
+ channel_id: z.ZodString;
584
+ views: z.ZodOptional<z.ZodNumber>;
585
+ forwards: z.ZodOptional<z.ZodNumber>;
586
+ reactions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
587
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
588
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
589
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
590
+ is_edited: z.ZodOptional<z.ZodBoolean>;
591
+ edit_date: z.ZodOptional<z.ZodNumber>;
592
+ post_author: z.ZodNullable<z.ZodString>;
593
+ via_bot_id: z.ZodOptional<z.ZodString>;
594
+ grouped_id: z.ZodOptional<z.ZodString>;
595
+ is_silent: z.ZodOptional<z.ZodBoolean>;
596
+ forwarded_from_id: z.ZodOptional<z.ZodString>;
597
+ forwarded_date: z.ZodOptional<z.ZodNumber>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ channel_id: string;
600
+ post_author: string | null;
601
+ views?: number | undefined;
602
+ forwards?: number | undefined;
603
+ reactions?: any[] | undefined;
604
+ hashtags?: string[] | undefined;
605
+ mentions?: string[] | undefined;
606
+ is_pinned?: boolean | undefined;
607
+ is_edited?: boolean | undefined;
608
+ edit_date?: number | undefined;
609
+ via_bot_id?: string | undefined;
610
+ grouped_id?: string | undefined;
611
+ is_silent?: boolean | undefined;
612
+ forwarded_from_id?: string | undefined;
613
+ forwarded_date?: number | undefined;
614
+ }, {
615
+ channel_id: string;
616
+ post_author: string | null;
617
+ views?: number | undefined;
618
+ forwards?: number | undefined;
619
+ reactions?: any[] | undefined;
620
+ hashtags?: string[] | undefined;
621
+ mentions?: string[] | undefined;
622
+ is_pinned?: boolean | undefined;
623
+ is_edited?: boolean | undefined;
624
+ edit_date?: number | undefined;
625
+ via_bot_id?: string | undefined;
626
+ grouped_id?: string | undefined;
627
+ is_silent?: boolean | undefined;
628
+ forwarded_from_id?: string | undefined;
629
+ forwarded_date?: number | undefined;
630
+ }>, z.ZodObject<{
631
+ post_id: z.ZodString;
632
+ likes: z.ZodOptional<z.ZodNumber>;
633
+ shares: z.ZodOptional<z.ZodNumber>;
634
+ comments_count: z.ZodOptional<z.ZodNumber>;
635
+ reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
636
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
637
+ is_edited: z.ZodOptional<z.ZodBoolean>;
638
+ edit_date: z.ZodOptional<z.ZodNumber>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ post_id: string;
641
+ reactions?: Record<string, number> | undefined;
642
+ is_pinned?: boolean | undefined;
643
+ is_edited?: boolean | undefined;
644
+ edit_date?: number | undefined;
645
+ likes?: number | undefined;
646
+ shares?: number | undefined;
647
+ comments_count?: number | undefined;
648
+ }, {
649
+ post_id: string;
650
+ reactions?: Record<string, number> | undefined;
651
+ is_pinned?: boolean | undefined;
652
+ is_edited?: boolean | undefined;
653
+ edit_date?: number | undefined;
654
+ likes?: number | undefined;
655
+ shares?: number | undefined;
656
+ comments_count?: number | undefined;
657
+ }>, z.ZodObject<{
658
+ post_id: z.ZodString;
659
+ likes: z.ZodOptional<z.ZodNumber>;
660
+ comments_count: z.ZodOptional<z.ZodNumber>;
661
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
662
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
663
+ location: z.ZodOptional<z.ZodString>;
664
+ is_reel: z.ZodOptional<z.ZodBoolean>;
665
+ is_story: z.ZodOptional<z.ZodBoolean>;
666
+ }, "strip", z.ZodTypeAny, {
667
+ post_id: string;
668
+ hashtags?: string[] | undefined;
669
+ mentions?: string[] | undefined;
670
+ likes?: number | undefined;
671
+ comments_count?: number | undefined;
672
+ location?: string | undefined;
673
+ is_reel?: boolean | undefined;
674
+ is_story?: boolean | undefined;
675
+ }, {
676
+ post_id: string;
677
+ hashtags?: string[] | undefined;
678
+ mentions?: string[] | undefined;
679
+ likes?: number | undefined;
680
+ comments_count?: number | undefined;
681
+ location?: string | undefined;
682
+ is_reel?: boolean | undefined;
683
+ is_story?: boolean | undefined;
684
+ }>, z.ZodObject<{
685
+ video_id: z.ZodString;
686
+ likes: z.ZodOptional<z.ZodNumber>;
687
+ shares: z.ZodOptional<z.ZodNumber>;
688
+ comments_count: z.ZodOptional<z.ZodNumber>;
689
+ views: z.ZodOptional<z.ZodNumber>;
690
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
691
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
692
+ sound_name: z.ZodOptional<z.ZodString>;
693
+ sound_id: z.ZodOptional<z.ZodString>;
694
+ duration: z.ZodOptional<z.ZodNumber>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ video_id: string;
697
+ views?: number | undefined;
698
+ hashtags?: string[] | undefined;
699
+ mentions?: string[] | undefined;
700
+ likes?: number | undefined;
701
+ shares?: number | undefined;
702
+ comments_count?: number | undefined;
703
+ sound_name?: string | undefined;
704
+ sound_id?: string | undefined;
705
+ duration?: number | undefined;
706
+ }, {
707
+ video_id: string;
708
+ views?: number | undefined;
709
+ hashtags?: string[] | undefined;
710
+ mentions?: string[] | undefined;
711
+ likes?: number | undefined;
712
+ shares?: number | undefined;
713
+ comments_count?: number | undefined;
714
+ sound_name?: string | undefined;
715
+ sound_id?: string | undefined;
716
+ duration?: number | undefined;
717
+ }>, z.ZodObject<{
718
+ article_id: z.ZodOptional<z.ZodString>;
719
+ url: z.ZodString;
720
+ title: z.ZodOptional<z.ZodString>;
721
+ author: z.ZodOptional<z.ZodString>;
722
+ publish_date: z.ZodOptional<z.ZodNumber>;
723
+ category: z.ZodOptional<z.ZodString>;
724
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
725
+ }, "strip", z.ZodTypeAny, {
726
+ url: string;
727
+ title?: string | undefined;
728
+ tags?: string[] | undefined;
729
+ article_id?: string | undefined;
730
+ author?: string | undefined;
731
+ publish_date?: number | undefined;
732
+ category?: string | undefined;
733
+ }, {
734
+ url: string;
735
+ title?: string | undefined;
736
+ tags?: string[] | undefined;
737
+ article_id?: string | undefined;
738
+ author?: string | undefined;
739
+ publish_date?: number | undefined;
740
+ category?: string | undefined;
741
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
742
+ processing_errors: z.ZodOptional<z.ZodString>;
263
743
  }, "strip", z.ZodTypeAny, {
264
744
  created_at: number;
265
745
  updated_at: number;
746
+ hashtags: string[];
747
+ mentions: string[];
266
748
  source_id: string | number;
749
+ source_dominant_geos: string[];
750
+ data_geo: string[];
751
+ media: {
752
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
753
+ url: string;
754
+ duration?: number | undefined;
755
+ caption?: string | undefined;
756
+ thumbnail_url?: string | undefined;
757
+ width?: number | undefined;
758
+ height?: number | undefined;
759
+ size?: number | undefined;
760
+ mime_type?: string | undefined;
761
+ }[];
762
+ is_reply: boolean;
267
763
  _id?: string | undefined;
268
764
  platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | undefined;
269
- metadata?: Record<string, any> | undefined;
765
+ metadata?: Record<string, any> | {
766
+ channel_id: string;
767
+ post_author: string | null;
768
+ views?: number | undefined;
769
+ forwards?: number | undefined;
770
+ reactions?: any[] | undefined;
771
+ hashtags?: string[] | undefined;
772
+ mentions?: string[] | undefined;
773
+ is_pinned?: boolean | undefined;
774
+ is_edited?: boolean | undefined;
775
+ edit_date?: number | undefined;
776
+ via_bot_id?: string | undefined;
777
+ grouped_id?: string | undefined;
778
+ is_silent?: boolean | undefined;
779
+ forwarded_from_id?: string | undefined;
780
+ forwarded_date?: number | undefined;
781
+ } | {
782
+ post_id: string;
783
+ reactions?: Record<string, number> | undefined;
784
+ is_pinned?: boolean | undefined;
785
+ is_edited?: boolean | undefined;
786
+ edit_date?: number | undefined;
787
+ likes?: number | undefined;
788
+ shares?: number | undefined;
789
+ comments_count?: number | undefined;
790
+ } | {
791
+ post_id: string;
792
+ hashtags?: string[] | undefined;
793
+ mentions?: string[] | undefined;
794
+ likes?: number | undefined;
795
+ comments_count?: number | undefined;
796
+ location?: string | undefined;
797
+ is_reel?: boolean | undefined;
798
+ is_story?: boolean | undefined;
799
+ } | {
800
+ video_id: string;
801
+ views?: number | undefined;
802
+ hashtags?: string[] | undefined;
803
+ mentions?: string[] | undefined;
804
+ likes?: number | undefined;
805
+ shares?: number | undefined;
806
+ comments_count?: number | undefined;
807
+ sound_name?: string | undefined;
808
+ sound_id?: string | undefined;
809
+ duration?: number | undefined;
810
+ } | {
811
+ url: string;
812
+ title?: string | undefined;
813
+ tags?: string[] | undefined;
814
+ article_id?: string | undefined;
815
+ author?: string | undefined;
816
+ publish_date?: number | undefined;
817
+ category?: string | undefined;
818
+ } | undefined;
270
819
  timestamp?: number | undefined;
820
+ is_pinned?: boolean | undefined;
821
+ is_edited?: boolean | undefined;
822
+ edit_date?: number | undefined;
823
+ forwarded_from_id?: string | undefined;
824
+ forwarded_date?: number | undefined;
825
+ author?: string | undefined;
826
+ data_timestamp?: number | undefined;
827
+ source_title?: string | undefined;
828
+ source_url?: string | undefined;
271
829
  source_region_id?: string | undefined;
272
830
  source_region_title?: string | undefined;
273
- source_dominant_geos?: string[] | undefined;
831
+ source_group_id?: string | undefined;
832
+ data_id?: string | number | undefined;
833
+ data_url?: string | undefined;
834
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
835
+ data_text?: string | undefined;
836
+ data_language?: string | undefined;
837
+ data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
838
+ data_topics?: string[] | undefined;
839
+ data_keywords?: string[] | undefined;
840
+ author_username?: string | undefined;
841
+ author_id?: string | undefined;
842
+ author_info?: {
843
+ username?: string | undefined;
844
+ id?: string | undefined;
845
+ display_name?: string | undefined;
846
+ avatar_url?: string | undefined;
847
+ is_verified?: boolean | undefined;
848
+ follower_count?: number | undefined;
849
+ } | undefined;
850
+ reply_to_message_id?: string | number | undefined;
851
+ reply_to_author_id?: string | undefined;
852
+ replies?: any;
853
+ replies_info?: {
854
+ count: number;
855
+ recent_repliers?: string[] | undefined;
856
+ has_thread?: boolean | undefined;
857
+ thread_id?: string | undefined;
858
+ } | undefined;
859
+ engagement?: {
860
+ views?: number | undefined;
861
+ reactions?: Record<string, number> | undefined;
862
+ likes?: number | undefined;
863
+ shares?: number | undefined;
864
+ comments?: number | undefined;
865
+ } | undefined;
866
+ is_deleted?: boolean | undefined;
867
+ is_forwarded?: boolean | undefined;
868
+ processing_errors?: string | undefined;
869
+ }, {
870
+ created_at: number;
871
+ updated_at: number;
872
+ source_id: string | number;
873
+ _id?: string | undefined;
874
+ platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | undefined;
875
+ metadata?: Record<string, any> | {
876
+ channel_id: string;
877
+ post_author: string | null;
878
+ views?: number | undefined;
879
+ forwards?: number | undefined;
880
+ reactions?: any[] | undefined;
881
+ hashtags?: string[] | undefined;
882
+ mentions?: string[] | undefined;
883
+ is_pinned?: boolean | undefined;
884
+ is_edited?: boolean | undefined;
885
+ edit_date?: number | undefined;
886
+ via_bot_id?: string | undefined;
887
+ grouped_id?: string | undefined;
888
+ is_silent?: boolean | undefined;
889
+ forwarded_from_id?: string | undefined;
890
+ forwarded_date?: number | undefined;
891
+ } | {
892
+ post_id: string;
893
+ reactions?: Record<string, number> | undefined;
894
+ is_pinned?: boolean | undefined;
895
+ is_edited?: boolean | undefined;
896
+ edit_date?: number | undefined;
897
+ likes?: number | undefined;
898
+ shares?: number | undefined;
899
+ comments_count?: number | undefined;
900
+ } | {
901
+ post_id: string;
902
+ hashtags?: string[] | undefined;
903
+ mentions?: string[] | undefined;
904
+ likes?: number | undefined;
905
+ comments_count?: number | undefined;
906
+ location?: string | undefined;
907
+ is_reel?: boolean | undefined;
908
+ is_story?: boolean | undefined;
909
+ } | {
910
+ video_id: string;
911
+ views?: number | undefined;
912
+ hashtags?: string[] | undefined;
913
+ mentions?: string[] | undefined;
914
+ likes?: number | undefined;
915
+ shares?: number | undefined;
916
+ comments_count?: number | undefined;
917
+ sound_name?: string | undefined;
918
+ sound_id?: string | undefined;
919
+ duration?: number | undefined;
920
+ } | {
921
+ url: string;
922
+ title?: string | undefined;
923
+ tags?: string[] | undefined;
924
+ article_id?: string | undefined;
925
+ author?: string | undefined;
926
+ publish_date?: number | undefined;
927
+ category?: string | undefined;
928
+ } | undefined;
929
+ timestamp?: number | undefined;
930
+ hashtags?: string[] | undefined;
931
+ mentions?: string[] | undefined;
932
+ is_pinned?: boolean | undefined;
933
+ is_edited?: boolean | undefined;
934
+ edit_date?: number | undefined;
935
+ forwarded_from_id?: string | undefined;
936
+ forwarded_date?: number | undefined;
937
+ author?: string | undefined;
938
+ data_timestamp?: number | undefined;
274
939
  source_title?: string | undefined;
275
940
  source_url?: string | undefined;
941
+ source_region_id?: string | undefined;
942
+ source_region_title?: string | undefined;
276
943
  source_group_id?: string | undefined;
944
+ source_dominant_geos?: string[] | undefined;
277
945
  data_id?: string | number | undefined;
278
- data_geo?: string[] | undefined;
279
- data_text?: string | undefined;
280
946
  data_url?: string | undefined;
281
- data_original_type?: string | undefined;
947
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
948
+ data_text?: string | undefined;
282
949
  data_language?: string | undefined;
283
- data_sentiment?: string | undefined;
284
- data_timestamp?: number | undefined;
285
- is_reply?: boolean | undefined;
286
- reply_to_message_id?: string | number | undefined;
950
+ data_geo?: string[] | undefined;
951
+ data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
952
+ data_topics?: string[] | undefined;
953
+ data_keywords?: string[] | undefined;
287
954
  media?: {
288
- type: "image" | "video" | "audio" | "link";
955
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
289
956
  url: string;
957
+ duration?: number | undefined;
290
958
  caption?: string | undefined;
959
+ thumbnail_url?: string | undefined;
960
+ width?: number | undefined;
961
+ height?: number | undefined;
962
+ size?: number | undefined;
963
+ mime_type?: string | undefined;
291
964
  }[] | undefined;
292
- author?: string | undefined;
293
965
  author_username?: string | undefined;
966
+ author_id?: string | undefined;
967
+ author_info?: {
968
+ username?: string | undefined;
969
+ id?: string | undefined;
970
+ display_name?: string | undefined;
971
+ avatar_url?: string | undefined;
972
+ is_verified?: boolean | undefined;
973
+ follower_count?: number | undefined;
974
+ } | undefined;
975
+ is_reply?: boolean | undefined;
976
+ reply_to_message_id?: string | number | undefined;
977
+ reply_to_author_id?: string | undefined;
294
978
  replies?: any;
979
+ replies_info?: {
980
+ count?: number | undefined;
981
+ recent_repliers?: string[] | undefined;
982
+ has_thread?: boolean | undefined;
983
+ thread_id?: string | undefined;
984
+ } | undefined;
985
+ engagement?: {
986
+ views?: number | undefined;
987
+ reactions?: Record<string, number> | undefined;
988
+ likes?: number | undefined;
989
+ shares?: number | undefined;
990
+ comments?: number | undefined;
991
+ } | undefined;
992
+ is_deleted?: boolean | undefined;
993
+ is_forwarded?: boolean | undefined;
994
+ processing_errors?: string | undefined;
995
+ }>;
996
+ export declare const zodDataSchemaWithValidation: z.ZodEffects<z.ZodObject<{
997
+ _id: z.ZodOptional<z.ZodString>;
998
+ timestamp: z.ZodOptional<z.ZodNumber>;
999
+ data_timestamp: z.ZodOptional<z.ZodNumber>;
1000
+ created_at: z.ZodNumber;
1001
+ updated_at: z.ZodNumber;
1002
+ platform: z.ZodOptional<z.ZodEnum<["telegram", "facebook", "instagram", "tiktok", "website"]>>;
1003
+ source_id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
1004
+ source_title: z.ZodOptional<z.ZodString>;
1005
+ source_url: z.ZodOptional<z.ZodString>;
1006
+ source_region_id: z.ZodOptional<z.ZodString>;
1007
+ source_region_title: z.ZodOptional<z.ZodString>;
1008
+ source_group_id: z.ZodOptional<z.ZodString>;
1009
+ source_dominant_geos: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1010
+ data_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1011
+ data_url: z.ZodOptional<z.ZodString>;
1012
+ data_original_type: z.ZodOptional<z.ZodEnum<["post", "comment", "reply", "video", "image", "photo", "story", "reel", "article", "link", "document"]>>;
1013
+ data_text: z.ZodOptional<z.ZodString>;
1014
+ data_language: z.ZodOptional<z.ZodString>;
1015
+ data_geo: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1016
+ data_sentiment: z.ZodOptional<z.ZodEnum<["positive", "negative", "neutral", "mixed"]>>;
1017
+ data_topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1018
+ data_keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1019
+ media: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
+ type: z.ZodEnum<["image", "video", "audio", "link", "document", "gif", "sticker"]>;
1021
+ url: z.ZodString;
1022
+ caption: z.ZodOptional<z.ZodString>;
1023
+ thumbnail_url: z.ZodOptional<z.ZodString>;
1024
+ width: z.ZodOptional<z.ZodNumber>;
1025
+ height: z.ZodOptional<z.ZodNumber>;
1026
+ duration: z.ZodOptional<z.ZodNumber>;
1027
+ size: z.ZodOptional<z.ZodNumber>;
1028
+ mime_type: z.ZodOptional<z.ZodString>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
1031
+ url: string;
1032
+ duration?: number | undefined;
1033
+ caption?: string | undefined;
1034
+ thumbnail_url?: string | undefined;
1035
+ width?: number | undefined;
1036
+ height?: number | undefined;
1037
+ size?: number | undefined;
1038
+ mime_type?: string | undefined;
1039
+ }, {
1040
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
1041
+ url: string;
1042
+ duration?: number | undefined;
1043
+ caption?: string | undefined;
1044
+ thumbnail_url?: string | undefined;
1045
+ width?: number | undefined;
1046
+ height?: number | undefined;
1047
+ size?: number | undefined;
1048
+ mime_type?: string | undefined;
1049
+ }>, "many">>>;
1050
+ author: z.ZodOptional<z.ZodString>;
1051
+ author_username: z.ZodOptional<z.ZodString>;
1052
+ author_id: z.ZodOptional<z.ZodString>;
1053
+ author_info: z.ZodOptional<z.ZodObject<{
1054
+ id: z.ZodOptional<z.ZodString>;
1055
+ username: z.ZodOptional<z.ZodString>;
1056
+ display_name: z.ZodOptional<z.ZodString>;
1057
+ avatar_url: z.ZodOptional<z.ZodString>;
1058
+ is_verified: z.ZodOptional<z.ZodBoolean>;
1059
+ follower_count: z.ZodOptional<z.ZodNumber>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ username?: string | undefined;
1062
+ id?: string | undefined;
1063
+ display_name?: string | undefined;
1064
+ avatar_url?: string | undefined;
1065
+ is_verified?: boolean | undefined;
1066
+ follower_count?: number | undefined;
1067
+ }, {
1068
+ username?: string | undefined;
1069
+ id?: string | undefined;
1070
+ display_name?: string | undefined;
1071
+ avatar_url?: string | undefined;
1072
+ is_verified?: boolean | undefined;
1073
+ follower_count?: number | undefined;
1074
+ }>>;
1075
+ is_reply: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1076
+ reply_to_message_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1077
+ reply_to_author_id: z.ZodOptional<z.ZodString>;
1078
+ replies: z.ZodOptional<z.ZodAny>;
1079
+ replies_info: z.ZodOptional<z.ZodObject<{
1080
+ count: z.ZodDefault<z.ZodNumber>;
1081
+ recent_repliers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1082
+ has_thread: z.ZodOptional<z.ZodBoolean>;
1083
+ thread_id: z.ZodOptional<z.ZodString>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ count: number;
1086
+ recent_repliers?: string[] | undefined;
1087
+ has_thread?: boolean | undefined;
1088
+ thread_id?: string | undefined;
1089
+ }, {
1090
+ count?: number | undefined;
1091
+ recent_repliers?: string[] | undefined;
1092
+ has_thread?: boolean | undefined;
1093
+ thread_id?: string | undefined;
1094
+ }>>;
1095
+ engagement: z.ZodOptional<z.ZodObject<{
1096
+ views: z.ZodOptional<z.ZodNumber>;
1097
+ likes: z.ZodOptional<z.ZodNumber>;
1098
+ shares: z.ZodOptional<z.ZodNumber>;
1099
+ comments: z.ZodOptional<z.ZodNumber>;
1100
+ reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1101
+ }, "strip", z.ZodTypeAny, {
1102
+ views?: number | undefined;
1103
+ reactions?: Record<string, number> | undefined;
1104
+ likes?: number | undefined;
1105
+ shares?: number | undefined;
1106
+ comments?: number | undefined;
1107
+ }, {
1108
+ views?: number | undefined;
1109
+ reactions?: Record<string, number> | undefined;
1110
+ likes?: number | undefined;
1111
+ shares?: number | undefined;
1112
+ comments?: number | undefined;
1113
+ }>>;
1114
+ is_edited: z.ZodOptional<z.ZodBoolean>;
1115
+ edit_date: z.ZodOptional<z.ZodNumber>;
1116
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
1117
+ is_deleted: z.ZodOptional<z.ZodBoolean>;
1118
+ is_forwarded: z.ZodOptional<z.ZodBoolean>;
1119
+ forwarded_from_id: z.ZodOptional<z.ZodString>;
1120
+ forwarded_date: z.ZodOptional<z.ZodNumber>;
1121
+ hashtags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1122
+ mentions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1123
+ metadata: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1124
+ channel_id: z.ZodString;
1125
+ views: z.ZodOptional<z.ZodNumber>;
1126
+ forwards: z.ZodOptional<z.ZodNumber>;
1127
+ reactions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1128
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1129
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1130
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
1131
+ is_edited: z.ZodOptional<z.ZodBoolean>;
1132
+ edit_date: z.ZodOptional<z.ZodNumber>;
1133
+ post_author: z.ZodNullable<z.ZodString>;
1134
+ via_bot_id: z.ZodOptional<z.ZodString>;
1135
+ grouped_id: z.ZodOptional<z.ZodString>;
1136
+ is_silent: z.ZodOptional<z.ZodBoolean>;
1137
+ forwarded_from_id: z.ZodOptional<z.ZodString>;
1138
+ forwarded_date: z.ZodOptional<z.ZodNumber>;
1139
+ }, "strip", z.ZodTypeAny, {
1140
+ channel_id: string;
1141
+ post_author: string | null;
1142
+ views?: number | undefined;
1143
+ forwards?: number | undefined;
1144
+ reactions?: any[] | undefined;
1145
+ hashtags?: string[] | undefined;
1146
+ mentions?: string[] | undefined;
1147
+ is_pinned?: boolean | undefined;
1148
+ is_edited?: boolean | undefined;
1149
+ edit_date?: number | undefined;
1150
+ via_bot_id?: string | undefined;
1151
+ grouped_id?: string | undefined;
1152
+ is_silent?: boolean | undefined;
1153
+ forwarded_from_id?: string | undefined;
1154
+ forwarded_date?: number | undefined;
1155
+ }, {
1156
+ channel_id: string;
1157
+ post_author: string | null;
1158
+ views?: number | undefined;
1159
+ forwards?: number | undefined;
1160
+ reactions?: any[] | undefined;
1161
+ hashtags?: string[] | undefined;
1162
+ mentions?: string[] | undefined;
1163
+ is_pinned?: boolean | undefined;
1164
+ is_edited?: boolean | undefined;
1165
+ edit_date?: number | undefined;
1166
+ via_bot_id?: string | undefined;
1167
+ grouped_id?: string | undefined;
1168
+ is_silent?: boolean | undefined;
1169
+ forwarded_from_id?: string | undefined;
1170
+ forwarded_date?: number | undefined;
1171
+ }>, z.ZodObject<{
1172
+ post_id: z.ZodString;
1173
+ likes: z.ZodOptional<z.ZodNumber>;
1174
+ shares: z.ZodOptional<z.ZodNumber>;
1175
+ comments_count: z.ZodOptional<z.ZodNumber>;
1176
+ reactions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1177
+ is_pinned: z.ZodOptional<z.ZodBoolean>;
1178
+ is_edited: z.ZodOptional<z.ZodBoolean>;
1179
+ edit_date: z.ZodOptional<z.ZodNumber>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ post_id: string;
1182
+ reactions?: Record<string, number> | undefined;
1183
+ is_pinned?: boolean | undefined;
1184
+ is_edited?: boolean | undefined;
1185
+ edit_date?: number | undefined;
1186
+ likes?: number | undefined;
1187
+ shares?: number | undefined;
1188
+ comments_count?: number | undefined;
1189
+ }, {
1190
+ post_id: string;
1191
+ reactions?: Record<string, number> | undefined;
1192
+ is_pinned?: boolean | undefined;
1193
+ is_edited?: boolean | undefined;
1194
+ edit_date?: number | undefined;
1195
+ likes?: number | undefined;
1196
+ shares?: number | undefined;
1197
+ comments_count?: number | undefined;
1198
+ }>, z.ZodObject<{
1199
+ post_id: z.ZodString;
1200
+ likes: z.ZodOptional<z.ZodNumber>;
1201
+ comments_count: z.ZodOptional<z.ZodNumber>;
1202
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1203
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1204
+ location: z.ZodOptional<z.ZodString>;
1205
+ is_reel: z.ZodOptional<z.ZodBoolean>;
1206
+ is_story: z.ZodOptional<z.ZodBoolean>;
1207
+ }, "strip", z.ZodTypeAny, {
1208
+ post_id: string;
1209
+ hashtags?: string[] | undefined;
1210
+ mentions?: string[] | undefined;
1211
+ likes?: number | undefined;
1212
+ comments_count?: number | undefined;
1213
+ location?: string | undefined;
1214
+ is_reel?: boolean | undefined;
1215
+ is_story?: boolean | undefined;
1216
+ }, {
1217
+ post_id: string;
1218
+ hashtags?: string[] | undefined;
1219
+ mentions?: string[] | undefined;
1220
+ likes?: number | undefined;
1221
+ comments_count?: number | undefined;
1222
+ location?: string | undefined;
1223
+ is_reel?: boolean | undefined;
1224
+ is_story?: boolean | undefined;
1225
+ }>, z.ZodObject<{
1226
+ video_id: z.ZodString;
1227
+ likes: z.ZodOptional<z.ZodNumber>;
1228
+ shares: z.ZodOptional<z.ZodNumber>;
1229
+ comments_count: z.ZodOptional<z.ZodNumber>;
1230
+ views: z.ZodOptional<z.ZodNumber>;
1231
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1232
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1233
+ sound_name: z.ZodOptional<z.ZodString>;
1234
+ sound_id: z.ZodOptional<z.ZodString>;
1235
+ duration: z.ZodOptional<z.ZodNumber>;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ video_id: string;
1238
+ views?: number | undefined;
1239
+ hashtags?: string[] | undefined;
1240
+ mentions?: string[] | undefined;
1241
+ likes?: number | undefined;
1242
+ shares?: number | undefined;
1243
+ comments_count?: number | undefined;
1244
+ sound_name?: string | undefined;
1245
+ sound_id?: string | undefined;
1246
+ duration?: number | undefined;
1247
+ }, {
1248
+ video_id: string;
1249
+ views?: number | undefined;
1250
+ hashtags?: string[] | undefined;
1251
+ mentions?: string[] | undefined;
1252
+ likes?: number | undefined;
1253
+ shares?: number | undefined;
1254
+ comments_count?: number | undefined;
1255
+ sound_name?: string | undefined;
1256
+ sound_id?: string | undefined;
1257
+ duration?: number | undefined;
1258
+ }>, z.ZodObject<{
1259
+ article_id: z.ZodOptional<z.ZodString>;
1260
+ url: z.ZodString;
1261
+ title: z.ZodOptional<z.ZodString>;
1262
+ author: z.ZodOptional<z.ZodString>;
1263
+ publish_date: z.ZodOptional<z.ZodNumber>;
1264
+ category: z.ZodOptional<z.ZodString>;
1265
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ url: string;
1268
+ title?: string | undefined;
1269
+ tags?: string[] | undefined;
1270
+ article_id?: string | undefined;
1271
+ author?: string | undefined;
1272
+ publish_date?: number | undefined;
1273
+ category?: string | undefined;
1274
+ }, {
1275
+ url: string;
1276
+ title?: string | undefined;
1277
+ tags?: string[] | undefined;
1278
+ article_id?: string | undefined;
1279
+ author?: string | undefined;
1280
+ publish_date?: number | undefined;
1281
+ category?: string | undefined;
1282
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
1283
+ processing_errors: z.ZodOptional<z.ZodString>;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ created_at: number;
1286
+ updated_at: number;
1287
+ hashtags: string[];
1288
+ mentions: string[];
1289
+ source_id: string | number;
1290
+ source_dominant_geos: string[];
1291
+ data_geo: string[];
1292
+ media: {
1293
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
1294
+ url: string;
1295
+ duration?: number | undefined;
1296
+ caption?: string | undefined;
1297
+ thumbnail_url?: string | undefined;
1298
+ width?: number | undefined;
1299
+ height?: number | undefined;
1300
+ size?: number | undefined;
1301
+ mime_type?: string | undefined;
1302
+ }[];
1303
+ is_reply: boolean;
1304
+ _id?: string | undefined;
1305
+ platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | undefined;
1306
+ metadata?: Record<string, any> | {
1307
+ channel_id: string;
1308
+ post_author: string | null;
1309
+ views?: number | undefined;
1310
+ forwards?: number | undefined;
1311
+ reactions?: any[] | undefined;
1312
+ hashtags?: string[] | undefined;
1313
+ mentions?: string[] | undefined;
1314
+ is_pinned?: boolean | undefined;
1315
+ is_edited?: boolean | undefined;
1316
+ edit_date?: number | undefined;
1317
+ via_bot_id?: string | undefined;
1318
+ grouped_id?: string | undefined;
1319
+ is_silent?: boolean | undefined;
1320
+ forwarded_from_id?: string | undefined;
1321
+ forwarded_date?: number | undefined;
1322
+ } | {
1323
+ post_id: string;
1324
+ reactions?: Record<string, number> | undefined;
1325
+ is_pinned?: boolean | undefined;
1326
+ is_edited?: boolean | undefined;
1327
+ edit_date?: number | undefined;
1328
+ likes?: number | undefined;
1329
+ shares?: number | undefined;
1330
+ comments_count?: number | undefined;
1331
+ } | {
1332
+ post_id: string;
1333
+ hashtags?: string[] | undefined;
1334
+ mentions?: string[] | undefined;
1335
+ likes?: number | undefined;
1336
+ comments_count?: number | undefined;
1337
+ location?: string | undefined;
1338
+ is_reel?: boolean | undefined;
1339
+ is_story?: boolean | undefined;
1340
+ } | {
1341
+ video_id: string;
1342
+ views?: number | undefined;
1343
+ hashtags?: string[] | undefined;
1344
+ mentions?: string[] | undefined;
1345
+ likes?: number | undefined;
1346
+ shares?: number | undefined;
1347
+ comments_count?: number | undefined;
1348
+ sound_name?: string | undefined;
1349
+ sound_id?: string | undefined;
1350
+ duration?: number | undefined;
1351
+ } | {
1352
+ url: string;
1353
+ title?: string | undefined;
1354
+ tags?: string[] | undefined;
1355
+ article_id?: string | undefined;
1356
+ author?: string | undefined;
1357
+ publish_date?: number | undefined;
1358
+ category?: string | undefined;
1359
+ } | undefined;
1360
+ timestamp?: number | undefined;
1361
+ is_pinned?: boolean | undefined;
1362
+ is_edited?: boolean | undefined;
1363
+ edit_date?: number | undefined;
1364
+ forwarded_from_id?: string | undefined;
1365
+ forwarded_date?: number | undefined;
1366
+ author?: string | undefined;
1367
+ data_timestamp?: number | undefined;
1368
+ source_title?: string | undefined;
1369
+ source_url?: string | undefined;
1370
+ source_region_id?: string | undefined;
1371
+ source_region_title?: string | undefined;
1372
+ source_group_id?: string | undefined;
1373
+ data_id?: string | number | undefined;
1374
+ data_url?: string | undefined;
1375
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1376
+ data_text?: string | undefined;
1377
+ data_language?: string | undefined;
1378
+ data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
1379
+ data_topics?: string[] | undefined;
1380
+ data_keywords?: string[] | undefined;
1381
+ author_username?: string | undefined;
295
1382
  author_id?: string | undefined;
1383
+ author_info?: {
1384
+ username?: string | undefined;
1385
+ id?: string | undefined;
1386
+ display_name?: string | undefined;
1387
+ avatar_url?: string | undefined;
1388
+ is_verified?: boolean | undefined;
1389
+ follower_count?: number | undefined;
1390
+ } | undefined;
1391
+ reply_to_message_id?: string | number | undefined;
1392
+ reply_to_author_id?: string | undefined;
1393
+ replies?: any;
1394
+ replies_info?: {
1395
+ count: number;
1396
+ recent_repliers?: string[] | undefined;
1397
+ has_thread?: boolean | undefined;
1398
+ thread_id?: string | undefined;
1399
+ } | undefined;
1400
+ engagement?: {
1401
+ views?: number | undefined;
1402
+ reactions?: Record<string, number> | undefined;
1403
+ likes?: number | undefined;
1404
+ shares?: number | undefined;
1405
+ comments?: number | undefined;
1406
+ } | undefined;
1407
+ is_deleted?: boolean | undefined;
1408
+ is_forwarded?: boolean | undefined;
1409
+ processing_errors?: string | undefined;
296
1410
  }, {
297
1411
  created_at: number;
298
1412
  updated_at: number;
299
1413
  source_id: string | number;
300
1414
  _id?: string | undefined;
301
1415
  platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | undefined;
302
- metadata?: Record<string, any> | undefined;
1416
+ metadata?: Record<string, any> | {
1417
+ channel_id: string;
1418
+ post_author: string | null;
1419
+ views?: number | undefined;
1420
+ forwards?: number | undefined;
1421
+ reactions?: any[] | undefined;
1422
+ hashtags?: string[] | undefined;
1423
+ mentions?: string[] | undefined;
1424
+ is_pinned?: boolean | undefined;
1425
+ is_edited?: boolean | undefined;
1426
+ edit_date?: number | undefined;
1427
+ via_bot_id?: string | undefined;
1428
+ grouped_id?: string | undefined;
1429
+ is_silent?: boolean | undefined;
1430
+ forwarded_from_id?: string | undefined;
1431
+ forwarded_date?: number | undefined;
1432
+ } | {
1433
+ post_id: string;
1434
+ reactions?: Record<string, number> | undefined;
1435
+ is_pinned?: boolean | undefined;
1436
+ is_edited?: boolean | undefined;
1437
+ edit_date?: number | undefined;
1438
+ likes?: number | undefined;
1439
+ shares?: number | undefined;
1440
+ comments_count?: number | undefined;
1441
+ } | {
1442
+ post_id: string;
1443
+ hashtags?: string[] | undefined;
1444
+ mentions?: string[] | undefined;
1445
+ likes?: number | undefined;
1446
+ comments_count?: number | undefined;
1447
+ location?: string | undefined;
1448
+ is_reel?: boolean | undefined;
1449
+ is_story?: boolean | undefined;
1450
+ } | {
1451
+ video_id: string;
1452
+ views?: number | undefined;
1453
+ hashtags?: string[] | undefined;
1454
+ mentions?: string[] | undefined;
1455
+ likes?: number | undefined;
1456
+ shares?: number | undefined;
1457
+ comments_count?: number | undefined;
1458
+ sound_name?: string | undefined;
1459
+ sound_id?: string | undefined;
1460
+ duration?: number | undefined;
1461
+ } | {
1462
+ url: string;
1463
+ title?: string | undefined;
1464
+ tags?: string[] | undefined;
1465
+ article_id?: string | undefined;
1466
+ author?: string | undefined;
1467
+ publish_date?: number | undefined;
1468
+ category?: string | undefined;
1469
+ } | undefined;
303
1470
  timestamp?: number | undefined;
1471
+ hashtags?: string[] | undefined;
1472
+ mentions?: string[] | undefined;
1473
+ is_pinned?: boolean | undefined;
1474
+ is_edited?: boolean | undefined;
1475
+ edit_date?: number | undefined;
1476
+ forwarded_from_id?: string | undefined;
1477
+ forwarded_date?: number | undefined;
1478
+ author?: string | undefined;
1479
+ data_timestamp?: number | undefined;
1480
+ source_title?: string | undefined;
1481
+ source_url?: string | undefined;
304
1482
  source_region_id?: string | undefined;
305
1483
  source_region_title?: string | undefined;
1484
+ source_group_id?: string | undefined;
306
1485
  source_dominant_geos?: string[] | undefined;
1486
+ data_id?: string | number | undefined;
1487
+ data_url?: string | undefined;
1488
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1489
+ data_text?: string | undefined;
1490
+ data_language?: string | undefined;
1491
+ data_geo?: string[] | undefined;
1492
+ data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
1493
+ data_topics?: string[] | undefined;
1494
+ data_keywords?: string[] | undefined;
1495
+ media?: {
1496
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
1497
+ url: string;
1498
+ duration?: number | undefined;
1499
+ caption?: string | undefined;
1500
+ thumbnail_url?: string | undefined;
1501
+ width?: number | undefined;
1502
+ height?: number | undefined;
1503
+ size?: number | undefined;
1504
+ mime_type?: string | undefined;
1505
+ }[] | undefined;
1506
+ author_username?: string | undefined;
1507
+ author_id?: string | undefined;
1508
+ author_info?: {
1509
+ username?: string | undefined;
1510
+ id?: string | undefined;
1511
+ display_name?: string | undefined;
1512
+ avatar_url?: string | undefined;
1513
+ is_verified?: boolean | undefined;
1514
+ follower_count?: number | undefined;
1515
+ } | undefined;
1516
+ is_reply?: boolean | undefined;
1517
+ reply_to_message_id?: string | number | undefined;
1518
+ reply_to_author_id?: string | undefined;
1519
+ replies?: any;
1520
+ replies_info?: {
1521
+ count?: number | undefined;
1522
+ recent_repliers?: string[] | undefined;
1523
+ has_thread?: boolean | undefined;
1524
+ thread_id?: string | undefined;
1525
+ } | undefined;
1526
+ engagement?: {
1527
+ views?: number | undefined;
1528
+ reactions?: Record<string, number> | undefined;
1529
+ likes?: number | undefined;
1530
+ shares?: number | undefined;
1531
+ comments?: number | undefined;
1532
+ } | undefined;
1533
+ is_deleted?: boolean | undefined;
1534
+ is_forwarded?: boolean | undefined;
1535
+ processing_errors?: string | undefined;
1536
+ }>, {
1537
+ created_at: number;
1538
+ updated_at: number;
1539
+ hashtags: string[];
1540
+ mentions: string[];
1541
+ source_id: string | number;
1542
+ source_dominant_geos: string[];
1543
+ data_geo: string[];
1544
+ media: {
1545
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
1546
+ url: string;
1547
+ duration?: number | undefined;
1548
+ caption?: string | undefined;
1549
+ thumbnail_url?: string | undefined;
1550
+ width?: number | undefined;
1551
+ height?: number | undefined;
1552
+ size?: number | undefined;
1553
+ mime_type?: string | undefined;
1554
+ }[];
1555
+ is_reply: boolean;
1556
+ _id?: string | undefined;
1557
+ platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | undefined;
1558
+ metadata?: Record<string, any> | {
1559
+ channel_id: string;
1560
+ post_author: string | null;
1561
+ views?: number | undefined;
1562
+ forwards?: number | undefined;
1563
+ reactions?: any[] | undefined;
1564
+ hashtags?: string[] | undefined;
1565
+ mentions?: string[] | undefined;
1566
+ is_pinned?: boolean | undefined;
1567
+ is_edited?: boolean | undefined;
1568
+ edit_date?: number | undefined;
1569
+ via_bot_id?: string | undefined;
1570
+ grouped_id?: string | undefined;
1571
+ is_silent?: boolean | undefined;
1572
+ forwarded_from_id?: string | undefined;
1573
+ forwarded_date?: number | undefined;
1574
+ } | {
1575
+ post_id: string;
1576
+ reactions?: Record<string, number> | undefined;
1577
+ is_pinned?: boolean | undefined;
1578
+ is_edited?: boolean | undefined;
1579
+ edit_date?: number | undefined;
1580
+ likes?: number | undefined;
1581
+ shares?: number | undefined;
1582
+ comments_count?: number | undefined;
1583
+ } | {
1584
+ post_id: string;
1585
+ hashtags?: string[] | undefined;
1586
+ mentions?: string[] | undefined;
1587
+ likes?: number | undefined;
1588
+ comments_count?: number | undefined;
1589
+ location?: string | undefined;
1590
+ is_reel?: boolean | undefined;
1591
+ is_story?: boolean | undefined;
1592
+ } | {
1593
+ video_id: string;
1594
+ views?: number | undefined;
1595
+ hashtags?: string[] | undefined;
1596
+ mentions?: string[] | undefined;
1597
+ likes?: number | undefined;
1598
+ shares?: number | undefined;
1599
+ comments_count?: number | undefined;
1600
+ sound_name?: string | undefined;
1601
+ sound_id?: string | undefined;
1602
+ duration?: number | undefined;
1603
+ } | {
1604
+ url: string;
1605
+ title?: string | undefined;
1606
+ tags?: string[] | undefined;
1607
+ article_id?: string | undefined;
1608
+ author?: string | undefined;
1609
+ publish_date?: number | undefined;
1610
+ category?: string | undefined;
1611
+ } | undefined;
1612
+ timestamp?: number | undefined;
1613
+ is_pinned?: boolean | undefined;
1614
+ is_edited?: boolean | undefined;
1615
+ edit_date?: number | undefined;
1616
+ forwarded_from_id?: string | undefined;
1617
+ forwarded_date?: number | undefined;
1618
+ author?: string | undefined;
1619
+ data_timestamp?: number | undefined;
307
1620
  source_title?: string | undefined;
308
1621
  source_url?: string | undefined;
1622
+ source_region_id?: string | undefined;
1623
+ source_region_title?: string | undefined;
309
1624
  source_group_id?: string | undefined;
310
1625
  data_id?: string | number | undefined;
311
- data_geo?: string[] | undefined;
312
- data_text?: string | undefined;
313
1626
  data_url?: string | undefined;
314
- data_original_type?: string | undefined;
1627
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1628
+ data_text?: string | undefined;
315
1629
  data_language?: string | undefined;
316
- data_sentiment?: string | undefined;
317
- data_timestamp?: number | undefined;
318
- is_reply?: boolean | undefined;
1630
+ data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
1631
+ data_topics?: string[] | undefined;
1632
+ data_keywords?: string[] | undefined;
1633
+ author_username?: string | undefined;
1634
+ author_id?: string | undefined;
1635
+ author_info?: {
1636
+ username?: string | undefined;
1637
+ id?: string | undefined;
1638
+ display_name?: string | undefined;
1639
+ avatar_url?: string | undefined;
1640
+ is_verified?: boolean | undefined;
1641
+ follower_count?: number | undefined;
1642
+ } | undefined;
319
1643
  reply_to_message_id?: string | number | undefined;
1644
+ reply_to_author_id?: string | undefined;
1645
+ replies?: any;
1646
+ replies_info?: {
1647
+ count: number;
1648
+ recent_repliers?: string[] | undefined;
1649
+ has_thread?: boolean | undefined;
1650
+ thread_id?: string | undefined;
1651
+ } | undefined;
1652
+ engagement?: {
1653
+ views?: number | undefined;
1654
+ reactions?: Record<string, number> | undefined;
1655
+ likes?: number | undefined;
1656
+ shares?: number | undefined;
1657
+ comments?: number | undefined;
1658
+ } | undefined;
1659
+ is_deleted?: boolean | undefined;
1660
+ is_forwarded?: boolean | undefined;
1661
+ processing_errors?: string | undefined;
1662
+ }, {
1663
+ created_at: number;
1664
+ updated_at: number;
1665
+ source_id: string | number;
1666
+ _id?: string | undefined;
1667
+ platform?: "telegram" | "facebook" | "instagram" | "tiktok" | "website" | undefined;
1668
+ metadata?: Record<string, any> | {
1669
+ channel_id: string;
1670
+ post_author: string | null;
1671
+ views?: number | undefined;
1672
+ forwards?: number | undefined;
1673
+ reactions?: any[] | undefined;
1674
+ hashtags?: string[] | undefined;
1675
+ mentions?: string[] | undefined;
1676
+ is_pinned?: boolean | undefined;
1677
+ is_edited?: boolean | undefined;
1678
+ edit_date?: number | undefined;
1679
+ via_bot_id?: string | undefined;
1680
+ grouped_id?: string | undefined;
1681
+ is_silent?: boolean | undefined;
1682
+ forwarded_from_id?: string | undefined;
1683
+ forwarded_date?: number | undefined;
1684
+ } | {
1685
+ post_id: string;
1686
+ reactions?: Record<string, number> | undefined;
1687
+ is_pinned?: boolean | undefined;
1688
+ is_edited?: boolean | undefined;
1689
+ edit_date?: number | undefined;
1690
+ likes?: number | undefined;
1691
+ shares?: number | undefined;
1692
+ comments_count?: number | undefined;
1693
+ } | {
1694
+ post_id: string;
1695
+ hashtags?: string[] | undefined;
1696
+ mentions?: string[] | undefined;
1697
+ likes?: number | undefined;
1698
+ comments_count?: number | undefined;
1699
+ location?: string | undefined;
1700
+ is_reel?: boolean | undefined;
1701
+ is_story?: boolean | undefined;
1702
+ } | {
1703
+ video_id: string;
1704
+ views?: number | undefined;
1705
+ hashtags?: string[] | undefined;
1706
+ mentions?: string[] | undefined;
1707
+ likes?: number | undefined;
1708
+ shares?: number | undefined;
1709
+ comments_count?: number | undefined;
1710
+ sound_name?: string | undefined;
1711
+ sound_id?: string | undefined;
1712
+ duration?: number | undefined;
1713
+ } | {
1714
+ url: string;
1715
+ title?: string | undefined;
1716
+ tags?: string[] | undefined;
1717
+ article_id?: string | undefined;
1718
+ author?: string | undefined;
1719
+ publish_date?: number | undefined;
1720
+ category?: string | undefined;
1721
+ } | undefined;
1722
+ timestamp?: number | undefined;
1723
+ hashtags?: string[] | undefined;
1724
+ mentions?: string[] | undefined;
1725
+ is_pinned?: boolean | undefined;
1726
+ is_edited?: boolean | undefined;
1727
+ edit_date?: number | undefined;
1728
+ forwarded_from_id?: string | undefined;
1729
+ forwarded_date?: number | undefined;
1730
+ author?: string | undefined;
1731
+ data_timestamp?: number | undefined;
1732
+ source_title?: string | undefined;
1733
+ source_url?: string | undefined;
1734
+ source_region_id?: string | undefined;
1735
+ source_region_title?: string | undefined;
1736
+ source_group_id?: string | undefined;
1737
+ source_dominant_geos?: string[] | undefined;
1738
+ data_id?: string | number | undefined;
1739
+ data_url?: string | undefined;
1740
+ data_original_type?: "image" | "video" | "link" | "document" | "post" | "comment" | "reply" | "photo" | "story" | "reel" | "article" | undefined;
1741
+ data_text?: string | undefined;
1742
+ data_language?: string | undefined;
1743
+ data_geo?: string[] | undefined;
1744
+ data_sentiment?: "positive" | "negative" | "neutral" | "mixed" | undefined;
1745
+ data_topics?: string[] | undefined;
1746
+ data_keywords?: string[] | undefined;
320
1747
  media?: {
321
- type: "image" | "video" | "audio" | "link";
1748
+ type: "image" | "video" | "audio" | "link" | "document" | "gif" | "sticker";
322
1749
  url: string;
1750
+ duration?: number | undefined;
323
1751
  caption?: string | undefined;
1752
+ thumbnail_url?: string | undefined;
1753
+ width?: number | undefined;
1754
+ height?: number | undefined;
1755
+ size?: number | undefined;
1756
+ mime_type?: string | undefined;
324
1757
  }[] | undefined;
325
- author?: string | undefined;
326
1758
  author_username?: string | undefined;
327
- replies?: any;
328
1759
  author_id?: string | undefined;
1760
+ author_info?: {
1761
+ username?: string | undefined;
1762
+ id?: string | undefined;
1763
+ display_name?: string | undefined;
1764
+ avatar_url?: string | undefined;
1765
+ is_verified?: boolean | undefined;
1766
+ follower_count?: number | undefined;
1767
+ } | undefined;
1768
+ is_reply?: boolean | undefined;
1769
+ reply_to_message_id?: string | number | undefined;
1770
+ reply_to_author_id?: string | undefined;
1771
+ replies?: any;
1772
+ replies_info?: {
1773
+ count?: number | undefined;
1774
+ recent_repliers?: string[] | undefined;
1775
+ has_thread?: boolean | undefined;
1776
+ thread_id?: string | undefined;
1777
+ } | undefined;
1778
+ engagement?: {
1779
+ views?: number | undefined;
1780
+ reactions?: Record<string, number> | undefined;
1781
+ likes?: number | undefined;
1782
+ shares?: number | undefined;
1783
+ comments?: number | undefined;
1784
+ } | undefined;
1785
+ is_deleted?: boolean | undefined;
1786
+ is_forwarded?: boolean | undefined;
1787
+ processing_errors?: string | undefined;
329
1788
  }>;
330
1789
  export type RegionType = z.infer<typeof zodRegionSchema>;
331
1790
  export type SourceGroupType = z.infer<typeof zodSourceGroupSchema>;
332
1791
  export type SourceType = z.infer<typeof zodSourceSchema>;
333
1792
  export type DataType = z.infer<typeof zodDataSchema>;
334
- export type SourceStatusType = (typeof sourceStatusList)[number];
335
- export type StatusType = (typeof generalStatusList)[number];
336
- export type TimeRangeTypeLiteral = 'relative' | 'absolute';
337
- export type AddSourceToReviewType = Pick<SourceType, 'platform' | 'url' | 'description'> & Partial<Pick<SourceType, 'public_id'>>;
1793
+ export type MediaItemType = z.infer<typeof mediaItemSchema>;
1794
+ export type AuthorType = z.infer<typeof authorSchema>;
1795
+ export type RepliesInfoType = z.infer<typeof repliesInfoSchema>;
338
1796
  export type GeoType = z.infer<typeof zodGeoSchema>;
339
1797
  export type GeoSelectionType = z.infer<typeof zodGeoSelectionSchema>;
1798
+ export type TelegramMetadataType = z.infer<typeof telegramMetadataSchema>;
1799
+ export type FacebookMetadataType = z.infer<typeof facebookMetadataSchema>;
1800
+ export type InstagramMetadataType = z.infer<typeof instagramMetadataSchema>;
1801
+ export type TiktokMetadataType = z.infer<typeof tiktokMetadataSchema>;
1802
+ export type WebsiteMetadataType = z.infer<typeof websiteMetadataSchema>;
340
1803
  export type PlatformEntityType<T extends (typeof platformsList)[number]> = (typeof platformEntityMap)[T][number];
341
1804
  export declare const getAllowedEntitiesForPlatform: (platform: (typeof platformsList)[number]) => readonly ["channel", "group"] | readonly ["profile", "page", "group"] | readonly ["profile", "hashtag"] | readonly ["website"];