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