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