@getanyapi/sdk 0.161.1 → 0.162.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.d.cts CHANGED
@@ -71050,6 +71050,12 @@ interface TwitterCommunityTweetsInput {
71050
71050
  * Range: minimum 1.
71051
71051
  */
71052
71052
  preferLatencyUnderMs?: number;
71053
+ /**
71054
+ * top returns ranked tweets chosen by the source; the time window they cover varies by source. latest returns the newest tweets first; fewer sources serve it and it can cost more.
71055
+ * One of: top, latest.
71056
+ * Default: top.
71057
+ */
71058
+ sort?: "top" | "latest";
71053
71059
  /**
71054
71060
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
71055
71061
  */
@@ -72607,7 +72613,7 @@ declare class TwitterNamespace {
72607
72613
  /**
72608
72614
  * Twitter Community Tweets
72609
72615
  *
72610
- * List recent tweets posted in a Twitter/X community by URL.
72616
+ * List tweets posted in a Twitter/X community by URL: top tweets by default, or the newest with sort=latest.
72611
72617
  *
72612
72618
  * Price: $0.00045 per request.
72613
72619
  *
package/dist/index.d.ts CHANGED
@@ -71050,6 +71050,12 @@ interface TwitterCommunityTweetsInput {
71050
71050
  * Range: minimum 1.
71051
71051
  */
71052
71052
  preferLatencyUnderMs?: number;
71053
+ /**
71054
+ * top returns ranked tweets chosen by the source; the time window they cover varies by source. latest returns the newest tweets first; fewer sources serve it and it can cost more.
71055
+ * One of: top, latest.
71056
+ * Default: top.
71057
+ */
71058
+ sort?: "top" | "latest";
71053
71059
  /**
71054
71060
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
71055
71061
  */
@@ -72607,7 +72613,7 @@ declare class TwitterNamespace {
72607
72613
  /**
72608
72614
  * Twitter Community Tweets
72609
72615
  *
72610
- * List recent tweets posted in a Twitter/X community by URL.
72616
+ * List tweets posted in a Twitter/X community by URL: top tweets by default, or the newest with sort=latest.
72611
72617
  *
72612
72618
  * Price: $0.00045 per request.
72613
72619
  *
package/dist/index.js CHANGED
@@ -8752,7 +8752,7 @@ var TwitterNamespace = class {
8752
8752
  /**
8753
8753
  * Twitter Community Tweets
8754
8754
  *
8755
- * List recent tweets posted in a Twitter/X community by URL.
8755
+ * List tweets posted in a Twitter/X community by URL: top tweets by default, or the newest with sort=latest.
8756
8756
  *
8757
8757
  * Price: $0.00045 per request.
8758
8758
  *