Skip to content

Commit bc595a5

Browse files
feat: Add free-text search to remaining paginated list endpoints
1 parent 2cde4eb commit bc595a5

17 files changed

Lines changed: 82 additions & 10 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 120
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-d26459bd3514237e8d757be3cbdc76ca62f6083504b85601e57db830888964f7.yml
3-
openapi_spec_hash: 5dd151a8099398819a97692c1c60c3c6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-cde481b2f320ce48f83db84ae96226b0e7568146c9387c4fefebf286ecb0dd0a.yml
3+
openapi_spec_hash: 6bd86d767290fcd7e2a6aae26dff5417
44
config_hash: 03c7e57f268c750e2415831662e95969

src/resources/auth/connections.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,11 @@ export interface ConnectionListParams extends OffsetPaginationParams {
13981398
* Filter by profile name
13991399
*/
14001400
profile_name?: string;
1401+
1402+
/**
1403+
* Search auth connections by ID, domain, or profile name.
1404+
*/
1405+
query?: string;
14011406
}
14021407

14031408
export interface ConnectionLoginParams {

src/resources/browser-pools.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,12 @@ export interface BrowserPoolUpdateParams {
609609
viewport?: Shared.BrowserViewport;
610610
}
611611

612-
export interface BrowserPoolListParams extends OffsetPaginationParams {}
612+
export interface BrowserPoolListParams extends OffsetPaginationParams {
613+
/**
614+
* Search browser pools by name or ID.
615+
*/
616+
query?: string;
617+
}
613618

614619
export interface BrowserPoolDeleteParams {
615620
/**

src/resources/credential-providers.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,12 @@ export interface CredentialProviderUpdateParams {
344344
priority?: number;
345345
}
346346

347-
export interface CredentialProviderListParams extends OffsetPaginationParams {}
347+
export interface CredentialProviderListParams extends OffsetPaginationParams {
348+
/**
349+
* Search credential providers by name or ID.
350+
*/
351+
query?: string;
352+
}
348353

349354
export declare namespace CredentialProviders {
350355
export {

src/resources/credentials.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,11 @@ export interface CredentialListParams extends OffsetPaginationParams {
305305
* Filter by domain
306306
*/
307307
domain?: string;
308+
309+
/**
310+
* Search credentials by name, domain, or ID.
311+
*/
312+
query?: string;
308313
}
309314

310315
export declare namespace Credentials {

src/resources/deployments.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,11 @@ export interface DeploymentListParams extends OffsetPaginationParams {
469469
* Filter results by application version. Requires app_name to be set.
470470
*/
471471
app_version?: string;
472+
473+
/**
474+
* Search deployments by ID or app name.
475+
*/
476+
query?: string;
472477
}
473478

474479
export interface DeploymentFollowParams {

src/resources/extensions.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,12 @@ export interface ExtensionUploadResponse {
177177
name?: string | null;
178178
}
179179

180-
export interface ExtensionListParams extends OffsetPaginationParams {}
180+
export interface ExtensionListParams extends OffsetPaginationParams {
181+
/**
182+
* Search extensions by name or ID.
183+
*/
184+
query?: string;
185+
}
181186

182187
export interface ExtensionDownloadFromChromeStoreParams {
183188
/**

src/resources/invocations.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ export interface InvocationListParams extends OffsetPaginationParams {
613613
*/
614614
deployment_id?: string;
615615

616+
/**
617+
* Search invocations by ID, app name, or action name.
618+
*/
619+
query?: string;
620+
616621
/**
617622
* Show invocations that have started since the given time (RFC timestamps or
618623
* durations like 5m).

src/resources/proxies.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,12 @@ export namespace ProxyCreateParams {
824824
}
825825
}
826826

827-
export interface ProxyListParams extends OffsetPaginationParams {}
827+
export interface ProxyListParams extends OffsetPaginationParams {
828+
/**
829+
* Search proxies by name, host, IP address, or ID.
830+
*/
831+
query?: string;
832+
}
828833

829834
export interface ProxyCheckParams {
830835
/**

tests/api-resources/auth/connections.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ describe('resource connections', () => {
9191
limit: 100,
9292
offset: 0,
9393
profile_name: 'profile_name',
94+
query: 'query',
9495
},
9596
{ path: '/_stainless_unknown_path' },
9697
),

0 commit comments

Comments
 (0)