Skip to content

Commit a447213

Browse files
committed
fix: resolve remaining mypy duplicate-key errors and add missing create wrapper
- accounts/subscriptions: add create() to all 4 response wrapper classes - zero_trust/access/ai_controls/mcp/server_update_params: remove duplicate client_secret TypedDict key - zero_trust/access/ai_controls/mcp/server_create_params: remove duplicate client_secret TypedDict key - registrar/registration_create_params: remove duplicate acknowledgements TypedDict key
1 parent 7406a51 commit a447213

4 files changed

Lines changed: 12 additions & 23 deletions

File tree

src/cloudflare/resources/accounts/subscriptions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@ class SubscriptionsResourceWithRawResponse:
544544
def __init__(self, subscriptions: SubscriptionsResource) -> None:
545545
self._subscriptions = subscriptions
546546

547+
self.create = to_raw_response_wrapper(
548+
subscriptions.create,
549+
)
547550
self.update = to_raw_response_wrapper(
548551
subscriptions.update,
549552
)
@@ -559,6 +562,9 @@ class AsyncSubscriptionsResourceWithRawResponse:
559562
def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None:
560563
self._subscriptions = subscriptions
561564

565+
self.create = async_to_raw_response_wrapper(
566+
subscriptions.create,
567+
)
562568
self.update = async_to_raw_response_wrapper(
563569
subscriptions.update,
564570
)
@@ -574,6 +580,9 @@ class SubscriptionsResourceWithStreamingResponse:
574580
def __init__(self, subscriptions: SubscriptionsResource) -> None:
575581
self._subscriptions = subscriptions
576582

583+
self.create = to_streamed_response_wrapper(
584+
subscriptions.create,
585+
)
577586
self.update = to_streamed_response_wrapper(
578587
subscriptions.update,
579588
)
@@ -589,6 +598,9 @@ class AsyncSubscriptionsResourceWithStreamingResponse:
589598
def __init__(self, subscriptions: AsyncSubscriptionsResource) -> None:
590599
self._subscriptions = subscriptions
591600

601+
self.create = async_to_streamed_response_wrapper(
602+
subscriptions.create,
603+
)
592604
self.update = async_to_streamed_response_wrapper(
593605
subscriptions.update,
594606
)

src/cloudflare/types/registrar/registration_create_params.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ class RegistrationCreateParams(TypedDict, total=False):
3737
domain name a natural idempotency key for registration requests.
3838
"""
3939

40-
acknowledgements: Dict[str, object]
41-
"""
42-
Provides user acknowledgements for a specific extension or premium registration
43-
flow. The extension registration schema from the extension discovery endpoint
44-
identifies the required keys.
45-
"""
46-
4740
acknowledgements: Dict[str, object]
4841
"""
4942
User acknowledgements required by a specific extension or premium registration

src/cloudflare/types/zero_trust/access/ai_controls/mcp/server_create_params.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ class ServerCreateParams(TypedDict, total=False):
4141
read endpoints.
4242
"""
4343

44-
client_secret: str
45-
"""Pre-registered OAuth client_secret.
46-
47-
Write-only - accepted on create/update when auth_credentials.auth_mode is
48-
'manual'. Stored AES-GCM-encrypted in server_oauth_secrets; never returned by
49-
read endpoints.
50-
"""
51-
5244
description: Optional[str]
5345
"""Optional description of the MCP server."""
5446

src/cloudflare/types/zero_trust/access/ai_controls/mcp/server_update_params.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ class ServerUpdateParams(TypedDict, total=False):
2929
read endpoints.
3030
"""
3131

32-
client_secret: str
33-
"""Pre-registered OAuth client_secret.
34-
35-
Write-only - accepted on create/update when auth_credentials.auth_mode is
36-
'manual'. Stored AES-GCM-encrypted in server_oauth_secrets; never returned by
37-
read endpoints.
38-
"""
39-
4032
description: Optional[str]
4133
"""Optional description of the MCP server."""
4234

0 commit comments

Comments
 (0)