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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
runs-on: ${{ github.repository == 'stainless-sdks/runloop-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4

Expand Down
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.56.2"
".": "0.57.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: 100
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-feb1c5fb18adf1bfc11f6fc7ee95f08a319ce4a504c34c68dee66f090f69a70c.yml
openapi_spec_hash: 758379882a3c4bf49f3ded6ac065a604
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-2027ff4b25ad2b5574b2ce497f5d0d02ad8804816ffd6b4e36511e2fa955d0cf.yml
openapi_spec_hash: 54a5a26e9c0b179d2f2a532268d3d711
config_hash: b97411af91b8ec0b8b066358c29091b4
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.57.0 (2025-08-27)

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

### Features

* **api:** api update ([3a5d31a](https://github.com/runloopai/api-client-python/commit/3a5d31a6eafb76cf8013355ba22676945509681f))
* **api:** api update ([104af9f](https://github.com/runloopai/api-client-python/commit/104af9fd5482701947186669748098b060715748))


### Bug Fixes

* avoid newer type syntax ([3412f2b](https://github.com/runloopai/api-client-python/commit/3412f2b11594e35ef48e4b283a9306eb645af6b3))


### Chores

* **internal:** change ci workflow machines ([b01847c](https://github.com/runloopai/api-client-python/commit/b01847caa9adcebfc4447c10c3723451dcb140a1))
* **internal:** update pyright exclude list ([0da3132](https://github.com/runloopai/api-client-python/commit/0da3132fb19d9e1aac3770415b72fb1b413f3175))

## 0.56.2 (2025-08-25)

Full Changelog: [v0.56.1-beta...v0.56.2](https://github.com/runloopai/api-client-python/compare/v0.56.1-beta...v0.56.2)
Expand Down
3 changes: 2 additions & 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.56.2"
version = "0.57.0"
description = "The official Python library for the runloop API"
dynamic = ["readme"]
license = "MIT"
Expand Down Expand Up @@ -157,6 +157,7 @@ exclude = [
"_dev",
".venv",
".nox",
".git",
]

reportImplicitOverride = true
Expand Down
2 changes: 1 addition & 1 deletion src/runloop_api_client/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def model_dump(
exclude_none=exclude_none,
)

return cast(dict[str, Any], json_safe(dumped)) if mode == "json" else dumped
return cast("dict[str, Any]", json_safe(dumped)) if mode == "json" else dumped

@override
def model_dump_json(
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.56.2" # x-release-please-version
__version__ = "0.57.0" # x-release-please-version
16 changes: 16 additions & 0 deletions src/runloop_api_client/resources/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,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,
metadata: Optional[Dict[str, str]] | 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.
Expand Down Expand Up @@ -108,6 +109,8 @@ def create(

launch_parameters: Parameters to configure your Devbox at launch time.

metadata: (Optional) User defined metadata for the Blueprint.

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.
Expand All @@ -134,6 +137,7 @@ def create(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"services": services,
"system_setup_commands": system_setup_commands,
},
Expand Down Expand Up @@ -472,6 +476,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,
metadata: Optional[Dict[str, str]] | 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.
Expand Down Expand Up @@ -501,6 +506,8 @@ def preview(

launch_parameters: Parameters to configure your Devbox at launch time.

metadata: (Optional) User defined metadata for the Blueprint.

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.
Expand All @@ -527,6 +534,7 @@ def preview(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"services": services,
"system_setup_commands": system_setup_commands,
},
Expand Down Expand Up @@ -572,6 +580,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,
metadata: Optional[Dict[str, str]] | 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.
Expand Down Expand Up @@ -603,6 +612,8 @@ async def create(

launch_parameters: Parameters to configure your Devbox at launch time.

metadata: (Optional) User defined metadata for the Blueprint.

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.
Expand All @@ -629,6 +640,7 @@ async def create(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"services": services,
"system_setup_commands": system_setup_commands,
},
Expand Down Expand Up @@ -967,6 +979,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,
metadata: Optional[Dict[str, str]] | 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.
Expand Down Expand Up @@ -996,6 +1009,8 @@ async def preview(

launch_parameters: Parameters to configure your Devbox at launch time.

metadata: (Optional) User defined metadata for the Blueprint.

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.
Expand All @@ -1022,6 +1037,7 @@ async def preview(
"dockerfile": dockerfile,
"file_mounts": file_mounts,
"launch_parameters": launch_parameters,
"metadata": metadata,
"services": services,
"system_setup_commands": system_setup_commands,
},
Expand Down
46 changes: 2 additions & 44 deletions src/runloop_api_client/resources/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,7 @@ def with_streaming_response(self) -> ObjectsResourceWithStreamingResponse:
def create(
self,
*,
content_type: Literal[
"UNSPECIFIED",
"TEXT_PLAIN",
"TEXT_HTML",
"TEXT_CSS",
"TEXT_JAVASCRIPT",
"TEXT_YAML",
"TEXT_CSV",
"APPLICATION_JSON",
"APPLICATION_XML",
"APPLICATION_PDF",
"APPLICATION_ZIP",
"APPLICATION_GZIP",
"APPLICATION_TAR",
"APPLICATION_TAR_GZIP",
"APPLICATION_OCTET_STREAM",
"IMAGE_JPEG",
"IMAGE_PNG",
"IMAGE_GIF",
"IMAGE_SVG",
"IMAGE_WEBP",
],
content_type: Literal["unspecified", "text", "binary", "gzip", "tar", "tgz"],
name: str,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -433,28 +412,7 @@ def with_streaming_response(self) -> AsyncObjectsResourceWithStreamingResponse:
async def create(
self,
*,
content_type: Literal[
"UNSPECIFIED",
"TEXT_PLAIN",
"TEXT_HTML",
"TEXT_CSS",
"TEXT_JAVASCRIPT",
"TEXT_YAML",
"TEXT_CSV",
"APPLICATION_JSON",
"APPLICATION_XML",
"APPLICATION_PDF",
"APPLICATION_ZIP",
"APPLICATION_GZIP",
"APPLICATION_TAR",
"APPLICATION_TAR_GZIP",
"APPLICATION_OCTET_STREAM",
"IMAGE_JPEG",
"IMAGE_PNG",
"IMAGE_GIF",
"IMAGE_SVG",
"IMAGE_WEBP",
],
content_type: Literal["unspecified", "text", "binary", "gzip", "tar", "tgz"],
name: str,
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down
3 changes: 3 additions & 0 deletions src/runloop_api_client/types/blueprint_build_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class BlueprintBuildParameters(BaseModel):
launch_parameters: Optional[LaunchParameters] = None
"""Parameters to configure your Devbox at launch time."""

metadata: Optional[Dict[str, str]] = None
"""(Optional) User defined metadata for the Blueprint."""

services: Optional[List[Service]] = None
"""(Optional) List of containerized services to include in the Blueprint.

Expand Down
3 changes: 3 additions & 0 deletions src/runloop_api_client/types/blueprint_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class BlueprintCreateParams(TypedDict, total=False):
launch_parameters: Optional[LaunchParameters]
"""Parameters to configure your Devbox at launch time."""

metadata: Optional[Dict[str, str]]
"""(Optional) User defined metadata for the Blueprint."""

services: Optional[Iterable[Service]]
"""(Optional) List of containerized services to include in the Blueprint.

Expand Down
3 changes: 3 additions & 0 deletions src/runloop_api_client/types/blueprint_preview_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ class BlueprintPreviewParams(TypedDict, total=False):
launch_parameters: Optional[LaunchParameters]
"""Parameters to configure your Devbox at launch time."""

metadata: Optional[Dict[str, str]]
"""(Optional) User defined metadata for the Blueprint."""

services: Optional[Iterable[Service]]
"""(Optional) List of containerized services to include in the Blueprint.

Expand Down
25 changes: 1 addition & 24 deletions src/runloop_api_client/types/object_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,7 @@


class ObjectCreateParams(TypedDict, total=False):
content_type: Required[
Literal[
"UNSPECIFIED",
"TEXT_PLAIN",
"TEXT_HTML",
"TEXT_CSS",
"TEXT_JAVASCRIPT",
"TEXT_YAML",
"TEXT_CSV",
"APPLICATION_JSON",
"APPLICATION_XML",
"APPLICATION_PDF",
"APPLICATION_ZIP",
"APPLICATION_GZIP",
"APPLICATION_TAR",
"APPLICATION_TAR_GZIP",
"APPLICATION_OCTET_STREAM",
"IMAGE_JPEG",
"IMAGE_PNG",
"IMAGE_GIF",
"IMAGE_SVG",
"IMAGE_WEBP",
]
]
content_type: Required[Literal["unspecified", "text", "binary", "gzip", "tar", "tgz"]]
"""The content type of the Object."""

name: Required[str]
Expand Down
23 changes: 1 addition & 22 deletions src/runloop_api_client/types/object_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,7 @@ class ObjectView(BaseModel):
id: str
"""The unique identifier of the Object."""

content_type: Literal[
"UNSPECIFIED",
"TEXT_PLAIN",
"TEXT_HTML",
"TEXT_CSS",
"TEXT_JAVASCRIPT",
"TEXT_YAML",
"TEXT_CSV",
"APPLICATION_JSON",
"APPLICATION_XML",
"APPLICATION_PDF",
"APPLICATION_ZIP",
"APPLICATION_GZIP",
"APPLICATION_TAR",
"APPLICATION_TAR_GZIP",
"APPLICATION_OCTET_STREAM",
"IMAGE_JPEG",
"IMAGE_PNG",
"IMAGE_GIF",
"IMAGE_SVG",
"IMAGE_WEBP",
]
content_type: Literal["unspecified", "text", "binary", "gzip", "tar", "tgz"]
"""The content type of the Object."""

name: str
Expand Down
4 changes: 4 additions & 0 deletions src/runloop_api_client/types/shared/run_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pydantic import Field as FieldInfo

from ..._models import BaseModel
from .launch_parameters import LaunchParameters

__all__ = ["RunProfile"]

Expand All @@ -17,6 +18,9 @@ class RunProfile(BaseModel):
set the environment variable 'DB_PASS' to the value 'DATABASE_PASSWORD_VALUE'.
"""

launch_parameters: Optional[LaunchParameters] = FieldInfo(alias="launchParameters", default=None)
"""Additional runtime LaunchParameters to apply after the devbox starts."""

purpose: Optional[str] = None
"""Purpose of the run."""

Expand Down
4 changes: 4 additions & 0 deletions src/runloop_api_client/types/shared_params/run_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing_extensions import Annotated, TypedDict

from ..._utils import PropertyInfo
from .launch_parameters import LaunchParameters

__all__ = ["RunProfile"]

Expand All @@ -18,6 +19,9 @@ class RunProfile(TypedDict, total=False):
set the environment variable 'DB_PASS' to the value 'DATABASE_PASSWORD_VALUE'.
"""

launch_parameters: Annotated[Optional[LaunchParameters], PropertyInfo(alias="launchParameters")]
"""Additional runtime LaunchParameters to apply after the devbox starts."""

purpose: Optional[str]
"""Purpose of the run."""

Expand Down
Loading