@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.js CHANGED
@@ -2163,6 +2163,22 @@ var GithubNamespace = class {
2163
2163
  userRepositories(input, options) {
2164
2164
  return this._core.run("github.user_repositories", input, options);
2165
2165
  }
2166
+ /**
2167
+ * Iterate every result of GitHub User Repositories across pages.
2168
+ *
2169
+ * Yields items directly; call `.pages()` on the return value to walk whole
2170
+ * result pages instead (each carries its own costUsd).
2171
+ */
2172
+ iterUserRepositories(input, options) {
2173
+ return paginate(
2174
+ this._core,
2175
+ "github.user_repositories",
2176
+ input,
2177
+ "repos",
2178
+ false,
2179
+ options
2180
+ );
2181
+ }
2166
2182
  };
2167
2183
 
2168
2184
  // src/generated/platforms/glassdoor.ts
@@ -3596,6 +3612,22 @@ var RedditNamespace = class {
3596
3612
  subredditPosts(input, options) {
3597
3613
  return this._core.run("reddit.subreddit_posts", input, options);
3598
3614
  }
3615
+ /**
3616
+ * Iterate every result of Reddit Subreddit Posts across pages.
3617
+ *
3618
+ * Yields items directly; call `.pages()` on the return value to walk whole
3619
+ * result pages instead (each carries its own costUsd).
3620
+ */
3621
+ iterSubredditPosts(input, options) {
3622
+ return paginate(
3623
+ this._core,
3624
+ "reddit.subreddit_posts",
3625
+ input,
3626
+ "posts",
3627
+ false,
3628
+ options
3629
+ );
3630
+ }
3599
3631
  /**
3600
3632
  * Reddit Subreddit Search
3601
3633
  *
@@ -3625,6 +3657,19 @@ var RedditNamespace = class {
3625
3657
  options
3626
3658
  );
3627
3659
  }
3660
+ /**
3661
+ * Reddit Trending Posts
3662
+ *
3663
+ * Get currently trending Reddit posts across all subreddits with stable cursor pagination.
3664
+ *
3665
+ * Price: $0.00036 per request.
3666
+ *
3667
+ * @example
3668
+ * const res = await client.reddit.trendingPosts({ limit: 25 });
3669
+ */
3670
+ trendingPosts(input, options) {
3671
+ return this._core.run("reddit.trending_posts", input, options);
3672
+ }
3628
3673
  /**
3629
3674
  * Reddit User Comments
3630
3675
  *