@getlatedev/node 0.1.0 → 0.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.
package/dist/index.js CHANGED
@@ -272,151 +272,151 @@ var M = (t = {}) => {
272
272
 
273
273
  // src/generated/sdk.gen.ts
274
274
  var client = M(q());
275
- var getV1ToolsYoutubeDownload = (options) => {
275
+ var downloadYouTubeVideo = (options) => {
276
276
  return (options?.client ?? client).get({
277
277
  ...options,
278
278
  url: "/v1/tools/youtube/download"
279
279
  });
280
280
  };
281
- var getV1ToolsYoutubeTranscript = (options) => {
281
+ var getYouTubeTranscript = (options) => {
282
282
  return (options?.client ?? client).get({
283
283
  ...options,
284
284
  url: "/v1/tools/youtube/transcript"
285
285
  });
286
286
  };
287
- var getV1ToolsInstagramDownload = (options) => {
287
+ var downloadInstagramMedia = (options) => {
288
288
  return (options?.client ?? client).get({
289
289
  ...options,
290
290
  url: "/v1/tools/instagram/download"
291
291
  });
292
292
  };
293
- var postV1ToolsInstagramHashtagChecker = (options) => {
293
+ var checkInstagramHashtags = (options) => {
294
294
  return (options?.client ?? client).post({
295
295
  ...options,
296
296
  url: "/v1/tools/instagram/hashtag-checker"
297
297
  });
298
298
  };
299
- var getV1ToolsTiktokDownload = (options) => {
299
+ var downloadTikTokVideo = (options) => {
300
300
  return (options?.client ?? client).get({
301
301
  ...options,
302
302
  url: "/v1/tools/tiktok/download"
303
303
  });
304
304
  };
305
- var getV1ToolsTwitterDownload = (options) => {
305
+ var downloadTwitterMedia = (options) => {
306
306
  return (options?.client ?? client).get({
307
307
  ...options,
308
308
  url: "/v1/tools/twitter/download"
309
309
  });
310
310
  };
311
- var getV1ToolsFacebookDownload = (options) => {
311
+ var downloadFacebookVideo = (options) => {
312
312
  return (options?.client ?? client).get({
313
313
  ...options,
314
314
  url: "/v1/tools/facebook/download"
315
315
  });
316
316
  };
317
- var getV1ToolsLinkedinDownload = (options) => {
317
+ var downloadLinkedInVideo = (options) => {
318
318
  return (options?.client ?? client).get({
319
319
  ...options,
320
320
  url: "/v1/tools/linkedin/download"
321
321
  });
322
322
  };
323
- var getV1ToolsBlueskyDownload = (options) => {
323
+ var downloadBlueskyMedia = (options) => {
324
324
  return (options?.client ?? client).get({
325
325
  ...options,
326
326
  url: "/v1/tools/bluesky/download"
327
327
  });
328
328
  };
329
- var getV1Analytics = (options) => {
329
+ var getAnalytics = (options) => {
330
330
  return (options?.client ?? client).get({
331
331
  ...options,
332
332
  url: "/v1/analytics"
333
333
  });
334
334
  };
335
- var getV1AnalyticsYoutubeDailyViews = (options) => {
335
+ var getYouTubeDailyViews = (options) => {
336
336
  return (options?.client ?? client).get({
337
337
  ...options,
338
338
  url: "/v1/analytics/youtube/daily-views"
339
339
  });
340
340
  };
341
- var getV1AccountGroups = (options) => {
341
+ var listAccountGroups = (options) => {
342
342
  return (options?.client ?? client).get({
343
343
  ...options,
344
344
  url: "/v1/account-groups"
345
345
  });
346
346
  };
347
- var postV1AccountGroups = (options) => {
347
+ var createAccountGroup = (options) => {
348
348
  return (options?.client ?? client).post({
349
349
  ...options,
350
350
  url: "/v1/account-groups"
351
351
  });
352
352
  };
353
- var putV1AccountGroupsByGroupId = (options) => {
353
+ var updateAccountGroup = (options) => {
354
354
  return (options?.client ?? client).put({
355
355
  ...options,
356
356
  url: "/v1/account-groups/{groupId}"
357
357
  });
358
358
  };
359
- var deleteV1AccountGroupsByGroupId = (options) => {
359
+ var deleteAccountGroup = (options) => {
360
360
  return (options?.client ?? client).delete({
361
361
  ...options,
362
362
  url: "/v1/account-groups/{groupId}"
363
363
  });
364
364
  };
365
- var postV1MediaPresign = (options) => {
365
+ var getMediaPresignedUrl = (options) => {
366
366
  return (options?.client ?? client).post({
367
367
  ...options,
368
368
  url: "/v1/media/presign"
369
369
  });
370
370
  };
371
- var getV1RedditSearch = (options) => {
371
+ var searchReddit = (options) => {
372
372
  return (options?.client ?? client).get({
373
373
  ...options,
374
374
  url: "/v1/reddit/search"
375
375
  });
376
376
  };
377
- var getV1RedditFeed = (options) => {
377
+ var getRedditFeed = (options) => {
378
378
  return (options?.client ?? client).get({
379
379
  ...options,
380
380
  url: "/v1/reddit/feed"
381
381
  });
382
382
  };
383
- var getV1UsageStats = (options) => {
383
+ var getUsageStats = (options) => {
384
384
  return (options?.client ?? client).get({
385
385
  ...options,
386
386
  url: "/v1/usage-stats"
387
387
  });
388
388
  };
389
- var getV1Posts = (options) => {
389
+ var listPosts = (options) => {
390
390
  return (options?.client ?? client).get({
391
391
  ...options,
392
392
  url: "/v1/posts"
393
393
  });
394
394
  };
395
- var postV1Posts = (options) => {
395
+ var createPost = (options) => {
396
396
  return (options?.client ?? client).post({
397
397
  ...options,
398
398
  url: "/v1/posts"
399
399
  });
400
400
  };
401
- var getV1PostsByPostId = (options) => {
401
+ var getPost = (options) => {
402
402
  return (options?.client ?? client).get({
403
403
  ...options,
404
404
  url: "/v1/posts/{postId}"
405
405
  });
406
406
  };
407
- var putV1PostsByPostId = (options) => {
407
+ var updatePost = (options) => {
408
408
  return (options?.client ?? client).put({
409
409
  ...options,
410
410
  url: "/v1/posts/{postId}"
411
411
  });
412
412
  };
413
- var deleteV1PostsByPostId = (options) => {
413
+ var deletePost = (options) => {
414
414
  return (options?.client ?? client).delete({
415
415
  ...options,
416
416
  url: "/v1/posts/{postId}"
417
417
  });
418
418
  };
419
- var postV1PostsBulkUpload = (options) => {
419
+ var bulkUploadPosts = (options) => {
420
420
  return (options?.client ?? client).post({
421
421
  ...options,
422
422
  ...W,
@@ -427,379 +427,379 @@ var postV1PostsBulkUpload = (options) => {
427
427
  url: "/v1/posts/bulk-upload"
428
428
  });
429
429
  };
430
- var postV1PostsByPostIdRetry = (options) => {
430
+ var retryPost = (options) => {
431
431
  return (options?.client ?? client).post({
432
432
  ...options,
433
433
  url: "/v1/posts/{postId}/retry"
434
434
  });
435
435
  };
436
- var getV1Users = (options) => {
436
+ var listUsers = (options) => {
437
437
  return (options?.client ?? client).get({
438
438
  ...options,
439
439
  url: "/v1/users"
440
440
  });
441
441
  };
442
- var getV1UsersByUserId = (options) => {
442
+ var getUser = (options) => {
443
443
  return (options?.client ?? client).get({
444
444
  ...options,
445
445
  url: "/v1/users/{userId}"
446
446
  });
447
447
  };
448
- var getV1Profiles = (options) => {
448
+ var listProfiles = (options) => {
449
449
  return (options?.client ?? client).get({
450
450
  ...options,
451
451
  url: "/v1/profiles"
452
452
  });
453
453
  };
454
- var postV1Profiles = (options) => {
454
+ var createProfile = (options) => {
455
455
  return (options?.client ?? client).post({
456
456
  ...options,
457
457
  url: "/v1/profiles"
458
458
  });
459
459
  };
460
- var getV1ProfilesByProfileId = (options) => {
460
+ var getProfile = (options) => {
461
461
  return (options?.client ?? client).get({
462
462
  ...options,
463
463
  url: "/v1/profiles/{profileId}"
464
464
  });
465
465
  };
466
- var putV1ProfilesByProfileId = (options) => {
466
+ var updateProfile = (options) => {
467
467
  return (options?.client ?? client).put({
468
468
  ...options,
469
469
  url: "/v1/profiles/{profileId}"
470
470
  });
471
471
  };
472
- var deleteV1ProfilesByProfileId = (options) => {
472
+ var deleteProfile = (options) => {
473
473
  return (options?.client ?? client).delete({
474
474
  ...options,
475
475
  url: "/v1/profiles/{profileId}"
476
476
  });
477
477
  };
478
- var getV1Accounts = (options) => {
478
+ var listAccounts = (options) => {
479
479
  return (options?.client ?? client).get({
480
480
  ...options,
481
481
  url: "/v1/accounts"
482
482
  });
483
483
  };
484
- var getV1AccountsFollowerStats = (options) => {
484
+ var getFollowerStats = (options) => {
485
485
  return (options?.client ?? client).get({
486
486
  ...options,
487
487
  url: "/v1/accounts/follower-stats"
488
488
  });
489
489
  };
490
- var putV1AccountsByAccountId = (options) => {
490
+ var updateAccount = (options) => {
491
491
  return (options?.client ?? client).put({
492
492
  ...options,
493
493
  url: "/v1/accounts/{accountId}"
494
494
  });
495
495
  };
496
- var deleteV1AccountsByAccountId = (options) => {
496
+ var deleteAccount = (options) => {
497
497
  return (options?.client ?? client).delete({
498
498
  ...options,
499
499
  url: "/v1/accounts/{accountId}"
500
500
  });
501
501
  };
502
- var getV1AccountsHealth = (options) => {
502
+ var getAllAccountsHealth = (options) => {
503
503
  return (options?.client ?? client).get({
504
504
  ...options,
505
505
  url: "/v1/accounts/health"
506
506
  });
507
507
  };
508
- var getV1AccountsByAccountIdHealth = (options) => {
508
+ var getAccountHealth = (options) => {
509
509
  return (options?.client ?? client).get({
510
510
  ...options,
511
511
  url: "/v1/accounts/{accountId}/health"
512
512
  });
513
513
  };
514
- var getV1ApiKeys = (options) => {
514
+ var listApiKeys = (options) => {
515
515
  return (options?.client ?? client).get({
516
516
  ...options,
517
517
  url: "/v1/api-keys"
518
518
  });
519
519
  };
520
- var postV1ApiKeys = (options) => {
520
+ var createApiKey = (options) => {
521
521
  return (options?.client ?? client).post({
522
522
  ...options,
523
523
  url: "/v1/api-keys"
524
524
  });
525
525
  };
526
- var deleteV1ApiKeysByKeyId = (options) => {
526
+ var deleteApiKey = (options) => {
527
527
  return (options?.client ?? client).delete({
528
528
  ...options,
529
529
  url: "/v1/api-keys/{keyId}"
530
530
  });
531
531
  };
532
- var postV1InviteTokens = (options) => {
532
+ var createInviteToken = (options) => {
533
533
  return (options?.client ?? client).post({
534
534
  ...options,
535
535
  url: "/v1/invite/tokens"
536
536
  });
537
537
  };
538
- var getV1PlatformInvites = (options) => {
538
+ var listPlatformInvites = (options) => {
539
539
  return (options?.client ?? client).get({
540
540
  ...options,
541
541
  url: "/v1/platform-invites"
542
542
  });
543
543
  };
544
- var postV1PlatformInvites = (options) => {
544
+ var createPlatformInvite = (options) => {
545
545
  return (options?.client ?? client).post({
546
546
  ...options,
547
547
  url: "/v1/platform-invites"
548
548
  });
549
549
  };
550
- var deleteV1PlatformInvites = (options) => {
550
+ var deletePlatformInvite = (options) => {
551
551
  return (options?.client ?? client).delete({
552
552
  ...options,
553
553
  url: "/v1/platform-invites"
554
554
  });
555
555
  };
556
- var getV1ConnectByPlatform = (options) => {
556
+ var getConnectUrl = (options) => {
557
557
  return (options?.client ?? client).get({
558
558
  ...options,
559
559
  url: "/v1/connect/{platform}"
560
560
  });
561
561
  };
562
- var postV1ConnectByPlatform = (options) => {
562
+ var handleOAuthCallback = (options) => {
563
563
  return (options?.client ?? client).post({
564
564
  ...options,
565
565
  url: "/v1/connect/{platform}"
566
566
  });
567
567
  };
568
- var getV1ConnectFacebookSelectPage = (options) => {
568
+ var listFacebookPages = (options) => {
569
569
  return (options?.client ?? client).get({
570
570
  ...options,
571
571
  url: "/v1/connect/facebook/select-page"
572
572
  });
573
573
  };
574
- var postV1ConnectFacebookSelectPage = (options) => {
574
+ var selectFacebookPage = (options) => {
575
575
  return (options?.client ?? client).post({
576
576
  ...options,
577
577
  url: "/v1/connect/facebook/select-page"
578
578
  });
579
579
  };
580
- var getV1ConnectGooglebusinessLocations = (options) => {
580
+ var listGoogleBusinessLocations = (options) => {
581
581
  return (options?.client ?? client).get({
582
582
  ...options,
583
583
  url: "/v1/connect/googlebusiness/locations"
584
584
  });
585
585
  };
586
- var postV1ConnectGooglebusinessSelectLocation = (options) => {
586
+ var selectGoogleBusinessLocation = (options) => {
587
587
  return (options?.client ?? client).post({
588
588
  ...options,
589
589
  url: "/v1/connect/googlebusiness/select-location"
590
590
  });
591
591
  };
592
- var getV1AccountsByAccountIdGmbReviews = (options) => {
592
+ var getGoogleBusinessReviews = (options) => {
593
593
  return (options?.client ?? client).get({
594
594
  ...options,
595
595
  url: "/v1/accounts/{accountId}/gmb-reviews"
596
596
  });
597
597
  };
598
- var getV1ConnectLinkedinOrganizations = (options) => {
598
+ var listLinkedInOrganizations = (options) => {
599
599
  return (options?.client ?? client).get({
600
600
  ...options,
601
601
  url: "/v1/connect/linkedin/organizations"
602
602
  });
603
603
  };
604
- var postV1ConnectLinkedinSelectOrganization = (options) => {
604
+ var selectLinkedInOrganization = (options) => {
605
605
  return (options?.client ?? client).post({
606
606
  ...options,
607
607
  url: "/v1/connect/linkedin/select-organization"
608
608
  });
609
609
  };
610
- var getV1ConnectPinterestSelectBoard = (options) => {
610
+ var listPinterestBoardsForSelection = (options) => {
611
611
  return (options?.client ?? client).get({
612
612
  ...options,
613
613
  url: "/v1/connect/pinterest/select-board"
614
614
  });
615
615
  };
616
- var postV1ConnectPinterestSelectBoard = (options) => {
616
+ var selectPinterestBoard = (options) => {
617
617
  return (options?.client ?? client).post({
618
618
  ...options,
619
619
  url: "/v1/connect/pinterest/select-board"
620
620
  });
621
621
  };
622
- var getV1ConnectSnapchatSelectProfile = (options) => {
622
+ var listSnapchatProfiles = (options) => {
623
623
  return (options?.client ?? client).get({
624
624
  ...options,
625
625
  url: "/v1/connect/snapchat/select-profile"
626
626
  });
627
627
  };
628
- var postV1ConnectSnapchatSelectProfile = (options) => {
628
+ var selectSnapchatProfile = (options) => {
629
629
  return (options?.client ?? client).post({
630
630
  ...options,
631
631
  url: "/v1/connect/snapchat/select-profile"
632
632
  });
633
633
  };
634
- var postV1ConnectBlueskyCredentials = (options) => {
634
+ var connectBlueskyCredentials = (options) => {
635
635
  return (options?.client ?? client).post({
636
636
  ...options,
637
637
  url: "/v1/connect/bluesky/credentials"
638
638
  });
639
639
  };
640
- var getV1ConnectTelegram = (options) => {
640
+ var getTelegramConnectStatus = (options) => {
641
641
  return (options?.client ?? client).get({
642
642
  ...options,
643
643
  url: "/v1/connect/telegram"
644
644
  });
645
645
  };
646
- var postV1ConnectTelegram = (options) => {
646
+ var initiateTelegramConnect = (options) => {
647
647
  return (options?.client ?? client).post({
648
648
  ...options,
649
649
  url: "/v1/connect/telegram"
650
650
  });
651
651
  };
652
- var patchV1ConnectTelegram = (options) => {
652
+ var completeTelegramConnect = (options) => {
653
653
  return (options?.client ?? client).patch({
654
654
  ...options,
655
655
  url: "/v1/connect/telegram"
656
656
  });
657
657
  };
658
- var putV1AccountsByAccountIdFacebookPage = (options) => {
658
+ var updateFacebookPage = (options) => {
659
659
  return (options?.client ?? client).put({
660
660
  ...options,
661
661
  url: "/v1/accounts/{accountId}/facebook-page"
662
662
  });
663
663
  };
664
- var getV1AccountsByAccountIdLinkedinOrganizations = (options) => {
664
+ var getLinkedInOrganizations = (options) => {
665
665
  return (options?.client ?? client).get({
666
666
  ...options,
667
667
  url: "/v1/accounts/{accountId}/linkedin-organizations"
668
668
  });
669
669
  };
670
- var getV1AccountsByAccountIdLinkedinAggregateAnalytics = (options) => {
670
+ var getLinkedInAggregateAnalytics = (options) => {
671
671
  return (options?.client ?? client).get({
672
672
  ...options,
673
673
  url: "/v1/accounts/{accountId}/linkedin-aggregate-analytics"
674
674
  });
675
675
  };
676
- var getV1AccountsByAccountIdLinkedinPostAnalytics = (options) => {
676
+ var getLinkedInPostAnalytics = (options) => {
677
677
  return (options?.client ?? client).get({
678
678
  ...options,
679
679
  url: "/v1/accounts/{accountId}/linkedin-post-analytics"
680
680
  });
681
681
  };
682
- var putV1AccountsByAccountIdLinkedinOrganization = (options) => {
682
+ var updateLinkedInOrganization = (options) => {
683
683
  return (options?.client ?? client).put({
684
684
  ...options,
685
685
  url: "/v1/accounts/{accountId}/linkedin-organization"
686
686
  });
687
687
  };
688
- var getV1AccountsByAccountIdLinkedinMentions = (options) => {
688
+ var getLinkedInMentions = (options) => {
689
689
  return (options?.client ?? client).get({
690
690
  ...options,
691
691
  url: "/v1/accounts/{accountId}/linkedin-mentions"
692
692
  });
693
693
  };
694
- var getV1AccountsByAccountIdPinterestBoards = (options) => {
694
+ var getPinterestBoards = (options) => {
695
695
  return (options?.client ?? client).get({
696
696
  ...options,
697
697
  url: "/v1/accounts/{accountId}/pinterest-boards"
698
698
  });
699
699
  };
700
- var putV1AccountsByAccountIdPinterestBoards = (options) => {
700
+ var updatePinterestBoards = (options) => {
701
701
  return (options?.client ?? client).put({
702
702
  ...options,
703
703
  url: "/v1/accounts/{accountId}/pinterest-boards"
704
704
  });
705
705
  };
706
- var getV1AccountsByAccountIdRedditSubreddits = (options) => {
706
+ var getRedditSubreddits = (options) => {
707
707
  return (options?.client ?? client).get({
708
708
  ...options,
709
709
  url: "/v1/accounts/{accountId}/reddit-subreddits"
710
710
  });
711
711
  };
712
- var putV1AccountsByAccountIdRedditSubreddits = (options) => {
712
+ var updateRedditSubreddits = (options) => {
713
713
  return (options?.client ?? client).put({
714
714
  ...options,
715
715
  url: "/v1/accounts/{accountId}/reddit-subreddits"
716
716
  });
717
717
  };
718
- var getV1QueueSlots = (options) => {
718
+ var listQueueSlots = (options) => {
719
719
  return (options?.client ?? client).get({
720
720
  ...options,
721
721
  url: "/v1/queue/slots"
722
722
  });
723
723
  };
724
- var postV1QueueSlots = (options) => {
724
+ var createQueueSlot = (options) => {
725
725
  return (options?.client ?? client).post({
726
726
  ...options,
727
727
  url: "/v1/queue/slots"
728
728
  });
729
729
  };
730
- var putV1QueueSlots = (options) => {
730
+ var updateQueueSlot = (options) => {
731
731
  return (options?.client ?? client).put({
732
732
  ...options,
733
733
  url: "/v1/queue/slots"
734
734
  });
735
735
  };
736
- var deleteV1QueueSlots = (options) => {
736
+ var deleteQueueSlot = (options) => {
737
737
  return (options?.client ?? client).delete({
738
738
  ...options,
739
739
  url: "/v1/queue/slots"
740
740
  });
741
741
  };
742
- var getV1QueuePreview = (options) => {
742
+ var previewQueue = (options) => {
743
743
  return (options?.client ?? client).get({
744
744
  ...options,
745
745
  url: "/v1/queue/preview"
746
746
  });
747
747
  };
748
- var getV1QueueNextSlot = (options) => {
748
+ var getNextQueueSlot = (options) => {
749
749
  return (options?.client ?? client).get({
750
750
  ...options,
751
751
  url: "/v1/queue/next-slot"
752
752
  });
753
753
  };
754
- var getV1WebhooksSettings = (options) => {
754
+ var getWebhookSettings = (options) => {
755
755
  return (options?.client ?? client).get({
756
756
  ...options,
757
757
  url: "/v1/webhooks/settings"
758
758
  });
759
759
  };
760
- var postV1WebhooksSettings = (options) => {
760
+ var createWebhookSettings = (options) => {
761
761
  return (options?.client ?? client).post({
762
762
  ...options,
763
763
  url: "/v1/webhooks/settings"
764
764
  });
765
765
  };
766
- var putV1WebhooksSettings = (options) => {
766
+ var updateWebhookSettings = (options) => {
767
767
  return (options?.client ?? client).put({
768
768
  ...options,
769
769
  url: "/v1/webhooks/settings"
770
770
  });
771
771
  };
772
- var deleteV1WebhooksSettings = (options) => {
772
+ var deleteWebhookSettings = (options) => {
773
773
  return (options?.client ?? client).delete({
774
774
  ...options,
775
775
  url: "/v1/webhooks/settings"
776
776
  });
777
777
  };
778
- var postV1WebhooksTest = (options) => {
778
+ var testWebhook = (options) => {
779
779
  return (options?.client ?? client).post({
780
780
  ...options,
781
781
  url: "/v1/webhooks/test"
782
782
  });
783
783
  };
784
- var getV1WebhooksLogs = (options) => {
784
+ var getWebhookLogs = (options) => {
785
785
  return (options?.client ?? client).get({
786
786
  ...options,
787
787
  url: "/v1/webhooks/logs"
788
788
  });
789
789
  };
790
- var getV1Logs = (options) => {
790
+ var listLogs = (options) => {
791
791
  return (options?.client ?? client).get({
792
792
  ...options,
793
793
  url: "/v1/logs"
794
794
  });
795
795
  };
796
- var getV1LogsByLogId = (options) => {
796
+ var getLog = (options) => {
797
797
  return (options?.client ?? client).get({
798
798
  ...options,
799
799
  url: "/v1/logs/{logId}"
800
800
  });
801
801
  };
802
- var getV1PostsByPostIdLogs = (options) => {
802
+ var getPostLogs = (options) => {
803
803
  return (options?.client ?? client).get({
804
804
  ...options,
805
805
  url: "/v1/posts/{postId}/logs"
@@ -908,186 +908,186 @@ var Late = class {
908
908
  */
909
909
  constructor(options = {}) {
910
910
  /**
911
- * Posts API - Create, schedule, and manage social media posts
912
- */
913
- this.posts = {
914
- list: getV1Posts,
915
- create: postV1Posts,
916
- get: getV1PostsByPostId,
917
- update: putV1PostsByPostId,
918
- delete: deleteV1PostsByPostId,
919
- retry: postV1PostsByPostIdRetry,
920
- bulkUpload: postV1PostsBulkUpload,
921
- getLogs: getV1PostsByPostIdLogs
922
- };
923
- /**
924
- * Accounts API - Manage connected social media accounts
925
- */
926
- this.accounts = {
927
- list: getV1Accounts,
928
- update: putV1AccountsByAccountId,
929
- delete: deleteV1AccountsByAccountId,
930
- getFollowerStats: getV1AccountsFollowerStats,
931
- getAllHealth: getV1AccountsHealth,
932
- getHealth: getV1AccountsByAccountIdHealth,
933
- updateFacebookPage: putV1AccountsByAccountIdFacebookPage,
934
- getLinkedInOrganizations: getV1AccountsByAccountIdLinkedinOrganizations,
935
- updateLinkedInOrganization: putV1AccountsByAccountIdLinkedinOrganization,
936
- getLinkedInMentions: getV1AccountsByAccountIdLinkedinMentions,
937
- getPinterestBoards: getV1AccountsByAccountIdPinterestBoards,
938
- updatePinterestBoards: putV1AccountsByAccountIdPinterestBoards,
939
- getRedditSubreddits: getV1AccountsByAccountIdRedditSubreddits,
940
- updateRedditSubreddits: putV1AccountsByAccountIdRedditSubreddits,
941
- getGoogleBusinessReviews: getV1AccountsByAccountIdGmbReviews
942
- };
943
- /**
944
- * Profiles API - Manage workspace profiles
911
+ * Tools API - Media download and utilities
945
912
  */
946
- this.profiles = {
947
- list: getV1Profiles,
948
- create: postV1Profiles,
949
- get: getV1ProfilesByProfileId,
950
- update: putV1ProfilesByProfileId,
951
- delete: deleteV1ProfilesByProfileId
913
+ this.tools = {
914
+ downloadYouTubeVideo,
915
+ getYouTubeTranscript,
916
+ downloadInstagramMedia,
917
+ checkInstagramHashtags,
918
+ downloadTikTokVideo,
919
+ downloadTwitterMedia,
920
+ downloadFacebookVideo,
921
+ downloadLinkedInVideo,
922
+ downloadBlueskyMedia
952
923
  };
953
924
  /**
954
925
  * Analytics API - Get performance metrics
955
926
  */
956
927
  this.analytics = {
957
- get: getV1Analytics,
958
- getYouTubeDailyViews: getV1AnalyticsYoutubeDailyViews,
959
- getLinkedInAggregate: getV1AccountsByAccountIdLinkedinAggregateAnalytics,
960
- getLinkedInPostAnalytics: getV1AccountsByAccountIdLinkedinPostAnalytics
928
+ getAnalytics,
929
+ getYouTubeDailyViews,
930
+ getLinkedInAggregateAnalytics,
931
+ getLinkedInPostAnalytics
961
932
  };
962
933
  /**
963
934
  * Account Groups API - Organize accounts into groups
964
935
  */
965
936
  this.accountGroups = {
966
- list: getV1AccountGroups,
967
- create: postV1AccountGroups,
968
- update: putV1AccountGroupsByGroupId,
969
- delete: deleteV1AccountGroupsByGroupId
937
+ listAccountGroups,
938
+ createAccountGroup,
939
+ updateAccountGroup,
940
+ deleteAccountGroup
970
941
  };
971
942
  /**
972
- * Queue API - Manage posting queue
943
+ * Media API - Upload and manage media files
973
944
  */
974
- this.queue = {
975
- listSlots: getV1QueueSlots,
976
- createSlot: postV1QueueSlots,
977
- updateSlot: putV1QueueSlots,
978
- deleteSlot: deleteV1QueueSlots,
979
- preview: getV1QueuePreview,
980
- getNextSlot: getV1QueueNextSlot
945
+ this.media = {
946
+ getMediaPresignedUrl
981
947
  };
982
948
  /**
983
- * Webhooks API - Configure event webhooks
949
+ * Reddit API - Search and feed
984
950
  */
985
- this.webhooks = {
986
- getSettings: getV1WebhooksSettings,
987
- createSettings: postV1WebhooksSettings,
988
- updateSettings: putV1WebhooksSettings,
989
- deleteSettings: deleteV1WebhooksSettings,
990
- test: postV1WebhooksTest,
991
- getLogs: getV1WebhooksLogs
951
+ this.reddit = {
952
+ searchReddit,
953
+ getRedditFeed
992
954
  };
993
955
  /**
994
- * API Keys API - Manage API keys
956
+ * Usage API - Get usage statistics
995
957
  */
996
- this.apiKeys = {
997
- list: getV1ApiKeys,
998
- create: postV1ApiKeys,
999
- delete: deleteV1ApiKeysByKeyId
958
+ this.usage = {
959
+ getUsageStats
1000
960
  };
1001
961
  /**
1002
- * Media API - Upload and manage media files
962
+ * Posts API - Create, schedule, and manage social media posts
1003
963
  */
1004
- this.media = {
1005
- getPresignedUrl: postV1MediaPresign
964
+ this.posts = {
965
+ listPosts,
966
+ createPost,
967
+ getPost,
968
+ updatePost,
969
+ deletePost,
970
+ bulkUploadPosts,
971
+ retryPost
1006
972
  };
1007
973
  /**
1008
- * Tools API - Media download and utilities
974
+ * Users API - User management
1009
975
  */
1010
- this.tools = {
1011
- downloadYouTube: getV1ToolsYoutubeDownload,
1012
- getYouTubeTranscript: getV1ToolsYoutubeTranscript,
1013
- downloadInstagram: getV1ToolsInstagramDownload,
1014
- checkInstagramHashtags: postV1ToolsInstagramHashtagChecker,
1015
- downloadTikTok: getV1ToolsTiktokDownload,
1016
- downloadTwitter: getV1ToolsTwitterDownload,
1017
- downloadFacebook: getV1ToolsFacebookDownload,
1018
- downloadLinkedIn: getV1ToolsLinkedinDownload,
1019
- downloadBluesky: getV1ToolsBlueskyDownload
976
+ this.users = {
977
+ listUsers,
978
+ getUser
1020
979
  };
1021
980
  /**
1022
- * Users API - User management
981
+ * Profiles API - Manage workspace profiles
1023
982
  */
1024
- this.users = {
1025
- list: getV1Users,
1026
- get: getV1UsersByUserId
983
+ this.profiles = {
984
+ listProfiles,
985
+ createProfile,
986
+ getProfile,
987
+ updateProfile,
988
+ deleteProfile
1027
989
  };
1028
990
  /**
1029
- * Usage API - Get usage statistics
991
+ * Accounts API - Manage connected social media accounts
1030
992
  */
1031
- this.usage = {
1032
- getStats: getV1UsageStats
993
+ this.accounts = {
994
+ listAccounts,
995
+ getFollowerStats,
996
+ updateAccount,
997
+ deleteAccount,
998
+ getAllAccountsHealth,
999
+ getAccountHealth,
1000
+ getGoogleBusinessReviews,
1001
+ getLinkedInMentions
1033
1002
  };
1034
1003
  /**
1035
- * Logs API - Publishing logs
1004
+ * API Keys API - Manage API keys
1036
1005
  */
1037
- this.logs = {
1038
- list: getV1Logs,
1039
- get: getV1LogsByLogId
1006
+ this.apiKeys = {
1007
+ listApiKeys,
1008
+ createApiKey,
1009
+ deleteApiKey
1010
+ };
1011
+ /**
1012
+ * Invites API - Team invitations
1013
+ */
1014
+ this.invites = {
1015
+ createInviteToken,
1016
+ listPlatformInvites,
1017
+ createPlatformInvite,
1018
+ deletePlatformInvite
1040
1019
  };
1041
1020
  /**
1042
1021
  * Connect API - OAuth connection flows
1043
1022
  */
1044
1023
  this.connect = {
1045
- getUrl: getV1ConnectByPlatform,
1046
- handleCallback: postV1ConnectByPlatform,
1024
+ getConnectUrl,
1025
+ handleOAuthCallback,
1026
+ updateFacebookPage,
1027
+ getLinkedInOrganizations,
1028
+ updateLinkedInOrganization,
1029
+ getPinterestBoards,
1030
+ updatePinterestBoards,
1031
+ getRedditSubreddits,
1032
+ updateRedditSubreddits,
1047
1033
  facebook: {
1048
- listPages: getV1ConnectFacebookSelectPage,
1049
- selectPage: postV1ConnectFacebookSelectPage
1034
+ listFacebookPages,
1035
+ selectFacebookPage
1050
1036
  },
1051
1037
  googleBusiness: {
1052
- listLocations: getV1ConnectGooglebusinessLocations,
1053
- selectLocation: postV1ConnectGooglebusinessSelectLocation
1038
+ listGoogleBusinessLocations,
1039
+ selectGoogleBusinessLocation
1054
1040
  },
1055
- linkedIn: {
1056
- listOrganizations: getV1ConnectLinkedinOrganizations,
1057
- selectOrganization: postV1ConnectLinkedinSelectOrganization
1041
+ linkedin: {
1042
+ listLinkedInOrganizations,
1043
+ selectLinkedInOrganization
1058
1044
  },
1059
1045
  pinterest: {
1060
- listBoards: getV1ConnectPinterestSelectBoard,
1061
- selectBoard: postV1ConnectPinterestSelectBoard
1046
+ listPinterestBoardsForSelection,
1047
+ selectPinterestBoard
1062
1048
  },
1063
1049
  snapchat: {
1064
- listProfiles: getV1ConnectSnapchatSelectProfile,
1065
- selectProfile: postV1ConnectSnapchatSelectProfile
1050
+ listSnapchatProfiles,
1051
+ selectSnapchatProfile
1066
1052
  },
1067
1053
  bluesky: {
1068
- connectCredentials: postV1ConnectBlueskyCredentials
1054
+ connectBlueskyCredentials
1069
1055
  },
1070
1056
  telegram: {
1071
- getStatus: getV1ConnectTelegram,
1072
- initiate: postV1ConnectTelegram,
1073
- complete: patchV1ConnectTelegram
1057
+ getTelegramConnectStatus,
1058
+ initiateTelegramConnect,
1059
+ completeTelegramConnect
1074
1060
  }
1075
1061
  };
1076
1062
  /**
1077
- * Reddit API - Search and feed
1063
+ * Queue API - Manage posting queue
1078
1064
  */
1079
- this.reddit = {
1080
- search: getV1RedditSearch,
1081
- getFeed: getV1RedditFeed
1065
+ this.queue = {
1066
+ listQueueSlots,
1067
+ createQueueSlot,
1068
+ updateQueueSlot,
1069
+ deleteQueueSlot,
1070
+ previewQueue,
1071
+ getNextQueueSlot
1082
1072
  };
1083
1073
  /**
1084
- * Invites API - Team invitations
1074
+ * Webhooks API - Configure event webhooks
1085
1075
  */
1086
- this.invites = {
1087
- createToken: postV1InviteTokens,
1088
- list: getV1PlatformInvites,
1089
- create: postV1PlatformInvites,
1090
- delete: deleteV1PlatformInvites
1076
+ this.webhooks = {
1077
+ getWebhookSettings,
1078
+ createWebhookSettings,
1079
+ updateWebhookSettings,
1080
+ deleteWebhookSettings,
1081
+ testWebhook,
1082
+ getWebhookLogs
1083
+ };
1084
+ /**
1085
+ * Logs API - Publishing logs
1086
+ */
1087
+ this.logs = {
1088
+ listLogs,
1089
+ getLog,
1090
+ getPostLogs
1091
1091
  };
1092
1092
  const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1093
1093
  if (!apiKey) {