+3
-2
@@ -1,2 +0,3 @@ | ||
| //#region rolldown:runtime | ||
| Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
| //#region \0rolldown/runtime.js | ||
| var __create = Object.create; | ||
@@ -33,3 +34,3 @@ var __defProp = Object.defineProperty; | ||
| //#region package.json | ||
| var version = "6.9.2"; | ||
| var version = "6.9.3"; | ||
@@ -36,0 +37,0 @@ //#endregion |
+62
-41
@@ -10,2 +10,24 @@ import * as React$1 from "react"; | ||
| //#endregion | ||
| //#region src/common/interfaces/attachment.interface.d.ts | ||
| /** | ||
| * Attachment returned by the signed-URL endpoints: | ||
| * - GET /emails/{id}/attachments | ||
| * - GET /emails/{id}/attachments/{id} | ||
| * - GET /emails/receiving/{id}/attachments | ||
| * - GET /emails/receiving/{id}/attachments/{id} | ||
| * | ||
| * Not to be confused with InboundAttachment, which is the raw metadata | ||
| * embedded inside GET /inbounds/{id} — no signed URL, nullable DB columns. | ||
| */ | ||
| interface AttachmentData { | ||
| id: string; | ||
| filename?: string; | ||
| size: number; | ||
| content_type: string; | ||
| content_disposition: 'inline' | 'attachment'; | ||
| content_id?: string; | ||
| download_url: string; | ||
| expires_at: string; | ||
| } | ||
| //#endregion | ||
| //#region src/domains/interfaces/domain.d.ts | ||
@@ -356,3 +378,10 @@ type DomainRegion = 'us-east-1' | 'eu-west-1' | 'sa-east-1' | 'ap-northeast-1'; | ||
| //#region src/batch/interfaces/create-batch-options.interface.d.ts | ||
| type CreateBatchOptions = CreateEmailOptions[]; | ||
| /** | ||
| * Email options for batch sending. Same as CreateEmailOptions but without attachments | ||
| * and scheduledAt, as these are not supported in the batch API. | ||
| * | ||
| * @link https://resend.com/docs/dashboard/emails/batch-sending#limitations | ||
| */ | ||
| type CreateBatchEmailOptions = Omit<CreateEmailOptions, 'attachments' | 'scheduledAt'>; | ||
| type CreateBatchOptions = CreateBatchEmailOptions[]; | ||
| interface CreateBatchRequestOptions extends PostOptions, IdempotentRequest { | ||
@@ -944,14 +973,2 @@ /** | ||
| //#endregion | ||
| //#region src/common/interfaces/attachment.interface.d.ts | ||
| interface Attachment$1 { | ||
| id: string; | ||
| filename?: string; | ||
| size: number; | ||
| content_type: string; | ||
| content_disposition: 'inline' | 'attachment'; | ||
| content_id?: string; | ||
| download_url: string; | ||
| expires_at: string; | ||
| } | ||
| //#endregion | ||
| //#region src/emails/attachments/interfaces/get-attachment.interface.d.ts | ||
@@ -964,3 +981,3 @@ interface GetAttachmentOptions { | ||
| object: 'attachment'; | ||
| } & Attachment$1; | ||
| } & AttachmentData; | ||
| type GetAttachmentResponse = Response<GetAttachmentResponseSuccess>; | ||
@@ -972,11 +989,6 @@ //#endregion | ||
| }; | ||
| interface ListAttachmentsApiResponse { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: Attachment$1[]; | ||
| } | ||
| interface ListAttachmentsResponseSuccess { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: Attachment$1[]; | ||
| data: AttachmentData[]; | ||
| } | ||
@@ -1015,2 +1027,12 @@ type ListAttachmentsResponse = Response<ListAttachmentsResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/interfaces/list-emails-options.interface.d.ts | ||
| type ListEmailsOptions = PaginationOptions; | ||
| type ListEmail = Omit<GetEmailResponseSuccess, 'html' | 'text' | 'tags' | 'object'>; | ||
| type ListEmailsResponseSuccess = { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: ListEmail[]; | ||
| }; | ||
| type ListEmailsResponse = Response<ListEmailsResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/interfaces/update-email-options.interface.d.ts | ||
@@ -1048,2 +1070,18 @@ interface UpdateEmailOptions { | ||
| //#region src/emails/receiving/interfaces/get-receiving-email.interface.d.ts | ||
| /** | ||
| * Attachment metadata embedded in the GET /inbounds/{id} response. | ||
| * These are raw DB values — fields are nullable and content_disposition is | ||
| * not normalized to a literal union. | ||
| * | ||
| * Not to be confused with AttachmentData, which is the shape returned by the | ||
| * dedicated attachment endpoints (includes download_url and expires_at). | ||
| */ | ||
| interface InboundAttachment { | ||
| id: string; | ||
| filename: string | null; | ||
| size: number; | ||
| content_type: string; | ||
| content_id: string | null; | ||
| content_disposition: string | null; | ||
| } | ||
| interface GetReceivingEmailResponseSuccess { | ||
@@ -1061,16 +1099,9 @@ object: 'email'; | ||
| text: string | null; | ||
| headers: Record<string, string>; | ||
| headers: Record<string, string> | null; | ||
| message_id: string; | ||
| raw: { | ||
| raw?: { | ||
| download_url: string; | ||
| expires_at: string; | ||
| } | null; | ||
| attachments: Array<{ | ||
| id: string; | ||
| filename: string | null; | ||
| size: number; | ||
| content_type: string; | ||
| content_id: string | null; | ||
| content_disposition: string | null; | ||
| }>; | ||
| attachments: InboundAttachment[]; | ||
| } | ||
@@ -1186,12 +1217,2 @@ type GetReceivingEmailResponse = Response<GetReceivingEmailResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/interfaces/list-emails-options.interface.d.ts | ||
| type ListEmailsOptions = PaginationOptions; | ||
| type ListEmail = Omit<GetEmailResponseSuccess, 'html' | 'text' | 'tags' | 'object'>; | ||
| type ListEmailsResponseSuccess = { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: ListEmail[]; | ||
| }; | ||
| type ListEmailsResponse = Response<ListEmailsResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/receiving/attachments/attachments.d.ts | ||
@@ -1738,2 +1759,2 @@ declare class Attachments { | ||
| //#endregion | ||
| export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, ApiContactProperty, ApiKey, Attachment, Broadcast, CancelEmailResponse, CancelEmailResponseSuccess, Contact, ContactCreatedEvent, ContactDeletedEvent, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, ForwardReceivingEmailOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsApiResponse, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type Response, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, Tag, Template, TemplateVariable, Topic, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, Webhook, WebhookEvent, WebhookEventPayload }; | ||
| export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, ApiContactProperty, ApiKey, Attachment, AttachmentData, Broadcast, CancelEmailResponse, CancelEmailResponseSuccess, Contact, ContactCreatedEvent, ContactDeletedEvent, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateBatchEmailOptions, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, ForwardReceivingEmailOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, InboundAttachment, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListEmail, ListEmailsOptions, ListEmailsResponse, ListEmailsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type Response, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, Tag, Template, TemplateVariable, Topic, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, Webhook, WebhookEvent, WebhookEventPayload }; |
+62
-41
@@ -10,2 +10,24 @@ import * as React$1 from "react"; | ||
| //#endregion | ||
| //#region src/common/interfaces/attachment.interface.d.ts | ||
| /** | ||
| * Attachment returned by the signed-URL endpoints: | ||
| * - GET /emails/{id}/attachments | ||
| * - GET /emails/{id}/attachments/{id} | ||
| * - GET /emails/receiving/{id}/attachments | ||
| * - GET /emails/receiving/{id}/attachments/{id} | ||
| * | ||
| * Not to be confused with InboundAttachment, which is the raw metadata | ||
| * embedded inside GET /inbounds/{id} — no signed URL, nullable DB columns. | ||
| */ | ||
| interface AttachmentData { | ||
| id: string; | ||
| filename?: string; | ||
| size: number; | ||
| content_type: string; | ||
| content_disposition: 'inline' | 'attachment'; | ||
| content_id?: string; | ||
| download_url: string; | ||
| expires_at: string; | ||
| } | ||
| //#endregion | ||
| //#region src/domains/interfaces/domain.d.ts | ||
@@ -356,3 +378,10 @@ type DomainRegion = 'us-east-1' | 'eu-west-1' | 'sa-east-1' | 'ap-northeast-1'; | ||
| //#region src/batch/interfaces/create-batch-options.interface.d.ts | ||
| type CreateBatchOptions = CreateEmailOptions[]; | ||
| /** | ||
| * Email options for batch sending. Same as CreateEmailOptions but without attachments | ||
| * and scheduledAt, as these are not supported in the batch API. | ||
| * | ||
| * @link https://resend.com/docs/dashboard/emails/batch-sending#limitations | ||
| */ | ||
| type CreateBatchEmailOptions = Omit<CreateEmailOptions, 'attachments' | 'scheduledAt'>; | ||
| type CreateBatchOptions = CreateBatchEmailOptions[]; | ||
| interface CreateBatchRequestOptions extends PostOptions, IdempotentRequest { | ||
@@ -944,14 +973,2 @@ /** | ||
| //#endregion | ||
| //#region src/common/interfaces/attachment.interface.d.ts | ||
| interface Attachment$1 { | ||
| id: string; | ||
| filename?: string; | ||
| size: number; | ||
| content_type: string; | ||
| content_disposition: 'inline' | 'attachment'; | ||
| content_id?: string; | ||
| download_url: string; | ||
| expires_at: string; | ||
| } | ||
| //#endregion | ||
| //#region src/emails/attachments/interfaces/get-attachment.interface.d.ts | ||
@@ -964,3 +981,3 @@ interface GetAttachmentOptions { | ||
| object: 'attachment'; | ||
| } & Attachment$1; | ||
| } & AttachmentData; | ||
| type GetAttachmentResponse = Response<GetAttachmentResponseSuccess>; | ||
@@ -972,11 +989,6 @@ //#endregion | ||
| }; | ||
| interface ListAttachmentsApiResponse { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: Attachment$1[]; | ||
| } | ||
| interface ListAttachmentsResponseSuccess { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: Attachment$1[]; | ||
| data: AttachmentData[]; | ||
| } | ||
@@ -1015,2 +1027,12 @@ type ListAttachmentsResponse = Response<ListAttachmentsResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/interfaces/list-emails-options.interface.d.ts | ||
| type ListEmailsOptions = PaginationOptions; | ||
| type ListEmail = Omit<GetEmailResponseSuccess, 'html' | 'text' | 'tags' | 'object'>; | ||
| type ListEmailsResponseSuccess = { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: ListEmail[]; | ||
| }; | ||
| type ListEmailsResponse = Response<ListEmailsResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/interfaces/update-email-options.interface.d.ts | ||
@@ -1048,2 +1070,18 @@ interface UpdateEmailOptions { | ||
| //#region src/emails/receiving/interfaces/get-receiving-email.interface.d.ts | ||
| /** | ||
| * Attachment metadata embedded in the GET /inbounds/{id} response. | ||
| * These are raw DB values — fields are nullable and content_disposition is | ||
| * not normalized to a literal union. | ||
| * | ||
| * Not to be confused with AttachmentData, which is the shape returned by the | ||
| * dedicated attachment endpoints (includes download_url and expires_at). | ||
| */ | ||
| interface InboundAttachment { | ||
| id: string; | ||
| filename: string | null; | ||
| size: number; | ||
| content_type: string; | ||
| content_id: string | null; | ||
| content_disposition: string | null; | ||
| } | ||
| interface GetReceivingEmailResponseSuccess { | ||
@@ -1061,16 +1099,9 @@ object: 'email'; | ||
| text: string | null; | ||
| headers: Record<string, string>; | ||
| headers: Record<string, string> | null; | ||
| message_id: string; | ||
| raw: { | ||
| raw?: { | ||
| download_url: string; | ||
| expires_at: string; | ||
| } | null; | ||
| attachments: Array<{ | ||
| id: string; | ||
| filename: string | null; | ||
| size: number; | ||
| content_type: string; | ||
| content_id: string | null; | ||
| content_disposition: string | null; | ||
| }>; | ||
| attachments: InboundAttachment[]; | ||
| } | ||
@@ -1186,12 +1217,2 @@ type GetReceivingEmailResponse = Response<GetReceivingEmailResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/interfaces/list-emails-options.interface.d.ts | ||
| type ListEmailsOptions = PaginationOptions; | ||
| type ListEmail = Omit<GetEmailResponseSuccess, 'html' | 'text' | 'tags' | 'object'>; | ||
| type ListEmailsResponseSuccess = { | ||
| object: 'list'; | ||
| has_more: boolean; | ||
| data: ListEmail[]; | ||
| }; | ||
| type ListEmailsResponse = Response<ListEmailsResponseSuccess>; | ||
| //#endregion | ||
| //#region src/emails/receiving/attachments/attachments.d.ts | ||
@@ -1738,2 +1759,2 @@ declare class Attachments { | ||
| //#endregion | ||
| export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, ApiContactProperty, ApiKey, Attachment, Broadcast, CancelEmailResponse, CancelEmailResponseSuccess, Contact, ContactCreatedEvent, ContactDeletedEvent, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, ForwardReceivingEmailOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsApiResponse, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type Response, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, Tag, Template, TemplateVariable, Topic, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, Webhook, WebhookEvent, WebhookEventPayload }; | ||
| export { AddContactSegmentOptions, AddContactSegmentResponse, AddContactSegmentResponseSuccess, ApiContactProperty, ApiKey, Attachment, AttachmentData, Broadcast, CancelEmailResponse, CancelEmailResponseSuccess, Contact, ContactCreatedEvent, ContactDeletedEvent, ContactProperty, ContactSegmentsBaseOptions, ContactTopic, ContactUpdatedEvent, CreateApiKeyOptions, CreateApiKeyRequestOptions, CreateApiKeyResponse, CreateApiKeyResponseSuccess, CreateBatchEmailOptions, CreateBatchOptions, CreateBatchRequestOptions, CreateBatchResponse, CreateBatchSuccessResponse, CreateBroadcastOptions, CreateBroadcastRequestOptions, CreateBroadcastResponse, CreateBroadcastResponseSuccess, CreateContactOptions, CreateContactPropertyApiOptions, CreateContactPropertyOptions, CreateContactPropertyResponse, CreateContactPropertyResponseSuccess, CreateContactRequestOptions, CreateContactResponse, CreateContactResponseSuccess, CreateDomainOptions, CreateDomainRequestOptions, CreateDomainResponse, CreateDomainResponseSuccess, CreateEmailOptions, CreateEmailRequestOptions, CreateEmailResponse, CreateEmailResponseSuccess, CreateSegmentOptions, CreateSegmentRequestOptions, CreateSegmentResponse, CreateSegmentResponseSuccess, CreateTemplateOptions, CreateTemplateRequestOptions, CreateTemplateResponse, CreateTemplateResponseSuccess, CreateTopicOptions, CreateTopicResponse, CreateTopicResponseSuccess, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, Domain, DomainApiOptions, DomainCapabilities, DomainCapabilityStatus, DomainCreatedEvent, DomainDeletedEvent, DomainDkimRecord, DomainNameservers, DomainRecords, DomainRegion, DomainSpfRecord, DomainStatus, DomainUpdatedEvent, DuplicateTemplateResponse, DuplicateTemplateResponseSuccess, EmailApiAttachment, EmailApiOptions, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, type ErrorResponse, ForwardReceivingEmailOptions, ForwardReceivingEmailResponse, ForwardReceivingEmailResponseSuccess, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetBroadcastResponse, GetBroadcastResponseSuccess, GetContactOptions, GetContactPropertyResponse, GetContactPropertyResponseSuccess, GetContactResponse, GetContactResponseSuccess, GetDomainResponse, GetDomainResponseSuccess, GetEmailResponse, GetEmailResponseSuccess, GetOptions, GetReceivingEmailResponse, GetReceivingEmailResponseSuccess, GetSegmentResponse, GetSegmentResponseSuccess, GetTemplateResponse, GetTemplateResponseSuccess, GetTopicOptions, GetTopicResponse, GetTopicResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, IdempotentRequest, InboundAttachment, LegacyCreateContactOptions, ListApiKeysOptions, ListApiKeysResponse, ListApiKeysResponseSuccess, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListBroadcastsOptions, ListBroadcastsResponse, ListBroadcastsResponseSuccess, ListContactPropertiesOptions, ListContactPropertiesResponse, ListContactPropertiesResponseSuccess, ListContactSegmentsOptions, ListContactSegmentsResponse, ListContactSegmentsResponseSuccess, ListContactTopicsOptions, ListContactTopicsRequestOptions, ListContactTopicsResponse, ListContactTopicsResponseSuccess, ListContactsOptions, ListContactsResponse, ListContactsResponseSuccess, ListDomainsOptions, ListDomainsResponse, ListDomainsResponseSuccess, ListEmail, ListEmailsOptions, ListEmailsResponse, ListEmailsResponseSuccess, ListReceivingEmail, ListReceivingEmailsOptions, ListReceivingEmailsResponse, ListReceivingEmailsResponseSuccess, ListSegmentsOptions, ListSegmentsResponse, ListSegmentsResponseSuccess, ListTemplatesOptions, ListTemplatesResponse, ListTemplatesResponseSuccess, ListTopicsResponse, ListTopicsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, PaginatedData, PaginationOptions, PatchOptions, PostOptions, PublishTemplateResponse, PublishTemplateResponseSuccess, PutOptions, ReceivingRecord, RemoveApiKeyResponse, RemoveApiKeyResponseSuccess, RemoveBroadcastResponse, RemoveBroadcastResponseSuccess, RemoveContactOptions, RemoveContactPropertyResponse, RemoveContactPropertyResponseSuccess, RemoveContactSegmentOptions, RemoveContactSegmentResponse, RemoveContactSegmentResponseSuccess, RemoveContactsResponse, RemoveContactsResponseSuccess, RemoveDomainsResponse, RemoveDomainsResponseSuccess, RemoveSegmentResponse, RemoveSegmentResponseSuccess, RemoveTemplateResponse, RemoveTemplateResponseSuccess, RemoveTopicResponse, RemoveTopicResponseSuccess, RemoveWebhookResponse, RemoveWebhookResponseSuccess, RequireAtLeastOne, Resend, type Response, Segment, SelectingField, SendBroadcastOptions, SendBroadcastRequestOptions, SendBroadcastResponse, SendBroadcastResponseSuccess, Tag, Template, TemplateVariable, Topic, UpdateBroadcastOptions, UpdateBroadcastResponse, UpdateBroadcastResponseSuccess, UpdateContactOptions, UpdateContactPropertyApiOptions, UpdateContactPropertyOptions, UpdateContactPropertyResponse, UpdateContactPropertyResponseSuccess, UpdateContactResponse, UpdateContactResponseSuccess, UpdateContactTopicsOptions, UpdateContactTopicsRequestOptions, UpdateContactTopicsResponse, UpdateContactTopicsResponseSuccess, UpdateDomainsOptions, UpdateDomainsResponse, UpdateDomainsResponseSuccess, UpdateEmailOptions, UpdateEmailResponse, UpdateEmailResponseSuccess, UpdateTemplateOptions, UpdateTemplateResponse, UpdateTemplateResponseSuccess, UpdateTopicOptions, UpdateTopicResponse, UpdateTopicResponseSuccess, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, VerifyDomainsResponse, VerifyDomainsResponseSuccess, Webhook, WebhookEvent, WebhookEventPayload }; |
+1
-1
@@ -5,3 +5,3 @@ import PostalMime from "postal-mime"; | ||
| //#region package.json | ||
| var version = "6.9.2"; | ||
| var version = "6.9.3"; | ||
@@ -8,0 +8,0 @@ //#endregion |
+7
-7
| { | ||
| "name": "resend", | ||
| "version": "6.9.2", | ||
| "version": "6.9.3", | ||
| "description": "Node.js library for the Resend API", | ||
@@ -55,3 +55,3 @@ "main": "./dist/index.cjs", | ||
| "devDependencies": { | ||
| "@biomejs/biome": "2.3.13", | ||
| "@biomejs/biome": "2.3.14", | ||
| "@pollyjs/adapter-fetch": "6.0.7", | ||
@@ -61,11 +61,11 @@ "@pollyjs/core": "6.0.6", | ||
| "@types/mailparser": "3.4.6", | ||
| "@types/node": "24.10.9", | ||
| "@types/react": "19.2.10", | ||
| "@types/node": "24.10.13", | ||
| "@types/react": "19.2.13", | ||
| "cross-env": "10.1.0", | ||
| "dotenv": "17.2.3", | ||
| "pkg-pr-new": "0.0.62", | ||
| "dotenv": "17.2.4", | ||
| "pkg-pr-new": "0.0.65", | ||
| "react": "19.2.4", | ||
| "react-dom": "19.2.4", | ||
| "rimraf": "6.1.2", | ||
| "tsdown": "0.20.1", | ||
| "tsdown": "0.20.3", | ||
| "typescript": "5.9.3", | ||
@@ -72,0 +72,0 @@ "vitest": "4.0.18", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
192113
1.2%2016
0.05%