Skip to content

Commit 249f9d2

Browse files
feat(api): api update
1 parent 6c9ba20 commit 249f9d2

File tree

13 files changed

+57
-19
lines changed

13 files changed

+57
-19
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 90
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-1749c364b895f7e1551fbb4037d18c64f89948017f56eaf68b6cb0e978250944.yml
3-
openapi_spec_hash: 0623287e228035fbeca1a66c3253b9b1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-9b2e136aedff0713e8d50d6c53a930cd2c3583dcac1a9fce552cf25bb0d29214.yml
3+
openapi_spec_hash: 81e1da702f2dfb28bbe1bfab0d5d8cbd
44
config_hash: 4c7b6a602579b69f9d533f0f0fef5ded

src/runloop_api_client/resources/blueprints.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def create(
7474
name: str,
7575
base_blueprint_id: Optional[str] | Omit = omit,
7676
base_blueprint_name: Optional[str] | Omit = omit,
77+
build_args: Optional[Dict[str, str]] | Omit = omit,
7778
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
7879
dockerfile: Optional[str] | Omit = omit,
7980
file_mounts: Optional[Dict[str, str]] | Omit = omit,
@@ -107,6 +108,8 @@ def create(
107108
with the given name. Only one of (base_blueprint_id, base_blueprint_name) should
108109
be specified.
109110
111+
build_args: (Optional) Arbitrary Docker build args to pass during build.
112+
110113
code_mounts: A list of code mounts to be included in the Blueprint.
111114
112115
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -140,6 +143,7 @@ def create(
140143
"name": name,
141144
"base_blueprint_id": base_blueprint_id,
142145
"base_blueprint_name": base_blueprint_name,
146+
"build_args": build_args,
143147
"code_mounts": code_mounts,
144148
"dockerfile": dockerfile,
145149
"file_mounts": file_mounts,
@@ -480,6 +484,7 @@ def preview(
480484
name: str,
481485
base_blueprint_id: Optional[str] | Omit = omit,
482486
base_blueprint_name: Optional[str] | Omit = omit,
487+
build_args: Optional[Dict[str, str]] | Omit = omit,
483488
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
484489
dockerfile: Optional[str] | Omit = omit,
485490
file_mounts: Optional[Dict[str, str]] | Omit = omit,
@@ -511,6 +516,8 @@ def preview(
511516
with the given name. Only one of (base_blueprint_id, base_blueprint_name) should
512517
be specified.
513518
519+
build_args: (Optional) Arbitrary Docker build args to pass during build.
520+
514521
code_mounts: A list of code mounts to be included in the Blueprint.
515522
516523
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -544,6 +551,7 @@ def preview(
544551
"name": name,
545552
"base_blueprint_id": base_blueprint_id,
546553
"base_blueprint_name": base_blueprint_name,
554+
"build_args": build_args,
547555
"code_mounts": code_mounts,
548556
"dockerfile": dockerfile,
549557
"file_mounts": file_mounts,
@@ -591,6 +599,7 @@ async def create(
591599
name: str,
592600
base_blueprint_id: Optional[str] | Omit = omit,
593601
base_blueprint_name: Optional[str] | Omit = omit,
602+
build_args: Optional[Dict[str, str]] | Omit = omit,
594603
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
595604
dockerfile: Optional[str] | Omit = omit,
596605
file_mounts: Optional[Dict[str, str]] | Omit = omit,
@@ -624,6 +633,8 @@ async def create(
624633
with the given name. Only one of (base_blueprint_id, base_blueprint_name) should
625634
be specified.
626635
636+
build_args: (Optional) Arbitrary Docker build args to pass during build.
637+
627638
code_mounts: A list of code mounts to be included in the Blueprint.
628639
629640
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -657,6 +668,7 @@ async def create(
657668
"name": name,
658669
"base_blueprint_id": base_blueprint_id,
659670
"base_blueprint_name": base_blueprint_name,
671+
"build_args": build_args,
660672
"code_mounts": code_mounts,
661673
"dockerfile": dockerfile,
662674
"file_mounts": file_mounts,
@@ -997,6 +1009,7 @@ async def preview(
9971009
name: str,
9981010
base_blueprint_id: Optional[str] | Omit = omit,
9991011
base_blueprint_name: Optional[str] | Omit = omit,
1012+
build_args: Optional[Dict[str, str]] | Omit = omit,
10001013
code_mounts: Optional[Iterable[CodeMountParameters]] | Omit = omit,
10011014
dockerfile: Optional[str] | Omit = omit,
10021015
file_mounts: Optional[Dict[str, str]] | Omit = omit,
@@ -1028,6 +1041,8 @@ async def preview(
10281041
with the given name. Only one of (base_blueprint_id, base_blueprint_name) should
10291042
be specified.
10301043
1044+
build_args: (Optional) Arbitrary Docker build args to pass during build.
1045+
10311046
code_mounts: A list of code mounts to be included in the Blueprint.
10321047
10331048
dockerfile: Dockerfile contents to be used to build the Blueprint.
@@ -1061,6 +1076,7 @@ async def preview(
10611076
"name": name,
10621077
"base_blueprint_id": base_blueprint_id,
10631078
"base_blueprint_name": base_blueprint_name,
1079+
"build_args": build_args,
10641080
"code_mounts": code_mounts,
10651081
"dockerfile": dockerfile,
10661082
"file_mounts": file_mounts,

src/runloop_api_client/resources/scenarios/scenarios.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def create(
9494
reference_output: Optional[str] | Omit = omit,
9595
required_environment_variables: Optional[SequenceNotStr[str]] | Omit = omit,
9696
required_secret_names: Optional[SequenceNotStr[str]] | Omit = omit,
97-
validation_type: Optional[Literal["FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
97+
validation_type: Optional[Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
9898
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
9999
# The extra values given here take precedence over values defined on the client or passed to this method.
100100
extra_headers: Headers | None = None,
@@ -212,7 +212,7 @@ def update(
212212
required_environment_variables: Optional[SequenceNotStr[str]] | Omit = omit,
213213
required_secret_names: Optional[SequenceNotStr[str]] | Omit = omit,
214214
scoring_contract: Optional[ScoringContractUpdateParam] | Omit = omit,
215-
validation_type: Optional[Literal["FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
215+
validation_type: Optional[Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
216216
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
217217
# The extra values given here take precedence over values defined on the client or passed to this method.
218218
extra_headers: Headers | None = None,
@@ -551,7 +551,7 @@ async def create(
551551
reference_output: Optional[str] | Omit = omit,
552552
required_environment_variables: Optional[SequenceNotStr[str]] | Omit = omit,
553553
required_secret_names: Optional[SequenceNotStr[str]] | Omit = omit,
554-
validation_type: Optional[Literal["FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
554+
validation_type: Optional[Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
555555
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
556556
# The extra values given here take precedence over values defined on the client or passed to this method.
557557
extra_headers: Headers | None = None,
@@ -669,7 +669,7 @@ async def update(
669669
required_environment_variables: Optional[SequenceNotStr[str]] | Omit = omit,
670670
required_secret_names: Optional[SequenceNotStr[str]] | Omit = omit,
671671
scoring_contract: Optional[ScoringContractUpdateParam] | Omit = omit,
672-
validation_type: Optional[Literal["FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
672+
validation_type: Optional[Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]] | Omit = omit,
673673
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
674674
# The extra values given here take precedence over values defined on the client or passed to this method.
675675
extra_headers: Headers | None = None,

src/runloop_api_client/types/blueprint_build_parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ class BlueprintBuildParameters(BaseModel):
5858
be specified.
5959
"""
6060

61+
build_args: Optional[Dict[str, str]] = None
62+
"""(Optional) Arbitrary Docker build args to pass during build."""
63+
6164
code_mounts: Optional[List[CodeMountParameters]] = None
6265
"""A list of code mounts to be included in the Blueprint."""
6366

src/runloop_api_client/types/blueprint_create_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class BlueprintCreateParams(TypedDict, total=False):
3030
be specified.
3131
"""
3232

33+
build_args: Optional[Dict[str, str]]
34+
"""(Optional) Arbitrary Docker build args to pass during build."""
35+
3336
code_mounts: Optional[Iterable[CodeMountParameters]]
3437
"""A list of code mounts to be included in the Blueprint."""
3538

src/runloop_api_client/types/blueprint_preview_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class BlueprintPreviewParams(TypedDict, total=False):
3030
be specified.
3131
"""
3232

33+
build_args: Optional[Dict[str, str]]
34+
"""(Optional) Arbitrary Docker build args to pass during build."""
35+
3336
code_mounts: Optional[Iterable[CodeMountParameters]]
3437
"""A list of code mounts to be included in the Blueprint."""
3538

src/runloop_api_client/types/blueprint_view.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ class BlueprintView(BaseModel):
6262
base_blueprint_id: Optional[str] = None
6363
"""The ID of the base Blueprint."""
6464

65+
build_finish_time_ms: Optional[int] = None
66+
"""Build completion time of the Blueprint (Unix timestamp milliseconds)."""
67+
6568
containerized_services: Optional[List[ContainerizedService]] = None
6669
"""List of ContainerizedServices available in the Blueprint.
6770

src/runloop_api_client/types/devbox_view.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ class DevboxView(BaseModel):
4343
create_time_ms: int
4444
"""Creation time of the Devbox (Unix timestamp milliseconds)."""
4545

46+
end_time_ms: Optional[int] = None
47+
"""The time the Devbox finished execution (Unix timestamp milliseconds).
48+
49+
Present if the Devbox is in a terminal state.
50+
"""
51+
4652
launch_parameters: LaunchParameters
4753
"""The launch parameters used to create the Devbox."""
4854

@@ -63,15 +69,15 @@ class DevboxView(BaseModel):
6369
a Blueprint.
6470
"""
6571

66-
end_time_ms: Optional[int] = None
67-
"""The time the Devbox finished execution (Unix timestamp milliseconds).
68-
69-
Present if the Devbox is in a terminal state.
70-
"""
71-
7272
failure_reason: Optional[Literal["out_of_memory", "out_of_disk", "execution_failed"]] = None
7373
"""The failure reason if the Devbox failed, if the Devbox has a 'failure' status."""
7474

75+
initiator_id: Optional[str] = None
76+
"""The ID of the initiator that created the Devbox."""
77+
78+
initiator_type: Optional[Literal["unknown", "api", "scenario"]] = None
79+
"""The type of initiator that created the Devbox."""
80+
7581
name: Optional[str] = None
7682
"""The name of the Devbox."""
7783

src/runloop_api_client/types/scenario_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ class ScenarioCreateParams(TypedDict, total=False):
4949
scenario will fail to start.
5050
"""
5151

52-
validation_type: Optional[Literal["FORWARD", "REVERSE", "EVALUATION"]]
52+
validation_type: Optional[Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]]
5353
"""Validation strategy."""

src/runloop_api_client/types/scenario_update_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ class ScenarioUpdateParams(TypedDict, total=False):
4242
scoring_contract: Optional[ScoringContractUpdateParam]
4343
"""The scoring contract for the Scenario."""
4444

45-
validation_type: Optional[Literal["FORWARD", "REVERSE", "EVALUATION"]]
45+
validation_type: Optional[Literal["UNSPECIFIED", "FORWARD", "REVERSE", "EVALUATION"]]
4646
"""Validation strategy."""

0 commit comments

Comments
 (0)