@getanyapi/sdk 0.142.6 → 0.143.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.d.cts CHANGED
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
7761
7761
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
7762
7762
  *
7763
7763
  * @example
7764
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-28", checkOut: "2026-11-30", limit: 3 });
7764
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-29", checkOut: "2026-12-01", limit: 3 });
7765
7765
  */
7766
7766
  search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
7767
7767
  }
@@ -19889,6 +19889,10 @@ interface FacebookPageContactInput {
19889
19889
  * Range: minimum 1.
19890
19890
  */
19891
19891
  preferLatencyUnderMs?: number;
19892
+ /**
19893
+ * 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 `createdUtc` or `adStatus`, 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 page that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
19894
+ */
19895
+ requireFields?: ("adStatus" | "createdUtc" | "followers")[];
19892
19896
  /**
19893
19897
  * 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`.
19894
19898
  */
@@ -19913,7 +19917,7 @@ interface FacebookPageContactItem {
19913
19917
  */
19914
19918
  email?: string;
19915
19919
  /**
19916
- * The page's follower count.
19920
+ * The page's follower count. Some sources read it from Facebook's rounded label, so "474K followers" comes back as 474000; name it in requireFields for the exact count.
19917
19921
  */
19918
19922
  followers?: number;
19919
19923
  /**
@@ -25437,7 +25441,7 @@ declare class GoogleNamespace {
25437
25441
  *
25438
25442
  * Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
25439
25443
  *
25440
- * Price: $0.0015 per request.
25444
+ * Price: $0.0018 per request.
25441
25445
  *
25442
25446
  * @example
25443
25447
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -26499,7 +26503,7 @@ declare class GoogleHotelsNamespace {
26499
26503
  * Price: $0.0015 per request.
26500
26504
  *
26501
26505
  * @example
26502
- * const res = await client.googleHotels.details({ checkIn: "2026-11-28", checkOut: "2026-11-30", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26506
+ * const res = await client.googleHotels.details({ checkIn: "2026-11-29", checkOut: "2026-12-01", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26503
26507
  */
26504
26508
  details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
26505
26509
  /**
@@ -26510,7 +26514,7 @@ declare class GoogleHotelsNamespace {
26510
26514
  * Price: $0.0015 per request.
26511
26515
  *
26512
26516
  * @example
26513
- * const res = await client.googleHotels.search({ checkIn: "2026-11-28", checkOut: "2026-11-30", country: "us", query: "hotels near times square new york" });
26517
+ * const res = await client.googleHotels.search({ checkIn: "2026-11-29", checkOut: "2026-12-01", country: "us", query: "hotels near times square new york" });
26514
26518
  */
26515
26519
  search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
26516
26520
  }
package/dist/index.d.ts CHANGED
@@ -7761,7 +7761,7 @@ declare class BookingNamespace {
7761
7761
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
7762
7762
  *
7763
7763
  * @example
7764
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-28", checkOut: "2026-11-30", limit: 3 });
7764
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-29", checkOut: "2026-12-01", limit: 3 });
7765
7765
  */
7766
7766
  search(input: BookingSearchInput, options?: RequestOptions): Promise<RunResult<BookingSearchData>>;
7767
7767
  }
@@ -19889,6 +19889,10 @@ interface FacebookPageContactInput {
19889
19889
  * Range: minimum 1.
19890
19890
  */
19891
19891
  preferLatencyUnderMs?: number;
19892
+ /**
19893
+ * 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 `createdUtc` or `adStatus`, 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 page that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
19894
+ */
19895
+ requireFields?: ("adStatus" | "createdUtc" | "followers")[];
19892
19896
  /**
19893
19897
  * 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`.
19894
19898
  */
@@ -19913,7 +19917,7 @@ interface FacebookPageContactItem {
19913
19917
  */
19914
19918
  email?: string;
19915
19919
  /**
19916
- * The page's follower count.
19920
+ * The page's follower count. Some sources read it from Facebook's rounded label, so "474K followers" comes back as 474000; name it in requireFields for the exact count.
19917
19921
  */
19918
19922
  followers?: number;
19919
19923
  /**
@@ -25437,7 +25441,7 @@ declare class GoogleNamespace {
25437
25441
  *
25438
25442
  * Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
25439
25443
  *
25440
- * Price: $0.0015 per request.
25444
+ * Price: $0.0018 per request.
25441
25445
  *
25442
25446
  * @example
25443
25447
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -26499,7 +26503,7 @@ declare class GoogleHotelsNamespace {
26499
26503
  * Price: $0.0015 per request.
26500
26504
  *
26501
26505
  * @example
26502
- * const res = await client.googleHotels.details({ checkIn: "2026-11-28", checkOut: "2026-11-30", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26506
+ * const res = await client.googleHotels.details({ checkIn: "2026-11-29", checkOut: "2026-12-01", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
26503
26507
  */
26504
26508
  details(input: GoogleHotelsDetailsInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsDetailsData>>;
26505
26509
  /**
@@ -26510,7 +26514,7 @@ declare class GoogleHotelsNamespace {
26510
26514
  * Price: $0.0015 per request.
26511
26515
  *
26512
26516
  * @example
26513
- * const res = await client.googleHotels.search({ checkIn: "2026-11-28", checkOut: "2026-11-30", country: "us", query: "hotels near times square new york" });
26517
+ * const res = await client.googleHotels.search({ checkIn: "2026-11-29", checkOut: "2026-12-01", country: "us", query: "hotels near times square new york" });
26514
26518
  */
26515
26519
  search(input: GoogleHotelsSearchInput, options?: RequestOptions): Promise<RunResult<GoogleHotelsSearchData>>;
26516
26520
  }
package/dist/index.js CHANGED
@@ -1671,7 +1671,7 @@ var BookingNamespace = class {
1671
1671
  * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
1672
1672
  *
1673
1673
  * @example
1674
- * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-28", checkOut: "2026-11-30", limit: 3 });
1674
+ * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-11-29", checkOut: "2026-12-01", limit: 3 });
1675
1675
  */
1676
1676
  search(input, options) {
1677
1677
  return this._core.run("booking.search", input, options);
@@ -3491,7 +3491,7 @@ var GoogleNamespace = class {
3491
3491
  *
3492
3492
  * Ask Google Search a prompt and receive the AI Overview it generated for that scrape, with every source Google listed. Google regenerates the overview per search, so the same prompt can return different wording and a different source list.
3493
3493
  *
3494
- * Price: $0.0015 per request.
3494
+ * Price: $0.0018 per request.
3495
3495
  *
3496
3496
  * @example
3497
3497
  * const res = await client.google.aiOverview({ prompt: "How does photosynthesis work?" });
@@ -3826,7 +3826,7 @@ var GoogleHotelsNamespace = class {
3826
3826
  * Price: $0.0015 per request.
3827
3827
  *
3828
3828
  * @example
3829
- * const res = await client.googleHotels.details({ checkIn: "2026-11-28", checkOut: "2026-11-30", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3829
+ * const res = await client.googleHotels.details({ checkIn: "2026-11-29", checkOut: "2026-12-01", country: "us", propertyToken: "ChcImaG28Zbom8uuARoKL20vMDNncTd2NBAB" });
3830
3830
  */
3831
3831
  details(input, options) {
3832
3832
  return this._core.run("google_hotels.details", input, options);
@@ -3839,7 +3839,7 @@ var GoogleHotelsNamespace = class {
3839
3839
  * Price: $0.0015 per request.
3840
3840
  *
3841
3841
  * @example
3842
- * const res = await client.googleHotels.search({ checkIn: "2026-11-28", checkOut: "2026-11-30", country: "us", query: "hotels near times square new york" });
3842
+ * const res = await client.googleHotels.search({ checkIn: "2026-11-29", checkOut: "2026-12-01", country: "us", query: "hotels near times square new york" });
3843
3843
  */
3844
3844
  search(input, options) {
3845
3845
  return this._core.run("google_hotels.search", input, options);