agentmail 0.0.56 → 0.0.58
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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/drafts/types/CreateDraftRequest.d.ts +1 -0
- package/dist/cjs/api/resources/drafts/types/Draft.d.ts +1 -2
- package/dist/cjs/api/resources/{websockets/types/EventId.d.ts → drafts/types/DraftInReplyTo.d.ts} +2 -2
- package/dist/cjs/api/resources/drafts/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/drafts/types/index.js +1 -0
- package/dist/cjs/api/resources/events/index.d.ts +1 -0
- package/dist/cjs/api/resources/events/index.js +17 -0
- package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Bounce.d.ts +3 -3
- package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Complaint.d.ts +2 -2
- package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Delivery.d.ts +2 -2
- package/dist/cjs/api/resources/events/types/MessageBouncedEvent.d.ts +10 -0
- package/dist/cjs/api/resources/events/types/MessageComplainedEvent.d.ts +10 -0
- package/dist/cjs/api/resources/events/types/MessageDeliveredEvent.d.ts +10 -0
- package/dist/cjs/api/resources/{websockets/types/MessageReceived.d.ts → events/types/MessageReceivedEvent.d.ts} +1 -1
- package/dist/cjs/api/resources/events/types/MessageRejectedEvent.d.ts +10 -0
- package/dist/cjs/api/resources/events/types/MessageSentEvent.d.ts +10 -0
- package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Reject.d.ts +2 -2
- package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Send.d.ts +2 -2
- package/dist/cjs/api/resources/events/types/index.d.ts +14 -0
- package/dist/cjs/api/resources/events/types/index.js +30 -0
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +1 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/webhooks/resources/events/types/index.d.ts +0 -14
- package/dist/cjs/api/resources/webhooks/resources/events/types/index.js +0 -14
- package/dist/cjs/api/resources/websockets/client/Socket.d.ts +1 -1
- package/dist/cjs/api/resources/websockets/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/websockets/types/index.js +0 -2
- package/dist/cjs/serialization/resources/drafts/types/CreateDraftRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/drafts/types/CreateDraftRequest.js +2 -0
- package/dist/cjs/serialization/resources/drafts/types/Draft.d.ts +2 -1
- package/dist/cjs/serialization/resources/drafts/types/Draft.js +2 -1
- package/dist/cjs/serialization/resources/drafts/types/DraftInReplyTo.d.ts +10 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events/types/EventId.js → drafts/types/DraftInReplyTo.js} +3 -3
- package/dist/cjs/serialization/resources/drafts/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/drafts/types/index.js +1 -0
- package/dist/cjs/serialization/resources/events/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/events/index.js +17 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Bounce.d.ts +6 -6
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Bounce.js +3 -3
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Complaint.d.ts +6 -6
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Complaint.js +3 -3
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Delivery.d.ts +6 -6
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Delivery.js +3 -3
- package/dist/cjs/serialization/resources/events/types/MessageBouncedEvent.d.ts +17 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events/types/MessageBouncedPayload.js → events/types/MessageBouncedEvent.js} +5 -5
- package/dist/cjs/serialization/resources/events/types/MessageComplainedEvent.d.ts +17 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events/types/MessageComplainedPayload.js → events/types/MessageComplainedEvent.js} +5 -5
- package/dist/cjs/serialization/resources/events/types/MessageDeliveredEvent.d.ts +17 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events/types/MessageDeliveredPayload.js → events/types/MessageDeliveredEvent.js} +5 -5
- package/dist/cjs/serialization/resources/{websockets/types/MessageReceived.d.ts → events/types/MessageReceivedEvent.d.ts} +2 -2
- package/dist/cjs/serialization/resources/{websockets/types/MessageReceived.js → events/types/MessageReceivedEvent.js} +2 -2
- package/dist/cjs/serialization/resources/events/types/MessageRejectedEvent.d.ts +17 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events/types/MessageRejectedPayload.js → events/types/MessageRejectedEvent.js} +5 -5
- package/dist/cjs/serialization/resources/events/types/MessageSentEvent.d.ts +17 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events/types/MessageSentPayload.js → events/types/MessageSentEvent.js} +5 -5
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Recipient.d.ts +4 -4
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Recipient.js +1 -1
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Reject.d.ts +6 -6
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Reject.js +3 -3
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Send.d.ts +6 -6
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Send.js +3 -3
- package/dist/cjs/serialization/resources/events/types/Timestamp.d.ts +10 -0
- package/dist/cjs/serialization/resources/{webhooks/resources/events → events}/types/Timestamp.js +1 -1
- package/dist/cjs/serialization/resources/events/types/index.d.ts +14 -0
- package/dist/cjs/serialization/resources/events/types/index.js +30 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/index.d.ts +0 -14
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/index.js +0 -14
- package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +8 -3
- package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +15 -2
- package/dist/cjs/serialization/resources/websockets/types/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/websockets/types/index.js +0 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/drafts/types/CreateDraftRequest.d.mts +1 -0
- package/dist/esm/api/resources/drafts/types/Draft.d.mts +1 -2
- package/dist/esm/api/resources/drafts/types/DraftInReplyTo.d.mts +7 -0
- package/dist/esm/api/resources/drafts/types/index.d.mts +1 -0
- package/dist/esm/api/resources/drafts/types/index.mjs +1 -0
- package/dist/esm/api/resources/events/index.d.mts +1 -0
- package/dist/esm/api/resources/events/index.mjs +1 -0
- package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Bounce.d.mts +3 -3
- package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Complaint.d.mts +2 -2
- package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Delivery.d.mts +2 -2
- package/dist/esm/api/resources/events/types/MessageBouncedEvent.d.mts +10 -0
- package/dist/esm/api/resources/events/types/MessageComplainedEvent.d.mts +10 -0
- package/dist/esm/api/resources/events/types/MessageDeliveredEvent.d.mts +10 -0
- package/dist/esm/api/resources/{websockets/types/MessageReceived.d.mts → events/types/MessageReceivedEvent.d.mts} +1 -1
- package/dist/esm/api/resources/events/types/MessageRejectedEvent.d.mts +10 -0
- package/dist/esm/api/resources/events/types/MessageSentEvent.d.mts +10 -0
- package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Reject.d.mts +2 -2
- package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Send.d.mts +2 -2
- package/dist/esm/api/resources/events/types/index.d.mts +14 -0
- package/dist/esm/api/resources/events/types/index.mjs +14 -0
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/webhooks/resources/events/types/index.d.mts +0 -14
- package/dist/esm/api/resources/webhooks/resources/events/types/index.mjs +0 -14
- package/dist/esm/api/resources/websockets/client/Socket.d.mts +1 -1
- package/dist/esm/api/resources/websockets/types/index.d.mts +0 -2
- package/dist/esm/api/resources/websockets/types/index.mjs +0 -2
- package/dist/esm/serialization/resources/drafts/types/CreateDraftRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/drafts/types/CreateDraftRequest.mjs +2 -0
- package/dist/esm/serialization/resources/drafts/types/Draft.d.mts +2 -1
- package/dist/esm/serialization/resources/drafts/types/Draft.mjs +2 -1
- package/dist/esm/serialization/resources/drafts/types/DraftInReplyTo.d.mts +10 -0
- package/dist/esm/serialization/resources/drafts/types/DraftInReplyTo.mjs +5 -0
- package/dist/esm/serialization/resources/drafts/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/drafts/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/events/index.d.mts +1 -0
- package/dist/esm/serialization/resources/events/index.mjs +1 -0
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Bounce.d.mts +6 -6
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Bounce.mjs +3 -3
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Complaint.d.mts +6 -6
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Complaint.mjs +3 -3
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Delivery.d.mts +6 -6
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Delivery.mjs +3 -3
- package/dist/esm/serialization/resources/events/types/MessageBouncedEvent.d.mts +17 -0
- package/dist/esm/serialization/resources/events/types/MessageBouncedEvent.mjs +12 -0
- package/dist/esm/serialization/resources/events/types/MessageComplainedEvent.d.mts +17 -0
- package/dist/esm/serialization/resources/events/types/MessageComplainedEvent.mjs +12 -0
- package/dist/esm/serialization/resources/events/types/MessageDeliveredEvent.d.mts +17 -0
- package/dist/esm/serialization/resources/events/types/MessageDeliveredEvent.mjs +12 -0
- package/dist/esm/serialization/resources/{websockets/types/MessageReceived.d.mts → events/types/MessageReceivedEvent.d.mts} +2 -2
- package/dist/esm/serialization/resources/{websockets/types/MessageReceived.mjs → events/types/MessageReceivedEvent.mjs} +1 -1
- package/dist/esm/serialization/resources/events/types/MessageRejectedEvent.d.mts +17 -0
- package/dist/esm/serialization/resources/events/types/MessageRejectedEvent.mjs +12 -0
- package/dist/esm/serialization/resources/events/types/MessageSentEvent.d.mts +17 -0
- package/dist/esm/serialization/resources/events/types/MessageSentEvent.mjs +12 -0
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Recipient.d.mts +4 -4
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Recipient.mjs +1 -1
- package/dist/esm/serialization/resources/events/types/Reject.d.mts +18 -0
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Reject.mjs +3 -3
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Send.d.mts +6 -6
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Send.mjs +3 -3
- package/dist/esm/serialization/resources/events/types/Timestamp.d.mts +10 -0
- package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Timestamp.mjs +1 -1
- package/dist/esm/serialization/resources/events/types/index.d.mts +14 -0
- package/dist/esm/serialization/resources/events/types/index.mjs +14 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/webhooks/resources/events/types/index.d.mts +0 -14
- package/dist/esm/serialization/resources/webhooks/resources/events/types/index.mjs +0 -14
- package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.mts +8 -3
- package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.mjs +15 -2
- package/dist/esm/serialization/resources/websockets/types/index.d.mts +0 -2
- package/dist/esm/serialization/resources/websockets/types/index.mjs +0 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +1 -0
- package/dist/cjs/api/resources/webhooks/resources/events/types/MessageBouncedPayload.d.ts +0 -9
- package/dist/cjs/api/resources/webhooks/resources/events/types/MessageComplainedPayload.d.ts +0 -9
- package/dist/cjs/api/resources/webhooks/resources/events/types/MessageDeliveredPayload.d.ts +0 -9
- package/dist/cjs/api/resources/webhooks/resources/events/types/MessageReceivedPayload.d.ts +0 -9
- package/dist/cjs/api/resources/webhooks/resources/events/types/MessageRejectedPayload.d.ts +0 -9
- package/dist/cjs/api/resources/webhooks/resources/events/types/MessageSentPayload.d.ts +0 -9
- package/dist/cjs/api/resources/websockets/types/MessageReceived.js +0 -5
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/EventId.d.ts +0 -10
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/MessageBouncedPayload.d.ts +0 -17
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/MessageComplainedPayload.d.ts +0 -17
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/MessageDeliveredPayload.d.ts +0 -17
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/MessageReceivedPayload.d.ts +0 -17
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/MessageReceivedPayload.js +0 -48
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/MessageRejectedPayload.d.ts +0 -17
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/MessageSentPayload.d.ts +0 -17
- package/dist/cjs/serialization/resources/webhooks/resources/events/types/Timestamp.d.ts +0 -10
- package/dist/esm/api/resources/webhooks/resources/events/types/MessageBouncedPayload.d.mts +0 -9
- package/dist/esm/api/resources/webhooks/resources/events/types/MessageComplainedPayload.d.mts +0 -9
- package/dist/esm/api/resources/webhooks/resources/events/types/MessageDeliveredPayload.d.mts +0 -9
- package/dist/esm/api/resources/webhooks/resources/events/types/MessageReceivedPayload.d.mts +0 -9
- package/dist/esm/api/resources/webhooks/resources/events/types/MessageRejectedPayload.d.mts +0 -9
- package/dist/esm/api/resources/webhooks/resources/events/types/MessageSentPayload.d.mts +0 -9
- package/dist/esm/api/resources/websockets/types/EventId.d.mts +0 -7
- package/dist/esm/api/resources/websockets/types/MessageReceived.mjs +0 -4
- package/dist/esm/serialization/resources/webhooks/resources/events/types/EventId.d.mts +0 -10
- package/dist/esm/serialization/resources/webhooks/resources/events/types/EventId.mjs +0 -5
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageBouncedPayload.d.mts +0 -17
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageBouncedPayload.mjs +0 -12
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageComplainedPayload.d.mts +0 -17
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageComplainedPayload.mjs +0 -12
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageDeliveredPayload.d.mts +0 -17
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageDeliveredPayload.mjs +0 -12
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageReceivedPayload.d.mts +0 -17
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageReceivedPayload.mjs +0 -12
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageRejectedPayload.d.mts +0 -17
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageRejectedPayload.mjs +0 -12
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageSentPayload.d.mts +0 -17
- package/dist/esm/serialization/resources/webhooks/resources/events/types/MessageSentPayload.mjs +0 -12
- package/dist/esm/serialization/resources/webhooks/resources/events/types/Reject.d.mts +0 -18
- package/dist/esm/serialization/resources/webhooks/resources/events/types/Timestamp.d.mts +0 -10
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/Bounce.js → drafts/types/DraftInReplyTo.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/Complaint.js → events/types/Bounce.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/Delivery.js → events/types/Complaint.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/EventId.js → events/types/Delivery.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/EventId.d.ts +0 -0
- /package/dist/cjs/api/resources/{websockets → events}/types/EventId.js +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/MessageBouncedPayload.js → events/types/MessageBouncedEvent.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/MessageComplainedPayload.js → events/types/MessageComplainedEvent.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/MessageDeliveredPayload.js → events/types/MessageDeliveredEvent.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/MessageReceivedPayload.js → events/types/MessageReceivedEvent.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/MessageRejectedPayload.js → events/types/MessageRejectedEvent.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events/types/MessageSentPayload.js → events/types/MessageSentEvent.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Recipient.d.ts +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Recipient.js +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Reject.js +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Send.js +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Timestamp.d.ts +0 -0
- /package/dist/cjs/api/resources/{webhooks/resources/events → events}/types/Timestamp.js +0 -0
- /package/dist/cjs/serialization/resources/{websockets → events}/types/EventId.d.ts +0 -0
- /package/dist/cjs/serialization/resources/{websockets → events}/types/EventId.js +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/Bounce.mjs → drafts/types/DraftInReplyTo.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/Complaint.mjs → events/types/Bounce.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/Delivery.mjs → events/types/Complaint.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/EventId.mjs → events/types/Delivery.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events → events}/types/EventId.d.mts +0 -0
- /package/dist/esm/api/resources/{websockets → events}/types/EventId.mjs +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/MessageBouncedPayload.mjs → events/types/MessageBouncedEvent.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/MessageComplainedPayload.mjs → events/types/MessageComplainedEvent.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/MessageDeliveredPayload.mjs → events/types/MessageDeliveredEvent.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/MessageReceivedPayload.mjs → events/types/MessageReceivedEvent.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/MessageRejectedPayload.mjs → events/types/MessageRejectedEvent.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events/types/MessageSentPayload.mjs → events/types/MessageSentEvent.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Recipient.d.mts +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Recipient.mjs +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Reject.mjs +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Send.mjs +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Timestamp.d.mts +0 -0
- /package/dist/esm/api/resources/{webhooks/resources/events → events}/types/Timestamp.mjs +0 -0
- /package/dist/esm/serialization/resources/{websockets → events}/types/EventId.d.mts +0 -0
- /package/dist/esm/serialization/resources/{websockets → events}/types/EventId.mjs +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AgentMail from "
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
5
|
export interface Bounce {
|
|
6
6
|
inboxId: AgentMail.inboxes.InboxId;
|
|
7
7
|
messageId: AgentMail.MessageId;
|
|
8
|
-
timestamp: AgentMail.
|
|
8
|
+
timestamp: AgentMail.Timestamp;
|
|
9
9
|
/** Bounce type. */
|
|
10
10
|
type: string;
|
|
11
11
|
/** Bounce sub-type. */
|
|
12
12
|
subType: string;
|
|
13
13
|
/** Bounced recipients. */
|
|
14
|
-
recipients: AgentMail.
|
|
14
|
+
recipients: AgentMail.Recipient[];
|
|
15
15
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AgentMail from "
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
5
|
export interface Complaint {
|
|
6
6
|
inboxId: AgentMail.inboxes.InboxId;
|
|
7
7
|
messageId: AgentMail.MessageId;
|
|
8
|
-
timestamp: AgentMail.
|
|
8
|
+
timestamp: AgentMail.Timestamp;
|
|
9
9
|
/** Complaint type. */
|
|
10
10
|
type: string;
|
|
11
11
|
/** Complaint sub-type. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AgentMail from "
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
5
|
export interface Delivery {
|
|
6
6
|
inboxId: AgentMail.inboxes.InboxId;
|
|
7
7
|
messageId: AgentMail.MessageId;
|
|
8
|
-
timestamp: AgentMail.
|
|
8
|
+
timestamp: AgentMail.Timestamp;
|
|
9
9
|
/** Delivered recipients. */
|
|
10
10
|
recipients: string[];
|
|
11
11
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
|
+
export interface MessageBouncedEvent {
|
|
6
|
+
type: "event";
|
|
7
|
+
eventType: "message.bounced";
|
|
8
|
+
eventId: AgentMail.EventId;
|
|
9
|
+
bounce: AgentMail.Bounce;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
|
+
export interface MessageComplainedEvent {
|
|
6
|
+
type: "event";
|
|
7
|
+
eventType: "message.complained";
|
|
8
|
+
eventId: AgentMail.EventId;
|
|
9
|
+
complaint: AgentMail.Complaint;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
|
+
export interface MessageDeliveredEvent {
|
|
6
|
+
type: "event";
|
|
7
|
+
eventType: "message.delivered";
|
|
8
|
+
eventId: AgentMail.EventId;
|
|
9
|
+
delivery: AgentMail.Delivery;
|
|
10
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as AgentMail from "../../../index.mjs";
|
|
5
|
-
export interface
|
|
5
|
+
export interface MessageReceivedEvent {
|
|
6
6
|
type: "event";
|
|
7
7
|
eventType: "message.received";
|
|
8
8
|
eventId: AgentMail.EventId;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
|
+
export interface MessageRejectedEvent {
|
|
6
|
+
type: "event";
|
|
7
|
+
eventType: "message.rejected";
|
|
8
|
+
eventId: AgentMail.EventId;
|
|
9
|
+
reject: AgentMail.Reject;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
|
+
export interface MessageSentEvent {
|
|
6
|
+
type: "event";
|
|
7
|
+
eventType: "message.sent";
|
|
8
|
+
eventId: AgentMail.EventId;
|
|
9
|
+
send: AgentMail.Send;
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AgentMail from "
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
5
|
export interface Reject {
|
|
6
6
|
inboxId: AgentMail.inboxes.InboxId;
|
|
7
7
|
messageId: AgentMail.MessageId;
|
|
8
|
-
timestamp: AgentMail.
|
|
8
|
+
timestamp: AgentMail.Timestamp;
|
|
9
9
|
/** Reject reason. */
|
|
10
10
|
reason: string;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as AgentMail from "
|
|
4
|
+
import * as AgentMail from "../../../index.mjs";
|
|
5
5
|
export interface Send {
|
|
6
6
|
inboxId: AgentMail.inboxes.InboxId;
|
|
7
7
|
messageId: AgentMail.MessageId;
|
|
8
|
-
timestamp: AgentMail.
|
|
8
|
+
timestamp: AgentMail.Timestamp;
|
|
9
9
|
/** Sent recipients. */
|
|
10
10
|
recipients: string[];
|
|
11
11
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./EventId.mjs";
|
|
2
|
+
export * from "./Timestamp.mjs";
|
|
3
|
+
export * from "./Recipient.mjs";
|
|
4
|
+
export * from "./Send.mjs";
|
|
5
|
+
export * from "./Delivery.mjs";
|
|
6
|
+
export * from "./Bounce.mjs";
|
|
7
|
+
export * from "./Complaint.mjs";
|
|
8
|
+
export * from "./Reject.mjs";
|
|
9
|
+
export * from "./MessageReceivedEvent.mjs";
|
|
10
|
+
export * from "./MessageSentEvent.mjs";
|
|
11
|
+
export * from "./MessageDeliveredEvent.mjs";
|
|
12
|
+
export * from "./MessageBouncedEvent.mjs";
|
|
13
|
+
export * from "./MessageComplainedEvent.mjs";
|
|
14
|
+
export * from "./MessageRejectedEvent.mjs";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./EventId.mjs";
|
|
2
|
+
export * from "./Timestamp.mjs";
|
|
3
|
+
export * from "./Recipient.mjs";
|
|
4
|
+
export * from "./Send.mjs";
|
|
5
|
+
export * from "./Delivery.mjs";
|
|
6
|
+
export * from "./Bounce.mjs";
|
|
7
|
+
export * from "./Complaint.mjs";
|
|
8
|
+
export * from "./Reject.mjs";
|
|
9
|
+
export * from "./MessageReceivedEvent.mjs";
|
|
10
|
+
export * from "./MessageSentEvent.mjs";
|
|
11
|
+
export * from "./MessageDeliveredEvent.mjs";
|
|
12
|
+
export * from "./MessageBouncedEvent.mjs";
|
|
13
|
+
export * from "./MessageComplainedEvent.mjs";
|
|
14
|
+
export * from "./MessageRejectedEvent.mjs";
|
|
@@ -6,6 +6,8 @@ export * as domains from "./domains/index.mjs";
|
|
|
6
6
|
export * from "./domains/types/index.mjs";
|
|
7
7
|
export * as drafts from "./drafts/index.mjs";
|
|
8
8
|
export * from "./drafts/types/index.mjs";
|
|
9
|
+
export * as events from "./events/index.mjs";
|
|
10
|
+
export * from "./events/types/index.mjs";
|
|
9
11
|
export * as messages from "./messages/index.mjs";
|
|
10
12
|
export * from "./messages/types/index.mjs";
|
|
11
13
|
export * as metrics from "./metrics/index.mjs";
|
|
@@ -6,6 +6,8 @@ export * as domains from "./domains/index.mjs";
|
|
|
6
6
|
export * from "./domains/types/index.mjs";
|
|
7
7
|
export * as drafts from "./drafts/index.mjs";
|
|
8
8
|
export * from "./drafts/types/index.mjs";
|
|
9
|
+
export * as events from "./events/index.mjs";
|
|
10
|
+
export * from "./events/types/index.mjs";
|
|
9
11
|
export * as messages from "./messages/index.mjs";
|
|
10
12
|
export * from "./messages/types/index.mjs";
|
|
11
13
|
export * as metrics from "./metrics/index.mjs";
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
export * from "./EventId.mjs";
|
|
2
|
-
export * from "./Timestamp.mjs";
|
|
3
|
-
export * from "./Recipient.mjs";
|
|
4
|
-
export * from "./Send.mjs";
|
|
5
|
-
export * from "./Delivery.mjs";
|
|
6
|
-
export * from "./Bounce.mjs";
|
|
7
|
-
export * from "./Complaint.mjs";
|
|
8
|
-
export * from "./Reject.mjs";
|
|
9
|
-
export * from "./MessageReceivedPayload.mjs";
|
|
10
|
-
export * from "./MessageSentPayload.mjs";
|
|
11
|
-
export * from "./MessageDeliveredPayload.mjs";
|
|
12
|
-
export * from "./MessageBouncedPayload.mjs";
|
|
13
|
-
export * from "./MessageComplainedPayload.mjs";
|
|
14
|
-
export * from "./MessageRejectedPayload.mjs";
|
|
15
1
|
export * from "./SvixId.mjs";
|
|
16
2
|
export * from "./SvixTimestamp.mjs";
|
|
17
3
|
export * from "./SvixSignature.mjs";
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
export * from "./EventId.mjs";
|
|
2
|
-
export * from "./Timestamp.mjs";
|
|
3
|
-
export * from "./Recipient.mjs";
|
|
4
|
-
export * from "./Send.mjs";
|
|
5
|
-
export * from "./Delivery.mjs";
|
|
6
|
-
export * from "./Bounce.mjs";
|
|
7
|
-
export * from "./Complaint.mjs";
|
|
8
|
-
export * from "./Reject.mjs";
|
|
9
|
-
export * from "./MessageReceivedPayload.mjs";
|
|
10
|
-
export * from "./MessageSentPayload.mjs";
|
|
11
|
-
export * from "./MessageDeliveredPayload.mjs";
|
|
12
|
-
export * from "./MessageBouncedPayload.mjs";
|
|
13
|
-
export * from "./MessageComplainedPayload.mjs";
|
|
14
|
-
export * from "./MessageRejectedPayload.mjs";
|
|
15
1
|
export * from "./SvixId.mjs";
|
|
16
2
|
export * from "./SvixTimestamp.mjs";
|
|
17
3
|
export * from "./SvixSignature.mjs";
|
|
@@ -7,7 +7,7 @@ export declare namespace WebsocketsSocket {
|
|
|
7
7
|
interface Args {
|
|
8
8
|
socket: core.ReconnectingWebSocket;
|
|
9
9
|
}
|
|
10
|
-
type Response = AgentMail.Subscribed | AgentMail.
|
|
10
|
+
type Response = AgentMail.Subscribed | AgentMail.MessageReceivedEvent | AgentMail.MessageSentEvent | AgentMail.MessageDeliveredEvent | AgentMail.MessageBouncedEvent | AgentMail.MessageComplainedEvent | AgentMail.MessageRejectedEvent;
|
|
11
11
|
type EventHandlers = {
|
|
12
12
|
open?: () => void;
|
|
13
13
|
message?: (message: Response) => void;
|
|
@@ -12,6 +12,7 @@ import { DraftBcc } from "./DraftBcc.mjs";
|
|
|
12
12
|
import { DraftSubject } from "./DraftSubject.mjs";
|
|
13
13
|
import { DraftText } from "./DraftText.mjs";
|
|
14
14
|
import { DraftHtml } from "./DraftHtml.mjs";
|
|
15
|
+
import { DraftInReplyTo } from "./DraftInReplyTo.mjs";
|
|
15
16
|
import { DraftSendAt } from "./DraftSendAt.mjs";
|
|
16
17
|
export declare const CreateDraftRequest: core.serialization.ObjectSchema<serializers.CreateDraftRequest.Raw, AgentMail.CreateDraftRequest>;
|
|
17
18
|
export declare namespace CreateDraftRequest {
|
|
@@ -24,6 +25,7 @@ export declare namespace CreateDraftRequest {
|
|
|
24
25
|
subject?: DraftSubject.Raw | null;
|
|
25
26
|
text?: DraftText.Raw | null;
|
|
26
27
|
html?: DraftHtml.Raw | null;
|
|
28
|
+
in_reply_to?: DraftInReplyTo.Raw | null;
|
|
27
29
|
send_at?: DraftSendAt.Raw | null;
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -10,6 +10,7 @@ import { DraftBcc } from "./DraftBcc.mjs";
|
|
|
10
10
|
import { DraftSubject } from "./DraftSubject.mjs";
|
|
11
11
|
import { DraftText } from "./DraftText.mjs";
|
|
12
12
|
import { DraftHtml } from "./DraftHtml.mjs";
|
|
13
|
+
import { DraftInReplyTo } from "./DraftInReplyTo.mjs";
|
|
13
14
|
import { DraftSendAt } from "./DraftSendAt.mjs";
|
|
14
15
|
export const CreateDraftRequest = core.serialization.object({
|
|
15
16
|
labels: DraftLabels.optional(),
|
|
@@ -20,5 +21,6 @@ export const CreateDraftRequest = core.serialization.object({
|
|
|
20
21
|
subject: DraftSubject.optional(),
|
|
21
22
|
text: DraftText.optional(),
|
|
22
23
|
html: DraftHtml.optional(),
|
|
24
|
+
inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo.optional()),
|
|
23
25
|
sendAt: core.serialization.property("send_at", DraftSendAt.optional()),
|
|
24
26
|
});
|
|
@@ -17,6 +17,7 @@ import { DraftPreview } from "./DraftPreview.mjs";
|
|
|
17
17
|
import { DraftText } from "./DraftText.mjs";
|
|
18
18
|
import { DraftHtml } from "./DraftHtml.mjs";
|
|
19
19
|
import { DraftAttachments } from "./DraftAttachments.mjs";
|
|
20
|
+
import { DraftInReplyTo } from "./DraftInReplyTo.mjs";
|
|
20
21
|
import { DraftSendStatus } from "./DraftSendStatus.mjs";
|
|
21
22
|
import { DraftSendAt } from "./DraftSendAt.mjs";
|
|
22
23
|
import { DraftUpdatedAt } from "./DraftUpdatedAt.mjs";
|
|
@@ -36,7 +37,7 @@ export declare namespace Draft {
|
|
|
36
37
|
text?: DraftText.Raw | null;
|
|
37
38
|
html?: DraftHtml.Raw | null;
|
|
38
39
|
attachments?: DraftAttachments.Raw | null;
|
|
39
|
-
in_reply_to?:
|
|
40
|
+
in_reply_to?: DraftInReplyTo.Raw | null;
|
|
40
41
|
references?: string[] | null;
|
|
41
42
|
send_status?: DraftSendStatus.Raw | null;
|
|
42
43
|
send_at?: DraftSendAt.Raw | null;
|
|
@@ -15,6 +15,7 @@ import { DraftPreview } from "./DraftPreview.mjs";
|
|
|
15
15
|
import { DraftText } from "./DraftText.mjs";
|
|
16
16
|
import { DraftHtml } from "./DraftHtml.mjs";
|
|
17
17
|
import { DraftAttachments } from "./DraftAttachments.mjs";
|
|
18
|
+
import { DraftInReplyTo } from "./DraftInReplyTo.mjs";
|
|
18
19
|
import { DraftSendStatus } from "./DraftSendStatus.mjs";
|
|
19
20
|
import { DraftSendAt } from "./DraftSendAt.mjs";
|
|
20
21
|
import { DraftUpdatedAt } from "./DraftUpdatedAt.mjs";
|
|
@@ -32,7 +33,7 @@ export const Draft = core.serialization.object({
|
|
|
32
33
|
text: DraftText.optional(),
|
|
33
34
|
html: DraftHtml.optional(),
|
|
34
35
|
attachments: DraftAttachments.optional(),
|
|
35
|
-
inReplyTo: core.serialization.property("in_reply_to",
|
|
36
|
+
inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo.optional()),
|
|
36
37
|
references: core.serialization.list(core.serialization.string()).optional(),
|
|
37
38
|
sendStatus: core.serialization.property("send_status", DraftSendStatus.optional()),
|
|
38
39
|
sendAt: core.serialization.property("send_at", DraftSendAt.optional()),
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
export declare const DraftInReplyTo: core.serialization.Schema<serializers.DraftInReplyTo.Raw, AgentMail.DraftInReplyTo>;
|
|
8
|
+
export declare namespace DraftInReplyTo {
|
|
9
|
+
type Raw = string;
|
|
10
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./DraftPreview.mjs";
|
|
|
9
9
|
export * from "./DraftText.mjs";
|
|
10
10
|
export * from "./DraftHtml.mjs";
|
|
11
11
|
export * from "./DraftAttachments.mjs";
|
|
12
|
+
export * from "./DraftInReplyTo.mjs";
|
|
12
13
|
export * from "./DraftSendStatus.mjs";
|
|
13
14
|
export * from "./DraftSendAt.mjs";
|
|
14
15
|
export * from "./DraftUpdatedAt.mjs";
|
|
@@ -9,6 +9,7 @@ export * from "./DraftPreview.mjs";
|
|
|
9
9
|
export * from "./DraftText.mjs";
|
|
10
10
|
export * from "./DraftHtml.mjs";
|
|
11
11
|
export * from "./DraftAttachments.mjs";
|
|
12
|
+
export * from "./DraftInReplyTo.mjs";
|
|
12
13
|
export * from "./DraftSendStatus.mjs";
|
|
13
14
|
export * from "./DraftSendAt.mjs";
|
|
14
15
|
export * from "./DraftUpdatedAt.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Bounce.d.mts
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as serializers from "
|
|
5
|
-
import * as AgentMail from "
|
|
6
|
-
import * as core from "
|
|
7
|
-
import { InboxId } from "
|
|
8
|
-
import { MessageId } from "
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
8
|
+
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
9
9
|
import { Timestamp } from "./Timestamp.mjs";
|
|
10
10
|
import { Recipient } from "./Recipient.mjs";
|
|
11
|
-
export declare const Bounce: core.serialization.ObjectSchema<serializers.
|
|
11
|
+
export declare const Bounce: core.serialization.ObjectSchema<serializers.Bounce.Raw, AgentMail.Bounce>;
|
|
12
12
|
export declare namespace Bounce {
|
|
13
13
|
interface Raw {
|
|
14
14
|
inbox_id: InboxId.Raw;
|
package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Bounce.mjs
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "
|
|
5
|
-
import { InboxId } from "
|
|
6
|
-
import { MessageId } from "
|
|
4
|
+
import * as core from "../../../../core/index.mjs";
|
|
5
|
+
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
6
|
+
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
7
7
|
import { Timestamp } from "./Timestamp.mjs";
|
|
8
8
|
import { Recipient } from "./Recipient.mjs";
|
|
9
9
|
export const Bounce = core.serialization.object({
|
package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Complaint.d.mts
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as serializers from "
|
|
5
|
-
import * as AgentMail from "
|
|
6
|
-
import * as core from "
|
|
7
|
-
import { InboxId } from "
|
|
8
|
-
import { MessageId } from "
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
8
|
+
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
9
9
|
import { Timestamp } from "./Timestamp.mjs";
|
|
10
|
-
export declare const Complaint: core.serialization.ObjectSchema<serializers.
|
|
10
|
+
export declare const Complaint: core.serialization.ObjectSchema<serializers.Complaint.Raw, AgentMail.Complaint>;
|
|
11
11
|
export declare namespace Complaint {
|
|
12
12
|
interface Raw {
|
|
13
13
|
inbox_id: InboxId.Raw;
|
package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Complaint.mjs
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "
|
|
5
|
-
import { InboxId } from "
|
|
6
|
-
import { MessageId } from "
|
|
4
|
+
import * as core from "../../../../core/index.mjs";
|
|
5
|
+
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
6
|
+
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
7
7
|
import { Timestamp } from "./Timestamp.mjs";
|
|
8
8
|
export const Complaint = core.serialization.object({
|
|
9
9
|
inboxId: core.serialization.property("inbox_id", InboxId),
|
package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Delivery.d.mts
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as serializers from "
|
|
5
|
-
import * as AgentMail from "
|
|
6
|
-
import * as core from "
|
|
7
|
-
import { InboxId } from "
|
|
8
|
-
import { MessageId } from "
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
8
|
+
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
9
9
|
import { Timestamp } from "./Timestamp.mjs";
|
|
10
|
-
export declare const Delivery: core.serialization.ObjectSchema<serializers.
|
|
10
|
+
export declare const Delivery: core.serialization.ObjectSchema<serializers.Delivery.Raw, AgentMail.Delivery>;
|
|
11
11
|
export declare namespace Delivery {
|
|
12
12
|
interface Raw {
|
|
13
13
|
inbox_id: InboxId.Raw;
|
package/dist/esm/serialization/resources/{webhooks/resources/events → events}/types/Delivery.mjs
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as core from "
|
|
5
|
-
import { InboxId } from "
|
|
6
|
-
import { MessageId } from "
|
|
4
|
+
import * as core from "../../../../core/index.mjs";
|
|
5
|
+
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
6
|
+
import { MessageId } from "../../messages/types/MessageId.mjs";
|
|
7
7
|
import { Timestamp } from "./Timestamp.mjs";
|
|
8
8
|
export const Delivery = core.serialization.object({
|
|
9
9
|
inboxId: core.serialization.property("inbox_id", InboxId),
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
import { EventId } from "./EventId.mjs";
|
|
8
|
+
import { Bounce } from "./Bounce.mjs";
|
|
9
|
+
export declare const MessageBouncedEvent: core.serialization.ObjectSchema<serializers.MessageBouncedEvent.Raw, AgentMail.MessageBouncedEvent>;
|
|
10
|
+
export declare namespace MessageBouncedEvent {
|
|
11
|
+
interface Raw {
|
|
12
|
+
type: "event";
|
|
13
|
+
event_type: "message.bounced";
|
|
14
|
+
event_id: EventId.Raw;
|
|
15
|
+
bounce: Bounce.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core/index.mjs";
|
|
5
|
+
import { EventId } from "./EventId.mjs";
|
|
6
|
+
import { Bounce } from "./Bounce.mjs";
|
|
7
|
+
export const MessageBouncedEvent = core.serialization.object({
|
|
8
|
+
type: core.serialization.stringLiteral("event"),
|
|
9
|
+
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.bounced")),
|
|
10
|
+
eventId: core.serialization.property("event_id", EventId),
|
|
11
|
+
bounce: Bounce,
|
|
12
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
import { EventId } from "./EventId.mjs";
|
|
8
|
+
import { Complaint } from "./Complaint.mjs";
|
|
9
|
+
export declare const MessageComplainedEvent: core.serialization.ObjectSchema<serializers.MessageComplainedEvent.Raw, AgentMail.MessageComplainedEvent>;
|
|
10
|
+
export declare namespace MessageComplainedEvent {
|
|
11
|
+
interface Raw {
|
|
12
|
+
type: "event";
|
|
13
|
+
event_type: "message.complained";
|
|
14
|
+
event_id: EventId.Raw;
|
|
15
|
+
complaint: Complaint.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core/index.mjs";
|
|
5
|
+
import { EventId } from "./EventId.mjs";
|
|
6
|
+
import { Complaint } from "./Complaint.mjs";
|
|
7
|
+
export const MessageComplainedEvent = core.serialization.object({
|
|
8
|
+
type: core.serialization.stringLiteral("event"),
|
|
9
|
+
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.complained")),
|
|
10
|
+
eventId: core.serialization.property("event_id", EventId),
|
|
11
|
+
complaint: Complaint,
|
|
12
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index.mjs";
|
|
5
|
+
import * as AgentMail from "../../../../api/index.mjs";
|
|
6
|
+
import * as core from "../../../../core/index.mjs";
|
|
7
|
+
import { EventId } from "./EventId.mjs";
|
|
8
|
+
import { Delivery } from "./Delivery.mjs";
|
|
9
|
+
export declare const MessageDeliveredEvent: core.serialization.ObjectSchema<serializers.MessageDeliveredEvent.Raw, AgentMail.MessageDeliveredEvent>;
|
|
10
|
+
export declare namespace MessageDeliveredEvent {
|
|
11
|
+
interface Raw {
|
|
12
|
+
type: "event";
|
|
13
|
+
event_type: "message.delivered";
|
|
14
|
+
event_id: EventId.Raw;
|
|
15
|
+
delivery: Delivery.Raw;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core/index.mjs";
|
|
5
|
+
import { EventId } from "./EventId.mjs";
|
|
6
|
+
import { Delivery } from "./Delivery.mjs";
|
|
7
|
+
export const MessageDeliveredEvent = core.serialization.object({
|
|
8
|
+
type: core.serialization.stringLiteral("event"),
|
|
9
|
+
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.delivered")),
|
|
10
|
+
eventId: core.serialization.property("event_id", EventId),
|
|
11
|
+
delivery: Delivery,
|
|
12
|
+
});
|
|
@@ -6,8 +6,8 @@ import * as AgentMail from "../../../../api/index.mjs";
|
|
|
6
6
|
import * as core from "../../../../core/index.mjs";
|
|
7
7
|
import { EventId } from "./EventId.mjs";
|
|
8
8
|
import { Message } from "../../messages/types/Message.mjs";
|
|
9
|
-
export declare const
|
|
10
|
-
export declare namespace
|
|
9
|
+
export declare const MessageReceivedEvent: core.serialization.ObjectSchema<serializers.MessageReceivedEvent.Raw, AgentMail.MessageReceivedEvent>;
|
|
10
|
+
export declare namespace MessageReceivedEvent {
|
|
11
11
|
interface Raw {
|
|
12
12
|
type: "event";
|
|
13
13
|
event_type: "message.received";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as core from "../../../../core/index.mjs";
|
|
5
5
|
import { EventId } from "./EventId.mjs";
|
|
6
6
|
import { Message } from "../../messages/types/Message.mjs";
|
|
7
|
-
export const
|
|
7
|
+
export const MessageReceivedEvent = core.serialization.object({
|
|
8
8
|
type: core.serialization.stringLiteral("event"),
|
|
9
9
|
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.received")),
|
|
10
10
|
eventId: core.serialization.property("event_id", EventId),
|