@getanyapi/sdk 0.61.1 → 0.63.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/README.md +4 -3
- package/dist/index.cjs +18 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +119 -10
- package/dist/index.d.ts +119 -10
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -187,12 +187,13 @@ Bootstrap a key with no account (for autonomous agents):
|
|
|
187
187
|
```ts
|
|
188
188
|
import { agentSignup } from "@getanyapi/sdk";
|
|
189
189
|
|
|
190
|
-
const { secret, capUsd
|
|
190
|
+
const { secret, capUsd } = await agentSignup({ label: "my-agent" });
|
|
191
191
|
const client = new AnyAPI({ apiKey: secret });
|
|
192
192
|
```
|
|
193
193
|
|
|
194
|
-
The key ships with a small starter balance and a per-key spend cap;
|
|
195
|
-
|
|
194
|
+
The key ships with a small starter balance and a per-key spend cap; to go past the cap, a human
|
|
195
|
+
authorizes an AnyAPI wallet over OAuth, as described in
|
|
196
|
+
[agent self-signup](https://getanyapi.com/docs/agent-self-signup).
|
|
196
197
|
|
|
197
198
|
## Docs
|
|
198
199
|
|
package/dist/index.cjs
CHANGED
|
@@ -306,9 +306,7 @@ async function agentSignup(options = {}) {
|
|
|
306
306
|
const parsed = JSON.parse(text);
|
|
307
307
|
return {
|
|
308
308
|
secret: parsed.secret,
|
|
309
|
-
capUsd: parsed.capUsd
|
|
310
|
-
claimToken: parsed.claimToken,
|
|
311
|
-
claimUrl: parsed.claimUrl
|
|
309
|
+
capUsd: parsed.capUsd
|
|
312
310
|
};
|
|
313
311
|
}
|
|
314
312
|
|
|
@@ -1052,7 +1050,7 @@ function isRequestSnapshot(value) {
|
|
|
1052
1050
|
}
|
|
1053
1051
|
|
|
1054
1052
|
// src/core/types.ts
|
|
1055
|
-
var NOT_FOUND_REASONS = ["not_found", "suspended"];
|
|
1053
|
+
var NOT_FOUND_REASONS = ["not_found", "suspended", "unavailable"];
|
|
1056
1054
|
var OUTPUT_NOT_RETAINED = "the run output was not retained: this response is an idempotent replay whose stored payload has expired or was too large to store, so only the run metadata came back. Re-run the request without the idempotency key (or with a fresh one) to fetch the data again.";
|
|
1057
1055
|
function unwrap(result) {
|
|
1058
1056
|
const output = result.output;
|
|
@@ -1465,7 +1463,7 @@ var AppstoreNamespace = class {
|
|
|
1465
1463
|
*
|
|
1466
1464
|
* Get App Store reviews for any iOS app by app ID, in any storefront country: ratings, titles, and review text.
|
|
1467
1465
|
*
|
|
1468
|
-
* Price: $0 per request
|
|
1466
|
+
* Price: $0.0009 per request.
|
|
1469
1467
|
*
|
|
1470
1468
|
* @example
|
|
1471
1469
|
* const res = await client.appstore.reviews({ appId: "389801252", country: "us", limit: 3 });
|
|
@@ -4683,7 +4681,7 @@ var MapsNamespace = class {
|
|
|
4683
4681
|
*
|
|
4684
4682
|
* Fetch up to 100 Google Maps reviews for a place by place ID, sorted the way you need, in one normalized response.
|
|
4685
4683
|
*
|
|
4686
|
-
* Price: $0.
|
|
4684
|
+
* Price: $0.0035 per request.
|
|
4687
4685
|
*
|
|
4688
4686
|
* @example
|
|
4689
4687
|
* const res = await client.maps.reviews({ placeId: "ChIJN1t_tDeuEmsRUsoyG83frY4", limit: 3 });
|
|
@@ -5187,7 +5185,7 @@ var PlaystoreNamespace = class {
|
|
|
5187
5185
|
*
|
|
5188
5186
|
* Fetch Google Play reviews for any Android app by package name or store URL: ratings, review text, dates, and helpfulness votes.
|
|
5189
5187
|
*
|
|
5190
|
-
* Price: $0 per request
|
|
5188
|
+
* Price: $0.0009 per request.
|
|
5191
5189
|
*
|
|
5192
5190
|
* @example
|
|
5193
5191
|
* const res = await client.playstore.reviews({ appId: "com.whatsapp", limit: 3 });
|
|
@@ -8437,6 +8435,19 @@ var ZillowNamespace = class {
|
|
|
8437
8435
|
this._core = _core;
|
|
8438
8436
|
}
|
|
8439
8437
|
_core;
|
|
8438
|
+
/**
|
|
8439
|
+
* Zillow Agent
|
|
8440
|
+
*
|
|
8441
|
+
* Fetch one Zillow real estate agent's profile by URL: name, phone, email, brokerage, rating, review count, sales, and service areas.
|
|
8442
|
+
*
|
|
8443
|
+
* Price: $0.0005 per request.
|
|
8444
|
+
*
|
|
8445
|
+
* @example
|
|
8446
|
+
* const res = await client.zillow.agent({ url: "https://www.zillow.com/profile/gregorycarlsonATX/" });
|
|
8447
|
+
*/
|
|
8448
|
+
agent(input, options) {
|
|
8449
|
+
return this._core.run("zillow.agent", input, options);
|
|
8450
|
+
}
|
|
8440
8451
|
/**
|
|
8441
8452
|
* Zillow Property
|
|
8442
8453
|
*
|