@getanyapi/sdk 0.65.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.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
- totalResults: number;
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
- views: number;
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). You are billed per result returned, so a lower limit costs less.
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.00006 per request plus $0.0033 per result (maximum $0.0661).
16826
+ * Price: $0.03 per request.
16809
16827
  *
16810
16828
  * @example
16811
16829
  * const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
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
- totalResults: number;
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
- views: number;
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). You are billed per result returned, so a lower limit costs less.
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.00006 per request plus $0.0033 per result (maximum $0.0661).
16826
+ * Price: $0.03 per request.
16809
16827
  *
16810
16828
  * @example
16811
16829
  * const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });
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.00006 per request plus $0.0033 per result (maximum $0.0661).
2706
+ * Price: $0.03 per request.
2707
2707
  *
2708
2708
  * @example
2709
2709
  * const res = await client.facebook.searchPosts({ query: "nike", limit: 3 });