Skip to content

Commit fba59b8

Browse files
feat: Add free-text search to remaining paginated list endpoints
1 parent f10cf19 commit fba59b8

25 files changed

Lines changed: 106 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: 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/kernel/resources/auth/connections.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def list(
310310
limit: int | Omit = omit,
311311
offset: int | Omit = omit,
312312
profile_name: str | Omit = omit,
313+
query: str | Omit = omit,
313314
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
314315
# The extra values given here take precedence over values defined on the client or passed to this method.
315316
extra_headers: Headers | None = None,
@@ -329,6 +330,8 @@ def list(
329330
330331
profile_name: Filter by profile name
331332
333+
query: Search auth connections by ID, domain, or profile name.
334+
332335
extra_headers: Send extra headers
333336
334337
extra_query: Add additional query parameters to the request
@@ -351,6 +354,7 @@ def list(
351354
"limit": limit,
352355
"offset": offset,
353356
"profile_name": profile_name,
357+
"query": query,
354358
},
355359
connection_list_params.ConnectionListParams,
356360
),
@@ -827,6 +831,7 @@ def list(
827831
limit: int | Omit = omit,
828832
offset: int | Omit = omit,
829833
profile_name: str | Omit = omit,
834+
query: str | Omit = omit,
830835
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
831836
# The extra values given here take precedence over values defined on the client or passed to this method.
832837
extra_headers: Headers | None = None,
@@ -846,6 +851,8 @@ def list(
846851
847852
profile_name: Filter by profile name
848853
854+
query: Search auth connections by ID, domain, or profile name.
855+
849856
extra_headers: Send extra headers
850857
851858
extra_query: Add additional query parameters to the request
@@ -868,6 +875,7 @@ def list(
868875
"limit": limit,
869876
"offset": offset,
870877
"profile_name": profile_name,
878+
"query": query,
871879
},
872880
connection_list_params.ConnectionListParams,
873881
),

src/kernel/resources/browser_pools.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ def list(
330330
*,
331331
limit: int | Omit = omit,
332332
offset: int | Omit = omit,
333+
query: str | Omit = omit,
333334
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
334335
# The extra values given here take precedence over values defined on the client or passed to this method.
335336
extra_headers: Headers | None = None,
@@ -345,6 +346,8 @@ def list(
345346
346347
offset: Offset the number of browser pools to return.
347348
349+
query: Search browser pools by name or ID.
350+
348351
extra_headers: Send extra headers
349352
350353
extra_query: Add additional query parameters to the request
@@ -365,6 +368,7 @@ def list(
365368
{
366369
"limit": limit,
367370
"offset": offset,
371+
"query": query,
368372
},
369373
browser_pool_list_params.BrowserPoolListParams,
370374
),
@@ -851,6 +855,7 @@ def list(
851855
*,
852856
limit: int | Omit = omit,
853857
offset: int | Omit = omit,
858+
query: str | Omit = omit,
854859
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
855860
# The extra values given here take precedence over values defined on the client or passed to this method.
856861
extra_headers: Headers | None = None,
@@ -866,6 +871,8 @@ def list(
866871
867872
offset: Offset the number of browser pools to return.
868873
874+
query: Search browser pools by name or ID.
875+
869876
extra_headers: Send extra headers
870877
871878
extra_query: Add additional query parameters to the request
@@ -886,6 +893,7 @@ def list(
886893
{
887894
"limit": limit,
888895
"offset": offset,
896+
"query": query,
889897
},
890898
browser_pool_list_params.BrowserPoolListParams,
891899
),

src/kernel/resources/credential_providers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def list(
200200
*,
201201
limit: int | Omit = omit,
202202
offset: int | Omit = omit,
203+
query: str | Omit = omit,
203204
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
204205
# The extra values given here take precedence over values defined on the client or passed to this method.
205206
extra_headers: Headers | None = None,
@@ -215,6 +216,8 @@ def list(
215216
216217
offset: Offset the number of credential providers to return.
217218
219+
query: Search credential providers by name or ID.
220+
218221
extra_headers: Send extra headers
219222
220223
extra_query: Add additional query parameters to the request
@@ -235,6 +238,7 @@ def list(
235238
{
236239
"limit": limit,
237240
"offset": offset,
241+
"query": query,
238242
},
239243
credential_provider_list_params.CredentialProviderListParams,
240244
),
@@ -514,6 +518,7 @@ def list(
514518
*,
515519
limit: int | Omit = omit,
516520
offset: int | Omit = omit,
521+
query: str | Omit = omit,
517522
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
518523
# The extra values given here take precedence over values defined on the client or passed to this method.
519524
extra_headers: Headers | None = None,
@@ -529,6 +534,8 @@ def list(
529534
530535
offset: Offset the number of credential providers to return.
531536
537+
query: Search credential providers by name or ID.
538+
532539
extra_headers: Send extra headers
533540
534541
extra_query: Add additional query parameters to the request
@@ -549,6 +556,7 @@ def list(
549556
{
550557
"limit": limit,
551558
"offset": offset,
559+
"query": query,
552560
},
553561
credential_provider_list_params.CredentialProviderListParams,
554562
),

src/kernel/resources/credentials.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ def list(
205205
domain: str | Omit = omit,
206206
limit: int | Omit = omit,
207207
offset: int | Omit = omit,
208+
query: str | Omit = omit,
208209
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
209210
# The extra values given here take precedence over values defined on the client or passed to this method.
210211
extra_headers: Headers | None = None,
@@ -223,6 +224,8 @@ def list(
223224
224225
offset: Number of results to skip
225226
227+
query: Search credentials by name, domain, or ID.
228+
226229
extra_headers: Send extra headers
227230
228231
extra_query: Add additional query parameters to the request
@@ -244,6 +247,7 @@ def list(
244247
"domain": domain,
245248
"limit": limit,
246249
"offset": offset,
250+
"query": query,
247251
},
248252
credential_list_params.CredentialListParams,
249253
),
@@ -501,6 +505,7 @@ def list(
501505
domain: str | Omit = omit,
502506
limit: int | Omit = omit,
503507
offset: int | Omit = omit,
508+
query: str | Omit = omit,
504509
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
505510
# The extra values given here take precedence over values defined on the client or passed to this method.
506511
extra_headers: Headers | None = None,
@@ -519,6 +524,8 @@ def list(
519524
520525
offset: Number of results to skip
521526
527+
query: Search credentials by name, domain, or ID.
528+
522529
extra_headers: Send extra headers
523530
524531
extra_query: Add additional query parameters to the request
@@ -540,6 +547,7 @@ def list(
540547
"domain": domain,
541548
"limit": limit,
542549
"offset": offset,
550+
"query": query,
543551
},
544552
credential_list_params.CredentialListParams,
545553
),

src/kernel/resources/deployments.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def list(
163163
app_version: str | Omit = omit,
164164
limit: int | Omit = omit,
165165
offset: int | Omit = omit,
166+
query: str | Omit = omit,
166167
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
167168
# The extra values given here take precedence over values defined on the client or passed to this method.
168169
extra_headers: Headers | None = None,
@@ -183,6 +184,8 @@ def list(
183184
184185
offset: Offset the number of deployments to return.
185186
187+
query: Search deployments by ID or app name.
188+
186189
extra_headers: Send extra headers
187190
188191
extra_query: Add additional query parameters to the request
@@ -205,6 +208,7 @@ def list(
205208
"app_version": app_version,
206209
"limit": limit,
207210
"offset": offset,
211+
"query": query,
208212
},
209213
deployment_list_params.DeploymentListParams,
210214
),
@@ -429,6 +433,7 @@ def list(
429433
app_version: str | Omit = omit,
430434
limit: int | Omit = omit,
431435
offset: int | Omit = omit,
436+
query: str | Omit = omit,
432437
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
433438
# The extra values given here take precedence over values defined on the client or passed to this method.
434439
extra_headers: Headers | None = None,
@@ -449,6 +454,8 @@ def list(
449454
450455
offset: Offset the number of deployments to return.
451456
457+
query: Search deployments by ID or app name.
458+
452459
extra_headers: Send extra headers
453460
454461
extra_query: Add additional query parameters to the request
@@ -471,6 +478,7 @@ def list(
471478
"app_version": app_version,
472479
"limit": limit,
473480
"offset": offset,
481+
"query": query,
474482
},
475483
deployment_list_params.DeploymentListParams,
476484
),

src/kernel/resources/extensions.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def list(
6262
*,
6363
limit: int | Omit = omit,
6464
offset: int | Omit = omit,
65+
query: str | Omit = omit,
6566
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
6667
# The extra values given here take precedence over values defined on the client or passed to this method.
6768
extra_headers: Headers | None = None,
@@ -77,6 +78,8 @@ def list(
7778
7879
offset: Offset the number of extensions to return.
7980
81+
query: Search extensions by name or ID.
82+
8083
extra_headers: Send extra headers
8184
8285
extra_query: Add additional query parameters to the request
@@ -97,6 +100,7 @@ def list(
97100
{
98101
"limit": limit,
99102
"offset": offset,
103+
"query": query,
100104
},
101105
extension_list_params.ExtensionListParams,
102106
),
@@ -300,6 +304,7 @@ def list(
300304
*,
301305
limit: int | Omit = omit,
302306
offset: int | Omit = omit,
307+
query: str | Omit = omit,
303308
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
304309
# The extra values given here take precedence over values defined on the client or passed to this method.
305310
extra_headers: Headers | None = None,
@@ -315,6 +320,8 @@ def list(
315320
316321
offset: Offset the number of extensions to return.
317322
323+
query: Search extensions by name or ID.
324+
318325
extra_headers: Send extra headers
319326
320327
extra_query: Add additional query parameters to the request
@@ -335,6 +342,7 @@ def list(
335342
{
336343
"limit": limit,
337344
"offset": offset,
345+
"query": query,
338346
},
339347
extension_list_params.ExtensionListParams,
340348
),

src/kernel/resources/invocations.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def list(
203203
deployment_id: str | Omit = omit,
204204
limit: int | Omit = omit,
205205
offset: int | Omit = omit,
206+
query: str | Omit = omit,
206207
since: str | Omit = omit,
207208
status: Literal["queued", "running", "succeeded", "failed"] | Omit = omit,
208209
version: str | Omit = omit,
@@ -229,6 +230,8 @@ def list(
229230
230231
offset: Offset the number of invocations to return.
231232
233+
query: Search invocations by ID, app name, or action name.
234+
232235
since: Show invocations that have started since the given time (RFC timestamps or
233236
durations like 5m).
234237
@@ -259,6 +262,7 @@ def list(
259262
"deployment_id": deployment_id,
260263
"limit": limit,
261264
"offset": offset,
265+
"query": query,
262266
"since": since,
263267
"status": status,
264268
"version": version,
@@ -556,6 +560,7 @@ def list(
556560
deployment_id: str | Omit = omit,
557561
limit: int | Omit = omit,
558562
offset: int | Omit = omit,
563+
query: str | Omit = omit,
559564
since: str | Omit = omit,
560565
status: Literal["queued", "running", "succeeded", "failed"] | Omit = omit,
561566
version: str | Omit = omit,
@@ -582,6 +587,8 @@ def list(
582587
583588
offset: Offset the number of invocations to return.
584589
590+
query: Search invocations by ID, app name, or action name.
591+
585592
since: Show invocations that have started since the given time (RFC timestamps or
586593
durations like 5m).
587594
@@ -612,6 +619,7 @@ def list(
612619
"deployment_id": deployment_id,
613620
"limit": limit,
614621
"offset": offset,
622+
"query": query,
615623
"since": since,
616624
"status": status,
617625
"version": version,

0 commit comments

Comments
 (0)