@primitivedotdev/sdk 1.10.0 → 1.12.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 CHANGED
@@ -283,7 +283,17 @@ const issued = await x402.createEmailChallenge({
283
283
  // issued.challenge carries the payment_requirements + nonce_binding the payer signs.
284
284
  ```
285
285
 
286
- The payer, on receiving the challenge, signs it locally with `payEmailChallenge` and sends the resulting envelope back as an `interaction.json` attachment. `payEmailChallenge` does not send anything; it returns the signed payment-step envelope and its canonical JSON bytes:
286
+ The payer receives the challenge as an `interaction.json` MIME part on an inbound email. Rather than hand-parsing it, pass the part bytes to `parseEmailChallengeFromPart`, which validates the envelope and returns the typed `X402EmailChallenge`:
287
+
288
+ ```ts
289
+ import { parseEmailChallengeFromPart } from "@primitivedotdev/sdk/x402";
290
+
291
+ // `interactionPart` is the body of the inbound email's `interaction.json`
292
+ // attachment (a string, a Buffer/Uint8Array, or an already-parsed object).
293
+ const issued = parseEmailChallengeFromPart(interactionPart);
294
+ ```
295
+
296
+ The payer then signs the challenge locally with `payEmailChallenge` and sends the resulting envelope back as an `interaction.json` attachment. `payEmailChallenge` does not send anything; it returns the signed payment-step envelope and its canonical JSON bytes. The validity window is computed and clamped into the accepted band for you, so you never hand-set `validBefore`:
287
297
 
288
298
  ```ts
289
299
  import { privateKeyToAccount } from "viem/accounts";
@@ -317,7 +327,8 @@ await mail.reply(challengeEmail, {
317
327
  `pay()` builds and signs the payment for you. When you need to drive the signing yourself, for example to sign a challenge carried in an email reply and submit the payment separately, the same building blocks are exported directly:
318
328
 
319
329
  - `deriveEip3009Nonce(binding)` derives the interaction-bound EIP-3009 nonce. The byte layout (`keccak256` over the lowercased `interaction_id`, a `0x00` separator, the lowercased `challenge_step_id`, a `0x00` separator, and the 32 raw bytes of the challenge nonce) is locked to a normative vector the platform recomputes.
320
- - `computePaymentValidityWindow({ challengeExpiresAtSec, nowSec })` returns the `{ validAfter, validBefore }` window. `validBefore` covers the challenge expiry plus a settlement margin; the total window is hard-capped (24h) so an over-wide authorization can never be produced.
330
+ - `parseEmailChallengeFromPart(part)` validates an inbound `interaction.json` challenge part (string, bytes, or a parsed object) and returns the typed `X402EmailChallenge` ready for `payEmailChallenge`, so you never hand-parse the envelope.
331
+ - `computePaymentValidityWindow({ challengeExpiresAtSec, nowSec })` returns the `{ validAfter, validBefore }` window. By default it lands the window inside the band the platform accepts: `validBefore` keeps at least a minimum settlement headroom (60s) so a near-expired challenge is not signed into a guaranteed rejection, and the total window is clamped to the 24h cap so a far-future expiry never produces an "authorization window too wide" rejection. Pass an explicit `validBeforeSec`/`validAfterSec` to pin a bound; with `clamp: false` an out-of-band pinned value throws a specific error naming which bound was violated instead of silently signing a doomed authorization.
321
332
  - `signInteractionPayment({ sign, payer, domain, payTo, amount, nonceBinding, validAfter, validBefore })` derives the bound nonce, assembles the authorization, and signs it with your `sign` callback. Returns `{ authorization, signature }`. The key never leaves the caller.
322
333
  - `buildExactEvmPaymentPayload({ network, authorization, signature })` assembles the exact-EVM x402 wire payload, validating the nonce and signature shape.
323
334
 
@@ -1,5 +1,5 @@
1
- import { $ as discardEmailContent, $a as FunctionTestRunReply, $c as ListRegistryAgentsResponses, $d as TestEndpointError, $f as UpdateRegistryData, $i as DiscardEmailContentData, $l as ReplayEmailWebhooksResponses, $n as CreateAgentAccountResponse, $o as GetOrgRoutingTopologyResponse, $p as RequestResult, $r as CreateRegistryInput, $s as ListDeliveriesResponses, $t as startAgentClaim, $u as SendMailResult, A as RequestOptions$1, Aa as EmailSearchHighlights, Ac as ListFunctionSecretsResponses, Ad as StartAgentClaimResponse, Af as UpdateDomainError, Ai as DeleteFilterData, Al as PublishAgentInput, An as AgentClaimStartResult, Ao as GetFunctionData, Ap as VerifyDomainData, Ar as CreateFilterResponses, As as GetThreadResponses, At as listPayoutAddresses, Au as SearchEmailsData, B as createFunction, Ba as FunctionDetail, Bc as ListOrgSecretsResponses, Bd as StartCliLoginErrors, Bf as UpdateEndpointResponses, Bi as DeleteFunctionSecretData, Bl as RegisterPayoutAddressResponses, Bn as CliLogoutInput, Bo as GetFunctionTestRunTraceData, Bp as X402NonceBinding, Br as CreateFunctionSecretErrors, Bs as InboxStatusFunctionSummary, Bt as replayEmailWebhooks, Bu as SemanticSearchInput, C as VerifyOptions, Ca as EmailAddress, Cc as ListFunctionLogsErrors, Cd as SetOrgSecretInput, Cf as UpdateAccountData, Ci as DeleteEmailResponse, Cl as PollCliLoginErrors, Cn as AddDomainInput, Co as GetConversationResponse, Cp as VerifyAgentSignupResponses, Cr as CreateEndpointResponse, Cs as GetStorageStatsErrors, Ct as listEmails, Cu as ResourceId, D as PrimitiveApiClientOptions, Da as EmailDetailReply, Dc as ListFunctionSecretsError, Dd as StartAgentClaimError, Df as UpdateAccountResponse, Di as DeleteEndpointErrors, Dl as PublishAgentData, Dn as AgentAccountUpgradeHint, Do as GetEmailErrors, Dp as VerifyCliSignupInput, Dr as CreateFilterErrors, Ds as GetThreadError, Dt as listFunctionSecrets, Du as RotateWebhookSecretResponse, E as PrimitiveApiClient, Ea as EmailDetail, Ec as ListFunctionSecretsData, Ed as StartAgentClaimData, Ef as UpdateAccountInput, Ei as DeleteEndpointError, El as PollCliLoginResponses, En as AgentAccountResult, Eo as GetEmailError, Ep as VerifyCliSignupErrors, Er as CreateFilterError, Es as GetThreadData, Et as listFunctionLogs, Eu as RotateWebhookSecretErrors, F as createAgentClaimLink, Fa as EmailWebhookStatus, Fc as ListFunctionsResponses, Fd as StartAgentSignupInput, Ff as UpdateEndpointData, Fi as DeleteFunctionData, Fl as RegisterPayoutAddressData, Fn as CliLoginPollResult, Fo as GetFunctionRoutingData, Fp as WebhookSecret, Fr as CreateFunctionResponse, Fs as GetWebhookSecretResponses, Ft as payChallenge, Fu as SemanticSearchCoverage, G as defineAgent, Ga as FunctionRouting, Gc as ListPayoutAddressesResponses, Gd as StartCliSignupError, Gf as UpdateFilterResponse, Gi as DeleteOrgSecretData, Gl as ReplayDeliveryError, Gn as CliSignupStartResult, Go as GetInboxStatusData, Gp as X402SpendPolicy, Gr as CreateOrgSecretError, Gs as ListDeclinedPaymentsError, Gt as rotateWebhookSecret, Gu as SemanticSearchSnippet, H as createOrgSecret, Ha as FunctionLogRow, Hc as ListPayoutAddressesError, Hd as StartCliLoginResponse, Hf as UpdateFilterError, Hi as DeleteFunctionSecretErrors, Hl as RegistryAgent, Hn as CliLogoutResponses, Ho as GetFunctionTestRunTraceErrors, Hp as X402PaymentRequirements, Hr as CreateFunctionSecretResponse, Hs as InboxStatusRecentEmailSummary, Ht as resendAgentSignupVerification, Hu as SemanticSearchResponses, I as createChallenge, Ia as Endpoint, Ic as ListOrgSecretsData, Id as StartAgentSignupResponse, If as UpdateEndpointError, Ii as DeleteFunctionError, Il as RegisterPayoutAddressError, In as CliLoginStartResult, Io as GetFunctionRoutingError, Ip as X402Challenge, Ir as CreateFunctionResponses, Is as IdempotencyKey, It as pollCliLogin, Iu as SemanticSearchData, J as deleteEndpoint, Ja as FunctionTestRun, Jc as ListRegistriesErrors, Jd as StartCliSignupResponse, Jf as UpdateFunctionError, Ji as DeleteOrgSecretResponse, Jl as ReplayDeliveryResponses, Jn as ConversationMessage, Jo as GetInboxStatusResponse, Jp as ClientOptions, Jr as CreateOrgSecretResponse, Js as ListDeclinedPaymentsResponses, Jt as semanticSearch, Ju as SendEmailErrors, K as deleteDomain, Ka as FunctionSecretListItem, Kc as ListRegistriesData, Kd as StartCliSignupErrors, Kf as UpdateFilterResponses, Ki as DeleteOrgSecretError, Kl as ReplayDeliveryErrors, Kn as CliSignupVerifyResult, Ko as GetInboxStatusError, Kp as createClient, Kr as CreateOrgSecretErrors, Ks as ListDeclinedPaymentsErrors, Kt as sdk_gen_d_exports, Ku as SendEmailData, L as createEmailChallenge, La as ErrorResponse, Lc as ListOrgSecretsError, Ld as StartAgentSignupResponses, Lf as UpdateEndpointErrors, Li as DeleteFunctionErrors, Ll as RegisterPayoutAddressErrors, Ln as CliLogoutData, Lo as GetFunctionRoutingErrors, Lp as X402DeclinedPayment, Lr as CreateFunctionResult, Ls as InboxStatus, Lt as publishAgent, Lu as SemanticSearchError, M as addDomain, Ma as EmailSearchResult, Mc as ListFunctionsError, Md as StartAgentSignupData, Mf as UpdateDomainInput, Mi as DeleteFilterErrors, Ml as PublishAgentResponses, Mn as AgentSignupResendResult, Mo as GetFunctionErrors, Mp as VerifyDomainErrors, Mr as CreateFunctionError, Ms as GetWebhookSecretError, Mt as listRegistryAgents, Mu as SearchEmailsErrors, N as cliLogout, Na as EmailStatus, Nc as ListFunctionsErrors, Nd as StartAgentSignupError, Nf as UpdateDomainResponse, Ni as DeleteFilterResponse, Nl as PublishAgentResult, Nn as AgentSignupStartResult, No as GetFunctionResponse, Np as VerifyDomainResponse, Nr as CreateFunctionErrors, Ns as GetWebhookSecretErrors, Nt as listRegistryRequests, Nu as SearchEmailsResponse, O as PrimitiveApiError, Oa as EmailSearchFacetBucket, Oc as ListFunctionSecretsErrors, Od as StartAgentClaimErrors, Of as UpdateAccountResponses, Oi as DeleteEndpointResponse, Ol as PublishAgentError, On as AgentClaimLinkResult, Oo as GetEmailResponse, Op as VerifyCliSignupResponse, Or as CreateFilterInput, Os as GetThreadErrors, Ot as listFunctions, Ou as RotateWebhookSecretResponses, P as createAgentAccount, Pa as EmailSummary, Pc as ListFunctionsResponse, Pd as StartAgentSignupErrors, Pf as UpdateDomainResponses, Pi as DeleteFilterResponses, Pl as PublishPolicy, Pn as AgentSignupVerifyResult, Po as GetFunctionResponses, Pp as VerifyDomainResponses, Pr as CreateFunctionInput, Ps as GetWebhookSecretResponse, Pt as listSentEmails, Pu as SearchEmailsResponses, Q as deleteOrgSecret, Qa as FunctionTestRunOutboundRequest, Qc as ListRegistryAgentsResponse, Qd as TestEndpointData, Qf as UpdateFunctionResponses, Qi as DiscardContentResult, Ql as ReplayEmailWebhooksResponse, Qn as CreateAgentAccountInput, Qo as GetOrgRoutingTopologyErrors, Qp as RequestOptions, Qr as CreateRegistryErrors, Qs as ListDeliveriesResponse, Qt as setOrgSecret, Qu as SendMailInput, R as createEndpoint, Ra as Filter, Rc as ListOrgSecretsErrors, Rd as StartCliLoginData, Rf as UpdateEndpointInput, Ri as DeleteFunctionResponse, Rl as RegisterPayoutAddressInput, Rn as CliLogoutError, Ro as GetFunctionRoutingResponse, Rp as X402EmailChallenge, Rr as CreateFunctionSecretData, Rs as InboxStatusDomain, Rt as registerPayoutAddress, Ru as SemanticSearchErrors, S as PRIMITIVE_SIGNATURE_HEADER, Sa as DownloadRawEmailResponses, Sc as ListFunctionLogsError, Sd as SetOrgSecretErrors, Sf as UnverifiedDomain, Si as DeleteEmailErrors, Sl as PollCliLoginError, Sn as AddDomainErrors, So as GetConversationErrors, Sp as VerifyAgentSignupResponse, Sr as CreateEndpointInput, Ss as GetStorageStatsError, St as listDomains, Su as ResolveRegistryHandleResponses, T as DEFAULT_API_BASE_URL, Ta as EmailAuth, Tc as ListFunctionLogsResponses, Td as SetOrgSecretResponses, Tf as UpdateAccountErrors, Ti as DeleteEndpointData, Tl as PollCliLoginResponse, Tn as AddDomainResponses, To as GetEmailData, Tp as VerifyCliSignupError, Tr as CreateFilterData, Ts as GetStorageStatsResponses, Tt as listFilters, Tu as RotateWebhookSecretError, U as createRegistry, Ua as FunctionRouteBody, Uc as ListPayoutAddressesErrors, Ud as StartCliLoginResponses, Uf as UpdateFilterErrors, Ui as DeleteFunctionSecretResponse, Ul as RegistryRequest, Un as CliLogoutResult, Uo as GetFunctionTestRunTraceResponse, Up as X402PayoutAddress, Ur as CreateFunctionSecretResponses, Us as Limit, Ut as resendCliSignupVerification, Uu as SemanticSearchResult, V as createFunctionSecret, Va as FunctionListItem, Vc as ListPayoutAddressesData, Vd as StartCliLoginInput, Vf as UpdateFilterData, Vi as DeleteFunctionSecretError, Vl as Registry, Vn as CliLogoutResponse, Vo as GetFunctionTestRunTraceError, Vp as X402PaymentPayload, Vr as CreateFunctionSecretInput, Vs as InboxStatusNextAction, Vt as replyToEmail, Vu as SemanticSearchMeta, W as decideRegistryRequest, Wa as FunctionRouteResult, Wc as ListPayoutAddressesResponse, Wd as StartCliSignupData, Wf as UpdateFilterInput, Wi as DeleteFunctionSecretResponses, Wl as ReplayDeliveryData, Wn as CliSignupResendResult, Wo as GetFunctionTestRunTraceResponses, Wp as X402Receipt, Wr as CreateOrgSecretData, Ws as ListDeclinedPaymentsData, Wt as resolveRegistryHandle, Wu as SemanticSearchScoreBreakdown, X as deleteFunction, Xa as FunctionTestRunDeliveryEndpoint, Xc as ListRegistriesResponses, Xd as StorageStats, Xf as UpdateFunctionInput, Xi as DeliveryStatus, Xl as ReplayEmailWebhooksError, Xn as CreateAgentAccountError, Xo as GetOrgRoutingTopologyData, Xp as CreateClientConfig, Xr as CreateRegistryData, Xs as ListDeliveriesError, Xt as setFunctionRoute, Xu as SendEmailResponses, Y as deleteFilter, Ya as FunctionTestRunDelivery, Yc as ListRegistriesResponse, Yd as StartCliSignupResponses, Yf as UpdateFunctionErrors, Yi as DeleteOrgSecretResponses, Yl as ReplayEmailWebhooksData, Yn as CreateAgentAccountData, Yo as GetInboxStatusResponses, Yp as Config, Yr as CreateOrgSecretResponses, Ys as ListDeliveriesData, Yt as sendEmail, Yu as SendEmailResponse, Z as deleteFunctionSecret, Za as FunctionTestRunInboundEmail, Zc as ListRegistryAgentsData, Zd as SuccessEnvelope, Zf as UpdateFunctionResponse, Zi as DeliverySummary, Zl as ReplayEmailWebhooksErrors, Zn as CreateAgentAccountErrors, Zo as GetOrgRoutingTopologyError, Zp as Options, Zr as CreateRegistryError, Zs as ListDeliveriesErrors, Zt as setFunctionSecret, Zu as SendMailAttachment, _ as SendThreadInput, _a as DownloadDomainZoneFileResponses, _c as ListFiltersError, _d as SetFunctionSecretInput, _f as UnsetFunctionRouteData, _i as DeleteDomainErrors, _l as PayChallengeInput, _n as verifyDomain, _o as GetChallengeErrors, _p as VerifyAgentClaimResponses, _r as CreateEmailChallengeResponse, _s as GetSpendPolicyError, _t as getStorageStats, _u as ResendCliSignupVerificationResponses, a as ForwardInput, aa as Domain, ac as ListEmailsData, ad as SendPermissionsMeta, af as TestFunctionErrors, ai as DecideRegistryRequestErrors, al as ListSentEmailsData, an as unpublishAgent, ao as GetAccountData, ap as UpdateSpendPolicyData, ar as CreateAgentClaimLinkResponse, as as GetRegistryResponses, at as getChallenge, au as ReplyToEmailResponses, b as createAgent, ba as DownloadRawEmailErrors, bc as ListFiltersResponses, bd as SetOrgSecretData, bf as UnsetFunctionRouteResponse, bi as DeleteEmailData, bl as PlanLimits, bn as AddDomainData, bo as GetConversationData, bp as VerifyAgentSignupErrors, br as CreateEndpointError, bs as GetSpendPolicyResponses, bt as listDeclinedPayments, bu as ResolveRegistryHandleErrors, c as InboxStreamOptions, ca as DownloadAttachmentsData, cc as ListEmailsResponse, cd as SentEmailSummary, cf as TestInvocationResult, ci as DecideRegistryRequestResponses, cl as ListSentEmailsResponse, cn as updateDomain, co as GetAccountResponse, cp as UpdateSpendPolicyInput, cr as CreateChallengeError, cs as GetSendPermissionsErrors, ct as getFunction, cu as ResendAgentSignupVerificationErrors, d as ReplyInput, da as DownloadAttachmentsResponse, dc as ListEndpointsError, dd as SetFunctionRouteErrors, df as ThreadMessage, di as DefineAgentErrors, dl as OrgSecretWriteResult, dn as updateFunction, do as GetAgentError, dp as VerifiedDomain, dr as CreateChallengeResponse, ds as GetSentEmailData, dt as getInboxStatus, du as ResendAgentSignupVerificationResponses, ea as DiscardEmailContentError, ec as ListDomainsData, ed as SendPermissionAddress, ef as TestEndpointErrors, ei as CreateRegistryResponse, el as ListRegistryRequestsData, em as ResponseStyle, en as startAgentSignup, eo as FunctionTestRunSend, ep as UpdateRegistryError, er as CreateAgentAccountResponses, es as GetOrgRoutingTopologyResponses, et as downloadAttachments, eu as ReplayResult, f as RequestOptions$2, fa as DownloadAttachmentsResponses, fc as ListEndpointsErrors, fd as SetFunctionRouteResponse, ff as UnpublishAgentData, fi as DefineAgentInput, fl as PaginationMeta, fn as updateRegistry, fo as GetAgentErrors, fp as VerifyAgentClaimData, fr as CreateChallengeResponses, fs as GetSentEmailError, ft as getOrgRoutingTopology, fu as ResendCliSignupVerificationData, g as SendResult, ga as DownloadDomainZoneFileResponse, gc as ListFiltersData, gd as SetFunctionSecretErrors, gf as UnpublishAgentResponses, gi as DeleteDomainError, gl as PayChallengeErrors, gn as verifyCliSignup, go as GetChallengeError, gp as VerifyAgentClaimResponse, gr as CreateEmailChallengeInput, gs as GetSpendPolicyData, gt as getSpendPolicy, gu as ResendCliSignupVerificationResponse, h as SendInput, ha as DownloadDomainZoneFileErrors, hc as ListEnvelope, hd as SetFunctionSecretError, hf as UnpublishAgentResponse, hi as DeleteDomainData, hl as PayChallengeError, hn as verifyAgentSignup, ho as GetChallengeData, hp as VerifyAgentClaimInput, hr as CreateEmailChallengeErrors, hs as GetSentEmailResponses, ht as getSentEmail, hu as ResendCliSignupVerificationInput, i as CreatedAgent, ia as DkimSignature, ic as ListDomainsResponses, id as SendPermissionYourDomain, if as TestFunctionError, ii as DecideRegistryRequestError, il as ListRegistryRequestsResponses, in as testFunction, io as GateFix, ip as UpdateRegistryResponses, ir as CreateAgentClaimLinkInput, is as GetRegistryResponse, it as getAgent, iu as ReplyToEmailResponse, j as createPrimitiveApiClient, ja as EmailSearchMeta, jc as ListFunctionsData, jd as StartAgentClaimResponses, jf as UpdateDomainErrors, ji as DeleteFilterError, jl as PublishAgentResponse, jn as AgentOrgRef, jo as GetFunctionError, jp as VerifyDomainError, jr as CreateFunctionData, js as GetWebhookSecretData, jt as listRegistries, ju as SearchEmailsError, k as PrimitiveApiErrorDetails, ka as EmailSearchFacets, kc as ListFunctionSecretsResponse, kd as StartAgentClaimInput, kf as UpdateDomainData, ki as DeleteEndpointResponses, kl as PublishAgentErrors, kn as AgentClaimResult, ko as GetEmailResponses, kp as VerifyCliSignupResponses, kr as CreateFilterResponse, ks as GetThreadResponse, kt as listOrgSecrets, ku as RoutingTopology, l as PrimitiveClient, la as DownloadAttachmentsError, lc as ListEmailsResponses, ld as SetFunctionRouteData, lf as TestResult, li as DefineAgentData, ll as ListSentEmailsResponses, ln as updateEndpoint, lo as GetAccountResponses, lp as UpdateSpendPolicyResponse, lr as CreateChallengeErrors, ls as GetSendPermissionsResponse, lt as getFunctionRouting, lu as ResendAgentSignupVerificationInput, m as SendAttachment, ma as DownloadDomainZoneFileError, mc as ListEndpointsResponses, md as SetFunctionSecretData, mf as UnpublishAgentErrors, mi as DefineAgentResponses, ml as PayChallengeData, mn as verifyAgentClaim, mo as GetAgentResponses, mp as VerifyAgentClaimErrors, mr as CreateEmailChallengeError, ms as GetSentEmailResponse, mt as getSendPermissions, mu as ResendCliSignupVerificationErrors, n as AgentResource, na as DiscardEmailContentResponse, nc as ListDomainsErrors, nd as SendPermissionManagedZone, nf as TestEndpointResponses, ni as Cursor, nl as ListRegistryRequestsErrors, nm as Auth, nn as startCliSignup, no as FunctionTestRunTrace, np as UpdateRegistryInput, nr as CreateAgentClaimLinkError, ns as GetRegistryError, nt as downloadRawEmail, nu as ReplyToEmailError, o as InboundEmail, oa as DomainDnsRecord, oc as ListEmailsError, od as SentEmailDetail, of as TestFunctionResponse, oi as DecideRegistryRequestInput, ol as ListSentEmailsError, on as unsetFunctionRoute, oo as GetAccountError, op as UpdateSpendPolicyError, or as CreateAgentClaimLinkResponses, os as GetSendPermissionsData, ot as getConversation, ou as ResendAgentSignupVerificationData, p as SemanticSearchResponse, pa as DownloadDomainZoneFileData, pc as ListEndpointsResponse, pd as SetFunctionRouteResponses, pf as UnpublishAgentError, pi as DefineAgentResponse, pl as ParsedEmailData, pn as updateSpendPolicy, po as GetAgentResponse, pp as VerifyAgentClaimError, pr as CreateEmailChallengeData, ps as GetSentEmailErrors, pt as getRegistry, pu as ResendCliSignupVerificationError, q as deleteEmail, qa as FunctionSecretWriteResult, qc as ListRegistriesError, qd as StartCliSignupInput, qf as UpdateFunctionData, qi as DeleteOrgSecretErrors, ql as ReplayDeliveryResponse, qn as Conversation, qo as GetInboxStatusErrors, qp as Client, qr as CreateOrgSecretInput, qs as ListDeclinedPaymentsResponse, qt as searchEmails, qu as SendEmailError, r as CreateAgentOptions, ra as DiscardEmailContentResponses, rc as ListDomainsResponse, rd as SendPermissionRule, rf as TestFunctionData, ri as DecideRegistryRequestData, rl as ListRegistryRequestsResponse, rn as testEndpoint, ro as GateDenial, rp as UpdateRegistryResponse, rr as CreateAgentClaimLinkErrors, rs as GetRegistryErrors, rt as getAccount, ru as ReplyToEmailErrors, s as InboxResource, sa as DomainVerifyResult, sc as ListEmailsErrors, sd as SentEmailStatus, sf as TestFunctionResponses, si as DecideRegistryRequestResponse, sl as ListSentEmailsErrors, sn as updateAccount, so as GetAccountErrors, sp as UpdateSpendPolicyErrors, sr as CreateChallengeData, ss as GetSendPermissionsError, st as getEmail, su as ResendAgentSignupVerificationError, t as AccountResource, ta as DiscardEmailContentErrors, tc as ListDomainsError, td as SendPermissionAnyRecipient, tf as TestEndpointResponse, ti as CreateRegistryResponses, tl as ListRegistryRequestsError, tm as createConfig, tn as startCliLogin, to as FunctionTestRunState, tp as UpdateRegistryErrors, tr as CreateAgentClaimLinkData, ts as GetRegistryData, tt as downloadDomainZoneFile, tu as ReplyToEmailData, u as PrimitiveClientOptions, ua as DownloadAttachmentsErrors, uc as ListEndpointsData, ud as SetFunctionRouteError, uf as Thread, ui as DefineAgentError, ul as OrgSecretListItem, un as updateFilter, uo as GetAgentData, up as UpdateSpendPolicyResponses, ur as CreateChallengeInput, us as GetSendPermissionsResponses, ut as getFunctionTestRunTrace, uu as ResendAgentSignupVerificationResponse, v as WaitForNextOptions, va as DownloadRawEmailData, vc as ListFiltersErrors, vd as SetFunctionSecretResponse, vf as UnsetFunctionRouteError, vi as DeleteDomainResponse, vl as PayChallengeResponse, vn as Account, vo as GetChallengeResponse, vp as VerifyAgentSignupData, vr as CreateEmailChallengeResponses, vs as GetSpendPolicyErrors, vt as getThread, vu as ResolveRegistryHandleData, w as verifyWebhookSignature, wa as EmailAttachment, wc as ListFunctionLogsResponse, wd as SetOrgSecretResponse, wf as UpdateAccountError, wi as DeleteEmailResponses, wl as PollCliLoginInput, wn as AddDomainResponse, wo as GetConversationResponses, wp as VerifyCliSignupData, wr as CreateEndpointResponses, ws as GetStorageStatsResponse, wt as listEndpoints, wu as RotateWebhookSecretData, x as createPrimitiveClient, xa as DownloadRawEmailResponse, xc as ListFunctionLogsData, xd as SetOrgSecretError, xf as UnsetFunctionRouteResponses, xi as DeleteEmailError, xl as PollCliLoginData, xn as AddDomainError, xo as GetConversationError, xp as VerifyAgentSignupInput, xr as CreateEndpointErrors, xs as GetStorageStatsData, xt as listDeliveries, xu as ResolveRegistryHandleResponse, y as client, ya as DownloadRawEmailError, yc as ListFiltersResponse, yd as SetFunctionSecretResponses, yf as UnsetFunctionRouteErrors, yi as DeleteDomainResponses, yl as PayChallengeResponses, yn as AccountUpdated, yo as GetChallengeResponses, yp as VerifyAgentSignupError, yr as CreateEndpointData, ys as GetSpendPolicyResponse, yt as getWebhookSecret, yu as ResolveRegistryHandleError, z as createFilter, za as FunctionDeployStatus, zc as ListOrgSecretsResponse, zd as StartCliLoginError, zf as UpdateEndpointResponse, zi as DeleteFunctionResponses, zl as RegisterPayoutAddressResponse, zn as CliLogoutErrors, zo as GetFunctionRoutingResponses, zp as X402EmailChallengeDetails, zr as CreateFunctionSecretError, zs as InboxStatusEndpointSummary, zt as replayDelivery, zu as SemanticSearchField } from "../index-FvnZT9Be.js";
1
+ import { $ as deleteOrgSecret, $a as Endpoint, $c as ListOrgSecretsData, $d as SetOrgSecretInput, $f as UnpublishAgentResponses, $i as DeleteFunctionSecretError, $l as PublishAgentResponse, $n as Conversation, $o as GetFunctionRoutingError, $p as UpdateSpendPolicyResponses, $r as CreateOrgSecretInput, $s as IdempotencyKey, $t as sendEmail, $u as RotateWebhookSecretData, A as RequestOptions$1, Aa as DownloadDomainZoneFileData, Ac as ListEndpointsResponse, Ad as SendPermissionAddress, Af as StartCliSignupInput, Ai as DeleteDomainResponse, Al as ListSentEmailsResponse, Am as X402PaymentPayload, An as AddDomainResponse, Ao as GetAgentResponse, Ap as UpdateFunctionData, Ar as CreateEndpointResponses, As as GetSentEmailErrors, At as listFunctions, Au as ReplyToEmailData, B as createFunction, Ba as EmailAddress, Bc as ListFunctionLogsErrors, Bd as SetFunctionRouteError, Bf as TestFunctionData, Bi as DeleteEndpointResponse, Bl as PayChallengeResponse, Bm as Options, Bn as AgentSignupVerifyResult, Bo as GetConversationResponse, Bp as UpdateRegistryResponse, Br as CreateFunctionInput, Bs as GetStorageStatsErrors, Bt as publishAgent, Bu as ResendAgentSignupVerificationResponses, C as VerifyOptions, Ca as DomainDnsRecord, Cc as ListEmailsError, Cd as SendEmailError, Cf as StartCliLoginErrors, Ci as DefineAgentErrors, Cl as ListRoutesError, Cm as VerifyDomainResponses, Cn as verifyDomain, Co as GetAccountError, Cp as UpdateEndpointResponses, Cr as CreateEmailChallengeResponse, Cs as GetSendPermissionsData, Ct as listDeliveries, Cu as ReplayDeliveryResponses, D as PrimitiveApiClientOptions, Da as DownloadAttachmentsErrors, Dc as ListEndpointsData, Dd as SendMailAttachment, Df as StartCliSignupData, Di as DeleteDomainData, Dl as ListSentEmailsData, Dm as X402EmailChallenge, Dn as AddDomainError, Do as GetAgentData, Dp as UpdateFilterInput, Dr as CreateEndpointErrors, Ds as GetSendPermissionsResponses, Dt as listFilters, Du as ReplayEmailWebhooksResponse, E as PrimitiveApiClient, Ea as DownloadAttachmentsError, Ec as ListEmailsResponses, Ed as SendEmailResponses, Ef as StartCliLoginResponses, Ei as DefineAgentResponses, El as ListRoutesResponses, Em as X402DeclinedPayment, En as AddDomainData, Eo as GetAccountResponses, Ep as UpdateFilterErrors, Er as CreateEndpointError, Es as GetSendPermissionsResponse, Et as listEndpoints, Eu as ReplayEmailWebhooksErrors, F as createAgentClaimLink, Fa as DownloadRawEmailData, Fc as ListFiltersErrors, Fd as SendPermissionsMeta, Ff as TestEndpointData, Fi as DeleteEmailResponse, Fl as ParsedEmailData, Fm as createClient, Fn as AgentClaimResult, Fo as GetChallengeResponse, Fp as UpdateFunctionResponses, Fr as CreateFilterResponse, Fs as GetSpendPolicyErrors, Ft as listRegistryRequests, Fu as ResendAgentSignupVerificationData, G as decideRegistryRequest, Ga as EmailSearchFacetBucket, Gc as ListFunctionSecretsErrors, Gd as SetFunctionSecretError, Gf as TestInvocationResult, Gi as DeleteFilterResponse, Gl as PollCliLoginErrors, Gm as Auth, Gn as CliLogoutErrors, Go as GetEmailResponse, Gp as UpdateRouteInput, Gr as CreateFunctionSecretError, Gs as GetThreadErrors, Gt as replyToEmail, Gu as ResendCliSignupVerificationResponse, H as createOrgSecret, Ha as EmailAuth, Hc as ListFunctionLogsResponses, Hd as SetFunctionRouteResponse, Hf as TestFunctionErrors, Hi as DeleteFilterData, Hl as PlanLimits, Hm as RequestResult, Hn as CliLoginStartResult, Ho as GetEmailData, Hp as UpdateRouteData, Hr as CreateFunctionResponses, Hs as GetStorageStatsResponses, Ht as reorderRoutes, Hu as ResendCliSignupVerificationError, I as createChallenge, Ia as DownloadRawEmailError, Ic as ListFiltersResponse, Id as SentEmailDetail, If as TestEndpointError, Ii as DeleteEmailResponses, Il as PayChallengeData, Im as Client, In as AgentClaimStartResult, Io as GetChallengeResponses, Ip as UpdateRegistryData, Ir as CreateFilterResponses, Is as GetSpendPolicyResponse, It as listRoutes, Iu as ResendAgentSignupVerificationError, J as deleteEmail, Ja as EmailSearchMeta, Jc as ListFunctionsData, Jd as SetFunctionSecretResponse, Jf as ThreadMessage, Ji as DeleteFunctionError, Jl as PollCliLoginResponses, Jn as CliLogoutResponses, Jo as GetFunctionError, Jp as UpdateSpendPolicyData, Jr as CreateFunctionSecretResponse, Js as GetWebhookSecretData, Jt as resolveRegistryHandle, Ju as ResolveRegistryHandleError, K as defineAgent, Ka as EmailSearchFacets, Kc as ListFunctionSecretsResponse, Kd as SetFunctionSecretErrors, Kf as TestResult, Ki as DeleteFilterResponses, Kl as PollCliLoginInput, Kn as CliLogoutInput, Ko as GetEmailResponses, Kp as UpdateRouteResponse, Kr as CreateFunctionSecretErrors, Ks as GetThreadResponse, Kt as resendAgentSignupVerification, Ku as ResendCliSignupVerificationResponses, L as createEmailChallenge, La as DownloadRawEmailErrors, Lc as ListFiltersResponses, Ld as SentEmailStatus, Lf as TestEndpointErrors, Li as DeleteEndpointData, Ll as PayChallengeError, Lm as ClientOptions, Ln as AgentOrgRef, Lo as GetConversationData, Lp as UpdateRegistryError, Lr as CreateFunctionData, Ls as GetSpendPolicyResponses, Lt as listSentEmails, Lu as ResendAgentSignupVerificationErrors, M as addDomain, Ma as DownloadDomainZoneFileErrors, Mc as ListEnvelope, Md as SendPermissionManagedZone, Mf as StartCliSignupResponses, Mi as DeleteEmailData, Ml as OrgSecretListItem, Mm as X402PayoutAddress, Mn as AgentAccountResult, Mo as GetChallengeData, Mp as UpdateFunctionErrors, Mr as CreateFilterError, Ms as GetSentEmailResponses, Mt as listPayoutAddresses, Mu as ReplyToEmailErrors, N as cliLogout, Na as DownloadDomainZoneFileResponse, Nc as ListFiltersData, Nd as SendPermissionRule, Nf as StorageStats, Ni as DeleteEmailError, Nl as OrgSecretWriteResult, Nm as X402Receipt, Nn as AgentAccountUpgradeHint, No as GetChallengeError, Np as UpdateFunctionInput, Nr as CreateFilterErrors, Ns as GetSpendPolicyData, Nt as listRegistries, Nu as ReplyToEmailResponse, O as PrimitiveApiError, Oa as DownloadAttachmentsResponse, Oc as ListEndpointsError, Od as SendMailInput, Of as StartCliSignupError, Oi as DeleteDomainError, Ol as ListSentEmailsError, Om as X402EmailChallengeDetails, On as AddDomainErrors, Oo as GetAgentError, Op as UpdateFilterResponse, Or as CreateEndpointInput, Os as GetSentEmailData, Ot as listFunctionLogs, Ou as ReplayEmailWebhooksResponses, P as createAgentAccount, Pa as DownloadDomainZoneFileResponses, Pc as ListFiltersError, Pd as SendPermissionYourDomain, Pf as SuccessEnvelope, Pi as DeleteEmailErrors, Pl as PaginationMeta, Pm as X402SpendPolicy, Pn as AgentClaimLinkResult, Po as GetChallengeErrors, Pp as UpdateFunctionResponse, Pr as CreateFilterInput, Ps as GetSpendPolicyError, Pt as listRegistryAgents, Pu as ReplyToEmailResponses, Q as deleteFunctionSecret, Qa as EmailWebhookStatus, Qc as ListFunctionsResponses, Qd as SetOrgSecretErrors, Qf as UnpublishAgentResponse, Qi as DeleteFunctionSecretData, Ql as PublishAgentInput, Qn as CliSignupVerifyResult, Qo as GetFunctionRoutingData, Qp as UpdateSpendPolicyResponse, Qr as CreateOrgSecretErrors, Qs as GetWebhookSecretResponses, Qt as semanticSearch, Qu as ResourceId, R as createEndpoint, Ra as DownloadRawEmailResponse, Rc as ListFunctionLogsData, Rd as SentEmailSummary, Rf as TestEndpointResponse, Ri as DeleteEndpointError, Rl as PayChallengeErrors, Rm as Config, Rn as AgentSignupResendResult, Ro as GetConversationError, Rp as UpdateRegistryErrors, Rr as CreateFunctionError, Rs as GetStorageStatsData, Rt as payChallenge, Ru as ResendAgentSignupVerificationInput, S as PRIMITIVE_SIGNATURE_HEADER, Sa as Domain, Sc as ListEmailsData, Sd as SendEmailData, Sf as StartCliLoginError, Si as DefineAgentError, Sl as ListRoutesData, Sm as VerifyDomainResponse, Sn as verifyCliSignup, So as GetAccountData, Sp as UpdateEndpointResponse, Sr as CreateEmailChallengeInput, Ss as GetRegistryResponses, St as listDeclinedPayments, Su as ReplayDeliveryResponse, T as DEFAULT_API_BASE_URL, Ta as DownloadAttachmentsData, Tc as ListEmailsResponse, Td as SendEmailResponse, Tf as StartCliLoginResponse, Ti as DefineAgentResponse, Tl as ListRoutesResponse, Tm as X402Challenge, Tn as AccountUpdated, To as GetAccountResponse, Tp as UpdateFilterError, Tr as CreateEndpointData, Ts as GetSendPermissionsErrors, Tt as listEmails, Tu as ReplayEmailWebhooksError, U as createRegistry, Ua as EmailDetail, Uc as ListFunctionSecretsData, Ud as SetFunctionRouteResponses, Uf as TestFunctionResponse, Ui as DeleteFilterError, Ul as PollCliLoginData, Um as ResponseStyle, Un as CliLogoutData, Uo as GetEmailError, Up as UpdateRouteError, Ur as CreateFunctionResult, Us as GetThreadData, Ut as replayDelivery, Uu as ResendCliSignupVerificationErrors, V as createFunctionSecret, Va as EmailAttachment, Vc as ListFunctionLogsResponse, Vd as SetFunctionRouteErrors, Vf as TestFunctionError, Vi as DeleteEndpointResponses, Vl as PayChallengeResponses, Vm as RequestOptions, Vn as CliLoginPollResult, Vo as GetConversationResponses, Vp as UpdateRegistryResponses, Vr as CreateFunctionResponse, Vs as GetStorageStatsResponse, Vt as registerPayoutAddress, Vu as ResendCliSignupVerificationData, W as createRoute, Wa as EmailDetailReply, Wc as ListFunctionSecretsError, Wd as SetFunctionSecretData, Wf as TestFunctionResponses, Wi as DeleteFilterErrors, Wl as PollCliLoginError, Wm as createConfig, Wn as CliLogoutError, Wo as GetEmailErrors, Wp as UpdateRouteErrors, Wr as CreateFunctionSecretData, Ws as GetThreadError, Wt as replayEmailWebhooks, Wu as ResendCliSignupVerificationInput, X as deleteFilter, Xa as EmailStatus, Xc as ListFunctionsErrors, Xd as SetOrgSecretData, Xf as UnpublishAgentError, Xi as DeleteFunctionResponse, Xl as PublishAgentError, Xn as CliSignupResendResult, Xo as GetFunctionResponse, Xp as UpdateSpendPolicyErrors, Xr as CreateOrgSecretData, Xs as GetWebhookSecretErrors, Xt as sdk_gen_d_exports, Xu as ResolveRegistryHandleResponse, Y as deleteEndpoint, Ya as EmailSearchResult, Yc as ListFunctionsError, Yd as SetFunctionSecretResponses, Yf as UnpublishAgentData, Yi as DeleteFunctionErrors, Yl as PublishAgentData, Yn as CliLogoutResult, Yo as GetFunctionErrors, Yp as UpdateSpendPolicyError, Yr as CreateFunctionSecretResponses, Ys as GetWebhookSecretError, Yt as rotateWebhookSecret, Yu as ResolveRegistryHandleErrors, Z as deleteFunction, Za as EmailSummary, Zc as ListFunctionsResponse, Zd as SetOrgSecretError, Zf as UnpublishAgentErrors, Zi as DeleteFunctionResponses, Zl as PublishAgentErrors, Zn as CliSignupStartResult, Zo as GetFunctionResponses, Zp as UpdateSpendPolicyInput, Zr as CreateOrgSecretError, Zs as GetWebhookSecretResponse, Zt as searchEmails, Zu as ResolveRegistryHandleResponses, _ as SendThreadInput, _a as DiscardEmailContentError, _c as ListDomainsData, _d as SemanticSearchMeta, _f as StartAgentSignupErrors, _i as DecideRegistryRequestErrors, _l as ListRegistryRequestsData, _m as VerifyCliSignupResponse, _n as updateRegistry, _o as FunctionTestRunSend, _p as UpdateDomainResponses, _r as CreateChallengeResponse, _s as GetOrgRoutingTopologyResponses, _t as getSentEmail, _u as ReorderRoutesResponse, a as ForwardInput, aa as DeleteOrgSecretErrors, ac as InboxStatusRecentEmailSummary, ad as RoutingTopology, af as SimulateRouteInput, ai as CreateRegistryInput, al as ListPayoutAddressesError, am as VerifyAgentClaimResponse, an as startAgentSignup, ao as FunctionLogRow, ap as UnverifiedDomain, ar as CreateAgentAccountResponse, as as GetFunctionTestRunTraceErrors, at as getAccount, au as RegisterPayoutAddressError, b as createAgent, ba as DiscardEmailContentResponses, bc as ListDomainsResponse, bd as SemanticSearchScoreBreakdown, bf as StartAgentSignupResponses, bi as DecideRegistryRequestResponses, bl as ListRegistryRequestsResponse, bm as VerifyDomainError, bn as verifyAgentClaim, bo as GateDenial, bp as UpdateEndpointErrors, br as CreateEmailChallengeError, bs as GetRegistryErrors, bt as getThread, bu as ReplayDeliveryError, c as InboxStreamOptions, ca as DeleteRouteData, cc as ListDeclinedPaymentsError, cd as SearchEmailsErrors, cf as SimulateRouteResult, ci as CreateRouteData, cl as ListPayoutAddressesResponses, cm as VerifyAgentSignupError, cn as testEndpoint, co as FunctionRouting, cp as UpdateAccountErrors, cr as CreateAgentClaimLinkError, cs as GetInboxStatusData, ct as getConversation, cu as RegisterPayoutAddressResponse, d as ReplyInput, da as DeleteRouteResponse, dc as ListDeclinedPaymentsResponses, dd as SemanticSearchCoverage, df as StartAgentClaimErrors, di as CreateRouteInput, dl as ListRegistriesErrors, dm as VerifyAgentSignupResponse, dn as unsetFunctionRoute, do as FunctionTestRun, dp as UpdateAccountResponses, dr as CreateAgentClaimLinkResponse, ds as GetInboxStatusResponse, dt as getFunctionRouting, du as RegistryAgent, ea as DeleteFunctionSecretErrors, ec as InboxStatus, ed as RotateWebhookSecretError, ef as SetOrgSecretResponse, ei as CreateOrgSecretResponse, el as ListOrgSecretsError, em as VerifiedDomain, en as setFunctionRoute, eo as ErrorResponse, ep as UnsetFunctionRouteData, er as ConversationMessage, es as GetFunctionRoutingErrors, et as deleteRoute, eu as PublishAgentResponses, f as RequestOptions$2, fa as DeleteRouteResponses, fc as ListDeliveriesData, fd as SemanticSearchData, ff as StartAgentClaimInput, fi as CreateRouteResponse, fl as ListRegistriesResponse, fm as VerifyAgentSignupResponses, fn as updateAccount, fo as FunctionTestRunDelivery, fp as UpdateDomainData, fr as CreateAgentClaimLinkResponses, fs as GetInboxStatusResponses, ft as getFunctionTestRunTrace, fu as RegistryRequest, g as SendResult, ga as DiscardEmailContentData, gc as ListDeliveriesResponses, gd as SemanticSearchInput, gf as StartAgentSignupError, gi as DecideRegistryRequestError, gl as ListRegistryAgentsResponses, gm as VerifyCliSignupInput, gn as updateFunction, go as FunctionTestRunReply, gp as UpdateDomainResponse, gr as CreateChallengeInput, gs as GetOrgRoutingTopologyResponse, gt as getSendPermissions, gu as ReorderRoutesInput, h as SendInput, ha as DiscardContentResult, hc as ListDeliveriesResponse, hd as SemanticSearchField, hf as StartAgentSignupData, hi as DecideRegistryRequestData, hl as ListRegistryAgentsResponse, hm as VerifyCliSignupErrors, hn as updateFilter, ho as FunctionTestRunOutboundRequest, hp as UpdateDomainInput, hr as CreateChallengeErrors, hs as GetOrgRoutingTopologyErrors, ht as getRegistry, hu as ReorderRoutesErrors, i as CreatedAgent, ia as DeleteOrgSecretError, ic as InboxStatusNextAction, id as RouteEvaluatedEntry, if as SimulateRouteErrors, ii as CreateRegistryErrors, il as ListPayoutAddressesData, im as VerifyAgentClaimInput, in as startAgentClaim, io as FunctionListItem, ip as UnsetFunctionRouteResponses, ir as CreateAgentAccountInput, is as GetFunctionTestRunTraceError, it as downloadRawEmail, iu as RegisterPayoutAddressData, j as createPrimitiveApiClient, ja as DownloadDomainZoneFileError, jc as ListEndpointsResponses, jd as SendPermissionAnyRecipient, jf as StartCliSignupResponse, ji as DeleteDomainResponses, jl as ListSentEmailsResponses, jm as X402PaymentRequirements, jn as AddDomainResponses, jo as GetAgentResponses, jp as UpdateFunctionError, jr as CreateFilterData, js as GetSentEmailResponse, jt as listOrgSecrets, ju as ReplyToEmailError, k as PrimitiveApiErrorDetails, ka as DownloadAttachmentsResponses, kc as ListEndpointsErrors, kd as SendMailResult, kf as StartCliSignupErrors, ki as DeleteDomainErrors, kl as ListSentEmailsErrors, km as X402NonceBinding, kn as AddDomainInput, ko as GetAgentErrors, kp as UpdateFilterResponses, kr as CreateEndpointResponse, ks as GetSentEmailError, kt as listFunctionSecrets, ku as ReplayResult, l as PrimitiveClient, la as DeleteRouteError, lc as ListDeclinedPaymentsErrors, ld as SearchEmailsResponse, lf as StartAgentClaimData, li as CreateRouteError, ll as ListRegistriesData, lm as VerifyAgentSignupErrors, ln as testFunction, lo as FunctionSecretListItem, lp as UpdateAccountInput, lr as CreateAgentClaimLinkErrors, ls as GetInboxStatusError, lt as getEmail, lu as RegisterPayoutAddressResponses, m as SendAttachment, ma as DeliverySummary, mc as ListDeliveriesErrors, md as SemanticSearchErrors, mf as StartAgentClaimResponses, mi as Cursor, ml as ListRegistryAgentsData, mm as VerifyCliSignupError, mn as updateEndpoint, mo as FunctionTestRunInboundEmail, mp as UpdateDomainErrors, mr as CreateChallengeError, ms as GetOrgRoutingTopologyError, mt as getOrgRoutingTopology, mu as ReorderRoutesError, n as AgentResource, na as DeleteFunctionSecretResponses, nc as InboxStatusEndpointSummary, nd as RotateWebhookSecretResponse, nf as SimulateRouteData, ni as CreateRegistryData, nl as ListOrgSecretsResponse, nm as VerifyAgentClaimError, nn as setOrgSecret, no as FunctionDeployStatus, np as UnsetFunctionRouteErrors, nr as CreateAgentAccountError, ns as GetFunctionRoutingResponses, nt as downloadAttachments, nu as PublishPolicy, o as InboundEmail, oa as DeleteOrgSecretResponse, oc as Limit, od as SearchEmailsData, of as SimulateRouteResponse, oi as CreateRegistryResponse, ol as ListPayoutAddressesErrors, om as VerifyAgentClaimResponses, on as startCliLogin, oo as FunctionRouteBody, op as UpdateAccountData, or as CreateAgentAccountResponses, os as GetFunctionTestRunTraceResponse, ot as getAgent, ou as RegisterPayoutAddressErrors, p as SemanticSearchResponse, pa as DeliveryStatus, pc as ListDeliveriesError, pd as SemanticSearchError, pf as StartAgentClaimResponse, pi as CreateRouteResponses, pl as ListRegistriesResponses, pm as VerifyCliSignupData, pn as updateDomain, po as FunctionTestRunDeliveryEndpoint, pp as UpdateDomainError, pr as CreateChallengeData, ps as GetOrgRoutingTopologyData, pt as getInboxStatus, pu as ReorderRoutesData, q as deleteDomain, qa as EmailSearchHighlights, qc as ListFunctionSecretsResponses, qd as SetFunctionSecretInput, qf as Thread, qi as DeleteFunctionData, ql as PollCliLoginResponse, qn as CliLogoutResponse, qo as GetFunctionData, qp as UpdateRouteResponses, qr as CreateFunctionSecretInput, qs as GetThreadResponses, qt as resendCliSignupVerification, qu as ResolveRegistryHandleData, r as CreateAgentOptions, ra as DeleteOrgSecretData, rc as InboxStatusFunctionSummary, rd as RotateWebhookSecretResponses, rf as SimulateRouteError, ri as CreateRegistryError, rl as ListOrgSecretsResponses, rm as VerifyAgentClaimErrors, rn as simulateRoute, ro as FunctionDetail, rp as UnsetFunctionRouteResponse, rr as CreateAgentAccountErrors, rs as GetFunctionTestRunTraceData, rt as downloadDomainZoneFile, ru as RecipientRoute, s as InboxResource, sa as DeleteOrgSecretResponses, sc as ListDeclinedPaymentsData, sd as SearchEmailsError, sf as SimulateRouteResponses, si as CreateRegistryResponses, sl as ListPayoutAddressesResponse, sm as VerifyAgentSignupData, sn as startCliSignup, so as FunctionRouteResult, sp as UpdateAccountError, sr as CreateAgentClaimLinkData, ss as GetFunctionTestRunTraceResponses, st as getChallenge, su as RegisterPayoutAddressInput, t as AccountResource, ta as DeleteFunctionSecretResponse, tc as InboxStatusDomain, td as RotateWebhookSecretErrors, tf as SetOrgSecretResponses, ti as CreateOrgSecretResponses, tl as ListOrgSecretsErrors, tm as VerifyAgentClaimData, tn as setFunctionSecret, to as Filter, tp as UnsetFunctionRouteError, tr as CreateAgentAccountData, ts as GetFunctionRoutingResponse, tt as discardEmailContent, tu as PublishAgentResult, u as PrimitiveClientOptions, ua as DeleteRouteErrors, uc as ListDeclinedPaymentsResponse, ud as SearchEmailsResponses, uf as StartAgentClaimError, ui as CreateRouteErrors, ul as ListRegistriesError, um as VerifyAgentSignupInput, un as unpublishAgent, uo as FunctionSecretWriteResult, up as UpdateAccountResponse, ur as CreateAgentClaimLinkInput, us as GetInboxStatusErrors, ut as getFunction, uu as Registry, v as WaitForNextOptions, va as DiscardEmailContentErrors, vc as ListDomainsError, vd as SemanticSearchResponses, vf as StartAgentSignupInput, vi as DecideRegistryRequestInput, vl as ListRegistryRequestsError, vm as VerifyCliSignupResponses, vn as updateRoute, vo as FunctionTestRunState, vp as UpdateEndpointData, vr as CreateChallengeResponses, vs as GetRegistryData, vt as getSpendPolicy, vu as ReorderRoutesResponses, w as verifyWebhookSignature, wa as DomainVerifyResult, wc as ListEmailsErrors, wd as SendEmailErrors, wf as StartCliLoginInput, wi as DefineAgentInput, wl as ListRoutesErrors, wm as WebhookSecret, wn as Account, wo as GetAccountErrors, wp as UpdateFilterData, wr as CreateEmailChallengeResponses, ws as GetSendPermissionsError, wt as listDomains, wu as ReplayEmailWebhooksData, x as createPrimitiveClient, xa as DkimSignature, xc as ListDomainsResponses, xd as SemanticSearchSnippet, xf as StartCliLoginData, xi as DefineAgentData, xl as ListRegistryRequestsResponses, xm as VerifyDomainErrors, xn as verifyAgentSignup, xo as GateFix, xp as UpdateEndpointInput, xr as CreateEmailChallengeErrors, xs as GetRegistryResponse, xt as getWebhookSecret, xu as ReplayDeliveryErrors, y as client, ya as DiscardEmailContentResponse, yc as ListDomainsErrors, yd as SemanticSearchResult, yf as StartAgentSignupResponse, yi as DecideRegistryRequestResponse, yl as ListRegistryRequestsErrors, ym as VerifyDomainData, yn as updateSpendPolicy, yo as FunctionTestRunTrace, yp as UpdateEndpointError, yr as CreateEmailChallengeData, ys as GetRegistryError, yt as getStorageStats, yu as ReplayDeliveryData, z as createFilter, za as DownloadRawEmailResponses, zc as ListFunctionLogsError, zd as SetFunctionRouteData, zf as TestEndpointResponses, zi as DeleteEndpointErrors, zl as PayChallengeInput, zm as CreateClientConfig, zn as AgentSignupStartResult, zo as GetConversationErrors, zp as UpdateRegistryInput, zr as CreateFunctionErrors, zs as GetStorageStatsError, zt as pollCliLogin, zu as ResendAgentSignupVerificationResponse } from "../index-M8zf3TQG.js";
2
2
  import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-BAniFZK9.js";
3
3
  import { f as EmailReceivedEvent } from "../types-CAG3bi20.js";
4
4
  import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-jagfi4Ue.js";
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, 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, DeleteOrgSecretData, DeleteOrgSecretError, DeleteOrgSecretErrors, DeleteOrgSecretResponse, DeleteOrgSecretResponses, 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, 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, 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, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, 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, RegisterPayoutAddressData, RegisterPayoutAddressError, RegisterPayoutAddressErrors, RegisterPayoutAddressInput, RegisterPayoutAddressResponse, RegisterPayoutAddressResponses, Registry, RegistryAgent, RegistryRequest, 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, RoutingTopology, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, 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, SetOrgSecretData, SetOrgSecretError, SetOrgSecretErrors, SetOrgSecretInput, SetOrgSecretResponse, SetOrgSecretResponses, 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, UpdateSpendPolicyData, UpdateSpendPolicyError, UpdateSpendPolicyErrors, UpdateSpendPolicyInput, UpdateSpendPolicyResponse, UpdateSpendPolicyResponses, 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, 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, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateSpendPolicy, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
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, 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, DeleteOrgSecretData, DeleteOrgSecretError, DeleteOrgSecretErrors, DeleteOrgSecretResponse, DeleteOrgSecretResponses, DeleteRouteData, DeleteRouteError, DeleteRouteErrors, DeleteRouteResponse, DeleteRouteResponses, 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, 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, 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, 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, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, 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, 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, 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, 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, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, deleteRoute, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
package/dist/api/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as getStorageStats, $t as verifyDomain, A as deleteEndpoint, At as semanticSearch, B as getAgent, Bt as testFunction, C as createFunctionSecret, Ct as replyToEmail, D as defineAgent, Dt as rotateWebhookSecret, E as decideRegistryRequest, Et as resolveRegistryHandle, F as discardEmailContent, Ft as startAgentClaim, G as getFunctionRouting, Gt as updateEndpoint, H as getConversation, Ht as unsetFunctionRoute, I as downloadAttachments, It as startAgentSignup, J as getOrgRoutingTopology, Jt as updateRegistry, K as getFunctionTestRunTrace, Kt as updateFilter, L as downloadDomainZoneFile, Lt as startCliLogin, M as deleteFunction, Mt as setFunctionRoute, N as deleteFunctionSecret, Nt as setFunctionSecret, O as deleteDomain, Ot as sdk_gen_exports, P as deleteOrgSecret, Pt as setOrgSecret, Q as getSpendPolicy, Qt as verifyCliSignup, R as downloadRawEmail, Rt as startCliSignup, S as createFunction, St as replayEmailWebhooks, T as createRegistry, Tt as resendCliSignupVerification, U as getEmail, Ut as updateAccount, V as getChallenge, Vt as unpublishAgent, W as getFunction, Wt as updateDomain, X as getSendPermissions, Xt as verifyAgentClaim, Y as getRegistry, Yt as updateSpendPolicy, Z as getSentEmail, Zt as verifyAgentSignup, _ as createAgentClaimLink, _t as payChallenge, a as client, at as listEmails, b as createEndpoint, bt as registerPayoutAddress, c as PRIMITIVE_SIGNATURE_HEADER, ct as listFunctionLogs, d as PrimitiveApiClient, dt as listOrgSecrets, en as createClient, et as getThread, f as PrimitiveApiError, ft as listPayoutAddresses, g as createAgentAccount, gt as listSentEmails, h as cliLogout, ht as listRegistryRequests, i as PrimitiveClient, it as listDomains, j as deleteFilter, jt as sendEmail, k as deleteEmail, kt as searchEmails, l as verifyWebhookSignature, lt as listFunctionSecrets, m as addDomain, mt as listRegistryAgents, n as AgentResource, nt as listDeclinedPayments, o as createAgent, ot as listEndpoints, p as createPrimitiveApiClient, pt as listRegistries, q as getInboxStatus, qt as updateFunction, r as InboxResource, rt as listDeliveries, s as createPrimitiveClient, st as listFilters, t as AccountResource, tn as createConfig, tt as getWebhookSecret, u as DEFAULT_API_BASE_URL, ut as listFunctions, v as createChallenge, vt as pollCliLogin, w as createOrgSecret, wt as resendAgentSignupVerification, x as createFilter, xt as replayDelivery, y as createEmailChallenge, yt as publishAgent, z as getAccount, zt as testEndpoint } from "../api-CwpE8_17.js";
2
- import { n as openapiDocument, t as operationManifest } from "../operations.generated-BlW1vtGP.js";
1
+ import { $ as getSentEmail, $t as updateRegistry, A as deleteEmail, At as resolveRegistryHandle, B as downloadRawEmail, Bt as startAgentClaim, C as createFunctionSecret, Ct as registerPayoutAddress, D as decideRegistryRequest, Dt as replyToEmail, E as createRoute, Et as replayEmailWebhooks, F as deleteOrgSecret, Ft as sendEmail, G as getEmail, Gt as testFunction, H as getAgent, Ht as startCliLogin, I as deleteRoute, It as setFunctionRoute, J as getFunctionTestRunTrace, Jt as updateAccount, K as getFunction, Kt as unpublishAgent, L as discardEmailContent, Lt as setFunctionSecret, M as deleteFilter, Mt as sdk_gen_exports, N as deleteFunction, Nt as searchEmails, O as defineAgent, Ot as resendAgentSignupVerification, P as deleteFunctionSecret, Pt as semanticSearch, Q as getSendPermissions, Qt as updateFunction, R as downloadAttachments, Rt as setOrgSecret, S as createFunction, St as publishAgent, T as createRegistry, Tt as replayDelivery, U as getChallenge, Ut as startCliSignup, V as getAccount, Vt as startAgentSignup, W as getConversation, Wt as testEndpoint, X as getOrgRoutingTopology, Xt as updateEndpoint, Y as getInboxStatus, Yt as updateDomain, Z as getRegistry, Zt as updateFilter, _ as createAgentClaimLink, _t as listRegistryRequests, a as client, an as verifyDomain, at as listDeliveries, b as createEndpoint, bt as payChallenge, c as PRIMITIVE_SIGNATURE_HEADER, ct as listEndpoints, d as PrimitiveApiClient, dt as listFunctionSecrets, en as updateRoute, et as getSpendPolicy, f as PrimitiveApiError, ft as listFunctions, g as createAgentAccount, gt as listRegistryAgents, h as cliLogout, ht as listRegistries, i as PrimitiveClient, in as verifyCliSignup, it as listDeclinedPayments, j as deleteEndpoint, jt as rotateWebhookSecret, k as deleteDomain, kt as resendCliSignupVerification, l as verifyWebhookSignature, lt as listFilters, m as addDomain, mt as listPayoutAddresses, n as AgentResource, nn as verifyAgentClaim, nt as getThread, o as createAgent, on as createClient, ot as listDomains, p as createPrimitiveApiClient, pt as listOrgSecrets, q as getFunctionRouting, qt as unsetFunctionRoute, r as InboxResource, rn as verifyAgentSignup, rt as getWebhookSecret, s as createPrimitiveClient, sn as createConfig, st as listEmails, t as AccountResource, tn as updateSpendPolicy, tt as getStorageStats, u as DEFAULT_API_BASE_URL, ut as listFunctionLogs, v as createChallenge, vt as listRoutes, w as createOrgSecret, wt as reorderRoutes, x as createFilter, xt as pollCliLogin, y as createEmailChallenge, yt as listSentEmails, z as downloadDomainZoneFile, zt as simulateRoute } from "../api-Dult2Jxz.js";
2
+ import { n as openapiDocument, t as operationManifest } from "../operations.generated-Bo_FEI2Q.js";
3
3
  import { c as WebhookVerificationError, f as normalizeReceivedEmail } from "../errors-BPJGp9I6.js";
4
- export { AccountResource, AgentResource, DEFAULT_API_BASE_URL, InboxResource, 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, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateSpendPolicy, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
4
+ export { AccountResource, AgentResource, DEFAULT_API_BASE_URL, InboxResource, 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, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, deleteRoute, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
@@ -625,6 +625,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
625
625
  createFunctionSecret: () => createFunctionSecret,
626
626
  createOrgSecret: () => createOrgSecret,
627
627
  createRegistry: () => createRegistry,
628
+ createRoute: () => createRoute,
628
629
  decideRegistryRequest: () => decideRegistryRequest,
629
630
  defineAgent: () => defineAgent,
630
631
  deleteDomain: () => deleteDomain,
@@ -634,6 +635,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
634
635
  deleteFunction: () => deleteFunction,
635
636
  deleteFunctionSecret: () => deleteFunctionSecret,
636
637
  deleteOrgSecret: () => deleteOrgSecret,
638
+ deleteRoute: () => deleteRoute,
637
639
  discardEmailContent: () => discardEmailContent,
638
640
  downloadAttachments: () => downloadAttachments,
639
641
  downloadDomainZoneFile: () => downloadDomainZoneFile,
@@ -669,11 +671,13 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
669
671
  listRegistries: () => listRegistries,
670
672
  listRegistryAgents: () => listRegistryAgents,
671
673
  listRegistryRequests: () => listRegistryRequests,
674
+ listRoutes: () => listRoutes,
672
675
  listSentEmails: () => listSentEmails,
673
676
  payChallenge: () => payChallenge,
674
677
  pollCliLogin: () => pollCliLogin,
675
678
  publishAgent: () => publishAgent,
676
679
  registerPayoutAddress: () => registerPayoutAddress,
680
+ reorderRoutes: () => reorderRoutes,
677
681
  replayDelivery: () => replayDelivery,
678
682
  replayEmailWebhooks: () => replayEmailWebhooks,
679
683
  replyToEmail: () => replyToEmail,
@@ -687,6 +691,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
687
691
  setFunctionRoute: () => setFunctionRoute,
688
692
  setFunctionSecret: () => setFunctionSecret,
689
693
  setOrgSecret: () => setOrgSecret,
694
+ simulateRoute: () => simulateRoute,
690
695
  startAgentClaim: () => startAgentClaim,
691
696
  startAgentSignup: () => startAgentSignup,
692
697
  startCliLogin: () => startCliLogin,
@@ -701,6 +706,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
701
706
  updateFilter: () => updateFilter,
702
707
  updateFunction: () => updateFunction,
703
708
  updateRegistry: () => updateRegistry,
709
+ updateRoute: () => updateRoute,
704
710
  updateSpendPolicy: () => updateSpendPolicy,
705
711
  verifyAgentClaim: () => verifyAgentClaim,
706
712
  verifyAgentSignup: () => verifyAgentSignup,
@@ -1568,6 +1574,106 @@ const updateFilter = (options) => (options.client ?? client$1).patch({
1568
1574
  }
1569
1575
  });
1570
1576
  /**
1577
+ * List recipient routes
1578
+ *
1579
+ * Returns the org's recipient routing rules in evaluation order. Each rule
1580
+ * binds a recipient address pattern to one endpoint; inbound mail resolves
1581
+ * to a single destination at delivery time.
1582
+ *
1583
+ */
1584
+ const listRoutes = (options) => (options?.client ?? client$1).get({
1585
+ security: [{
1586
+ scheme: "bearer",
1587
+ type: "http"
1588
+ }],
1589
+ url: "/routes",
1590
+ ...options
1591
+ });
1592
+ /**
1593
+ * Create a recipient route
1594
+ *
1595
+ * Binds a recipient pattern to a destination. Provide exactly one of
1596
+ * `endpoint_id` (an existing endpoint) or `function_id`. With `function_id`,
1597
+ * a dedicated route-target endpoint is minted for that function in the same
1598
+ * transaction, enabling per-address function routing (e.g.
1599
+ * `alice@acme.com -> functionA`).
1600
+ *
1601
+ */
1602
+ const createRoute = (options) => (options.client ?? client$1).post({
1603
+ security: [{
1604
+ scheme: "bearer",
1605
+ type: "http"
1606
+ }],
1607
+ url: "/routes",
1608
+ ...options,
1609
+ headers: {
1610
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
1611
+ ...options.headers
1612
+ }
1613
+ });
1614
+ /**
1615
+ * Reorder recipient routes
1616
+ *
1617
+ * Update the priority of one or more routes in a single call.
1618
+ */
1619
+ const reorderRoutes = (options) => (options.client ?? client$1).post({
1620
+ security: [{
1621
+ scheme: "bearer",
1622
+ type: "http"
1623
+ }],
1624
+ url: "/routes/reorder",
1625
+ ...options,
1626
+ headers: {
1627
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
1628
+ ...options.headers
1629
+ }
1630
+ });
1631
+ /**
1632
+ * Simulate routing for a recipient
1633
+ *
1634
+ * Resolves where an inbound email to `recipient` would be delivered, with a
1635
+ * trace of every rule evaluated and why. Read-only; creates nothing.
1636
+ *
1637
+ */
1638
+ const simulateRoute = (options) => (options.client ?? client$1).post({
1639
+ security: [{
1640
+ scheme: "bearer",
1641
+ type: "http"
1642
+ }],
1643
+ url: "/routes/simulate",
1644
+ ...options,
1645
+ headers: {
1646
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
1647
+ ...options.headers
1648
+ }
1649
+ });
1650
+ /**
1651
+ * Delete a recipient route
1652
+ */
1653
+ const deleteRoute = (options) => (options.client ?? client$1).delete({
1654
+ security: [{
1655
+ scheme: "bearer",
1656
+ type: "http"
1657
+ }],
1658
+ url: "/routes/{id}",
1659
+ ...options
1660
+ });
1661
+ /**
1662
+ * Update a recipient route
1663
+ */
1664
+ const updateRoute = (options) => (options.client ?? client$1).patch({
1665
+ security: [{
1666
+ scheme: "bearer",
1667
+ type: "http"
1668
+ }],
1669
+ url: "/routes/{id}",
1670
+ ...options,
1671
+ headers: {
1672
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
1673
+ ...options.headers
1674
+ }
1675
+ });
1676
+ /**
1571
1677
  * List webhook deliveries
1572
1678
  *
1573
1679
  * Returns a paginated list of webhook delivery attempts. Each delivery
@@ -3282,4 +3388,4 @@ async function createAgent(options) {
3282
3388
  };
3283
3389
  }
3284
3390
  //#endregion
3285
- export { getStorageStats as $, verifyDomain as $t, deleteEndpoint as A, semanticSearch as At, getAgent as B, testFunction as Bt, createFunctionSecret as C, replyToEmail as Ct, defineAgent as D, rotateWebhookSecret as Dt, decideRegistryRequest as E, resolveRegistryHandle as Et, discardEmailContent as F, startAgentClaim as Ft, getFunctionRouting as G, updateEndpoint as Gt, getConversation as H, unsetFunctionRoute as Ht, downloadAttachments as I, startAgentSignup as It, getOrgRoutingTopology as J, updateRegistry as Jt, getFunctionTestRunTrace as K, updateFilter as Kt, downloadDomainZoneFile as L, startCliLogin as Lt, deleteFunction as M, setFunctionRoute as Mt, deleteFunctionSecret as N, setFunctionSecret as Nt, deleteDomain as O, sdk_gen_exports as Ot, deleteOrgSecret as P, setOrgSecret as Pt, getSpendPolicy as Q, verifyCliSignup as Qt, downloadRawEmail as R, startCliSignup as Rt, createFunction as S, replayEmailWebhooks as St, createRegistry as T, resendCliSignupVerification as Tt, getEmail as U, updateAccount as Ut, getChallenge as V, unpublishAgent as Vt, getFunction as W, updateDomain as Wt, getSendPermissions as X, verifyAgentClaim as Xt, getRegistry as Y, updateSpendPolicy as Yt, getSentEmail as Z, verifyAgentSignup as Zt, createAgentClaimLink as _, payChallenge as _t, client as a, listEmails as at, createEndpoint as b, registerPayoutAddress as bt, PRIMITIVE_SIGNATURE_HEADER as c, listFunctionLogs as ct, PrimitiveApiClient as d, listOrgSecrets as dt, createClient as en, getThread as et, PrimitiveApiError as f, listPayoutAddresses as ft, createAgentAccount as g, listSentEmails as gt, cliLogout as h, listRegistryRequests as ht, PrimitiveClient as i, listDomains as it, deleteFilter as j, sendEmail as jt, deleteEmail as k, searchEmails as kt, verifyWebhookSignature as l, listFunctionSecrets as lt, addDomain as m, listRegistryAgents as mt, AgentResource as n, listDeclinedPayments as nt, createAgent as o, listEndpoints as ot, createPrimitiveApiClient as p, listRegistries as pt, getInboxStatus as q, updateFunction as qt, InboxResource as r, listDeliveries as rt, createPrimitiveClient as s, listFilters as st, AccountResource as t, createConfig as tn, getWebhookSecret as tt, DEFAULT_API_BASE_URL as u, listFunctions as ut, createChallenge as v, pollCliLogin as vt, createOrgSecret as w, resendAgentSignupVerification as wt, createFilter as x, replayDelivery as xt, createEmailChallenge as y, publishAgent as yt, getAccount as z, testEndpoint as zt };
3391
+ export { getSentEmail as $, updateRegistry as $t, deleteEmail as A, resolveRegistryHandle as At, downloadRawEmail as B, startAgentClaim as Bt, createFunctionSecret as C, registerPayoutAddress as Ct, decideRegistryRequest as D, replyToEmail as Dt, createRoute as E, replayEmailWebhooks as Et, deleteOrgSecret as F, sendEmail as Ft, getEmail as G, testFunction as Gt, getAgent as H, startCliLogin as Ht, deleteRoute as I, setFunctionRoute as It, getFunctionTestRunTrace as J, updateAccount as Jt, getFunction as K, unpublishAgent as Kt, discardEmailContent as L, setFunctionSecret as Lt, deleteFilter as M, sdk_gen_exports as Mt, deleteFunction as N, searchEmails as Nt, defineAgent as O, resendAgentSignupVerification as Ot, deleteFunctionSecret as P, semanticSearch as Pt, getSendPermissions as Q, updateFunction as Qt, downloadAttachments as R, setOrgSecret as Rt, createFunction as S, publishAgent as St, createRegistry as T, replayDelivery as Tt, getChallenge as U, startCliSignup as Ut, getAccount as V, startAgentSignup as Vt, getConversation as W, testEndpoint as Wt, getOrgRoutingTopology as X, updateEndpoint as Xt, getInboxStatus as Y, updateDomain as Yt, getRegistry as Z, updateFilter as Zt, createAgentClaimLink as _, listRegistryRequests as _t, client as a, verifyDomain as an, listDeliveries as at, createEndpoint as b, payChallenge as bt, PRIMITIVE_SIGNATURE_HEADER as c, listEndpoints as ct, PrimitiveApiClient as d, listFunctionSecrets as dt, updateRoute as en, getSpendPolicy as et, PrimitiveApiError as f, listFunctions as ft, createAgentAccount as g, listRegistryAgents as gt, cliLogout as h, listRegistries as ht, PrimitiveClient as i, verifyCliSignup as in, listDeclinedPayments as it, deleteEndpoint as j, rotateWebhookSecret as jt, deleteDomain as k, resendCliSignupVerification as kt, verifyWebhookSignature as l, listFilters as lt, addDomain as m, listPayoutAddresses as mt, AgentResource as n, verifyAgentClaim as nn, getThread as nt, createAgent as o, createClient as on, listDomains as ot, createPrimitiveApiClient as p, listOrgSecrets as pt, getFunctionRouting as q, unsetFunctionRoute as qt, InboxResource as r, verifyAgentSignup as rn, getWebhookSecret as rt, createPrimitiveClient as s, createConfig as sn, listEmails as st, AccountResource as t, updateSpendPolicy as tn, getStorageStats as tt, DEFAULT_API_BASE_URL as u, listFunctionLogs as ut, createChallenge as v, listRoutes as vt, createOrgSecret as w, reorderRoutes as wt, createFilter as x, pollCliLogin as xt, createEmailChallenge as y, listSentEmails as yt, downloadDomainZoneFile as z, simulateRoute as zt };