scrapebadger 0.35.0 → 0.37.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-ZD3sVCjc.d.cts → index-Dz6kHfFt.d.cts} +17 -0
- package/dist/{index-ZD3sVCjc.d.ts → index-Dz6kHfFt.d.ts} +17 -0
- package/dist/index.d.cts +374 -3
- package/dist/index.d.ts +374 -3
- package/dist/index.js +783 -403
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +783 -403
- package/dist/index.mjs.map +1 -1
- package/dist/twitter/index.d.cts +1 -1
- package/dist/twitter/index.d.ts +1 -1
- package/dist/twitter/index.js +56 -0
- package/dist/twitter/index.js.map +1 -1
- package/dist/twitter/index.mjs +56 -0
- package/dist/twitter/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
9
9
|
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
10
10
|
|
|
11
11
|
// src/internal/version.ts
|
|
12
|
-
var SDK_VERSION = "0.
|
|
12
|
+
var SDK_VERSION = "0.37.0";
|
|
13
13
|
|
|
14
14
|
// src/internal/exceptions.ts
|
|
15
15
|
var ScrapeBadgerError = class _ScrapeBadgerError extends Error {
|
|
@@ -2445,6 +2445,7 @@ var SpacesClient = class {
|
|
|
2445
2445
|
|
|
2446
2446
|
// src/twitter/client.ts
|
|
2447
2447
|
var TwitterClient = class {
|
|
2448
|
+
_gen;
|
|
2448
2449
|
/** Client for tweet operations */
|
|
2449
2450
|
tweets;
|
|
2450
2451
|
/** Client for user operations */
|
|
@@ -2467,6 +2468,7 @@ var TwitterClient = class {
|
|
|
2467
2468
|
* @param client - The base HTTP client for making requests.
|
|
2468
2469
|
*/
|
|
2469
2470
|
constructor(client) {
|
|
2471
|
+
this._gen = client;
|
|
2470
2472
|
this.tweets = new TweetsClient(client);
|
|
2471
2473
|
this.users = new UsersClient(client);
|
|
2472
2474
|
this.lists = new ListsClient(client);
|
|
@@ -2476,12 +2478,68 @@ var TwitterClient = class {
|
|
|
2476
2478
|
this.stream = new StreamClient(client);
|
|
2477
2479
|
this.spaces = new SpacesClient(client);
|
|
2478
2480
|
}
|
|
2481
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
2482
|
+
/** Delete filter rule. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2483
|
+
async deleteFilterRule(ruleId, body, params = {}) {
|
|
2484
|
+
return this._gen.request(`/v1/twitter/stream/filter-rules/${ruleId}`, {
|
|
2485
|
+
method: "DELETE",
|
|
2486
|
+
params,
|
|
2487
|
+
body
|
|
2488
|
+
});
|
|
2489
|
+
}
|
|
2490
|
+
/** Update filter rule. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2491
|
+
async updateFilterRule(ruleId, body, params = {}) {
|
|
2492
|
+
return this._gen.request(`/v1/twitter/stream/filter-rules/${ruleId}`, {
|
|
2493
|
+
method: "PATCH",
|
|
2494
|
+
params,
|
|
2495
|
+
body
|
|
2496
|
+
});
|
|
2497
|
+
}
|
|
2498
|
+
/** Delete stream monitor. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2499
|
+
async deleteStreamMonitor(monitorId, body, params = {}) {
|
|
2500
|
+
return this._gen.request(`/v1/twitter/stream/monitors/${monitorId}`, {
|
|
2501
|
+
method: "DELETE",
|
|
2502
|
+
params,
|
|
2503
|
+
body
|
|
2504
|
+
});
|
|
2505
|
+
}
|
|
2506
|
+
/** Update stream monitor. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2507
|
+
async updateStreamMonitor(monitorId, body, params = {}) {
|
|
2508
|
+
return this._gen.request(`/v1/twitter/stream/monitors/${monitorId}`, {
|
|
2509
|
+
method: "PATCH",
|
|
2510
|
+
params,
|
|
2511
|
+
body
|
|
2512
|
+
});
|
|
2513
|
+
}
|
|
2514
|
+
/** List webhooks. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2515
|
+
async listWebhooks(params = {}) {
|
|
2516
|
+
return this._gen.request("/v1/twitter/stream/webhooks", { params });
|
|
2517
|
+
}
|
|
2518
|
+
/** Configure webhook on a monitor. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2519
|
+
async configureWebhookOnAMonitor(body, params = {}) {
|
|
2520
|
+
return this._gen.request("/v1/twitter/stream/webhooks", { method: "POST", params, body });
|
|
2521
|
+
}
|
|
2522
|
+
/** Test webhook delivery. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2523
|
+
async testWebhookDelivery(body, params = {}) {
|
|
2524
|
+
return this._gen.request("/v1/twitter/stream/webhooks/test", { method: "POST", params, body });
|
|
2525
|
+
}
|
|
2526
|
+
/** Remove webhook from monitor. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2527
|
+
async removeWebhookFromMonitor(webhookId, body, params = {}) {
|
|
2528
|
+
return this._gen.request(`/v1/twitter/stream/webhooks/${webhookId}`, {
|
|
2529
|
+
method: "DELETE",
|
|
2530
|
+
params,
|
|
2531
|
+
body
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2534
|
+
// --- END generated by sdk/codegen/facade ---
|
|
2479
2535
|
};
|
|
2480
2536
|
|
|
2481
2537
|
// src/web/client.ts
|
|
2482
2538
|
var WebClient = class {
|
|
2539
|
+
_gen;
|
|
2483
2540
|
client;
|
|
2484
2541
|
constructor(client) {
|
|
2542
|
+
this._gen = client;
|
|
2485
2543
|
this.client = client;
|
|
2486
2544
|
}
|
|
2487
2545
|
/**
|
|
@@ -2597,6 +2655,28 @@ var WebClient = class {
|
|
|
2597
2655
|
body
|
|
2598
2656
|
});
|
|
2599
2657
|
}
|
|
2658
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
2659
|
+
/** Submit batch scraping job. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2660
|
+
async submitBatchScrapingJob(body, params = {}) {
|
|
2661
|
+
return this._gen.request("/v1/web/batch", { method: "POST", params, body });
|
|
2662
|
+
}
|
|
2663
|
+
/** Get batch job status. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2664
|
+
async getBatchJobStatus(jobId, params = {}) {
|
|
2665
|
+
return this._gen.request(`/v1/web/batch/${jobId}`, { params });
|
|
2666
|
+
}
|
|
2667
|
+
/** Extract structured data. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2668
|
+
async extractStructuredData(body, params = {}) {
|
|
2669
|
+
return this._gen.request("/v1/web/extract", { method: "POST", params, body });
|
|
2670
|
+
}
|
|
2671
|
+
/** Take a screenshot. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2672
|
+
async takeAScreenshot(body, params = {}) {
|
|
2673
|
+
return this._gen.request("/v1/web/screenshot", { method: "POST", params, body });
|
|
2674
|
+
}
|
|
2675
|
+
/** Poll an auto-unblock discovery job. Generated from the OpenAPI spec; returns the raw response object. */
|
|
2676
|
+
async pollAnAutoUnblockDiscoveryJob(jobId, params = {}) {
|
|
2677
|
+
return this._gen.request(`/v1/web/unblock/${jobId}`, { params });
|
|
2678
|
+
}
|
|
2679
|
+
// --- END generated by sdk/codegen/facade ---
|
|
2600
2680
|
};
|
|
2601
2681
|
|
|
2602
2682
|
// src/vinted/search.ts
|
|
@@ -2692,10 +2772,9 @@ var ItemsClient = class {
|
|
|
2692
2772
|
* ```
|
|
2693
2773
|
*/
|
|
2694
2774
|
async get(itemId, options = {}) {
|
|
2695
|
-
return this.client.request(
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
);
|
|
2775
|
+
return this.client.request(`/v1/vinted/items/${itemId}`, {
|
|
2776
|
+
params: { market: options.market }
|
|
2777
|
+
});
|
|
2699
2778
|
}
|
|
2700
2779
|
};
|
|
2701
2780
|
|
|
@@ -2725,10 +2804,9 @@ var UsersClient2 = class {
|
|
|
2725
2804
|
* ```
|
|
2726
2805
|
*/
|
|
2727
2806
|
async getProfile(userId, options = {}) {
|
|
2728
|
-
return this.client.request(
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
);
|
|
2807
|
+
return this.client.request(`/v1/vinted/users/${userId}`, {
|
|
2808
|
+
params: { market: options.market }
|
|
2809
|
+
});
|
|
2732
2810
|
}
|
|
2733
2811
|
/**
|
|
2734
2812
|
* Get items listed by a user.
|
|
@@ -2756,16 +2834,13 @@ var UsersClient2 = class {
|
|
|
2756
2834
|
* ```
|
|
2757
2835
|
*/
|
|
2758
2836
|
async getItems(userId, options = {}) {
|
|
2759
|
-
return this.client.request(
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
page: options.page,
|
|
2765
|
-
per_page: options.per_page
|
|
2766
|
-
}
|
|
2837
|
+
return this.client.request(`/v1/vinted/users/${userId}/items`, {
|
|
2838
|
+
params: {
|
|
2839
|
+
market: options.market,
|
|
2840
|
+
page: options.page,
|
|
2841
|
+
per_page: options.per_page
|
|
2767
2842
|
}
|
|
2768
|
-
);
|
|
2843
|
+
});
|
|
2769
2844
|
}
|
|
2770
2845
|
};
|
|
2771
2846
|
|
|
@@ -3354,6 +3429,7 @@ var VideosClient = class {
|
|
|
3354
3429
|
|
|
3355
3430
|
// src/google/client.ts
|
|
3356
3431
|
var GoogleClient = class {
|
|
3432
|
+
_gen;
|
|
3357
3433
|
/** Google Web Search (SERP) — with optional deferred AI Overview follow-up. */
|
|
3358
3434
|
search;
|
|
3359
3435
|
/** Google Maps — places, reviews, photos, posts. */
|
|
@@ -3391,6 +3467,7 @@ var GoogleClient = class {
|
|
|
3391
3467
|
/** Google Products — immersive product detail. */
|
|
3392
3468
|
products;
|
|
3393
3469
|
constructor(client) {
|
|
3470
|
+
this._gen = client;
|
|
3394
3471
|
this.search = new SearchClient2(client);
|
|
3395
3472
|
this.maps = new MapsClient(client);
|
|
3396
3473
|
this.news = new NewsClient(client);
|
|
@@ -3410,6 +3487,104 @@ var GoogleClient = class {
|
|
|
3410
3487
|
this.flights = new FlightsClient(client);
|
|
3411
3488
|
this.products = new ProductsClient(client);
|
|
3412
3489
|
}
|
|
3490
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
3491
|
+
/** Google AI Overview (inline SERP block). Generated from the OpenAPI spec; returns the raw response object. */
|
|
3492
|
+
async googleAiOverviewInlineSerpBlock(params = {}) {
|
|
3493
|
+
return this._gen.request("/v1/google/ai-overview", { params });
|
|
3494
|
+
}
|
|
3495
|
+
/** Google Flights calendar — cheapest fare per date. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3496
|
+
async googleFlightsCalendarCheapestFarePerDate(params = {}) {
|
|
3497
|
+
return this._gen.request("/v1/google/flights/calendar", { params });
|
|
3498
|
+
}
|
|
3499
|
+
// --- END generated by sdk/codegen/facade ---
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
// src/google_play/client.ts
|
|
3503
|
+
var GooglePlayClient = class {
|
|
3504
|
+
client;
|
|
3505
|
+
constructor(client) {
|
|
3506
|
+
this.client = client;
|
|
3507
|
+
}
|
|
3508
|
+
/** Get app detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3509
|
+
async getAppDetail(appId, params = {}) {
|
|
3510
|
+
return this.client.request(`/v1/google-play/apps/${appId}`, { params });
|
|
3511
|
+
}
|
|
3512
|
+
/** Get app permissions. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3513
|
+
async getAppPermissions(appId, params = {}) {
|
|
3514
|
+
return this.client.request(`/v1/google-play/apps/${appId}/permissions`, { params });
|
|
3515
|
+
}
|
|
3516
|
+
/** Get app reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3517
|
+
async getAppReviews(appId, params = {}) {
|
|
3518
|
+
return this.client.request(`/v1/google-play/apps/${appId}/reviews`, { params });
|
|
3519
|
+
}
|
|
3520
|
+
/** Get similar apps. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3521
|
+
async getSimilarApps(appId, params = {}) {
|
|
3522
|
+
return this.client.request(`/v1/google-play/apps/${appId}/similar`, { params });
|
|
3523
|
+
}
|
|
3524
|
+
/** List categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3525
|
+
async listCategories(params = {}) {
|
|
3526
|
+
return this.client.request("/v1/google-play/categories", { params });
|
|
3527
|
+
}
|
|
3528
|
+
/** Browse a category. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3529
|
+
async browseACategory(categoryId, params = {}) {
|
|
3530
|
+
return this.client.request(`/v1/google-play/categories/${categoryId}`, { params });
|
|
3531
|
+
}
|
|
3532
|
+
/** Top charts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3533
|
+
async topCharts(collection, params = {}) {
|
|
3534
|
+
return this.client.request(`/v1/google-play/collections/${collection}`, { params });
|
|
3535
|
+
}
|
|
3536
|
+
/** Get developer apps. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3537
|
+
async getDeveloperApps(developer, params = {}) {
|
|
3538
|
+
return this.client.request(`/v1/google-play/developers/${developer}`, { params });
|
|
3539
|
+
}
|
|
3540
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3541
|
+
async listMarkets(params = {}) {
|
|
3542
|
+
return this.client.request("/v1/google-play/markets", { params });
|
|
3543
|
+
}
|
|
3544
|
+
/** Search apps. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3545
|
+
async searchApps(params = {}) {
|
|
3546
|
+
return this.client.request("/v1/google-play/search", { params });
|
|
3547
|
+
}
|
|
3548
|
+
};
|
|
3549
|
+
|
|
3550
|
+
// src/idealista/client.ts
|
|
3551
|
+
var IdealistaClient = class {
|
|
3552
|
+
client;
|
|
3553
|
+
constructor(client) {
|
|
3554
|
+
this.client = client;
|
|
3555
|
+
}
|
|
3556
|
+
/** Agency by phone. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3557
|
+
async agencyByPhone(phone, params = {}) {
|
|
3558
|
+
return this.client.request(`/v1/idealista/agency/by-phone/${phone}`, { params });
|
|
3559
|
+
}
|
|
3560
|
+
/** Agency profile + listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3561
|
+
async agencyProfileListings(shortName, params = {}) {
|
|
3562
|
+
return this.client.request(`/v1/idealista/agency/${shortName}`, { params });
|
|
3563
|
+
}
|
|
3564
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3565
|
+
async listMarkets(params = {}) {
|
|
3566
|
+
return this.client.request("/v1/idealista/markets", { params });
|
|
3567
|
+
}
|
|
3568
|
+
/** Get property detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3569
|
+
async getPropertyDetail(propertyCode, params = {}) {
|
|
3570
|
+
return this.client.request(`/v1/idealista/properties/${propertyCode}`, { params });
|
|
3571
|
+
}
|
|
3572
|
+
/** Get listing engagement stats. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3573
|
+
async getListingEngagementStats(propertyCode, params = {}) {
|
|
3574
|
+
return this.client.request(`/v1/idealista/properties/${propertyCode}/stats`, { params });
|
|
3575
|
+
}
|
|
3576
|
+
/** Search listings. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3577
|
+
async searchListings(params = {}) {
|
|
3578
|
+
return this.client.request("/v1/idealista/search", { params });
|
|
3579
|
+
}
|
|
3580
|
+
/** Search all (beats result cap). Generated from the OpenAPI spec; returns the raw response object. */
|
|
3581
|
+
async searchAllBeatsResultCap(params = {}) {
|
|
3582
|
+
return this.client.request("/v1/idealista/search/all", { params });
|
|
3583
|
+
}
|
|
3584
|
+
/** Resolve locations. Generated from the OpenAPI spec; returns the raw response object. */
|
|
3585
|
+
async resolveLocations(params = {}) {
|
|
3586
|
+
return this.client.request("/v1/idealista/suggest", { params });
|
|
3587
|
+
}
|
|
3413
3588
|
};
|
|
3414
3589
|
|
|
3415
3590
|
// src/reddit/search.ts
|
|
@@ -3479,16 +3654,13 @@ var SearchClient3 = class {
|
|
|
3479
3654
|
* ```
|
|
3480
3655
|
*/
|
|
3481
3656
|
async subreddits(options) {
|
|
3482
|
-
return this.client.request(
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
after: options.after,
|
|
3488
|
-
limit: options.limit
|
|
3489
|
-
}
|
|
3657
|
+
return this.client.request("/v1/reddit/search/subreddits", {
|
|
3658
|
+
params: {
|
|
3659
|
+
query: options.query,
|
|
3660
|
+
after: options.after,
|
|
3661
|
+
limit: options.limit
|
|
3490
3662
|
}
|
|
3491
|
-
);
|
|
3663
|
+
});
|
|
3492
3664
|
}
|
|
3493
3665
|
/**
|
|
3494
3666
|
* Search Reddit users.
|
|
@@ -3513,16 +3685,13 @@ var SearchClient3 = class {
|
|
|
3513
3685
|
* ```
|
|
3514
3686
|
*/
|
|
3515
3687
|
async users(options) {
|
|
3516
|
-
return this.client.request(
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
after: options.after,
|
|
3522
|
-
limit: options.limit
|
|
3523
|
-
}
|
|
3688
|
+
return this.client.request("/v1/reddit/search/users", {
|
|
3689
|
+
params: {
|
|
3690
|
+
query: options.query,
|
|
3691
|
+
after: options.after,
|
|
3692
|
+
limit: options.limit
|
|
3524
3693
|
}
|
|
3525
|
-
);
|
|
3694
|
+
});
|
|
3526
3695
|
}
|
|
3527
3696
|
/**
|
|
3528
3697
|
* Get Reddit posts linking to a specific domain.
|
|
@@ -3551,18 +3720,15 @@ var SearchClient3 = class {
|
|
|
3551
3720
|
* ```
|
|
3552
3721
|
*/
|
|
3553
3722
|
async domainPosts(options) {
|
|
3554
|
-
return this.client.request(
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
after: options.after,
|
|
3562
|
-
limit: options.limit
|
|
3563
|
-
}
|
|
3723
|
+
return this.client.request("/v1/reddit/search/domain", {
|
|
3724
|
+
params: {
|
|
3725
|
+
domain: options.domain,
|
|
3726
|
+
sort: options.sort,
|
|
3727
|
+
time: options.time,
|
|
3728
|
+
after: options.after,
|
|
3729
|
+
limit: options.limit
|
|
3564
3730
|
}
|
|
3565
|
-
);
|
|
3731
|
+
});
|
|
3566
3732
|
}
|
|
3567
3733
|
};
|
|
3568
3734
|
|
|
@@ -3626,10 +3792,9 @@ var PostsClient = class {
|
|
|
3626
3792
|
* ```
|
|
3627
3793
|
*/
|
|
3628
3794
|
async get(postId, options = {}) {
|
|
3629
|
-
return this.client.request(
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
);
|
|
3795
|
+
return this.client.request(`/v1/reddit/posts/${postId}`, {
|
|
3796
|
+
params: { subreddit: options.subreddit }
|
|
3797
|
+
});
|
|
3633
3798
|
}
|
|
3634
3799
|
/**
|
|
3635
3800
|
* Get comments for a Reddit post.
|
|
@@ -3657,17 +3822,14 @@ var PostsClient = class {
|
|
|
3657
3822
|
* ```
|
|
3658
3823
|
*/
|
|
3659
3824
|
async comments(postId, options = {}) {
|
|
3660
|
-
return this.client.request(
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
depth: options.depth,
|
|
3667
|
-
limit: options.limit
|
|
3668
|
-
}
|
|
3825
|
+
return this.client.request(`/v1/reddit/posts/${postId}/comments`, {
|
|
3826
|
+
params: {
|
|
3827
|
+
subreddit: options.subreddit,
|
|
3828
|
+
sort: options.sort,
|
|
3829
|
+
depth: options.depth,
|
|
3830
|
+
limit: options.limit
|
|
3669
3831
|
}
|
|
3670
|
-
);
|
|
3832
|
+
});
|
|
3671
3833
|
}
|
|
3672
3834
|
/**
|
|
3673
3835
|
* Get cross-posts and duplicate submissions of a Reddit post.
|
|
@@ -3691,15 +3853,12 @@ var PostsClient = class {
|
|
|
3691
3853
|
* ```
|
|
3692
3854
|
*/
|
|
3693
3855
|
async duplicates(postId, options = {}) {
|
|
3694
|
-
return this.client.request(
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
after: options.after,
|
|
3699
|
-
limit: options.limit
|
|
3700
|
-
}
|
|
3856
|
+
return this.client.request(`/v1/reddit/posts/${postId}/duplicates`, {
|
|
3857
|
+
params: {
|
|
3858
|
+
after: options.after,
|
|
3859
|
+
limit: options.limit
|
|
3701
3860
|
}
|
|
3702
|
-
);
|
|
3861
|
+
});
|
|
3703
3862
|
}
|
|
3704
3863
|
};
|
|
3705
3864
|
|
|
@@ -3899,9 +4058,7 @@ var UsersClient3 = class {
|
|
|
3899
4058
|
* ```
|
|
3900
4059
|
*/
|
|
3901
4060
|
async get(username) {
|
|
3902
|
-
return this.client.request(
|
|
3903
|
-
`/v1/reddit/users/${username}`
|
|
3904
|
-
);
|
|
4061
|
+
return this.client.request(`/v1/reddit/users/${username}`);
|
|
3905
4062
|
}
|
|
3906
4063
|
/**
|
|
3907
4064
|
* Get posts submitted by a Reddit user.
|
|
@@ -3929,17 +4086,14 @@ var UsersClient3 = class {
|
|
|
3929
4086
|
* ```
|
|
3930
4087
|
*/
|
|
3931
4088
|
async posts(username, options = {}) {
|
|
3932
|
-
return this.client.request(
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
after: options.after,
|
|
3939
|
-
limit: options.limit
|
|
3940
|
-
}
|
|
4089
|
+
return this.client.request(`/v1/reddit/users/${username}/posts`, {
|
|
4090
|
+
params: {
|
|
4091
|
+
sort: options.sort,
|
|
4092
|
+
time: options.time,
|
|
4093
|
+
after: options.after,
|
|
4094
|
+
limit: options.limit
|
|
3941
4095
|
}
|
|
3942
|
-
);
|
|
4096
|
+
});
|
|
3943
4097
|
}
|
|
3944
4098
|
/**
|
|
3945
4099
|
* Get comments made by a Reddit user.
|
|
@@ -3966,17 +4120,14 @@ var UsersClient3 = class {
|
|
|
3966
4120
|
* ```
|
|
3967
4121
|
*/
|
|
3968
4122
|
async comments(username, options = {}) {
|
|
3969
|
-
return this.client.request(
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
after: options.after,
|
|
3976
|
-
limit: options.limit
|
|
3977
|
-
}
|
|
4123
|
+
return this.client.request(`/v1/reddit/users/${username}/comments`, {
|
|
4124
|
+
params: {
|
|
4125
|
+
sort: options.sort,
|
|
4126
|
+
time: options.time,
|
|
4127
|
+
after: options.after,
|
|
4128
|
+
limit: options.limit
|
|
3978
4129
|
}
|
|
3979
|
-
);
|
|
4130
|
+
});
|
|
3980
4131
|
}
|
|
3981
4132
|
/**
|
|
3982
4133
|
* Get subreddits moderated by a Reddit user.
|
|
@@ -3995,9 +4146,7 @@ var UsersClient3 = class {
|
|
|
3995
4146
|
* ```
|
|
3996
4147
|
*/
|
|
3997
4148
|
async moderated(username) {
|
|
3998
|
-
return this.client.request(
|
|
3999
|
-
`/v1/reddit/users/${username}/moderated`
|
|
4000
|
-
);
|
|
4149
|
+
return this.client.request(`/v1/reddit/users/${username}/moderated`);
|
|
4001
4150
|
}
|
|
4002
4151
|
/**
|
|
4003
4152
|
* Get trophies awarded to a Reddit user.
|
|
@@ -4016,9 +4165,7 @@ var UsersClient3 = class {
|
|
|
4016
4165
|
* ```
|
|
4017
4166
|
*/
|
|
4018
4167
|
async trophies(username) {
|
|
4019
|
-
return this.client.request(
|
|
4020
|
-
`/v1/reddit/users/${username}/trophies`
|
|
4021
|
-
);
|
|
4168
|
+
return this.client.request(`/v1/reddit/users/${username}/trophies`);
|
|
4022
4169
|
}
|
|
4023
4170
|
};
|
|
4024
4171
|
|
|
@@ -4092,6 +4239,48 @@ var ApartmentsClient = class {
|
|
|
4092
4239
|
}
|
|
4093
4240
|
throw new Error("Provide either url, or both slug and propertyId");
|
|
4094
4241
|
}
|
|
4242
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
4243
|
+
/** Get property detail by slug + id. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4244
|
+
async getPropertyDetailBySlugId(slug, propertyId, params = {}) {
|
|
4245
|
+
return this.client.request(`/v1/apartments/properties/${slug}/${propertyId}`, { params });
|
|
4246
|
+
}
|
|
4247
|
+
// --- END generated by sdk/codegen/facade ---
|
|
4248
|
+
};
|
|
4249
|
+
|
|
4250
|
+
// src/app_store/client.ts
|
|
4251
|
+
var AppStoreClient = class {
|
|
4252
|
+
client;
|
|
4253
|
+
constructor(client) {
|
|
4254
|
+
this.client = client;
|
|
4255
|
+
}
|
|
4256
|
+
/** Get app detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4257
|
+
async getAppDetail(appId, params = {}) {
|
|
4258
|
+
return this.client.request(`/v1/app-store/apps/${appId}`, { params });
|
|
4259
|
+
}
|
|
4260
|
+
/** Get app reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4261
|
+
async getAppReviews(appId, params = {}) {
|
|
4262
|
+
return this.client.request(`/v1/app-store/apps/${appId}/reviews`, { params });
|
|
4263
|
+
}
|
|
4264
|
+
/** Top charts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4265
|
+
async topCharts(params = {}) {
|
|
4266
|
+
return this.client.request("/v1/app-store/charts", { params });
|
|
4267
|
+
}
|
|
4268
|
+
/** Get developer apps. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4269
|
+
async getDeveloperApps(artistId, params = {}) {
|
|
4270
|
+
return this.client.request(`/v1/app-store/developers/${artistId}`, { params });
|
|
4271
|
+
}
|
|
4272
|
+
/** List genres. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4273
|
+
async listGenres(params = {}) {
|
|
4274
|
+
return this.client.request("/v1/app-store/genres", { params });
|
|
4275
|
+
}
|
|
4276
|
+
/** List markets. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4277
|
+
async listMarkets(params = {}) {
|
|
4278
|
+
return this.client.request("/v1/app-store/markets", { params });
|
|
4279
|
+
}
|
|
4280
|
+
/** Search apps. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4281
|
+
async searchApps(params = {}) {
|
|
4282
|
+
return this.client.request("/v1/app-store/search", { params });
|
|
4283
|
+
}
|
|
4095
4284
|
};
|
|
4096
4285
|
|
|
4097
4286
|
// src/instagram/users.ts
|
|
@@ -4109,15 +4298,11 @@ var UsersClient4 = class {
|
|
|
4109
4298
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4110
4299
|
*/
|
|
4111
4300
|
async about(username) {
|
|
4112
|
-
return this.client.request(
|
|
4113
|
-
`/v1/instagram/users/${username}/about`
|
|
4114
|
-
);
|
|
4301
|
+
return this.client.request(`/v1/instagram/users/${username}/about`);
|
|
4115
4302
|
}
|
|
4116
4303
|
/** Get accounts related/suggested for a user. */
|
|
4117
4304
|
async related(username) {
|
|
4118
|
-
return this.client.request(
|
|
4119
|
-
`/v1/instagram/users/${username}/related`
|
|
4120
|
-
);
|
|
4305
|
+
return this.client.request(`/v1/instagram/users/${username}/related`);
|
|
4121
4306
|
}
|
|
4122
4307
|
/** Get a user's timeline posts. */
|
|
4123
4308
|
async posts(username, options = {}) {
|
|
@@ -4149,9 +4334,7 @@ var UsersClient4 = class {
|
|
|
4149
4334
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4150
4335
|
*/
|
|
4151
4336
|
async pinned(username) {
|
|
4152
|
-
return this.client.request(
|
|
4153
|
-
`/v1/instagram/users/${username}/pinned`
|
|
4154
|
-
);
|
|
4337
|
+
return this.client.request(`/v1/instagram/users/${username}/pinned`);
|
|
4155
4338
|
}
|
|
4156
4339
|
/**
|
|
4157
4340
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
@@ -4164,26 +4347,22 @@ var UsersClient4 = class {
|
|
|
4164
4347
|
* @param options.order - Ordering hint (e.g. "default", "date_followed_earliest").
|
|
4165
4348
|
*/
|
|
4166
4349
|
async followers(username, options = {}) {
|
|
4167
|
-
return this.client.request(
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
cursor: options.cursor,
|
|
4173
|
-
order: options.order
|
|
4174
|
-
}
|
|
4350
|
+
return this.client.request(`/v1/instagram/users/${username}/followers`, {
|
|
4351
|
+
params: {
|
|
4352
|
+
amount: options.amount,
|
|
4353
|
+
cursor: options.cursor,
|
|
4354
|
+
order: options.order
|
|
4175
4355
|
}
|
|
4176
|
-
);
|
|
4356
|
+
});
|
|
4177
4357
|
}
|
|
4178
4358
|
/**
|
|
4179
4359
|
* Get the accounts a user follows.
|
|
4180
4360
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4181
4361
|
*/
|
|
4182
4362
|
async following(username, options = {}) {
|
|
4183
|
-
return this.client.request(
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
);
|
|
4363
|
+
return this.client.request(`/v1/instagram/users/${username}/following`, {
|
|
4364
|
+
params: { amount: options.amount, cursor: options.cursor }
|
|
4365
|
+
});
|
|
4187
4366
|
}
|
|
4188
4367
|
/**
|
|
4189
4368
|
* Search within a user's followers by name/username.
|
|
@@ -4202,18 +4381,14 @@ var UsersClient4 = class {
|
|
|
4202
4381
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4203
4382
|
*/
|
|
4204
4383
|
async stories(username) {
|
|
4205
|
-
return this.client.request(
|
|
4206
|
-
`/v1/instagram/users/${username}/stories`
|
|
4207
|
-
);
|
|
4384
|
+
return this.client.request(`/v1/instagram/users/${username}/stories`);
|
|
4208
4385
|
}
|
|
4209
4386
|
/**
|
|
4210
4387
|
* Get a user's story highlights.
|
|
4211
4388
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4212
4389
|
*/
|
|
4213
4390
|
async highlights(username) {
|
|
4214
|
-
return this.client.request(
|
|
4215
|
-
`/v1/instagram/users/${username}/highlights`
|
|
4216
|
-
);
|
|
4391
|
+
return this.client.request(`/v1/instagram/users/${username}/highlights`);
|
|
4217
4392
|
}
|
|
4218
4393
|
async media(path, options) {
|
|
4219
4394
|
return this.client.request(path, {
|
|
@@ -4242,19 +4417,16 @@ var MediaClient = class {
|
|
|
4242
4417
|
}
|
|
4243
4418
|
/** Get top-level comments on a media. */
|
|
4244
4419
|
async comments(code, options = {}) {
|
|
4245
|
-
return this.client.request(
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
);
|
|
4420
|
+
return this.client.request(`/v1/instagram/media/${code}/comments`, {
|
|
4421
|
+
params: { amount: options.amount, cursor: options.cursor }
|
|
4422
|
+
});
|
|
4249
4423
|
}
|
|
4250
4424
|
/**
|
|
4251
4425
|
* Get the users who liked a media.
|
|
4252
4426
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4253
4427
|
*/
|
|
4254
4428
|
async likers(code) {
|
|
4255
|
-
return this.client.request(
|
|
4256
|
-
`/v1/instagram/media/${code}/likers`
|
|
4257
|
-
);
|
|
4429
|
+
return this.client.request(`/v1/instagram/media/${code}/likers`);
|
|
4258
4430
|
}
|
|
4259
4431
|
/**
|
|
4260
4432
|
* Get replies to a comment.
|
|
@@ -4285,47 +4457,42 @@ var SearchClient4 = class {
|
|
|
4285
4457
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4286
4458
|
*/
|
|
4287
4459
|
async users(query) {
|
|
4288
|
-
return this.client.request(
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
);
|
|
4460
|
+
return this.client.request("/v1/instagram/search/users", {
|
|
4461
|
+
params: { query }
|
|
4462
|
+
});
|
|
4292
4463
|
}
|
|
4293
4464
|
/** Search hashtags. */
|
|
4294
4465
|
async hashtags(query) {
|
|
4295
|
-
return this.client.request(
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
);
|
|
4466
|
+
return this.client.request("/v1/instagram/search/hashtags", {
|
|
4467
|
+
params: { query }
|
|
4468
|
+
});
|
|
4299
4469
|
}
|
|
4300
4470
|
/**
|
|
4301
4471
|
* Search places/locations.
|
|
4302
4472
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4303
4473
|
*/
|
|
4304
4474
|
async places(query) {
|
|
4305
|
-
return this.client.request(
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
);
|
|
4475
|
+
return this.client.request("/v1/instagram/search/places", {
|
|
4476
|
+
params: { query }
|
|
4477
|
+
});
|
|
4309
4478
|
}
|
|
4310
4479
|
/**
|
|
4311
4480
|
* Search reels.
|
|
4312
4481
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4313
4482
|
*/
|
|
4314
4483
|
async reels(query) {
|
|
4315
|
-
return this.client.request(
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
);
|
|
4484
|
+
return this.client.request("/v1/instagram/search/reels", {
|
|
4485
|
+
params: { query }
|
|
4486
|
+
});
|
|
4319
4487
|
}
|
|
4320
4488
|
/**
|
|
4321
4489
|
* Search music/audio tracks.
|
|
4322
4490
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4323
4491
|
*/
|
|
4324
4492
|
async music(query) {
|
|
4325
|
-
return this.client.request(
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
);
|
|
4493
|
+
return this.client.request("/v1/instagram/search/music", {
|
|
4494
|
+
params: { query }
|
|
4495
|
+
});
|
|
4329
4496
|
}
|
|
4330
4497
|
/** Get blended "top" results (users, hashtags, and places). */
|
|
4331
4498
|
async top(query) {
|
|
@@ -4338,10 +4505,9 @@ var SearchClient4 = class {
|
|
|
4338
4505
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4339
4506
|
*/
|
|
4340
4507
|
async autocomplete(query) {
|
|
4341
|
-
return this.client.request(
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
);
|
|
4508
|
+
return this.client.request("/v1/instagram/search/autocomplete", {
|
|
4509
|
+
params: { query }
|
|
4510
|
+
});
|
|
4345
4511
|
}
|
|
4346
4512
|
};
|
|
4347
4513
|
|
|
@@ -4369,22 +4535,14 @@ var HashtagsClient = class {
|
|
|
4369
4535
|
}
|
|
4370
4536
|
/** Get the most recent media for a hashtag. */
|
|
4371
4537
|
async recent(tag, options = {}) {
|
|
4372
|
-
return mediaFeed(
|
|
4373
|
-
this.client,
|
|
4374
|
-
`/v1/instagram/hashtags/${tag}/recent`,
|
|
4375
|
-
options
|
|
4376
|
-
);
|
|
4538
|
+
return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/recent`, options);
|
|
4377
4539
|
}
|
|
4378
4540
|
/**
|
|
4379
4541
|
* Get reels for a hashtag.
|
|
4380
4542
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4381
4543
|
*/
|
|
4382
4544
|
async reels(tag, options = {}) {
|
|
4383
|
-
return mediaFeed(
|
|
4384
|
-
this.client,
|
|
4385
|
-
`/v1/instagram/hashtags/${tag}/reels`,
|
|
4386
|
-
options
|
|
4387
|
-
);
|
|
4545
|
+
return mediaFeed(this.client, `/v1/instagram/hashtags/${tag}/reels`, options);
|
|
4388
4546
|
}
|
|
4389
4547
|
};
|
|
4390
4548
|
var LocationsClient = class {
|
|
@@ -4411,21 +4569,16 @@ var LocationsClient = class {
|
|
|
4411
4569
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4412
4570
|
*/
|
|
4413
4571
|
async recent(pk, options = {}) {
|
|
4414
|
-
return mediaFeed(
|
|
4415
|
-
this.client,
|
|
4416
|
-
`/v1/instagram/locations/${pk}/recent`,
|
|
4417
|
-
options
|
|
4418
|
-
);
|
|
4572
|
+
return mediaFeed(this.client, `/v1/instagram/locations/${pk}/recent`, options);
|
|
4419
4573
|
}
|
|
4420
4574
|
/**
|
|
4421
4575
|
* Search locations by name.
|
|
4422
4576
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4423
4577
|
*/
|
|
4424
4578
|
async search(query) {
|
|
4425
|
-
return this.client.request(
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
);
|
|
4579
|
+
return this.client.request("/v1/instagram/locations/search", {
|
|
4580
|
+
params: { query }
|
|
4581
|
+
});
|
|
4429
4582
|
}
|
|
4430
4583
|
};
|
|
4431
4584
|
var AudioClient = class {
|
|
@@ -4445,11 +4598,7 @@ var AudioClient = class {
|
|
|
4445
4598
|
* @deprecated Temporarily unavailable — authenticated data is temporarily offline.
|
|
4446
4599
|
*/
|
|
4447
4600
|
async media(audioId, options = {}) {
|
|
4448
|
-
return mediaFeed(
|
|
4449
|
-
this.client,
|
|
4450
|
-
`/v1/instagram/audio/${audioId}/media`,
|
|
4451
|
-
options
|
|
4452
|
-
);
|
|
4601
|
+
return mediaFeed(this.client, `/v1/instagram/audio/${audioId}/media`, options);
|
|
4453
4602
|
}
|
|
4454
4603
|
/**
|
|
4455
4604
|
* Get currently-trending audio tracks.
|
|
@@ -4462,6 +4611,7 @@ var AudioClient = class {
|
|
|
4462
4611
|
|
|
4463
4612
|
// src/instagram/client.ts
|
|
4464
4613
|
var InstagramClient = class {
|
|
4614
|
+
_gen;
|
|
4465
4615
|
/** Client for user operations (profile, posts, followers, stories, highlights) */
|
|
4466
4616
|
users;
|
|
4467
4617
|
/** Client for media operations (detail, comments, replies, likers, oEmbed) */
|
|
@@ -4480,6 +4630,7 @@ var InstagramClient = class {
|
|
|
4480
4630
|
* @param client - The base HTTP client for making requests.
|
|
4481
4631
|
*/
|
|
4482
4632
|
constructor(client) {
|
|
4633
|
+
this._gen = client;
|
|
4483
4634
|
this.users = new UsersClient4(client);
|
|
4484
4635
|
this.media = new MediaClient(client);
|
|
4485
4636
|
this.search = new SearchClient4(client);
|
|
@@ -4487,12 +4638,20 @@ var InstagramClient = class {
|
|
|
4487
4638
|
this.locations = new LocationsClient(client);
|
|
4488
4639
|
this.audio = new AudioClient(client);
|
|
4489
4640
|
}
|
|
4641
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
4642
|
+
/** Get location. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4643
|
+
async getLocation(locationPk, params = {}) {
|
|
4644
|
+
return this._gen.request(`/v1/instagram/locations/${locationPk}`, { params });
|
|
4645
|
+
}
|
|
4646
|
+
// --- END generated by sdk/codegen/facade ---
|
|
4490
4647
|
};
|
|
4491
4648
|
|
|
4492
4649
|
// src/redfin/client.ts
|
|
4493
4650
|
var RedfinClient = class {
|
|
4651
|
+
_gen;
|
|
4494
4652
|
client;
|
|
4495
4653
|
constructor(client) {
|
|
4654
|
+
this._gen = client;
|
|
4496
4655
|
this.client = client;
|
|
4497
4656
|
}
|
|
4498
4657
|
/**
|
|
@@ -4582,6 +4741,56 @@ var RedfinClient = class {
|
|
|
4582
4741
|
async listMarkets() {
|
|
4583
4742
|
return this.client.request("/v1/redfin/markets");
|
|
4584
4743
|
}
|
|
4744
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
4745
|
+
/** Get property detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4746
|
+
async getPropertyDetail(propertyId, params = {}) {
|
|
4747
|
+
return this._gen.request(`/v1/redfin/property/${propertyId}`, { params });
|
|
4748
|
+
}
|
|
4749
|
+
// --- END generated by sdk/codegen/facade ---
|
|
4750
|
+
};
|
|
4751
|
+
|
|
4752
|
+
// src/account/client.ts
|
|
4753
|
+
var AccountClient = class {
|
|
4754
|
+
client;
|
|
4755
|
+
constructor(client) {
|
|
4756
|
+
this.client = client;
|
|
4757
|
+
}
|
|
4758
|
+
/** Get account info. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4759
|
+
async getAccountInfo(params = {}) {
|
|
4760
|
+
return this.client.request("/v1/account/me", { params });
|
|
4761
|
+
}
|
|
4762
|
+
};
|
|
4763
|
+
|
|
4764
|
+
// src/airbnb/client.ts
|
|
4765
|
+
var AirbnbClient = class {
|
|
4766
|
+
client;
|
|
4767
|
+
constructor(client) {
|
|
4768
|
+
this.client = client;
|
|
4769
|
+
}
|
|
4770
|
+
/** Search experiences. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4771
|
+
async searchExperiences(params = {}) {
|
|
4772
|
+
return this.client.request("/v1/airbnb/experiences", { params });
|
|
4773
|
+
}
|
|
4774
|
+
/** Get experience detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4775
|
+
async getExperienceDetail(experienceId, params = {}) {
|
|
4776
|
+
return this.client.request(`/v1/airbnb/experiences/${experienceId}`, { params });
|
|
4777
|
+
}
|
|
4778
|
+
/** Get listing detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4779
|
+
async getListingDetail(roomId, params = {}) {
|
|
4780
|
+
return this.client.request(`/v1/airbnb/listings/${roomId}`, { params });
|
|
4781
|
+
}
|
|
4782
|
+
/** Get availability calendar. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4783
|
+
async getAvailabilityCalendar(roomId, params = {}) {
|
|
4784
|
+
return this.client.request(`/v1/airbnb/listings/${roomId}/calendar`, { params });
|
|
4785
|
+
}
|
|
4786
|
+
/** Get listing reviews. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4787
|
+
async getListingReviews(roomId, params = {}) {
|
|
4788
|
+
return this.client.request(`/v1/airbnb/listings/${roomId}/reviews`, { params });
|
|
4789
|
+
}
|
|
4790
|
+
/** Search stays. Generated from the OpenAPI spec; returns the raw response object. */
|
|
4791
|
+
async searchStays(params = {}) {
|
|
4792
|
+
return this.client.request("/v1/airbnb/search", { params });
|
|
4793
|
+
}
|
|
4585
4794
|
};
|
|
4586
4795
|
|
|
4587
4796
|
// src/amazon/search.ts
|
|
@@ -4642,16 +4851,13 @@ var ProductsClient2 = class {
|
|
|
4642
4851
|
* @throws NotFoundError - If the product doesn't exist.
|
|
4643
4852
|
*/
|
|
4644
4853
|
async get(asin, options = {}) {
|
|
4645
|
-
return this.client.request(
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
zip: options.zip,
|
|
4651
|
-
language: options.language
|
|
4652
|
-
}
|
|
4854
|
+
return this.client.request(`/v1/amazon/products/${asin}`, {
|
|
4855
|
+
params: {
|
|
4856
|
+
domain: options.domain,
|
|
4857
|
+
zip: options.zip,
|
|
4858
|
+
language: options.language
|
|
4653
4859
|
}
|
|
4654
|
-
);
|
|
4860
|
+
});
|
|
4655
4861
|
}
|
|
4656
4862
|
/**
|
|
4657
4863
|
* Get all-seller offers (and the buybox winner) for an ASIN.
|
|
@@ -4661,10 +4867,9 @@ var ProductsClient2 = class {
|
|
|
4661
4867
|
* @returns Offers response with the buybox winner and full offer list.
|
|
4662
4868
|
*/
|
|
4663
4869
|
async offers(asin, options = {}) {
|
|
4664
|
-
return this.client.request(
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
);
|
|
4870
|
+
return this.client.request(`/v1/amazon/products/${asin}/offers`, {
|
|
4871
|
+
params: { domain: options.domain, zip: options.zip }
|
|
4872
|
+
});
|
|
4668
4873
|
}
|
|
4669
4874
|
/**
|
|
4670
4875
|
* Get product reviews for an ASIN.
|
|
@@ -4674,19 +4879,16 @@ var ProductsClient2 = class {
|
|
|
4674
4879
|
* @returns Reviews response with reviews, aggregate rating, and breakdown.
|
|
4675
4880
|
*/
|
|
4676
4881
|
async reviews(asin, options = {}) {
|
|
4677
|
-
return this.client.request(
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
verified_only: options.verified_only,
|
|
4686
|
-
media_only: options.media_only
|
|
4687
|
-
}
|
|
4882
|
+
return this.client.request(`/v1/amazon/products/${asin}/reviews`, {
|
|
4883
|
+
params: {
|
|
4884
|
+
domain: options.domain,
|
|
4885
|
+
page: options.page,
|
|
4886
|
+
sort_by: options.sort_by,
|
|
4887
|
+
star: options.star,
|
|
4888
|
+
verified_only: options.verified_only,
|
|
4889
|
+
media_only: options.media_only
|
|
4688
4890
|
}
|
|
4689
|
-
);
|
|
4891
|
+
});
|
|
4690
4892
|
}
|
|
4691
4893
|
};
|
|
4692
4894
|
|
|
@@ -4774,10 +4976,9 @@ var SellersClient = class {
|
|
|
4774
4976
|
* @throws NotFoundError - If the seller doesn't exist.
|
|
4775
4977
|
*/
|
|
4776
4978
|
async get(sellerId, options = {}) {
|
|
4777
|
-
return this.client.request(
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
);
|
|
4979
|
+
return this.client.request(`/v1/amazon/sellers/${sellerId}`, {
|
|
4980
|
+
params: { domain: options.domain }
|
|
4981
|
+
});
|
|
4781
4982
|
}
|
|
4782
4983
|
/**
|
|
4783
4984
|
* Get a seller's storefront listings.
|
|
@@ -4787,10 +4988,9 @@ var SellersClient = class {
|
|
|
4787
4988
|
* @returns Seller products response with result rows and pagination.
|
|
4788
4989
|
*/
|
|
4789
4990
|
async products(sellerId, options = {}) {
|
|
4790
|
-
return this.client.request(
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
);
|
|
4991
|
+
return this.client.request(`/v1/amazon/sellers/${sellerId}/products`, {
|
|
4992
|
+
params: { domain: options.domain, page: options.page }
|
|
4993
|
+
});
|
|
4794
4994
|
}
|
|
4795
4995
|
/**
|
|
4796
4996
|
* Get buyer feedback entries for a seller.
|
|
@@ -4800,10 +5000,9 @@ var SellersClient = class {
|
|
|
4800
5000
|
* @returns Seller feedback response with feedback entries and pagination.
|
|
4801
5001
|
*/
|
|
4802
5002
|
async feedback(sellerId, options = {}) {
|
|
4803
|
-
return this.client.request(
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
);
|
|
5003
|
+
return this.client.request(`/v1/amazon/sellers/${sellerId}/feedback`, {
|
|
5004
|
+
params: { domain: options.domain, page: options.page }
|
|
5005
|
+
});
|
|
4807
5006
|
}
|
|
4808
5007
|
};
|
|
4809
5008
|
|
|
@@ -4892,17 +5091,14 @@ var SearchClient6 = class {
|
|
|
4892
5091
|
* @throws ValidationError - If the category ID or market is invalid.
|
|
4893
5092
|
*/
|
|
4894
5093
|
async categoryItems(categoryId, options = {}) {
|
|
4895
|
-
return this.client.request(
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
offset: options.offset,
|
|
4902
|
-
sort_by: options.sort_by
|
|
4903
|
-
}
|
|
5094
|
+
return this.client.request(`/v1/shopee/category/${categoryId}/items`, {
|
|
5095
|
+
params: {
|
|
5096
|
+
market: options.market,
|
|
5097
|
+
limit: options.limit,
|
|
5098
|
+
offset: options.offset,
|
|
5099
|
+
sort_by: options.sort_by
|
|
4904
5100
|
}
|
|
4905
|
-
);
|
|
5101
|
+
});
|
|
4906
5102
|
}
|
|
4907
5103
|
};
|
|
4908
5104
|
|
|
@@ -4924,10 +5120,9 @@ var ProductsClient3 = class {
|
|
|
4924
5120
|
* @throws ValidationError - If the market code is invalid.
|
|
4925
5121
|
*/
|
|
4926
5122
|
async get(shopId, itemId, options = {}) {
|
|
4927
|
-
return this.client.request(
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
);
|
|
5123
|
+
return this.client.request(`/v1/shopee/product/${shopId}/${itemId}`, {
|
|
5124
|
+
params: { market: options.market }
|
|
5125
|
+
});
|
|
4931
5126
|
}
|
|
4932
5127
|
};
|
|
4933
5128
|
|
|
@@ -4949,18 +5144,15 @@ var ReviewsClient = class {
|
|
|
4949
5144
|
* @throws ValidationError - If the parameters are invalid.
|
|
4950
5145
|
*/
|
|
4951
5146
|
async get(shopId, itemId, options = {}) {
|
|
4952
|
-
return this.client.request(
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
rating: options.rating,
|
|
4960
|
-
filter: options.filter
|
|
4961
|
-
}
|
|
5147
|
+
return this.client.request(`/v1/shopee/product/${shopId}/${itemId}/reviews`, {
|
|
5148
|
+
params: {
|
|
5149
|
+
market: options.market,
|
|
5150
|
+
limit: options.limit,
|
|
5151
|
+
offset: options.offset,
|
|
5152
|
+
rating: options.rating,
|
|
5153
|
+
filter: options.filter
|
|
4962
5154
|
}
|
|
4963
|
-
);
|
|
5155
|
+
});
|
|
4964
5156
|
}
|
|
4965
5157
|
};
|
|
4966
5158
|
|
|
@@ -5357,10 +5549,9 @@ var TrendingClient = class {
|
|
|
5357
5549
|
* @returns The trending hashtags response.
|
|
5358
5550
|
*/
|
|
5359
5551
|
async hashtags(options = {}) {
|
|
5360
|
-
return this.client.request(
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
);
|
|
5552
|
+
return this.client.request("/v1/tiktok/trending/hashtags", {
|
|
5553
|
+
params: { region: options.region, period: options.period, count: options.count }
|
|
5554
|
+
});
|
|
5364
5555
|
}
|
|
5365
5556
|
/**
|
|
5366
5557
|
* Get trending songs/sounds (mobile hot-music feed — ranked by usage).
|
|
@@ -5369,10 +5560,9 @@ var TrendingClient = class {
|
|
|
5369
5560
|
* @returns The trending songs response.
|
|
5370
5561
|
*/
|
|
5371
5562
|
async songs(options = {}) {
|
|
5372
|
-
return this.client.request(
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
);
|
|
5563
|
+
return this.client.request("/v1/tiktok/trending/songs", {
|
|
5564
|
+
params: { region: options.region, period: options.period, count: options.count }
|
|
5565
|
+
});
|
|
5376
5566
|
}
|
|
5377
5567
|
};
|
|
5378
5568
|
|
|
@@ -5402,6 +5592,37 @@ var AdsClient = class {
|
|
|
5402
5592
|
}
|
|
5403
5593
|
});
|
|
5404
5594
|
}
|
|
5595
|
+
/**
|
|
5596
|
+
* Look up advertiser business ids by name.
|
|
5597
|
+
*
|
|
5598
|
+
* Feed the returned `id` into {@link search} as `advertiser_id` to list all of an
|
|
5599
|
+
* advertiser's ads. Matching is on the legal entity name, so a brand may appear under
|
|
5600
|
+
* several legal entities.
|
|
5601
|
+
*
|
|
5602
|
+
* @param params - `query` (required), plus optional `region` and `count`.
|
|
5603
|
+
* @returns Matching advertisers, each with a business `id`.
|
|
5604
|
+
*/
|
|
5605
|
+
async searchAdvertisers(params) {
|
|
5606
|
+
return this.client.request("/v1/tiktok/ads/advertisers", {
|
|
5607
|
+
params: {
|
|
5608
|
+
query: params.query,
|
|
5609
|
+
region: params.region,
|
|
5610
|
+
count: params.count
|
|
5611
|
+
}
|
|
5612
|
+
});
|
|
5613
|
+
}
|
|
5614
|
+
/**
|
|
5615
|
+
* Get a single ad's advertiser, creatives, and full targeting/impression breakdown.
|
|
5616
|
+
*
|
|
5617
|
+
* @param adId - Ad id from a {@link search} result.
|
|
5618
|
+
* @param params - Optional `region` (EU-only, default "DE").
|
|
5619
|
+
* @returns The ad, its advertiser, and per-region age/gender impression targeting.
|
|
5620
|
+
*/
|
|
5621
|
+
async getDetail(adId, params = {}) {
|
|
5622
|
+
return this.client.request(`/v1/tiktok/ads/${adId}`, {
|
|
5623
|
+
params: { region: params.region }
|
|
5624
|
+
});
|
|
5625
|
+
}
|
|
5405
5626
|
};
|
|
5406
5627
|
|
|
5407
5628
|
// src/tiktok/reference.ts
|
|
@@ -5430,6 +5651,7 @@ var ReferenceClient4 = class {
|
|
|
5430
5651
|
|
|
5431
5652
|
// src/tiktok/client.ts
|
|
5432
5653
|
var TikTokClient = class {
|
|
5654
|
+
_gen;
|
|
5433
5655
|
/** Client for profiles, videos, followers, following, liked, reposts */
|
|
5434
5656
|
users;
|
|
5435
5657
|
/** Client for video detail, comments, replies, related, transcript, oEmbed */
|
|
@@ -5452,6 +5674,7 @@ var TikTokClient = class {
|
|
|
5452
5674
|
* @param client - The base HTTP client for making requests.
|
|
5453
5675
|
*/
|
|
5454
5676
|
constructor(client) {
|
|
5677
|
+
this._gen = client;
|
|
5455
5678
|
this.users = new UsersClient5(client);
|
|
5456
5679
|
this.videos = new VideosClient2(client);
|
|
5457
5680
|
this.search = new SearchClient7(client);
|
|
@@ -5461,6 +5684,16 @@ var TikTokClient = class {
|
|
|
5461
5684
|
this.ads = new AdsClient(client);
|
|
5462
5685
|
this.reference = new ReferenceClient4(client);
|
|
5463
5686
|
}
|
|
5687
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
5688
|
+
/** Search TikTok advertisers. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5689
|
+
async searchTiktokAdvertisers(params = {}) {
|
|
5690
|
+
return this._gen.request("/v1/tiktok/ads/advertisers", { params });
|
|
5691
|
+
}
|
|
5692
|
+
/** Get TikTok ad detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5693
|
+
async getTiktokAdDetail(adId, params = {}) {
|
|
5694
|
+
return this._gen.request(`/v1/tiktok/ads/${adId}`, { params });
|
|
5695
|
+
}
|
|
5696
|
+
// --- END generated by sdk/codegen/facade ---
|
|
5464
5697
|
};
|
|
5465
5698
|
|
|
5466
5699
|
// src/ebay/search.ts
|
|
@@ -5544,10 +5777,9 @@ var ItemsClient2 = class {
|
|
|
5544
5777
|
* @throws NotFoundError - If the item doesn't exist.
|
|
5545
5778
|
*/
|
|
5546
5779
|
async get(itemId, options = {}) {
|
|
5547
|
-
return this.client.request(
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
);
|
|
5780
|
+
return this.client.request(`/v1/ebay/items/${itemId}`, {
|
|
5781
|
+
params: { domain: options.domain }
|
|
5782
|
+
});
|
|
5551
5783
|
}
|
|
5552
5784
|
/**
|
|
5553
5785
|
* Get the catalog product reviews shown on an eBay listing.
|
|
@@ -5557,16 +5789,13 @@ var ItemsClient2 = class {
|
|
|
5557
5789
|
* @returns Reviews response with reviews, aggregate rating, and histogram.
|
|
5558
5790
|
*/
|
|
5559
5791
|
async reviews(itemId, options = {}) {
|
|
5560
|
-
return this.client.request(
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
page: options.page,
|
|
5566
|
-
product_id: options.productId
|
|
5567
|
-
}
|
|
5792
|
+
return this.client.request(`/v1/ebay/items/${itemId}/reviews`, {
|
|
5793
|
+
params: {
|
|
5794
|
+
domain: options.domain,
|
|
5795
|
+
page: options.page,
|
|
5796
|
+
product_id: options.productId
|
|
5568
5797
|
}
|
|
5569
|
-
);
|
|
5798
|
+
});
|
|
5570
5799
|
}
|
|
5571
5800
|
};
|
|
5572
5801
|
|
|
@@ -5585,10 +5814,9 @@ var SellersClient2 = class {
|
|
|
5585
5814
|
* @throws NotFoundError - If the seller doesn't exist.
|
|
5586
5815
|
*/
|
|
5587
5816
|
async get(username, options = {}) {
|
|
5588
|
-
return this.client.request(
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
);
|
|
5817
|
+
return this.client.request(`/v1/ebay/sellers/${username}`, {
|
|
5818
|
+
params: { domain: options.domain }
|
|
5819
|
+
});
|
|
5592
5820
|
}
|
|
5593
5821
|
/**
|
|
5594
5822
|
* List the active listings of a single eBay seller.
|
|
@@ -5598,17 +5826,14 @@ var SellersClient2 = class {
|
|
|
5598
5826
|
* @returns Seller items response with result cards and pagination.
|
|
5599
5827
|
*/
|
|
5600
5828
|
async items(username, options = {}) {
|
|
5601
|
-
return this.client.request(
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
page: options.page,
|
|
5608
|
-
per_page: options.per_page
|
|
5609
|
-
}
|
|
5829
|
+
return this.client.request(`/v1/ebay/sellers/${username}/items`, {
|
|
5830
|
+
params: {
|
|
5831
|
+
domain: options.domain,
|
|
5832
|
+
query: options.query,
|
|
5833
|
+
page: options.page,
|
|
5834
|
+
per_page: options.per_page
|
|
5610
5835
|
}
|
|
5611
|
-
);
|
|
5836
|
+
});
|
|
5612
5837
|
}
|
|
5613
5838
|
/**
|
|
5614
5839
|
* Get a seller's recent feedback comments.
|
|
@@ -5618,10 +5843,9 @@ var SellersClient2 = class {
|
|
|
5618
5843
|
* @returns Seller feedback response with feedback entries and pagination.
|
|
5619
5844
|
*/
|
|
5620
5845
|
async feedback(username, options = {}) {
|
|
5621
|
-
return this.client.request(
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
);
|
|
5846
|
+
return this.client.request(`/v1/ebay/sellers/${username}/feedback`, {
|
|
5847
|
+
params: { domain: options.domain, page: options.page }
|
|
5848
|
+
});
|
|
5625
5849
|
}
|
|
5626
5850
|
};
|
|
5627
5851
|
|
|
@@ -5639,19 +5863,16 @@ var CategoriesClient = class {
|
|
|
5639
5863
|
* @returns Category response with result cards, facets, and pagination.
|
|
5640
5864
|
*/
|
|
5641
5865
|
async browse(categoryId, options = {}) {
|
|
5642
|
-
return this.client.request(
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
min_price: options.min_price,
|
|
5651
|
-
max_price: options.max_price
|
|
5652
|
-
}
|
|
5866
|
+
return this.client.request(`/v1/ebay/categories/${categoryId}/items`, {
|
|
5867
|
+
params: {
|
|
5868
|
+
domain: options.domain,
|
|
5869
|
+
page: options.page,
|
|
5870
|
+
per_page: options.per_page,
|
|
5871
|
+
sort_by: options.sort_by,
|
|
5872
|
+
min_price: options.min_price,
|
|
5873
|
+
max_price: options.max_price
|
|
5653
5874
|
}
|
|
5654
|
-
);
|
|
5875
|
+
});
|
|
5655
5876
|
}
|
|
5656
5877
|
/**
|
|
5657
5878
|
* List eBay's reference top-level category ids.
|
|
@@ -5705,6 +5926,110 @@ var EbayClient = class {
|
|
|
5705
5926
|
}
|
|
5706
5927
|
};
|
|
5707
5928
|
|
|
5929
|
+
// src/facebook/client.ts
|
|
5930
|
+
var FacebookClient = class {
|
|
5931
|
+
client;
|
|
5932
|
+
constructor(client) {
|
|
5933
|
+
this.client = client;
|
|
5934
|
+
}
|
|
5935
|
+
/** Search advertiser pages. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5936
|
+
async searchAdvertiserPages(params = {}) {
|
|
5937
|
+
return this.client.request("/v1/facebook/ads/pages/search", { params });
|
|
5938
|
+
}
|
|
5939
|
+
/** Get advertiser page info. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5940
|
+
async getAdvertiserPageInfo(pageId, params = {}) {
|
|
5941
|
+
return this.client.request(`/v1/facebook/ads/pages/${pageId}`, { params });
|
|
5942
|
+
}
|
|
5943
|
+
/** Search the Ad Library. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5944
|
+
async searchTheAdLibrary(params = {}) {
|
|
5945
|
+
return this.client.request("/v1/facebook/ads/search", { params });
|
|
5946
|
+
}
|
|
5947
|
+
/** Get an ad. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5948
|
+
async getAnAd(adArchiveId, params = {}) {
|
|
5949
|
+
return this.client.request(`/v1/facebook/ads/${adArchiveId}`, { params });
|
|
5950
|
+
}
|
|
5951
|
+
/** Get group detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5952
|
+
async getGroupDetail(groupId, params = {}) {
|
|
5953
|
+
return this.client.request(`/v1/facebook/groups/${groupId}`, { params });
|
|
5954
|
+
}
|
|
5955
|
+
/** Get group posts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5956
|
+
async getGroupPosts(groupId, params = {}) {
|
|
5957
|
+
return this.client.request(`/v1/facebook/groups/${groupId}/posts`, { params });
|
|
5958
|
+
}
|
|
5959
|
+
/** List categories. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5960
|
+
async listCategories(params = {}) {
|
|
5961
|
+
return this.client.request("/v1/facebook/marketplace/categories", { params });
|
|
5962
|
+
}
|
|
5963
|
+
/** Browse a Marketplace category. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5964
|
+
async browseAMarketplaceCategory(category, params = {}) {
|
|
5965
|
+
return this.client.request(`/v1/facebook/marketplace/category/${category}`, { params });
|
|
5966
|
+
}
|
|
5967
|
+
/** Get a Marketplace item. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5968
|
+
async getAMarketplaceItem(itemId, params = {}) {
|
|
5969
|
+
return this.client.request(`/v1/facebook/marketplace/item/${itemId}`, { params });
|
|
5970
|
+
}
|
|
5971
|
+
/** List locations. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5972
|
+
async listLocations(params = {}) {
|
|
5973
|
+
return this.client.request("/v1/facebook/marketplace/locations", { params });
|
|
5974
|
+
}
|
|
5975
|
+
/** Search Marketplace. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5976
|
+
async searchMarketplace(params = {}) {
|
|
5977
|
+
return this.client.request("/v1/facebook/marketplace/search", { params });
|
|
5978
|
+
}
|
|
5979
|
+
/** Get page detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5980
|
+
async getPageDetail(identifier, params = {}) {
|
|
5981
|
+
return this.client.request(`/v1/facebook/pages/${identifier}`, { params });
|
|
5982
|
+
}
|
|
5983
|
+
/** Get page posts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5984
|
+
async getPagePosts(identifier, params = {}) {
|
|
5985
|
+
return this.client.request(`/v1/facebook/pages/${identifier}/posts`, { params });
|
|
5986
|
+
}
|
|
5987
|
+
/** Get post detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5988
|
+
async getPostDetail(postId, params = {}) {
|
|
5989
|
+
return this.client.request(`/v1/facebook/posts/${postId}`, { params });
|
|
5990
|
+
}
|
|
5991
|
+
/** Get post comments. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5992
|
+
async getPostComments(postId, params = {}) {
|
|
5993
|
+
return this.client.request(`/v1/facebook/posts/${postId}/comments`, { params });
|
|
5994
|
+
}
|
|
5995
|
+
/** Get profile detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
5996
|
+
async getProfileDetail(identifier, params = {}) {
|
|
5997
|
+
return this.client.request(`/v1/facebook/profiles/${identifier}`, { params });
|
|
5998
|
+
}
|
|
5999
|
+
/** Get profile posts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6000
|
+
async getProfilePosts(identifier, params = {}) {
|
|
6001
|
+
return this.client.request(`/v1/facebook/profiles/${identifier}/posts`, { params });
|
|
6002
|
+
}
|
|
6003
|
+
/** Search everything. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6004
|
+
async searchEverything(params = {}) {
|
|
6005
|
+
return this.client.request("/v1/facebook/search", { params });
|
|
6006
|
+
}
|
|
6007
|
+
/** Search events. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6008
|
+
async searchEvents(params = {}) {
|
|
6009
|
+
return this.client.request("/v1/facebook/search/events", { params });
|
|
6010
|
+
}
|
|
6011
|
+
/** Search groups. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6012
|
+
async searchGroups(params = {}) {
|
|
6013
|
+
return this.client.request("/v1/facebook/search/groups", { params });
|
|
6014
|
+
}
|
|
6015
|
+
/** Search Pages. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6016
|
+
async searchPages(params = {}) {
|
|
6017
|
+
return this.client.request("/v1/facebook/search/pages", { params });
|
|
6018
|
+
}
|
|
6019
|
+
/** Search people. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6020
|
+
async searchPeople(params = {}) {
|
|
6021
|
+
return this.client.request("/v1/facebook/search/people", { params });
|
|
6022
|
+
}
|
|
6023
|
+
/** Search places. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6024
|
+
async searchPlaces(params = {}) {
|
|
6025
|
+
return this.client.request("/v1/facebook/search/places", { params });
|
|
6026
|
+
}
|
|
6027
|
+
/** Search posts. Generated from the OpenAPI spec; returns the raw response object. */
|
|
6028
|
+
async searchPosts(params = {}) {
|
|
6029
|
+
return this.client.request("/v1/facebook/search/posts", { params });
|
|
6030
|
+
}
|
|
6031
|
+
};
|
|
6032
|
+
|
|
5708
6033
|
// src/walmart/search.ts
|
|
5709
6034
|
var SearchClient9 = class {
|
|
5710
6035
|
constructor(client) {
|
|
@@ -5811,10 +6136,9 @@ var ProductsClient4 = class {
|
|
|
5811
6136
|
* @remarks 10 reviews per page — Walmart's page size, not adjustable.
|
|
5812
6137
|
*/
|
|
5813
6138
|
async reviews(itemId, params = {}) {
|
|
5814
|
-
return this.client.request(
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
);
|
|
6139
|
+
return this.client.request(`/v1/walmart/products/${itemId}/reviews`, {
|
|
6140
|
+
params: { page: params.page, sort: params.sort }
|
|
6141
|
+
});
|
|
5818
6142
|
}
|
|
5819
6143
|
};
|
|
5820
6144
|
|
|
@@ -5848,10 +6172,9 @@ var SellersClient3 = class {
|
|
|
5848
6172
|
* @param params - Optional page (1-10) and sort.
|
|
5849
6173
|
*/
|
|
5850
6174
|
async products(sellerId, query, params = {}) {
|
|
5851
|
-
return this.client.request(
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
);
|
|
6175
|
+
return this.client.request(`/v1/walmart/sellers/${sellerId}/products`, {
|
|
6176
|
+
params: { query, page: params.page, sort: params.sort }
|
|
6177
|
+
});
|
|
5855
6178
|
}
|
|
5856
6179
|
};
|
|
5857
6180
|
|
|
@@ -6607,10 +6930,9 @@ var VideosClient3 = class {
|
|
|
6607
6930
|
* @returns Related results with a continuation token.
|
|
6608
6931
|
*/
|
|
6609
6932
|
async related(videoId, options = {}) {
|
|
6610
|
-
return this.client.request(
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
);
|
|
6933
|
+
return this.client.request(`/v1/youtube/videos/${videoId}/related`, {
|
|
6934
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
6935
|
+
});
|
|
6614
6936
|
}
|
|
6615
6937
|
/**
|
|
6616
6938
|
* Get a page of top-level comments for a video.
|
|
@@ -6620,17 +6942,14 @@ var VideosClient3 = class {
|
|
|
6620
6942
|
* @returns A page of comments with sorting tokens and a continuation token.
|
|
6621
6943
|
*/
|
|
6622
6944
|
async comments(videoId, options = {}) {
|
|
6623
|
-
return this.client.request(
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
gl: options.gl,
|
|
6630
|
-
hl: options.hl
|
|
6631
|
-
}
|
|
6945
|
+
return this.client.request(`/v1/youtube/videos/${videoId}/comments`, {
|
|
6946
|
+
params: {
|
|
6947
|
+
sort_by: options.sort_by,
|
|
6948
|
+
continuation: options.continuation,
|
|
6949
|
+
gl: options.gl,
|
|
6950
|
+
hl: options.hl
|
|
6632
6951
|
}
|
|
6633
|
-
);
|
|
6952
|
+
});
|
|
6634
6953
|
}
|
|
6635
6954
|
/**
|
|
6636
6955
|
* Get a page of replies to a single comment.
|
|
@@ -6654,10 +6973,9 @@ var VideosClient3 = class {
|
|
|
6654
6973
|
* @returns The transcript with timed segments and full text.
|
|
6655
6974
|
*/
|
|
6656
6975
|
async transcript(videoId, options = {}) {
|
|
6657
|
-
return this.client.request(
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
);
|
|
6976
|
+
return this.client.request(`/v1/youtube/videos/${videoId}/transcript`, {
|
|
6977
|
+
params: { language: options.language, gl: options.gl, hl: options.hl }
|
|
6978
|
+
});
|
|
6661
6979
|
}
|
|
6662
6980
|
/**
|
|
6663
6981
|
* List a video's available caption tracks.
|
|
@@ -6667,10 +6985,9 @@ var VideosClient3 = class {
|
|
|
6667
6985
|
* @returns The available caption tracks and translation languages.
|
|
6668
6986
|
*/
|
|
6669
6987
|
async captions(videoId, options = {}) {
|
|
6670
|
-
return this.client.request(
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
);
|
|
6988
|
+
return this.client.request(`/v1/youtube/videos/${videoId}/captions`, {
|
|
6989
|
+
params: { gl: options.gl, hl: options.hl }
|
|
6990
|
+
});
|
|
6674
6991
|
}
|
|
6675
6992
|
/**
|
|
6676
6993
|
* Get a video's stream / format metadata (best-effort; URLs may be PO-token gated).
|
|
@@ -6680,10 +6997,9 @@ var VideosClient3 = class {
|
|
|
6680
6997
|
* @returns Streaming metadata with muxed and adaptive formats.
|
|
6681
6998
|
*/
|
|
6682
6999
|
async streams(videoId, options = {}) {
|
|
6683
|
-
return this.client.request(
|
|
6684
|
-
|
|
6685
|
-
|
|
6686
|
-
);
|
|
7000
|
+
return this.client.request(`/v1/youtube/videos/${videoId}/streams`, {
|
|
7001
|
+
params: { gl: options.gl, client: options.client }
|
|
7002
|
+
});
|
|
6687
7003
|
}
|
|
6688
7004
|
/**
|
|
6689
7005
|
* Get a page of live-chat (or chat-replay) messages for a video.
|
|
@@ -6693,17 +7009,14 @@ var VideosClient3 = class {
|
|
|
6693
7009
|
* @returns A page of live-chat messages with a continuation token.
|
|
6694
7010
|
*/
|
|
6695
7011
|
async liveChat(videoId, options = {}) {
|
|
6696
|
-
return this.client.request(
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
gl: options.gl,
|
|
6703
|
-
hl: options.hl
|
|
6704
|
-
}
|
|
7012
|
+
return this.client.request(`/v1/youtube/videos/${videoId}/live_chat`, {
|
|
7013
|
+
params: {
|
|
7014
|
+
continuation: options.continuation,
|
|
7015
|
+
replay: options.replay,
|
|
7016
|
+
gl: options.gl,
|
|
7017
|
+
hl: options.hl
|
|
6705
7018
|
}
|
|
6706
|
-
);
|
|
7019
|
+
});
|
|
6707
7020
|
}
|
|
6708
7021
|
/**
|
|
6709
7022
|
* Fetch detail for up to 50 videos concurrently.
|
|
@@ -6750,10 +7063,9 @@ var ChannelsClient = class {
|
|
|
6750
7063
|
* @returns A page of video cards with a continuation token.
|
|
6751
7064
|
*/
|
|
6752
7065
|
async videos(channelId, options = {}) {
|
|
6753
|
-
return this.client.request(
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
);
|
|
7066
|
+
return this.client.request(`/v1/youtube/channels/${channelId}/videos`, {
|
|
7067
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7068
|
+
});
|
|
6757
7069
|
}
|
|
6758
7070
|
/**
|
|
6759
7071
|
* Get a page of a channel's Shorts.
|
|
@@ -6763,10 +7075,9 @@ var ChannelsClient = class {
|
|
|
6763
7075
|
* @returns A page of Shorts cards with a continuation token.
|
|
6764
7076
|
*/
|
|
6765
7077
|
async shorts(channelId, options = {}) {
|
|
6766
|
-
return this.client.request(
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
);
|
|
7078
|
+
return this.client.request(`/v1/youtube/channels/${channelId}/shorts`, {
|
|
7079
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7080
|
+
});
|
|
6770
7081
|
}
|
|
6771
7082
|
/**
|
|
6772
7083
|
* Get a page of a channel's live streams.
|
|
@@ -6776,10 +7087,9 @@ var ChannelsClient = class {
|
|
|
6776
7087
|
* @returns A page of stream cards with a continuation token.
|
|
6777
7088
|
*/
|
|
6778
7089
|
async streams(channelId, options = {}) {
|
|
6779
|
-
return this.client.request(
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
);
|
|
7090
|
+
return this.client.request(`/v1/youtube/channels/${channelId}/streams`, {
|
|
7091
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7092
|
+
});
|
|
6783
7093
|
}
|
|
6784
7094
|
/**
|
|
6785
7095
|
* Get a page of a channel's playlists.
|
|
@@ -6789,10 +7099,9 @@ var ChannelsClient = class {
|
|
|
6789
7099
|
* @returns A page of playlist cards with a continuation token.
|
|
6790
7100
|
*/
|
|
6791
7101
|
async playlists(channelId, options = {}) {
|
|
6792
|
-
return this.client.request(
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
);
|
|
7102
|
+
return this.client.request(`/v1/youtube/channels/${channelId}/playlists`, {
|
|
7103
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7104
|
+
});
|
|
6796
7105
|
}
|
|
6797
7106
|
/**
|
|
6798
7107
|
* Get a page of a channel's community posts.
|
|
@@ -6802,10 +7111,9 @@ var ChannelsClient = class {
|
|
|
6802
7111
|
* @returns A page of community posts with a continuation token.
|
|
6803
7112
|
*/
|
|
6804
7113
|
async community(channelId, options = {}) {
|
|
6805
|
-
return this.client.request(
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
);
|
|
7114
|
+
return this.client.request(`/v1/youtube/channels/${channelId}/community`, {
|
|
7115
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7116
|
+
});
|
|
6809
7117
|
}
|
|
6810
7118
|
/**
|
|
6811
7119
|
* Get a channel's lightweight about payload.
|
|
@@ -6815,10 +7123,9 @@ var ChannelsClient = class {
|
|
|
6815
7123
|
* @returns The channel about payload.
|
|
6816
7124
|
*/
|
|
6817
7125
|
async about(channelId, options = {}) {
|
|
6818
|
-
return this.client.request(
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
);
|
|
7126
|
+
return this.client.request(`/v1/youtube/channels/${channelId}/about`, {
|
|
7127
|
+
params: { gl: options.gl, hl: options.hl }
|
|
7128
|
+
});
|
|
6822
7129
|
}
|
|
6823
7130
|
/**
|
|
6824
7131
|
* Get a channel's subscriber count (fast).
|
|
@@ -6841,17 +7148,14 @@ var ChannelsClient = class {
|
|
|
6841
7148
|
* @returns A page of search results scoped to the channel.
|
|
6842
7149
|
*/
|
|
6843
7150
|
async search(channelId, options) {
|
|
6844
|
-
return this.client.request(
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
gl: options.gl,
|
|
6851
|
-
hl: options.hl
|
|
6852
|
-
}
|
|
7151
|
+
return this.client.request(`/v1/youtube/channels/${channelId}/search`, {
|
|
7152
|
+
params: {
|
|
7153
|
+
query: options.query,
|
|
7154
|
+
continuation: options.continuation,
|
|
7155
|
+
gl: options.gl,
|
|
7156
|
+
hl: options.hl
|
|
6853
7157
|
}
|
|
6854
|
-
);
|
|
7158
|
+
});
|
|
6855
7159
|
}
|
|
6856
7160
|
/**
|
|
6857
7161
|
* Resolve a @handle or URL to canonical YouTube ids.
|
|
@@ -6893,10 +7197,9 @@ var PlaylistsClient = class {
|
|
|
6893
7197
|
* @returns A page of playlist items with a continuation token.
|
|
6894
7198
|
*/
|
|
6895
7199
|
async items(playlistId, options = {}) {
|
|
6896
|
-
return this.client.request(
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
);
|
|
7200
|
+
return this.client.request(`/v1/youtube/playlists/${playlistId}/items`, {
|
|
7201
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7202
|
+
});
|
|
6900
7203
|
}
|
|
6901
7204
|
/**
|
|
6902
7205
|
* Resolve an auto-generated mix / radio (RD…) queue.
|
|
@@ -6939,10 +7242,9 @@ var CommunityClient = class {
|
|
|
6939
7242
|
* @returns A page of comments with a continuation token.
|
|
6940
7243
|
*/
|
|
6941
7244
|
async comments(postId, options = {}) {
|
|
6942
|
-
return this.client.request(
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
);
|
|
7245
|
+
return this.client.request(`/v1/youtube/posts/${postId}/comments`, {
|
|
7246
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7247
|
+
});
|
|
6946
7248
|
}
|
|
6947
7249
|
};
|
|
6948
7250
|
|
|
@@ -6973,10 +7275,9 @@ var ShortsClient2 = class {
|
|
|
6973
7275
|
* @returns A page of Shorts cards with a continuation token.
|
|
6974
7276
|
*/
|
|
6975
7277
|
async bySound(soundId, options = {}) {
|
|
6976
|
-
return this.client.request(
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
);
|
|
7278
|
+
return this.client.request(`/v1/youtube/shorts/by_sound/${soundId}`, {
|
|
7279
|
+
params: { continuation: options.continuation, gl: options.gl, hl: options.hl }
|
|
7280
|
+
});
|
|
6980
7281
|
}
|
|
6981
7282
|
};
|
|
6982
7283
|
|
|
@@ -7315,10 +7616,9 @@ var AdsClient2 = class {
|
|
|
7315
7616
|
* @returns Similar-ads response.
|
|
7316
7617
|
*/
|
|
7317
7618
|
async similar(listId, options = {}) {
|
|
7318
|
-
return this.client.request(
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
);
|
|
7619
|
+
return this.client.request(`/v1/leboncoin/ads/${listId}/similar`, {
|
|
7620
|
+
params: { limit: options.limit }
|
|
7621
|
+
});
|
|
7322
7622
|
}
|
|
7323
7623
|
};
|
|
7324
7624
|
|
|
@@ -7336,9 +7636,7 @@ var SellersClient4 = class {
|
|
|
7336
7636
|
* @throws NotFoundError - If the seller doesn't exist.
|
|
7337
7637
|
*/
|
|
7338
7638
|
async get(userId) {
|
|
7339
|
-
return this.client.request(
|
|
7340
|
-
`/v1/leboncoin/sellers/${userId}`
|
|
7341
|
-
);
|
|
7639
|
+
return this.client.request(`/v1/leboncoin/sellers/${userId}`);
|
|
7342
7640
|
}
|
|
7343
7641
|
/**
|
|
7344
7642
|
* List a Leboncoin seller's active ads.
|
|
@@ -7348,10 +7646,9 @@ var SellersClient4 = class {
|
|
|
7348
7646
|
* @returns Seller listings response with ads and pagination.
|
|
7349
7647
|
*/
|
|
7350
7648
|
async listings(userId, options = {}) {
|
|
7351
|
-
return this.client.request(
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
);
|
|
7649
|
+
return this.client.request(`/v1/leboncoin/sellers/${userId}/listings`, {
|
|
7650
|
+
params: { page: options.page, limit: options.limit }
|
|
7651
|
+
});
|
|
7355
7652
|
}
|
|
7356
7653
|
};
|
|
7357
7654
|
|
|
@@ -7384,10 +7681,9 @@ var ReferenceClient13 = class {
|
|
|
7384
7681
|
* @returns Departments response.
|
|
7385
7682
|
*/
|
|
7386
7683
|
async departments(options = {}) {
|
|
7387
|
-
return this.client.request(
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
);
|
|
7684
|
+
return this.client.request("/v1/leboncoin/departments", {
|
|
7685
|
+
params: { region_id: options.region_id }
|
|
7686
|
+
});
|
|
7391
7687
|
}
|
|
7392
7688
|
/**
|
|
7393
7689
|
* Resolve a place name to Leboncoin location ids (for building filters).
|
|
@@ -7396,10 +7692,9 @@ var ReferenceClient13 = class {
|
|
|
7396
7692
|
* @returns Location search response with suggestions.
|
|
7397
7693
|
*/
|
|
7398
7694
|
async locations(query) {
|
|
7399
|
-
return this.client.request(
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
);
|
|
7695
|
+
return this.client.request("/v1/leboncoin/locations/search", {
|
|
7696
|
+
params: { q: query }
|
|
7697
|
+
});
|
|
7403
7698
|
}
|
|
7404
7699
|
/**
|
|
7405
7700
|
* List the supported Leboncoin markets (France is the single market).
|
|
@@ -7556,6 +7851,7 @@ var ReferenceClient14 = class {
|
|
|
7556
7851
|
|
|
7557
7852
|
// src/zillow/client.ts
|
|
7558
7853
|
var ZillowClient = class {
|
|
7854
|
+
_gen;
|
|
7559
7855
|
/** Client for property search and location autocomplete */
|
|
7560
7856
|
search;
|
|
7561
7857
|
/** Client for full property detail */
|
|
@@ -7570,11 +7866,18 @@ var ZillowClient = class {
|
|
|
7570
7866
|
* @param client - The base HTTP client for making requests.
|
|
7571
7867
|
*/
|
|
7572
7868
|
constructor(client) {
|
|
7869
|
+
this._gen = client;
|
|
7573
7870
|
this.search = new SearchClient17(client);
|
|
7574
7871
|
this.properties = new PropertiesClient2(client);
|
|
7575
7872
|
this.agent = new AgentClient(client);
|
|
7576
7873
|
this.reference = new ReferenceClient14(client);
|
|
7577
7874
|
}
|
|
7875
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
7876
|
+
/** Get property detail by URL. Generated from the OpenAPI spec; returns the raw response object. */
|
|
7877
|
+
async getPropertyDetailByUrl(params = {}) {
|
|
7878
|
+
return this._gen.request("/v1/zillow/property", { params });
|
|
7879
|
+
}
|
|
7880
|
+
// --- END generated by sdk/codegen/facade ---
|
|
7578
7881
|
};
|
|
7579
7882
|
|
|
7580
7883
|
// src/immobiliare/client.ts
|
|
@@ -7839,10 +8142,36 @@ var LoopNetClient = class {
|
|
|
7839
8142
|
}
|
|
7840
8143
|
};
|
|
7841
8144
|
|
|
8145
|
+
// src/perplexity/client.ts
|
|
8146
|
+
var PerplexityClient = class {
|
|
8147
|
+
client;
|
|
8148
|
+
constructor(client) {
|
|
8149
|
+
this.client = client;
|
|
8150
|
+
}
|
|
8151
|
+
/** Ask Perplexity a question. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8152
|
+
async askPerplexityAQuestion(params = {}) {
|
|
8153
|
+
return this.client.request("/v1/perplexity/ask", { params });
|
|
8154
|
+
}
|
|
8155
|
+
/** Ask Perplexity a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
8156
|
+
async askPerplexityAQuestionPost(body, params = {}) {
|
|
8157
|
+
return this.client.request("/v1/perplexity/ask", { method: "POST", params, body });
|
|
8158
|
+
}
|
|
8159
|
+
/** Measure a brand's visibility in a Perplexity answer. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8160
|
+
async measureABrandSVisibilityInAPerplexityAnswer(params = {}) {
|
|
8161
|
+
return this.client.request("/v1/perplexity/brand-visibility", { params });
|
|
8162
|
+
}
|
|
8163
|
+
/** Measure a brand's visibility in a Perplexity answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
8164
|
+
async measureABrandSVisibilityInAPerplexityAnswerPost(body, params = {}) {
|
|
8165
|
+
return this.client.request("/v1/perplexity/brand-visibility", { method: "POST", params, body });
|
|
8166
|
+
}
|
|
8167
|
+
};
|
|
8168
|
+
|
|
7842
8169
|
// src/depop/client.ts
|
|
7843
8170
|
var DepopClient = class {
|
|
8171
|
+
_gen;
|
|
7844
8172
|
client;
|
|
7845
8173
|
constructor(client) {
|
|
8174
|
+
this._gen = client;
|
|
7846
8175
|
this.client = client;
|
|
7847
8176
|
}
|
|
7848
8177
|
/**
|
|
@@ -7934,6 +8263,12 @@ var DepopClient = class {
|
|
|
7934
8263
|
async listMarkets() {
|
|
7935
8264
|
return this.client.request("/v1/depop/markets");
|
|
7936
8265
|
}
|
|
8266
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
8267
|
+
/** Get product detail. Generated from the OpenAPI spec; returns the raw response object. */
|
|
8268
|
+
async getProductDetail(productId, params = {}) {
|
|
8269
|
+
return this._gen.request(`/v1/depop/products/${productId}`, { params });
|
|
8270
|
+
}
|
|
8271
|
+
// --- END generated by sdk/codegen/facade ---
|
|
7937
8272
|
};
|
|
7938
8273
|
|
|
7939
8274
|
// src/linkedin/client.ts
|
|
@@ -8228,6 +8563,7 @@ var ReferenceClient16 = class {
|
|
|
8228
8563
|
|
|
8229
8564
|
// src/chatgpt/client.ts
|
|
8230
8565
|
var ChatGPTClient = class {
|
|
8566
|
+
_gen;
|
|
8231
8567
|
/** Client for asking ChatGPT a question */
|
|
8232
8568
|
ask;
|
|
8233
8569
|
/** Client for AEO/GEO brand-visibility analysis */
|
|
@@ -8240,10 +8576,21 @@ var ChatGPTClient = class {
|
|
|
8240
8576
|
* @param client - The base HTTP client for making requests.
|
|
8241
8577
|
*/
|
|
8242
8578
|
constructor(client) {
|
|
8579
|
+
this._gen = client;
|
|
8243
8580
|
this.ask = new AskClient(client);
|
|
8244
8581
|
this.brand = new BrandClient(client);
|
|
8245
8582
|
this.reference = new ReferenceClient16(client);
|
|
8246
8583
|
}
|
|
8584
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
8585
|
+
/** Ask ChatGPT a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
8586
|
+
async askChatgptAQuestionPost(body, params = {}) {
|
|
8587
|
+
return this._gen.request("/v1/chatgpt/ask", { method: "POST", params, body });
|
|
8588
|
+
}
|
|
8589
|
+
/** Measure a brand's visibility in a ChatGPT answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
8590
|
+
async measureABrandSVisibilityInAChatgptAnswerPost(body, params = {}) {
|
|
8591
|
+
return this._gen.request("/v1/chatgpt/brand-visibility", { method: "POST", params, body });
|
|
8592
|
+
}
|
|
8593
|
+
// --- END generated by sdk/codegen/facade ---
|
|
8247
8594
|
};
|
|
8248
8595
|
|
|
8249
8596
|
// src/gemini/ask.ts
|
|
@@ -8337,6 +8684,7 @@ var BrandClient2 = class {
|
|
|
8337
8684
|
|
|
8338
8685
|
// src/gemini/client.ts
|
|
8339
8686
|
var GeminiClient = class {
|
|
8687
|
+
_gen;
|
|
8340
8688
|
/** Client for asking Gemini a question */
|
|
8341
8689
|
ask;
|
|
8342
8690
|
/** Client for AEO/GEO brand-visibility analysis */
|
|
@@ -8347,9 +8695,20 @@ var GeminiClient = class {
|
|
|
8347
8695
|
* @param client - The base HTTP client for making requests.
|
|
8348
8696
|
*/
|
|
8349
8697
|
constructor(client) {
|
|
8698
|
+
this._gen = client;
|
|
8350
8699
|
this.ask = new AskClient2(client);
|
|
8351
8700
|
this.brand = new BrandClient2(client);
|
|
8352
8701
|
}
|
|
8702
|
+
// --- BEGIN generated by sdk/codegen/facade — do not edit ---
|
|
8703
|
+
/** Ask Gemini a question (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
8704
|
+
async askGeminiAQuestionPost(body, params = {}) {
|
|
8705
|
+
return this._gen.request("/v1/gemini/ask", { method: "POST", params, body });
|
|
8706
|
+
}
|
|
8707
|
+
/** Measure a brand's visibility in a Gemini answer (POST). Generated from the OpenAPI spec; returns the raw response object. */
|
|
8708
|
+
async measureABrandSVisibilityInAGeminiAnswerPost(body, params = {}) {
|
|
8709
|
+
return this._gen.request("/v1/gemini/brand-visibility", { method: "POST", params, body });
|
|
8710
|
+
}
|
|
8711
|
+
// --- END generated by sdk/codegen/facade ---
|
|
8353
8712
|
};
|
|
8354
8713
|
|
|
8355
8714
|
// src/client.ts
|
|
@@ -8363,15 +8722,25 @@ var ScrapeBadger = class {
|
|
|
8363
8722
|
vinted;
|
|
8364
8723
|
/** Google Scraper API client — 19 Google product APIs */
|
|
8365
8724
|
google;
|
|
8725
|
+
/** Google_Play API client. (Generated from the OpenAPI spec.) */
|
|
8726
|
+
google_play;
|
|
8727
|
+
/** Idealista API client. (Generated from the OpenAPI spec.) */
|
|
8728
|
+
idealista;
|
|
8366
8729
|
/** Reddit scraper API client */
|
|
8367
8730
|
reddit;
|
|
8368
8731
|
/** Apartments.com scraper API client — search + property with unit-level pricing (US) */
|
|
8369
8732
|
apartments;
|
|
8733
|
+
/** App_Store API client. (Generated from the OpenAPI spec.) */
|
|
8734
|
+
app_store;
|
|
8370
8735
|
/** Instagram scraper API client — users, media, search, hashtags, locations, audio */
|
|
8371
8736
|
instagram;
|
|
8372
8737
|
/** Redfin scraper API client — search, property, agent, autocomplete, markets (redfin.com, US) */
|
|
8373
8738
|
redfin;
|
|
8374
8739
|
/** Amazon scraper API client — 14 endpoints */
|
|
8740
|
+
/** Account API client. (Generated from the OpenAPI spec.) */
|
|
8741
|
+
account;
|
|
8742
|
+
/** Airbnb API client. (Generated from the OpenAPI spec.) */
|
|
8743
|
+
airbnb;
|
|
8375
8744
|
amazon;
|
|
8376
8745
|
/** Shopee scraper API client — 6 endpoints across 11 markets */
|
|
8377
8746
|
shopee;
|
|
@@ -8379,6 +8748,8 @@ var ScrapeBadger = class {
|
|
|
8379
8748
|
tiktok;
|
|
8380
8749
|
/** eBay scraper API client — 12 endpoints across 18 markets */
|
|
8381
8750
|
ebay;
|
|
8751
|
+
/** Facebook API client. (Generated from the OpenAPI spec.) */
|
|
8752
|
+
facebook;
|
|
8382
8753
|
/** Walmart scraper API client — 11 endpoints (walmart.com, US-only) */
|
|
8383
8754
|
walmart;
|
|
8384
8755
|
/** DuckDuckGo scraper API client — search, images, news, videos, autocomplete, instant, regions */
|
|
@@ -8403,6 +8774,8 @@ var ScrapeBadger = class {
|
|
|
8403
8774
|
immobiliare;
|
|
8404
8775
|
/** LoopNet scraper API client — commercial real estate across US/CA/UK/FR/ES (search, listing, broker, markets, property types) */
|
|
8405
8776
|
loopnet;
|
|
8777
|
+
/** Perplexity API client. (Generated from the OpenAPI spec.) */
|
|
8778
|
+
perplexity;
|
|
8406
8779
|
/** Depop scraper API client — search, product, user, user products, markets (www.depop.com, 10 markets) */
|
|
8407
8780
|
depop;
|
|
8408
8781
|
/** LinkedIn scraper API client — 11 no-auth endpoints (jobs, company, school, profile, post, article, learning, geo) */
|
|
@@ -8449,14 +8822,20 @@ var ScrapeBadger = class {
|
|
|
8449
8822
|
this.web = new WebClient(this.baseClient);
|
|
8450
8823
|
this.vinted = new VintedClient(this.baseClient);
|
|
8451
8824
|
this.google = new GoogleClient(this.baseClient);
|
|
8825
|
+
this.google_play = new GooglePlayClient(this.baseClient);
|
|
8826
|
+
this.idealista = new IdealistaClient(this.baseClient);
|
|
8452
8827
|
this.reddit = new RedditClient(this.baseClient);
|
|
8453
8828
|
this.apartments = new ApartmentsClient(this.baseClient);
|
|
8829
|
+
this.app_store = new AppStoreClient(this.baseClient);
|
|
8454
8830
|
this.instagram = new InstagramClient(this.baseClient);
|
|
8455
8831
|
this.redfin = new RedfinClient(this.baseClient);
|
|
8832
|
+
this.account = new AccountClient(this.baseClient);
|
|
8833
|
+
this.airbnb = new AirbnbClient(this.baseClient);
|
|
8456
8834
|
this.amazon = new AmazonClient(this.baseClient);
|
|
8457
8835
|
this.shopee = new ShopeeClient(this.baseClient);
|
|
8458
8836
|
this.tiktok = new TikTokClient(this.baseClient);
|
|
8459
8837
|
this.ebay = new EbayClient(this.baseClient);
|
|
8838
|
+
this.facebook = new FacebookClient(this.baseClient);
|
|
8460
8839
|
this.walmart = new WalmartClient(this.baseClient);
|
|
8461
8840
|
this.duckduckgo = new DuckDuckGoClient(this.baseClient);
|
|
8462
8841
|
this.bing = new BingClient(this.baseClient);
|
|
@@ -8469,6 +8848,7 @@ var ScrapeBadger = class {
|
|
|
8469
8848
|
this.zillow = new ZillowClient(this.baseClient);
|
|
8470
8849
|
this.immobiliare = new ImmobiliareClient(this.baseClient);
|
|
8471
8850
|
this.loopnet = new LoopNetClient(this.baseClient);
|
|
8851
|
+
this.perplexity = new PerplexityClient(this.baseClient);
|
|
8472
8852
|
this.depop = new DepopClient(this.baseClient);
|
|
8473
8853
|
this.linkedin = new LinkedInClient(this.baseClient);
|
|
8474
8854
|
this.chatgpt = new ChatGPTClient(this.baseClient);
|