From c46076019a1b4a23ad1d0bac97ab60d5bb243795 Mon Sep 17 00:00:00 2001 From: Pedro Impulcetto Date: Mon, 22 Apr 2024 10:18:57 -0300 Subject: [PATCH] changing params behavior to be required as Resend docs (#79) --- resend/api_keys/_api_keys.py | 2 +- resend/domains/_domains.py | 8 ++++---- resend/emails/_emails.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resend/api_keys/_api_keys.py b/resend/api_keys/_api_keys.py index a11233e..65651ca 100644 --- a/resend/api_keys/_api_keys.py +++ b/resend/api_keys/_api_keys.py @@ -57,7 +57,7 @@ def list(cls) -> List[ApiKey]: return [ApiKey.new_from_request(val) for val in resp["data"]] @classmethod - def remove(cls, api_key_id: str = "") -> None: + def remove(cls, api_key_id: str) -> None: """ Remove an existing API key. see more: https://resend.com/docs/api-reference/api-keys/delete-api-key diff --git a/resend/domains/_domains.py b/resend/domains/_domains.py index 76b11f7..d719256 100644 --- a/resend/domains/_domains.py +++ b/resend/domains/_domains.py @@ -71,7 +71,7 @@ def update(cls, params: UpdateParams) -> Domain: ) @classmethod - def get(cls, domain_id: str = "") -> Domain: + def get(cls, domain_id: str) -> Domain: """ Retrieve a single domain for the authenticated user. see more: https://resend.com/docs/api-reference/domains/get-domain @@ -101,10 +101,10 @@ def list(cls) -> List[Domain]: return [Domain.new_from_request(val) for val in resp["data"]] @classmethod - def remove(cls, domain_id: str = "") -> Domain: + def remove(cls, domain_id: str) -> Domain: """ Remove an existing domain. - see more: https://resend.com/docs/api-reference/domains/remove-domain + see more: https://resend.com/docs/api-reference/domains/delete-domain Args: domain_id (str): The domain ID @@ -118,7 +118,7 @@ def remove(cls, domain_id: str = "") -> Domain: ) @classmethod - def verify(cls, domain_id: str = "") -> Domain: + def verify(cls, domain_id: str) -> Domain: """ Verify an existing domain. see more: https://resend.com/docs/api-reference/domains/verify-domain diff --git a/resend/emails/_emails.py b/resend/emails/_emails.py index 180d16f..10cfbd5 100644 --- a/resend/emails/_emails.py +++ b/resend/emails/_emails.py @@ -80,7 +80,7 @@ def send(cls, params: SendParams) -> Email: ) @classmethod - def get(cls, email_id: str = "") -> Email: + def get(cls, email_id: str) -> Email: """ Retrieve a single email. see more: https://resend.com/docs/api-reference/emails/retrieve-email