@getanyapi/sdk 0.150.0 → 0.151.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
@@ -3086,7 +3086,7 @@ declare class AmazonNamespace {
3086
3086
  *
3087
3087
  * Pull customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
3088
3088
  *
3089
- * Price: $0.016 per request.
3089
+ * Price: $0.0013 per request.
3090
3090
  *
3091
3091
  * @example
3092
3092
  * const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
@@ -5131,7 +5131,7 @@ interface BookingSearchInput {
5131
5131
  */
5132
5132
  ignoreSources?: string[];
5133
5133
  /**
5134
- * Maximum number of hotels to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
5134
+ * Maximum number of hotels to return (1-20, default 20). Some sources bill per result returned, so a lower limit can cost less.
5135
5135
  * Range: minimum 1, maximum 20.
5136
5136
  */
5137
5137
  limit?: number;
@@ -5144,6 +5144,10 @@ interface BookingSearchInput {
5144
5144
  * Destination city to search for stays in (e.g. Paris).
5145
5145
  */
5146
5146
  query: string;
5147
+ /**
5148
+ * 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 `discountBadge`, 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 hotel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
5149
+ */
5150
+ requireFields?: "discountBadge"[];
5147
5151
  /**
5148
5152
  * Number of rooms to book (e.g. 1).
5149
5153
  * Range: minimum 1.
@@ -5163,9 +5167,9 @@ interface BookingSearchItem {
5163
5167
  country?: string;
5164
5168
  currency?: string;
5165
5169
  /**
5166
- * Promotion label Booking.com shows on the offer (e.g. Getaway Deal).
5170
+ * Promotion label Booking.com shows on the offer (e.g. Getaway Deal). Not every source returns it; name it in requireFields to be served by one that does.
5167
5171
  */
5168
- discountBadge?: string;
5172
+ discountBadge?: string | null;
5169
5173
  /**
5170
5174
  * Distance from the city center as Booking.com phrases it.
5171
5175
  */
@@ -5267,7 +5271,7 @@ declare class BookingNamespace {
5267
5271
  *
5268
5272
  * Search Booking.com stays by destination and dates with optional guest and room occupancy and get hotel results (name, price, review score, location) as normalized JSON.
5269
5273
  *
5270
- * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
5274
+ * Price: $0.0008 per request.
5271
5275
  *
5272
5276
  * @example
5273
5277
  * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-14", checkOut: "2026-12-16", limit: 3 });
@@ -39636,7 +39640,7 @@ declare class LinkedinNamespace {
39636
39640
  *
39637
39641
  * Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
39638
39642
  *
39639
- * Price: $0.004 per request.
39643
+ * Price: $0.005 per request.
39640
39644
  *
39641
39645
  * @example
39642
39646
  * const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
@@ -68683,7 +68687,7 @@ declare class TiktokNamespace {
68683
68687
  *
68684
68688
  * Find the public contact email behind a TikTok creator's profile: the address written into the bio plus any published on the site the profile links to, each labelled with where it came from. Returns the creator's profile stats and linked social accounts alongside.
68685
68689
  *
68686
- * Price: $0.00352 per request plus $0 per result (maximum $0.00352).
68690
+ * Price: $0.00088 per request plus $0 per result (maximum $0.00088).
68687
68691
  *
68688
68692
  * @example
68689
68693
  * const res = await client.tiktok.profileContact({ handle: "gordonramsayofficial" });
package/dist/index.d.ts CHANGED
@@ -3086,7 +3086,7 @@ declare class AmazonNamespace {
3086
3086
  *
3087
3087
  * Pull customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
3088
3088
  *
3089
- * Price: $0.016 per request.
3089
+ * Price: $0.0013 per request.
3090
3090
  *
3091
3091
  * @example
3092
3092
  * const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
@@ -5131,7 +5131,7 @@ interface BookingSearchInput {
5131
5131
  */
5132
5132
  ignoreSources?: string[];
5133
5133
  /**
5134
- * Maximum number of hotels to return (1-20, default 20). You are billed per result returned, so a lower limit costs less.
5134
+ * Maximum number of hotels to return (1-20, default 20). Some sources bill per result returned, so a lower limit can cost less.
5135
5135
  * Range: minimum 1, maximum 20.
5136
5136
  */
5137
5137
  limit?: number;
@@ -5144,6 +5144,10 @@ interface BookingSearchInput {
5144
5144
  * Destination city to search for stays in (e.g. Paris).
5145
5145
  */
5146
5146
  query: string;
5147
+ /**
5148
+ * 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 `discountBadge`, 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 hotel that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
5149
+ */
5150
+ requireFields?: "discountBadge"[];
5147
5151
  /**
5148
5152
  * Number of rooms to book (e.g. 1).
5149
5153
  * Range: minimum 1.
@@ -5163,9 +5167,9 @@ interface BookingSearchItem {
5163
5167
  country?: string;
5164
5168
  currency?: string;
5165
5169
  /**
5166
- * Promotion label Booking.com shows on the offer (e.g. Getaway Deal).
5170
+ * Promotion label Booking.com shows on the offer (e.g. Getaway Deal). Not every source returns it; name it in requireFields to be served by one that does.
5167
5171
  */
5168
- discountBadge?: string;
5172
+ discountBadge?: string | null;
5169
5173
  /**
5170
5174
  * Distance from the city center as Booking.com phrases it.
5171
5175
  */
@@ -5267,7 +5271,7 @@ declare class BookingNamespace {
5267
5271
  *
5268
5272
  * Search Booking.com stays by destination and dates with optional guest and room occupancy and get hotel results (name, price, review score, location) as normalized JSON.
5269
5273
  *
5270
- * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
5274
+ * Price: $0.0008 per request.
5271
5275
  *
5272
5276
  * @example
5273
5277
  * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-14", checkOut: "2026-12-16", limit: 3 });
@@ -39636,7 +39640,7 @@ declare class LinkedinNamespace {
39636
39640
  *
39637
39641
  * Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
39638
39642
  *
39639
- * Price: $0.004 per request.
39643
+ * Price: $0.005 per request.
39640
39644
  *
39641
39645
  * @example
39642
39646
  * const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
@@ -68683,7 +68687,7 @@ declare class TiktokNamespace {
68683
68687
  *
68684
68688
  * Find the public contact email behind a TikTok creator's profile: the address written into the bio plus any published on the site the profile links to, each labelled with where it came from. Returns the creator's profile stats and linked social accounts alongside.
68685
68689
  *
68686
- * Price: $0.00352 per request plus $0 per result (maximum $0.00352).
68690
+ * Price: $0.00088 per request plus $0 per result (maximum $0.00088).
68687
68691
  *
68688
68692
  * @example
68689
68693
  * const res = await client.tiktok.profileContact({ handle: "gordonramsayofficial" });
package/dist/index.js CHANGED
@@ -1278,7 +1278,7 @@ var AmazonNamespace = class {
1278
1278
  *
1279
1279
  * Pull customer reviews for any Amazon product by ASIN or URL: rating, title, text, date, and verified-purchase badge.
1280
1280
  *
1281
- * Price: $0.016 per request.
1281
+ * Price: $0.0013 per request.
1282
1282
  *
1283
1283
  * @example
1284
1284
  * const res = await client.amazon.reviews({ product: "B07PXGQC1Q", limit: 3 });
@@ -1563,7 +1563,7 @@ var BookingNamespace = class {
1563
1563
  *
1564
1564
  * Search Booking.com stays by destination and dates with optional guest and room occupancy and get hotel results (name, price, review score, location) as normalized JSON.
1565
1565
  *
1566
- * Price: $0.0022 per request plus $0.00495 per result (maximum $0.102).
1566
+ * Price: $0.0008 per request.
1567
1567
  *
1568
1568
  * @example
1569
1569
  * const res = await client.booking.search({ query: "New York", adults: 2, checkIn: "2026-12-14", checkOut: "2026-12-16", limit: 3 });
@@ -5417,7 +5417,7 @@ var LinkedinNamespace = class {
5417
5417
  *
5418
5418
  * Search public LinkedIn posts with rich author, engagement, attachment, and poll details.
5419
5419
  *
5420
- * Price: $0.004 per request.
5420
+ * Price: $0.005 per request.
5421
5421
  *
5422
5422
  * @example
5423
5423
  * const res = await client.linkedin.searchPostsFull({ query: "artificial intelligence", datePosted: "last-week", limit: 10, sort: "relevance" });
@@ -7996,7 +7996,7 @@ var TiktokNamespace = class {
7996
7996
  *
7997
7997
  * Find the public contact email behind a TikTok creator's profile: the address written into the bio plus any published on the site the profile links to, each labelled with where it came from. Returns the creator's profile stats and linked social accounts alongside.
7998
7998
  *
7999
- * Price: $0.00352 per request plus $0 per result (maximum $0.00352).
7999
+ * Price: $0.00088 per request plus $0 per result (maximum $0.00088).
8000
8000
  *
8001
8001
  * @example
8002
8002
  * const res = await client.tiktok.profileContact({ handle: "gordonramsayofficial" });