@getanyapi/sdk 0.65.0 → 0.66.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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -6
- package/dist/index.d.ts +24 -6
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -13858,6 +13858,10 @@ interface FacebookAdsSearchInput {
|
|
|
13858
13858
|
* Keyword to search the Meta Ad Library for (e.g. "protein powder").
|
|
13859
13859
|
*/
|
|
13860
13860
|
query: string;
|
|
13861
|
+
/**
|
|
13862
|
+
* 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 `totalResults` or `pageLikes`, 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 an ad that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
13863
|
+
*/
|
|
13864
|
+
requireFields?: ("active" | "adCount" | "ads" | "caption" | "categories" | "endDate" | "isReshared" | "linkDescription" | "media" | "nextCursor" | "pageCategories" | "pageDeleted" | "pageLikes" | "pageProfilePicture" | "pageUrl" | "totalResults")[];
|
|
13861
13865
|
/**
|
|
13862
13866
|
* Match mode for the query: loose keyword match (keyword_unordered, the default) or exact phrase (keyword_exact_phrase).
|
|
13863
13867
|
* One of: keyword_unordered, keyword_exact_phrase.
|
|
@@ -14019,7 +14023,10 @@ interface FacebookAdsSearchData {
|
|
|
14019
14023
|
* Opaque cursor for the next page of ads, or null when this lane has no more. Pass it back as cursor to continue.
|
|
14020
14024
|
*/
|
|
14021
14025
|
nextCursor: string | null;
|
|
14022
|
-
|
|
14026
|
+
/**
|
|
14027
|
+
* Total number of ads matching the search. Null when the source cannot report an exact count.
|
|
14028
|
+
*/
|
|
14029
|
+
totalResults: number | null;
|
|
14023
14030
|
}
|
|
14024
14031
|
/**
|
|
14025
14032
|
* Input for Facebook Comment Replies (facebook.comment_replies).
|
|
@@ -15558,7 +15565,10 @@ interface FacebookPostData {
|
|
|
15558
15565
|
* Facebook video id of the post's reel or video, the id that appears in its /reel/<id> URL. Null when the post carries no video or this lane cannot read it.
|
|
15559
15566
|
*/
|
|
15560
15567
|
videoId?: string | null;
|
|
15561
|
-
|
|
15568
|
+
/**
|
|
15569
|
+
* Number of views on the post's video. Null when the source cannot report an exact count, for example when it gives only a rounded figure such as 14K.
|
|
15570
|
+
*/
|
|
15571
|
+
views: number | null;
|
|
15562
15572
|
[extra: string]: unknown;
|
|
15563
15573
|
}
|
|
15564
15574
|
/**
|
|
@@ -15587,6 +15597,10 @@ interface FacebookPostCommentsInput {
|
|
|
15587
15597
|
* Range: minimum 1.
|
|
15588
15598
|
*/
|
|
15589
15599
|
preferLatencyUnderMs?: number;
|
|
15600
|
+
/**
|
|
15601
|
+
* 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 `feedbackId` or `hasNextPage`, 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 comment that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
15602
|
+
*/
|
|
15603
|
+
requireFields?: ("authorId" | "authorImage" | "expansionToken" | "feedbackId" | "hasNextPage" | "nextCursor" | "reactions" | "replies")[];
|
|
15590
15604
|
/**
|
|
15591
15605
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source 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`.
|
|
15592
15606
|
*/
|
|
@@ -15988,6 +16002,10 @@ interface FacebookProfileReelsInput {
|
|
|
15988
16002
|
* Range: minimum 1.
|
|
15989
16003
|
*/
|
|
15990
16004
|
preferLatencyUnderMs?: number;
|
|
16005
|
+
/**
|
|
16006
|
+
* 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 `feedbackId` or `authorVerified`, 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 reel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
16007
|
+
*/
|
|
16008
|
+
requireFields?: ("authorId" | "authorImage" | "authorName" | "authorVerified" | "durationSeconds" | "feedbackId" | "nextCursor" | "views")[];
|
|
15991
16009
|
/**
|
|
15992
16010
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source 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`.
|
|
15993
16011
|
*/
|
|
@@ -16273,7 +16291,7 @@ interface FacebookSearchPostsInput {
|
|
|
16273
16291
|
*/
|
|
16274
16292
|
ignoreSources?: string[];
|
|
16275
16293
|
/**
|
|
16276
|
-
* Maximum number of results to return (1-20, default 20).
|
|
16294
|
+
* Maximum number of results to return (1-20, default 20).
|
|
16277
16295
|
* Range: minimum 1, maximum 20.
|
|
16278
16296
|
*/
|
|
16279
16297
|
limit?: number;
|
|
@@ -16805,7 +16823,7 @@ declare class FacebookNamespace {
|
|
|
16805
16823
|
*
|
|
16806
16824
|
* Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
|
|
16807
16825
|
*
|
|
16808
|
-
* Price: $0.
|
|
16826
|
+
* Price: $0.03 per request.
|
|
16809
16827
|
*
|
|
16810
16828
|
* @example
|
|
16811
16829
|
* const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
|
|
@@ -30383,7 +30401,7 @@ declare class LinkedinNamespace {
|
|
|
30383
30401
|
*
|
|
30384
30402
|
* List the employees of a LinkedIn company by name or company URL, with optional job-title filtering.
|
|
30385
30403
|
*
|
|
30386
|
-
* Price: $0 per request plus $0.
|
|
30404
|
+
* Price: $0.0032 per request plus $0.0048 per result (maximum $0.0512).
|
|
30387
30405
|
*
|
|
30388
30406
|
* @example
|
|
30389
30407
|
* const res = await client.linkedin.companyEmployees({ company: "stripe", limit: 3 });
|
|
@@ -30590,7 +30608,7 @@ declare class LinkedinNamespace {
|
|
|
30590
30608
|
/**
|
|
30591
30609
|
* LinkedIn Post Search
|
|
30592
30610
|
*
|
|
30593
|
-
* Search public LinkedIn posts by keyword (text, link, publish date).
|
|
30611
|
+
* Search public LinkedIn posts by keyword (text, link, publish date). Results come from search-engine matches over public LinkedIn posts and work best with English keywords.
|
|
30594
30612
|
*
|
|
30595
30613
|
* Price: $0.0012 per request.
|
|
30596
30614
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -13858,6 +13858,10 @@ interface FacebookAdsSearchInput {
|
|
|
13858
13858
|
* Keyword to search the Meta Ad Library for (e.g. "protein powder").
|
|
13859
13859
|
*/
|
|
13860
13860
|
query: string;
|
|
13861
|
+
/**
|
|
13862
|
+
* 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 `totalResults` or `pageLikes`, 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 an ad that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
13863
|
+
*/
|
|
13864
|
+
requireFields?: ("active" | "adCount" | "ads" | "caption" | "categories" | "endDate" | "isReshared" | "linkDescription" | "media" | "nextCursor" | "pageCategories" | "pageDeleted" | "pageLikes" | "pageProfilePicture" | "pageUrl" | "totalResults")[];
|
|
13861
13865
|
/**
|
|
13862
13866
|
* Match mode for the query: loose keyword match (keyword_unordered, the default) or exact phrase (keyword_exact_phrase).
|
|
13863
13867
|
* One of: keyword_unordered, keyword_exact_phrase.
|
|
@@ -14019,7 +14023,10 @@ interface FacebookAdsSearchData {
|
|
|
14019
14023
|
* Opaque cursor for the next page of ads, or null when this lane has no more. Pass it back as cursor to continue.
|
|
14020
14024
|
*/
|
|
14021
14025
|
nextCursor: string | null;
|
|
14022
|
-
|
|
14026
|
+
/**
|
|
14027
|
+
* Total number of ads matching the search. Null when the source cannot report an exact count.
|
|
14028
|
+
*/
|
|
14029
|
+
totalResults: number | null;
|
|
14023
14030
|
}
|
|
14024
14031
|
/**
|
|
14025
14032
|
* Input for Facebook Comment Replies (facebook.comment_replies).
|
|
@@ -15558,7 +15565,10 @@ interface FacebookPostData {
|
|
|
15558
15565
|
* Facebook video id of the post's reel or video, the id that appears in its /reel/<id> URL. Null when the post carries no video or this lane cannot read it.
|
|
15559
15566
|
*/
|
|
15560
15567
|
videoId?: string | null;
|
|
15561
|
-
|
|
15568
|
+
/**
|
|
15569
|
+
* Number of views on the post's video. Null when the source cannot report an exact count, for example when it gives only a rounded figure such as 14K.
|
|
15570
|
+
*/
|
|
15571
|
+
views: number | null;
|
|
15562
15572
|
[extra: string]: unknown;
|
|
15563
15573
|
}
|
|
15564
15574
|
/**
|
|
@@ -15587,6 +15597,10 @@ interface FacebookPostCommentsInput {
|
|
|
15587
15597
|
* Range: minimum 1.
|
|
15588
15598
|
*/
|
|
15589
15599
|
preferLatencyUnderMs?: number;
|
|
15600
|
+
/**
|
|
15601
|
+
* 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 `feedbackId` or `hasNextPage`, 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 comment that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
15602
|
+
*/
|
|
15603
|
+
requireFields?: ("authorId" | "authorImage" | "expansionToken" | "feedbackId" | "hasNextPage" | "nextCursor" | "reactions" | "replies")[];
|
|
15590
15604
|
/**
|
|
15591
15605
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source 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`.
|
|
15592
15606
|
*/
|
|
@@ -15988,6 +16002,10 @@ interface FacebookProfileReelsInput {
|
|
|
15988
16002
|
* Range: minimum 1.
|
|
15989
16003
|
*/
|
|
15990
16004
|
preferLatencyUnderMs?: number;
|
|
16005
|
+
/**
|
|
16006
|
+
* 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 `feedbackId` or `authorVerified`, 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 reel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
16007
|
+
*/
|
|
16008
|
+
requireFields?: ("authorId" | "authorImage" | "authorName" | "authorVerified" | "durationSeconds" | "feedbackId" | "nextCursor" | "views")[];
|
|
15991
16009
|
/**
|
|
15992
16010
|
* Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source 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`.
|
|
15993
16011
|
*/
|
|
@@ -16273,7 +16291,7 @@ interface FacebookSearchPostsInput {
|
|
|
16273
16291
|
*/
|
|
16274
16292
|
ignoreSources?: string[];
|
|
16275
16293
|
/**
|
|
16276
|
-
* Maximum number of results to return (1-20, default 20).
|
|
16294
|
+
* Maximum number of results to return (1-20, default 20).
|
|
16277
16295
|
* Range: minimum 1, maximum 20.
|
|
16278
16296
|
*/
|
|
16279
16297
|
limit?: number;
|
|
@@ -16805,7 +16823,7 @@ declare class FacebookNamespace {
|
|
|
16805
16823
|
*
|
|
16806
16824
|
* Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
|
|
16807
16825
|
*
|
|
16808
|
-
* Price: $0.
|
|
16826
|
+
* Price: $0.03 per request.
|
|
16809
16827
|
*
|
|
16810
16828
|
* @example
|
|
16811
16829
|
* const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
|
|
@@ -30383,7 +30401,7 @@ declare class LinkedinNamespace {
|
|
|
30383
30401
|
*
|
|
30384
30402
|
* List the employees of a LinkedIn company by name or company URL, with optional job-title filtering.
|
|
30385
30403
|
*
|
|
30386
|
-
* Price: $0 per request plus $0.
|
|
30404
|
+
* Price: $0.0032 per request plus $0.0048 per result (maximum $0.0512).
|
|
30387
30405
|
*
|
|
30388
30406
|
* @example
|
|
30389
30407
|
* const res = await client.linkedin.companyEmployees({ company: "stripe", limit: 3 });
|
|
@@ -30590,7 +30608,7 @@ declare class LinkedinNamespace {
|
|
|
30590
30608
|
/**
|
|
30591
30609
|
* LinkedIn Post Search
|
|
30592
30610
|
*
|
|
30593
|
-
* Search public LinkedIn posts by keyword (text, link, publish date).
|
|
30611
|
+
* Search public LinkedIn posts by keyword (text, link, publish date). Results come from search-engine matches over public LinkedIn posts and work best with English keywords.
|
|
30594
30612
|
*
|
|
30595
30613
|
* Price: $0.0012 per request.
|
|
30596
30614
|
*
|
package/dist/index.js
CHANGED
|
@@ -2703,7 +2703,7 @@ var FacebookNamespace = class {
|
|
|
2703
2703
|
*
|
|
2704
2704
|
* Search public Facebook posts by keyword, optionally filtered by location, and get structured post records (text, author, engagement).
|
|
2705
2705
|
*
|
|
2706
|
-
* Price: $0.
|
|
2706
|
+
* Price: $0.03 per request.
|
|
2707
2707
|
*
|
|
2708
2708
|
* @example
|
|
2709
2709
|
* const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
|
|
@@ -4210,7 +4210,7 @@ var LinkedinNamespace = class {
|
|
|
4210
4210
|
*
|
|
4211
4211
|
* List the employees of a LinkedIn company by name or company URL, with optional job-title filtering.
|
|
4212
4212
|
*
|
|
4213
|
-
* Price: $0 per request plus $0.
|
|
4213
|
+
* Price: $0.0032 per request plus $0.0048 per result (maximum $0.0512).
|
|
4214
4214
|
*
|
|
4215
4215
|
* @example
|
|
4216
4216
|
* const res = await client.linkedin.companyEmployees({ company: "stripe", limit: 3 });
|
|
@@ -4455,7 +4455,7 @@ var LinkedinNamespace = class {
|
|
|
4455
4455
|
/**
|
|
4456
4456
|
* LinkedIn Post Search
|
|
4457
4457
|
*
|
|
4458
|
-
* Search public LinkedIn posts by keyword (text, link, publish date).
|
|
4458
|
+
* Search public LinkedIn posts by keyword (text, link, publish date). Results come from search-engine matches over public LinkedIn posts and work best with English keywords.
|
|
4459
4459
|
*
|
|
4460
4460
|
* Price: $0.0012 per request.
|
|
4461
4461
|
*
|