@getanyapi/sdk 0.180.5 → 0.181.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
@@ -24927,7 +24927,7 @@ declare class GoogleNamespace {
24927
24927
  *
24928
24928
  * Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
24929
24929
  *
24930
- * Price: $0.024 per request.
24930
+ * Price: $0.0018 per request.
24931
24931
  *
24932
24932
  * @example
24933
24933
  * const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
@@ -40107,7 +40107,7 @@ declare class LinkedinNamespace {
40107
40107
  *
40108
40108
  * Post text and link only. No engagement counts, author details, media, or reaction breakdown - for those use linkedin.company_posts.
40109
40109
  *
40110
- * Price: $0.0012 per request.
40110
+ * Price: $0.00119 per request.
40111
40111
  *
40112
40112
  * @example
40113
40113
  * const res = await client.linkedin.companyPostsThin({ url: "https://www.linkedin.com/company/stripe" });
@@ -41316,6 +41316,10 @@ interface MapsSearchNearbyInput {
41316
41316
  * What you would type in the Google Maps search bar (e.g. coffee shop).
41317
41317
  */
41318
41318
  query: string;
41319
+ /**
41320
+ * Optional; omit it and routing is unchanged. Name the output fields this request must be able to return, for example `street` or `countryCode`, 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. A named field can still be absent on a place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
41321
+ */
41322
+ requireFields?: ("city" | "countryCode" | "domain" | "neighborhood" | "postalCode" | "state" | "street")[];
41319
41323
  /**
41320
41324
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources 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`.
41321
41325
  */
@@ -41489,7 +41493,7 @@ declare class MapsNamespace {
41489
41493
  /**
41490
41494
  * Google Maps Nearby Search
41491
41495
  *
41492
- * Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country. Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
41496
+ * Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country (name those fields in requireFields when they must be present). Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
41493
41497
  *
41494
41498
  * Price: $0.0013 per request.
41495
41499
  *
package/dist/index.d.ts CHANGED
@@ -24927,7 +24927,7 @@ declare class GoogleNamespace {
24927
24927
  *
24928
24928
  * Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
24929
24929
  *
24930
- * Price: $0.024 per request.
24930
+ * Price: $0.0018 per request.
24931
24931
  *
24932
24932
  * @example
24933
24933
  * const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
@@ -40107,7 +40107,7 @@ declare class LinkedinNamespace {
40107
40107
  *
40108
40108
  * Post text and link only. No engagement counts, author details, media, or reaction breakdown - for those use linkedin.company_posts.
40109
40109
  *
40110
- * Price: $0.0012 per request.
40110
+ * Price: $0.00119 per request.
40111
40111
  *
40112
40112
  * @example
40113
40113
  * const res = await client.linkedin.companyPostsThin({ url: "https://www.linkedin.com/company/stripe" });
@@ -41316,6 +41316,10 @@ interface MapsSearchNearbyInput {
41316
41316
  * What you would type in the Google Maps search bar (e.g. coffee shop).
41317
41317
  */
41318
41318
  query: string;
41319
+ /**
41320
+ * Optional; omit it and routing is unchanged. Name the output fields this request must be able to return, for example `street` or `countryCode`, 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. A named field can still be absent on a place that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
41321
+ */
41322
+ requireFields?: ("city" | "countryCode" | "domain" | "neighborhood" | "postalCode" | "state" | "street")[];
41319
41323
  /**
41320
41324
  * Optional and experimental: its behavior may change. We recommend leaving it out and letting automatic routing choose: routing serves the cheapest source, uses cheaper sources as they are added, and fails over to another source when one fails, so your requests are not tied to the uptime of one source. To control cost, set a price ceiling instead: on requests paid from your AnyAPI wallet, the `max_cost_usd` REST query parameter or MCP `run_api` argument skips any source that would charge more, and refuses the request with no charge if none is left. Avoid pinning a single source, especially with `allowFallbacks` false: when that source has an outage your requests fail while others are served. If you send it, list source ids from this endpoint's `lanes[].source.id` in /catalog or /apis; they are tried first in the order given, then the others, unless `allowFallbacks` is false. You are charged for the source that serves, plus any source tried before it that charged for its attempt, and never more than the most this endpoint can cost with the sources 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`.
41321
41325
  */
@@ -41489,7 +41493,7 @@ declare class MapsNamespace {
41489
41493
  /**
41490
41494
  * Google Maps Nearby Search
41491
41495
  *
41492
- * Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country. Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
41496
+ * Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country (name those fields in requireFields when they must be present). Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
41493
41497
  *
41494
41498
  * Price: $0.0013 per request.
41495
41499
  *
package/dist/index.js CHANGED
@@ -3758,7 +3758,7 @@ var GoogleNamespace = class {
3758
3758
  *
3759
3759
  * Run a Google web search and get up to 100 ranked organic results in one call, with true absolute positions rather than per-page numbering. One charge per call whatever the depth, which normally makes it cheaper than paging google.search past roughly 20 results; when the backup source has to answer, the call costs more, up to $0.024. It reads ten pages of Google to build the list, so a call can take up to about five minutes - use google.search when you want the first page back in a second.
3760
3760
  *
3761
- * Price: $0.024 per request.
3761
+ * Price: $0.0018 per request.
3762
3762
  *
3763
3763
  * @example
3764
3764
  * const res = await client.google.search100({ query: "best crm software", gl: "us", hl: "en" });
@@ -5123,7 +5123,7 @@ var LinkedinNamespace = class {
5123
5123
  *
5124
5124
  * Post text and link only. No engagement counts, author details, media, or reaction breakdown - for those use linkedin.company_posts.
5125
5125
  *
5126
- * Price: $0.0012 per request.
5126
+ * Price: $0.00119 per request.
5127
5127
  *
5128
5128
  * @example
5129
5129
  * const res = await client.linkedin.companyPostsThin({ url: "https://www.linkedin.com/company/stripe" });
@@ -5649,7 +5649,7 @@ var MapsNamespace = class {
5649
5649
  /**
5650
5650
  * Google Maps Nearby Search
5651
5651
  *
5652
- * Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country. Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
5652
+ * Search Google Maps around an exact latitude and longitude and get up to 20 normalized places per call, each with the address broken into street, city, state, postal code and country (name those fields in requireFields when they must be present). Use this when you have coordinates and want the map viewport centred on them; use maps.search when you only have a place name. Pass the returned nextCursor back as cursor for the next 20 places.
5653
5653
  *
5654
5654
  * Price: $0.0013 per request.
5655
5655
  *