@getanyapi/sdk 0.42.0 → 0.43.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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -7
- package/dist/index.d.ts +11 -7
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -41685,6 +41685,10 @@ interface TwitterFollowersInput {
|
|
|
41685
41685
|
* Range: minimum 1.
|
|
41686
41686
|
*/
|
|
41687
41687
|
preferLatencyUnderMs?: number;
|
|
41688
|
+
/**
|
|
41689
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `bio`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
41690
|
+
*/
|
|
41691
|
+
requireFields?: ("bio" | "followers" | "following" | "location" | "nextCursor" | "verified")[];
|
|
41688
41692
|
/**
|
|
41689
41693
|
* The X (Twitter) username to fetch followers for, without the @ prefix (e.g. elonmusk).
|
|
41690
41694
|
*/
|
|
@@ -41698,7 +41702,7 @@ interface TwitterFollowersItem {
|
|
|
41698
41702
|
/**
|
|
41699
41703
|
* The account's profile bio/description.
|
|
41700
41704
|
*/
|
|
41701
|
-
bio
|
|
41705
|
+
bio?: string;
|
|
41702
41706
|
/**
|
|
41703
41707
|
* How many followers this account has.
|
|
41704
41708
|
*/
|
|
@@ -41706,7 +41710,7 @@ interface TwitterFollowersItem {
|
|
|
41706
41710
|
/**
|
|
41707
41711
|
* How many accounts this account follows.
|
|
41708
41712
|
*/
|
|
41709
|
-
following
|
|
41713
|
+
following?: number;
|
|
41710
41714
|
/**
|
|
41711
41715
|
* The account's self-reported location (may be empty).
|
|
41712
41716
|
*/
|
|
@@ -41757,6 +41761,10 @@ interface TwitterFollowingInput {
|
|
|
41757
41761
|
* Range: minimum 1.
|
|
41758
41762
|
*/
|
|
41759
41763
|
preferLatencyUnderMs?: number;
|
|
41764
|
+
/**
|
|
41765
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `location`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
41766
|
+
*/
|
|
41767
|
+
requireFields?: ("bio" | "followers" | "following" | "location" | "nextCursor")[];
|
|
41760
41768
|
/**
|
|
41761
41769
|
* The X (Twitter) username to fetch the following list for, without the @ prefix (e.g. elonmusk).
|
|
41762
41770
|
*/
|
|
@@ -41791,10 +41799,6 @@ interface TwitterFollowingItem {
|
|
|
41791
41799
|
* The account's @ handle, without the @ prefix. Populated whenever the provider has data for the entity.
|
|
41792
41800
|
*/
|
|
41793
41801
|
username: string;
|
|
41794
|
-
/**
|
|
41795
|
-
* Whether the account is verified.
|
|
41796
|
-
*/
|
|
41797
|
-
verified?: boolean;
|
|
41798
41802
|
[extra: string]: unknown;
|
|
41799
41803
|
}
|
|
41800
41804
|
/**
|
|
@@ -42747,7 +42751,7 @@ declare class TwitterNamespace {
|
|
|
42747
42751
|
*
|
|
42748
42752
|
* Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
|
|
42749
42753
|
*
|
|
42750
|
-
* Price: $0.
|
|
42754
|
+
* Price: $0.0005 per request.
|
|
42751
42755
|
*
|
|
42752
42756
|
* @example
|
|
42753
42757
|
* const res = await client.twitter.followers({ username: "nasa", limit: 200 });
|
package/dist/index.d.ts
CHANGED
|
@@ -41685,6 +41685,10 @@ interface TwitterFollowersInput {
|
|
|
41685
41685
|
* Range: minimum 1.
|
|
41686
41686
|
*/
|
|
41687
41687
|
preferLatencyUnderMs?: number;
|
|
41688
|
+
/**
|
|
41689
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `bio`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
41690
|
+
*/
|
|
41691
|
+
requireFields?: ("bio" | "followers" | "following" | "location" | "nextCursor" | "verified")[];
|
|
41688
41692
|
/**
|
|
41689
41693
|
* The X (Twitter) username to fetch followers for, without the @ prefix (e.g. elonmusk).
|
|
41690
41694
|
*/
|
|
@@ -41698,7 +41702,7 @@ interface TwitterFollowersItem {
|
|
|
41698
41702
|
/**
|
|
41699
41703
|
* The account's profile bio/description.
|
|
41700
41704
|
*/
|
|
41701
|
-
bio
|
|
41705
|
+
bio?: string;
|
|
41702
41706
|
/**
|
|
41703
41707
|
* How many followers this account has.
|
|
41704
41708
|
*/
|
|
@@ -41706,7 +41710,7 @@ interface TwitterFollowersItem {
|
|
|
41706
41710
|
/**
|
|
41707
41711
|
* How many accounts this account follows.
|
|
41708
41712
|
*/
|
|
41709
|
-
following
|
|
41713
|
+
following?: number;
|
|
41710
41714
|
/**
|
|
41711
41715
|
* The account's self-reported location (may be empty).
|
|
41712
41716
|
*/
|
|
@@ -41757,6 +41761,10 @@ interface TwitterFollowingInput {
|
|
|
41757
41761
|
* Range: minimum 1.
|
|
41758
41762
|
*/
|
|
41759
41763
|
preferLatencyUnderMs?: number;
|
|
41764
|
+
/**
|
|
41765
|
+
* Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `location`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a profile that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge. On a paginated walk it applies to the first page only; later pages stay with the source that page chose, at the price it was quoted.
|
|
41766
|
+
*/
|
|
41767
|
+
requireFields?: ("bio" | "followers" | "following" | "location" | "nextCursor")[];
|
|
41760
41768
|
/**
|
|
41761
41769
|
* The X (Twitter) username to fetch the following list for, without the @ prefix (e.g. elonmusk).
|
|
41762
41770
|
*/
|
|
@@ -41791,10 +41799,6 @@ interface TwitterFollowingItem {
|
|
|
41791
41799
|
* The account's @ handle, without the @ prefix. Populated whenever the provider has data for the entity.
|
|
41792
41800
|
*/
|
|
41793
41801
|
username: string;
|
|
41794
|
-
/**
|
|
41795
|
-
* Whether the account is verified.
|
|
41796
|
-
*/
|
|
41797
|
-
verified?: boolean;
|
|
41798
41802
|
[extra: string]: unknown;
|
|
41799
41803
|
}
|
|
41800
41804
|
/**
|
|
@@ -42747,7 +42751,7 @@ declare class TwitterNamespace {
|
|
|
42747
42751
|
*
|
|
42748
42752
|
* Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
|
|
42749
42753
|
*
|
|
42750
|
-
* Price: $0.
|
|
42754
|
+
* Price: $0.0005 per request.
|
|
42751
42755
|
*
|
|
42752
42756
|
* @example
|
|
42753
42757
|
* const res = await client.twitter.followers({ username: "nasa", limit: 200 });
|
package/dist/index.js
CHANGED
|
@@ -6693,7 +6693,7 @@ var TwitterNamespace = class {
|
|
|
6693
6693
|
*
|
|
6694
6694
|
* Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
|
|
6695
6695
|
*
|
|
6696
|
-
* Price: $0.
|
|
6696
|
+
* Price: $0.0005 per request.
|
|
6697
6697
|
*
|
|
6698
6698
|
* @example
|
|
6699
6699
|
* const res = await client.twitter.followers({ username: "nasa", limit: 200 });
|