@getanyapi/sdk 0.64.0 → 0.66.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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -6
- package/dist/index.d.ts +28 -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
|
|
30404
|
+
* Price: $0 per request plus $0.011 per result (maximum $0.11).
|
|
30387
30405
|
*
|
|
30388
30406
|
* @example
|
|
30389
30407
|
* const res = await client.linkedin.companyEmployees({ company: "stripe", limit: 3 });
|
|
@@ -41235,6 +41253,10 @@ interface RedditPostCommentsComment {
|
|
|
41235
41253
|
* Reddit comment ID (base-36, without the t1_ prefix). Populated whenever the provider has data for the entity.
|
|
41236
41254
|
*/
|
|
41237
41255
|
id: string;
|
|
41256
|
+
/**
|
|
41257
|
+
* ID of the comment this one replies to (base-36, without the t1_ prefix). Empty for a top-level comment that replies to the post itself.
|
|
41258
|
+
*/
|
|
41259
|
+
parentId?: string;
|
|
41238
41260
|
/**
|
|
41239
41261
|
* Net score (upvotes minus downvotes) on the comment at fetch time.
|
|
41240
41262
|
*/
|
|
@@ -42282,7 +42304,7 @@ declare class RedditNamespace {
|
|
|
42282
42304
|
/**
|
|
42283
42305
|
* Reddit Post Comments
|
|
42284
42306
|
*
|
|
42285
|
-
* List the
|
|
42307
|
+
* List the comments on a Reddit post by URL (author, body, score, timestamp, parent comment). Replies carry the parentId of the comment they answer.
|
|
42286
42308
|
*
|
|
42287
42309
|
* Price: $0.0006 per request.
|
|
42288
42310
|
*
|
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
|
|
30404
|
+
* Price: $0 per request plus $0.011 per result (maximum $0.11).
|
|
30387
30405
|
*
|
|
30388
30406
|
* @example
|
|
30389
30407
|
* const res = await client.linkedin.companyEmployees({ company: "stripe", limit: 3 });
|
|
@@ -41235,6 +41253,10 @@ interface RedditPostCommentsComment {
|
|
|
41235
41253
|
* Reddit comment ID (base-36, without the t1_ prefix). Populated whenever the provider has data for the entity.
|
|
41236
41254
|
*/
|
|
41237
41255
|
id: string;
|
|
41256
|
+
/**
|
|
41257
|
+
* ID of the comment this one replies to (base-36, without the t1_ prefix). Empty for a top-level comment that replies to the post itself.
|
|
41258
|
+
*/
|
|
41259
|
+
parentId?: string;
|
|
41238
41260
|
/**
|
|
41239
41261
|
* Net score (upvotes minus downvotes) on the comment at fetch time.
|
|
41240
41262
|
*/
|
|
@@ -42282,7 +42304,7 @@ declare class RedditNamespace {
|
|
|
42282
42304
|
/**
|
|
42283
42305
|
* Reddit Post Comments
|
|
42284
42306
|
*
|
|
42285
|
-
* List the
|
|
42307
|
+
* List the comments on a Reddit post by URL (author, body, score, timestamp, parent comment). Replies carry the parentId of the comment they answer.
|
|
42286
42308
|
*
|
|
42287
42309
|
* Price: $0.0006 per request.
|
|
42288
42310
|
*
|
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
|
|
4213
|
+
* Price: $0 per request plus $0.011 per result (maximum $0.11).
|
|
4214
4214
|
*
|
|
4215
4215
|
* @example
|
|
4216
4216
|
* const res = await client.linkedin.companyEmployees({ company: "stripe", limit: 3 });
|
|
@@ -5200,7 +5200,7 @@ var RedditNamespace = class {
|
|
|
5200
5200
|
/**
|
|
5201
5201
|
* Reddit Post Comments
|
|
5202
5202
|
*
|
|
5203
|
-
* List the
|
|
5203
|
+
* List the comments on a Reddit post by URL (author, body, score, timestamp, parent comment). Replies carry the parentId of the comment they answer.
|
|
5204
5204
|
*
|
|
5205
5205
|
* Price: $0.0006 per request.
|
|
5206
5206
|
*
|