@getlatedev/node 0.1.0 → 0.1.2

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,361 @@ 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) => {
539
- return (options?.client ?? client).get({
540
- ...options,
541
- url: "/v1/platform-invites"
542
- });
543
- };
544
- var postV1PlatformInvites = (options) => {
545
- return (options?.client ?? client).post({
546
- ...options,
547
- url: "/v1/platform-invites"
548
- });
549
- };
550
- var deleteV1PlatformInvites = (options) => {
551
- return (options?.client ?? client).delete({
552
- ...options,
553
- url: "/v1/platform-invites"
554
- });
555
- };
556
- var getV1ConnectByPlatform = (options) => {
538
+ var getConnectUrl = (options) => {
557
539
  return (options?.client ?? client).get({
558
540
  ...options,
559
541
  url: "/v1/connect/{platform}"
560
542
  });
561
543
  };
562
- var postV1ConnectByPlatform = (options) => {
544
+ var handleOAuthCallback = (options) => {
563
545
  return (options?.client ?? client).post({
564
546
  ...options,
565
547
  url: "/v1/connect/{platform}"
566
548
  });
567
549
  };
568
- var getV1ConnectFacebookSelectPage = (options) => {
550
+ var listFacebookPages = (options) => {
569
551
  return (options?.client ?? client).get({
570
552
  ...options,
571
553
  url: "/v1/connect/facebook/select-page"
572
554
  });
573
555
  };
574
- var postV1ConnectFacebookSelectPage = (options) => {
556
+ var selectFacebookPage = (options) => {
575
557
  return (options?.client ?? client).post({
576
558
  ...options,
577
559
  url: "/v1/connect/facebook/select-page"
578
560
  });
579
561
  };
580
- var getV1ConnectGooglebusinessLocations = (options) => {
562
+ var listGoogleBusinessLocations = (options) => {
581
563
  return (options?.client ?? client).get({
582
564
  ...options,
583
565
  url: "/v1/connect/googlebusiness/locations"
584
566
  });
585
567
  };
586
- var postV1ConnectGooglebusinessSelectLocation = (options) => {
568
+ var selectGoogleBusinessLocation = (options) => {
587
569
  return (options?.client ?? client).post({
588
570
  ...options,
589
571
  url: "/v1/connect/googlebusiness/select-location"
590
572
  });
591
573
  };
592
- var getV1AccountsByAccountIdGmbReviews = (options) => {
574
+ var getGoogleBusinessReviews = (options) => {
593
575
  return (options?.client ?? client).get({
594
576
  ...options,
595
577
  url: "/v1/accounts/{accountId}/gmb-reviews"
596
578
  });
597
579
  };
598
- var getV1ConnectLinkedinOrganizations = (options) => {
580
+ var listLinkedInOrganizations = (options) => {
599
581
  return (options?.client ?? client).get({
600
582
  ...options,
601
583
  url: "/v1/connect/linkedin/organizations"
602
584
  });
603
585
  };
604
- var postV1ConnectLinkedinSelectOrganization = (options) => {
586
+ var selectLinkedInOrganization = (options) => {
605
587
  return (options?.client ?? client).post({
606
588
  ...options,
607
589
  url: "/v1/connect/linkedin/select-organization"
608
590
  });
609
591
  };
610
- var getV1ConnectPinterestSelectBoard = (options) => {
592
+ var listPinterestBoardsForSelection = (options) => {
611
593
  return (options?.client ?? client).get({
612
594
  ...options,
613
595
  url: "/v1/connect/pinterest/select-board"
614
596
  });
615
597
  };
616
- var postV1ConnectPinterestSelectBoard = (options) => {
598
+ var selectPinterestBoard = (options) => {
617
599
  return (options?.client ?? client).post({
618
600
  ...options,
619
601
  url: "/v1/connect/pinterest/select-board"
620
602
  });
621
603
  };
622
- var getV1ConnectSnapchatSelectProfile = (options) => {
604
+ var listSnapchatProfiles = (options) => {
623
605
  return (options?.client ?? client).get({
624
606
  ...options,
625
607
  url: "/v1/connect/snapchat/select-profile"
626
608
  });
627
609
  };
628
- var postV1ConnectSnapchatSelectProfile = (options) => {
610
+ var selectSnapchatProfile = (options) => {
629
611
  return (options?.client ?? client).post({
630
612
  ...options,
631
613
  url: "/v1/connect/snapchat/select-profile"
632
614
  });
633
615
  };
634
- var postV1ConnectBlueskyCredentials = (options) => {
616
+ var connectBlueskyCredentials = (options) => {
635
617
  return (options?.client ?? client).post({
636
618
  ...options,
637
619
  url: "/v1/connect/bluesky/credentials"
638
620
  });
639
621
  };
640
- var getV1ConnectTelegram = (options) => {
622
+ var getTelegramConnectStatus = (options) => {
641
623
  return (options?.client ?? client).get({
642
624
  ...options,
643
625
  url: "/v1/connect/telegram"
644
626
  });
645
627
  };
646
- var postV1ConnectTelegram = (options) => {
628
+ var initiateTelegramConnect = (options) => {
647
629
  return (options?.client ?? client).post({
648
630
  ...options,
649
631
  url: "/v1/connect/telegram"
650
632
  });
651
633
  };
652
- var patchV1ConnectTelegram = (options) => {
634
+ var completeTelegramConnect = (options) => {
653
635
  return (options?.client ?? client).patch({
654
636
  ...options,
655
637
  url: "/v1/connect/telegram"
656
638
  });
657
639
  };
658
- var putV1AccountsByAccountIdFacebookPage = (options) => {
640
+ var updateFacebookPage = (options) => {
659
641
  return (options?.client ?? client).put({
660
642
  ...options,
661
643
  url: "/v1/accounts/{accountId}/facebook-page"
662
644
  });
663
645
  };
664
- var getV1AccountsByAccountIdLinkedinOrganizations = (options) => {
646
+ var getLinkedInOrganizations = (options) => {
665
647
  return (options?.client ?? client).get({
666
648
  ...options,
667
649
  url: "/v1/accounts/{accountId}/linkedin-organizations"
668
650
  });
669
651
  };
670
- var getV1AccountsByAccountIdLinkedinAggregateAnalytics = (options) => {
652
+ var getLinkedInAggregateAnalytics = (options) => {
671
653
  return (options?.client ?? client).get({
672
654
  ...options,
673
655
  url: "/v1/accounts/{accountId}/linkedin-aggregate-analytics"
674
656
  });
675
657
  };
676
- var getV1AccountsByAccountIdLinkedinPostAnalytics = (options) => {
658
+ var getLinkedInPostAnalytics = (options) => {
677
659
  return (options?.client ?? client).get({
678
660
  ...options,
679
661
  url: "/v1/accounts/{accountId}/linkedin-post-analytics"
680
662
  });
681
663
  };
682
- var putV1AccountsByAccountIdLinkedinOrganization = (options) => {
664
+ var updateLinkedInOrganization = (options) => {
683
665
  return (options?.client ?? client).put({
684
666
  ...options,
685
667
  url: "/v1/accounts/{accountId}/linkedin-organization"
686
668
  });
687
669
  };
688
- var getV1AccountsByAccountIdLinkedinMentions = (options) => {
670
+ var getLinkedInMentions = (options) => {
689
671
  return (options?.client ?? client).get({
690
672
  ...options,
691
673
  url: "/v1/accounts/{accountId}/linkedin-mentions"
692
674
  });
693
675
  };
694
- var getV1AccountsByAccountIdPinterestBoards = (options) => {
676
+ var getPinterestBoards = (options) => {
695
677
  return (options?.client ?? client).get({
696
678
  ...options,
697
679
  url: "/v1/accounts/{accountId}/pinterest-boards"
698
680
  });
699
681
  };
700
- var putV1AccountsByAccountIdPinterestBoards = (options) => {
682
+ var updatePinterestBoards = (options) => {
701
683
  return (options?.client ?? client).put({
702
684
  ...options,
703
685
  url: "/v1/accounts/{accountId}/pinterest-boards"
704
686
  });
705
687
  };
706
- var getV1AccountsByAccountIdRedditSubreddits = (options) => {
688
+ var getRedditSubreddits = (options) => {
707
689
  return (options?.client ?? client).get({
708
690
  ...options,
709
691
  url: "/v1/accounts/{accountId}/reddit-subreddits"
710
692
  });
711
693
  };
712
- var putV1AccountsByAccountIdRedditSubreddits = (options) => {
694
+ var updateRedditSubreddits = (options) => {
713
695
  return (options?.client ?? client).put({
714
696
  ...options,
715
697
  url: "/v1/accounts/{accountId}/reddit-subreddits"
716
698
  });
717
699
  };
718
- var getV1QueueSlots = (options) => {
700
+ var listQueueSlots = (options) => {
719
701
  return (options?.client ?? client).get({
720
702
  ...options,
721
703
  url: "/v1/queue/slots"
722
704
  });
723
705
  };
724
- var postV1QueueSlots = (options) => {
706
+ var createQueueSlot = (options) => {
725
707
  return (options?.client ?? client).post({
726
708
  ...options,
727
709
  url: "/v1/queue/slots"
728
710
  });
729
711
  };
730
- var putV1QueueSlots = (options) => {
712
+ var updateQueueSlot = (options) => {
731
713
  return (options?.client ?? client).put({
732
714
  ...options,
733
715
  url: "/v1/queue/slots"
734
716
  });
735
717
  };
736
- var deleteV1QueueSlots = (options) => {
718
+ var deleteQueueSlot = (options) => {
737
719
  return (options?.client ?? client).delete({
738
720
  ...options,
739
721
  url: "/v1/queue/slots"
740
722
  });
741
723
  };
742
- var getV1QueuePreview = (options) => {
724
+ var previewQueue = (options) => {
743
725
  return (options?.client ?? client).get({
744
726
  ...options,
745
727
  url: "/v1/queue/preview"
746
728
  });
747
729
  };
748
- var getV1QueueNextSlot = (options) => {
730
+ var getNextQueueSlot = (options) => {
749
731
  return (options?.client ?? client).get({
750
732
  ...options,
751
733
  url: "/v1/queue/next-slot"
752
734
  });
753
735
  };
754
- var getV1WebhooksSettings = (options) => {
736
+ var getWebhookSettings = (options) => {
755
737
  return (options?.client ?? client).get({
756
738
  ...options,
757
739
  url: "/v1/webhooks/settings"
758
740
  });
759
741
  };
760
- var postV1WebhooksSettings = (options) => {
742
+ var createWebhookSettings = (options) => {
761
743
  return (options?.client ?? client).post({
762
744
  ...options,
763
745
  url: "/v1/webhooks/settings"
764
746
  });
765
747
  };
766
- var putV1WebhooksSettings = (options) => {
748
+ var updateWebhookSettings = (options) => {
767
749
  return (options?.client ?? client).put({
768
750
  ...options,
769
751
  url: "/v1/webhooks/settings"
770
752
  });
771
753
  };
772
- var deleteV1WebhooksSettings = (options) => {
754
+ var deleteWebhookSettings = (options) => {
773
755
  return (options?.client ?? client).delete({
774
756
  ...options,
775
757
  url: "/v1/webhooks/settings"
776
758
  });
777
759
  };
778
- var postV1WebhooksTest = (options) => {
760
+ var testWebhook = (options) => {
779
761
  return (options?.client ?? client).post({
780
762
  ...options,
781
763
  url: "/v1/webhooks/test"
782
764
  });
783
765
  };
784
- var getV1WebhooksLogs = (options) => {
766
+ var getWebhookLogs = (options) => {
785
767
  return (options?.client ?? client).get({
786
768
  ...options,
787
769
  url: "/v1/webhooks/logs"
788
770
  });
789
771
  };
790
- var getV1Logs = (options) => {
772
+ var listLogs = (options) => {
791
773
  return (options?.client ?? client).get({
792
774
  ...options,
793
775
  url: "/v1/logs"
794
776
  });
795
777
  };
796
- var getV1LogsByLogId = (options) => {
778
+ var getLog = (options) => {
797
779
  return (options?.client ?? client).get({
798
780
  ...options,
799
781
  url: "/v1/logs/{logId}"
800
782
  });
801
783
  };
802
- var getV1PostsByPostIdLogs = (options) => {
784
+ var getPostLogs = (options) => {
803
785
  return (options?.client ?? client).get({
804
786
  ...options,
805
787
  url: "/v1/posts/{postId}/logs"
@@ -908,186 +890,183 @@ var Late = class {
908
890
  */
909
891
  constructor(options = {}) {
910
892
  /**
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
893
+ * Tools API - Media download and utilities
945
894
  */
946
- this.profiles = {
947
- list: getV1Profiles,
948
- create: postV1Profiles,
949
- get: getV1ProfilesByProfileId,
950
- update: putV1ProfilesByProfileId,
951
- delete: deleteV1ProfilesByProfileId
895
+ this.tools = {
896
+ downloadYouTubeVideo,
897
+ getYouTubeTranscript,
898
+ downloadInstagramMedia,
899
+ checkInstagramHashtags,
900
+ downloadTikTokVideo,
901
+ downloadTwitterMedia,
902
+ downloadFacebookVideo,
903
+ downloadLinkedInVideo,
904
+ downloadBlueskyMedia
952
905
  };
953
906
  /**
954
907
  * Analytics API - Get performance metrics
955
908
  */
956
909
  this.analytics = {
957
- get: getV1Analytics,
958
- getYouTubeDailyViews: getV1AnalyticsYoutubeDailyViews,
959
- getLinkedInAggregate: getV1AccountsByAccountIdLinkedinAggregateAnalytics,
960
- getLinkedInPostAnalytics: getV1AccountsByAccountIdLinkedinPostAnalytics
910
+ getAnalytics,
911
+ getYouTubeDailyViews,
912
+ getLinkedInAggregateAnalytics,
913
+ getLinkedInPostAnalytics
961
914
  };
962
915
  /**
963
916
  * Account Groups API - Organize accounts into groups
964
917
  */
965
918
  this.accountGroups = {
966
- list: getV1AccountGroups,
967
- create: postV1AccountGroups,
968
- update: putV1AccountGroupsByGroupId,
969
- delete: deleteV1AccountGroupsByGroupId
919
+ listAccountGroups,
920
+ createAccountGroup,
921
+ updateAccountGroup,
922
+ deleteAccountGroup
970
923
  };
971
924
  /**
972
- * Queue API - Manage posting queue
925
+ * Media API - Upload and manage media files
973
926
  */
974
- this.queue = {
975
- listSlots: getV1QueueSlots,
976
- createSlot: postV1QueueSlots,
977
- updateSlot: putV1QueueSlots,
978
- deleteSlot: deleteV1QueueSlots,
979
- preview: getV1QueuePreview,
980
- getNextSlot: getV1QueueNextSlot
927
+ this.media = {
928
+ getMediaPresignedUrl
981
929
  };
982
930
  /**
983
- * Webhooks API - Configure event webhooks
931
+ * Reddit API - Search and feed
984
932
  */
985
- this.webhooks = {
986
- getSettings: getV1WebhooksSettings,
987
- createSettings: postV1WebhooksSettings,
988
- updateSettings: putV1WebhooksSettings,
989
- deleteSettings: deleteV1WebhooksSettings,
990
- test: postV1WebhooksTest,
991
- getLogs: getV1WebhooksLogs
933
+ this.reddit = {
934
+ searchReddit,
935
+ getRedditFeed
992
936
  };
993
937
  /**
994
- * API Keys API - Manage API keys
938
+ * Usage API - Get usage statistics
995
939
  */
996
- this.apiKeys = {
997
- list: getV1ApiKeys,
998
- create: postV1ApiKeys,
999
- delete: deleteV1ApiKeysByKeyId
940
+ this.usage = {
941
+ getUsageStats
1000
942
  };
1001
943
  /**
1002
- * Media API - Upload and manage media files
944
+ * Posts API - Create, schedule, and manage social media posts
1003
945
  */
1004
- this.media = {
1005
- getPresignedUrl: postV1MediaPresign
946
+ this.posts = {
947
+ listPosts,
948
+ createPost,
949
+ getPost,
950
+ updatePost,
951
+ deletePost,
952
+ bulkUploadPosts,
953
+ retryPost
1006
954
  };
1007
955
  /**
1008
- * Tools API - Media download and utilities
956
+ * Users API - User management
1009
957
  */
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
958
+ this.users = {
959
+ listUsers,
960
+ getUser
1020
961
  };
1021
962
  /**
1022
- * Users API - User management
963
+ * Profiles API - Manage workspace profiles
1023
964
  */
1024
- this.users = {
1025
- list: getV1Users,
1026
- get: getV1UsersByUserId
965
+ this.profiles = {
966
+ listProfiles,
967
+ createProfile,
968
+ getProfile,
969
+ updateProfile,
970
+ deleteProfile
1027
971
  };
1028
972
  /**
1029
- * Usage API - Get usage statistics
973
+ * Accounts API - Manage connected social media accounts
1030
974
  */
1031
- this.usage = {
1032
- getStats: getV1UsageStats
975
+ this.accounts = {
976
+ listAccounts,
977
+ getFollowerStats,
978
+ updateAccount,
979
+ deleteAccount,
980
+ getAllAccountsHealth,
981
+ getAccountHealth,
982
+ getGoogleBusinessReviews,
983
+ getLinkedInMentions
1033
984
  };
1034
985
  /**
1035
- * Logs API - Publishing logs
986
+ * API Keys API - Manage API keys
1036
987
  */
1037
- this.logs = {
1038
- list: getV1Logs,
1039
- get: getV1LogsByLogId
988
+ this.apiKeys = {
989
+ listApiKeys,
990
+ createApiKey,
991
+ deleteApiKey
992
+ };
993
+ /**
994
+ * Invites API - Team invitations
995
+ */
996
+ this.invites = {
997
+ createInviteToken
1040
998
  };
1041
999
  /**
1042
1000
  * Connect API - OAuth connection flows
1043
1001
  */
1044
1002
  this.connect = {
1045
- getUrl: getV1ConnectByPlatform,
1046
- handleCallback: postV1ConnectByPlatform,
1003
+ getConnectUrl,
1004
+ handleOAuthCallback,
1005
+ updateFacebookPage,
1006
+ getLinkedInOrganizations,
1007
+ updateLinkedInOrganization,
1008
+ getPinterestBoards,
1009
+ updatePinterestBoards,
1010
+ getRedditSubreddits,
1011
+ updateRedditSubreddits,
1047
1012
  facebook: {
1048
- listPages: getV1ConnectFacebookSelectPage,
1049
- selectPage: postV1ConnectFacebookSelectPage
1013
+ listFacebookPages,
1014
+ selectFacebookPage
1050
1015
  },
1051
1016
  googleBusiness: {
1052
- listLocations: getV1ConnectGooglebusinessLocations,
1053
- selectLocation: postV1ConnectGooglebusinessSelectLocation
1017
+ listGoogleBusinessLocations,
1018
+ selectGoogleBusinessLocation
1054
1019
  },
1055
- linkedIn: {
1056
- listOrganizations: getV1ConnectLinkedinOrganizations,
1057
- selectOrganization: postV1ConnectLinkedinSelectOrganization
1020
+ linkedin: {
1021
+ listLinkedInOrganizations,
1022
+ selectLinkedInOrganization
1058
1023
  },
1059
1024
  pinterest: {
1060
- listBoards: getV1ConnectPinterestSelectBoard,
1061
- selectBoard: postV1ConnectPinterestSelectBoard
1025
+ listPinterestBoardsForSelection,
1026
+ selectPinterestBoard
1062
1027
  },
1063
1028
  snapchat: {
1064
- listProfiles: getV1ConnectSnapchatSelectProfile,
1065
- selectProfile: postV1ConnectSnapchatSelectProfile
1029
+ listSnapchatProfiles,
1030
+ selectSnapchatProfile
1066
1031
  },
1067
1032
  bluesky: {
1068
- connectCredentials: postV1ConnectBlueskyCredentials
1033
+ connectBlueskyCredentials
1069
1034
  },
1070
1035
  telegram: {
1071
- getStatus: getV1ConnectTelegram,
1072
- initiate: postV1ConnectTelegram,
1073
- complete: patchV1ConnectTelegram
1036
+ getTelegramConnectStatus,
1037
+ initiateTelegramConnect,
1038
+ completeTelegramConnect
1074
1039
  }
1075
1040
  };
1076
1041
  /**
1077
- * Reddit API - Search and feed
1042
+ * Queue API - Manage posting queue
1078
1043
  */
1079
- this.reddit = {
1080
- search: getV1RedditSearch,
1081
- getFeed: getV1RedditFeed
1044
+ this.queue = {
1045
+ listQueueSlots,
1046
+ createQueueSlot,
1047
+ updateQueueSlot,
1048
+ deleteQueueSlot,
1049
+ previewQueue,
1050
+ getNextQueueSlot
1082
1051
  };
1083
1052
  /**
1084
- * Invites API - Team invitations
1053
+ * Webhooks API - Configure event webhooks
1085
1054
  */
1086
- this.invites = {
1087
- createToken: postV1InviteTokens,
1088
- list: getV1PlatformInvites,
1089
- create: postV1PlatformInvites,
1090
- delete: deleteV1PlatformInvites
1055
+ this.webhooks = {
1056
+ getWebhookSettings,
1057
+ createWebhookSettings,
1058
+ updateWebhookSettings,
1059
+ deleteWebhookSettings,
1060
+ testWebhook,
1061
+ getWebhookLogs
1062
+ };
1063
+ /**
1064
+ * Logs API - Publishing logs
1065
+ */
1066
+ this.logs = {
1067
+ listLogs,
1068
+ getLog,
1069
+ getPostLogs
1091
1070
  };
1092
1071
  const apiKey = options.apiKey ?? process.env["LATE_API_KEY"];
1093
1072
  if (!apiKey) {