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.35.0"
".": "0.36.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 84
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-da7ec5b4cc55e7316bc3de6a9c0a37f5ee3057d3d68fdda9cb570d1a1fee57ea.yml
openapi_spec_hash: 5b89a8e3c67c4816dfab9a87fd67247d
config_hash: 8c014837a658512c2e23c002bb0f2ab1
configured_endpoints: 85
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-3484df665f4c2b7cb17ad044b825223fc69ad67b05d967fbb6dfbb6a6ac9ccac.yml
openapi_spec_hash: 58c0860078f5f26c8b517603956700b5
config_hash: c03c6a4c057a38e2809a102c48fafe6c
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.36.0 (2025-06-02)

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

### Features

* **api:** api update ([43e693c](https://github.com/runloopai/api-client-python/commit/43e693ce72c8000ee98ae50925a05b8163e04c15))

## 0.35.0 (2025-05-30)

Full Changelog: [v0.34.1...v0.35.0](https://github.com/runloopai/api-client-python/compare/v0.34.1...v0.35.0)
Expand Down
8 changes: 5 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ Types:
from runloop_api_client.types import (
RepositoryConnectionListView,
RepositoryConnectionView,
RepositoryVersionDetails,
RepositoryVersionListView,
RepositoryInspectionDetails,
RepositoryInspectionListView,
RepositoryManifestView,
)
```

Expand All @@ -334,4 +335,5 @@ Methods:
- <code title="get /v1/repositories/{id}">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/repository_connection_view.py">RepositoryConnectionView</a></code>
- <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}/versions">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">versions</a>(id) -> <a href="./src/runloop_api_client/types/repository_version_list_view.py">RepositoryVersionListView</a></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>
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.35.0"
version = "0.36.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.35.0" # x-release-please-version
__version__ = "0.36.0" # x-release-please-version
8 changes: 8 additions & 0 deletions src/runloop_api_client/resources/devboxes/devboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +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,
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 @@ -215,6 +216,8 @@ 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.

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 @@ -242,6 +245,7 @@ def create(
"metadata": metadata,
"name": name,
"prebuilt": prebuilt,
"repository_connection": repository_connection,
"snapshot_id": snapshot_id,
},
devbox_create_params.DevboxCreateParams,
Expand Down Expand Up @@ -1425,6 +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,
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 @@ -1470,6 +1475,8 @@ 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.

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 @@ -1497,6 +1504,7 @@ async def create(
"metadata": metadata,
"name": name,
"prebuilt": prebuilt,
"repository_connection": repository_connection,
"snapshot_id": snapshot_id,
},
devbox_create_params.DevboxCreateParams,
Expand Down
144 changes: 123 additions & 21 deletions src/runloop_api_client/resources/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from ..pagination import SyncRepositoriesCursorIDPage, AsyncRepositoriesCursorIDPage
from .._base_client import AsyncPaginator, make_request_options
from ..types.repository_connection_view import RepositoryConnectionView
from ..types.repository_version_list_view import RepositoryVersionListView
from ..types.repository_inspection_list_view import RepositoryInspectionListView

__all__ = ["RepositoriesResource", "AsyncRepositoriesResource"]

Expand Down Expand Up @@ -51,6 +51,7 @@ def create(
name: str,
owner: 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 @@ -70,6 +71,8 @@ def create(

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 @@ -87,6 +90,7 @@ def create(
"name": name,
"owner": owner,
"blueprint_id": blueprint_id,
"github_auth_token": github_auth_token,
},
repository_create_params.RepositoryCreateParams,
),
Expand Down Expand Up @@ -230,7 +234,7 @@ def delete(
cast_to=object,
)

def versions(
def list_inspections(
self,
id: str,
*,
Expand All @@ -240,10 +244,10 @@ def versions(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> RepositoryVersionListView:
) -> RepositoryInspectionListView:
"""
List all analyzed versions of a repository connection including automatically
generated insights for each version.
List all inspections of a repository connection including automatically
generated insights for each inspection.

Args:
extra_headers: Send extra headers
Expand All @@ -257,11 +261,52 @@ def versions(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._get(
f"/v1/repositories/{id}/versions",
f"/v1/repositories/{id}/inspections",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=RepositoryVersionListView,
cast_to=RepositoryInspectionListView,
)

def refresh(
self,
id: str,
*,
# 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> object:
"""
Refresh a repository connection by inspecting the latest version including
repo's technical stack and developer environment requirements.

Args:
extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return self._post(
f"/v1/repositories/{id}/refresh",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=object,
)


Expand Down Expand Up @@ -291,6 +336,7 @@ async def create(
name: str,
owner: 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 @@ -310,6 +356,8 @@ async def create(

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 @@ -327,6 +375,7 @@ async def create(
"name": name,
"owner": owner,
"blueprint_id": blueprint_id,
"github_auth_token": github_auth_token,
},
repository_create_params.RepositoryCreateParams,
),
Expand Down Expand Up @@ -470,7 +519,7 @@ async def delete(
cast_to=object,
)

async def versions(
async def list_inspections(
self,
id: str,
*,
Expand All @@ -480,10 +529,10 @@ async def versions(
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> RepositoryVersionListView:
) -> RepositoryInspectionListView:
"""
List all analyzed versions of a repository connection including automatically
generated insights for each version.
List all inspections of a repository connection including automatically
generated insights for each inspection.

Args:
extra_headers: Send extra headers
Expand All @@ -497,11 +546,52 @@ async def versions(
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._get(
f"/v1/repositories/{id}/versions",
f"/v1/repositories/{id}/inspections",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=RepositoryVersionListView,
cast_to=RepositoryInspectionListView,
)

async def refresh(
self,
id: str,
*,
# 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
idempotency_key: str | None = None,
) -> object:
"""
Refresh a repository connection by inspecting the latest version including
repo's technical stack and developer environment requirements.

Args:
extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds

idempotency_key: Specify a custom idempotency key for this request
"""
if not id:
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
return await self._post(
f"/v1/repositories/{id}/refresh",
options=make_request_options(
extra_headers=extra_headers,
extra_query=extra_query,
extra_body=extra_body,
timeout=timeout,
idempotency_key=idempotency_key,
),
cast_to=object,
)


Expand All @@ -521,8 +611,11 @@ def __init__(self, repositories: RepositoriesResource) -> None:
self.delete = to_raw_response_wrapper(
repositories.delete,
)
self.versions = to_raw_response_wrapper(
repositories.versions,
self.list_inspections = to_raw_response_wrapper(
repositories.list_inspections,
)
self.refresh = to_raw_response_wrapper(
repositories.refresh,
)


Expand All @@ -542,8 +635,11 @@ def __init__(self, repositories: AsyncRepositoriesResource) -> None:
self.delete = async_to_raw_response_wrapper(
repositories.delete,
)
self.versions = async_to_raw_response_wrapper(
repositories.versions,
self.list_inspections = async_to_raw_response_wrapper(
repositories.list_inspections,
)
self.refresh = async_to_raw_response_wrapper(
repositories.refresh,
)


Expand All @@ -563,8 +659,11 @@ def __init__(self, repositories: RepositoriesResource) -> None:
self.delete = to_streamed_response_wrapper(
repositories.delete,
)
self.versions = to_streamed_response_wrapper(
repositories.versions,
self.list_inspections = to_streamed_response_wrapper(
repositories.list_inspections,
)
self.refresh = to_streamed_response_wrapper(
repositories.refresh,
)


Expand All @@ -584,6 +683,9 @@ def __init__(self, repositories: AsyncRepositoriesResource) -> None:
self.delete = async_to_streamed_response_wrapper(
repositories.delete,
)
self.versions = async_to_streamed_response_wrapper(
repositories.versions,
self.list_inspections = async_to_streamed_response_wrapper(
repositories.list_inspections,
)
self.refresh = async_to_streamed_response_wrapper(
repositories.refresh,
)
Loading
Loading