Skip to content

Commit 4a40176

Browse files
fix(mux): uniform id/name search across list endpoints, close cross-tenant IDOR (#10267)
1 parent 6a762cb commit 4a40176

34 files changed

Lines changed: 184 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: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-b5badb6102d613aecce0a0297348c441712c818729f6251970808e9abf494aee.yml
3-
openapi_spec_hash: 3634342312dab3641c1f26a54b448dd2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-0e8f05634e48dcbabeafbb1ab71297b2c506f028ffc92a1f01767147e1244a77.yml
3+
openapi_spec_hash: 46d01fb341301ea07b9860151d9043f7
44
config_hash: 9f32651e6269089b5d6c33594b992232

src/runloop_api_client/resources/axons/axons.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ def list(
153153
include_total_count: bool | Omit = omit,
154154
limit: int | Omit = omit,
155155
name: str | Omit = omit,
156+
search: str | Omit = omit,
156157
starting_after: str | Omit = omit,
157158
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
158159
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -174,6 +175,8 @@ def list(
174175
175176
name: Filter by axon name (prefix match supported).
176177
178+
search: Search by axon ID or name.
179+
177180
starting_after: Load the next page of data starting after the item with the given ID.
178181
179182
extra_headers: Send extra headers
@@ -198,6 +201,7 @@ def list(
198201
"include_total_count": include_total_count,
199202
"limit": limit,
200203
"name": name,
204+
"search": search,
201205
"starting_after": starting_after,
202206
},
203207
axon_list_params.AxonListParams,
@@ -424,6 +428,7 @@ def list(
424428
include_total_count: bool | Omit = omit,
425429
limit: int | Omit = omit,
426430
name: str | Omit = omit,
431+
search: str | Omit = omit,
427432
starting_after: str | Omit = omit,
428433
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
429434
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -445,6 +450,8 @@ def list(
445450
446451
name: Filter by axon name (prefix match supported).
447452
453+
search: Search by axon ID or name.
454+
448455
starting_after: Load the next page of data starting after the item with the given ID.
449456
450457
extra_headers: Send extra headers
@@ -469,6 +476,7 @@ def list(
469476
"include_total_count": include_total_count,
470477
"limit": limit,
471478
"name": name,
479+
"search": search,
472480
"starting_after": starting_after,
473481
},
474482
axon_list_params.AxonListParams,

src/runloop_api_client/resources/benchmark_jobs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def list(
134134
include_total_count: bool | Omit = omit,
135135
limit: int | Omit = omit,
136136
name: str | Omit = omit,
137+
search: str | Omit = omit,
137138
starting_after: str | Omit = omit,
138139
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
139140
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -153,6 +154,8 @@ def list(
153154
154155
name: Filter by name
155156
157+
search: Search by benchmark job ID or name.
158+
156159
starting_after: Load the next page of data starting after the item with the given ID.
157160
158161
extra_headers: Send extra headers
@@ -175,6 +178,7 @@ def list(
175178
"include_total_count": include_total_count,
176179
"limit": limit,
177180
"name": name,
181+
"search": search,
178182
"starting_after": starting_after,
179183
},
180184
benchmark_job_list_params.BenchmarkJobListParams,
@@ -294,6 +298,7 @@ async def list(
294298
include_total_count: bool | Omit = omit,
295299
limit: int | Omit = omit,
296300
name: str | Omit = omit,
301+
search: str | Omit = omit,
297302
starting_after: str | Omit = omit,
298303
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
299304
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -313,6 +318,8 @@ async def list(
313318
314319
name: Filter by name
315320
321+
search: Search by benchmark job ID or name.
322+
316323
starting_after: Load the next page of data starting after the item with the given ID.
317324
318325
extra_headers: Send extra headers
@@ -335,6 +342,7 @@ async def list(
335342
"include_total_count": include_total_count,
336343
"limit": limit,
337344
"name": name,
345+
"search": search,
338346
"starting_after": starting_after,
339347
},
340348
benchmark_job_list_params.BenchmarkJobListParams,

src/runloop_api_client/resources/benchmark_runs.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def list(
8585
include_total_count: bool | Omit = omit,
8686
limit: int | Omit = omit,
8787
name: str | Omit = omit,
88+
search: str | Omit = omit,
8889
starting_after: str | Omit = omit,
8990
state: str | Omit = omit,
9091
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -107,6 +108,8 @@ def list(
107108
108109
name: Filter by name
109110
111+
search: Search by benchmark run ID or name.
112+
110113
starting_after: Load the next page of data starting after the item with the given ID.
111114
112115
state: Filter by state
@@ -133,6 +136,7 @@ def list(
133136
"include_total_count": include_total_count,
134137
"limit": limit,
135138
"name": name,
139+
"search": search,
136140
"starting_after": starting_after,
137141
"state": state,
138142
},
@@ -231,6 +235,7 @@ def list_scenario_runs(
231235
*,
232236
include_total_count: bool | Omit = omit,
233237
limit: int | Omit = omit,
238+
search: str | Omit = omit,
234239
starting_after: str | Omit = omit,
235240
state: Literal["running", "scoring", "scored", "completed", "canceled", "timeout", "failed"] | Omit = omit,
236241
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -249,6 +254,8 @@ def list_scenario_runs(
249254
250255
limit: The limit of items to return. Default is 20. Max is 5000.
251256
257+
search: Search by scenario run ID or name.
258+
252259
starting_after: Load the next page of data starting after the item with the given ID.
253260
254261
state: Filter by Scenario Run state
@@ -275,6 +282,7 @@ def list_scenario_runs(
275282
{
276283
"include_total_count": include_total_count,
277284
"limit": limit,
285+
"search": search,
278286
"starting_after": starting_after,
279287
"state": state,
280288
},
@@ -345,6 +353,7 @@ def list(
345353
include_total_count: bool | Omit = omit,
346354
limit: int | Omit = omit,
347355
name: str | Omit = omit,
356+
search: str | Omit = omit,
348357
starting_after: str | Omit = omit,
349358
state: str | Omit = omit,
350359
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -367,6 +376,8 @@ def list(
367376
368377
name: Filter by name
369378
379+
search: Search by benchmark run ID or name.
380+
370381
starting_after: Load the next page of data starting after the item with the given ID.
371382
372383
state: Filter by state
@@ -393,6 +404,7 @@ def list(
393404
"include_total_count": include_total_count,
394405
"limit": limit,
395406
"name": name,
407+
"search": search,
396408
"starting_after": starting_after,
397409
"state": state,
398410
},
@@ -491,6 +503,7 @@ def list_scenario_runs(
491503
*,
492504
include_total_count: bool | Omit = omit,
493505
limit: int | Omit = omit,
506+
search: str | Omit = omit,
494507
starting_after: str | Omit = omit,
495508
state: Literal["running", "scoring", "scored", "completed", "canceled", "timeout", "failed"] | Omit = omit,
496509
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -509,6 +522,8 @@ def list_scenario_runs(
509522
510523
limit: The limit of items to return. Default is 20. Max is 5000.
511524
525+
search: Search by scenario run ID or name.
526+
512527
starting_after: Load the next page of data starting after the item with the given ID.
513528
514529
state: Filter by Scenario Run state
@@ -535,6 +550,7 @@ def list_scenario_runs(
535550
{
536551
"include_total_count": include_total_count,
537552
"limit": limit,
553+
"search": search,
538554
"starting_after": starting_after,
539555
"state": state,
540556
},

src/runloop_api_client/resources/benchmarks.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def list(
247247
include_total_count: bool | Omit = omit,
248248
limit: int | Omit = omit,
249249
name: str | Omit = omit,
250+
search: str | Omit = omit,
250251
starting_after: str | Omit = omit,
251252
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
252253
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -266,6 +267,8 @@ def list(
266267
267268
name: Filter by name
268269
270+
search: Search by benchmark ID or name.
271+
269272
starting_after: Load the next page of data starting after the item with the given ID.
270273
271274
extra_headers: Send extra headers
@@ -289,6 +292,7 @@ def list(
289292
"include_total_count": include_total_count,
290293
"limit": limit,
291294
"name": name,
295+
"search": search,
292296
"starting_after": starting_after,
293297
},
294298
benchmark_list_params.BenchmarkListParams,
@@ -351,6 +355,8 @@ def list_public(
351355
*,
352356
include_total_count: bool | Omit = omit,
353357
limit: int | Omit = omit,
358+
name: str | Omit = omit,
359+
search: str | Omit = omit,
354360
starting_after: str | Omit = omit,
355361
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
356362
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -368,6 +374,10 @@ def list_public(
368374
369375
limit: The limit of items to return. Default is 20. Max is 5000.
370376
377+
name: Filter by name
378+
379+
search: Search by benchmark ID or name.
380+
371381
starting_after: Load the next page of data starting after the item with the given ID.
372382
373383
extra_headers: Send extra headers
@@ -390,6 +400,8 @@ def list_public(
390400
{
391401
"include_total_count": include_total_count,
392402
"limit": limit,
403+
"name": name,
404+
"search": search,
393405
"starting_after": starting_after,
394406
},
395407
benchmark_list_public_params.BenchmarkListPublicParams,
@@ -722,6 +734,7 @@ def list(
722734
include_total_count: bool | Omit = omit,
723735
limit: int | Omit = omit,
724736
name: str | Omit = omit,
737+
search: str | Omit = omit,
725738
starting_after: str | Omit = omit,
726739
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
727740
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -741,6 +754,8 @@ def list(
741754
742755
name: Filter by name
743756
757+
search: Search by benchmark ID or name.
758+
744759
starting_after: Load the next page of data starting after the item with the given ID.
745760
746761
extra_headers: Send extra headers
@@ -764,6 +779,7 @@ def list(
764779
"include_total_count": include_total_count,
765780
"limit": limit,
766781
"name": name,
782+
"search": search,
767783
"starting_after": starting_after,
768784
},
769785
benchmark_list_params.BenchmarkListParams,
@@ -826,6 +842,8 @@ def list_public(
826842
*,
827843
include_total_count: bool | Omit = omit,
828844
limit: int | Omit = omit,
845+
name: str | Omit = omit,
846+
search: str | Omit = omit,
829847
starting_after: str | Omit = omit,
830848
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
831849
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -843,6 +861,10 @@ def list_public(
843861
844862
limit: The limit of items to return. Default is 20. Max is 5000.
845863
864+
name: Filter by name
865+
866+
search: Search by benchmark ID or name.
867+
846868
starting_after: Load the next page of data starting after the item with the given ID.
847869
848870
extra_headers: Send extra headers
@@ -865,6 +887,8 @@ def list_public(
865887
{
866888
"include_total_count": include_total_count,
867889
"limit": limit,
890+
"name": name,
891+
"search": search,
868892
"starting_after": starting_after,
869893
},
870894
benchmark_list_public_params.BenchmarkListPublicParams,

src/runloop_api_client/resources/gateway_configs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def list(
209209
include_total_count: bool | Omit = omit,
210210
limit: int | Omit = omit,
211211
name: str | Omit = omit,
212+
search: str | Omit = omit,
212213
starting_after: str | Omit = omit,
213214
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
214215
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -231,6 +232,8 @@ def list(
231232
232233
name: Filter by name (partial match supported).
233234
235+
search: Search by gateway config ID or name.
236+
234237
starting_after: Load the next page of data starting after the item with the given ID.
235238
236239
extra_headers: Send extra headers
@@ -255,6 +258,7 @@ def list(
255258
"include_total_count": include_total_count,
256259
"limit": limit,
257260
"name": name,
261+
"search": search,
258262
"starting_after": starting_after,
259263
},
260264
gateway_config_list_params.GatewayConfigListParams,
@@ -490,6 +494,7 @@ def list(
490494
include_total_count: bool | Omit = omit,
491495
limit: int | Omit = omit,
492496
name: str | Omit = omit,
497+
search: str | Omit = omit,
493498
starting_after: str | Omit = omit,
494499
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
495500
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -512,6 +517,8 @@ def list(
512517
513518
name: Filter by name (partial match supported).
514519
520+
search: Search by gateway config ID or name.
521+
515522
starting_after: Load the next page of data starting after the item with the given ID.
516523
517524
extra_headers: Send extra headers
@@ -536,6 +543,7 @@ def list(
536543
"include_total_count": include_total_count,
537544
"limit": limit,
538545
"name": name,
546+
"search": search,
539547
"starting_after": starting_after,
540548
},
541549
gateway_config_list_params.GatewayConfigListParams,

0 commit comments

Comments
 (0)