Skip to content

Commit

Permalink
fix: creating a literal string for region attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroimpulcetto committed Jun 1, 2024
1 parent cef3fd6 commit 8c3eab4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions resend/domains/_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ class ShortDomain(TypedDict):
"""
Status of the domain: not_started, etc..
"""
region: str
region: Literal['us-east-1', 'eu-west-1', 'sa-east-1', 'ap-northeast-1']
"""
The region where emails will be sent from. Possible values: us-east-1' | 'eu-west-1' | 'sa-east-1' | 'ap-northeast-1'
The region where emails will be sent from.
Possible values: us-east-1' | 'eu-west-1' | 'sa-east-1' | 'ap-northeast-1'
"""


Expand Down
7 changes: 2 additions & 5 deletions resend/domains/_domains.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ class _CreateResponse(ShortDomain):
"""
The list of domain records
"""
dnsProvider: str
"""
The domain DNS provider
"""


class _VerifyResponse(TypedDict):
Expand Down Expand Up @@ -58,7 +54,8 @@ class CreateResponse(_CreateResponse):
name (str): The domain name
created_at (str): When domain was created
status (str): Status of the domain: not_started, etc..
region (str): The region where emails will be sent from. Possible values: us-east-1' | 'eu-west-1' | 'sa-east-1' | 'ap-northeast-1'
region (str): The region where emails will be sent from.
Possible values: us-east-1' | 'eu-west-1' | 'sa-east-1' | 'ap-northeast-1'
records (List[Record]): The list of domain records
dnsProvider (str): The domain DNS provider
"""
Expand Down

0 comments on commit 8c3eab4

Please sign in to comment.