Skip to content

Commit 45260b9

Browse files
chore(api): update composite API spec
1 parent 72eb205 commit 45260b9

5 files changed

Lines changed: 64 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2376
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-514c439211d08727278b25d13388b711bf1e431382b55eeb10079db550d01fa3.yml
3-
openapi_spec_hash: c5f909ea82142fc11cd786fb212209fa
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-cec3848a0457a00a9b2587156f76ec6853dec07782076c38deed2640effe0db6.yml
3+
openapi_spec_hash: 7bfe2cfc93064c81db893a09bc1ba5c9
44
config_hash: ec0647c69ef9d049d1e12e9ddb0673ee

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def create(
6262
Sends an event to a running workflow instance to trigger state transitions.
6363
6464
Args:
65+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
66+
(max 100 characters); cron-triggered instances can use a longer,
67+
system-generated id derived from the cron expression.
68+
6569
extra_headers: Send extra headers
6670
6771
extra_query: Add additional query parameters to the request
@@ -137,6 +141,10 @@ async def create(
137141
Sends an event to a running workflow instance to trigger state transitions.
138142
139143
Args:
144+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
145+
(max 100 characters); cron-triggered instances can use a longer,
146+
system-generated id derived from the cron expression.
147+
140148
extra_headers: Send extra headers
141149
142150
extra_query: Add additional query parameters to the request

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ def get(
283283
Retrieves logs and execution status for a specific workflow instance.
284284
285285
Args:
286+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
287+
(max 100 characters); cron-triggered instances can use a longer,
288+
system-generated id derived from the cron expression.
289+
286290
order: Step ordering: "asc" (default, oldest first) or "desc" (newest first).
287291
288292
simple: When true, omits step details and returns only metadata with step_count.
@@ -352,6 +356,10 @@ def step(
352356
currently retrying after a prior attempt failed.
353357
354358
Args:
359+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
360+
(max 100 characters); cron-triggered instances can use a longer,
361+
system-generated id derived from the cron expression.
362+
355363
name: Exact step name from the instance logs response, including the generated counter
356364
suffix.
357365
@@ -630,6 +638,10 @@ async def get(
630638
Retrieves logs and execution status for a specific workflow instance.
631639
632640
Args:
641+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
642+
(max 100 characters); cron-triggered instances can use a longer,
643+
system-generated id derived from the cron expression.
644+
633645
order: Step ordering: "asc" (default, oldest first) or "desc" (newest first).
634646
635647
simple: When true, omits step details and returns only metadata with step_count.
@@ -699,6 +711,10 @@ async def step(
699711
currently retrying after a prior attempt failed.
700712
701713
Args:
714+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
715+
(max 100 characters); cron-triggered instances can use a longer,
716+
system-generated id derived from the cron expression.
717+
702718
name: Exact step name from the instance logs response, including the generated counter
703719
suffix.
704720

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ def edit(
6565
terminate).
6666
6767
Args:
68+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
69+
(max 100 characters); cron-triggered instances can use a longer,
70+
system-generated id derived from the cron expression.
71+
6872
extra_headers: Send extra headers
6973
7074
extra_query: Add additional query parameters to the request
@@ -95,6 +99,10 @@ def edit(
9599
terminate).
96100
97101
Args:
102+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
103+
(max 100 characters); cron-triggered instances can use a longer,
104+
system-generated id derived from the cron expression.
105+
98106
extra_headers: Send extra headers
99107
100108
extra_query: Add additional query parameters to the request
@@ -126,6 +134,10 @@ def edit(
126134
terminate).
127135
128136
Args:
137+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
138+
(max 100 characters); cron-triggered instances can use a longer,
139+
system-generated id derived from the cron expression.
140+
129141
rollback: Run rollback before terminating.
130142
131143
extra_headers: Send extra headers
@@ -159,6 +171,10 @@ def edit(
159171
terminate).
160172
161173
Args:
174+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
175+
(max 100 characters); cron-triggered instances can use a longer,
176+
system-generated id derived from the cron expression.
177+
162178
from_: Step to restart from.
163179
164180
extra_headers: Send extra headers
@@ -260,6 +276,10 @@ async def edit(
260276
terminate).
261277
262278
Args:
279+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
280+
(max 100 characters); cron-triggered instances can use a longer,
281+
system-generated id derived from the cron expression.
282+
263283
extra_headers: Send extra headers
264284
265285
extra_query: Add additional query parameters to the request
@@ -290,6 +310,10 @@ async def edit(
290310
terminate).
291311
292312
Args:
313+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
314+
(max 100 characters); cron-triggered instances can use a longer,
315+
system-generated id derived from the cron expression.
316+
293317
extra_headers: Send extra headers
294318
295319
extra_query: Add additional query parameters to the request
@@ -321,6 +345,10 @@ async def edit(
321345
terminate).
322346
323347
Args:
348+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
349+
(max 100 characters); cron-triggered instances can use a longer,
350+
system-generated id derived from the cron expression.
351+
324352
rollback: Run rollback before terminating.
325353
326354
extra_headers: Send extra headers
@@ -354,6 +382,10 @@ async def edit(
354382
terminate).
355383
356384
Args:
385+
instance_id: Instance identifier. User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$`
386+
(max 100 characters); cron-triggered instances can use a longer,
387+
system-generated id derived from the cron expression.
388+
357389
from_: Step to restart from.
358390
359391
extra_headers: Send extra headers

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,11 @@ class EventCreateParams(TypedDict, total=False):
1313
workflow_name: Required[str]
1414

1515
instance_id: Required[str]
16+
"""Instance identifier.
17+
18+
User-created instances match `^[a-zA-Z0-9_][a-zA-Z0-9-_]*$` (max 100
19+
characters); cron-triggered instances can use a longer, system-generated id
20+
derived from the cron expression.
21+
"""
1622

1723
body: object

0 commit comments

Comments
 (0)