@getanyapi/sdk 0.168.1 → 0.169.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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -16928,7 +16928,7 @@ interface FacebookAdTranscriptInput {
|
|
|
16928
16928
|
*/
|
|
16929
16929
|
allowFallbacks?: boolean;
|
|
16930
16930
|
/**
|
|
16931
|
-
* Meta Ad Library ad ID (e.g. "
|
|
16931
|
+
* Meta Ad Library ad ID (e.g. "3152243841584775"). Provide either id or url.
|
|
16932
16932
|
*/
|
|
16933
16933
|
id?: string;
|
|
16934
16934
|
/**
|
|
@@ -16945,7 +16945,7 @@ interface FacebookAdTranscriptInput {
|
|
|
16945
16945
|
*/
|
|
16946
16946
|
source?: string[];
|
|
16947
16947
|
/**
|
|
16948
|
-
* Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=
|
|
16948
|
+
* Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=3152243841584775"). Provide either id or url.
|
|
16949
16949
|
*/
|
|
16950
16950
|
url?: string;
|
|
16951
16951
|
}
|
|
@@ -19934,7 +19934,7 @@ declare class FacebookNamespace {
|
|
|
19934
19934
|
* Price: $0.0012 per request.
|
|
19935
19935
|
*
|
|
19936
19936
|
* @example
|
|
19937
|
-
* const res = await client.facebook.adTranscript({ id: "
|
|
19937
|
+
* const res = await client.facebook.adTranscript({ id: "3152243841584775" });
|
|
19938
19938
|
*/
|
|
19939
19939
|
adTranscript(input: FacebookAdTranscriptInput, options?: RequestOptions): Promise<RunResult<FacebookAdTranscriptData>>;
|
|
19940
19940
|
/**
|
|
@@ -70110,7 +70110,7 @@ interface TripadvisorReviewsInput {
|
|
|
70110
70110
|
*/
|
|
70111
70111
|
ignoreSources?: string[];
|
|
70112
70112
|
/**
|
|
70113
|
-
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
70113
|
+
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews filtered this way are never translated; without the filter, see `language` in the result. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
70114
70114
|
*/
|
|
70115
70115
|
languages?: string[];
|
|
70116
70116
|
/**
|
|
@@ -77373,9 +77373,9 @@ interface YoutubeVideoTranscriptFullInput {
|
|
|
77373
77373
|
*/
|
|
77374
77374
|
preferLatencyUnderMs?: number;
|
|
77375
77375
|
/**
|
|
77376
|
-
* 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 `
|
|
77376
|
+
* 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 `likes`, 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 transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
77377
77377
|
*/
|
|
77378
|
-
requireFields?: ("
|
|
77378
|
+
requireFields?: ("category" | "createdUtc" | "likes")[];
|
|
77379
77379
|
/**
|
|
77380
77380
|
* 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`.
|
|
77381
77381
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -16928,7 +16928,7 @@ interface FacebookAdTranscriptInput {
|
|
|
16928
16928
|
*/
|
|
16929
16929
|
allowFallbacks?: boolean;
|
|
16930
16930
|
/**
|
|
16931
|
-
* Meta Ad Library ad ID (e.g. "
|
|
16931
|
+
* Meta Ad Library ad ID (e.g. "3152243841584775"). Provide either id or url.
|
|
16932
16932
|
*/
|
|
16933
16933
|
id?: string;
|
|
16934
16934
|
/**
|
|
@@ -16945,7 +16945,7 @@ interface FacebookAdTranscriptInput {
|
|
|
16945
16945
|
*/
|
|
16946
16946
|
source?: string[];
|
|
16947
16947
|
/**
|
|
16948
|
-
* Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=
|
|
16948
|
+
* Meta Ad Library ad URL (e.g. "https://www.facebook.com/ads/library?id=3152243841584775"). Provide either id or url.
|
|
16949
16949
|
*/
|
|
16950
16950
|
url?: string;
|
|
16951
16951
|
}
|
|
@@ -19934,7 +19934,7 @@ declare class FacebookNamespace {
|
|
|
19934
19934
|
* Price: $0.0012 per request.
|
|
19935
19935
|
*
|
|
19936
19936
|
* @example
|
|
19937
|
-
* const res = await client.facebook.adTranscript({ id: "
|
|
19937
|
+
* const res = await client.facebook.adTranscript({ id: "3152243841584775" });
|
|
19938
19938
|
*/
|
|
19939
19939
|
adTranscript(input: FacebookAdTranscriptInput, options?: RequestOptions): Promise<RunResult<FacebookAdTranscriptData>>;
|
|
19940
19940
|
/**
|
|
@@ -70110,7 +70110,7 @@ interface TripadvisorReviewsInput {
|
|
|
70110
70110
|
*/
|
|
70111
70111
|
ignoreSources?: string[];
|
|
70112
70112
|
/**
|
|
70113
|
-
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews are never translated. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
70113
|
+
* Only return reviews originally written in these ISO 639-1 languages (e.g. ["en", "es"]); omit for all languages. Reviews filtered this way are never translated; without the filter, see `language` in the result. Each page is filtered after it is fetched, so a page can hold fewer than `limit` reviews, or none, while nextCursor still leads to more.
|
|
70114
70114
|
*/
|
|
70115
70115
|
languages?: string[];
|
|
70116
70116
|
/**
|
|
@@ -77373,9 +77373,9 @@ interface YoutubeVideoTranscriptFullInput {
|
|
|
77373
77373
|
*/
|
|
77374
77374
|
preferLatencyUnderMs?: number;
|
|
77375
77375
|
/**
|
|
77376
|
-
* 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 `
|
|
77376
|
+
* 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 `likes`, 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 transcript that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
77377
77377
|
*/
|
|
77378
|
-
requireFields?: ("
|
|
77378
|
+
requireFields?: ("category" | "createdUtc" | "likes")[];
|
|
77379
77379
|
/**
|
|
77380
77380
|
* 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`.
|
|
77381
77381
|
*/
|
package/dist/index.js
CHANGED
|
@@ -2563,7 +2563,7 @@ var FacebookNamespace = class {
|
|
|
2563
2563
|
* Price: $0.0012 per request.
|
|
2564
2564
|
*
|
|
2565
2565
|
* @example
|
|
2566
|
-
* const res = await client.facebook.adTranscript({ id: "
|
|
2566
|
+
* const res = await client.facebook.adTranscript({ id: "3152243841584775" });
|
|
2567
2567
|
*/
|
|
2568
2568
|
adTranscript(input, options) {
|
|
2569
2569
|
return this._core.run("facebook.ad_transcript", input, options);
|