@getanyapi/sdk 0.14.0 → 0.15.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.cjs CHANGED
@@ -2261,6 +2261,22 @@ var GithubNamespace = class {
2261
2261
  userRepositories(input, options) {
2262
2262
  return this._core.run("github.user_repositories", input, options);
2263
2263
  }
2264
+ /**
2265
+ * Iterate every result of GitHub User Repositories across pages.
2266
+ *
2267
+ * Yields items directly; call `.pages()` on the return value to walk whole
2268
+ * result pages instead (each carries its own costUsd).
2269
+ */
2270
+ iterUserRepositories(input, options) {
2271
+ return paginate(
2272
+ this._core,
2273
+ "github.user_repositories",
2274
+ input,
2275
+ "repos",
2276
+ false,
2277
+ options
2278
+ );
2279
+ }
2264
2280
  };
2265
2281
 
2266
2282
  // src/generated/platforms/glassdoor.ts
@@ -3694,6 +3710,22 @@ var RedditNamespace = class {
3694
3710
  subredditPosts(input, options) {
3695
3711
  return this._core.run("reddit.subreddit_posts", input, options);
3696
3712
  }
3713
+ /**
3714
+ * Iterate every result of Reddit Subreddit Posts across pages.
3715
+ *
3716
+ * Yields items directly; call `.pages()` on the return value to walk whole
3717
+ * result pages instead (each carries its own costUsd).
3718
+ */
3719
+ iterSubredditPosts(input, options) {
3720
+ return paginate(
3721
+ this._core,
3722
+ "reddit.subreddit_posts",
3723
+ input,
3724
+ "posts",
3725
+ false,
3726
+ options
3727
+ );
3728
+ }
3697
3729
  /**
3698
3730
  * Reddit Subreddit Search
3699
3731
  *
@@ -3723,6 +3755,19 @@ var RedditNamespace = class {
3723
3755
  options
3724
3756
  );
3725
3757
  }
3758
+ /**
3759
+ * Reddit Trending Posts
3760
+ *
3761
+ * Get currently trending Reddit posts across all subreddits with stable cursor pagination.
3762
+ *
3763
+ * Price: $0.00036 per request.
3764
+ *
3765
+ * @example
3766
+ * const res = await client.reddit.trendingPosts({ limit: 25 });
3767
+ */
3768
+ trendingPosts(input, options) {
3769
+ return this._core.run("reddit.trending_posts", input, options);
3770
+ }
3726
3771
  /**
3727
3772
  * Reddit User Comments
3728
3773
  *