Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.39.0"
".": "0.40.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 87
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-4cd38d2f4180cc9bd949f182a221d6221c44e7e0ec1ddc110dd7677ba822b51a.yml
openapi_spec_hash: e186fd7fd5f09ba496f0b7bb87365f3b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-c23f8f8426208651ecf7b2a4108ea2003c6e3241c6928e88ef004f76fe826c08.yml
openapi_spec_hash: 2eee5118b3c2dd49f9124df0d10341ed
config_hash: 4514558503b7aa6eba8c2941564c247d
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.40.0 (2025-06-10)

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

### Features

* **api:** api update ([8e066c3](https://github.com/runloopai/api-client-python/commit/8e066c3dde50f92a16054323b867f94bc6ba0f8e))
* **api:** api update ([4a9a9e3](https://github.com/runloopai/api-client-python/commit/4a9a9e3c2d5b307df4205f16cc8a6eca38f51721))

## 0.39.0 (2025-06-04)

Full Changelog: [v0.38.0...v0.39.0](https://github.com/runloopai/api-client-python/compare/v0.38.0...v0.39.0)
Expand Down
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,4 +339,4 @@ Methods:
- <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>
- <code title="post /v1/repositories/{id}/delete">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">delete</a>(id) -> object</code>
- <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>
- <code title="post /v1/repositories/{id}/refresh">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">refresh</a>(id) -> object</code>
- <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>
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "runloop_api_client"
version = "0.39.0"
version = "0.40.0"
description = "The official Python library for the runloop API"
dynamic = ["readme"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/runloop_api_client/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "runloop_api_client"
__version__ = "0.39.0" # x-release-please-version
__version__ = "0.40.0" # x-release-please-version
16 changes: 0 additions & 16 deletions src/runloop_api_client/resources/benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def with_streaming_response(self) -> BenchmarksResourceWithStreamingResponse:
def create(
self,
*,
is_public: bool,
name: str,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
Expand All @@ -84,8 +83,6 @@ def create(
Create a Benchmark with a set of Scenarios.

Args:
is_public: Whether this benchmark is public.

name: The name of the Benchmark. This must be unique.

metadata: User defined metadata to attach to the benchmark for organization.
Expand All @@ -106,7 +103,6 @@ def create(
"/v1/benchmarks",
body=maybe_transform(
{
"is_public": is_public,
"name": name,
"metadata": metadata,
"scenario_ids": scenario_ids,
Expand Down Expand Up @@ -160,7 +156,6 @@ def update(
self,
id: str,
*,
is_public: bool,
name: str,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
Expand All @@ -176,8 +171,6 @@ def update(
Update a Benchmark with a set of Scenarios.

Args:
is_public: Whether this benchmark is public.

name: The name of the Benchmark. This must be unique.

metadata: User defined metadata to attach to the benchmark for organization.
Expand All @@ -200,7 +193,6 @@ def update(
f"/v1/benchmarks/{id}",
body=maybe_transform(
{
"is_public": is_public,
"name": name,
"metadata": metadata,
"scenario_ids": scenario_ids,
Expand Down Expand Up @@ -442,7 +434,6 @@ def with_streaming_response(self) -> AsyncBenchmarksResourceWithStreamingRespons
async def create(
self,
*,
is_public: bool,
name: str,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
Expand All @@ -458,8 +449,6 @@ async def create(
Create a Benchmark with a set of Scenarios.

Args:
is_public: Whether this benchmark is public.

name: The name of the Benchmark. This must be unique.

metadata: User defined metadata to attach to the benchmark for organization.
Expand All @@ -480,7 +469,6 @@ async def create(
"/v1/benchmarks",
body=await async_maybe_transform(
{
"is_public": is_public,
"name": name,
"metadata": metadata,
"scenario_ids": scenario_ids,
Expand Down Expand Up @@ -534,7 +522,6 @@ async def update(
self,
id: str,
*,
is_public: bool,
name: str,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
Expand All @@ -550,8 +537,6 @@ async def update(
Update a Benchmark with a set of Scenarios.

Args:
is_public: Whether this benchmark is public.

name: The name of the Benchmark. This must be unique.

metadata: User defined metadata to attach to the benchmark for organization.
Expand All @@ -574,7 +559,6 @@ async def update(
f"/v1/benchmarks/{id}",
body=await async_maybe_transform(
{
"is_public": is_public,
"name": name,
"metadata": metadata,
"scenario_ids": scenario_ids,
Expand Down
12 changes: 6 additions & 6 deletions src/runloop_api_client/resources/devboxes/devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def create(
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
prebuilt: Optional[str] | NotGiven = NOT_GIVEN,
repository_connection: Optional[devbox_create_params.RepositoryConnection] | NotGiven = NOT_GIVEN,
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -216,7 +216,7 @@ def create(
prebuilt: Reference to prebuilt Blueprint to create the Devbox from. Should not be used
together with (Snapshot ID, Blueprint ID, or Blueprint name).

repository_connection: Repository connection parameters for configuring repository integration.
repo_connection_id: Repository connection id the devbox should source its base image from.

snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
Blueprint name) should be specified.
Expand Down Expand Up @@ -245,7 +245,7 @@ def create(
"metadata": metadata,
"name": name,
"prebuilt": prebuilt,
"repository_connection": repository_connection,
"repo_connection_id": repo_connection_id,
"snapshot_id": snapshot_id,
},
devbox_create_params.DevboxCreateParams,
Expand Down Expand Up @@ -1429,7 +1429,7 @@ async def create(
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
prebuilt: Optional[str] | NotGiven = NOT_GIVEN,
repository_connection: Optional[devbox_create_params.RepositoryConnection] | NotGiven = NOT_GIVEN,
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand Down Expand Up @@ -1475,7 +1475,7 @@ async def create(
prebuilt: Reference to prebuilt Blueprint to create the Devbox from. Should not be used
together with (Snapshot ID, Blueprint ID, or Blueprint name).

repository_connection: Repository connection parameters for configuring repository integration.
repo_connection_id: Repository connection id the devbox should source its base image from.

snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
Blueprint name) should be specified.
Expand Down Expand Up @@ -1504,7 +1504,7 @@ async def create(
"metadata": metadata,
"name": name,
"prebuilt": prebuilt,
"repository_connection": repository_connection,
"repo_connection_id": repo_connection_id,
"snapshot_id": snapshot_id,
},
devbox_create_params.DevboxCreateParams,
Expand Down
28 changes: 27 additions & 1 deletion src/runloop_api_client/resources/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import httpx

from ..types import repository_list_params, repository_create_params
from ..types import repository_list_params, repository_create_params, repository_refresh_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform, async_maybe_transform
from .._compat import cached_property
Expand Down Expand Up @@ -272,6 +272,8 @@ def refresh(
self,
id: str,
*,
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
github_auth_token: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -285,6 +287,10 @@ def refresh(
repo's technical stack and developer environment requirements.

Args:
blueprint_id: ID of blueprint to use as base for resulting RepositoryVersion blueprint.

github_auth_token: GitHub authentication token for accessing private repositories.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -299,6 +305,13 @@ def refresh(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._post(
f"/v1/repositories/{id}/refresh",
body=maybe_transform(
{
"blueprint_id": blueprint_id,
"github_auth_token": github_auth_token,
},
repository_refresh_params.RepositoryRefreshParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down Expand Up @@ -557,6 +570,8 @@ async def refresh(
self,
id: str,
*,
blueprint_id: Optional[str] | NotGiven = NOT_GIVEN,
github_auth_token: Optional[str] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -570,6 +585,10 @@ async def refresh(
repo's technical stack and developer environment requirements.

Args:
blueprint_id: ID of blueprint to use as base for resulting RepositoryVersion blueprint.

github_auth_token: GitHub authentication token for accessing private repositories.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -584,6 +603,13 @@ async def refresh(
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._post(
f"/v1/repositories/{id}/refresh",
body=await async_maybe_transform(
{
"blueprint_id": blueprint_id,
"github_auth_token": github_auth_token,
},
repository_refresh_params.RepositoryRefreshParams,
),
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
Expand Down
16 changes: 0 additions & 16 deletions src/runloop_api_client/resources/scenarios/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def create(
self,
*,
input_context: InputContextParam,
is_public: bool,
name: str,
scoring_contract: ScoringContractParam,
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
Expand All @@ -104,8 +103,6 @@ def create(
Args:
input_context: The input context for the Scenario.

is_public: Whether this scenario is public.

name: Name of the scenario.

scoring_contract: The scoring contract for the Scenario.
Expand Down Expand Up @@ -133,7 +130,6 @@ def create(
body=maybe_transform(
{
"input_context": input_context,
"is_public": is_public,
"name": name,
"scoring_contract": scoring_contract,
"environment_parameters": environment_parameters,
Expand Down Expand Up @@ -190,7 +186,6 @@ def update(
id: str,
*,
input_context: InputContextParam,
is_public: bool,
name: str,
scoring_contract: ScoringContractParam,
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
Expand All @@ -211,8 +206,6 @@ def update(
Args:
input_context: The input context for the Scenario.

is_public: Whether this scenario is public.

name: Name of the scenario.

scoring_contract: The scoring contract for the Scenario.
Expand Down Expand Up @@ -242,7 +235,6 @@ def update(
body=maybe_transform(
{
"input_context": input_context,
"is_public": is_public,
"name": name,
"scoring_contract": scoring_contract,
"environment_parameters": environment_parameters,
Expand Down Expand Up @@ -514,7 +506,6 @@ async def create(
self,
*,
input_context: InputContextParam,
is_public: bool,
name: str,
scoring_contract: ScoringContractParam,
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
Expand All @@ -535,8 +526,6 @@ async def create(
Args:
input_context: The input context for the Scenario.

is_public: Whether this scenario is public.

name: Name of the scenario.

scoring_contract: The scoring contract for the Scenario.
Expand Down Expand Up @@ -564,7 +553,6 @@ async def create(
body=await async_maybe_transform(
{
"input_context": input_context,
"is_public": is_public,
"name": name,
"scoring_contract": scoring_contract,
"environment_parameters": environment_parameters,
Expand Down Expand Up @@ -621,7 +609,6 @@ async def update(
id: str,
*,
input_context: InputContextParam,
is_public: bool,
name: str,
scoring_contract: ScoringContractParam,
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
Expand All @@ -642,8 +629,6 @@ async def update(
Args:
input_context: The input context for the Scenario.

is_public: Whether this scenario is public.

name: Name of the scenario.

scoring_contract: The scoring contract for the Scenario.
Expand Down Expand Up @@ -673,7 +658,6 @@ async def update(
body=await async_maybe_transform(
{
"input_context": input_context,
"is_public": is_public,
"name": name,
"scoring_contract": scoring_contract,
"environment_parameters": environment_parameters,
Expand Down
1 change: 1 addition & 0 deletions src/runloop_api_client/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
from .repository_manifest_view import RepositoryManifestView as RepositoryManifestView
from .devbox_snapshot_list_view import DevboxSnapshotListView as DevboxSnapshotListView
from .devbox_upload_file_params import DevboxUploadFileParams as DevboxUploadFileParams
from .repository_refresh_params import RepositoryRefreshParams as RepositoryRefreshParams
from .scenario_start_run_params import ScenarioStartRunParams as ScenarioStartRunParams
from .benchmark_start_run_params import BenchmarkStartRunParams as BenchmarkStartRunParams
from .blueprint_build_parameters import BlueprintBuildParameters as BlueprintBuildParameters
Expand Down
3 changes: 0 additions & 3 deletions src/runloop_api_client/types/benchmark_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@


class BenchmarkCreateParams(TypedDict, total=False):
is_public: Required[bool]
"""Whether this benchmark is public."""

name: Required[str]
"""The name of the Benchmark. This must be unique."""

Expand Down
Loading
Loading