@getanyapi/sdk 0.61.2 → 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 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, claimUrl } = await agentSignup({ label: "my-agent" });
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; a human funds it by
195
- claiming it at `claimUrl`.
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;
@@ -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.00605 per request plus $0.00005 per result (maximum $0.0105).
4684
+ * Price: $0.0035 per request.
4687
4685
  *
4688
4686
  * @example
4689
4687
  * const res = await client.maps.reviews({ placeId: "ChIJN1t_tDeuEmsRUsoyG83frY4", 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
  *