@primitivedotdev/sdk 1.20.0 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +2 -2
- package/dist/{api-B0KwmkCw.js → api-Oi6Mo4Us.js} +82 -2
- package/dist/{index-Dq9OcM_D.d.ts → index-Da2SjL1d.d.ts} +91 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-OT0AliHp.js → operations.generated-BHSC87qb.js} +79 -0
- package/dist/payloads/index.d.ts +80 -0
- package/dist/payloads/index.js +392 -0
- package/package.json +7 -2
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as createRegistry, $a as DeleteOrgSecretErrors, $c as GetStorageStatsError, $d as PollCliLoginInput, $f as ResendCliSignupVerificationResponses, $g as VerifyAgentClaimErrors, $h as UpdateDomainInput, $i as CreateWakeScheduleInput, $l as ListDomainsError, $m as StartCliSignupInput, $n as verifyDomain, $o as EmailDetailReply, $p as SentEmailDetail, $r as CreateEmailChallengeResponse, $s as GetEmailErrors, $t as listPayoutAddresses, $u as ListRegistryRequestsError, A as createPrimitiveClient, A_ as X402PaymentRequirements, Aa as DeleteFilterData, Ac as GetOrgRoutingTopologyResponse, Ad as ListWakeSchedulesErrors, Af as ReplayDeliveryResponses, Ag as UpdateRouteResponse, Ah as TestResult, Ai as CreateOrgSecretResponse, Al as InboxStatusDomain, Am as SimulateRouteResponses, An as setOrgSecret, Ao as DkimSignature, Ap as SemanticSearchError, Ar as ConversationMessage, As as GateFix, At as getMemory, Au as ListFunctionsError, B as RequestOptions$1, B_ as RequestOptions, Ba as DeleteFunctionSecretData, Bc as GetSendPermissionsResponse, Bd as OrgSecretWriteResult, Bf as ReplyToEmailResponse, Bg as UpdateWakeAuthorizationErrors, Bh as UnsetFunctionRouteErrors, Bi as CreateRouteErrors, Bl as InstallTemplateResponses, Bm as StartAgentSignupErrors, Bn as updateAccount, Bo as DownloadDomainZoneFileError, Bp as SendEmailError, Br as CreateAgentClaimLinkInput, Bs as GetAgentResponses, Bt as getWakeSchedule, Bu as ListPayoutAddressesError, C as SendAttachment, C_ as WebhookSecret, Ca as DeleteEmailResponse, Cc as GetMemoryError, Cd as ListWakeDispatchesData, Cf as ReorderRoutesInput, Cg as UpdateRegistryInput, Ch as TestEndpointResponses, Ci as CreateFunctionSecretInput, Cl as GetWebhookSecretData, Cm as SetOrgSecretResponse, Cn as searchEmails, Co as DeliverySummary, Cp as SearchMemoriesData, Cr as CliLogoutResponse, Cs as FunctionTestRunInboundEmail, Ct as getChallenge, Cu as ListFunctionLogsResponses, D as WaitForNextOptions, D_ as X402EmailChallengeDetails, Da as DeleteEndpointErrors, Dc as GetOrgRoutingTopologyData, Dd as ListWakeDispatchesResponses, Df as ReplayDeliveryError, Dg as UpdateRouteError, Dh as TestFunctionResponse, Di as CreateOrgSecretError, Dl as GetWebhookSecretResponses, Dm as SimulateRouteErrors, Dn as setFunctionRoute, Do as DiscardEmailContentErrors, Dp as SearchMemoriesResponses, Dr as CliSignupStartResult, Ds as FunctionTestRunState, Dt as getFunctionRouting, Du as ListFunctionSecretsResponse, E as SendThreadInput, E_ as X402EmailChallenge, Ea as DeleteEndpointError, Ec as GetMemoryResponses, Ed as ListWakeDispatchesResponse, Ef as ReplayDeliveryData, Eg as UpdateRouteData, Eh as TestFunctionErrors, Ei as CreateOrgSecretData, El as GetWebhookSecretResponse, Em as SimulateRouteError, En as sendEmail, Eo as DiscardEmailContentError, Ep as SearchMemoriesResponse, Er as CliSignupResendResult, Es as FunctionTestRunSend, Et as getFunction, Eu as ListFunctionSecretsErrors, F as DEFAULT_API_BASE_URL, F_ as Client, Fa as DeleteFunctionData, Fc as GetRegistryResponse, Fd as MemoryScope, Ff as ReplayEmailWebhooksResponses, Fg as UpdateSpendPolicyInput, Fh as UnpublishAgentErrors, Fi as CreateRegistryInput, Fl as InstallTemplateBody, Fm as StartAgentClaimInput, Fn as startCliSignup, Fo as DownloadAttachmentsError, Fp as SemanticSearchResponses, Fr as CreateAgentAccountResponse, Fs as GetAccountResponses, Ft as getSpendPolicy, Fu as ListOrgSecretsError, G as createAgentClaimLink, Ga as DeleteMemoryData, Gc as GetSentEmailResponse, Gd as PayChallengeErrors, Gf as ResendAgentSignupVerificationInput, Gg as UpdateWakeScheduleError, Gh as UpdateAccountError, Gi as CreateWakeAuthorizationError, Gl as ListDeclinedPaymentsResponse, Gm as StartCliLoginError, Gn as updateRegistry, Go as DownloadRawEmailError, Gp as SendMailInput, Gr as CreateChallengeErrors, Gs as GetChallengeResponses, Gt as listDomains, Gu as ListRegistriesError, H as addDomain, H_ as ResponseStyle, Ha as DeleteFunctionSecretErrors, Hc as GetSentEmailData, Hd as ParsedEmailData, Hf as ResendAgentSignupVerificationData, Hg as UpdateWakeAuthorizationResponse, Hh as UnsetFunctionRouteResponses, Hi as CreateRouteResponse, Hl as ListDeclinedPaymentsData, Hm as StartAgentSignupResponse, Hn as updateEndpoint, Ho as DownloadDomainZoneFileResponse, Hp as SendEmailResponse, Hr as CreateAgentClaimLinkResponses, Hs as GetChallengeError, Ht as installTemplate, Hu as ListPayoutAddressesResponse, I as PrimitiveApiClient, I_ as ClientOptions, Ia as DeleteFunctionError, Ic as GetRegistryResponses, Id as MemoryScopeId, If as ReplayResult, Ig as UpdateSpendPolicyResponse, Ih as UnpublishAgentResponse, Ii as CreateRegistryResponse, Il as InstallTemplateData, Im as StartAgentClaimResponse, In as testEndpoint, Io as DownloadAttachmentsErrors, Ip as SemanticSearchResult, Ir as CreateAgentAccountResponses, Is as GetAgentData, It as getStorageStats, Iu as ListOrgSecretsErrors, J as createEndpoint, Ja as DeleteMemoryResponse, Jc as GetSpendPolicyError, Jd as PayChallengeResponses, Jf as ResendCliSignupVerificationData, Jg as UpdateWakeScheduleResponse, Jh as UpdateAccountResponse, Ji as CreateWakeAuthorizationResponse, Jl as ListDeliveriesError, Jm as StartCliLoginResponse, Jn as updateWakeAuthorization, Jo as DownloadRawEmailResponses, Jp as SendPermissionAnyRecipient, Jr as CreateChallengeResponses, Js as GetConversationErrors, Jt as listFilters, Ju as ListRegistriesResponses, K as createChallenge, Ka as DeleteMemoryError, Kc as GetSentEmailResponses, Kd as PayChallengeInput, Kf as ResendAgentSignupVerificationResponse, Kg as UpdateWakeScheduleErrors, Kh as UpdateAccountErrors, Ki as CreateWakeAuthorizationErrors, Kl as ListDeclinedPaymentsResponses, Km as StartCliLoginErrors, Kn as updateRoute, Ko as DownloadRawEmailErrors, Kp as SendMailResult, Kr as CreateChallengeInput, Ks as GetConversationData, Kt as listEmails, Ku as ListRegistriesErrors, L as PrimitiveApiClientOptions, L_ as Config, La as DeleteFunctionErrors, Lc as GetSendPermissionsData, Ld as MemoryScopeQueryType, Lf as ReplyToEmailData, Lg as UpdateSpendPolicyResponses, Lh as UnpublishAgentResponses, Li as CreateRegistryResponses, Ll as InstallTemplateError, Lm as StartAgentClaimResponses, Ln as testFunction, Lo as DownloadAttachmentsResponse, Lp as SemanticSearchScoreBreakdown, Lr as CreateAgentClaimLinkData, Ls as GetAgentError, Lt as getTemplate, Lu as ListOrgSecretsResponse, M as VerifyOptions, M_ as X402Receipt, Ma as DeleteFilterErrors, Mc as GetRegistryData, Md as ListWakeSchedulesResponses, Mf as ReplayEmailWebhooksError, Mg as UpdateSpendPolicyData, Mh as ThreadMessage, Mi as CreateRegistryData, Ml as InboxStatusFunctionSummary, Mm as StartAgentClaimData, Mn as startAgentClaim, Mo as DomainDnsRecord, Mp as SemanticSearchField, Mr as CreateAgentAccountError, Ms as GetAccountError, Mt as getRegistry, Mu as ListFunctionsResponse, N as verifyWebhookSignature, N_ as X402SpendPolicy, Na as DeleteFilterResponse, Nc as GetRegistryError, Nd as MemoryKeyQuery, Nf as ReplayEmailWebhooksErrors, Ng as UpdateSpendPolicyError, Nh as UnpublishAgentData, Ni as CreateRegistryError, Nl as InboxStatusNextAction, Nm as StartAgentClaimError, Nn as startAgentSignup, No as DomainVerifyResult, Np as SemanticSearchInput, Nr as CreateAgentAccountErrors, Ns as GetAccountErrors, Nt as getSendPermissions, Nu as ListFunctionsResponses, O as client, O_ as X402NonceBinding, Oa as DeleteEndpointResponse, Oc as GetOrgRoutingTopologyError, Od as ListWakeSchedulesData, Of as ReplayDeliveryErrors, Og as UpdateRouteErrors, Oh as TestFunctionResponses, Oi as CreateOrgSecretErrors, Ol as IdempotencyKey, Om as SimulateRouteInput, On as setFunctionSecret, Oo as DiscardEmailContentResponse, Op as SemanticSearchCoverage, Or as CliSignupVerifyResult, Os as FunctionTestRunTrace, Ot as getFunctionTestRunTrace, Ou as ListFunctionSecretsResponses, P as isMemoryJsonValue, P_ as createClient, Pa as DeleteFilterResponses, Pc as GetRegistryErrors, Pd as MemoryResolvedScope, Pf as ReplayEmailWebhooksResponse, Pg as UpdateSpendPolicyErrors, Ph as UnpublishAgentError, Pi as CreateRegistryErrors, Pl as InboxStatusRecentEmailSummary, Pm as StartAgentClaimErrors, Pn as startCliLogin, Po as DownloadAttachmentsData, Pp as SemanticSearchMeta, Pr as CreateAgentAccountInput, Ps as GetAccountResponse, Pt as getSentEmail, Pu as ListOrgSecretsData, Q as createOrgSecret, Qa as DeleteOrgSecretError, Qc as GetStorageStatsData, Qd as PollCliLoginErrors, Qf as ResendCliSignupVerificationResponse, Qg as VerifyAgentClaimError, Qh as UpdateDomainErrors, Qi as CreateWakeScheduleErrors, Ql as ListDomainsData, Qm as StartCliSignupErrors, Qn as verifyCliSignup, Qo as EmailDetail, Qp as SendPermissionsMeta, Qr as CreateEmailChallengeInput, Qs as GetEmailError, Qt as listOrgSecrets, Qu as ListRegistryRequestsData, R as PrimitiveApiError, R_ as CreateClientConfig, Ra as DeleteFunctionResponse, Rc as GetSendPermissionsError, Rd as NumericString, Rf as ReplyToEmailError, Rg as UpdateWakeAuthorizationData, Rh as UnsetFunctionRouteData, Ri as CreateRouteData, Rl as InstallTemplateErrors, Rm as StartAgentSignupData, Rn as unpublishAgent, Ro as DownloadAttachmentsResponses, Rp as SemanticSearchSnippet, Rr as CreateAgentClaimLinkError, Rs as GetAgentErrors, Rt as getTemplateInstall, Ru as ListOrgSecretsResponses, S as SemanticSearchResponse, S_ as WakeSchedule, Sa as DeleteEmailErrors, Sc as GetMemoryData, Sd as ListWakeAuthorizationsResponses, Sf as ReorderRoutesErrors, Sg as UpdateRegistryErrors, Sh as TestEndpointResponse, Si as CreateFunctionSecretErrors, Sl as GetWakeScheduleResponses, Sm as SetOrgSecretInput, Sn as sdk_gen_d_exports, So as DeliveryStatus, Sp as SearchEmailsResponses, Sr as CliLogoutInput, Ss as FunctionTestRunDeliveryEndpoint, St as getAgent, Su as ListFunctionLogsResponse, T as SendResult, T_ as X402DeclinedPayment, Ta as DeleteEndpointData, Tc as GetMemoryResponse, Td as ListWakeDispatchesErrors, Tf as ReorderRoutesResponses, Tg as UpdateRegistryResponses, Th as TestFunctionError, Ti as CreateFunctionSecretResponses, Tl as GetWebhookSecretErrors, Tm as SimulateRouteData, Tn as semanticSearch, To as DiscardEmailContentData, Tp as SearchMemoriesErrors, Tr as CliLogoutResult, Ts as FunctionTestRunReply, Tt as getEmail, Tu as ListFunctionSecretsError, U as cliLogout, U_ as createConfig, Ua as DeleteFunctionSecretResponse, Uc as GetSentEmailError, Ud as PayChallengeData, Uf as ResendAgentSignupVerificationError, Ug as UpdateWakeAuthorizationResponses, Uh as UnverifiedDomain, Ui as CreateRouteResponses, Ul as ListDeclinedPaymentsError, Um as StartAgentSignupResponses, Un as updateFilter, Uo as DownloadDomainZoneFileResponses, Up as SendEmailResponses, Ur as CreateChallengeData, Us as GetChallengeErrors, Ut as listDeclinedPayments, Uu as ListPayoutAddressesResponses, V as createPrimitiveApiClient, V_ as RequestResult, Va as DeleteFunctionSecretError, Vc as GetSendPermissionsResponses, Vd as PaginationMeta, Vf as ReplyToEmailResponses, Vg as UpdateWakeAuthorizationInput, Vh as UnsetFunctionRouteResponse, Vi as CreateRouteInput, Vl as Limit, Vm as StartAgentSignupInput, Vn as updateDomain, Vo as DownloadDomainZoneFileErrors, Vp as SendEmailErrors, Vr as CreateAgentClaimLinkResponse, Vs as GetChallengeData, Vt as getWebhookSecret, Vu as ListPayoutAddressesErrors, W as createAgentAccount, W_ as Auth, Wa as DeleteFunctionSecretResponses, Wc as GetSentEmailErrors, Wd as PayChallengeError, Wf as ResendAgentSignupVerificationErrors, Wg as UpdateWakeScheduleData, Wh as UpdateAccountData, Wi as CreateWakeAuthorizationData, Wl as ListDeclinedPaymentsErrors, Wm as StartCliLoginData, Wn as updateFunction, Wo as DownloadRawEmailData, Wp as SendMailAttachment, Wr as CreateChallengeError, Ws as GetChallengeResponse, Wt as listDeliveries, Wu as ListRegistriesData, X as createFunction, Xa as DeleteMemoryResult, Xc as GetSpendPolicyResponse, Xd as PollCliLoginData, Xf as ResendCliSignupVerificationErrors, Xg as VerifiedDomain, Xh as UpdateDomainData, Xi as CreateWakeScheduleData, Xl as ListDeliveriesResponse, Xm as StartCliSignupData, Xn as verifyAgentClaim, Xo as EmailAttachment, Xp as SendPermissionRule, Xr as CreateEmailChallengeError, Xs as GetConversationResponses, Xt as listFunctionSecrets, Xu as ListRegistryAgentsResponse, Y as createFilter, Ya as DeleteMemoryResponses, Yc as GetSpendPolicyErrors, Yd as PlanLimits, Yf as ResendCliSignupVerificationError, Yg as UpdateWakeScheduleResponses, Yh as UpdateAccountResponses, Yi as CreateWakeAuthorizationResponses, Yl as ListDeliveriesErrors, Ym as StartCliLoginResponses, Yn as updateWakeSchedule, Yo as EmailAddress, Yp as SendPermissionManagedZone, Yr as CreateEmailChallengeData, Ys as GetConversationResponse, Yt as listFunctionLogs, Yu as ListRegistryAgentsData, Z as createFunctionSecret, Za as DeleteOrgSecretData, Zc as GetSpendPolicyResponses, Zd as PollCliLoginError, Zf as ResendCliSignupVerificationInput, Zg as VerifyAgentClaimData, Zh as UpdateDomainError, Zi as CreateWakeScheduleError, Zl as ListDeliveriesResponses, Zm as StartCliSignupError, Zn as verifyAgentSignup, Zo as EmailAuth, Zp as SendPermissionYourDomain, Zr as CreateEmailChallengeErrors, Zs as GetEmailData, Zt as listFunctions, Zu as ListRegistryAgentsResponses, _ as MemorySetInput, __ as VerifyDomainErrors, _a as DeleteDomainErrors, _c as GetInboxStatusData, _d as ListTemplatesResponses, _f as Registry, _g as UpdateFunctionInput, _h as TemplateVariable, _i as CreateFunctionResponse, _l as GetThreadResponses, _m as SetMemoryResponse, _n as resendAgentSignupVerification, _o as DeleteWakeScheduleData, _p as RunWakeScheduleResponses, _r as CliLoginPollResult, _s as FunctionRouting, _t as discardEmailContent, _u as ListFiltersResponse, a as ForwardInput, a_ as VerifyAgentSignupErrors, aa as DecideRegistryRequestErrors, ac as GetFunctionResponse, ad as ListRoutesErrors, af as PublishAgentInput, ag as UpdateEndpointInput, ah as TemplateInstall, ai as CreateEndpointResponse, al as GetTemplateErrors, am as SetFunctionRouteResponse, an as listTemplates, ao as DeleteRegistryResponse, ap as ResourceId, ar as AddDomainInput, as as EmailStatus, at as deleteDomain, au as ListEmailsErrors, b as ReplyInput, b_ as WakeAuthorization, ba as DeleteEmailData, bc as GetInboxStatusResponse, bd as ListWakeAuthorizationsErrors, bf as ReorderRoutesData, bg as UpdateRegistryData, bh as TestEndpointError, bi as CreateFunctionSecretData, bl as GetWakeScheduleErrors, bm as SetOrgSecretError, bn as rotateWebhookSecret, bo as DeleteWakeScheduleResponse, bp as SearchEmailsErrors, br as CliLogoutError, bs as FunctionTestRun, bt as downloadRawEmail, bu as ListFunctionLogsError, c as InboxStreamOptions, c_ as VerifyAgentSignupResponses, ca as DecideRegistryRequestResponses, cc as GetFunctionRoutingError, cd as ListSentEmailsData, cf as PublishAgentResult, cg as UpdateFilterData, ch as TemplateManifest, ci as CreateFilterError, cl as GetTemplateInstallErrors, cm as SetFunctionSecretError, cn as listWakeSchedules, co as DeleteRouteError, cp as RotateWebhookSecretErrors, cr as AgentAccountResult, cs as Endpoint, ct as deleteFilter, cu as ListEndpointsData, d as MemoryGetInput, d_ as VerifyCliSignupErrors, da as DefineAgentErrors, dc as GetFunctionRoutingResponses, dd as ListSentEmailsResponse, df as RegisterPayoutAddressData, dg as UpdateFilterInput, dh as TemplateRegistryStatus, di as CreateFilterResponse, dl as GetTemplateResponse, dm as SetFunctionSecretResponse, dn as publishAgent, do as DeleteRouteResponses, dp as RouteEvaluatedEntry, dr as AgentClaimResult, ds as FunctionDeployStatus, dt as deleteMemory, du as ListEndpointsResponse, e_ as VerifyAgentClaimInput, ea as CreateWakeScheduleResponse, ec as GetEmailResponse, ed as ListRegistryRequestsErrors, ef as PollCliLoginResponse, eg as UpdateDomainResponse, eh as StartCliSignupResponse, ei as CreateEmailChallengeResponses, el as GetStorageStatsErrors, em as SentEmailStatus, en as listRegistries, eo as DeleteOrgSecretResponse, ep as ResolveRegistryHandleData, er as Account, es as EmailSearchFacetBucket, et as createRoute, eu as ListDomainsErrors, f as MemoryJsonValue, f_ as VerifyCliSignupInput, fa as DefineAgentInput, fc as GetFunctionTestRunTraceData, fd as ListSentEmailsResponses, ff as RegisterPayoutAddressError, fg as UpdateFilterResponse, fh as TemplateRegistrySummary, fi as CreateFilterResponses, fl as GetTemplateResponses, fm as SetFunctionSecretResponses, fn as registerPayoutAddress, fo as DeleteWakeAuthorizationData, fp as RoutingTopology, fr as AgentClaimStartResult, fs as FunctionDetail, ft as deleteOrgSecret, fu as ListEndpointsResponses, g as MemorySearchResponse, g_ as VerifyDomainError, ga as DeleteDomainError, gc as GetFunctionTestRunTraceResponses, gd as ListTemplatesResponse, gf as RegisterPayoutAddressResponses, gg as UpdateFunctionErrors, gh as TemplateSource, gi as CreateFunctionInput, gl as GetThreadResponse, gm as SetMemoryInput, gn as replyToEmail, go as DeleteWakeAuthorizationResponses, gp as RunWakeScheduleResponse, gr as AgentSignupVerifyResult, gs as FunctionRouteResult, gt as deleteWakeSchedule, gu as ListFiltersErrors, h as MemorySearchInput, h_ as VerifyDomainData, ha as DeleteDomainData, hc as GetFunctionTestRunTraceResponse, hd as ListTemplatesErrors, hf as RegisterPayoutAddressResponse, hg as UpdateFunctionError, hh as TemplateSetup, hi as CreateFunctionErrors, hl as GetThreadErrors, hm as SetMemoryErrors, hn as replayEmailWebhooks, ho as DeleteWakeAuthorizationResponse, hp as RunWakeScheduleErrors, hr as AgentSignupStartResult, hs as FunctionRouteBody, ht as deleteWakeAuthorization, hu as ListFiltersError, i as CreatedAgent, i_ as VerifyAgentSignupError, ia as DecideRegistryRequestError, ic as GetFunctionErrors, id as ListRoutesError, if as PublishAgentErrors, ig as UpdateEndpointErrors, ih as TemplateAuthor, ii as CreateEndpointInput, il as GetTemplateError, im as SetFunctionRouteErrors, in as listSentEmails, io as DeleteRegistryErrors, ip as ResolveRegistryHandleResponses, ir as AddDomainErrors, is as EmailSearchResult, it as defineAgent, iu as ListEmailsError, j as PRIMITIVE_SIGNATURE_HEADER, j_ as X402PayoutAddress, ja as DeleteFilterError, jc as GetOrgRoutingTopologyResponses, jd as ListWakeSchedulesResponse, jf as ReplayEmailWebhooksData, jg as UpdateRouteResponses, jh as Thread, ji as CreateOrgSecretResponses, jl as InboxStatusEndpointSummary, jm as SimulateRouteResult, jn as simulateRoute, jo as Domain, jp as SemanticSearchErrors, jr as CreateAgentAccountData, js as GetAccountData, jt as getOrgRoutingTopology, ju as ListFunctionsErrors, k as createAgent, k_ as X402PaymentPayload, ka as DeleteEndpointResponses, kc as GetOrgRoutingTopologyErrors, kd as ListWakeSchedulesError, kf as ReplayDeliveryResponse, kg as UpdateRouteInput, kh as TestInvocationResult, ki as CreateOrgSecretInput, kl as InboxStatus, km as SimulateRouteResponse, kn as setMemory, ko as DiscardEmailContentResponses, kp as SemanticSearchData, kr as Conversation, ks as GateDenial, kt as getInboxStatus, ku as ListFunctionsData, l as MemoriesResource, l_ as VerifyCliSignupData, la as DefineAgentData, lc as GetFunctionRoutingErrors, ld as ListSentEmailsError, lf as PublishPolicy, lg as UpdateFilterError, lh as TemplateRegistryDetail, li as CreateFilterErrors, ll as GetTemplateInstallResponse, lm as SetFunctionSecretErrors, ln as payChallenge, lo as DeleteRouteErrors, lp as RotateWebhookSecretResponse, lr as AgentAccountUpgradeHint, ls as ErrorResponse, lt as deleteFunction, lu as ListEndpointsError, m as MemoryRecordWithValue, m_ as VerifyCliSignupResponses, ma as DefineAgentResponses, mc as GetFunctionTestRunTraceErrors, md as ListTemplatesError, mf as RegisterPayoutAddressInput, mg as UpdateFunctionData, mh as TemplateSecretGroup, mi as CreateFunctionError, ml as GetThreadError, mm as SetMemoryError, mn as replayDelivery, mo as DeleteWakeAuthorizationErrors, mp as RunWakeScheduleError, mr as AgentSignupResendResult, ms as FunctionLogRow, mt as deleteRoute, mu as ListFiltersData, n as AgentResource, n_ as VerifyAgentClaimResponses, na as Cursor, nc as GetFunctionData, nd as ListRegistryRequestsResponses, nf as PublishAgentData, ng as UpdateEndpointData, nh as StorageStats, ni as CreateEndpointError, nl as GetStorageStatsResponses, nm as SetFunctionRouteData, nn as listRegistryRequests, no as DeleteRegistryData, np as ResolveRegistryHandleErrors, nr as AddDomainData, ns as EmailSearchHighlights, nt as createWakeSchedule, nu as ListDomainsResponses, o as InboundEmail, o_ as VerifyAgentSignupInput, oa as DecideRegistryRequestInput, oc as GetFunctionResponses, od as ListRoutesResponse, of as PublishAgentResponse, og as UpdateEndpointResponse, oh as TemplateInstallState, oi as CreateEndpointResponses, ol as GetTemplateInstallData, om as SetFunctionRouteResponses, on as listWakeAuthorizations, oo as DeleteRegistryResponses, op as RotateWebhookSecretData, or as AddDomainResponse, os as EmailSummary, ot as deleteEmail, ou as ListEmailsResponse, p as MemoryRecord, p_ as VerifyCliSignupResponse, pa as DefineAgentResponse, pc as GetFunctionTestRunTraceError, pd as ListTemplatesData, pf as RegisterPayoutAddressErrors, pg as UpdateFilterResponses, ph as TemplateSecret, pi as CreateFunctionData, pl as GetThreadData, pm as SetMemoryData, pn as reorderRoutes, po as DeleteWakeAuthorizationError, pp as RunWakeScheduleData, pr as AgentOrgRef, ps as FunctionListItem, pt as deleteRegistry, pu as ListEnvelope, q as createEmailChallenge, qa as DeleteMemoryErrors, qc as GetSpendPolicyData, qd as PayChallengeResponse, qf as ResendAgentSignupVerificationResponses, qg as UpdateWakeScheduleInput, qh as UpdateAccountInput, qi as CreateWakeAuthorizationInput, ql as ListDeliveriesData, qm as StartCliLoginInput, qn as updateSpendPolicy, qo as DownloadRawEmailResponse, qp as SendPermissionAddress, qr as CreateChallengeResponse, qs as GetConversationError, qt as listEndpoints, qu as ListRegistriesResponse, r as CreateAgentOptions, r_ as VerifyAgentSignupData, ra as DecideRegistryRequestData, rc as GetFunctionError, rd as ListRoutesData, rf as PublishAgentError, rg as UpdateEndpointError, rh as SuccessEnvelope, ri as CreateEndpointErrors, rl as GetTemplateData, rm as SetFunctionRouteError, rn as listRoutes, ro as DeleteRegistryError, rp as ResolveRegistryHandleResponse, rr as AddDomainError, rs as EmailSearchMeta, rt as decideRegistryRequest, ru as ListEmailsData, s as InboxResource, s_ as VerifyAgentSignupResponse, sa as DecideRegistryRequestResponse, sc as GetFunctionRoutingData, sd as ListRoutesResponses, sf as PublishAgentResponses, sg as UpdateEndpointResponses, sh as TemplateInstallStatus, si as CreateFilterData, sl as GetTemplateInstallError, sm as SetFunctionSecretData, sn as listWakeDispatches, so as DeleteRouteData, sp as RotateWebhookSecretError, sr as AddDomainResponses, ss as EmailWebhookStatus, st as deleteEndpoint, su as ListEmailsResponses, t as AccountResource, t_ as VerifyAgentClaimResponse, ta as CreateWakeScheduleResponses, tc as GetEmailResponses, td as ListRegistryRequestsResponse, tf as PollCliLoginResponses, tg as UpdateDomainResponses, th as StartCliSignupResponses, ti as CreateEndpointData, tl as GetStorageStatsResponse, tm as SentEmailSummary, tn as listRegistryAgents, to as DeleteOrgSecretResponses, tp as ResolveRegistryHandleError, tr as AccountUpdated, ts as EmailSearchFacets, tt as createWakeAuthorization, tu as ListDomainsResponse, u as MemoryDeleteInput, u_ as VerifyCliSignupError, ua as DefineAgentError, uc as GetFunctionRoutingResponse, ud as ListSentEmailsErrors, uf as RecipientRoute, ug as UpdateFilterErrors, uh as TemplateRegistryPage, ui as CreateFilterInput, ul as GetTemplateInstallResponses, um as SetFunctionSecretInput, un as pollCliLogin, uo as DeleteRouteResponse, up as RotateWebhookSecretResponses, ur as AgentClaimLinkResult, us as Filter, ut as deleteFunctionSecret, uu as ListEndpointsErrors, v as PrimitiveClient, v_ as VerifyDomainResponse, va as DeleteDomainResponse, vc as GetInboxStatusError, vd as ListWakeAuthorizationsData, vf as RegistryAgent, vg as UpdateFunctionResponse, vh as TemplateVariableValidation, vi as CreateFunctionResponses, vl as GetWakeScheduleData, vm as SetMemoryResponses, vn as resendCliSignupVerification, vo as DeleteWakeScheduleError, vp as SearchEmailsData, vr as CliLoginStartResult, vs as FunctionSecretListItem, vt as downloadAttachments, vu as ListFiltersResponses, w as SendInput, w_ as X402Challenge, wa as DeleteEmailResponses, wc as GetMemoryErrors, wd as ListWakeDispatchesError, wf as ReorderRoutesResponse, wg as UpdateRegistryResponse, wh as TestFunctionData, wi as CreateFunctionSecretResponse, wl as GetWebhookSecretError, wm as SetOrgSecretResponses, wn as searchMemories, wo as DiscardContentResult, wp as SearchMemoriesError, wr as CliLogoutResponses, ws as FunctionTestRunOutboundRequest, wt as getConversation, wu as ListFunctionSecretsData, x as RequestOptions$2, x_ as WakeDispatch, xa as DeleteEmailError, xc as GetInboxStatusResponses, xd as ListWakeAuthorizationsResponse, xf as ReorderRoutesError, xg as UpdateRegistryError, xh as TestEndpointErrors, xi as CreateFunctionSecretError, xl as GetWakeScheduleResponse, xm as SetOrgSecretErrors, xn as runWakeSchedule, xo as DeleteWakeScheduleResponses, xp as SearchEmailsResponse, xr as CliLogoutErrors, xs as FunctionTestRunDelivery, xt as getAccount, xu as ListFunctionLogsErrors, y as PrimitiveClientOptions, y_ as VerifyDomainResponses, ya as DeleteDomainResponses, yc as GetInboxStatusErrors, yd as ListWakeAuthorizationsError, yf as RegistryRequest, yg as UpdateFunctionResponses, yh as TestEndpointData, yi as CreateFunctionResult, yl as GetWakeScheduleError, ym as SetOrgSecretData, yn as resolveRegistryHandle, yo as DeleteWakeScheduleErrors, yp as SearchEmailsError, yr as CliLogoutData, ys as FunctionSecretWriteResult, yt as downloadDomainZoneFile, yu as ListFunctionLogsData, z as PrimitiveApiErrorDetails, z_ as Options, za as DeleteFunctionResponses, zc as GetSendPermissionsErrors, zd as OrgSecretListItem, zf as ReplyToEmailErrors, zg as UpdateWakeAuthorizationError, zh as UnsetFunctionRouteError, zi as CreateRouteError, zl as InstallTemplateResponse, zm as StartAgentSignupError, zn as unsetFunctionRoute, zo as DownloadDomainZoneFileData, zp as SendEmailData, zr as CreateAgentClaimLinkErrors, zs as GetAgentResponse, zt as getThread, zu as ListPayoutAddressesData } from "../index-Dq9OcM_D.js";
|
|
1
|
+
import { $ as createFunctionSecret, $a as DeleteOrgSecretData, $c as GetSpendPolicyResponses, $d as PollCliLoginError, $f as ResendCliSignupVerificationInput, $g as VerifiedDomain, $h as UpdateDomainData, $i as CreateWakeScheduleError, $l as ListDeliveriesResponses, $m as StartCliSignupData, $n as verifyAgentSignup, $o as EmailAuth, $p as SendPermissionRule, $r as CreateEmailChallengeErrors, $s as GetEmailData, $t as listFunctions, $u as ListRegistryAgentsResponses, A as client, A_ as X402EmailChallengeDetails, Aa as DeleteEndpointResponse, Ac as GetOrgRoutingTopologyError, Ad as ListWakeSchedulesData, Af as ReplayDeliveryErrors, Ag as UpdateRouteError, Ah as TestFunctionResponse, Ai as CreateOrgSecretErrors, Al as IdempotencyKey, Am as SimulateRouteErrors, An as setFunctionSecret, Ao as DiscardEmailContentResponse, Ap as SemanticSearchCoverage, Ar as CliSignupVerifyResult, As as FunctionTestRunTrace, At as getFunctionTestRunTrace, Au as ListFunctionSecretsResponses, B as PrimitiveApiError, B_ as Config, Ba as DeleteFunctionResponse, Bc as GetSendPermissionsError, Bd as NumericString, Bf as ReplyToEmailError, Bg as UpdateSpendPolicyResponses, Bh as UnpublishAgentResponses, Bi as CreateRouteData, Bl as InstallTemplateErrors, Bm as StartAgentClaimResponses, Bn as unpublishAgent, Bo as DownloadAttachmentsResponses, Bp as SemanticSearchSnippet, Br as CreateAgentClaimLinkError, Bs as GetAgentErrors, Bt as getTemplateInstall, Bu as ListOrgSecretsResponses, C as SendAttachment, C_ as WakeAuthorization, Ca as DeleteEmailError, Cc as GetInboxStatusResponses, Cd as ListWakeAuthorizationsResponse, Cf as ReorderRoutesError, Cg as UpdateRegistryData, Ch as TestEndpointError, Ci as CreateFunctionSecretError, Cl as GetWakeScheduleResponse, Cm as SetOrgSecretError, Cn as runWakeSchedule, Co as DeleteWakeScheduleResponses, Cp as SearchEmailsResponse, Cr as CliLogoutErrors, Cs as FunctionTestRunDelivery, Ct as getAccount, Cu as ListFunctionLogsErrors, D as SendResult, D_ as X402Challenge, Da as DeleteEndpointData, Dc as GetMemoryResponse, Dd as ListWakeDispatchesErrors, Df as ReorderRoutesResponses, Dg as UpdateRegistryResponse, Dh as TestFunctionData, Di as CreateFunctionSecretResponses, Dl as GetWebhookSecretErrors, Dm as SetOrgSecretResponses, Dn as semanticSearch, Do as DiscardEmailContentData, Dp as SearchMemoriesErrors, Dr as CliLogoutResult, Ds as FunctionTestRunReply, Dt as getEmail, Du as ListFunctionSecretsError, E as SendPayloadReference, E_ as WebhookSecret, Ea as DeleteEmailResponses, Ec as GetMemoryErrors, Ed as ListWakeDispatchesError, Ef as ReorderRoutesResponse, Eg as UpdateRegistryInput, Eh as TestEndpointResponses, Ei as CreateFunctionSecretResponse, El as GetWebhookSecretError, Em as SetOrgSecretResponse, En as searchMemories, Eo as DiscardContentResult, Ep as SearchMemoriesError, Er as CliLogoutResponses, Es as FunctionTestRunOutboundRequest, Et as getConversation, Eu as ListFunctionSecretsData, F as verifyWebhookSignature, F_ as X402Receipt, Fa as DeleteFilterResponse, Fc as GetRegistryError, Fd as MemoryKeyQuery, Ff as ReplayEmailWebhooksErrors, Fg as UpdateSpendPolicyData, Fh as ThreadMessage, Fi as CreateRegistryError, Fl as InboxStatusNextAction, Fm as StartAgentClaimData, Fn as startAgentSignup, Fo as DomainVerifyResult, Fp as SemanticSearchInput, Fr as CreateAgentAccountErrors, Fs as GetAccountErrors, Ft as getSendPermissions, Fu as ListFunctionsResponses, G as cliLogout, G_ as ResponseStyle, Ga as DeleteFunctionSecretResponse, Gc as GetSentEmailError, Gd as PayChallengeData, Gf as ResendAgentSignupVerificationError, Gg as UpdateWakeAuthorizationResponse, Gh as UnsetFunctionRouteResponses, Gi as CreateRouteResponses, Gl as ListDeclinedPaymentsError, Gm as StartAgentSignupResponse, Gn as updateFilter, Go as DownloadDomainZoneFileResponses, Gp as SendEmailResponses, Gr as CreateChallengeData, Gs as GetChallengeErrors, Gt as listDeclinedPayments, Gu as ListPayoutAddressesResponses, H as RequestOptions$1, H_ as Options, Ha as DeleteFunctionSecretData, Hc as GetSendPermissionsResponse, Hd as OrgSecretWriteResult, Hf as ReplyToEmailResponse, Hg as UpdateWakeAuthorizationError, Hh as UnsetFunctionRouteError, Hi as CreateRouteErrors, Hl as InstallTemplateResponses, Hm as StartAgentSignupError, Hn as updateAccount, Ho as DownloadDomainZoneFileError, Hp as SendEmailError, Hr as CreateAgentClaimLinkInput, Hs as GetAgentResponses, Ht as getWakeSchedule, Hu as ListPayoutAddressesError, I as isMemoryJsonValue, I_ as X402SpendPolicy, Ia as DeleteFilterResponses, Ic as GetRegistryErrors, Id as MemoryResolvedScope, If as ReplayEmailWebhooksResponse, Ig as UpdateSpendPolicyError, Ih as UnpublishAgentData, Ii as CreateRegistryErrors, Il as InboxStatusRecentEmailSummary, Im as StartAgentClaimError, In as startCliLogin, Io as DownloadAttachmentsData, Ip as SemanticSearchMeta, Ir as CreateAgentAccountInput, Is as GetAccountResponse, It as getSentEmail, Iu as ListOrgSecretsData, J as createChallenge, Ja as DeleteMemoryError, Jc as GetSentEmailResponses, Jd as PayChallengeInput, Jf as ResendAgentSignupVerificationResponse, Jg as UpdateWakeScheduleError, Jh as UpdateAccountError, Ji as CreateWakeAuthorizationErrors, Jl as ListDeclinedPaymentsResponses, Jm as StartCliLoginError, Jn as updateRoute, Jo as DownloadRawEmailErrors, Jp as SendMailPayloadRef, Jr as CreateChallengeInput, Js as GetConversationData, Jt as listEmails, Ju as ListRegistriesErrors, K as createAgentAccount, K_ as createConfig, Ka as DeleteFunctionSecretResponses, Kc as GetSentEmailErrors, Kd as PayChallengeError, Kf as ResendAgentSignupVerificationErrors, Kg as UpdateWakeAuthorizationResponses, Kh as UnverifiedDomain, Ki as CreateWakeAuthorizationData, Kl as ListDeclinedPaymentsErrors, Km as StartAgentSignupResponses, Kn as updateFunction, Ko as DownloadRawEmailData, Kp as SendMailAttachment, Kr as CreateChallengeError, Ks as GetChallengeResponse, Kt as listDeliveries, Ku as ListRegistriesData, L as DEFAULT_API_BASE_URL, L_ as createClient, La as DeleteFunctionData, Lc as GetRegistryResponse, Ld as MemoryScope, Lf as ReplayEmailWebhooksResponses, Lg as UpdateSpendPolicyErrors, Lh as UnpublishAgentError, Li as CreateRegistryInput, Ll as InstallTemplateBody, Lm as StartAgentClaimErrors, Ln as startCliSignup, Lo as DownloadAttachmentsError, Lp as SemanticSearchResponses, Lr as CreateAgentAccountResponse, Ls as GetAccountResponses, Lt as getSpendPolicy, Lu as ListOrgSecretsError, M as createPrimitiveClient, M_ as X402PaymentPayload, Ma as DeleteFilterData, Mc as GetOrgRoutingTopologyResponse, Md as ListWakeSchedulesErrors, Mf as ReplayDeliveryResponses, Mg as UpdateRouteInput, Mh as TestInvocationResult, Mi as CreateOrgSecretResponse, Ml as InboxStatusDomain, Mm as SimulateRouteResponse, Mn as setOrgSecret, Mo as DkimSignature, Mp as SemanticSearchError, Mr as ConversationMessage, Ms as GateFix, Mt as getMemory, Mu as ListFunctionsError, N as PRIMITIVE_SIGNATURE_HEADER, N_ as X402PaymentRequirements, Na as DeleteFilterError, Nc as GetOrgRoutingTopologyResponses, Nd as ListWakeSchedulesResponse, Nf as ReplayEmailWebhooksData, Ng as UpdateRouteResponse, Nh as TestResult, Ni as CreateOrgSecretResponses, Nl as InboxStatusEndpointSummary, Nm as SimulateRouteResponses, Nn as simulateRoute, No as Domain, Np as SemanticSearchErrors, Nr as CreateAgentAccountData, Ns as GetAccountData, Nt as getOrgRoutingTopology, Nu as ListFunctionsErrors, O as SendThreadInput, O_ as X402DeclinedPayment, Oa as DeleteEndpointError, Oc as GetMemoryResponses, Od as ListWakeDispatchesResponse, Of as ReplayDeliveryData, Og as UpdateRegistryResponses, Oh as TestFunctionError, Oi as CreateOrgSecretData, Ol as GetWebhookSecretResponse, Om as SimulateRouteData, On as sendEmail, Oo as DiscardEmailContentError, Op as SearchMemoriesResponse, Or as CliSignupResendResult, Os as FunctionTestRunSend, Ot as getFunction, Ou as ListFunctionSecretsErrors, P as VerifyOptions, P_ as X402PayoutAddress, Pa as DeleteFilterErrors, Pc as GetRegistryData, Pd as ListWakeSchedulesResponses, Pf as ReplayEmailWebhooksError, Pg as UpdateRouteResponses, Ph as Thread, Pi as CreateRegistryData, Pl as InboxStatusFunctionSummary, Pm as SimulateRouteResult, Pn as startAgentClaim, Po as DomainDnsRecord, Pp as SemanticSearchField, Pr as CreateAgentAccountError, Ps as GetAccountError, Pt as getRegistry, Pu as ListFunctionsResponse, Q as createFunction, Qa as DeleteMemoryResult, Qc as GetSpendPolicyResponse, Qd as PollCliLoginData, Qf as ResendCliSignupVerificationErrors, Qg as UpdateWakeScheduleResponses, Qh as UpdateAccountResponses, Qi as CreateWakeScheduleData, Ql as ListDeliveriesResponse, Qm as StartCliLoginResponses, Qn as verifyAgentClaim, Qo as EmailAttachment, Qp as SendPermissionManagedZone, Qr as CreateEmailChallengeError, Qs as GetConversationResponses, Qt as listFunctionSecrets, Qu as ListRegistryAgentsResponse, R as PrimitiveApiClient, R_ as Client, Ra as DeleteFunctionError, Rc as GetRegistryResponses, Rd as MemoryScopeId, Rf as ReplayResult, Rg as UpdateSpendPolicyInput, Rh as UnpublishAgentErrors, Ri as CreateRegistryResponse, Rl as InstallTemplateData, Rm as StartAgentClaimInput, Rn as testEndpoint, Ro as DownloadAttachmentsErrors, Rp as SemanticSearchResult, Rr as CreateAgentAccountResponses, Rs as GetAgentData, Rt as getStorageStats, Ru as ListOrgSecretsErrors, S as SemanticSearchResponse, S_ as VerifyDomainResponses, Sa as DeleteEmailData, Sc as GetInboxStatusResponse, Sd as ListWakeAuthorizationsErrors, Sf as ReorderRoutesData, Sg as UpdateFunctionResponses, Sh as TestEndpointData, Si as CreateFunctionSecretData, Sl as GetWakeScheduleErrors, Sm as SetOrgSecretData, Sn as rotateWebhookSecret, So as DeleteWakeScheduleResponse, Sp as SearchEmailsErrors, Sr as CliLogoutError, Ss as FunctionTestRun, St as downloadRawEmail, Su as ListFunctionLogsError, T as SendInput, T_ as WakeSchedule, Ta as DeleteEmailResponse, Tc as GetMemoryError, Td as ListWakeDispatchesData, Tf as ReorderRoutesInput, Tg as UpdateRegistryErrors, Th as TestEndpointResponse, Ti as CreateFunctionSecretInput, Tl as GetWebhookSecretData, Tm as SetOrgSecretInput, Tn as searchEmails, To as DeliverySummary, Tp as SearchMemoriesData, Tr as CliLogoutResponse, Ts as FunctionTestRunInboundEmail, Tt as getChallenge, Tu as ListFunctionLogsResponses, U as createPrimitiveApiClient, U_ as RequestOptions, Ua as DeleteFunctionSecretError, Uc as GetSendPermissionsResponses, Ud as PaginationMeta, Uf as ReplyToEmailResponses, Ug as UpdateWakeAuthorizationErrors, Uh as UnsetFunctionRouteErrors, Ui as CreateRouteInput, Ul as Limit, Um as StartAgentSignupErrors, Un as updateDomain, Uo as DownloadDomainZoneFileErrors, Up as SendEmailErrors, Ur as CreateAgentClaimLinkResponse, Us as GetChallengeData, Ut as getWebhookSecret, Uu as ListPayoutAddressesErrors, V as PrimitiveApiErrorDetails, V_ as CreateClientConfig, Va as DeleteFunctionResponses, Vc as GetSendPermissionsErrors, Vd as OrgSecretListItem, Vf as ReplyToEmailErrors, Vg as UpdateWakeAuthorizationData, Vh as UnsetFunctionRouteData, Vi as CreateRouteError, Vl as InstallTemplateResponse, Vm as StartAgentSignupData, Vn as unsetFunctionRoute, Vo as DownloadDomainZoneFileData, Vp as SendEmailData, Vr as CreateAgentClaimLinkErrors, Vs as GetAgentResponse, Vt as getThread, Vu as ListPayoutAddressesData, W as addDomain, W_ as RequestResult, Wa as DeleteFunctionSecretErrors, Wc as GetSentEmailData, Wd as ParsedEmailData, Wf as ResendAgentSignupVerificationData, Wg as UpdateWakeAuthorizationInput, Wh as UnsetFunctionRouteResponse, Wi as CreateRouteResponse, Wl as ListDeclinedPaymentsData, Wm as StartAgentSignupInput, Wn as updateEndpoint, Wo as DownloadDomainZoneFileResponse, Wp as SendEmailResponse, Wr as CreateAgentClaimLinkResponses, Ws as GetChallengeError, Wt as installTemplate, Wu as ListPayoutAddressesResponse, X as createEndpoint, Xa as DeleteMemoryResponse, Xc as GetSpendPolicyError, Xd as PayChallengeResponses, Xf as ResendCliSignupVerificationData, Xg as UpdateWakeScheduleInput, Xh as UpdateAccountInput, Xi as CreateWakeAuthorizationResponse, Xl as ListDeliveriesError, Xm as StartCliLoginInput, Xn as updateWakeAuthorization, Xo as DownloadRawEmailResponses, Xp as SendPermissionAddress, Xr as CreateChallengeResponses, Xs as GetConversationErrors, Xt as listFilters, Xu as ListRegistriesResponses, Y as createEmailChallenge, Ya as DeleteMemoryErrors, Yc as GetSpendPolicyData, Yd as PayChallengeResponse, Yf as ResendAgentSignupVerificationResponses, Yg as UpdateWakeScheduleErrors, Yh as UpdateAccountErrors, Yi as CreateWakeAuthorizationInput, Yl as ListDeliveriesData, Ym as StartCliLoginErrors, Yn as updateSpendPolicy, Yo as DownloadRawEmailResponse, Yp as SendMailResult, Yr as CreateChallengeResponse, Ys as GetConversationError, Yt as listEndpoints, Yu as ListRegistriesResponse, Z as createFilter, Za as DeleteMemoryResponses, Zc as GetSpendPolicyErrors, Zd as PlanLimits, Zf as ResendCliSignupVerificationError, Zg as UpdateWakeScheduleResponse, Zh as UpdateAccountResponse, Zi as CreateWakeAuthorizationResponses, Zl as ListDeliveriesErrors, Zm as StartCliLoginResponse, Zn as updateWakeSchedule, Zo as EmailAddress, Zp as SendPermissionAnyRecipient, Zr as CreateEmailChallengeData, Zs as GetConversationResponse, Zt as listFunctionLogs, Zu as ListRegistryAgentsData, _ as MemorySetInput, __ as VerifyCliSignupResponses, _a as DeleteDomainData, _c as GetFunctionTestRunTraceResponse, _d as ListTemplatesErrors, _f as RegisterPayoutAddressResponse, _g as UpdateFunctionData, _h as TemplateSecretGroup, _i as CreateFunctionErrors, _l as GetThreadErrors, _m as SetMemoryError, _n as replayEmailWebhooks, _o as DeleteWakeAuthorizationResponse, _p as RunWakeScheduleErrors, _r as AgentSignupStartResult, _s as FunctionRouteBody, _t as deleteWakeAuthorization, _u as ListFiltersError, a as ForwardInput, a_ as VerifyAgentClaimResponses, aa as DecideRegistryRequestData, ac as GetFunctionError, ad as ListRoutesData, af as PublishAgentError, ag as UpdateEndpointData, ah as StorageStats, ai as CreateEndpointErrors, al as GetTemplateData, am as SetFunctionRouteData, an as listRoutes, ao as DeleteRegistryError, ap as ResolveRegistryHandleResponse, ar as AddDomainError, as as EmailSearchMeta, at as decideRegistryRequest, au as ListEmailsData, b as ReplyInput, b_ as VerifyDomainErrors, ba as DeleteDomainResponse, bc as GetInboxStatusError, bd as ListWakeAuthorizationsData, bf as RegistryAgent, bg as UpdateFunctionInput, bh as TemplateVariable, bi as CreateFunctionResponses, bl as GetWakeScheduleData, bm as SetMemoryResponse, bn as resendCliSignupVerification, bo as DeleteWakeScheduleError, bp as SearchEmailsData, br as CliLoginStartResult, bs as FunctionSecretListItem, bt as downloadAttachments, bu as ListFiltersResponses, c as InboxStreamOptions, c_ as VerifyAgentSignupErrors, ca as DecideRegistryRequestInput, cc as GetFunctionResponses, cd as ListRoutesResponse, cf as PublishAgentResponse, cg as UpdateEndpointInput, ch as TemplateInstall, ci as CreateEndpointResponses, cl as GetTemplateInstallData, cm as SetFunctionRouteResponse, cn as listWakeAuthorizations, co as DeleteRegistryResponses, cp as RotateWebhookSecretData, cr as AddDomainResponse, cs as EmailSummary, ct as deleteEmail, cu as ListEmailsResponse, d as MemoryGetInput, d_ as VerifyAgentSignupResponses, da as DefineAgentData, dc as GetFunctionRoutingErrors, dd as ListSentEmailsError, df as PublishPolicy, dg as UpdateFilterData, dh as TemplateManifest, di as CreateFilterErrors, dl as GetTemplateInstallResponse, dm as SetFunctionSecretError, dn as payChallenge, do as DeleteRouteErrors, dp as RotateWebhookSecretResponse, dr as AgentAccountUpgradeHint, ds as ErrorResponse, dt as deleteFunction, du as ListEndpointsError, e_ as VerifyAgentClaimData, ea as CreateWakeScheduleErrors, ec as GetEmailError, ed as ListRegistryRequestsData, ef as PollCliLoginErrors, eg as UpdateDomainError, eh as StartCliSignupError, ei as CreateEmailChallengeInput, el as GetStorageStatsData, em as SendPermissionYourDomain, en as listOrgSecrets, eo as DeleteOrgSecretError, ep as ResendCliSignupVerificationResponse, er as verifyCliSignup, es as EmailDetail, et as createOrgSecret, eu as ListDomainsData, f as MemoryJsonValue, f_ as VerifyCliSignupData, fa as DefineAgentError, fc as GetFunctionRoutingResponse, fd as ListSentEmailsErrors, ff as RecipientRoute, fg as UpdateFilterError, fh as TemplateRegistryDetail, fi as CreateFilterInput, fl as GetTemplateInstallResponses, fm as SetFunctionSecretErrors, fn as pollCliLogin, fo as DeleteRouteResponse, fp as RotateWebhookSecretResponses, fr as AgentClaimLinkResult, fs as Filter, ft as deleteFunctionSecret, fu as ListEndpointsErrors, g as MemorySearchResponse, g_ as VerifyCliSignupResponse, ga as DefineAgentResponses, gc as GetFunctionTestRunTraceErrors, gd as ListTemplatesError, gf as RegisterPayoutAddressInput, gg as UpdateFilterResponses, gh as TemplateSecret, gi as CreateFunctionError, gl as GetThreadError, gm as SetMemoryData, gn as replayDelivery, go as DeleteWakeAuthorizationErrors, gp as RunWakeScheduleError, gr as AgentSignupResendResult, gs as FunctionLogRow, gt as deleteRoute, gu as ListFiltersData, h as MemorySearchInput, h_ as VerifyCliSignupInput, ha as DefineAgentResponse, hc as GetFunctionTestRunTraceError, hd as ListTemplatesData, hf as RegisterPayoutAddressErrors, hg as UpdateFilterResponse, hh as TemplateRegistrySummary, hi as CreateFunctionData, hl as GetThreadData, hm as SetFunctionSecretResponses, hn as reorderRoutes, ho as DeleteWakeAuthorizationError, hp as RunWakeScheduleData, hr as AgentOrgRef, hs as FunctionListItem, ht as deleteRegistry, hu as ListEnvelope, i as CreatedAgent, i_ as VerifyAgentClaimResponse, ia as Cursor, ic as GetFunctionData, id as ListRegistryRequestsResponses, if as PublishAgentData, ig as UpdateDomainResponses, ih as StartCliSignupResponses, ii as CreateEndpointError, il as GetStorageStatsResponses, im as SentEmailSummary, in as listRegistryRequests, io as DeleteRegistryData, ip as ResolveRegistryHandleErrors, ir as AddDomainData, is as EmailSearchHighlights, it as createWakeSchedule, iu as ListDomainsResponses, j as createAgent, j_ as X402NonceBinding, ja as DeleteEndpointResponses, jc as GetOrgRoutingTopologyErrors, jd as ListWakeSchedulesError, jf as ReplayDeliveryResponse, jg as UpdateRouteErrors, jh as TestFunctionResponses, ji as CreateOrgSecretInput, jl as InboxStatus, jm as SimulateRouteInput, jn as setMemory, jo as DiscardEmailContentResponses, jp as SemanticSearchData, jr as Conversation, js as GateDenial, jt as getInboxStatus, ju as ListFunctionsData, k as WaitForNextOptions, k_ as X402EmailChallenge, ka as DeleteEndpointErrors, kc as GetOrgRoutingTopologyData, kd as ListWakeDispatchesResponses, kf as ReplayDeliveryError, kg as UpdateRouteData, kh as TestFunctionErrors, ki as CreateOrgSecretError, kl as GetWebhookSecretResponses, km as SimulateRouteError, kn as setFunctionRoute, ko as DiscardEmailContentErrors, kp as SearchMemoriesResponses, kr as CliSignupStartResult, ks as FunctionTestRunState, kt as getFunctionRouting, ku as ListFunctionSecretsResponse, l as MemoriesResource, l_ as VerifyAgentSignupInput, la as DecideRegistryRequestResponse, lc as GetFunctionRoutingData, ld as ListRoutesResponses, lf as PublishAgentResponses, lg as UpdateEndpointResponse, lh as TemplateInstallState, li as CreateFilterData, ll as GetTemplateInstallError, lm as SetFunctionRouteResponses, ln as listWakeDispatches, lo as DeleteRouteData, lp as RotateWebhookSecretError, lr as AddDomainResponses, ls as EmailWebhookStatus, lt as deleteEndpoint, lu as ListEmailsResponses, m as MemoryRecordWithValue, m_ as VerifyCliSignupErrors, ma as DefineAgentInput, mc as GetFunctionTestRunTraceData, md as ListSentEmailsResponses, mf as RegisterPayoutAddressError, mg as UpdateFilterInput, mh as TemplateRegistryStatus, mi as CreateFilterResponses, ml as GetTemplateResponses, mm as SetFunctionSecretResponse, mn as registerPayoutAddress, mo as DeleteWakeAuthorizationData, mp as RoutingTopology, mr as AgentClaimStartResult, ms as FunctionDetail, mt as deleteOrgSecret, mu as ListEndpointsResponses, n as AgentResource, n_ as VerifyAgentClaimErrors, na as CreateWakeScheduleResponse, nc as GetEmailResponse, nd as ListRegistryRequestsErrors, nf as PollCliLoginResponse, ng as UpdateDomainInput, nh as StartCliSignupInput, ni as CreateEmailChallengeResponses, nl as GetStorageStatsErrors, nm as SentEmailDetail, nn as listRegistries, no as DeleteOrgSecretResponse, np as ResolveRegistryHandleData, nr as Account, ns as EmailSearchFacetBucket, nt as createRoute, nu as ListDomainsErrors, o as InboundEmail, o_ as VerifyAgentSignupData, oa as DecideRegistryRequestError, oc as GetFunctionErrors, od as ListRoutesError, of as PublishAgentErrors, og as UpdateEndpointError, oh as SuccessEnvelope, oi as CreateEndpointInput, ol as GetTemplateError, om as SetFunctionRouteError, on as listSentEmails, oo as DeleteRegistryErrors, op as ResolveRegistryHandleResponses, or as AddDomainErrors, os as EmailSearchResult, ot as defineAgent, ou as ListEmailsError, p as MemoryRecord, p_ as VerifyCliSignupError, pa as DefineAgentErrors, pc as GetFunctionRoutingResponses, pd as ListSentEmailsResponse, pf as RegisterPayoutAddressData, pg as UpdateFilterErrors, ph as TemplateRegistryPage, pi as CreateFilterResponse, pl as GetTemplateResponse, pm as SetFunctionSecretInput, pn as publishAgent, po as DeleteRouteResponses, pp as RouteEvaluatedEntry, pr as AgentClaimResult, ps as FunctionDeployStatus, pt as deleteMemory, pu as ListEndpointsResponse, q as createAgentClaimLink, q_ as Auth, qa as DeleteMemoryData, qc as GetSentEmailResponse, qd as PayChallengeErrors, qf as ResendAgentSignupVerificationInput, qg as UpdateWakeScheduleData, qh as UpdateAccountData, qi as CreateWakeAuthorizationError, ql as ListDeclinedPaymentsResponse, qm as StartCliLoginData, qn as updateRegistry, qo as DownloadRawEmailError, qp as SendMailInput, qr as CreateChallengeErrors, qs as GetChallengeResponses, qt as listDomains, qu as ListRegistriesError, r as CreateAgentOptions, r_ as VerifyAgentClaimInput, ra as CreateWakeScheduleResponses, rc as GetEmailResponses, rd as ListRegistryRequestsResponse, rf as PollCliLoginResponses, rg as UpdateDomainResponse, rh as StartCliSignupResponse, ri as CreateEndpointData, rl as GetStorageStatsResponse, rm as SentEmailStatus, rn as listRegistryAgents, ro as DeleteOrgSecretResponses, rp as ResolveRegistryHandleError, rr as AccountUpdated, rs as EmailSearchFacets, rt as createWakeAuthorization, ru as ListDomainsResponse, s as InboxResource, s_ as VerifyAgentSignupError, sa as DecideRegistryRequestErrors, sc as GetFunctionResponse, sd as ListRoutesErrors, sf as PublishAgentInput, sg as UpdateEndpointErrors, sh as TemplateAuthor, si as CreateEndpointResponse, sl as GetTemplateErrors, sm as SetFunctionRouteErrors, sn as listTemplates, so as DeleteRegistryResponse, sp as ResourceId, sr as AddDomainInput, ss as EmailStatus, st as deleteDomain, su as ListEmailsErrors, t as AccountResource, t_ as VerifyAgentClaimError, ta as CreateWakeScheduleInput, tc as GetEmailErrors, td as ListRegistryRequestsError, tf as PollCliLoginInput, tg as UpdateDomainErrors, th as StartCliSignupErrors, ti as CreateEmailChallengeResponse, tl as GetStorageStatsError, tm as SendPermissionsMeta, tn as listPayoutAddresses, to as DeleteOrgSecretErrors, tp as ResendCliSignupVerificationResponses, tr as verifyDomain, ts as EmailDetailReply, tt as createRegistry, tu as ListDomainsError, u as MemoryDeleteInput, u_ as VerifyAgentSignupResponse, ua as DecideRegistryRequestResponses, uc as GetFunctionRoutingError, ud as ListSentEmailsData, uf as PublishAgentResult, ug as UpdateEndpointResponses, uh as TemplateInstallStatus, ui as CreateFilterError, ul as GetTemplateInstallErrors, um as SetFunctionSecretData, un as listWakeSchedules, uo as DeleteRouteError, up as RotateWebhookSecretErrors, ur as AgentAccountResult, us as Endpoint, ut as deleteFilter, uu as ListEndpointsData, v as PrimitiveClient, v_ as VerifyDomainData, va as DeleteDomainError, vc as GetFunctionTestRunTraceResponses, vd as ListTemplatesResponse, vf as RegisterPayoutAddressResponses, vg as UpdateFunctionError, vh as TemplateSetup, vi as CreateFunctionInput, vl as GetThreadResponse, vm as SetMemoryErrors, vn as replyToEmail, vo as DeleteWakeAuthorizationResponses, vp as RunWakeScheduleResponse, vr as AgentSignupVerifyResult, vs as FunctionRouteResult, vt as deleteWakeSchedule, vu as ListFiltersErrors, w as SendAttachmentInput, w_ as WakeDispatch, wa as DeleteEmailErrors, wc as GetMemoryData, wd as ListWakeAuthorizationsResponses, wf as ReorderRoutesErrors, wg as UpdateRegistryError, wh as TestEndpointErrors, wi as CreateFunctionSecretErrors, wl as GetWakeScheduleResponses, wm as SetOrgSecretErrors, wn as sdk_gen_d_exports, wo as DeliveryStatus, wp as SearchEmailsResponses, wr as CliLogoutInput, ws as FunctionTestRunDeliveryEndpoint, wt as getAgent, wu as ListFunctionLogsResponse, x as RequestOptions$2, x_ as VerifyDomainResponse, xa as DeleteDomainResponses, xc as GetInboxStatusErrors, xd as ListWakeAuthorizationsError, xf as RegistryRequest, xg as UpdateFunctionResponse, xh as TemplateVariableValidation, xi as CreateFunctionResult, xl as GetWakeScheduleError, xm as SetMemoryResponses, xn as resolveRegistryHandle, xo as DeleteWakeScheduleErrors, xp as SearchEmailsError, xr as CliLogoutData, xs as FunctionSecretWriteResult, xt as downloadDomainZoneFile, xu as ListFunctionLogsData, y as PrimitiveClientOptions, y_ as VerifyDomainError, ya as DeleteDomainErrors, yc as GetInboxStatusData, yd as ListTemplatesResponses, yf as Registry, yg as UpdateFunctionErrors, yh as TemplateSource, yi as CreateFunctionResponse, yl as GetThreadResponses, ym as SetMemoryInput, yn as resendAgentSignupVerification, yo as DeleteWakeScheduleData, yp as RunWakeScheduleResponses, yr as CliLoginPollResult, ys as FunctionRouting, yt as discardEmailContent, yu as ListFiltersResponse, z as PrimitiveApiClientOptions, z_ as ClientOptions, za as DeleteFunctionErrors, zc as GetSendPermissionsData, zd as MemoryScopeQueryType, zf as ReplyToEmailData, zg as UpdateSpendPolicyResponse, zh as UnpublishAgentResponse, zi as CreateRegistryResponses, zl as InstallTemplateError, zm as StartAgentClaimResponse, zn as testFunction, zo as DownloadAttachmentsResponse, zp as SemanticSearchScoreBreakdown, zr as CreateAgentClaimLinkData, zs as GetAgentError, zt as getTemplate, zu as ListOrgSecretsResponse } from "../index-Da2SjL1d.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 ValidateEmailAuthResult, f as EmailReceivedEvent, n as AuthVerdict, t as AuthConfidence } from "../types-DVjBmOg0.js";
|
|
4
4
|
import { T as normalizeReceivedEmail, _ as isTrustedSender, b as ReceivedEmailAddress, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, m as TrustReason, p as WebhookVerificationErrorCode, v as validateEmailAuth, x as ReceivedEmailThread, y as ReceivedEmail } from "../errors-DAHv2kWU.js";
|
|
5
|
-
export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, AuthConfidence, AuthVerdict, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, Config, Config as PrimitiveGeneratedApiConfig, Conversation, ConversationMessage, CreateAgentAccountData, CreateAgentAccountError, CreateAgentAccountErrors, CreateAgentAccountInput, CreateAgentAccountResponse, CreateAgentAccountResponses, CreateAgentClaimLinkData, CreateAgentClaimLinkError, CreateAgentClaimLinkErrors, CreateAgentClaimLinkInput, CreateAgentClaimLinkResponse, CreateAgentClaimLinkResponses, CreateAgentOptions, CreateChallengeData, CreateChallengeError, CreateChallengeErrors, CreateChallengeInput, CreateChallengeResponse, CreateChallengeResponses, CreateClientConfig, CreateEmailChallengeData, CreateEmailChallengeError, CreateEmailChallengeErrors, CreateEmailChallengeInput, CreateEmailChallengeResponse, CreateEmailChallengeResponses, CreateEndpointData, CreateEndpointError, CreateEndpointErrors, CreateEndpointInput, CreateEndpointResponse, CreateEndpointResponses, CreateFilterData, CreateFilterError, CreateFilterErrors, CreateFilterInput, CreateFilterResponse, CreateFilterResponses, CreateFunctionData, CreateFunctionError, CreateFunctionErrors, CreateFunctionInput, CreateFunctionResponse, CreateFunctionResponses, CreateFunctionResult, CreateFunctionSecretData, CreateFunctionSecretError, CreateFunctionSecretErrors, CreateFunctionSecretInput, CreateFunctionSecretResponse, CreateFunctionSecretResponses, CreateOrgSecretData, CreateOrgSecretError, CreateOrgSecretErrors, CreateOrgSecretInput, CreateOrgSecretResponse, CreateOrgSecretResponses, CreateRegistryData, CreateRegistryError, CreateRegistryErrors, CreateRegistryInput, CreateRegistryResponse, CreateRegistryResponses, CreateRouteData, CreateRouteError, CreateRouteErrors, CreateRouteInput, CreateRouteResponse, CreateRouteResponses, CreateWakeAuthorizationData, CreateWakeAuthorizationError, CreateWakeAuthorizationErrors, CreateWakeAuthorizationInput, CreateWakeAuthorizationResponse, CreateWakeAuthorizationResponses, CreateWakeScheduleData, CreateWakeScheduleError, CreateWakeScheduleErrors, CreateWakeScheduleInput, CreateWakeScheduleResponse, CreateWakeScheduleResponses, CreatedAgent, Cursor, DEFAULT_API_BASE_URL, DecideRegistryRequestData, DecideRegistryRequestError, DecideRegistryRequestErrors, DecideRegistryRequestInput, DecideRegistryRequestResponse, DecideRegistryRequestResponses, DefineAgentData, DefineAgentError, DefineAgentErrors, DefineAgentInput, DefineAgentResponse, DefineAgentResponses, DeleteDomainData, DeleteDomainError, DeleteDomainErrors, DeleteDomainResponse, DeleteDomainResponses, DeleteEmailData, DeleteEmailError, DeleteEmailErrors, DeleteEmailResponse, DeleteEmailResponses, DeleteEndpointData, DeleteEndpointError, DeleteEndpointErrors, DeleteEndpointResponse, DeleteEndpointResponses, DeleteFilterData, DeleteFilterError, DeleteFilterErrors, DeleteFilterResponse, DeleteFilterResponses, DeleteFunctionData, DeleteFunctionError, DeleteFunctionErrors, DeleteFunctionResponse, DeleteFunctionResponses, DeleteFunctionSecretData, DeleteFunctionSecretError, DeleteFunctionSecretErrors, DeleteFunctionSecretResponse, DeleteFunctionSecretResponses, DeleteMemoryData, DeleteMemoryError, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteMemoryResult, DeleteOrgSecretData, DeleteOrgSecretError, DeleteOrgSecretErrors, DeleteOrgSecretResponse, DeleteOrgSecretResponses, DeleteRegistryData, DeleteRegistryError, DeleteRegistryErrors, DeleteRegistryResponse, DeleteRegistryResponses, DeleteRouteData, DeleteRouteError, DeleteRouteErrors, DeleteRouteResponse, DeleteRouteResponses, DeleteWakeAuthorizationData, DeleteWakeAuthorizationError, DeleteWakeAuthorizationErrors, DeleteWakeAuthorizationResponse, DeleteWakeAuthorizationResponses, DeleteWakeScheduleData, DeleteWakeScheduleError, DeleteWakeScheduleErrors, DeleteWakeScheduleResponse, DeleteWakeScheduleResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, FunctionRouteBody, FunctionRouteResult, FunctionRouting, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetChallengeData, GetChallengeError, GetChallengeErrors, GetChallengeResponse, GetChallengeResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionRoutingData, GetFunctionRoutingError, GetFunctionRoutingErrors, GetFunctionRoutingResponse, GetFunctionRoutingResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetOrgRoutingTopologyData, GetOrgRoutingTopologyError, GetOrgRoutingTopologyErrors, GetOrgRoutingTopologyResponse, GetOrgRoutingTopologyResponses, GetRegistryData, GetRegistryError, GetRegistryErrors, GetRegistryResponse, GetRegistryResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetSpendPolicyData, GetSpendPolicyError, GetSpendPolicyErrors, GetSpendPolicyResponse, GetSpendPolicyResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateInstallData, GetTemplateInstallError, GetTemplateInstallErrors, GetTemplateInstallResponse, GetTemplateInstallResponses, GetTemplateResponse, GetTemplateResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWakeScheduleData, GetWakeScheduleError, GetWakeScheduleErrors, GetWakeScheduleResponse, GetWakeScheduleResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, IdempotencyKey, InboundEmail, InboxResource, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, InboxStreamOptions, InstallTemplateBody, InstallTemplateData, InstallTemplateError, InstallTemplateErrors, InstallTemplateResponse, InstallTemplateResponses, Limit, ListDeclinedPaymentsData, ListDeclinedPaymentsError, ListDeclinedPaymentsErrors, ListDeclinedPaymentsResponse, ListDeclinedPaymentsResponses, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListOrgSecretsData, ListOrgSecretsError, ListOrgSecretsErrors, ListOrgSecretsResponse, ListOrgSecretsResponses, ListPayoutAddressesData, ListPayoutAddressesError, ListPayoutAddressesErrors, ListPayoutAddressesResponse, ListPayoutAddressesResponses, ListRegistriesData, ListRegistriesError, ListRegistriesErrors, ListRegistriesResponse, ListRegistriesResponses, ListRegistryAgentsData, ListRegistryAgentsResponse, ListRegistryAgentsResponses, ListRegistryRequestsData, ListRegistryRequestsError, ListRegistryRequestsErrors, ListRegistryRequestsResponse, ListRegistryRequestsResponses, ListRoutesData, ListRoutesError, ListRoutesErrors, ListRoutesResponse, ListRoutesResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListWakeAuthorizationsData, ListWakeAuthorizationsError, ListWakeAuthorizationsErrors, ListWakeAuthorizationsResponse, ListWakeAuthorizationsResponses, ListWakeDispatchesData, ListWakeDispatchesError, ListWakeDispatchesErrors, ListWakeDispatchesResponse, ListWakeDispatchesResponses, ListWakeSchedulesData, ListWakeSchedulesError, ListWakeSchedulesErrors, ListWakeSchedulesResponse, ListWakeSchedulesResponses, MemoriesResource, MemoryDeleteInput, MemoryGetInput, MemoryJsonValue, MemoryKeyQuery, MemoryRecord, MemoryRecordWithValue, MemoryResolvedScope, MemoryScope, MemoryScopeId, MemoryScopeQueryType, MemorySearchInput, MemorySearchResponse, MemorySetInput, NumericString, Options, Options as PrimitiveGeneratedApiOptions, OrgSecretListItem, OrgSecretWriteResult, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, PayChallengeData, PayChallengeError, PayChallengeErrors, PayChallengeInput, PayChallengeResponse, PayChallengeResponses, PlanLimits, PollCliLoginData, PollCliLoginError, PollCliLoginErrors, PollCliLoginInput, PollCliLoginResponse, PollCliLoginResponses, PrimitiveApiClient, PrimitiveApiClientOptions, PrimitiveApiError, PrimitiveApiErrorDetails, PrimitiveClient, PrimitiveClientOptions, RequestOptions as PrimitiveGeneratedApiRequestOptions, RequestResult as PrimitiveGeneratedApiRequestResult, RequestResult, PrimitiveOperationManifest, PrimitiveParameterManifest, RequestOptions$1 as PrimitiveRequestOptions, PublishAgentData, PublishAgentError, PublishAgentErrors, PublishAgentInput, PublishAgentResponse, PublishAgentResponses, PublishAgentResult, PublishPolicy, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, RecipientRoute, RegisterPayoutAddressData, RegisterPayoutAddressError, RegisterPayoutAddressErrors, RegisterPayoutAddressInput, RegisterPayoutAddressResponse, RegisterPayoutAddressResponses, Registry, RegistryAgent, RegistryRequest, ReorderRoutesData, ReorderRoutesError, ReorderRoutesErrors, ReorderRoutesInput, ReorderRoutesResponse, ReorderRoutesResponses, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResolveRegistryHandleData, ResolveRegistryHandleError, ResolveRegistryHandleErrors, ResolveRegistryHandleResponse, ResolveRegistryHandleResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, RouteEvaluatedEntry, RoutingTopology, RunWakeScheduleData, RunWakeScheduleError, RunWakeScheduleErrors, RunWakeScheduleResponse, RunWakeScheduleResponses, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, SearchMemoriesData, SearchMemoriesError, SearchMemoriesErrors, SearchMemoriesResponse, SearchMemoriesResponses, SemanticSearchCoverage, SemanticSearchData, SemanticSearchError, SemanticSearchErrors, SemanticSearchField, SemanticSearchInput, SemanticSearchMeta, SemanticSearchResponse, SemanticSearchResponses, SemanticSearchResult, SemanticSearchScoreBreakdown, SemanticSearchSnippet, SendAttachment, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailResult, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, SentEmailStatus, SentEmailSummary, SetFunctionRouteData, SetFunctionRouteError, SetFunctionRouteErrors, SetFunctionRouteResponse, SetFunctionRouteResponses, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, SetMemoryData, SetMemoryError, SetMemoryErrors, SetMemoryInput, SetMemoryResponse, SetMemoryResponses, SetOrgSecretData, SetOrgSecretError, SetOrgSecretErrors, SetOrgSecretInput, SetOrgSecretResponse, SetOrgSecretResponses, SimulateRouteData, SimulateRouteError, SimulateRouteErrors, SimulateRouteInput, SimulateRouteResponse, SimulateRouteResponses, SimulateRouteResult, StartAgentClaimData, StartAgentClaimError, StartAgentClaimErrors, StartAgentClaimInput, StartAgentClaimResponse, StartAgentClaimResponses, StartAgentSignupData, StartAgentSignupError, StartAgentSignupErrors, StartAgentSignupInput, StartAgentSignupResponse, StartAgentSignupResponses, StartCliLoginData, StartCliLoginError, StartCliLoginErrors, StartCliLoginInput, StartCliLoginResponse, StartCliLoginResponses, StartCliSignupData, StartCliSignupError, StartCliSignupErrors, StartCliSignupInput, StartCliSignupResponse, StartCliSignupResponses, StorageStats, SuccessEnvelope, TemplateAuthor, TemplateInstall, TemplateInstallState, TemplateInstallStatus, TemplateManifest, TemplateRegistryDetail, TemplateRegistryPage, TemplateRegistryStatus, TemplateRegistrySummary, TemplateSecret, TemplateSecretGroup, TemplateSetup, TemplateSource, TemplateVariable, TemplateVariableValidation, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestFunctionData, TestFunctionError, TestFunctionErrors, TestFunctionResponse, TestFunctionResponses, TestInvocationResult, TestResult, Thread, ThreadMessage, TrustReason, TrustedSenderOptions, TrustedSenderResult, UnpublishAgentData, UnpublishAgentError, UnpublishAgentErrors, UnpublishAgentResponse, UnpublishAgentResponses, UnsetFunctionRouteData, UnsetFunctionRouteError, UnsetFunctionRouteErrors, UnsetFunctionRouteResponse, UnsetFunctionRouteResponses, UnverifiedDomain, UpdateAccountData, UpdateAccountError, UpdateAccountErrors, UpdateAccountInput, UpdateAccountResponse, UpdateAccountResponses, UpdateDomainData, UpdateDomainError, UpdateDomainErrors, UpdateDomainInput, UpdateDomainResponse, UpdateDomainResponses, UpdateEndpointData, UpdateEndpointError, UpdateEndpointErrors, UpdateEndpointInput, UpdateEndpointResponse, UpdateEndpointResponses, UpdateFilterData, UpdateFilterError, UpdateFilterErrors, UpdateFilterInput, UpdateFilterResponse, UpdateFilterResponses, UpdateFunctionData, UpdateFunctionError, UpdateFunctionErrors, UpdateFunctionInput, UpdateFunctionResponse, UpdateFunctionResponses, UpdateRegistryData, UpdateRegistryError, UpdateRegistryErrors, UpdateRegistryInput, UpdateRegistryResponse, UpdateRegistryResponses, UpdateRouteData, UpdateRouteError, UpdateRouteErrors, UpdateRouteInput, UpdateRouteResponse, UpdateRouteResponses, UpdateSpendPolicyData, UpdateSpendPolicyError, UpdateSpendPolicyErrors, UpdateSpendPolicyInput, UpdateSpendPolicyResponse, UpdateSpendPolicyResponses, UpdateWakeAuthorizationData, UpdateWakeAuthorizationError, UpdateWakeAuthorizationErrors, UpdateWakeAuthorizationInput, UpdateWakeAuthorizationResponse, UpdateWakeAuthorizationResponses, UpdateWakeScheduleData, UpdateWakeScheduleError, UpdateWakeScheduleErrors, UpdateWakeScheduleInput, UpdateWakeScheduleResponse, UpdateWakeScheduleResponses, ValidateEmailAuthResult, VerifiedDomain, VerifyAgentClaimData, VerifyAgentClaimError, VerifyAgentClaimErrors, VerifyAgentClaimInput, VerifyAgentClaimResponse, VerifyAgentClaimResponses, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WaitForNextOptions, WakeAuthorization, WakeDispatch, WakeSchedule, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, X402Challenge, X402DeclinedPayment, X402EmailChallenge, X402EmailChallengeDetails, X402NonceBinding, X402PaymentPayload, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, isMemoryJsonValue, isTrustedSender, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, validateEmailAuth, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
5
|
+
export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, AuthConfidence, AuthVerdict, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, Config, Config as PrimitiveGeneratedApiConfig, Conversation, ConversationMessage, CreateAgentAccountData, CreateAgentAccountError, CreateAgentAccountErrors, CreateAgentAccountInput, CreateAgentAccountResponse, CreateAgentAccountResponses, CreateAgentClaimLinkData, CreateAgentClaimLinkError, CreateAgentClaimLinkErrors, CreateAgentClaimLinkInput, CreateAgentClaimLinkResponse, CreateAgentClaimLinkResponses, CreateAgentOptions, CreateChallengeData, CreateChallengeError, CreateChallengeErrors, CreateChallengeInput, CreateChallengeResponse, CreateChallengeResponses, CreateClientConfig, CreateEmailChallengeData, CreateEmailChallengeError, CreateEmailChallengeErrors, CreateEmailChallengeInput, CreateEmailChallengeResponse, CreateEmailChallengeResponses, CreateEndpointData, CreateEndpointError, CreateEndpointErrors, CreateEndpointInput, CreateEndpointResponse, CreateEndpointResponses, CreateFilterData, CreateFilterError, CreateFilterErrors, CreateFilterInput, CreateFilterResponse, CreateFilterResponses, CreateFunctionData, CreateFunctionError, CreateFunctionErrors, CreateFunctionInput, CreateFunctionResponse, CreateFunctionResponses, CreateFunctionResult, CreateFunctionSecretData, CreateFunctionSecretError, CreateFunctionSecretErrors, CreateFunctionSecretInput, CreateFunctionSecretResponse, CreateFunctionSecretResponses, CreateOrgSecretData, CreateOrgSecretError, CreateOrgSecretErrors, CreateOrgSecretInput, CreateOrgSecretResponse, CreateOrgSecretResponses, CreateRegistryData, CreateRegistryError, CreateRegistryErrors, CreateRegistryInput, CreateRegistryResponse, CreateRegistryResponses, CreateRouteData, CreateRouteError, CreateRouteErrors, CreateRouteInput, CreateRouteResponse, CreateRouteResponses, CreateWakeAuthorizationData, CreateWakeAuthorizationError, CreateWakeAuthorizationErrors, CreateWakeAuthorizationInput, CreateWakeAuthorizationResponse, CreateWakeAuthorizationResponses, CreateWakeScheduleData, CreateWakeScheduleError, CreateWakeScheduleErrors, CreateWakeScheduleInput, CreateWakeScheduleResponse, CreateWakeScheduleResponses, CreatedAgent, Cursor, DEFAULT_API_BASE_URL, DecideRegistryRequestData, DecideRegistryRequestError, DecideRegistryRequestErrors, DecideRegistryRequestInput, DecideRegistryRequestResponse, DecideRegistryRequestResponses, DefineAgentData, DefineAgentError, DefineAgentErrors, DefineAgentInput, DefineAgentResponse, DefineAgentResponses, DeleteDomainData, DeleteDomainError, DeleteDomainErrors, DeleteDomainResponse, DeleteDomainResponses, DeleteEmailData, DeleteEmailError, DeleteEmailErrors, DeleteEmailResponse, DeleteEmailResponses, DeleteEndpointData, DeleteEndpointError, DeleteEndpointErrors, DeleteEndpointResponse, DeleteEndpointResponses, DeleteFilterData, DeleteFilterError, DeleteFilterErrors, DeleteFilterResponse, DeleteFilterResponses, DeleteFunctionData, DeleteFunctionError, DeleteFunctionErrors, DeleteFunctionResponse, DeleteFunctionResponses, DeleteFunctionSecretData, DeleteFunctionSecretError, DeleteFunctionSecretErrors, DeleteFunctionSecretResponse, DeleteFunctionSecretResponses, DeleteMemoryData, DeleteMemoryError, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteMemoryResult, DeleteOrgSecretData, DeleteOrgSecretError, DeleteOrgSecretErrors, DeleteOrgSecretResponse, DeleteOrgSecretResponses, DeleteRegistryData, DeleteRegistryError, DeleteRegistryErrors, DeleteRegistryResponse, DeleteRegistryResponses, DeleteRouteData, DeleteRouteError, DeleteRouteErrors, DeleteRouteResponse, DeleteRouteResponses, DeleteWakeAuthorizationData, DeleteWakeAuthorizationError, DeleteWakeAuthorizationErrors, DeleteWakeAuthorizationResponse, DeleteWakeAuthorizationResponses, DeleteWakeScheduleData, DeleteWakeScheduleError, DeleteWakeScheduleErrors, DeleteWakeScheduleResponse, DeleteWakeScheduleResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, FunctionRouteBody, FunctionRouteResult, FunctionRouting, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetChallengeData, GetChallengeError, GetChallengeErrors, GetChallengeResponse, GetChallengeResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionRoutingData, GetFunctionRoutingError, GetFunctionRoutingErrors, GetFunctionRoutingResponse, GetFunctionRoutingResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetOrgRoutingTopologyData, GetOrgRoutingTopologyError, GetOrgRoutingTopologyErrors, GetOrgRoutingTopologyResponse, GetOrgRoutingTopologyResponses, GetRegistryData, GetRegistryError, GetRegistryErrors, GetRegistryResponse, GetRegistryResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetSpendPolicyData, GetSpendPolicyError, GetSpendPolicyErrors, GetSpendPolicyResponse, GetSpendPolicyResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateInstallData, GetTemplateInstallError, GetTemplateInstallErrors, GetTemplateInstallResponse, GetTemplateInstallResponses, GetTemplateResponse, GetTemplateResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWakeScheduleData, GetWakeScheduleError, GetWakeScheduleErrors, GetWakeScheduleResponse, GetWakeScheduleResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, IdempotencyKey, InboundEmail, InboxResource, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, InboxStreamOptions, InstallTemplateBody, InstallTemplateData, InstallTemplateError, InstallTemplateErrors, InstallTemplateResponse, InstallTemplateResponses, Limit, ListDeclinedPaymentsData, ListDeclinedPaymentsError, ListDeclinedPaymentsErrors, ListDeclinedPaymentsResponse, ListDeclinedPaymentsResponses, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListOrgSecretsData, ListOrgSecretsError, ListOrgSecretsErrors, ListOrgSecretsResponse, ListOrgSecretsResponses, ListPayoutAddressesData, ListPayoutAddressesError, ListPayoutAddressesErrors, ListPayoutAddressesResponse, ListPayoutAddressesResponses, ListRegistriesData, ListRegistriesError, ListRegistriesErrors, ListRegistriesResponse, ListRegistriesResponses, ListRegistryAgentsData, ListRegistryAgentsResponse, ListRegistryAgentsResponses, ListRegistryRequestsData, ListRegistryRequestsError, ListRegistryRequestsErrors, ListRegistryRequestsResponse, ListRegistryRequestsResponses, ListRoutesData, ListRoutesError, ListRoutesErrors, ListRoutesResponse, ListRoutesResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListWakeAuthorizationsData, ListWakeAuthorizationsError, ListWakeAuthorizationsErrors, ListWakeAuthorizationsResponse, ListWakeAuthorizationsResponses, ListWakeDispatchesData, ListWakeDispatchesError, ListWakeDispatchesErrors, ListWakeDispatchesResponse, ListWakeDispatchesResponses, ListWakeSchedulesData, ListWakeSchedulesError, ListWakeSchedulesErrors, ListWakeSchedulesResponse, ListWakeSchedulesResponses, MemoriesResource, MemoryDeleteInput, MemoryGetInput, MemoryJsonValue, MemoryKeyQuery, MemoryRecord, MemoryRecordWithValue, MemoryResolvedScope, MemoryScope, MemoryScopeId, MemoryScopeQueryType, MemorySearchInput, MemorySearchResponse, MemorySetInput, NumericString, Options, Options as PrimitiveGeneratedApiOptions, OrgSecretListItem, OrgSecretWriteResult, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, PayChallengeData, PayChallengeError, PayChallengeErrors, PayChallengeInput, PayChallengeResponse, PayChallengeResponses, PlanLimits, PollCliLoginData, PollCliLoginError, PollCliLoginErrors, PollCliLoginInput, PollCliLoginResponse, PollCliLoginResponses, PrimitiveApiClient, PrimitiveApiClientOptions, PrimitiveApiError, PrimitiveApiErrorDetails, PrimitiveClient, PrimitiveClientOptions, RequestOptions as PrimitiveGeneratedApiRequestOptions, RequestResult as PrimitiveGeneratedApiRequestResult, RequestResult, PrimitiveOperationManifest, PrimitiveParameterManifest, RequestOptions$1 as PrimitiveRequestOptions, PublishAgentData, PublishAgentError, PublishAgentErrors, PublishAgentInput, PublishAgentResponse, PublishAgentResponses, PublishAgentResult, PublishPolicy, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, RecipientRoute, RegisterPayoutAddressData, RegisterPayoutAddressError, RegisterPayoutAddressErrors, RegisterPayoutAddressInput, RegisterPayoutAddressResponse, RegisterPayoutAddressResponses, Registry, RegistryAgent, RegistryRequest, ReorderRoutesData, ReorderRoutesError, ReorderRoutesErrors, ReorderRoutesInput, ReorderRoutesResponse, ReorderRoutesResponses, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResolveRegistryHandleData, ResolveRegistryHandleError, ResolveRegistryHandleErrors, ResolveRegistryHandleResponse, ResolveRegistryHandleResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, RouteEvaluatedEntry, RoutingTopology, RunWakeScheduleData, RunWakeScheduleError, RunWakeScheduleErrors, RunWakeScheduleResponse, RunWakeScheduleResponses, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, SearchMemoriesData, SearchMemoriesError, SearchMemoriesErrors, SearchMemoriesResponse, SearchMemoriesResponses, SemanticSearchCoverage, SemanticSearchData, SemanticSearchError, SemanticSearchErrors, SemanticSearchField, SemanticSearchInput, SemanticSearchMeta, SemanticSearchResponse, SemanticSearchResponses, SemanticSearchResult, SemanticSearchScoreBreakdown, SemanticSearchSnippet, SendAttachment, SendAttachmentInput, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailPayloadRef, SendMailResult, SendPayloadReference, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, SentEmailStatus, SentEmailSummary, SetFunctionRouteData, SetFunctionRouteError, SetFunctionRouteErrors, SetFunctionRouteResponse, SetFunctionRouteResponses, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, SetMemoryData, SetMemoryError, SetMemoryErrors, SetMemoryInput, SetMemoryResponse, SetMemoryResponses, SetOrgSecretData, SetOrgSecretError, SetOrgSecretErrors, SetOrgSecretInput, SetOrgSecretResponse, SetOrgSecretResponses, SimulateRouteData, SimulateRouteError, SimulateRouteErrors, SimulateRouteInput, SimulateRouteResponse, SimulateRouteResponses, SimulateRouteResult, StartAgentClaimData, StartAgentClaimError, StartAgentClaimErrors, StartAgentClaimInput, StartAgentClaimResponse, StartAgentClaimResponses, StartAgentSignupData, StartAgentSignupError, StartAgentSignupErrors, StartAgentSignupInput, StartAgentSignupResponse, StartAgentSignupResponses, StartCliLoginData, StartCliLoginError, StartCliLoginErrors, StartCliLoginInput, StartCliLoginResponse, StartCliLoginResponses, StartCliSignupData, StartCliSignupError, StartCliSignupErrors, StartCliSignupInput, StartCliSignupResponse, StartCliSignupResponses, StorageStats, SuccessEnvelope, TemplateAuthor, TemplateInstall, TemplateInstallState, TemplateInstallStatus, TemplateManifest, TemplateRegistryDetail, TemplateRegistryPage, TemplateRegistryStatus, TemplateRegistrySummary, TemplateSecret, TemplateSecretGroup, TemplateSetup, TemplateSource, TemplateVariable, TemplateVariableValidation, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestFunctionData, TestFunctionError, TestFunctionErrors, TestFunctionResponse, TestFunctionResponses, TestInvocationResult, TestResult, Thread, ThreadMessage, TrustReason, TrustedSenderOptions, TrustedSenderResult, UnpublishAgentData, UnpublishAgentError, UnpublishAgentErrors, UnpublishAgentResponse, UnpublishAgentResponses, UnsetFunctionRouteData, UnsetFunctionRouteError, UnsetFunctionRouteErrors, UnsetFunctionRouteResponse, UnsetFunctionRouteResponses, UnverifiedDomain, UpdateAccountData, UpdateAccountError, UpdateAccountErrors, UpdateAccountInput, UpdateAccountResponse, UpdateAccountResponses, UpdateDomainData, UpdateDomainError, UpdateDomainErrors, UpdateDomainInput, UpdateDomainResponse, UpdateDomainResponses, UpdateEndpointData, UpdateEndpointError, UpdateEndpointErrors, UpdateEndpointInput, UpdateEndpointResponse, UpdateEndpointResponses, UpdateFilterData, UpdateFilterError, UpdateFilterErrors, UpdateFilterInput, UpdateFilterResponse, UpdateFilterResponses, UpdateFunctionData, UpdateFunctionError, UpdateFunctionErrors, UpdateFunctionInput, UpdateFunctionResponse, UpdateFunctionResponses, UpdateRegistryData, UpdateRegistryError, UpdateRegistryErrors, UpdateRegistryInput, UpdateRegistryResponse, UpdateRegistryResponses, UpdateRouteData, UpdateRouteError, UpdateRouteErrors, UpdateRouteInput, UpdateRouteResponse, UpdateRouteResponses, UpdateSpendPolicyData, UpdateSpendPolicyError, UpdateSpendPolicyErrors, UpdateSpendPolicyInput, UpdateSpendPolicyResponse, UpdateSpendPolicyResponses, UpdateWakeAuthorizationData, UpdateWakeAuthorizationError, UpdateWakeAuthorizationErrors, UpdateWakeAuthorizationInput, UpdateWakeAuthorizationResponse, UpdateWakeAuthorizationResponses, UpdateWakeScheduleData, UpdateWakeScheduleError, UpdateWakeScheduleErrors, UpdateWakeScheduleInput, UpdateWakeScheduleResponse, UpdateWakeScheduleResponses, ValidateEmailAuthResult, VerifiedDomain, VerifyAgentClaimData, VerifyAgentClaimError, VerifyAgentClaimErrors, VerifyAgentClaimInput, VerifyAgentClaimResponse, VerifyAgentClaimResponses, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WaitForNextOptions, WakeAuthorization, WakeDispatch, WakeSchedule, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, X402Challenge, X402DeclinedPayment, X402EmailChallenge, X402EmailChallengeDetails, X402NonceBinding, X402PaymentPayload, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, isMemoryJsonValue, isTrustedSender, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, validateEmailAuth, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
package/dist/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as getEmail, $t as semanticSearch, A as createWakeSchedule, At as listRegistryRequests, B as deleteOrgSecret, Bt as registerPayoutAddress, C as createFilter, Cn as updateWakeSchedule, Ct as listFunctionLogs, D as createRegistry, Dn as verifyDomain, Dt as listPayoutAddresses, E as createOrgSecret, En as verifyCliSignup, Et as listOrgSecrets, F as deleteEndpoint, Ft as listWakeDispatches, G as discardEmailContent, Gt as resendAgentSignupVerification, H as deleteRoute, Ht as replayDelivery, I as deleteFilter, It as listWakeSchedules, J as downloadRawEmail, Jt as rotateWebhookSecret, K as downloadAttachments, Kt as resendCliSignupVerification, L as deleteFunction, Lt as payChallenge, M as defineAgent, Mt as listSentEmails, N as deleteDomain, Nt as listTemplates, O as createRoute, On as createClient, Ot as listRegistries, P as deleteEmail, Pt as listWakeAuthorizations, Q as getConversation, Qt as searchMemories, R as deleteFunctionSecret, Rt as pollCliLogin, S as createEndpoint, Sn as updateWakeAuthorization, St as listFilters, T as createFunctionSecret, Tn as verifyAgentSignup, Tt as listFunctions, U as deleteWakeAuthorization, Ut as replayEmailWebhooks, V as deleteRegistry, Vt as reorderRoutes, W as deleteWakeSchedule, Wt as replyToEmail, X as getAgent, Xt as sdk_gen_exports, Y as getAccount, Yt as runWakeSchedule, Z as getChallenge, Zt as searchEmails, _ as cliLogout, _n as updateFilter, _t as listDeclinedPayments, a as PrimitiveClient, an as simulateRoute, at as getOrgRoutingTopology, b as createChallenge, bn as updateRoute, bt as listEmails, c as createPrimitiveClient, cn as startCliLogin, ct as getSentEmail, d as isMemoryJsonValue, dn as testFunction, dt as getTemplate, en as sendEmail, et as getFunction, f as DEFAULT_API_BASE_URL, fn as unpublishAgent, ft as getTemplateInstall, g as addDomain, gn as updateEndpoint, gt as installTemplate, h as createPrimitiveApiClient, hn as updateDomain, ht as getWebhookSecret, i as MemoriesResource, in as setOrgSecret, it as getMemory, j as decideRegistryRequest, jt as listRoutes, k as createWakeAuthorization, kn as createConfig, kt as listRegistryAgents, l as PRIMITIVE_SIGNATURE_HEADER, ln as startCliSignup, lt as getSpendPolicy, m as PrimitiveApiError, mn as updateAccount, mt as getWakeSchedule, n as AgentResource, nn as setFunctionSecret, nt as getFunctionTestRunTrace, o as client, on as startAgentClaim, ot as getRegistry, p as PrimitiveApiClient, pn as unsetFunctionRoute, pt as getThread, q as downloadDomainZoneFile, qt as resolveRegistryHandle, r as InboxResource, rn as setMemory, rt as getInboxStatus, s as createAgent, sn as startAgentSignup, st as getSendPermissions, t as AccountResource, tn as setFunctionRoute, tt as getFunctionRouting, u as verifyWebhookSignature, un as testEndpoint, ut as getStorageStats, v as createAgentAccount, vn as updateFunction, vt as listDeliveries, w as createFunction, wn as verifyAgentClaim, wt as listFunctionSecrets, x as createEmailChallenge, xn as updateSpendPolicy, xt as listEndpoints, y as createAgentClaimLink, yn as updateRegistry, yt as listDomains, z as deleteMemory, zt as publishAgent } from "../api-
|
|
2
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
1
|
+
import { $ as getEmail, $t as semanticSearch, A as createWakeSchedule, At as listRegistryRequests, B as deleteOrgSecret, Bt as registerPayoutAddress, C as createFilter, Cn as updateWakeSchedule, Ct as listFunctionLogs, D as createRegistry, Dn as verifyDomain, Dt as listPayoutAddresses, E as createOrgSecret, En as verifyCliSignup, Et as listOrgSecrets, F as deleteEndpoint, Ft as listWakeDispatches, G as discardEmailContent, Gt as resendAgentSignupVerification, H as deleteRoute, Ht as replayDelivery, I as deleteFilter, It as listWakeSchedules, J as downloadRawEmail, Jt as rotateWebhookSecret, K as downloadAttachments, Kt as resendCliSignupVerification, L as deleteFunction, Lt as payChallenge, M as defineAgent, Mt as listSentEmails, N as deleteDomain, Nt as listTemplates, O as createRoute, On as createClient, Ot as listRegistries, P as deleteEmail, Pt as listWakeAuthorizations, Q as getConversation, Qt as searchMemories, R as deleteFunctionSecret, Rt as pollCliLogin, S as createEndpoint, Sn as updateWakeAuthorization, St as listFilters, T as createFunctionSecret, Tn as verifyAgentSignup, Tt as listFunctions, U as deleteWakeAuthorization, Ut as replayEmailWebhooks, V as deleteRegistry, Vt as reorderRoutes, W as deleteWakeSchedule, Wt as replyToEmail, X as getAgent, Xt as sdk_gen_exports, Y as getAccount, Yt as runWakeSchedule, Z as getChallenge, Zt as searchEmails, _ as cliLogout, _n as updateFilter, _t as listDeclinedPayments, a as PrimitiveClient, an as simulateRoute, at as getOrgRoutingTopology, b as createChallenge, bn as updateRoute, bt as listEmails, c as createPrimitiveClient, cn as startCliLogin, ct as getSentEmail, d as isMemoryJsonValue, dn as testFunction, dt as getTemplate, en as sendEmail, et as getFunction, f as DEFAULT_API_BASE_URL, fn as unpublishAgent, ft as getTemplateInstall, g as addDomain, gn as updateEndpoint, gt as installTemplate, h as createPrimitiveApiClient, hn as updateDomain, ht as getWebhookSecret, i as MemoriesResource, in as setOrgSecret, it as getMemory, j as decideRegistryRequest, jt as listRoutes, k as createWakeAuthorization, kn as createConfig, kt as listRegistryAgents, l as PRIMITIVE_SIGNATURE_HEADER, ln as startCliSignup, lt as getSpendPolicy, m as PrimitiveApiError, mn as updateAccount, mt as getWakeSchedule, n as AgentResource, nn as setFunctionSecret, nt as getFunctionTestRunTrace, o as client, on as startAgentClaim, ot as getRegistry, p as PrimitiveApiClient, pn as unsetFunctionRoute, pt as getThread, q as downloadDomainZoneFile, qt as resolveRegistryHandle, r as InboxResource, rn as setMemory, rt as getInboxStatus, s as createAgent, sn as startAgentSignup, st as getSendPermissions, t as AccountResource, tn as setFunctionRoute, tt as getFunctionRouting, u as verifyWebhookSignature, un as testEndpoint, ut as getStorageStats, v as createAgentAccount, vn as updateFunction, vt as listDeliveries, w as createFunction, wn as verifyAgentClaim, wt as listFunctionSecrets, x as createEmailChallenge, xn as updateSpendPolicy, xt as listEndpoints, y as createAgentClaimLink, yn as updateRegistry, yt as listDomains, z as deleteMemory, zt as publishAgent } from "../api-Oi6Mo4Us.js";
|
|
2
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-BHSC87qb.js";
|
|
3
3
|
import { C as normalizeReceivedEmail, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, l as isTrustedSender, u as validateEmailAuth } from "../errors-D6WjisrD.js";
|
|
4
4
|
export { AccountResource, AgentResource, AuthConfidence, AuthVerdict, DEFAULT_API_BASE_URL, InboxResource, MemoriesResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, isMemoryJsonValue, isTrustedSender, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, payChallenge, pollCliLogin, publishAgent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, validateEmailAuth, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
|
+
import { pushBytes, pushFile } from "./payloads/index.js";
|
|
2
3
|
import { S as formatAddress, c as WebhookVerificationError } from "./errors-D6WjisrD.js";
|
|
4
|
+
import { readFile, stat } from "node:fs/promises";
|
|
3
5
|
//#region ../packages/api-core/src/api/core/bodySerializer.gen.ts
|
|
4
6
|
const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
|
|
5
7
|
//#endregion
|
|
@@ -3240,7 +3242,7 @@ async function verifyWebhookSignature(opts) {
|
|
|
3240
3242
|
* shape from sdk-node's webhook module, which is why they live
|
|
3241
3243
|
* here rather than in api-core.
|
|
3242
3244
|
*/
|
|
3243
|
-
const EMAIL_REGEX = /^[^\s@]+@[^\s
|
|
3245
|
+
const EMAIL_REGEX = /^[^\s@]+@[^\s.@]+(?:\.[^\s.@]+)+$/;
|
|
3244
3246
|
const MAX_THREAD_REFERENCES = 100;
|
|
3245
3247
|
const MAX_THREAD_HEADER_BYTES = 8 * 1024;
|
|
3246
3248
|
const MAX_FROM_HEADER_LENGTH = 998;
|
|
@@ -3252,8 +3254,10 @@ function validateAddressHeader(field, value) {
|
|
|
3252
3254
|
if (trimmed.length > maxLength) throw new TypeError(`${field} must be at most ${maxLength} characters`);
|
|
3253
3255
|
}
|
|
3254
3256
|
function validateEmailAddress(field, value) {
|
|
3255
|
-
if (!EMAIL_REGEX.test(value) &&
|
|
3257
|
+
if (!EMAIL_REGEX.test(value) && !/^[^<]+<[^\s@]+@[^\s.@]+(?:\.[^\s.@]+)+>$/.test(value)) throw new TypeError(`${field} must be a valid email address`);
|
|
3256
3258
|
}
|
|
3259
|
+
/** Attachments at or below this size are sent inline; larger ones are uploaded + referenced. */
|
|
3260
|
+
const DEFAULT_INLINE_ATTACHMENT_MAX = 25 * 1024 * 1024;
|
|
3257
3261
|
function validateThreadHeaderValue(field, value) {
|
|
3258
3262
|
if (value.trim().length === 0) throw new TypeError(`${field} must be a non-empty string`);
|
|
3259
3263
|
if ([...value].some((char) => {
|
|
@@ -3672,6 +3676,16 @@ var PrimitiveClient = class extends PrimitiveApiClient {
|
|
|
3672
3676
|
account = new AccountResource(this.client);
|
|
3673
3677
|
/** Durable JSON key-value state for agents and Functions. */
|
|
3674
3678
|
memories = new MemoriesResource(this.client);
|
|
3679
|
+
#payloadApiKey;
|
|
3680
|
+
#payloadBaseUrl;
|
|
3681
|
+
constructor(options = {}) {
|
|
3682
|
+
super(options);
|
|
3683
|
+
this.#payloadApiKey = options.apiKey;
|
|
3684
|
+
let base = this.getConfig().baseUrl ?? "https://api.primitive.dev/v1";
|
|
3685
|
+
while (base.endsWith("/")) base = base.slice(0, -1);
|
|
3686
|
+
if (base.endsWith("/v1")) base = base.slice(0, -3);
|
|
3687
|
+
this.#payloadBaseUrl = base;
|
|
3688
|
+
}
|
|
3675
3689
|
async send(input, options) {
|
|
3676
3690
|
validateSendInput(input);
|
|
3677
3691
|
return unwrapSendResult(await sendEmail({
|
|
@@ -3683,6 +3697,13 @@ var PrimitiveClient = class extends PrimitiveApiClient {
|
|
|
3683
3697
|
...input.bodyHtml !== void 0 ? { body_html: input.bodyHtml } : {},
|
|
3684
3698
|
...input.thread?.inReplyTo ? { in_reply_to: input.thread.inReplyTo } : {},
|
|
3685
3699
|
...input.thread?.references?.length ? { references: input.thread.references } : {},
|
|
3700
|
+
...input.attachments?.length ? { attachments: input.attachments } : {},
|
|
3701
|
+
...input.payloadAttachments?.length ? { payload_attachments: input.payloadAttachments.map((ref) => ({
|
|
3702
|
+
root: ref.root,
|
|
3703
|
+
filename: ref.filename,
|
|
3704
|
+
cek: Buffer.from(ref.cek, "hex").toString("base64url"),
|
|
3705
|
+
...ref.contentType !== void 0 ? { content_type: ref.contentType } : {}
|
|
3706
|
+
})) } : {},
|
|
3686
3707
|
...input.wait !== void 0 ? { wait: input.wait } : {},
|
|
3687
3708
|
...input.waitTimeoutMs !== void 0 ? { wait_timeout_ms: input.waitTimeoutMs } : {}
|
|
3688
3709
|
},
|
|
@@ -3692,6 +3713,65 @@ var PrimitiveClient = class extends PrimitiveApiClient {
|
|
|
3692
3713
|
}));
|
|
3693
3714
|
}
|
|
3694
3715
|
/**
|
|
3716
|
+
* Send an attachment of any size in one call. Small attachments are delivered
|
|
3717
|
+
* inline; large ones are uploaded as an E2E-encrypted, content-addressed
|
|
3718
|
+
* Primitive Payloads object and delivered by reference — unbounded size, and
|
|
3719
|
+
* streamed from disk (bounded memory) when given a `path`. Either way the
|
|
3720
|
+
* recipient gets a normal attachment (Primitive agents, via the DKIM-signed
|
|
3721
|
+
* reference) or a download link (any mailbox). The SDK never sees a smaller
|
|
3722
|
+
* ceiling than the object model itself.
|
|
3723
|
+
*
|
|
3724
|
+
* // in-memory
|
|
3725
|
+
* await client.sendAttachment({ from, to, subject, bodyText,
|
|
3726
|
+
* attachment: { filename: "note.txt", content: bytes } });
|
|
3727
|
+
* // large file, streamed
|
|
3728
|
+
* await client.sendAttachment({ from, to, subject, bodyText,
|
|
3729
|
+
* attachment: { filename: "video.mp4", path: "./video.mp4" } });
|
|
3730
|
+
*/
|
|
3731
|
+
async sendAttachment(input, options) {
|
|
3732
|
+
const { attachment, inlineThreshold, ...rest } = input;
|
|
3733
|
+
if (attachment.content !== void 0 && attachment.path !== void 0) throw new TypeError("sendAttachment accepts either attachment.content or attachment.path, not both");
|
|
3734
|
+
const threshold = inlineThreshold ?? DEFAULT_INLINE_ATTACHMENT_MAX;
|
|
3735
|
+
const meta = {
|
|
3736
|
+
filename: attachment.filename,
|
|
3737
|
+
contentType: attachment.contentType
|
|
3738
|
+
};
|
|
3739
|
+
if (attachment.content !== void 0) return attachment.content.length <= threshold ? this.#sendInline(rest, meta, attachment.content, options) : this.#sendByReference(rest, meta, await pushBytes(attachment.content, this.#pushOptions()), options);
|
|
3740
|
+
if (attachment.path !== void 0) {
|
|
3741
|
+
const { size } = await stat(attachment.path);
|
|
3742
|
+
return size <= threshold ? this.#sendInline(rest, meta, await readFile(attachment.path), options) : this.#sendByReference(rest, meta, await pushFile(attachment.path, this.#pushOptions()), options);
|
|
3743
|
+
}
|
|
3744
|
+
throw new TypeError("sendAttachment requires exactly one of attachment.content or attachment.path");
|
|
3745
|
+
}
|
|
3746
|
+
#pushOptions() {
|
|
3747
|
+
if (this.#payloadApiKey === void 0) throw new TypeError("sendAttachment requires an API key to upload a large attachment");
|
|
3748
|
+
return {
|
|
3749
|
+
apiKey: this.#payloadApiKey,
|
|
3750
|
+
baseUrl: this.#payloadBaseUrl
|
|
3751
|
+
};
|
|
3752
|
+
}
|
|
3753
|
+
#sendInline(rest, meta, bytes, options) {
|
|
3754
|
+
return this.send({
|
|
3755
|
+
...rest,
|
|
3756
|
+
attachments: [{
|
|
3757
|
+
filename: meta.filename,
|
|
3758
|
+
content_base64: Buffer.from(bytes).toString("base64"),
|
|
3759
|
+
...meta.contentType !== void 0 ? { content_type: meta.contentType } : {}
|
|
3760
|
+
}]
|
|
3761
|
+
}, options);
|
|
3762
|
+
}
|
|
3763
|
+
#sendByReference(rest, meta, pushed, options) {
|
|
3764
|
+
return this.send({
|
|
3765
|
+
...rest,
|
|
3766
|
+
payloadAttachments: [{
|
|
3767
|
+
root: pushed.merkleRoot,
|
|
3768
|
+
filename: meta.filename,
|
|
3769
|
+
cek: pushed.cek,
|
|
3770
|
+
...meta.contentType !== void 0 ? { contentType: meta.contentType } : {}
|
|
3771
|
+
}]
|
|
3772
|
+
}, options);
|
|
3773
|
+
}
|
|
3774
|
+
/**
|
|
3695
3775
|
* Semantic / hybrid / keyword search across received and sent mail.
|
|
3696
3776
|
*
|
|
3697
3777
|
* `POST /v1/semantic-search`. Returns ranked rows
|
|
@@ -2089,6 +2089,27 @@ type SendMailAttachment = {
|
|
|
2089
2089
|
*/
|
|
2090
2090
|
content_base64: string;
|
|
2091
2091
|
};
|
|
2092
|
+
/**
|
|
2093
|
+
* A reference to an already-uploaded Primitive Payloads object, delivered as an attachment without inlining the bytes — the way to send an attachment larger than the inline cap. Upload the object via /v1/payloads (with a client-held CEK the server never sees), then reference it here.
|
|
2094
|
+
*/
|
|
2095
|
+
type SendMailPayloadRef = {
|
|
2096
|
+
/**
|
|
2097
|
+
* The 64-char lowercase-hex Merkle root of a finalized payloads object.
|
|
2098
|
+
*/
|
|
2099
|
+
root: string;
|
|
2100
|
+
/**
|
|
2101
|
+
* Attachment filename presented to the recipient.
|
|
2102
|
+
*/
|
|
2103
|
+
filename: string;
|
|
2104
|
+
/**
|
|
2105
|
+
* Optional MIME content type.
|
|
2106
|
+
*/
|
|
2107
|
+
content_type?: string;
|
|
2108
|
+
/**
|
|
2109
|
+
* Base64url-encoded (unpadded) content-encryption key the recipient uses to decrypt. Travels with the email; the object store only ever holds ciphertext.
|
|
2110
|
+
*/
|
|
2111
|
+
cek: string;
|
|
2112
|
+
};
|
|
2092
2113
|
type SendMailInput = {
|
|
2093
2114
|
/**
|
|
2094
2115
|
* RFC 5322 From header. The sender domain must be a verified outbound domain for your organization.
|
|
@@ -2122,6 +2143,10 @@ type SendMailInput = {
|
|
|
2122
2143
|
* Inline attachments. Send requests with attachments to https://api.primitive.dev/v1/send-mail. Combined raw decoded attachment bytes must be at most 31457280.
|
|
2123
2144
|
*/
|
|
2124
2145
|
attachments?: Array<SendMailAttachment>;
|
|
2146
|
+
/**
|
|
2147
|
+
* Deliver an already-uploaded Primitive Payloads object as an attachment by reference, without inlining the bytes — the way to send attachments larger than the inline cap. Upload the object via /v1/payloads (client-held CEK), then reference it here. v1 supports at most one.
|
|
2148
|
+
*/
|
|
2149
|
+
payload_attachments?: Array<SendMailPayloadRef>;
|
|
2125
2150
|
/**
|
|
2126
2151
|
* When true, wait for the first downstream SMTP delivery outcome before returning.
|
|
2127
2152
|
*/
|
|
@@ -10037,6 +10062,27 @@ interface SendThreadInput {
|
|
|
10037
10062
|
references?: string[];
|
|
10038
10063
|
}
|
|
10039
10064
|
type SendAttachment = SendMailAttachment;
|
|
10065
|
+
/**
|
|
10066
|
+
* A reference to an already-uploaded Primitive Payloads object, delivered as an
|
|
10067
|
+
* attachment without inlining the bytes — the way to send an attachment larger
|
|
10068
|
+
* than the inline cap. Upload the object with `payloads.pushFile` / `pushBytes`
|
|
10069
|
+
* (client-held CEK), then reference it here. Prefer {@link PrimitiveClient.sendAttachment},
|
|
10070
|
+
* which picks inline-vs-reference by size for you.
|
|
10071
|
+
*/
|
|
10072
|
+
interface SendPayloadReference {
|
|
10073
|
+
/** 64-char lowercase-hex Merkle root of the finalized object (`PushResult.merkleRoot`). */
|
|
10074
|
+
root: string;
|
|
10075
|
+
/** Filename presented to the recipient. */
|
|
10076
|
+
filename: string;
|
|
10077
|
+
/** Optional MIME content type. */
|
|
10078
|
+
contentType?: string;
|
|
10079
|
+
/**
|
|
10080
|
+
* Hex-encoded content-encryption key the recipient needs to decrypt — pass
|
|
10081
|
+
* `PushResult.cek` verbatim. `send` converts it to the base64url the wire
|
|
10082
|
+
* carries, so the whole SDK surface (push/pull/reference) stays hex.
|
|
10083
|
+
*/
|
|
10084
|
+
cek: string;
|
|
10085
|
+
}
|
|
10040
10086
|
interface SendInput {
|
|
10041
10087
|
from: string;
|
|
10042
10088
|
to: string;
|
|
@@ -10044,9 +10090,34 @@ interface SendInput {
|
|
|
10044
10090
|
bodyText?: string;
|
|
10045
10091
|
bodyHtml?: string;
|
|
10046
10092
|
thread?: SendThreadInput;
|
|
10093
|
+
/** Inline attachments (base64 content). Combined raw bytes must stay under the inline cap (~30 MiB). */
|
|
10094
|
+
attachments?: SendAttachment[];
|
|
10095
|
+
/** Deliver already-uploaded payloads objects by reference (v1: at most one). No size ceiling. */
|
|
10096
|
+
payloadAttachments?: SendPayloadReference[];
|
|
10047
10097
|
wait?: boolean;
|
|
10048
10098
|
waitTimeoutMs?: number;
|
|
10049
10099
|
}
|
|
10100
|
+
/**
|
|
10101
|
+
* Input for {@link PrimitiveClient.sendAttachment}: the normal send fields plus
|
|
10102
|
+
* one attachment, given as in-memory `content` OR a file `path`. The SDK sends
|
|
10103
|
+
* it inline when it's small and uploads-then-references it when it's large, so
|
|
10104
|
+
* the caller never has to choose the mechanism. Provide exactly one of
|
|
10105
|
+
* `content` / `path`.
|
|
10106
|
+
*/
|
|
10107
|
+
type SendAttachmentInput = Omit<SendInput, "attachments" | "payloadAttachments"> & {
|
|
10108
|
+
attachment: {
|
|
10109
|
+
filename: string;
|
|
10110
|
+
contentType?: string; /** In-memory bytes. Use `path` for large files that shouldn't be resident. */
|
|
10111
|
+
content?: Uint8Array; /** Path to a file streamed from disk (bounded memory) — for large attachments. */
|
|
10112
|
+
path?: string;
|
|
10113
|
+
};
|
|
10114
|
+
/**
|
|
10115
|
+
* Size at or below which the attachment goes inline; larger ones are uploaded
|
|
10116
|
+
* as an E2E-encrypted payloads object and delivered by reference. Defaults to
|
|
10117
|
+
* 25 MiB (the server's inline/offload threshold).
|
|
10118
|
+
*/
|
|
10119
|
+
inlineThreshold?: number;
|
|
10120
|
+
};
|
|
10050
10121
|
interface RequestOptions {
|
|
10051
10122
|
/** Cancel the in-flight request when this signal fires. Surfaces as AbortError. */
|
|
10052
10123
|
signal?: AbortSignal;
|
|
@@ -10292,6 +10363,7 @@ declare class MemoriesResource {
|
|
|
10292
10363
|
search(input?: MemorySearchInput, options?: RequestOptions): Promise<MemorySearchResponse>;
|
|
10293
10364
|
}
|
|
10294
10365
|
declare class PrimitiveClient extends PrimitiveApiClient {
|
|
10366
|
+
#private;
|
|
10295
10367
|
/** Agent-account lifecycle operations (create, claim/upgrade). */
|
|
10296
10368
|
readonly agent: AgentResource;
|
|
10297
10369
|
/** Inbound mail: long-poll stream + waitForNext over the forward tail. */
|
|
@@ -10300,7 +10372,25 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
10300
10372
|
readonly account: AccountResource;
|
|
10301
10373
|
/** Durable JSON key-value state for agents and Functions. */
|
|
10302
10374
|
readonly memories: MemoriesResource;
|
|
10375
|
+
constructor(options?: PrimitiveClientOptions);
|
|
10303
10376
|
send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
|
|
10377
|
+
/**
|
|
10378
|
+
* Send an attachment of any size in one call. Small attachments are delivered
|
|
10379
|
+
* inline; large ones are uploaded as an E2E-encrypted, content-addressed
|
|
10380
|
+
* Primitive Payloads object and delivered by reference — unbounded size, and
|
|
10381
|
+
* streamed from disk (bounded memory) when given a `path`. Either way the
|
|
10382
|
+
* recipient gets a normal attachment (Primitive agents, via the DKIM-signed
|
|
10383
|
+
* reference) or a download link (any mailbox). The SDK never sees a smaller
|
|
10384
|
+
* ceiling than the object model itself.
|
|
10385
|
+
*
|
|
10386
|
+
* // in-memory
|
|
10387
|
+
* await client.sendAttachment({ from, to, subject, bodyText,
|
|
10388
|
+
* attachment: { filename: "note.txt", content: bytes } });
|
|
10389
|
+
* // large file, streamed
|
|
10390
|
+
* await client.sendAttachment({ from, to, subject, bodyText,
|
|
10391
|
+
* attachment: { filename: "video.mp4", path: "./video.mp4" } });
|
|
10392
|
+
*/
|
|
10393
|
+
sendAttachment(input: SendAttachmentInput, options?: RequestOptions): Promise<SendResult>;
|
|
10304
10394
|
/**
|
|
10305
10395
|
* Semantic / hybrid / keyword search across received and sent mail.
|
|
10306
10396
|
*
|
|
@@ -10354,4 +10444,4 @@ interface CreatedAgent {
|
|
|
10354
10444
|
*/
|
|
10355
10445
|
declare function createAgent(options: CreateAgentOptions): Promise<CreatedAgent>;
|
|
10356
10446
|
//#endregion
|
|
10357
|
-
export { createRegistry as $, DeleteOrgSecretErrors as $a, GetStorageStatsError as $c, PollCliLoginInput as $d, ResendCliSignupVerificationResponses as $f, VerifyAgentClaimErrors as $g, UpdateDomainInput as $h, CreateWakeScheduleInput as $i, ListDomainsError as $l, StartCliSignupInput as $m, verifyDomain as $n, EmailDetailReply as $o, SentEmailDetail as $p, CreateEmailChallengeResponse as $r, GetEmailErrors as $s, listPayoutAddresses as $t, ListRegistryRequestsError as $u, createPrimitiveClient as A, X402PaymentRequirements as A_, DeleteFilterData as Aa, GetOrgRoutingTopologyResponse as Ac, ListWakeSchedulesErrors as Ad, ReplayDeliveryResponses as Af, UpdateRouteResponse as Ag, TestResult as Ah, CreateOrgSecretResponse as Ai, InboxStatusDomain as Al, SimulateRouteResponses as Am, setOrgSecret as An, DkimSignature as Ao, SemanticSearchError as Ap, ConversationMessage as Ar, GateFix as As, getMemory as At, ListFunctionsError as Au, RequestOptions$1 as B, RequestOptions$2 as B_, DeleteFunctionSecretData as Ba, GetSendPermissionsResponse as Bc, OrgSecretWriteResult as Bd, ReplyToEmailResponse as Bf, UpdateWakeAuthorizationErrors as Bg, UnsetFunctionRouteErrors as Bh, CreateRouteErrors as Bi, InstallTemplateResponses as Bl, StartAgentSignupErrors as Bm, updateAccount as Bn, DownloadDomainZoneFileError as Bo, SendEmailError as Bp, CreateAgentClaimLinkInput as Br, GetAgentResponses as Bs, getWakeSchedule as Bt, ListPayoutAddressesError as Bu, SendAttachment as C, WebhookSecret as C_, DeleteEmailResponse as Ca, GetMemoryError as Cc, ListWakeDispatchesData as Cd, ReorderRoutesInput as Cf, UpdateRegistryInput as Cg, TestEndpointResponses as Ch, CreateFunctionSecretInput as Ci, GetWebhookSecretData as Cl, SetOrgSecretResponse as Cm, searchEmails as Cn, DeliverySummary as Co, SearchMemoriesData as Cp, CliLogoutResponse as Cr, FunctionTestRunInboundEmail as Cs, getChallenge as Ct, ListFunctionLogsResponses as Cu, WaitForNextOptions as D, X402EmailChallengeDetails as D_, DeleteEndpointErrors as Da, GetOrgRoutingTopologyData as Dc, ListWakeDispatchesResponses as Dd, ReplayDeliveryError as Df, UpdateRouteError as Dg, TestFunctionResponse as Dh, CreateOrgSecretError as Di, GetWebhookSecretResponses as Dl, SimulateRouteErrors as Dm, setFunctionRoute as Dn, DiscardEmailContentErrors as Do, SearchMemoriesResponses as Dp, CliSignupStartResult as Dr, FunctionTestRunState as Ds, getFunctionRouting as Dt, ListFunctionSecretsResponse as Du, SendThreadInput as E, X402EmailChallenge as E_, DeleteEndpointError as Ea, GetMemoryResponses as Ec, ListWakeDispatchesResponse as Ed, ReplayDeliveryData as Ef, UpdateRouteData as Eg, TestFunctionErrors as Eh, CreateOrgSecretData as Ei, GetWebhookSecretResponse as El, SimulateRouteError as Em, sendEmail as En, DiscardEmailContentError as Eo, SearchMemoriesResponse as Ep, CliSignupResendResult as Er, FunctionTestRunSend as Es, getFunction as Et, ListFunctionSecretsErrors as Eu, DEFAULT_API_BASE_URL as F, Client as F_, DeleteFunctionData as Fa, GetRegistryResponse as Fc, MemoryScope as Fd, ReplayEmailWebhooksResponses as Ff, UpdateSpendPolicyInput as Fg, UnpublishAgentErrors as Fh, CreateRegistryInput as Fi, InstallTemplateBody as Fl, StartAgentClaimInput as Fm, startCliSignup as Fn, DownloadAttachmentsError as Fo, SemanticSearchResponses as Fp, CreateAgentAccountResponse as Fr, GetAccountResponses as Fs, getSpendPolicy as Ft, ListOrgSecretsError as Fu, createAgentClaimLink as G, DeleteMemoryData as Ga, GetSentEmailResponse as Gc, PayChallengeErrors as Gd, ResendAgentSignupVerificationInput as Gf, UpdateWakeScheduleError as Gg, UpdateAccountError as Gh, CreateWakeAuthorizationError as Gi, ListDeclinedPaymentsResponse as Gl, StartCliLoginError as Gm, updateRegistry as Gn, DownloadRawEmailError as Go, SendMailInput as Gp, CreateChallengeErrors as Gr, GetChallengeResponses as Gs, listDomains as Gt, ListRegistriesError as Gu, addDomain as H, ResponseStyle as H_, DeleteFunctionSecretErrors as Ha, GetSentEmailData as Hc, ParsedEmailData as Hd, ResendAgentSignupVerificationData as Hf, UpdateWakeAuthorizationResponse as Hg, UnsetFunctionRouteResponses as Hh, CreateRouteResponse as Hi, ListDeclinedPaymentsData as Hl, StartAgentSignupResponse as Hm, updateEndpoint as Hn, DownloadDomainZoneFileResponse as Ho, SendEmailResponse as Hp, CreateAgentClaimLinkResponses as Hr, GetChallengeError as Hs, installTemplate as Ht, ListPayoutAddressesResponse as Hu, PrimitiveApiClient as I, ClientOptions as I_, DeleteFunctionError as Ia, GetRegistryResponses as Ic, MemoryScopeId as Id, ReplayResult as If, UpdateSpendPolicyResponse as Ig, UnpublishAgentResponse as Ih, CreateRegistryResponse as Ii, InstallTemplateData as Il, StartAgentClaimResponse as Im, testEndpoint as In, DownloadAttachmentsErrors as Io, SemanticSearchResult as Ip, CreateAgentAccountResponses as Ir, GetAgentData as Is, getStorageStats as It, ListOrgSecretsErrors as Iu, createEndpoint as J, DeleteMemoryResponse as Ja, GetSpendPolicyError as Jc, PayChallengeResponses as Jd, ResendCliSignupVerificationData as Jf, UpdateWakeScheduleResponse as Jg, UpdateAccountResponse as Jh, CreateWakeAuthorizationResponse as Ji, ListDeliveriesError as Jl, StartCliLoginResponse as Jm, updateWakeAuthorization as Jn, DownloadRawEmailResponses as Jo, SendPermissionAnyRecipient as Jp, CreateChallengeResponses as Jr, GetConversationErrors as Js, listFilters as Jt, ListRegistriesResponses as Ju, createChallenge as K, DeleteMemoryError as Ka, GetSentEmailResponses as Kc, PayChallengeInput as Kd, ResendAgentSignupVerificationResponse as Kf, UpdateWakeScheduleErrors as Kg, UpdateAccountErrors as Kh, CreateWakeAuthorizationErrors as Ki, ListDeclinedPaymentsResponses as Kl, StartCliLoginErrors as Km, updateRoute as Kn, DownloadRawEmailErrors as Ko, SendMailResult as Kp, CreateChallengeInput as Kr, GetConversationData as Ks, listEmails as Kt, ListRegistriesErrors as Ku, PrimitiveApiClientOptions as L, Config as L_, DeleteFunctionErrors as La, GetSendPermissionsData as Lc, MemoryScopeQueryType as Ld, ReplyToEmailData as Lf, UpdateSpendPolicyResponses as Lg, UnpublishAgentResponses as Lh, CreateRegistryResponses as Li, InstallTemplateError as Ll, StartAgentClaimResponses as Lm, testFunction as Ln, DownloadAttachmentsResponse as Lo, SemanticSearchScoreBreakdown as Lp, CreateAgentClaimLinkData as Lr, GetAgentError as Ls, getTemplate as Lt, ListOrgSecretsResponse as Lu, VerifyOptions as M, X402Receipt as M_, DeleteFilterErrors as Ma, GetRegistryData as Mc, ListWakeSchedulesResponses as Md, ReplayEmailWebhooksError as Mf, UpdateSpendPolicyData as Mg, ThreadMessage as Mh, CreateRegistryData as Mi, InboxStatusFunctionSummary as Ml, StartAgentClaimData as Mm, startAgentClaim as Mn, DomainDnsRecord as Mo, SemanticSearchField as Mp, CreateAgentAccountError as Mr, GetAccountError as Ms, getRegistry as Mt, ListFunctionsResponse as Mu, verifyWebhookSignature as N, X402SpendPolicy as N_, DeleteFilterResponse as Na, GetRegistryError as Nc, MemoryKeyQuery as Nd, ReplayEmailWebhooksErrors as Nf, UpdateSpendPolicyError as Ng, UnpublishAgentData as Nh, CreateRegistryError as Ni, InboxStatusNextAction as Nl, StartAgentClaimError as Nm, startAgentSignup as Nn, DomainVerifyResult as No, SemanticSearchInput as Np, CreateAgentAccountErrors as Nr, GetAccountErrors as Ns, getSendPermissions as Nt, ListFunctionsResponses as Nu, client as O, X402NonceBinding as O_, DeleteEndpointResponse as Oa, GetOrgRoutingTopologyError as Oc, ListWakeSchedulesData as Od, ReplayDeliveryErrors as Of, UpdateRouteErrors as Og, TestFunctionResponses as Oh, CreateOrgSecretErrors as Oi, IdempotencyKey as Ol, SimulateRouteInput as Om, setFunctionSecret as On, DiscardEmailContentResponse as Oo, SemanticSearchCoverage as Op, CliSignupVerifyResult as Or, FunctionTestRunTrace as Os, getFunctionTestRunTrace as Ot, ListFunctionSecretsResponses as Ou, isMemoryJsonValue as P, createClient as P_, DeleteFilterResponses as Pa, GetRegistryErrors as Pc, MemoryResolvedScope as Pd, ReplayEmailWebhooksResponse as Pf, UpdateSpendPolicyErrors as Pg, UnpublishAgentError as Ph, CreateRegistryErrors as Pi, InboxStatusRecentEmailSummary as Pl, StartAgentClaimErrors as Pm, startCliLogin as Pn, DownloadAttachmentsData as Po, SemanticSearchMeta as Pp, CreateAgentAccountInput as Pr, GetAccountResponse as Ps, getSentEmail as Pt, ListOrgSecretsData as Pu, createOrgSecret as Q, DeleteOrgSecretError as Qa, GetStorageStatsData as Qc, PollCliLoginErrors as Qd, ResendCliSignupVerificationResponse as Qf, VerifyAgentClaimError as Qg, UpdateDomainErrors as Qh, CreateWakeScheduleErrors as Qi, ListDomainsData as Ql, StartCliSignupErrors as Qm, verifyCliSignup as Qn, EmailDetail as Qo, SendPermissionsMeta as Qp, CreateEmailChallengeInput as Qr, GetEmailError as Qs, listOrgSecrets as Qt, ListRegistryRequestsData as Qu, PrimitiveApiError as R, CreateClientConfig as R_, DeleteFunctionResponse as Ra, GetSendPermissionsError as Rc, NumericString as Rd, ReplyToEmailError as Rf, UpdateWakeAuthorizationData as Rg, UnsetFunctionRouteData as Rh, CreateRouteData as Ri, InstallTemplateErrors as Rl, StartAgentSignupData as Rm, unpublishAgent as Rn, DownloadAttachmentsResponses as Ro, SemanticSearchSnippet as Rp, CreateAgentClaimLinkError as Rr, GetAgentErrors as Rs, getTemplateInstall as Rt, ListOrgSecretsResponses as Ru, SemanticSearchResponse as S, WakeSchedule as S_, DeleteEmailErrors as Sa, GetMemoryData as Sc, ListWakeAuthorizationsResponses as Sd, ReorderRoutesErrors as Sf, UpdateRegistryErrors as Sg, TestEndpointResponse as Sh, CreateFunctionSecretErrors as Si, GetWakeScheduleResponses as Sl, SetOrgSecretInput as Sm, sdk_gen_d_exports as Sn, DeliveryStatus as So, SearchEmailsResponses as Sp, CliLogoutInput as Sr, FunctionTestRunDeliveryEndpoint as Ss, getAgent as St, ListFunctionLogsResponse as Su, SendResult as T, X402DeclinedPayment as T_, DeleteEndpointData as Ta, GetMemoryResponse as Tc, ListWakeDispatchesErrors as Td, ReorderRoutesResponses as Tf, UpdateRegistryResponses as Tg, TestFunctionError as Th, CreateFunctionSecretResponses as Ti, GetWebhookSecretErrors as Tl, SimulateRouteData as Tm, semanticSearch as Tn, DiscardEmailContentData as To, SearchMemoriesErrors as Tp, CliLogoutResult as Tr, FunctionTestRunReply as Ts, getEmail as Tt, ListFunctionSecretsError as Tu, cliLogout as U, createConfig as U_, DeleteFunctionSecretResponse as Ua, GetSentEmailError as Uc, PayChallengeData as Ud, ResendAgentSignupVerificationError as Uf, UpdateWakeAuthorizationResponses as Ug, UnverifiedDomain as Uh, CreateRouteResponses as Ui, ListDeclinedPaymentsError as Ul, StartAgentSignupResponses as Um, updateFilter as Un, DownloadDomainZoneFileResponses as Uo, SendEmailResponses as Up, CreateChallengeData as Ur, GetChallengeErrors as Us, listDeclinedPayments as Ut, ListPayoutAddressesResponses as Uu, createPrimitiveApiClient as V, RequestResult as V_, DeleteFunctionSecretError as Va, GetSendPermissionsResponses as Vc, PaginationMeta as Vd, ReplyToEmailResponses as Vf, UpdateWakeAuthorizationInput as Vg, UnsetFunctionRouteResponse as Vh, CreateRouteInput as Vi, Limit as Vl, StartAgentSignupInput as Vm, updateDomain as Vn, DownloadDomainZoneFileErrors as Vo, SendEmailErrors as Vp, CreateAgentClaimLinkResponse as Vr, GetChallengeData as Vs, getWebhookSecret as Vt, ListPayoutAddressesErrors as Vu, createAgentAccount as W, Auth as W_, DeleteFunctionSecretResponses as Wa, GetSentEmailErrors as Wc, PayChallengeError as Wd, ResendAgentSignupVerificationErrors as Wf, UpdateWakeScheduleData as Wg, UpdateAccountData as Wh, CreateWakeAuthorizationData as Wi, ListDeclinedPaymentsErrors as Wl, StartCliLoginData as Wm, updateFunction as Wn, DownloadRawEmailData as Wo, SendMailAttachment as Wp, CreateChallengeError as Wr, GetChallengeResponse as Ws, listDeliveries as Wt, ListRegistriesData as Wu, createFunction as X, DeleteMemoryResult as Xa, GetSpendPolicyResponse as Xc, PollCliLoginData as Xd, ResendCliSignupVerificationErrors as Xf, VerifiedDomain as Xg, UpdateDomainData as Xh, CreateWakeScheduleData as Xi, ListDeliveriesResponse as Xl, StartCliSignupData as Xm, verifyAgentClaim as Xn, EmailAttachment as Xo, SendPermissionRule as Xp, CreateEmailChallengeError as Xr, GetConversationResponses as Xs, listFunctionSecrets as Xt, ListRegistryAgentsResponse as Xu, createFilter as Y, DeleteMemoryResponses as Ya, GetSpendPolicyErrors as Yc, PlanLimits as Yd, ResendCliSignupVerificationError as Yf, UpdateWakeScheduleResponses as Yg, UpdateAccountResponses as Yh, CreateWakeAuthorizationResponses as Yi, ListDeliveriesErrors as Yl, StartCliLoginResponses as Ym, updateWakeSchedule as Yn, EmailAddress as Yo, SendPermissionManagedZone as Yp, CreateEmailChallengeData as Yr, GetConversationResponse as Ys, listFunctionLogs as Yt, ListRegistryAgentsData as Yu, createFunctionSecret as Z, DeleteOrgSecretData as Za, GetSpendPolicyResponses as Zc, PollCliLoginError as Zd, ResendCliSignupVerificationInput as Zf, VerifyAgentClaimData as Zg, UpdateDomainError as Zh, CreateWakeScheduleError as Zi, ListDeliveriesResponses as Zl, StartCliSignupError as Zm, verifyAgentSignup as Zn, EmailAuth as Zo, SendPermissionYourDomain as Zp, CreateEmailChallengeErrors as Zr, GetEmailData as Zs, listFunctions as Zt, ListRegistryAgentsResponses as Zu, MemorySetInput as _, VerifyDomainErrors as __, DeleteDomainErrors as _a, GetInboxStatusData as _c, ListTemplatesResponses as _d, Registry as _f, UpdateFunctionInput as _g, TemplateVariable as _h, CreateFunctionResponse as _i, GetThreadResponses as _l, SetMemoryResponse as _m, resendAgentSignupVerification as _n, DeleteWakeScheduleData as _o, RunWakeScheduleResponses as _p, CliLoginPollResult as _r, FunctionRouting as _s, discardEmailContent as _t, ListFiltersResponse as _u, ForwardInput as a, VerifyAgentSignupErrors as a_, DecideRegistryRequestErrors as aa, GetFunctionResponse as ac, ListRoutesErrors as ad, PublishAgentInput as af, UpdateEndpointInput as ag, TemplateInstall as ah, CreateEndpointResponse as ai, GetTemplateErrors as al, SetFunctionRouteResponse as am, listTemplates as an, DeleteRegistryResponse as ao, ResourceId as ap, AddDomainInput as ar, EmailStatus as as, deleteDomain as at, ListEmailsErrors as au, ReplyInput as b, WakeAuthorization as b_, DeleteEmailData as ba, GetInboxStatusResponse as bc, ListWakeAuthorizationsErrors as bd, ReorderRoutesData as bf, UpdateRegistryData as bg, TestEndpointError as bh, CreateFunctionSecretData as bi, GetWakeScheduleErrors as bl, SetOrgSecretError as bm, rotateWebhookSecret as bn, DeleteWakeScheduleResponse as bo, SearchEmailsErrors as bp, CliLogoutError as br, FunctionTestRun as bs, downloadRawEmail as bt, ListFunctionLogsError as bu, InboxStreamOptions as c, VerifyAgentSignupResponses as c_, DecideRegistryRequestResponses as ca, GetFunctionRoutingError as cc, ListSentEmailsData as cd, PublishAgentResult as cf, UpdateFilterData as cg, TemplateManifest as ch, CreateFilterError as ci, GetTemplateInstallErrors as cl, SetFunctionSecretError as cm, listWakeSchedules as cn, DeleteRouteError as co, RotateWebhookSecretErrors as cp, AgentAccountResult as cr, Endpoint as cs, deleteFilter as ct, ListEndpointsData as cu, MemoryGetInput as d, VerifyCliSignupErrors as d_, DefineAgentErrors as da, GetFunctionRoutingResponses as dc, ListSentEmailsResponse as dd, RegisterPayoutAddressData as df, UpdateFilterInput as dg, TemplateRegistryStatus as dh, CreateFilterResponse as di, GetTemplateResponse as dl, SetFunctionSecretResponse as dm, publishAgent as dn, DeleteRouteResponses as do, RouteEvaluatedEntry as dp, AgentClaimResult as dr, FunctionDeployStatus as ds, deleteMemory as dt, ListEndpointsResponse as du, VerifyAgentClaimInput as e_, CreateWakeScheduleResponse as ea, GetEmailResponse as ec, ListRegistryRequestsErrors as ed, PollCliLoginResponse as ef, UpdateDomainResponse as eg, StartCliSignupResponse as eh, CreateEmailChallengeResponses as ei, GetStorageStatsErrors as el, SentEmailStatus as em, listRegistries as en, DeleteOrgSecretResponse as eo, ResolveRegistryHandleData as ep, Account as er, EmailSearchFacetBucket as es, createRoute as et, ListDomainsErrors as eu, MemoryJsonValue as f, VerifyCliSignupInput as f_, DefineAgentInput as fa, GetFunctionTestRunTraceData as fc, ListSentEmailsResponses as fd, RegisterPayoutAddressError as ff, UpdateFilterResponse as fg, TemplateRegistrySummary as fh, CreateFilterResponses as fi, GetTemplateResponses as fl, SetFunctionSecretResponses as fm, registerPayoutAddress as fn, DeleteWakeAuthorizationData as fo, RoutingTopology as fp, AgentClaimStartResult as fr, FunctionDetail as fs, deleteOrgSecret as ft, ListEndpointsResponses as fu, MemorySearchResponse as g, VerifyDomainError as g_, DeleteDomainError as ga, GetFunctionTestRunTraceResponses as gc, ListTemplatesResponse as gd, RegisterPayoutAddressResponses as gf, UpdateFunctionErrors as gg, TemplateSource as gh, CreateFunctionInput as gi, GetThreadResponse as gl, SetMemoryInput as gm, replyToEmail as gn, DeleteWakeAuthorizationResponses as go, RunWakeScheduleResponse as gp, AgentSignupVerifyResult as gr, FunctionRouteResult as gs, deleteWakeSchedule as gt, ListFiltersErrors as gu, MemorySearchInput as h, VerifyDomainData as h_, DeleteDomainData as ha, GetFunctionTestRunTraceResponse as hc, ListTemplatesErrors as hd, RegisterPayoutAddressResponse as hf, UpdateFunctionError as hg, TemplateSetup as hh, CreateFunctionErrors as hi, GetThreadErrors as hl, SetMemoryErrors as hm, replayEmailWebhooks as hn, DeleteWakeAuthorizationResponse as ho, RunWakeScheduleErrors as hp, AgentSignupStartResult as hr, FunctionRouteBody as hs, deleteWakeAuthorization as ht, ListFiltersError as hu, CreatedAgent as i, VerifyAgentSignupError as i_, DecideRegistryRequestError as ia, GetFunctionErrors as ic, ListRoutesError as id, PublishAgentErrors as if, UpdateEndpointErrors as ig, TemplateAuthor as ih, CreateEndpointInput as ii, GetTemplateError as il, SetFunctionRouteErrors as im, listSentEmails as in, DeleteRegistryErrors as io, ResolveRegistryHandleResponses as ip, AddDomainErrors as ir, EmailSearchResult as is, defineAgent as it, ListEmailsError as iu, PRIMITIVE_SIGNATURE_HEADER as j, X402PayoutAddress as j_, DeleteFilterError as ja, GetOrgRoutingTopologyResponses as jc, ListWakeSchedulesResponse as jd, ReplayEmailWebhooksData as jf, UpdateRouteResponses as jg, Thread as jh, CreateOrgSecretResponses as ji, InboxStatusEndpointSummary as jl, SimulateRouteResult as jm, simulateRoute as jn, Domain as jo, SemanticSearchErrors as jp, CreateAgentAccountData as jr, GetAccountData as js, getOrgRoutingTopology as jt, ListFunctionsErrors as ju, createAgent as k, X402PaymentPayload as k_, DeleteEndpointResponses as ka, GetOrgRoutingTopologyErrors as kc, ListWakeSchedulesError as kd, ReplayDeliveryResponse as kf, UpdateRouteInput as kg, TestInvocationResult as kh, CreateOrgSecretInput as ki, InboxStatus as kl, SimulateRouteResponse as km, setMemory as kn, DiscardEmailContentResponses as ko, SemanticSearchData as kp, Conversation as kr, GateDenial as ks, getInboxStatus as kt, ListFunctionsData as ku, MemoriesResource as l, VerifyCliSignupData as l_, DefineAgentData as la, GetFunctionRoutingErrors as lc, ListSentEmailsError as ld, PublishPolicy as lf, UpdateFilterError as lg, TemplateRegistryDetail as lh, CreateFilterErrors as li, GetTemplateInstallResponse as ll, SetFunctionSecretErrors as lm, payChallenge as ln, DeleteRouteErrors as lo, RotateWebhookSecretResponse as lp, AgentAccountUpgradeHint as lr, ErrorResponse as ls, deleteFunction as lt, ListEndpointsError as lu, MemoryRecordWithValue as m, VerifyCliSignupResponses as m_, DefineAgentResponses as ma, GetFunctionTestRunTraceErrors as mc, ListTemplatesError as md, RegisterPayoutAddressInput as mf, UpdateFunctionData as mg, TemplateSecretGroup as mh, CreateFunctionError as mi, GetThreadError as ml, SetMemoryError as mm, replayDelivery as mn, DeleteWakeAuthorizationErrors as mo, RunWakeScheduleError as mp, AgentSignupResendResult as mr, FunctionLogRow as ms, deleteRoute as mt, ListFiltersData as mu, AgentResource as n, VerifyAgentClaimResponses as n_, Cursor as na, GetFunctionData as nc, ListRegistryRequestsResponses as nd, PublishAgentData as nf, UpdateEndpointData as ng, StorageStats as nh, CreateEndpointError as ni, GetStorageStatsResponses as nl, SetFunctionRouteData as nm, listRegistryRequests as nn, DeleteRegistryData as no, ResolveRegistryHandleErrors as np, AddDomainData as nr, EmailSearchHighlights as ns, createWakeSchedule as nt, ListDomainsResponses as nu, InboundEmail as o, VerifyAgentSignupInput as o_, DecideRegistryRequestInput as oa, GetFunctionResponses as oc, ListRoutesResponse as od, PublishAgentResponse as of, UpdateEndpointResponse as og, TemplateInstallState as oh, CreateEndpointResponses as oi, GetTemplateInstallData as ol, SetFunctionRouteResponses as om, listWakeAuthorizations as on, DeleteRegistryResponses as oo, RotateWebhookSecretData as op, AddDomainResponse as or, EmailSummary as os, deleteEmail as ot, ListEmailsResponse as ou, MemoryRecord as p, VerifyCliSignupResponse as p_, DefineAgentResponse as pa, GetFunctionTestRunTraceError as pc, ListTemplatesData as pd, RegisterPayoutAddressErrors as pf, UpdateFilterResponses as pg, TemplateSecret as ph, CreateFunctionData as pi, GetThreadData as pl, SetMemoryData as pm, reorderRoutes as pn, DeleteWakeAuthorizationError as po, RunWakeScheduleData as pp, AgentOrgRef as pr, FunctionListItem as ps, deleteRegistry as pt, ListEnvelope as pu, createEmailChallenge as q, DeleteMemoryErrors as qa, GetSpendPolicyData as qc, PayChallengeResponse as qd, ResendAgentSignupVerificationResponses as qf, UpdateWakeScheduleInput as qg, UpdateAccountInput as qh, CreateWakeAuthorizationInput as qi, ListDeliveriesData as ql, StartCliLoginInput as qm, updateSpendPolicy as qn, DownloadRawEmailResponse as qo, SendPermissionAddress as qp, CreateChallengeResponse as qr, GetConversationError as qs, listEndpoints as qt, ListRegistriesResponse as qu, CreateAgentOptions as r, VerifyAgentSignupData as r_, DecideRegistryRequestData as ra, GetFunctionError as rc, ListRoutesData as rd, PublishAgentError as rf, UpdateEndpointError as rg, SuccessEnvelope as rh, CreateEndpointErrors as ri, GetTemplateData as rl, SetFunctionRouteError as rm, listRoutes as rn, DeleteRegistryError as ro, ResolveRegistryHandleResponse as rp, AddDomainError as rr, EmailSearchMeta as rs, decideRegistryRequest as rt, ListEmailsData as ru, InboxResource as s, VerifyAgentSignupResponse as s_, DecideRegistryRequestResponse as sa, GetFunctionRoutingData as sc, ListRoutesResponses as sd, PublishAgentResponses as sf, UpdateEndpointResponses as sg, TemplateInstallStatus as sh, CreateFilterData as si, GetTemplateInstallError as sl, SetFunctionSecretData as sm, listWakeDispatches as sn, DeleteRouteData as so, RotateWebhookSecretError as sp, AddDomainResponses as sr, EmailWebhookStatus as ss, deleteEndpoint as st, ListEmailsResponses as su, AccountResource as t, VerifyAgentClaimResponse as t_, CreateWakeScheduleResponses as ta, GetEmailResponses as tc, ListRegistryRequestsResponse as td, PollCliLoginResponses as tf, UpdateDomainResponses as tg, StartCliSignupResponses as th, CreateEndpointData as ti, GetStorageStatsResponse as tl, SentEmailSummary as tm, listRegistryAgents as tn, DeleteOrgSecretResponses as to, ResolveRegistryHandleError as tp, AccountUpdated as tr, EmailSearchFacets as ts, createWakeAuthorization as tt, ListDomainsResponse as tu, MemoryDeleteInput as u, VerifyCliSignupError as u_, DefineAgentError as ua, GetFunctionRoutingResponse as uc, ListSentEmailsErrors as ud, RecipientRoute as uf, UpdateFilterErrors as ug, TemplateRegistryPage as uh, CreateFilterInput as ui, GetTemplateInstallResponses as ul, SetFunctionSecretInput as um, pollCliLogin as un, DeleteRouteResponse as uo, RotateWebhookSecretResponses as up, AgentClaimLinkResult as ur, Filter as us, deleteFunctionSecret as ut, ListEndpointsErrors as uu, PrimitiveClient as v, VerifyDomainResponse as v_, DeleteDomainResponse as va, GetInboxStatusError as vc, ListWakeAuthorizationsData as vd, RegistryAgent as vf, UpdateFunctionResponse as vg, TemplateVariableValidation as vh, CreateFunctionResponses as vi, GetWakeScheduleData as vl, SetMemoryResponses as vm, resendCliSignupVerification as vn, DeleteWakeScheduleError as vo, SearchEmailsData as vp, CliLoginStartResult as vr, FunctionSecretListItem as vs, downloadAttachments as vt, ListFiltersResponses as vu, SendInput as w, X402Challenge as w_, DeleteEmailResponses as wa, GetMemoryErrors as wc, ListWakeDispatchesError as wd, ReorderRoutesResponse as wf, UpdateRegistryResponse as wg, TestFunctionData as wh, CreateFunctionSecretResponse as wi, GetWebhookSecretError as wl, SetOrgSecretResponses as wm, searchMemories as wn, DiscardContentResult as wo, SearchMemoriesError as wp, CliLogoutResponses as wr, FunctionTestRunOutboundRequest as ws, getConversation as wt, ListFunctionSecretsData as wu, RequestOptions as x, WakeDispatch as x_, DeleteEmailError as xa, GetInboxStatusResponses as xc, ListWakeAuthorizationsResponse as xd, ReorderRoutesError as xf, UpdateRegistryError as xg, TestEndpointErrors as xh, CreateFunctionSecretError as xi, GetWakeScheduleResponse as xl, SetOrgSecretErrors as xm, runWakeSchedule as xn, DeleteWakeScheduleResponses as xo, SearchEmailsResponse as xp, CliLogoutErrors as xr, FunctionTestRunDelivery as xs, getAccount as xt, ListFunctionLogsErrors as xu, PrimitiveClientOptions as y, VerifyDomainResponses as y_, DeleteDomainResponses as ya, GetInboxStatusErrors as yc, ListWakeAuthorizationsError as yd, RegistryRequest as yf, UpdateFunctionResponses as yg, TestEndpointData as yh, CreateFunctionResult as yi, GetWakeScheduleError as yl, SetOrgSecretData as ym, resolveRegistryHandle as yn, DeleteWakeScheduleErrors as yo, SearchEmailsError as yp, CliLogoutData as yr, FunctionSecretWriteResult as ys, downloadDomainZoneFile as yt, ListFunctionLogsData as yu, PrimitiveApiErrorDetails as z, Options$1 as z_, DeleteFunctionResponses as za, GetSendPermissionsErrors as zc, OrgSecretListItem as zd, ReplyToEmailErrors as zf, UpdateWakeAuthorizationError as zg, UnsetFunctionRouteError as zh, CreateRouteError as zi, InstallTemplateResponse as zl, StartAgentSignupError as zm, unsetFunctionRoute as zn, DownloadDomainZoneFileData as zo, SendEmailData as zp, CreateAgentClaimLinkErrors as zr, GetAgentResponse as zs, getThread as zt, ListPayoutAddressesData as zu };
|
|
10447
|
+
export { createFunctionSecret as $, DeleteOrgSecretData as $a, GetSpendPolicyResponses as $c, PollCliLoginError as $d, ResendCliSignupVerificationInput as $f, VerifiedDomain as $g, UpdateDomainData as $h, CreateWakeScheduleError as $i, ListDeliveriesResponses as $l, StartCliSignupData as $m, verifyAgentSignup as $n, EmailAuth as $o, SendPermissionRule as $p, CreateEmailChallengeErrors as $r, GetEmailData as $s, listFunctions as $t, ListRegistryAgentsResponses as $u, client as A, X402EmailChallengeDetails as A_, DeleteEndpointResponse as Aa, GetOrgRoutingTopologyError as Ac, ListWakeSchedulesData as Ad, ReplayDeliveryErrors as Af, UpdateRouteError as Ag, TestFunctionResponse as Ah, CreateOrgSecretErrors as Ai, IdempotencyKey as Al, SimulateRouteErrors as Am, setFunctionSecret as An, DiscardEmailContentResponse as Ao, SemanticSearchCoverage as Ap, CliSignupVerifyResult as Ar, FunctionTestRunTrace as As, getFunctionTestRunTrace as At, ListFunctionSecretsResponses as Au, PrimitiveApiError as B, Config as B_, DeleteFunctionResponse as Ba, GetSendPermissionsError as Bc, NumericString as Bd, ReplyToEmailError as Bf, UpdateSpendPolicyResponses as Bg, UnpublishAgentResponses as Bh, CreateRouteData as Bi, InstallTemplateErrors as Bl, StartAgentClaimResponses as Bm, unpublishAgent as Bn, DownloadAttachmentsResponses as Bo, SemanticSearchSnippet as Bp, CreateAgentClaimLinkError as Br, GetAgentErrors as Bs, getTemplateInstall as Bt, ListOrgSecretsResponses as Bu, SendAttachment as C, WakeAuthorization as C_, DeleteEmailError as Ca, GetInboxStatusResponses as Cc, ListWakeAuthorizationsResponse as Cd, ReorderRoutesError as Cf, UpdateRegistryData as Cg, TestEndpointError as Ch, CreateFunctionSecretError as Ci, GetWakeScheduleResponse as Cl, SetOrgSecretError as Cm, runWakeSchedule as Cn, DeleteWakeScheduleResponses as Co, SearchEmailsResponse as Cp, CliLogoutErrors as Cr, FunctionTestRunDelivery as Cs, getAccount as Ct, ListFunctionLogsErrors as Cu, SendResult as D, X402Challenge as D_, DeleteEndpointData as Da, GetMemoryResponse as Dc, ListWakeDispatchesErrors as Dd, ReorderRoutesResponses as Df, UpdateRegistryResponse as Dg, TestFunctionData as Dh, CreateFunctionSecretResponses as Di, GetWebhookSecretErrors as Dl, SetOrgSecretResponses as Dm, semanticSearch as Dn, DiscardEmailContentData as Do, SearchMemoriesErrors as Dp, CliLogoutResult as Dr, FunctionTestRunReply as Ds, getEmail as Dt, ListFunctionSecretsError as Du, SendPayloadReference as E, WebhookSecret as E_, DeleteEmailResponses as Ea, GetMemoryErrors as Ec, ListWakeDispatchesError as Ed, ReorderRoutesResponse as Ef, UpdateRegistryInput as Eg, TestEndpointResponses as Eh, CreateFunctionSecretResponse as Ei, GetWebhookSecretError as El, SetOrgSecretResponse as Em, searchMemories as En, DiscardContentResult as Eo, SearchMemoriesError as Ep, CliLogoutResponses as Er, FunctionTestRunOutboundRequest as Es, getConversation as Et, ListFunctionSecretsData as Eu, verifyWebhookSignature as F, X402Receipt as F_, DeleteFilterResponse as Fa, GetRegistryError as Fc, MemoryKeyQuery as Fd, ReplayEmailWebhooksErrors as Ff, UpdateSpendPolicyData as Fg, ThreadMessage as Fh, CreateRegistryError as Fi, InboxStatusNextAction as Fl, StartAgentClaimData as Fm, startAgentSignup as Fn, DomainVerifyResult as Fo, SemanticSearchInput as Fp, CreateAgentAccountErrors as Fr, GetAccountErrors as Fs, getSendPermissions as Ft, ListFunctionsResponses as Fu, cliLogout as G, ResponseStyle as G_, DeleteFunctionSecretResponse as Ga, GetSentEmailError as Gc, PayChallengeData as Gd, ResendAgentSignupVerificationError as Gf, UpdateWakeAuthorizationResponse as Gg, UnsetFunctionRouteResponses as Gh, CreateRouteResponses as Gi, ListDeclinedPaymentsError as Gl, StartAgentSignupResponse as Gm, updateFilter as Gn, DownloadDomainZoneFileResponses as Go, SendEmailResponses as Gp, CreateChallengeData as Gr, GetChallengeErrors as Gs, listDeclinedPayments as Gt, ListPayoutAddressesResponses as Gu, RequestOptions$1 as H, Options$1 as H_, DeleteFunctionSecretData as Ha, GetSendPermissionsResponse as Hc, OrgSecretWriteResult as Hd, ReplyToEmailResponse as Hf, UpdateWakeAuthorizationError as Hg, UnsetFunctionRouteError as Hh, CreateRouteErrors as Hi, InstallTemplateResponses as Hl, StartAgentSignupError as Hm, updateAccount as Hn, DownloadDomainZoneFileError as Ho, SendEmailError as Hp, CreateAgentClaimLinkInput as Hr, GetAgentResponses as Hs, getWakeSchedule as Ht, ListPayoutAddressesError as Hu, isMemoryJsonValue as I, X402SpendPolicy as I_, DeleteFilterResponses as Ia, GetRegistryErrors as Ic, MemoryResolvedScope as Id, ReplayEmailWebhooksResponse as If, UpdateSpendPolicyError as Ig, UnpublishAgentData as Ih, CreateRegistryErrors as Ii, InboxStatusRecentEmailSummary as Il, StartAgentClaimError as Im, startCliLogin as In, DownloadAttachmentsData as Io, SemanticSearchMeta as Ip, CreateAgentAccountInput as Ir, GetAccountResponse as Is, getSentEmail as It, ListOrgSecretsData as Iu, createChallenge as J, DeleteMemoryError as Ja, GetSentEmailResponses as Jc, PayChallengeInput as Jd, ResendAgentSignupVerificationResponse as Jf, UpdateWakeScheduleError as Jg, UpdateAccountError as Jh, CreateWakeAuthorizationErrors as Ji, ListDeclinedPaymentsResponses as Jl, StartCliLoginError as Jm, updateRoute as Jn, DownloadRawEmailErrors as Jo, SendMailPayloadRef as Jp, CreateChallengeInput as Jr, GetConversationData as Js, listEmails as Jt, ListRegistriesErrors as Ju, createAgentAccount as K, createConfig as K_, DeleteFunctionSecretResponses as Ka, GetSentEmailErrors as Kc, PayChallengeError as Kd, ResendAgentSignupVerificationErrors as Kf, UpdateWakeAuthorizationResponses as Kg, UnverifiedDomain as Kh, CreateWakeAuthorizationData as Ki, ListDeclinedPaymentsErrors as Kl, StartAgentSignupResponses as Km, updateFunction as Kn, DownloadRawEmailData as Ko, SendMailAttachment as Kp, CreateChallengeError as Kr, GetChallengeResponse as Ks, listDeliveries as Kt, ListRegistriesData as Ku, DEFAULT_API_BASE_URL as L, createClient as L_, DeleteFunctionData as La, GetRegistryResponse as Lc, MemoryScope as Ld, ReplayEmailWebhooksResponses as Lf, UpdateSpendPolicyErrors as Lg, UnpublishAgentError as Lh, CreateRegistryInput as Li, InstallTemplateBody as Ll, StartAgentClaimErrors as Lm, startCliSignup as Ln, DownloadAttachmentsError as Lo, SemanticSearchResponses as Lp, CreateAgentAccountResponse as Lr, GetAccountResponses as Ls, getSpendPolicy as Lt, ListOrgSecretsError as Lu, createPrimitiveClient as M, X402PaymentPayload as M_, DeleteFilterData as Ma, GetOrgRoutingTopologyResponse as Mc, ListWakeSchedulesErrors as Md, ReplayDeliveryResponses as Mf, UpdateRouteInput as Mg, TestInvocationResult as Mh, CreateOrgSecretResponse as Mi, InboxStatusDomain as Ml, SimulateRouteResponse as Mm, setOrgSecret as Mn, DkimSignature as Mo, SemanticSearchError as Mp, ConversationMessage as Mr, GateFix as Ms, getMemory as Mt, ListFunctionsError as Mu, PRIMITIVE_SIGNATURE_HEADER as N, X402PaymentRequirements as N_, DeleteFilterError as Na, GetOrgRoutingTopologyResponses as Nc, ListWakeSchedulesResponse as Nd, ReplayEmailWebhooksData as Nf, UpdateRouteResponse as Ng, TestResult as Nh, CreateOrgSecretResponses as Ni, InboxStatusEndpointSummary as Nl, SimulateRouteResponses as Nm, simulateRoute as Nn, Domain as No, SemanticSearchErrors as Np, CreateAgentAccountData as Nr, GetAccountData as Ns, getOrgRoutingTopology as Nt, ListFunctionsErrors as Nu, SendThreadInput as O, X402DeclinedPayment as O_, DeleteEndpointError as Oa, GetMemoryResponses as Oc, ListWakeDispatchesResponse as Od, ReplayDeliveryData as Of, UpdateRegistryResponses as Og, TestFunctionError as Oh, CreateOrgSecretData as Oi, GetWebhookSecretResponse as Ol, SimulateRouteData as Om, sendEmail as On, DiscardEmailContentError as Oo, SearchMemoriesResponse as Op, CliSignupResendResult as Or, FunctionTestRunSend as Os, getFunction as Ot, ListFunctionSecretsErrors as Ou, VerifyOptions as P, X402PayoutAddress as P_, DeleteFilterErrors as Pa, GetRegistryData as Pc, ListWakeSchedulesResponses as Pd, ReplayEmailWebhooksError as Pf, UpdateRouteResponses as Pg, Thread as Ph, CreateRegistryData as Pi, InboxStatusFunctionSummary as Pl, SimulateRouteResult as Pm, startAgentClaim as Pn, DomainDnsRecord as Po, SemanticSearchField as Pp, CreateAgentAccountError as Pr, GetAccountError as Ps, getRegistry as Pt, ListFunctionsResponse as Pu, createFunction as Q, DeleteMemoryResult as Qa, GetSpendPolicyResponse as Qc, PollCliLoginData as Qd, ResendCliSignupVerificationErrors as Qf, UpdateWakeScheduleResponses as Qg, UpdateAccountResponses as Qh, CreateWakeScheduleData as Qi, ListDeliveriesResponse as Ql, StartCliLoginResponses as Qm, verifyAgentClaim as Qn, EmailAttachment as Qo, SendPermissionManagedZone as Qp, CreateEmailChallengeError as Qr, GetConversationResponses as Qs, listFunctionSecrets as Qt, ListRegistryAgentsResponse as Qu, PrimitiveApiClient as R, Client as R_, DeleteFunctionError as Ra, GetRegistryResponses as Rc, MemoryScopeId as Rd, ReplayResult as Rf, UpdateSpendPolicyInput as Rg, UnpublishAgentErrors as Rh, CreateRegistryResponse as Ri, InstallTemplateData as Rl, StartAgentClaimInput as Rm, testEndpoint as Rn, DownloadAttachmentsErrors as Ro, SemanticSearchResult as Rp, CreateAgentAccountResponses as Rr, GetAgentData as Rs, getStorageStats as Rt, ListOrgSecretsErrors as Ru, SemanticSearchResponse as S, VerifyDomainResponses as S_, DeleteEmailData as Sa, GetInboxStatusResponse as Sc, ListWakeAuthorizationsErrors as Sd, ReorderRoutesData as Sf, UpdateFunctionResponses as Sg, TestEndpointData as Sh, CreateFunctionSecretData as Si, GetWakeScheduleErrors as Sl, SetOrgSecretData as Sm, rotateWebhookSecret as Sn, DeleteWakeScheduleResponse as So, SearchEmailsErrors as Sp, CliLogoutError as Sr, FunctionTestRun as Ss, downloadRawEmail as St, ListFunctionLogsError as Su, SendInput as T, WakeSchedule as T_, DeleteEmailResponse as Ta, GetMemoryError as Tc, ListWakeDispatchesData as Td, ReorderRoutesInput as Tf, UpdateRegistryErrors as Tg, TestEndpointResponse as Th, CreateFunctionSecretInput as Ti, GetWebhookSecretData as Tl, SetOrgSecretInput as Tm, searchEmails as Tn, DeliverySummary as To, SearchMemoriesData as Tp, CliLogoutResponse as Tr, FunctionTestRunInboundEmail as Ts, getChallenge as Tt, ListFunctionLogsResponses as Tu, createPrimitiveApiClient as U, RequestOptions$2 as U_, DeleteFunctionSecretError as Ua, GetSendPermissionsResponses as Uc, PaginationMeta as Ud, ReplyToEmailResponses as Uf, UpdateWakeAuthorizationErrors as Ug, UnsetFunctionRouteErrors as Uh, CreateRouteInput as Ui, Limit as Ul, StartAgentSignupErrors as Um, updateDomain as Un, DownloadDomainZoneFileErrors as Uo, SendEmailErrors as Up, CreateAgentClaimLinkResponse as Ur, GetChallengeData as Us, getWebhookSecret as Ut, ListPayoutAddressesErrors as Uu, PrimitiveApiErrorDetails as V, CreateClientConfig as V_, DeleteFunctionResponses as Va, GetSendPermissionsErrors as Vc, OrgSecretListItem as Vd, ReplyToEmailErrors as Vf, UpdateWakeAuthorizationData as Vg, UnsetFunctionRouteData as Vh, CreateRouteError as Vi, InstallTemplateResponse as Vl, StartAgentSignupData as Vm, unsetFunctionRoute as Vn, DownloadDomainZoneFileData as Vo, SendEmailData as Vp, CreateAgentClaimLinkErrors as Vr, GetAgentResponse as Vs, getThread as Vt, ListPayoutAddressesData as Vu, addDomain as W, RequestResult as W_, DeleteFunctionSecretErrors as Wa, GetSentEmailData as Wc, ParsedEmailData as Wd, ResendAgentSignupVerificationData as Wf, UpdateWakeAuthorizationInput as Wg, UnsetFunctionRouteResponse as Wh, CreateRouteResponse as Wi, ListDeclinedPaymentsData as Wl, StartAgentSignupInput as Wm, updateEndpoint as Wn, DownloadDomainZoneFileResponse as Wo, SendEmailResponse as Wp, CreateAgentClaimLinkResponses as Wr, GetChallengeError as Ws, installTemplate as Wt, ListPayoutAddressesResponse as Wu, createEndpoint as X, DeleteMemoryResponse as Xa, GetSpendPolicyError as Xc, PayChallengeResponses as Xd, ResendCliSignupVerificationData as Xf, UpdateWakeScheduleInput as Xg, UpdateAccountInput as Xh, CreateWakeAuthorizationResponse as Xi, ListDeliveriesError as Xl, StartCliLoginInput as Xm, updateWakeAuthorization as Xn, DownloadRawEmailResponses as Xo, SendPermissionAddress as Xp, CreateChallengeResponses as Xr, GetConversationErrors as Xs, listFilters as Xt, ListRegistriesResponses as Xu, createEmailChallenge as Y, DeleteMemoryErrors as Ya, GetSpendPolicyData as Yc, PayChallengeResponse as Yd, ResendAgentSignupVerificationResponses as Yf, UpdateWakeScheduleErrors as Yg, UpdateAccountErrors as Yh, CreateWakeAuthorizationInput as Yi, ListDeliveriesData as Yl, StartCliLoginErrors as Ym, updateSpendPolicy as Yn, DownloadRawEmailResponse as Yo, SendMailResult as Yp, CreateChallengeResponse as Yr, GetConversationError as Ys, listEndpoints as Yt, ListRegistriesResponse as Yu, createFilter as Z, DeleteMemoryResponses as Za, GetSpendPolicyErrors as Zc, PlanLimits as Zd, ResendCliSignupVerificationError as Zf, UpdateWakeScheduleResponse as Zg, UpdateAccountResponse as Zh, CreateWakeAuthorizationResponses as Zi, ListDeliveriesErrors as Zl, StartCliLoginResponse as Zm, updateWakeSchedule as Zn, EmailAddress as Zo, SendPermissionAnyRecipient as Zp, CreateEmailChallengeData as Zr, GetConversationResponse as Zs, listFunctionLogs as Zt, ListRegistryAgentsData as Zu, MemorySetInput as _, VerifyCliSignupResponses as __, DeleteDomainData as _a, GetFunctionTestRunTraceResponse as _c, ListTemplatesErrors as _d, RegisterPayoutAddressResponse as _f, UpdateFunctionData as _g, TemplateSecretGroup as _h, CreateFunctionErrors as _i, GetThreadErrors as _l, SetMemoryError as _m, replayEmailWebhooks as _n, DeleteWakeAuthorizationResponse as _o, RunWakeScheduleErrors as _p, AgentSignupStartResult as _r, FunctionRouteBody as _s, deleteWakeAuthorization as _t, ListFiltersError as _u, ForwardInput as a, VerifyAgentClaimResponses as a_, DecideRegistryRequestData as aa, GetFunctionError as ac, ListRoutesData as ad, PublishAgentError as af, UpdateEndpointData as ag, StorageStats as ah, CreateEndpointErrors as ai, GetTemplateData as al, SetFunctionRouteData as am, listRoutes as an, DeleteRegistryError as ao, ResolveRegistryHandleResponse as ap, AddDomainError as ar, EmailSearchMeta as as, decideRegistryRequest as at, ListEmailsData as au, ReplyInput as b, VerifyDomainErrors as b_, DeleteDomainResponse as ba, GetInboxStatusError as bc, ListWakeAuthorizationsData as bd, RegistryAgent as bf, UpdateFunctionInput as bg, TemplateVariable as bh, CreateFunctionResponses as bi, GetWakeScheduleData as bl, SetMemoryResponse as bm, resendCliSignupVerification as bn, DeleteWakeScheduleError as bo, SearchEmailsData as bp, CliLoginStartResult as br, FunctionSecretListItem as bs, downloadAttachments as bt, ListFiltersResponses as bu, InboxStreamOptions as c, VerifyAgentSignupErrors as c_, DecideRegistryRequestInput as ca, GetFunctionResponses as cc, ListRoutesResponse as cd, PublishAgentResponse as cf, UpdateEndpointInput as cg, TemplateInstall as ch, CreateEndpointResponses as ci, GetTemplateInstallData as cl, SetFunctionRouteResponse as cm, listWakeAuthorizations as cn, DeleteRegistryResponses as co, RotateWebhookSecretData as cp, AddDomainResponse as cr, EmailSummary as cs, deleteEmail as ct, ListEmailsResponse as cu, MemoryGetInput as d, VerifyAgentSignupResponses as d_, DefineAgentData as da, GetFunctionRoutingErrors as dc, ListSentEmailsError as dd, PublishPolicy as df, UpdateFilterData as dg, TemplateManifest as dh, CreateFilterErrors as di, GetTemplateInstallResponse as dl, SetFunctionSecretError as dm, payChallenge as dn, DeleteRouteErrors as do, RotateWebhookSecretResponse as dp, AgentAccountUpgradeHint as dr, ErrorResponse as ds, deleteFunction as dt, ListEndpointsError as du, VerifyAgentClaimData as e_, CreateWakeScheduleErrors as ea, GetEmailError as ec, ListRegistryRequestsData as ed, PollCliLoginErrors as ef, UpdateDomainError as eg, StartCliSignupError as eh, CreateEmailChallengeInput as ei, GetStorageStatsData as el, SendPermissionYourDomain as em, listOrgSecrets as en, DeleteOrgSecretError as eo, ResendCliSignupVerificationResponse as ep, verifyCliSignup as er, EmailDetail as es, createOrgSecret as et, ListDomainsData as eu, MemoryJsonValue as f, VerifyCliSignupData as f_, DefineAgentError as fa, GetFunctionRoutingResponse as fc, ListSentEmailsErrors as fd, RecipientRoute as ff, UpdateFilterError as fg, TemplateRegistryDetail as fh, CreateFilterInput as fi, GetTemplateInstallResponses as fl, SetFunctionSecretErrors as fm, pollCliLogin as fn, DeleteRouteResponse as fo, RotateWebhookSecretResponses as fp, AgentClaimLinkResult as fr, Filter as fs, deleteFunctionSecret as ft, ListEndpointsErrors as fu, MemorySearchResponse as g, VerifyCliSignupResponse as g_, DefineAgentResponses as ga, GetFunctionTestRunTraceErrors as gc, ListTemplatesError as gd, RegisterPayoutAddressInput as gf, UpdateFilterResponses as gg, TemplateSecret as gh, CreateFunctionError as gi, GetThreadError as gl, SetMemoryData as gm, replayDelivery as gn, DeleteWakeAuthorizationErrors as go, RunWakeScheduleError as gp, AgentSignupResendResult as gr, FunctionLogRow as gs, deleteRoute as gt, ListFiltersData as gu, MemorySearchInput as h, VerifyCliSignupInput as h_, DefineAgentResponse as ha, GetFunctionTestRunTraceError as hc, ListTemplatesData as hd, RegisterPayoutAddressErrors as hf, UpdateFilterResponse as hg, TemplateRegistrySummary as hh, CreateFunctionData as hi, GetThreadData as hl, SetFunctionSecretResponses as hm, reorderRoutes as hn, DeleteWakeAuthorizationError as ho, RunWakeScheduleData as hp, AgentOrgRef as hr, FunctionListItem as hs, deleteRegistry as ht, ListEnvelope as hu, CreatedAgent as i, VerifyAgentClaimResponse as i_, Cursor as ia, GetFunctionData as ic, ListRegistryRequestsResponses as id, PublishAgentData as if, UpdateDomainResponses as ig, StartCliSignupResponses as ih, CreateEndpointError as ii, GetStorageStatsResponses as il, SentEmailSummary as im, listRegistryRequests as in, DeleteRegistryData as io, ResolveRegistryHandleErrors as ip, AddDomainData as ir, EmailSearchHighlights as is, createWakeSchedule as it, ListDomainsResponses as iu, createAgent as j, X402NonceBinding as j_, DeleteEndpointResponses as ja, GetOrgRoutingTopologyErrors as jc, ListWakeSchedulesError as jd, ReplayDeliveryResponse as jf, UpdateRouteErrors as jg, TestFunctionResponses as jh, CreateOrgSecretInput as ji, InboxStatus as jl, SimulateRouteInput as jm, setMemory as jn, DiscardEmailContentResponses as jo, SemanticSearchData as jp, Conversation as jr, GateDenial as js, getInboxStatus as jt, ListFunctionsData as ju, WaitForNextOptions as k, X402EmailChallenge as k_, DeleteEndpointErrors as ka, GetOrgRoutingTopologyData as kc, ListWakeDispatchesResponses as kd, ReplayDeliveryError as kf, UpdateRouteData as kg, TestFunctionErrors as kh, CreateOrgSecretError as ki, GetWebhookSecretResponses as kl, SimulateRouteError as km, setFunctionRoute as kn, DiscardEmailContentErrors as ko, SearchMemoriesResponses as kp, CliSignupStartResult as kr, FunctionTestRunState as ks, getFunctionRouting as kt, ListFunctionSecretsResponse as ku, MemoriesResource as l, VerifyAgentSignupInput as l_, DecideRegistryRequestResponse as la, GetFunctionRoutingData as lc, ListRoutesResponses as ld, PublishAgentResponses as lf, UpdateEndpointResponse as lg, TemplateInstallState as lh, CreateFilterData as li, GetTemplateInstallError as ll, SetFunctionRouteResponses as lm, listWakeDispatches as ln, DeleteRouteData as lo, RotateWebhookSecretError as lp, AddDomainResponses as lr, EmailWebhookStatus as ls, deleteEndpoint as lt, ListEmailsResponses as lu, MemoryRecordWithValue as m, VerifyCliSignupErrors as m_, DefineAgentInput as ma, GetFunctionTestRunTraceData as mc, ListSentEmailsResponses as md, RegisterPayoutAddressError as mf, UpdateFilterInput as mg, TemplateRegistryStatus as mh, CreateFilterResponses as mi, GetTemplateResponses as ml, SetFunctionSecretResponse as mm, registerPayoutAddress as mn, DeleteWakeAuthorizationData as mo, RoutingTopology as mp, AgentClaimStartResult as mr, FunctionDetail as ms, deleteOrgSecret as mt, ListEndpointsResponses as mu, AgentResource as n, VerifyAgentClaimErrors as n_, CreateWakeScheduleResponse as na, GetEmailResponse as nc, ListRegistryRequestsErrors as nd, PollCliLoginResponse as nf, UpdateDomainInput as ng, StartCliSignupInput as nh, CreateEmailChallengeResponses as ni, GetStorageStatsErrors as nl, SentEmailDetail as nm, listRegistries as nn, DeleteOrgSecretResponse as no, ResolveRegistryHandleData as np, Account as nr, EmailSearchFacetBucket as ns, createRoute as nt, ListDomainsErrors as nu, InboundEmail as o, VerifyAgentSignupData as o_, DecideRegistryRequestError as oa, GetFunctionErrors as oc, ListRoutesError as od, PublishAgentErrors as of, UpdateEndpointError as og, SuccessEnvelope as oh, CreateEndpointInput as oi, GetTemplateError as ol, SetFunctionRouteError as om, listSentEmails as on, DeleteRegistryErrors as oo, ResolveRegistryHandleResponses as op, AddDomainErrors as or, EmailSearchResult as os, defineAgent as ot, ListEmailsError as ou, MemoryRecord as p, VerifyCliSignupError as p_, DefineAgentErrors as pa, GetFunctionRoutingResponses as pc, ListSentEmailsResponse as pd, RegisterPayoutAddressData as pf, UpdateFilterErrors as pg, TemplateRegistryPage as ph, CreateFilterResponse as pi, GetTemplateResponse as pl, SetFunctionSecretInput as pm, publishAgent as pn, DeleteRouteResponses as po, RouteEvaluatedEntry as pp, AgentClaimResult as pr, FunctionDeployStatus as ps, deleteMemory as pt, ListEndpointsResponse as pu, createAgentClaimLink as q, Auth as q_, DeleteMemoryData as qa, GetSentEmailResponse as qc, PayChallengeErrors as qd, ResendAgentSignupVerificationInput as qf, UpdateWakeScheduleData as qg, UpdateAccountData as qh, CreateWakeAuthorizationError as qi, ListDeclinedPaymentsResponse as ql, StartCliLoginData as qm, updateRegistry as qn, DownloadRawEmailError as qo, SendMailInput as qp, CreateChallengeErrors as qr, GetChallengeResponses as qs, listDomains as qt, ListRegistriesError as qu, CreateAgentOptions as r, VerifyAgentClaimInput as r_, CreateWakeScheduleResponses as ra, GetEmailResponses as rc, ListRegistryRequestsResponse as rd, PollCliLoginResponses as rf, UpdateDomainResponse as rg, StartCliSignupResponse as rh, CreateEndpointData as ri, GetStorageStatsResponse as rl, SentEmailStatus as rm, listRegistryAgents as rn, DeleteOrgSecretResponses as ro, ResolveRegistryHandleError as rp, AccountUpdated as rr, EmailSearchFacets as rs, createWakeAuthorization as rt, ListDomainsResponse as ru, InboxResource as s, VerifyAgentSignupError as s_, DecideRegistryRequestErrors as sa, GetFunctionResponse as sc, ListRoutesErrors as sd, PublishAgentInput as sf, UpdateEndpointErrors as sg, TemplateAuthor as sh, CreateEndpointResponse as si, GetTemplateErrors as sl, SetFunctionRouteErrors as sm, listTemplates as sn, DeleteRegistryResponse as so, ResourceId as sp, AddDomainInput as sr, EmailStatus as ss, deleteDomain as st, ListEmailsErrors as su, AccountResource as t, VerifyAgentClaimError as t_, CreateWakeScheduleInput as ta, GetEmailErrors as tc, ListRegistryRequestsError as td, PollCliLoginInput as tf, UpdateDomainErrors as tg, StartCliSignupErrors as th, CreateEmailChallengeResponse as ti, GetStorageStatsError as tl, SendPermissionsMeta as tm, listPayoutAddresses as tn, DeleteOrgSecretErrors as to, ResendCliSignupVerificationResponses as tp, verifyDomain as tr, EmailDetailReply as ts, createRegistry as tt, ListDomainsError as tu, MemoryDeleteInput as u, VerifyAgentSignupResponse as u_, DecideRegistryRequestResponses as ua, GetFunctionRoutingError as uc, ListSentEmailsData as ud, PublishAgentResult as uf, UpdateEndpointResponses as ug, TemplateInstallStatus as uh, CreateFilterError as ui, GetTemplateInstallErrors as ul, SetFunctionSecretData as um, listWakeSchedules as un, DeleteRouteError as uo, RotateWebhookSecretErrors as up, AgentAccountResult as ur, Endpoint as us, deleteFilter as ut, ListEndpointsData as uu, PrimitiveClient as v, VerifyDomainData as v_, DeleteDomainError as va, GetFunctionTestRunTraceResponses as vc, ListTemplatesResponse as vd, RegisterPayoutAddressResponses as vf, UpdateFunctionError as vg, TemplateSetup as vh, CreateFunctionInput as vi, GetThreadResponse as vl, SetMemoryErrors as vm, replyToEmail as vn, DeleteWakeAuthorizationResponses as vo, RunWakeScheduleResponse as vp, AgentSignupVerifyResult as vr, FunctionRouteResult as vs, deleteWakeSchedule as vt, ListFiltersErrors as vu, SendAttachmentInput as w, WakeDispatch as w_, DeleteEmailErrors as wa, GetMemoryData as wc, ListWakeAuthorizationsResponses as wd, ReorderRoutesErrors as wf, UpdateRegistryError as wg, TestEndpointErrors as wh, CreateFunctionSecretErrors as wi, GetWakeScheduleResponses as wl, SetOrgSecretErrors as wm, sdk_gen_d_exports as wn, DeliveryStatus as wo, SearchEmailsResponses as wp, CliLogoutInput as wr, FunctionTestRunDeliveryEndpoint as ws, getAgent as wt, ListFunctionLogsResponse as wu, RequestOptions as x, VerifyDomainResponse as x_, DeleteDomainResponses as xa, GetInboxStatusErrors as xc, ListWakeAuthorizationsError as xd, RegistryRequest as xf, UpdateFunctionResponse as xg, TemplateVariableValidation as xh, CreateFunctionResult as xi, GetWakeScheduleError as xl, SetMemoryResponses as xm, resolveRegistryHandle as xn, DeleteWakeScheduleErrors as xo, SearchEmailsError as xp, CliLogoutData as xr, FunctionSecretWriteResult as xs, downloadDomainZoneFile as xt, ListFunctionLogsData as xu, PrimitiveClientOptions as y, VerifyDomainError as y_, DeleteDomainErrors as ya, GetInboxStatusData as yc, ListTemplatesResponses as yd, Registry as yf, UpdateFunctionErrors as yg, TemplateSource as yh, CreateFunctionResponse as yi, GetThreadResponses as yl, SetMemoryInput as ym, resendAgentSignupVerification as yn, DeleteWakeScheduleData as yo, RunWakeScheduleResponses as yp, CliLoginPollResult as yr, FunctionRouting as ys, discardEmailContent as yt, ListFiltersResponse as yu, PrimitiveApiClientOptions as z, ClientOptions as z_, DeleteFunctionErrors as za, GetSendPermissionsData as zc, MemoryScopeQueryType as zd, ReplyToEmailData as zf, UpdateSpendPolicyResponse as zg, UnpublishAgentResponse as zh, CreateRegistryResponses as zi, InstallTemplateError as zl, StartAgentClaimResponse as zm, testFunction as zn, DownloadAttachmentsResponse as zo, SemanticSearchScoreBreakdown as zp, CreateAgentClaimLinkData as zr, GetAgentError as zs, getTemplate as zt, ListOrgSecretsResponse as zu };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as client, B as PrimitiveApiError, C as SendAttachment, D as SendResult, Hr as CreateAgentClaimLinkInput, Ir as CreateAgentAccountInput, M as createPrimitiveClient, O as SendThreadInput, Rm as StartAgentClaimInput, T as SendInput, Zd as PlanLimits, _ as MemorySetInput, a as ForwardInput, b as ReplyInput, c as InboxStreamOptions, d as MemoryGetInput, dr as AgentAccountUpgradeHint, f as MemoryJsonValue, fr as AgentClaimLinkResult, g as MemorySearchResponse, h as MemorySearchInput, i as CreatedAgent, j as createAgent, k as WaitForNextOptions, l as MemoriesResource, m as MemoryRecordWithValue, mr as AgentClaimStartResult, nr as Account, o as InboundEmail, p as MemoryRecord, pr as AgentClaimResult, r as CreateAgentOptions, r_ as VerifyAgentClaimInput, s as InboxResource, t as AccountResource, u as MemoryDeleteInput, ur as AgentAccountResult, v as PrimitiveClient, y as PrimitiveClientOptions } from "./index-Da2SjL1d.js";
|
|
2
2
|
import { $ as isPaymentFailedEvent, A as RawContentInline, B as InteractionEvent, C as ParsedData, D as ParsedStatus, E as ParsedError, F as ValidateEmailAuthResult, G as PaymentFailedEvent, H as InteractionX402Suffix, I as WebhookAttachment, J as WebhookEventType, K as PaymentSettledEvent, L as WebhookEvent, M as SpfResult, N as TlsReportAnalysis, O as RawContent, P as UnknownEvent, Q as isPaymentEvent, R as EMAIL_EVENT_TYPES, S as KnownWebhookEvent, T as ParsedDataFailed, U as PAYMENT_EVENT_TYPES, V as InteractionX402Event, W as PaymentEvent, X as isInteractionX402Event, Y as isEmailReceivedEvent, Z as isKnownWebhookEventType, _ as ForwardResultAttachmentAnalyzed, a as DkimSignature, b as ForwardVerdict, c as DmarcResult, d as EmailAuth, et as isPaymentSettledEvent, f as EmailReceivedEvent, g as ForwardResult, h as ForwardOriginalSender, i as DkimResult, j as RoutingDecision, k as RawContentDownloadOnly, l as EmailAddress, m as ForwardAnalysis, n as AuthVerdict, o as DmarcPolicy, p as EventType, q as WEBHOOK_EVENT_TYPES, r as BounceAnalysis, s as DmarcReportAnalysis, t as AuthConfidence, u as EmailAnalysis, v as ForwardResultAttachmentSkipped, w as ParsedDataComplete, x as ForwardVerification, y as ForwardResultInline, z as INTERACTION_EVENT_TYPES } from "./types-DVjBmOg0.js";
|
|
3
3
|
import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "./errors-DAHv2kWU.js";
|
|
4
4
|
import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as verifyRawEmailDownload, h as receive, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as parseWebhookEvent, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "./index-DJeUuGUn.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, m as PrimitiveApiError, o as client, r as InboxResource, s as createAgent, t as AccountResource } from "./api-
|
|
1
|
+
import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, m as PrimitiveApiError, o as client, r as InboxResource, s as createAgent, t as AccountResource } from "./api-Oi6Mo4Us.js";
|
|
2
2
|
import { C as normalizeReceivedEmail, S as formatAddress, _ as ForwardVerdict, a as VERIFICATION_ERRORS, b as buildForwardSubject, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, g as EventType, h as DmarcResult, i as RawEmailDecodeError, l as isTrustedSender, m as DmarcPolicy, n as PrimitiveWebhookError, o as WebhookPayloadError, p as DkimResult, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as validateEmailAuth, v as ParsedStatus, w as parseHeaderAddress, x as buildReplySubject, y as SpfResult } from "./errors-D6WjisrD.js";
|
|
3
3
|
import { A as isEmailReceivedEvent, C as PRIMITIVE_SIGNATURE_HEADER, D as INTERACTION_EVENT_TYPES, E as EMAIL_EVENT_TYPES, F as isPaymentSettledEvent, I as generateDownloadToken, L as verifyDownloadToken, M as isKnownWebhookEventType, N as isPaymentEvent, O as PAYMENT_EVENT_TYPES, P as isPaymentFailedEvent, R as safeValidateEmailReceivedEvent, S as PRIMITIVE_CONFIRMED_HEADER, T as verifyWebhookSignature, _ as STANDARD_WEBHOOK_TIMESTAMP_HEADER, a as getEventHeader, b as LEGACY_CONFIRMED_HEADER, c as isDownloadExpired, d as receive, f as verifyRawEmailDownload, g as STANDARD_WEBHOOK_SIGNATURE_HEADER, h as STANDARD_WEBHOOK_ID_HEADER, i as getDownloadTimeRemaining, j as isInteractionX402Event, k as WEBHOOK_EVENT_TYPES, l as isRawIncluded, m as emailReceivedEventJsonSchema, n as confirmedHeaders, o as handleWebhook, p as WEBHOOK_VERSION, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as parseWebhookEvent, v as signStandardWebhooksPayload, w as signWebhookPayload, x as LEGACY_SIGNATURE_HEADER, y as verifyStandardWebhooksSignature, z as validateEmailReceivedEvent } from "./webhook-1cz088XC.js";
|
|
4
4
|
import { X402Client, X402Error, buildPayoutRegistrationMessage, createX402Client, deriveEip3009Nonce, parseEmailChallengeFromPart } from "./x402/index.js";
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
1
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-BHSC87qb.js";
|
|
2
2
|
export { openapiDocument, operationManifest };
|
|
@@ -6815,6 +6815,40 @@ const openapiDocument = {
|
|
|
6815
6815
|
},
|
|
6816
6816
|
"required": ["filename", "content_base64"]
|
|
6817
6817
|
},
|
|
6818
|
+
"SendMailPayloadRef": {
|
|
6819
|
+
"type": "object",
|
|
6820
|
+
"additionalProperties": false,
|
|
6821
|
+
"description": "A reference to an already-uploaded Primitive Payloads object, delivered as an attachment without inlining the bytes — the way to send an attachment larger than the inline cap. Upload the object via /v1/payloads (with a client-held CEK the server never sees), then reference it here.",
|
|
6822
|
+
"properties": {
|
|
6823
|
+
"root": {
|
|
6824
|
+
"type": "string",
|
|
6825
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
6826
|
+
"description": "The 64-char lowercase-hex Merkle root of a finalized payloads object."
|
|
6827
|
+
},
|
|
6828
|
+
"filename": {
|
|
6829
|
+
"type": "string",
|
|
6830
|
+
"minLength": 1,
|
|
6831
|
+
"maxLength": 255,
|
|
6832
|
+
"description": "Attachment filename presented to the recipient."
|
|
6833
|
+
},
|
|
6834
|
+
"content_type": {
|
|
6835
|
+
"type": "string",
|
|
6836
|
+
"minLength": 1,
|
|
6837
|
+
"maxLength": 255,
|
|
6838
|
+
"description": "Optional MIME content type."
|
|
6839
|
+
},
|
|
6840
|
+
"cek": {
|
|
6841
|
+
"type": "string",
|
|
6842
|
+
"pattern": "^[A-Za-z0-9_-]{1,128}$",
|
|
6843
|
+
"description": "Base64url-encoded (unpadded) content-encryption key the recipient uses to decrypt. Travels with the email; the object store only ever holds ciphertext."
|
|
6844
|
+
}
|
|
6845
|
+
},
|
|
6846
|
+
"required": [
|
|
6847
|
+
"root",
|
|
6848
|
+
"filename",
|
|
6849
|
+
"cek"
|
|
6850
|
+
]
|
|
6851
|
+
},
|
|
6818
6852
|
"SendMailInput": {
|
|
6819
6853
|
"type": "object",
|
|
6820
6854
|
"additionalProperties": false,
|
|
@@ -6869,6 +6903,12 @@ const openapiDocument = {
|
|
|
6869
6903
|
"description": "Inline attachments. Send requests with attachments to https://api.primitive.dev/v1/send-mail. Combined raw decoded attachment bytes must be at most 31457280.",
|
|
6870
6904
|
"items": { "$ref": "#/components/schemas/SendMailAttachment" }
|
|
6871
6905
|
},
|
|
6906
|
+
"payload_attachments": {
|
|
6907
|
+
"type": "array",
|
|
6908
|
+
"maxItems": 1,
|
|
6909
|
+
"description": "Deliver an already-uploaded Primitive Payloads object as an attachment by reference, without inlining the bytes — the way to send attachments larger than the inline cap. Upload the object via /v1/payloads (client-held CEK), then reference it here. v1 supports at most one.",
|
|
6910
|
+
"items": { "$ref": "#/components/schemas/SendMailPayloadRef" }
|
|
6911
|
+
},
|
|
6872
6912
|
"wait": {
|
|
6873
6913
|
"type": "boolean",
|
|
6874
6914
|
"description": "When true, wait for the first downstream SMTP delivery outcome before returning."
|
|
@@ -19406,6 +19446,45 @@ const operationManifest = [
|
|
|
19406
19446
|
"required": ["filename", "content_base64"]
|
|
19407
19447
|
}
|
|
19408
19448
|
},
|
|
19449
|
+
"payload_attachments": {
|
|
19450
|
+
"type": "array",
|
|
19451
|
+
"maxItems": 1,
|
|
19452
|
+
"description": "Deliver an already-uploaded Primitive Payloads object as an attachment by reference, without inlining the bytes — the way to send attachments larger than the inline cap. Upload the object via /v1/payloads (client-held CEK), then reference it here. v1 supports at most one.",
|
|
19453
|
+
"items": {
|
|
19454
|
+
"type": "object",
|
|
19455
|
+
"additionalProperties": false,
|
|
19456
|
+
"description": "A reference to an already-uploaded Primitive Payloads object, delivered as an attachment without inlining the bytes — the way to send an attachment larger than the inline cap. Upload the object via /v1/payloads (with a client-held CEK the server never sees), then reference it here.",
|
|
19457
|
+
"properties": {
|
|
19458
|
+
"root": {
|
|
19459
|
+
"type": "string",
|
|
19460
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
19461
|
+
"description": "The 64-char lowercase-hex Merkle root of a finalized payloads object."
|
|
19462
|
+
},
|
|
19463
|
+
"filename": {
|
|
19464
|
+
"type": "string",
|
|
19465
|
+
"minLength": 1,
|
|
19466
|
+
"maxLength": 255,
|
|
19467
|
+
"description": "Attachment filename presented to the recipient."
|
|
19468
|
+
},
|
|
19469
|
+
"content_type": {
|
|
19470
|
+
"type": "string",
|
|
19471
|
+
"minLength": 1,
|
|
19472
|
+
"maxLength": 255,
|
|
19473
|
+
"description": "Optional MIME content type."
|
|
19474
|
+
},
|
|
19475
|
+
"cek": {
|
|
19476
|
+
"type": "string",
|
|
19477
|
+
"pattern": "^[A-Za-z0-9_-]{1,128}$",
|
|
19478
|
+
"description": "Base64url-encoded (unpadded) content-encryption key the recipient uses to decrypt. Travels with the email; the object store only ever holds ciphertext."
|
|
19479
|
+
}
|
|
19480
|
+
},
|
|
19481
|
+
"required": [
|
|
19482
|
+
"root",
|
|
19483
|
+
"filename",
|
|
19484
|
+
"cek"
|
|
19485
|
+
]
|
|
19486
|
+
}
|
|
19487
|
+
},
|
|
19409
19488
|
"wait": {
|
|
19410
19489
|
"type": "boolean",
|
|
19411
19490
|
"description": "When true, wait for the first downstream SMTP delivery outcome before returning."
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
//#region src/payloads/index.d.ts
|
|
2
|
+
interface ChunkDescriptor {
|
|
3
|
+
index: number;
|
|
4
|
+
ciphertextHash: string;
|
|
5
|
+
plaintextSize: number;
|
|
6
|
+
ciphertextSize: number;
|
|
7
|
+
}
|
|
8
|
+
interface PayloadManifest {
|
|
9
|
+
version: number;
|
|
10
|
+
objectId: string;
|
|
11
|
+
chunkSize: number;
|
|
12
|
+
totalPlaintextSize: number;
|
|
13
|
+
chunkCount: number;
|
|
14
|
+
chunks: ChunkDescriptor[];
|
|
15
|
+
merkleRoot: string;
|
|
16
|
+
}
|
|
17
|
+
interface PayloadClientOptions {
|
|
18
|
+
/** API base URL, e.g. https://api.primitive.dev (no trailing /v1). */
|
|
19
|
+
baseUrl: string;
|
|
20
|
+
/** Bearer API key. */
|
|
21
|
+
apiKey: string;
|
|
22
|
+
}
|
|
23
|
+
type ProgressPhase = "encrypt" | "upload" | "download";
|
|
24
|
+
type ProgressFn = (phase: ProgressPhase, done: number, total: number) => void;
|
|
25
|
+
interface PushOptions extends PayloadClientOptions {
|
|
26
|
+
chunkSize?: number;
|
|
27
|
+
concurrency?: number;
|
|
28
|
+
onProgress?: ProgressFn;
|
|
29
|
+
}
|
|
30
|
+
interface PushResult {
|
|
31
|
+
merkleRoot: string;
|
|
32
|
+
/** Hex-encoded content-encryption key; required to download+decrypt. */
|
|
33
|
+
cek: string;
|
|
34
|
+
chunkCount: number;
|
|
35
|
+
totalBytes: number;
|
|
36
|
+
}
|
|
37
|
+
interface PullOptions extends PayloadClientOptions {
|
|
38
|
+
/** Hex-encoded CEK from push. */
|
|
39
|
+
cek: string;
|
|
40
|
+
concurrency?: number;
|
|
41
|
+
onProgress?: ProgressFn;
|
|
42
|
+
}
|
|
43
|
+
declare function fetchManifest(opts: PayloadClientOptions, root: string): Promise<PayloadManifest>;
|
|
44
|
+
interface EncodeManifestOptions {
|
|
45
|
+
chunkSize?: number;
|
|
46
|
+
/** Hex CEK for deterministic/convergent encoding (default: random). */
|
|
47
|
+
cekHex?: string;
|
|
48
|
+
/** Hex object id for deterministic encoding (default: random). */
|
|
49
|
+
objectIdHex?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Encode in-memory bytes into a payload manifest (no upload). Exposed for
|
|
53
|
+
* precomputing an object's content address and for conformance-testing the
|
|
54
|
+
* chunk/crypto/Merkle construction against the server object model. With a fixed
|
|
55
|
+
* cek/objectId the output is fully deterministic.
|
|
56
|
+
*/
|
|
57
|
+
declare function encodeManifest(bytes: Uint8Array, opts?: EncodeManifestOptions): Promise<PayloadManifest>;
|
|
58
|
+
/**
|
|
59
|
+
* Stream a file up as a Primitive Payload. Two passes over the file (encrypt to
|
|
60
|
+
* build the manifest, then encrypt again to upload) keep memory bounded to a few
|
|
61
|
+
* chunks — the whole object is never resident. Returns the content address
|
|
62
|
+
* (merkleRoot) and the hex CEK needed to download it.
|
|
63
|
+
*/
|
|
64
|
+
declare function pushFile(filePath: string, opts: PushOptions): Promise<PushResult>;
|
|
65
|
+
/**
|
|
66
|
+
* Push an in-memory buffer as a Primitive Payload. Same chunked, content-
|
|
67
|
+
* addressed, per-chunk-AEAD encoding as {@link pushFile}, over a Uint8Array
|
|
68
|
+
* (chunks are views, so no copy). Use {@link pushFile} for large objects that
|
|
69
|
+
* shouldn't be resident in memory. Returns the content address (merkleRoot) and
|
|
70
|
+
* the hex CEK.
|
|
71
|
+
*/
|
|
72
|
+
declare function pushBytes(bytes: Uint8Array, opts: PushOptions): Promise<PushResult>;
|
|
73
|
+
/**
|
|
74
|
+
* Stream a Primitive Payload down to a file, verifying and decrypting one chunk
|
|
75
|
+
* at a time (bounded memory). Every chunk is content-address-checked before
|
|
76
|
+
* decryption, so a corrupt or substituted chunk throws.
|
|
77
|
+
*/
|
|
78
|
+
declare function pullFile(root: string, outPath: string, opts: PullOptions): Promise<PayloadManifest>;
|
|
79
|
+
//#endregion
|
|
80
|
+
export { ChunkDescriptor, EncodeManifestOptions, PayloadClientOptions, PayloadManifest, ProgressFn, ProgressPhase, PullOptions, PushOptions, PushResult, encodeManifest, fetchManifest, pullFile, pushBytes, pushFile };
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { open, rm, stat } from "node:fs/promises";
|
|
2
|
+
import { createWriteStream } from "node:fs";
|
|
3
|
+
//#region src/payloads/index.ts
|
|
4
|
+
/**
|
|
5
|
+
* Primitive Payloads — streaming client for large, content-addressed,
|
|
6
|
+
* end-to-end-encrypted objects (attachments up to ~1 TB).
|
|
7
|
+
*
|
|
8
|
+
* Objects are split into fixed 64 MiB chunks; each chunk is encrypted with a
|
|
9
|
+
* per-chunk AES-256-GCM key (HKDF-derived from the object CEK), content-addressed
|
|
10
|
+
* by its ciphertext SHA-256, and committed under a Merkle root. This module
|
|
11
|
+
* streams: it processes one chunk at a time and never holds the whole object in
|
|
12
|
+
* memory, so a multi-GB file uploads/downloads in bounded memory.
|
|
13
|
+
*
|
|
14
|
+
* The chunk/manifest construction is byte-compatible with the server's object
|
|
15
|
+
* model (packages/payloads-core in the API monorepo).
|
|
16
|
+
*/
|
|
17
|
+
const CHUNK_SIZE = 64 * 1024 * 1024;
|
|
18
|
+
const MANIFEST_VERSION = 1;
|
|
19
|
+
const CHUNK_KDF_INFO = "payloads-chunk";
|
|
20
|
+
const OBJECT_ID_BYTES = 16;
|
|
21
|
+
const CEK_BYTES = 32;
|
|
22
|
+
const subtle = globalThis.crypto.subtle;
|
|
23
|
+
const textEncoder = new TextEncoder();
|
|
24
|
+
function randomBytes(length) {
|
|
25
|
+
const out = new Uint8Array(length);
|
|
26
|
+
globalThis.crypto.getRandomValues(out);
|
|
27
|
+
return out;
|
|
28
|
+
}
|
|
29
|
+
function toHex(bytes) {
|
|
30
|
+
let out = "";
|
|
31
|
+
for (const b of bytes) out += b.toString(16).padStart(2, "0");
|
|
32
|
+
return out;
|
|
33
|
+
}
|
|
34
|
+
function fromHex(hex) {
|
|
35
|
+
if (hex.length % 2 !== 0) throw new Error("invalid hex: odd length");
|
|
36
|
+
if (hex.length > 0 && !/^[0-9a-fA-F]+$/.test(hex)) throw new Error("invalid hex: non-hex character");
|
|
37
|
+
const out = new Uint8Array(hex.length / 2);
|
|
38
|
+
for (let i = 0; i < out.length; i++) out[i] = Number.parseInt(hex.slice(i * 2, i * 2 + 2), 16);
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
async function contentHash(bytes) {
|
|
42
|
+
return new Uint8Array(await subtle.digest("SHA-256", bytes));
|
|
43
|
+
}
|
|
44
|
+
async function contentHashHex(bytes) {
|
|
45
|
+
return toHex(await contentHash(bytes));
|
|
46
|
+
}
|
|
47
|
+
/** Binary Merkle root over ordered hex leaf hashes (odd node promoted). */
|
|
48
|
+
async function merkleRoot(leafHashesHex) {
|
|
49
|
+
if (leafHashesHex.length === 0) return contentHashHex(new Uint8Array(0));
|
|
50
|
+
let level = leafHashesHex.map(fromHex);
|
|
51
|
+
while (level.length > 1) {
|
|
52
|
+
const next = [];
|
|
53
|
+
for (let i = 0; i < level.length; i += 2) {
|
|
54
|
+
const left = level[i];
|
|
55
|
+
const right = i + 1 < level.length ? level[i + 1] : level[i];
|
|
56
|
+
const combined = new Uint8Array(left.length + right.length);
|
|
57
|
+
combined.set(left, 0);
|
|
58
|
+
combined.set(right, left.length);
|
|
59
|
+
next.push(await contentHash(combined));
|
|
60
|
+
}
|
|
61
|
+
level = next;
|
|
62
|
+
}
|
|
63
|
+
return toHex(level[0]);
|
|
64
|
+
}
|
|
65
|
+
async function deriveChunkKey(cek, index) {
|
|
66
|
+
const baseKey = await subtle.importKey("raw", cek, "HKDF", false, ["deriveKey"]);
|
|
67
|
+
const info = textEncoder.encode(`${CHUNK_KDF_INFO}:${index}`);
|
|
68
|
+
return subtle.deriveKey({
|
|
69
|
+
name: "HKDF",
|
|
70
|
+
hash: "SHA-256",
|
|
71
|
+
salt: new Uint8Array(32),
|
|
72
|
+
info
|
|
73
|
+
}, baseKey, {
|
|
74
|
+
name: "AES-GCM",
|
|
75
|
+
length: 256
|
|
76
|
+
}, false, ["encrypt", "decrypt"]);
|
|
77
|
+
}
|
|
78
|
+
function chunkNonce(index) {
|
|
79
|
+
const nonce = new Uint8Array(12);
|
|
80
|
+
new DataView(nonce.buffer).setUint32(8, index >>> 0, false);
|
|
81
|
+
return nonce;
|
|
82
|
+
}
|
|
83
|
+
function chunkAad(objectId, index) {
|
|
84
|
+
const aad = new Uint8Array(objectId.length + 4);
|
|
85
|
+
aad.set(objectId, 0);
|
|
86
|
+
new DataView(aad.buffer).setUint32(objectId.length, index >>> 0, false);
|
|
87
|
+
return aad;
|
|
88
|
+
}
|
|
89
|
+
async function encryptChunk(cek, objectId, index, plaintext) {
|
|
90
|
+
const key = await deriveChunkKey(cek, index);
|
|
91
|
+
const ct = await subtle.encrypt({
|
|
92
|
+
name: "AES-GCM",
|
|
93
|
+
iv: chunkNonce(index),
|
|
94
|
+
additionalData: chunkAad(objectId, index)
|
|
95
|
+
}, key, plaintext);
|
|
96
|
+
return new Uint8Array(ct);
|
|
97
|
+
}
|
|
98
|
+
async function decryptChunk(cek, objectId, index, ciphertext) {
|
|
99
|
+
const key = await deriveChunkKey(cek, index);
|
|
100
|
+
const pt = await subtle.decrypt({
|
|
101
|
+
name: "AES-GCM",
|
|
102
|
+
iv: chunkNonce(index),
|
|
103
|
+
additionalData: chunkAad(objectId, index)
|
|
104
|
+
}, key, ciphertext);
|
|
105
|
+
return new Uint8Array(pt);
|
|
106
|
+
}
|
|
107
|
+
function authHeaders(apiKey) {
|
|
108
|
+
return { authorization: `Bearer ${apiKey}` };
|
|
109
|
+
}
|
|
110
|
+
function apiRoot(baseUrl) {
|
|
111
|
+
let end = baseUrl.length;
|
|
112
|
+
while (end > 0 && baseUrl.charCodeAt(end - 1) === 47) end--;
|
|
113
|
+
return `${baseUrl.slice(0, end)}/v1/payloads`;
|
|
114
|
+
}
|
|
115
|
+
const DEFAULT_MAX_RETRIES = 6;
|
|
116
|
+
const RETRYABLE_STATUS = new Set([
|
|
117
|
+
429,
|
|
118
|
+
500,
|
|
119
|
+
502,
|
|
120
|
+
503,
|
|
121
|
+
504
|
|
122
|
+
]);
|
|
123
|
+
function sleep(ms) {
|
|
124
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* fetch with exponential backoff on transient failures. Request bodies here are
|
|
128
|
+
* in-memory buffers/strings (never streams), so a retry can safely resend them.
|
|
129
|
+
*/
|
|
130
|
+
async function retryingFetch(url, init, label, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
131
|
+
for (let attempt = 0;; attempt++) {
|
|
132
|
+
let res;
|
|
133
|
+
let networkError;
|
|
134
|
+
try {
|
|
135
|
+
res = await fetch(url, init);
|
|
136
|
+
} catch (err) {
|
|
137
|
+
networkError = err;
|
|
138
|
+
}
|
|
139
|
+
if (res && !RETRYABLE_STATUS.has(res.status)) return res;
|
|
140
|
+
if (attempt >= maxRetries) {
|
|
141
|
+
if (res) return res;
|
|
142
|
+
throw new Error(`${label}: network error after ${attempt} retries: ${networkError?.message ?? networkError}`);
|
|
143
|
+
}
|
|
144
|
+
if (res) await res.text().catch(() => {});
|
|
145
|
+
await sleep(Math.min(1e3 * 2 ** attempt, 15e3) + Math.floor(Math.random() * 250));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async function initiate(opts, manifest) {
|
|
149
|
+
const res = await retryingFetch(apiRoot(opts.baseUrl), {
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers: {
|
|
152
|
+
...authHeaders(opts.apiKey),
|
|
153
|
+
"content-type": "application/json"
|
|
154
|
+
},
|
|
155
|
+
body: JSON.stringify({ manifest })
|
|
156
|
+
}, "initiate");
|
|
157
|
+
if (!res.ok) throw new Error(`initiate failed: HTTP ${res.status} ${await res.text()}`);
|
|
158
|
+
await res.text();
|
|
159
|
+
}
|
|
160
|
+
async function putChunk(opts, root, d, bytes) {
|
|
161
|
+
const res = await retryingFetch(`${apiRoot(opts.baseUrl)}/${root}/chunks/${d.ciphertextHash}`, {
|
|
162
|
+
method: "PUT",
|
|
163
|
+
headers: {
|
|
164
|
+
...authHeaders(opts.apiKey),
|
|
165
|
+
"content-type": "application/octet-stream"
|
|
166
|
+
},
|
|
167
|
+
body: bytes
|
|
168
|
+
}, `chunk ${d.index} upload`);
|
|
169
|
+
if (!res.ok) throw new Error(`chunk ${d.index} upload failed: HTTP ${res.status} ${await res.text()}`);
|
|
170
|
+
await res.text();
|
|
171
|
+
}
|
|
172
|
+
async function finalize(opts, root) {
|
|
173
|
+
const res = await retryingFetch(`${apiRoot(opts.baseUrl)}/${root}/finalize`, {
|
|
174
|
+
method: "POST",
|
|
175
|
+
headers: authHeaders(opts.apiKey)
|
|
176
|
+
}, "finalize");
|
|
177
|
+
if (!res.ok) throw new Error(`finalize failed: HTTP ${res.status} ${await res.text()}`);
|
|
178
|
+
await res.text();
|
|
179
|
+
}
|
|
180
|
+
async function fetchManifest(opts, root) {
|
|
181
|
+
const res = await retryingFetch(`${apiRoot(opts.baseUrl)}/${root}/manifest`, { headers: authHeaders(opts.apiKey) }, "get manifest");
|
|
182
|
+
if (!res.ok) throw new Error(`get manifest failed: HTTP ${res.status} ${await res.text()}`);
|
|
183
|
+
return (await res.json()).data.manifest;
|
|
184
|
+
}
|
|
185
|
+
async function getChunkBytes(opts, root, d) {
|
|
186
|
+
const res = await retryingFetch(`${apiRoot(opts.baseUrl)}/${root}/chunks/${d.ciphertextHash}`, { headers: authHeaders(opts.apiKey) }, `get chunk ${d.index}`);
|
|
187
|
+
if (!res.ok) throw new Error(`get chunk ${d.index} failed: HTTP ${res.status}`);
|
|
188
|
+
return new Uint8Array(await res.arrayBuffer());
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Encode in-memory bytes into a payload manifest (no upload). Exposed for
|
|
192
|
+
* precomputing an object's content address and for conformance-testing the
|
|
193
|
+
* chunk/crypto/Merkle construction against the server object model. With a fixed
|
|
194
|
+
* cek/objectId the output is fully deterministic.
|
|
195
|
+
*/
|
|
196
|
+
async function encodeManifest(bytes, opts = {}) {
|
|
197
|
+
const chunkSize = opts.chunkSize ?? CHUNK_SIZE;
|
|
198
|
+
const cek = opts.cekHex ? fromHex(opts.cekHex) : randomBytes(CEK_BYTES);
|
|
199
|
+
const objectId = opts.objectIdHex ? fromHex(opts.objectIdHex) : randomBytes(OBJECT_ID_BYTES);
|
|
200
|
+
const chunkCount = bytes.length === 0 ? 0 : Math.ceil(bytes.length / chunkSize);
|
|
201
|
+
const descriptors = [];
|
|
202
|
+
for (let index = 0; index < chunkCount; index++) {
|
|
203
|
+
const start = index * chunkSize;
|
|
204
|
+
const plaintext = bytes.subarray(start, Math.min(start + chunkSize, bytes.length));
|
|
205
|
+
const ciphertext = await encryptChunk(cek, objectId, index, plaintext);
|
|
206
|
+
descriptors.push({
|
|
207
|
+
index,
|
|
208
|
+
ciphertextHash: await contentHashHex(ciphertext),
|
|
209
|
+
plaintextSize: plaintext.length,
|
|
210
|
+
ciphertextSize: ciphertext.length
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
version: MANIFEST_VERSION,
|
|
215
|
+
objectId: toHex(objectId),
|
|
216
|
+
chunkSize,
|
|
217
|
+
totalPlaintextSize: bytes.length,
|
|
218
|
+
chunkCount,
|
|
219
|
+
chunks: descriptors,
|
|
220
|
+
merkleRoot: await merkleRoot(descriptors.map((d) => d.ciphertextHash))
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
async function readWindow(fh, position, length) {
|
|
224
|
+
const buf = Buffer.allocUnsafe(length);
|
|
225
|
+
let read = 0;
|
|
226
|
+
while (read < length) {
|
|
227
|
+
const { bytesRead } = await fh.read(buf, read, length - read, position + read);
|
|
228
|
+
if (bytesRead === 0) break;
|
|
229
|
+
read += bytesRead;
|
|
230
|
+
}
|
|
231
|
+
return read === length ? buf : buf.subarray(0, read);
|
|
232
|
+
}
|
|
233
|
+
async function mapLimit(items, limit, fn) {
|
|
234
|
+
let next = 0;
|
|
235
|
+
let firstError;
|
|
236
|
+
const worker = async () => {
|
|
237
|
+
while (next < items.length && firstError === void 0) {
|
|
238
|
+
const i = next++;
|
|
239
|
+
try {
|
|
240
|
+
await fn(items[i], i);
|
|
241
|
+
} catch (err) {
|
|
242
|
+
if (firstError === void 0) firstError = err;
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
await Promise.all(Array.from({ length: Math.min(limit, items.length || 1) }, () => worker()));
|
|
248
|
+
if (firstError !== void 0) throw firstError;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Stream a file up as a Primitive Payload. Two passes over the file (encrypt to
|
|
252
|
+
* build the manifest, then encrypt again to upload) keep memory bounded to a few
|
|
253
|
+
* chunks — the whole object is never resident. Returns the content address
|
|
254
|
+
* (merkleRoot) and the hex CEK needed to download it.
|
|
255
|
+
*/
|
|
256
|
+
async function pushFile(filePath, opts) {
|
|
257
|
+
const chunkSize = opts.chunkSize ?? CHUNK_SIZE;
|
|
258
|
+
const concurrency = opts.concurrency ?? 3;
|
|
259
|
+
const { size } = await stat(filePath);
|
|
260
|
+
const cek = randomBytes(CEK_BYTES);
|
|
261
|
+
const objectId = randomBytes(OBJECT_ID_BYTES);
|
|
262
|
+
const chunkCount = size === 0 ? 0 : Math.ceil(size / chunkSize);
|
|
263
|
+
const fh = await open(filePath, "r");
|
|
264
|
+
try {
|
|
265
|
+
const descriptors = [];
|
|
266
|
+
for (let index = 0; index < chunkCount; index++) {
|
|
267
|
+
const position = index * chunkSize;
|
|
268
|
+
const length = Math.min(chunkSize, size - position);
|
|
269
|
+
const plaintext = await readWindow(fh, position, length);
|
|
270
|
+
const ciphertext = await encryptChunk(cek, objectId, index, plaintext);
|
|
271
|
+
descriptors.push({
|
|
272
|
+
index,
|
|
273
|
+
ciphertextHash: await contentHashHex(ciphertext),
|
|
274
|
+
plaintextSize: length,
|
|
275
|
+
ciphertextSize: ciphertext.length
|
|
276
|
+
});
|
|
277
|
+
opts.onProgress?.("encrypt", index + 1, chunkCount);
|
|
278
|
+
}
|
|
279
|
+
const root = await merkleRoot(descriptors.map((d) => d.ciphertextHash));
|
|
280
|
+
await initiate(opts, {
|
|
281
|
+
version: MANIFEST_VERSION,
|
|
282
|
+
objectId: toHex(objectId),
|
|
283
|
+
chunkSize,
|
|
284
|
+
totalPlaintextSize: size,
|
|
285
|
+
chunkCount,
|
|
286
|
+
chunks: descriptors,
|
|
287
|
+
merkleRoot: root
|
|
288
|
+
});
|
|
289
|
+
let uploaded = 0;
|
|
290
|
+
await mapLimit(descriptors, concurrency, async (d) => {
|
|
291
|
+
const plaintext = await readWindow(fh, d.index * chunkSize, d.plaintextSize);
|
|
292
|
+
await putChunk(opts, root, d, await encryptChunk(cek, objectId, d.index, plaintext));
|
|
293
|
+
opts.onProgress?.("upload", ++uploaded, chunkCount);
|
|
294
|
+
});
|
|
295
|
+
await finalize(opts, root);
|
|
296
|
+
return {
|
|
297
|
+
merkleRoot: root,
|
|
298
|
+
cek: toHex(cek),
|
|
299
|
+
chunkCount,
|
|
300
|
+
totalBytes: size
|
|
301
|
+
};
|
|
302
|
+
} finally {
|
|
303
|
+
await fh.close();
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Push an in-memory buffer as a Primitive Payload. Same chunked, content-
|
|
308
|
+
* addressed, per-chunk-AEAD encoding as {@link pushFile}, over a Uint8Array
|
|
309
|
+
* (chunks are views, so no copy). Use {@link pushFile} for large objects that
|
|
310
|
+
* shouldn't be resident in memory. Returns the content address (merkleRoot) and
|
|
311
|
+
* the hex CEK.
|
|
312
|
+
*/
|
|
313
|
+
async function pushBytes(bytes, opts) {
|
|
314
|
+
const chunkSize = opts.chunkSize ?? CHUNK_SIZE;
|
|
315
|
+
const concurrency = opts.concurrency ?? 3;
|
|
316
|
+
const size = bytes.length;
|
|
317
|
+
const cek = randomBytes(CEK_BYTES);
|
|
318
|
+
const objectId = randomBytes(OBJECT_ID_BYTES);
|
|
319
|
+
const chunkCount = size === 0 ? 0 : Math.ceil(size / chunkSize);
|
|
320
|
+
const chunkOf = (index) => bytes.subarray(index * chunkSize, Math.min(size, (index + 1) * chunkSize));
|
|
321
|
+
const descriptors = [];
|
|
322
|
+
for (let index = 0; index < chunkCount; index++) {
|
|
323
|
+
const plaintext = chunkOf(index);
|
|
324
|
+
const ciphertext = await encryptChunk(cek, objectId, index, plaintext);
|
|
325
|
+
descriptors.push({
|
|
326
|
+
index,
|
|
327
|
+
ciphertextHash: await contentHashHex(ciphertext),
|
|
328
|
+
plaintextSize: plaintext.length,
|
|
329
|
+
ciphertextSize: ciphertext.length
|
|
330
|
+
});
|
|
331
|
+
opts.onProgress?.("encrypt", index + 1, chunkCount);
|
|
332
|
+
}
|
|
333
|
+
const root = await merkleRoot(descriptors.map((d) => d.ciphertextHash));
|
|
334
|
+
await initiate(opts, {
|
|
335
|
+
version: MANIFEST_VERSION,
|
|
336
|
+
objectId: toHex(objectId),
|
|
337
|
+
chunkSize,
|
|
338
|
+
totalPlaintextSize: size,
|
|
339
|
+
chunkCount,
|
|
340
|
+
chunks: descriptors,
|
|
341
|
+
merkleRoot: root
|
|
342
|
+
});
|
|
343
|
+
let uploaded = 0;
|
|
344
|
+
await mapLimit(descriptors, concurrency, async (d) => {
|
|
345
|
+
await putChunk(opts, root, d, await encryptChunk(cek, objectId, d.index, chunkOf(d.index)));
|
|
346
|
+
opts.onProgress?.("upload", ++uploaded, chunkCount);
|
|
347
|
+
});
|
|
348
|
+
await finalize(opts, root);
|
|
349
|
+
return {
|
|
350
|
+
merkleRoot: root,
|
|
351
|
+
cek: toHex(cek),
|
|
352
|
+
chunkCount,
|
|
353
|
+
totalBytes: size
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Stream a Primitive Payload down to a file, verifying and decrypting one chunk
|
|
358
|
+
* at a time (bounded memory). Every chunk is content-address-checked before
|
|
359
|
+
* decryption, so a corrupt or substituted chunk throws.
|
|
360
|
+
*/
|
|
361
|
+
async function pullFile(root, outPath, opts) {
|
|
362
|
+
const manifest = await fetchManifest(opts, root);
|
|
363
|
+
const computedRoot = await merkleRoot(manifest.chunks.map((c) => c.ciphertextHash));
|
|
364
|
+
if (computedRoot !== root) throw new Error(`manifest does not match the requested content address (got ${computedRoot})`);
|
|
365
|
+
const cek = fromHex(opts.cek);
|
|
366
|
+
const objectId = fromHex(manifest.objectId);
|
|
367
|
+
const out = createWriteStream(outPath);
|
|
368
|
+
let onWriteError = () => {};
|
|
369
|
+
const writeErrored = new Promise((_, reject) => {
|
|
370
|
+
onWriteError = reject;
|
|
371
|
+
});
|
|
372
|
+
writeErrored.catch(() => {});
|
|
373
|
+
out.on("error", (err) => onWriteError(err));
|
|
374
|
+
try {
|
|
375
|
+
let done = 0;
|
|
376
|
+
for (const d of manifest.chunks) {
|
|
377
|
+
const ciphertext = await getChunkBytes(opts, root, d);
|
|
378
|
+
if (await contentHashHex(ciphertext) !== d.ciphertextHash) throw new Error(`chunk ${d.index} failed integrity check`);
|
|
379
|
+
const plaintext = await decryptChunk(cek, objectId, d.index, ciphertext);
|
|
380
|
+
if (!out.write(plaintext)) await Promise.race([new Promise((resolve) => out.once("drain", resolve)), writeErrored]);
|
|
381
|
+
opts.onProgress?.("download", ++done, manifest.chunkCount);
|
|
382
|
+
}
|
|
383
|
+
await Promise.race([new Promise((resolve) => out.end(resolve)), writeErrored]);
|
|
384
|
+
} catch (err) {
|
|
385
|
+
out.destroy();
|
|
386
|
+
await rm(outPath, { force: true });
|
|
387
|
+
throw err;
|
|
388
|
+
}
|
|
389
|
+
return manifest;
|
|
390
|
+
}
|
|
391
|
+
//#endregion
|
|
392
|
+
export { encodeManifest, fetchManifest, pullFile, pushBytes, pushFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primitivedotdev/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Official Primitive Node.js SDK: webhook, api, openapi, contract, and parser runtime modules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
"types": "./dist/x402/index.d.ts",
|
|
46
46
|
"import": "./dist/x402/index.js",
|
|
47
47
|
"default": "./dist/x402/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./payloads": {
|
|
50
|
+
"types": "./dist/payloads/index.d.ts",
|
|
51
|
+
"import": "./dist/payloads/index.js",
|
|
52
|
+
"default": "./dist/payloads/index.js"
|
|
48
53
|
}
|
|
49
54
|
},
|
|
50
55
|
"sideEffects": false,
|
|
@@ -61,7 +66,7 @@
|
|
|
61
66
|
"test:coverage": "vitest run --coverage",
|
|
62
67
|
"test:watch": "vitest",
|
|
63
68
|
"typecheck": "pnpm generate && tsc --noEmit -p tsconfig.typecheck.json",
|
|
64
|
-
"lint": "biome check --error-on-warnings src/index.ts src/validation.ts src/types.ts src/webhook src/contract src/parser src/api/index.ts src/x402 src/openapi/index.ts tests/",
|
|
69
|
+
"lint": "biome check --error-on-warnings src/index.ts src/validation.ts src/types.ts src/webhook src/contract src/parser src/api/index.ts src/x402 src/openapi/index.ts src/payloads/index.ts tests/",
|
|
65
70
|
"lint:fix": "biome check --write --error-on-warnings src/index.ts src/validation.ts src/types.ts src/webhook src/contract src/parser src/api/index.ts src/x402 src/openapi/index.ts tests/",
|
|
66
71
|
"prepublishOnly": "pnpm build"
|
|
67
72
|
},
|