Skip to content

Commit 8c82907

Browse files
authored
Merge pull request #599 from runloopai/release-please--branches--main--changes--next
release: 0.40.0
2 parents 59c55e0 + 663bd06 commit 8c82907

24 files changed

+132
-150
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.39.0"
2+
".": "0.40.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 87
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-4cd38d2f4180cc9bd949f182a221d6221c44e7e0ec1ddc110dd7677ba822b51a.yml
3-
openapi_spec_hash: e186fd7fd5f09ba496f0b7bb87365f3b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-c23f8f8426208651ecf7b2a4108ea2003c6e3241c6928e88ef004f76fe826c08.yml
3+
openapi_spec_hash: 2eee5118b3c2dd49f9124df0d10341ed
44
config_hash: 4514558503b7aa6eba8c2941564c247d

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 0.40.0 (2025-06-10)
4+
5+
Full Changelog: [v0.39.0...v0.40.0](https://github.com/runloopai/api-client-python/compare/v0.39.0...v0.40.0)
6+
7+
### Features
8+
9+
* **api:** api update ([8e066c3](https://github.com/runloopai/api-client-python/commit/8e066c3dde50f92a16054323b867f94bc6ba0f8e))
10+
* **api:** api update ([4a9a9e3](https://github.com/runloopai/api-client-python/commit/4a9a9e3c2d5b307df4205f16cc8a6eca38f51721))
11+
312
## 0.39.0 (2025-06-04)
413

514
Full Changelog: [v0.38.0...v0.39.0](https://github.com/runloopai/api-client-python/compare/v0.38.0...v0.39.0)

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,4 +339,4 @@ Methods:
339339
- <code title="get /v1/repositories">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">list</a>(\*\*<a href="src/runloop_api_client/types/repository_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/repository_connection_view.py">SyncRepositoriesCursorIDPage[RepositoryConnectionView]</a></code>
340340
- <code title="post /v1/repositories/{id}/delete">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">delete</a>(id) -> object</code>
341341
- <code title="get /v1/repositories/{id}/inspections">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">list_inspections</a>(id) -> <a href="./src/runloop_api_client/types/repository_inspection_list_view.py">RepositoryInspectionListView</a></code>
342-
- <code title="post /v1/repositories/{id}/refresh">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">refresh</a>(id) -> object</code>
342+
- <code title="post /v1/repositories/{id}/refresh">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">refresh</a>(id, \*\*<a href="src/runloop_api_client/types/repository_refresh_params.py">params</a>) -> object</code>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "runloop_api_client"
3-
version = "0.39.0"
3+
version = "0.40.0"
44
description = "The official Python library for the runloop API"
55
dynamic = ["readme"]
66
license = "MIT"

src/runloop_api_client/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "runloop_api_client"
4-
__version__ = "0.39.0" # x-release-please-version
4+
__version__ = "0.40.0" # x-release-please-version

src/runloop_api_client/resources/benchmarks/benchmarks.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def with_streaming_response(self) -> BenchmarksResourceWithStreamingResponse:
6868
def create(
6969
self,
7070
*,
71-
is_public: bool,
7271
name: str,
7372
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
7473
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
@@ -84,8 +83,6 @@ def create(
8483
Create a Benchmark with a set of Scenarios.
8584
8685
Args:
87-
is_public: Whether this benchmark is public.
88-
8986
name: The name of the Benchmark. This must be unique.
9087
9188
metadata: User defined metadata to attach to the benchmark for organization.
@@ -106,7 +103,6 @@ def create(
106103
"/v1/benchmarks",
107104
body=maybe_transform(
108105
{
109-
"is_public": is_public,
110106
"name": name,
111107
"metadata": metadata,
112108
"scenario_ids": scenario_ids,
@@ -160,7 +156,6 @@ def update(
160156
self,
161157
id: str,
162158
*,
163-
is_public: bool,
164159
name: str,
165160
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
166161
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
@@ -176,8 +171,6 @@ def update(
176171
Update a Benchmark with a set of Scenarios.
177172
178173
Args:
179-
is_public: Whether this benchmark is public.
180-
181174
name: The name of the Benchmark. This must be unique.
182175
183176
metadata: User defined metadata to attach to the benchmark for organization.
@@ -200,7 +193,6 @@ def update(
200193
f"/v1/benchmarks/{id}",
201194
body=maybe_transform(
202195
{
203-
"is_public": is_public,
204196
"name": name,
205197
"metadata": metadata,
206198
"scenario_ids": scenario_ids,
@@ -442,7 +434,6 @@ def with_streaming_response(self) -> AsyncBenchmarksResourceWithStreamingRespons
442434
async def create(
443435
self,
444436
*,
445-
is_public: bool,
446437
name: str,
447438
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
448439
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
@@ -458,8 +449,6 @@ async def create(
458449
Create a Benchmark with a set of Scenarios.
459450
460451
Args:
461-
is_public: Whether this benchmark is public.
462-
463452
name: The name of the Benchmark. This must be unique.
464453
465454
metadata: User defined metadata to attach to the benchmark for organization.
@@ -480,7 +469,6 @@ async def create(
480469
"/v1/benchmarks",
481470
body=await async_maybe_transform(
482471
{
483-
"is_public": is_public,
484472
"name": name,
485473
"metadata": metadata,
486474
"scenario_ids": scenario_ids,
@@ -534,7 +522,6 @@ async def update(
534522
self,
535523
id: str,
536524
*,
537-
is_public: bool,
538525
name: str,
539526
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
540527
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
@@ -550,8 +537,6 @@ async def update(
550537
Update a Benchmark with a set of Scenarios.
551538
552539
Args:
553-
is_public: Whether this benchmark is public.
554-
555540
name: The name of the Benchmark. This must be unique.
556541
557542
metadata: User defined metadata to attach to the benchmark for organization.
@@ -574,7 +559,6 @@ async def update(
574559
f"/v1/benchmarks/{id}",
575560
body=await async_maybe_transform(
576561
{
577-
"is_public": is_public,
578562
"name": name,
579563
"metadata": metadata,
580564
"scenario_ids": scenario_ids,

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def create(
170170
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
171171
name: Optional[str] | NotGiven = NOT_GIVEN,
172172
prebuilt: Optional[str] | NotGiven = NOT_GIVEN,
173-
repository_connection: Optional[devbox_create_params.RepositoryConnection] | NotGiven = NOT_GIVEN,
173+
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
174174
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
175175
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
176176
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -216,7 +216,7 @@ def create(
216216
prebuilt: Reference to prebuilt Blueprint to create the Devbox from. Should not be used
217217
together with (Snapshot ID, Blueprint ID, or Blueprint name).
218218
219-
repository_connection: Repository connection parameters for configuring repository integration.
219+
repo_connection_id: Repository connection id the devbox should source its base image from.
220220
221221
snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
222222
Blueprint name) should be specified.
@@ -245,7 +245,7 @@ def create(
245245
"metadata": metadata,
246246
"name": name,
247247
"prebuilt": prebuilt,
248-
"repository_connection": repository_connection,
248+
"repo_connection_id": repo_connection_id,
249249
"snapshot_id": snapshot_id,
250250
},
251251
devbox_create_params.DevboxCreateParams,
@@ -1429,7 +1429,7 @@ async def create(
14291429
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
14301430
name: Optional[str] | NotGiven = NOT_GIVEN,
14311431
prebuilt: Optional[str] | NotGiven = NOT_GIVEN,
1432-
repository_connection: Optional[devbox_create_params.RepositoryConnection] | NotGiven = NOT_GIVEN,
1432+
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
14331433
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
14341434
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
14351435
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1475,7 +1475,7 @@ async def create(
14751475
prebuilt: Reference to prebuilt Blueprint to create the Devbox from. Should not be used
14761476
together with (Snapshot ID, Blueprint ID, or Blueprint name).
14771477
1478-
repository_connection: Repository connection parameters for configuring repository integration.
1478+
repo_connection_id: Repository connection id the devbox should source its base image from.
14791479
14801480
snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
14811481
Blueprint name) should be specified.
@@ -1504,7 +1504,7 @@ async def create(
15041504
"metadata": metadata,
15051505
"name": name,
15061506
"prebuilt": prebuilt,
1507-
"repository_connection": repository_connection,
1507+
"repo_connection_id": repo_connection_id,
15081508
"snapshot_id": snapshot_id,
15091509
},
15101510
devbox_create_params.DevboxCreateParams,

src/runloop_api_client/resources/repositories.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import httpx
88

9-
from ..types import repository_list_params, repository_create_params
9+
from ..types import repository_list_params, repository_create_params, repository_refresh_params
1010
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
1111
from .._utils import maybe_transform, async_maybe_transform
1212
from .._compat import cached_property
@@ -272,6 +272,8 @@ def refresh(
272272
self,
273273
id: str,
274274
*,
275+
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
276+
github_auth_token: Optional[str] | NotGiven = NOT_GIVEN,
275277
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
276278
# The extra values given here take precedence over values defined on the client or passed to this method.
277279
extra_headers: Headers | None = None,
@@ -285,6 +287,10 @@ def refresh(
285287
repo's technical stack and developer environment requirements.
286288
287289
Args:
290+
blueprint_id: ID of blueprint to use as base for resulting RepositoryVersion blueprint.
291+
292+
github_auth_token: GitHub authentication token for accessing private repositories.
293+
288294
extra_headers: Send extra headers
289295
290296
extra_query: Add additional query parameters to the request
@@ -299,6 +305,13 @@ def refresh(
299305
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
300306
return self._post(
301307
f"/v1/repositories/{id}/refresh",
308+
body=maybe_transform(
309+
{
310+
"blueprint_id": blueprint_id,
311+
"github_auth_token": github_auth_token,
312+
},
313+
repository_refresh_params.RepositoryRefreshParams,
314+
),
302315
options=make_request_options(
303316
extra_headers=extra_headers,
304317
extra_query=extra_query,
@@ -557,6 +570,8 @@ async def refresh(
557570
self,
558571
id: str,
559572
*,
573+
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
574+
github_auth_token: Optional[str] | NotGiven = NOT_GIVEN,
560575
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
561576
# The extra values given here take precedence over values defined on the client or passed to this method.
562577
extra_headers: Headers | None = None,
@@ -570,6 +585,10 @@ async def refresh(
570585
repo's technical stack and developer environment requirements.
571586
572587
Args:
588+
blueprint_id: ID of blueprint to use as base for resulting RepositoryVersion blueprint.
589+
590+
github_auth_token: GitHub authentication token for accessing private repositories.
591+
573592
extra_headers: Send extra headers
574593
575594
extra_query: Add additional query parameters to the request
@@ -584,6 +603,13 @@ async def refresh(
584603
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
585604
return await self._post(
586605
f"/v1/repositories/{id}/refresh",
606+
body=await async_maybe_transform(
607+
{
608+
"blueprint_id": blueprint_id,
609+
"github_auth_token": github_auth_token,
610+
},
611+
repository_refresh_params.RepositoryRefreshParams,
612+
),
587613
options=make_request_options(
588614
extra_headers=extra_headers,
589615
extra_query=extra_query,

src/runloop_api_client/resources/scenarios/scenarios.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def create(
8383
self,
8484
*,
8585
input_context: InputContextParam,
86-
is_public: bool,
8786
name: str,
8887
scoring_contract: ScoringContractParam,
8988
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -104,8 +103,6 @@ def create(
104103
Args:
105104
input_context: The input context for the Scenario.
106105
107-
is_public: Whether this scenario is public.
108-
109106
name: Name of the scenario.
110107
111108
scoring_contract: The scoring contract for the Scenario.
@@ -133,7 +130,6 @@ def create(
133130
body=maybe_transform(
134131
{
135132
"input_context": input_context,
136-
"is_public": is_public,
137133
"name": name,
138134
"scoring_contract": scoring_contract,
139135
"environment_parameters": environment_parameters,
@@ -190,7 +186,6 @@ def update(
190186
id: str,
191187
*,
192188
input_context: InputContextParam,
193-
is_public: bool,
194189
name: str,
195190
scoring_contract: ScoringContractParam,
196191
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -211,8 +206,6 @@ def update(
211206
Args:
212207
input_context: The input context for the Scenario.
213208
214-
is_public: Whether this scenario is public.
215-
216209
name: Name of the scenario.
217210
218211
scoring_contract: The scoring contract for the Scenario.
@@ -242,7 +235,6 @@ def update(
242235
body=maybe_transform(
243236
{
244237
"input_context": input_context,
245-
"is_public": is_public,
246238
"name": name,
247239
"scoring_contract": scoring_contract,
248240
"environment_parameters": environment_parameters,
@@ -514,7 +506,6 @@ async def create(
514506
self,
515507
*,
516508
input_context: InputContextParam,
517-
is_public: bool,
518509
name: str,
519510
scoring_contract: ScoringContractParam,
520511
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -535,8 +526,6 @@ async def create(
535526
Args:
536527
input_context: The input context for the Scenario.
537528
538-
is_public: Whether this scenario is public.
539-
540529
name: Name of the scenario.
541530
542531
scoring_contract: The scoring contract for the Scenario.
@@ -564,7 +553,6 @@ async def create(
564553
body=await async_maybe_transform(
565554
{
566555
"input_context": input_context,
567-
"is_public": is_public,
568556
"name": name,
569557
"scoring_contract": scoring_contract,
570558
"environment_parameters": environment_parameters,
@@ -621,7 +609,6 @@ async def update(
621609
id: str,
622610
*,
623611
input_context: InputContextParam,
624-
is_public: bool,
625612
name: str,
626613
scoring_contract: ScoringContractParam,
627614
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -642,8 +629,6 @@ async def update(
642629
Args:
643630
input_context: The input context for the Scenario.
644631
645-
is_public: Whether this scenario is public.
646-
647632
name: Name of the scenario.
648633
649634
scoring_contract: The scoring contract for the Scenario.
@@ -673,7 +658,6 @@ async def update(
673658
body=await async_maybe_transform(
674659
{
675660
"input_context": input_context,
676-
"is_public": is_public,
677661
"name": name,
678662
"scoring_contract": scoring_contract,
679663
"environment_parameters": environment_parameters,

src/runloop_api_client/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
from .repository_manifest_view import RepositoryManifestView as RepositoryManifestView
4646
from .devbox_snapshot_list_view import DevboxSnapshotListView as DevboxSnapshotListView
4747
from .devbox_upload_file_params import DevboxUploadFileParams as DevboxUploadFileParams
48+
from .repository_refresh_params import RepositoryRefreshParams as RepositoryRefreshParams
4849
from .scenario_start_run_params import ScenarioStartRunParams as ScenarioStartRunParams
4950
from .benchmark_start_run_params import BenchmarkStartRunParams as BenchmarkStartRunParams
5051
from .blueprint_build_parameters import BlueprintBuildParameters as BlueprintBuildParameters

src/runloop_api_client/types/benchmark_create_params.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99

1010

1111
class BenchmarkCreateParams(TypedDict, total=False):
12-
is_public: Required[bool]
13-
"""Whether this benchmark is public."""
14-
1512
name: Required[str]
1613
"""The name of the Benchmark. This must be unique."""
1714

0 commit comments

Comments
 (0)