From 13dbe2dbe249d4e6371d58af5821da6afdfb62de Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 22:50:26 +0000 Subject: [PATCH 1/2] feat(search): add search_type parameter for People Search routing Adds the `search_type` parameter to the Search API. Set `search_type: "people"` on a /search request to route the query through the People Search backend, which returns LinkedIn-style professional profiles instead of general web results. People search allows up to 50 max_results (vs 20 for default web search). Usage: client.search.create(query="VP of Eng at Stripe", search_type="people") Backend support has been live since 2026-04-16; this brings the SDK into alignment with the documented behavior on docs.perplexity.ai. --- .stats.yml | 4 ++-- src/resources/search.ts | 6 ++++++ tests/api-resources/search.test.ts | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7936813..04be40b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 10 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-cefddb763d493b69465328583ef47cf95655d9cdb3dd0f2c8680fd9679f3c8d8.yml -openapi_spec_hash: 72274397b70c787db6db52dfd34a75ee +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/perplexity-ai/perplexity-8deeee7ec30ff9d4ce52c48452d3660f806e614f14bb8f77209ff43ac449b60e.yml +openapi_spec_hash: 2334e8ee2ebe0d944472ad9385bb79e0 config_hash: e09a1767e929614701fb498eaaac682d diff --git a/src/resources/search.ts b/src/resources/search.ts index 3465db6..44b743e 100644 --- a/src/resources/search.ts +++ b/src/resources/search.ts @@ -63,6 +63,12 @@ export interface SearchCreateParams { search_mode?: 'web' | 'academic' | 'sec' | null; search_recency_filter?: 'hour' | 'day' | 'week' | 'month' | 'year' | null; + + /** + * Search type — "web" for general web search, "people" for people search. + * max_results above 20 is only supported for people search. + */ + search_type?: 'web' | 'people' | null; } export declare namespace Search { diff --git a/tests/api-resources/search.test.ts b/tests/api-resources/search.test.ts index 4ecb303..009f0df 100644 --- a/tests/api-resources/search.test.ts +++ b/tests/api-resources/search.test.ts @@ -37,6 +37,7 @@ describe('resource search', () => { search_language_filter: ['string'], search_mode: 'web', search_recency_filter: 'hour', + search_type: 'web', }); }); }); From 36d1f4acac552b74194b83285fc9145eb63ebc5c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 22:50:46 +0000 Subject: [PATCH 2/2] release: 0.29.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9800444..8316a6d 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.28.0" + ".": "0.29.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 508ed4e..4fb2720 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.29.0 (2026-05-13) + +Full Changelog: [v0.28.0...v0.29.0](https://github.com/perplexityai/perplexity-node/compare/v0.28.0...v0.29.0) + +### Features + +* **search:** add search_type parameter for People Search routing ([13dbe2d](https://github.com/perplexityai/perplexity-node/commit/13dbe2dbe249d4e6371d58af5821da6afdfb62de)) + ## 0.28.0 (2026-05-13) Full Changelog: [v0.27.0...v0.28.0](https://github.com/perplexityai/perplexity-node/compare/v0.27.0...v0.28.0) diff --git a/package.json b/package.json index 83456ed..747f586 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@perplexity-ai/perplexity_ai", - "version": "0.28.0", + "version": "0.29.0", "description": "The official TypeScript library for the Perplexity API", "author": "Perplexity ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 3e76cc4..bef2b64 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.28.0'; // x-release-please-version +export const VERSION = '0.29.0'; // x-release-please-version