Skip to content

Commit

Permalink
feat(api): api update (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 23, 2025
1 parent 084de25 commit 26f031e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/riza%2Friza-api-53d443fce326642ac4579e178d39bd12a49ed8230f1264bda8da4c805d4ae71f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/riza%2Friza-api-fb88a69cdf1c683229e1b4955389acf571be1cb9c2724bd2e03375c314e5d564.yml
13 changes: 6 additions & 7 deletions src/rizaio/types/command_exec_func_response.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

from .._models import BaseModel
Expand All @@ -9,25 +8,25 @@


class Execution(BaseModel):
exit_code: Optional[int] = None
exit_code: int
"""The exit code returned by the script.
Will often be '0' on success and non-zero on failure.
"""

stderr: Optional[str] = None
stderr: str
"""The contents of 'stderr' after executing the script."""

stdout: Optional[str] = None
stdout: str
"""The contents of 'stdout' after executing the script."""


class CommandExecFuncResponse(BaseModel):
execution: Optional[Execution] = None
execution: Execution

output: Optional[object] = None
output: object

output_status: Optional[Literal["error", "json_serialization_error", "valid"]] = None
output_status: Literal["error", "json_serialization_error", "valid"]
"""The status of the output.
"valid" means your function executed successfully and returned a valid
Expand Down
7 changes: 3 additions & 4 deletions src/rizaio/types/command_exec_response.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional

from .._models import BaseModel

__all__ = ["CommandExecResponse"]


class CommandExecResponse(BaseModel):
exit_code: Optional[int] = None
exit_code: int
"""The exit code returned by the script.
Will often be '0' on success and non-zero on failure.
"""

stderr: Optional[str] = None
stderr: str
"""The contents of 'stderr' after executing the script."""

stdout: Optional[str] = None
stdout: str
"""The contents of 'stdout' after executing the script."""

0 comments on commit 26f031e

Please sign in to comment.