scrapebadger 0.43.0 → 0.44.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 +153 -5
- package/dist/index.d.ts +153 -5
- package/dist/index.js +28 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from 'events';
|
|
|
3
3
|
import WebSocket from 'ws';
|
|
4
4
|
|
|
5
5
|
// src/internal/version.ts
|
|
6
|
-
var SDK_VERSION = "0.
|
|
6
|
+
var SDK_VERSION = "0.44.0";
|
|
7
7
|
|
|
8
8
|
// src/internal/exceptions.ts
|
|
9
9
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -7891,6 +7891,27 @@ var PropertiesClient2 = class {
|
|
|
7891
7891
|
async getProperty(zpid) {
|
|
7892
7892
|
return this.client.request(`/v1/zillow/property/${zpid}`);
|
|
7893
7893
|
}
|
|
7894
|
+
/**
|
|
7895
|
+
* Get a Zillow multifamily building (apartment community) by its URL.
|
|
7896
|
+
*
|
|
7897
|
+
* Zillow serves multi-unit rentals on `/apartments/...` and `/b/...` pages,
|
|
7898
|
+
* which {@link getProperty} cannot read. Pass the `detail_url` of a search
|
|
7899
|
+
* result whose `home_type` is `"BUILDING"`.
|
|
7900
|
+
*
|
|
7901
|
+
* Returns floor plans and every available unit with rent, base rent,
|
|
7902
|
+
* required monthly fees, sqft, beds/baths and move-in date, plus amenities,
|
|
7903
|
+
* unit features, policies, special offers, office hours, pet policy,
|
|
7904
|
+
* schools, photos and walk/transit/bike scores.
|
|
7905
|
+
*
|
|
7906
|
+
* @param url - Full Zillow building URL.
|
|
7907
|
+
* @returns Building detail wrapped in `{ building }`.
|
|
7908
|
+
* @throws NotFoundError - If the building doesn't exist.
|
|
7909
|
+
*/
|
|
7910
|
+
async getBuilding(url) {
|
|
7911
|
+
return this.client.request("/v1/zillow/building", {
|
|
7912
|
+
params: { url }
|
|
7913
|
+
});
|
|
7914
|
+
}
|
|
7894
7915
|
};
|
|
7895
7916
|
|
|
7896
7917
|
// src/zillow/agent.ts
|
|
@@ -8693,9 +8714,12 @@ var AskClient2 = class {
|
|
|
8693
8714
|
* @param params.prompt - The prompt to send (max 4096 characters).
|
|
8694
8715
|
* @param params.country - ISO-3166 alpha-2 egress country (default: "US").
|
|
8695
8716
|
* @param params.web_search - "auto", "force", or "off" (default: "auto").
|
|
8696
|
-
* @param params.image_url -
|
|
8697
|
-
*
|
|
8698
|
-
*
|
|
8717
|
+
* @param params.image_url - NOT SUPPORTED; returns 422 and is never billed.
|
|
8718
|
+
* Signed-out Gemini accepts the upload and then refuses to answer about it
|
|
8719
|
+
* (PERMISSION_DENIED from its own generate call), so the API fails fast
|
|
8720
|
+
* rather than charging for a request that cannot succeed. Use
|
|
8721
|
+
* `chatgpt.ask` for image input. Gemini will not generate one either —
|
|
8722
|
+
* anonymous gemini.google.com requires a login for that.
|
|
8699
8723
|
* @returns The answer, its citations, and the full retrieved search set.
|
|
8700
8724
|
*
|
|
8701
8725
|
* @example
|