@primitivedotdev/sdk 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -200,49 +200,140 @@ email.raw;
200
200
 
201
201
  Use `email.raw` when you need the original validated webhook event shape.
202
202
 
203
- ## x402 agent-to-agent payments
203
+ ## x402 payments
204
204
 
205
- The `x402` client lets one agent request a stablecoin payment and another pay it. Payment is **non-custodial**: the payer signs an EIP-3009 `transferWithAuthorization` locally with their own key and the key never leaves them. The platform resolves the real payee address, verifies every signed field against its own records, enforces the org's spend policy, and settles. Available on Base Sepolia (`base-sepolia`) and Base mainnet (`base`); amounts are token base units (USDC has 6 decimals, so `"10000"` is 0.01 USDC).
205
+ The `x402` client lets one agent request a USDC payment and another pay it. It is non-custodial: the payer signs an EIP-3009 `transferWithAuthorization` locally with their own key, and the key never leaves the caller. The platform resolves the real payee address, verifies every signed field against its own records, enforces the org's spend policy, and settles on chain.
206
206
 
207
- Requires the `x402_payments` entitlement on your org.
207
+ The model in four steps:
208
+
209
+ 1. The payee registers a payout address once (proving control of it with a local signature).
210
+ 2. The payee creates a challenge with `charge()`, which the platform fills in with the registered payout address.
211
+ 3. The payer signs the challenge locally and submits it with `pay()`.
212
+ 4. The platform verifies and settles.
213
+
214
+ Amounts can be given as a human USDC string (`amountUsdc: "0.01"`) or as token base units (`amount: "10000"`, since USDC has 6 decimals). Networks are `base` (mainnet) and `base-sepolia` (testnet). A viem `LocalAccount` from `privateKeyToAccount` is a valid signer: `pay()` uses its `signTypedData`, and `registerPayoutAddress()` also uses its `signMessage`.
215
+
216
+ Construct the client from the `x402` subpath import (or `primitive.x402(...)` from the root import):
208
217
 
209
218
  ```ts
210
- import primitive from "@primitivedotdev/sdk";
219
+ import { createX402Client } from "@primitivedotdev/sdk/x402";
220
+
221
+ const x402 = createX402Client({ apiKey: process.env.PRIMITIVE_API_KEY! });
222
+ ```
223
+
224
+ ### Register a payout address (payee, one time)
225
+
226
+ The signer proves control of its own address with an ownership message that binds your organization id, so a captured signature can never register the address under a different org. The recovered address becomes your default payout destination for that network, and `charge()` resolves its `pay_to` from this directory, so register before requesting payments. The org id is resolved automatically from your account, so you do not pass it (supply `org` only to override).
227
+
228
+ ```ts
229
+ import { createX402Client } from "@primitivedotdev/sdk/x402";
211
230
  import { privateKeyToAccount } from "viem/accounts";
212
231
 
213
- const x402 = primitive.x402({ apiKey: process.env.PRIMITIVE_API_KEY });
232
+ const x402 = createX402Client({ apiKey: process.env.PRIMITIVE_API_KEY! });
233
+ const payee = privateKeyToAccount(process.env.PAYEE_KEY as `0x${string}`);
214
234
 
215
- // Payee (one-time): register the address you want to be paid at. The signer
216
- // proves control of the address; this becomes your default payout destination.
217
- const account = privateKeyToAccount(process.env.PAYEE_KEY);
218
235
  await x402.registerPayoutAddress(
219
- { org: process.env.PRIMITIVE_ORG_ID, network: "base-sepolia" },
220
- { signer: account },
236
+ { network: "base-sepolia", label: "treasury" },
237
+ { signer: payee },
221
238
  );
239
+ ```
240
+
241
+ ### Create a challenge (payee)
222
242
 
223
- // Payee: request a payment. `pay_to` is resolved from your registered address.
243
+ ```ts
224
244
  const challenge = await x402.charge({
225
- amount: "10000",
245
+ amountUsdc: "0.01", // human USDC amount
226
246
  network: "base-sepolia",
227
- payerOrg: process.env.PAYER_ORG_ID,
247
+ payerOrg: process.env.PAYER_ORG_ID, // org allowed to pay this challenge
248
+ description: "API call",
228
249
  });
250
+ ```
251
+
252
+ Pass exactly one of `amountUsdc` (a human USDC string like `"0.01"`) or `amount` (token base units, e.g. `"10000"`). `amountUsdc` is the easy path; `amount` remains available when you already have a base-unit value.
229
253
 
230
- // Payer: sign and settle with your own key.
231
- const payer = privateKeyToAccount(process.env.PAYER_KEY);
254
+ Hand the returned `challenge` object to the payer (for example over email or any out-of-band channel). `getChallenge(id)` re-hydrates a challenge by id, for example to retry `pay()` after a restart.
255
+
256
+ ### Pay a challenge (payer)
257
+
258
+ The payer signs the interaction-bound authorization locally and submits it. The key never leaves the caller.
259
+
260
+ ```ts
261
+ import { privateKeyToAccount } from "viem/accounts";
262
+
263
+ const payer = privateKeyToAccount(process.env.PAYER_KEY as `0x${string}`);
232
264
  const receipt = await x402.pay(challenge, { signer: payer });
233
- // receipt.status === "settled"; receipt.settle_tx is the on-chain hash.
265
+
266
+ console.log(receipt.status, receipt.settle_tx); // settled, on-chain tx hash
234
267
  ```
235
268
 
236
- A viem `LocalAccount` satisfies the `X402Signer` interface directly. `pay()` only needs `signTypedData`; `registerPayoutAddress()` also uses `signMessage`.
269
+ ### Signing primitives (lower level)
270
+
271
+ `pay()` builds and signs the payment for you. When you need to drive the signing yourself, for example to sign a challenge carried in an email reply and submit the payment separately, the same building blocks are exported directly:
237
272
 
238
- Guard your outbound spend with a policy (kill-switch, per-payment and daily caps, payee allowlist):
273
+ - `deriveEip3009Nonce(binding)` derives the interaction-bound EIP-3009 nonce. The byte layout (`keccak256` over the lowercased `interaction_id`, a `0x00` separator, the lowercased `challenge_step_id`, a `0x00` separator, and the 32 raw bytes of the challenge nonce) is locked to a normative vector the platform recomputes.
274
+ - `computePaymentValidityWindow({ challengeExpiresAtSec, nowSec })` returns the `{ validAfter, validBefore }` window. `validBefore` covers the challenge expiry plus a settlement margin; the total window is hard-capped (24h) so an over-wide authorization can never be produced.
275
+ - `signInteractionPayment({ sign, payer, domain, payTo, amount, nonceBinding, validAfter, validBefore })` derives the bound nonce, assembles the authorization, and signs it with your `sign` callback. Returns `{ authorization, signature }`. The key never leaves the caller.
276
+ - `buildExactEvmPaymentPayload({ network, authorization, signature })` assembles the exact-EVM x402 wire payload, validating the nonce and signature shape.
277
+
278
+ ```ts
279
+ import {
280
+ buildExactEvmPaymentPayload,
281
+ computePaymentValidityWindow,
282
+ signInteractionPayment,
283
+ } from "@primitivedotdev/sdk/x402";
284
+ import { privateKeyToAccount } from "viem/accounts";
285
+
286
+ const payer = privateKeyToAccount(process.env.PAYER_KEY as `0x${string}`);
287
+ const pr = challenge.payment_requirements;
288
+ const nowSec = Math.floor(Date.now() / 1000);
289
+
290
+ const { validAfter, validBefore } = computePaymentValidityWindow({
291
+ challengeExpiresAtSec: Math.floor(Date.parse(challenge.expires_at) / 1000),
292
+ nowSec,
293
+ });
294
+
295
+ const { authorization, signature } = await signInteractionPayment({
296
+ sign: (typedData) => payer.signTypedData(typedData),
297
+ payer: payer.address,
298
+ domain: {
299
+ name: pr.extra.name,
300
+ version: pr.extra.version,
301
+ chainId: 84532, // base-sepolia
302
+ verifyingContract: pr.asset as `0x${string}`,
303
+ },
304
+ payTo: pr.payTo as `0x${string}`,
305
+ amount: BigInt(pr.maxAmountRequired),
306
+ nonceBinding: {
307
+ interactionId: challenge.nonce_binding.interaction_id,
308
+ challengeStepId: challenge.nonce_binding.challenge_step_id,
309
+ challengeNonce: challenge.nonce_binding.challenge_nonce,
310
+ },
311
+ validAfter,
312
+ validBefore,
313
+ });
314
+
315
+ const payment = buildExactEvmPaymentPayload({
316
+ network: "base-sepolia",
317
+ authorization,
318
+ signature,
319
+ });
320
+ // submit `payment` to /v1/x402/challenges/{id}/pay
321
+ ```
322
+
323
+ ### Read and set the spend policy
324
+
325
+ The spend policy guards outbound payments: a `paused` kill-switch, per-payment and daily caps (token base units, or `null` for no cap), and a payee `allowlist` (`null` means any on-net payee, `[]` denies all). `setSpendPolicy` merges: only the fields you pass change, and omitted fields keep their current value. Pass `null` to clear a cap.
239
326
 
240
327
  ```ts
241
328
  await x402.setSpendPolicy({ paused: false, max_per_payment: "5000000" });
242
329
  const policy = await x402.getSpendPolicy();
330
+
331
+ await x402.listPayoutAddresses();
243
332
  ```
244
333
 
245
- `getChallenge(id)` re-hydrates a challenge (e.g. to retry `pay()` after a restart), and `listPayoutAddresses()` lists your registered addresses. Errors throw `X402Error` (`status`, `body`, `retryAfter`; `status === 0` means the request never reached the server). The client is also available as a subpath import: `import { X402Client } from "@primitivedotdev/sdk/x402"`.
334
+ ### Errors
335
+
336
+ Every method throws `X402Error` on a client-side, transport, or non-2xx server error. It carries `status` (the HTTP status, or `0` for a request that never reached the server), `body` (the parsed error envelope when present), and `retryAfter` (the `Retry-After` header, when the server sent one). On `pay()`, a `status === 0` error means the request may not have been sent, so the payment outcome is indeterminate.
246
337
 
247
338
  ## Lower-level surfaces
248
339
 
@@ -1,5 +1,5 @@
1
- import { $ as getConversation, $a as GetSentEmailData, $c as SetFunctionSecretData, $i as FunctionTestRunDeliveryEndpoint, $l as UnsetFunctionRouteErrors, $n as CreateFunctionError, $o as ListFunctionLogsError, $r as DeliveryStatus, $s as ResendAgentSignupVerificationInput, $t as AddDomainData, $u as VerifyDomainError, A as RequestOptions$1, Aa as GetFunctionRoutingErrors, Ac as SemanticSearchSnippet, Ai as EmailDetailReply, Al as StartCliSignupError, An as CreateAgentAccountErrors, Ao as ListDeliveriesResponses, Ar as DeleteEndpointErrors, As as PollCliLoginErrors, At as semanticSearch, Au as UpdateFunctionInput, B as createOrgSecret, Ba as GetInboxStatusErrors, Bc as SendPermissionAnyRecipient, Bi as ErrorResponse, Bl as TestEndpointResponse, Bn as CreateEndpointData, Bo as ListEmailsResponses, Br as DeleteFunctionErrors, Bs as ReplayEmailWebhooksError, Bt as testFunction, Bu as VerifyAgentSignupData, C as VerifyOptions, Ca as GetFunctionData, Cc as SemanticSearchErrors, Ci as DownloadRawEmailErrors, Cl as StartCliLoginData, Cn as CliSignupResendResult, Co as InboxStatusNextAction, Cr as DeleteEmailData, Cs as OrgSecretListItem, Ct as replayEmailWebhooks, Cu as UpdateFilterErrors, D as PrimitiveApiClientOptions, Da as GetFunctionResponses, Dc as SemanticSearchResponses, Di as EmailAttachment, Dl as StartCliLoginResponse, Dn as ConversationMessage, Do as ListDeliveriesError, Dr as DeleteEmailResponses, Ds as PlanLimits, Dt as rotateWebhookSecret, Du as UpdateFunctionData, E as PrimitiveApiClient, Ea as GetFunctionResponse, Ec as SemanticSearchMeta, Ei as EmailAddress, El as StartCliLoginInput, En as Conversation, Eo as ListDeliveriesData, Er as DeleteEmailResponse, Es as ParsedEmailData, Et as resendCliSignupVerification, Eu as UpdateFilterResponses, F as createAgentClaimLink, Fa as GetFunctionTestRunTraceErrors, Fc as SendEmailResponses, Fi as EmailSearchResult, Fl as StorageStats, Fn as CreateAgentClaimLinkError, Fo as ListDomainsResponses, Fr as DeleteFilterErrors, Fs as ReplayDeliveryError, Ft as startAgentClaim, Fu as VerifyAgentClaimError, G as deleteFunction, Ga as GetOrgRoutingTopologyErrors, Gc as SentEmailDetail, Gi as FunctionLogRow, Gl as TestFunctionResponse, Gn as CreateEndpointResponses, Go as ListEndpointsResponses, Gr as DeleteFunctionSecretErrors, Gs as ReplyToEmailData, Gt as updateFilter, Gu as VerifyAgentSignupResponses, H as deleteEmail, Ha as GetInboxStatusResponses, Hc as SendPermissionRule, Hi as FunctionDeployStatus, Hl as TestFunctionData, Hn as CreateEndpointErrors, Ho as ListEndpointsError, Hr as DeleteFunctionResponses, Hs as ReplayEmailWebhooksResponse, Ht as updateAccount, Hu as VerifyAgentSignupErrors, I as createEndpoint, Ia as GetFunctionTestRunTraceResponse, Ic as SendMailAttachment, Ii as EmailStatus, Il as SuccessEnvelope, In as CreateAgentClaimLinkErrors, Io as ListEmailsData, Ir as DeleteFilterResponse, Is as ReplayDeliveryErrors, It as startAgentSignup, Iu as VerifyAgentClaimErrors, J as discardEmailContent, Ja as GetSendPermissionsData, Jc as SetFunctionRouteData, Ji as FunctionRouting, Jl as TestResult, Jn as CreateFilterErrors, Jo as ListFiltersError, Jr as DeleteOrgSecretData, Js as ReplyToEmailResponse, Jt as verifyAgentSignup, Ju as VerifyCliSignupErrors, K as deleteFunctionSecret, Ka as GetOrgRoutingTopologyResponse, Kc as SentEmailStatus, Ki as FunctionRouteBody, Kl as TestFunctionResponses, Kn as CreateFilterData, Ko as ListEnvelope, Kr as DeleteFunctionSecretResponse, Ks as ReplyToEmailError, Kt as updateFunction, Ku as VerifyCliSignupData, L as createFilter, La as GetFunctionTestRunTraceResponses, Lc as SendMailInput, Li as EmailSummary, Ll as TestEndpointData, Ln as CreateAgentClaimLinkInput, Lo as ListEmailsError, Lr as DeleteFilterResponses, Ls as ReplayDeliveryResponse, Lt as startCliLogin, Lu as VerifyAgentClaimInput, M as addDomain, Ma as GetFunctionRoutingResponses, Mc as SendEmailError, Mi as EmailSearchFacets, Ml as StartCliSignupInput, Mn as CreateAgentAccountResponse, Mo as ListDomainsError, Mr as DeleteEndpointResponses, Ms as PollCliLoginResponse, Mt as setFunctionRoute, Mu as UpdateFunctionResponses, N as cliLogout, Na as GetFunctionTestRunTraceData, Nc as SendEmailErrors, Ni as EmailSearchHighlights, Nl as StartCliSignupResponse, Nn as CreateAgentAccountResponses, No as ListDomainsErrors, Nr as DeleteFilterData, Ns as PollCliLoginResponses, Nt as setFunctionSecret, Nu as VerifiedDomain, O as PrimitiveApiError, Oa as GetFunctionRoutingData, Oc as SemanticSearchResult, Oi as EmailAuth, Ol as StartCliLoginResponses, On as CreateAgentAccountData, Oo as ListDeliveriesErrors, Or as DeleteEndpointData, Os as PollCliLoginData, Ot as sdk_gen_d_exports, Ou as UpdateFunctionError, P as createAgentAccount, Pa as GetFunctionTestRunTraceError, Pc as SendEmailResponse, Pi as EmailSearchMeta, Pl as StartCliSignupResponses, Pn as CreateAgentClaimLinkData, Po as ListDomainsResponse, Pr as DeleteFilterError, Ps as ReplayDeliveryData, Pt as setOrgSecret, Pu as VerifyAgentClaimData, Q as getAccount, Qa as GetSendPermissionsResponses, Qc as SetFunctionRouteResponses, Qi as FunctionTestRunDelivery, Ql as UnsetFunctionRouteError, Qn as CreateFunctionData, Qo as ListFunctionLogsData, Qr as DeleteOrgSecretResponses, Qs as ResendAgentSignupVerificationErrors, Qt as AccountUpdated, Qu as VerifyDomainData, R as createFunction, Ra as GetInboxStatusData, Rc as SendMailResult, Ri as EmailWebhookStatus, Rl as TestEndpointError, Rn as CreateAgentClaimLinkResponse, Ro as ListEmailsErrors, Rr as DeleteFunctionData, Rs as ReplayDeliveryResponses, Rt as startCliSignup, Ru as VerifyAgentClaimResponse, S as PRIMITIVE_SIGNATURE_HEADER, Sa as GetEmailResponses, Sc as SemanticSearchError, Si as DownloadRawEmailError, Sl as StartAgentSignupResponses, Sn as CliLogoutResult, So as InboxStatusFunctionSummary, Sr as DeleteDomainResponses, Ss as ListSentEmailsResponses, St as replayDelivery, Su as UpdateFilterError, T as DEFAULT_API_BASE_URL, Ta as GetFunctionErrors, Tc as SemanticSearchInput, Ti as DownloadRawEmailResponses, Tl as StartCliLoginErrors, Tn as CliSignupVerifyResult, To as Limit, Tr as DeleteEmailErrors, Ts as PaginationMeta, Tt as resendAgentSignupVerification, Tu as UpdateFilterResponse, U as deleteEndpoint, Ua as GetOrgRoutingTopologyData, Uc as SendPermissionYourDomain, Ui as FunctionDetail, Ul as TestFunctionError, Un as CreateEndpointInput, Uo as ListEndpointsErrors, Ur as DeleteFunctionSecretData, Us as ReplayEmailWebhooksResponses, Ut as updateDomain, Uu as VerifyAgentSignupInput, V as deleteDomain, Va as GetInboxStatusResponse, Vc as SendPermissionManagedZone, Vi as Filter, Vl as TestEndpointResponses, Vn as CreateEndpointError, Vo as ListEndpointsData, Vr as DeleteFunctionResponse, Vs as ReplayEmailWebhooksErrors, Vt as unsetFunctionRoute, Vu as VerifyAgentSignupError, W as deleteFilter, Wa as GetOrgRoutingTopologyError, Wc as SendPermissionsMeta, Wi as FunctionListItem, Wl as TestFunctionErrors, Wn as CreateEndpointResponse, Wo as ListEndpointsResponse, Wr as DeleteFunctionSecretError, Ws as ReplayResult, Wt as updateEndpoint, Wu as VerifyAgentSignupResponse, X as downloadDomainZoneFile, Xa as GetSendPermissionsErrors, Xc as SetFunctionRouteErrors, Xi as FunctionSecretWriteResult, Xl as ThreadMessage, Xn as CreateFilterResponse, Xo as ListFiltersResponse, Xr as DeleteOrgSecretErrors, Xs as ResendAgentSignupVerificationData, Xt as verifyDomain, Xu as VerifyCliSignupResponse, Y as downloadAttachments, Ya as GetSendPermissionsError, Yc as SetFunctionRouteError, Yi as FunctionSecretListItem, Yl as Thread, Yn as CreateFilterInput, Yo as ListFiltersErrors, Yr as DeleteOrgSecretError, Ys as ReplyToEmailResponses, Yt as verifyCliSignup, Yu as VerifyCliSignupInput, Z as downloadRawEmail, Za as GetSendPermissionsResponse, Zc as SetFunctionRouteResponse, Zi as FunctionTestRun, Zl as UnsetFunctionRouteData, Zn as CreateFilterResponses, Zo as ListFiltersResponses, Zr as DeleteOrgSecretResponse, Zs as ResendAgentSignupVerificationError, Zt as Account, Zu as VerifyCliSignupResponses, _ as SendThreadInput, _a as GetConversationResponses, _c as SearchEmailsErrors, _i as DownloadDomainZoneFileError, _l as StartAgentSignupData, _n as CliLogoutError, _o as GetWebhookSecretResponse, _r as Cursor, _s as ListOrgSecretsResponses, _t as listFunctionSecrets, _u as UpdateEndpointErrors, a as ForwardInput, aa as FunctionTestRunTrace, ac as ResendCliSignupVerificationInput, ad as Client, ai as DiscardEmailContentResponse, al as SetOrgSecretData, an as AgentAccountResult, ao as GetStorageStatsError, ar as CreateFunctionSecretData, as as ListFunctionSecretsErrors, at as getOrgRoutingTopology, au as UpdateAccountErrors, b as createAgent, ba as GetEmailErrors, bc as SemanticSearchCoverage, bi as DownloadDomainZoneFileResponses, bl as StartAgentSignupInput, bn as CliLogoutResponse, bo as InboxStatusDomain, br as DeleteDomainErrors, bs as ListSentEmailsErrors, bt as listSentEmails, bu as UpdateEndpointResponses, c as InboxStreamOptions, ca as GetAccountData, cc as ResourceId, cd as CreateClientConfig, ci as Domain, cl as SetOrgSecretInput, cn as AgentClaimResult, co as GetStorageStatsResponses, cr as CreateFunctionSecretInput, cs as ListFunctionsData, ct as getStorageStats, cu as UpdateAccountResponses, d as ReplyInput, da as GetAccountResponse, dc as RotateWebhookSecretErrors, dd as RequestResult, di as DownloadAttachmentsData, dl as StartAgentClaimData, dn as AgentSignupResendResult, do as GetThreadErrors, dr as CreateOrgSecretData, ds as ListFunctionsResponse, dt as listDeliveries, du as UpdateDomainErrors, ea as FunctionTestRunInboundEmail, ec as ResendAgentSignupVerificationResponse, ed as VerifyDomainErrors, ei as DeliverySummary, el as SetFunctionSecretError, en as AddDomainError, eo as GetSentEmailError, er as CreateFunctionErrors, es as ListFunctionLogsErrors, et as getEmail, eu as UnsetFunctionRouteResponse, f as RequestOptions$2, fa as GetAccountResponses, fc as RotateWebhookSecretResponse, fd as ResponseStyle, fi as DownloadAttachmentsError, fl as StartAgentClaimError, fn as AgentSignupStartResult, fo as GetThreadResponse, fr as CreateOrgSecretError, fs as ListFunctionsResponses, ft as listDomains, fu as UpdateDomainInput, g as SendResult, ga as GetConversationResponse, gc as SearchEmailsError, gi as DownloadDomainZoneFileData, gl as StartAgentClaimResponses, gn as CliLogoutData, go as GetWebhookSecretErrors, gr as CreateOrgSecretResponses, gs as ListOrgSecretsResponse, gt as listFunctionLogs, gu as UpdateEndpointError, h as SendInput, ha as GetConversationErrors, hc as SearchEmailsData, hi as DownloadAttachmentsResponses, hl as StartAgentClaimResponse, hn as CliLoginStartResult, ho as GetWebhookSecretError, hr as CreateOrgSecretResponse, hs as ListOrgSecretsErrors, ht as listFilters, hu as UpdateEndpointData, i as CreatedAgent, ia as FunctionTestRunState, ic as ResendCliSignupVerificationErrors, id as createClient, ii as DiscardEmailContentErrors, il as SetFunctionSecretResponses, in as AddDomainResponses, io as GetStorageStatsData, ir as CreateFunctionResult, is as ListFunctionSecretsError, it as getInboxStatus, iu as UpdateAccountError, j as createPrimitiveApiClient, ja as GetFunctionRoutingResponse, jc as SendEmailData, ji as EmailSearchFacetBucket, jl as StartCliSignupErrors, jn as CreateAgentAccountInput, jo as ListDomainsData, jr as DeleteEndpointResponse, js as PollCliLoginInput, jt as sendEmail, ju as UpdateFunctionResponse, k as PrimitiveApiErrorDetails, ka as GetFunctionRoutingError, kc as SemanticSearchScoreBreakdown, ki as EmailDetail, kl as StartCliSignupData, kn as CreateAgentAccountError, ko as ListDeliveriesResponse, kr as DeleteEndpointError, ks as PollCliLoginError, kt as searchEmails, ku as UpdateFunctionErrors, l as PrimitiveClient, la as GetAccountError, lc as RotateWebhookSecretData, ld as Options, li as DomainDnsRecord, ll as SetOrgSecretResponse, ln as AgentClaimStartResult, lo as GetThreadData, lr as CreateFunctionSecretResponse, ls as ListFunctionsError, lt as getThread, lu as UpdateDomainData, m as SendAttachment, ma as GetConversationError, mc as RoutingTopology, md as Auth, mi as DownloadAttachmentsResponse, ml as StartAgentClaimInput, mn as CliLoginPollResult, mo as GetWebhookSecretData, mr as CreateOrgSecretInput, ms as ListOrgSecretsError, mt as listEndpoints, mu as UpdateDomainResponses, n as AgentResource, na as FunctionTestRunReply, nc as ResendCliSignupVerificationData, nd as VerifyDomainResponses, ni as DiscardEmailContentData, nl as SetFunctionSecretInput, nn as AddDomainInput, no as GetSentEmailResponse, nr as CreateFunctionResponse, ns as ListFunctionLogsResponses, nt as getFunctionRouting, nu as UnverifiedDomain, o as InboundEmail, oa as GateDenial, oc as ResendCliSignupVerificationResponse, od as ClientOptions, oi as DiscardEmailContentResponses, ol as SetOrgSecretError, on as AgentAccountUpgradeHint, oo as GetStorageStatsErrors, or as CreateFunctionSecretError, os as ListFunctionSecretsResponse, ot as getSendPermissions, ou as UpdateAccountInput, p as SemanticSearchResponse, pa as GetConversationData, pc as RotateWebhookSecretResponses, pd as createConfig, pi as DownloadAttachmentsErrors, pl as StartAgentClaimErrors, pn as AgentSignupVerifyResult, po as GetThreadResponses, pr as CreateOrgSecretErrors, ps as ListOrgSecretsData, pt as listEmails, pu as UpdateDomainResponse, q as deleteOrgSecret, qa as GetOrgRoutingTopologyResponses, qc as SentEmailSummary, qi as FunctionRouteResult, ql as TestInvocationResult, qn as CreateFilterError, qo as ListFiltersData, qr as DeleteFunctionSecretResponses, qs as ReplyToEmailErrors, qt as verifyAgentClaim, qu as VerifyCliSignupError, r as CreateAgentOptions, ra as FunctionTestRunSend, rc as ResendCliSignupVerificationError, rd as WebhookSecret, ri as DiscardEmailContentError, rl as SetFunctionSecretResponse, rn as AddDomainResponse, ro as GetSentEmailResponses, rr as CreateFunctionResponses, rs as ListFunctionSecretsData, rt as getFunctionTestRunTrace, ru as UpdateAccountData, s as InboxResource, sa as GateFix, sc as ResendCliSignupVerificationResponses, sd as Config, si as DkimSignature, sl as SetOrgSecretErrors, sn as AgentClaimLinkResult, so as GetStorageStatsResponse, sr as CreateFunctionSecretErrors, ss as ListFunctionSecretsResponses, st as getSentEmail, su as UpdateAccountResponse, t as AccountResource, ta as FunctionTestRunOutboundRequest, tc as ResendAgentSignupVerificationResponses, td as VerifyDomainResponse, ti as DiscardContentResult, tl as SetFunctionSecretErrors, tn as AddDomainErrors, to as GetSentEmailErrors, tr as CreateFunctionInput, ts as ListFunctionLogsResponse, tt as getFunction, tu as UnsetFunctionRouteResponses, u as PrimitiveClientOptions, ua as GetAccountErrors, uc as RotateWebhookSecretError, ud as RequestOptions, ui as DomainVerifyResult, ul as SetOrgSecretResponses, un as AgentOrgRef, uo as GetThreadError, ur as CreateFunctionSecretResponses, us as ListFunctionsErrors, ut as getWebhookSecret, uu as UpdateDomainError, v as WaitForNextOptions, va as GetEmailData, vc as SearchEmailsResponse, vi as DownloadDomainZoneFileErrors, vl as StartAgentSignupError, vn as CliLogoutErrors, vo as GetWebhookSecretResponses, vr as DeleteDomainData, vs as ListSentEmailsData, vt as listFunctions, vu as UpdateEndpointInput, w as verifyWebhookSignature, wa as GetFunctionError, wc as SemanticSearchField, wi as DownloadRawEmailResponse, wl as StartCliLoginError, wn as CliSignupStartResult, wo as InboxStatusRecentEmailSummary, wr as DeleteEmailError, ws as OrgSecretWriteResult, wt as replyToEmail, wu as UpdateFilterInput, x as createPrimitiveClient, xa as GetEmailResponse, xc as SemanticSearchData, xi as DownloadRawEmailData, xl as StartAgentSignupResponse, xn as CliLogoutResponses, xo as InboxStatusEndpointSummary, xr as DeleteDomainResponse, xs as ListSentEmailsResponse, xt as pollCliLogin, xu as UpdateFilterData, y as client, ya as GetEmailError, yc as SearchEmailsResponses, yi as DownloadDomainZoneFileResponse, yl as StartAgentSignupErrors, yn as CliLogoutInput, yo as InboxStatus, yr as DeleteDomainError, ys as ListSentEmailsError, yt as listOrgSecrets, yu as UpdateEndpointResponse, z as createFunctionSecret, za as GetInboxStatusError, zc as SendPermissionAddress, zi as Endpoint, zl as TestEndpointErrors, zn as CreateAgentClaimLinkResponses, zo as ListEmailsResponse, zr as DeleteFunctionError, zs as ReplayEmailWebhooksData, zt as testEndpoint, zu as VerifyAgentClaimResponses } from "../index--2RzTxVl.js";
1
+ import { $ as getAccount, $a as GetFunctionTestRunTraceError, $c as ResendCliSignupVerificationResponses, $d as VerifyDomainResponse, $i as Endpoint, $l as SetOrgSecretErrors, $n as CreateChallengeResponses, $o as ListDeclinedPaymentsResponse, $r as DeleteFunctionError, $s as ListSentEmailsError, $t as updateFunction, $u as UpdateAccountResponse, A as RequestOptions$1, Aa as GetChallengeResponse, Ac as ReplayDeliveryResponses, Ad as UpdateSpendPolicyResponses, Ai as DownloadDomainZoneFileData, Al as SendMailResult, An as CliLogoutResult, Ao as GetStorageStatsErrors, Ar as CreateOrgSecretResponses, As as ListFunctionLogsResponse, At as replayEmailWebhooks, Au as TestEndpointError, B as createFunctionSecret, Ba as GetEmailResponse, Bc as ReplyToEmailResponse, Bd as VerifyAgentSignupErrors, Bi as EmailAddress, Bl as SetFunctionRouteData, Bn as CreateAgentAccountResponse, Bo as GetWebhookSecretErrors, Br as DeleteEmailResponse, Bs as ListFunctionsResponse, Bt as setFunctionSecret, Bu as TestResult, C as VerifyOptions, Ca as GetAccountError, Cc as RegisterPayoutAddressInput, Cd as UpdateFunctionResponse, Ci as DomainDnsRecord, Cl as SendEmailData, Cn as CliLoginStartResult, Co as GetSpendPolicyData, Cr as CreateFunctionSecretResponse, Cs as ListFiltersError, Ct as listOrgSecrets, Cu as StartCliSignupErrors, D as PrimitiveApiClientOptions, Da as GetChallengeData, Dc as ReplayDeliveryError, Dd as UpdateSpendPolicyErrors, Di as DownloadAttachmentsErrors, Dl as SendEmailResponses, Dn as CliLogoutInput, Do as GetSpendPolicyResponses, Dr as CreateOrgSecretErrors, Ds as ListFunctionLogsData, Dt as pollCliLogin, Du as StorageStats, E as PrimitiveApiClient, Ea as GetAccountResponses, Ec as ReplayDeliveryData, Ed as UpdateSpendPolicyError, Ei as DownloadAttachmentsError, El as SendEmailResponse, En as CliLogoutErrors, Eo as GetSpendPolicyResponse, Er as CreateOrgSecretError, Es as ListFiltersResponses, Et as payChallenge, Eu as StartCliSignupResponses, F as createAgentClaimLink, Fa as GetConversationResponse, Fc as ReplayEmailWebhooksResponses, Fd as VerifyAgentClaimInput, Fi as DownloadRawEmailData, Fl as SendPermissionYourDomain, Fn as ConversationMessage, Fo as GetThreadErrors, Fr as DeleteDomainResponse, Fs as ListFunctionSecretsResponse, Ft as sdk_gen_d_exports, Fu as TestFunctionError, G as deleteFilter, Ga as GetFunctionResponse, Gc as ResendAgentSignupVerificationInput, Gd as VerifyCliSignupError, Gi as EmailSearchFacetBucket, Gl as SetFunctionSecretData, Gn as CreateAgentClaimLinkInput, Go as InboxStatusEndpointSummary, Gr as DeleteEndpointResponse, Gs as ListOrgSecretsResponse, Gt as startCliSignup, Gu as UnsetFunctionRouteErrors, H as deleteDomain, Ha as GetFunctionData, Hc as ResendAgentSignupVerificationData, Hd as VerifyAgentSignupResponse, Hi as EmailAuth, Hl as SetFunctionRouteErrors, Hn as CreateAgentClaimLinkData, Ho as GetWebhookSecretResponses, Hr as DeleteEndpointData, Hs as ListOrgSecretsData, Ht as startAgentClaim, Hu as ThreadMessage, I as createChallenge, Ia as GetConversationResponses, Ic as ReplayResult, Id as VerifyAgentClaimResponse, Ii as DownloadRawEmailError, Il as SendPermissionsMeta, In as CreateAgentAccountData, Io as GetThreadResponse, Ir as DeleteDomainResponses, Is as ListFunctionSecretsResponses, It as searchEmails, Iu as TestFunctionErrors, J as deleteOrgSecret, Ja as GetFunctionRoutingError, Jc as ResendCliSignupVerificationData, Jd as VerifyCliSignupResponse, Ji as EmailSearchMeta, Jl as SetFunctionSecretInput, Jn as CreateChallengeData, Jo as InboxStatusRecentEmailSummary, Jr as DeleteFilterError, Js as ListPayoutAddressesError, Jt as unsetFunctionRoute, Ju as UnverifiedDomain, K as deleteFunction, Ka as GetFunctionResponses, Kc as ResendAgentSignupVerificationResponse, Kd as VerifyCliSignupErrors, Ki as EmailSearchFacets, Kl as SetFunctionSecretError, Kn as CreateAgentClaimLinkResponse, Ko as InboxStatusFunctionSummary, Kr as DeleteEndpointResponses, Ks as ListOrgSecretsResponses, Kt as testEndpoint, Ku as UnsetFunctionRouteResponse, L as createEndpoint, La as GetEmailData, Lc as ReplyToEmailData, Ld as VerifyAgentClaimResponses, Li as DownloadRawEmailErrors, Ll as SentEmailDetail, Ln as CreateAgentAccountError, Lo as GetThreadResponses, Lr as DeleteEmailData, Ls as ListFunctionsData, Lt as semanticSearch, Lu as TestFunctionResponse, M as addDomain, Ma as GetConversationData, Mc as ReplayEmailWebhooksError, Md as VerifyAgentClaimData, Mi as DownloadDomainZoneFileErrors, Ml as SendPermissionAnyRecipient, Mn as CliSignupStartResult, Mo as GetStorageStatsResponses, Mr as DeleteDomainData, Ms as ListFunctionSecretsData, Mt as resendAgentSignupVerification, Mu as TestEndpointResponse, N as cliLogout, Na as GetConversationError, Nc as ReplayEmailWebhooksErrors, Nd as VerifyAgentClaimError, Ni as DownloadDomainZoneFileResponse, Nl as SendPermissionManagedZone, Nn as CliSignupVerifyResult, No as GetThreadData, Nr as DeleteDomainError, Ns as ListFunctionSecretsError, Nt as resendCliSignupVerification, Nu as TestEndpointResponses, O as PrimitiveApiError, Oa as GetChallengeError, Oc as ReplayDeliveryErrors, Od as UpdateSpendPolicyInput, Oi as DownloadAttachmentsResponse, Ol as SendMailAttachment, On as CliLogoutResponse, Oo as GetStorageStatsData, Or as CreateOrgSecretInput, Os as ListFunctionLogsError, Ot as registerPayoutAddress, Ou as SuccessEnvelope, P as createAgentAccount, Pa as GetConversationErrors, Pc as ReplayEmailWebhooksResponse, Pd as VerifyAgentClaimErrors, Pi as DownloadDomainZoneFileResponses, Pl as SendPermissionRule, Pn as Conversation, Po as GetThreadError, Pr as DeleteDomainErrors, Ps as ListFunctionSecretsErrors, Pt as rotateWebhookSecret, Pu as TestFunctionData, Q as downloadRawEmail, Qa as GetFunctionTestRunTraceData, Qc as ResendCliSignupVerificationResponse, Qd as VerifyDomainErrors, Qi as EmailWebhookStatus, Ql as SetOrgSecretError, Qn as CreateChallengeResponse, Qo as ListDeclinedPaymentsErrors, Qr as DeleteFunctionData, Qs as ListSentEmailsData, Qt as updateFilter, Qu as UpdateAccountInput, R as createFilter, Ra as GetEmailError, Rc as ReplyToEmailError, Rd as VerifyAgentSignupData, Ri as DownloadRawEmailResponse, Rl as SentEmailStatus, Rn as CreateAgentAccountErrors, Ro as GetWebhookSecretData, Rr as DeleteEmailError, Rs as ListFunctionsError, Rt as sendEmail, Ru as TestFunctionResponses, S as PRIMITIVE_SIGNATURE_HEADER, Sa as GetAccountData, Sc as RegisterPayoutAddressErrors, Sd as UpdateFunctionInput, Si as Domain, Sl as SemanticSearchSnippet, Sn as CliLoginPollResult, So as GetSentEmailResponses, Sr as CreateFunctionSecretInput, Ss as ListFiltersData, St as listFunctions, Su as StartCliSignupError, T as DEFAULT_API_BASE_URL, Ta as GetAccountResponse, Tc as RegisterPayoutAddressResponses, Td as UpdateSpendPolicyData, Ti as DownloadAttachmentsData, Tl as SendEmailErrors, Tn as CliLogoutError, To as GetSpendPolicyErrors, Tr as CreateOrgSecretData, Ts as ListFiltersResponse, Tt as listSentEmails, Tu as StartCliSignupResponse, U as deleteEmail, Ua as GetFunctionError, Uc as ResendAgentSignupVerificationError, Ud as VerifyAgentSignupResponses, Ui as EmailDetail, Ul as SetFunctionRouteResponse, Un as CreateAgentClaimLinkError, Uo as InboxStatus, Ur as DeleteEndpointError, Us as ListOrgSecretsError, Ut as startAgentSignup, Uu as UnsetFunctionRouteData, V as createOrgSecret, Va as GetEmailResponses, Vc as ReplyToEmailResponses, Vd as VerifyAgentSignupInput, Vi as EmailAttachment, Vl as SetFunctionRouteError, Vn as CreateAgentAccountResponses, Vo as GetWebhookSecretResponse, Vr as DeleteEmailResponses, Vs as ListFunctionsResponses, Vt as setOrgSecret, Vu as Thread, W as deleteEndpoint, Wa as GetFunctionErrors, Wc as ResendAgentSignupVerificationErrors, Wd as VerifyCliSignupData, Wi as EmailDetailReply, Wl as SetFunctionRouteResponses, Wn as CreateAgentClaimLinkErrors, Wo as InboxStatusDomain, Wr as DeleteEndpointErrors, Ws as ListOrgSecretsErrors, Wt as startCliLogin, Wu as UnsetFunctionRouteError, X as downloadAttachments, Xa as GetFunctionRoutingResponse, Xc as ResendCliSignupVerificationErrors, Xd as VerifyDomainData, Xi as EmailStatus, Xl as SetFunctionSecretResponses, Xn as CreateChallengeErrors, Xo as ListDeclinedPaymentsData, Xr as DeleteFilterResponse, Xs as ListPayoutAddressesResponse, Xt as updateDomain, Xu as UpdateAccountError, Y as discardEmailContent, Ya as GetFunctionRoutingErrors, Yc as ResendCliSignupVerificationError, Yd as VerifyCliSignupResponses, Yi as EmailSearchResult, Yl as SetFunctionSecretResponse, Yn as CreateChallengeError, Yo as Limit, Yr as DeleteFilterErrors, Ys as ListPayoutAddressesErrors, Yt as updateAccount, Yu as UpdateAccountData, Z as downloadDomainZoneFile, Za as GetFunctionRoutingResponses, Zc as ResendCliSignupVerificationInput, Zd as VerifyDomainError, Zi as EmailSummary, Zl as SetOrgSecretData, Zn as CreateChallengeInput, Zo as ListDeclinedPaymentsError, Zr as DeleteFilterResponses, Zs as ListPayoutAddressesResponses, Zt as updateEndpoint, Zu as UpdateAccountErrors, _ as SendThreadInput, _a as FunctionTestRunSend, _c as PollCliLoginInput, _d as UpdateFilterResponse, _f as RequestResult, _i as DiscardEmailContentError, _l as SemanticSearchInput, _n as AgentClaimStartResult, _o as GetSendPermissionsResponses, _r as CreateFunctionResponses, _s as ListEndpointsError, _t as listEmails, _u as StartCliLoginErrors, a as ForwardInput, aa as FunctionLogRow, ac as PaginationMeta, ad as UpdateDomainResponse, af as X402PaymentPayload, ai as DeleteFunctionSecretErrors, al as RotateWebhookSecretResponses, an as Account, ao as GetInboxStatusErrors, ar as CreateEndpointResponses, as as ListDeliveriesResponses, at as getFunctionTestRunTrace, au as StartAgentClaimErrors, b as createAgent, ba as GateDenial, bc as RegisterPayoutAddressData, bd as UpdateFunctionError, bf as Auth, bi as DiscardEmailContentResponses, bl as SemanticSearchResult, bn as AgentSignupStartResult, bo as GetSentEmailErrors, br as CreateFunctionSecretError, bs as ListEndpointsResponses, bt as listFunctionLogs, bu as StartCliLoginResponses, c as InboxStreamOptions, ca as FunctionRouting, cc as PayChallengeError, cd as UpdateEndpointError, cf as X402Receipt, ci as DeleteOrgSecretData, cl as SearchEmailsError, cn as AddDomainError, co as GetOrgRoutingTopologyData, cr as CreateFilterErrors, cs as ListDomainsErrors, ct as getSendPermissions, cu as StartAgentClaimResponses, d as ReplyInput, da as FunctionTestRun, dc as PayChallengeResponse, dd as UpdateEndpointResponse, df as Client, di as DeleteOrgSecretResponse, dl as SearchEmailsResponses, dn as AddDomainResponse, do as GetOrgRoutingTopologyResponse, dr as CreateFilterResponses, ds as ListEmailsData, dt as getStorageStats, du as StartAgentSignupErrors, ea as ErrorResponse, ec as ListSentEmailsErrors, ed as UpdateAccountResponses, ef as VerifyDomainResponses, ei as DeleteFunctionErrors, el as ResourceId, en as updateSpendPolicy, eo as GetFunctionTestRunTraceErrors, er as CreateEndpointData, es as ListDeclinedPaymentsResponses, et as getChallenge, eu as SetOrgSecretInput, f as RequestOptions$2, fa as FunctionTestRunDelivery, fc as PayChallengeResponses, fd as UpdateEndpointResponses, ff as ClientOptions, fi as DeleteOrgSecretResponses, fl as SemanticSearchCoverage, fn as AddDomainResponses, fo as GetOrgRoutingTopologyResponses, fr as CreateFunctionData, fs as ListEmailsError, ft as getThread, fu as StartAgentSignupInput, g as SendResult, ga as FunctionTestRunReply, gc as PollCliLoginErrors, gd as UpdateFilterInput, gf as RequestOptions, gi as DiscardEmailContentData, gl as SemanticSearchField, gn as AgentClaimResult, go as GetSendPermissionsResponse, gr as CreateFunctionResponse, gs as ListEndpointsData, gt as listDomains, gu as StartCliLoginError, h as SendInput, ha as FunctionTestRunOutboundRequest, hc as PollCliLoginError, hd as UpdateFilterErrors, hf as Options, hi as DiscardContentResult, hl as SemanticSearchErrors, hn as AgentClaimLinkResult, ho as GetSendPermissionsErrors, hr as CreateFunctionInput, hs as ListEmailsResponses, ht as listDeliveries, hu as StartCliLoginData, i as CreatedAgent, ia as FunctionListItem, ic as OrgSecretWriteResult, id as UpdateDomainInput, if as X402NonceBinding, ii as DeleteFunctionSecretError, il as RotateWebhookSecretResponse, in as verifyDomain, io as GetInboxStatusError, ir as CreateEndpointResponse, is as ListDeliveriesResponse, it as getFunctionRouting, iu as StartAgentClaimError, j as createPrimitiveApiClient, ja as GetChallengeResponses, jc as ReplayEmailWebhooksData, jd as VerifiedDomain, ji as DownloadDomainZoneFileError, jl as SendPermissionAddress, jn as CliSignupResendResult, jo as GetStorageStatsResponse, jr as Cursor, js as ListFunctionLogsResponses, jt as replyToEmail, ju as TestEndpointErrors, k as PrimitiveApiErrorDetails, ka as GetChallengeErrors, kc as ReplayDeliveryResponse, kd as UpdateSpendPolicyResponse, ki as DownloadAttachmentsResponses, kl as SendMailInput, kn as CliLogoutResponses, ko as GetStorageStatsError, kr as CreateOrgSecretResponse, ks as ListFunctionLogsErrors, kt as replayDelivery, ku as TestEndpointData, l as PrimitiveClient, la as FunctionSecretListItem, lc as PayChallengeErrors, ld as UpdateEndpointErrors, lf as X402SpendPolicy, li as DeleteOrgSecretError, ll as SearchEmailsErrors, ln as AddDomainErrors, lo as GetOrgRoutingTopologyError, lr as CreateFilterInput, ls as ListDomainsResponse, lt as getSentEmail, lu as StartAgentSignupData, m as SendAttachment, ma as FunctionTestRunInboundEmail, mc as PollCliLoginData, md as UpdateFilterError, mf as CreateClientConfig, mi as DeliverySummary, ml as SemanticSearchError, mn as AgentAccountUpgradeHint, mo as GetSendPermissionsError, mr as CreateFunctionErrors, ms as ListEmailsResponse, mt as listDeclinedPayments, mu as StartAgentSignupResponses, n as AgentResource, na as FunctionDeployStatus, nc as ListSentEmailsResponses, nd as UpdateDomainError, nf as X402Challenge, ni as DeleteFunctionResponses, nl as RotateWebhookSecretError, nn as verifyAgentSignup, no as GetFunctionTestRunTraceResponses, nr as CreateEndpointErrors, ns as ListDeliveriesError, nt as getEmail, nu as SetOrgSecretResponses, o as InboundEmail, oa as FunctionRouteBody, oc as ParsedEmailData, od as UpdateDomainResponses, of as X402PaymentRequirements, oi as DeleteFunctionSecretResponse, ol as RoutingTopology, on as AccountUpdated, oo as GetInboxStatusResponse, or as CreateFilterData, os as ListDomainsData, ot as getInboxStatus, ou as StartAgentClaimInput, p as SemanticSearchResponse, pa as FunctionTestRunDeliveryEndpoint, pc as PlanLimits, pd as UpdateFilterData, pf as Config, pi as DeliveryStatus, pl as SemanticSearchData, pn as AgentAccountResult, po as GetSendPermissionsData, pr as CreateFunctionError, ps as ListEmailsErrors, pt as getWebhookSecret, pu as StartAgentSignupResponse, q as deleteFunctionSecret, qa as GetFunctionRoutingData, qc as ResendAgentSignupVerificationResponses, qd as VerifyCliSignupInput, qi as EmailSearchHighlights, ql as SetFunctionSecretErrors, qn as CreateAgentClaimLinkResponses, qo as InboxStatusNextAction, qr as DeleteFilterData, qs as ListPayoutAddressesData, qt as testFunction, qu as UnsetFunctionRouteResponses, r as CreateAgentOptions, ra as FunctionDetail, rc as OrgSecretListItem, rd as UpdateDomainErrors, rf as X402DeclinedPayment, ri as DeleteFunctionSecretData, rl as RotateWebhookSecretErrors, rn as verifyCliSignup, ro as GetInboxStatusData, rr as CreateEndpointInput, rs as ListDeliveriesErrors, rt as getFunction, ru as StartAgentClaimData, s as InboxResource, sa as FunctionRouteResult, sc as PayChallengeData, sd as UpdateEndpointData, sf as X402PayoutAddress, si as DeleteFunctionSecretResponses, sl as SearchEmailsData, sn as AddDomainData, so as GetInboxStatusResponses, sr as CreateFilterError, ss as ListDomainsError, st as getOrgRoutingTopology, su as StartAgentClaimResponse, t as AccountResource, ta as Filter, tc as ListSentEmailsResponse, td as UpdateDomainData, tf as WebhookSecret, ti as DeleteFunctionResponse, tl as RotateWebhookSecretData, tn as verifyAgentClaim, to as GetFunctionTestRunTraceResponse, tr as CreateEndpointError, ts as ListDeliveriesData, tt as getConversation, tu as SetOrgSecretResponse, u as PrimitiveClientOptions, ua as FunctionSecretWriteResult, uc as PayChallengeInput, ud as UpdateEndpointInput, uf as createClient, ui as DeleteOrgSecretErrors, ul as SearchEmailsResponse, un as AddDomainInput, uo as GetOrgRoutingTopologyErrors, ur as CreateFilterResponse, us as ListDomainsResponses, ut as getSpendPolicy, uu as StartAgentSignupError, v as WaitForNextOptions, va as FunctionTestRunState, vc as PollCliLoginResponse, vd as UpdateFilterResponses, vf as ResponseStyle, vi as DiscardEmailContentErrors, vl as SemanticSearchMeta, vn as AgentOrgRef, vo as GetSentEmailData, vr as CreateFunctionResult, vs as ListEndpointsErrors, vt as listEndpoints, vu as StartCliLoginInput, w as verifyWebhookSignature, wa as GetAccountErrors, wc as RegisterPayoutAddressResponse, wd as UpdateFunctionResponses, wi as DomainVerifyResult, wl as SendEmailError, wn as CliLogoutData, wo as GetSpendPolicyError, wr as CreateFunctionSecretResponses, ws as ListFiltersErrors, wt as listPayoutAddresses, wu as StartCliSignupInput, x as createPrimitiveClient, xa as GateFix, xc as RegisterPayoutAddressError, xd as UpdateFunctionErrors, xi as DkimSignature, xl as SemanticSearchScoreBreakdown, xn as AgentSignupVerifyResult, xo as GetSentEmailResponse, xr as CreateFunctionSecretErrors, xs as ListEnvelope, xt as listFunctionSecrets, xu as StartCliSignupData, y as client, ya as FunctionTestRunTrace, yc as PollCliLoginResponses, yd as UpdateFunctionData, yf as createConfig, yi as DiscardEmailContentResponse, yl as SemanticSearchResponses, yn as AgentSignupResendResult, yo as GetSentEmailError, yr as CreateFunctionSecretData, ys as ListEndpointsResponse, yt as listFilters, yu as StartCliLoginResponse, z as createFunction, za as GetEmailErrors, zc as ReplyToEmailErrors, zd as VerifyAgentSignupError, zi as DownloadRawEmailResponses, zl as SentEmailSummary, zn as CreateAgentAccountInput, zo as GetWebhookSecretError, zr as DeleteEmailErrors, zs as ListFunctionsErrors, zt as setFunctionRoute, zu as TestInvocationResult } from "../index-BnbrY8kp.js";
2
2
  import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-BAniFZK9.js";
3
3
  import { f as EmailReceivedEvent } from "../types-QT2ss9ho.js";
4
4
  import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-DyuAXctD.js";
5
- export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, Config, Config as PrimitiveGeneratedApiConfig, Conversation, ConversationMessage, CreateAgentAccountData, CreateAgentAccountError, CreateAgentAccountErrors, CreateAgentAccountInput, CreateAgentAccountResponse, CreateAgentAccountResponses, CreateAgentClaimLinkData, CreateAgentClaimLinkError, CreateAgentClaimLinkErrors, CreateAgentClaimLinkInput, CreateAgentClaimLinkResponse, CreateAgentClaimLinkResponses, CreateAgentOptions, CreateClientConfig, CreateEndpointData, CreateEndpointError, CreateEndpointErrors, CreateEndpointInput, CreateEndpointResponse, CreateEndpointResponses, CreateFilterData, CreateFilterError, CreateFilterErrors, CreateFilterInput, CreateFilterResponse, CreateFilterResponses, CreateFunctionData, CreateFunctionError, CreateFunctionErrors, CreateFunctionInput, CreateFunctionResponse, CreateFunctionResponses, CreateFunctionResult, CreateFunctionSecretData, CreateFunctionSecretError, CreateFunctionSecretErrors, CreateFunctionSecretInput, CreateFunctionSecretResponse, CreateFunctionSecretResponses, CreateOrgSecretData, CreateOrgSecretError, CreateOrgSecretErrors, CreateOrgSecretInput, CreateOrgSecretResponse, CreateOrgSecretResponses, CreatedAgent, Cursor, DEFAULT_API_BASE_URL, DeleteDomainData, DeleteDomainError, DeleteDomainErrors, DeleteDomainResponse, DeleteDomainResponses, DeleteEmailData, DeleteEmailError, DeleteEmailErrors, DeleteEmailResponse, DeleteEmailResponses, DeleteEndpointData, DeleteEndpointError, DeleteEndpointErrors, DeleteEndpointResponse, DeleteEndpointResponses, DeleteFilterData, DeleteFilterError, DeleteFilterErrors, DeleteFilterResponse, DeleteFilterResponses, DeleteFunctionData, DeleteFunctionError, DeleteFunctionErrors, DeleteFunctionResponse, DeleteFunctionResponses, DeleteFunctionSecretData, DeleteFunctionSecretError, DeleteFunctionSecretErrors, DeleteFunctionSecretResponse, DeleteFunctionSecretResponses, DeleteOrgSecretData, DeleteOrgSecretError, DeleteOrgSecretErrors, DeleteOrgSecretResponse, DeleteOrgSecretResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, FunctionRouteBody, FunctionRouteResult, FunctionRouting, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionRoutingData, GetFunctionRoutingError, GetFunctionRoutingErrors, GetFunctionRoutingResponse, GetFunctionRoutingResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetOrgRoutingTopologyData, GetOrgRoutingTopologyError, GetOrgRoutingTopologyErrors, GetOrgRoutingTopologyResponse, GetOrgRoutingTopologyResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, InboundEmail, InboxResource, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, InboxStreamOptions, Limit, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListOrgSecretsData, ListOrgSecretsError, ListOrgSecretsErrors, ListOrgSecretsResponse, ListOrgSecretsResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, Options, Options as PrimitiveGeneratedApiOptions, OrgSecretListItem, OrgSecretWriteResult, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, 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, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, RoutingTopology, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, SemanticSearchCoverage, SemanticSearchData, SemanticSearchError, SemanticSearchErrors, SemanticSearchField, SemanticSearchInput, SemanticSearchMeta, SemanticSearchResponse, SemanticSearchResponses, SemanticSearchResult, SemanticSearchScoreBreakdown, SemanticSearchSnippet, SendAttachment, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailResult, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, SentEmailStatus, SentEmailSummary, SetFunctionRouteData, SetFunctionRouteError, SetFunctionRouteErrors, SetFunctionRouteResponse, SetFunctionRouteResponses, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, SetOrgSecretData, SetOrgSecretError, SetOrgSecretErrors, SetOrgSecretInput, SetOrgSecretResponse, SetOrgSecretResponses, StartAgentClaimData, StartAgentClaimError, StartAgentClaimErrors, StartAgentClaimInput, StartAgentClaimResponse, StartAgentClaimResponses, StartAgentSignupData, StartAgentSignupError, StartAgentSignupErrors, StartAgentSignupInput, StartAgentSignupResponse, StartAgentSignupResponses, StartCliLoginData, StartCliLoginError, StartCliLoginErrors, StartCliLoginInput, StartCliLoginResponse, StartCliLoginResponses, StartCliSignupData, StartCliSignupError, StartCliSignupErrors, StartCliSignupInput, StartCliSignupResponse, StartCliSignupResponses, StorageStats, SuccessEnvelope, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestFunctionData, TestFunctionError, TestFunctionErrors, TestFunctionResponse, TestFunctionResponses, TestInvocationResult, TestResult, Thread, ThreadMessage, 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, VerifiedDomain, VerifyAgentClaimData, VerifyAgentClaimError, VerifyAgentClaimErrors, VerifyAgentClaimInput, VerifyAgentClaimResponse, VerifyAgentClaimResponses, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WaitForNextOptions, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
5
+ export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, Config, Config as PrimitiveGeneratedApiConfig, Conversation, ConversationMessage, CreateAgentAccountData, CreateAgentAccountError, CreateAgentAccountErrors, CreateAgentAccountInput, CreateAgentAccountResponse, CreateAgentAccountResponses, CreateAgentClaimLinkData, CreateAgentClaimLinkError, CreateAgentClaimLinkErrors, CreateAgentClaimLinkInput, CreateAgentClaimLinkResponse, CreateAgentClaimLinkResponses, CreateAgentOptions, CreateChallengeData, CreateChallengeError, CreateChallengeErrors, CreateChallengeInput, CreateChallengeResponse, CreateChallengeResponses, CreateClientConfig, 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, CreatedAgent, Cursor, DEFAULT_API_BASE_URL, DeleteDomainData, DeleteDomainError, DeleteDomainErrors, DeleteDomainResponse, DeleteDomainResponses, DeleteEmailData, DeleteEmailError, DeleteEmailErrors, DeleteEmailResponse, DeleteEmailResponses, DeleteEndpointData, DeleteEndpointError, DeleteEndpointErrors, DeleteEndpointResponse, DeleteEndpointResponses, DeleteFilterData, DeleteFilterError, DeleteFilterErrors, DeleteFilterResponse, DeleteFilterResponses, DeleteFunctionData, DeleteFunctionError, DeleteFunctionErrors, DeleteFunctionResponse, DeleteFunctionResponses, DeleteFunctionSecretData, DeleteFunctionSecretError, DeleteFunctionSecretErrors, DeleteFunctionSecretResponse, DeleteFunctionSecretResponses, DeleteOrgSecretData, DeleteOrgSecretError, DeleteOrgSecretErrors, DeleteOrgSecretResponse, DeleteOrgSecretResponses, DeliveryStatus, DeliverySummary, DiscardContentResult, DiscardEmailContentData, DiscardEmailContentError, DiscardEmailContentErrors, DiscardEmailContentResponse, DiscardEmailContentResponses, DkimSignature, Domain, DomainDnsRecord, DomainVerifyResult, DownloadAttachmentsData, DownloadAttachmentsError, DownloadAttachmentsErrors, DownloadAttachmentsResponse, DownloadAttachmentsResponses, DownloadDomainZoneFileData, DownloadDomainZoneFileError, DownloadDomainZoneFileErrors, DownloadDomainZoneFileResponse, DownloadDomainZoneFileResponses, DownloadRawEmailData, DownloadRawEmailError, DownloadRawEmailErrors, DownloadRawEmailResponse, DownloadRawEmailResponses, EmailAddress, EmailAttachment, EmailAuth, EmailDetail, EmailDetailReply, EmailReceivedEvent, EmailSearchFacetBucket, EmailSearchFacets, EmailSearchHighlights, EmailSearchMeta, EmailSearchResult, EmailStatus, EmailSummary, EmailWebhookStatus, Endpoint, ErrorResponse, Filter, ForwardInput, FunctionDeployStatus, FunctionDetail, FunctionListItem, FunctionLogRow, FunctionRouteBody, FunctionRouteResult, FunctionRouting, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetChallengeData, GetChallengeError, GetChallengeErrors, GetChallengeResponse, GetChallengeResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionRoutingData, GetFunctionRoutingError, GetFunctionRoutingErrors, GetFunctionRoutingResponse, GetFunctionRoutingResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetOrgRoutingTopologyData, GetOrgRoutingTopologyError, GetOrgRoutingTopologyErrors, GetOrgRoutingTopologyResponse, GetOrgRoutingTopologyResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetSpendPolicyData, GetSpendPolicyError, GetSpendPolicyErrors, GetSpendPolicyResponse, GetSpendPolicyResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, InboundEmail, InboxResource, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, InboxStreamOptions, Limit, ListDeclinedPaymentsData, ListDeclinedPaymentsError, ListDeclinedPaymentsErrors, ListDeclinedPaymentsResponse, ListDeclinedPaymentsResponses, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListOrgSecretsData, ListOrgSecretsError, ListOrgSecretsErrors, ListOrgSecretsResponse, ListOrgSecretsResponses, ListPayoutAddressesData, ListPayoutAddressesError, ListPayoutAddressesErrors, ListPayoutAddressesResponse, ListPayoutAddressesResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, Options, Options as PrimitiveGeneratedApiOptions, OrgSecretListItem, OrgSecretWriteResult, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, PayChallengeData, PayChallengeError, PayChallengeErrors, PayChallengeInput, PayChallengeResponse, PayChallengeResponses, PlanLimits, PollCliLoginData, PollCliLoginError, PollCliLoginErrors, PollCliLoginInput, PollCliLoginResponse, PollCliLoginResponses, PrimitiveApiClient, PrimitiveApiClientOptions, PrimitiveApiError, PrimitiveApiErrorDetails, PrimitiveClient, PrimitiveClientOptions, RequestOptions as PrimitiveGeneratedApiRequestOptions, RequestResult as PrimitiveGeneratedApiRequestResult, RequestResult, PrimitiveOperationManifest, PrimitiveParameterManifest, RequestOptions$1 as PrimitiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, RegisterPayoutAddressData, RegisterPayoutAddressError, RegisterPayoutAddressErrors, RegisterPayoutAddressInput, RegisterPayoutAddressResponse, RegisterPayoutAddressResponses, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, RoutingTopology, SearchEmailsData, SearchEmailsError, SearchEmailsErrors, SearchEmailsResponse, SearchEmailsResponses, SemanticSearchCoverage, SemanticSearchData, SemanticSearchError, SemanticSearchErrors, SemanticSearchField, SemanticSearchInput, SemanticSearchMeta, SemanticSearchResponse, SemanticSearchResponses, SemanticSearchResult, SemanticSearchScoreBreakdown, SemanticSearchSnippet, SendAttachment, SendEmailData, SendEmailError, SendEmailErrors, SendEmailResponse, SendEmailResponses, SendInput, SendMailAttachment, SendMailInput, SendMailResult, SendPermissionAddress, SendPermissionAnyRecipient, SendPermissionManagedZone, SendPermissionRule, SendPermissionYourDomain, SendPermissionsMeta, SendResult, SendThreadInput, SentEmailDetail, SentEmailStatus, SentEmailSummary, SetFunctionRouteData, SetFunctionRouteError, SetFunctionRouteErrors, SetFunctionRouteResponse, SetFunctionRouteResponses, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, SetOrgSecretData, SetOrgSecretError, SetOrgSecretErrors, SetOrgSecretInput, SetOrgSecretResponse, SetOrgSecretResponses, StartAgentClaimData, StartAgentClaimError, StartAgentClaimErrors, StartAgentClaimInput, StartAgentClaimResponse, StartAgentClaimResponses, StartAgentSignupData, StartAgentSignupError, StartAgentSignupErrors, StartAgentSignupInput, StartAgentSignupResponse, StartAgentSignupResponses, StartCliLoginData, StartCliLoginError, StartCliLoginErrors, StartCliLoginInput, StartCliLoginResponse, StartCliLoginResponses, StartCliSignupData, StartCliSignupError, StartCliSignupErrors, StartCliSignupInput, StartCliSignupResponse, StartCliSignupResponses, StorageStats, SuccessEnvelope, TestEndpointData, TestEndpointError, TestEndpointErrors, TestEndpointResponse, TestEndpointResponses, TestFunctionData, TestFunctionError, TestFunctionErrors, TestFunctionResponse, TestFunctionResponses, TestInvocationResult, TestResult, Thread, ThreadMessage, 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, UpdateSpendPolicyData, UpdateSpendPolicyError, UpdateSpendPolicyErrors, UpdateSpendPolicyInput, UpdateSpendPolicyResponse, UpdateSpendPolicyResponses, VerifiedDomain, VerifyAgentClaimData, VerifyAgentClaimError, VerifyAgentClaimErrors, VerifyAgentClaimInput, VerifyAgentClaimResponse, VerifyAgentClaimResponses, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WaitForNextOptions, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, X402Challenge, X402DeclinedPayment, X402NonceBinding, X402PaymentPayload, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, payChallenge, pollCliLogin, registerPayoutAddress, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateSpendPolicy, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
package/dist/api/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as listFunctionSecrets, A as discardEmailContent, At as verifyAgentSignup, B as getInboxStatus, C as deleteDomain, Ct as unsetFunctionRoute, D as deleteFunction, Dt as updateFilter, E as deleteFilter, Et as updateEndpoint, F as getConversation, G as getThread, H as getSendPermissions, I as getEmail, J as listDomains, K as getWebhookSecret, L as getFunction, M as downloadDomainZoneFile, Mt as verifyDomain, N as downloadRawEmail, Nt as createClient, O as deleteFunctionSecret, Ot as updateFunction, P as getAccount, Pt as createConfig, Q as listFunctionLogs, R as getFunctionRouting, S as createOrgSecret, St as testFunction, T as deleteEndpoint, Tt as updateDomain, U as getSentEmail, V as getOrgRoutingTopology, W as getStorageStats, X as listEndpoints, Y as listEmails, Z as listFilters, _ as createAgentClaimLink, _t as startAgentClaim, a as client, at as replayEmailWebhooks, b as createFunction, bt as startCliSignup, c as PRIMITIVE_SIGNATURE_HEADER, ct as resendCliSignupVerification, d as PrimitiveApiClient, dt as searchEmails, et as listFunctions, f as PrimitiveApiError, ft as semanticSearch, g as createAgentAccount, gt as setOrgSecret, h as cliLogout, ht as setFunctionSecret, i as PrimitiveClient, it as replayDelivery, j as downloadAttachments, jt as verifyCliSignup, k as deleteOrgSecret, kt as verifyAgentClaim, l as verifyWebhookSignature, lt as rotateWebhookSecret, m as addDomain, mt as setFunctionRoute, n as AgentResource, nt as listSentEmails, o as createAgent, ot as replyToEmail, p as createPrimitiveApiClient, pt as sendEmail, q as listDeliveries, r as InboxResource, rt as pollCliLogin, s as createPrimitiveClient, st as resendAgentSignupVerification, t as AccountResource, tt as listOrgSecrets, u as DEFAULT_API_BASE_URL, ut as sdk_gen_exports, v as createEndpoint, vt as startAgentSignup, w as deleteEmail, wt as updateAccount, x as createFunctionSecret, xt as testEndpoint, y as createFilter, yt as startCliLogin, z as getFunctionTestRunTrace } from "../api-DrrmrNDe.js";
2
- import { n as openapiDocument, t as operationManifest } from "../operations.generated-CA3-eorF.js";
1
+ import { $ as listEmails, A as deleteOrgSecret, At as unsetFunctionRoute, B as getFunctionRouting, Bt as verifyDomain, C as createOrgSecret, Ct as setOrgSecret, D as deleteFilter, Dt as startCliSignup, E as deleteEndpoint, Et as startCliLogin, F as getAccount, Ft as updateFunction, G as getSentEmail, H as getInboxStatus, Ht as createConfig, I as getChallenge, It as updateSpendPolicy, J as getThread, K as getSpendPolicy, L as getConversation, Lt as verifyAgentClaim, M as downloadAttachments, Mt as updateDomain, N as downloadDomainZoneFile, Nt as updateEndpoint, O as deleteFunction, Ot as testEndpoint, P as downloadRawEmail, Pt as updateFilter, Q as listDomains, R as getEmail, Rt as verifyAgentSignup, S as createFunctionSecret, St as setFunctionSecret, T as deleteEmail, Tt as startAgentSignup, U as getOrgRoutingTopology, V as getFunctionTestRunTrace, Vt as createClient, W as getSendPermissions, X as listDeclinedPayments, Y as getWebhookSecret, Z as listDeliveries, _ as createAgentClaimLink, _t as sdk_gen_exports, a as client, at as listOrgSecrets, b as createFilter, bt as sendEmail, c as PRIMITIVE_SIGNATURE_HEADER, ct as payChallenge, d as PrimitiveApiClient, dt as replayDelivery, et as listEndpoints, f as PrimitiveApiError, ft as replayEmailWebhooks, g as createAgentAccount, gt as rotateWebhookSecret, h as cliLogout, ht as resendCliSignupVerification, i as PrimitiveClient, it as listFunctions, j as discardEmailContent, jt as updateAccount, k as deleteFunctionSecret, kt as testFunction, l as verifyWebhookSignature, lt as pollCliLogin, m as addDomain, mt as resendAgentSignupVerification, n as AgentResource, nt as listFunctionLogs, o as createAgent, ot as listPayoutAddresses, p as createPrimitiveApiClient, pt as replyToEmail, q as getStorageStats, r as InboxResource, rt as listFunctionSecrets, s as createPrimitiveClient, st as listSentEmails, t as AccountResource, tt as listFilters, u as DEFAULT_API_BASE_URL, ut as registerPayoutAddress, v as createChallenge, vt as searchEmails, w as deleteDomain, wt as startAgentClaim, x as createFunction, xt as setFunctionRoute, y as createEndpoint, yt as semanticSearch, z as getFunction, zt as verifyCliSignup } from "../api-ClLMDF81.js";
2
+ import { n as openapiDocument, t as operationManifest } from "../operations.generated-DQIrhCT5.js";
3
3
  import { c as WebhookVerificationError, f as normalizeReceivedEmail } from "../errors-BPJGp9I6.js";
4
- export { AccountResource, AgentResource, DEFAULT_API_BASE_URL, InboxResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
4
+ export { AccountResource, AgentResource, DEFAULT_API_BASE_URL, InboxResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteOrgSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getThread, getWebhookSecret, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, payChallenge, pollCliLogin, registerPayoutAddress, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setOrgSecret, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateSpendPolicy, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
@@ -617,6 +617,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
617
617
  cliLogout: () => cliLogout,
618
618
  createAgentAccount: () => createAgentAccount,
619
619
  createAgentClaimLink: () => createAgentClaimLink,
620
+ createChallenge: () => createChallenge,
620
621
  createEndpoint: () => createEndpoint,
621
622
  createFilter: () => createFilter,
622
623
  createFunction: () => createFunction,
@@ -634,6 +635,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
634
635
  downloadDomainZoneFile: () => downloadDomainZoneFile,
635
636
  downloadRawEmail: () => downloadRawEmail,
636
637
  getAccount: () => getAccount,
638
+ getChallenge: () => getChallenge,
637
639
  getConversation: () => getConversation,
638
640
  getEmail: () => getEmail,
639
641
  getFunction: () => getFunction,
@@ -643,9 +645,11 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
643
645
  getOrgRoutingTopology: () => getOrgRoutingTopology,
644
646
  getSendPermissions: () => getSendPermissions,
645
647
  getSentEmail: () => getSentEmail,
648
+ getSpendPolicy: () => getSpendPolicy,
646
649
  getStorageStats: () => getStorageStats,
647
650
  getThread: () => getThread,
648
651
  getWebhookSecret: () => getWebhookSecret,
652
+ listDeclinedPayments: () => listDeclinedPayments,
649
653
  listDeliveries: () => listDeliveries,
650
654
  listDomains: () => listDomains,
651
655
  listEmails: () => listEmails,
@@ -655,8 +659,11 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
655
659
  listFunctionSecrets: () => listFunctionSecrets,
656
660
  listFunctions: () => listFunctions,
657
661
  listOrgSecrets: () => listOrgSecrets,
662
+ listPayoutAddresses: () => listPayoutAddresses,
658
663
  listSentEmails: () => listSentEmails,
664
+ payChallenge: () => payChallenge,
659
665
  pollCliLogin: () => pollCliLogin,
666
+ registerPayoutAddress: () => registerPayoutAddress,
660
667
  replayDelivery: () => replayDelivery,
661
668
  replayEmailWebhooks: () => replayEmailWebhooks,
662
669
  replyToEmail: () => replyToEmail,
@@ -681,6 +688,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
681
688
  updateEndpoint: () => updateEndpoint,
682
689
  updateFilter: () => updateFilter,
683
690
  updateFunction: () => updateFunction,
691
+ updateSpendPolicy: () => updateSpendPolicy,
684
692
  verifyAgentClaim: () => verifyAgentClaim,
685
693
  verifyAgentSignup: () => verifyAgentSignup,
686
694
  verifyCliSignup: () => verifyCliSignup,
@@ -2210,6 +2218,165 @@ const listFunctionLogs = (options) => (options.client ?? client$1).get({
2210
2218
  url: "/functions/{id}/logs",
2211
2219
  ...options
2212
2220
  });
2221
+ /**
2222
+ * List payout addresses
2223
+ *
2224
+ * List your org's registered payout addresses, newest first.
2225
+ */
2226
+ const listPayoutAddresses = (options) => (options?.client ?? client$1).get({
2227
+ security: [{
2228
+ scheme: "bearer",
2229
+ type: "http"
2230
+ }],
2231
+ url: "/x402/payout-addresses",
2232
+ ...options
2233
+ });
2234
+ /**
2235
+ * Register a payout address
2236
+ *
2237
+ * Register (or update) the default payout address your org receives x402
2238
+ * payments at, for a given network. You prove control of the address with
2239
+ * an org-bound `personal_sign` signature over the message produced by the
2240
+ * SDK helper `buildPayoutRegistrationMessage`. The org id is taken from your
2241
+ * authenticated key, never the body, so a captured signature can't register
2242
+ * an address under another org. Exactly one default address exists per
2243
+ * (org, network); registering again replaces it. A payee MUST register a
2244
+ * payout address before calling `createChallenge`, because the challenge's
2245
+ * `pay_to` is resolved from this directory.
2246
+ *
2247
+ */
2248
+ const registerPayoutAddress = (options) => (options.client ?? client$1).post({
2249
+ security: [{
2250
+ scheme: "bearer",
2251
+ type: "http"
2252
+ }],
2253
+ url: "/x402/payout-addresses",
2254
+ ...options,
2255
+ headers: {
2256
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
2257
+ ...options.headers
2258
+ }
2259
+ });
2260
+ /**
2261
+ * Create a payment challenge
2262
+ *
2263
+ * Create an x402 payment challenge (the payee side of a payment). The
2264
+ * `pay_to` address is resolved server-side from your registered default
2265
+ * payout address for the network, never from the request. The response
2266
+ * carries the `nonce_binding` and `payment_requirements` the payer needs to
2267
+ * sign; hand the whole challenge object to the payer (for example in an
2268
+ * email reply). Amounts are in token base units (USDC has 6 decimals, so
2269
+ * `"10000"` is 0.01 USDC).
2270
+ *
2271
+ */
2272
+ const createChallenge = (options) => (options.client ?? client$1).post({
2273
+ security: [{
2274
+ scheme: "bearer",
2275
+ type: "http"
2276
+ }],
2277
+ url: "/x402/challenges",
2278
+ ...options,
2279
+ headers: {
2280
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
2281
+ ...options.headers
2282
+ }
2283
+ });
2284
+ /**
2285
+ * Get a payment challenge
2286
+ *
2287
+ * Fetch a challenge you created, to poll its `status` and settlement
2288
+ * receipt (`settle_tx`). Scoped to the challenger org that created it.
2289
+ *
2290
+ */
2291
+ const getChallenge = (options) => (options.client ?? client$1).get({
2292
+ security: [{
2293
+ scheme: "bearer",
2294
+ type: "http"
2295
+ }],
2296
+ url: "/x402/challenges/{id}",
2297
+ ...options
2298
+ });
2299
+ /**
2300
+ * Pay a payment challenge
2301
+ *
2302
+ * Settle a challenge addressed to your org as payer. The request body
2303
+ * carries a signed x402 `PaymentPayload`: an EIP-3009
2304
+ * `transferWithAuthorization` signed locally with your own key, whose nonce
2305
+ * is bound to the challenge via the SDK's `deriveEip3009Nonce`. The platform
2306
+ * verifies every signed field against its own record of the challenge,
2307
+ * applies your spend policy, and settles on-chain through a facilitator.
2308
+ * Settlement is non-custodial; Primitive never holds funds. Idempotent:
2309
+ * paying an already-settled challenge returns the original receipt. Most
2310
+ * callers use the SDK `pay()` helper rather than building the payload by
2311
+ * hand.
2312
+ *
2313
+ */
2314
+ const payChallenge = (options) => (options.client ?? client$1).post({
2315
+ security: [{
2316
+ scheme: "bearer",
2317
+ type: "http"
2318
+ }],
2319
+ url: "/x402/challenges/{id}/pay",
2320
+ ...options,
2321
+ headers: {
2322
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
2323
+ ...options.headers
2324
+ }
2325
+ });
2326
+ /**
2327
+ * Get your spend policy
2328
+ *
2329
+ * Read your org's outbound spend policy: the kill-switch, per-payment and
2330
+ * per-day caps, and the payee allowlist. Returns the defaults (no limits,
2331
+ * not paused) when no policy has been set.
2332
+ *
2333
+ */
2334
+ const getSpendPolicy = (options) => (options?.client ?? client$1).get({
2335
+ security: [{
2336
+ scheme: "bearer",
2337
+ type: "http"
2338
+ }],
2339
+ url: "/x402/spend-policy",
2340
+ ...options
2341
+ });
2342
+ /**
2343
+ * Update your spend policy
2344
+ *
2345
+ * Update your org's spend policy. Applied as a merge: only the fields you
2346
+ * include change, and omitted fields keep their current value, so a partial
2347
+ * update can't silently reset the kill-switch. Send an explicit `null` to
2348
+ * clear a cap. Caps are in token base units.
2349
+ *
2350
+ */
2351
+ const updateSpendPolicy = (options) => (options.client ?? client$1).put({
2352
+ security: [{
2353
+ scheme: "bearer",
2354
+ type: "http"
2355
+ }],
2356
+ url: "/x402/spend-policy",
2357
+ ...options,
2358
+ headers: {
2359
+ ...options.body !== void 0 && { "Content-Type": "application/json" },
2360
+ ...options.headers
2361
+ }
2362
+ });
2363
+ /**
2364
+ * List declined payments
2365
+ *
2366
+ * The 50 most recent payments your org's spend policy declined, newest
2367
+ * first. Use this to see why an outbound payment was refused (a cap, the
2368
+ * payee allowlist, or the kill-switch) instead of only reading the
2369
+ * dashboard.
2370
+ *
2371
+ */
2372
+ const listDeclinedPayments = (options) => (options?.client ?? client$1).get({
2373
+ security: [{
2374
+ scheme: "bearer",
2375
+ type: "http"
2376
+ }],
2377
+ url: "/x402/declined-payments",
2378
+ ...options
2379
+ });
2213
2380
  //#endregion
2214
2381
  //#region ../packages/api-core/src/client.ts
2215
2382
  /**
@@ -2938,4 +3105,4 @@ async function createAgent(options) {
2938
3105
  };
2939
3106
  }
2940
3107
  //#endregion
2941
- export { listFunctionSecrets as $, discardEmailContent as A, verifyAgentSignup as At, getInboxStatus as B, deleteDomain as C, unsetFunctionRoute as Ct, deleteFunction as D, updateFilter as Dt, deleteFilter as E, updateEndpoint as Et, getConversation as F, getThread as G, getSendPermissions as H, getEmail as I, listDomains as J, getWebhookSecret as K, getFunction as L, downloadDomainZoneFile as M, verifyDomain as Mt, downloadRawEmail as N, createClient as Nt, deleteFunctionSecret as O, updateFunction as Ot, getAccount as P, createConfig as Pt, listFunctionLogs as Q, getFunctionRouting as R, createOrgSecret as S, testFunction as St, deleteEndpoint as T, updateDomain as Tt, getSentEmail as U, getOrgRoutingTopology as V, getStorageStats as W, listEndpoints as X, listEmails as Y, listFilters as Z, createAgentClaimLink as _, startAgentClaim as _t, client as a, replayEmailWebhooks as at, createFunction as b, startCliSignup as bt, PRIMITIVE_SIGNATURE_HEADER as c, resendCliSignupVerification as ct, PrimitiveApiClient as d, searchEmails as dt, listFunctions as et, PrimitiveApiError as f, semanticSearch as ft, createAgentAccount as g, setOrgSecret as gt, cliLogout as h, setFunctionSecret as ht, PrimitiveClient as i, replayDelivery as it, downloadAttachments as j, verifyCliSignup as jt, deleteOrgSecret as k, verifyAgentClaim as kt, verifyWebhookSignature as l, rotateWebhookSecret as lt, addDomain as m, setFunctionRoute as mt, AgentResource as n, listSentEmails as nt, createAgent as o, replyToEmail as ot, createPrimitiveApiClient as p, sendEmail as pt, listDeliveries as q, InboxResource as r, pollCliLogin as rt, createPrimitiveClient as s, resendAgentSignupVerification as st, AccountResource as t, listOrgSecrets as tt, DEFAULT_API_BASE_URL as u, sdk_gen_exports as ut, createEndpoint as v, startAgentSignup as vt, deleteEmail as w, updateAccount as wt, createFunctionSecret as x, testEndpoint as xt, createFilter as y, startCliLogin as yt, getFunctionTestRunTrace as z };
3108
+ export { listEmails as $, deleteOrgSecret as A, unsetFunctionRoute as At, getFunctionRouting as B, verifyDomain as Bt, createOrgSecret as C, setOrgSecret as Ct, deleteFilter as D, startCliSignup as Dt, deleteEndpoint as E, startCliLogin as Et, getAccount as F, updateFunction as Ft, getSentEmail as G, getInboxStatus as H, createConfig as Ht, getChallenge as I, updateSpendPolicy as It, getThread as J, getSpendPolicy as K, getConversation as L, verifyAgentClaim as Lt, downloadAttachments as M, updateDomain as Mt, downloadDomainZoneFile as N, updateEndpoint as Nt, deleteFunction as O, testEndpoint as Ot, downloadRawEmail as P, updateFilter as Pt, listDomains as Q, getEmail as R, verifyAgentSignup as Rt, createFunctionSecret as S, setFunctionSecret as St, deleteEmail as T, startAgentSignup as Tt, getOrgRoutingTopology as U, getFunctionTestRunTrace as V, createClient as Vt, getSendPermissions as W, listDeclinedPayments as X, getWebhookSecret as Y, listDeliveries as Z, createAgentClaimLink as _, sdk_gen_exports as _t, client as a, listOrgSecrets as at, createFilter as b, sendEmail as bt, PRIMITIVE_SIGNATURE_HEADER as c, payChallenge as ct, PrimitiveApiClient as d, replayDelivery as dt, listEndpoints as et, PrimitiveApiError as f, replayEmailWebhooks as ft, createAgentAccount as g, rotateWebhookSecret as gt, cliLogout as h, resendCliSignupVerification as ht, PrimitiveClient as i, listFunctions as it, discardEmailContent as j, updateAccount as jt, deleteFunctionSecret as k, testFunction as kt, verifyWebhookSignature as l, pollCliLogin as lt, addDomain as m, resendAgentSignupVerification as mt, AgentResource as n, listFunctionLogs as nt, createAgent as o, listPayoutAddresses as ot, createPrimitiveApiClient as p, replyToEmail as pt, getStorageStats as q, InboxResource as r, listFunctionSecrets as rt, createPrimitiveClient as s, listSentEmails as st, AccountResource as t, listFilters as tt, DEFAULT_API_BASE_URL as u, registerPayoutAddress as ut, createChallenge as v, searchEmails as vt, deleteDomain as w, startAgentClaim as wt, createFunction as x, setFunctionRoute as xt, createEndpoint as y, semanticSearch as yt, getFunction as z, verifyCliSignup as zt };