Skip to content

Commit 6750cf3

Browse files
feat(api): api update
1 parent fdc3e41 commit 6750cf3

11 files changed

+14
-26
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1704
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6ad77d12b745841123f7fc88baabdba1651c27e37f825c8759d704a5cb0facd3.yml
3-
openapi_spec_hash: c5514cac26aa0d0945a79411eab19467
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9e7a22b06ed1dc93dfd9c7f3e1cfae723dcd21da2f7bc851f94a55f5b276cef6.yml
3+
openapi_spec_hash: 873cc85ced9a60e5e2ee3aeca5565f68
44
config_hash: 67f412c990647f3cb598378fa22a9db5

src/cloudflare/resources/workflows/instances/instances.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def list(
133133
page: float | NotGiven = NOT_GIVEN,
134134
per_page: float | NotGiven = NOT_GIVEN,
135135
status: Literal[
136-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
136+
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"
137137
]
138138
| NotGiven = NOT_GIVEN,
139139
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -356,7 +356,7 @@ def list(
356356
page: float | NotGiven = NOT_GIVEN,
357357
per_page: float | NotGiven = NOT_GIVEN,
358358
status: Literal[
359-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
359+
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"
360360
]
361361
| NotGiven = NOT_GIVEN,
362362
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/cloudflare/types/workflows/instance_bulk_response.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
class InstanceBulkResponse(BaseModel):
1111
id: str
1212

13-
status: Literal[
14-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
15-
]
13+
status: Literal["queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"]
1614

1715
version_id: str
1816

src/cloudflare/types/workflows/instance_create_response.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
class InstanceCreateResponse(BaseModel):
1111
id: str
1212

13-
status: Literal[
14-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
15-
]
13+
status: Literal["queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"]
1614

1715
version_id: str
1816

src/cloudflare/types/workflows/instance_get_response.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,7 @@ class InstanceGetResponse(BaseModel):
153153

154154
start: Optional[datetime] = None
155155

156-
status: Literal[
157-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
158-
]
156+
status: Literal["queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"]
159157

160158
steps: List[Step]
161159

src/cloudflare/types/workflows/instance_list_params.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,4 @@ class InstanceListParams(TypedDict, total=False):
2424

2525
per_page: float
2626

27-
status: Literal[
28-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
29-
]
27+
status: Literal["queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"]

src/cloudflare/types/workflows/instance_list_response.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ class InstanceListResponse(BaseModel):
2020

2121
started_on: Optional[datetime] = None
2222

23-
status: Literal[
24-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
25-
]
23+
status: Literal["queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"]
2624

2725
version_id: str
2826

src/cloudflare/types/workflows/instances/status_edit_response.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010

1111
class StatusEditResponse(BaseModel):
12-
status: Literal[
13-
"queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting", "unknown"
14-
]
12+
status: Literal["queued", "running", "paused", "errored", "terminated", "complete", "waitingForPause", "waiting"]
1513

1614
timestamp: datetime
1715
"""In ISO 8601 with no timezone offsets and in UTC."""

src/cloudflare/types/workflows/workflow_get_response.py

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class Instances(BaseModel):
2323

2424
terminated: Optional[float] = None
2525

26-
unknown: Optional[float] = None
27-
2826
waiting: Optional[float] = None
2927

3028
waiting_for_pause: Optional[float] = FieldInfo(alias="waitingForPause", default=None)

src/cloudflare/types/workflows/workflow_list_response.py

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ class Instances(BaseModel):
2323

2424
terminated: Optional[float] = None
2525

26-
unknown: Optional[float] = None
27-
2826
waiting: Optional[float] = None
2927

3028
waiting_for_pause: Optional[float] = FieldInfo(alias="waitingForPause", default=None)

src/cloudflare/types/workflows/workflow_update_response.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ class WorkflowUpdateResponse(BaseModel):
1515

1616
created_on: datetime
1717

18+
is_deleted: float
19+
1820
modified_on: datetime
1921

2022
name: str
2123

2224
script_name: str
2325

26+
terminator_running: float
27+
2428
triggered_on: Optional[datetime] = None
2529

2630
version_id: str

0 commit comments

Comments
 (0)