@getanyapi/sdk 0.116.0 → 0.117.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.cjs CHANGED
@@ -2981,6 +2981,35 @@ var GithubNamespace = class {
2981
2981
  this._core = _core;
2982
2982
  }
2983
2983
  _core;
2984
+ /**
2985
+ * GitHub Issue Comments
2986
+ *
2987
+ * List the comments on a GitHub issue or pull request by its URL, oldest first, with each commenter's login, their relationship to the repository, reactions and the comment text.
2988
+ *
2989
+ * Price: $0.0012 per request.
2990
+ *
2991
+ * @example
2992
+ * const res = await client.github.issueComments({ url: "https://github.com/openai/whisper/pull/1838", limit: 10 });
2993
+ */
2994
+ issueComments(input, options) {
2995
+ return this._core.run("github.issue_comments", input, options);
2996
+ }
2997
+ /**
2998
+ * Iterate every result of GitHub Issue Comments across pages.
2999
+ *
3000
+ * Yields items directly; call `.pages()` on the return value to walk whole
3001
+ * result pages instead (each carries its own costUsd).
3002
+ */
3003
+ iterIssueComments(input, options) {
3004
+ return paginate(
3005
+ this._core,
3006
+ "github.issue_comments",
3007
+ input,
3008
+ "comments",
3009
+ false,
3010
+ options
3011
+ );
3012
+ }
2984
3013
  /**
2985
3014
  * GitHub Repository
2986
3015
  *
@@ -2994,6 +3023,71 @@ var GithubNamespace = class {
2994
3023
  repository(input, options) {
2995
3024
  return this._core.run("github.repository", input, options);
2996
3025
  }
3026
+ /**
3027
+ * GitHub Repository Contributors
3028
+ *
3029
+ * List the people who have committed to a GitHub repository by repository URL, ordered by number of commits, with each contributor's login, profile URL and commit count. Look each one up with github.user for their profile, website and socials.
3030
+ *
3031
+ * Price: $0.0012 per request.
3032
+ *
3033
+ * @example
3034
+ * const res = await client.github.repositoryContributors({ url: "https://github.com/openai/whisper", limit: 10 });
3035
+ */
3036
+ repositoryContributors(input, options) {
3037
+ return this._core.run("github.repository_contributors", input, options);
3038
+ }
3039
+ /**
3040
+ * GitHub Repository Forks
3041
+ *
3042
+ * List the forks of a GitHub repository by repository URL, with each fork's owner, description, stars, language and last push. Sort by newest, oldest or most starred.
3043
+ *
3044
+ * Price: $0.0012 per request.
3045
+ *
3046
+ * @example
3047
+ * const res = await client.github.repositoryForks({ url: "https://github.com/openai/whisper" });
3048
+ */
3049
+ repositoryForks(input, options) {
3050
+ return this._core.run("github.repository_forks", input, options);
3051
+ }
3052
+ /**
3053
+ * GitHub Repository Issues
3054
+ *
3055
+ * List a GitHub repository's issues and pull requests by repository URL (GitHub lists pull requests as issues), with each one's author, state, labels, counts and body. Filter by state, sort and update date.
3056
+ *
3057
+ * Price: $0.0012 per request.
3058
+ *
3059
+ * @example
3060
+ * const res = await client.github.repositoryIssues({ url: "https://github.com/openai/whisper" });
3061
+ */
3062
+ repositoryIssues(input, options) {
3063
+ return this._core.run("github.repository_issues", input, options);
3064
+ }
3065
+ /**
3066
+ * GitHub Repository README
3067
+ *
3068
+ * Get a GitHub repository's README by repository URL, as the Markdown text the maintainers wrote, with its file name, path and size. Use it to learn what a project does, which models and tools it uses, and how to reach its authors.
3069
+ *
3070
+ * Price: $0.0012 per request.
3071
+ *
3072
+ * @example
3073
+ * const res = await client.github.repositoryReadme({ url: "https://github.com/openai/whisper" });
3074
+ */
3075
+ repositoryReadme(input, options) {
3076
+ return this._core.run("github.repository_readme", input, options);
3077
+ }
3078
+ /**
3079
+ * GitHub Issue and PR Search
3080
+ *
3081
+ * Search issues and pull requests across GitHub with GitHub's own search syntax (repo:, is:pr, is:issue, author:, label:, created:...), with each result's author, state, labels, counts and body. Use it to find who opens issues and pull requests on a repository.
3082
+ *
3083
+ * Price: $0.0024 per request.
3084
+ *
3085
+ * @example
3086
+ * const res = await client.github.searchIssues({ query: "repo:openai/whisper is:pr" });
3087
+ */
3088
+ searchIssues(input, options) {
3089
+ return this._core.run("github.search_issues", input, options);
3090
+ }
2997
3091
  /**
2998
3092
  * GitHub Trending Developers
2999
3093
  *
@@ -4236,7 +4330,7 @@ var InstagramNamespace = class {
4236
4330
  *
4237
4331
  * List the accounts Instagram recommends as similar to a public profile, with each account's handle, display name, verified flag and avatar.
4238
4332
  *
4239
- * Price: $0.027 per request.
4333
+ * Price: $0.00175 per request.
4240
4334
  *
4241
4335
  * @example
4242
4336
  * const res = await client.instagram.similarProfiles({ handle: "nasa" });
@@ -5614,7 +5708,7 @@ var RedditNamespace = class {
5614
5708
  *
5615
5709
  * Get a Reddit user's profile picture URL, karma, and account age by username. The cheapest Reddit user lookup; use reddit.profile for bio, trophies, and post and comment counts.
5616
5710
  *
5617
- * Price: $0.00038 per request.
5711
+ * Price: $0.0012 per request.
5618
5712
  *
5619
5713
  * @example
5620
5714
  * const res = await client.reddit.avatar({ username: "spez" });
@@ -5737,7 +5831,7 @@ var RedditNamespace = class {
5737
5831
  *
5738
5832
  * Fetch posts from a subreddit listing (hot, new, or top).
5739
5833
  *
5740
- * Price: $0.0008 per request.
5834
+ * Price: $0.00038 per request.
5741
5835
  *
5742
5836
  * @example
5743
5837
  * const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });