@primitivedotdev/sdk 1.26.1 → 1.29.0

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.
@@ -1,5 +1,5 @@
1
- import { L as WebhookEvent, f as EmailReceivedEvent } from "./types-DcXtFARL.js";
2
- import { u as WebhookValidationError, y as ReceivedEmail } from "./errors-CCJX3I_T.js";
1
+ import { L as WebhookEvent, f as EmailReceivedEvent } from "./types-Rn4qu5Q7.js";
2
+ import { u as WebhookValidationError, y as ReceivedEmail } from "./errors-Li0PXZXa.js";
3
3
 
4
4
  //#region src/validation.d.ts
5
5
  interface ValidationSuccess<T> {
@@ -385,13 +385,38 @@ declare const emailReceivedEventJsonSchema: {
385
385
  };
386
386
  readonly content: {
387
387
  readonly type: "object";
388
+ readonly if: {
389
+ readonly properties: {
390
+ readonly raw: {
391
+ readonly type: "null";
392
+ };
393
+ };
394
+ };
395
+ readonly then: {
396
+ readonly properties: {
397
+ readonly download: {
398
+ readonly type: "null";
399
+ };
400
+ };
401
+ };
402
+ readonly else: {
403
+ readonly properties: {
404
+ readonly download: {
405
+ readonly type: "object";
406
+ };
407
+ };
408
+ };
388
409
  readonly properties: {
389
410
  readonly raw: {
390
- readonly $ref: "#/definitions/RawContent";
391
- readonly description: "Raw email in RFC 5322 format. May be inline (base64) or download-only depending on size.";
411
+ readonly anyOf: [{
412
+ readonly $ref: "#/definitions/RawContent";
413
+ }, {
414
+ readonly type: "null";
415
+ }];
416
+ readonly description: "Raw MIME is null for address-scoped listeners. Use email.parsed for message content.";
392
417
  };
393
418
  readonly download: {
394
- readonly type: "object";
419
+ readonly type: ["object", "null"];
395
420
  readonly properties: {
396
421
  readonly url: {
397
422
  readonly type: "string";
@@ -406,7 +431,7 @@ declare const emailReceivedEventJsonSchema: {
406
431
  };
407
432
  };
408
433
  readonly required: ["url", "expires_at"];
409
- readonly description: "Download information for the raw email. Always present, even if raw content is inline.";
434
+ readonly description: "Raw download information. Null for address-scoped listeners, which do not receive bearer download links.";
410
435
  };
411
436
  };
412
437
  readonly required: ["raw", "download"];
@@ -1395,42 +1420,10 @@ declare const emailReceivedEventJsonSchema: {
1395
1420
  */
1396
1421
  declare const WEBHOOK_VERSION = "2025-12-14";
1397
1422
  //#endregion
1398
- //#region src/webhook/index.d.ts
1399
- /**
1400
- * Parse a webhook payload, returning typed events for known types
1401
- * and UnknownEvent for future event types.
1402
- *
1403
- * This provides forward-compatibility: when Primitive adds new event types,
1404
- * your code won't break - you'll receive an UnknownEvent that you can
1405
- * handle or ignore.
1406
- *
1407
- * Known event types are validated against the canonical schema. Unknown
1408
- * event types are returned as-is for forward compatibility.
1409
- *
1410
- * For most use cases, prefer `handleWebhook()` which also verifies the
1411
- * signature before parsing the payload.
1412
- *
1413
- * @param input - The parsed JSON payload
1414
- * @returns Typed event for known types, UnknownEvent for unknown types
1415
- * @throws WebhookPayloadError if the input is not a valid webhook structure
1416
- * @throws WebhookValidationError if a known event fails schema validation
1417
- *
1418
- * @example
1419
- * ```typescript
1420
- * import { parseWebhookEvent } from '@primitivedotdev/sdk';
1421
- *
1422
- * const event = parseWebhookEvent(JSON.parse(rawBody));
1423
- *
1424
- * if (event.event === "email.received") {
1425
- * // TypeScript knows this is EmailReceivedEvent
1426
- * console.log(event.email.headers.subject);
1427
- * } else {
1428
- * // Handle or log unknown event types
1429
- * console.log("Unknown event:", event.event);
1430
- * }
1431
- * ```
1432
- */
1423
+ //#region src/webhook/parse-event.d.ts
1433
1424
  declare function parseWebhookEvent(input: unknown, eventType?: string | null): WebhookEvent;
1425
+ //#endregion
1426
+ //#region src/webhook/index.d.ts
1434
1427
  /**
1435
1428
  * Request headers in any common format.
1436
1429
  *
@@ -1556,7 +1549,7 @@ declare function confirmedHeaders(): {
1556
1549
  * ```typescript
1557
1550
  * if (isDownloadExpired(event)) {
1558
1551
  * console.log("Download URL has expired, cannot fetch raw email");
1559
- * } else {
1552
+ * } else if (event.email.content.download) {
1560
1553
  * const response = await fetch(event.email.content.download.url);
1561
1554
  * }
1562
1555
  * ```
@@ -1585,13 +1578,13 @@ declare function getDownloadTimeRemaining(event: EmailReceivedEvent, now?: numbe
1585
1578
  * Use this to check before calling `decodeRawEmail()` to avoid try/catch.
1586
1579
  *
1587
1580
  * @param event - The webhook event
1588
- * @returns true if raw content is included inline, false if download required
1581
+ * @returns true if raw content is included inline, false if download is required or raw content is unavailable
1589
1582
  *
1590
1583
  * @example
1591
1584
  * ```typescript
1592
1585
  * if (isRawIncluded(event)) {
1593
1586
  * const rawEmail = decodeRawEmail(event);
1594
- * } else {
1587
+ * } else if (event.email.content.download) {
1595
1588
  * const response = await fetch(event.email.content.download.url);
1596
1589
  * }
1597
1590
  * ```
@@ -1610,7 +1603,7 @@ interface DecodeRawEmailOptions {
1610
1603
  /**
1611
1604
  * Decode the raw email content from an EmailReceivedEvent.
1612
1605
  *
1613
- * Throws if the raw content is not included inline (i.e., must be downloaded).
1606
+ * Throws if raw content requires downloading or is unavailable for this credential.
1614
1607
  * By default, verifies the SHA-256 hash matches after decoding.
1615
1608
  *
1616
1609
  * NOTE: This function assumes a well-formed event from `handleWebhook()`.
@@ -1664,4 +1657,4 @@ declare function decodeRawEmail(event: EmailReceivedEvent, options?: DecodeRawEm
1664
1657
  */
1665
1658
  declare function verifyRawEmailDownload(downloaded: Buffer | ArrayBuffer | Uint8Array, event: EmailReceivedEvent): Buffer;
1666
1659
  //#endregion
1667
- export { SignResult as A, validateEmailReceivedEvent as B, StandardWebhooksVerifyOptions as C, LEGACY_SIGNATURE_HEADER as D, LEGACY_CONFIRMED_HEADER as E, VerifyDownloadTokenOptions as F, VerifyDownloadTokenResult as I, generateDownloadToken as L, signWebhookPayload as M, verifyWebhookSignature as N, PRIMITIVE_CONFIRMED_HEADER as O, GenerateDownloadTokenOptions as P, verifyDownloadToken as R, StandardWebhooksSignResult as S, verifyStandardWebhooksSignature as T, WEBHOOK_VERSION as _, WebhookHeaders as a, STANDARD_WEBHOOK_SIGNATURE_HEADER as b, getDownloadTimeRemaining as c, handleWebhookEvent as d, isDownloadExpired as f, verifyRawEmailDownload as g, receive as h, WEBHOOK_EVENT_HEADER as i, VerifyOptions as j, PRIMITIVE_SIGNATURE_HEADER as k, getEventHeader as l, parseWebhookEvent as m, HandleWebhookOptions as n, confirmedHeaders as o, isRawIncluded as p, ReceiveRequestOptions as r, decodeRawEmail as s, DecodeRawEmailOptions as t, handleWebhook as u, emailReceivedEventJsonSchema as v, signStandardWebhooksPayload as w, STANDARD_WEBHOOK_TIMESTAMP_HEADER as x, STANDARD_WEBHOOK_ID_HEADER as y, safeValidateEmailReceivedEvent as z };
1660
+ export { SignResult as A, validateEmailReceivedEvent as B, StandardWebhooksVerifyOptions as C, LEGACY_SIGNATURE_HEADER as D, LEGACY_CONFIRMED_HEADER as E, VerifyDownloadTokenOptions as F, VerifyDownloadTokenResult as I, generateDownloadToken as L, signWebhookPayload as M, verifyWebhookSignature as N, PRIMITIVE_CONFIRMED_HEADER as O, GenerateDownloadTokenOptions as P, verifyDownloadToken as R, StandardWebhooksSignResult as S, verifyStandardWebhooksSignature as T, WEBHOOK_VERSION as _, WebhookHeaders as a, STANDARD_WEBHOOK_SIGNATURE_HEADER as b, getDownloadTimeRemaining as c, handleWebhookEvent as d, isDownloadExpired as f, parseWebhookEvent as g, verifyRawEmailDownload as h, WEBHOOK_EVENT_HEADER as i, VerifyOptions as j, PRIMITIVE_SIGNATURE_HEADER as k, getEventHeader as l, receive as m, HandleWebhookOptions as n, confirmedHeaders as o, isRawIncluded as p, ReceiveRequestOptions as r, decodeRawEmail as s, DecodeRawEmailOptions as t, handleWebhook as u, emailReceivedEventJsonSchema as v, signStandardWebhooksPayload as w, STANDARD_WEBHOOK_TIMESTAMP_HEADER as x, STANDARD_WEBHOOK_ID_HEADER as y, safeValidateEmailReceivedEvent as z };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { A as WaitForNextOptions, Bv as VerifyAgentClaimInput, Cr as AgentAccountResult, Dr as AgentClaimStartResult, E as SendInput, Er as AgentClaimResult, M as createAgent, N as createPrimitiveClient, O as SendResult, Oi as CreateAgentClaimLinkInput, Si as CreateAgentAccountInput, Tr as AgentClaimLinkResult, V as PrimitiveApiError, _ as MemorySearchResponse, a as CreatedAgent, b as PrimitiveClientOptions, c as InboxResource, cp as PlanLimits, d as MemoryDeleteInput, f as MemoryGetInput, g as MemorySearchInput, h as MemoryRecordWithValue, hr as Account, i as CreateAgentOptions, j as client, k as SendThreadInput, l as InboxStreamOptions, m as MemoryRecord, mg as StartAgentClaimInput, o as ForwardInput, p as MemoryJsonValue, r as AttachmentPartDownload, s as InboundEmail, t as AccountResource, u as MemoriesResource, v as MemorySetInput, w as SendAttachment, wr as AgentAccountUpgradeHint, x as ReplyInput, y as PrimitiveClient } from "./index-B1a5L2zU.js";
2
- import { $ as isPaymentFailedEvent, A as RawContentInline, B as InteractionEvent, C as ParsedData, D as ParsedStatus, E as ParsedError, F as ValidateEmailAuthResult, G as PaymentFailedEvent, H as InteractionX402Suffix, I as WebhookAttachment, J as WebhookEventType, K as PaymentSettledEvent, L as WebhookEvent, M as SpfResult, N as TlsReportAnalysis, O as RawContent, P as UnknownEvent, Q as isPaymentEvent, R as EMAIL_EVENT_TYPES, S as KnownWebhookEvent, T as ParsedDataFailed, U as PAYMENT_EVENT_TYPES, V as InteractionX402Event, W as PaymentEvent, X as isInteractionX402Event, Y as isEmailReceivedEvent, Z as isKnownWebhookEventType, _ as ForwardResultAttachmentAnalyzed, a as DkimSignature, b as ForwardVerdict, c as DmarcResult, d as EmailAuth, et as isPaymentSettledEvent, f as EmailReceivedEvent, g as ForwardResult, h as ForwardOriginalSender, i as DkimResult, j as RoutingDecision, k as RawContentDownloadOnly, l as EmailAddress, m as ForwardAnalysis, n as AuthVerdict, o as DmarcPolicy, p as EventType, q as WEBHOOK_EVENT_TYPES, r as BounceAnalysis, s as DmarcReportAnalysis, t as AuthConfidence, u as EmailAnalysis, v as ForwardResultAttachmentSkipped, w as ParsedDataComplete, x as ForwardVerification, y as ForwardResultInline, z as INTERACTION_EVENT_TYPES } from "./types-DcXtFARL.js";
3
- import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "./errors-CCJX3I_T.js";
4
- import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as verifyRawEmailDownload, h as receive, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as parseWebhookEvent, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "./index-JpXUV16f.js";
1
+ import { A as WaitForNextOptions, Ar as Account, Br as AgentClaimLinkResult, E as SendInput, Hr as AgentClaimStartResult, M as createAgent, N as createPrimitiveClient, O as SendResult, Ri as CreateAgentAccountInput, Rr as AgentAccountResult, Ug as StartAgentClaimInput, Vr as AgentClaimResult, Wi as CreateAgentClaimLinkInput, _ as MemorySearchResponse, a as CreatedAgent, b as PrimitiveClientOptions, c as InboxResource, d as MemoryDeleteInput, et as PrimitiveApiError, f as MemoryGetInput, g as MemorySearchInput, h as MemoryRecordWithValue, hy as VerifyAgentClaimInput, i as CreateAgentOptions, j as client, jp as PlanLimits, k as SendThreadInput, l as InboxStreamOptions, m as MemoryRecord, o as ForwardInput, p as MemoryJsonValue, r as AttachmentPartDownload, s as InboundEmail, t as AccountResource, u as MemoriesResource, v as MemorySetInput, w as SendAttachment, x as ReplyInput, y as PrimitiveClient, zr as AgentAccountUpgradeHint } from "./index-Bjc-cR2b.js";
2
+ import { $ as isPaymentFailedEvent, A as RawContentInline, B as InteractionEvent, C as ParsedData, D as ParsedStatus, E as ParsedError, F as ValidateEmailAuthResult, G as PaymentFailedEvent, H as InteractionX402Suffix, I as WebhookAttachment, J as WebhookEventType, K as PaymentSettledEvent, L as WebhookEvent, M as SpfResult, N as TlsReportAnalysis, O as RawContent, P as UnknownEvent, Q as isPaymentEvent, R as EMAIL_EVENT_TYPES, S as KnownWebhookEvent, T as ParsedDataFailed, U as PAYMENT_EVENT_TYPES, V as InteractionX402Event, W as PaymentEvent, X as isInteractionX402Event, Y as isEmailReceivedEvent, Z as isKnownWebhookEventType, _ as ForwardResultAttachmentAnalyzed, a as DkimSignature, b as ForwardVerdict, c as DmarcResult, d as EmailAuth, et as isPaymentSettledEvent, f as EmailReceivedEvent, g as ForwardResult, h as ForwardOriginalSender, i as DkimResult, j as RoutingDecision, k as RawContentDownloadOnly, l as EmailAddress, m as ForwardAnalysis, n as AuthVerdict, o as DmarcPolicy, p as EventType, q as WEBHOOK_EVENT_TYPES, r as BounceAnalysis, s as DmarcReportAnalysis, t as AuthConfidence, u as EmailAnalysis, v as ForwardResultAttachmentSkipped, w as ParsedDataComplete, x as ForwardVerification, y as ForwardResultInline, z as INTERACTION_EVENT_TYPES } from "./types-Rn4qu5Q7.js";
3
+ import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "./errors-Li0PXZXa.js";
4
+ import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as parseWebhookEvent, h as verifyRawEmailDownload, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as receive, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "./index-BxPkB7GU.js";
5
5
  import { a as NonceBinding, c as TokenDomain, f as X402PaymentPayload, l as TransferAuthorization, m as X402Signer, o as PayoutRegistrationMessageInput, x as deriveEip3009Nonce, y as buildPayoutRegistrationMessage } from "./sign-m3ZStnNw.js";
6
6
  import { X402Challenge, X402ChargeInput, X402Client, X402ClientOptions, X402DeclinedPayment, X402Error, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, createX402Client, parseEmailChallengeFromPart } from "./x402/index.js";
7
7
 
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, m as PrimitiveApiError, o as client, r as InboxResource, s as createAgent, t as AccountResource } from "./api-BEv_YML6.js";
2
- import { C as normalizeReceivedEmail, S as formatAddress, _ as ForwardVerdict, a as VERIFICATION_ERRORS, b as buildForwardSubject, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, g as EventType, h as DmarcResult, i as RawEmailDecodeError, l as isTrustedSender, m as DmarcPolicy, n as PrimitiveWebhookError, o as WebhookPayloadError, p as DkimResult, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as validateEmailAuth, v as ParsedStatus, w as parseHeaderAddress, x as buildReplySubject, y as SpfResult } from "./errors-BVnAu5jX.js";
3
- import { A as isEmailReceivedEvent, C as PRIMITIVE_SIGNATURE_HEADER, D as INTERACTION_EVENT_TYPES, E as EMAIL_EVENT_TYPES, F as isPaymentSettledEvent, I as generateDownloadToken, L as verifyDownloadToken, M as isKnownWebhookEventType, N as isPaymentEvent, O as PAYMENT_EVENT_TYPES, P as isPaymentFailedEvent, R as safeValidateEmailReceivedEvent, S as PRIMITIVE_CONFIRMED_HEADER, T as verifyWebhookSignature, _ as STANDARD_WEBHOOK_TIMESTAMP_HEADER, a as getEventHeader, b as LEGACY_CONFIRMED_HEADER, c as isDownloadExpired, d as receive, f as verifyRawEmailDownload, g as STANDARD_WEBHOOK_SIGNATURE_HEADER, h as STANDARD_WEBHOOK_ID_HEADER, i as getDownloadTimeRemaining, j as isInteractionX402Event, k as WEBHOOK_EVENT_TYPES, l as isRawIncluded, m as emailReceivedEventJsonSchema, n as confirmedHeaders, o as handleWebhook, p as WEBHOOK_VERSION, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as parseWebhookEvent, v as signStandardWebhooksPayload, w as signWebhookPayload, x as LEGACY_SIGNATURE_HEADER, y as verifyStandardWebhooksSignature, z as validateEmailReceivedEvent } from "./webhook-CLVRgb-L.js";
1
+ import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, o as client, r as InboxResource, s as createAgent, t as AccountResource, v as PrimitiveApiError } from "./api-27BvnkVA.js";
2
+ import { A as PAYLOAD_ERRORS, C as isInteractionX402Event, D as isPaymentSettledEvent, E as isPaymentFailedEvent, F as WebhookPayloadError, I as WebhookValidationError, L as WebhookVerificationError, M as RAW_EMAIL_ERRORS, N as RawEmailDecodeError, O as safeValidateEmailReceivedEvent, P as VERIFICATION_ERRORS, S as isEmailReceivedEvent, T as isPaymentEvent, _ as parseWebhookEvent, a as DkimResult, b as PAYMENT_EVENT_TYPES, c as EventType, d as SpfResult, f as buildForwardSubject, g as parseHeaderAddress, h as normalizeReceivedEmail, i as AuthVerdict, j as PrimitiveWebhookError, k as validateEmailReceivedEvent, l as ForwardVerdict, m as formatAddress, n as validateEmailAuth, o as DmarcPolicy, p as buildReplySubject, r as AuthConfidence, s as DmarcResult, t as isTrustedSender, u as ParsedStatus, v as EMAIL_EVENT_TYPES, w as isKnownWebhookEventType, x as WEBHOOK_EVENT_TYPES, y as INTERACTION_EVENT_TYPES } from "./trust-m3dNPmWL.js";
3
+ import { C as signWebhookPayload, E as verifyDownloadToken, S as PRIMITIVE_SIGNATURE_HEADER, T as generateDownloadToken, _ as signStandardWebhooksPayload, a as getEventHeader, b as LEGACY_SIGNATURE_HEADER, c as isDownloadExpired, d as verifyRawEmailDownload, f as WEBHOOK_VERSION, g as STANDARD_WEBHOOK_TIMESTAMP_HEADER, h as STANDARD_WEBHOOK_SIGNATURE_HEADER, i as getDownloadTimeRemaining, l as isRawIncluded, m as STANDARD_WEBHOOK_ID_HEADER, n as confirmedHeaders, o as handleWebhook, p as emailReceivedEventJsonSchema, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as receive, v as verifyStandardWebhooksSignature, w as verifyWebhookSignature, x as PRIMITIVE_CONFIRMED_HEADER, y as LEGACY_CONFIRMED_HEADER } from "./webhook-DArt1Ipq.js";
4
4
  import { X402Client, X402Error, buildPayoutRegistrationMessage, createX402Client, deriveEip3009Nonce, parseEmailChallengeFromPart } from "./x402/index.js";
5
5
  //#region src/index.ts
6
6
  const primitive = {
@@ -1,2 +1,2 @@
1
- import { n as openapiDocument, t as operationManifest } from "../operations.generated-DVHnicf5.js";
1
+ import { n as openapiDocument, t as operationManifest } from "../operations.generated-Dra-xGtu.js";
2
2
  export { openapiDocument, operationManifest };