@primitivedotdev/sdk 0.31.8 → 0.32.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.
- package/dist/api/index.d.ts +3 -3
- package/dist/contract/index.d.ts +2 -2
- package/dist/contract/index.js +1 -1
- package/dist/{errors-CO-rv_nK.d.ts → errors-7E9sW9eX.d.ts} +1 -1
- package/dist/{index-EVtXGd3A.d.ts → index-CZjTjNV8.d.ts} +1 -1
- package/dist/{index-D_v8-0zX.d.ts → index-DR978rq5.d.ts} +6 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/parser/index.d.ts +1 -1
- package/dist/{types-BRWDMD7H.d.ts → types-yNU-Oiea.d.ts} +4 -0
- package/dist/webhook/index.d.ts +3 -3
- package/dist/webhook/index.js +1 -1
- package/dist/{webhook-D4FTpj38.js → webhook-BAwK8EOG.js} +198 -175
- package/package.json +1 -1
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as listFunctionLogs, $a as ListSentEmailsResponses, $c as RequestResult, $i as GetWebhookSecretResponse, $n as DeliveryStatus, $o as SendMailInput, $r as FunctionTestRunReply, $s as UpdateAccountErrors, $t as CreateEndpointErrors, A as deleteEndpoint, Aa as ListFiltersError, Ac as VerifyAgentSignupErrors, Ai as GetSendPermissionsData, An as DeleteEmailErrors, Ao as ResendCliSignupVerificationData, Ar as EmailDetailReply, As as StartCliSignupErrors, At as AddDomainError, B as getFunction, Ba as ListFunctionSecretsError, Bc as VerifyDomainData, Bi as GetStorageStatsData, Bn as DeleteFilterErrors, Bo as RotateWebhookSecretResponse, Br as ErrorResponse, Bs as TestEndpointResponses, Bt as CliLoginStartResult, C as cliLogout, Ca as ListEndpointsData, Cc as UpdateFunctionErrors, Ci as GetFunctionTestRunTraceResponse, Cn as DeleteDomainData, Co as ReplyToEmailResponses, Cr as DownloadRawEmailErrors, Cs as StartCliLoginError, Ct as updateFunction, D as createFunctionSecret, Da as ListEndpointsResponses, Dc as VerifiedDomain, Di as GetInboxStatusErrors, Dn as DeleteDomainResponses, Do as ResendAgentSignupVerificationInput, Dr as EmailAttachment, Ds as StartCliLoginResponses, Dt as Account, E as createFunction, Ea as ListEndpointsResponse, Ec as UpdateFunctionResponses, Ei as GetInboxStatusError, En as DeleteDomainResponse, Eo as ResendAgentSignupVerificationErrors, Er as EmailAddress, Es as StartCliLoginResponse, Et as verifyDomain, F as downloadAttachments, Fa as ListFunctionLogsError, Fc as VerifyCliSignupError, Fi as GetSentEmailData, Fn as DeleteEndpointErrors, Fo as ResendCliSignupVerificationResponses, Fr as EmailSearchResult, Fs as SuccessEnvelope, Ft as AgentOrgRef, G as getStorageStats, Ga as ListFunctionsError, Gc as WebhookSecret, Gi as GetThreadData, Gn as DeleteFunctionErrors, Go as SearchEmailsResponse, Gr as FunctionLogRow, Gs as TestFunctionResponses, Gt as CliLogoutResponse, H as getInboxStatus, Ha as ListFunctionSecretsResponse, Hc as VerifyDomainErrors, Hi as GetStorageStatsErrors, Hn as DeleteFilterResponses, Ho as SearchEmailsData, Hr as FunctionDeployStatus, Hs as TestFunctionError, Ht as CliLogoutError, I as downloadDomainZoneFile, Ia as ListFunctionLogsErrors, Ic as VerifyCliSignupErrors, Ii as GetSentEmailError, In as DeleteEndpointResponse, Io as ResourceId, Ir as EmailStatus, Is as TestEndpointData, It as AgentSignupResendResult, J as listDeliveries, Ja as ListFunctionsResponses, Jc as ClientOptions, Ji as GetThreadResponse, Jn as DeleteFunctionSecretData, Jo as SendEmailError, Jr as FunctionTestRun, Js as Thread, Jt as CliSignupResendResult, K as getThread, Ka as ListFunctionsErrors, Kc as createClient, Ki as GetThreadError, Kn as DeleteFunctionResponse, Ko as SearchEmailsResponses, Kr as FunctionSecretListItem, Ks as TestInvocationResult, Kt as CliLogoutResponses, L as downloadRawEmail, La as ListFunctionLogsResponse, Lc as VerifyCliSignupInput, Li as GetSentEmailErrors, Ln as DeleteEndpointResponses, Lo as RotateWebhookSecretData, Lr as EmailSummary, Ls as TestEndpointError, Lt as AgentSignupStartResult, M as deleteFunction, Ma as ListFiltersResponse, Mc as VerifyAgentSignupResponse, Mi as GetSendPermissionsErrors, Mn as DeleteEmailResponses, Mo as ResendCliSignupVerificationErrors, Mr as EmailSearchFacets, Ms as StartCliSignupResponse, Mt as AddDomainInput, N as deleteFunctionSecret, Na as ListFiltersResponses, Nc as VerifyAgentSignupResponses, Ni as GetSendPermissionsResponse, Nn as DeleteEndpointData, No as ResendCliSignupVerificationInput, Nr as EmailSearchHighlights, Ns as StartCliSignupResponses, Nt as AddDomainResponse, O as deleteDomain, Oa as ListEnvelope, Oc as VerifyAgentSignupData, Oi as GetInboxStatusResponse, On as DeleteEmailData, Oo as ResendAgentSignupVerificationResponse, Or as EmailAuth, Os as StartCliSignupData, Ot as AccountUpdated, P as discardEmailContent, Pa as ListFunctionLogsData, Pc as VerifyCliSignupData, Pi as GetSendPermissionsResponses, Pn as DeleteEndpointError, Po as ResendCliSignupVerificationResponse, Pr as EmailSearchMeta, Ps as StorageStats, Pt as AddDomainResponses, Q as listFilters, Qa as ListSentEmailsResponse, Qc as RequestOptions, Qi as GetWebhookSecretErrors, Qn as DeleteFunctionSecretResponses, Qo as SendMailAttachment, Qr as FunctionTestRunOutboundRequest, Qs as UpdateAccountError, Qt as CreateEndpointError, R as getAccount, Ra as ListFunctionLogsResponses, Rc as VerifyCliSignupResponse, Ri as GetSentEmailResponse, Rn as DeleteFilterData, Ro as RotateWebhookSecretError, Rr as EmailWebhookStatus, Rs as TestEndpointErrors, Rt as AgentSignupVerifyResult, S as addDomain, Sa as ListEmailsResponses, Sc as UpdateFunctionError, Si as GetFunctionTestRunTraceErrors, Sn as Cursor, So as ReplyToEmailResponse, Sr as DownloadRawEmailError, Ss as StartCliLoginData, St as updateFilter, T as createFilter, Ta as ListEndpointsErrors, Tc as UpdateFunctionResponse, Ti as GetInboxStatusData, Tn as DeleteDomainErrors, To as ResendAgentSignupVerificationError, Tr as DownloadRawEmailResponses, Ts as StartCliLoginInput, Tt as verifyCliSignup, U as getSendPermissions, Ua as ListFunctionSecretsResponses, Uc as VerifyDomainResponse, Ui as GetStorageStatsResponse, Un as DeleteFunctionData, Uo as SearchEmailsError, Ur as FunctionDetail, Us as TestFunctionErrors, Ut as CliLogoutErrors, V as getFunctionTestRunTrace, Va as ListFunctionSecretsErrors, Vc as VerifyDomainError, Vi as GetStorageStatsError, Vn as DeleteFilterResponse, Vo as RotateWebhookSecretResponses, Vr as Filter, Vs as TestFunctionData, Vt as CliLogoutData, W as getSentEmail, Wa as ListFunctionsData, Wc as VerifyDomainResponses, Wi as GetStorageStatsResponses, Wn as DeleteFunctionError, Wo as SearchEmailsErrors, Wr as FunctionListItem, Ws as TestFunctionResponse, Wt as CliLogoutInput, X as listEmails, Xa as ListSentEmailsError, Xc as CreateClientConfig, Xi as GetWebhookSecretData, Xn as DeleteFunctionSecretErrors, Xo as SendEmailResponse, Xr as FunctionTestRunDeliveryEndpoint, Xs as UnverifiedDomain, Xt as CliSignupVerifyResult, Y as listDomains, Ya as ListSentEmailsData, Yc as Config, Yi as GetThreadResponses, Yn as DeleteFunctionSecretError, Yo as SendEmailErrors, Yr as FunctionTestRunDelivery, Ys as ThreadMessage, Yt as CliSignupStartResult, Z as listEndpoints, Za as ListSentEmailsErrors, Zc as Options, Zi as GetWebhookSecretError, Zn as DeleteFunctionSecretResponse, Zo as SendEmailResponses, Zr as FunctionTestRunInboundEmail, Zs as UpdateAccountData, Zt as CreateEndpointData, _ as PrimitiveApiClientOptions, _a as ListDomainsResponses, _c as UpdateFilterErrors, _i as GetFunctionErrors, _n as CreateFunctionSecretError, _o as ReplayEmailWebhooksResponses, _r as DownloadDomainZoneFileError, _s as StartAgentSignupError, _t as testEndpoint, a as RequestOptions$2, aa as InboxStatusNextAction, ac as UpdateDomainErrors, ai as GetAccountData, an as CreateFilterErrors, ao as PollCliLoginInput, ar as DiscardEmailContentResponse, as as SendPermissionYourDomain, at as replayEmailWebhooks, b as RequestOptions$1, ba as ListEmailsErrors, bc as UpdateFilterResponses, bi as GetFunctionTestRunTraceData, bn as CreateFunctionSecretResponse, bo as ReplyToEmailError, br as DownloadDomainZoneFileResponses, bs as StartAgentSignupResponse, bt as updateDomain, c as SendThreadInput, ca as ListDeliveriesData, cc as UpdateDomainResponses, ci as GetAccountResponse, cn as CreateFilterResponses, co as ReplayDeliveryData, cr as Domain, cs as SentEmailStatus, ct as resendCliSignupVerification, d as PRIMITIVE_SIGNATURE_HEADER, da as ListDeliveriesResponse, dc as UpdateEndpointErrors, di as GetEmailError, dn as CreateFunctionErrors, do as ReplayDeliveryResponse, dr as DownloadAttachmentsData, ds as SetFunctionSecretError, dt as searchEmails, ea as GetWebhookSecretResponses, ec as UpdateAccountInput, ei as FunctionTestRunSend, el as ResponseStyle, en as CreateEndpointInput, eo as PaginationMeta, er as DeliverySummary, es as SendMailResult, et as listFunctionSecrets, f as VerifyOptions, fa as ListDeliveriesResponses, fc as UpdateEndpointInput, fi as GetEmailErrors, fn as CreateFunctionInput, fo as ReplayDeliveryResponses, fr as DownloadAttachmentsError, fs as SetFunctionSecretErrors, ft as sendEmail, g as PrimitiveApiClient, ga as ListDomainsResponse, gc as UpdateFilterError, gi as GetFunctionError, gn as CreateFunctionSecretData, go as ReplayEmailWebhooksResponse, gr as DownloadDomainZoneFileData, gs as StartAgentSignupData, gt as startCliSignup, h as DEFAULT_API_BASE_URL_2, ha as ListDomainsErrors, hc as UpdateFilterData, hi as GetFunctionData, hn as CreateFunctionResult, ho as ReplayEmailWebhooksErrors, hr as DownloadAttachmentsResponses, hs as SetFunctionSecretResponses, ht as startCliLogin, i as ReplyInput, ia as InboxStatusFunctionSummary, ic as UpdateDomainError, ii as GateFix, in as CreateFilterError, io as PollCliLoginErrors, ir as DiscardEmailContentErrors, is as SendPermissionRule, it as replayDelivery, j as deleteFilter, ja as ListFiltersErrors, jc as VerifyAgentSignupInput, ji as GetSendPermissionsError, jn as DeleteEmailResponse, jo as ResendCliSignupVerificationError, jr as EmailSearchFacetBucket, js as StartCliSignupInput, jt as AddDomainErrors, k as deleteEmail, ka as ListFiltersData, kc as VerifyAgentSignupError, ki as GetInboxStatusResponses, kn as DeleteEmailError, ko as ResendAgentSignupVerificationResponses, kr as EmailDetail, ks as StartCliSignupError, kt as AddDomainData, l as client, la as ListDeliveriesError, lc as UpdateEndpointData, li as GetAccountResponses, ln as CreateFunctionData, lo as ReplayDeliveryError, lr as DomainDnsRecord, ls as SentEmailSummary, lt as rotateWebhookSecret, m as DEFAULT_API_BASE_URL_1, ma as ListDomainsError, mc as UpdateEndpointResponses, mi as GetEmailResponses, mn as CreateFunctionResponses, mo as ReplayEmailWebhooksError, mr as DownloadAttachmentsResponse, ms as SetFunctionSecretResponse, mt as startAgentSignup, n as PrimitiveClient, na as InboxStatusDomain, nc as UpdateAccountResponses, ni as FunctionTestRunTrace, nl as Auth, nn as CreateEndpointResponses, no as PollCliLoginData, nr as DiscardEmailContentData, ns as SendPermissionAnyRecipient, nt as listSentEmails, o as SendInput, oa as InboxStatusRecentEmailSummary, oc as UpdateDomainInput, oi as GetAccountError, on as CreateFilterInput, oo as PollCliLoginResponse, or as DiscardEmailContentResponses, os as SendPermissionsMeta, ot as replyToEmail, p as verifyWebhookSignature, pa as ListDomainsData, pc as UpdateEndpointResponse, pi as GetEmailResponse, pn as CreateFunctionResponse, po as ReplayEmailWebhooksData, pr as DownloadAttachmentsErrors, ps as SetFunctionSecretInput, pt as setFunctionSecret, q as getWebhookSecret, qa as ListFunctionsResponse, qc as Client, qi as GetThreadErrors, qn as DeleteFunctionResponses, qo as SendEmailData, qr as FunctionSecretWriteResult, qs as TestResult, qt as CliLogoutResult, r as PrimitiveClientOptions, ra as InboxStatusEndpointSummary, rc as UpdateDomainData, ri as GateDenial, rn as CreateFilterData, ro as PollCliLoginError, rr as DiscardEmailContentError, rs as SendPermissionManagedZone, rt as pollCliLogin, s as SendResult, sa as Limit, sc as UpdateDomainResponse, si as GetAccountErrors, sn as CreateFilterResponse, so as PollCliLoginResponses, sr as DkimSignature, ss as SentEmailDetail, st as resendAgentSignupVerification, t as ForwardInput, ta as InboxStatus, tc as UpdateAccountResponse, ti as FunctionTestRunState, tl as createConfig, tn as CreateEndpointResponse, to as ParsedEmailData, tr as DiscardContentResult, ts as SendPermissionAddress, tt as listFunctions, u as createPrimitiveClient, ua as ListDeliveriesErrors, uc as UpdateEndpointError, ui as GetEmailData, un as CreateFunctionError, uo as ReplayDeliveryErrors, ur as DomainVerifyResult, us as SetFunctionSecretData, ut as sdk_gen_d_exports, v as PrimitiveApiError, va as ListEmailsData, vc as UpdateFilterInput, vi as GetFunctionResponse, vn as CreateFunctionSecretErrors, vo as ReplayResult, vr as DownloadDomainZoneFileErrors, vs as StartAgentSignupErrors, vt as testFunction, w as createEndpoint, wa as ListEndpointsError, wc as UpdateFunctionInput, wi as GetFunctionTestRunTraceResponses, wn as DeleteDomainError, wo as ResendAgentSignupVerificationData, wr as DownloadRawEmailResponse, ws as StartCliLoginErrors, wt as verifyAgentSignup, x as createPrimitiveApiClient, xa as ListEmailsResponse, xc as UpdateFunctionData, xi as GetFunctionTestRunTraceError, xn as CreateFunctionSecretResponses, xo as ReplyToEmailErrors, xr as DownloadRawEmailData, xs as StartAgentSignupResponses, xt as updateEndpoint, y as PrimitiveApiErrorDetails, ya as ListEmailsError, yc as UpdateFilterResponse, yi as GetFunctionResponses, yn as CreateFunctionSecretInput, yo as ReplyToEmailData, yr as DownloadDomainZoneFileResponse, ys as StartAgentSignupInput, yt as updateAccount, z as getEmail, za as ListFunctionSecretsData, zc as VerifyCliSignupResponses, zi as GetSentEmailResponses, zn as DeleteFilterError, zo as RotateWebhookSecretErrors, zr as Endpoint, zs as TestEndpointResponse, zt as CliLoginPollResult } from "../index-EVtXGd3A.js";
|
|
1
|
+
import { $ as listFunctionLogs, $a as ListSentEmailsResponses, $c as RequestResult, $i as GetWebhookSecretResponse, $n as DeliveryStatus, $o as SendMailInput, $r as FunctionTestRunReply, $s as UpdateAccountErrors, $t as CreateEndpointErrors, A as deleteEndpoint, Aa as ListFiltersError, Ac as VerifyAgentSignupErrors, Ai as GetSendPermissionsData, An as DeleteEmailErrors, Ao as ResendCliSignupVerificationData, Ar as EmailDetailReply, As as StartCliSignupErrors, At as AddDomainError, B as getFunction, Ba as ListFunctionSecretsError, Bc as VerifyDomainData, Bi as GetStorageStatsData, Bn as DeleteFilterErrors, Bo as RotateWebhookSecretResponse, Br as ErrorResponse, Bs as TestEndpointResponses, Bt as CliLoginStartResult, C as cliLogout, Ca as ListEndpointsData, Cc as UpdateFunctionErrors, Ci as GetFunctionTestRunTraceResponse, Cn as DeleteDomainData, Co as ReplyToEmailResponses, Cr as DownloadRawEmailErrors, Cs as StartCliLoginError, Ct as updateFunction, D as createFunctionSecret, Da as ListEndpointsResponses, Dc as VerifiedDomain, Di as GetInboxStatusErrors, Dn as DeleteDomainResponses, Do as ResendAgentSignupVerificationInput, Dr as EmailAttachment, Ds as StartCliLoginResponses, Dt as Account, E as createFunction, Ea as ListEndpointsResponse, Ec as UpdateFunctionResponses, Ei as GetInboxStatusError, En as DeleteDomainResponse, Eo as ResendAgentSignupVerificationErrors, Er as EmailAddress, Es as StartCliLoginResponse, Et as verifyDomain, F as downloadAttachments, Fa as ListFunctionLogsError, Fc as VerifyCliSignupError, Fi as GetSentEmailData, Fn as DeleteEndpointErrors, Fo as ResendCliSignupVerificationResponses, Fr as EmailSearchResult, Fs as SuccessEnvelope, Ft as AgentOrgRef, G as getStorageStats, Ga as ListFunctionsError, Gc as WebhookSecret, Gi as GetThreadData, Gn as DeleteFunctionErrors, Go as SearchEmailsResponse, Gr as FunctionLogRow, Gs as TestFunctionResponses, Gt as CliLogoutResponse, H as getInboxStatus, Ha as ListFunctionSecretsResponse, Hc as VerifyDomainErrors, Hi as GetStorageStatsErrors, Hn as DeleteFilterResponses, Ho as SearchEmailsData, Hr as FunctionDeployStatus, Hs as TestFunctionError, Ht as CliLogoutError, I as downloadDomainZoneFile, Ia as ListFunctionLogsErrors, Ic as VerifyCliSignupErrors, Ii as GetSentEmailError, In as DeleteEndpointResponse, Io as ResourceId, Ir as EmailStatus, Is as TestEndpointData, It as AgentSignupResendResult, J as listDeliveries, Ja as ListFunctionsResponses, Jc as ClientOptions, Ji as GetThreadResponse, Jn as DeleteFunctionSecretData, Jo as SendEmailError, Jr as FunctionTestRun, Js as Thread, Jt as CliSignupResendResult, K as getThread, Ka as ListFunctionsErrors, Kc as createClient, Ki as GetThreadError, Kn as DeleteFunctionResponse, Ko as SearchEmailsResponses, Kr as FunctionSecretListItem, Ks as TestInvocationResult, Kt as CliLogoutResponses, L as downloadRawEmail, La as ListFunctionLogsResponse, Lc as VerifyCliSignupInput, Li as GetSentEmailErrors, Ln as DeleteEndpointResponses, Lo as RotateWebhookSecretData, Lr as EmailSummary, Ls as TestEndpointError, Lt as AgentSignupStartResult, M as deleteFunction, Ma as ListFiltersResponse, Mc as VerifyAgentSignupResponse, Mi as GetSendPermissionsErrors, Mn as DeleteEmailResponses, Mo as ResendCliSignupVerificationErrors, Mr as EmailSearchFacets, Ms as StartCliSignupResponse, Mt as AddDomainInput, N as deleteFunctionSecret, Na as ListFiltersResponses, Nc as VerifyAgentSignupResponses, Ni as GetSendPermissionsResponse, Nn as DeleteEndpointData, No as ResendCliSignupVerificationInput, Nr as EmailSearchHighlights, Ns as StartCliSignupResponses, Nt as AddDomainResponse, O as deleteDomain, Oa as ListEnvelope, Oc as VerifyAgentSignupData, Oi as GetInboxStatusResponse, On as DeleteEmailData, Oo as ResendAgentSignupVerificationResponse, Or as EmailAuth, Os as StartCliSignupData, Ot as AccountUpdated, P as discardEmailContent, Pa as ListFunctionLogsData, Pc as VerifyCliSignupData, Pi as GetSendPermissionsResponses, Pn as DeleteEndpointError, Po as ResendCliSignupVerificationResponse, Pr as EmailSearchMeta, Ps as StorageStats, Pt as AddDomainResponses, Q as listFilters, Qa as ListSentEmailsResponse, Qc as RequestOptions, Qi as GetWebhookSecretErrors, Qn as DeleteFunctionSecretResponses, Qo as SendMailAttachment, Qr as FunctionTestRunOutboundRequest, Qs as UpdateAccountError, Qt as CreateEndpointError, R as getAccount, Ra as ListFunctionLogsResponses, Rc as VerifyCliSignupResponse, Ri as GetSentEmailResponse, Rn as DeleteFilterData, Ro as RotateWebhookSecretError, Rr as EmailWebhookStatus, Rs as TestEndpointErrors, Rt as AgentSignupVerifyResult, S as addDomain, Sa as ListEmailsResponses, Sc as UpdateFunctionError, Si as GetFunctionTestRunTraceErrors, Sn as Cursor, So as ReplyToEmailResponse, Sr as DownloadRawEmailError, Ss as StartCliLoginData, St as updateFilter, T as createFilter, Ta as ListEndpointsErrors, Tc as UpdateFunctionResponse, Ti as GetInboxStatusData, Tn as DeleteDomainErrors, To as ResendAgentSignupVerificationError, Tr as DownloadRawEmailResponses, Ts as StartCliLoginInput, Tt as verifyCliSignup, U as getSendPermissions, Ua as ListFunctionSecretsResponses, Uc as VerifyDomainResponse, Ui as GetStorageStatsResponse, Un as DeleteFunctionData, Uo as SearchEmailsError, Ur as FunctionDetail, Us as TestFunctionErrors, Ut as CliLogoutErrors, V as getFunctionTestRunTrace, Va as ListFunctionSecretsErrors, Vc as VerifyDomainError, Vi as GetStorageStatsError, Vn as DeleteFilterResponse, Vo as RotateWebhookSecretResponses, Vr as Filter, Vs as TestFunctionData, Vt as CliLogoutData, W as getSentEmail, Wa as ListFunctionsData, Wc as VerifyDomainResponses, Wi as GetStorageStatsResponses, Wn as DeleteFunctionError, Wo as SearchEmailsErrors, Wr as FunctionListItem, Ws as TestFunctionResponse, Wt as CliLogoutInput, X as listEmails, Xa as ListSentEmailsError, Xc as CreateClientConfig, Xi as GetWebhookSecretData, Xn as DeleteFunctionSecretErrors, Xo as SendEmailResponse, Xr as FunctionTestRunDeliveryEndpoint, Xs as UnverifiedDomain, Xt as CliSignupVerifyResult, Y as listDomains, Ya as ListSentEmailsData, Yc as Config, Yi as GetThreadResponses, Yn as DeleteFunctionSecretError, Yo as SendEmailErrors, Yr as FunctionTestRunDelivery, Ys as ThreadMessage, Yt as CliSignupStartResult, Z as listEndpoints, Za as ListSentEmailsErrors, Zc as Options, Zi as GetWebhookSecretError, Zn as DeleteFunctionSecretResponse, Zo as SendEmailResponses, Zr as FunctionTestRunInboundEmail, Zs as UpdateAccountData, Zt as CreateEndpointData, _ as PrimitiveApiClientOptions, _a as ListDomainsResponses, _c as UpdateFilterErrors, _i as GetFunctionErrors, _n as CreateFunctionSecretError, _o as ReplayEmailWebhooksResponses, _r as DownloadDomainZoneFileError, _s as StartAgentSignupError, _t as testEndpoint, a as RequestOptions$2, aa as InboxStatusNextAction, ac as UpdateDomainErrors, ai as GetAccountData, an as CreateFilterErrors, ao as PollCliLoginInput, ar as DiscardEmailContentResponse, as as SendPermissionYourDomain, at as replayEmailWebhooks, b as RequestOptions$1, ba as ListEmailsErrors, bc as UpdateFilterResponses, bi as GetFunctionTestRunTraceData, bn as CreateFunctionSecretResponse, bo as ReplyToEmailError, br as DownloadDomainZoneFileResponses, bs as StartAgentSignupResponse, bt as updateDomain, c as SendThreadInput, ca as ListDeliveriesData, cc as UpdateDomainResponses, ci as GetAccountResponse, cn as CreateFilterResponses, co as ReplayDeliveryData, cr as Domain, cs as SentEmailStatus, ct as resendCliSignupVerification, d as PRIMITIVE_SIGNATURE_HEADER, da as ListDeliveriesResponse, dc as UpdateEndpointErrors, di as GetEmailError, dn as CreateFunctionErrors, do as ReplayDeliveryResponse, dr as DownloadAttachmentsData, ds as SetFunctionSecretError, dt as searchEmails, ea as GetWebhookSecretResponses, ec as UpdateAccountInput, ei as FunctionTestRunSend, el as ResponseStyle, en as CreateEndpointInput, eo as PaginationMeta, er as DeliverySummary, es as SendMailResult, et as listFunctionSecrets, f as VerifyOptions, fa as ListDeliveriesResponses, fc as UpdateEndpointInput, fi as GetEmailErrors, fn as CreateFunctionInput, fo as ReplayDeliveryResponses, fr as DownloadAttachmentsError, fs as SetFunctionSecretErrors, ft as sendEmail, g as PrimitiveApiClient, ga as ListDomainsResponse, gc as UpdateFilterError, gi as GetFunctionError, gn as CreateFunctionSecretData, go as ReplayEmailWebhooksResponse, gr as DownloadDomainZoneFileData, gs as StartAgentSignupData, gt as startCliSignup, h as DEFAULT_API_BASE_URL_2, ha as ListDomainsErrors, hc as UpdateFilterData, hi as GetFunctionData, hn as CreateFunctionResult, ho as ReplayEmailWebhooksErrors, hr as DownloadAttachmentsResponses, hs as SetFunctionSecretResponses, ht as startCliLogin, i as ReplyInput, ia as InboxStatusFunctionSummary, ic as UpdateDomainError, ii as GateFix, in as CreateFilterError, io as PollCliLoginErrors, ir as DiscardEmailContentErrors, is as SendPermissionRule, it as replayDelivery, j as deleteFilter, ja as ListFiltersErrors, jc as VerifyAgentSignupInput, ji as GetSendPermissionsError, jn as DeleteEmailResponse, jo as ResendCliSignupVerificationError, jr as EmailSearchFacetBucket, js as StartCliSignupInput, jt as AddDomainErrors, k as deleteEmail, ka as ListFiltersData, kc as VerifyAgentSignupError, ki as GetInboxStatusResponses, kn as DeleteEmailError, ko as ResendAgentSignupVerificationResponses, kr as EmailDetail, ks as StartCliSignupError, kt as AddDomainData, l as client, la as ListDeliveriesError, lc as UpdateEndpointData, li as GetAccountResponses, ln as CreateFunctionData, lo as ReplayDeliveryError, lr as DomainDnsRecord, ls as SentEmailSummary, lt as rotateWebhookSecret, m as DEFAULT_API_BASE_URL_1, ma as ListDomainsError, mc as UpdateEndpointResponses, mi as GetEmailResponses, mn as CreateFunctionResponses, mo as ReplayEmailWebhooksError, mr as DownloadAttachmentsResponse, ms as SetFunctionSecretResponse, mt as startAgentSignup, n as PrimitiveClient, na as InboxStatusDomain, nc as UpdateAccountResponses, ni as FunctionTestRunTrace, nl as Auth, nn as CreateEndpointResponses, no as PollCliLoginData, nr as DiscardEmailContentData, ns as SendPermissionAnyRecipient, nt as listSentEmails, o as SendInput, oa as InboxStatusRecentEmailSummary, oc as UpdateDomainInput, oi as GetAccountError, on as CreateFilterInput, oo as PollCliLoginResponse, or as DiscardEmailContentResponses, os as SendPermissionsMeta, ot as replyToEmail, p as verifyWebhookSignature, pa as ListDomainsData, pc as UpdateEndpointResponse, pi as GetEmailResponse, pn as CreateFunctionResponse, po as ReplayEmailWebhooksData, pr as DownloadAttachmentsErrors, ps as SetFunctionSecretInput, pt as setFunctionSecret, q as getWebhookSecret, qa as ListFunctionsResponse, qc as Client, qi as GetThreadErrors, qn as DeleteFunctionResponses, qo as SendEmailData, qr as FunctionSecretWriteResult, qs as TestResult, qt as CliLogoutResult, r as PrimitiveClientOptions, ra as InboxStatusEndpointSummary, rc as UpdateDomainData, ri as GateDenial, rn as CreateFilterData, ro as PollCliLoginError, rr as DiscardEmailContentError, rs as SendPermissionManagedZone, rt as pollCliLogin, s as SendResult, sa as Limit, sc as UpdateDomainResponse, si as GetAccountErrors, sn as CreateFilterResponse, so as PollCliLoginResponses, sr as DkimSignature, ss as SentEmailDetail, st as resendAgentSignupVerification, t as ForwardInput, ta as InboxStatus, tc as UpdateAccountResponse, ti as FunctionTestRunState, tl as createConfig, tn as CreateEndpointResponse, to as ParsedEmailData, tr as DiscardContentResult, ts as SendPermissionAddress, tt as listFunctions, u as createPrimitiveClient, ua as ListDeliveriesErrors, uc as UpdateEndpointError, ui as GetEmailData, un as CreateFunctionError, uo as ReplayDeliveryErrors, ur as DomainVerifyResult, us as SetFunctionSecretData, ut as sdk_gen_d_exports, v as PrimitiveApiError, va as ListEmailsData, vc as UpdateFilterInput, vi as GetFunctionResponse, vn as CreateFunctionSecretErrors, vo as ReplayResult, vr as DownloadDomainZoneFileErrors, vs as StartAgentSignupErrors, vt as testFunction, w as createEndpoint, wa as ListEndpointsError, wc as UpdateFunctionInput, wi as GetFunctionTestRunTraceResponses, wn as DeleteDomainError, wo as ResendAgentSignupVerificationData, wr as DownloadRawEmailResponse, ws as StartCliLoginErrors, wt as verifyAgentSignup, x as createPrimitiveApiClient, xa as ListEmailsResponse, xc as UpdateFunctionData, xi as GetFunctionTestRunTraceError, xn as CreateFunctionSecretResponses, xo as ReplyToEmailErrors, xr as DownloadRawEmailData, xs as StartAgentSignupResponses, xt as updateEndpoint, y as PrimitiveApiErrorDetails, ya as ListEmailsError, yc as UpdateFilterResponse, yi as GetFunctionResponses, yn as CreateFunctionSecretInput, yo as ReplyToEmailData, yr as DownloadDomainZoneFileResponse, ys as StartAgentSignupInput, yt as updateAccount, z as getEmail, za as ListFunctionSecretsData, zc as VerifyCliSignupResponses, zi as GetSentEmailResponses, zn as DeleteFilterError, zo as RotateWebhookSecretErrors, zr as Endpoint, zs as TestEndpointResponse, zt as CliLoginPollResult } from "../index-CZjTjNV8.js";
|
|
2
2
|
import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-BAniFZK9.js";
|
|
3
|
-
import { u as EmailReceivedEvent } from "../types-
|
|
4
|
-
import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-
|
|
3
|
+
import { u as EmailReceivedEvent } from "../types-yNU-Oiea.js";
|
|
4
|
+
import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-7E9sW9eX.js";
|
|
5
5
|
export { Account, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentOrgRef, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, Config, Config as PrimitiveGeneratedApiConfig, CreateClientConfig, CreateEndpointData, CreateEndpointError, CreateEndpointErrors, CreateEndpointInput, CreateEndpointResponse, CreateEndpointResponses, CreateFilterData, CreateFilterError, CreateFilterErrors, CreateFilterInput, CreateFilterResponse, CreateFilterResponses, CreateFunctionData, CreateFunctionError, CreateFunctionErrors, CreateFunctionInput, CreateFunctionResponse, CreateFunctionResponses, CreateFunctionResult, CreateFunctionSecretData, CreateFunctionSecretError, CreateFunctionSecretErrors, CreateFunctionSecretInput, CreateFunctionSecretResponse, CreateFunctionSecretResponses, Cursor, DEFAULT_API_BASE_URL_1, DEFAULT_API_BASE_URL_2, DeleteDomainData, DeleteDomainError, DeleteDomainErrors, DeleteDomainResponse, DeleteDomainResponses, DeleteEmailData, DeleteEmailError, DeleteEmailErrors, DeleteEmailResponse, DeleteEmailResponses, DeleteEndpointData, DeleteEndpointError, DeleteEndpointErrors, DeleteEndpointResponse, DeleteEndpointResponses, DeleteFilterData, DeleteFilterError, DeleteFilterErrors, DeleteFilterResponse, DeleteFilterResponses, DeleteFunctionData, DeleteFunctionError, DeleteFunctionErrors, DeleteFunctionResponse, DeleteFunctionResponses, DeleteFunctionSecretData, DeleteFunctionSecretError, DeleteFunctionSecretErrors, DeleteFunctionSecretResponse, DeleteFunctionSecretResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, Limit, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, Options, Options as PrimitiveGeneratedApiOptions, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, PollCliLoginData, PollCliLoginError, PollCliLoginErrors, PollCliLoginInput, PollCliLoginResponse, PollCliLoginResponses, PrimitiveApiClient, PrimitiveApiClientOptions, PrimitiveApiError, PrimitiveApiErrorDetails, PrimitiveClient, PrimitiveClientOptions, RequestOptions as PrimitiveGeneratedApiRequestOptions, RequestResult as PrimitiveGeneratedApiRequestResult, RequestResult, PrimitiveOperationManifest, PrimitiveParameterManifest, RequestOptions$1 as PrimitiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailResult, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, SentEmailStatus, SentEmailSummary, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, StartAgentSignupData, StartAgentSignupError, StartAgentSignupErrors, StartAgentSignupInput, StartAgentSignupResponse, StartAgentSignupResponses, StartCliLoginData, StartCliLoginError, StartCliLoginErrors, StartCliLoginInput, StartCliLoginResponse, StartCliLoginResponses, StartCliSignupData, StartCliSignupError, StartCliSignupErrors, StartCliSignupInput, StartCliSignupResponse, StartCliSignupResponses, StorageStats, SuccessEnvelope, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestFunctionData, TestFunctionError, TestFunctionErrors, TestFunctionResponse, TestFunctionResponses, TestInvocationResult, TestResult, Thread, ThreadMessage, UnverifiedDomain, UpdateAccountData, UpdateAccountError, UpdateAccountErrors, UpdateAccountInput, UpdateAccountResponse, UpdateAccountResponses, UpdateDomainData, UpdateDomainError, UpdateDomainErrors, UpdateDomainInput, UpdateDomainResponse, UpdateDomainResponses, UpdateEndpointData, UpdateEndpointError, UpdateEndpointErrors, UpdateEndpointInput, UpdateEndpointResponse, UpdateEndpointResponses, UpdateFilterData, UpdateFilterError, UpdateFilterErrors, UpdateFilterInput, UpdateFilterResponse, UpdateFilterResponses, UpdateFunctionData, UpdateFunctionError, UpdateFunctionErrors, UpdateFunctionInput, UpdateFunctionResponse, UpdateFunctionResponses, VerifiedDomain, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, addDomain, cliLogout, client, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getEmail, getFunction, getFunctionTestRunTrace, getInboxStatus, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, sendEmail, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ParsedDataFailed, D as RawContentDownloadOnly, M as WebhookAttachment, O as RawContentInline, S as ParsedDataComplete, c as EmailAnalysis, l as EmailAuth, s as EmailAddress, u as EmailReceivedEvent, w as ParsedError } from "../types-
|
|
2
|
-
import { C as signStandardWebhooksPayload, h as WEBHOOK_VERSION, j as signWebhookPayload, k as SignResult, x as StandardWebhooksSignResult } from "../index-
|
|
1
|
+
import { C as ParsedDataFailed, D as RawContentDownloadOnly, M as WebhookAttachment, O as RawContentInline, S as ParsedDataComplete, c as EmailAnalysis, l as EmailAuth, s as EmailAddress, u as EmailReceivedEvent, w as ParsedError } from "../types-yNU-Oiea.js";
|
|
2
|
+
import { C as signStandardWebhooksPayload, h as WEBHOOK_VERSION, j as signWebhookPayload, k as SignResult, x as StandardWebhooksSignResult } from "../index-DR978rq5.js";
|
|
3
3
|
|
|
4
4
|
//#region src/contract/contract.d.ts
|
|
5
5
|
/** Maximum raw email size for inline inclusion (256 KB). */
|
package/dist/contract/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as signStandardWebhooksPayload, L as validateEmailReceivedEvent, M as signWebhookPayload, d as WEBHOOK_VERSION } from "../webhook-
|
|
1
|
+
import { E as signStandardWebhooksPayload, L as validateEmailReceivedEvent, M as signWebhookPayload, d as WEBHOOK_VERSION } from "../webhook-BAwK8EOG.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
//#region src/contract/contract.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as WebhookAttachment, c as EmailAnalysis, l as EmailAuth, u as EmailReceivedEvent } from "./types-
|
|
1
|
+
import { M as WebhookAttachment, c as EmailAnalysis, l as EmailAuth, u as EmailReceivedEvent } from "./types-yNU-Oiea.js";
|
|
2
2
|
import { ErrorObject } from "ajv";
|
|
3
3
|
|
|
4
4
|
//#region src/webhook/received-email.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as WebhookEvent, j as ValidateEmailAuthResult, l as EmailAuth, u as EmailReceivedEvent } from "./types-
|
|
2
|
-
import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-
|
|
1
|
+
import { N as WebhookEvent, j as ValidateEmailAuthResult, l as EmailAuth, u as EmailReceivedEvent } from "./types-yNU-Oiea.js";
|
|
2
|
+
import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-7E9sW9eX.js";
|
|
3
3
|
|
|
4
4
|
//#region src/validation.d.ts
|
|
5
5
|
interface ValidationSuccess<T> {
|
|
@@ -317,6 +317,10 @@ declare const emailReceivedEventJsonSchema: {
|
|
|
317
317
|
readonly type: "string";
|
|
318
318
|
readonly description: "Unique email ID in Primitive. Use this ID when calling Primitive APIs to reference this email.";
|
|
319
319
|
};
|
|
320
|
+
readonly thread_id: {
|
|
321
|
+
readonly type: ["string", "null"];
|
|
322
|
+
readonly description: "Conversation thread this email belongs to. Inbound and outbound messages in the same conversation share a thread_id; fetch GET /v1/threads/{thread_id} for the full thread. Null on messages received before threading was enabled.";
|
|
323
|
+
};
|
|
320
324
|
readonly received_at: {
|
|
321
325
|
readonly type: "string";
|
|
322
326
|
readonly format: "date-time";
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-CZjTjNV8.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-yNU-Oiea.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-7E9sW9eX.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-DR978rq5.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
1
|
import { l as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-Dto6GBP0.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-
|
|
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-BAwK8EOG.js";
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
const primitive = {
|
|
6
6
|
client,
|
package/dist/parser/index.d.ts
CHANGED
|
@@ -64,6 +64,10 @@ interface EmailReceivedEvent$1 {
|
|
|
64
64
|
* Unique email ID in Primitive. Use this ID when calling Primitive APIs to reference this email.
|
|
65
65
|
*/
|
|
66
66
|
id: string;
|
|
67
|
+
/**
|
|
68
|
+
* Conversation thread this email belongs to. Inbound and outbound messages in the same conversation share a thread_id; fetch GET /v1/threads/{thread_id} for the full thread. Null on messages received before threading was enabled.
|
|
69
|
+
*/
|
|
70
|
+
thread_id?: (string | null);
|
|
67
71
|
/**
|
|
68
72
|
* ISO 8601 timestamp (UTC) when Primitive received the email.
|
|
69
73
|
*/
|
package/dist/webhook/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
2
|
-
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-
|
|
3
|
-
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-
|
|
1
|
+
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-yNU-Oiea.js";
|
|
2
|
+
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-7E9sW9eX.js";
|
|
3
|
+
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-DR978rq5.js";
|
|
4
4
|
export { AuthConfidence, AuthVerdict, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcResult, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_VERSION, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, buildForwardSubject, buildReplySubject, confirmedHeaders, decodeRawEmail, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, handleWebhook, isDownloadExpired, isEmailReceivedEvent, isRawIncluded, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
|
package/dist/webhook/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
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";
|
|
2
|
-
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-
|
|
2
|
+
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-BAwK8EOG.js";
|
|
3
3
|
export { AuthConfidence, AuthVerdict, DkimResult, DmarcPolicy, DmarcResult, EventType, ForwardVerdict, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedStatus, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawEmailDecodeError, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, SpfResult, VERIFICATION_ERRORS, WEBHOOK_VERSION, WebhookPayloadError, WebhookValidationError, WebhookVerificationError, buildForwardSubject, buildReplySubject, confirmedHeaders, decodeRawEmail, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, handleWebhook, isDownloadExpired, isEmailReceivedEvent, isRawIncluded, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
|
|
@@ -56,6 +56,10 @@ const schema12 = {
|
|
|
56
56
|
"type": "string",
|
|
57
57
|
"description": "Unique email ID in Primitive. Use this ID when calling Primitive APIs to reference this email."
|
|
58
58
|
},
|
|
59
|
+
"thread_id": {
|
|
60
|
+
"type": ["string", "null"],
|
|
61
|
+
"description": "Conversation thread this email belongs to. Inbound and outbound messages in the same conversation share a thread_id; fetch GET /v1/threads/{thread_id} for the full thread. Null on messages received before threading was enabled."
|
|
62
|
+
},
|
|
59
63
|
"received_at": {
|
|
60
64
|
"type": "string",
|
|
61
65
|
"format": "date-time",
|
|
@@ -5239,364 +5243,379 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5239
5243
|
errors++;
|
|
5240
5244
|
}
|
|
5241
5245
|
}
|
|
5246
|
+
if (data7.thread_id !== void 0) {
|
|
5247
|
+
let data9 = data7.thread_id;
|
|
5248
|
+
if (typeof data9 !== "string" && data9 !== null) {
|
|
5249
|
+
const err29 = {
|
|
5250
|
+
instancePath: instancePath + "/email/thread_id",
|
|
5251
|
+
schemaPath: "#/properties/email/properties/thread_id/type",
|
|
5252
|
+
keyword: "type",
|
|
5253
|
+
params: { type: schema12.properties.email.properties.thread_id.type },
|
|
5254
|
+
message: "must be string,null"
|
|
5255
|
+
};
|
|
5256
|
+
if (vErrors === null) vErrors = [err29];
|
|
5257
|
+
else vErrors.push(err29);
|
|
5258
|
+
errors++;
|
|
5259
|
+
}
|
|
5260
|
+
}
|
|
5242
5261
|
if (data7.received_at !== void 0) {
|
|
5243
|
-
let
|
|
5244
|
-
if (typeof
|
|
5245
|
-
if (!formats0.test(
|
|
5246
|
-
const
|
|
5262
|
+
let data10 = data7.received_at;
|
|
5263
|
+
if (typeof data10 === "string") {
|
|
5264
|
+
if (!formats0.test(data10)) {
|
|
5265
|
+
const err30 = {
|
|
5247
5266
|
instancePath: instancePath + "/email/received_at",
|
|
5248
5267
|
schemaPath: "#/properties/email/properties/received_at/format",
|
|
5249
5268
|
keyword: "format",
|
|
5250
5269
|
params: { format: "date-time" },
|
|
5251
5270
|
message: "must match format \"date-time\""
|
|
5252
5271
|
};
|
|
5253
|
-
if (vErrors === null) vErrors = [
|
|
5254
|
-
else vErrors.push(
|
|
5272
|
+
if (vErrors === null) vErrors = [err30];
|
|
5273
|
+
else vErrors.push(err30);
|
|
5255
5274
|
errors++;
|
|
5256
5275
|
}
|
|
5257
5276
|
} else {
|
|
5258
|
-
const
|
|
5277
|
+
const err31 = {
|
|
5259
5278
|
instancePath: instancePath + "/email/received_at",
|
|
5260
5279
|
schemaPath: "#/properties/email/properties/received_at/type",
|
|
5261
5280
|
keyword: "type",
|
|
5262
5281
|
params: { type: "string" },
|
|
5263
5282
|
message: "must be string"
|
|
5264
5283
|
};
|
|
5265
|
-
if (vErrors === null) vErrors = [
|
|
5266
|
-
else vErrors.push(
|
|
5284
|
+
if (vErrors === null) vErrors = [err31];
|
|
5285
|
+
else vErrors.push(err31);
|
|
5267
5286
|
errors++;
|
|
5268
5287
|
}
|
|
5269
5288
|
}
|
|
5270
5289
|
if (data7.smtp !== void 0) {
|
|
5271
|
-
let
|
|
5272
|
-
if (
|
|
5273
|
-
if (
|
|
5274
|
-
const
|
|
5290
|
+
let data11 = data7.smtp;
|
|
5291
|
+
if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
|
|
5292
|
+
if (data11.helo === void 0) {
|
|
5293
|
+
const err32 = {
|
|
5275
5294
|
instancePath: instancePath + "/email/smtp",
|
|
5276
5295
|
schemaPath: "#/properties/email/properties/smtp/required",
|
|
5277
5296
|
keyword: "required",
|
|
5278
5297
|
params: { missingProperty: "helo" },
|
|
5279
5298
|
message: "must have required property 'helo'"
|
|
5280
5299
|
};
|
|
5281
|
-
if (vErrors === null) vErrors = [
|
|
5282
|
-
else vErrors.push(
|
|
5300
|
+
if (vErrors === null) vErrors = [err32];
|
|
5301
|
+
else vErrors.push(err32);
|
|
5283
5302
|
errors++;
|
|
5284
5303
|
}
|
|
5285
|
-
if (
|
|
5286
|
-
const
|
|
5304
|
+
if (data11.mail_from === void 0) {
|
|
5305
|
+
const err33 = {
|
|
5287
5306
|
instancePath: instancePath + "/email/smtp",
|
|
5288
5307
|
schemaPath: "#/properties/email/properties/smtp/required",
|
|
5289
5308
|
keyword: "required",
|
|
5290
5309
|
params: { missingProperty: "mail_from" },
|
|
5291
5310
|
message: "must have required property 'mail_from'"
|
|
5292
5311
|
};
|
|
5293
|
-
if (vErrors === null) vErrors = [
|
|
5294
|
-
else vErrors.push(
|
|
5312
|
+
if (vErrors === null) vErrors = [err33];
|
|
5313
|
+
else vErrors.push(err33);
|
|
5295
5314
|
errors++;
|
|
5296
5315
|
}
|
|
5297
|
-
if (
|
|
5298
|
-
const
|
|
5316
|
+
if (data11.rcpt_to === void 0) {
|
|
5317
|
+
const err34 = {
|
|
5299
5318
|
instancePath: instancePath + "/email/smtp",
|
|
5300
5319
|
schemaPath: "#/properties/email/properties/smtp/required",
|
|
5301
5320
|
keyword: "required",
|
|
5302
5321
|
params: { missingProperty: "rcpt_to" },
|
|
5303
5322
|
message: "must have required property 'rcpt_to'"
|
|
5304
5323
|
};
|
|
5305
|
-
if (vErrors === null) vErrors = [
|
|
5306
|
-
else vErrors.push(
|
|
5324
|
+
if (vErrors === null) vErrors = [err34];
|
|
5325
|
+
else vErrors.push(err34);
|
|
5307
5326
|
errors++;
|
|
5308
5327
|
}
|
|
5309
|
-
if (
|
|
5310
|
-
let
|
|
5311
|
-
if (typeof
|
|
5312
|
-
const
|
|
5328
|
+
if (data11.helo !== void 0) {
|
|
5329
|
+
let data12 = data11.helo;
|
|
5330
|
+
if (typeof data12 !== "string" && data12 !== null) {
|
|
5331
|
+
const err35 = {
|
|
5313
5332
|
instancePath: instancePath + "/email/smtp/helo",
|
|
5314
5333
|
schemaPath: "#/properties/email/properties/smtp/properties/helo/type",
|
|
5315
5334
|
keyword: "type",
|
|
5316
5335
|
params: { type: schema12.properties.email.properties.smtp.properties.helo.type },
|
|
5317
5336
|
message: "must be string,null"
|
|
5318
5337
|
};
|
|
5319
|
-
if (vErrors === null) vErrors = [
|
|
5320
|
-
else vErrors.push(
|
|
5338
|
+
if (vErrors === null) vErrors = [err35];
|
|
5339
|
+
else vErrors.push(err35);
|
|
5321
5340
|
errors++;
|
|
5322
5341
|
}
|
|
5323
5342
|
}
|
|
5324
|
-
if (
|
|
5325
|
-
if (typeof
|
|
5326
|
-
const
|
|
5343
|
+
if (data11.mail_from !== void 0) {
|
|
5344
|
+
if (typeof data11.mail_from !== "string") {
|
|
5345
|
+
const err36 = {
|
|
5327
5346
|
instancePath: instancePath + "/email/smtp/mail_from",
|
|
5328
5347
|
schemaPath: "#/properties/email/properties/smtp/properties/mail_from/type",
|
|
5329
5348
|
keyword: "type",
|
|
5330
5349
|
params: { type: "string" },
|
|
5331
5350
|
message: "must be string"
|
|
5332
5351
|
};
|
|
5333
|
-
if (vErrors === null) vErrors = [
|
|
5334
|
-
else vErrors.push(
|
|
5352
|
+
if (vErrors === null) vErrors = [err36];
|
|
5353
|
+
else vErrors.push(err36);
|
|
5335
5354
|
errors++;
|
|
5336
5355
|
}
|
|
5337
5356
|
}
|
|
5338
|
-
if (
|
|
5339
|
-
let
|
|
5340
|
-
if (Array.isArray(
|
|
5341
|
-
if (
|
|
5342
|
-
const
|
|
5357
|
+
if (data11.rcpt_to !== void 0) {
|
|
5358
|
+
let data14 = data11.rcpt_to;
|
|
5359
|
+
if (Array.isArray(data14)) {
|
|
5360
|
+
if (data14.length < 1) {
|
|
5361
|
+
const err37 = {
|
|
5343
5362
|
instancePath: instancePath + "/email/smtp/rcpt_to",
|
|
5344
5363
|
schemaPath: "#/properties/email/properties/smtp/properties/rcpt_to/minItems",
|
|
5345
5364
|
keyword: "minItems",
|
|
5346
5365
|
params: { limit: 1 },
|
|
5347
5366
|
message: "must NOT have fewer than 1 items"
|
|
5348
5367
|
};
|
|
5349
|
-
if (vErrors === null) vErrors = [
|
|
5350
|
-
else vErrors.push(
|
|
5368
|
+
if (vErrors === null) vErrors = [err37];
|
|
5369
|
+
else vErrors.push(err37);
|
|
5351
5370
|
errors++;
|
|
5352
5371
|
}
|
|
5353
|
-
const len0 =
|
|
5354
|
-
for (let i0 = 0; i0 < len0; i0++) if (typeof
|
|
5355
|
-
const
|
|
5372
|
+
const len0 = data14.length;
|
|
5373
|
+
for (let i0 = 0; i0 < len0; i0++) if (typeof data14[i0] !== "string") {
|
|
5374
|
+
const err38 = {
|
|
5356
5375
|
instancePath: instancePath + "/email/smtp/rcpt_to/" + i0,
|
|
5357
5376
|
schemaPath: "#/properties/email/properties/smtp/properties/rcpt_to/items/type",
|
|
5358
5377
|
keyword: "type",
|
|
5359
5378
|
params: { type: "string" },
|
|
5360
5379
|
message: "must be string"
|
|
5361
5380
|
};
|
|
5362
|
-
if (vErrors === null) vErrors = [
|
|
5363
|
-
else vErrors.push(
|
|
5381
|
+
if (vErrors === null) vErrors = [err38];
|
|
5382
|
+
else vErrors.push(err38);
|
|
5364
5383
|
errors++;
|
|
5365
5384
|
}
|
|
5366
5385
|
} else {
|
|
5367
|
-
const
|
|
5386
|
+
const err39 = {
|
|
5368
5387
|
instancePath: instancePath + "/email/smtp/rcpt_to",
|
|
5369
5388
|
schemaPath: "#/properties/email/properties/smtp/properties/rcpt_to/type",
|
|
5370
5389
|
keyword: "type",
|
|
5371
5390
|
params: { type: "array" },
|
|
5372
5391
|
message: "must be array"
|
|
5373
5392
|
};
|
|
5374
|
-
if (vErrors === null) vErrors = [
|
|
5375
|
-
else vErrors.push(
|
|
5393
|
+
if (vErrors === null) vErrors = [err39];
|
|
5394
|
+
else vErrors.push(err39);
|
|
5376
5395
|
errors++;
|
|
5377
5396
|
}
|
|
5378
5397
|
}
|
|
5379
5398
|
} else {
|
|
5380
|
-
const
|
|
5399
|
+
const err40 = {
|
|
5381
5400
|
instancePath: instancePath + "/email/smtp",
|
|
5382
5401
|
schemaPath: "#/properties/email/properties/smtp/type",
|
|
5383
5402
|
keyword: "type",
|
|
5384
5403
|
params: { type: "object" },
|
|
5385
5404
|
message: "must be object"
|
|
5386
5405
|
};
|
|
5387
|
-
if (vErrors === null) vErrors = [
|
|
5388
|
-
else vErrors.push(
|
|
5406
|
+
if (vErrors === null) vErrors = [err40];
|
|
5407
|
+
else vErrors.push(err40);
|
|
5389
5408
|
errors++;
|
|
5390
5409
|
}
|
|
5391
5410
|
}
|
|
5392
5411
|
if (data7.headers !== void 0) {
|
|
5393
|
-
let
|
|
5394
|
-
if (
|
|
5395
|
-
if (
|
|
5396
|
-
const
|
|
5412
|
+
let data16 = data7.headers;
|
|
5413
|
+
if (data16 && typeof data16 == "object" && !Array.isArray(data16)) {
|
|
5414
|
+
if (data16.message_id === void 0) {
|
|
5415
|
+
const err41 = {
|
|
5397
5416
|
instancePath: instancePath + "/email/headers",
|
|
5398
5417
|
schemaPath: "#/properties/email/properties/headers/required",
|
|
5399
5418
|
keyword: "required",
|
|
5400
5419
|
params: { missingProperty: "message_id" },
|
|
5401
5420
|
message: "must have required property 'message_id'"
|
|
5402
5421
|
};
|
|
5403
|
-
if (vErrors === null) vErrors = [
|
|
5404
|
-
else vErrors.push(
|
|
5422
|
+
if (vErrors === null) vErrors = [err41];
|
|
5423
|
+
else vErrors.push(err41);
|
|
5405
5424
|
errors++;
|
|
5406
5425
|
}
|
|
5407
|
-
if (
|
|
5408
|
-
const
|
|
5426
|
+
if (data16.subject === void 0) {
|
|
5427
|
+
const err42 = {
|
|
5409
5428
|
instancePath: instancePath + "/email/headers",
|
|
5410
5429
|
schemaPath: "#/properties/email/properties/headers/required",
|
|
5411
5430
|
keyword: "required",
|
|
5412
5431
|
params: { missingProperty: "subject" },
|
|
5413
5432
|
message: "must have required property 'subject'"
|
|
5414
5433
|
};
|
|
5415
|
-
if (vErrors === null) vErrors = [
|
|
5416
|
-
else vErrors.push(
|
|
5434
|
+
if (vErrors === null) vErrors = [err42];
|
|
5435
|
+
else vErrors.push(err42);
|
|
5417
5436
|
errors++;
|
|
5418
5437
|
}
|
|
5419
|
-
if (
|
|
5420
|
-
const
|
|
5438
|
+
if (data16.from === void 0) {
|
|
5439
|
+
const err43 = {
|
|
5421
5440
|
instancePath: instancePath + "/email/headers",
|
|
5422
5441
|
schemaPath: "#/properties/email/properties/headers/required",
|
|
5423
5442
|
keyword: "required",
|
|
5424
5443
|
params: { missingProperty: "from" },
|
|
5425
5444
|
message: "must have required property 'from'"
|
|
5426
5445
|
};
|
|
5427
|
-
if (vErrors === null) vErrors = [
|
|
5428
|
-
else vErrors.push(
|
|
5446
|
+
if (vErrors === null) vErrors = [err43];
|
|
5447
|
+
else vErrors.push(err43);
|
|
5429
5448
|
errors++;
|
|
5430
5449
|
}
|
|
5431
|
-
if (
|
|
5432
|
-
const
|
|
5450
|
+
if (data16.to === void 0) {
|
|
5451
|
+
const err44 = {
|
|
5433
5452
|
instancePath: instancePath + "/email/headers",
|
|
5434
5453
|
schemaPath: "#/properties/email/properties/headers/required",
|
|
5435
5454
|
keyword: "required",
|
|
5436
5455
|
params: { missingProperty: "to" },
|
|
5437
5456
|
message: "must have required property 'to'"
|
|
5438
5457
|
};
|
|
5439
|
-
if (vErrors === null) vErrors = [
|
|
5440
|
-
else vErrors.push(
|
|
5458
|
+
if (vErrors === null) vErrors = [err44];
|
|
5459
|
+
else vErrors.push(err44);
|
|
5441
5460
|
errors++;
|
|
5442
5461
|
}
|
|
5443
|
-
if (
|
|
5444
|
-
const
|
|
5462
|
+
if (data16.date === void 0) {
|
|
5463
|
+
const err45 = {
|
|
5445
5464
|
instancePath: instancePath + "/email/headers",
|
|
5446
5465
|
schemaPath: "#/properties/email/properties/headers/required",
|
|
5447
5466
|
keyword: "required",
|
|
5448
5467
|
params: { missingProperty: "date" },
|
|
5449
5468
|
message: "must have required property 'date'"
|
|
5450
5469
|
};
|
|
5451
|
-
if (vErrors === null) vErrors = [
|
|
5452
|
-
else vErrors.push(
|
|
5470
|
+
if (vErrors === null) vErrors = [err45];
|
|
5471
|
+
else vErrors.push(err45);
|
|
5453
5472
|
errors++;
|
|
5454
5473
|
}
|
|
5455
|
-
if (
|
|
5456
|
-
let
|
|
5457
|
-
if (typeof
|
|
5458
|
-
const
|
|
5474
|
+
if (data16.message_id !== void 0) {
|
|
5475
|
+
let data17 = data16.message_id;
|
|
5476
|
+
if (typeof data17 !== "string" && data17 !== null) {
|
|
5477
|
+
const err46 = {
|
|
5459
5478
|
instancePath: instancePath + "/email/headers/message_id",
|
|
5460
5479
|
schemaPath: "#/properties/email/properties/headers/properties/message_id/type",
|
|
5461
5480
|
keyword: "type",
|
|
5462
5481
|
params: { type: schema12.properties.email.properties.headers.properties.message_id.type },
|
|
5463
5482
|
message: "must be string,null"
|
|
5464
5483
|
};
|
|
5465
|
-
if (vErrors === null) vErrors = [
|
|
5466
|
-
else vErrors.push(
|
|
5484
|
+
if (vErrors === null) vErrors = [err46];
|
|
5485
|
+
else vErrors.push(err46);
|
|
5467
5486
|
errors++;
|
|
5468
5487
|
}
|
|
5469
5488
|
}
|
|
5470
|
-
if (
|
|
5471
|
-
let
|
|
5472
|
-
if (typeof
|
|
5473
|
-
const
|
|
5489
|
+
if (data16.subject !== void 0) {
|
|
5490
|
+
let data18 = data16.subject;
|
|
5491
|
+
if (typeof data18 !== "string" && data18 !== null) {
|
|
5492
|
+
const err47 = {
|
|
5474
5493
|
instancePath: instancePath + "/email/headers/subject",
|
|
5475
5494
|
schemaPath: "#/properties/email/properties/headers/properties/subject/type",
|
|
5476
5495
|
keyword: "type",
|
|
5477
5496
|
params: { type: schema12.properties.email.properties.headers.properties.subject.type },
|
|
5478
5497
|
message: "must be string,null"
|
|
5479
5498
|
};
|
|
5480
|
-
if (vErrors === null) vErrors = [
|
|
5481
|
-
else vErrors.push(
|
|
5499
|
+
if (vErrors === null) vErrors = [err47];
|
|
5500
|
+
else vErrors.push(err47);
|
|
5482
5501
|
errors++;
|
|
5483
5502
|
}
|
|
5484
5503
|
}
|
|
5485
|
-
if (
|
|
5486
|
-
let
|
|
5487
|
-
if (typeof
|
|
5488
|
-
if (
|
|
5489
|
-
const
|
|
5504
|
+
if (data16.from !== void 0) {
|
|
5505
|
+
let data19 = data16.from;
|
|
5506
|
+
if (typeof data19 === "string") {
|
|
5507
|
+
if (data19.length < 1) {
|
|
5508
|
+
const err48 = {
|
|
5490
5509
|
instancePath: instancePath + "/email/headers/from",
|
|
5491
5510
|
schemaPath: "#/properties/email/properties/headers/properties/from/minLength",
|
|
5492
5511
|
keyword: "minLength",
|
|
5493
5512
|
params: { limit: 1 },
|
|
5494
5513
|
message: "must NOT have fewer than 1 characters"
|
|
5495
5514
|
};
|
|
5496
|
-
if (vErrors === null) vErrors = [
|
|
5497
|
-
else vErrors.push(
|
|
5515
|
+
if (vErrors === null) vErrors = [err48];
|
|
5516
|
+
else vErrors.push(err48);
|
|
5498
5517
|
errors++;
|
|
5499
5518
|
}
|
|
5500
5519
|
} else {
|
|
5501
|
-
const
|
|
5520
|
+
const err49 = {
|
|
5502
5521
|
instancePath: instancePath + "/email/headers/from",
|
|
5503
5522
|
schemaPath: "#/properties/email/properties/headers/properties/from/type",
|
|
5504
5523
|
keyword: "type",
|
|
5505
5524
|
params: { type: "string" },
|
|
5506
5525
|
message: "must be string"
|
|
5507
5526
|
};
|
|
5508
|
-
if (vErrors === null) vErrors = [
|
|
5509
|
-
else vErrors.push(
|
|
5527
|
+
if (vErrors === null) vErrors = [err49];
|
|
5528
|
+
else vErrors.push(err49);
|
|
5510
5529
|
errors++;
|
|
5511
5530
|
}
|
|
5512
5531
|
}
|
|
5513
|
-
if (
|
|
5514
|
-
let
|
|
5515
|
-
if (typeof
|
|
5516
|
-
if (
|
|
5517
|
-
const
|
|
5532
|
+
if (data16.to !== void 0) {
|
|
5533
|
+
let data20 = data16.to;
|
|
5534
|
+
if (typeof data20 === "string") {
|
|
5535
|
+
if (data20.length < 1) {
|
|
5536
|
+
const err50 = {
|
|
5518
5537
|
instancePath: instancePath + "/email/headers/to",
|
|
5519
5538
|
schemaPath: "#/properties/email/properties/headers/properties/to/minLength",
|
|
5520
5539
|
keyword: "minLength",
|
|
5521
5540
|
params: { limit: 1 },
|
|
5522
5541
|
message: "must NOT have fewer than 1 characters"
|
|
5523
5542
|
};
|
|
5524
|
-
if (vErrors === null) vErrors = [
|
|
5525
|
-
else vErrors.push(
|
|
5543
|
+
if (vErrors === null) vErrors = [err50];
|
|
5544
|
+
else vErrors.push(err50);
|
|
5526
5545
|
errors++;
|
|
5527
5546
|
}
|
|
5528
5547
|
} else {
|
|
5529
|
-
const
|
|
5548
|
+
const err51 = {
|
|
5530
5549
|
instancePath: instancePath + "/email/headers/to",
|
|
5531
5550
|
schemaPath: "#/properties/email/properties/headers/properties/to/type",
|
|
5532
5551
|
keyword: "type",
|
|
5533
5552
|
params: { type: "string" },
|
|
5534
5553
|
message: "must be string"
|
|
5535
5554
|
};
|
|
5536
|
-
if (vErrors === null) vErrors = [
|
|
5537
|
-
else vErrors.push(
|
|
5555
|
+
if (vErrors === null) vErrors = [err51];
|
|
5556
|
+
else vErrors.push(err51);
|
|
5538
5557
|
errors++;
|
|
5539
5558
|
}
|
|
5540
5559
|
}
|
|
5541
|
-
if (
|
|
5542
|
-
let
|
|
5543
|
-
if (typeof
|
|
5544
|
-
const
|
|
5560
|
+
if (data16.date !== void 0) {
|
|
5561
|
+
let data21 = data16.date;
|
|
5562
|
+
if (typeof data21 !== "string" && data21 !== null) {
|
|
5563
|
+
const err52 = {
|
|
5545
5564
|
instancePath: instancePath + "/email/headers/date",
|
|
5546
5565
|
schemaPath: "#/properties/email/properties/headers/properties/date/type",
|
|
5547
5566
|
keyword: "type",
|
|
5548
5567
|
params: { type: schema12.properties.email.properties.headers.properties.date.type },
|
|
5549
5568
|
message: "must be string,null"
|
|
5550
5569
|
};
|
|
5551
|
-
if (vErrors === null) vErrors = [
|
|
5552
|
-
else vErrors.push(
|
|
5570
|
+
if (vErrors === null) vErrors = [err52];
|
|
5571
|
+
else vErrors.push(err52);
|
|
5553
5572
|
errors++;
|
|
5554
5573
|
}
|
|
5555
5574
|
}
|
|
5556
5575
|
} else {
|
|
5557
|
-
const
|
|
5576
|
+
const err53 = {
|
|
5558
5577
|
instancePath: instancePath + "/email/headers",
|
|
5559
5578
|
schemaPath: "#/properties/email/properties/headers/type",
|
|
5560
5579
|
keyword: "type",
|
|
5561
5580
|
params: { type: "object" },
|
|
5562
5581
|
message: "must be object"
|
|
5563
5582
|
};
|
|
5564
|
-
if (vErrors === null) vErrors = [
|
|
5565
|
-
else vErrors.push(
|
|
5583
|
+
if (vErrors === null) vErrors = [err53];
|
|
5584
|
+
else vErrors.push(err53);
|
|
5566
5585
|
errors++;
|
|
5567
5586
|
}
|
|
5568
5587
|
}
|
|
5569
5588
|
if (data7.content !== void 0) {
|
|
5570
|
-
let
|
|
5571
|
-
if (
|
|
5572
|
-
if (
|
|
5573
|
-
const
|
|
5589
|
+
let data22 = data7.content;
|
|
5590
|
+
if (data22 && typeof data22 == "object" && !Array.isArray(data22)) {
|
|
5591
|
+
if (data22.raw === void 0) {
|
|
5592
|
+
const err54 = {
|
|
5574
5593
|
instancePath: instancePath + "/email/content",
|
|
5575
5594
|
schemaPath: "#/properties/email/properties/content/required",
|
|
5576
5595
|
keyword: "required",
|
|
5577
5596
|
params: { missingProperty: "raw" },
|
|
5578
5597
|
message: "must have required property 'raw'"
|
|
5579
5598
|
};
|
|
5580
|
-
if (vErrors === null) vErrors = [
|
|
5581
|
-
else vErrors.push(
|
|
5599
|
+
if (vErrors === null) vErrors = [err54];
|
|
5600
|
+
else vErrors.push(err54);
|
|
5582
5601
|
errors++;
|
|
5583
5602
|
}
|
|
5584
|
-
if (
|
|
5585
|
-
const
|
|
5603
|
+
if (data22.download === void 0) {
|
|
5604
|
+
const err55 = {
|
|
5586
5605
|
instancePath: instancePath + "/email/content",
|
|
5587
5606
|
schemaPath: "#/properties/email/properties/content/required",
|
|
5588
5607
|
keyword: "required",
|
|
5589
5608
|
params: { missingProperty: "download" },
|
|
5590
5609
|
message: "must have required property 'download'"
|
|
5591
5610
|
};
|
|
5592
|
-
if (vErrors === null) vErrors = [
|
|
5593
|
-
else vErrors.push(
|
|
5611
|
+
if (vErrors === null) vErrors = [err55];
|
|
5612
|
+
else vErrors.push(err55);
|
|
5594
5613
|
errors++;
|
|
5595
5614
|
}
|
|
5596
|
-
if (
|
|
5597
|
-
if (!validate12(
|
|
5615
|
+
if (data22.raw !== void 0) {
|
|
5616
|
+
if (!validate12(data22.raw, {
|
|
5598
5617
|
instancePath: instancePath + "/email/content/raw",
|
|
5599
|
-
parentData:
|
|
5618
|
+
parentData: data22,
|
|
5600
5619
|
parentDataProperty: "raw",
|
|
5601
5620
|
rootData
|
|
5602
5621
|
})) {
|
|
@@ -5604,124 +5623,124 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5604
5623
|
errors = vErrors.length;
|
|
5605
5624
|
}
|
|
5606
5625
|
}
|
|
5607
|
-
if (
|
|
5608
|
-
let
|
|
5609
|
-
if (
|
|
5610
|
-
if (
|
|
5611
|
-
const
|
|
5626
|
+
if (data22.download !== void 0) {
|
|
5627
|
+
let data24 = data22.download;
|
|
5628
|
+
if (data24 && typeof data24 == "object" && !Array.isArray(data24)) {
|
|
5629
|
+
if (data24.url === void 0) {
|
|
5630
|
+
const err56 = {
|
|
5612
5631
|
instancePath: instancePath + "/email/content/download",
|
|
5613
5632
|
schemaPath: "#/properties/email/properties/content/properties/download/required",
|
|
5614
5633
|
keyword: "required",
|
|
5615
5634
|
params: { missingProperty: "url" },
|
|
5616
5635
|
message: "must have required property 'url'"
|
|
5617
5636
|
};
|
|
5618
|
-
if (vErrors === null) vErrors = [
|
|
5619
|
-
else vErrors.push(
|
|
5637
|
+
if (vErrors === null) vErrors = [err56];
|
|
5638
|
+
else vErrors.push(err56);
|
|
5620
5639
|
errors++;
|
|
5621
5640
|
}
|
|
5622
|
-
if (
|
|
5623
|
-
const
|
|
5641
|
+
if (data24.expires_at === void 0) {
|
|
5642
|
+
const err57 = {
|
|
5624
5643
|
instancePath: instancePath + "/email/content/download",
|
|
5625
5644
|
schemaPath: "#/properties/email/properties/content/properties/download/required",
|
|
5626
5645
|
keyword: "required",
|
|
5627
5646
|
params: { missingProperty: "expires_at" },
|
|
5628
5647
|
message: "must have required property 'expires_at'"
|
|
5629
5648
|
};
|
|
5630
|
-
if (vErrors === null) vErrors = [
|
|
5631
|
-
else vErrors.push(
|
|
5649
|
+
if (vErrors === null) vErrors = [err57];
|
|
5650
|
+
else vErrors.push(err57);
|
|
5632
5651
|
errors++;
|
|
5633
5652
|
}
|
|
5634
|
-
if (
|
|
5635
|
-
let
|
|
5636
|
-
if (typeof
|
|
5637
|
-
if (!pattern4.test(
|
|
5638
|
-
const
|
|
5653
|
+
if (data24.url !== void 0) {
|
|
5654
|
+
let data25 = data24.url;
|
|
5655
|
+
if (typeof data25 === "string") {
|
|
5656
|
+
if (!pattern4.test(data25)) {
|
|
5657
|
+
const err58 = {
|
|
5639
5658
|
instancePath: instancePath + "/email/content/download/url",
|
|
5640
5659
|
schemaPath: "#/properties/email/properties/content/properties/download/properties/url/pattern",
|
|
5641
5660
|
keyword: "pattern",
|
|
5642
5661
|
params: { pattern: "^https?://" },
|
|
5643
5662
|
message: "must match pattern \"^https?://\""
|
|
5644
5663
|
};
|
|
5645
|
-
if (vErrors === null) vErrors = [
|
|
5646
|
-
else vErrors.push(
|
|
5664
|
+
if (vErrors === null) vErrors = [err58];
|
|
5665
|
+
else vErrors.push(err58);
|
|
5647
5666
|
errors++;
|
|
5648
5667
|
}
|
|
5649
|
-
if (!formats4.test(
|
|
5650
|
-
const
|
|
5668
|
+
if (!formats4.test(data25)) {
|
|
5669
|
+
const err59 = {
|
|
5651
5670
|
instancePath: instancePath + "/email/content/download/url",
|
|
5652
5671
|
schemaPath: "#/properties/email/properties/content/properties/download/properties/url/format",
|
|
5653
5672
|
keyword: "format",
|
|
5654
5673
|
params: { format: "uri" },
|
|
5655
5674
|
message: "must match format \"uri\""
|
|
5656
5675
|
};
|
|
5657
|
-
if (vErrors === null) vErrors = [
|
|
5658
|
-
else vErrors.push(
|
|
5676
|
+
if (vErrors === null) vErrors = [err59];
|
|
5677
|
+
else vErrors.push(err59);
|
|
5659
5678
|
errors++;
|
|
5660
5679
|
}
|
|
5661
5680
|
} else {
|
|
5662
|
-
const
|
|
5681
|
+
const err60 = {
|
|
5663
5682
|
instancePath: instancePath + "/email/content/download/url",
|
|
5664
5683
|
schemaPath: "#/properties/email/properties/content/properties/download/properties/url/type",
|
|
5665
5684
|
keyword: "type",
|
|
5666
5685
|
params: { type: "string" },
|
|
5667
5686
|
message: "must be string"
|
|
5668
5687
|
};
|
|
5669
|
-
if (vErrors === null) vErrors = [
|
|
5670
|
-
else vErrors.push(
|
|
5688
|
+
if (vErrors === null) vErrors = [err60];
|
|
5689
|
+
else vErrors.push(err60);
|
|
5671
5690
|
errors++;
|
|
5672
5691
|
}
|
|
5673
5692
|
}
|
|
5674
|
-
if (
|
|
5675
|
-
let
|
|
5676
|
-
if (typeof
|
|
5677
|
-
if (!formats0.test(
|
|
5678
|
-
const
|
|
5693
|
+
if (data24.expires_at !== void 0) {
|
|
5694
|
+
let data26 = data24.expires_at;
|
|
5695
|
+
if (typeof data26 === "string") {
|
|
5696
|
+
if (!formats0.test(data26)) {
|
|
5697
|
+
const err61 = {
|
|
5679
5698
|
instancePath: instancePath + "/email/content/download/expires_at",
|
|
5680
5699
|
schemaPath: "#/properties/email/properties/content/properties/download/properties/expires_at/format",
|
|
5681
5700
|
keyword: "format",
|
|
5682
5701
|
params: { format: "date-time" },
|
|
5683
5702
|
message: "must match format \"date-time\""
|
|
5684
5703
|
};
|
|
5685
|
-
if (vErrors === null) vErrors = [
|
|
5686
|
-
else vErrors.push(
|
|
5704
|
+
if (vErrors === null) vErrors = [err61];
|
|
5705
|
+
else vErrors.push(err61);
|
|
5687
5706
|
errors++;
|
|
5688
5707
|
}
|
|
5689
5708
|
} else {
|
|
5690
|
-
const
|
|
5709
|
+
const err62 = {
|
|
5691
5710
|
instancePath: instancePath + "/email/content/download/expires_at",
|
|
5692
5711
|
schemaPath: "#/properties/email/properties/content/properties/download/properties/expires_at/type",
|
|
5693
5712
|
keyword: "type",
|
|
5694
5713
|
params: { type: "string" },
|
|
5695
5714
|
message: "must be string"
|
|
5696
5715
|
};
|
|
5697
|
-
if (vErrors === null) vErrors = [
|
|
5698
|
-
else vErrors.push(
|
|
5716
|
+
if (vErrors === null) vErrors = [err62];
|
|
5717
|
+
else vErrors.push(err62);
|
|
5699
5718
|
errors++;
|
|
5700
5719
|
}
|
|
5701
5720
|
}
|
|
5702
5721
|
} else {
|
|
5703
|
-
const
|
|
5722
|
+
const err63 = {
|
|
5704
5723
|
instancePath: instancePath + "/email/content/download",
|
|
5705
5724
|
schemaPath: "#/properties/email/properties/content/properties/download/type",
|
|
5706
5725
|
keyword: "type",
|
|
5707
5726
|
params: { type: "object" },
|
|
5708
5727
|
message: "must be object"
|
|
5709
5728
|
};
|
|
5710
|
-
if (vErrors === null) vErrors = [
|
|
5711
|
-
else vErrors.push(
|
|
5729
|
+
if (vErrors === null) vErrors = [err63];
|
|
5730
|
+
else vErrors.push(err63);
|
|
5712
5731
|
errors++;
|
|
5713
5732
|
}
|
|
5714
5733
|
}
|
|
5715
5734
|
} else {
|
|
5716
|
-
const
|
|
5735
|
+
const err64 = {
|
|
5717
5736
|
instancePath: instancePath + "/email/content",
|
|
5718
5737
|
schemaPath: "#/properties/email/properties/content/type",
|
|
5719
5738
|
keyword: "type",
|
|
5720
5739
|
params: { type: "object" },
|
|
5721
5740
|
message: "must be object"
|
|
5722
5741
|
};
|
|
5723
|
-
if (vErrors === null) vErrors = [
|
|
5724
|
-
else vErrors.push(
|
|
5742
|
+
if (vErrors === null) vErrors = [err64];
|
|
5743
|
+
else vErrors.push(err64);
|
|
5725
5744
|
errors++;
|
|
5726
5745
|
}
|
|
5727
5746
|
}
|
|
@@ -5759,28 +5778,28 @@ function validate11(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
5759
5778
|
}
|
|
5760
5779
|
}
|
|
5761
5780
|
} else {
|
|
5762
|
-
const
|
|
5781
|
+
const err65 = {
|
|
5763
5782
|
instancePath: instancePath + "/email",
|
|
5764
5783
|
schemaPath: "#/properties/email/type",
|
|
5765
5784
|
keyword: "type",
|
|
5766
5785
|
params: { type: "object" },
|
|
5767
5786
|
message: "must be object"
|
|
5768
5787
|
};
|
|
5769
|
-
if (vErrors === null) vErrors = [
|
|
5770
|
-
else vErrors.push(
|
|
5788
|
+
if (vErrors === null) vErrors = [err65];
|
|
5789
|
+
else vErrors.push(err65);
|
|
5771
5790
|
errors++;
|
|
5772
5791
|
}
|
|
5773
5792
|
}
|
|
5774
5793
|
} else {
|
|
5775
|
-
const
|
|
5794
|
+
const err66 = {
|
|
5776
5795
|
instancePath,
|
|
5777
5796
|
schemaPath: "#/type",
|
|
5778
5797
|
keyword: "type",
|
|
5779
5798
|
params: { type: "object" },
|
|
5780
5799
|
message: "must be object"
|
|
5781
5800
|
};
|
|
5782
|
-
if (vErrors === null) vErrors = [
|
|
5783
|
-
else vErrors.push(
|
|
5801
|
+
if (vErrors === null) vErrors = [err66];
|
|
5802
|
+
else vErrors.push(err66);
|
|
5784
5803
|
errors++;
|
|
5785
5804
|
}
|
|
5786
5805
|
validate11.errors = vErrors;
|
|
@@ -6481,6 +6500,10 @@ const emailReceivedEventJsonSchema = {
|
|
|
6481
6500
|
"type": "string",
|
|
6482
6501
|
"description": "Unique email ID in Primitive. Use this ID when calling Primitive APIs to reference this email."
|
|
6483
6502
|
},
|
|
6503
|
+
"thread_id": {
|
|
6504
|
+
"type": ["string", "null"],
|
|
6505
|
+
"description": "Conversation thread this email belongs to. Inbound and outbound messages in the same conversation share a thread_id; fetch GET /v1/threads/{thread_id} for the full thread. Null on messages received before threading was enabled."
|
|
6506
|
+
},
|
|
6484
6507
|
"received_at": {
|
|
6485
6508
|
"type": "string",
|
|
6486
6509
|
"format": "date-time",
|
package/package.json
CHANGED