@getanyapi/sdk 0.121.0 → 0.122.0

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
@@ -4976,6 +4976,27 @@ var LinkedinNamespace = class {
4976
4976
  }
4977
4977
  };
4978
4978
 
4979
+ // src/generated/platforms/linktree.ts
4980
+ var LinktreeNamespace = class {
4981
+ constructor(_core) {
4982
+ this._core = _core;
4983
+ }
4984
+ _core;
4985
+ /**
4986
+ * Linktree Profile
4987
+ *
4988
+ * Get a public Linktree page by URL: title, bio, picture, contact email, linked social accounts, and every link card with its destination.
4989
+ *
4990
+ * Price: $0.0011 per request.
4991
+ *
4992
+ * @example
4993
+ * const res = await client.linktree.profile({ url: "https://linktr.ee/mkbhd" });
4994
+ */
4995
+ profile(input, options) {
4996
+ return this._core.run("linktree.profile", input, options);
4997
+ }
4998
+ };
4999
+
4979
5000
  // src/generated/platforms/maps.ts
4980
5001
  var MapsNamespace = class {
4981
5002
  constructor(_core) {
@@ -6718,6 +6739,69 @@ var TechnographicsNamespace = class {
6718
6739
  }
6719
6740
  };
6720
6741
 
6742
+ // src/generated/platforms/telegram.ts
6743
+ var TelegramNamespace = class {
6744
+ constructor(_core) {
6745
+ this._core = _core;
6746
+ }
6747
+ _core;
6748
+ /**
6749
+ * Telegram Channel
6750
+ *
6751
+ * Get a public Telegram channel by username: name, bio, photo, verified badge, exact subscriber count, and how many photos, videos, files and links it has posted.
6752
+ *
6753
+ * Price: $0.0011 per request.
6754
+ *
6755
+ * @example
6756
+ * const res = await client.telegram.channel({ handle: "telegram" });
6757
+ */
6758
+ channel(input, options) {
6759
+ return this._core.run("telegram.channel", input, options);
6760
+ }
6761
+ /**
6762
+ * Telegram Channel Posts
6763
+ *
6764
+ * Get a public Telegram channel's posts by username, about 20 per page with a cursor for older pages: text, posting time, views, photo and video links, and reactions.
6765
+ *
6766
+ * Price: $0.0011 per request.
6767
+ *
6768
+ * @example
6769
+ * const res = await client.telegram.channelPosts({ handle: "telegram" });
6770
+ */
6771
+ channelPosts(input, options) {
6772
+ return this._core.run("telegram.channel_posts", input, options);
6773
+ }
6774
+ /**
6775
+ * Iterate every result of Telegram Channel Posts across pages.
6776
+ *
6777
+ * Yields items directly; call `.pages()` on the return value to walk whole
6778
+ * result pages instead (each carries its own costUsd).
6779
+ */
6780
+ iterChannelPosts(input, options) {
6781
+ return paginate(
6782
+ this._core,
6783
+ "telegram.channel_posts",
6784
+ input,
6785
+ "posts",
6786
+ false,
6787
+ options
6788
+ );
6789
+ }
6790
+ /**
6791
+ * Telegram Post
6792
+ *
6793
+ * Get one public Telegram channel post by its t.me link: text, posting time, views, photo and video links, and reactions.
6794
+ *
6795
+ * Price: $0.0011 per request.
6796
+ *
6797
+ * @example
6798
+ * const res = await client.telegram.post({ url: "https://t.me/telegram/460" });
6799
+ */
6800
+ post(input, options) {
6801
+ return this._core.run("telegram.post", input, options);
6802
+ }
6803
+ };
6804
+
6721
6805
  // src/generated/platforms/threads.ts
6722
6806
  var ThreadsNamespace = class {
6723
6807
  constructor(_core) {
@@ -7417,6 +7501,19 @@ var TiktokNamespace = class {
7417
7501
  trendingHashtags(input, options) {
7418
7502
  return this._core.run("tiktok.trending_hashtags", input, options);
7419
7503
  }
7504
+ /**
7505
+ * TikTok User Stories
7506
+ *
7507
+ * Get a TikTok creator's active public stories by username: video or photo links, cover, posting and expiry times, and view, like, share and save counts.
7508
+ *
7509
+ * Price: $0.0011 per request.
7510
+ *
7511
+ * @example
7512
+ * const res = await client.tiktok.userStories({ handle: "jasonderulo" });
7513
+ */
7514
+ userStories(input, options) {
7515
+ return this._core.run("tiktok.user_stories", input, options);
7516
+ }
7420
7517
  /**
7421
7518
  * TikTok Video
7422
7519
  *
@@ -7970,7 +8067,7 @@ var TwitterNamespace = class {
7970
8067
  *
7971
8068
  * Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
7972
8069
  *
7973
- * Price: $0.00075 per request.
8070
+ * Price: $0.0007 per request.
7974
8071
  *
7975
8072
  * @example
7976
8073
  * const res = await client.twitter.searchUsers({ query: "ai agents" });
@@ -9281,6 +9378,14 @@ var AnyAPI2 = class extends AnyAPI {
9281
9378
  this._core
9282
9379
  );
9283
9380
  }
9381
+ /**
9382
+ * Typed methods for the linktree platform.
9383
+ */
9384
+ get linktree() {
9385
+ return this._namespaces["linktree"] ??= new LinktreeNamespace(
9386
+ this._core
9387
+ );
9388
+ }
9284
9389
  /**
9285
9390
  * Typed methods for the maps platform.
9286
9391
  */
@@ -9485,6 +9590,14 @@ var AnyAPI2 = class extends AnyAPI {
9485
9590
  this._core
9486
9591
  );
9487
9592
  }
9593
+ /**
9594
+ * Typed methods for the telegram platform.
9595
+ */
9596
+ get telegram() {
9597
+ return this._namespaces["telegram"] ??= new TelegramNamespace(
9598
+ this._core
9599
+ );
9600
+ }
9488
9601
  /**
9489
9602
  * Typed methods for the threads platform.
9490
9603
  */
@@ -9671,6 +9784,7 @@ export {
9671
9784
  JobSearchNamespace,
9672
9785
  LevelsNamespace,
9673
9786
  LinkedinNamespace,
9787
+ LinktreeNamespace,
9674
9788
  MapsNamespace,
9675
9789
  MobilePhoneNamespace,
9676
9790
  NOT_FOUND_REASONS,
@@ -9702,6 +9816,7 @@ export {
9702
9816
  SpotifyNamespace,
9703
9817
  SubstackNamespace,
9704
9818
  TechnographicsNamespace,
9819
+ TelegramNamespace,
9705
9820
  ThreadsNamespace,
9706
9821
  TiktokNamespace,
9707
9822
  TiktokShopNamespace,