Skip to content

Commit 6011556

Browse files
feat: Add exact-match name filter to list endpoints
1 parent e27f37d commit 6011556

19 files changed

Lines changed: 138 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 127
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-6c7cbaefd8a84ec26a1677681f37041323290080dac3fd1a409bb7cd01dd2ae3.yml
3-
openapi_spec_hash: 75085a25c8a5cdb5417f0dbfad0ed6b6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-b20fcf2fc1cdb91b51ffd354adcd12d63b950ea98b69e13bee6a78a58498c2cd.yml
3+
openapi_spec_hash: bc8b527a963dd2c2d74b6f9e6ca56652
44
config_hash: 77ee715aa17061166f9a02b264a21b8d

src/kernel/resources/api_keys.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ def list(
188188
*,
189189
include_deleted: bool | Omit = omit,
190190
limit: int | Omit = omit,
191+
name: str | Omit = omit,
191192
offset: int | Omit = omit,
192193
query: str | Omit = omit,
193194
sort_by: Literal["created_at", "name", "expires_at"] | Omit = omit,
@@ -210,6 +211,11 @@ def list(
210211
211212
limit: Maximum number of results to return
212213
214+
name: Exact-match filter on API key name using the database collation. In production,
215+
matching is case- and accent-insensitive. Names are not required to be unique,
216+
so multiple keys may match. When status=all or include_deleted=true is set,
217+
soft-deleted keys with the same name may also match.
218+
213219
offset: Number of results to skip
214220
215221
query: Case-insensitive substring match against API key name, creator, and project. API
@@ -243,6 +249,7 @@ def list(
243249
{
244250
"include_deleted": include_deleted,
245251
"limit": limit,
252+
"name": name,
246253
"offset": offset,
247254
"query": query,
248255
"sort_by": sort_by,
@@ -499,6 +506,7 @@ def list(
499506
*,
500507
include_deleted: bool | Omit = omit,
501508
limit: int | Omit = omit,
509+
name: str | Omit = omit,
502510
offset: int | Omit = omit,
503511
query: str | Omit = omit,
504512
sort_by: Literal["created_at", "name", "expires_at"] | Omit = omit,
@@ -521,6 +529,11 @@ def list(
521529
522530
limit: Maximum number of results to return
523531
532+
name: Exact-match filter on API key name using the database collation. In production,
533+
matching is case- and accent-insensitive. Names are not required to be unique,
534+
so multiple keys may match. When status=all or include_deleted=true is set,
535+
soft-deleted keys with the same name may also match.
536+
524537
offset: Number of results to skip
525538
526539
query: Case-insensitive substring match against API key name, creator, and project. API
@@ -554,6 +567,7 @@ def list(
554567
{
555568
"include_deleted": include_deleted,
556569
"limit": limit,
570+
"name": name,
557571
"offset": offset,
558572
"query": query,
559573
"sort_by": sort_by,

src/kernel/resources/browser_pools.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ def list(
361361
self,
362362
*,
363363
limit: int | Omit = omit,
364+
name: str | Omit = omit,
364365
offset: int | Omit = omit,
365366
query: str | Omit = omit,
366367
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -376,6 +377,11 @@ def list(
376377
Args:
377378
limit: Limit the number of browser pools to return.
378379
380+
name: Exact-match filter on browser pool name using the database collation. In
381+
production, matching is case- and accent-insensitive. During the default-project
382+
migration, unscoped requests prefer a concrete default-project browser pool over
383+
a legacy unscoped browser pool with the same name.
384+
379385
offset: Offset the number of browser pools to return.
380386
381387
query: Case-insensitive substring match against browser pool name. IDs match by exact
@@ -400,6 +406,7 @@ def list(
400406
query=maybe_transform(
401407
{
402408
"limit": limit,
409+
"name": name,
403410
"offset": offset,
404411
"query": query,
405412
},
@@ -929,6 +936,7 @@ def list(
929936
self,
930937
*,
931938
limit: int | Omit = omit,
939+
name: str | Omit = omit,
932940
offset: int | Omit = omit,
933941
query: str | Omit = omit,
934942
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -944,6 +952,11 @@ def list(
944952
Args:
945953
limit: Limit the number of browser pools to return.
946954
955+
name: Exact-match filter on browser pool name using the database collation. In
956+
production, matching is case- and accent-insensitive. During the default-project
957+
migration, unscoped requests prefer a concrete default-project browser pool over
958+
a legacy unscoped browser pool with the same name.
959+
947960
offset: Offset the number of browser pools to return.
948961
949962
query: Case-insensitive substring match against browser pool name. IDs match by exact
@@ -968,6 +981,7 @@ def list(
968981
query=maybe_transform(
969982
{
970983
"limit": limit,
984+
"name": name,
971985
"offset": offset,
972986
"query": query,
973987
},

src/kernel/resources/extensions.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def list(
6262
self,
6363
*,
6464
limit: int | Omit = omit,
65+
name: str | Omit = omit,
6566
offset: int | Omit = omit,
6667
query: str | Omit = omit,
6768
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -77,6 +78,11 @@ def list(
7778
Args:
7879
limit: Limit the number of extensions to return.
7980
81+
name: Exact-match filter on extension name using the database collation. In
82+
production, matching is case- and accent-insensitive. During the default-project
83+
migration, unscoped requests prefer a concrete default-project extension over a
84+
legacy unscoped extension with the same name.
85+
8086
offset: Offset the number of extensions to return.
8187
8288
query: Case-insensitive substring match against extension name. IDs match by exact
@@ -101,6 +107,7 @@ def list(
101107
query=maybe_transform(
102108
{
103109
"limit": limit,
110+
"name": name,
104111
"offset": offset,
105112
"query": query,
106113
},
@@ -339,6 +346,7 @@ def list(
339346
self,
340347
*,
341348
limit: int | Omit = omit,
349+
name: str | Omit = omit,
342350
offset: int | Omit = omit,
343351
query: str | Omit = omit,
344352
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -354,6 +362,11 @@ def list(
354362
Args:
355363
limit: Limit the number of extensions to return.
356364
365+
name: Exact-match filter on extension name using the database collation. In
366+
production, matching is case- and accent-insensitive. During the default-project
367+
migration, unscoped requests prefer a concrete default-project extension over a
368+
legacy unscoped extension with the same name.
369+
357370
offset: Offset the number of extensions to return.
358371
359372
query: Case-insensitive substring match against extension name. IDs match by exact
@@ -378,6 +391,7 @@ def list(
378391
query=maybe_transform(
379392
{
380393
"limit": limit,
394+
"name": name,
381395
"offset": offset,
382396
"query": query,
383397
},

src/kernel/resources/profiles.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def list(
172172
self,
173173
*,
174174
limit: int | Omit = omit,
175+
name: str | Omit = omit,
175176
offset: int | Omit = omit,
176177
query: str | Omit = omit,
177178
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -187,6 +188,11 @@ def list(
187188
Args:
188189
limit: Limit the number of profiles to return.
189190
191+
name: Exact-match filter on profile name using the database collation. In production,
192+
matching is case- and accent-insensitive. During the default-project migration,
193+
unscoped requests prefer a concrete default-project profile over a legacy
194+
unscoped profile with the same name.
195+
190196
offset: Offset the number of profiles to return.
191197
192198
query: Case-insensitive substring match against profile name or ID.
@@ -210,6 +216,7 @@ def list(
210216
query=maybe_transform(
211217
{
212218
"limit": limit,
219+
"name": name,
213220
"offset": offset,
214221
"query": query,
215222
},
@@ -430,6 +437,7 @@ def list(
430437
self,
431438
*,
432439
limit: int | Omit = omit,
440+
name: str | Omit = omit,
433441
offset: int | Omit = omit,
434442
query: str | Omit = omit,
435443
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -445,6 +453,11 @@ def list(
445453
Args:
446454
limit: Limit the number of profiles to return.
447455
456+
name: Exact-match filter on profile name using the database collation. In production,
457+
matching is case- and accent-insensitive. During the default-project migration,
458+
unscoped requests prefer a concrete default-project profile over a legacy
459+
unscoped profile with the same name.
460+
448461
offset: Offset the number of profiles to return.
449462
450463
query: Case-insensitive substring match against profile name or ID.
@@ -468,6 +481,7 @@ def list(
468481
query=maybe_transform(
469482
{
470483
"limit": limit,
484+
"name": name,
471485
"offset": offset,
472486
"query": query,
473487
},

src/kernel/resources/projects/projects.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def list(
177177
self,
178178
*,
179179
limit: int | Omit = omit,
180+
name: str | Omit = omit,
180181
offset: int | Omit = omit,
181182
query: str | Omit = omit,
182183
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -192,6 +193,9 @@ def list(
192193
Args:
193194
limit: Maximum number of results to return
194195
196+
name: Exact-match filter on project name using the database collation. In production,
197+
matching is case- and accent-insensitive.
198+
195199
offset: Number of results to skip
196200
197201
query: Case-insensitive substring match against project name
@@ -215,6 +219,7 @@ def list(
215219
query=maybe_transform(
216220
{
217221
"limit": limit,
222+
"name": name,
218223
"offset": offset,
219224
"query": query,
220225
},
@@ -405,6 +410,7 @@ def list(
405410
self,
406411
*,
407412
limit: int | Omit = omit,
413+
name: str | Omit = omit,
408414
offset: int | Omit = omit,
409415
query: str | Omit = omit,
410416
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -420,6 +426,9 @@ def list(
420426
Args:
421427
limit: Maximum number of results to return
422428
429+
name: Exact-match filter on project name using the database collation. In production,
430+
matching is case- and accent-insensitive.
431+
423432
offset: Number of results to skip
424433
425434
query: Case-insensitive substring match against project name
@@ -443,6 +452,7 @@ def list(
443452
query=maybe_transform(
444453
{
445454
"limit": limit,
455+
"name": name,
446456
"offset": offset,
447457
"query": query,
448458
},

src/kernel/resources/proxies.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def list(
185185
self,
186186
*,
187187
limit: int | Omit = omit,
188+
name: str | Omit = omit,
188189
offset: int | Omit = omit,
189190
query: str | Omit = omit,
190191
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -200,6 +201,10 @@ def list(
200201
Args:
201202
limit: Limit the number of proxies to return.
202203
204+
name: Exact-match filter on proxy name using the database collation. In production,
205+
matching is case- and accent-insensitive. Names are not required to be unique,
206+
so multiple proxies may match.
207+
203208
offset: Offset the number of proxies to return.
204209
205210
query: Case-insensitive substring match against proxy name, host, or IP address. IDs
@@ -224,6 +229,7 @@ def list(
224229
query=maybe_transform(
225230
{
226231
"limit": limit,
232+
"name": name,
227233
"offset": offset,
228234
"query": query,
229235
},
@@ -480,6 +486,7 @@ def list(
480486
self,
481487
*,
482488
limit: int | Omit = omit,
489+
name: str | Omit = omit,
483490
offset: int | Omit = omit,
484491
query: str | Omit = omit,
485492
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -495,6 +502,10 @@ def list(
495502
Args:
496503
limit: Limit the number of proxies to return.
497504
505+
name: Exact-match filter on proxy name using the database collation. In production,
506+
matching is case- and accent-insensitive. Names are not required to be unique,
507+
so multiple proxies may match.
508+
498509
offset: Offset the number of proxies to return.
499510
500511
query: Case-insensitive substring match against proxy name, host, or IP address. IDs
@@ -519,6 +530,7 @@ def list(
519530
query=maybe_transform(
520531
{
521532
"limit": limit,
533+
"name": name,
522534
"offset": offset,
523535
"query": query,
524536
},

src/kernel/types/api_key_list_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ class APIKeyListParams(TypedDict, total=False):
1818
limit: int
1919
"""Maximum number of results to return"""
2020

21+
name: str
22+
"""Exact-match filter on API key name using the database collation.
23+
24+
In production, matching is case- and accent-insensitive. Names are not required
25+
to be unique, so multiple keys may match. When status=all or
26+
include_deleted=true is set, soft-deleted keys with the same name may also
27+
match.
28+
"""
29+
2130
offset: int
2231
"""Number of results to skip"""
2332

src/kernel/types/browser_pool_list_params.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ class BrowserPoolListParams(TypedDict, total=False):
1111
limit: int
1212
"""Limit the number of browser pools to return."""
1313

14+
name: str
15+
"""Exact-match filter on browser pool name using the database collation.
16+
17+
In production, matching is case- and accent-insensitive. During the
18+
default-project migration, unscoped requests prefer a concrete default-project
19+
browser pool over a legacy unscoped browser pool with the same name.
20+
"""
21+
1422
offset: int
1523
"""Offset the number of browser pools to return."""
1624

src/kernel/types/extension_list_params.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ class ExtensionListParams(TypedDict, total=False):
1111
limit: int
1212
"""Limit the number of extensions to return."""
1313

14+
name: str
15+
"""Exact-match filter on extension name using the database collation.
16+
17+
In production, matching is case- and accent-insensitive. During the
18+
default-project migration, unscoped requests prefer a concrete default-project
19+
extension over a legacy unscoped extension with the same name.
20+
"""
21+
1422
offset: int
1523
"""Offset the number of extensions to return."""
1624

0 commit comments

Comments
 (0)