diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 21fa4455a..d940b6004 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.54.0"
+ ".": "0.55.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 6f1758654..4ac8bf319 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 92
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-20da49cddb76a81f77844447916c6d445b25634ff99aae15d8dfd50fe6d854e6.yml
-openapi_spec_hash: 2097a1bfb48092ed3b03fa606f5c5447
-config_hash: 60681f589a9e641fdb7f19af2021a033
+configured_endpoints: 93
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-5bf266bfc4635f690b764f54cbbcd71ff347622e3bfd8540a7d2a4d7d2d78be8.yml
+openapi_spec_hash: 3769820d0ac76caf6a1950802c73a382
+config_hash: 7d940dc50b19e75e3719c4d41fd0e8dd
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c8f36b1d6..f76d9d864 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,21 @@
# Changelog
+## 0.55.0 (2025-08-19)
+
+Full Changelog: [v0.54.0...v0.55.0](https://github.com/runloopai/api-client-python/compare/v0.54.0...v0.55.0)
+
+### Features
+
+* **api:** api update ([b861c73](https://github.com/runloopai/api-client-python/commit/b861c73595eb0d0744a7a3d81bb46cc2cc397486))
+* **api:** api update ([06ec7b9](https://github.com/runloopai/api-client-python/commit/06ec7b9b9b47b96c1876427f74a063640a4f6fb7))
+
+
+### Chores
+
+* **internal:** fix ruff target version ([91fb064](https://github.com/runloopai/api-client-python/commit/91fb0649d64f4982c292330ade9f61b26ff4841c))
+* **internal:** update comment in script ([4b8d5ba](https://github.com/runloopai/api-client-python/commit/4b8d5ba0dd2553ca32f56876bd6a20ec04991778))
+* update @stainless-api/prism-cli to v5.15.0 ([3119d91](https://github.com/runloopai/api-client-python/commit/3119d91af94985c86961db8b137753f70ef13748))
+
## 0.54.0 (2025-08-05)
Full Changelog: [v0.53.0...v0.54.0](https://github.com/runloopai/api-client-python/compare/v0.53.0...v0.54.0)
diff --git a/api.md b/api.md
index bc4e96abc..a36b2fa0b 100644
--- a/api.md
+++ b/api.md
@@ -60,6 +60,7 @@ Methods:
- client.blueprints.retrieve(id) -> BlueprintView
- client.blueprints.list(\*\*params) -> SyncBlueprintsCursorIDPage[BlueprintView]
- client.blueprints.delete(id) -> object
+- client.blueprints.list_public(\*\*params) -> SyncBlueprintsCursorIDPage[BlueprintView]
- client.blueprints.logs(id) -> BlueprintBuildLogsListView
- client.blueprints.preview(\*\*params) -> BlueprintPreviewView
- client.blueprints.create_and_await_build_complete(create_args, request_args=None) -> BlueprintView
@@ -364,5 +365,5 @@ Methods:
- client.secrets.create(\*\*params) -> SecretView
- client.secrets.update(name, \*\*params) -> SecretView
-- client.secrets.list() -> SecretListView
+- client.secrets.list(\*\*params) -> SecretListView
- client.secrets.delete(name) -> SecretView
diff --git a/pyproject.toml b/pyproject.toml
index 53783e85f..8d71d064d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "runloop_api_client"
-version = "0.54.0"
+version = "0.55.0"
description = "The official Python library for the runloop API"
dynamic = ["readme"]
license = "MIT"
@@ -168,7 +168,7 @@ reportPrivateUsage = false
[tool.ruff]
line-length = 120
output-format = "grouped"
-target-version = "py37"
+target-version = "py38"
[tool.ruff.format]
docstring-code-format = true
diff --git a/scripts/mock b/scripts/mock
index d2814ae6a..0b28f6ea2 100755
--- a/scripts/mock
+++ b/scripts/mock
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
# Run prism mock on the given spec
if [ "$1" == "--daemon" ]; then
- npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
+ npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log &
# Wait for server to come online
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
echo
else
- npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
+ npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL"
fi
diff --git a/scripts/test b/scripts/test
index 2b8784567..dbeda2d21 100755
--- a/scripts/test
+++ b/scripts/test
@@ -43,7 +43,7 @@ elif ! prism_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
- echo -e " \$ ${YELLOW}npm exec --package=@stoplight/prism-cli@~5.3.2 -- prism mock path/to/your.openapi.yml${NC}"
+ echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo
exit 1
diff --git a/src/runloop_api_client/_version.py b/src/runloop_api_client/_version.py
index a42e6aeee..221eb9d85 100644
--- a/src/runloop_api_client/_version.py
+++ b/src/runloop_api_client/_version.py
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
__title__ = "runloop_api_client"
-__version__ = "0.54.0" # x-release-please-version
+__version__ = "0.55.0" # x-release-please-version
diff --git a/src/runloop_api_client/resources/blueprints.py b/src/runloop_api_client/resources/blueprints.py
index b99690ace..039dbeca5 100644
--- a/src/runloop_api_client/resources/blueprints.py
+++ b/src/runloop_api_client/resources/blueprints.py
@@ -6,7 +6,12 @@
import httpx
-from ..types import blueprint_list_params, blueprint_create_params, blueprint_preview_params
+from ..types import (
+ blueprint_list_params,
+ blueprint_create_params,
+ blueprint_preview_params,
+ blueprint_list_public_params,
+)
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform, async_maybe_transform
from .._compat import cached_property
@@ -72,6 +77,7 @@ def create(
dockerfile: Optional[str] | NotGiven = NOT_GIVEN,
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
+ services: Optional[Iterable[blueprint_create_params.Service]] | NotGiven = NOT_GIVEN,
system_setup_commands: Optional[List[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.
@@ -102,6 +108,10 @@ def create(
launch_parameters: Parameters to configure your Devbox at launch time.
+ services: (Optional) List of containerized services to include in the Blueprint. These
+ services will be pre-pulled during the build phase for optimized startup
+ performance.
+
system_setup_commands: A list of commands to run to set up your system.
extra_headers: Send extra headers
@@ -124,6 +134,7 @@ def create(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
+ "services": services,
"system_setup_commands": system_setup_commands,
},
blueprint_create_params.BlueprintCreateParams,
@@ -343,6 +354,57 @@ def delete(
cast_to=object,
)
+ def list_public(
+ self,
+ *,
+ limit: int | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ starting_after: 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,
+ extra_query: Query | None = None,
+ extra_body: Body | None = None,
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
+ ) -> SyncBlueprintsCursorIDPage[BlueprintView]:
+ """
+ List all public Blueprints that are available to all users.
+
+ Args:
+ limit: The limit of items to return. Default is 20.
+
+ name: Filter by name
+
+ starting_after: Load the next page of data starting after the item with the given ID.
+
+ 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
+ """
+ return self._get_api_list(
+ "/v1/blueprints/list_public",
+ page=SyncBlueprintsCursorIDPage[BlueprintView],
+ options=make_request_options(
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ query=maybe_transform(
+ {
+ "limit": limit,
+ "name": name,
+ "starting_after": starting_after,
+ },
+ blueprint_list_public_params.BlueprintListPublicParams,
+ ),
+ ),
+ model=BlueprintView,
+ )
+
def logs(
self,
id: str,
@@ -385,6 +447,7 @@ def preview(
dockerfile: Optional[str] | NotGiven = NOT_GIVEN,
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
+ services: Optional[Iterable[blueprint_preview_params.Service]] | NotGiven = NOT_GIVEN,
system_setup_commands: Optional[List[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.
@@ -413,6 +476,10 @@ def preview(
launch_parameters: Parameters to configure your Devbox at launch time.
+ services: (Optional) List of containerized services to include in the Blueprint. These
+ services will be pre-pulled during the build phase for optimized startup
+ performance.
+
system_setup_commands: A list of commands to run to set up your system.
extra_headers: Send extra headers
@@ -435,6 +502,7 @@ def preview(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
+ "services": services,
"system_setup_commands": system_setup_commands,
},
blueprint_preview_params.BlueprintPreviewParams,
@@ -479,6 +547,7 @@ async def create(
dockerfile: Optional[str] | NotGiven = NOT_GIVEN,
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
+ services: Optional[Iterable[blueprint_create_params.Service]] | NotGiven = NOT_GIVEN,
system_setup_commands: Optional[List[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.
@@ -509,6 +578,10 @@ async def create(
launch_parameters: Parameters to configure your Devbox at launch time.
+ services: (Optional) List of containerized services to include in the Blueprint. These
+ services will be pre-pulled during the build phase for optimized startup
+ performance.
+
system_setup_commands: A list of commands to run to set up your system.
extra_headers: Send extra headers
@@ -531,6 +604,7 @@ async def create(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
+ "services": services,
"system_setup_commands": system_setup_commands,
},
blueprint_create_params.BlueprintCreateParams,
@@ -751,6 +825,57 @@ async def delete(
cast_to=object,
)
+ def list_public(
+ self,
+ *,
+ limit: int | NotGiven = NOT_GIVEN,
+ name: str | NotGiven = NOT_GIVEN,
+ starting_after: 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,
+ extra_query: Query | None = None,
+ extra_body: Body | None = None,
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
+ ) -> AsyncPaginator[BlueprintView, AsyncBlueprintsCursorIDPage[BlueprintView]]:
+ """
+ List all public Blueprints that are available to all users.
+
+ Args:
+ limit: The limit of items to return. Default is 20.
+
+ name: Filter by name
+
+ starting_after: Load the next page of data starting after the item with the given ID.
+
+ 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
+ """
+ return self._get_api_list(
+ "/v1/blueprints/list_public",
+ page=AsyncBlueprintsCursorIDPage[BlueprintView],
+ options=make_request_options(
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ query=maybe_transform(
+ {
+ "limit": limit,
+ "name": name,
+ "starting_after": starting_after,
+ },
+ blueprint_list_public_params.BlueprintListPublicParams,
+ ),
+ ),
+ model=BlueprintView,
+ )
+
async def logs(
self,
id: str,
@@ -793,6 +918,7 @@ async def preview(
dockerfile: Optional[str] | NotGiven = NOT_GIVEN,
file_mounts: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
+ services: Optional[Iterable[blueprint_preview_params.Service]] | NotGiven = NOT_GIVEN,
system_setup_commands: Optional[List[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.
@@ -821,6 +947,10 @@ async def preview(
launch_parameters: Parameters to configure your Devbox at launch time.
+ services: (Optional) List of containerized services to include in the Blueprint. These
+ services will be pre-pulled during the build phase for optimized startup
+ performance.
+
system_setup_commands: A list of commands to run to set up your system.
extra_headers: Send extra headers
@@ -843,6 +973,7 @@ async def preview(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
+ "services": services,
"system_setup_commands": system_setup_commands,
},
blueprint_preview_params.BlueprintPreviewParams,
@@ -874,6 +1005,9 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
self.delete = to_raw_response_wrapper(
blueprints.delete,
)
+ self.list_public = to_raw_response_wrapper(
+ blueprints.list_public,
+ )
self.logs = to_raw_response_wrapper(
blueprints.logs,
)
@@ -898,6 +1032,9 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
self.delete = async_to_raw_response_wrapper(
blueprints.delete,
)
+ self.list_public = async_to_raw_response_wrapper(
+ blueprints.list_public,
+ )
self.logs = async_to_raw_response_wrapper(
blueprints.logs,
)
@@ -922,6 +1059,9 @@ def __init__(self, blueprints: BlueprintsResource) -> None:
self.delete = to_streamed_response_wrapper(
blueprints.delete,
)
+ self.list_public = to_streamed_response_wrapper(
+ blueprints.list_public,
+ )
self.logs = to_streamed_response_wrapper(
blueprints.logs,
)
@@ -946,6 +1086,9 @@ def __init__(self, blueprints: AsyncBlueprintsResource) -> None:
self.delete = async_to_streamed_response_wrapper(
blueprints.delete,
)
+ self.list_public = async_to_streamed_response_wrapper(
+ blueprints.list_public,
+ )
self.logs = async_to_streamed_response_wrapper(
blueprints.logs,
)
diff --git a/src/runloop_api_client/resources/devboxes/devboxes.py b/src/runloop_api_client/resources/devboxes/devboxes.py
index e809c2204..7aee61337 100644
--- a/src/runloop_api_client/resources/devboxes/devboxes.py
+++ b/src/runloop_api_client/resources/devboxes/devboxes.py
@@ -192,7 +192,6 @@ def create(
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
- prebuilt: Optional[str] | NotGiven = NOT_GIVEN,
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
secrets: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
@@ -237,9 +236,6 @@ def create(
name: (Optional) A user specified name to give the Devbox.
- prebuilt: Reference to prebuilt Blueprint to create the Devbox from. Should not be used
- together with (Snapshot ID, Blueprint ID, or Blueprint name).
-
repo_connection_id: Repository connection id the devbox should source its base image from.
secrets: (Optional) Map of environment variable names to secret names. The secret values
@@ -273,7 +269,6 @@ def create(
"launch_parameters": launch_parameters,
"metadata": metadata,
"name": name,
- "prebuilt": prebuilt,
"repo_connection_id": repo_connection_id,
"secrets": secrets,
"snapshot_id": snapshot_id,
@@ -1434,7 +1429,6 @@ async def create(
launch_parameters: Optional[LaunchParameters] | NotGiven = NOT_GIVEN,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
name: Optional[str] | NotGiven = NOT_GIVEN,
- prebuilt: Optional[str] | NotGiven = NOT_GIVEN,
repo_connection_id: Optional[str] | NotGiven = NOT_GIVEN,
secrets: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
snapshot_id: Optional[str] | NotGiven = NOT_GIVEN,
@@ -1479,9 +1473,6 @@ async def create(
name: (Optional) A user specified name to give the Devbox.
- prebuilt: Reference to prebuilt Blueprint to create the Devbox from. Should not be used
- together with (Snapshot ID, Blueprint ID, or Blueprint name).
-
repo_connection_id: Repository connection id the devbox should source its base image from.
secrets: (Optional) Map of environment variable names to secret names. The secret values
@@ -1515,7 +1506,6 @@ async def create(
"launch_parameters": launch_parameters,
"metadata": metadata,
"name": name,
- "prebuilt": prebuilt,
"repo_connection_id": repo_connection_id,
"secrets": secrets,
"snapshot_id": snapshot_id,
diff --git a/src/runloop_api_client/resources/secrets.py b/src/runloop_api_client/resources/secrets.py
index d6eb94c7a..e70e67f98 100644
--- a/src/runloop_api_client/resources/secrets.py
+++ b/src/runloop_api_client/resources/secrets.py
@@ -4,7 +4,7 @@
import httpx
-from ..types import secret_create_params, secret_update_params
+from ..types import secret_list_params, secret_create_params, secret_update_params
from .._types import NOT_GIVEN, Body, Query, Headers, NotGiven
from .._utils import maybe_transform, async_maybe_transform
from .._compat import cached_property
@@ -146,6 +146,7 @@ def update(
def list(
self,
*,
+ limit: int | 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,
@@ -157,11 +158,26 @@ def list(
Secret values are not included
for security reasons.
+
+ Args:
+ limit: The limit of items to return. Default is 20.
+
+ 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
"""
return self._get(
"/v1/secrets",
options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ query=maybe_transform({"limit": limit}, secret_list_params.SecretListParams),
),
cast_to=SecretListView,
)
@@ -333,6 +349,7 @@ async def update(
async def list(
self,
*,
+ limit: int | 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,
@@ -344,11 +361,26 @@ async def list(
Secret values are not included
for security reasons.
+
+ Args:
+ limit: The limit of items to return. Default is 20.
+
+ 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
"""
return await self._get(
"/v1/secrets",
options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
+ extra_headers=extra_headers,
+ extra_query=extra_query,
+ extra_body=extra_body,
+ timeout=timeout,
+ query=await async_maybe_transform({"limit": limit}, secret_list_params.SecretListParams),
),
cast_to=SecretListView,
)
diff --git a/src/runloop_api_client/types/__init__.py b/src/runloop_api_client/types/__init__.py
index 5a4773839..8a9145ca0 100644
--- a/src/runloop_api_client/types/__init__.py
+++ b/src/runloop_api_client/types/__init__.py
@@ -23,6 +23,7 @@
from .benchmark_run_view import BenchmarkRunView as BenchmarkRunView
from .devbox_list_params import DevboxListParams as DevboxListParams
from .devbox_tunnel_view import DevboxTunnelView as DevboxTunnelView
+from .secret_list_params import SecretListParams as SecretListParams
from .blueprint_build_log import BlueprintBuildLog as BlueprintBuildLog
from .blueprint_list_view import BlueprintListView as BlueprintListView
from .input_context_param import InputContextParam as InputContextParam
@@ -67,6 +68,7 @@
from .scenario_list_public_params import ScenarioListPublicParams as ScenarioListPublicParams
from .benchmark_definitions_params import BenchmarkDefinitionsParams as BenchmarkDefinitionsParams
from .benchmark_list_public_params import BenchmarkListPublicParams as BenchmarkListPublicParams
+from .blueprint_list_public_params import BlueprintListPublicParams as BlueprintListPublicParams
from .devbox_execution_detail_view import DevboxExecutionDetailView as DevboxExecutionDetailView
from .scoring_contract_result_view import ScoringContractResultView as ScoringContractResultView
from .scoring_function_result_view import ScoringFunctionResultView as ScoringFunctionResultView
diff --git a/src/runloop_api_client/types/blueprint_build_parameters.py b/src/runloop_api_client/types/blueprint_build_parameters.py
index e3742d185..4139526f8 100644
--- a/src/runloop_api_client/types/blueprint_build_parameters.py
+++ b/src/runloop_api_client/types/blueprint_build_parameters.py
@@ -6,7 +6,38 @@
from .shared.launch_parameters import LaunchParameters
from .shared.code_mount_parameters import CodeMountParameters
-__all__ = ["BlueprintBuildParameters"]
+__all__ = ["BlueprintBuildParameters", "Service", "ServiceCredentials"]
+
+
+class ServiceCredentials(BaseModel):
+ password: str
+ """The password of the container service."""
+
+ username: str
+ """The username of the container service."""
+
+
+class Service(BaseModel):
+ image: str
+ """The image of the container service."""
+
+ name: str
+ """The name of the container service."""
+
+ credentials: Optional[ServiceCredentials] = None
+ """The credentials of the container service."""
+
+ env: Optional[Dict[str, str]] = None
+ """The environment variables of the container service."""
+
+ options: Optional[str] = None
+ """Additional Docker container create options."""
+
+ port_mappings: Optional[List[str]] = None
+ """The port mappings of the container service.
+
+ Port mappings are in the format of :.
+ """
class BlueprintBuildParameters(BaseModel):
@@ -31,5 +62,12 @@ class BlueprintBuildParameters(BaseModel):
launch_parameters: Optional[LaunchParameters] = None
"""Parameters to configure your Devbox at launch time."""
+ services: Optional[List[Service]] = None
+ """(Optional) List of containerized services to include in the Blueprint.
+
+ These services will be pre-pulled during the build phase for optimized startup
+ performance.
+ """
+
system_setup_commands: Optional[List[str]] = None
"""A list of commands to run to set up your system."""
diff --git a/src/runloop_api_client/types/blueprint_create_params.py b/src/runloop_api_client/types/blueprint_create_params.py
index a588a6a0b..0beb3d469 100644
--- a/src/runloop_api_client/types/blueprint_create_params.py
+++ b/src/runloop_api_client/types/blueprint_create_params.py
@@ -8,7 +8,7 @@
from .shared_params.launch_parameters import LaunchParameters
from .shared_params.code_mount_parameters import CodeMountParameters
-__all__ = ["BlueprintCreateParams"]
+__all__ = ["BlueprintCreateParams", "Service", "ServiceCredentials"]
class BlueprintCreateParams(TypedDict, total=False):
@@ -33,5 +33,43 @@ class BlueprintCreateParams(TypedDict, total=False):
launch_parameters: Optional[LaunchParameters]
"""Parameters to configure your Devbox at launch time."""
+ services: Optional[Iterable[Service]]
+ """(Optional) List of containerized services to include in the Blueprint.
+
+ These services will be pre-pulled during the build phase for optimized startup
+ performance.
+ """
+
system_setup_commands: Optional[List[str]]
"""A list of commands to run to set up your system."""
+
+
+class ServiceCredentials(TypedDict, total=False):
+ password: Required[str]
+ """The password of the container service."""
+
+ username: Required[str]
+ """The username of the container service."""
+
+
+class Service(TypedDict, total=False):
+ image: Required[str]
+ """The image of the container service."""
+
+ name: Required[str]
+ """The name of the container service."""
+
+ credentials: Optional[ServiceCredentials]
+ """The credentials of the container service."""
+
+ env: Optional[Dict[str, str]]
+ """The environment variables of the container service."""
+
+ options: Optional[str]
+ """Additional Docker container create options."""
+
+ port_mappings: Optional[List[str]]
+ """The port mappings of the container service.
+
+ Port mappings are in the format of :.
+ """
diff --git a/src/runloop_api_client/types/blueprint_list_public_params.py b/src/runloop_api_client/types/blueprint_list_public_params.py
new file mode 100644
index 000000000..d6b11e78e
--- /dev/null
+++ b/src/runloop_api_client/types/blueprint_list_public_params.py
@@ -0,0 +1,18 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypedDict
+
+__all__ = ["BlueprintListPublicParams"]
+
+
+class BlueprintListPublicParams(TypedDict, total=False):
+ limit: int
+ """The limit of items to return. Default is 20."""
+
+ name: str
+ """Filter by name"""
+
+ starting_after: str
+ """Load the next page of data starting after the item with the given ID."""
diff --git a/src/runloop_api_client/types/blueprint_preview_params.py b/src/runloop_api_client/types/blueprint_preview_params.py
index d7384f54c..11112080f 100644
--- a/src/runloop_api_client/types/blueprint_preview_params.py
+++ b/src/runloop_api_client/types/blueprint_preview_params.py
@@ -8,7 +8,7 @@
from .shared_params.launch_parameters import LaunchParameters
from .shared_params.code_mount_parameters import CodeMountParameters
-__all__ = ["BlueprintPreviewParams"]
+__all__ = ["BlueprintPreviewParams", "Service", "ServiceCredentials"]
class BlueprintPreviewParams(TypedDict, total=False):
@@ -33,5 +33,43 @@ class BlueprintPreviewParams(TypedDict, total=False):
launch_parameters: Optional[LaunchParameters]
"""Parameters to configure your Devbox at launch time."""
+ services: Optional[Iterable[Service]]
+ """(Optional) List of containerized services to include in the Blueprint.
+
+ These services will be pre-pulled during the build phase for optimized startup
+ performance.
+ """
+
system_setup_commands: Optional[List[str]]
"""A list of commands to run to set up your system."""
+
+
+class ServiceCredentials(TypedDict, total=False):
+ password: Required[str]
+ """The password of the container service."""
+
+ username: Required[str]
+ """The username of the container service."""
+
+
+class Service(TypedDict, total=False):
+ image: Required[str]
+ """The image of the container service."""
+
+ name: Required[str]
+ """The name of the container service."""
+
+ credentials: Optional[ServiceCredentials]
+ """The credentials of the container service."""
+
+ env: Optional[Dict[str, str]]
+ """The environment variables of the container service."""
+
+ options: Optional[str]
+ """Additional Docker container create options."""
+
+ port_mappings: Optional[List[str]]
+ """The port mappings of the container service.
+
+ Port mappings are in the format of :.
+ """
diff --git a/src/runloop_api_client/types/blueprint_view.py b/src/runloop_api_client/types/blueprint_view.py
index 47e7baac8..7c6b9ee77 100644
--- a/src/runloop_api_client/types/blueprint_view.py
+++ b/src/runloop_api_client/types/blueprint_view.py
@@ -70,3 +70,9 @@ class BlueprintView(BaseModel):
failure_reason: Optional[Literal["out_of_memory", "out_of_disk", "build_failed"]] = None
"""The failure reason if the Blueprint build failed, if any."""
+
+ is_public: Optional[bool] = None
+ """Whether this Blueprint is publicly accessible to all users."""
+
+ metadata: Optional[Dict[str, str]] = None
+ """User defined metadata associated with the blueprint."""
diff --git a/src/runloop_api_client/types/devbox_create_params.py b/src/runloop_api_client/types/devbox_create_params.py
index d35ab34a5..6efea2b79 100644
--- a/src/runloop_api_client/types/devbox_create_params.py
+++ b/src/runloop_api_client/types/devbox_create_params.py
@@ -52,12 +52,6 @@ class DevboxCreateParams(TypedDict, total=False):
name: Optional[str]
"""(Optional) A user specified name to give the Devbox."""
- prebuilt: Optional[str]
- """Reference to prebuilt Blueprint to create the Devbox from.
-
- Should not be used together with (Snapshot ID, Blueprint ID, or Blueprint name).
- """
-
repo_connection_id: Optional[str]
"""Repository connection id the devbox should source its base image from."""
diff --git a/src/runloop_api_client/types/devbox_view.py b/src/runloop_api_client/types/devbox_view.py
index 6b6be39c5..dc4904eae 100644
--- a/src/runloop_api_client/types/devbox_view.py
+++ b/src/runloop_api_client/types/devbox_view.py
@@ -75,9 +75,7 @@ class DevboxView(BaseModel):
name: Optional[str] = None
"""The name of the Devbox."""
- shutdown_reason: Optional[
- Literal["api_shutdown", "keep_alive_timeout", "entrypoint_exit", "idle", "lambda_lifecycle"]
- ] = None
+ shutdown_reason: Optional[Literal["api_shutdown", "keep_alive_timeout", "entrypoint_exit", "idle"]] = None
"""
The shutdown reason if the Devbox shutdown, if the Devbox has a 'shutdown'
status.
diff --git a/src/runloop_api_client/types/repository_inspection_details.py b/src/runloop_api_client/types/repository_inspection_details.py
index 8b36909e4..f83932d29 100644
--- a/src/runloop_api_client/types/repository_inspection_details.py
+++ b/src/runloop_api_client/types/repository_inspection_details.py
@@ -1,12 +1,36 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import Dict, List, Optional
from typing_extensions import Literal
from .._models import BaseModel
from .repository_manifest_view import RepositoryManifestView
-__all__ = ["RepositoryInspectionDetails"]
+__all__ = ["RepositoryInspectionDetails", "WorkflowContexts", "WorkflowContextsActionsContext"]
+
+
+class WorkflowContextsActionsContext(BaseModel):
+ actions_skipped_unnecessary: List[str]
+ """
+ Actions that were skipped because they were unnecessary (e.g., upload
+ artifacts).
+ """
+
+ actions_taken: List[str]
+ """Actions that were translated into commands and executed."""
+
+ actions_unknown: List[str]
+ """
+ Actions that were not understood and skipped because we did not know what to do.
+ """
+
+
+class WorkflowContexts(BaseModel):
+ actions_context: WorkflowContextsActionsContext
+ """Details about actions processing for this workflow."""
+
+ file_name: str
+ """The file name of the workflow."""
class RepositoryInspectionDetails(BaseModel):
@@ -48,3 +72,6 @@ class RepositoryInspectionDetails(BaseModel):
User uploaded repository manifest containing container config and workspace
details.
"""
+
+ workflow_contexts: Optional[Dict[str, WorkflowContexts]] = None
+ """Workflow contexts mapping workflow names to their processing details."""
diff --git a/src/runloop_api_client/types/repository_manifest_view.py b/src/runloop_api_client/types/repository_manifest_view.py
index dbae3e986..461722b59 100644
--- a/src/runloop_api_client/types/repository_manifest_view.py
+++ b/src/runloop_api_client/types/repository_manifest_view.py
@@ -1,6 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, List, Optional
+from typing_extensions import Literal
from .._models import BaseModel
@@ -23,6 +24,9 @@ class ContainerConfig(BaseModel):
ubuntu-22.04, windows-latest, windows-2022, macos-latest etc.
"""
+ architecture: Optional[Literal["x86_64", "arm64"]] = None
+ """The target architecture for the Repository Container."""
+
setup_commands: Optional[List[str]] = None
"""
Commands to run to setup the base container such as installing necessary
@@ -46,13 +50,16 @@ class WorkspaceDevCommands(BaseModel):
lint: Optional[List[str]] = None
"""Lint command (e.g. flake8)."""
+ scripts: Optional[List[str]] = None
+ """Script commands."""
+
test: Optional[List[str]] = None
"""Test command (e.g. pytest)."""
class Workspace(BaseModel):
- package_manager: List[str]
- """Name of the package manager used (e.g. pip, npm)."""
+ build_tool: List[str]
+ """Name of the build tool used (e.g. pip, npm)."""
dev_commands: Optional[WorkspaceDevCommands] = None
"""
@@ -74,12 +81,6 @@ class Workspace(BaseModel):
monorepo style repositories.
"""
- required_env_vars: Optional[List[str]] = None
- """
- Environment variables that are required to be set for this workspace to run
- correctly.
- """
-
workspace_refresh_commands: Optional[List[str]] = None
"""
Commands to run to refresh this workspace after pulling the latest changes to
@@ -132,9 +133,6 @@ class RepositoryManifestView(BaseModel):
languages: List[Language]
"""List of required languages found in Repository."""
- workflows: List[str]
- """The workflow(s) that were selected to build the manifest for this repo."""
-
workspaces: List[Workspace]
"""List of workspaces within the repository.
@@ -146,3 +144,15 @@ class RepositoryManifestView(BaseModel):
Services can be explicitly started when creating a Devbox.
"""
+
+ env_vars: Optional[Dict[str, str]] = None
+ """
+ Qualified environment variables and values that should be set for this
+ repository to run correctly.
+ """
+
+ required_env_vars: Optional[List[str]] = None
+ """
+ Missing environment variables that (may) be required for this repository to run
+ correctly.
+ """
diff --git a/src/runloop_api_client/types/secret_list_params.py b/src/runloop_api_client/types/secret_list_params.py
new file mode 100644
index 000000000..296a66b62
--- /dev/null
+++ b/src/runloop_api_client/types/secret_list_params.py
@@ -0,0 +1,12 @@
+# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
+
+from __future__ import annotations
+
+from typing_extensions import TypedDict
+
+__all__ = ["SecretListParams"]
+
+
+class SecretListParams(TypedDict, total=False):
+ limit: int
+ """The limit of items to return. Default is 20."""
diff --git a/tests/api_resources/test_blueprints.py b/tests/api_resources/test_blueprints.py
index 1ef1edb90..a72c1beac 100644
--- a/tests/api_resources/test_blueprints.py
+++ b/tests/api_resources/test_blueprints.py
@@ -63,6 +63,19 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
"username": "username",
},
},
+ services=[
+ {
+ "image": "image",
+ "name": "name",
+ "credentials": {
+ "password": "password",
+ "username": "username",
+ },
+ "env": {"foo": "string"},
+ "options": "options",
+ "port_mappings": ["string"],
+ }
+ ],
system_setup_commands=["string"],
)
assert_matches_type(BlueprintView, blueprint, path=["response"])
@@ -201,6 +214,40 @@ def test_path_params_delete(self, client: Runloop) -> None:
"",
)
+ @parametrize
+ def test_method_list_public(self, client: Runloop) -> None:
+ blueprint = client.blueprints.list_public()
+ assert_matches_type(SyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ @parametrize
+ def test_method_list_public_with_all_params(self, client: Runloop) -> None:
+ blueprint = client.blueprints.list_public(
+ limit=0,
+ name="name",
+ starting_after="starting_after",
+ )
+ assert_matches_type(SyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ @parametrize
+ def test_raw_response_list_public(self, client: Runloop) -> None:
+ response = client.blueprints.with_raw_response.list_public()
+
+ assert response.is_closed is True
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+ blueprint = response.parse()
+ assert_matches_type(SyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ @parametrize
+ def test_streaming_response_list_public(self, client: Runloop) -> None:
+ with client.blueprints.with_streaming_response.list_public() as response:
+ assert not response.is_closed
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+
+ blueprint = response.parse()
+ assert_matches_type(SyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ assert cast(Any, response.is_closed) is True
+
@parametrize
def test_method_logs(self, client: Runloop) -> None:
blueprint = client.blueprints.logs(
@@ -280,6 +327,19 @@ def test_method_preview_with_all_params(self, client: Runloop) -> None:
"username": "username",
},
},
+ services=[
+ {
+ "image": "image",
+ "name": "name",
+ "credentials": {
+ "password": "password",
+ "username": "username",
+ },
+ "env": {"foo": "string"},
+ "options": "options",
+ "port_mappings": ["string"],
+ }
+ ],
system_setup_commands=["string"],
)
assert_matches_type(BlueprintPreviewView, blueprint, path=["response"])
@@ -355,6 +415,19 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
"username": "username",
},
},
+ services=[
+ {
+ "image": "image",
+ "name": "name",
+ "credentials": {
+ "password": "password",
+ "username": "username",
+ },
+ "env": {"foo": "string"},
+ "options": "options",
+ "port_mappings": ["string"],
+ }
+ ],
system_setup_commands=["string"],
)
assert_matches_type(BlueprintView, blueprint, path=["response"])
@@ -493,6 +566,40 @@ async def test_path_params_delete(self, async_client: AsyncRunloop) -> None:
"",
)
+ @parametrize
+ async def test_method_list_public(self, async_client: AsyncRunloop) -> None:
+ blueprint = await async_client.blueprints.list_public()
+ assert_matches_type(AsyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ @parametrize
+ async def test_method_list_public_with_all_params(self, async_client: AsyncRunloop) -> None:
+ blueprint = await async_client.blueprints.list_public(
+ limit=0,
+ name="name",
+ starting_after="starting_after",
+ )
+ assert_matches_type(AsyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ @parametrize
+ async def test_raw_response_list_public(self, async_client: AsyncRunloop) -> None:
+ response = await async_client.blueprints.with_raw_response.list_public()
+
+ assert response.is_closed is True
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+ blueprint = await response.parse()
+ assert_matches_type(AsyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ @parametrize
+ async def test_streaming_response_list_public(self, async_client: AsyncRunloop) -> None:
+ async with async_client.blueprints.with_streaming_response.list_public() as response:
+ assert not response.is_closed
+ assert response.http_request.headers.get("X-Stainless-Lang") == "python"
+
+ blueprint = await response.parse()
+ assert_matches_type(AsyncBlueprintsCursorIDPage[BlueprintView], blueprint, path=["response"])
+
+ assert cast(Any, response.is_closed) is True
+
@parametrize
async def test_method_logs(self, async_client: AsyncRunloop) -> None:
blueprint = await async_client.blueprints.logs(
@@ -572,6 +679,19 @@ async def test_method_preview_with_all_params(self, async_client: AsyncRunloop)
"username": "username",
},
},
+ services=[
+ {
+ "image": "image",
+ "name": "name",
+ "credentials": {
+ "password": "password",
+ "username": "username",
+ },
+ "env": {"foo": "string"},
+ "options": "options",
+ "port_mappings": ["string"],
+ }
+ ],
system_setup_commands=["string"],
)
assert_matches_type(BlueprintPreviewView, blueprint, path=["response"])
diff --git a/tests/api_resources/test_devboxes.py b/tests/api_resources/test_devboxes.py
index af4645420..337312112 100644
--- a/tests/api_resources/test_devboxes.py
+++ b/tests/api_resources/test_devboxes.py
@@ -84,7 +84,6 @@ def test_method_create_with_all_params(self, client: Runloop) -> None:
},
metadata={"foo": "string"},
name="name",
- prebuilt="prebuilt",
repo_connection_id="repo_connection_id",
secrets={"foo": "string"},
snapshot_id="snapshot_id",
@@ -1315,7 +1314,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -
},
metadata={"foo": "string"},
name="name",
- prebuilt="prebuilt",
repo_connection_id="repo_connection_id",
secrets={"foo": "string"},
snapshot_id="snapshot_id",
diff --git a/tests/api_resources/test_secrets.py b/tests/api_resources/test_secrets.py
index 09a27ab44..7f0ff8e21 100644
--- a/tests/api_resources/test_secrets.py
+++ b/tests/api_resources/test_secrets.py
@@ -9,7 +9,10 @@
from tests.utils import assert_matches_type
from runloop_api_client import Runloop, AsyncRunloop
-from runloop_api_client.types import SecretView, SecretListView
+from runloop_api_client.types import (
+ SecretView,
+ SecretListView,
+)
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
@@ -98,6 +101,13 @@ def test_method_list(self, client: Runloop) -> None:
secret = client.secrets.list()
assert_matches_type(SecretListView, secret, path=["response"])
+ @parametrize
+ def test_method_list_with_all_params(self, client: Runloop) -> None:
+ secret = client.secrets.list(
+ limit=0,
+ )
+ assert_matches_type(SecretListView, secret, path=["response"])
+
@parametrize
def test_raw_response_list(self, client: Runloop) -> None:
response = client.secrets.with_raw_response.list()
@@ -243,6 +253,13 @@ async def test_method_list(self, async_client: AsyncRunloop) -> None:
secret = await async_client.secrets.list()
assert_matches_type(SecretListView, secret, path=["response"])
+ @parametrize
+ async def test_method_list_with_all_params(self, async_client: AsyncRunloop) -> None:
+ secret = await async_client.secrets.list(
+ limit=0,
+ )
+ assert_matches_type(SecretListView, secret, path=["response"])
+
@parametrize
async def test_raw_response_list(self, async_client: AsyncRunloop) -> None:
response = await async_client.secrets.with_raw_response.list()