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 pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "trycourier"
version = "9.12.0"
version = "9.11.0"
description = "The official Python library for the Courier API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/courier/_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__ = "courier"
__version__ = "9.12.0" # x-release-please-version
__version__ = "9.11.0" # x-release-please-version
22 changes: 21 additions & 1 deletion src/courier/types/journey_run_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@

from .._models import BaseModel

__all__ = ["JourneyRunStep"]
__all__ = ["JourneyRunStep", "Error"]


class Error(BaseModel):
"""Why the step failed. Set when `status` is `ERROR`, `null` otherwise."""

message: str
"""The reason, e.g.

`Fetch failed: GET api.example.com returned 404` or
`AI step timed out after 15 minutes`.
"""


class JourneyRunStep(BaseModel):
Expand All @@ -16,6 +27,15 @@ class JourneyRunStep(BaseModel):
action: str
"""The kind of node that ran, e.g. `send`, `delay`, or `exit`."""

error: Optional[Error] = None
"""Why the step failed. Set when `status` is `ERROR`, `null` otherwise."""

skip_reason: Optional[str] = None
"""Why the step was skipped, e.g.

`Node conditions not met`. Set when `status` is `SKIPPED`, `null` otherwise.
"""

status: str
"""The state of the step: the seven run statuses, plus `SKIPPED` and `COMPUTING`.

Expand Down
Loading