resend 2.53.2__tar.gz → 2.53.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. {resend-2.53.2 → resend-2.53.3}/PKG-INFO +1 -1
  2. {resend-2.53.2 → resend-2.53.3}/resend/domains/_domains.py +39 -20
  3. {resend-2.53.2 → resend-2.53.3}/resend/version.py +1 -1
  4. {resend-2.53.2 → resend-2.53.3}/resend.egg-info/PKG-INFO +1 -1
  5. {resend-2.53.2 → resend-2.53.3}/LICENSE.md +0 -0
  6. {resend-2.53.2 → resend-2.53.3}/README.md +0 -0
  7. {resend-2.53.2 → resend-2.53.3}/resend/__init__.py +0 -0
  8. {resend-2.53.2 → resend-2.53.3}/resend/_base_response.py +0 -0
  9. {resend-2.53.2 → resend-2.53.3}/resend/_path.py +0 -0
  10. {resend-2.53.2 → resend-2.53.3}/resend/api_keys/__init__.py +0 -0
  11. {resend-2.53.2 → resend-2.53.3}/resend/api_keys/_api_key.py +0 -0
  12. {resend-2.53.2 → resend-2.53.3}/resend/api_keys/_api_keys.py +0 -0
  13. {resend-2.53.2 → resend-2.53.3}/resend/api_keys/py.typed +0 -0
  14. {resend-2.53.2 → resend-2.53.3}/resend/async_request.py +0 -0
  15. {resend-2.53.2 → resend-2.53.3}/resend/audiences/__init__.py +0 -0
  16. {resend-2.53.2 → resend-2.53.3}/resend/audiences/_audience.py +0 -0
  17. {resend-2.53.2 → resend-2.53.3}/resend/audiences/_audiences.py +0 -0
  18. {resend-2.53.2 → resend-2.53.3}/resend/audiences/py.typed +0 -0
  19. {resend-2.53.2 → resend-2.53.3}/resend/automations/__init__.py +0 -0
  20. {resend-2.53.2 → resend-2.53.3}/resend/automations/_automation.py +0 -0
  21. {resend-2.53.2 → resend-2.53.3}/resend/automations/_automations.py +0 -0
  22. {resend-2.53.2 → resend-2.53.3}/resend/broadcasts/__init__.py +0 -0
  23. {resend-2.53.2 → resend-2.53.3}/resend/broadcasts/_broadcast.py +0 -0
  24. {resend-2.53.2 → resend-2.53.3}/resend/broadcasts/_broadcast_recipient.py +0 -0
  25. {resend-2.53.2 → resend-2.53.3}/resend/broadcasts/_broadcasts.py +0 -0
  26. {resend-2.53.2 → resend-2.53.3}/resend/broadcasts/_clicked_link.py +0 -0
  27. {resend-2.53.2 → resend-2.53.3}/resend/broadcasts/py.typed +0 -0
  28. {resend-2.53.2 → resend-2.53.3}/resend/contact_properties/__init__.py +0 -0
  29. {resend-2.53.2 → resend-2.53.3}/resend/contact_properties/_contact_properties.py +0 -0
  30. {resend-2.53.2 → resend-2.53.3}/resend/contact_properties/_contact_property.py +0 -0
  31. {resend-2.53.2 → resend-2.53.3}/resend/contacts/__init__.py +0 -0
  32. {resend-2.53.2 → resend-2.53.3}/resend/contacts/_contact.py +0 -0
  33. {resend-2.53.2 → resend-2.53.3}/resend/contacts/_contact_topic.py +0 -0
  34. {resend-2.53.2 → resend-2.53.3}/resend/contacts/_contacts.py +0 -0
  35. {resend-2.53.2 → resend-2.53.3}/resend/contacts/_topics.py +0 -0
  36. {resend-2.53.2 → resend-2.53.3}/resend/contacts/imports/__init__.py +0 -0
  37. {resend-2.53.2 → resend-2.53.3}/resend/contacts/imports/_contact_import.py +0 -0
  38. {resend-2.53.2 → resend-2.53.3}/resend/contacts/imports/_contact_imports.py +0 -0
  39. {resend-2.53.2 → resend-2.53.3}/resend/contacts/py.typed +0 -0
  40. {resend-2.53.2 → resend-2.53.3}/resend/contacts/segments/__init__.py +0 -0
  41. {resend-2.53.2 → resend-2.53.3}/resend/contacts/segments/_contact_segment.py +0 -0
  42. {resend-2.53.2 → resend-2.53.3}/resend/contacts/segments/_contact_segments.py +0 -0
  43. {resend-2.53.2 → resend-2.53.3}/resend/contacts/segments/py.typed +0 -0
  44. {resend-2.53.2 → resend-2.53.3}/resend/domains/__init__.py +0 -0
  45. {resend-2.53.2 → resend-2.53.3}/resend/domains/_domain.py +0 -0
  46. {resend-2.53.2 → resend-2.53.3}/resend/domains/_record.py +0 -0
  47. {resend-2.53.2 → resend-2.53.3}/resend/domains/claims/__init__.py +0 -0
  48. {resend-2.53.2 → resend-2.53.3}/resend/domains/claims/_domain_claim.py +0 -0
  49. {resend-2.53.2 → resend-2.53.3}/resend/domains/claims/_domain_claims.py +0 -0
  50. {resend-2.53.2 → resend-2.53.3}/resend/domains/py.typed +0 -0
  51. {resend-2.53.2 → resend-2.53.3}/resend/emails/__init__.py +0 -0
  52. {resend-2.53.2 → resend-2.53.3}/resend/emails/_attachment.py +0 -0
  53. {resend-2.53.2 → resend-2.53.3}/resend/emails/_attachments.py +0 -0
  54. {resend-2.53.2 → resend-2.53.3}/resend/emails/_batch.py +0 -0
  55. {resend-2.53.2 → resend-2.53.3}/resend/emails/_email.py +0 -0
  56. {resend-2.53.2 → resend-2.53.3}/resend/emails/_emails.py +0 -0
  57. {resend-2.53.2 → resend-2.53.3}/resend/emails/_received_email.py +0 -0
  58. {resend-2.53.2 → resend-2.53.3}/resend/emails/_receiving.py +0 -0
  59. {resend-2.53.2 → resend-2.53.3}/resend/emails/_tag.py +0 -0
  60. {resend-2.53.2 → resend-2.53.3}/resend/emails/py.typed +0 -0
  61. {resend-2.53.2 → resend-2.53.3}/resend/events/__init__.py +0 -0
  62. {resend-2.53.2 → resend-2.53.3}/resend/events/_event.py +0 -0
  63. {resend-2.53.2 → resend-2.53.3}/resend/events/_events.py +0 -0
  64. {resend-2.53.2 → resend-2.53.3}/resend/exceptions.py +0 -0
  65. {resend-2.53.2 → resend-2.53.3}/resend/http_client.py +0 -0
  66. {resend-2.53.2 → resend-2.53.3}/resend/http_client_async.py +0 -0
  67. {resend-2.53.2 → resend-2.53.3}/resend/http_client_httpx.py +0 -0
  68. {resend-2.53.2 → resend-2.53.3}/resend/http_client_requests.py +0 -0
  69. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/__init__.py +0 -0
  70. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/_inbox.py +0 -0
  71. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/_inboxes.py +0 -0
  72. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/_query.py +0 -0
  73. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/agent/__init__.py +0 -0
  74. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/agent/_inbox_agent.py +0 -0
  75. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/agent/_inbox_agent_settings.py +0 -0
  76. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/drafts/__init__.py +0 -0
  77. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/drafts/_inbox_draft.py +0 -0
  78. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/drafts/_inbox_drafts.py +0 -0
  79. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/labels/__init__.py +0 -0
  80. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/labels/_inbox_label.py +0 -0
  81. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/labels/_inbox_labels.py +0 -0
  82. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/__init__.py +0 -0
  83. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/_inbox_thread.py +0 -0
  84. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/_inbox_threads.py +0 -0
  85. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/emails/__init__.py +0 -0
  86. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/emails/_inbox_thread_email.py +0 -0
  87. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/emails/_inbox_thread_emails.py +0 -0
  88. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/labels/__init__.py +0 -0
  89. {resend-2.53.2 → resend-2.53.3}/resend/inboxes/threads/labels/_inbox_thread_labels.py +0 -0
  90. {resend-2.53.2 → resend-2.53.3}/resend/logs/__init__.py +0 -0
  91. {resend-2.53.2 → resend-2.53.3}/resend/logs/_log.py +0 -0
  92. {resend-2.53.2 → resend-2.53.3}/resend/logs/_logs.py +0 -0
  93. {resend-2.53.2 → resend-2.53.3}/resend/oauth_grants/__init__.py +0 -0
  94. {resend-2.53.2 → resend-2.53.3}/resend/oauth_grants/_oauth_grant.py +0 -0
  95. {resend-2.53.2 → resend-2.53.3}/resend/oauth_grants/_oauth_grants.py +0 -0
  96. {resend-2.53.2 → resend-2.53.3}/resend/oauth_grants/py.typed +0 -0
  97. {resend-2.53.2 → resend-2.53.3}/resend/pagination_helper.py +0 -0
  98. {resend-2.53.2 → resend-2.53.3}/resend/py.typed +0 -0
  99. {resend-2.53.2 → resend-2.53.3}/resend/request.py +0 -0
  100. {resend-2.53.2 → resend-2.53.3}/resend/response.py +0 -0
  101. {resend-2.53.2 → resend-2.53.3}/resend/segments/__init__.py +0 -0
  102. {resend-2.53.2 → resend-2.53.3}/resend/segments/_segment.py +0 -0
  103. {resend-2.53.2 → resend-2.53.3}/resend/segments/_segments.py +0 -0
  104. {resend-2.53.2 → resend-2.53.3}/resend/segments/py.typed +0 -0
  105. {resend-2.53.2 → resend-2.53.3}/resend/suppressions/__init__.py +0 -0
  106. {resend-2.53.2 → resend-2.53.3}/resend/suppressions/_suppression.py +0 -0
  107. {resend-2.53.2 → resend-2.53.3}/resend/suppressions/_suppressions.py +0 -0
  108. {resend-2.53.2 → resend-2.53.3}/resend/suppressions/batch/__init__.py +0 -0
  109. {resend-2.53.2 → resend-2.53.3}/resend/suppressions/batch/_suppressions_batch.py +0 -0
  110. {resend-2.53.2 → resend-2.53.3}/resend/suppressions/py.typed +0 -0
  111. {resend-2.53.2 → resend-2.53.3}/resend/templates/__init__.py +0 -0
  112. {resend-2.53.2 → resend-2.53.3}/resend/templates/_template.py +0 -0
  113. {resend-2.53.2 → resend-2.53.3}/resend/templates/_templates.py +0 -0
  114. {resend-2.53.2 → resend-2.53.3}/resend/topics/__init__.py +0 -0
  115. {resend-2.53.2 → resend-2.53.3}/resend/topics/_topic.py +0 -0
  116. {resend-2.53.2 → resend-2.53.3}/resend/topics/_topics.py +0 -0
  117. {resend-2.53.2 → resend-2.53.3}/resend/usage/__init__.py +0 -0
  118. {resend-2.53.2 → resend-2.53.3}/resend/usage/_usage.py +0 -0
  119. {resend-2.53.2 → resend-2.53.3}/resend/webhooks/__init__.py +0 -0
  120. {resend-2.53.2 → resend-2.53.3}/resend/webhooks/_webhook.py +0 -0
  121. {resend-2.53.2 → resend-2.53.3}/resend/webhooks/_webhook_event.py +0 -0
  122. {resend-2.53.2 → resend-2.53.3}/resend/webhooks/_webhooks.py +0 -0
  123. {resend-2.53.2 → resend-2.53.3}/resend.egg-info/SOURCES.txt +0 -0
  124. {resend-2.53.2 → resend-2.53.3}/resend.egg-info/dependency_links.txt +0 -0
  125. {resend-2.53.2 → resend-2.53.3}/resend.egg-info/not-zip-safe +0 -0
  126. {resend-2.53.2 → resend-2.53.3}/resend.egg-info/requires.txt +0 -0
  127. {resend-2.53.2 → resend-2.53.3}/resend.egg-info/top_level.txt +0 -0
  128. {resend-2.53.2 → resend-2.53.3}/setup.cfg +0 -0
  129. {resend-2.53.2 → resend-2.53.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: resend
3
- Version: 2.53.2
3
+ Version: 2.53.3
4
4
  Summary: Resend Python SDK
5
5
  Home-page: https://github.com/resendlabs/resend-python
6
6
  Author: Derich Pacheco
@@ -117,6 +117,25 @@ class Domains:
117
117
  The custom subdomain used for click and open tracking links (e.g., "links")
118
118
  """
119
119
 
120
+ class UpdateDomainResponse(BaseResponse):
121
+ """Response from updating a domain."""
122
+
123
+ object: str
124
+ id: str
125
+
126
+ class VerifyDomainResponse(BaseResponse):
127
+ """Response from requesting verification of a domain."""
128
+
129
+ object: str
130
+ id: str
131
+
132
+ class RemoveDomainResponse(BaseResponse):
133
+ """Response from removing a domain."""
134
+
135
+ object: str
136
+ id: str
137
+ deleted: bool
138
+
120
139
  class UpdateParams(TypedDict):
121
140
  id: str
122
141
  """
@@ -194,7 +213,7 @@ class Domains:
194
213
  return resp
195
214
 
196
215
  @classmethod
197
- def update(cls, params: UpdateParams) -> Domain:
216
+ def update(cls, params: UpdateParams) -> UpdateDomainResponse:
198
217
  """
199
218
  Update an existing domain.
200
219
  see more: https://resend.com/docs/api-reference/domains/update-domain
@@ -203,10 +222,10 @@ class Domains:
203
222
  params (UpdateParams): The domain update parameters
204
223
 
205
224
  Returns:
206
- Domain: The updated domain object
225
+ UpdateDomainResponse: The domain update acknowledgment
207
226
  """
208
227
  path = f"/domains/{params['id']}"
209
- resp = request.Request[Domain](
228
+ resp = request.Request[Domains.UpdateDomainResponse](
210
229
  path=path, params=cast(Dict[Any, Any], params), verb="patch"
211
230
  ).perform_with_content()
212
231
  return resp
@@ -254,7 +273,7 @@ class Domains:
254
273
  return resp
255
274
 
256
275
  @classmethod
257
- def remove(cls, domain_id: str) -> Domain:
276
+ def remove(cls, domain_id: str) -> RemoveDomainResponse:
258
277
  """
259
278
  Remove an existing domain.
260
279
  see more: https://resend.com/docs/api-reference/domains/delete-domain
@@ -263,28 +282,28 @@ class Domains:
263
282
  domain_id (str): The domain ID
264
283
 
265
284
  Returns:
266
- Domain: The removed domain object
285
+ RemoveDomainResponse: The domain ID and deletion result
267
286
  """
268
287
  path = f"/domains/{domain_id}"
269
- resp = request.Request[Domain](
288
+ resp = request.Request[Domains.RemoveDomainResponse](
270
289
  path=path, params={}, verb="delete"
271
290
  ).perform_with_content()
272
291
  return resp
273
292
 
274
293
  @classmethod
275
- def verify(cls, domain_id: str) -> Domain:
294
+ def verify(cls, domain_id: str) -> VerifyDomainResponse:
276
295
  """
277
- Verify an existing domain.
296
+ Request verification of an existing domain.
278
297
  see more: https://resend.com/docs/api-reference/domains/verify-domain
279
298
 
280
299
  Args:
281
300
  domain_id (str): The domain ID
282
301
 
283
302
  Returns:
284
- Domain: The verified domain object
303
+ VerifyDomainResponse: The domain verification acknowledgment
285
304
  """
286
305
  path = f"/domains/{domain_id}/verify"
287
- resp = request.Request[Domain](
306
+ resp = request.Request[Domains.VerifyDomainResponse](
288
307
  path=path, params={}, verb="post"
289
308
  ).perform_with_content()
290
309
  return resp
@@ -308,7 +327,7 @@ class Domains:
308
327
  return resp
309
328
 
310
329
  @classmethod
311
- async def update_async(cls, params: UpdateParams) -> Domain:
330
+ async def update_async(cls, params: UpdateParams) -> UpdateDomainResponse:
312
331
  """
313
332
  Update an existing domain (async).
314
333
  see more: https://resend.com/docs/api-reference/domains/update-domain
@@ -317,10 +336,10 @@ class Domains:
317
336
  params (UpdateParams): The domain update parameters
318
337
 
319
338
  Returns:
320
- Domain: The updated domain object
339
+ UpdateDomainResponse: The domain update acknowledgment
321
340
  """
322
341
  path = f"/domains/{params['id']}"
323
- resp = await AsyncRequest[Domain](
342
+ resp = await AsyncRequest[Domains.UpdateDomainResponse](
324
343
  path=path, params=cast(Dict[Any, Any], params), verb="patch"
325
344
  ).perform_with_content()
326
345
  return resp
@@ -364,7 +383,7 @@ class Domains:
364
383
  return resp
365
384
 
366
385
  @classmethod
367
- async def remove_async(cls, domain_id: str) -> Domain:
386
+ async def remove_async(cls, domain_id: str) -> RemoveDomainResponse:
368
387
  """
369
388
  Remove an existing domain (async).
370
389
  see more: https://resend.com/docs/api-reference/domains/delete-domain
@@ -373,28 +392,28 @@ class Domains:
373
392
  domain_id (str): The domain ID
374
393
 
375
394
  Returns:
376
- Domain: The removed domain object
395
+ RemoveDomainResponse: The domain ID and deletion result
377
396
  """
378
397
  path = f"/domains/{domain_id}"
379
- resp = await AsyncRequest[Domain](
398
+ resp = await AsyncRequest[Domains.RemoveDomainResponse](
380
399
  path=path, params={}, verb="delete"
381
400
  ).perform_with_content()
382
401
  return resp
383
402
 
384
403
  @classmethod
385
- async def verify_async(cls, domain_id: str) -> Domain:
404
+ async def verify_async(cls, domain_id: str) -> VerifyDomainResponse:
386
405
  """
387
- Verify an existing domain (async).
406
+ Request verification of an existing domain (async).
388
407
  see more: https://resend.com/docs/api-reference/domains/verify-domain
389
408
 
390
409
  Args:
391
410
  domain_id (str): The domain ID
392
411
 
393
412
  Returns:
394
- Domain: The verified domain object
413
+ VerifyDomainResponse: The domain verification acknowledgment
395
414
  """
396
415
  path = f"/domains/{domain_id}/verify"
397
- resp = await AsyncRequest[Domain](
416
+ resp = await AsyncRequest[Domains.VerifyDomainResponse](
398
417
  path=path, params={}, verb="post"
399
418
  ).perform_with_content()
400
419
  return resp
@@ -1,4 +1,4 @@
1
- __version__ = "2.53.2"
1
+ __version__ = "2.53.3"
2
2
 
3
3
 
4
4
  def get_version() -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: resend
3
- Version: 2.53.2
3
+ Version: 2.53.3
4
4
  Summary: Resend Python SDK
5
5
  Home-page: https://github.com/resendlabs/resend-python
6
6
  Author: Derich Pacheco
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes