@primitivedotdev/sdk 1.7.0 → 1.8.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 +83 -0
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.js +3 -3
- package/dist/{api-ClLMDF81.js → api-26ENR8Ph.js} +30 -1
- package/dist/contract/index.d.ts +2 -2
- package/dist/contract/index.js +1 -1
- package/dist/{errors-DyuAXctD.d.ts → errors-bXUNXAlf.d.ts} +1 -1
- package/dist/{index-iZWfb98V.d.ts → index-BDnY9HH-.d.ts} +30 -48
- package/dist/{index-BnbrY8kp.d.ts → index-C3ahy3ls.d.ts} +161 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-DQIrhCT5.js → operations.generated-Bu20uPOw.js} +304 -0
- package/dist/parser/index.d.ts +1 -1
- package/dist/{types-QT2ss9ho.d.ts → types-BjnIxPED.d.ts} +97 -2
- package/dist/webhook/index.d.ts +4 -4
- package/dist/webhook/index.js +2 -2
- package/dist/{webhook-CwjCyFv-.js → webhook-CiIPtegj.js} +155 -26
- package/dist/x402/index.d.ts +136 -1
- package/dist/x402/index.js +178 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -266,6 +266,52 @@ const receipt = await x402.pay(challenge, { signer: payer });
|
|
|
266
266
|
console.log(receipt.status, receipt.settle_tx); // settled, on-chain tx hash
|
|
267
267
|
```
|
|
268
268
|
|
|
269
|
+
### Email-native payments
|
|
270
|
+
|
|
271
|
+
The challenge can also ride a real email thread instead of a synthetic id. The payee issues the challenge as an email; the payer signs it into an `interaction.json` payment step and sends it back as an attachment on the reply.
|
|
272
|
+
|
|
273
|
+
The payee issues the challenge with `createEmailChallenge`. The `pay_to` payout wallet and the token asset are resolved server-side; you only supply the addresses, amount, and network:
|
|
274
|
+
|
|
275
|
+
```ts
|
|
276
|
+
const issued = await x402.createEmailChallenge({
|
|
277
|
+
from: "payee@your-domain.example", // your sending address (the funds receiver)
|
|
278
|
+
to: "payer@their-domain.example", // the payer's address
|
|
279
|
+
amountUsdc: "0.01",
|
|
280
|
+
network: "base-sepolia",
|
|
281
|
+
});
|
|
282
|
+
// issued.interaction_id is the email thread the payment is bound to;
|
|
283
|
+
// issued.challenge carries the payment_requirements + nonce_binding the payer signs.
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
The payer, on receiving the challenge, signs it locally with `payEmailChallenge` and sends the resulting envelope back as an `interaction.json` attachment. `payEmailChallenge` does not send anything; it returns the signed payment-step envelope and its canonical JSON bytes:
|
|
287
|
+
|
|
288
|
+
```ts
|
|
289
|
+
import { privateKeyToAccount } from "viem/accounts";
|
|
290
|
+
|
|
291
|
+
const payer = privateKeyToAccount(process.env.PAYER_KEY as `0x${string}`);
|
|
292
|
+
const built = await x402.payEmailChallenge(issued, { signer: payer });
|
|
293
|
+
|
|
294
|
+
// `built.json` is the interaction.json body. The payer received the challenge
|
|
295
|
+
// as an inbound email; reply to it with the envelope attached as
|
|
296
|
+
// `interaction.json` using the email client's `reply` method (see the email
|
|
297
|
+
// client above). The platform reads the envelope, re-derives the
|
|
298
|
+
// interaction-bound nonce, and settles on chain.
|
|
299
|
+
import { Buffer } from "node:buffer";
|
|
300
|
+
import { createClient } from "@primitivedotdev/sdk";
|
|
301
|
+
|
|
302
|
+
const mail = createClient({ apiKey: process.env.PRIMITIVE_API_KEY! });
|
|
303
|
+
await mail.reply(challengeEmail, {
|
|
304
|
+
text: "Payment attached.",
|
|
305
|
+
attachments: [
|
|
306
|
+
{
|
|
307
|
+
filename: "interaction.json",
|
|
308
|
+
content_type: "application/json",
|
|
309
|
+
content_base64: Buffer.from(built.json, "utf8").toString("base64"),
|
|
310
|
+
},
|
|
311
|
+
],
|
|
312
|
+
});
|
|
313
|
+
```
|
|
314
|
+
|
|
269
315
|
### Signing primitives (lower level)
|
|
270
316
|
|
|
271
317
|
`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:
|
|
@@ -388,6 +434,43 @@ For most app-code callers, `primitive.receive(...)` from the root import handles
|
|
|
388
434
|
|
|
389
435
|
For the full reference (response codes, replay protection details), see the API-level "Webhook signing" section in the [OpenAPI spec](https://api.primitive.dev/v1/openapi).
|
|
390
436
|
|
|
437
|
+
### Payment and interaction webhook events
|
|
438
|
+
|
|
439
|
+
Webhooks are not email-only. The same endpoint also receives `payment.*` settlement notifications and `interaction.x402.*` events from the x402-over-email flow. The event name is carried in the **`X-Webhook-Event` header** for every family. The body is sent verbatim with no envelope, so it is the header (not a body field) that names the event: an `email.*` body carries `event`, a `payment.*` body carries the name in `type`, and an `interaction.*` body is just `{ interaction: { ... } }` with no event/type field at all.
|
|
440
|
+
|
|
441
|
+
`handleWebhookEvent` verifies the signature over the raw body first, then keys on the header to return a typed event for known types and an `UnknownEvent` (it does not throw) for the rest:
|
|
442
|
+
|
|
443
|
+
```ts
|
|
444
|
+
import {
|
|
445
|
+
handleWebhookEvent,
|
|
446
|
+
isPaymentSettledEvent,
|
|
447
|
+
isInteractionX402Event,
|
|
448
|
+
} from "@primitivedotdev/sdk/webhook";
|
|
449
|
+
|
|
450
|
+
const event = handleWebhookEvent({
|
|
451
|
+
body: rawBodyString,
|
|
452
|
+
headers: req.headers,
|
|
453
|
+
secret: process.env.PRIMITIVE_WEBHOOK_SECRET!,
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
if (isPaymentSettledEvent(event)) {
|
|
457
|
+
// typed PaymentSettledEvent; settlement details are under event.payment
|
|
458
|
+
console.log("settled", event.id);
|
|
459
|
+
} else if (isInteractionX402Event(event)) {
|
|
460
|
+
// typed interaction.x402.* event (challenge/payment/settled/...)
|
|
461
|
+
console.log(event.event, event.interaction);
|
|
462
|
+
}
|
|
463
|
+
```
|
|
464
|
+
|
|
465
|
+
The full catalog of header values is the `WebhookEventType` union, also exported as the `WEBHOOK_EVENT_TYPES` array:
|
|
466
|
+
|
|
467
|
+
- `email.received`, `email.bounced`, `email.tls_report`, `email.dmarc_report`, `email.dmarc_failure`
|
|
468
|
+
- `payment.settled`, `payment.failed`
|
|
469
|
+
- `interaction.x402.challenge`, `interaction.x402.payment`, `interaction.x402.settled`, `interaction.x402.rejected`, `interaction.x402.declined`, `interaction.x402.expired`, `interaction.x402.verify_timeout`
|
|
470
|
+
- `interaction.ack.received`, `interaction.ack.requested`, `interaction.ack.acked`, `interaction.ack.canceled`, `interaction.ack.expired`
|
|
471
|
+
|
|
472
|
+
Signature verification runs on the raw body and is independent of the event type, so it works identically for `payment.*` and `interaction.*` bodies. Each delivery is signed with the dual-header scheme: the primary `Primitive-Signature` header and a legacy `MyMX-Signature` header carrying the same value. `handleWebhook` remains hard-typed to `email.received` for backward compatibility; reach for `handleWebhookEvent` when you need the full event union.
|
|
473
|
+
|
|
391
474
|
### Other subpath imports
|
|
392
475
|
|
|
393
476
|
- `@primitivedotdev/sdk/openapi` exports the OpenAPI document and the operation manifest as JSON. Useful for tools that want the spec inline.
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
|
1
|
+
import { $ as downloadRawEmail, $a as GetFunctionResponses, $c as ResendAgentSignupVerificationInput, $d as VerifyCliSignupError, $i as EmailSearchFacets, $l as SetFunctionSecretData, $n as CreateChallengeResponse, $o as InboxStatusEndpointSummary, $r as DeleteEndpointResponses, $s as ListOrgSecretsResponse, $t as updateFilter, $u as UnsetFunctionRouteErrors, A as RequestOptions$1, Aa as GetAccountError, Ac as RegisterPayoutAddressErrors, Ad as UpdateFunctionInput, Af as Auth, Ai as DomainDnsRecord, Al as SemanticSearchSnippet, An as CliLogoutResponses, Ao as GetSpendPolicyData, Ar as CreateFunctionSecretResponse, As as ListFiltersData, At as replayDelivery, Au as StartCliSignupError, B as createFunction, Ba as GetConversationError, Bc as ReplayEmailWebhooksError, Bd as VerifyAgentClaimData, Bi as DownloadDomainZoneFileResponse, Bl as SendPermissionAnyRecipient, Bn as CreateAgentAccountInput, Bo as GetThreadData, Br as DeleteDomainError, Bs as ListFunctionSecretsData, Bt as setFunctionRoute, Bu as TestEndpointResponse, C as VerifyOptions, Ca as FunctionTestRunReply, Cc as PollCliLoginError, Cd as UpdateFilterErrors, Cf as Config, Ci as DiscardEmailContentData, Cl as SemanticSearchErrors, Cn as CliLoginPollResult, Co as GetSendPermissionsResponse, Cr as CreateFunctionResponse, Cs as ListEmailsResponses, Ct as listFunctions, Cu as StartCliLoginData, D as PrimitiveApiClientOptions, Da as GateDenial, Dc as PollCliLoginResponses, Dd as UpdateFunctionData, Df as RequestResult, Di as DiscardEmailContentResponses, Dl as SemanticSearchResponses, Dn as CliLogoutErrors, Do as GetSentEmailErrors, Dr as CreateFunctionSecretError, Ds as ListEndpointsResponse, Dt as payChallenge, Du as StartCliLoginResponse, E as PrimitiveApiClient, Ea as FunctionTestRunTrace, Ec as PollCliLoginResponse, Ed as UpdateFilterResponses, Ef as RequestOptions, Ei as DiscardEmailContentResponse, El as SemanticSearchMeta, En as CliLogoutError, Eo as GetSentEmailError, Er as CreateFunctionSecretData, Es as ListEndpointsErrors, Et as listSentEmails, Eu as StartCliLoginInput, F as createAgentClaimLink, Fa as GetChallengeError, Fc as ReplayDeliveryError, Fd as UpdateSpendPolicyErrors, Fi as DownloadAttachmentsResponse, Fl as SendEmailResponses, Fn as Conversation, Fo as GetStorageStatsData, Fr as CreateOrgSecretInput, Fs as ListFunctionLogsData, Ft as rotateWebhookSecret, Fu as StorageStats, G as deleteEndpoint, Ga as GetEmailError, Gc as ReplyToEmailData, Gd as VerifyAgentClaimResponses, Gi as DownloadRawEmailResponse, Gl as SentEmailDetail, Gn as CreateAgentClaimLinkErrors, Go as GetWebhookSecretData, Gr as DeleteEmailError, Gs as ListFunctionsData, Gt as startCliLogin, Gu as TestFunctionResponse, H as createOrgSecret, Ha as GetConversationResponse, Hc as ReplayEmailWebhooksResponse, Hd as VerifyAgentClaimErrors, Hi as DownloadRawEmailData, Hl as SendPermissionRule, Hn as CreateAgentAccountResponses, Ho as GetThreadErrors, Hr as DeleteDomainResponse, Hs as ListFunctionSecretsErrors, Ht as setOrgSecret, Hu as TestFunctionData, I as createChallenge, Ia as GetChallengeErrors, Ic as ReplayDeliveryErrors, Id as UpdateSpendPolicyInput, Ii as DownloadAttachmentsResponses, Il as SendMailAttachment, In as ConversationMessage, Io as GetStorageStatsError, Ir as CreateOrgSecretResponse, Is as ListFunctionLogsError, It as sdk_gen_d_exports, Iu as SuccessEnvelope, J as deleteFunctionSecret, Ja as GetEmailResponses, Jc as ReplyToEmailResponse, Jd as VerifyAgentSignupErrors, Ji as EmailAttachment, Jl as SetFunctionRouteData, Jn as CreateAgentClaimLinkResponses, Jo as GetWebhookSecretResponse, Jr as DeleteEmailResponses, Js as ListFunctionsResponse, Jt as testFunction, Ju as TestResult, K as deleteFilter, Ka as GetEmailErrors, Kc as ReplyToEmailError, Kd as VerifyAgentSignupData, Ki as DownloadRawEmailResponses, Kl as SentEmailStatus, Kn as CreateAgentClaimLinkInput, Ko as GetWebhookSecretError, Kr as DeleteEmailErrors, Ks as ListFunctionsError, Kt as startCliSignup, Ku as TestFunctionResponses, L as createEmailChallenge, La as GetChallengeResponse, Lc as ReplayDeliveryResponse, Ld as UpdateSpendPolicyResponse, Li as DownloadDomainZoneFileData, Ll as SendMailInput, Ln as CreateAgentAccountData, Lo as GetStorageStatsErrors, Lr as CreateOrgSecretResponses, Ls as ListFunctionLogsErrors, Lt as searchEmails, Lu as TestEndpointData, M as addDomain, Ma as GetAccountResponse, Mc as RegisterPayoutAddressResponse, Md as UpdateFunctionResponses, Mi as DownloadAttachmentsData, Ml as SendEmailError, Mn as CliSignupResendResult, Mo as GetSpendPolicyErrors, Mr as CreateOrgSecretData, Ms as ListFiltersErrors, Mt as replyToEmail, Mu as StartCliSignupInput, N as cliLogout, Na as GetAccountResponses, Nc as RegisterPayoutAddressResponses, Nd as UpdateSpendPolicyData, Ni as DownloadAttachmentsError, Nl as SendEmailErrors, Nn as CliSignupStartResult, No as GetSpendPolicyResponse, Nr as CreateOrgSecretError, Ns as ListFiltersResponse, Nt as resendAgentSignupVerification, Nu as StartCliSignupResponse, O as PrimitiveApiError, Oa as GateFix, Oc as RegisterPayoutAddressData, Od as UpdateFunctionError, Of as ResponseStyle, Oi as DkimSignature, Ol as SemanticSearchResult, On as CliLogoutInput, Oo as GetSentEmailResponse, Or as CreateFunctionSecretErrors, Os as ListEndpointsResponses, Ot as pollCliLogin, Ou as StartCliLoginResponses, P as createAgentAccount, Pa as GetChallengeData, Pc as ReplayDeliveryData, Pd as UpdateSpendPolicyError, Pi as DownloadAttachmentsErrors, Pl as SendEmailResponse, Pn as CliSignupVerifyResult, Po as GetSpendPolicyResponses, Pr as CreateOrgSecretErrors, Ps as ListFiltersResponses, Pt as resendCliSignupVerification, Pu as StartCliSignupResponses, Q as downloadDomainZoneFile, Qa as GetFunctionResponse, Qc as ResendAgentSignupVerificationErrors, Qd as VerifyCliSignupData, Qi as EmailSearchFacetBucket, Ql as SetFunctionRouteResponses, Qn as CreateChallengeInput, Qo as InboxStatusDomain, Qr as DeleteEndpointResponse, Qs as ListOrgSecretsErrors, Qt as updateEndpoint, Qu as UnsetFunctionRouteError, R as createEndpoint, Ra as GetChallengeResponses, Rc as ReplayDeliveryResponses, Rd as UpdateSpendPolicyResponses, Ri as DownloadDomainZoneFileError, Rl as SendMailResult, Rn as CreateAgentAccountError, Ro as GetStorageStatsResponse, Rr as Cursor, Rs as ListFunctionLogsResponse, Rt as semanticSearch, Ru as TestEndpointError, S as PRIMITIVE_SIGNATURE_HEADER, Sa as FunctionTestRunOutboundRequest, Sc as PollCliLoginData, Sd as UpdateFilterError, Sf as ClientOptions, Si as DiscardContentResult, Sl as SemanticSearchError, Sn as AgentSignupVerifyResult, So as GetSendPermissionsErrors, Sr as CreateFunctionInput, Ss as ListEmailsResponse, St as listFunctionSecrets, Su as StartAgentSignupResponses, T as DEFAULT_API_BASE_URL, Ta as FunctionTestRunState, Tc as PollCliLoginInput, Td as UpdateFilterResponse, Tf as Options, Ti as DiscardEmailContentErrors, Tl as SemanticSearchInput, Tn as CliLogoutData, To as GetSentEmailData, Tr as CreateFunctionResult, Ts as ListEndpointsError, Tt as listPayoutAddresses, Tu as StartCliLoginErrors, U as deleteDomain, Ua as GetConversationResponses, Uc as ReplayEmailWebhooksResponses, Ud as VerifyAgentClaimInput, Ui as DownloadRawEmailError, Ul as SendPermissionYourDomain, Un as CreateAgentClaimLinkData, Uo as GetThreadResponse, Ur as DeleteDomainResponses, Us as ListFunctionSecretsResponse, Ut as startAgentClaim, Uu as TestFunctionError, V as createFunctionSecret, Va as GetConversationErrors, Vc as ReplayEmailWebhooksErrors, Vd as VerifyAgentClaimError, Vi as DownloadDomainZoneFileResponses, Vl as SendPermissionManagedZone, Vn as CreateAgentAccountResponse, Vo as GetThreadError, Vr as DeleteDomainErrors, Vs as ListFunctionSecretsError, Vt as setFunctionSecret, Vu as TestEndpointResponses, W as deleteEmail, Wa as GetEmailData, Wc as ReplayResult, Wd as VerifyAgentClaimResponse, Wi as DownloadRawEmailErrors, Wl as SendPermissionsMeta, Wn as CreateAgentClaimLinkError, Wo as GetThreadResponses, Wr as DeleteEmailData, Ws as ListFunctionSecretsResponses, Wt as startAgentSignup, Wu as TestFunctionErrors, X as discardEmailContent, Xa as GetFunctionError, Xc as ResendAgentSignupVerificationData, Xd as VerifyAgentSignupResponse, Xi as EmailDetail, Xl as SetFunctionRouteErrors, Xn as CreateChallengeError, Xo as IdempotencyKey, Xr as DeleteEndpointError, Xs as ListOrgSecretsData, Xt as updateAccount, Xu as ThreadMessage, Y as deleteOrgSecret, Ya as GetFunctionData, Yc as ReplyToEmailResponses, Yd as VerifyAgentSignupInput, Yi as EmailAuth, Yl as SetFunctionRouteError, Yn as CreateChallengeData, Yo as GetWebhookSecretResponses, Yr as DeleteEndpointData, Ys as ListFunctionsResponses, Yt as unsetFunctionRoute, Yu as Thread, Z as downloadAttachments, Za as GetFunctionErrors, Zc as ResendAgentSignupVerificationError, Zd as VerifyAgentSignupResponses, Zi as EmailDetailReply, Zl as SetFunctionRouteResponse, Zn as CreateChallengeErrors, Zo as InboxStatus, Zr as DeleteEndpointErrors, Zs as ListOrgSecretsError, Zt as updateDomain, Zu as UnsetFunctionRouteData, _ as SendThreadInput, _a as FunctionSecretWriteResult, _c as PayChallengeErrors, _d as UpdateEndpointErrors, _f as X402PayoutAddress, _i as DeleteOrgSecretErrors, _l as SearchEmailsErrors, _n as AgentClaimResult, _o as GetOrgRoutingTopologyErrors, _r as CreateFilterResponse, _s as ListDomainsResponse, _t as listDomains, _u as StartAgentSignupData, a as ForwardInput, aa as EmailWebhookStatus, ac as ListPayoutAddressesResponses, ad as UpdateAccountErrors, af as VerifyDomainError, ai as DeleteFunctionData, al as ResendCliSignupVerificationInput, an as verifyDomain, ao as GetFunctionTestRunTraceData, ar as CreateEmailChallengeResponse, as as ListDeclinedPaymentsError, at as getFunctionRouting, au as SetOrgSecretData, b as createAgent, ba as FunctionTestRunDeliveryEndpoint, bc as PayChallengeResponses, bd as UpdateEndpointResponses, bf as createClient, bi as DeliveryStatus, bl as SemanticSearchCoverage, bn as AgentSignupResendResult, bo as GetSendPermissionsData, br as CreateFunctionError, bs as ListEmailsError, bt as listFilters, bu as StartAgentSignupInput, c as InboxStreamOptions, ca as Filter, cc as ListSentEmailsErrors, cd as UpdateAccountResponses, cf as VerifyDomainResponses, ci as DeleteFunctionResponse, cl as ResourceId, cn as AddDomainData, co as GetFunctionTestRunTraceResponse, cr as CreateEndpointError, cs as ListDeclinedPaymentsResponses, ct as getOrgRoutingTopology, cu as SetOrgSecretInput, d as ReplyInput, da as FunctionListItem, dc as OrgSecretListItem, dd as UpdateDomainErrors, df as X402DeclinedPayment, di as DeleteFunctionSecretError, dl as RotateWebhookSecretErrors, dn as AddDomainInput, do as GetInboxStatusError, dr as CreateEndpointResponse, ds as ListDeliveriesErrors, dt as getSpendPolicy, du as StartAgentClaimData, ea as EmailSearchHighlights, ec as ListOrgSecretsResponses, ed as UnsetFunctionRouteResponse, ef as VerifyCliSignupErrors, ei as DeleteFilterData, el as ResendAgentSignupVerificationResponse, en as updateFunction, eo as GetFunctionRoutingData, er as CreateChallengeResponses, es as InboxStatusFunctionSummary, et as getAccount, eu as SetFunctionSecretError, f as RequestOptions$2, fa as FunctionLogRow, fc as OrgSecretWriteResult, fd as UpdateDomainInput, ff as X402EmailChallenge, fi as DeleteFunctionSecretErrors, fl as RotateWebhookSecretResponse, fn as AddDomainResponse, fo as GetInboxStatusErrors, fr as CreateEndpointResponses, fs as ListDeliveriesResponse, ft as getStorageStats, fu as StartAgentClaimError, g as SendResult, ga as FunctionSecretListItem, gc as PayChallengeError, gd as UpdateEndpointError, gf as X402PaymentRequirements, gi as DeleteOrgSecretError, gl as SearchEmailsError, gn as AgentClaimLinkResult, go as GetOrgRoutingTopologyError, gr as CreateFilterInput, gs as ListDomainsErrors, gt as listDeliveries, gu as StartAgentClaimResponses, h as SendInput, ha as FunctionRouting, hc as PayChallengeData, hd as UpdateEndpointData, hf as X402PaymentPayload, hi as DeleteOrgSecretData, hl as SearchEmailsData, hn as AgentAccountUpgradeHint, ho as GetOrgRoutingTopologyData, hr as CreateFilterErrors, hs as ListDomainsError, ht as listDeclinedPayments, hu as StartAgentClaimResponse, i as CreatedAgent, ia as EmailSummary, ic as ListPayoutAddressesResponse, id as UpdateAccountError, if as VerifyDomainData, ii as DeleteFilterResponses, il as ResendCliSignupVerificationErrors, in as verifyCliSignup, io as GetFunctionRoutingResponses, ir as CreateEmailChallengeInput, is as ListDeclinedPaymentsData, it as getFunction, iu as SetFunctionSecretResponses, j as createPrimitiveApiClient, ja as GetAccountErrors, jc as RegisterPayoutAddressInput, jd as UpdateFunctionResponse, ji as DomainVerifyResult, jl as SendEmailData, jn as CliLogoutResult, jo as GetSpendPolicyError, jr as CreateFunctionSecretResponses, js as ListFiltersError, jt as replayEmailWebhooks, ju as StartCliSignupErrors, k as PrimitiveApiErrorDetails, ka as GetAccountData, kc as RegisterPayoutAddressError, kd as UpdateFunctionErrors, kf as createConfig, ki as Domain, kl as SemanticSearchScoreBreakdown, kn as CliLogoutResponse, ko as GetSentEmailResponses, kr as CreateFunctionSecretInput, ks as ListEnvelope, kt as registerPayoutAddress, ku as StartCliSignupData, l as PrimitiveClient, la as FunctionDeployStatus, lc as ListSentEmailsResponse, ld as UpdateDomainData, lf as WebhookSecret, li as DeleteFunctionResponses, ll as RotateWebhookSecretData, ln as AddDomainError, lo as GetFunctionTestRunTraceResponses, lr as CreateEndpointErrors, ls as ListDeliveriesData, lt as getSendPermissions, lu as SetOrgSecretResponse, m as SendAttachment, ma as FunctionRouteResult, mc as ParsedEmailData, md as UpdateDomainResponses, mf as X402NonceBinding, mi as DeleteFunctionSecretResponses, ml as RoutingTopology, mn as AgentAccountResult, mo as GetInboxStatusResponses, mr as CreateFilterError, ms as ListDomainsData, mt as getWebhookSecret, mu as StartAgentClaimInput, n as AgentResource, na as EmailSearchResult, nc as ListPayoutAddressesError, nd as UnverifiedDomain, nf as VerifyCliSignupResponse, ni as DeleteFilterErrors, nl as ResendCliSignupVerificationData, nn as verifyAgentClaim, no as GetFunctionRoutingErrors, nr as CreateEmailChallengeError, ns as InboxStatusRecentEmailSummary, nt as getConversation, nu as SetFunctionSecretInput, o as InboundEmail, oa as Endpoint, oc as ListSentEmailsData, od as UpdateAccountInput, of as VerifyDomainErrors, oi as DeleteFunctionError, ol as ResendCliSignupVerificationResponse, on as Account, oo as GetFunctionTestRunTraceError, or as CreateEmailChallengeResponses, os as ListDeclinedPaymentsErrors, ot as getFunctionTestRunTrace, ou as SetOrgSecretError, p as SemanticSearchResponse, pa as FunctionRouteBody, pc as PaginationMeta, pd as UpdateDomainResponse, pf as X402EmailChallengeDetails, pi as DeleteFunctionSecretResponse, pl as RotateWebhookSecretResponses, pn as AddDomainResponses, po as GetInboxStatusResponse, pr as CreateFilterData, ps as ListDeliveriesResponses, pt as getThread, pu as StartAgentClaimErrors, q as deleteFunction, qa as GetEmailResponse, qc as ReplyToEmailErrors, qd as VerifyAgentSignupError, qi as EmailAddress, ql as SentEmailSummary, qn as CreateAgentClaimLinkResponse, qo as GetWebhookSecretErrors, qr as DeleteEmailResponse, qs as ListFunctionsErrors, qt as testEndpoint, qu as TestInvocationResult, r as CreateAgentOptions, ra as EmailStatus, rc as ListPayoutAddressesErrors, rd as UpdateAccountData, rf as VerifyCliSignupResponses, ri as DeleteFilterResponse, rl as ResendCliSignupVerificationError, rn as verifyAgentSignup, ro as GetFunctionRoutingResponse, rr as CreateEmailChallengeErrors, rs as Limit, rt as getEmail, ru as SetFunctionSecretResponse, s as InboxResource, sa as ErrorResponse, sc as ListSentEmailsError, sd as UpdateAccountResponse, sf as VerifyDomainResponse, si as DeleteFunctionErrors, sl as ResendCliSignupVerificationResponses, sn as AccountUpdated, so as GetFunctionTestRunTraceErrors, sr as CreateEndpointData, ss as ListDeclinedPaymentsResponse, st as getInboxStatus, su as SetOrgSecretErrors, t as AccountResource, ta as EmailSearchMeta, tc as ListPayoutAddressesData, td as UnsetFunctionRouteResponses, tf as VerifyCliSignupInput, ti as DeleteFilterError, tl as ResendAgentSignupVerificationResponses, tn as updateSpendPolicy, to as GetFunctionRoutingError, tr as CreateEmailChallengeData, ts as InboxStatusNextAction, tt as getChallenge, tu as SetFunctionSecretErrors, u as PrimitiveClientOptions, ua as FunctionDetail, uc as ListSentEmailsResponses, ud as UpdateDomainError, uf as X402Challenge, ui as DeleteFunctionSecretData, ul as RotateWebhookSecretError, un as AddDomainErrors, uo as GetInboxStatusData, ur as CreateEndpointInput, us as ListDeliveriesError, ut as getSentEmail, uu as SetOrgSecretResponses, v as WaitForNextOptions, va as FunctionTestRun, vc as PayChallengeInput, vd as UpdateEndpointInput, vf as X402Receipt, vi as DeleteOrgSecretResponse, vl as SearchEmailsResponse, vn as AgentClaimStartResult, vo as GetOrgRoutingTopologyResponse, vr as CreateFilterResponses, vs as ListDomainsResponses, vt as listEmails, vu as StartAgentSignupError, w as verifyWebhookSignature, wa as FunctionTestRunSend, wc as PollCliLoginErrors, wd as UpdateFilterInput, wf as CreateClientConfig, wi as DiscardEmailContentError, wl as SemanticSearchField, wn as CliLoginStartResult, wo as GetSendPermissionsResponses, wr as CreateFunctionResponses, ws as ListEndpointsData, wt as listOrgSecrets, wu as StartCliLoginError, x as createPrimitiveClient, xa as FunctionTestRunInboundEmail, xc as PlanLimits, xd as UpdateFilterData, xf as Client, xi as DeliverySummary, xl as SemanticSearchData, xn as AgentSignupStartResult, xo as GetSendPermissionsError, xr as CreateFunctionErrors, xs as ListEmailsErrors, xt as listFunctionLogs, xu as StartAgentSignupResponse, y as client, ya as FunctionTestRunDelivery, yc as PayChallengeResponse, yd as UpdateEndpointResponse, yf as X402SpendPolicy, yi as DeleteOrgSecretResponses, yl as SearchEmailsResponses, yn as AgentOrgRef, yo as GetOrgRoutingTopologyResponses, yr as CreateFunctionData, ys as ListEmailsData, yt as listEndpoints, yu as StartAgentSignupErrors, z as createFilter, za as GetConversationData, zc as ReplayEmailWebhooksData, zd as VerifiedDomain, zi as DownloadDomainZoneFileErrors, zl as SendPermissionAddress, zn as CreateAgentAccountErrors, zo as GetStorageStatsResponses, zr as DeleteDomainData, zs as ListFunctionLogsResponses, zt as sendEmail, zu as TestEndpointErrors } from "../index-C3ahy3ls.js";
|
|
2
2
|
import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-BAniFZK9.js";
|
|
3
|
-
import { f as EmailReceivedEvent } from "../types-
|
|
4
|
-
import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-
|
|
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 };
|
|
3
|
+
import { f as EmailReceivedEvent } from "../types-BjnIxPED.js";
|
|
4
|
+
import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-bXUNXAlf.js";
|
|
5
|
+
export { Account, AccountResource, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentAccountResult, AgentAccountUpgradeHint, AgentClaimLinkResult, AgentClaimResult, AgentClaimStartResult, AgentOrgRef, AgentResource, AgentSignupResendResult, AgentSignupStartResult, AgentSignupVerifyResult, Auth, CliLoginPollResult, CliLoginStartResult, CliLogoutData, CliLogoutError, CliLogoutErrors, CliLogoutInput, CliLogoutResponse, CliLogoutResponses, CliLogoutResult, CliSignupResendResult, CliSignupStartResult, CliSignupVerifyResult, Client, Client as PrimitiveGeneratedApiClient, ClientOptions, ClientOptions as PrimitiveGeneratedApiClientOptions, Config, Config as PrimitiveGeneratedApiConfig, Conversation, ConversationMessage, CreateAgentAccountData, CreateAgentAccountError, CreateAgentAccountErrors, CreateAgentAccountInput, CreateAgentAccountResponse, CreateAgentAccountResponses, CreateAgentClaimLinkData, CreateAgentClaimLinkError, CreateAgentClaimLinkErrors, CreateAgentClaimLinkInput, CreateAgentClaimLinkResponse, CreateAgentClaimLinkResponses, CreateAgentOptions, CreateChallengeData, CreateChallengeError, CreateChallengeErrors, CreateChallengeInput, CreateChallengeResponse, CreateChallengeResponses, CreateClientConfig, CreateEmailChallengeData, CreateEmailChallengeError, CreateEmailChallengeErrors, CreateEmailChallengeInput, CreateEmailChallengeResponse, CreateEmailChallengeResponses, CreateEndpointData, CreateEndpointError, CreateEndpointErrors, CreateEndpointInput, CreateEndpointResponse, CreateEndpointResponses, CreateFilterData, CreateFilterError, CreateFilterErrors, CreateFilterInput, CreateFilterResponse, CreateFilterResponses, CreateFunctionData, CreateFunctionError, CreateFunctionErrors, CreateFunctionInput, CreateFunctionResponse, CreateFunctionResponses, CreateFunctionResult, CreateFunctionSecretData, CreateFunctionSecretError, CreateFunctionSecretErrors, CreateFunctionSecretInput, CreateFunctionSecretResponse, CreateFunctionSecretResponses, CreateOrgSecretData, CreateOrgSecretError, CreateOrgSecretErrors, CreateOrgSecretInput, CreateOrgSecretResponse, CreateOrgSecretResponses, 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, IdempotencyKey, InboundEmail, InboxResource, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, InboxStreamOptions, Limit, ListDeclinedPaymentsData, ListDeclinedPaymentsError, ListDeclinedPaymentsErrors, ListDeclinedPaymentsResponse, ListDeclinedPaymentsResponses, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListOrgSecretsData, ListOrgSecretsError, ListOrgSecretsErrors, ListOrgSecretsResponse, ListOrgSecretsResponses, ListPayoutAddressesData, ListPayoutAddressesError, ListPayoutAddressesErrors, ListPayoutAddressesResponse, ListPayoutAddressesResponses, 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, X402EmailChallenge, X402EmailChallengeDetails, X402NonceBinding, X402PaymentPayload, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, 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
|
|
2
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
1
|
+
import { $ as listDomains, A as deleteFunctionSecret, At as testFunction, B as getFunction, Bt as verifyCliSignup, C as createFunctionSecret, Ct as setFunctionSecret, D as deleteEndpoint, Dt as startCliLogin, E as deleteEmail, Et as startAgentSignup, F as downloadRawEmail, Ft as updateFilter, G as getSendPermissions, H as getFunctionTestRunTrace, Ht as createClient, I as getAccount, It as updateFunction, J as getStorageStats, K as getSentEmail, L as getChallenge, Lt as updateSpendPolicy, M as discardEmailContent, Mt as updateAccount, N as downloadAttachments, Nt as updateDomain, O as deleteFilter, Ot as startCliSignup, P as downloadDomainZoneFile, Pt as updateEndpoint, Q as listDeliveries, R as getConversation, Rt as verifyAgentClaim, S as createFunction, St as setFunctionRoute, T as deleteDomain, Tt as startAgentClaim, U as getInboxStatus, Ut as createConfig, V as getFunctionRouting, Vt as verifyDomain, W as getOrgRoutingTopology, X as getWebhookSecret, Y as getThread, Z as listDeclinedPayments, _ as createAgentClaimLink, _t as rotateWebhookSecret, a as client, at as listFunctions, b as createEndpoint, bt as semanticSearch, c as PRIMITIVE_SIGNATURE_HEADER, ct as listSentEmails, d as PrimitiveApiClient, dt as registerPayoutAddress, et as listEmails, f as PrimitiveApiError, ft as replayDelivery, g as createAgentAccount, gt as resendCliSignupVerification, h as cliLogout, ht as resendAgentSignupVerification, i as PrimitiveClient, it as listFunctionSecrets, j as deleteOrgSecret, jt as unsetFunctionRoute, k as deleteFunction, kt as testEndpoint, l as verifyWebhookSignature, lt as payChallenge, m as addDomain, mt as replyToEmail, n as AgentResource, nt as listFilters, o as createAgent, ot as listOrgSecrets, p as createPrimitiveApiClient, pt as replayEmailWebhooks, q as getSpendPolicy, r as InboxResource, rt as listFunctionLogs, s as createPrimitiveClient, st as listPayoutAddresses, t as AccountResource, tt as listEndpoints, u as DEFAULT_API_BASE_URL, ut as pollCliLogin, v as createChallenge, vt as sdk_gen_exports, w as createOrgSecret, wt as setOrgSecret, x as createFilter, xt as sendEmail, y as createEmailChallenge, yt as searchEmails, z as getEmail, zt as verifyAgentSignup } from "../api-26ENR8Ph.js";
|
|
2
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-Bu20uPOw.js";
|
|
3
3
|
import { c as WebhookVerificationError, f as normalizeReceivedEmail } from "../errors-BPJGp9I6.js";
|
|
4
|
-
export { AccountResource, AgentResource, DEFAULT_API_BASE_URL, InboxResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, 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 };
|
|
4
|
+
export { AccountResource, AgentResource, DEFAULT_API_BASE_URL, InboxResource, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, createAgent, createAgentAccount, createAgentClaimLink, createChallenge, createClient, createConfig, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createPrimitiveApiClient, createPrimitiveClient, 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 };
|
|
@@ -618,6 +618,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
618
618
|
createAgentAccount: () => createAgentAccount,
|
|
619
619
|
createAgentClaimLink: () => createAgentClaimLink,
|
|
620
620
|
createChallenge: () => createChallenge,
|
|
621
|
+
createEmailChallenge: () => createEmailChallenge,
|
|
621
622
|
createEndpoint: () => createEndpoint,
|
|
622
623
|
createFilter: () => createFilter,
|
|
623
624
|
createFunction: () => createFunction,
|
|
@@ -2258,6 +2259,34 @@ const registerPayoutAddress = (options) => (options.client ?? client$1).post({
|
|
|
2258
2259
|
}
|
|
2259
2260
|
});
|
|
2260
2261
|
/**
|
|
2262
|
+
* Create an email-native payment challenge
|
|
2263
|
+
*
|
|
2264
|
+
* Issue an x402 payment challenge over a real email thread (the payee
|
|
2265
|
+
* side). Unlike `createChallenge` (which mints a synthetic challenge id),
|
|
2266
|
+
* this sends the challenge as an email from `from` to `to` and binds the
|
|
2267
|
+
* payment to that DKIM-authenticated thread. The `pay_to` address and the
|
|
2268
|
+
* token asset are resolved server-side from your registered default payout
|
|
2269
|
+
* address for the network, never from the request. The response carries
|
|
2270
|
+
* the thread's `interaction_id` plus the `challenge` (the
|
|
2271
|
+
* `payment_requirements`, the `nonce_binding`, and `expires_at`) the payer
|
|
2272
|
+
* needs to sign; the payer replies with a signed `payment` interaction
|
|
2273
|
+
* step. Amounts are in token base units (USDC has 6 decimals, so `"10000"`
|
|
2274
|
+
* is 0.01 USDC).
|
|
2275
|
+
*
|
|
2276
|
+
*/
|
|
2277
|
+
const createEmailChallenge = (options) => (options.client ?? client$1).post({
|
|
2278
|
+
security: [{
|
|
2279
|
+
scheme: "bearer",
|
|
2280
|
+
type: "http"
|
|
2281
|
+
}],
|
|
2282
|
+
url: "/x402/email-challenges",
|
|
2283
|
+
...options,
|
|
2284
|
+
headers: {
|
|
2285
|
+
...options.body !== void 0 && { "Content-Type": "application/json" },
|
|
2286
|
+
...options.headers
|
|
2287
|
+
}
|
|
2288
|
+
});
|
|
2289
|
+
/**
|
|
2261
2290
|
* Create a payment challenge
|
|
2262
2291
|
*
|
|
2263
2292
|
* Create an x402 payment challenge (the payee side of a payment). The
|
|
@@ -3105,4 +3134,4 @@ async function createAgent(options) {
|
|
|
3105
3134
|
};
|
|
3106
3135
|
}
|
|
3107
3136
|
//#endregion
|
|
3108
|
-
export {
|
|
3137
|
+
export { listDomains as $, deleteFunctionSecret as A, testFunction as At, getFunction as B, verifyCliSignup as Bt, createFunctionSecret as C, setFunctionSecret as Ct, deleteEndpoint as D, startCliLogin as Dt, deleteEmail as E, startAgentSignup as Et, downloadRawEmail as F, updateFilter as Ft, getSendPermissions as G, getFunctionTestRunTrace as H, createClient as Ht, getAccount as I, updateFunction as It, getStorageStats as J, getSentEmail as K, getChallenge as L, updateSpendPolicy as Lt, discardEmailContent as M, updateAccount as Mt, downloadAttachments as N, updateDomain as Nt, deleteFilter as O, startCliSignup as Ot, downloadDomainZoneFile as P, updateEndpoint as Pt, listDeliveries as Q, getConversation as R, verifyAgentClaim as Rt, createFunction as S, setFunctionRoute as St, deleteDomain as T, startAgentClaim as Tt, getInboxStatus as U, createConfig as Ut, getFunctionRouting as V, verifyDomain as Vt, getOrgRoutingTopology as W, getWebhookSecret as X, getThread as Y, listDeclinedPayments as Z, createAgentClaimLink as _, rotateWebhookSecret as _t, client as a, listFunctions as at, createEndpoint as b, semanticSearch as bt, PRIMITIVE_SIGNATURE_HEADER as c, listSentEmails as ct, PrimitiveApiClient as d, registerPayoutAddress as dt, listEmails as et, PrimitiveApiError as f, replayDelivery as ft, createAgentAccount as g, resendCliSignupVerification as gt, cliLogout as h, resendAgentSignupVerification as ht, PrimitiveClient as i, listFunctionSecrets as it, deleteOrgSecret as j, unsetFunctionRoute as jt, deleteFunction as k, testEndpoint as kt, verifyWebhookSignature as l, payChallenge as lt, addDomain as m, replyToEmail as mt, AgentResource as n, listFilters as nt, createAgent as o, listOrgSecrets as ot, createPrimitiveApiClient as p, replayEmailWebhooks as pt, getSpendPolicy as q, InboxResource as r, listFunctionLogs as rt, createPrimitiveClient as s, listPayoutAddresses as st, AccountResource as t, listEndpoints as tt, DEFAULT_API_BASE_URL as u, pollCliLogin as ut, createChallenge as v, sdk_gen_exports as vt, createOrgSecret as w, setOrgSecret as wt, createFilter as x, sendEmail as xt, createEmailChallenge as y, searchEmails as yt, getEmail as z, verifyAgentSignup as zt };
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as RawContentInline, E as ParsedError, F as WebhookAttachment, T as ParsedDataFailed, d as EmailAuth, f as EmailReceivedEvent, k as RawContentDownloadOnly, l as EmailAddress, u as EmailAnalysis, w as ParsedDataComplete } from "../types-
|
|
2
|
-
import { C as
|
|
1
|
+
import { A as RawContentInline, E as ParsedError, F as WebhookAttachment, T as ParsedDataFailed, d as EmailAuth, f as EmailReceivedEvent, k as RawContentDownloadOnly, l as EmailAddress, u as EmailAnalysis, w as ParsedDataComplete } from "../types-BjnIxPED.js";
|
|
2
|
+
import { C as StandardWebhooksSignResult, N as signWebhookPayload, T as signStandardWebhooksPayload, _ as WEBHOOK_VERSION, j as SignResult } from "../index-BDnY9HH-.js";
|
|
3
3
|
|
|
4
4
|
//#region src/contract/contract.d.ts
|
|
5
5
|
/** Maximum raw email size for inline inclusion (256 KB). */
|
package/dist/contract/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { O as signStandardWebhooksPayload, P as signWebhookPayload, Y as validateEmailReceivedEvent, p as WEBHOOK_VERSION } from "../webhook-CiIPtegj.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
3
|
//#region src/contract/contract.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as WebhookAttachment, d as EmailAuth, f as EmailReceivedEvent, u as EmailAnalysis } from "./types-
|
|
1
|
+
import { F as WebhookAttachment, d as EmailAuth, f as EmailReceivedEvent, u as EmailAnalysis } from "./types-BjnIxPED.js";
|
|
2
2
|
import { ErrorObject } from "ajv";
|
|
3
3
|
|
|
4
4
|
//#region src/webhook/received-email.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as WebhookEvent, P as ValidateEmailAuthResult, d as EmailAuth, f as EmailReceivedEvent } from "./types-
|
|
2
|
-
import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-
|
|
1
|
+
import { I as WebhookEvent, P as ValidateEmailAuthResult, d as EmailAuth, f as EmailReceivedEvent } from "./types-BjnIxPED.js";
|
|
2
|
+
import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-bXUNXAlf.js";
|
|
3
3
|
|
|
4
4
|
//#region src/validation.d.ts
|
|
5
5
|
interface ValidationSuccess<T> {
|
|
@@ -1454,20 +1454,7 @@ declare const WEBHOOK_VERSION = "2025-12-14";
|
|
|
1454
1454
|
* }
|
|
1455
1455
|
* ```
|
|
1456
1456
|
*/
|
|
1457
|
-
declare function parseWebhookEvent(input: unknown): WebhookEvent;
|
|
1458
|
-
/**
|
|
1459
|
-
* Type guard to check if a webhook event is an EmailReceivedEvent.
|
|
1460
|
-
*
|
|
1461
|
-
* @example
|
|
1462
|
-
* ```typescript
|
|
1463
|
-
* const event = parseWebhookEvent(payload);
|
|
1464
|
-
* if (isEmailReceivedEvent(event)) {
|
|
1465
|
-
* // TypeScript knows event is EmailReceivedEvent
|
|
1466
|
-
* console.log(event.email.headers.subject);
|
|
1467
|
-
* }
|
|
1468
|
-
* ```
|
|
1469
|
-
*/
|
|
1470
|
-
declare function isEmailReceivedEvent(event: WebhookEvent | unknown): event is EmailReceivedEvent;
|
|
1457
|
+
declare function parseWebhookEvent(input: unknown, eventType?: string | null): WebhookEvent;
|
|
1471
1458
|
/**
|
|
1472
1459
|
* Request headers in any common format.
|
|
1473
1460
|
*
|
|
@@ -1505,44 +1492,39 @@ interface HandleWebhookOptions {
|
|
|
1505
1492
|
toleranceSeconds?: number;
|
|
1506
1493
|
}
|
|
1507
1494
|
/**
|
|
1508
|
-
*
|
|
1495
|
+
* The header that names the webhook event for ALL event families
|
|
1496
|
+
* (`email.*`, `payment.*`, `interaction.*`). It is the primary discriminator
|
|
1497
|
+
* the parser keys on, because the stored body is sent verbatim with no envelope.
|
|
1498
|
+
*/
|
|
1499
|
+
declare const WEBHOOK_EVENT_HEADER = "X-Webhook-Event";
|
|
1500
|
+
/**
|
|
1501
|
+
* Read the `X-Webhook-Event` header value (case-insensitive). Returns null when
|
|
1502
|
+
* the header is absent.
|
|
1503
|
+
*/
|
|
1504
|
+
declare function getEventHeader(headers: WebhookHeaders): string | null;
|
|
1505
|
+
/**
|
|
1506
|
+
* Verify, then parse any webhook event into a typed value.
|
|
1509
1507
|
*
|
|
1510
|
-
*
|
|
1511
|
-
*
|
|
1512
|
-
*
|
|
1513
|
-
* 3. Validates the payload against the canonical JSON schema
|
|
1514
|
-
* 4. Returns a fully typed EmailReceivedEvent
|
|
1508
|
+
* Unlike {@link handleWebhook}, this returns the full {@link WebhookEvent}
|
|
1509
|
+
* union, so it handles `payment.*` and `interaction.x402.*` events in addition
|
|
1510
|
+
* to `email.*`. The flow is:
|
|
1515
1511
|
*
|
|
1516
|
-
*
|
|
1517
|
-
*
|
|
1518
|
-
*
|
|
1519
|
-
*
|
|
1520
|
-
* @throws {WebhookValidationError} If schema validation fails
|
|
1512
|
+
* 1. Verify the signature over the RAW body (works for every event family).
|
|
1513
|
+
* 2. Parse the JSON body.
|
|
1514
|
+
* 3. Classify on the `X-Webhook-Event` HEADER (the primary discriminator),
|
|
1515
|
+
* returning a typed event for known types and an UnknownEvent for the rest.
|
|
1521
1516
|
*
|
|
1522
1517
|
* @example
|
|
1523
1518
|
* ```typescript
|
|
1524
|
-
*
|
|
1525
|
-
*
|
|
1526
|
-
*
|
|
1527
|
-
*
|
|
1528
|
-
*
|
|
1529
|
-
*
|
|
1530
|
-
* headers: req.headers,
|
|
1531
|
-
* secret: process.env.PRIMITIVE_WEBHOOK_SECRET,
|
|
1532
|
-
* });
|
|
1533
|
-
*
|
|
1534
|
-
* console.log('Email from:', event.email.headers.from);
|
|
1535
|
-
* res.json({ received: true });
|
|
1536
|
-
* } catch (err) {
|
|
1537
|
-
* if (err instanceof PrimitiveWebhookError) {
|
|
1538
|
-
* console.error(`[${err.code}] ${err.message}`);
|
|
1539
|
-
* return res.status(400).json({ error: err.code });
|
|
1540
|
-
* }
|
|
1541
|
-
* throw err;
|
|
1542
|
-
* }
|
|
1543
|
-
* });
|
|
1519
|
+
* const event = handleWebhookEvent({ body, headers, secret });
|
|
1520
|
+
* if (isPaymentSettledEvent(event)) {
|
|
1521
|
+
* // typed PaymentSettledEvent
|
|
1522
|
+
* } else if (isInteractionX402Event(event)) {
|
|
1523
|
+
* // typed interaction.x402.* event
|
|
1524
|
+
* }
|
|
1544
1525
|
* ```
|
|
1545
1526
|
*/
|
|
1527
|
+
declare function handleWebhookEvent(options: HandleWebhookOptions): WebhookEvent;
|
|
1546
1528
|
declare function handleWebhook(options: HandleWebhookOptions): EmailReceivedEvent;
|
|
1547
1529
|
interface ReceiveRequestOptions {
|
|
1548
1530
|
secret: string;
|
|
@@ -1706,4 +1688,4 @@ declare function decodeRawEmail(event: EmailReceivedEvent, options?: DecodeRawEm
|
|
|
1706
1688
|
*/
|
|
1707
1689
|
declare function verifyRawEmailDownload(downloaded: Buffer | ArrayBuffer | Uint8Array, event: EmailReceivedEvent): Buffer;
|
|
1708
1690
|
//#endregion
|
|
1709
|
-
export {
|
|
1691
|
+
export { PRIMITIVE_SIGNATURE_HEADER as A, safeValidateEmailReceivedEvent as B, StandardWebhooksSignResult as C, LEGACY_CONFIRMED_HEADER as D, verifyStandardWebhooksSignature as E, GenerateDownloadTokenOptions as F, VerifyDownloadTokenOptions as I, VerifyDownloadTokenResult as L, VerifyOptions as M, signWebhookPayload as N, LEGACY_SIGNATURE_HEADER as O, verifyWebhookSignature as P, generateDownloadToken as R, STANDARD_WEBHOOK_TIMESTAMP_HEADER as S, signStandardWebhooksPayload as T, validateEmailReceivedEvent as V, WEBHOOK_VERSION as _, WebhookHeaders as a, STANDARD_WEBHOOK_ID_HEADER as b, getDownloadTimeRemaining as c, handleWebhookEvent as d, isDownloadExpired as f, verifyRawEmailDownload as g, receive as h, WEBHOOK_EVENT_HEADER as i, SignResult as j, PRIMITIVE_CONFIRMED_HEADER as k, getEventHeader as l, parseWebhookEvent as m, HandleWebhookOptions as n, confirmedHeaders as o, isRawIncluded as p, ReceiveRequestOptions as r, decodeRawEmail as s, DecodeRawEmailOptions as t, handleWebhook as u, validateEmailAuth as v, StandardWebhooksVerifyOptions as w, STANDARD_WEBHOOK_SIGNATURE_HEADER as x, emailReceivedEventJsonSchema as y, verifyDownloadToken as z };
|