@primitivedotdev/sdk 1.17.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.js +3 -3
- package/dist/{api-8z9Ouubx.js → api-CnvYcgJ-.js} +121 -86
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.js +1 -1
- package/dist/errors-D6WjisrD.js +673 -0
- package/dist/{errors-BTHBQqJa.d.ts → errors-DAHv2kWU.d.ts} +175 -2
- package/dist/{index-D2nlv8DS.d.ts → index-DJeUuGUn.d.ts} +3 -65
- package/dist/{index-DZq8cw8r.d.ts → index-d8WzbPv5.d.ts} +32 -15
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/webhook/index.d.ts +3 -3
- package/dist/webhook/index.js +3 -3
- package/dist/{webhook-BekIm0Uf.js → webhook-1cz088XC.js} +2 -252
- package/package.json +1 -1
- package/dist/errors-BPJGp9I6.js +0 -287
package/README.md
CHANGED
|
@@ -200,6 +200,39 @@ email.raw;
|
|
|
200
200
|
|
|
201
201
|
Use `email.raw` when you need the original validated webhook event shape.
|
|
202
202
|
|
|
203
|
+
## Deciding whether to trust an inbound email
|
|
204
|
+
|
|
205
|
+
Every `email.received` event carries the server's SPF, DKIM, and DMARC results on `event.email.auth`. Two helpers turn those into decisions, and both are importable from `@primitivedotdev/sdk/api` so they work inside Primitive Functions:
|
|
206
|
+
|
|
207
|
+
`validateEmailAuth(event.email.auth)` computes an overall verdict (`legit`, `suspicious`, or `unknown`) with a confidence level and human-readable reasons. It answers "was this email authenticated?" but not which domain it was authenticated as: a fully authenticated email from any domain, including one an attacker registered, returns `legit`.
|
|
208
|
+
|
|
209
|
+
`isTrustedSender(event, { domain, sender? })` anchors the verdict to an expected From domain, for handlers that gate an action on "this really came from our domain":
|
|
210
|
+
|
|
211
|
+
```ts
|
|
212
|
+
import { isTrustedSender } from "@primitivedotdev/sdk/api";
|
|
213
|
+
|
|
214
|
+
const trust = isTrustedSender(email.raw, { domain: "example.com" });
|
|
215
|
+
|
|
216
|
+
if (trust.trusted) {
|
|
217
|
+
// Authenticated mail whose From address is @example.com
|
|
218
|
+
} else if (trust.retryable) {
|
|
219
|
+
// Transient DNS failure during DMARC evaluation. Respond with a 5xx
|
|
220
|
+
// so webhook redelivery retries this email later.
|
|
221
|
+
} else {
|
|
222
|
+
console.warn("Untrusted:", trust.reason, trust.auth.reasons);
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
`trusted` is true only when the verdict is `legit`, the domain DMARC evaluated equals `domain`, and the From header strict-parses to a single valid address in `domain` (exactly matching `sender` when given). `reason` is a stable machine-readable code naming the first check that failed.
|
|
227
|
+
|
|
228
|
+
If you are writing your own check instead, three details matter:
|
|
229
|
+
|
|
230
|
+
- Do not regex the raw From header. `From: "trusted@example.com" <x@evil.com>` puts an allowlisted address in the display name while DMARC evaluates, and can pass for, `evil.com`.
|
|
231
|
+
- Do not authorize based on `email.replyTarget` or `email.smtp.mail_from`; both are fully sender-controlled. `email.sender` is parsed leniently for display purposes and falls back to `smtp.mail_from`, so it is not a safe authorization anchor either.
|
|
232
|
+
- An `unknown` verdict has two very different causes: a temporary DNS error (retry later) and a sender domain that publishes no DMARC record (permanent for that email). `isTrustedSender` separates them via `retryable`.
|
|
233
|
+
|
|
234
|
+
The same helper is available in the Python SDK (`is_trusted_sender`) and the Go SDK (`IsTrustedSender`) with identical semantics.
|
|
235
|
+
|
|
203
236
|
## x402 payments
|
|
204
237
|
|
|
205
238
|
The `x402` client lets one agent request a USDC payment and another pay it. It is non-custodial: the payer signs an EIP-3009 `transferWithAuthorization` locally with their own key, and the key never leaves the caller. The platform resolves the real payee address, verifies every signed field against its own records, enforces the org's spend policy, and settles on chain.
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as createWakeAuthorization, $a as DeleteRegistryResponse, $c as GetThreadErrors, $d as ReorderRoutesResponses, $f as SearchMemoriesErrors, $g as RequestOptions, $h as UpdateWakeAuthorizationErrors, $i as DecideRegistryRequestErrors, $l as ListFunctionLogsErrors, $m as UnsetFunctionRouteErrors, $n as AddDomainInput, $o as EmailStatus, $p as SimulateRouteData, $r as CreateEndpointResponse, $s as GetFunctionResponse, $t as listSentEmails, $u as ListWakeDispatchesResponse, A as PRIMITIVE_SIGNATURE_HEADER, Aa as DeleteFunctionError, Ac as GetRegistryResponses, Ad as PublishAgentData, Af as ResolveRegistryHandleErrors, Ag as VerifyDomainErrors, Ah as UpdateFunctionInput, Ai as CreateRegistryResponse, Al as ListDomainsData, Am as StorageStats, An as testEndpoint, Ao as DownloadAttachmentsErrors, Ap as SetFunctionRouteData, Ar as CreateAgentAccountResponses, As as GetAgentData, At as getRegistry, Au as ListRegistryRequestsData, B as addDomain, Ba as DeleteMemoryError, Bc as GetSentEmailResponses, Bd as RegisterPayoutAddressError, Bf as RoutingTopology, Bg as X402EmailChallengeDetails, Bh as UpdateRouteError, Bi as CreateWakeAuthorizationErrors, Bl as ListEndpointsData, Bm as TestFunctionResponse, Bn as updateRoute, Bo as DownloadRawEmailErrors, Bp as SetFunctionSecretResponses, Br as CreateChallengeInput, Bs as GetConversationData, Bt as listDomains, Bu as ListSentEmailsData, C as SendInput, Ca as DeleteEndpointResponses, Cc as GetOrgRoutingTopologyErrors, Cd as PlanLimits, Cf as ResendCliSignupVerificationError, Cg as VerifyCliSignupError, Ch as UpdateFilterErrors, Ci as CreateOrgSecretInput, Cl as ListDeclinedPaymentsResponse, Cm as StartCliLoginResponses, Cn as setMemory, Co as DiscardEmailContentResponses, Cp as SendPermissionManagedZone, Cr as Conversation, Cs as GateDenial, Ct as getEmail, Cu as ListRegistriesError, D as client, Da as DeleteFilterResponse, Dc as GetRegistryError, Dd as PollCliLoginInput, Df as ResendCliSignupVerificationResponses, Dg as VerifyCliSignupResponses, Dh as UpdateFunctionData, Di as CreateRegistryError, Dl as ListDeliveriesErrors, Dm as StartCliSignupInput, Dn as startAgentSignup, Do as DomainVerifyResult, Dp as SentEmailDetail, Dr as CreateAgentAccountErrors, Ds as GetAccountErrors, Dt as getInboxStatus, Du as ListRegistryAgentsData, E as WaitForNextOptions, Ea as DeleteFilterErrors, Ec as GetRegistryData, Ed as PollCliLoginErrors, Ef as ResendCliSignupVerificationResponse, Eg as VerifyCliSignupResponse, Eh as UpdateFilterResponses, Ei as CreateRegistryData, El as ListDeliveriesError, Em as StartCliSignupErrors, En as startAgentClaim, Eo as DomainDnsRecord, Ep as SendPermissionsMeta, Er as CreateAgentAccountError, Es as GetAccountError, Et as getFunctionTestRunTrace, Eu as ListRegistriesResponses, F as PrimitiveApiClientOptions, Fa as DeleteFunctionSecretError, Fc as GetSendPermissionsResponses, Fd as PublishAgentResponses, Ff as RotateWebhookSecretError, Fg as WakeSchedule, Fh as UpdateRegistryErrors, Fi as CreateRouteInput, Fl as ListEmailsData, Fm as TestEndpointResponse, Fn as updateDomain, Fo as DownloadDomainZoneFileErrors, Fp as SetFunctionSecretData, Fr as CreateAgentClaimLinkResponse, Fs as GetChallengeData, Ft as getThread, Fu as ListRoutesData, G as createEmailChallenge, Ga as DeleteOrgSecretData, Gc as GetSpendPolicyResponses, Gd as Registry, Gf as RunWakeScheduleResponses, Gg as X402Receipt, Gh as UpdateSpendPolicyData, Gi as CreateWakeScheduleError, Gl as ListEnvelope, Gm as ThreadMessage, Gn as verifyAgentSignup, Go as EmailAuth, Gp as SetMemoryResponse, Gr as CreateEmailChallengeErrors, Gs as GetEmailData, Gt as listFunctionSecrets, Gu as ListWakeAuthorizationsData, H as createAgentAccount, Ha as DeleteMemoryResponse, Hc as GetSpendPolicyError, Hd as RegisterPayoutAddressInput, Hf as RunWakeScheduleError, Hg as X402PaymentPayload, Hh as UpdateRouteInput, Hi as CreateWakeAuthorizationResponse, Hl as ListEndpointsErrors, Hm as TestInvocationResult, Hn as updateWakeAuthorization, Ho as DownloadRawEmailResponses, Hp as SetMemoryError, Hr as CreateChallengeResponses, Hs as GetConversationErrors, Ht as listEndpoints, Hu as ListSentEmailsErrors, I as PrimitiveApiError, Ia as DeleteFunctionSecretErrors, Ic as GetSentEmailData, Id as PublishAgentResult, If as RotateWebhookSecretErrors, Ig as WebhookSecret, Ih as UpdateRegistryInput, Ii as CreateRouteResponse, Il as ListEmailsError, Im as TestEndpointResponses, In as updateEndpoint, Io as DownloadDomainZoneFileResponse, Ip as SetFunctionSecretError, Ir as CreateAgentClaimLinkResponses, Is as GetChallengeError, It as getWakeSchedule, Iu as ListRoutesError, J as createFunction, Ja as DeleteOrgSecretResponse, Jc as GetStorageStatsErrors, Jd as ReorderRoutesData, Jf as SearchEmailsErrors, Jg as Client, Jh as UpdateSpendPolicyInput, Ji as CreateWakeScheduleResponse, Jl as ListFiltersErrors, Jm as UnpublishAgentErrors, Jn as Account, Jo as EmailSearchFacetBucket, Jp as SetOrgSecretError, Jr as CreateEmailChallengeResponses, Js as GetEmailResponse, Jt as listPayoutAddresses, Ju as ListWakeAuthorizationsResponse, K as createEndpoint, Ka as DeleteOrgSecretError, Kc as GetStorageStatsData, Kd as RegistryAgent, Kf as SearchEmailsData, Kg as X402SpendPolicy, Kh as UpdateSpendPolicyError, Ki as CreateWakeScheduleErrors, Kl as ListFiltersData, Km as UnpublishAgentData, Kn as verifyCliSignup, Ko as EmailDetail, Kp as SetMemoryResponses, Kr as CreateEmailChallengeInput, Ks as GetEmailError, Kt as listFunctions, Ku as ListWakeAuthorizationsError, L as PrimitiveApiErrorDetails, La as DeleteFunctionSecretResponse, Lc as GetSentEmailError, Ld as PublishPolicy, Lf as RotateWebhookSecretResponse, Lg as X402Challenge, Lh as UpdateRegistryResponse, Li as CreateRouteResponses, Ll as ListEmailsErrors, Lm as TestFunctionData, Ln as updateFilter, Lo as DownloadDomainZoneFileResponses, Lp as SetFunctionSecretErrors, Lr as CreateChallengeData, Ls as GetChallengeErrors, Lt as getWebhookSecret, Lu as ListRoutesErrors, M as verifyWebhookSignature, Ma as DeleteFunctionResponse, Mc as GetSendPermissionsError, Md as PublishAgentErrors, Mf as ResolveRegistryHandleResponses, Mg as VerifyDomainResponses, Mh as UpdateFunctionResponses, Mi as CreateRouteData, Ml as ListDomainsErrors, Mm as TestEndpointData, Mn as unpublishAgent, Mo as DownloadAttachmentsResponses, Mp as SetFunctionRouteErrors, Mr as CreateAgentClaimLinkError, Ms as GetAgentErrors, Mt as getSentEmail, Mu as ListRegistryRequestsErrors, N as DEFAULT_API_BASE_URL, Na as DeleteFunctionResponses, Nc as GetSendPermissionsErrors, Nd as PublishAgentInput, Nf as ResourceId, Ng as WakeAuthorization, Nh as UpdateRegistryData, Ni as CreateRouteError, Nl as ListDomainsResponse, Nm as TestEndpointError, Nn as unsetFunctionRoute, No as DownloadDomainZoneFileData, Np as SetFunctionRouteResponse, Nr as CreateAgentClaimLinkErrors, Ns as GetAgentResponse, Nt as getSpendPolicy, Nu as ListRegistryRequestsResponse, O as createAgent, Oa as DeleteFilterResponses, Oc as GetRegistryErrors, Od as PollCliLoginResponse, Of as ResolveRegistryHandleData, Og as VerifyDomainData, Oh as UpdateFunctionError, Oi as CreateRegistryErrors, Ol as ListDeliveriesResponse, Om as StartCliSignupResponse, On as startCliLogin, Oo as DownloadAttachmentsData, Op as SentEmailStatus, Or as CreateAgentAccountInput, Os as GetAccountResponse, Ot as getMemory, Ou as ListRegistryAgentsResponse, P as PrimitiveApiClient, Pa as DeleteFunctionSecretData, Pc as GetSendPermissionsResponse, Pd as PublishAgentResponse, Pf as RotateWebhookSecretData, Pg as WakeDispatch, Ph as UpdateRegistryError, Pi as CreateRouteErrors, Pl as ListDomainsResponses, Pm as TestEndpointErrors, Pn as updateAccount, Po as DownloadDomainZoneFileError, Pp as SetFunctionRouteResponses, Pr as CreateAgentClaimLinkInput, Ps as GetAgentResponses, Pt as getStorageStats, Pu as ListRegistryRequestsResponses, Q as createRoute, Qa as DeleteRegistryErrors, Qc as GetThreadError, Qd as ReorderRoutesResponse, Qf as SearchMemoriesError, Qg as Options, Qh as UpdateWakeAuthorizationError, Qi as DecideRegistryRequestError, Ql as ListFunctionLogsError, Qm as UnsetFunctionRouteError, Qn as AddDomainErrors, Qo as EmailSearchResult, Qp as SetOrgSecretResponses, Qr as CreateEndpointInput, Qs as GetFunctionErrors, Qt as listRoutes, Qu as ListWakeDispatchesErrors, R as RequestOptions$1, Ra as DeleteFunctionSecretResponses, Rc as GetSentEmailErrors, Rd as RecipientRoute, Rf as RotateWebhookSecretResponses, Rg as X402DeclinedPayment, Rh as UpdateRegistryResponses, Ri as CreateWakeAuthorizationData, Rl as ListEmailsResponse, Rm as TestFunctionError, Rn as updateFunction, Ro as DownloadRawEmailData, Rp as SetFunctionSecretInput, Rr as CreateChallengeError, Rs as GetChallengeResponse, Rt as listDeclinedPayments, Ru as ListRoutesResponse, S as SendAttachment, Sa as DeleteEndpointResponse, Sc as GetOrgRoutingTopologyError, Sd as PayChallengeResponses, Sf as ResendCliSignupVerificationData, Sg as VerifyCliSignupData, Sh as UpdateFilterError, Si as CreateOrgSecretErrors, Sl as ListDeclinedPaymentsErrors, Sm as StartCliLoginResponse, Sn as setFunctionSecret, So as DiscardEmailContentResponse, Sp as SendPermissionAnyRecipient, Sr as CliSignupVerifyResult, Ss as FunctionTestRunTrace, St as getConversation, Su as ListRegistriesData, T as SendThreadInput, Ta as DeleteFilterError, Tc as GetOrgRoutingTopologyResponses, Td as PollCliLoginError, Tf as ResendCliSignupVerificationInput, Tg as VerifyCliSignupInput, Th as UpdateFilterResponse, Ti as CreateOrgSecretResponses, Tl as ListDeliveriesData, Tm as StartCliSignupError, Tn as simulateRoute, To as Domain, Tp as SendPermissionYourDomain, Tr as CreateAgentAccountData, Ts as GetAccountData, Tt as getFunctionRouting, Tu as ListRegistriesResponse, U as createAgentClaimLink, Ua as DeleteMemoryResponses, Uc as GetSpendPolicyErrors, Ud as RegisterPayoutAddressResponse, Uf as RunWakeScheduleErrors, Ug as X402PaymentRequirements, Uh as UpdateRouteResponse, Ui as CreateWakeAuthorizationResponses, Ul as ListEndpointsResponse, Um as TestResult, Un as updateWakeSchedule, Uo as EmailAddress, Up as SetMemoryErrors, Ur as CreateEmailChallengeData, Us as GetConversationResponse, Ut as listFilters, Uu as ListSentEmailsResponse, V as cliLogout, Va as DeleteMemoryErrors, Vc as GetSpendPolicyData, Vd as RegisterPayoutAddressErrors, Vf as RunWakeScheduleData, Vg as X402NonceBinding, Vh as UpdateRouteErrors, Vi as CreateWakeAuthorizationInput, Vl as ListEndpointsError, Vm as TestFunctionResponses, Vn as updateSpendPolicy, Vo as DownloadRawEmailResponse, Vp as SetMemoryData, Vr as CreateChallengeResponse, Vs as GetConversationError, Vt as listEmails, Vu as ListSentEmailsError, W as createChallenge, Wa as DeleteMemoryResult, Wc as GetSpendPolicyResponse, Wd as RegisterPayoutAddressResponses, Wf as RunWakeScheduleResponse, Wg as X402PayoutAddress, Wh as UpdateRouteResponses, Wi as CreateWakeScheduleData, Wl as ListEndpointsResponses, Wm as Thread, Wn as verifyAgentClaim, Wo as EmailAttachment, Wp as SetMemoryInput, Wr as CreateEmailChallengeError, Ws as GetConversationResponses, Wt as listFunctionLogs, Wu as ListSentEmailsResponses, X as createOrgSecret, Xa as DeleteRegistryData, Xc as GetStorageStatsResponses, Xd as ReorderRoutesErrors, Xf as SearchEmailsResponses, Xg as Config, Xh as UpdateSpendPolicyResponses, Xi as Cursor, Xl as ListFiltersResponses, Xm as UnpublishAgentResponses, Xn as AddDomainData, Xo as EmailSearchHighlights, Xp as SetOrgSecretInput, Xr as CreateEndpointError, Xs as GetFunctionData, Xt as listRegistryAgents, Xu as ListWakeDispatchesData, Y as createFunctionSecret, Ya as DeleteOrgSecretResponses, Yc as GetStorageStatsResponse, Yd as ReorderRoutesError, Yf as SearchEmailsResponse, Yg as ClientOptions, Yh as UpdateSpendPolicyResponse, Yi as CreateWakeScheduleResponses, Yl as ListFiltersResponse, Ym as UnpublishAgentResponse, Yn as AccountUpdated, Yo as EmailSearchFacets, Yp as SetOrgSecretErrors, Yr as CreateEndpointData, Ys as GetEmailResponses, Yt as listRegistries, Yu as ListWakeAuthorizationsResponses, Z as createRegistry, Za as DeleteRegistryError, Zc as GetThreadData, Zd as ReorderRoutesInput, Zf as SearchMemoriesData, Zg as CreateClientConfig, Zh as UpdateWakeAuthorizationData, Zi as DecideRegistryRequestData, Zl as ListFunctionLogsData, Zm as UnsetFunctionRouteData, Zn as AddDomainError, Zo as EmailSearchMeta, Zp as SetOrgSecretResponse, Zr as CreateEndpointErrors, Zs as GetFunctionError, Zt as listRegistryRequests, Zu as ListWakeDispatchesError, _ as PrimitiveClient, _a as DeleteEmailResponse, _c as GetMemoryError, _d as PayChallengeData, _f as ResendAgentSignupVerificationError, _g as VerifyAgentSignupError, _h as UpdateEndpointErrors, _i as CreateFunctionSecretInput, _l as InboxStatusNextAction, _m as StartAgentSignupResponses, _n as searchEmails, _o as DeliverySummary, _p as SendEmailResponses, _r as CliLogoutResponse, _s as FunctionTestRunInboundEmail, _t as downloadDomainZoneFile, _u as ListPayoutAddressesData, a as ForwardInput, aa as DefineAgentErrors, ac as GetFunctionRoutingResponses, ad as ListWakeSchedulesResponses, af as ReplayEmailWebhooksData, ag as UpdateWakeScheduleErrors, ah as UpdateAccountErrors, ai as CreateFilterResponse, al as GetWakeScheduleResponse, am as SimulateRouteResult, an as publishAgent, ao as DeleteRouteResponses, ap as SemanticSearchErrors, ar as AgentClaimResult, as as FunctionDeployStatus, at as deleteEndpoint, au as ListFunctionSecretsResponse, b as RequestOptions$2, ba as DeleteEndpointError, bc as GetMemoryResponses, bd as PayChallengeInput, bf as ResendAgentSignupVerificationResponse, bg as VerifyAgentSignupResponse, bh as UpdateEndpointResponses, bi as CreateOrgSecretData, bl as ListDeclinedPaymentsData, bm as StartCliLoginErrors, bn as sendEmail, bo as DiscardEmailContentError, bp as SendMailResult, br as CliSignupResendResult, bs as FunctionTestRunSend, bt as getAgent, bu as ListPayoutAddressesResponse, c as InboxStreamOptions, ca as DefineAgentResponses, cc as GetFunctionTestRunTraceErrors, cd as MemoryResolvedScope, cf as ReplayEmailWebhooksResponse, cg as UpdateWakeScheduleResponses, ch as UpdateAccountResponses, ci as CreateFunctionError, cl as GetWebhookSecretError, cm as StartAgentClaimErrors, cn as replayDelivery, co as DeleteWakeAuthorizationErrors, cp as SemanticSearchMeta, cr as AgentSignupResendResult, cs as FunctionLogRow, ct as deleteFunctionSecret, cu as ListFunctionsError, d as MemoryGetInput, da as DeleteDomainErrors, dc as GetInboxStatusData, dd as MemoryScopeQueryType, df as ReplyToEmailData, dg as VerifyAgentClaimError, dh as UpdateDomainErrors, di as CreateFunctionResponse, dl as GetWebhookSecretResponses, dm as StartAgentClaimResponses, dn as resendAgentSignupVerification, do as DeleteWakeScheduleData, dp as SemanticSearchScoreBreakdown, dr as CliLoginPollResult, ds as FunctionRouting, dt as deleteRegistry, du as ListFunctionsResponses, e_ as RequestResult, ea as DecideRegistryRequestInput, ec as GetFunctionResponses, ed as ListWakeDispatchesResponses, ef as ReplayDeliveryData, eg as UpdateWakeAuthorizationInput, eh as UnsetFunctionRouteResponse, ei as CreateEndpointResponses, el as GetThreadResponse, em as SimulateRouteError, en as listWakeAuthorizations, eo as DeleteRegistryResponses, ep as SearchMemoriesResponse, er as AddDomainResponse, es as EmailSummary, et as createWakeSchedule, eu as ListFunctionLogsResponse, f as MemoryRecord, fa as DeleteDomainResponse, fc as GetInboxStatusError, fd as NumericString, ff as ReplyToEmailError, fg as VerifyAgentClaimErrors, fh as UpdateDomainInput, fi as CreateFunctionResponses, fl as IdempotencyKey, fm as StartAgentSignupData, fn as resendCliSignupVerification, fo as DeleteWakeScheduleError, fp as SemanticSearchSnippet, fr as CliLoginStartResult, fs as FunctionSecretListItem, ft as deleteRoute, fu as ListOrgSecretsData, g as MemorySetInput, ga as DeleteEmailErrors, gc as GetMemoryData, gd as ParsedEmailData, gf as ResendAgentSignupVerificationData, gg as VerifyAgentSignupData, gh as UpdateEndpointError, gi as CreateFunctionSecretErrors, gl as InboxStatusFunctionSummary, gm as StartAgentSignupResponse, gn as sdk_gen_d_exports, go as DeliveryStatus, gp as SendEmailResponse, gr as CliLogoutInput, gs as FunctionTestRunDeliveryEndpoint, gt as downloadAttachments, gu as ListOrgSecretsResponses, h as MemorySearchResponse, ha as DeleteEmailError, hc as GetInboxStatusResponses, hd as PaginationMeta, hf as ReplyToEmailResponses, hg as VerifyAgentClaimResponses, hh as UpdateEndpointData, hi as CreateFunctionSecretError, hl as InboxStatusEndpointSummary, hm as StartAgentSignupInput, hn as runWakeSchedule, ho as DeleteWakeScheduleResponses, hp as SendEmailErrors, hr as CliLogoutErrors, hs as FunctionTestRunDelivery, ht as discardEmailContent, hu as ListOrgSecretsResponse, i as CreatedAgent, ia as DefineAgentError, ic as GetFunctionRoutingResponse, id as ListWakeSchedulesResponse, if as ReplayDeliveryResponses, ig as UpdateWakeScheduleError, ih as UpdateAccountError, ii as CreateFilterInput, il as GetWakeScheduleErrors, im as SimulateRouteResponses, in as pollCliLogin, io as DeleteRouteResponse, ip as SemanticSearchError, ir as AgentClaimLinkResult, is as Filter, it as deleteEmail, iu as ListFunctionSecretsErrors, j as VerifyOptions, ja as DeleteFunctionErrors, jc as GetSendPermissionsData, jd as PublishAgentError, jf as ResolveRegistryHandleResponse, jg as VerifyDomainResponse, jh as UpdateFunctionResponse, ji as CreateRegistryResponses, jl as ListDomainsError, jm as SuccessEnvelope, jn as testFunction, jo as DownloadAttachmentsResponse, jp as SetFunctionRouteError, jr as CreateAgentClaimLinkData, js as GetAgentError, jt as getSendPermissions, ju as ListRegistryRequestsError, k as createPrimitiveClient, ka as DeleteFunctionData, kc as GetRegistryResponse, kd as PollCliLoginResponses, kf as ResolveRegistryHandleError, kg as VerifyDomainError, kh as UpdateFunctionErrors, ki as CreateRegistryInput, kl as ListDeliveriesResponses, km as StartCliSignupResponses, kn as startCliSignup, ko as DownloadAttachmentsError, kp as SentEmailSummary, kr as CreateAgentAccountResponse, ks as GetAccountResponses, kt as getOrgRoutingTopology, ku as ListRegistryAgentsResponses, l as MemoriesResource, la as DeleteDomainData, lc as GetFunctionTestRunTraceResponse, ld as MemoryScope, lf as ReplayEmailWebhooksResponses, lg as VerifiedDomain, lh as UpdateDomainData, li as CreateFunctionErrors, ll as GetWebhookSecretErrors, lm as StartAgentClaimInput, ln as replayEmailWebhooks, lo as DeleteWakeAuthorizationResponse, lp as SemanticSearchResponses, lr as AgentSignupStartResult, ls as FunctionRouteBody, lt as deleteMemory, lu as ListFunctionsErrors, m as MemorySearchInput, ma as DeleteEmailData, mc as GetInboxStatusResponse, md as OrgSecretWriteResult, mf as ReplyToEmailResponse, mg as VerifyAgentClaimResponse, mh as UpdateDomainResponses, mi as CreateFunctionSecretData, ml as InboxStatusDomain, mm as StartAgentSignupErrors, mn as rotateWebhookSecret, mo as DeleteWakeScheduleResponse, mp as SendEmailError, mr as CliLogoutError, ms as FunctionTestRun, mt as deleteWakeSchedule, mu as ListOrgSecretsErrors, n as AgentResource, n_ as createConfig, na as DecideRegistryRequestResponses, nc as GetFunctionRoutingError, nd as ListWakeSchedulesError, nf as ReplayDeliveryErrors, ng as UpdateWakeAuthorizationResponses, nh as UnverifiedDomain, ni as CreateFilterError, nl as GetWakeScheduleData, nm as SimulateRouteInput, nn as listWakeSchedules, no as DeleteRouteError, np as SemanticSearchCoverage, nr as AgentAccountResult, ns as Endpoint, nt as defineAgent, nu as ListFunctionSecretsData, o as InboundEmail, oa as DefineAgentInput, oc as GetFunctionTestRunTraceData, od as MemoryJsonValue, of as ReplayEmailWebhooksError, og as UpdateWakeScheduleInput, oh as UpdateAccountInput, oi as CreateFilterResponses, ol as GetWakeScheduleResponses, om as StartAgentClaimData, on as registerPayoutAddress, oo as DeleteWakeAuthorizationData, op as SemanticSearchField, or as AgentClaimStartResult, os as FunctionDetail, ot as deleteFilter, ou as ListFunctionSecretsResponses, p as MemoryRecordWithValue, pa as DeleteDomainResponses, pc as GetInboxStatusErrors, pd as OrgSecretListItem, pf as ReplyToEmailErrors, pg as VerifyAgentClaimInput, ph as UpdateDomainResponse, pi as CreateFunctionResult, pl as InboxStatus, pm as StartAgentSignupError, pn as resolveRegistryHandle, po as DeleteWakeScheduleErrors, pp as SendEmailData, pr as CliLogoutData, ps as FunctionSecretWriteResult, pt as deleteWakeAuthorization, pu as ListOrgSecretsError, q as createFilter, qa as DeleteOrgSecretErrors, qc as GetStorageStatsError, qd as RegistryRequest, qf as SearchEmailsError, qg as createClient, qh as UpdateSpendPolicyErrors, qi as CreateWakeScheduleInput, ql as ListFiltersError, qm as UnpublishAgentError, qn as verifyDomain, qo as EmailDetailReply, qp as SetOrgSecretData, qr as CreateEmailChallengeResponse, qs as GetEmailErrors, qt as listOrgSecrets, qu as ListWakeAuthorizationsErrors, r as CreateAgentOptions, r_ as Auth, ra as DefineAgentData, rc as GetFunctionRoutingErrors, rd as ListWakeSchedulesErrors, rf as ReplayDeliveryResponse, rg as UpdateWakeScheduleData, rh as UpdateAccountData, ri as CreateFilterErrors, rl as GetWakeScheduleError, rm as SimulateRouteResponse, rn as payChallenge, ro as DeleteRouteErrors, rp as SemanticSearchData, rr as AgentAccountUpgradeHint, rs as ErrorResponse, rt as deleteDomain, ru as ListFunctionSecretsError, s as InboxResource, sa as DefineAgentResponse, sc as GetFunctionTestRunTraceError, sd as MemoryKeyQuery, sf as ReplayEmailWebhooksErrors, sg as UpdateWakeScheduleResponse, sh as UpdateAccountResponse, si as CreateFunctionData, sl as GetWebhookSecretData, sm as StartAgentClaimError, sn as reorderRoutes, so as DeleteWakeAuthorizationError, sp as SemanticSearchInput, sr as AgentOrgRef, ss as FunctionListItem, st as deleteFunction, su as ListFunctionsData, t as AccountResource, t_ as ResponseStyle, ta as DecideRegistryRequestResponse, tc as GetFunctionRoutingData, td as ListWakeSchedulesData, tf as ReplayDeliveryError, tg as UpdateWakeAuthorizationResponse, th as UnsetFunctionRouteResponses, ti as CreateFilterData, tl as GetThreadResponses, tm as SimulateRouteErrors, tn as listWakeDispatches, to as DeleteRouteData, tp as SearchMemoriesResponses, tr as AddDomainResponses, ts as EmailWebhookStatus, tt as decideRegistryRequest, tu as ListFunctionLogsResponses, u as MemoryDeleteInput, ua as DeleteDomainError, uc as GetFunctionTestRunTraceResponses, ud as MemoryScopeId, uf as ReplayResult, ug as VerifyAgentClaimData, uh as UpdateDomainError, ui as CreateFunctionInput, ul as GetWebhookSecretResponse, um as StartAgentClaimResponse, un as replyToEmail, uo as DeleteWakeAuthorizationResponses, up as SemanticSearchResult, ur as AgentSignupVerifyResult, us as FunctionRouteResult, ut as deleteOrgSecret, uu as ListFunctionsResponse, v as PrimitiveClientOptions, va as DeleteEmailResponses, vc as GetMemoryErrors, vd as PayChallengeError, vf as ResendAgentSignupVerificationErrors, vg as VerifyAgentSignupErrors, vh as UpdateEndpointInput, vi as CreateFunctionSecretResponse, vl as InboxStatusRecentEmailSummary, vm as StartCliLoginData, vn as searchMemories, vo as DiscardContentResult, vp as SendMailAttachment, vr as CliLogoutResponses, vs as FunctionTestRunOutboundRequest, vt as downloadRawEmail, vu as ListPayoutAddressesError, w as SendResult, wa as DeleteFilterData, wc as GetOrgRoutingTopologyResponse, wd as PollCliLoginData, wf as ResendCliSignupVerificationErrors, wg as VerifyCliSignupErrors, wh as UpdateFilterInput, wi as CreateOrgSecretResponse, wl as ListDeclinedPaymentsResponses, wm as StartCliSignupData, wn as setOrgSecret, wo as DkimSignature, wp as SendPermissionRule, wr as ConversationMessage, ws as GateFix, wt as getFunction, wu as ListRegistriesErrors, x as SemanticSearchResponse, xa as DeleteEndpointErrors, xc as GetOrgRoutingTopologyData, xd as PayChallengeResponse, xf as ResendAgentSignupVerificationResponses, xg as VerifyAgentSignupResponses, xh as UpdateFilterData, xi as CreateOrgSecretError, xl as ListDeclinedPaymentsError, xm as StartCliLoginInput, xn as setFunctionRoute, xo as DiscardEmailContentErrors, xp as SendPermissionAddress, xr as CliSignupStartResult, xs as FunctionTestRunState, xt as getChallenge, xu as ListPayoutAddressesResponses, y as ReplyInput, ya as DeleteEndpointData, yc as GetMemoryResponse, yd as PayChallengeErrors, yf as ResendAgentSignupVerificationInput, yg as VerifyAgentSignupInput, yh as UpdateEndpointResponse, yi as CreateFunctionSecretResponses, yl as Limit, ym as StartCliLoginError, yn as semanticSearch, yo as DiscardEmailContentData, yp as SendMailInput, yr as CliLogoutResult, ys as FunctionTestRunReply, yt as getAccount, yu as ListPayoutAddressesErrors, z as createPrimitiveApiClient, za as DeleteMemoryData, zc as GetSentEmailResponse, zd as RegisterPayoutAddressData, zf as RouteEvaluatedEntry, zg as X402EmailChallenge, zh as UpdateRouteData, zi as CreateWakeAuthorizationError, zl as ListEmailsResponses, zm as TestFunctionErrors, zn as updateRegistry, zo as DownloadRawEmailError, zp as SetFunctionSecretResponse, zr as CreateChallengeErrors, zs as GetChallengeResponses, zt as listDeliveries, zu as ListRoutesResponses } from "../index-DZq8cw8r.js";
|
|
1
|
+
import { $ as createRegistry, $a as DeleteRegistryError, $c as GetThreadData, $d as ReorderRoutesResponse, $f as SearchMemoriesError, $g as Options, $h as UpdateWakeAuthorizationError, $i as DecideRegistryRequestData, $l as ListFunctionLogsData, $m as UnsetFunctionRouteError, $n as AddDomainError, $o as EmailSearchMeta, $p as SetOrgSecretResponses, $r as CreateEndpointErrors, $s as GetFunctionError, $t as listRegistryRequests, $u as ListWakeDispatchesError, A as createPrimitiveClient, Aa as DeleteFilterResponses, Ac as GetRegistryErrors, Ad as PollCliLoginResponses, Af as ResolveRegistryHandleError, Ag as VerifyDomainError, Ah as UpdateFunctionErrors, Ai as CreateRegistryErrors, Al as ListDeliveriesResponse, Am as StartCliSignupResponses, An as startCliLogin, Ao as DownloadAttachmentsData, Ap as SentEmailSummary, Ar as CreateAgentAccountInput, As as GetAccountResponse, At as getMemory, Au as ListRegistryAgentsResponse, B as RequestOptions$1, Ba as DeleteFunctionSecretResponses, Bc as GetSentEmailErrors, Bd as RegisterPayoutAddressData, Bf as RouteEvaluatedEntry, Bg as X402EmailChallenge, Bh as UpdateRouteData, Bi as CreateWakeAuthorizationData, Bl as ListEmailsResponse, Bm as TestFunctionErrors, Bn as updateFunction, Bo as DownloadRawEmailData, Bp as SetFunctionSecretResponse, Br as CreateChallengeError, Bs as GetChallengeResponse, Bt as listDeclinedPayments, Bu as ListRoutesResponse, C as SendAttachment, Ca as DeleteEndpointErrors, Cc as GetOrgRoutingTopologyData, Cd as PayChallengeResponses, Cf as ResendCliSignupVerificationData, Cg as VerifyCliSignupData, Ch as UpdateFilterError, Ci as CreateOrgSecretError, Cl as ListDeclinedPaymentsError, Cm as StartCliLoginResponse, Cn as setFunctionRoute, Co as DiscardEmailContentErrors, Cp as SendPermissionAnyRecipient, Cr as CliSignupStartResult, Cs as FunctionTestRunState, Ct as getChallenge, Cu as ListPayoutAddressesResponses, D as WaitForNextOptions, Da as DeleteFilterError, Dc as GetOrgRoutingTopologyResponses, Dd as PollCliLoginErrors, Df as ResendCliSignupVerificationResponse, Dg as VerifyCliSignupResponse, Dh as UpdateFilterResponses, Di as CreateOrgSecretResponses, Dl as ListDeliveriesData, Dm as StartCliSignupErrors, Dn as simulateRoute, Do as Domain, Dp as SendPermissionsMeta, Dr as CreateAgentAccountData, Ds as GetAccountData, Dt as getFunctionRouting, Du as ListRegistriesResponse, E as SendThreadInput, Ea as DeleteFilterData, Ec as GetOrgRoutingTopologyResponse, Ed as PollCliLoginError, Ef as ResendCliSignupVerificationInput, Eg as VerifyCliSignupInput, Eh as UpdateFilterResponse, Ei as CreateOrgSecretResponse, El as ListDeclinedPaymentsResponses, Em as StartCliSignupError, En as setOrgSecret, Eo as DkimSignature, Ep as SendPermissionYourDomain, Er as ConversationMessage, Es as GateFix, Et as getFunction, Eu as ListRegistriesErrors, F as DEFAULT_API_BASE_URL, Fa as DeleteFunctionResponses, Fc as GetSendPermissionsErrors, Fd as PublishAgentResponse, Ff as RotateWebhookSecretData, Fg as WakeDispatch, Fh as UpdateRegistryError, Fi as CreateRouteError, Fl as ListDomainsResponse, Fm as TestEndpointErrors, Fn as unsetFunctionRoute, Fo as DownloadDomainZoneFileData, Fp as SetFunctionRouteResponses, Fr as CreateAgentClaimLinkErrors, Fs as GetAgentResponse, Ft as getSpendPolicy, Fu as ListRegistryRequestsResponse, G as createAgentClaimLink, Ga as DeleteMemoryResponses, Gc as GetSpendPolicyErrors, Gd as RegisterPayoutAddressResponses, Gf as RunWakeScheduleResponse, Gg as X402PayoutAddress, Gh as UpdateRouteResponses, Gi as CreateWakeAuthorizationResponses, Gl as ListEndpointsResponse, Gm as Thread, Gn as updateWakeSchedule, Go as EmailAddress, Gp as SetMemoryInput, Gr as CreateEmailChallengeData, Gs as GetConversationResponse, Gt as listFilters, Gu as ListSentEmailsResponse, H as addDomain, Ha as DeleteMemoryError, Hc as GetSentEmailResponses, Hd as RegisterPayoutAddressErrors, Hf as RunWakeScheduleData, Hg as X402NonceBinding, Hh as UpdateRouteErrors, Hi as CreateWakeAuthorizationErrors, Hl as ListEndpointsData, Hm as TestFunctionResponses, Hn as updateRoute, Ho as DownloadRawEmailErrors, Hp as SetMemoryData, Hr as CreateChallengeInput, Hs as GetConversationData, Ht as listDomains, Hu as ListSentEmailsData, I as PrimitiveApiClient, Ia as DeleteFunctionSecretData, Ic as GetSendPermissionsResponse, Id as PublishAgentResponses, If as RotateWebhookSecretError, Ig as WakeSchedule, Ih as UpdateRegistryErrors, Ii as CreateRouteErrors, Il as ListDomainsResponses, Im as TestEndpointResponse, In as updateAccount, Io as DownloadDomainZoneFileError, Ip as SetFunctionSecretData, Ir as CreateAgentClaimLinkInput, Is as GetAgentResponses, It as getStorageStats, Iu as ListRegistryRequestsResponses, J as createEndpoint, Ja as DeleteOrgSecretError, Jc as GetStorageStatsData, Jd as RegistryRequest, Jf as SearchEmailsError, Jg as createClient, Jh as UpdateSpendPolicyErrors, Ji as CreateWakeScheduleErrors, Jl as ListFiltersData, Jm as UnpublishAgentError, Jn as verifyCliSignup, Jo as EmailDetail, Jp as SetOrgSecretData, Jr as CreateEmailChallengeInput, Js as GetEmailError, Jt as listFunctions, Ju as ListWakeAuthorizationsError, K as createChallenge, Ka as DeleteMemoryResult, Kc as GetSpendPolicyResponse, Kd as Registry, Kf as RunWakeScheduleResponses, Kg as X402Receipt, Kh as UpdateSpendPolicyData, Ki as CreateWakeScheduleData, Kl as ListEndpointsResponses, Km as ThreadMessage, Kn as verifyAgentClaim, Ko as EmailAttachment, Kp as SetMemoryResponse, Kr as CreateEmailChallengeError, Ks as GetConversationResponses, Kt as listFunctionLogs, Ku as ListSentEmailsResponses, L as PrimitiveApiClientOptions, La as DeleteFunctionSecretError, Lc as GetSendPermissionsResponses, Ld as PublishAgentResult, Lf as RotateWebhookSecretErrors, Lg as WebhookSecret, Lh as UpdateRegistryInput, Li as CreateRouteInput, Ll as ListEmailsData, Lm as TestEndpointResponses, Ln as updateDomain, Lo as DownloadDomainZoneFileErrors, Lp as SetFunctionSecretError, Lr as CreateAgentClaimLinkResponse, Ls as GetChallengeData, Lt as getThread, Lu as ListRoutesData, M as VerifyOptions, Ma as DeleteFunctionError, Mc as GetRegistryResponses, Md as PublishAgentError, Mf as ResolveRegistryHandleResponse, Mg as VerifyDomainResponse, Mh as UpdateFunctionResponse, Mi as CreateRegistryResponse, Ml as ListDomainsData, Mm as SuccessEnvelope, Mn as testEndpoint, Mo as DownloadAttachmentsErrors, Mp as SetFunctionRouteError, Mr as CreateAgentAccountResponses, Ms as GetAgentData, Mt as getRegistry, Mu as ListRegistryRequestsData, N as verifyWebhookSignature, Na as DeleteFunctionErrors, Nc as GetSendPermissionsData, Nd as PublishAgentErrors, Nf as ResolveRegistryHandleResponses, Ng as VerifyDomainResponses, Nh as UpdateFunctionResponses, Ni as CreateRegistryResponses, Nl as ListDomainsError, Nm as TestEndpointData, Nn as testFunction, No as DownloadAttachmentsResponse, Np as SetFunctionRouteErrors, Nr as CreateAgentClaimLinkData, Ns as GetAgentError, Nt as getSendPermissions, Nu as ListRegistryRequestsError, O as client, Oa as DeleteFilterErrors, Oc as GetRegistryData, Od as PollCliLoginInput, Of as ResendCliSignupVerificationResponses, Og as VerifyCliSignupResponses, Oh as UpdateFunctionData, Oi as CreateRegistryData, Ol as ListDeliveriesError, Om as StartCliSignupInput, On as startAgentClaim, Oo as DomainDnsRecord, Op as SentEmailDetail, Or as CreateAgentAccountError, Os as GetAccountError, Ot as getFunctionTestRunTrace, Ou as ListRegistriesResponses, P as isMemoryJsonValue, Pa as DeleteFunctionResponse, Pc as GetSendPermissionsError, Pd as PublishAgentInput, Pf as ResourceId, Pg as WakeAuthorization, Ph as UpdateRegistryData, Pi as CreateRouteData, Pl as ListDomainsErrors, Pm as TestEndpointError, Pn as unpublishAgent, Po as DownloadAttachmentsResponses, Pp as SetFunctionRouteResponse, Pr as CreateAgentClaimLinkError, Ps as GetAgentErrors, Pt as getSentEmail, Pu as ListRegistryRequestsErrors, Q as createOrgSecret, Qa as DeleteRegistryData, Qc as GetStorageStatsResponses, Qd as ReorderRoutesInput, Qf as SearchMemoriesData, Qg as CreateClientConfig, Qh as UpdateWakeAuthorizationData, Qi as Cursor, Ql as ListFiltersResponses, Qm as UnsetFunctionRouteData, Qn as AddDomainData, Qo as EmailSearchHighlights, Qp as SetOrgSecretResponse, Qr as CreateEndpointError, Qs as GetFunctionData, Qt as listRegistryAgents, Qu as ListWakeDispatchesData, R as PrimitiveApiError, Ra as DeleteFunctionSecretErrors, Rc as GetSentEmailData, Rd as PublishPolicy, Rf as RotateWebhookSecretResponse, Rg as X402Challenge, Rh as UpdateRegistryResponse, Ri as CreateRouteResponse, Rl as ListEmailsError, Rm as TestFunctionData, Rn as updateEndpoint, Ro as DownloadDomainZoneFileResponse, Rp as SetFunctionSecretErrors, Rr as CreateAgentClaimLinkResponses, Rs as GetChallengeError, Rt as getWakeSchedule, Ru as ListRoutesError, S as SemanticSearchResponse, Sa as DeleteEndpointError, Sc as GetMemoryResponses, Sd as PayChallengeResponse, Sf as ResendAgentSignupVerificationResponses, Sg as VerifyAgentSignupResponses, Sh as UpdateFilterData, Si as CreateOrgSecretData, Sl as ListDeclinedPaymentsData, Sm as StartCliLoginInput, Sn as sendEmail, So as DiscardEmailContentError, Sp as SendPermissionAddress, Sr as CliSignupResendResult, Ss as FunctionTestRunSend, St as getAgent, Su as ListPayoutAddressesResponse, T as SendResult, Ta as DeleteEndpointResponses, Tc as GetOrgRoutingTopologyErrors, Td as PollCliLoginData, Tf as ResendCliSignupVerificationErrors, Tg as VerifyCliSignupErrors, Th as UpdateFilterInput, Ti as CreateOrgSecretInput, Tl as ListDeclinedPaymentsResponse, Tm as StartCliSignupData, Tn as setMemory, To as DiscardEmailContentResponses, Tp as SendPermissionRule, Tr as Conversation, Ts as GateDenial, Tt as getEmail, Tu as ListRegistriesError, U as cliLogout, Ua as DeleteMemoryErrors, Uc as GetSpendPolicyData, Ud as RegisterPayoutAddressInput, Uf as RunWakeScheduleError, Ug as X402PaymentPayload, Uh as UpdateRouteInput, Ui as CreateWakeAuthorizationInput, Ul as ListEndpointsError, Um as TestInvocationResult, Un as updateSpendPolicy, Uo as DownloadRawEmailResponse, Up as SetMemoryError, Ur as CreateChallengeResponse, Us as GetConversationError, Ut as listEmails, Uu as ListSentEmailsError, V as createPrimitiveApiClient, Va as DeleteMemoryData, Vc as GetSentEmailResponse, Vd as RegisterPayoutAddressError, Vf as RoutingTopology, Vg as X402EmailChallengeDetails, Vh as UpdateRouteError, Vi as CreateWakeAuthorizationError, Vl as ListEmailsResponses, Vm as TestFunctionResponse, Vn as updateRegistry, Vo as DownloadRawEmailError, Vp as SetFunctionSecretResponses, Vr as CreateChallengeErrors, Vs as GetChallengeResponses, Vt as listDeliveries, Vu as ListRoutesResponses, W as createAgentAccount, Wa as DeleteMemoryResponse, Wc as GetSpendPolicyError, Wd as RegisterPayoutAddressResponse, Wf as RunWakeScheduleErrors, Wg as X402PaymentRequirements, Wh as UpdateRouteResponse, Wi as CreateWakeAuthorizationResponse, Wl as ListEndpointsErrors, Wm as TestResult, Wn as updateWakeAuthorization, Wo as DownloadRawEmailResponses, Wp as SetMemoryErrors, Wr as CreateChallengeResponses, Ws as GetConversationErrors, Wt as listEndpoints, Wu as ListSentEmailsErrors, X as createFunction, Xa as DeleteOrgSecretResponse, Xc as GetStorageStatsErrors, Xd as ReorderRoutesError, Xf as SearchEmailsResponse, Xg as ClientOptions, Xh as UpdateSpendPolicyResponse, Xi as CreateWakeScheduleResponse, Xl as ListFiltersErrors, Xm as UnpublishAgentResponse, Xn as Account, Xo as EmailSearchFacetBucket, Xp as SetOrgSecretErrors, Xr as CreateEmailChallengeResponses, Xs as GetEmailResponse, Xt as listPayoutAddresses, Xu as ListWakeAuthorizationsResponse, Y as createFilter, Ya as DeleteOrgSecretErrors, Yc as GetStorageStatsError, Yd as ReorderRoutesData, Yf as SearchEmailsErrors, Yg as Client, Yh as UpdateSpendPolicyInput, Yi as CreateWakeScheduleInput, Yl as ListFiltersError, Ym as UnpublishAgentErrors, Yn as verifyDomain, Yo as EmailDetailReply, Yp as SetOrgSecretError, Yr as CreateEmailChallengeResponse, Ys as GetEmailErrors, Yt as listOrgSecrets, Yu as ListWakeAuthorizationsErrors, Z as createFunctionSecret, Za as DeleteOrgSecretResponses, Zc as GetStorageStatsResponse, Zd as ReorderRoutesErrors, Zf as SearchEmailsResponses, Zg as Config, Zh as UpdateSpendPolicyResponses, Zi as CreateWakeScheduleResponses, Zl as ListFiltersResponse, Zm as UnpublishAgentResponses, Zn as AccountUpdated, Zo as EmailSearchFacets, Zp as SetOrgSecretInput, Zr as CreateEndpointData, Zs as GetEmailResponses, Zt as listRegistries, Zu as ListWakeAuthorizationsResponses, _ as MemorySetInput, _a as DeleteEmailError, _c as GetInboxStatusResponses, _d as ParsedEmailData, _f as ResendAgentSignupVerificationData, _g as VerifyAgentSignupData, _h as UpdateEndpointError, _i as CreateFunctionSecretError, _l as InboxStatusEndpointSummary, _m as StartAgentSignupResponse, _n as runWakeSchedule, _o as DeleteWakeScheduleResponses, _p as SendEmailResponse, _r as CliLogoutErrors, _s as FunctionTestRunDelivery, _t as discardEmailContent, _u as ListOrgSecretsResponse, a as ForwardInput, aa as DefineAgentData, ac as GetFunctionRoutingErrors, ad as ListWakeSchedulesErrors, af as ReplayDeliveryResponses, ag as UpdateWakeScheduleError, ah as UpdateAccountError, ai as CreateFilterErrors, al as GetWakeScheduleError, am as SimulateRouteResponses, an as payChallenge, ao as DeleteRouteErrors, ap as SemanticSearchError, ar as AgentAccountUpgradeHint, as as ErrorResponse, at as deleteDomain, au as ListFunctionSecretsError, b as ReplyInput, ba as DeleteEmailResponses, bc as GetMemoryErrors, bd as PayChallengeErrors, bf as ResendAgentSignupVerificationInput, bg as VerifyAgentSignupInput, bh as UpdateEndpointResponse, bi as CreateFunctionSecretResponse, bl as InboxStatusRecentEmailSummary, bm as StartCliLoginError, bn as searchMemories, bo as DiscardContentResult, bp as SendMailInput, br as CliLogoutResponses, bs as FunctionTestRunOutboundRequest, bt as downloadRawEmail, bu as ListPayoutAddressesError, c as InboxStreamOptions, ca as DefineAgentInput, cc as GetFunctionTestRunTraceData, cd as MemoryKeyQuery, cf as ReplayEmailWebhooksErrors, cg as UpdateWakeScheduleResponse, ch as UpdateAccountResponse, ci as CreateFilterResponses, cl as GetWakeScheduleResponses, cm as StartAgentClaimError, cn as registerPayoutAddress, co as DeleteWakeAuthorizationData, cp as SemanticSearchInput, cr as AgentClaimStartResult, cs as FunctionDetail, ct as deleteFilter, cu as ListFunctionSecretsResponses, d as MemoryGetInput, da as DeleteDomainData, dc as GetFunctionTestRunTraceResponse, dd as MemoryScopeId, df as ReplayResult, dg as VerifyAgentClaimData, dh as UpdateDomainError, di as CreateFunctionErrors, dl as GetWebhookSecretErrors, dm as StartAgentClaimResponse, dn as replayEmailWebhooks, do as DeleteWakeAuthorizationResponse, dp as SemanticSearchResult, dr as AgentSignupStartResult, ds as FunctionRouteBody, dt as deleteMemory, du as ListFunctionsErrors, e_ as RequestOptions, ea as DecideRegistryRequestError, ec as GetFunctionErrors, ed as ListWakeDispatchesErrors, ef as ReorderRoutesResponses, eg as UpdateWakeAuthorizationErrors, eh as UnsetFunctionRouteErrors, ei as CreateEndpointInput, el as GetThreadError, em as SimulateRouteData, en as listRoutes, eo as DeleteRegistryErrors, ep as SearchMemoriesErrors, er as AddDomainErrors, es as EmailSearchResult, et as createRoute, eu as ListFunctionLogsError, f as MemoryJsonValue, fa as DeleteDomainError, fc as GetFunctionTestRunTraceResponses, fd as MemoryScopeQueryType, ff as ReplyToEmailData, fg as VerifyAgentClaimError, fh as UpdateDomainErrors, fi as CreateFunctionInput, fl as GetWebhookSecretResponse, fm as StartAgentClaimResponses, fn as replyToEmail, fo as DeleteWakeAuthorizationResponses, fp as SemanticSearchScoreBreakdown, fr as AgentSignupVerifyResult, fs as FunctionRouteResult, ft as deleteOrgSecret, fu as ListFunctionsResponse, g as MemorySearchResponse, ga as DeleteEmailData, gc as GetInboxStatusResponse, gd as PaginationMeta, gf as ReplyToEmailResponses, gg as VerifyAgentClaimResponses, gh as UpdateEndpointData, gi as CreateFunctionSecretData, gl as InboxStatusDomain, gm as StartAgentSignupInput, gn as rotateWebhookSecret, go as DeleteWakeScheduleResponse, gp as SendEmailErrors, gr as CliLogoutError, gs as FunctionTestRun, gt as deleteWakeSchedule, gu as ListOrgSecretsErrors, h as MemorySearchInput, ha as DeleteDomainResponses, hc as GetInboxStatusErrors, hd as OrgSecretWriteResult, hf as ReplyToEmailResponse, hg as VerifyAgentClaimResponse, hh as UpdateDomainResponses, hi as CreateFunctionResult, hl as InboxStatus, hm as StartAgentSignupErrors, hn as resolveRegistryHandle, ho as DeleteWakeScheduleErrors, hp as SendEmailError, hr as CliLogoutData, hs as FunctionSecretWriteResult, ht as deleteWakeAuthorization, hu as ListOrgSecretsError, i as CreatedAgent, i_ as Auth, ia as DecideRegistryRequestResponses, ic as GetFunctionRoutingError, id as ListWakeSchedulesError, if as ReplayDeliveryResponse, ig as UpdateWakeScheduleData, ih as UpdateAccountData, ii as CreateFilterError, il as GetWakeScheduleData, im as SimulateRouteResponse, in as listWakeSchedules, io as DeleteRouteError, ip as SemanticSearchData, ir as AgentAccountResult, is as Endpoint, it as defineAgent, iu as ListFunctionSecretsData, j as PRIMITIVE_SIGNATURE_HEADER, ja as DeleteFunctionData, jc as GetRegistryResponse, jd as PublishAgentData, jf as ResolveRegistryHandleErrors, jg as VerifyDomainErrors, jh as UpdateFunctionInput, ji as CreateRegistryInput, jl as ListDeliveriesResponses, jm as StorageStats, jn as startCliSignup, jo as DownloadAttachmentsError, jp as SetFunctionRouteData, jr as CreateAgentAccountResponse, js as GetAccountResponses, jt as getOrgRoutingTopology, ju as ListRegistryAgentsResponses, k as createAgent, ka as DeleteFilterResponse, kc as GetRegistryError, kd as PollCliLoginResponse, kf as ResolveRegistryHandleData, kg as VerifyDomainData, kh as UpdateFunctionError, ki as CreateRegistryError, kl as ListDeliveriesErrors, km as StartCliSignupResponse, kn as startAgentSignup, ko as DomainVerifyResult, kp as SentEmailStatus, kr as CreateAgentAccountErrors, ks as GetAccountErrors, kt as getInboxStatus, ku as ListRegistryAgentsData, l as MemoriesResource, la as DefineAgentResponse, lc as GetFunctionTestRunTraceError, ld as MemoryResolvedScope, lf as ReplayEmailWebhooksResponse, lg as UpdateWakeScheduleResponses, lh as UpdateAccountResponses, li as CreateFunctionData, ll as GetWebhookSecretData, lm as StartAgentClaimErrors, ln as reorderRoutes, lo as DeleteWakeAuthorizationError, lp as SemanticSearchMeta, lr as AgentOrgRef, ls as FunctionListItem, lt as deleteFunction, lu as ListFunctionsData, m as MemoryRecordWithValue, ma as DeleteDomainResponse, mc as GetInboxStatusError, md as OrgSecretListItem, mf as ReplyToEmailErrors, mg as VerifyAgentClaimInput, mh as UpdateDomainResponse, mi as CreateFunctionResponses, ml as IdempotencyKey, mm as StartAgentSignupError, mn as resendCliSignupVerification, mo as DeleteWakeScheduleError, mp as SendEmailData, mr as CliLoginStartResult, ms as FunctionSecretListItem, mt as deleteRoute, mu as ListOrgSecretsData, n as AgentResource, n_ as ResponseStyle, na as DecideRegistryRequestInput, nc as GetFunctionResponses, nd as ListWakeDispatchesResponses, nf as ReplayDeliveryError, ng as UpdateWakeAuthorizationResponse, nh as UnsetFunctionRouteResponses, ni as CreateEndpointResponses, nl as GetThreadResponse, nm as SimulateRouteErrors, nn as listWakeAuthorizations, no as DeleteRegistryResponses, np as SearchMemoriesResponses, nr as AddDomainResponse, ns as EmailSummary, nt as createWakeSchedule, nu as ListFunctionLogsResponse, o as InboundEmail, oa as DefineAgentError, oc as GetFunctionRoutingResponse, od as ListWakeSchedulesResponse, of as ReplayEmailWebhooksData, og as UpdateWakeScheduleErrors, oh as UpdateAccountErrors, oi as CreateFilterInput, ol as GetWakeScheduleErrors, om as SimulateRouteResult, on as pollCliLogin, oo as DeleteRouteResponse, op as SemanticSearchErrors, or as AgentClaimLinkResult, os as Filter, ot as deleteEmail, ou as ListFunctionSecretsErrors, p as MemoryRecord, pa as DeleteDomainErrors, pc as GetInboxStatusData, pd as NumericString, pf as ReplyToEmailError, pg as VerifyAgentClaimErrors, ph as UpdateDomainInput, pi as CreateFunctionResponse, pl as GetWebhookSecretResponses, pm as StartAgentSignupData, pn as resendAgentSignupVerification, po as DeleteWakeScheduleData, pp as SemanticSearchSnippet, pr as CliLoginPollResult, ps as FunctionRouting, pt as deleteRegistry, pu as ListFunctionsResponses, q as createEmailChallenge, qa as DeleteOrgSecretData, qc as GetSpendPolicyResponses, qd as RegistryAgent, qf as SearchEmailsData, qg as X402SpendPolicy, qh as UpdateSpendPolicyError, qi as CreateWakeScheduleError, ql as ListEnvelope, qm as UnpublishAgentData, qn as verifyAgentSignup, qo as EmailAuth, qp as SetMemoryResponses, qr as CreateEmailChallengeErrors, qs as GetEmailData, qt as listFunctionSecrets, qu as ListWakeAuthorizationsData, r as CreateAgentOptions, r_ as createConfig, ra as DecideRegistryRequestResponse, rc as GetFunctionRoutingData, rd as ListWakeSchedulesData, rf as ReplayDeliveryErrors, rg as UpdateWakeAuthorizationResponses, rh as UnverifiedDomain, ri as CreateFilterData, rl as GetThreadResponses, rm as SimulateRouteInput, rn as listWakeDispatches, ro as DeleteRouteData, rp as SemanticSearchCoverage, rr as AddDomainResponses, rs as EmailWebhookStatus, rt as decideRegistryRequest, ru as ListFunctionLogsResponses, s as InboxResource, sa as DefineAgentErrors, sc as GetFunctionRoutingResponses, sd as ListWakeSchedulesResponses, sf as ReplayEmailWebhooksError, sg as UpdateWakeScheduleInput, sh as UpdateAccountInput, si as CreateFilterResponse, sl as GetWakeScheduleResponse, sm as StartAgentClaimData, sn as publishAgent, so as DeleteRouteResponses, sp as SemanticSearchField, sr as AgentClaimResult, ss as FunctionDeployStatus, st as deleteEndpoint, su as ListFunctionSecretsResponse, t as AccountResource, t_ as RequestResult, ta as DecideRegistryRequestErrors, tc as GetFunctionResponse, td as ListWakeDispatchesResponse, tf as ReplayDeliveryData, tg as UpdateWakeAuthorizationInput, th as UnsetFunctionRouteResponse, ti as CreateEndpointResponse, tl as GetThreadErrors, tm as SimulateRouteError, tn as listSentEmails, to as DeleteRegistryResponse, tp as SearchMemoriesResponse, tr as AddDomainInput, ts as EmailStatus, tt as createWakeAuthorization, tu as ListFunctionLogsErrors, u as MemoryDeleteInput, ua as DefineAgentResponses, uc as GetFunctionTestRunTraceErrors, ud as MemoryScope, uf as ReplayEmailWebhooksResponses, ug as VerifiedDomain, uh as UpdateDomainData, ui as CreateFunctionError, ul as GetWebhookSecretError, um as StartAgentClaimInput, un as replayDelivery, uo as DeleteWakeAuthorizationErrors, up as SemanticSearchResponses, ur as AgentSignupResendResult, us as FunctionLogRow, ut as deleteFunctionSecret, uu as ListFunctionsError, v as PrimitiveClient, va as DeleteEmailErrors, vc as GetMemoryData, vd as PayChallengeData, vf as ResendAgentSignupVerificationError, vg as VerifyAgentSignupError, vh as UpdateEndpointErrors, vi as CreateFunctionSecretErrors, vl as InboxStatusFunctionSummary, vm as StartAgentSignupResponses, vn as sdk_gen_d_exports, vo as DeliveryStatus, vp as SendEmailResponses, vr as CliLogoutInput, vs as FunctionTestRunDeliveryEndpoint, vt as downloadAttachments, vu as ListOrgSecretsResponses, w as SendInput, wa as DeleteEndpointResponse, wc as GetOrgRoutingTopologyError, wd as PlanLimits, wf as ResendCliSignupVerificationError, wg as VerifyCliSignupError, wh as UpdateFilterErrors, wi as CreateOrgSecretErrors, wl as ListDeclinedPaymentsErrors, wm as StartCliLoginResponses, wn as setFunctionSecret, wo as DiscardEmailContentResponse, wp as SendPermissionManagedZone, wr as CliSignupVerifyResult, ws as FunctionTestRunTrace, wt as getConversation, wu as ListRegistriesData, x as RequestOptions$2, xa as DeleteEndpointData, xc as GetMemoryResponse, xd as PayChallengeInput, xf as ResendAgentSignupVerificationResponse, xg as VerifyAgentSignupResponse, xh as UpdateEndpointResponses, xi as CreateFunctionSecretResponses, xl as Limit, xm as StartCliLoginErrors, xn as semanticSearch, xo as DiscardEmailContentData, xp as SendMailResult, xr as CliLogoutResult, xs as FunctionTestRunReply, xt as getAccount, xu as ListPayoutAddressesErrors, y as PrimitiveClientOptions, ya as DeleteEmailResponse, yc as GetMemoryError, yd as PayChallengeError, yf as ResendAgentSignupVerificationErrors, yg as VerifyAgentSignupErrors, yh as UpdateEndpointInput, yi as CreateFunctionSecretInput, yl as InboxStatusNextAction, ym as StartCliLoginData, yn as searchEmails, yo as DeliverySummary, yp as SendMailAttachment, yr as CliLogoutResponse, ys as FunctionTestRunInboundEmail, yt as downloadDomainZoneFile, yu as ListPayoutAddressesData, z as PrimitiveApiErrorDetails, za as DeleteFunctionSecretResponse, zc as GetSentEmailError, zd as RecipientRoute, zf as RotateWebhookSecretResponses, zg as X402DeclinedPayment, zh as UpdateRegistryResponses, zi as CreateRouteResponses, zl as ListEmailsErrors, zm as TestFunctionError, zn as updateFilter, zo as DownloadDomainZoneFileResponses, zp as SetFunctionSecretInput, zr as CreateChallengeData, zs as GetChallengeErrors, zt as getWebhookSecret, zu as ListRoutesErrors } from "../index-d8WzbPv5.js";
|
|
2
2
|
import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-BAniFZK9.js";
|
|
3
|
-
import { f as EmailReceivedEvent } from "../types-DVjBmOg0.js";
|
|
4
|
-
import {
|
|
5
|
-
export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, Config, Config as PrimitiveGeneratedApiConfig, 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, DeleteWakeAuthorizationData, DeleteWakeAuthorizationError, DeleteWakeAuthorizationErrors, DeleteWakeAuthorizationResponse, DeleteWakeAuthorizationResponses, DeleteWakeScheduleData, DeleteWakeScheduleError, DeleteWakeScheduleErrors, DeleteWakeScheduleResponse, DeleteWakeScheduleResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, 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, 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, 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, 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, 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, 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, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, RecipientRoute, RegisterPayoutAddressData, RegisterPayoutAddressError, RegisterPayoutAddressErrors, RegisterPayoutAddressInput, RegisterPayoutAddressResponse, RegisterPayoutAddressResponses, Registry, RegistryAgent, RegistryRequest, ReorderRoutesData, ReorderRoutesError, ReorderRoutesErrors, ReorderRoutesInput, ReorderRoutesResponse, ReorderRoutesResponses, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, 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, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailResult, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, 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, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestFunctionData, TestFunctionError, TestFunctionErrors, TestFunctionResponse, TestFunctionResponses, TestInvocationResult, TestResult, Thread, ThreadMessage, 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, 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, cliLogout, client, 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, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWakeSchedule, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
3
|
+
import { F as ValidateEmailAuthResult, f as EmailReceivedEvent, n as AuthVerdict, t as AuthConfidence } from "../types-DVjBmOg0.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-DAHv2kWU.js";
|
|
5
|
+
export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, AuthConfidence, AuthVerdict, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, 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, DeleteWakeAuthorizationData, DeleteWakeAuthorizationError, DeleteWakeAuthorizationErrors, DeleteWakeAuthorizationResponse, DeleteWakeAuthorizationResponses, DeleteWakeScheduleData, DeleteWakeScheduleError, DeleteWakeScheduleErrors, DeleteWakeScheduleResponse, DeleteWakeScheduleResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, 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, 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, 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, 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, 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, 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, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, RecipientRoute, RegisterPayoutAddressData, RegisterPayoutAddressError, RegisterPayoutAddressErrors, RegisterPayoutAddressInput, RegisterPayoutAddressResponse, RegisterPayoutAddressResponses, Registry, RegistryAgent, RegistryRequest, ReorderRoutesData, ReorderRoutesError, ReorderRoutesErrors, ReorderRoutesInput, ReorderRoutesResponse, ReorderRoutesResponses, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, 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, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailResult, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, 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, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, 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, cliLogout, client, 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, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWakeSchedule, getWebhookSecret, isMemoryJsonValue, isTrustedSender, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, 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
|
|
1
|
+
import { $ as getEmail, $t as setMemory, A as createWakeSchedule, At as listWakeAuthorizations, B as deleteOrgSecret, Bt as replyToEmail, C as createFilter, Cn as verifyDomain, Ct as listOrgSecrets, D as createRegistry, Dt as listRegistryRequests, E as createOrgSecret, Et as listRegistryAgents, F as deleteEndpoint, Ft as publishAgent, G as discardEmailContent, Gt as runWakeSchedule, H as deleteRoute, Ht as resendCliSignupVerification, I as deleteFilter, It as registerPayoutAddress, J as downloadRawEmail, Jt as searchMemories, K as downloadAttachments, Kt as sdk_gen_exports, L as deleteFunction, Lt as reorderRoutes, M as defineAgent, Mt as listWakeSchedules, N as deleteDomain, Nt as payChallenge, O as createRoute, Ot as listRoutes, P as deleteEmail, Pt as pollCliLogin, Q as getConversation, Qt as setFunctionSecret, R as deleteFunctionSecret, Rt as replayDelivery, S as createEndpoint, Sn as verifyCliSignup, St as listFunctions, T as createFunctionSecret, Tn as createConfig, Tt as listRegistries, U as deleteWakeAuthorization, Ut as resolveRegistryHandle, V as deleteRegistry, Vt as resendAgentSignupVerification, W as deleteWakeSchedule, Wt as rotateWebhookSecret, X as getAgent, Xt as sendEmail, Y as getAccount, Yt as semanticSearch, Z as getChallenge, Zt as setFunctionRoute, _ as cliLogout, _n as updateSpendPolicy, _t as listEmails, a as PrimitiveClient, an as startCliSignup, at as getOrgRoutingTopology, b as createChallenge, bn as verifyAgentClaim, bt as listFunctionLogs, c as createPrimitiveClient, cn as unpublishAgent, ct as getSentEmail, d as isMemoryJsonValue, dn as updateDomain, dt as getThread, en as setOrgSecret, et as getFunction, f as DEFAULT_API_BASE_URL, fn as updateEndpoint, ft as getWakeSchedule, g as addDomain, gn as updateRoute, gt as listDomains, h as createPrimitiveApiClient, hn as updateRegistry, ht as listDeliveries, i as MemoriesResource, in as startCliLogin, it as getMemory, j as decideRegistryRequest, jt as listWakeDispatches, k as createWakeAuthorization, kt as listSentEmails, l as PRIMITIVE_SIGNATURE_HEADER, ln as unsetFunctionRoute, lt as getSpendPolicy, m as PrimitiveApiError, mn as updateFunction, mt as listDeclinedPayments, n as AgentResource, nn as startAgentClaim, nt as getFunctionTestRunTrace, o as client, on as testEndpoint, ot as getRegistry, p as PrimitiveApiClient, pn as updateFilter, pt as getWebhookSecret, q as downloadDomainZoneFile, qt as searchEmails, r as InboxResource, rn as startAgentSignup, rt as getInboxStatus, s as createAgent, sn as testFunction, st as getSendPermissions, t as AccountResource, tn as simulateRoute, tt as getFunctionRouting, u as verifyWebhookSignature, un as updateAccount, ut as getStorageStats, v as createAgentAccount, vn as updateWakeAuthorization, vt as listEndpoints, w as createFunction, wn as createClient, wt as listPayoutAddresses, x as createEmailChallenge, xn as verifyAgentSignup, xt as listFunctionSecrets, y as createAgentClaimLink, yn as updateWakeSchedule, yt as listFilters, z as deleteMemory, zt as replayEmailWebhooks } from "../api-CnvYcgJ-.js";
|
|
2
2
|
import { n as openapiDocument, t as operationManifest } from "../operations.generated-CORS0UoM.js";
|
|
3
|
-
import { c as WebhookVerificationError, f as
|
|
4
|
-
export { AccountResource, AgentResource, DEFAULT_API_BASE_URL, InboxResource, MemoriesResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, 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, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWakeSchedule, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
3
|
+
import { C as normalizeReceivedEmail, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, l as isTrustedSender, u as validateEmailAuth } from "../errors-D6WjisrD.js";
|
|
4
|
+
export { AccountResource, AgentResource, AuthConfidence, AuthVerdict, DEFAULT_API_BASE_URL, InboxResource, MemoriesResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, 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, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWakeSchedule, getWebhookSecret, isMemoryJsonValue, isTrustedSender, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, validateEmailAuth, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
|
-
import {
|
|
2
|
+
import { S as formatAddress, c as WebhookVerificationError } from "./errors-D6WjisrD.js";
|
|
3
3
|
//#region ../packages/api-core/src/api/core/bodySerializer.gen.ts
|
|
4
4
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
5
5
|
//#endregion
|
|
@@ -320,8 +320,8 @@ const checkForExistence = (options, name) => {
|
|
|
320
320
|
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) return true;
|
|
321
321
|
return false;
|
|
322
322
|
};
|
|
323
|
-
|
|
324
|
-
for (const auth of security) {
|
|
323
|
+
async function setAuthParams(options) {
|
|
324
|
+
for (const auth of options.security ?? []) {
|
|
325
325
|
if (checkForExistence(options, auth.name)) continue;
|
|
326
326
|
const token = await getAuthToken(auth, options.auth);
|
|
327
327
|
if (!token) continue;
|
|
@@ -339,7 +339,7 @@ const setAuthParams = async ({ security, ...options }) => {
|
|
|
339
339
|
break;
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
}
|
|
342
|
+
}
|
|
343
343
|
const buildUrl = (options) => getUrl({
|
|
344
344
|
baseUrl: options.baseUrl,
|
|
345
345
|
path: options.path,
|
|
@@ -446,10 +446,7 @@ const createClient = (config = {}) => {
|
|
|
446
446
|
headers: mergeHeaders(_config.headers, options.headers),
|
|
447
447
|
serializedBody: void 0
|
|
448
448
|
};
|
|
449
|
-
if (opts.security) await setAuthParams(
|
|
450
|
-
...opts,
|
|
451
|
-
security: opts.security
|
|
452
|
-
});
|
|
449
|
+
if (opts.security) await setAuthParams(opts);
|
|
453
450
|
if (opts.requestValidator) await opts.requestValidator(opts);
|
|
454
451
|
if (opts.body !== void 0 && opts.bodySerializer) opts.serializedBody = opts.bodySerializer(opts.body);
|
|
455
452
|
if (opts.body === void 0 || opts.serializedBody === "") opts.headers.delete("Content-Type");
|
|
@@ -460,100 +457,95 @@ const createClient = (config = {}) => {
|
|
|
460
457
|
};
|
|
461
458
|
};
|
|
462
459
|
const request = async (options) => {
|
|
463
|
-
const
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
...opts,
|
|
467
|
-
body: getValidRequestBody(opts)
|
|
468
|
-
};
|
|
469
|
-
let request = new Request(url, requestInit);
|
|
470
|
-
for (const fn of interceptors.request.fns) if (fn) request = await fn(request, opts);
|
|
471
|
-
const _fetch = opts.fetch;
|
|
460
|
+
const throwOnError = options.throwOnError ?? _config.throwOnError;
|
|
461
|
+
const responseStyle = options.responseStyle ?? _config.responseStyle;
|
|
462
|
+
let request;
|
|
472
463
|
let response;
|
|
473
464
|
try {
|
|
465
|
+
const { opts, url } = await beforeRequest(options);
|
|
466
|
+
const requestInit = {
|
|
467
|
+
redirect: "follow",
|
|
468
|
+
...opts,
|
|
469
|
+
body: getValidRequestBody(opts)
|
|
470
|
+
};
|
|
471
|
+
request = new Request(url, requestInit);
|
|
472
|
+
for (const fn of interceptors.request.fns) if (fn) request = await fn(request, opts);
|
|
473
|
+
const _fetch = opts.fetch;
|
|
474
474
|
response = await _fetch(request);
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
for (const fn of interceptors.error.fns) if (fn) finalError = await fn(error, void 0, request, opts);
|
|
478
|
-
finalError = finalError || {};
|
|
479
|
-
if (opts.throwOnError) throw finalError;
|
|
480
|
-
return opts.responseStyle === "data" ? void 0 : {
|
|
481
|
-
error: finalError,
|
|
475
|
+
for (const fn of interceptors.response.fns) if (fn) response = await fn(response, request, opts);
|
|
476
|
+
const result = {
|
|
482
477
|
request,
|
|
483
|
-
response
|
|
478
|
+
response
|
|
484
479
|
};
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
480
|
+
if (response.ok) {
|
|
481
|
+
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
482
|
+
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
483
|
+
let emptyData;
|
|
484
|
+
switch (parseAs) {
|
|
485
|
+
case "arrayBuffer":
|
|
486
|
+
case "blob":
|
|
487
|
+
case "text":
|
|
488
|
+
emptyData = await response[parseAs]();
|
|
489
|
+
break;
|
|
490
|
+
case "formData":
|
|
491
|
+
emptyData = new FormData();
|
|
492
|
+
break;
|
|
493
|
+
case "stream":
|
|
494
|
+
emptyData = response.body;
|
|
495
|
+
break;
|
|
496
|
+
default:
|
|
497
|
+
emptyData = {};
|
|
498
|
+
break;
|
|
499
|
+
}
|
|
500
|
+
return opts.responseStyle === "data" ? emptyData : {
|
|
501
|
+
data: emptyData,
|
|
502
|
+
...result
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
let data;
|
|
495
506
|
switch (parseAs) {
|
|
496
507
|
case "arrayBuffer":
|
|
497
508
|
case "blob":
|
|
498
|
-
case "text":
|
|
499
|
-
emptyData = await response[parseAs]();
|
|
500
|
-
break;
|
|
501
509
|
case "formData":
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
case "stream":
|
|
505
|
-
emptyData = response.body;
|
|
510
|
+
case "text":
|
|
511
|
+
data = await response[parseAs]();
|
|
506
512
|
break;
|
|
507
|
-
|
|
508
|
-
|
|
513
|
+
case "json": {
|
|
514
|
+
const text = await response.text();
|
|
515
|
+
data = text ? JSON.parse(text) : {};
|
|
509
516
|
break;
|
|
517
|
+
}
|
|
518
|
+
case "stream": return opts.responseStyle === "data" ? response.body : {
|
|
519
|
+
data: response.body,
|
|
520
|
+
...result
|
|
521
|
+
};
|
|
510
522
|
}
|
|
511
|
-
|
|
512
|
-
data
|
|
513
|
-
|
|
514
|
-
};
|
|
515
|
-
}
|
|
516
|
-
let data;
|
|
517
|
-
switch (parseAs) {
|
|
518
|
-
case "arrayBuffer":
|
|
519
|
-
case "blob":
|
|
520
|
-
case "formData":
|
|
521
|
-
case "text":
|
|
522
|
-
data = await response[parseAs]();
|
|
523
|
-
break;
|
|
524
|
-
case "json": {
|
|
525
|
-
const text = await response.text();
|
|
526
|
-
data = text ? JSON.parse(text) : {};
|
|
527
|
-
break;
|
|
523
|
+
if (parseAs === "json") {
|
|
524
|
+
if (opts.responseValidator) await opts.responseValidator(data);
|
|
525
|
+
if (opts.responseTransformer) data = await opts.responseTransformer(data);
|
|
528
526
|
}
|
|
529
|
-
|
|
530
|
-
data
|
|
527
|
+
return opts.responseStyle === "data" ? data : {
|
|
528
|
+
data,
|
|
531
529
|
...result
|
|
532
530
|
};
|
|
533
531
|
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
532
|
+
const textError = await response.text();
|
|
533
|
+
let jsonError;
|
|
534
|
+
try {
|
|
535
|
+
jsonError = JSON.parse(textError);
|
|
536
|
+
} catch {}
|
|
537
|
+
throw jsonError ?? textError;
|
|
538
|
+
} catch (error) {
|
|
539
|
+
let finalError = error;
|
|
540
|
+
for (const fn of interceptors.error.fns) if (fn) finalError = await fn(finalError, response, request, options);
|
|
541
|
+
finalError = finalError || {};
|
|
542
|
+
if (throwOnError) throw finalError;
|
|
543
|
+
return responseStyle === "data" ? void 0 : {
|
|
544
|
+
error: finalError,
|
|
545
|
+
request,
|
|
546
|
+
response
|
|
541
547
|
};
|
|
542
548
|
}
|
|
543
|
-
const textError = await response.text();
|
|
544
|
-
let jsonError;
|
|
545
|
-
try {
|
|
546
|
-
jsonError = JSON.parse(textError);
|
|
547
|
-
} catch {}
|
|
548
|
-
const error = jsonError ?? textError;
|
|
549
|
-
let finalError = error;
|
|
550
|
-
for (const fn of interceptors.error.fns) if (fn) finalError = await fn(error, response, request, opts);
|
|
551
|
-
finalError = finalError || {};
|
|
552
|
-
if (opts.throwOnError) throw finalError;
|
|
553
|
-
return opts.responseStyle === "data" ? void 0 : {
|
|
554
|
-
error: finalError,
|
|
555
|
-
...result
|
|
556
|
-
};
|
|
557
549
|
};
|
|
558
550
|
const makeMethodFn = (method) => (options) => request({
|
|
559
551
|
...options,
|
|
@@ -564,7 +556,6 @@ const createClient = (config = {}) => {
|
|
|
564
556
|
return createSseClient({
|
|
565
557
|
...opts,
|
|
566
558
|
body: opts.body,
|
|
567
|
-
headers: opts.headers,
|
|
568
559
|
method,
|
|
569
560
|
onRequest: async (url, init) => {
|
|
570
561
|
let request = new Request(url, init);
|
|
@@ -3005,6 +2996,31 @@ function createPrimitiveApiClient(options = {}) {
|
|
|
3005
2996
|
return new PrimitiveApiClient(options);
|
|
3006
2997
|
}
|
|
3007
2998
|
//#endregion
|
|
2999
|
+
//#region ../packages/api-core/src/memories.ts
|
|
3000
|
+
function isPlainJsonObject(value) {
|
|
3001
|
+
const prototype = Object.getPrototypeOf(value);
|
|
3002
|
+
return prototype === Object.prototype || prototype === null;
|
|
3003
|
+
}
|
|
3004
|
+
function isMemoryJsonValue(value, seen = /* @__PURE__ */ new Set()) {
|
|
3005
|
+
if (value === null) return true;
|
|
3006
|
+
if (typeof value === "string" || typeof value === "boolean") return true;
|
|
3007
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
3008
|
+
if (typeof value !== "object") return false;
|
|
3009
|
+
if (seen.has(value)) return false;
|
|
3010
|
+
seen.add(value);
|
|
3011
|
+
try {
|
|
3012
|
+
if (Array.isArray(value)) {
|
|
3013
|
+
for (let index = 0; index < value.length; index += 1) if (!(index in value) || !isMemoryJsonValue(value[index], seen)) return false;
|
|
3014
|
+
return true;
|
|
3015
|
+
}
|
|
3016
|
+
if (!isPlainJsonObject(value)) return false;
|
|
3017
|
+
for (const nested of Object.values(value)) if (!isMemoryJsonValue(nested, seen)) return false;
|
|
3018
|
+
return true;
|
|
3019
|
+
} finally {
|
|
3020
|
+
seen.delete(value);
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
//#endregion
|
|
3008
3024
|
//#region src/api/verify-signature.ts
|
|
3009
3025
|
/**
|
|
3010
3026
|
* Workers-safe webhook signature verification.
|
|
@@ -3258,13 +3274,29 @@ function isRecord(value) {
|
|
|
3258
3274
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
3259
3275
|
}
|
|
3260
3276
|
function rejectGeneratedOptionsShape(value, method) {
|
|
3277
|
+
if (!isRecord(value)) return;
|
|
3261
3278
|
if ("client" in value || "body" in value || "query" in value) {
|
|
3262
3279
|
const example = method === "set" ? "client.memories.set({ key, value })" : method === "search" ? "client.memories.search({ prefix })" : `client.memories.${method}({ key })`;
|
|
3263
3280
|
throw new TypeError(`client.memories.${method} takes the memory fields directly; use ${example}, not the generated operation options shape.`);
|
|
3264
3281
|
}
|
|
3265
3282
|
}
|
|
3283
|
+
function assertMemoryJsonValue(value) {
|
|
3284
|
+
if (isMemoryJsonValue(value)) return;
|
|
3285
|
+
throw new TypeError("client.memories.set value must be a JSON value: string, finite number, boolean, null, array, or plain object. Undefined, bigint, symbol, function, NaN, Infinity, sparse arrays, class instances, and cyclic values are not valid memory values.");
|
|
3286
|
+
}
|
|
3287
|
+
function assertMemorySetInput(input) {
|
|
3288
|
+
if (!isRecord(input)) throw new TypeError("client.memories.set takes the memory fields directly; use client.memories.set({ key, value }).");
|
|
3289
|
+
if (!("value" in input)) throw new TypeError("client.memories.set requires a value field.");
|
|
3290
|
+
assertMemoryJsonValue(input.value);
|
|
3291
|
+
}
|
|
3292
|
+
function assertMemoryQueryInput(input, method) {
|
|
3293
|
+
if (isRecord(input)) return;
|
|
3294
|
+
const example = method === "search" ? "client.memories.search({ prefix })" : `client.memories.${method}({ key })`;
|
|
3295
|
+
throw new TypeError(`client.memories.${method} takes the memory fields directly; use ${example}.`);
|
|
3296
|
+
}
|
|
3266
3297
|
function normalizeMemorySearchInput(input) {
|
|
3267
3298
|
if (input === void 0) return void 0;
|
|
3299
|
+
assertMemoryQueryInput(input, "search");
|
|
3268
3300
|
if (isRecord(input) && "query" in input) {
|
|
3269
3301
|
if (typeof input.query !== "string") rejectGeneratedOptionsShape(input, "search");
|
|
3270
3302
|
throw new TypeError("client.memories.search is key-prefix search; pass { prefix } directly. For free-text mail search, use client.semanticSearch(...).");
|
|
@@ -3529,6 +3561,7 @@ var MemoriesResource = class {
|
|
|
3529
3561
|
}
|
|
3530
3562
|
async set(input, options) {
|
|
3531
3563
|
rejectGeneratedOptionsShape(input, "set");
|
|
3564
|
+
assertMemorySetInput(input);
|
|
3532
3565
|
return unwrapData(await setMemory({
|
|
3533
3566
|
body: input,
|
|
3534
3567
|
...resolveRequestOptions(options),
|
|
@@ -3539,6 +3572,7 @@ var MemoriesResource = class {
|
|
|
3539
3572
|
async get(input, options) {
|
|
3540
3573
|
const query = typeof input === "string" ? { key: input } : input;
|
|
3541
3574
|
rejectGeneratedOptionsShape(query, "get");
|
|
3575
|
+
assertMemoryQueryInput(query, "get");
|
|
3542
3576
|
return unwrapData(await getMemory({
|
|
3543
3577
|
query,
|
|
3544
3578
|
...resolveRequestOptions(options),
|
|
@@ -3549,6 +3583,7 @@ var MemoriesResource = class {
|
|
|
3549
3583
|
async delete(input, options) {
|
|
3550
3584
|
const query = typeof input === "string" ? { key: input } : input;
|
|
3551
3585
|
rejectGeneratedOptionsShape(query, "delete");
|
|
3586
|
+
assertMemoryQueryInput(query, "delete");
|
|
3552
3587
|
return unwrapData(await deleteMemory({
|
|
3553
3588
|
query,
|
|
3554
3589
|
...resolveRequestOptions(options),
|
|
@@ -3774,4 +3809,4 @@ async function createAgent(options) {
|
|
|
3774
3809
|
};
|
|
3775
3810
|
}
|
|
3776
3811
|
//#endregion
|
|
3777
|
-
export {
|
|
3812
|
+
export { getEmail as $, setMemory as $t, createWakeSchedule as A, listWakeAuthorizations as At, deleteOrgSecret as B, replyToEmail as Bt, createFilter as C, verifyDomain as Cn, listOrgSecrets as Ct, createRegistry as D, listRegistryRequests as Dt, createOrgSecret as E, listRegistryAgents as Et, deleteEndpoint as F, publishAgent as Ft, discardEmailContent as G, runWakeSchedule as Gt, deleteRoute as H, resendCliSignupVerification as Ht, deleteFilter as I, registerPayoutAddress as It, downloadRawEmail as J, searchMemories as Jt, downloadAttachments as K, sdk_gen_exports as Kt, deleteFunction as L, reorderRoutes as Lt, defineAgent as M, listWakeSchedules as Mt, deleteDomain as N, payChallenge as Nt, createRoute as O, listRoutes as Ot, deleteEmail as P, pollCliLogin as Pt, getConversation as Q, setFunctionSecret as Qt, deleteFunctionSecret as R, replayDelivery as Rt, createEndpoint as S, verifyCliSignup as Sn, listFunctions as St, createFunctionSecret as T, createConfig as Tn, listRegistries as Tt, deleteWakeAuthorization as U, resolveRegistryHandle as Ut, deleteRegistry as V, resendAgentSignupVerification as Vt, deleteWakeSchedule as W, rotateWebhookSecret as Wt, getAgent as X, sendEmail as Xt, getAccount as Y, semanticSearch as Yt, getChallenge as Z, setFunctionRoute as Zt, cliLogout as _, updateSpendPolicy as _n, listEmails as _t, PrimitiveClient as a, startCliSignup as an, getOrgRoutingTopology as at, createChallenge as b, verifyAgentClaim as bn, listFunctionLogs as bt, createPrimitiveClient as c, unpublishAgent as cn, getSentEmail as ct, isMemoryJsonValue as d, updateDomain as dn, getThread as dt, setOrgSecret as en, getFunction as et, DEFAULT_API_BASE_URL as f, updateEndpoint as fn, getWakeSchedule as ft, addDomain as g, updateRoute as gn, listDomains as gt, createPrimitiveApiClient as h, updateRegistry as hn, listDeliveries as ht, MemoriesResource as i, startCliLogin as in, getMemory as it, decideRegistryRequest as j, listWakeDispatches as jt, createWakeAuthorization as k, listSentEmails as kt, PRIMITIVE_SIGNATURE_HEADER as l, unsetFunctionRoute as ln, getSpendPolicy as lt, PrimitiveApiError as m, updateFunction as mn, listDeclinedPayments as mt, AgentResource as n, startAgentClaim as nn, getFunctionTestRunTrace as nt, client as o, testEndpoint as on, getRegistry as ot, PrimitiveApiClient as p, updateFilter as pn, getWebhookSecret as pt, downloadDomainZoneFile as q, searchEmails as qt, InboxResource as r, startAgentSignup as rn, getInboxStatus as rt, createAgent as s, testFunction as sn, getSendPermissions as st, AccountResource as t, simulateRoute as tn, getFunctionRouting as tt, verifyWebhookSignature as u, updateAccount as un, getStorageStats as ut, createAgentAccount as v, updateWakeAuthorization as vn, listEndpoints as vt, createFunction as w, createClient as wn, listPayoutAddresses as wt, createEmailChallenge as x, verifyAgentSignup as xn, listFunctionSecrets as xt, createAgentClaimLink as y, updateWakeSchedule as yn, listFilters as yt, deleteMemory as z, replayEmailWebhooks as zt };
|