@getanyapi/sdk 0.130.4 → 0.131.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 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -8198,7 +8198,7 @@ interface ChatgptSearchInput {
|
|
|
8198
8198
|
/**
|
|
8199
8199
|
* 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 `cited` or `ads`, 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 result that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
8200
8200
|
*/
|
|
8201
|
-
requireFields?: ("address" | "ads" | "advertiserName" | "advertiserUrl" | "answerPosition" | "cited" | "currency" | "description" | "domain" | "entities" | "model" | "searchQueries" | "searchResults" | "snippet" | "webSearchTriggered")[];
|
|
8201
|
+
requireFields?: ("address" | "ads" | "advertiserName" | "advertiserUrl" | "answerPosition" | "category" | "cited" | "createdUtc" | "currency" | "description" | "domain" | "entities" | "model" | "name" | "phone" | "places" | "position" | "reviewCount" | "searchQueries" | "searchResults" | "snippet" | "webSearchTriggered" | "websiteUrl")[];
|
|
8202
8202
|
/**
|
|
8203
8203
|
* Serve only from a source that can return places shown with the answer. Leaving this off still returns places whenever the source that answered can. Turning it on selects the single source that guarantees them, which costs more and has nothing to fall back to if it is unavailable.
|
|
8204
8204
|
* Default: false.
|
|
@@ -45891,6 +45891,10 @@ interface PerplexitySearchInput {
|
|
|
45891
45891
|
* Question or research prompt for Perplexity to answer using web search.
|
|
45892
45892
|
*/
|
|
45893
45893
|
prompt: string;
|
|
45894
|
+
/**
|
|
45895
|
+
* 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`, 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 result that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
45896
|
+
*/
|
|
45897
|
+
requireFields?: "createdUtc"[];
|
|
45894
45898
|
/**
|
|
45895
45899
|
* 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`.
|
|
45896
45900
|
*/
|
|
@@ -52444,7 +52448,7 @@ declare class RedditNamespace {
|
|
|
52444
52448
|
*
|
|
52445
52449
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
52446
52450
|
*
|
|
52447
|
-
* Price: $0.
|
|
52451
|
+
* Price: $0.0008 per request.
|
|
52448
52452
|
*
|
|
52449
52453
|
* @example
|
|
52450
52454
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
package/dist/index.d.ts
CHANGED
|
@@ -8198,7 +8198,7 @@ interface ChatgptSearchInput {
|
|
|
8198
8198
|
/**
|
|
8199
8199
|
* 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 `cited` or `ads`, 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 result that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
8200
8200
|
*/
|
|
8201
|
-
requireFields?: ("address" | "ads" | "advertiserName" | "advertiserUrl" | "answerPosition" | "cited" | "currency" | "description" | "domain" | "entities" | "model" | "searchQueries" | "searchResults" | "snippet" | "webSearchTriggered")[];
|
|
8201
|
+
requireFields?: ("address" | "ads" | "advertiserName" | "advertiserUrl" | "answerPosition" | "category" | "cited" | "createdUtc" | "currency" | "description" | "domain" | "entities" | "model" | "name" | "phone" | "places" | "position" | "reviewCount" | "searchQueries" | "searchResults" | "snippet" | "webSearchTriggered" | "websiteUrl")[];
|
|
8202
8202
|
/**
|
|
8203
8203
|
* Serve only from a source that can return places shown with the answer. Leaving this off still returns places whenever the source that answered can. Turning it on selects the single source that guarantees them, which costs more and has nothing to fall back to if it is unavailable.
|
|
8204
8204
|
* Default: false.
|
|
@@ -45891,6 +45891,10 @@ interface PerplexitySearchInput {
|
|
|
45891
45891
|
* Question or research prompt for Perplexity to answer using web search.
|
|
45892
45892
|
*/
|
|
45893
45893
|
prompt: string;
|
|
45894
|
+
/**
|
|
45895
|
+
* 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`, 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 result that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
|
|
45896
|
+
*/
|
|
45897
|
+
requireFields?: "createdUtc"[];
|
|
45894
45898
|
/**
|
|
45895
45899
|
* 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`.
|
|
45896
45900
|
*/
|
|
@@ -52444,7 +52448,7 @@ declare class RedditNamespace {
|
|
|
52444
52448
|
*
|
|
52445
52449
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
52446
52450
|
*
|
|
52447
|
-
* Price: $0.
|
|
52451
|
+
* Price: $0.0008 per request.
|
|
52448
52452
|
*
|
|
52449
52453
|
* @example
|
|
52450
52454
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|
package/dist/index.js
CHANGED
|
@@ -6131,7 +6131,7 @@ var RedditNamespace = class {
|
|
|
6131
6131
|
*
|
|
6132
6132
|
* Fetch posts from a subreddit listing (hot, new, or top).
|
|
6133
6133
|
*
|
|
6134
|
-
* Price: $0.
|
|
6134
|
+
* Price: $0.0008 per request.
|
|
6135
6135
|
*
|
|
6136
6136
|
* @example
|
|
6137
6137
|
* const res = await client.reddit.subredditPosts({ subreddit: "programming", limit: 5 });
|