@primitivedotdev/sdk 0.27.1 → 0.28.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,4 +1,4 @@
1
- import { m as ReceivedEmail } from "./errors-T_0JE528.js";
1
+ import { m as ReceivedEmail } from "./errors-CO-rv_nK.js";
2
2
 
3
3
  //#region ../packages/api-core/src/api/core/auth.gen.d.ts
4
4
  type AuthToken = string | undefined;
@@ -482,6 +482,76 @@ type CliLoginPollResult = {
482
482
  org_id: string;
483
483
  org_name: string | null;
484
484
  };
485
+ type StartCliSignupInput = {
486
+ email: string;
487
+ signup_code: string;
488
+ /**
489
+ * Must be true to confirm acceptance of Primitive's Terms of Service and Privacy Policy
490
+ */
491
+ terms_accepted: boolean;
492
+ /**
493
+ * Human-readable device name used for the created CLI API key
494
+ */
495
+ device_name?: string;
496
+ /**
497
+ * Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer
498
+ */
499
+ metadata?: {
500
+ [key: string]: unknown;
501
+ };
502
+ };
503
+ type CliSignupStartResult = {
504
+ /**
505
+ * Opaque token used to verify or resend the pending CLI signup
506
+ */
507
+ signup_token: string;
508
+ email: string;
509
+ /**
510
+ * Seconds until the pending signup expires
511
+ */
512
+ expires_in: number;
513
+ /**
514
+ * Minimum seconds before requesting another verification email
515
+ */
516
+ resend_after: number;
517
+ /**
518
+ * Number of digits in the emailed verification code
519
+ */
520
+ verification_code_length: number;
521
+ };
522
+ type ResendCliSignupVerificationInput = {
523
+ signup_token: string;
524
+ };
525
+ type CliSignupResendResult = {
526
+ email: string;
527
+ /**
528
+ * Seconds until the pending signup expires
529
+ */
530
+ expires_in: number;
531
+ /**
532
+ * Minimum seconds before requesting another verification email
533
+ */
534
+ resend_after: number;
535
+ /**
536
+ * Number of digits in the emailed verification code
537
+ */
538
+ verification_code_length: number;
539
+ };
540
+ type VerifyCliSignupInput = {
541
+ signup_token: string;
542
+ verification_code: string;
543
+ password: string;
544
+ };
545
+ type CliSignupVerifyResult = {
546
+ /**
547
+ * Newly-created API key for CLI authentication
548
+ */
549
+ api_key: string;
550
+ key_id: string;
551
+ key_prefix: string;
552
+ org_id: string;
553
+ org_name: string | null;
554
+ };
485
555
  type CliLogoutInput = {
486
556
  /**
487
557
  * Optional key id guard; when provided it must match the authenticated API key
@@ -1641,9 +1711,8 @@ type CreateFunctionInput = {
1641
1711
  code: string;
1642
1712
  /**
1643
1713
  * Optional source map for the bundle. Up to 5 MiB UTF-8.
1644
- * Stored only on the runtime side (not in Primitive's
1645
- * database) and used to symbolicate stack traces in the
1646
- * function's logs.
1714
+ * Stored with the deployment attempt and sent to the runtime
1715
+ * to symbolicate stack traces in the function's logs.
1647
1716
  *
1648
1717
  */
1649
1718
  sourceMap?: string;
@@ -1888,6 +1957,84 @@ type PollCliLoginResponses = {
1888
1957
  };
1889
1958
  };
1890
1959
  type PollCliLoginResponse = PollCliLoginResponses[keyof PollCliLoginResponses];
1960
+ type StartCliSignupData = {
1961
+ body: StartCliSignupInput;
1962
+ path?: never;
1963
+ query?: never;
1964
+ url: '/cli/signup/start';
1965
+ };
1966
+ type StartCliSignupErrors = {
1967
+ /**
1968
+ * Invalid request parameters
1969
+ */
1970
+ 400: ErrorResponse;
1971
+ /**
1972
+ * Rate limit exceeded
1973
+ */
1974
+ 429: ErrorResponse;
1975
+ };
1976
+ type StartCliSignupError = StartCliSignupErrors[keyof StartCliSignupErrors];
1977
+ type StartCliSignupResponses = {
1978
+ /**
1979
+ * CLI signup session created and verification email sent
1980
+ */
1981
+ 201: SuccessEnvelope & {
1982
+ data?: CliSignupStartResult;
1983
+ };
1984
+ };
1985
+ type StartCliSignupResponse = StartCliSignupResponses[keyof StartCliSignupResponses];
1986
+ type ResendCliSignupVerificationData = {
1987
+ body: ResendCliSignupVerificationInput;
1988
+ path?: never;
1989
+ query?: never;
1990
+ url: '/cli/signup/resend';
1991
+ };
1992
+ type ResendCliSignupVerificationErrors = {
1993
+ /**
1994
+ * Invalid token or expired token
1995
+ */
1996
+ 400: ErrorResponse;
1997
+ /**
1998
+ * Global rate limit exceeded or resend requested too quickly
1999
+ */
2000
+ 429: ErrorResponse;
2001
+ };
2002
+ type ResendCliSignupVerificationError = ResendCliSignupVerificationErrors[keyof ResendCliSignupVerificationErrors];
2003
+ type ResendCliSignupVerificationResponses = {
2004
+ /**
2005
+ * Verification email resent
2006
+ */
2007
+ 200: SuccessEnvelope & {
2008
+ data?: CliSignupResendResult;
2009
+ };
2010
+ };
2011
+ type ResendCliSignupVerificationResponse = ResendCliSignupVerificationResponses[keyof ResendCliSignupVerificationResponses];
2012
+ type VerifyCliSignupData = {
2013
+ body: VerifyCliSignupInput;
2014
+ path?: never;
2015
+ query?: never;
2016
+ url: '/cli/signup/verify';
2017
+ };
2018
+ type VerifyCliSignupErrors = {
2019
+ /**
2020
+ * Invalid request, invalid verification code, expired token, invalid signup code, rejected password, or account creation failure
2021
+ */
2022
+ 400: ErrorResponse;
2023
+ /**
2024
+ * Rate limit exceeded
2025
+ */
2026
+ 429: ErrorResponse;
2027
+ };
2028
+ type VerifyCliSignupError = VerifyCliSignupErrors[keyof VerifyCliSignupErrors];
2029
+ type VerifyCliSignupResponses = {
2030
+ /**
2031
+ * CLI signup verified and API key created
2032
+ */
2033
+ 200: SuccessEnvelope & {
2034
+ data?: CliSignupVerifyResult;
2035
+ };
2036
+ };
2037
+ type VerifyCliSignupResponse = VerifyCliSignupResponses[keyof VerifyCliSignupResponses];
1891
2038
  type CliLogoutData = {
1892
2039
  body?: CliLogoutInput;
1893
2040
  path?: never;
@@ -3282,7 +3429,7 @@ type CreateFunctionData = {
3282
3429
  };
3283
3430
  type CreateFunctionErrors = {
3284
3431
  /**
3285
- * Invalid request parameters
3432
+ * Invalid request parameters or customer-correctable deploy rejection
3286
3433
  */
3287
3434
  400: ErrorResponse;
3288
3435
  /**
@@ -3294,9 +3441,17 @@ type CreateFunctionErrors = {
3294
3441
  */
3295
3442
  409: ErrorResponse;
3296
3443
  /**
3297
- * Primitive could not complete the downstream SMTP request
3444
+ * Function deploy could not be completed; previously deployed code remains live
3298
3445
  */
3299
- 502: ErrorResponse;
3446
+ 424: ErrorResponse;
3447
+ /**
3448
+ * Function deploy could not be completed; previously deployed code remains live
3449
+ */
3450
+ 429: ErrorResponse;
3451
+ /**
3452
+ * Function deploy could not be completed; previously deployed code remains live
3453
+ */
3454
+ 503: ErrorResponse;
3300
3455
  };
3301
3456
  type CreateFunctionError = CreateFunctionErrors[keyof CreateFunctionErrors];
3302
3457
  type CreateFunctionResponses = {
@@ -3389,7 +3544,7 @@ type UpdateFunctionData = {
3389
3544
  };
3390
3545
  type UpdateFunctionErrors = {
3391
3546
  /**
3392
- * Invalid request parameters
3547
+ * Invalid request parameters or customer-correctable deploy rejection
3393
3548
  */
3394
3549
  400: ErrorResponse;
3395
3550
  /**
@@ -3401,9 +3556,17 @@ type UpdateFunctionErrors = {
3401
3556
  */
3402
3557
  404: ErrorResponse;
3403
3558
  /**
3404
- * Primitive could not complete the downstream SMTP request
3559
+ * Function deploy could not be completed; previously deployed code remains live
3405
3560
  */
3406
- 502: ErrorResponse;
3561
+ 424: ErrorResponse;
3562
+ /**
3563
+ * Function deploy could not be completed; previously deployed code remains live
3564
+ */
3565
+ 429: ErrorResponse;
3566
+ /**
3567
+ * Function deploy could not be completed; previously deployed code remains live
3568
+ */
3569
+ 503: ErrorResponse;
3407
3570
  };
3408
3571
  type UpdateFunctionError = UpdateFunctionErrors[keyof UpdateFunctionErrors];
3409
3572
  type UpdateFunctionResponses = {
@@ -3691,7 +3854,7 @@ type ListFunctionLogsResponses = {
3691
3854
  };
3692
3855
  type ListFunctionLogsResponse = ListFunctionLogsResponses[keyof ListFunctionLogsResponses];
3693
3856
  declare namespace sdk_gen_d_exports {
3694
- export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startCliLogin, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyDomain };
3857
+ export { Options, addDomain, cliLogout, createEndpoint, createFilter, createFunction, createFunctionSecret, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadRawEmail, getAccount, getEmail, getFunction, getSendPermissions, getSentEmail, getStorageStats, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendCliSignupVerification, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyCliSignup, verifyDomain };
3695
3858
  }
3696
3859
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
3697
3860
  /**
@@ -3724,6 +3887,33 @@ declare const startCliLogin: <ThrowOnError extends boolean = false>(options?: Op
3724
3887
  *
3725
3888
  */
3726
3889
  declare const pollCliLogin: <ThrowOnError extends boolean = false>(options: Options<PollCliLoginData, ThrowOnError>) => RequestResult<PollCliLoginResponses, PollCliLoginErrors, ThrowOnError, "fields">;
3890
+ /**
3891
+ * Start CLI account signup
3892
+ *
3893
+ * Starts a terminal-native CLI signup. The API validates the signup code,
3894
+ * creates a pending signup session, sends an email verification code, and
3895
+ * returns an opaque signup token used by the resend and verify steps. This
3896
+ * endpoint does not require an API key.
3897
+ *
3898
+ */
3899
+ declare const startCliSignup: <ThrowOnError extends boolean = false>(options: Options<StartCliSignupData, ThrowOnError>) => RequestResult<StartCliSignupResponses, StartCliSignupErrors, ThrowOnError, "fields">;
3900
+ /**
3901
+ * Resend CLI signup verification code
3902
+ *
3903
+ * Sends a new email verification code for a pending CLI signup session.
3904
+ * This endpoint does not require an API key.
3905
+ *
3906
+ */
3907
+ declare const resendCliSignupVerification: <ThrowOnError extends boolean = false>(options: Options<ResendCliSignupVerificationData, ThrowOnError>) => RequestResult<ResendCliSignupVerificationResponses, ResendCliSignupVerificationErrors, ThrowOnError, "fields">;
3908
+ /**
3909
+ * Verify CLI signup and create API key
3910
+ *
3911
+ * Verifies the email code for a CLI signup session, creates the account,
3912
+ * redeems the reserved signup code, mints an org-scoped CLI API key, and
3913
+ * returns the raw key exactly once. This endpoint does not require an API key.
3914
+ *
3915
+ */
3916
+ declare const verifyCliSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyCliSignupData, ThrowOnError>) => RequestResult<VerifyCliSignupResponses, VerifyCliSignupErrors, ThrowOnError, "fields">;
3727
3917
  /**
3728
3918
  * Revoke the current CLI API key
3729
3919
  *
@@ -4165,8 +4355,9 @@ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Op
4165
4355
  * than relying on external imports.
4166
4356
  *
4167
4357
  * **Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`
4168
- * (optional) is capped at 5 MiB UTF-8 and is stored only on the
4169
- * edge runtime side; it is not persisted in Primitive's database.
4358
+ * (optional) is capped at 5 MiB UTF-8, stored with each deployment
4359
+ * attempt, and sent to the runtime so stack traces can resolve to
4360
+ * original source files.
4170
4361
  *
4171
4362
  * **Auto-wiring.** On successful deploy, Primitive automatically
4172
4363
  * creates a webhook endpoint that delivers inbound mail to the
@@ -4214,11 +4405,10 @@ declare const getFunction: <ThrowOnError extends boolean = false>(options: Optio
4214
4405
  * passing the same `code` re-runs the deploy and refreshes the
4215
4406
  * binding set with the latest values from the secrets table.
4216
4407
  *
4217
- * On a 502 deploy failure, the previously-deployed code stays
4218
- * live; the runtime never serves a half-built bundle. The
4219
- * `deploy_error` field on the returned record carries the error
4220
- * that came back from the runtime so you can surface it to users
4221
- * without polling.
4408
+ * On deploy failure, the previously-deployed code stays live; the
4409
+ * runtime never serves a half-built bundle. The response uses
4410
+ * `error.code` `deploy_failed`, and the function's `deploy_error`
4411
+ * field carries the latest deploy error for dashboard/API reads.
4222
4412
  *
4223
4413
  */
4224
4414
  declare const updateFunction: <ThrowOnError extends boolean = false>(options: Options<UpdateFunctionData, ThrowOnError>) => RequestResult<UpdateFunctionResponses, UpdateFunctionErrors, ThrowOnError, "fields">;
@@ -4563,4 +4753,4 @@ declare class PrimitiveClient extends PrimitiveApiClient {
4563
4753
  declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
4564
4754
  declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
4565
4755
  //#endregion
4566
- export { pollCliLogin as $, StartCliLoginData as $a, PollCliLoginError as $i, DownloadRawEmailErrors as $n, VerifyDomainErrors as $o, GetWebhookSecretData as $r, CreateFunctionSecretData as $t, deleteEndpoint as A, SearchEmailsResponses as Aa, ListFiltersResponses as Ai, DeleteFunctionResponses as An, UpdateDomainResponse as Ao, GetEmailErrors as Ar, CliLogoutInput as At, getSendPermissions as B, SendPermissionManagedZone as Ba, ListFunctionSecretsResponses as Bi, DiscardEmailContentError as Bn, UpdateFilterErrors as Bo, GetSendPermissionsErrors as Br, CreateFilterData as Bt, cliLogout as C, RotateWebhookSecretErrors as Ca, ListEndpointsResponse as Ci, DeleteFilterErrors as Cn, UpdateAccountInput as Co, GetAccountData as Cr, AddDomainResponse as Ct, createFunctionSecret as D, SearchEmailsError as Da, ListFiltersError as Di, DeleteFunctionError as Dn, UpdateDomainError as Do, GetAccountResponses as Dr, CliLogoutData as Dt, createFunction as E, SearchEmailsData as Ea, ListFiltersData as Ei, DeleteFunctionData as En, UpdateDomainData as Eo, GetAccountResponse as Er, CliLoginStartResult as Et, downloadAttachments as F, SendEmailResponses as Fa, ListFunctionLogsResponses as Fi, DeleteFunctionSecretResponses as Fn, UpdateEndpointInput as Fo, GetFunctionErrors as Fr, CreateEndpointError as Ft, listDomains as G, SentEmailStatus as Ga, ListFunctionsResponses as Gi, DomainVerifyResult as Gn, UpdateFunctionError as Go, GetSentEmailErrors as Gr, CreateFilterResponses as Gt, getStorageStats as H, SendPermissionYourDomain as Ha, ListFunctionsError as Hi, DiscardEmailContentResponse as Hn, UpdateFilterResponse as Ho, GetSendPermissionsResponses as Hr, CreateFilterErrors as Ht, downloadRawEmail as I, SendMailInput as Ia, ListFunctionSecretsData as Ii, DeliveryStatus as In, UpdateEndpointResponse as Io, GetFunctionResponse as Ir, CreateEndpointErrors as It, listFilters as J, SetFunctionSecretError as Ja, ListSentEmailsErrors as Ji, DownloadAttachmentsErrors as Jn, UpdateFunctionResponse as Jo, GetStorageStatsData as Jr, CreateFunctionErrors as Jt, listEmails as K, SentEmailSummary as Ka, ListSentEmailsData as Ki, DownloadAttachmentsData as Kn, UpdateFunctionErrors as Ko, GetSentEmailResponse as Kr, CreateFunctionData as Kt, getAccount as L, SendMailResult as La, ListFunctionSecretsError as Li, DeliverySummary as Ln, UpdateEndpointResponses as Lo, GetFunctionResponses as Lr, CreateEndpointInput as Lt, deleteFunction as M, SendEmailError as Ma, ListFunctionLogsError as Mi, DeleteFunctionSecretError as Mn, UpdateEndpointData as Mo, GetEmailResponses as Mr, CliLogoutResponses as Mt, deleteFunctionSecret as N, SendEmailErrors as Na, ListFunctionLogsErrors as Ni, DeleteFunctionSecretErrors as Nn, UpdateEndpointError as No, GetFunctionData as Nr, CliLogoutResult as Nt, deleteDomain as O, SearchEmailsErrors as Oa, ListFiltersErrors as Oi, DeleteFunctionErrors as On, UpdateDomainErrors as Oo, GetEmailData as Or, CliLogoutError as Ot, discardEmailContent as P, SendEmailResponse as Pa, ListFunctionLogsResponse as Pi, DeleteFunctionSecretResponse as Pn, UpdateEndpointErrors as Po, GetFunctionError as Pr, CreateEndpointData as Pt, listSentEmails as Q, SetFunctionSecretResponses as Qa, PollCliLoginData as Qi, DownloadRawEmailError as Qn, VerifyDomainError as Qo, GetStorageStatsResponses as Qr, CreateFunctionResult as Qt, getEmail as R, SendPermissionAddress as Ra, ListFunctionSecretsErrors as Ri, DiscardContentResult as Rn, UpdateFilterData as Ro, GetSendPermissionsData as Rr, CreateEndpointResponse as Rt, addDomain as S, RotateWebhookSecretError as Sa, ListEndpointsErrors as Si, DeleteFilterError as Sn, UpdateAccountErrors as So, GateFix as Sr, AddDomainInput as St, createFilter as T, RotateWebhookSecretResponses as Ta, ListEnvelope as Ti, DeleteFilterResponses as Tn, UpdateAccountResponses as To, GetAccountErrors as Tr, CliLoginPollResult as Tt, getWebhookSecret as U, SendPermissionsMeta as Ua, ListFunctionsErrors as Ui, DiscardEmailContentResponses as Un, UpdateFilterResponses as Uo, GetSentEmailData as Ur, CreateFilterInput as Ut, getSentEmail as V, SendPermissionRule as Va, ListFunctionsData as Vi, DiscardEmailContentErrors as Vn, UpdateFilterInput as Vo, GetSendPermissionsResponse as Vr, CreateFilterError as Vt, listDeliveries as W, SentEmailDetail as Wa, ListFunctionsResponse as Wi, Domain as Wn, UpdateFunctionData as Wo, GetSentEmailError as Wr, CreateFilterResponse as Wt, listFunctionSecrets as X, SetFunctionSecretInput as Xa, ListSentEmailsResponses as Xi, DownloadAttachmentsResponses as Xn, VerifiedDomain as Xo, GetStorageStatsErrors as Xr, CreateFunctionResponse as Xt, listFunctionLogs as Y, SetFunctionSecretErrors as Ya, ListSentEmailsResponse as Yi, DownloadAttachmentsResponse as Yn, UpdateFunctionResponses as Yo, GetStorageStatsError as Yr, CreateFunctionInput as Yt, listFunctions as Z, SetFunctionSecretResponse as Za, PaginationMeta as Zi, DownloadRawEmailData as Zn, VerifyDomainData as Zo, GetStorageStatsResponse as Zr, CreateFunctionResponses as Zt, PrimitiveApiClientOptions as _, ReplyToEmailErrors as _a, ListEmailsErrors as _i, DeleteEndpointError as _n, TestInvocationResult as _o, FunctionListItem as _r, Account as _t, RequestOptions as a, ReplayDeliveryError as aa, ListDeliveriesData as ai, Cursor as an, StorageStats as ao, EmailSearchFacets as ar, ClientOptions as as, searchEmails as at, RequestOptions$1 as b, ResourceId as ba, ListEndpointsData as bi, DeleteEndpointResponses as bn, UpdateAccountData as bo, FunctionSecretWriteResult as br, AddDomainError as bt, SendThreadInput as c, ReplayDeliveryResponses as ca, ListDeliveriesResponse as ci, DeleteDomainErrors as cn, TestEndpointError as co, EmailSearchResult as cr, Options$1 as cs, startCliLogin as ct, PRIMITIVE_SIGNATURE_HEADER as d, ReplayEmailWebhooksErrors as da, ListDomainsError as di, DeleteEmailData as dn, TestEndpointResponses as do, EmailWebhookStatus as dr, ResponseStyle as ds, updateAccount as dt, PollCliLoginErrors as ea, GetWebhookSecretError as ei, CreateFunctionSecretError as en, StartCliLoginError as eo, DownloadRawEmailResponse as er, VerifyDomainResponse as es, replayDelivery as et, VerifyOptions as f, ReplayEmailWebhooksResponse as fa, ListDomainsErrors as fi, DeleteEmailError as fn, TestFunctionData as fo, Endpoint as fr, createConfig as fs, updateDomain as ft, PrimitiveApiClient as g, ReplyToEmailError as ga, ListEmailsError as gi, DeleteEndpointData as gn, TestFunctionResponses as go, FunctionDetail as gr, verifyDomain as gt, DEFAULT_API_BASE_URL_2 as h, ReplyToEmailData as ha, ListEmailsData as hi, DeleteEmailResponses as hn, TestFunctionResponse as ho, FunctionDeployStatus as hr, updateFunction as ht, ReplyInput as i, ReplayDeliveryData as ia, Limit as ii, CreateFunctionSecretResponses as in, StartCliLoginResponses as io, EmailSearchFacetBucket as ir, Client as is, sdk_gen_d_exports as it, deleteFilter as j, SendEmailData as ja, ListFunctionLogsData as ji, DeleteFunctionSecretData as jn, UpdateDomainResponses as jo, GetEmailResponse as jr, CliLogoutResponse as jt, deleteEmail as k, SearchEmailsResponse as ka, ListFiltersResponse as ki, DeleteFunctionResponse as kn, UpdateDomainInput as ko, GetEmailError as kr, CliLogoutErrors as kt, client as l, ReplayEmailWebhooksData as la, ListDeliveriesResponses as li, DeleteDomainResponse as ln, TestEndpointErrors as lo, EmailStatus as lr, RequestOptions$2 as ls, testEndpoint as lt, DEFAULT_API_BASE_URL_1 as m, ReplayResult as ma, ListDomainsResponses as mi, DeleteEmailResponse as mn, TestFunctionErrors as mo, Filter as mr, updateFilter as mt, PrimitiveClient as n, PollCliLoginResponse as na, GetWebhookSecretResponse as ni, CreateFunctionSecretInput as nn, StartCliLoginInput as no, EmailDetail as nr, WebhookSecret as ns, replyToEmail as nt, SendInput as o, ReplayDeliveryErrors as oa, ListDeliveriesError as oi, DeleteDomainData as on, SuccessEnvelope as oo, EmailSearchHighlights as or, Config as os, sendEmail as ot, verifyWebhookSignature as p, ReplayEmailWebhooksResponses as pa, ListDomainsResponse as pi, DeleteEmailErrors as pn, TestFunctionError as po, ErrorResponse as pr, Auth as ps, updateEndpoint as pt, listEndpoints as q, SetFunctionSecretData as qa, ListSentEmailsError as qi, DownloadAttachmentsError as qn, UpdateFunctionInput as qo, GetSentEmailResponses as qr, CreateFunctionError as qt, PrimitiveClientOptions as r, PollCliLoginResponses as ra, GetWebhookSecretResponses as ri, CreateFunctionSecretResponse as rn, StartCliLoginResponse as ro, EmailDetailReply as rr, createClient as rs, rotateWebhookSecret as rt, SendResult as s, ReplayDeliveryResponse as sa, ListDeliveriesErrors as si, DeleteDomainError as sn, TestEndpointData as so, EmailSearchMeta as sr, CreateClientConfig as ss, setFunctionSecret as st, ForwardInput as t, PollCliLoginInput as ta, GetWebhookSecretErrors as ti, CreateFunctionSecretErrors as tn, StartCliLoginErrors as to, DownloadRawEmailResponses as tr, VerifyDomainResponses as ts, replayEmailWebhooks as tt, createPrimitiveClient as u, ReplayEmailWebhooksError as ua, ListDomainsData as ui, DeleteDomainResponses as un, TestEndpointResponse as uo, EmailSummary as ur, RequestResult as us, testFunction as ut, PrimitiveApiError as v, ReplyToEmailResponse as va, ListEmailsResponse as vi, DeleteEndpointErrors as vn, TestResult as vo, FunctionLogRow as vr, AccountUpdated as vt, createEndpoint as w, RotateWebhookSecretResponse as wa, ListEndpointsResponses as wi, DeleteFilterResponse as wn, UpdateAccountResponse as wo, GetAccountError as wr, AddDomainResponses as wt, createPrimitiveApiClient as x, RotateWebhookSecretData as xa, ListEndpointsError as xi, DeleteFilterData as xn, UpdateAccountError as xo, GateDenial as xr, AddDomainErrors as xt, PrimitiveApiErrorDetails as y, ReplyToEmailResponses as ya, ListEmailsResponses as yi, DeleteEndpointResponse as yn, UnverifiedDomain as yo, FunctionSecretListItem as yr, AddDomainData as yt, getFunction as z, SendPermissionAnyRecipient as za, ListFunctionSecretsResponse as zi, DiscardEmailContentData as zn, UpdateFilterError as zo, GetSendPermissionsError as zr, CreateEndpointResponses as zt };
4756
+ export { pollCliLogin as $, SendPermissionRule as $a, ListSentEmailsError as $i, DownloadAttachmentsError as $n, UpdateEndpointInput as $o, GetSentEmailResponses as $r, CreateFunctionError as $t, deleteEndpoint as A, ResendCliSignupVerificationResponse as Aa, ListEndpointsResponses as Ai, DeleteFilterResponse as An, TestFunctionData as Ao, GetAccountError as Ar, Config as As, CliLogoutData as At, getSendPermissions as B, SearchEmailsErrors as Ba, ListFunctionLogsResponse as Bi, DeleteFunctionSecretResponse as Bn, UpdateAccountErrors as Bo, GetFunctionError as Br, CreateEndpointData as Bt, cliLogout as C, ReplyToEmailErrors as Ca, ListEmailsErrors as Ci, DeleteEndpointError as Cn, StorageStats as Co, FunctionListItem as Cr, VerifyDomainErrors as Cs, AddDomainError as Ct, createFunctionSecret as D, ResendCliSignupVerificationError as Da, ListEndpointsError as Di, DeleteFilterData as Dn, TestEndpointErrors as Do, GateDenial as Dr, createClient as Ds, AddDomainResponses as Dt, createFunction as E, ResendCliSignupVerificationData as Ea, ListEndpointsData as Ei, DeleteEndpointResponses as En, TestEndpointError as Eo, FunctionSecretWriteResult as Er, WebhookSecret as Es, AddDomainResponse as Et, downloadAttachments as F, RotateWebhookSecretErrors as Fa, ListFiltersResponse as Fi, DeleteFunctionResponse as Fn, TestInvocationResult as Fo, GetEmailError as Fr, ResponseStyle as Fs, CliLogoutResponses as Ft, listDomains as G, SendEmailErrors as Ga, ListFunctionSecretsResponse as Gi, DiscardEmailContentData as Gn, UpdateDomainError as Go, GetSendPermissionsError as Gr, CreateEndpointResponses as Gt, getStorageStats as H, SearchEmailsResponses as Ha, ListFunctionSecretsData as Hi, DeliveryStatus as Hn, UpdateAccountResponse as Ho, GetFunctionResponse as Hr, CreateEndpointErrors as Ht, downloadRawEmail as I, RotateWebhookSecretResponse as Ia, ListFiltersResponses as Ii, DeleteFunctionResponses as In, TestResult as Io, GetEmailErrors as Ir, createConfig as Is, CliLogoutResult as It, listFilters as J, SendMailInput as Ja, ListFunctionsError as Ji, DiscardEmailContentResponse as Jn, UpdateDomainResponse as Jo, GetSendPermissionsResponses as Jr, CreateFilterErrors as Jt, listEmails as K, SendEmailResponse as Ka, ListFunctionSecretsResponses as Ki, DiscardEmailContentError as Kn, UpdateDomainErrors as Ko, GetSendPermissionsErrors as Kr, CreateFilterData as Kt, getAccount as L, RotateWebhookSecretResponses as La, ListFunctionLogsData as Li, DeleteFunctionSecretData as Ln, UnverifiedDomain as Lo, GetEmailResponse as Lr, Auth as Ls, CliSignupResendResult as Lt, deleteFunction as M, ResourceId as Ma, ListFiltersData as Mi, DeleteFunctionData as Mn, TestFunctionErrors as Mo, GetAccountResponse as Mr, Options$1 as Ms, CliLogoutErrors as Mt, deleteFunctionSecret as N, RotateWebhookSecretData as Na, ListFiltersError as Ni, DeleteFunctionError as Nn, TestFunctionResponse as No, GetAccountResponses as Nr, RequestOptions$2 as Ns, CliLogoutInput as Nt, deleteDomain as O, ResendCliSignupVerificationErrors as Oa, ListEndpointsErrors as Oi, DeleteFilterError as On, TestEndpointResponse as Oo, GateFix as Or, Client as Os, CliLoginPollResult as Ot, discardEmailContent as P, RotateWebhookSecretError as Pa, ListFiltersErrors as Pi, DeleteFunctionErrors as Pn, TestFunctionResponses as Po, GetEmailData as Pr, RequestResult as Ps, CliLogoutResponse as Pt, listSentEmails as Q, SendPermissionManagedZone as Qa, ListSentEmailsData as Qi, DownloadAttachmentsData as Qn, UpdateEndpointErrors as Qo, GetSentEmailResponse as Qr, CreateFunctionData as Qt, getEmail as R, SearchEmailsData as Ra, ListFunctionLogsError as Ri, DeleteFunctionSecretError as Rn, UpdateAccountData as Ro, GetEmailResponses as Rr, CliSignupStartResult as Rt, addDomain as S, ReplyToEmailError as Sa, ListEmailsError as Si, DeleteEndpointData as Sn, StartCliSignupResponses as So, FunctionDetail as Sr, VerifyDomainError as Ss, AddDomainData as St, createFilter as T, ReplyToEmailResponses as Ta, ListEmailsResponses as Ti, DeleteEndpointResponse as Tn, TestEndpointData as To, FunctionSecretListItem as Tr, VerifyDomainResponses as Ts, AddDomainInput as Tt, getWebhookSecret as U, SendEmailData as Ua, ListFunctionSecretsError as Ui, DeliverySummary as Un, UpdateAccountResponses as Uo, GetFunctionResponses as Ur, CreateEndpointInput as Ut, getSentEmail as V, SearchEmailsResponse as Va, ListFunctionLogsResponses as Vi, DeleteFunctionSecretResponses as Vn, UpdateAccountInput as Vo, GetFunctionErrors as Vr, CreateEndpointError as Vt, listDeliveries as W, SendEmailError as Wa, ListFunctionSecretsErrors as Wi, DiscardContentResult as Wn, UpdateDomainData as Wo, GetSendPermissionsData as Wr, CreateEndpointResponse as Wt, listFunctionSecrets as X, SendPermissionAddress as Xa, ListFunctionsResponse as Xi, Domain as Xn, UpdateEndpointData as Xo, GetSentEmailError as Xr, CreateFilterResponse as Xt, listFunctionLogs as Y, SendMailResult as Ya, ListFunctionsErrors as Yi, DiscardEmailContentResponses as Yn, UpdateDomainResponses as Yo, GetSentEmailData as Yr, CreateFilterInput as Yt, listFunctions as Z, SendPermissionAnyRecipient as Za, ListFunctionsResponses as Zi, DomainVerifyResult as Zn, UpdateEndpointError as Zo, GetSentEmailErrors as Zr, CreateFilterResponses as Zt, PrimitiveApiClientOptions as _, ReplayEmailWebhooksErrors as _a, ListDomainsError as _i, DeleteEmailData as _n, StartCliSignupData as _o, EmailWebhookStatus as _r, VerifyCliSignupErrors as _s, updateFunction as _t, RequestOptions as a, PollCliLoginError as aa, GetWebhookSecretData as ai, CreateFunctionSecretData as an, SetFunctionSecretData as ao, DownloadRawEmailErrors as ar, UpdateFilterInput as as, sdk_gen_d_exports as at, RequestOptions$1 as b, ReplayResult as ba, ListDomainsResponses as bi, DeleteEmailResponse as bn, StartCliSignupInput as bo, Filter as br, VerifyCliSignupResponses as bs, Account as bt, SendThreadInput as c, PollCliLoginResponse as ca, GetWebhookSecretResponse as ci, CreateFunctionSecretInput as cn, SetFunctionSecretInput as co, EmailDetail as cr, UpdateFunctionData as cs, setFunctionSecret as ct, PRIMITIVE_SIGNATURE_HEADER as d, ReplayDeliveryError as da, ListDeliveriesData as di, Cursor as dn, StartCliLoginData as do, EmailSearchFacets as dr, UpdateFunctionInput as ds, testEndpoint as dt, ListSentEmailsErrors as ea, GetStorageStatsData as ei, CreateFunctionErrors as en, SendPermissionYourDomain as eo, DownloadAttachmentsErrors as er, UpdateEndpointResponse as es, replayDelivery as et, VerifyOptions as f, ReplayDeliveryErrors as fa, ListDeliveriesError as fi, DeleteDomainData as fn, StartCliLoginError as fo, EmailSearchHighlights as fr, UpdateFunctionResponse as fs, testFunction as ft, PrimitiveApiClient as g, ReplayEmailWebhooksError as ga, ListDomainsData as gi, DeleteDomainResponses as gn, StartCliLoginResponses as go, EmailSummary as gr, VerifyCliSignupError as gs, updateFilter as gt, DEFAULT_API_BASE_URL_2 as h, ReplayEmailWebhooksData as ha, ListDeliveriesResponses as hi, DeleteDomainResponse as hn, StartCliLoginResponse as ho, EmailStatus as hr, VerifyCliSignupData as hs, updateEndpoint as ht, ReplyInput as i, PollCliLoginData as ia, GetStorageStatsResponses as ii, CreateFunctionResult as in, SentEmailSummary as io, DownloadRawEmailError as ir, UpdateFilterErrors as is, rotateWebhookSecret as it, deleteFilter as j, ResendCliSignupVerificationResponses as ja, ListEnvelope as ji, DeleteFilterResponses as jn, TestFunctionError as jo, GetAccountErrors as jr, CreateClientConfig as js, CliLogoutError as jt, deleteEmail as k, ResendCliSignupVerificationInput as ka, ListEndpointsResponse as ki, DeleteFilterErrors as kn, TestEndpointResponses as ko, GetAccountData as kr, ClientOptions as ks, CliLoginStartResult as kt, client as l, PollCliLoginResponses as la, GetWebhookSecretResponses as li, CreateFunctionSecretResponse as ln, SetFunctionSecretResponse as lo, EmailDetailReply as lr, UpdateFunctionError as ls, startCliLogin as lt, DEFAULT_API_BASE_URL_1 as m, ReplayDeliveryResponses as ma, ListDeliveriesResponse as mi, DeleteDomainErrors as mn, StartCliLoginInput as mo, EmailSearchResult as mr, VerifiedDomain as ms, updateDomain as mt, PrimitiveClient as n, ListSentEmailsResponses as na, GetStorageStatsErrors as ni, CreateFunctionResponse as nn, SentEmailDetail as no, DownloadAttachmentsResponses as nr, UpdateFilterData as ns, replyToEmail as nt, SendInput as o, PollCliLoginErrors as oa, GetWebhookSecretError as oi, CreateFunctionSecretError as on, SetFunctionSecretError as oo, DownloadRawEmailResponse as or, UpdateFilterResponse as os, searchEmails as ot, verifyWebhookSignature as p, ReplayDeliveryResponse as pa, ListDeliveriesErrors as pi, DeleteDomainError as pn, StartCliLoginErrors as po, EmailSearchMeta as pr, UpdateFunctionResponses as ps, updateAccount as pt, listEndpoints as q, SendEmailResponses as qa, ListFunctionsData as qi, DiscardEmailContentErrors as qn, UpdateDomainInput as qo, GetSendPermissionsResponse as qr, CreateFilterError as qt, PrimitiveClientOptions as r, PaginationMeta as ra, GetStorageStatsResponse as ri, CreateFunctionResponses as rn, SentEmailStatus as ro, DownloadRawEmailData as rr, UpdateFilterError as rs, resendCliSignupVerification as rt, SendResult as s, PollCliLoginInput as sa, GetWebhookSecretErrors as si, CreateFunctionSecretErrors as sn, SetFunctionSecretErrors as so, DownloadRawEmailResponses as sr, UpdateFilterResponses as ss, sendEmail as st, ForwardInput as t, ListSentEmailsResponse as ta, GetStorageStatsError as ti, CreateFunctionInput as tn, SendPermissionsMeta as to, DownloadAttachmentsResponse as tr, UpdateEndpointResponses as ts, replayEmailWebhooks as tt, createPrimitiveClient as u, ReplayDeliveryData as ua, Limit as ui, CreateFunctionSecretResponses as un, SetFunctionSecretResponses as uo, EmailSearchFacetBucket as ur, UpdateFunctionErrors as us, startCliSignup as ut, PrimitiveApiError as v, ReplayEmailWebhooksResponse as va, ListDomainsErrors as vi, DeleteEmailError as vn, StartCliSignupError as vo, Endpoint as vr, VerifyCliSignupInput as vs, verifyCliSignup as vt, createEndpoint as w, ReplyToEmailResponse as wa, ListEmailsResponse as wi, DeleteEndpointErrors as wn, SuccessEnvelope as wo, FunctionLogRow as wr, VerifyDomainResponse as ws, AddDomainErrors as wt, createPrimitiveApiClient as x, ReplyToEmailData as xa, ListEmailsData as xi, DeleteEmailResponses as xn, StartCliSignupResponse as xo, FunctionDeployStatus as xr, VerifyDomainData as xs, AccountUpdated as xt, PrimitiveApiErrorDetails as y, ReplayEmailWebhooksResponses as ya, ListDomainsResponse as yi, DeleteEmailErrors as yn, StartCliSignupErrors as yo, ErrorResponse as yr, VerifyCliSignupResponse as ys, verifyDomain as yt, getFunction as z, SearchEmailsError as za, ListFunctionLogsErrors as zi, DeleteFunctionSecretErrors as zn, UpdateAccountError as zo, GetFunctionData as zr, CliSignupVerifyResult as zt };
@@ -1,5 +1,5 @@
1
- import { N as WebhookEvent, j as ValidateEmailAuthResult, l as EmailAuth, u as EmailReceivedEvent } from "./types-Nslo1CU0.js";
2
- import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-T_0JE528.js";
1
+ import { N as WebhookEvent, j as ValidateEmailAuthResult, l as EmailAuth, u as EmailReceivedEvent } from "./types-BRWDMD7H.js";
2
+ import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-CO-rv_nK.js";
3
3
 
4
4
  //#region src/validation.d.ts
5
5
  interface ValidationSuccess<T> {
@@ -566,6 +566,17 @@ declare const emailReceivedEventJsonSchema: {
566
566
  }];
567
567
  readonly description: "Parsed BCC header addresses. Null if the email had no BCC header. Note: BCC is only available for outgoing emails or when explicitly provided.";
568
568
  };
569
+ readonly to_addresses: {
570
+ readonly anyOf: [{
571
+ readonly type: "array";
572
+ readonly items: {
573
+ readonly $ref: "#/definitions/EmailAddress";
574
+ };
575
+ }, {
576
+ readonly type: "null";
577
+ }];
578
+ readonly description: "Parsed To header addresses. Null if the email had no To header.";
579
+ };
569
580
  readonly in_reply_to: {
570
581
  readonly anyOf: [{
571
582
  readonly type: "array";
@@ -604,7 +615,7 @@ declare const emailReceivedEventJsonSchema: {
604
615
  readonly description: "URL to download all attachments as a tar.gz archive. Null if the email had no attachments. Managed Primitive always issues HTTPS. Self-host deployments may issue HTTP URLs that resolve inside the operator's network. URL expires - check the expiration before downloading.";
605
616
  };
606
617
  };
607
- readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "in_reply_to", "references", "attachments", "attachments_download_url"];
618
+ readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "to_addresses", "in_reply_to", "references", "attachments", "attachments_download_url"];
608
619
  readonly description: "Parsed email content when parsing succeeded.\n\nUse the discriminant `status: \"complete\"` to narrow from {@link ParsedData } .";
609
620
  };
610
621
  readonly EmailAddress: {
@@ -688,6 +699,10 @@ declare const emailReceivedEventJsonSchema: {
688
699
  readonly type: "null";
689
700
  readonly description: "Always null when parsing fails.";
690
701
  };
702
+ readonly to_addresses: {
703
+ readonly type: "null";
704
+ readonly description: "Always null when parsing fails.";
705
+ };
691
706
  readonly in_reply_to: {
692
707
  readonly type: "null";
693
708
  readonly description: "Always null when parsing fails.";
@@ -708,7 +723,7 @@ declare const emailReceivedEventJsonSchema: {
708
723
  readonly description: "Always null when parsing fails.";
709
724
  };
710
725
  };
711
- readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "in_reply_to", "references", "attachments", "attachments_download_url"];
726
+ readonly required: ["status", "error", "body_text", "body_html", "reply_to", "cc", "bcc", "to_addresses", "in_reply_to", "references", "attachments", "attachments_download_url"];
712
727
  readonly description: "Parsed email content when parsing failed.\n\nUse the discriminant `status: \"failed\"` to narrow from {@link ParsedData } .";
713
728
  };
714
729
  readonly ParsedError: {
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { c as SendThreadInput, i as ReplyInput, l as client, n as PrimitiveClient, o as SendInput, r as PrimitiveClientOptions, s as SendResult, t as ForwardInput, u as createPrimitiveClient, v as PrimitiveApiError } from "./index-9Rqocr-c.js";
2
- import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "./types-Nslo1CU0.js";
3
- import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, 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 buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "./errors-T_0JE528.js";
4
- import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "./index-EQZK4vWT.js";
1
+ import { c as SendThreadInput, i as ReplyInput, l as client, n as PrimitiveClient, o as SendInput, r as PrimitiveClientOptions, s as SendResult, t as ForwardInput, u as createPrimitiveClient, v as PrimitiveApiError } from "./index-BKeS9sOb.js";
2
+ import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "./types-BRWDMD7H.js";
3
+ import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, 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 buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "./errors-CO-rv_nK.js";
4
+ import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "./index-D_v8-0zX.js";
5
5
 
6
6
  //#region src/index.d.ts
7
7
  declare const primitive: {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-CZIBnM4Q.js";
1
+ import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-3znV8SSN.js";
2
2
  import { a as VERIFICATION_ERRORS, c as WebhookVerificationError, d as formatAddress, f as normalizeReceivedEmail, i as RawEmailDecodeError, l as buildForwardSubject, n as PrimitiveWebhookError, o as WebhookPayloadError, p as parseHeaderAddress, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as buildReplySubject } from "./errors-BPJGp9I6.js";
3
- import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "./webhook-Bra-g1q8.js";
3
+ import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "./webhook-D4FTpj38.js";
4
4
  //#region src/index.ts
5
5
  const primitive = {
6
6
  client,
@@ -1,2 +1,2 @@
1
- import { n as openapiDocument, t as operationManifest } from "../operations.generated-T3exFpgJ.js";
1
+ import { n as openapiDocument, t as operationManifest } from "../operations.generated-x1Go1Xkb.js";
2
2
  export { openapiDocument, operationManifest };