Skip to content

Commit f88efed

Browse files
chore(api): update composite API spec
1 parent 7e5da92 commit f88efed

23 files changed

Lines changed: 135 additions & 35 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2319
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-95e73b4de689baa5f103f6b57f8b0c16e7a2380a5a707cbf8c35c33537adba54.yml
3-
openapi_spec_hash: 9f044e790240c1256984f011c9b6539b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-13182d492c29e38bbe0bbe054e2164a7fafd14f41bbf6f80edf28d4b1d1eead6.yml
3+
openapi_spec_hash: 3005ae41716ac63d8ce8507844e6c71c
44
config_hash: 3d78de7487c424794f10d37798c7cf95

src/cloudflare/resources/workflows/workflows.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Type, cast
5+
from typing import Type, Iterable, cast
66

77
import httpx
88

@@ -80,6 +80,7 @@ def update(
8080
class_name: str,
8181
script_name: str,
8282
limits: workflow_update_params.Limits | Omit = omit,
83+
schedules: Iterable[workflow_update_params.Schedule] | Omit = omit,
8384
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8485
# The extra values given here take precedence over values defined on the client or passed to this method.
8586
extra_headers: Headers | None = None,
@@ -112,6 +113,7 @@ def update(
112113
"class_name": class_name,
113114
"script_name": script_name,
114115
"limits": limits,
116+
"schedules": schedules,
115117
},
116118
workflow_update_params.WorkflowUpdateParams,
117119
),
@@ -298,6 +300,7 @@ async def update(
298300
class_name: str,
299301
script_name: str,
300302
limits: workflow_update_params.Limits | Omit = omit,
303+
schedules: Iterable[workflow_update_params.Schedule] | Omit = omit,
301304
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
302305
# The extra values given here take precedence over values defined on the client or passed to this method.
303306
extra_headers: Headers | None = None,
@@ -330,6 +333,7 @@ async def update(
330333
"class_name": class_name,
331334
"script_name": script_name,
332335
"limits": limits,
336+
"schedules": schedules,
333337
},
334338
workflow_update_params.WorkflowUpdateParams,
335339
),

src/cloudflare/resources/zero_trust/access/ai_controls/mcp/servers.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def create(
6161
name: str,
6262
auth_credentials: str | Omit = omit,
6363
description: Optional[str] | Omit = omit,
64+
is_shared_oauth_callback_enabled: bool | Omit = omit,
6465
updated_prompts: Iterable[server_create_params.UpdatedPrompt] | Omit = omit,
6566
updated_tools: Iterable[server_create_params.UpdatedTool] | Omit = omit,
6667
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -76,6 +77,12 @@ def create(
7677
Args:
7778
id: server id
7879
80+
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
81+
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
82+
customer portal hostname. New public server creates default to true; existing
83+
servers default to false from migration until explicitly updated. Effective
84+
behavior is gated by the gateway worker's per-env rollout mode KV key.
85+
7986
extra_headers: Send extra headers
8087
8188
extra_query: Add additional query parameters to the request
@@ -96,6 +103,7 @@ def create(
96103
"name": name,
97104
"auth_credentials": auth_credentials,
98105
"description": description,
106+
"is_shared_oauth_callback_enabled": is_shared_oauth_callback_enabled,
99107
"updated_prompts": updated_prompts,
100108
"updated_tools": updated_tools,
101109
},
@@ -118,6 +126,7 @@ def update(
118126
account_id: str,
119127
auth_credentials: str | Omit = omit,
120128
description: Optional[str] | Omit = omit,
129+
is_shared_oauth_callback_enabled: bool | Omit = omit,
121130
name: str | Omit = omit,
122131
updated_prompts: Iterable[server_update_params.UpdatedPrompt] | Omit = omit,
123132
updated_tools: Iterable[server_update_params.UpdatedTool] | Omit = omit,
@@ -134,6 +143,12 @@ def update(
134143
Args:
135144
id: server id
136145
146+
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
147+
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
148+
customer portal hostname. New public server creates default to true; existing
149+
servers default to false from migration until explicitly updated. Effective
150+
behavior is gated by the gateway worker's per-env rollout mode KV key.
151+
137152
extra_headers: Send extra headers
138153
139154
extra_query: Add additional query parameters to the request
@@ -152,6 +167,7 @@ def update(
152167
{
153168
"auth_credentials": auth_credentials,
154169
"description": description,
170+
"is_shared_oauth_callback_enabled": is_shared_oauth_callback_enabled,
155171
"name": name,
156172
"updated_prompts": updated_prompts,
157173
"updated_tools": updated_tools,
@@ -378,6 +394,7 @@ async def create(
378394
name: str,
379395
auth_credentials: str | Omit = omit,
380396
description: Optional[str] | Omit = omit,
397+
is_shared_oauth_callback_enabled: bool | Omit = omit,
381398
updated_prompts: Iterable[server_create_params.UpdatedPrompt] | Omit = omit,
382399
updated_tools: Iterable[server_create_params.UpdatedTool] | Omit = omit,
383400
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -393,6 +410,12 @@ async def create(
393410
Args:
394411
id: server id
395412
413+
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
414+
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
415+
customer portal hostname. New public server creates default to true; existing
416+
servers default to false from migration until explicitly updated. Effective
417+
behavior is gated by the gateway worker's per-env rollout mode KV key.
418+
396419
extra_headers: Send extra headers
397420
398421
extra_query: Add additional query parameters to the request
@@ -413,6 +436,7 @@ async def create(
413436
"name": name,
414437
"auth_credentials": auth_credentials,
415438
"description": description,
439+
"is_shared_oauth_callback_enabled": is_shared_oauth_callback_enabled,
416440
"updated_prompts": updated_prompts,
417441
"updated_tools": updated_tools,
418442
},
@@ -435,6 +459,7 @@ async def update(
435459
account_id: str,
436460
auth_credentials: str | Omit = omit,
437461
description: Optional[str] | Omit = omit,
462+
is_shared_oauth_callback_enabled: bool | Omit = omit,
438463
name: str | Omit = omit,
439464
updated_prompts: Iterable[server_update_params.UpdatedPrompt] | Omit = omit,
440465
updated_tools: Iterable[server_update_params.UpdatedTool] | Omit = omit,
@@ -451,6 +476,12 @@ async def update(
451476
Args:
452477
id: server id
453478
479+
is_shared_oauth_callback_enabled: When true, the gateway worker uses the shared Cloudflare-owned OAuth callback
480+
endpoint as the redirect_uri for upstream on-behalf OAuth, instead of the
481+
customer portal hostname. New public server creates default to true; existing
482+
servers default to false from migration until explicitly updated. Effective
483+
behavior is gated by the gateway worker's per-env rollout mode KV key.
484+
454485
extra_headers: Send extra headers
455486
456487
extra_query: Add additional query parameters to the request
@@ -469,6 +500,7 @@ async def update(
469500
{
470501
"auth_credentials": auth_credentials,
471502
"description": description,
503+
"is_shared_oauth_callback_enabled": is_shared_oauth_callback_enabled,
472504
"name": name,
473505
"updated_prompts": updated_prompts,
474506
"updated_tools": updated_tools,

src/cloudflare/types/workflows/instance_bulk_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from typing_extensions import Literal
45

56
from ..._models import BaseModel
@@ -17,3 +18,5 @@ class InstanceBulkResponse(BaseModel):
1718
version_id: str
1819

1920
workflow_id: str
21+
22+
trigger_source: Optional[Literal["unknown", "api", "binding", "event", "cron"]] = None

src/cloudflare/types/workflows/instance_create_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from typing_extensions import Literal
45

56
from ..._models import BaseModel
@@ -17,3 +18,5 @@ class InstanceCreateResponse(BaseModel):
1718
version_id: str
1819

1920
workflow_id: str
21+
22+
trigger_source: Optional[Literal["unknown", "api", "binding", "event", "cron"]] = None

src/cloudflare/types/workflows/instance_get_response.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"StepUnionMember3",
2727
"StepUnionMember3Error",
2828
"Trigger",
29+
"Schedule",
2930
]
3031

3132

@@ -162,6 +163,12 @@ class Trigger(BaseModel):
162163
source: Literal["unknown", "api", "binding", "event", "cron"]
163164

164165

166+
class Schedule(BaseModel):
167+
cron: str
168+
169+
scheduled_time: float = FieldInfo(alias="scheduledTime")
170+
171+
165172
class InstanceGetResponse(BaseModel):
166173
end: Optional[datetime] = None
167174

@@ -190,3 +197,5 @@ class InstanceGetResponse(BaseModel):
190197
trigger: Trigger
191198

192199
version_id: str = FieldInfo(alias="versionId")
200+
201+
schedule: Optional[Schedule] = None

src/cloudflare/types/workflows/instance_list_response.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ class InstanceListResponse(BaseModel):
2727
version_id: str
2828

2929
workflow_id: str
30+
31+
trigger_source: Optional[Literal["unknown", "api", "binding", "event", "cron"]] = None

src/cloudflare/types/workflows/workflow_get_response.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
3+
from typing import List, Optional
44
from datetime import datetime
55

66
from pydantic import Field as FieldInfo
77

88
from ..._models import BaseModel
99

10-
__all__ = ["WorkflowGetResponse", "Instances"]
10+
__all__ = ["WorkflowGetResponse", "Instances", "Schedule"]
1111

1212

1313
class Instances(BaseModel):
@@ -30,6 +30,12 @@ class Instances(BaseModel):
3030
waiting_for_pause: Optional[float] = FieldInfo(alias="waitingForPause", default=None)
3131

3232

33+
class Schedule(BaseModel):
34+
cron: str
35+
36+
next_instance: str
37+
38+
3339
class WorkflowGetResponse(BaseModel):
3440
id: str
3541

@@ -46,3 +52,5 @@ class WorkflowGetResponse(BaseModel):
4652
script_name: str
4753

4854
triggered_on: Optional[datetime] = None
55+
56+
schedules: Optional[List[Schedule]] = None

src/cloudflare/types/workflows/workflow_list_response.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
3+
from typing import List, Optional
44
from datetime import datetime
55

66
from pydantic import Field as FieldInfo
77

88
from ..._models import BaseModel
99

10-
__all__ = ["WorkflowListResponse", "Instances"]
10+
__all__ = ["WorkflowListResponse", "Instances", "Schedule"]
1111

1212

1313
class Instances(BaseModel):
@@ -30,6 +30,12 @@ class Instances(BaseModel):
3030
waiting_for_pause: Optional[float] = FieldInfo(alias="waitingForPause", default=None)
3131

3232

33+
class Schedule(BaseModel):
34+
cron: str
35+
36+
next_instance: str
37+
38+
3339
class WorkflowListResponse(BaseModel):
3440
id: str
3541

@@ -46,3 +52,5 @@ class WorkflowListResponse(BaseModel):
4652
script_name: str
4753

4854
triggered_on: Optional[datetime] = None
55+
56+
schedules: Optional[List[Schedule]] = None

src/cloudflare/types/workflows/workflow_update_params.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
from __future__ import annotations
44

5+
from typing import Iterable
56
from typing_extensions import Required, TypedDict
67

7-
__all__ = ["WorkflowUpdateParams", "Limits"]
8+
__all__ = ["WorkflowUpdateParams", "Limits", "Schedule"]
89

910

1011
class WorkflowUpdateParams(TypedDict, total=False):
@@ -16,6 +17,12 @@ class WorkflowUpdateParams(TypedDict, total=False):
1617

1718
limits: Limits
1819

20+
schedules: Iterable[Schedule]
21+
1922

2023
class Limits(TypedDict, total=False):
2124
steps: int
25+
26+
27+
class Schedule(TypedDict, total=False):
28+
cron: Required[str]

0 commit comments

Comments
 (0)