@primitivedotdev/sdk 1.26.0 → 1.26.1
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/README.md +16 -1
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/{api-BXlPoOdE.js → api-BEv_YML6.js} +1 -1
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.js +1 -1
- package/dist/{errors-Bo0f7eId.js → errors-BVnAu5jX.js} +19 -4
- package/dist/{errors-BgI9FKHK.d.ts → errors-CCJX3I_T.d.ts} +11 -5
- package/dist/{index-BGyYkqRn.d.ts → index-B1a5L2zU.d.ts} +65 -1
- package/dist/{index-fS1gVNuX.d.ts → index-JpXUV16f.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-CPcHOHgd.js → operations.generated-DVHnicf5.js} +44 -1
- package/dist/webhook/index.d.ts +2 -2
- package/dist/webhook/index.js +2 -2
- package/dist/{webhook-BtyuJtUF.js → webhook-CLVRgb-L.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -223,7 +223,22 @@ if (trust.trusted) {
|
|
|
223
223
|
}
|
|
224
224
|
```
|
|
225
225
|
|
|
226
|
-
`trusted`
|
|
226
|
+
`trusted` requires a `legit` verdict and a strict-parsed single From address in the exact expected `domain` (and exact `sender` when given). `reason` names the first check that failed.
|
|
227
|
+
|
|
228
|
+
The reported DMARC domain can be an organizational domain such as `example.com`
|
|
229
|
+
for mail from `player@mail.example.com`. When it differs from the expected
|
|
230
|
+
From domain, the helper requires DMARC pass and a passing, aligned DKIM signature
|
|
231
|
+
from that exact expected domain. For a managed inbox such as
|
|
232
|
+
`player@test-inbox.primitive.email`, it also accepts `primitive.email` as the
|
|
233
|
+
signer, relying on Primitive to authorize the sending identity. A sibling
|
|
234
|
+
signer, an arbitrary parent signer, or SPF alone cannot satisfy this exception.
|
|
235
|
+
The qualifying signature must use RSA-SHA256 with a reported key size of at
|
|
236
|
+
least 1024 bits, or Ed25519-SHA256. Missing RSA key size or an unknown algorithm
|
|
237
|
+
fails closed on this path. Continue passing the full subdomain as the expected domain.
|
|
238
|
+
|
|
239
|
+
Use this helper only with a verified Primitive webhook or an event obtained
|
|
240
|
+
through the authenticated API. It consumes the server's authentication results;
|
|
241
|
+
it does not verify DKIM or the webhook signature itself.
|
|
227
242
|
|
|
228
243
|
If you are writing your own check instead, three details matter:
|
|
229
244
|
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as createChallenge, $_ as UpdateFilterResponses, $a as DefineAgentErrors, $c as GetConversationError, $d as ListPayoutAddressesResponse, $f as OutboundStatusDomain, $g as TestEndpointError, $h as SetOrgSecretError, $i as CreateFilterResponse, $l as GetSentEmailData, $m as SearchEmailsResponses, $n as unpublishAgent, $o as DeleteRouteResponses, $p as ReplayDeliveryErrors, $r as CliLogoutErrors, $s as DownloadSentAttachmentPartResponse, $t as installTemplate, $u as ListDeclinedPaymentsData, $v as VerifyCliSignupResponse, A as WaitForNextOptions, A_ as UpdateAccountData, Aa as CreateRouteResponse, Ac as FunctionTestRunOutboundRequest, Ad as ListFunctionLogsData, Af as ListWakeAuthorizationsError, Ag as StartCliSignupError, Ah as SendPermissionsMeta, Ai as CreateAgentClaimLinkResponses, Al as GetMemoryErrors, Am as ResendCliSignupVerificationResponses, An as rescheduleSentEmail, Ao as DeleteFunctionSecretErrors, Ap as RecipientRoute, Ar as AgentSignupStartResult, As as DownloadAttachmentsData, At as downloadSentAttachmentPart, Au as GetWakeScheduleError, Av as UpdateWakeScheduleData, Ay as Auth, B as PrimitiveApiClientOptions, B_ as UpdateDomainResponse, Ba as CreateWakeScheduleErrors, Bc as GetAccountResponse, Bd as ListFunctionsData, Bf as ListWakeSchedulesError, Bg as TemplateInstallStatus, Bh as SetFunctionSecretData, Bi as CreateEmailChallengeInput, Bl as GetOutboundStatusErrors, Bm as RotateWebhookSecretResponse, Bn as sendEmail, Bo as DeleteOrgSecretError, Bp as RemoveAgentConnectionData, Br as CancelSentEmailError, Bs as DownloadEmailAttachmentPartData, Bt as getMemory, Bu as InboxStatus, Bv as VerifyAgentClaimInput, C as SemanticSearchResponse, C_ as UnpublishAgentResponses, Ca as CreateRegistryInput, Cc as FunctionRouting, Cd as ListEndpointsResponses, Cf as ListSentEmailsResponses, Cg as StartCliLoginData, Ch as SendMailPayloadRef, Ci as CreateAgentAccountResponse, Cl as GetInboxStatusData, Cm as ResendAgentSignupVerificationResponse, Cn as pullWebhookEvent, Co as DeleteFunctionData, Cp as PullWebhookEventData, Cr as AgentAccountResult, Cs as DkimSignature, Ct as deleteWakeAuthorization, Cu as GetTemplateResponses, Cv as UpdateSpendPolicyResponses, Cy as Config, D as SendPayloadReference, D_ as UnsetFunctionRouteResponse, Da as CreateRouteError, Dc as FunctionTestRunDelivery, Dd as ListFiltersErrors, Df as ListTemplatesResponse, Dg as StartCliLoginResponse, Dh as SendPermissionManagedZone, Di as CreateAgentClaimLinkErrors, Dl as GetInboxStatusResponses, Dm as ResendCliSignupVerificationErrors, Dn as replayDelivery, Do as DeleteFunctionResponses, Dp as PullWebhookEventResponses, Dr as AgentClaimStartResult, Ds as DomainDnsHealthStatus, Dt as downloadDomainZoneFile, Du as GetThreadResponse, Dv as UpdateWakeAuthorizationInput, Dy as RequestResult, E as SendInput, E_ as UnsetFunctionRouteErrors, Ea as CreateRouteData, Ec as FunctionTestRun, Ed as ListFiltersError, Ef as ListTemplatesErrors, Eg as StartCliLoginInput, Eh as SendPermissionAnyRecipient, Ei as CreateAgentClaimLinkError, El as GetInboxStatusResponse, Em as ResendCliSignupVerificationError, En as reorderRoutes, Eo as DeleteFunctionResponse, Ep as PullWebhookEventResponse, Er as AgentClaimResult, Es as DomainDnsHealthScope, Et as downloadAttachments, Eu as GetThreadErrors, Ev as UpdateWakeAuthorizationErrors, Ey as RequestOptions, F as VerifyOptions, F_ as UpdateAccountResponses, Fa as CreateWakeAuthorizationInput, Fc as GateDenial, Fd as ListFunctionSecretsData, Ff as ListWakeDispatchesError, Fg as StorageStats, Fh as SetFunctionRouteData, Fi as CreateChallengeResponse, Fl as GetOrgRoutingTopologyErrors, Fm as ResolveRegistryHandleResponses, Fn as runWakeSchedule, Fo as DeleteMemoryErrors, Fp as RegisterPayoutAddressResponse, Fr as AwaitReplyErrors, Fs as DownloadDomainZoneFileData, Ft as getEmail, Fu as GetWebhookSecretError, Fv as UpdateWakeScheduleResponses, G as addDomain, G_ as UpdateEndpointInput, Ga as DecideRegistryRequestData, Gc as GetAgentResponse, Gd as ListOrgSecretsData, Gf as MemoryResolvedScope, Gg as TemplateRegistrySummary, Gh as SetFunctionSecretResponses, Gi as CreateEndpointErrors, Gl as GetRegistryErrors, Gm as RunWakeScheduleError, Gn as simulateRoute, Go as DeleteRegistryError, Gp as ReorderRoutesData, Gr as CheckDomainDnsError, Gs as DownloadRawEmailData, Gt as getSentEmail, Gu as InboxStatusRecentEmailSummary, Gv as VerifyAgentSignupErrors, H as PrimitiveApiErrorDetails, H_ as UpdateEndpointData, Ha as CreateWakeScheduleResponse, Hc as GetAgentData, Hd as ListFunctionsErrors, Hf as ListWakeSchedulesResponse, Hg as TemplateRegistryDetail, Hh as SetFunctionSecretErrors, Hi as CreateEmailChallengeResponses, Hl as GetOutboundStatusResponses, Hm as RouteEvaluatedEntry, Hn as setFunctionSecret, Ho as DeleteOrgSecretResponse, Hp as RemoveAgentConnectionErrors, Hr as CancelSentEmailResponse, Hs as DownloadEmailAttachmentPartErrors, Ht as getOutboundStatus, Hu as InboxStatusEndpointSummary, Hv as VerifyAgentClaimResponses, I as verifyWebhookSignature, I_ as UpdateDomainData, Ia as CreateWakeAuthorizationResponse, Ic as GateFix, Id as ListFunctionSecretsError, If as ListWakeDispatchesErrors, Ig as SuccessEnvelope, Ih as SetFunctionRouteError, Ii as CreateChallengeResponses, Il as GetOrgRoutingTopologyResponse, Im as ResourceId, In as sdk_gen_d_exports, Io as DeleteMemoryResponse, Ip as RegisterPayoutAddressResponses, Ir as AwaitReplyResponse, Is as DownloadDomainZoneFileError, It as getFunction, Iu as GetWebhookSecretErrors, Iv as VerifiedDomain, J as checkDomainDns, J_ as UpdateFilterData, Ja as DecideRegistryRequestInput, Jc as GetChallengeError, Jd as ListOrgSecretsResponse, Jf as MemoryScopeQueryType, Jg as TemplateSetup, Jh as SetMemoryErrors, Ji as CreateEndpointResponses, Jl as GetSendPermissionsData, Jm as RunWakeScheduleResponses, Jn as startCliLogin, Jo as DeleteRegistryResponses, Jp as ReorderRoutesInput, Jr as CheckDomainDnsResponses, Js as DownloadRawEmailResponse, Jt as getTemplate, Ju as InstallTemplateError, Jv as VerifyAgentSignupResponses, K as awaitReply, K_ as UpdateEndpointResponse, Ka as DecideRegistryRequestError, Kc as GetAgentResponses, Kd as ListOrgSecretsError, Kf as MemoryScope, Kg as TemplateSecret, Kh as SetMemoryData, Ki as CreateEndpointInput, Kl as GetRegistryResponse, Km as RunWakeScheduleErrors, Kn as startAgentClaim, Ko as DeleteRegistryErrors, Kp as ReorderRoutesError, Kr as CheckDomainDnsErrors, Ks as DownloadRawEmailError, Kt as getSpendPolicy, Ku as InstallTemplateBody, Kv as VerifyAgentSignupInput, L as isMemoryJsonValue, L_ as UpdateDomainError, La as CreateWakeAuthorizationResponses, Lc as GetAccountData, Ld as ListFunctionSecretsErrors, Lf as ListWakeDispatchesResponse, Lg as TemplateAuthor, Lh as SetFunctionRouteErrors, Li as CreateEmailChallengeData, Ll as GetOrgRoutingTopologyResponses, Lm as RotateWebhookSecretData, Ln as searchEmails, Lo as DeleteMemoryResponses, Lp as Registry, Lr as AwaitReplyResponses, Ls as DownloadDomainZoneFileErrors, Lt as getFunctionRouting, Lu as GetWebhookSecretResponse, Lv as VerifyAgentClaimData, M as createAgent, M_ as UpdateAccountErrors, Ma as CreateWakeAuthorizationData, Mc as FunctionTestRunSend, Md as ListFunctionLogsErrors, Mf as ListWakeAuthorizationsResponse, Mg as StartCliSignupInput, Mh as SentEmailRescheduleInput, Mi as CreateChallengeError, Ml as GetMemoryResponses, Mm as ResolveRegistryHandleError, Mn as resendCliSignupVerification, Mo as DeleteFunctionSecretResponses, Mp as RegisterPayoutAddressError, Mr as AttachmentPartIndex, Ms as DownloadAttachmentsErrors, Mt as getAgent, Mu as GetWakeScheduleResponse, Mv as UpdateWakeScheduleErrors, N as createPrimitiveClient, N_ as UpdateAccountInput, Na as CreateWakeAuthorizationError, Nc as FunctionTestRunState, Nd as ListFunctionLogsResponse, Nf as ListWakeAuthorizationsResponses, Ng as StartCliSignupResponse, Nh as SentEmailStatus, Ni as CreateChallengeErrors, Nl as GetOrgRoutingTopologyData, Nm as ResolveRegistryHandleErrors, Nn as resolveRegistryHandle, No as DeleteMemoryData, Np as RegisterPayoutAddressErrors, Nr as AwaitReplyData, Ns as DownloadAttachmentsResponse, Nt as getChallenge, Nu as GetWakeScheduleResponses, Nv as UpdateWakeScheduleInput, O as SendResult, O_ as UnsetFunctionRouteResponses, Oa as CreateRouteErrors, Oc as FunctionTestRunDeliveryEndpoint, Od as ListFiltersResponse, Of as ListTemplatesResponses, Og as StartCliLoginResponses, Oh as SendPermissionRule, Oi as CreateAgentClaimLinkInput, Ol as GetMemoryData, Om as ResendCliSignupVerificationInput, On as replayEmailWebhooks, Oo as DeleteFunctionSecretData, Op as PullWebhookInput, Or as AgentOrgRef, Os as DomainDnsRecord, Ot as downloadEmailAttachmentPart, Ou as GetThreadResponses, Ov as UpdateWakeAuthorizationResponse, Oy as ResponseStyle, P as PRIMITIVE_SIGNATURE_HEADER, P_ as UpdateAccountResponse, Pa as CreateWakeAuthorizationErrors, Pc as FunctionTestRunTrace, Pd as ListFunctionLogsResponses, Pf as ListWakeDispatchesData, Pg as StartCliSignupResponses, Ph as SentEmailSummary, Pi as CreateChallengeInput, Pl as GetOrgRoutingTopologyError, Pm as ResolveRegistryHandleResponse, Pn as rotateWebhookSecret, Po as DeleteMemoryError, Pp as RegisterPayoutAddressInput, Pr as AwaitReplyError, Ps as DownloadAttachmentsResponses, Pt as getConversation, Pu as GetWebhookSecretData, Pv as UpdateWakeScheduleResponse, Q as createAgentClaimLink, Q_ as UpdateFilterResponse, Qa as DefineAgentError, Qc as GetConversationData, Qd as ListPayoutAddressesErrors, Qf as OutboundStatus, Qg as TestEndpointData, Qh as SetOrgSecretData, Qi as CreateFilterInput, Ql as GetSendPermissionsResponses, Qm as SearchEmailsResponse, Qn as testFunction, Qo as DeleteRouteResponse, Qp as ReplayDeliveryError, Qr as CliLogoutError, Qs as DownloadSentAttachmentPartErrors, Qt as getWebhookSecret, Qu as Limit, Qv as VerifyCliSignupInput, R as DEFAULT_API_BASE_URL, R_ as UpdateDomainErrors, Ra as CreateWakeScheduleData, Rc as GetAccountError, Rd as ListFunctionSecretsResponse, Rf as ListWakeDispatchesResponses, Rg as TemplateInstall, Rh as SetFunctionRouteResponse, Ri as CreateEmailChallengeError, Rl as GetOutboundStatusData, Rm as RotateWebhookSecretError, Rn as searchMemories, Ro as DeleteMemoryResult, Rp as RegistryAgent, Rr as AwaitReplyResult, Rs as DownloadDomainZoneFileResponse, Rt as getFunctionTestRunTrace, Ru as GetWebhookSecretResponses, Rv as VerifyAgentClaimError, S as RequestOptions$2, S_ as UnpublishAgentResponse, Sa as CreateRegistryErrors, Sc as FunctionRouteResult, Sd as ListEndpointsResponse, Sf as ListSentEmailsResponse, Sg as StartAgentSignupResponses, Sh as SendMailInput, Si as CreateAgentAccountInput, Sl as GetFunctionTestRunTraceResponses, Sm as ResendAgentSignupVerificationInput, Sn as publishAgent, So as DeleteFilterResponses, Sp as PublishPolicy, Sr as AddDomainResponses, Ss as DiscardEmailContentResponses, St as deleteSentEmail, Su as GetTemplateResponse, Sv as UpdateSpendPolicyResponse, Sy as ClientOptions, T as SendAttachmentInput, T_ as UnsetFunctionRouteError, Ta as CreateRegistryResponses, Tc as FunctionSecretWriteResult, Td as ListFiltersData, Tf as ListTemplatesError, Tg as StartCliLoginErrors, Th as SendPermissionAddress, Ti as CreateAgentClaimLinkData, Tl as GetInboxStatusErrors, Tm as ResendCliSignupVerificationData, Tn as removeAgentConnection, To as DeleteFunctionErrors, Tp as PullWebhookEventErrors, Tr as AgentClaimLinkResult, Ts as DomainDnsHealthCheck, Tt as discardEmailContent, Tu as GetThreadError, Tv as UpdateWakeAuthorizationError, Ty as Options, U as RequestOptions$1, U_ as UpdateEndpointError, Ua as CreateWakeScheduleResponses, Uc as GetAgentError, Ud as ListFunctionsResponse, Uf as ListWakeSchedulesResponses, Ug as TemplateRegistryPage, Uh as SetFunctionSecretInput, Ui as CreateEndpointData, Ul as GetRegistryData, Um as RoutingTopology, Un as setMemory, Uo as DeleteOrgSecretResponses, Up as RemoveAgentConnectionResponse, Ur as CancelSentEmailResponses, Us as DownloadEmailAttachmentPartResponse, Ut as getRegistry, Uu as InboxStatusFunctionSummary, Uv as VerifyAgentSignupData, V as PrimitiveApiError, V_ as UpdateDomainResponses, Va as CreateWakeScheduleInput, Vc as GetAccountResponses, Vd as ListFunctionsError, Vf as ListWakeSchedulesErrors, Vg as TemplateManifest, Vh as SetFunctionSecretError, Vi as CreateEmailChallengeResponse, Vl as GetOutboundStatusResponse, Vm as RotateWebhookSecretResponses, Vn as setFunctionRoute, Vo as DeleteOrgSecretErrors, Vp as RemoveAgentConnectionError, Vr as CancelSentEmailErrors, Vs as DownloadEmailAttachmentPartError, Vt as getOrgRoutingTopology, Vu as InboxStatusDomain, Vv as VerifyAgentClaimResponse, W as createPrimitiveApiClient, W_ as UpdateEndpointErrors, Wa as Cursor, Wc as GetAgentErrors, Wd as ListFunctionsResponses, Wf as MemoryKeyQuery, Wg as TemplateRegistryStatus, Wh as SetFunctionSecretResponse, Wi as CreateEndpointError, Wl as GetRegistryError, Wm as RunWakeScheduleData, Wn as setOrgSecret, Wo as DeleteRegistryData, Wp as RemoveAgentConnectionResponses, Wr as CheckDomainDnsData, Ws as DownloadEmailAttachmentPartResponses, Wt as getSendPermissions, Wu as InboxStatusNextAction, Wv as VerifyAgentSignupError, X as completeWebhookEvent, X_ as UpdateFilterErrors, Xa as DecideRegistryRequestResponses, Xc as GetChallengeResponse, Xd as ListPayoutAddressesData, Xf as OrgSecretListItem, Xg as TemplateVariable, Xh as SetMemoryResponse, Xi as CreateFilterError, Xl as GetSendPermissionsErrors, Xm as SearchEmailsError, Xn as testEndpoint, Xo as DeleteRouteError, Xp as ReorderRoutesResponses, Xr as CliLoginStartResult, Xs as DownloadSentAttachmentPartData, Xt as getThread, Xu as InstallTemplateResponse, Xv as VerifyCliSignupError, Y as cliLogout, Y_ as UpdateFilterError, Ya as DecideRegistryRequestResponse, Yc as GetChallengeErrors, Yd as ListOrgSecretsResponses, Yf as NumericString, Yg as TemplateSource, Yh as SetMemoryInput, Yi as CreateFilterData, Yl as GetSendPermissionsError, Ym as SearchEmailsData, Yn as startCliSignup, Yo as DeleteRouteData, Yp as ReorderRoutesResponse, Yr as CliLoginPollResult, Ys as DownloadRawEmailResponses, Yt as getTemplateInstall, Yu as InstallTemplateErrors, Yv as VerifyCliSignupData, Z as createAgentAccount, Z_ as UpdateFilterInput, Za as DefineAgentData, Zc as GetChallengeResponses, Zd as ListPayoutAddressesError, Zf as OrgSecretWriteResult, Zg as TemplateVariableValidation, Zh as SetMemoryResponses, Zi as CreateFilterErrors, Zl as GetSendPermissionsResponse, Zm as SearchEmailsErrors, Zn as testEndpointRules, Zo as DeleteRouteErrors, Zp as ReplayDeliveryData, Zr as CliLogoutData, Zs as DownloadSentAttachmentPartError, Zt as getWakeSchedule, Zu as InstallTemplateResponses, Zv as VerifyCliSignupErrors, _ as MemorySearchResponse, __ as Thread, _a as CreateOrgSecretInput, _c as FunctionDeployStatus, _d as ListEmailsResponse, _f as ListRoutesResponse, _g as StartAgentSignupData, _h as SendEmailError, _i as Conversation, _l as GetFunctionRoutingResponses, _m as RescheduleSentEmailResponse, _n as listWakeAuthorizations, _o as DeleteEndpointResponses, _p as PublishAgentErrors, _r as AddDomainData, _s as DiscardContentResult, _t as deleteFunctionSecret, _u as GetTemplateInstallData, _v as UpdateRouteResponses, _y as X402PayoutAddress, a as CreatedAgent, a_ as TestEndpointRulesErrors, aa as CreateFunctionResponse, ac as EmailDetailReply, ad as ListDeliveriesError, af as ListRegistriesResponses, ag as SimulateRouteError, ah as SemanticSearchCoverage, ai as CliSignupStartResult, al as GetEmailErrors, am as ReplayEmailWebhooksResponse, an as listFilters, ao as DeleteDomainErrors, ap as PayChallengeInput, ar as updateFunction, as as DeleteWakeAuthorizationData, at as createOrgSecret, au as GetSpendPolicyError, av as UpdateFunctionResponses, ay as VerifyDomainResponses, b as PrimitiveClientOptions, b_ as UnpublishAgentError, ba as CreateRegistryData, bc as FunctionLogRow, bd as ListEndpointsError, bf as ListSentEmailsError, bg as StartAgentSignupInput, bh as SendEmailResponses, bi as CreateAgentAccountError, bl as GetFunctionTestRunTraceErrors, bm as ResendAgentSignupVerificationError, bn as payChallenge, bo as DeleteFilterErrors, bp as PublishAgentResponses, br as AddDomainInput, bs as DiscardEmailContentErrors, bt as deleteRegistry, bu as GetTemplateInstallResponse, bv as UpdateSpendPolicyErrors, by as createClient, c as InboxResource, c_ as TestEndpointRulesResponses, ca as CreateFunctionSecretData, cc as EmailSearchHighlights, cd as ListDeliveriesResponses, cf as ListRegistryAgentsResponses, cg as SimulateRouteResponse, ch as SemanticSearchErrors, ci as CompleteWebhookEventError, cl as GetFunctionData, cm as ReplyEmail, cn as listFunctions, co as DeleteEmailData, cp as PlanLimits, cr as updateSpendPolicy, cs as DeleteWakeAuthorizationResponse, ct as createWakeAuthorization, cu as GetSpendPolicyResponses, cv as UpdateRegistryErrors, cy as WakeSchedule, d as MemoryDeleteInput, d_ as TestFunctionError, da as CreateFunctionSecretInput, dc as EmailStatus, dd as ListDomainsErrors, df as ListRegistryRequestsErrors, dg as StartAgentClaimData, dh as SemanticSearchMeta, di as CompleteWebhookEventResponses, dl as GetFunctionResponse, dm as ReplyToEmailErrors, dn as listRegistries, do as DeleteEmailResponse, dp as PollCliLoginErrors, dr as verifyAgentClaim, ds as DeleteWakeScheduleError, dt as defineAgent, du as GetStorageStatsErrors, dv as UpdateRegistryResponses, dy as X402DeclinedPayment, e_ as TestEndpointErrors, ea as CreateFilterResponses, ec as DownloadSentAttachmentPartResponses, ed as ListDeclinedPaymentsError, ef as ListPayoutAddressesResponses, eg as SetOrgSecretErrors, eh as SearchMemoriesData, ei as CliLogoutInput, el as GetConversationErrors, em as ReplayDeliveryResponse, en as listDeclinedPayments, eo as DefineAgentInput, ep as PaginationMeta, er as unsetFunctionRoute, es as DeleteSentEmailData, et as createEmailChallenge, eu as GetSentEmailError, ev as UpdateFunctionData, ey as VerifyCliSignupResponses, f as MemoryGetInput, f_ as TestFunctionErrors, fa as CreateFunctionSecretResponse, fc as EmailSummary, fd as ListDomainsResponse, ff as ListRegistryRequestsResponse, fg as StartAgentClaimError, fh as SemanticSearchResponses, fi as CompleteWebhookExecInput, fl as GetFunctionResponses, fm as ReplyToEmailResponse, fn as listRegistryAgents, fo as DeleteEmailResponses, fp as PollCliLoginInput, fr as verifyAgentSignup, fs as DeleteWakeScheduleErrors, ft as deleteDomain, fu as GetStorageStatsResponse, fv as UpdateRouteData, fy as X402EmailChallenge, g as MemorySearchInput, g_ as TestResult, ga as CreateOrgSecretErrors, gc as Filter, gd as ListEmailsErrors, gf as ListRoutesErrors, gg as StartAgentClaimResponses, gh as SendEmailData, gi as CompleteWebhookStdoutInput, gl as GetFunctionRoutingResponse, gm as RescheduleSentEmailErrors, gn as listTemplates, go as DeleteEndpointResponse, gp as PublishAgentError, gr as AccountUpdated, gs as DeliverySummary, gt as deleteFunction, gu as GetTemplateErrors, gv as UpdateRouteResponse, gy as X402PaymentRequirements, h as MemoryRecordWithValue, h_ as TestInvocationResult, ha as CreateOrgSecretError, hc as ErrorResponse, hd as ListEmailsError, hf as ListRoutesError, hg as StartAgentClaimResponse, hh as SemanticSearchSnippet, hi as CompleteWebhookResponse, hl as GetFunctionRoutingErrors, hm as RescheduleSentEmailError, hn as listSentEmails, ho as DeleteEndpointErrors, hp as PublishAgentData, hr as Account, hs as DeliveryStatus, ht as deleteFilter, hu as GetTemplateError, hv as UpdateRouteInput, hy as X402PaymentPayload, i as CreateAgentOptions, i_ as TestEndpointRulesError, ia as CreateFunctionInput, ic as EmailDetail, id as ListDeliveriesData, if as ListRegistriesResponse, ig as SimulateRouteData, ih as SearchMemoriesResponses, ii as CliSignupResendResult, il as GetEmailError, im as ReplayEmailWebhooksErrors, in as listEndpoints, io as DeleteDomainError, ip as PayChallengeErrors, ir as updateFilter, is as DeleteSentEmailResponses, it as createFunctionSecret, iu as GetSpendPolicyData, iv as UpdateFunctionResponse, iy as VerifyDomainResponse, j as client, j_ as UpdateAccountError, ja as CreateRouteResponses, jc as FunctionTestRunReply, jd as ListFunctionLogsError, jf as ListWakeAuthorizationsErrors, jg as StartCliSignupErrors, jh as SentEmailDetail, ji as CreateChallengeData, jl as GetMemoryResponse, jm as ResolveRegistryHandleData, jn as resendAgentSignupVerification, jo as DeleteFunctionSecretResponse, jp as RegisterPayoutAddressData, jr as AgentSignupVerifyResult, js as DownloadAttachmentsError, jt as getAccount, ju as GetWakeScheduleErrors, jv as UpdateWakeScheduleError, k as SendThreadInput, k_ as UnverifiedDomain, ka as CreateRouteInput, kc as FunctionTestRunInboundEmail, kd as ListFiltersResponses, kf as ListWakeAuthorizationsData, kg as StartCliSignupData, kh as SendPermissionYourDomain, ki as CreateAgentClaimLinkResponse, kl as GetMemoryError, km as ResendCliSignupVerificationResponse, kn as replyToEmail, ko as DeleteFunctionSecretError, kp as PullWebhookResponse, kr as AgentSignupResendResult, ks as DomainVerifyResult, kt as downloadRawEmail, ku as GetWakeScheduleData, kv as UpdateWakeAuthorizationResponses, ky as createConfig, l as InboxStreamOptions, l_ as TestEndpointRulesResult, la as CreateFunctionSecretError, lc as EmailSearchMeta, ld as ListDomainsData, lf as ListRegistryRequestsData, lg as SimulateRouteResponses, lh as SemanticSearchField, li as CompleteWebhookEventErrors, ll as GetFunctionError, lm as ReplyToEmailData, ln as listOrgSecrets, lo as DeleteEmailError, lp as PollCliLoginData, lr as updateWakeAuthorization, ls as DeleteWakeAuthorizationResponses, lt as createWakeSchedule, lu as GetStorageStatsData, lv as UpdateRegistryInput, ly as WebhookSecret, m as MemoryRecord, m_ as TestFunctionResponses, ma as CreateOrgSecretData, mc as Endpoint, md as ListEmailsData, mf as ListRoutesData, mg as StartAgentClaimInput, mh as SemanticSearchScoreBreakdown, mi as CompleteWebhookInput, ml as GetFunctionRoutingError, mm as RescheduleSentEmailData, mn as listRoutes, mo as DeleteEndpointError, mp as PollCliLoginResponses, mr as verifyDomain, ms as DeleteWakeScheduleResponses, mt as deleteEndpoint, mu as GetTemplateData, mv as UpdateRouteErrors, my as X402NonceBinding, n as AgentResource, n_ as TestEndpointResponses, na as CreateFunctionError, nc as EmailAttachment, nd as ListDeclinedPaymentsResponse, nf as ListRegistriesError, ng as SetOrgSecretResponse, nh as SearchMemoriesErrors, ni as CliLogoutResponses, nl as GetConversationResponses, nm as ReplayEmailWebhooksData, nn as listDomains, no as DefineAgentResponses, np as PayChallengeData, nr as updateDomain, ns as DeleteSentEmailErrors, nt as createFilter, nu as GetSentEmailResponse, nv as UpdateFunctionErrors, ny as VerifyDomainError, o as ForwardInput, o_ as TestEndpointRulesInput, oa as CreateFunctionResponses, oc as EmailSearchFacetBucket, od as ListDeliveriesErrors, of as ListRegistryAgentsData, og as SimulateRouteErrors, oh as SemanticSearchData, oi as CliSignupVerifyResult, ol as GetEmailResponse, om as ReplayEmailWebhooksResponses, on as listFunctionLogs, oo as DeleteDomainResponse, op as PayChallengeResponse, or as updateRegistry, os as DeleteWakeAuthorizationError, ot as createRegistry, ou as GetSpendPolicyErrors, ov as UpdateRegistryData, oy as WakeAuthorization, p as MemoryJsonValue, p_ as TestFunctionResponse, pa as CreateFunctionSecretResponses, pc as EmailWebhookStatus, pd as ListDomainsResponses, pf as ListRegistryRequestsResponses, pg as StartAgentClaimErrors, ph as SemanticSearchResult, pi as CompleteWebhookHttpInput, pl as GetFunctionRoutingData, pm as ReplyToEmailResponses, pn as listRegistryRequests, po as DeleteEndpointData, pp as PollCliLoginResponse, pr as verifyCliSignup, ps as DeleteWakeScheduleResponse, pt as deleteEmail, pu as GetStorageStatsResponses, pv as UpdateRouteError, py as X402EmailChallengeDetails, q as cancelSentEmail, q_ as UpdateEndpointResponses, qa as DecideRegistryRequestErrors, qc as GetChallengeData, qd as ListOrgSecretsErrors, qf as MemoryScopeId, qg as TemplateSecretGroup, qh as SetMemoryError, qi as CreateEndpointResponse, ql as GetRegistryResponses, qm as RunWakeScheduleResponse, qn as startAgentSignup, qo as DeleteRegistryResponse, qp as ReorderRoutesErrors, qr as CheckDomainDnsResponse, qs as DownloadRawEmailErrors, qt as getStorageStats, qu as InstallTemplateData, qv as VerifyAgentSignupResponse, r as AttachmentPartDownload, r_ as TestEndpointRulesData, ra as CreateFunctionErrors, rc as EmailAuth, rd as ListDeclinedPaymentsResponses, rf as ListRegistriesErrors, rg as SetOrgSecretResponses, rh as SearchMemoriesResponse, ri as CliLogoutResult, rl as GetEmailData, rm as ReplayEmailWebhooksError, rn as listEmails, ro as DeleteDomainData, rp as PayChallengeError, rr as updateEndpoint, rs as DeleteSentEmailResponse, rt as createFunction, ru as GetSentEmailResponses, rv as UpdateFunctionInput, ry as VerifyDomainErrors, s as InboundEmail, s_ as TestEndpointRulesResponse, sa as CreateFunctionResult, sc as EmailSearchFacets, sd as ListDeliveriesResponse, sf as ListRegistryAgentsResponse, sg as SimulateRouteInput, sh as SemanticSearchError, si as CompleteWebhookEventData, sl as GetEmailResponses, sm as ReplayResult, sn as listFunctionSecrets, so as DeleteDomainResponses, sp as PayChallengeResponses, sr as updateRoute, ss as DeleteWakeAuthorizationErrors, st as createRoute, su as GetSpendPolicyResponse, sv as UpdateRegistryError, sy as WakeDispatch, t as AccountResource, t_ as TestEndpointResponse, ta as CreateFunctionData, tc as EmailAddress, td as ListDeclinedPaymentsErrors, tf as ListRegistriesData, tg as SetOrgSecretInput, th as SearchMemoriesError, ti as CliLogoutResponse, tl as GetConversationResponse, tm as ReplayDeliveryResponses, tn as listDeliveries, to as DefineAgentResponse, tp as ParsedEmailData, tr as updateAccount, ts as DeleteSentEmailError, tt as createEndpoint, tu as GetSentEmailErrors, tv as UpdateFunctionError, ty as VerifyDomainData, u as MemoriesResource, u_ as TestFunctionData, ua as CreateFunctionSecretErrors, uc as EmailSearchResult, ud as ListDomainsError, uf as ListRegistryRequestsError, ug as SimulateRouteResult, uh as SemanticSearchInput, ui as CompleteWebhookEventResponse, ul as GetFunctionErrors, um as ReplyToEmailError, un as listPayoutAddresses, uo as DeleteEmailErrors, up as PollCliLoginError, ur as updateWakeSchedule, us as DeleteWakeScheduleData, ut as decideRegistryRequest, uu as GetStorageStatsError, uv as UpdateRegistryResponse, uy as X402Challenge, v as MemorySetInput, v_ as ThreadMessage, va as CreateOrgSecretResponse, vc as FunctionDetail, vd as ListEmailsResponses, vf as ListRoutesResponses, vg as StartAgentSignupError, vh as SendEmailErrors, vi as ConversationMessage, vl as GetFunctionTestRunTraceData, vm as RescheduleSentEmailResponses, vn as listWakeDispatches, vo as DeleteFilterData, vp as PublishAgentInput, vr as AddDomainError, vs as DiscardEmailContentData, vt as deleteMemory, vu as GetTemplateInstallError, vv as UpdateSpendPolicyData, vy as X402Receipt, w as SendAttachment, w_ as UnsetFunctionRouteData, wa as CreateRegistryResponse, wc as FunctionSecretListItem, wd as ListEnvelope, wf as ListTemplatesData, wg as StartCliLoginError, wh as SendMailResult, wi as CreateAgentAccountResponses, wl as GetInboxStatusError, wm as ResendAgentSignupVerificationResponses, wn as registerPayoutAddress, wo as DeleteFunctionError, wp as PullWebhookEventError, wr as AgentAccountUpgradeHint, ws as Domain, wt as deleteWakeSchedule, wu as GetThreadData, wv as UpdateWakeAuthorizationData, wy as CreateClientConfig, x as ReplyInput, x_ as UnpublishAgentErrors, xa as CreateRegistryError, xc as FunctionRouteBody, xd as ListEndpointsErrors, xf as ListSentEmailsErrors, xg as StartAgentSignupResponse, xh as SendMailAttachment, xi as CreateAgentAccountErrors, xl as GetFunctionTestRunTraceResponse, xm as ResendAgentSignupVerificationErrors, xn as pollCliLogin, xo as DeleteFilterResponse, xp as PublishAgentResult, xr as AddDomainResponse, xs as DiscardEmailContentResponse, xt as deleteRoute, xu as GetTemplateInstallResponses, xv as UpdateSpendPolicyInput, xy as Client, y as PrimitiveClient, y_ as UnpublishAgentData, ya as CreateOrgSecretResponses, yc as FunctionListItem, yd as ListEndpointsData, yf as ListSentEmailsData, yg as StartAgentSignupErrors, yh as SendEmailResponse, yi as CreateAgentAccountData, yl as GetFunctionTestRunTraceError, ym as ResendAgentSignupVerificationData, yn as listWakeSchedules, yo as DeleteFilterError, yp as PublishAgentResponse, yr as AddDomainErrors, ys as DiscardEmailContentError, yt as deleteOrgSecret, yu as GetTemplateInstallErrors, yv as UpdateSpendPolicyError, yy as X402SpendPolicy, z as PrimitiveApiClient, z_ as UpdateDomainInput, za as CreateWakeScheduleError, zc as GetAccountErrors, zd as ListFunctionSecretsResponses, zf as ListWakeSchedulesData, zg as TemplateInstallState, zh as SetFunctionRouteResponses, zi as CreateEmailChallengeErrors, zl as GetOutboundStatusError, zm as RotateWebhookSecretErrors, zn as semanticSearch, zo as DeleteOrgSecretData, zp as RegistryRequest, zr as CancelSentEmailData, zs as DownloadDomainZoneFileResponses, zt as getInboxStatus, zu as IdempotencyKey, zv as VerifyAgentClaimErrors } from "../index-BGyYkqRn.js";
|
|
1
|
+
import { $ as createChallenge, $_ as UpdateFilterResponses, $a as DefineAgentErrors, $c as GetConversationError, $d as ListPayoutAddressesResponse, $f as OutboundStatusDomain, $g as TestEndpointError, $h as SetOrgSecretError, $i as CreateFilterResponse, $l as GetSentEmailData, $m as SearchEmailsResponses, $n as unpublishAgent, $o as DeleteRouteResponses, $p as ReplayDeliveryErrors, $r as CliLogoutErrors, $s as DownloadSentAttachmentPartResponse, $t as installTemplate, $u as ListDeclinedPaymentsData, $v as VerifyCliSignupResponse, A as WaitForNextOptions, A_ as UpdateAccountData, Aa as CreateRouteResponse, Ac as FunctionTestRunOutboundRequest, Ad as ListFunctionLogsData, Af as ListWakeAuthorizationsError, Ag as StartCliSignupError, Ah as SendPermissionsMeta, Ai as CreateAgentClaimLinkResponses, Al as GetMemoryErrors, Am as ResendCliSignupVerificationResponses, An as rescheduleSentEmail, Ao as DeleteFunctionSecretErrors, Ap as RecipientRoute, Ar as AgentSignupStartResult, As as DownloadAttachmentsData, At as downloadSentAttachmentPart, Au as GetWakeScheduleError, Av as UpdateWakeScheduleData, Ay as Auth, B as PrimitiveApiClientOptions, B_ as UpdateDomainResponse, Ba as CreateWakeScheduleErrors, Bc as GetAccountResponse, Bd as ListFunctionsData, Bf as ListWakeSchedulesError, Bg as TemplateInstallStatus, Bh as SetFunctionSecretData, Bi as CreateEmailChallengeInput, Bl as GetOutboundStatusErrors, Bm as RotateWebhookSecretResponse, Bn as sendEmail, Bo as DeleteOrgSecretError, Bp as RemoveAgentConnectionData, Br as CancelSentEmailError, Bs as DownloadEmailAttachmentPartData, Bt as getMemory, Bu as InboxStatus, Bv as VerifyAgentClaimInput, C as SemanticSearchResponse, C_ as UnpublishAgentResponses, Ca as CreateRegistryInput, Cc as FunctionRouting, Cd as ListEndpointsResponses, Cf as ListSentEmailsResponses, Cg as StartCliLoginData, Ch as SendMailPayloadRef, Ci as CreateAgentAccountResponse, Cl as GetInboxStatusData, Cm as ResendAgentSignupVerificationResponse, Cn as pullWebhookEvent, Co as DeleteFunctionData, Cp as PullWebhookEventData, Cr as AgentAccountResult, Cs as DkimSignature, Ct as deleteWakeAuthorization, Cu as GetTemplateResponses, Cv as UpdateSpendPolicyResponses, Cy as Config, D as SendPayloadReference, D_ as UnsetFunctionRouteResponse, Da as CreateRouteError, Dc as FunctionTestRunDelivery, Dd as ListFiltersErrors, Df as ListTemplatesResponse, Dg as StartCliLoginResponse, Dh as SendPermissionManagedZone, Di as CreateAgentClaimLinkErrors, Dl as GetInboxStatusResponses, Dm as ResendCliSignupVerificationErrors, Dn as replayDelivery, Do as DeleteFunctionResponses, Dp as PullWebhookEventResponses, Dr as AgentClaimStartResult, Ds as DomainDnsHealthStatus, Dt as downloadDomainZoneFile, Du as GetThreadResponse, Dv as UpdateWakeAuthorizationInput, Dy as RequestResult, E as SendInput, E_ as UnsetFunctionRouteErrors, Ea as CreateRouteData, Ec as FunctionTestRun, Ed as ListFiltersError, Ef as ListTemplatesErrors, Eg as StartCliLoginInput, Eh as SendPermissionAnyRecipient, Ei as CreateAgentClaimLinkError, El as GetInboxStatusResponse, Em as ResendCliSignupVerificationError, En as reorderRoutes, Eo as DeleteFunctionResponse, Ep as PullWebhookEventResponse, Er as AgentClaimResult, Es as DomainDnsHealthScope, Et as downloadAttachments, Eu as GetThreadErrors, Ev as UpdateWakeAuthorizationErrors, Ey as RequestOptions, F as VerifyOptions, F_ as UpdateAccountResponses, Fa as CreateWakeAuthorizationInput, Fc as GateDenial, Fd as ListFunctionSecretsData, Ff as ListWakeDispatchesError, Fg as StorageStats, Fh as SetFunctionRouteData, Fi as CreateChallengeResponse, Fl as GetOrgRoutingTopologyErrors, Fm as ResolveRegistryHandleResponses, Fn as runWakeSchedule, Fo as DeleteMemoryErrors, Fp as RegisterPayoutAddressResponse, Fr as AwaitReplyErrors, Fs as DownloadDomainZoneFileData, Ft as getEmail, Fu as GetWebhookSecretError, Fv as UpdateWakeScheduleResponses, G as addDomain, G_ as UpdateEndpointInput, Ga as DecideRegistryRequestData, Gc as GetAgentResponse, Gd as ListOrgSecretsData, Gf as MemoryResolvedScope, Gg as TemplateRegistrySummary, Gh as SetFunctionSecretResponses, Gi as CreateEndpointErrors, Gl as GetRegistryErrors, Gm as RunWakeScheduleError, Gn as simulateRoute, Go as DeleteRegistryError, Gp as ReorderRoutesData, Gr as CheckDomainDnsError, Gs as DownloadRawEmailData, Gt as getSentEmail, Gu as InboxStatusRecentEmailSummary, Gv as VerifyAgentSignupErrors, H as PrimitiveApiErrorDetails, H_ as UpdateEndpointData, Ha as CreateWakeScheduleResponse, Hc as GetAgentData, Hd as ListFunctionsErrors, Hf as ListWakeSchedulesResponse, Hg as TemplateRegistryDetail, Hh as SetFunctionSecretErrors, Hi as CreateEmailChallengeResponses, Hl as GetOutboundStatusResponses, Hm as RouteEvaluatedEntry, Hn as setFunctionSecret, Ho as DeleteOrgSecretResponse, Hp as RemoveAgentConnectionErrors, Hr as CancelSentEmailResponse, Hs as DownloadEmailAttachmentPartErrors, Ht as getOutboundStatus, Hu as InboxStatusEndpointSummary, Hv as VerifyAgentClaimResponses, I as verifyWebhookSignature, I_ as UpdateDomainData, Ia as CreateWakeAuthorizationResponse, Ic as GateFix, Id as ListFunctionSecretsError, If as ListWakeDispatchesErrors, Ig as SuccessEnvelope, Ih as SetFunctionRouteError, Ii as CreateChallengeResponses, Il as GetOrgRoutingTopologyResponse, Im as ResourceId, In as sdk_gen_d_exports, Io as DeleteMemoryResponse, Ip as RegisterPayoutAddressResponses, Ir as AwaitReplyResponse, Is as DownloadDomainZoneFileError, It as getFunction, Iu as GetWebhookSecretErrors, Iv as VerifiedDomain, J as checkDomainDns, J_ as UpdateFilterData, Ja as DecideRegistryRequestInput, Jc as GetChallengeError, Jd as ListOrgSecretsResponse, Jf as MemoryScopeQueryType, Jg as TemplateSetup, Jh as SetMemoryErrors, Ji as CreateEndpointResponses, Jl as GetSendPermissionsData, Jm as RunWakeScheduleResponses, Jn as startCliLogin, Jo as DeleteRegistryResponses, Jp as ReorderRoutesInput, Jr as CheckDomainDnsResponses, Js as DownloadRawEmailResponse, Jt as getTemplate, Ju as InstallTemplateError, Jv as VerifyAgentSignupResponses, K as awaitReply, K_ as UpdateEndpointResponse, Ka as DecideRegistryRequestError, Kc as GetAgentResponses, Kd as ListOrgSecretsError, Kf as MemoryScope, Kg as TemplateSecret, Kh as SetMemoryData, Ki as CreateEndpointInput, Kl as GetRegistryResponse, Km as RunWakeScheduleErrors, Kn as startAgentClaim, Ko as DeleteRegistryErrors, Kp as ReorderRoutesError, Kr as CheckDomainDnsErrors, Ks as DownloadRawEmailError, Kt as getSpendPolicy, Ku as InstallTemplateBody, Kv as VerifyAgentSignupInput, L as isMemoryJsonValue, L_ as UpdateDomainError, La as CreateWakeAuthorizationResponses, Lc as GetAccountData, Ld as ListFunctionSecretsErrors, Lf as ListWakeDispatchesResponse, Lg as TemplateAuthor, Lh as SetFunctionRouteErrors, Li as CreateEmailChallengeData, Ll as GetOrgRoutingTopologyResponses, Lm as RotateWebhookSecretData, Ln as searchEmails, Lo as DeleteMemoryResponses, Lp as Registry, Lr as AwaitReplyResponses, Ls as DownloadDomainZoneFileErrors, Lt as getFunctionRouting, Lu as GetWebhookSecretResponse, Lv as VerifyAgentClaimData, M as createAgent, M_ as UpdateAccountErrors, Ma as CreateWakeAuthorizationData, Mc as FunctionTestRunSend, Md as ListFunctionLogsErrors, Mf as ListWakeAuthorizationsResponse, Mg as StartCliSignupInput, Mh as SentEmailRescheduleInput, Mi as CreateChallengeError, Ml as GetMemoryResponses, Mm as ResolveRegistryHandleError, Mn as resendCliSignupVerification, Mo as DeleteFunctionSecretResponses, Mp as RegisterPayoutAddressError, Mr as AttachmentPartIndex, Ms as DownloadAttachmentsErrors, Mt as getAgent, Mu as GetWakeScheduleResponse, Mv as UpdateWakeScheduleErrors, N as createPrimitiveClient, N_ as UpdateAccountInput, Na as CreateWakeAuthorizationError, Nc as FunctionTestRunState, Nd as ListFunctionLogsResponse, Nf as ListWakeAuthorizationsResponses, Ng as StartCliSignupResponse, Nh as SentEmailStatus, Ni as CreateChallengeErrors, Nl as GetOrgRoutingTopologyData, Nm as ResolveRegistryHandleErrors, Nn as resolveRegistryHandle, No as DeleteMemoryData, Np as RegisterPayoutAddressErrors, Nr as AwaitReplyData, Ns as DownloadAttachmentsResponse, Nt as getChallenge, Nu as GetWakeScheduleResponses, Nv as UpdateWakeScheduleInput, O as SendResult, O_ as UnsetFunctionRouteResponses, Oa as CreateRouteErrors, Oc as FunctionTestRunDeliveryEndpoint, Od as ListFiltersResponse, Of as ListTemplatesResponses, Og as StartCliLoginResponses, Oh as SendPermissionRule, Oi as CreateAgentClaimLinkInput, Ol as GetMemoryData, Om as ResendCliSignupVerificationInput, On as replayEmailWebhooks, Oo as DeleteFunctionSecretData, Op as PullWebhookInput, Or as AgentOrgRef, Os as DomainDnsRecord, Ot as downloadEmailAttachmentPart, Ou as GetThreadResponses, Ov as UpdateWakeAuthorizationResponse, Oy as ResponseStyle, P as PRIMITIVE_SIGNATURE_HEADER, P_ as UpdateAccountResponse, Pa as CreateWakeAuthorizationErrors, Pc as FunctionTestRunTrace, Pd as ListFunctionLogsResponses, Pf as ListWakeDispatchesData, Pg as StartCliSignupResponses, Ph as SentEmailSummary, Pi as CreateChallengeInput, Pl as GetOrgRoutingTopologyError, Pm as ResolveRegistryHandleResponse, Pn as rotateWebhookSecret, Po as DeleteMemoryError, Pp as RegisterPayoutAddressInput, Pr as AwaitReplyError, Ps as DownloadAttachmentsResponses, Pt as getConversation, Pu as GetWebhookSecretData, Pv as UpdateWakeScheduleResponse, Q as createAgentClaimLink, Q_ as UpdateFilterResponse, Qa as DefineAgentError, Qc as GetConversationData, Qd as ListPayoutAddressesErrors, Qf as OutboundStatus, Qg as TestEndpointData, Qh as SetOrgSecretData, Qi as CreateFilterInput, Ql as GetSendPermissionsResponses, Qm as SearchEmailsResponse, Qn as testFunction, Qo as DeleteRouteResponse, Qp as ReplayDeliveryError, Qr as CliLogoutError, Qs as DownloadSentAttachmentPartErrors, Qt as getWebhookSecret, Qu as Limit, Qv as VerifyCliSignupInput, R as DEFAULT_API_BASE_URL, R_ as UpdateDomainErrors, Ra as CreateWakeScheduleData, Rc as GetAccountError, Rd as ListFunctionSecretsResponse, Rf as ListWakeDispatchesResponses, Rg as TemplateInstall, Rh as SetFunctionRouteResponse, Ri as CreateEmailChallengeError, Rl as GetOutboundStatusData, Rm as RotateWebhookSecretError, Rn as searchMemories, Ro as DeleteMemoryResult, Rp as RegistryAgent, Rr as AwaitReplyResult, Rs as DownloadDomainZoneFileResponse, Rt as getFunctionTestRunTrace, Ru as GetWebhookSecretResponses, Rv as VerifyAgentClaimError, S as RequestOptions$2, S_ as UnpublishAgentResponse, Sa as CreateRegistryErrors, Sc as FunctionRouteResult, Sd as ListEndpointsResponse, Sf as ListSentEmailsResponse, Sg as StartAgentSignupResponses, Sh as SendMailInput, Si as CreateAgentAccountInput, Sl as GetFunctionTestRunTraceResponses, Sm as ResendAgentSignupVerificationInput, Sn as publishAgent, So as DeleteFilterResponses, Sp as PublishPolicy, Sr as AddDomainResponses, Ss as DiscardEmailContentResponses, St as deleteSentEmail, Su as GetTemplateResponse, Sv as UpdateSpendPolicyResponse, Sy as ClientOptions, T as SendAttachmentInput, T_ as UnsetFunctionRouteError, Ta as CreateRegistryResponses, Tc as FunctionSecretWriteResult, Td as ListFiltersData, Tf as ListTemplatesError, Tg as StartCliLoginErrors, Th as SendPermissionAddress, Ti as CreateAgentClaimLinkData, Tl as GetInboxStatusErrors, Tm as ResendCliSignupVerificationData, Tn as removeAgentConnection, To as DeleteFunctionErrors, Tp as PullWebhookEventErrors, Tr as AgentClaimLinkResult, Ts as DomainDnsHealthCheck, Tt as discardEmailContent, Tu as GetThreadError, Tv as UpdateWakeAuthorizationError, Ty as Options, U as RequestOptions$1, U_ as UpdateEndpointError, Ua as CreateWakeScheduleResponses, Uc as GetAgentError, Ud as ListFunctionsResponse, Uf as ListWakeSchedulesResponses, Ug as TemplateRegistryPage, Uh as SetFunctionSecretInput, Ui as CreateEndpointData, Ul as GetRegistryData, Um as RoutingTopology, Un as setMemory, Uo as DeleteOrgSecretResponses, Up as RemoveAgentConnectionResponse, Ur as CancelSentEmailResponses, Us as DownloadEmailAttachmentPartResponse, Ut as getRegistry, Uu as InboxStatusFunctionSummary, Uv as VerifyAgentSignupData, V as PrimitiveApiError, V_ as UpdateDomainResponses, Va as CreateWakeScheduleInput, Vc as GetAccountResponses, Vd as ListFunctionsError, Vf as ListWakeSchedulesErrors, Vg as TemplateManifest, Vh as SetFunctionSecretError, Vi as CreateEmailChallengeResponse, Vl as GetOutboundStatusResponse, Vm as RotateWebhookSecretResponses, Vn as setFunctionRoute, Vo as DeleteOrgSecretErrors, Vp as RemoveAgentConnectionError, Vr as CancelSentEmailErrors, Vs as DownloadEmailAttachmentPartError, Vt as getOrgRoutingTopology, Vu as InboxStatusDomain, Vv as VerifyAgentClaimResponse, W as createPrimitiveApiClient, W_ as UpdateEndpointErrors, Wa as Cursor, Wc as GetAgentErrors, Wd as ListFunctionsResponses, Wf as MemoryKeyQuery, Wg as TemplateRegistryStatus, Wh as SetFunctionSecretResponse, Wi as CreateEndpointError, Wl as GetRegistryError, Wm as RunWakeScheduleData, Wn as setOrgSecret, Wo as DeleteRegistryData, Wp as RemoveAgentConnectionResponses, Wr as CheckDomainDnsData, Ws as DownloadEmailAttachmentPartResponses, Wt as getSendPermissions, Wu as InboxStatusNextAction, Wv as VerifyAgentSignupError, X as completeWebhookEvent, X_ as UpdateFilterErrors, Xa as DecideRegistryRequestResponses, Xc as GetChallengeResponse, Xd as ListPayoutAddressesData, Xf as OrgSecretListItem, Xg as TemplateVariable, Xh as SetMemoryResponse, Xi as CreateFilterError, Xl as GetSendPermissionsErrors, Xm as SearchEmailsError, Xn as testEndpoint, Xo as DeleteRouteError, Xp as ReorderRoutesResponses, Xr as CliLoginStartResult, Xs as DownloadSentAttachmentPartData, Xt as getThread, Xu as InstallTemplateResponse, Xv as VerifyCliSignupError, Y as cliLogout, Y_ as UpdateFilterError, Ya as DecideRegistryRequestResponse, Yc as GetChallengeErrors, Yd as ListOrgSecretsResponses, Yf as NumericString, Yg as TemplateSource, Yh as SetMemoryInput, Yi as CreateFilterData, Yl as GetSendPermissionsError, Ym as SearchEmailsData, Yn as startCliSignup, Yo as DeleteRouteData, Yp as ReorderRoutesResponse, Yr as CliLoginPollResult, Ys as DownloadRawEmailResponses, Yt as getTemplateInstall, Yu as InstallTemplateErrors, Yv as VerifyCliSignupData, Z as createAgentAccount, Z_ as UpdateFilterInput, Za as DefineAgentData, Zc as GetChallengeResponses, Zd as ListPayoutAddressesError, Zf as OrgSecretWriteResult, Zg as TemplateVariableValidation, Zh as SetMemoryResponses, Zi as CreateFilterErrors, Zl as GetSendPermissionsResponse, Zm as SearchEmailsErrors, Zn as testEndpointRules, Zo as DeleteRouteErrors, Zp as ReplayDeliveryData, Zr as CliLogoutData, Zs as DownloadSentAttachmentPartError, Zt as getWakeSchedule, Zu as InstallTemplateResponses, Zv as VerifyCliSignupErrors, _ as MemorySearchResponse, __ as Thread, _a as CreateOrgSecretInput, _c as FunctionDeployStatus, _d as ListEmailsResponse, _f as ListRoutesResponse, _g as StartAgentSignupData, _h as SendEmailError, _i as Conversation, _l as GetFunctionRoutingResponses, _m as RescheduleSentEmailResponse, _n as listWakeAuthorizations, _o as DeleteEndpointResponses, _p as PublishAgentErrors, _r as AddDomainData, _s as DiscardContentResult, _t as deleteFunctionSecret, _u as GetTemplateInstallData, _v as UpdateRouteResponses, _y as X402PayoutAddress, a as CreatedAgent, a_ as TestEndpointRulesErrors, aa as CreateFunctionResponse, ac as EmailDetailReply, ad as ListDeliveriesError, af as ListRegistriesResponses, ag as SimulateRouteError, ah as SemanticSearchCoverage, ai as CliSignupStartResult, al as GetEmailErrors, am as ReplayEmailWebhooksResponse, an as listFilters, ao as DeleteDomainErrors, ap as PayChallengeInput, ar as updateFunction, as as DeleteWakeAuthorizationData, at as createOrgSecret, au as GetSpendPolicyError, av as UpdateFunctionResponses, ay as VerifyDomainResponses, b as PrimitiveClientOptions, b_ as UnpublishAgentError, ba as CreateRegistryData, bc as FunctionLogRow, bd as ListEndpointsError, bf as ListSentEmailsError, bg as StartAgentSignupInput, bh as SendEmailResponses, bi as CreateAgentAccountError, bl as GetFunctionTestRunTraceErrors, bm as ResendAgentSignupVerificationError, bn as payChallenge, bo as DeleteFilterErrors, bp as PublishAgentResponses, br as AddDomainInput, bs as DiscardEmailContentErrors, bt as deleteRegistry, bu as GetTemplateInstallResponse, bv as UpdateSpendPolicyErrors, by as createClient, c as InboxResource, c_ as TestEndpointRulesResponses, ca as CreateFunctionSecretData, cc as EmailSearchHighlights, cd as ListDeliveriesResponses, cf as ListRegistryAgentsResponses, cg as SimulateRouteResponse, ch as SemanticSearchErrors, ci as CompleteWebhookEventError, cl as GetFunctionData, cm as ReplyEmail, cn as listFunctions, co as DeleteEmailData, cp as PlanLimits, cr as updateSpendPolicy, cs as DeleteWakeAuthorizationResponse, ct as createWakeAuthorization, cu as GetSpendPolicyResponses, cv as UpdateRegistryErrors, cy as WakeSchedule, d as MemoryDeleteInput, d_ as TestFunctionError, da as CreateFunctionSecretInput, dc as EmailStatus, dd as ListDomainsErrors, df as ListRegistryRequestsErrors, dg as StartAgentClaimData, dh as SemanticSearchMeta, di as CompleteWebhookEventResponses, dl as GetFunctionResponse, dm as ReplyToEmailErrors, dn as listRegistries, do as DeleteEmailResponse, dp as PollCliLoginErrors, dr as verifyAgentClaim, ds as DeleteWakeScheduleError, dt as defineAgent, du as GetStorageStatsErrors, dv as UpdateRegistryResponses, dy as X402DeclinedPayment, e_ as TestEndpointErrors, ea as CreateFilterResponses, ec as DownloadSentAttachmentPartResponses, ed as ListDeclinedPaymentsError, ef as ListPayoutAddressesResponses, eg as SetOrgSecretErrors, eh as SearchMemoriesData, ei as CliLogoutInput, el as GetConversationErrors, em as ReplayDeliveryResponse, en as listDeclinedPayments, eo as DefineAgentInput, ep as PaginationMeta, er as unsetFunctionRoute, es as DeleteSentEmailData, et as createEmailChallenge, eu as GetSentEmailError, ev as UpdateFunctionData, ey as VerifyCliSignupResponses, f as MemoryGetInput, f_ as TestFunctionErrors, fa as CreateFunctionSecretResponse, fc as EmailSummary, fd as ListDomainsResponse, ff as ListRegistryRequestsResponse, fg as StartAgentClaimError, fh as SemanticSearchResponses, fi as CompleteWebhookExecInput, fl as GetFunctionResponses, fm as ReplyToEmailResponse, fn as listRegistryAgents, fo as DeleteEmailResponses, fp as PollCliLoginInput, fr as verifyAgentSignup, fs as DeleteWakeScheduleErrors, ft as deleteDomain, fu as GetStorageStatsResponse, fv as UpdateRouteData, fy as X402EmailChallenge, g as MemorySearchInput, g_ as TestResult, ga as CreateOrgSecretErrors, gc as Filter, gd as ListEmailsErrors, gf as ListRoutesErrors, gg as StartAgentClaimResponses, gh as SendEmailData, gi as CompleteWebhookStdoutInput, gl as GetFunctionRoutingResponse, gm as RescheduleSentEmailErrors, gn as listTemplates, go as DeleteEndpointResponse, gp as PublishAgentError, gr as AccountUpdated, gs as DeliverySummary, gt as deleteFunction, gu as GetTemplateErrors, gv as UpdateRouteResponse, gy as X402PaymentRequirements, h as MemoryRecordWithValue, h_ as TestInvocationResult, ha as CreateOrgSecretError, hc as ErrorResponse, hd as ListEmailsError, hf as ListRoutesError, hg as StartAgentClaimResponse, hh as SemanticSearchSnippet, hi as CompleteWebhookResponse, hl as GetFunctionRoutingErrors, hm as RescheduleSentEmailError, hn as listSentEmails, ho as DeleteEndpointErrors, hp as PublishAgentData, hr as Account, hs as DeliveryStatus, ht as deleteFilter, hu as GetTemplateError, hv as UpdateRouteInput, hy as X402PaymentPayload, i as CreateAgentOptions, i_ as TestEndpointRulesError, ia as CreateFunctionInput, ic as EmailDetail, id as ListDeliveriesData, if as ListRegistriesResponse, ig as SimulateRouteData, ih as SearchMemoriesResponses, ii as CliSignupResendResult, il as GetEmailError, im as ReplayEmailWebhooksErrors, in as listEndpoints, io as DeleteDomainError, ip as PayChallengeErrors, ir as updateFilter, is as DeleteSentEmailResponses, it as createFunctionSecret, iu as GetSpendPolicyData, iv as UpdateFunctionResponse, iy as VerifyDomainResponse, j as client, j_ as UpdateAccountError, ja as CreateRouteResponses, jc as FunctionTestRunReply, jd as ListFunctionLogsError, jf as ListWakeAuthorizationsErrors, jg as StartCliSignupErrors, jh as SentEmailDetail, ji as CreateChallengeData, jl as GetMemoryResponse, jm as ResolveRegistryHandleData, jn as resendAgentSignupVerification, jo as DeleteFunctionSecretResponse, jp as RegisterPayoutAddressData, jr as AgentSignupVerifyResult, js as DownloadAttachmentsError, jt as getAccount, ju as GetWakeScheduleErrors, jv as UpdateWakeScheduleError, k as SendThreadInput, k_ as UnverifiedDomain, ka as CreateRouteInput, kc as FunctionTestRunInboundEmail, kd as ListFiltersResponses, kf as ListWakeAuthorizationsData, kg as StartCliSignupData, kh as SendPermissionYourDomain, ki as CreateAgentClaimLinkResponse, kl as GetMemoryError, km as ResendCliSignupVerificationResponse, kn as replyToEmail, ko as DeleteFunctionSecretError, kp as PullWebhookResponse, kr as AgentSignupResendResult, ks as DomainVerifyResult, kt as downloadRawEmail, ku as GetWakeScheduleData, kv as UpdateWakeAuthorizationResponses, ky as createConfig, l as InboxStreamOptions, l_ as TestEndpointRulesResult, la as CreateFunctionSecretError, lc as EmailSearchMeta, ld as ListDomainsData, lf as ListRegistryRequestsData, lg as SimulateRouteResponses, lh as SemanticSearchField, li as CompleteWebhookEventErrors, ll as GetFunctionError, lm as ReplyToEmailData, ln as listOrgSecrets, lo as DeleteEmailError, lp as PollCliLoginData, lr as updateWakeAuthorization, ls as DeleteWakeAuthorizationResponses, lt as createWakeSchedule, lu as GetStorageStatsData, lv as UpdateRegistryInput, ly as WebhookSecret, m as MemoryRecord, m_ as TestFunctionResponses, ma as CreateOrgSecretData, mc as Endpoint, md as ListEmailsData, mf as ListRoutesData, mg as StartAgentClaimInput, mh as SemanticSearchScoreBreakdown, mi as CompleteWebhookInput, ml as GetFunctionRoutingError, mm as RescheduleSentEmailData, mn as listRoutes, mo as DeleteEndpointError, mp as PollCliLoginResponses, mr as verifyDomain, ms as DeleteWakeScheduleResponses, mt as deleteEndpoint, mu as GetTemplateData, mv as UpdateRouteErrors, my as X402NonceBinding, n as AgentResource, n_ as TestEndpointResponses, na as CreateFunctionError, nc as EmailAttachment, nd as ListDeclinedPaymentsResponse, nf as ListRegistriesError, ng as SetOrgSecretResponse, nh as SearchMemoriesErrors, ni as CliLogoutResponses, nl as GetConversationResponses, nm as ReplayEmailWebhooksData, nn as listDomains, no as DefineAgentResponses, np as PayChallengeData, nr as updateDomain, ns as DeleteSentEmailErrors, nt as createFilter, nu as GetSentEmailResponse, nv as UpdateFunctionErrors, ny as VerifyDomainError, o as ForwardInput, o_ as TestEndpointRulesInput, oa as CreateFunctionResponses, oc as EmailSearchFacetBucket, od as ListDeliveriesErrors, of as ListRegistryAgentsData, og as SimulateRouteErrors, oh as SemanticSearchData, oi as CliSignupVerifyResult, ol as GetEmailResponse, om as ReplayEmailWebhooksResponses, on as listFunctionLogs, oo as DeleteDomainResponse, op as PayChallengeResponse, or as updateRegistry, os as DeleteWakeAuthorizationError, ot as createRegistry, ou as GetSpendPolicyErrors, ov as UpdateRegistryData, oy as WakeAuthorization, p as MemoryJsonValue, p_ as TestFunctionResponse, pa as CreateFunctionSecretResponses, pc as EmailWebhookStatus, pd as ListDomainsResponses, pf as ListRegistryRequestsResponses, pg as StartAgentClaimErrors, ph as SemanticSearchResult, pi as CompleteWebhookHttpInput, pl as GetFunctionRoutingData, pm as ReplyToEmailResponses, pn as listRegistryRequests, po as DeleteEndpointData, pp as PollCliLoginResponse, pr as verifyCliSignup, ps as DeleteWakeScheduleResponse, pt as deleteEmail, pu as GetStorageStatsResponses, pv as UpdateRouteError, py as X402EmailChallengeDetails, q as cancelSentEmail, q_ as UpdateEndpointResponses, qa as DecideRegistryRequestErrors, qc as GetChallengeData, qd as ListOrgSecretsErrors, qf as MemoryScopeId, qg as TemplateSecretGroup, qh as SetMemoryError, qi as CreateEndpointResponse, ql as GetRegistryResponses, qm as RunWakeScheduleResponse, qn as startAgentSignup, qo as DeleteRegistryResponse, qp as ReorderRoutesErrors, qr as CheckDomainDnsResponse, qs as DownloadRawEmailErrors, qt as getStorageStats, qu as InstallTemplateData, qv as VerifyAgentSignupResponse, r as AttachmentPartDownload, r_ as TestEndpointRulesData, ra as CreateFunctionErrors, rc as EmailAuth, rd as ListDeclinedPaymentsResponses, rf as ListRegistriesErrors, rg as SetOrgSecretResponses, rh as SearchMemoriesResponse, ri as CliLogoutResult, rl as GetEmailData, rm as ReplayEmailWebhooksError, rn as listEmails, ro as DeleteDomainData, rp as PayChallengeError, rr as updateEndpoint, rs as DeleteSentEmailResponse, rt as createFunction, ru as GetSentEmailResponses, rv as UpdateFunctionInput, ry as VerifyDomainErrors, s as InboundEmail, s_ as TestEndpointRulesResponse, sa as CreateFunctionResult, sc as EmailSearchFacets, sd as ListDeliveriesResponse, sf as ListRegistryAgentsResponse, sg as SimulateRouteInput, sh as SemanticSearchError, si as CompleteWebhookEventData, sl as GetEmailResponses, sm as ReplayResult, sn as listFunctionSecrets, so as DeleteDomainResponses, sp as PayChallengeResponses, sr as updateRoute, ss as DeleteWakeAuthorizationErrors, st as createRoute, su as GetSpendPolicyResponse, sv as UpdateRegistryError, sy as WakeDispatch, t as AccountResource, t_ as TestEndpointResponse, ta as CreateFunctionData, tc as EmailAddress, td as ListDeclinedPaymentsErrors, tf as ListRegistriesData, tg as SetOrgSecretInput, th as SearchMemoriesError, ti as CliLogoutResponse, tl as GetConversationResponse, tm as ReplayDeliveryResponses, tn as listDeliveries, to as DefineAgentResponse, tp as ParsedEmailData, tr as updateAccount, ts as DeleteSentEmailError, tt as createEndpoint, tu as GetSentEmailErrors, tv as UpdateFunctionError, ty as VerifyDomainData, u as MemoriesResource, u_ as TestFunctionData, ua as CreateFunctionSecretErrors, uc as EmailSearchResult, ud as ListDomainsError, uf as ListRegistryRequestsError, ug as SimulateRouteResult, uh as SemanticSearchInput, ui as CompleteWebhookEventResponse, ul as GetFunctionErrors, um as ReplyToEmailError, un as listPayoutAddresses, uo as DeleteEmailErrors, up as PollCliLoginError, ur as updateWakeSchedule, us as DeleteWakeScheduleData, ut as decideRegistryRequest, uu as GetStorageStatsError, uv as UpdateRegistryResponse, uy as X402Challenge, v as MemorySetInput, v_ as ThreadMessage, va as CreateOrgSecretResponse, vc as FunctionDetail, vd as ListEmailsResponses, vf as ListRoutesResponses, vg as StartAgentSignupError, vh as SendEmailErrors, vi as ConversationMessage, vl as GetFunctionTestRunTraceData, vm as RescheduleSentEmailResponses, vn as listWakeDispatches, vo as DeleteFilterData, vp as PublishAgentInput, vr as AddDomainError, vs as DiscardEmailContentData, vt as deleteMemory, vu as GetTemplateInstallError, vv as UpdateSpendPolicyData, vy as X402Receipt, w as SendAttachment, w_ as UnsetFunctionRouteData, wa as CreateRegistryResponse, wc as FunctionSecretListItem, wd as ListEnvelope, wf as ListTemplatesData, wg as StartCliLoginError, wh as SendMailResult, wi as CreateAgentAccountResponses, wl as GetInboxStatusError, wm as ResendAgentSignupVerificationResponses, wn as registerPayoutAddress, wo as DeleteFunctionError, wp as PullWebhookEventError, wr as AgentAccountUpgradeHint, ws as Domain, wt as deleteWakeSchedule, wu as GetThreadData, wv as UpdateWakeAuthorizationData, wy as CreateClientConfig, x as ReplyInput, x_ as UnpublishAgentErrors, xa as CreateRegistryError, xc as FunctionRouteBody, xd as ListEndpointsErrors, xf as ListSentEmailsErrors, xg as StartAgentSignupResponse, xh as SendMailAttachment, xi as CreateAgentAccountErrors, xl as GetFunctionTestRunTraceResponse, xm as ResendAgentSignupVerificationErrors, xn as pollCliLogin, xo as DeleteFilterResponse, xp as PublishAgentResult, xr as AddDomainResponse, xs as DiscardEmailContentResponse, xt as deleteRoute, xu as GetTemplateInstallResponses, xv as UpdateSpendPolicyInput, xy as Client, y as PrimitiveClient, y_ as UnpublishAgentData, ya as CreateOrgSecretResponses, yc as FunctionListItem, yd as ListEndpointsData, yf as ListSentEmailsData, yg as StartAgentSignupErrors, yh as SendEmailResponse, yi as CreateAgentAccountData, yl as GetFunctionTestRunTraceError, ym as ResendAgentSignupVerificationData, yn as listWakeSchedules, yo as DeleteFilterError, yp as PublishAgentResponse, yr as AddDomainErrors, ys as DiscardEmailContentError, yt as deleteOrgSecret, yu as GetTemplateInstallErrors, yv as UpdateSpendPolicyError, yy as X402SpendPolicy, z as PrimitiveApiClient, z_ as UpdateDomainInput, za as CreateWakeScheduleError, zc as GetAccountErrors, zd as ListFunctionSecretsResponses, zf as ListWakeSchedulesData, zg as TemplateInstallState, zh as SetFunctionRouteResponses, zi as CreateEmailChallengeErrors, zl as GetOutboundStatusError, zm as RotateWebhookSecretErrors, zn as semanticSearch, zo as DeleteOrgSecretData, zp as RegistryRequest, zr as CancelSentEmailData, zs as DownloadDomainZoneFileResponses, zt as getInboxStatus, zu as IdempotencyKey, zv as VerifyAgentClaimErrors } from "../index-B1a5L2zU.js";
|
|
2
2
|
import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-DJS4dWr7.js";
|
|
3
3
|
import { F as ValidateEmailAuthResult, f as EmailReceivedEvent, n as AuthVerdict, t as AuthConfidence } from "../types-DcXtFARL.js";
|
|
4
|
-
import { T as normalizeReceivedEmail, _ as isTrustedSender, b as ReceivedEmailAddress, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, m as TrustReason, p as WebhookVerificationErrorCode, v as validateEmailAuth, x as ReceivedEmailThread, y as ReceivedEmail } from "../errors-
|
|
4
|
+
import { T as normalizeReceivedEmail, _ as isTrustedSender, b as ReceivedEmailAddress, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, m as TrustReason, p as WebhookVerificationErrorCode, v as validateEmailAuth, x as ReceivedEmailThread, y as ReceivedEmail } from "../errors-CCJX3I_T.js";
|
|
5
5
|
export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, AttachmentPartDownload, AttachmentPartIndex, Auth, AuthConfidence, AuthVerdict, AwaitReplyData, AwaitReplyError, AwaitReplyErrors, AwaitReplyResponse, AwaitReplyResponses, AwaitReplyResult, CancelSentEmailData, CancelSentEmailError, CancelSentEmailErrors, CancelSentEmailResponse, CancelSentEmailResponses, CheckDomainDnsData, CheckDomainDnsError, CheckDomainDnsErrors, CheckDomainDnsResponse, CheckDomainDnsResponses, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, CompleteWebhookEventData, CompleteWebhookEventError, CompleteWebhookEventErrors, CompleteWebhookEventResponse, CompleteWebhookEventResponses, CompleteWebhookExecInput, CompleteWebhookHttpInput, CompleteWebhookInput, CompleteWebhookResponse, CompleteWebhookStdoutInput, Config, Config as PrimitiveGeneratedApiConfig, Conversation, ConversationMessage, CreateAgentAccountData, CreateAgentAccountError, CreateAgentAccountErrors, CreateAgentAccountInput, CreateAgentAccountResponse, CreateAgentAccountResponses, CreateAgentClaimLinkData, CreateAgentClaimLinkError, CreateAgentClaimLinkErrors, CreateAgentClaimLinkInput, CreateAgentClaimLinkResponse, CreateAgentClaimLinkResponses, CreateAgentOptions, CreateChallengeData, CreateChallengeError, CreateChallengeErrors, CreateChallengeInput, CreateChallengeResponse, CreateChallengeResponses, CreateClientConfig, CreateEmailChallengeData, CreateEmailChallengeError, CreateEmailChallengeErrors, CreateEmailChallengeInput, CreateEmailChallengeResponse, CreateEmailChallengeResponses, 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, CreateOrgSecretData, CreateOrgSecretError, CreateOrgSecretErrors, CreateOrgSecretInput, CreateOrgSecretResponse, CreateOrgSecretResponses, CreateRegistryData, CreateRegistryError, CreateRegistryErrors, CreateRegistryInput, CreateRegistryResponse, CreateRegistryResponses, CreateRouteData, CreateRouteError, CreateRouteErrors, CreateRouteInput, CreateRouteResponse, CreateRouteResponses, CreateWakeAuthorizationData, CreateWakeAuthorizationError, CreateWakeAuthorizationErrors, CreateWakeAuthorizationInput, CreateWakeAuthorizationResponse, CreateWakeAuthorizationResponses, CreateWakeScheduleData, CreateWakeScheduleError, CreateWakeScheduleErrors, CreateWakeScheduleInput, CreateWakeScheduleResponse, CreateWakeScheduleResponses, CreatedAgent, Cursor, DEFAULT_API_BASE_URL, DecideRegistryRequestData, DecideRegistryRequestError, DecideRegistryRequestErrors, DecideRegistryRequestInput, DecideRegistryRequestResponse, DecideRegistryRequestResponses, DefineAgentData, DefineAgentError, DefineAgentErrors, DefineAgentInput, DefineAgentResponse, DefineAgentResponses, 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, DeleteMemoryData, DeleteMemoryError, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteMemoryResult, DeleteOrgSecretData, DeleteOrgSecretError, DeleteOrgSecretErrors, DeleteOrgSecretResponse, DeleteOrgSecretResponses, DeleteRegistryData, DeleteRegistryError, DeleteRegistryErrors, DeleteRegistryResponse, DeleteRegistryResponses, DeleteRouteData, DeleteRouteError, DeleteRouteErrors, DeleteRouteResponse, DeleteRouteResponses, DeleteSentEmailData, DeleteSentEmailError, DeleteSentEmailErrors, DeleteSentEmailResponse, DeleteSentEmailResponses, DeleteWakeAuthorizationData, DeleteWakeAuthorizationError, DeleteWakeAuthorizationErrors, DeleteWakeAuthorizationResponse, DeleteWakeAuthorizationResponses, DeleteWakeScheduleData, DeleteWakeScheduleError, DeleteWakeScheduleErrors, DeleteWakeScheduleResponse, DeleteWakeScheduleResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsHealthCheck, DomainDnsHealthScope, DomainDnsHealthStatus, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadEmailAttachmentPartData, DownloadEmailAttachmentPartError, DownloadEmailAttachmentPartErrors, DownloadEmailAttachmentPartResponse, DownloadEmailAttachmentPartResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, DownloadSentAttachmentPartData, DownloadSentAttachmentPartError, DownloadSentAttachmentPartErrors, DownloadSentAttachmentPartResponse, DownloadSentAttachmentPartResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, FunctionRouteBody, FunctionRouteResult, FunctionRouting, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetChallengeData, GetChallengeError, GetChallengeErrors, GetChallengeResponse, GetChallengeResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionRoutingData, GetFunctionRoutingError, GetFunctionRoutingErrors, GetFunctionRoutingResponse, GetFunctionRoutingResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetOrgRoutingTopologyData, GetOrgRoutingTopologyError, GetOrgRoutingTopologyErrors, GetOrgRoutingTopologyResponse, GetOrgRoutingTopologyResponses, GetOutboundStatusData, GetOutboundStatusError, GetOutboundStatusErrors, GetOutboundStatusResponse, GetOutboundStatusResponses, GetRegistryData, GetRegistryError, GetRegistryErrors, GetRegistryResponse, GetRegistryResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetSpendPolicyData, GetSpendPolicyError, GetSpendPolicyErrors, GetSpendPolicyResponse, GetSpendPolicyResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateInstallData, GetTemplateInstallError, GetTemplateInstallErrors, GetTemplateInstallResponse, GetTemplateInstallResponses, GetTemplateResponse, GetTemplateResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWakeScheduleData, GetWakeScheduleError, GetWakeScheduleErrors, GetWakeScheduleResponse, GetWakeScheduleResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, IdempotencyKey, InboundEmail, InboxResource, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, InboxStreamOptions, InstallTemplateBody, InstallTemplateData, InstallTemplateError, InstallTemplateErrors, InstallTemplateResponse, InstallTemplateResponses, Limit, ListDeclinedPaymentsData, ListDeclinedPaymentsError, ListDeclinedPaymentsErrors, ListDeclinedPaymentsResponse, ListDeclinedPaymentsResponses, 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, ListOrgSecretsData, ListOrgSecretsError, ListOrgSecretsErrors, ListOrgSecretsResponse, ListOrgSecretsResponses, ListPayoutAddressesData, ListPayoutAddressesError, ListPayoutAddressesErrors, ListPayoutAddressesResponse, ListPayoutAddressesResponses, ListRegistriesData, ListRegistriesError, ListRegistriesErrors, ListRegistriesResponse, ListRegistriesResponses, ListRegistryAgentsData, ListRegistryAgentsResponse, ListRegistryAgentsResponses, ListRegistryRequestsData, ListRegistryRequestsError, ListRegistryRequestsErrors, ListRegistryRequestsResponse, ListRegistryRequestsResponses, ListRoutesData, ListRoutesError, ListRoutesErrors, ListRoutesResponse, ListRoutesResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListWakeAuthorizationsData, ListWakeAuthorizationsError, ListWakeAuthorizationsErrors, ListWakeAuthorizationsResponse, ListWakeAuthorizationsResponses, ListWakeDispatchesData, ListWakeDispatchesError, ListWakeDispatchesErrors, ListWakeDispatchesResponse, ListWakeDispatchesResponses, ListWakeSchedulesData, ListWakeSchedulesError, ListWakeSchedulesErrors, ListWakeSchedulesResponse, ListWakeSchedulesResponses, MemoriesResource, MemoryDeleteInput, MemoryGetInput, MemoryJsonValue, MemoryKeyQuery, MemoryRecord, MemoryRecordWithValue, MemoryResolvedScope, MemoryScope, MemoryScopeId, MemoryScopeQueryType, MemorySearchInput, MemorySearchResponse, MemorySetInput, NumericString, Options, Options as PrimitiveGeneratedApiOptions, OrgSecretListItem, OrgSecretWriteResult, OutboundStatus, OutboundStatusDomain, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, PayChallengeData, PayChallengeError, PayChallengeErrors, PayChallengeInput, PayChallengeResponse, PayChallengeResponses, PlanLimits, 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, PublishAgentData, PublishAgentError, PublishAgentErrors, PublishAgentInput, PublishAgentResponse, PublishAgentResponses, PublishAgentResult, PublishPolicy, PullWebhookEventData, PullWebhookEventError, PullWebhookEventErrors, PullWebhookEventResponse, PullWebhookEventResponses, PullWebhookInput, PullWebhookResponse, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, RecipientRoute, RegisterPayoutAddressData, RegisterPayoutAddressError, RegisterPayoutAddressErrors, RegisterPayoutAddressInput, RegisterPayoutAddressResponse, RegisterPayoutAddressResponses, Registry, RegistryAgent, RegistryRequest, RemoveAgentConnectionData, RemoveAgentConnectionError, RemoveAgentConnectionErrors, RemoveAgentConnectionResponse, RemoveAgentConnectionResponses, ReorderRoutesData, ReorderRoutesError, ReorderRoutesErrors, ReorderRoutesInput, ReorderRoutesResponse, ReorderRoutesResponses, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyEmail, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, RescheduleSentEmailData, RescheduleSentEmailError, RescheduleSentEmailErrors, RescheduleSentEmailResponse, RescheduleSentEmailResponses, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResolveRegistryHandleData, ResolveRegistryHandleError, ResolveRegistryHandleErrors, ResolveRegistryHandleResponse, ResolveRegistryHandleResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, RouteEvaluatedEntry, RoutingTopology, RunWakeScheduleData, RunWakeScheduleError, RunWakeScheduleErrors, RunWakeScheduleResponse, RunWakeScheduleResponses, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, SearchMemoriesData, SearchMemoriesError, SearchMemoriesErrors, SearchMemoriesResponse, SearchMemoriesResponses, SemanticSearchCoverage, SemanticSearchData, SemanticSearchError, SemanticSearchErrors, SemanticSearchField, SemanticSearchInput, SemanticSearchMeta, SemanticSearchResponse, SemanticSearchResponses, SemanticSearchResult, SemanticSearchScoreBreakdown, SemanticSearchSnippet, SendAttachment, SendAttachmentInput, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailPayloadRef, SendMailResult, SendPayloadReference, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, SentEmailRescheduleInput, SentEmailStatus, SentEmailSummary, SetFunctionRouteData, SetFunctionRouteError, SetFunctionRouteErrors, SetFunctionRouteResponse, SetFunctionRouteResponses, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, SetMemoryData, SetMemoryError, SetMemoryErrors, SetMemoryInput, SetMemoryResponse, SetMemoryResponses, SetOrgSecretData, SetOrgSecretError, SetOrgSecretErrors, SetOrgSecretInput, SetOrgSecretResponse, SetOrgSecretResponses, SimulateRouteData, SimulateRouteError, SimulateRouteErrors, SimulateRouteInput, SimulateRouteResponse, SimulateRouteResponses, SimulateRouteResult, StartAgentClaimData, StartAgentClaimError, StartAgentClaimErrors, StartAgentClaimInput, StartAgentClaimResponse, StartAgentClaimResponses, StartAgentSignupData, StartAgentSignupError, StartAgentSignupErrors, StartAgentSignupInput, StartAgentSignupResponse, StartAgentSignupResponses, StartCliLoginData, StartCliLoginError, StartCliLoginErrors, StartCliLoginInput, StartCliLoginResponse, StartCliLoginResponses, StartCliSignupData, StartCliSignupError, StartCliSignupErrors, StartCliSignupInput, StartCliSignupResponse, StartCliSignupResponses, StorageStats, SuccessEnvelope, TemplateAuthor, TemplateInstall, TemplateInstallState, TemplateInstallStatus, TemplateManifest, TemplateRegistryDetail, TemplateRegistryPage, TemplateRegistryStatus, TemplateRegistrySummary, TemplateSecret, TemplateSecretGroup, TemplateSetup, TemplateSource, TemplateVariable, TemplateVariableValidation, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestEndpointRulesData, TestEndpointRulesError, TestEndpointRulesErrors, TestEndpointRulesInput, TestEndpointRulesResponse, TestEndpointRulesResponses, TestEndpointRulesResult, TestFunctionData, TestFunctionError, TestFunctionErrors, TestFunctionResponse, TestFunctionResponses, TestInvocationResult, TestResult, Thread, ThreadMessage, TrustReason, TrustedSenderOptions, TrustedSenderResult, UnpublishAgentData, UnpublishAgentError, UnpublishAgentErrors, UnpublishAgentResponse, UnpublishAgentResponses, UnsetFunctionRouteData, UnsetFunctionRouteError, UnsetFunctionRouteErrors, UnsetFunctionRouteResponse, UnsetFunctionRouteResponses, 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, UpdateRegistryData, UpdateRegistryError, UpdateRegistryErrors, UpdateRegistryInput, UpdateRegistryResponse, UpdateRegistryResponses, UpdateRouteData, UpdateRouteError, UpdateRouteErrors, UpdateRouteInput, UpdateRouteResponse, UpdateRouteResponses, UpdateSpendPolicyData, UpdateSpendPolicyError, UpdateSpendPolicyErrors, UpdateSpendPolicyInput, UpdateSpendPolicyResponse, UpdateSpendPolicyResponses, UpdateWakeAuthorizationData, UpdateWakeAuthorizationError, UpdateWakeAuthorizationErrors, UpdateWakeAuthorizationInput, UpdateWakeAuthorizationResponse, UpdateWakeAuthorizationResponses, UpdateWakeScheduleData, UpdateWakeScheduleError, UpdateWakeScheduleErrors, UpdateWakeScheduleInput, UpdateWakeScheduleResponse, UpdateWakeScheduleResponses, ValidateEmailAuthResult, VerifiedDomain, VerifyAgentClaimData, VerifyAgentClaimError, VerifyAgentClaimErrors, VerifyAgentClaimInput, VerifyAgentClaimResponse, VerifyAgentClaimResponses, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WaitForNextOptions, WakeAuthorization, WakeDispatch, WakeSchedule, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, X402Challenge, X402DeclinedPayment, X402EmailChallenge, X402EmailChallengeDetails, X402NonceBinding, X402PaymentPayload, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, addDomain, awaitReply, cancelSentEmail, checkDomainDns, cliLogout, client, completeWebhookEvent, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteSentEmail, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadEmailAttachmentPart, downloadRawEmail, downloadSentAttachmentPart, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getOutboundStatus, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, isMemoryJsonValue, isTrustedSender, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, publishAgent, pullWebhookEvent, registerPayoutAddress, removeAgentConnection, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, rescheduleSentEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testEndpointRules, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, validateEmailAuth, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
package/dist/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as downloadEmailAttachmentPart, $t as replayEmailWebhooks, A as createOrgSecret, An as updateFunction, At as listFilters, B as deleteFilter, Bn as createClient, Bt as listSentEmails, C as createAgentClaimLink, Cn as testFunction, Ct as getWebhookSecret, D as createFilter, Dn as updateDomain, Dt as listDomains, E as createEndpoint, En as updateAccount, Et as listDeliveries, F as decideRegistryRequest, Fn as updateWakeSchedule, Ft as listPayoutAddresses, G as deleteRegistry, Gt as payChallenge, H as deleteFunctionSecret, Ht as listWakeAuthorizations, I as defineAgent, In as verifyAgentClaim, It as listRegistries, J as deleteWakeAuthorization, Jt as pullWebhookEvent, K as deleteRoute, Kt as pollCliLogin, L as deleteDomain, Ln as verifyAgentSignup, Lt as listRegistryAgents, M as createRoute, Mn as updateRoute, Mt as listFunctionSecrets, N as createWakeAuthorization, Nn as updateSpendPolicy, Nt as listFunctions, O as createFunction, On as updateEndpoint, Ot as listEmails, P as createWakeSchedule, Pn as updateWakeAuthorization, Pt as listOrgSecrets, Q as downloadDomainZoneFile, Qt as replayDelivery, R as deleteEmail, Rn as verifyCliSignup, Rt as listRegistryRequests, S as createAgentAccount, Sn as testEndpointRules, St as getWakeSchedule, T as createEmailChallenge, Tn as unsetFunctionRoute, Tt as listDeclinedPayments, U as deleteMemory, Ut as listWakeDispatches, V as deleteFunction, Vn as createConfig, Vt as listTemplates, W as deleteOrgSecret, Wt as listWakeSchedules, X as discardEmailContent, Xt as removeAgentConnection, Y as deleteWakeSchedule, Yt as registerPayoutAddress, Z as downloadAttachments, Zt as reorderRoutes, _ as awaitReply, _n as startAgentClaim, _t as getSpendPolicy, a as PrimitiveClient, an as rotateWebhookSecret, at as getConversation, b as cliLogout, bn as startCliSignup, bt as getTemplateInstall, c as createPrimitiveClient, cn as searchEmails, ct as getFunctionRouting, d as isMemoryJsonValue, dn as sendEmail, dt as getMemory, en as replyToEmail, et as downloadRawEmail, f as DEFAULT_API_BASE_URL, fn as setFunctionRoute, ft as getOrgRoutingTopology, g as addDomain, gn as simulateRoute, gt as getSentEmail, h as createPrimitiveApiClient, hn as setOrgSecret, ht as getSendPermissions, i as MemoriesResource, in as resolveRegistryHandle, it as getChallenge, j as createRegistry, jn as updateRegistry, jt as listFunctionLogs, k as createFunctionSecret, kn as updateFilter, kt as listEndpoints, l as PRIMITIVE_SIGNATURE_HEADER, ln as searchMemories, lt as getFunctionTestRunTrace, m as PrimitiveApiError, mn as setMemory, mt as getRegistry, n as AgentResource, nn as resendAgentSignupVerification, nt as getAccount, o as client, on as runWakeSchedule, ot as getEmail, p as PrimitiveApiClient, pn as setFunctionSecret, pt as getOutboundStatus, q as deleteSentEmail, qt as publishAgent, r as InboxResource, rn as resendCliSignupVerification, rt as getAgent, s as createAgent, sn as sdk_gen_exports, st as getFunction, t as AccountResource, tn as rescheduleSentEmail, tt as downloadSentAttachmentPart, u as verifyWebhookSignature, un as semanticSearch, ut as getInboxStatus, v as cancelSentEmail, vn as startAgentSignup, vt as getStorageStats, w as createChallenge, wn as unpublishAgent, wt as installTemplate, x as completeWebhookEvent, xn as testEndpoint, xt as getThread, y as checkDomainDns, yn as startCliLogin, yt as getTemplate, z as deleteEndpoint, zn as verifyDomain, zt as listRoutes } from "../api-
|
|
2
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
3
|
-
import { C as normalizeReceivedEmail, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, l as isTrustedSender, u as validateEmailAuth } from "../errors-
|
|
1
|
+
import { $ as downloadEmailAttachmentPart, $t as replayEmailWebhooks, A as createOrgSecret, An as updateFunction, At as listFilters, B as deleteFilter, Bn as createClient, Bt as listSentEmails, C as createAgentClaimLink, Cn as testFunction, Ct as getWebhookSecret, D as createFilter, Dn as updateDomain, Dt as listDomains, E as createEndpoint, En as updateAccount, Et as listDeliveries, F as decideRegistryRequest, Fn as updateWakeSchedule, Ft as listPayoutAddresses, G as deleteRegistry, Gt as payChallenge, H as deleteFunctionSecret, Ht as listWakeAuthorizations, I as defineAgent, In as verifyAgentClaim, It as listRegistries, J as deleteWakeAuthorization, Jt as pullWebhookEvent, K as deleteRoute, Kt as pollCliLogin, L as deleteDomain, Ln as verifyAgentSignup, Lt as listRegistryAgents, M as createRoute, Mn as updateRoute, Mt as listFunctionSecrets, N as createWakeAuthorization, Nn as updateSpendPolicy, Nt as listFunctions, O as createFunction, On as updateEndpoint, Ot as listEmails, P as createWakeSchedule, Pn as updateWakeAuthorization, Pt as listOrgSecrets, Q as downloadDomainZoneFile, Qt as replayDelivery, R as deleteEmail, Rn as verifyCliSignup, Rt as listRegistryRequests, S as createAgentAccount, Sn as testEndpointRules, St as getWakeSchedule, T as createEmailChallenge, Tn as unsetFunctionRoute, Tt as listDeclinedPayments, U as deleteMemory, Ut as listWakeDispatches, V as deleteFunction, Vn as createConfig, Vt as listTemplates, W as deleteOrgSecret, Wt as listWakeSchedules, X as discardEmailContent, Xt as removeAgentConnection, Y as deleteWakeSchedule, Yt as registerPayoutAddress, Z as downloadAttachments, Zt as reorderRoutes, _ as awaitReply, _n as startAgentClaim, _t as getSpendPolicy, a as PrimitiveClient, an as rotateWebhookSecret, at as getConversation, b as cliLogout, bn as startCliSignup, bt as getTemplateInstall, c as createPrimitiveClient, cn as searchEmails, ct as getFunctionRouting, d as isMemoryJsonValue, dn as sendEmail, dt as getMemory, en as replyToEmail, et as downloadRawEmail, f as DEFAULT_API_BASE_URL, fn as setFunctionRoute, ft as getOrgRoutingTopology, g as addDomain, gn as simulateRoute, gt as getSentEmail, h as createPrimitiveApiClient, hn as setOrgSecret, ht as getSendPermissions, i as MemoriesResource, in as resolveRegistryHandle, it as getChallenge, j as createRegistry, jn as updateRegistry, jt as listFunctionLogs, k as createFunctionSecret, kn as updateFilter, kt as listEndpoints, l as PRIMITIVE_SIGNATURE_HEADER, ln as searchMemories, lt as getFunctionTestRunTrace, m as PrimitiveApiError, mn as setMemory, mt as getRegistry, n as AgentResource, nn as resendAgentSignupVerification, nt as getAccount, o as client, on as runWakeSchedule, ot as getEmail, p as PrimitiveApiClient, pn as setFunctionSecret, pt as getOutboundStatus, q as deleteSentEmail, qt as publishAgent, r as InboxResource, rn as resendCliSignupVerification, rt as getAgent, s as createAgent, sn as sdk_gen_exports, st as getFunction, t as AccountResource, tn as rescheduleSentEmail, tt as downloadSentAttachmentPart, u as verifyWebhookSignature, un as semanticSearch, ut as getInboxStatus, v as cancelSentEmail, vn as startAgentSignup, vt as getStorageStats, w as createChallenge, wn as unpublishAgent, wt as installTemplate, x as completeWebhookEvent, xn as testEndpoint, xt as getThread, y as checkDomainDns, yn as startCliLogin, yt as getTemplate, z as deleteEndpoint, zn as verifyDomain, zt as listRoutes } from "../api-BEv_YML6.js";
|
|
2
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-DVHnicf5.js";
|
|
3
|
+
import { C as normalizeReceivedEmail, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, l as isTrustedSender, u as validateEmailAuth } from "../errors-BVnAu5jX.js";
|
|
4
4
|
export { AccountResource, AgentResource, AuthConfidence, AuthVerdict, DEFAULT_API_BASE_URL, InboxResource, MemoriesResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, awaitReply, cancelSentEmail, checkDomainDns, cliLogout, client, completeWebhookEvent, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteSentEmail, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadEmailAttachmentPart, downloadRawEmail, downloadSentAttachmentPart, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getOutboundStatus, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, isMemoryJsonValue, isTrustedSender, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, payChallenge, pollCliLogin, publishAgent, pullWebhookEvent, registerPayoutAddress, removeAgentConnection, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, rescheduleSentEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testEndpointRules, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, validateEmailAuth, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
2
|
import { a as pushFile, i as pushBytes, o as loadNodeFsPromises } from "./payloads-BfJAtqW9.js";
|
|
3
|
-
import { S as formatAddress, c as WebhookVerificationError } from "./errors-
|
|
3
|
+
import { S as formatAddress, c as WebhookVerificationError } from "./errors-BVnAu5jX.js";
|
|
4
4
|
//#region ../packages/api-core/src/api/core/bodySerializer.gen.ts
|
|
5
5
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
6
6
|
//#endregion
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as RawContentInline, E as ParsedError, I as WebhookAttachment, T as ParsedDataFailed, d as EmailAuth, f as EmailReceivedEvent, k as RawContentDownloadOnly, l as EmailAddress, u as EmailAnalysis, w as ParsedDataComplete } from "../types-DcXtFARL.js";
|
|
2
|
-
import { A as SignResult, M as signWebhookPayload, S as StandardWebhooksSignResult, _ as WEBHOOK_VERSION, w as signStandardWebhooksPayload } from "../index-
|
|
2
|
+
import { A as SignResult, M as signWebhookPayload, S as StandardWebhooksSignResult, _ as WEBHOOK_VERSION, w as signStandardWebhooksPayload } from "../index-JpXUV16f.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 { p as WEBHOOK_VERSION, v as signStandardWebhooksPayload, w as signWebhookPayload, z as validateEmailReceivedEvent } from "../webhook-
|
|
1
|
+
import { p as WEBHOOK_VERSION, v as signStandardWebhooksPayload, w as signWebhookPayload, z as validateEmailReceivedEvent } from "../webhook-CLVRgb-L.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
//#region src/contract/contract.ts
|
|
4
4
|
/**
|
|
@@ -364,6 +364,15 @@ function untrusted(reason, auth, retryable = false) {
|
|
|
364
364
|
auth
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
+
function hasSubdomainIdentity(auth, domain, dmarcDomain) {
|
|
368
|
+
if (auth.dmarc !== "pass" || auth.dmarcDkimAligned !== true || !domain.endsWith(`.${dmarcDomain}`)) return false;
|
|
369
|
+
const managedInbox = /^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.primitive\.email$/.test(domain);
|
|
370
|
+
return auth.dkimSignatures.some((signature) => {
|
|
371
|
+
const signer = typeof signature.domain === "string" ? signature.domain.trim().toLowerCase() : "";
|
|
372
|
+
const strongKey = signature.algo === "ed25519-sha256" || signature.algo === "rsa-sha256" && typeof signature.keyBits === "number" && signature.keyBits >= 1024;
|
|
373
|
+
return signature.result === "pass" && signature.aligned === true && strongKey && (signer === domain || managedInbox && dmarcDomain === "primitive.email" && signer === "primitive.email");
|
|
374
|
+
});
|
|
375
|
+
}
|
|
367
376
|
/**
|
|
368
377
|
* Check whether an inbound email is authenticated as an expected domain
|
|
369
378
|
* (and optionally an exact sender address).
|
|
@@ -371,8 +380,10 @@ function untrusted(reason, auth, retryable = false) {
|
|
|
371
380
|
* `trusted` is true only when ALL of the following hold:
|
|
372
381
|
*
|
|
373
382
|
* 1. `validateEmailAuth(event.email.auth)` returns a `legit` verdict.
|
|
374
|
-
* 2. `
|
|
375
|
-
*
|
|
383
|
+
* 2. The reported DMARC domain equals `options.domain`, or is its parent
|
|
384
|
+
* and passing, aligned DKIM uses the exact expected domain.
|
|
385
|
+
* A direct child of primitive.email may instead use primitive.email
|
|
386
|
+
* as its signer, trusting Primitive to authorize the sending identity.
|
|
376
387
|
* 3. The From header strict-parses to exactly one valid address whose
|
|
377
388
|
* domain equals `options.domain`.
|
|
378
389
|
* 4. When `options.sender` is given, the parsed From address equals it
|
|
@@ -383,7 +394,11 @@ function untrusted(reason, auth, retryable = false) {
|
|
|
383
394
|
* The verdict alone says an email was authenticated, not which domain
|
|
384
395
|
* it was authenticated as: a fully authenticated email from an
|
|
385
396
|
* attacker-controlled domain is `legit`. Anchoring `dmarcFromDomain`
|
|
386
|
-
*
|
|
397
|
+
* and requiring DKIM proof for subdomain exceptions closes that. A shared
|
|
398
|
+
* organizational domain or SPF-only pass never suffices for the exception.
|
|
399
|
+
* The qualifying signature must use RSA-SHA256 with at least 1024 reported
|
|
400
|
+
* key bits, or Ed25519-SHA256. Unknown algorithms or RSA sizes fail closed.
|
|
401
|
+
* The strict From parse defends the remaining gaps:
|
|
387
402
|
*
|
|
388
403
|
* - Naively regexing the raw From header is unsafe. A header like
|
|
389
404
|
* `From: "trusted@example.com" <x@evil.com>` plants an allowlisted
|
|
@@ -424,7 +439,7 @@ function isTrustedSender(event, options) {
|
|
|
424
439
|
return untrusted("auth-unknown", authResult);
|
|
425
440
|
}
|
|
426
441
|
const dmarcFromDomain = typeof auth.dmarcFromDomain === "string" ? auth.dmarcFromDomain.trim().toLowerCase() : "";
|
|
427
|
-
if (dmarcFromDomain === "" || dmarcFromDomain !== domain) return untrusted("dmarc-domain-mismatch", authResult);
|
|
442
|
+
if (dmarcFromDomain === "" || dmarcFromDomain !== domain && !hasSubdomainIdentity(auth, domain, dmarcFromDomain)) return untrusted("dmarc-domain-mismatch", authResult);
|
|
428
443
|
const parsed = parseFromHeader(event.email?.headers?.from);
|
|
429
444
|
if (!parsed.ok) return untrusted(parsed.reason === "multiple_addresses" ? "from-header-multiple-addresses" : "from-header-invalid", authResult);
|
|
430
445
|
const fromAddress = parsed.value.address;
|
|
@@ -118,8 +118,8 @@ declare function validateEmailAuth(auth: EmailAuth): ValidateEmailAuthResult;
|
|
|
118
118
|
* is not transient (most commonly the sender domain publishes no
|
|
119
119
|
* DMARC record, or evaluation hit a permanent error).
|
|
120
120
|
* - `dmarc-domain-mismatch`: the email authenticated, but the domain
|
|
121
|
-
* DMARC
|
|
122
|
-
*
|
|
121
|
+
* DMARC reported does not match the expected domain and no qualifying
|
|
122
|
+
* subdomain DKIM signature proves its identity.
|
|
123
123
|
* - `from-header-multiple-addresses`: the From header lists more than
|
|
124
124
|
* one address, which is ambiguous as an identity.
|
|
125
125
|
* - `from-header-invalid`: the From header is missing, malformed, uses
|
|
@@ -168,8 +168,10 @@ interface TrustedSenderResult {
|
|
|
168
168
|
* `trusted` is true only when ALL of the following hold:
|
|
169
169
|
*
|
|
170
170
|
* 1. `validateEmailAuth(event.email.auth)` returns a `legit` verdict.
|
|
171
|
-
* 2. `
|
|
172
|
-
*
|
|
171
|
+
* 2. The reported DMARC domain equals `options.domain`, or is its parent
|
|
172
|
+
* and passing, aligned DKIM uses the exact expected domain.
|
|
173
|
+
* A direct child of primitive.email may instead use primitive.email
|
|
174
|
+
* as its signer, trusting Primitive to authorize the sending identity.
|
|
173
175
|
* 3. The From header strict-parses to exactly one valid address whose
|
|
174
176
|
* domain equals `options.domain`.
|
|
175
177
|
* 4. When `options.sender` is given, the parsed From address equals it
|
|
@@ -180,7 +182,11 @@ interface TrustedSenderResult {
|
|
|
180
182
|
* The verdict alone says an email was authenticated, not which domain
|
|
181
183
|
* it was authenticated as: a fully authenticated email from an
|
|
182
184
|
* attacker-controlled domain is `legit`. Anchoring `dmarcFromDomain`
|
|
183
|
-
*
|
|
185
|
+
* and requiring DKIM proof for subdomain exceptions closes that. A shared
|
|
186
|
+
* organizational domain or SPF-only pass never suffices for the exception.
|
|
187
|
+
* The qualifying signature must use RSA-SHA256 with at least 1024 reported
|
|
188
|
+
* key bits, or Ed25519-SHA256. Unknown algorithms or RSA sizes fail closed.
|
|
189
|
+
* The strict From parse defends the remaining gaps:
|
|
184
190
|
*
|
|
185
191
|
* - Naively regexing the raw From header is unsafe. A header like
|
|
186
192
|
* `From: "trusted@example.com" <x@evil.com>` plants an allowlisted
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as ReceivedEmail } from "./errors-
|
|
1
|
+
import { y as ReceivedEmail } from "./errors-CCJX3I_T.js";
|
|
2
2
|
|
|
3
3
|
//#region ../packages/api-core/src/api/core/auth.gen.d.ts
|
|
4
4
|
type AuthToken = string | undefined;
|
|
@@ -7334,6 +7334,60 @@ type ListSentEmailsData = {
|
|
|
7334
7334
|
* Inclusive upper bound on `created_at`.
|
|
7335
7335
|
*/
|
|
7336
7336
|
date_to?: string;
|
|
7337
|
+
/**
|
|
7338
|
+
* Literal case-insensitive substring filter over the
|
|
7339
|
+
* subject, the retained plain-text body, the sender, and
|
|
7340
|
+
* the To, CC and BCC recipients of each send. Matched
|
|
7341
|
+
* verbatim: `%`, `_` and `\` are ordinary characters and
|
|
7342
|
+
* do not act as wildcards, so a search for `10%` finds the
|
|
7343
|
+
* literal string `10%` rather than everything beginning
|
|
7344
|
+
* `10`.
|
|
7345
|
+
*
|
|
7346
|
+
* Leading and trailing whitespace is trimmed, and the
|
|
7347
|
+
* result must be 3 to 500 UTF-16 code units. The
|
|
7348
|
+
* three-character minimum is the search index's: a shorter
|
|
7349
|
+
* pattern cannot be answered from the index and would scan
|
|
7350
|
+
* the whole mailbox, so it is rejected rather than served
|
|
7351
|
+
* as a request that times out.
|
|
7352
|
+
*
|
|
7353
|
+
* Those bounds are deliberately NOT declared as
|
|
7354
|
+
* `minLength`/`maxLength`. Both count Unicode code points
|
|
7355
|
+
* on the value as sent, while the server trims first and
|
|
7356
|
+
* counts UTF-16 code units, and the two disagree in both
|
|
7357
|
+
* directions: two astral characters are 2 code points but
|
|
7358
|
+
* 4 code units, so a declared minimum would reject a query
|
|
7359
|
+
* the server accepts, and `"<499 chars> "` is 500 code
|
|
7360
|
+
* points before trimming and 499 after, so a declared
|
|
7361
|
+
* maximum would reject another. Declaring a bound the
|
|
7362
|
+
* server does not enforce is worse than declaring none,
|
|
7363
|
+
* because the client refuses locally and the caller never
|
|
7364
|
+
* learns why. The server validates; a violation is a `400`.
|
|
7365
|
+
*
|
|
7366
|
+
* Recipients are matched one address at a time rather than
|
|
7367
|
+
* against the serialized recipient list, so a query
|
|
7368
|
+
* containing a quote, comma or bracket matches only where
|
|
7369
|
+
* that character occurs inside an address. Bodies are
|
|
7370
|
+
* searched only where the plain-text body was retained;
|
|
7371
|
+
* HTML-only bodies are not searched.
|
|
7372
|
+
*
|
|
7373
|
+
* Not served by every deployment. Where sent-mail search
|
|
7374
|
+
* is not enabled the endpoint answers `503` with code
|
|
7375
|
+
* `sent_mail_search_unavailable`, which callers should
|
|
7376
|
+
* treat as a capability answer and fall back on rather
|
|
7377
|
+
* than as an outage.
|
|
7378
|
+
*
|
|
7379
|
+
*/
|
|
7380
|
+
q?: string;
|
|
7381
|
+
/**
|
|
7382
|
+
* Exact case-insensitive sender mailbox filter. Returns
|
|
7383
|
+
* only sends whose from address equals this value; it is
|
|
7384
|
+
* not a substring match, so a partial mailbox matches
|
|
7385
|
+
* nothing. Use `q` to search sender text loosely.
|
|
7386
|
+
* Combines with every other filter, and unlike `q` it is
|
|
7387
|
+
* served by every deployment.
|
|
7388
|
+
*
|
|
7389
|
+
*/
|
|
7390
|
+
from?: string;
|
|
7337
7391
|
};
|
|
7338
7392
|
url: '/sent-emails';
|
|
7339
7393
|
};
|
|
@@ -7346,6 +7400,16 @@ type ListSentEmailsErrors = {
|
|
|
7346
7400
|
* Invalid or missing API key
|
|
7347
7401
|
*/
|
|
7348
7402
|
401: ErrorResponse;
|
|
7403
|
+
/**
|
|
7404
|
+
* Sent-mail text search is not enabled in this deployment,
|
|
7405
|
+
* so `q` cannot be served. A capability answer, not an
|
|
7406
|
+
* outage: it will not clear on retry, and the same request
|
|
7407
|
+
* without `q` succeeds. Fall back to whatever local
|
|
7408
|
+
* matching the caller has. Distinguished from the generic
|
|
7409
|
+
* 503 by its `sent_mail_search_unavailable` code.
|
|
7410
|
+
*
|
|
7411
|
+
*/
|
|
7412
|
+
503: ErrorResponse;
|
|
7349
7413
|
};
|
|
7350
7414
|
type ListSentEmailsError = ListSentEmailsErrors[keyof ListSentEmailsErrors];
|
|
7351
7415
|
type ListSentEmailsResponses = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as WebhookEvent, f as EmailReceivedEvent } from "./types-DcXtFARL.js";
|
|
2
|
-
import { u as WebhookValidationError, y as ReceivedEmail } from "./errors-
|
|
2
|
+
import { u as WebhookValidationError, y as ReceivedEmail } from "./errors-CCJX3I_T.js";
|
|
3
3
|
|
|
4
4
|
//#region src/validation.d.ts
|
|
5
5
|
interface ValidationSuccess<T> {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as WaitForNextOptions, Bv as VerifyAgentClaimInput, Cr as AgentAccountResult, Dr as AgentClaimStartResult, E as SendInput, Er as AgentClaimResult, M as createAgent, N as createPrimitiveClient, O as SendResult, Oi as CreateAgentClaimLinkInput, Si as CreateAgentAccountInput, Tr as AgentClaimLinkResult, V as PrimitiveApiError, _ as MemorySearchResponse, a as CreatedAgent, b as PrimitiveClientOptions, c as InboxResource, cp as PlanLimits, d as MemoryDeleteInput, f as MemoryGetInput, g as MemorySearchInput, h as MemoryRecordWithValue, hr as Account, i as CreateAgentOptions, j as client, k as SendThreadInput, l as InboxStreamOptions, m as MemoryRecord, mg as StartAgentClaimInput, o as ForwardInput, p as MemoryJsonValue, r as AttachmentPartDownload, s as InboundEmail, t as AccountResource, u as MemoriesResource, v as MemorySetInput, w as SendAttachment, wr as AgentAccountUpgradeHint, x as ReplyInput, y as PrimitiveClient } from "./index-
|
|
1
|
+
import { A as WaitForNextOptions, Bv as VerifyAgentClaimInput, Cr as AgentAccountResult, Dr as AgentClaimStartResult, E as SendInput, Er as AgentClaimResult, M as createAgent, N as createPrimitiveClient, O as SendResult, Oi as CreateAgentClaimLinkInput, Si as CreateAgentAccountInput, Tr as AgentClaimLinkResult, V as PrimitiveApiError, _ as MemorySearchResponse, a as CreatedAgent, b as PrimitiveClientOptions, c as InboxResource, cp as PlanLimits, d as MemoryDeleteInput, f as MemoryGetInput, g as MemorySearchInput, h as MemoryRecordWithValue, hr as Account, i as CreateAgentOptions, j as client, k as SendThreadInput, l as InboxStreamOptions, m as MemoryRecord, mg as StartAgentClaimInput, o as ForwardInput, p as MemoryJsonValue, r as AttachmentPartDownload, s as InboundEmail, t as AccountResource, u as MemoriesResource, v as MemorySetInput, w as SendAttachment, wr as AgentAccountUpgradeHint, x as ReplyInput, y as PrimitiveClient } from "./index-B1a5L2zU.js";
|
|
2
2
|
import { $ as isPaymentFailedEvent, A as RawContentInline, B as InteractionEvent, C as ParsedData, D as ParsedStatus, E as ParsedError, F as ValidateEmailAuthResult, G as PaymentFailedEvent, H as InteractionX402Suffix, I as WebhookAttachment, J as WebhookEventType, K as PaymentSettledEvent, L as WebhookEvent, M as SpfResult, N as TlsReportAnalysis, O as RawContent, P as UnknownEvent, Q as isPaymentEvent, R as EMAIL_EVENT_TYPES, S as KnownWebhookEvent, T as ParsedDataFailed, U as PAYMENT_EVENT_TYPES, V as InteractionX402Event, W as PaymentEvent, X as isInteractionX402Event, Y as isEmailReceivedEvent, Z as isKnownWebhookEventType, _ as ForwardResultAttachmentAnalyzed, a as DkimSignature, b as ForwardVerdict, c as DmarcResult, d as EmailAuth, et as isPaymentSettledEvent, f as EmailReceivedEvent, g as ForwardResult, h as ForwardOriginalSender, i as DkimResult, j as RoutingDecision, k as RawContentDownloadOnly, l as EmailAddress, m as ForwardAnalysis, n as AuthVerdict, o as DmarcPolicy, p as EventType, q as WEBHOOK_EVENT_TYPES, r as BounceAnalysis, s as DmarcReportAnalysis, t as AuthConfidence, u as EmailAnalysis, v as ForwardResultAttachmentSkipped, w as ParsedDataComplete, x as ForwardVerification, y as ForwardResultInline, z as INTERACTION_EVENT_TYPES } from "./types-DcXtFARL.js";
|
|
3
|
-
import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "./errors-
|
|
4
|
-
import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as verifyRawEmailDownload, h as receive, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as parseWebhookEvent, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "./index-
|
|
3
|
+
import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "./errors-CCJX3I_T.js";
|
|
4
|
+
import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as verifyRawEmailDownload, h as receive, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as parseWebhookEvent, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "./index-JpXUV16f.js";
|
|
5
5
|
import { a as NonceBinding, c as TokenDomain, f as X402PaymentPayload, l as TransferAuthorization, m as X402Signer, o as PayoutRegistrationMessageInput, x as deriveEip3009Nonce, y as buildPayoutRegistrationMessage } from "./sign-m3ZStnNw.js";
|
|
6
6
|
import { X402Challenge, X402ChargeInput, X402Client, X402ClientOptions, X402DeclinedPayment, X402Error, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, createX402Client, parseEmailChallengeFromPart } from "./x402/index.js";
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, m as PrimitiveApiError, o as client, r as InboxResource, s as createAgent, t as AccountResource } from "./api-
|
|
2
|
-
import { C as normalizeReceivedEmail, S as formatAddress, _ as ForwardVerdict, a as VERIFICATION_ERRORS, b as buildForwardSubject, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, g as EventType, h as DmarcResult, i as RawEmailDecodeError, l as isTrustedSender, m as DmarcPolicy, n as PrimitiveWebhookError, o as WebhookPayloadError, p as DkimResult, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as validateEmailAuth, v as ParsedStatus, w as parseHeaderAddress, x as buildReplySubject, y as SpfResult } from "./errors-
|
|
3
|
-
import { A as isEmailReceivedEvent, C as PRIMITIVE_SIGNATURE_HEADER, D as INTERACTION_EVENT_TYPES, E as EMAIL_EVENT_TYPES, F as isPaymentSettledEvent, I as generateDownloadToken, L as verifyDownloadToken, M as isKnownWebhookEventType, N as isPaymentEvent, O as PAYMENT_EVENT_TYPES, P as isPaymentFailedEvent, R as safeValidateEmailReceivedEvent, S as PRIMITIVE_CONFIRMED_HEADER, T as verifyWebhookSignature, _ as STANDARD_WEBHOOK_TIMESTAMP_HEADER, a as getEventHeader, b as LEGACY_CONFIRMED_HEADER, c as isDownloadExpired, d as receive, f as verifyRawEmailDownload, g as STANDARD_WEBHOOK_SIGNATURE_HEADER, h as STANDARD_WEBHOOK_ID_HEADER, i as getDownloadTimeRemaining, j as isInteractionX402Event, k as WEBHOOK_EVENT_TYPES, l as isRawIncluded, m as emailReceivedEventJsonSchema, n as confirmedHeaders, o as handleWebhook, p as WEBHOOK_VERSION, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as parseWebhookEvent, v as signStandardWebhooksPayload, w as signWebhookPayload, x as LEGACY_SIGNATURE_HEADER, y as verifyStandardWebhooksSignature, z as validateEmailReceivedEvent } from "./webhook-
|
|
1
|
+
import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, m as PrimitiveApiError, o as client, r as InboxResource, s as createAgent, t as AccountResource } from "./api-BEv_YML6.js";
|
|
2
|
+
import { C as normalizeReceivedEmail, S as formatAddress, _ as ForwardVerdict, a as VERIFICATION_ERRORS, b as buildForwardSubject, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, g as EventType, h as DmarcResult, i as RawEmailDecodeError, l as isTrustedSender, m as DmarcPolicy, n as PrimitiveWebhookError, o as WebhookPayloadError, p as DkimResult, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as validateEmailAuth, v as ParsedStatus, w as parseHeaderAddress, x as buildReplySubject, y as SpfResult } from "./errors-BVnAu5jX.js";
|
|
3
|
+
import { A as isEmailReceivedEvent, C as PRIMITIVE_SIGNATURE_HEADER, D as INTERACTION_EVENT_TYPES, E as EMAIL_EVENT_TYPES, F as isPaymentSettledEvent, I as generateDownloadToken, L as verifyDownloadToken, M as isKnownWebhookEventType, N as isPaymentEvent, O as PAYMENT_EVENT_TYPES, P as isPaymentFailedEvent, R as safeValidateEmailReceivedEvent, S as PRIMITIVE_CONFIRMED_HEADER, T as verifyWebhookSignature, _ as STANDARD_WEBHOOK_TIMESTAMP_HEADER, a as getEventHeader, b as LEGACY_CONFIRMED_HEADER, c as isDownloadExpired, d as receive, f as verifyRawEmailDownload, g as STANDARD_WEBHOOK_SIGNATURE_HEADER, h as STANDARD_WEBHOOK_ID_HEADER, i as getDownloadTimeRemaining, j as isInteractionX402Event, k as WEBHOOK_EVENT_TYPES, l as isRawIncluded, m as emailReceivedEventJsonSchema, n as confirmedHeaders, o as handleWebhook, p as WEBHOOK_VERSION, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as parseWebhookEvent, v as signStandardWebhooksPayload, w as signWebhookPayload, x as LEGACY_SIGNATURE_HEADER, y as verifyStandardWebhooksSignature, z as validateEmailReceivedEvent } from "./webhook-CLVRgb-L.js";
|
|
4
4
|
import { X402Client, X402Error, buildPayoutRegistrationMessage, createX402Client, deriveEip3009Nonce, parseEmailChallengeFromPart } from "./x402/index.js";
|
|
5
5
|
//#region src/index.ts
|
|
6
6
|
const primitive = {
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
1
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-DVHnicf5.js";
|
|
2
2
|
export { openapiDocument, operationManifest };
|
|
@@ -2372,6 +2372,22 @@ const openapiDocument = {
|
|
|
2372
2372
|
"format": "date-time"
|
|
2373
2373
|
},
|
|
2374
2374
|
"description": "Inclusive upper bound on `created_at`."
|
|
2375
|
+
},
|
|
2376
|
+
{
|
|
2377
|
+
"name": "q",
|
|
2378
|
+
"in": "query",
|
|
2379
|
+
"schema": { "type": "string" },
|
|
2380
|
+
"description": "Literal case-insensitive substring filter over the\nsubject, the retained plain-text body, the sender, and\nthe To, CC and BCC recipients of each send. Matched\nverbatim: `%`, `_` and `\\` are ordinary characters and\ndo not act as wildcards, so a search for `10%` finds the\nliteral string `10%` rather than everything beginning\n`10`.\n\nLeading and trailing whitespace is trimmed, and the\nresult must be 3 to 500 UTF-16 code units. The\nthree-character minimum is the search index's: a shorter\npattern cannot be answered from the index and would scan\nthe whole mailbox, so it is rejected rather than served\nas a request that times out.\n\nThose bounds are deliberately NOT declared as\n`minLength`/`maxLength`. Both count Unicode code points\non the value as sent, while the server trims first and\ncounts UTF-16 code units, and the two disagree in both\ndirections: two astral characters are 2 code points but\n4 code units, so a declared minimum would reject a query\nthe server accepts, and `\"<499 chars> \"` is 500 code\npoints before trimming and 499 after, so a declared\nmaximum would reject another. Declaring a bound the\nserver does not enforce is worse than declaring none,\nbecause the client refuses locally and the caller never\nlearns why. The server validates; a violation is a `400`.\n\nRecipients are matched one address at a time rather than\nagainst the serialized recipient list, so a query\ncontaining a quote, comma or bracket matches only where\nthat character occurs inside an address. Bodies are\nsearched only where the plain-text body was retained;\nHTML-only bodies are not searched.\n\nNot served by every deployment. Where sent-mail search\nis not enabled the endpoint answers `503` with code\n`sent_mail_search_unavailable`, which callers should\ntreat as a capability answer and fall back on rather\nthan as an outage.\n"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"name": "from",
|
|
2384
|
+
"in": "query",
|
|
2385
|
+
"schema": {
|
|
2386
|
+
"type": "string",
|
|
2387
|
+
"format": "email",
|
|
2388
|
+
"maxLength": 320
|
|
2389
|
+
},
|
|
2390
|
+
"description": "Exact case-insensitive sender mailbox filter. Returns\nonly sends whose from address equals this value; it is\nnot a substring match, so a partial mailbox matches\nnothing. Use `q` to search sender text loosely.\nCombines with every other filter, and unlike `q` it is\nserved by every deployment.\n"
|
|
2375
2391
|
}
|
|
2376
2392
|
],
|
|
2377
2393
|
"responses": {
|
|
@@ -2386,7 +2402,20 @@ const openapiDocument = {
|
|
|
2386
2402
|
}] } } }
|
|
2387
2403
|
},
|
|
2388
2404
|
"400": { "$ref": "#/components/responses/ValidationError" },
|
|
2389
|
-
"401": { "$ref": "#/components/responses/Unauthorized" }
|
|
2405
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
2406
|
+
"503": {
|
|
2407
|
+
"description": "Sent-mail text search is not enabled in this deployment,\nso `q` cannot be served. A capability answer, not an\noutage: it will not clear on retry, and the same request\nwithout `q` succeeds. Fall back to whatever local\nmatching the caller has. Distinguished from the generic\n503 by its `sent_mail_search_unavailable` code.\n",
|
|
2408
|
+
"content": { "application/json": {
|
|
2409
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
2410
|
+
"example": {
|
|
2411
|
+
"success": false,
|
|
2412
|
+
"error": {
|
|
2413
|
+
"code": "sent_mail_search_unavailable",
|
|
2414
|
+
"message": "Sent-mail text search (`q`) is not enabled in this environment."
|
|
2415
|
+
}
|
|
2416
|
+
}
|
|
2417
|
+
} }
|
|
2418
|
+
}
|
|
2390
2419
|
}
|
|
2391
2420
|
} },
|
|
2392
2421
|
"/sent-emails/{id}": {
|
|
@@ -22176,6 +22205,20 @@ const operationManifest = [
|
|
|
22176
22205
|
"name": "date_to",
|
|
22177
22206
|
"required": false,
|
|
22178
22207
|
"type": "string"
|
|
22208
|
+
},
|
|
22209
|
+
{
|
|
22210
|
+
"description": "Literal case-insensitive substring filter over the\nsubject, the retained plain-text body, the sender, and\nthe To, CC and BCC recipients of each send. Matched\nverbatim: `%`, `_` and `\\` are ordinary characters and\ndo not act as wildcards, so a search for `10%` finds the\nliteral string `10%` rather than everything beginning\n`10`.\n\nLeading and trailing whitespace is trimmed, and the\nresult must be 3 to 500 UTF-16 code units. The\nthree-character minimum is the search index's: a shorter\npattern cannot be answered from the index and would scan\nthe whole mailbox, so it is rejected rather than served\nas a request that times out.\n\nThose bounds are deliberately NOT declared as\n`minLength`/`maxLength`. Both count Unicode code points\non the value as sent, while the server trims first and\ncounts UTF-16 code units, and the two disagree in both\ndirections: two astral characters are 2 code points but\n4 code units, so a declared minimum would reject a query\nthe server accepts, and `\"<499 chars> \"` is 500 code\npoints before trimming and 499 after, so a declared\nmaximum would reject another. Declaring a bound the\nserver does not enforce is worse than declaring none,\nbecause the client refuses locally and the caller never\nlearns why. The server validates; a violation is a `400`.\n\nRecipients are matched one address at a time rather than\nagainst the serialized recipient list, so a query\ncontaining a quote, comma or bracket matches only where\nthat character occurs inside an address. Bodies are\nsearched only where the plain-text body was retained;\nHTML-only bodies are not searched.\n\nNot served by every deployment. Where sent-mail search\nis not enabled the endpoint answers `503` with code\n`sent_mail_search_unavailable`, which callers should\ntreat as a capability answer and fall back on rather\nthan as an outage.\n",
|
|
22211
|
+
"enum": null,
|
|
22212
|
+
"name": "q",
|
|
22213
|
+
"required": false,
|
|
22214
|
+
"type": "string"
|
|
22215
|
+
},
|
|
22216
|
+
{
|
|
22217
|
+
"description": "Exact case-insensitive sender mailbox filter. Returns\nonly sends whose from address equals this value; it is\nnot a substring match, so a partial mailbox matches\nnothing. Use `q` to search sender text loosely.\nCombines with every other filter, and unlike `q` it is\nserved by every deployment.\n",
|
|
22218
|
+
"enum": null,
|
|
22219
|
+
"name": "from",
|
|
22220
|
+
"required": false,
|
|
22221
|
+
"type": "string"
|
|
22179
22222
|
}
|
|
22180
22223
|
],
|
|
22181
22224
|
"requestSchema": null,
|
package/dist/webhook/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { $ as isPaymentFailedEvent, A as RawContentInline, B as InteractionEvent, C as ParsedData, D as ParsedStatus, E as ParsedError, F as ValidateEmailAuthResult, G as PaymentFailedEvent, H as InteractionX402Suffix, I as WebhookAttachment, J as WebhookEventType, K as PaymentSettledEvent, L as WebhookEvent, M as SpfResult, N as TlsReportAnalysis, O as RawContent, P as UnknownEvent, Q as isPaymentEvent, R as EMAIL_EVENT_TYPES, S as KnownWebhookEvent, T as ParsedDataFailed, U as PAYMENT_EVENT_TYPES, V as InteractionX402Event, W as PaymentEvent, X as isInteractionX402Event, Y as isEmailReceivedEvent, Z as isKnownWebhookEventType, _ as ForwardResultAttachmentAnalyzed, a as DkimSignature, b as ForwardVerdict, c as DmarcResult, d as EmailAuth, et as isPaymentSettledEvent, f as EmailReceivedEvent, g as ForwardResult, h as ForwardOriginalSender, i as DkimResult, j as RoutingDecision, k as RawContentDownloadOnly, l as EmailAddress, m as ForwardAnalysis, n as AuthVerdict, o as DmarcPolicy, p as EventType, q as WEBHOOK_EVENT_TYPES, r as BounceAnalysis, s as DmarcReportAnalysis, t as AuthConfidence, u as EmailAnalysis, v as ForwardResultAttachmentSkipped, w as ParsedDataComplete, x as ForwardVerification, y as ForwardResultInline, z as INTERACTION_EVENT_TYPES } from "../types-DcXtFARL.js";
|
|
2
|
-
import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "../errors-
|
|
3
|
-
import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as verifyRawEmailDownload, h as receive, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as parseWebhookEvent, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "../index-
|
|
2
|
+
import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "../errors-CCJX3I_T.js";
|
|
3
|
+
import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as verifyRawEmailDownload, h as receive, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as parseWebhookEvent, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "../index-JpXUV16f.js";
|
|
4
4
|
export { AuthConfidence, AuthVerdict, BounceAnalysis, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcReportAnalysis, DmarcResult, EMAIL_EVENT_TYPES, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, INTERACTION_EVENT_TYPES, InteractionEvent, InteractionX402Event, InteractionX402Suffix, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PAYMENT_EVENT_TYPES, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PaymentEvent, PaymentFailedEvent, PaymentSettledEvent, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, RoutingDecision, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, TlsReportAnalysis, TrustReason, TrustedSenderOptions, TrustedSenderResult, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_EVENT_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_VERSION, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, buildForwardSubject, buildReplySubject, confirmedHeaders, decodeRawEmail, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, getEventHeader, handleWebhook, handleWebhookEvent, isDownloadExpired, isEmailReceivedEvent, isInteractionX402Event, isKnownWebhookEventType, isPaymentEvent, isPaymentFailedEvent, isPaymentSettledEvent, isRawIncluded, isTrustedSender, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
|
package/dist/webhook/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as normalizeReceivedEmail, S as formatAddress, _ as ForwardVerdict, a as VERIFICATION_ERRORS, b as buildForwardSubject, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, g as EventType, h as DmarcResult, i as RawEmailDecodeError, l as isTrustedSender, m as DmarcPolicy, n as PrimitiveWebhookError, o as WebhookPayloadError, p as DkimResult, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as validateEmailAuth, v as ParsedStatus, w as parseHeaderAddress, x as buildReplySubject, y as SpfResult } from "../errors-
|
|
2
|
-
import { A as isEmailReceivedEvent, C as PRIMITIVE_SIGNATURE_HEADER, D as INTERACTION_EVENT_TYPES, E as EMAIL_EVENT_TYPES, F as isPaymentSettledEvent, I as generateDownloadToken, L as verifyDownloadToken, M as isKnownWebhookEventType, N as isPaymentEvent, O as PAYMENT_EVENT_TYPES, P as isPaymentFailedEvent, R as safeValidateEmailReceivedEvent, S as PRIMITIVE_CONFIRMED_HEADER, T as verifyWebhookSignature, _ as STANDARD_WEBHOOK_TIMESTAMP_HEADER, a as getEventHeader, b as LEGACY_CONFIRMED_HEADER, c as isDownloadExpired, d as receive, f as verifyRawEmailDownload, g as STANDARD_WEBHOOK_SIGNATURE_HEADER, h as STANDARD_WEBHOOK_ID_HEADER, i as getDownloadTimeRemaining, j as isInteractionX402Event, k as WEBHOOK_EVENT_TYPES, l as isRawIncluded, m as emailReceivedEventJsonSchema, n as confirmedHeaders, o as handleWebhook, p as WEBHOOK_VERSION, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as parseWebhookEvent, v as signStandardWebhooksPayload, w as signWebhookPayload, x as LEGACY_SIGNATURE_HEADER, y as verifyStandardWebhooksSignature, z as validateEmailReceivedEvent } from "../webhook-
|
|
1
|
+
import { C as normalizeReceivedEmail, S as formatAddress, _ as ForwardVerdict, a as VERIFICATION_ERRORS, b as buildForwardSubject, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, g as EventType, h as DmarcResult, i as RawEmailDecodeError, l as isTrustedSender, m as DmarcPolicy, n as PrimitiveWebhookError, o as WebhookPayloadError, p as DkimResult, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as validateEmailAuth, v as ParsedStatus, w as parseHeaderAddress, x as buildReplySubject, y as SpfResult } from "../errors-BVnAu5jX.js";
|
|
2
|
+
import { A as isEmailReceivedEvent, C as PRIMITIVE_SIGNATURE_HEADER, D as INTERACTION_EVENT_TYPES, E as EMAIL_EVENT_TYPES, F as isPaymentSettledEvent, I as generateDownloadToken, L as verifyDownloadToken, M as isKnownWebhookEventType, N as isPaymentEvent, O as PAYMENT_EVENT_TYPES, P as isPaymentFailedEvent, R as safeValidateEmailReceivedEvent, S as PRIMITIVE_CONFIRMED_HEADER, T as verifyWebhookSignature, _ as STANDARD_WEBHOOK_TIMESTAMP_HEADER, a as getEventHeader, b as LEGACY_CONFIRMED_HEADER, c as isDownloadExpired, d as receive, f as verifyRawEmailDownload, g as STANDARD_WEBHOOK_SIGNATURE_HEADER, h as STANDARD_WEBHOOK_ID_HEADER, i as getDownloadTimeRemaining, j as isInteractionX402Event, k as WEBHOOK_EVENT_TYPES, l as isRawIncluded, m as emailReceivedEventJsonSchema, n as confirmedHeaders, o as handleWebhook, p as WEBHOOK_VERSION, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as parseWebhookEvent, v as signStandardWebhooksPayload, w as signWebhookPayload, x as LEGACY_SIGNATURE_HEADER, y as verifyStandardWebhooksSignature, z as validateEmailReceivedEvent } from "../webhook-CLVRgb-L.js";
|
|
3
3
|
export { AuthConfidence, AuthVerdict, DkimResult, DmarcPolicy, DmarcResult, EMAIL_EVENT_TYPES, EventType, ForwardVerdict, INTERACTION_EVENT_TYPES, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, PAYLOAD_ERRORS, PAYMENT_EVENT_TYPES, 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_EVENT_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_VERSION, WebhookPayloadError, WebhookValidationError, WebhookVerificationError, buildForwardSubject, buildReplySubject, confirmedHeaders, decodeRawEmail, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, getEventHeader, handleWebhook, handleWebhookEvent, isDownloadExpired, isEmailReceivedEvent, isInteractionX402Event, isKnownWebhookEventType, isPaymentEvent, isPaymentFailedEvent, isPaymentSettledEvent, isRawIncluded, isTrustedSender, normalizeReceivedEmail, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as normalizeReceivedEmail, c as WebhookVerificationError, i as RawEmailDecodeError, o as WebhookPayloadError, s as WebhookValidationError } from "./errors-
|
|
1
|
+
import { C as normalizeReceivedEmail, c as WebhookVerificationError, i as RawEmailDecodeError, o as WebhookPayloadError, s as WebhookValidationError } from "./errors-BVnAu5jX.js";
|
|
2
2
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/generated/email-received-event.validator.generated.ts
|
|
4
4
|
/**
|
package/package.json
CHANGED