@getanyapi/sdk 0.7.0 → 0.7.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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -19710,11 +19710,11 @@ interface TwitterTweetTranscriptData {
|
|
|
19710
19710
|
[extra: string]: unknown;
|
|
19711
19711
|
}
|
|
19712
19712
|
/**
|
|
19713
|
-
* Input for Twitter User Tweets (twitter.user_tweets).
|
|
19713
|
+
* Input for X / Twitter User Tweets and Replies (twitter.user_tweets).
|
|
19714
19714
|
*/
|
|
19715
19715
|
interface TwitterUserTweetsInput {
|
|
19716
19716
|
/**
|
|
19717
|
-
*
|
|
19717
|
+
* Reserved for cursor-capable lanes. The current bulk lane returns nextCursor as null, so omit this field.
|
|
19718
19718
|
*/
|
|
19719
19719
|
cursor?: string;
|
|
19720
19720
|
/**
|
|
@@ -19722,13 +19722,13 @@ interface TwitterUserTweetsInput {
|
|
|
19722
19722
|
*/
|
|
19723
19723
|
handle: string;
|
|
19724
19724
|
/**
|
|
19725
|
-
*
|
|
19725
|
+
* Maximum number of authored tweets and replies to return in the current bulk call (1-1000). The provider may return fewer results.
|
|
19726
19726
|
* Range: minimum 1, maximum 1000.
|
|
19727
19727
|
* Default: 20.
|
|
19728
19728
|
*/
|
|
19729
19729
|
limit?: number;
|
|
19730
19730
|
/**
|
|
19731
|
-
*
|
|
19731
|
+
* Compatibility flag for requiring one response. The current lane already returns up to limit results in one bulk call, whether this is omitted or true.
|
|
19732
19732
|
*/
|
|
19733
19733
|
requireSinglePage?: boolean;
|
|
19734
19734
|
}
|
|
@@ -19761,11 +19761,11 @@ interface TwitterUserTweetsTweet {
|
|
|
19761
19761
|
[extra: string]: unknown;
|
|
19762
19762
|
}
|
|
19763
19763
|
/**
|
|
19764
|
-
* The `data` payload of Twitter User Tweets (twitter.user_tweets).
|
|
19764
|
+
* The `data` payload of X / Twitter User Tweets and Replies (twitter.user_tweets).
|
|
19765
19765
|
*/
|
|
19766
19766
|
interface TwitterUserTweetsData {
|
|
19767
19767
|
/**
|
|
19768
|
-
*
|
|
19768
|
+
* Reserved pagination cursor. The current bulk lane returns null; cursor-capable lanes may return an opaque continuation value in the future.
|
|
19769
19769
|
*/
|
|
19770
19770
|
nextCursor?: string;
|
|
19771
19771
|
/**
|
|
@@ -19901,18 +19901,18 @@ declare class TwitterNamespace {
|
|
|
19901
19901
|
*/
|
|
19902
19902
|
tweetTranscript(input: TwitterTweetTranscriptInput, options?: RequestOptions): Promise<RunResult<TwitterTweetTranscriptData>>;
|
|
19903
19903
|
/**
|
|
19904
|
-
* Twitter User Tweets
|
|
19904
|
+
* X / Twitter User Tweets and Replies
|
|
19905
19905
|
*
|
|
19906
|
-
* Get
|
|
19906
|
+
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
|
|
19907
19907
|
*
|
|
19908
|
-
* Price: $0
|
|
19908
|
+
* Price: $0 per request plus $0.0002 per result (maximum $0.2).
|
|
19909
19909
|
*
|
|
19910
19910
|
* @example
|
|
19911
19911
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
19912
19912
|
*/
|
|
19913
19913
|
userTweets(input: TwitterUserTweetsInput, options?: RequestOptions): Promise<RunResult<TwitterUserTweetsData>>;
|
|
19914
19914
|
/**
|
|
19915
|
-
* Iterate every result of Twitter User Tweets across pages.
|
|
19915
|
+
* Iterate every result of X / Twitter User Tweets and Replies across pages.
|
|
19916
19916
|
*
|
|
19917
19917
|
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
19918
19918
|
* result pages instead (each carries its own costUsd).
|
package/dist/index.d.ts
CHANGED
|
@@ -19710,11 +19710,11 @@ interface TwitterTweetTranscriptData {
|
|
|
19710
19710
|
[extra: string]: unknown;
|
|
19711
19711
|
}
|
|
19712
19712
|
/**
|
|
19713
|
-
* Input for Twitter User Tweets (twitter.user_tweets).
|
|
19713
|
+
* Input for X / Twitter User Tweets and Replies (twitter.user_tweets).
|
|
19714
19714
|
*/
|
|
19715
19715
|
interface TwitterUserTweetsInput {
|
|
19716
19716
|
/**
|
|
19717
|
-
*
|
|
19717
|
+
* Reserved for cursor-capable lanes. The current bulk lane returns nextCursor as null, so omit this field.
|
|
19718
19718
|
*/
|
|
19719
19719
|
cursor?: string;
|
|
19720
19720
|
/**
|
|
@@ -19722,13 +19722,13 @@ interface TwitterUserTweetsInput {
|
|
|
19722
19722
|
*/
|
|
19723
19723
|
handle: string;
|
|
19724
19724
|
/**
|
|
19725
|
-
*
|
|
19725
|
+
* Maximum number of authored tweets and replies to return in the current bulk call (1-1000). The provider may return fewer results.
|
|
19726
19726
|
* Range: minimum 1, maximum 1000.
|
|
19727
19727
|
* Default: 20.
|
|
19728
19728
|
*/
|
|
19729
19729
|
limit?: number;
|
|
19730
19730
|
/**
|
|
19731
|
-
*
|
|
19731
|
+
* Compatibility flag for requiring one response. The current lane already returns up to limit results in one bulk call, whether this is omitted or true.
|
|
19732
19732
|
*/
|
|
19733
19733
|
requireSinglePage?: boolean;
|
|
19734
19734
|
}
|
|
@@ -19761,11 +19761,11 @@ interface TwitterUserTweetsTweet {
|
|
|
19761
19761
|
[extra: string]: unknown;
|
|
19762
19762
|
}
|
|
19763
19763
|
/**
|
|
19764
|
-
* The `data` payload of Twitter User Tweets (twitter.user_tweets).
|
|
19764
|
+
* The `data` payload of X / Twitter User Tweets and Replies (twitter.user_tweets).
|
|
19765
19765
|
*/
|
|
19766
19766
|
interface TwitterUserTweetsData {
|
|
19767
19767
|
/**
|
|
19768
|
-
*
|
|
19768
|
+
* Reserved pagination cursor. The current bulk lane returns null; cursor-capable lanes may return an opaque continuation value in the future.
|
|
19769
19769
|
*/
|
|
19770
19770
|
nextCursor?: string;
|
|
19771
19771
|
/**
|
|
@@ -19901,18 +19901,18 @@ declare class TwitterNamespace {
|
|
|
19901
19901
|
*/
|
|
19902
19902
|
tweetTranscript(input: TwitterTweetTranscriptInput, options?: RequestOptions): Promise<RunResult<TwitterTweetTranscriptData>>;
|
|
19903
19903
|
/**
|
|
19904
|
-
* Twitter User Tweets
|
|
19904
|
+
* X / Twitter User Tweets and Replies
|
|
19905
19905
|
*
|
|
19906
|
-
* Get
|
|
19906
|
+
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
|
|
19907
19907
|
*
|
|
19908
|
-
* Price: $0
|
|
19908
|
+
* Price: $0 per request plus $0.0002 per result (maximum $0.2).
|
|
19909
19909
|
*
|
|
19910
19910
|
* @example
|
|
19911
19911
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
19912
19912
|
*/
|
|
19913
19913
|
userTweets(input: TwitterUserTweetsInput, options?: RequestOptions): Promise<RunResult<TwitterUserTweetsData>>;
|
|
19914
19914
|
/**
|
|
19915
|
-
* Iterate every result of Twitter User Tweets across pages.
|
|
19915
|
+
* Iterate every result of X / Twitter User Tweets and Replies across pages.
|
|
19916
19916
|
*
|
|
19917
19917
|
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
19918
19918
|
* result pages instead (each carries its own costUsd).
|
package/dist/index.js
CHANGED
|
@@ -4829,11 +4829,11 @@ var TwitterNamespace = class {
|
|
|
4829
4829
|
return this._core.run("twitter.tweet_transcript", input, options);
|
|
4830
4830
|
}
|
|
4831
4831
|
/**
|
|
4832
|
-
* Twitter User Tweets
|
|
4832
|
+
* X / Twitter User Tweets and Replies
|
|
4833
4833
|
*
|
|
4834
|
-
* Get
|
|
4834
|
+
* Get up to the requested limit of tweets and replies authored by an X (Twitter) account in one bulk call, with engagement, views, and language. The current lane returns nextCursor as null; cursor is reserved for future cursor-capable lanes.
|
|
4835
4835
|
*
|
|
4836
|
-
* Price: $0
|
|
4836
|
+
* Price: $0 per request plus $0.0002 per result (maximum $0.2).
|
|
4837
4837
|
*
|
|
4838
4838
|
* @example
|
|
4839
4839
|
* const res = await client.twitter.userTweets({ handle: "levelsio", limit: 20 });
|
|
@@ -4842,7 +4842,7 @@ var TwitterNamespace = class {
|
|
|
4842
4842
|
return this._core.run("twitter.user_tweets", input, options);
|
|
4843
4843
|
}
|
|
4844
4844
|
/**
|
|
4845
|
-
* Iterate every result of Twitter User Tweets across pages.
|
|
4845
|
+
* Iterate every result of X / Twitter User Tweets and Replies across pages.
|
|
4846
4846
|
*
|
|
4847
4847
|
* Yields items directly; call `.pages()` on the return value to walk whole
|
|
4848
4848
|
* result pages instead (each carries its own costUsd).
|