@primitivedotdev/sdk 0.35.0 → 0.35.2
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 +2 -2
- package/dist/address-parser-CA6G7R-h.d.ts +91 -0
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3 -3
- package/dist/{api-2gC06vxj.js → api-COmUIWhS.js} +16 -40
- package/dist/{index-CBt3RDtQ.d.ts → index-Imm1lbB_.d.ts} +12 -33
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-CZx0VGSj.js → operations.generated-CgJWP2sH.js} +10 -10
- package/dist/parser/address.d.ts +2 -0
- package/dist/parser/address.js +2 -0
- package/dist/parser/index.d.ts +1 -90
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -251,7 +251,7 @@ verifyWebhookSignature({
|
|
|
251
251
|
|
|
252
252
|
For most app-code callers, `primitive.receive(...)` from the root import handles both the body extraction and verification in one call (see "Receive and reply in a Next.js route" above). Reach for `verifyWebhookSignature` directly when your framework doesn't expose a standard `Request` and you've already pulled the raw body and header value yourself.
|
|
253
253
|
|
|
254
|
-
For the full reference (response codes, replay protection details), see the API-level "Webhook signing" section in the [OpenAPI spec](https://primitive.dev/
|
|
254
|
+
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).
|
|
255
255
|
|
|
256
256
|
### Other subpath imports
|
|
257
257
|
|
|
@@ -262,7 +262,7 @@ For the full reference (response codes, replay protection details), see the API-
|
|
|
262
262
|
## Going further
|
|
263
263
|
|
|
264
264
|
- [primitive.dev/docs](https://primitive.dev/docs) for product docs (quickstart, webhook payload reference, FAQ).
|
|
265
|
-
- [primitive.dev/
|
|
265
|
+
- [api.primitive.dev/v1/openapi](https://api.primitive.dev/v1/openapi) for the machine-readable OpenAPI spec.
|
|
266
266
|
- `primitive list-operations` for the same spec as a JSON manifest, fetched from the bundled SDK.
|
|
267
267
|
- `primitive describe <command>` for the inlined request/response schema of a single operation, including per-field descriptions.
|
|
268
268
|
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//#region src/parser/address-parser.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* A validated RFC 5322 address. Returned by the strict parser, which
|
|
4
|
+
* deliberately does not expose a display name.
|
|
5
|
+
*
|
|
6
|
+
* `address` is normalized to lowercase. Both the local-part and the
|
|
7
|
+
* domain are lowercased: RFC 5321 §2.4 permits case-sensitive local-
|
|
8
|
+
* parts, but every consumer mailbox in practice treats them as
|
|
9
|
+
* case-insensitive, and a case-sensitive grant key would split
|
|
10
|
+
* `Bob@x.com` from `bob@x.com` into separate rows and defeat the
|
|
11
|
+
* primary-key index on lookup.
|
|
12
|
+
*/
|
|
13
|
+
interface ValidatedAddress {
|
|
14
|
+
address: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A parsed RFC 5322 address with its display name. Returned by the
|
|
18
|
+
* loose parser for display-only call sites.
|
|
19
|
+
*
|
|
20
|
+
* `address` is lowercased on the same rationale as
|
|
21
|
+
* {@link ValidatedAddress}. The display name is preserved as provided
|
|
22
|
+
* (after addressparser's quote / encoded-word handling), or null if the
|
|
23
|
+
* header had no display name. Names from the loose parser are NOT
|
|
24
|
+
* trustworthy for downstream mail building: addressparser's recovery
|
|
25
|
+
* mode can fold trailing tokens or a second bracketed address into the
|
|
26
|
+
* name field. Treat as opaque text, sanitize before re-emitting.
|
|
27
|
+
*/
|
|
28
|
+
interface ParsedAddress {
|
|
29
|
+
address: string;
|
|
30
|
+
name: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Reason a strict From-header parse rejected the input. Stable enum so
|
|
34
|
+
* callers can branch on the reason without parsing message text.
|
|
35
|
+
*/
|
|
36
|
+
type ParseFromHeaderFailureReason = "empty" | "too_long" | "multiple_addresses" | "group_syntax" | "invalid_address";
|
|
37
|
+
type ParseFromHeaderResult = {
|
|
38
|
+
ok: true;
|
|
39
|
+
value: ValidatedAddress;
|
|
40
|
+
} | {
|
|
41
|
+
ok: false;
|
|
42
|
+
reason: ParseFromHeaderFailureReason;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Strict parser for RFC 5322 From-style headers in security-bearing
|
|
46
|
+
* contexts (allowlist gates, permission grants).
|
|
47
|
+
*
|
|
48
|
+
* Rejects, without falling back to a "best guess":
|
|
49
|
+
* - empty / whitespace-only input
|
|
50
|
+
* - inputs longer than RFC 5322's 998-octet line limit
|
|
51
|
+
* - multi-address From (RFC 5322 allows it but it is vanishingly
|
|
52
|
+
* rare and ambiguous as an identity)
|
|
53
|
+
* - group syntax ("Friends: a@b.com, c@d.com;")
|
|
54
|
+
* - any address that fails validator's isEmail check with our chosen
|
|
55
|
+
* options. That covers per-part length limits, dot-atom rules,
|
|
56
|
+
* hostname-label rules, TLD requirement, and other RFC 5321/5322
|
|
57
|
+
* conformance checks.
|
|
58
|
+
*
|
|
59
|
+
* Returns ONLY the validated address, with no display name. Strict
|
|
60
|
+
* exists for gating decisions, where the address is the security-
|
|
61
|
+
* bearing field. Display names from addressparser are not trustworthy
|
|
62
|
+
* here: weird inputs like `Name <user@x.com> <attacker@y.com>` get
|
|
63
|
+
* parsed as a single entry whose `name` silently includes the second
|
|
64
|
+
* address. Surfacing that as a "parsed name" would invite downstream
|
|
65
|
+
* misuse, so we drop it. If you need the name, call
|
|
66
|
+
* {@link parseFromHeaderLoose} alongside (it returns null on failure
|
|
67
|
+
* anyway, so you can still gate on strict's Result).
|
|
68
|
+
*
|
|
69
|
+
* Returns a typed Result so callers can map the failure reason to
|
|
70
|
+
* stable error codes without inspecting message text.
|
|
71
|
+
*/
|
|
72
|
+
declare function parseFromHeader(header: string | null | undefined): ParseFromHeaderResult;
|
|
73
|
+
/**
|
|
74
|
+
* Lenient parser for display-only call sites (inbox card "from",
|
|
75
|
+
* log lines, debugging). Returns the first parseable address with its
|
|
76
|
+
* display name, or null.
|
|
77
|
+
*
|
|
78
|
+
* Differences from {@link parseFromHeader}:
|
|
79
|
+
* - Multi-address From returns the first address instead of rejecting
|
|
80
|
+
* - Group syntax is flattened into its member addresses
|
|
81
|
+
* - Returns null instead of a typed reason on failure
|
|
82
|
+
* - Includes the parsed display name in the result
|
|
83
|
+
*
|
|
84
|
+
* Do not use for permission gates or any decision that grants access.
|
|
85
|
+
* That is what {@link parseFromHeader} is for. Names returned here can
|
|
86
|
+
* include addressparser's recovery output (trailing tokens, garbage
|
|
87
|
+
* before the address); treat as opaque text for display.
|
|
88
|
+
*/
|
|
89
|
+
declare function parseFromHeaderLoose(header: string | null | undefined): ParsedAddress | null;
|
|
90
|
+
//#endregion
|
|
91
|
+
export { parseFromHeader as a, ValidatedAddress as i, ParseFromHeaderResult as n, parseFromHeaderLoose as o, ParsedAddress as r, ParseFromHeaderFailureReason as t };
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as listEmails, $a as ListFunctionSecretsResponse, $c as VerifyAgentSignupInput, $i as GetStorageStatsErrors, $n as DeleteFunctionResponses, $o as SearchEmailsData, $r as FunctionSecretWriteResult, $s as StartCliSignupInput, $t as CliSignupStartResult, A as deleteDomain, Aa as ListEmailsError, Ac as UpdateDomainResponses, Ai as GetFunctionResponses, An as DeleteDomainError, Ao as ReplyToEmailData, Ar as DownloadRawEmailResponse, As as SentEmailStatus, At as verifyDomain, B as getAccount, Ba as ListFiltersData, Bc as UpdateFilterInput, Bi as GetInboxStatusResponses, Bn as DeleteEndpointError, Bo as ResendAgentSignupVerificationResponses, Br as EmailSearchMeta, Bs as StartAgentSignupErrors, Bt as AgentSignupResendResult, C as createPrimitiveApiClient, Ca as ListDeliveriesResponses, Cc as UpdateAccountResponse, Ci as GetEmailErrors, Cl as createConfig, Cn as CreateFunctionSecretError, Co as ReplayDeliveryResponses, Cr as DownloadDomainZoneFileError, Cs as SendPermissionAddress, Ct as updateAccount, D as createFilter, Da as ListDomainsResponse, Dc as UpdateDomainErrors, Di as GetFunctionError, Dn as CreateFunctionSecretResponses, Do as ReplayEmailWebhooksResponse, Dr as DownloadRawEmailData, Ds as SendPermissionYourDomain, Dt as updateFunction, E as createEndpoint, Ea as ListDomainsErrors, Ec as UpdateDomainError, Ei as GetFunctionData, En as CreateFunctionSecretResponse, Eo as ReplayEmailWebhooksErrors, Er as DownloadDomainZoneFileResponses, Es as SendPermissionRule, Et as updateFilter, F as deleteFunctionSecret, Fa as ListEndpointsError, Fc as UpdateEndpointResponse, Fi as GetFunctionTestRunTraceResponses, Fn as DeleteEmailError, Fo as ResendAgentSignupVerificationData, Fr as EmailDetail, Fs as SetFunctionSecretInput, Ft as AddDomainErrors, G as getInboxStatus, Ga as ListFunctionLogsData, Gc as UpdateFunctionErrors, Gi as GetSendPermissionsResponses, Gn as DeleteFilterError, Go as ResendCliSignupVerificationResponse, Gr as Endpoint, Gs as StartCliLoginError, Gt as CliLogoutData, H as getEmail, Ha as ListFiltersErrors, Hc as UpdateFilterResponses, Hi as GetSendPermissionsError, Hn as DeleteEndpointResponse, Ho as ResendCliSignupVerificationError, Hr as EmailStatus, Hs as StartAgentSignupResponse, Ht as AgentSignupVerifyResult, I as discardEmailContent, Ia as ListEndpointsErrors, Ic as UpdateEndpointResponses, Ii as GetInboxStatusData, In as DeleteEmailErrors, Io as ResendAgentSignupVerificationError, Ir as EmailDetailReply, Is as SetFunctionSecretResponse, It as AddDomainInput, J as getStorageStats, Ja as ListFunctionLogsResponse, Jc as UpdateFunctionResponses, Ji as GetSentEmailErrors, Jn as DeleteFilterResponses, Jo as RotateWebhookSecretData, Jr as FunctionDeployStatus, Js as StartCliLoginResponse, Jt as CliLogoutInput, K as getSendPermissions, Ka as ListFunctionLogsError, Kc as UpdateFunctionInput, Ki as GetSentEmailData, Kn as DeleteFilterErrors, Ko as ResendCliSignupVerificationResponses, Kr as ErrorResponse, Ks as StartCliLoginErrors, Kt as CliLogoutError, L as downloadAttachments, La as ListEndpointsResponse, Lc as UpdateFilterData, Li as GetInboxStatusError, Ln as DeleteEmailResponse, Lo as ResendAgentSignupVerificationErrors, Lr as EmailSearchFacetBucket, Ls as SetFunctionSecretResponses, Lt as AddDomainResponse, M as deleteEndpoint, Ma as ListEmailsResponse, Mc as UpdateEndpointError, Mi as GetFunctionTestRunTraceError, Mn as DeleteDomainResponse, Mo as ReplyToEmailErrors, Mr as EmailAddress, Ms as SetFunctionSecretData, Mt as AccountUpdated, N as deleteFilter, Na as ListEmailsResponses, Nc as UpdateEndpointErrors, Ni as GetFunctionTestRunTraceErrors, Nn as DeleteDomainResponses, No as ReplyToEmailResponse, Nr as EmailAttachment, Ns as SetFunctionSecretError, Nt as AddDomainData, O as createFunction, Oa as ListDomainsResponses, Oc as UpdateDomainInput, Oi as GetFunctionErrors, On as Cursor, Oo as ReplayEmailWebhooksResponses, Or as DownloadRawEmailError, Os as SendPermissionsMeta, Ot as verifyAgentSignup, P as deleteFunction, Pa as ListEndpointsData, Pc as UpdateEndpointInput, Pi as GetFunctionTestRunTraceResponse, Pn as DeleteEmailData, Po as ReplyToEmailResponses, Pr as EmailAuth, Ps as SetFunctionSecretErrors, Pt as AddDomainError, Q as listDomains, Qa as ListFunctionSecretsErrors, Qc as VerifyAgentSignupErrors, Qi as GetStorageStatsError, Qn as DeleteFunctionResponse, Qo as RotateWebhookSecretResponses, Qr as FunctionSecretListItem, Qs as StartCliSignupErrors, Qt as CliSignupResendResult, R as downloadDomainZoneFile, Ra as ListEndpointsResponses, Rc as UpdateFilterError, Ri as GetInboxStatusErrors, Rn as DeleteEmailResponses, Ro as ResendAgentSignupVerificationInput, Rr as EmailSearchFacets, Rs as StartAgentSignupData, Rt as AddDomainResponses, S as RequestOptions$1, Sa as ListDeliveriesResponse, Sc as UpdateAccountInput, Si as GetEmailError, Sl as ResponseStyle, Sn as CreateFunctionSecretData, So as ReplayDeliveryResponse, Sr as DownloadDomainZoneFileData, Ss as SendMailResult, St as testFunction, T as cliLogout, Ta as ListDomainsError, Tc as UpdateDomainData, Ti as GetEmailResponses, Tn as CreateFunctionSecretInput, To as ReplayEmailWebhooksError, Tr as DownloadDomainZoneFileResponse, Ts as SendPermissionManagedZone, Tt as updateEndpoint, U as getFunction, Ua as ListFiltersResponse, Uc as UpdateFunctionData, Ui as GetSendPermissionsErrors, Un as DeleteEndpointResponses, Uo as ResendCliSignupVerificationErrors, Ur as EmailSummary, Us as StartAgentSignupResponses, Ut as CliLoginPollResult, V as getConversation, Va as ListFiltersError, Vc as UpdateFilterResponse, Vi as GetSendPermissionsData, Vn as DeleteEndpointErrors, Vo as ResendCliSignupVerificationData, Vr as EmailSearchResult, Vs as StartAgentSignupInput, Vt as AgentSignupStartResult, W as getFunctionTestRunTrace, Wa as ListFiltersResponses, Wc as UpdateFunctionError, Wi as GetSendPermissionsResponse, Wn as DeleteFilterData, Wo as ResendCliSignupVerificationInput, Wr as EmailWebhookStatus, Ws as StartCliLoginData, Wt as CliLoginStartResult, X as getWebhookSecret, Xa as ListFunctionSecretsData, Xc as VerifyAgentSignupData, Xi as GetSentEmailResponses, Xn as DeleteFunctionError, Xo as RotateWebhookSecretErrors, Xr as FunctionListItem, Xs as StartCliSignupData, Xt as CliLogoutResponses, Y as getThread, Ya as ListFunctionLogsResponses, Yc as VerifiedDomain, Yi as GetSentEmailResponse, Yn as DeleteFunctionData, Yo as RotateWebhookSecretError, Yr as FunctionDetail, Ys as StartCliLoginResponses, Yt as CliLogoutResponse, Z as listDeliveries, Za as ListFunctionSecretsError, Zc as VerifyAgentSignupError, Zi as GetStorageStatsData, Zn as DeleteFunctionErrors, Zo as RotateWebhookSecretResponse, Zr as FunctionLogRow, Zs as StartCliSignupError, Zt as CliLogoutResult, _ as DEFAULT_API_BASE_URL_2, _a as InboxStatusRecentEmailSummary, _c as ThreadMessage, _i as GetConversationError, _l as Config, _n as CreateFunctionErrors, _o as PollCliLoginResponse, _r as DownloadAttachmentsData, _s as SendEmailErrors, _t as setFunctionSecret, a as RequestOptions$2, aa as GetThreadResponse, ac as TestEndpointError, ai as FunctionTestRunReply, al as VerifyCliSignupInput, an as CreateEndpointErrors, ao as ListFunctionsResponses, ar as DeliveryStatus, as as SemanticSearchData, at as listSentEmails, b as PrimitiveApiError, ba as ListDeliveriesError, bc as UpdateAccountError, bi as GetConversationResponses, bl as RequestOptions, bn as CreateFunctionResponses, bo as ReplayDeliveryError, br as DownloadAttachmentsResponse, bs as SendMailAttachment, bt as startCliSignup, c as SendInput, ca as GetWebhookSecretError, cc as TestEndpointResponses, ci as FunctionTestRunTrace, cl as VerifyDomainData, cn as CreateEndpointResponses, co as ListSentEmailsErrors, cr as DiscardEmailContentData, cs as SemanticSearchField, ct as replayEmailWebhooks, d as client, da as GetWebhookSecretResponses, dc as TestFunctionErrors, di as GetAccountData, dl as VerifyDomainResponse, dn as CreateFilterErrors, do as PaginationMeta, dr as DiscardEmailContentResponse, ds as SemanticSearchResponses, dt as resendCliSignupVerification, ea as GetStorageStatsResponse, ec as StartCliSignupResponse, ei as FunctionTestRun, el as VerifyAgentSignupResponse, en as CliSignupVerifyResult, eo as ListFunctionSecretsResponses, er as DeleteFunctionSecretData, es as SearchEmailsError, et as listEndpoints, f as createPrimitiveClient, fa as InboxStatus, fc as TestFunctionResponse, fi as GetAccountError, fl as VerifyDomainResponses, fn as CreateFilterInput, fo as ParsedEmailData, fr as DiscardEmailContentResponses, fs as SemanticSearchResult, ft as rotateWebhookSecret, g as DEFAULT_API_BASE_URL_1, ga as InboxStatusNextAction, gc as Thread, gi as GetConversationData, gl as ClientOptions, gn as CreateFunctionError, go as PollCliLoginInput, gr as DomainVerifyResult, gs as SendEmailError, gt as sendEmail, h as verifyWebhookSignature, ha as InboxStatusFunctionSummary, hc as TestResult, hi as GetAccountResponses, hl as Client, hn as CreateFunctionData, ho as PollCliLoginErrors, hr as DomainDnsRecord, hs as SendEmailData, ht as semanticSearch, i as ReplyInput, ia as GetThreadErrors, ic as TestEndpointData, ii as FunctionTestRunOutboundRequest, il as VerifyCliSignupErrors, in as CreateEndpointError, io as ListFunctionsResponse, ir as DeleteFunctionSecretResponses, is as SemanticSearchCoverage, it as listFunctions, j as deleteEmail, ja as ListEmailsErrors, jc as UpdateEndpointData, ji as GetFunctionTestRunTraceData, jn as DeleteDomainErrors, jo as ReplyToEmailError, jr as DownloadRawEmailResponses, js as SentEmailSummary, jt as Account, k as createFunctionSecret, ka as ListEmailsData, kc as UpdateDomainResponse, ki as GetFunctionResponse, kn as DeleteDomainData, ko as ReplayResult, kr as DownloadRawEmailErrors, ks as SentEmailDetail, kt as verifyCliSignup, l as SendResult, la as GetWebhookSecretErrors, lc as TestFunctionData, li as GateDenial, ll as VerifyDomainError, ln as CreateFilterData, lo as ListSentEmailsResponse, lr as DiscardEmailContentError, ls as SemanticSearchInput, lt as replyToEmail, m as VerifyOptions, ma as InboxStatusEndpointSummary, mc as TestInvocationResult, mi as GetAccountResponse, ml as createClient, mn as CreateFilterResponses, mo as PollCliLoginError, mr as Domain, ms as SemanticSearchSnippet, mt as searchEmails, n as PrimitiveClient, na as GetThreadData, nc as StorageStats, ni as FunctionTestRunDeliveryEndpoint, nl as VerifyCliSignupData, nn as ConversationMessage, no as ListFunctionsError, nr as DeleteFunctionSecretErrors, ns as SearchEmailsResponse, nt as listFunctionLogs, o as SemanticSearchResponse, oa as GetThreadResponses, oc as TestEndpointErrors, oi as FunctionTestRunSend, ol as VerifyCliSignupResponse, on as CreateEndpointInput, oo as ListSentEmailsData, or as DeliverySummary, os as SemanticSearchError, ot as pollCliLogin, p as PRIMITIVE_SIGNATURE_HEADER, pa as InboxStatusDomain, pc as TestFunctionResponses, pi as GetAccountErrors, pl as WebhookSecret, pn as CreateFilterResponse, po as PollCliLoginData, pr as DkimSignature, ps as SemanticSearchScoreBreakdown, pt as sdk_gen_d_exports, q as getSentEmail, qa as ListFunctionLogsErrors, qc as UpdateFunctionResponse, qi as GetSentEmailError, qn as DeleteFilterResponse, qo as ResourceId, qr as Filter, qs as StartCliLoginInput, qt as CliLogoutErrors, r as PrimitiveClientOptions, ra as GetThreadError, rc as SuccessEnvelope, ri as FunctionTestRunInboundEmail, rl as VerifyCliSignupError, rn as CreateEndpointData, ro as ListFunctionsErrors, rr as DeleteFunctionSecretResponse, rs as SearchEmailsResponses, rt as listFunctionSecrets, s as SendAttachment, sa as GetWebhookSecretData, sc as TestEndpointResponse, si as FunctionTestRunState, sl as VerifyCliSignupResponses, sn as CreateEndpointResponse, so as ListSentEmailsError, sr as DiscardContentResult, ss as SemanticSearchErrors, st as replayDelivery, t as ForwardInput, ta as GetStorageStatsResponses, tc as StartCliSignupResponses, ti as FunctionTestRunDelivery, tl as VerifyAgentSignupResponses, tn as Conversation, to as ListFunctionsData, tr as DeleteFunctionSecretError, ts as SearchEmailsErrors, tt as listFilters, u as SendThreadInput, ua as GetWebhookSecretResponse, uc as TestFunctionError, ui as GateFix, ul as VerifyDomainErrors, un as CreateFilterError, uo as ListSentEmailsResponses, ur as DiscardEmailContentErrors, us as SemanticSearchMeta, ut as resendAgentSignupVerification, v as PrimitiveApiClient, va as Limit, vc as UnverifiedDomain, vi as GetConversationErrors, vl as CreateClientConfig, vn as CreateFunctionInput, vo as PollCliLoginResponses, vr as DownloadAttachmentsError, vs as SendEmailResponse, vt as startAgentSignup, w as addDomain, wa as ListDomainsData, wc as UpdateAccountResponses, wi as GetEmailResponse, wl as Auth, wn as CreateFunctionSecretErrors, wo as ReplayEmailWebhooksData, wr as DownloadDomainZoneFileErrors, ws as SendPermissionAnyRecipient, wt as updateDomain, x as PrimitiveApiErrorDetails, xa as ListDeliveriesErrors, xc as UpdateAccountErrors, xi as GetEmailData, xl as RequestResult, xn as CreateFunctionResult, xo as ReplayDeliveryErrors, xr as DownloadAttachmentsResponses, xs as SendMailInput, xt as testEndpoint, y as PrimitiveApiClientOptions, ya as ListDeliveriesData, yc as UpdateAccountData, yi as GetConversationResponse, yl as Options, yn as CreateFunctionResponse, yo as ReplayDeliveryData, yr as DownloadAttachmentsErrors, ys as SendEmailResponses, yt as startCliLogin, z as downloadRawEmail, za as ListEnvelope, zc as UpdateFilterErrors, zi as GetInboxStatusResponse, zn as DeleteEndpointData, zo as ResendAgentSignupVerificationResponse, zr as EmailSearchHighlights, zs as StartAgentSignupError, zt as AgentOrgRef } from "../index-CBt3RDtQ.js";
|
|
1
|
+
import { $ as listEndpoints, $a as ListFunctionSecretsResponses, $c as VerifyAgentSignupResponse, $i as GetStorageStatsResponse, $n as DeleteFunctionSecretData, $o as SearchEmailsError, $r as FunctionTestRun, $s as StartCliSignupResponse, $t as CliSignupVerifyResult, A as deleteEmail, Aa as ListEmailsErrors, Ac as UpdateEndpointData, Ai as GetFunctionTestRunTraceData, An as DeleteDomainErrors, Ao as ReplyToEmailError, Ar as DownloadRawEmailResponses, As as SentEmailSummary, At as Account, B as getConversation, Ba as ListFiltersError, Bc as UpdateFilterResponse, Bi as GetSendPermissionsData, Bn as DeleteEndpointErrors, Bo as ResendCliSignupVerificationData, Br as EmailSearchResult, Bs as StartAgentSignupInput, Bt as AgentSignupStartResult, C as addDomain, Ca as ListDomainsData, Cc as UpdateAccountResponses, Ci as GetEmailResponse, Cl as Auth, Cn as CreateFunctionSecretErrors, Co as ReplayEmailWebhooksData, Cr as DownloadDomainZoneFileErrors, Cs as SendPermissionAnyRecipient, Ct as updateDomain, D as createFunction, Da as ListDomainsResponses, Dc as UpdateDomainInput, Di as GetFunctionErrors, Dn as Cursor, Do as ReplayEmailWebhooksResponses, Dr as DownloadRawEmailError, Ds as SendPermissionsMeta, Dt as verifyAgentSignup, E as createFilter, Ea as ListDomainsResponse, Ec as UpdateDomainErrors, Ei as GetFunctionError, En as CreateFunctionSecretResponses, Eo as ReplayEmailWebhooksResponse, Er as DownloadRawEmailData, Es as SendPermissionYourDomain, Et as updateFunction, F as discardEmailContent, Fa as ListEndpointsErrors, Fc as UpdateEndpointResponses, Fi as GetInboxStatusData, Fn as DeleteEmailErrors, Fo as ResendAgentSignupVerificationError, Fr as EmailDetailReply, Fs as SetFunctionSecretResponse, Ft as AddDomainInput, G as getSendPermissions, Ga as ListFunctionLogsError, Gc as UpdateFunctionInput, Gi as GetSentEmailData, Gn as DeleteFilterErrors, Go as ResendCliSignupVerificationResponses, Gr as ErrorResponse, Gs as StartCliLoginErrors, Gt as CliLogoutError, H as getFunction, Ha as ListFiltersResponse, Hc as UpdateFunctionData, Hi as GetSendPermissionsErrors, Hn as DeleteEndpointResponses, Ho as ResendCliSignupVerificationErrors, Hr as EmailSummary, Hs as StartAgentSignupResponses, Ht as CliLoginPollResult, I as downloadAttachments, Ia as ListEndpointsResponse, Ic as UpdateFilterData, Ii as GetInboxStatusError, In as DeleteEmailResponse, Io as ResendAgentSignupVerificationErrors, Ir as EmailSearchFacetBucket, Is as SetFunctionSecretResponses, It as AddDomainResponse, J as getThread, Ja as ListFunctionLogsResponses, Jc as VerifiedDomain, Ji as GetSentEmailResponse, Jn as DeleteFunctionData, Jo as RotateWebhookSecretError, Jr as FunctionDetail, Js as StartCliLoginResponses, Jt as CliLogoutResponse, K as getSentEmail, Ka as ListFunctionLogsErrors, Kc as UpdateFunctionResponse, Ki as GetSentEmailError, Kn as DeleteFilterResponse, Ko as ResourceId, Kr as Filter, Ks as StartCliLoginInput, Kt as CliLogoutErrors, L as downloadDomainZoneFile, La as ListEndpointsResponses, Lc as UpdateFilterError, Li as GetInboxStatusErrors, Ln as DeleteEmailResponses, Lo as ResendAgentSignupVerificationInput, Lr as EmailSearchFacets, Ls as StartAgentSignupData, Lt as AddDomainResponses, M as deleteFilter, Ma as ListEmailsResponses, Mc as UpdateEndpointErrors, Mi as GetFunctionTestRunTraceErrors, Mn as DeleteDomainResponses, Mo as ReplyToEmailResponse, Mr as EmailAttachment, Ms as SetFunctionSecretError, Mt as AddDomainData, N as deleteFunction, Na as ListEndpointsData, Nc as UpdateEndpointInput, Ni as GetFunctionTestRunTraceResponse, Nn as DeleteEmailData, No as ReplyToEmailResponses, Nr as EmailAuth, Ns as SetFunctionSecretErrors, Nt as AddDomainError, O as createFunctionSecret, Oa as ListEmailsData, Oc as UpdateDomainResponse, Oi as GetFunctionResponse, On as DeleteDomainData, Oo as ReplayResult, Or as DownloadRawEmailErrors, Os as SentEmailDetail, Ot as verifyCliSignup, P as deleteFunctionSecret, Pa as ListEndpointsError, Pc as UpdateEndpointResponse, Pi as GetFunctionTestRunTraceResponses, Pn as DeleteEmailError, Po as ResendAgentSignupVerificationData, Pr as EmailDetail, Ps as SetFunctionSecretInput, Pt as AddDomainErrors, Q as listEmails, Qa as ListFunctionSecretsResponse, Qc as VerifyAgentSignupInput, Qi as GetStorageStatsErrors, Qn as DeleteFunctionResponses, Qo as SearchEmailsData, Qr as FunctionSecretWriteResult, Qs as StartCliSignupInput, Qt as CliSignupStartResult, R as downloadRawEmail, Ra as ListEnvelope, Rc as UpdateFilterErrors, Ri as GetInboxStatusResponse, Rn as DeleteEndpointData, Ro as ResendAgentSignupVerificationResponse, Rr as EmailSearchHighlights, Rs as StartAgentSignupError, Rt as AgentOrgRef, S as createPrimitiveApiClient, Sa as ListDeliveriesResponses, Sc as UpdateAccountResponse, Si as GetEmailErrors, Sl as createConfig, Sn as CreateFunctionSecretError, So as ReplayDeliveryResponses, Sr as DownloadDomainZoneFileError, Ss as SendPermissionAddress, St as updateAccount, T as createEndpoint, Ta as ListDomainsErrors, Tc as UpdateDomainError, Ti as GetFunctionData, Tn as CreateFunctionSecretResponse, To as ReplayEmailWebhooksErrors, Tr as DownloadDomainZoneFileResponses, Ts as SendPermissionRule, Tt as updateFilter, U as getFunctionTestRunTrace, Ua as ListFiltersResponses, Uc as UpdateFunctionError, Ui as GetSendPermissionsResponse, Un as DeleteFilterData, Uo as ResendCliSignupVerificationInput, Ur as EmailWebhookStatus, Us as StartCliLoginData, Ut as CliLoginStartResult, V as getEmail, Va as ListFiltersErrors, Vc as UpdateFilterResponses, Vi as GetSendPermissionsError, Vn as DeleteEndpointResponse, Vo as ResendCliSignupVerificationError, Vr as EmailStatus, Vs as StartAgentSignupResponse, Vt as AgentSignupVerifyResult, W as getInboxStatus, Wa as ListFunctionLogsData, Wc as UpdateFunctionErrors, Wi as GetSendPermissionsResponses, Wn as DeleteFilterError, Wo as ResendCliSignupVerificationResponse, Wr as Endpoint, Ws as StartCliLoginError, Wt as CliLogoutData, X as listDeliveries, Xa as ListFunctionSecretsError, Xc as VerifyAgentSignupError, Xi as GetStorageStatsData, Xn as DeleteFunctionErrors, Xo as RotateWebhookSecretResponse, Xr as FunctionLogRow, Xs as StartCliSignupError, Xt as CliLogoutResult, Y as getWebhookSecret, Ya as ListFunctionSecretsData, Yc as VerifyAgentSignupData, Yi as GetSentEmailResponses, Yn as DeleteFunctionError, Yo as RotateWebhookSecretErrors, Yr as FunctionListItem, Ys as StartCliSignupData, Yt as CliLogoutResponses, Z as listDomains, Za as ListFunctionSecretsErrors, Zc as VerifyAgentSignupErrors, Zi as GetStorageStatsError, Zn as DeleteFunctionResponse, Zo as RotateWebhookSecretResponses, Zr as FunctionSecretListItem, Zs as StartCliSignupErrors, Zt as CliSignupResendResult, _ as PrimitiveApiClient, _a as Limit, _c as UnverifiedDomain, _i as GetConversationErrors, _l as CreateClientConfig, _n as CreateFunctionInput, _o as PollCliLoginResponses, _r as DownloadAttachmentsError, _s as SendEmailResponse, _t as startAgentSignup, a as RequestOptions$2, aa as GetThreadResponses, ac as TestEndpointErrors, ai as FunctionTestRunSend, al as VerifyCliSignupResponse, an as CreateEndpointInput, ao as ListSentEmailsData, ar as DeliverySummary, as as SemanticSearchError, at as pollCliLogin, b as PrimitiveApiErrorDetails, ba as ListDeliveriesErrors, bc as UpdateAccountErrors, bi as GetEmailData, bl as RequestResult, bn as CreateFunctionResult, bo as ReplayDeliveryErrors, br as DownloadAttachmentsResponses, bs as SendMailInput, bt as testEndpoint, c as SendInput, ca as GetWebhookSecretErrors, cc as TestFunctionData, ci as GateDenial, cl as VerifyDomainError, cn as CreateFilterData, co as ListSentEmailsResponse, cr as DiscardEmailContentError, cs as SemanticSearchInput, ct as replyToEmail, d as client, da as InboxStatus, dc as TestFunctionResponse, di as GetAccountError, dl as VerifyDomainResponses, dn as CreateFilterInput, do as ParsedEmailData, dr as DiscardEmailContentResponses, ds as SemanticSearchResult, dt as rotateWebhookSecret, ea as GetStorageStatsResponses, ec as StartCliSignupResponses, ei as FunctionTestRunDelivery, el as VerifyAgentSignupResponses, en as Conversation, eo as ListFunctionsData, er as DeleteFunctionSecretError, es as SearchEmailsErrors, et as listFilters, f as createPrimitiveClient, fa as InboxStatusDomain, fc as TestFunctionResponses, fi as GetAccountErrors, fl as WebhookSecret, fn as CreateFilterResponse, fo as PollCliLoginData, fr as DkimSignature, fs as SemanticSearchScoreBreakdown, ft as sdk_gen_d_exports, g as DEFAULT_API_BASE_URL, ga as InboxStatusRecentEmailSummary, gc as ThreadMessage, gi as GetConversationError, gl as Config, gn as CreateFunctionErrors, go as PollCliLoginResponse, gr as DownloadAttachmentsData, gs as SendEmailErrors, gt as setFunctionSecret, h as verifyWebhookSignature, ha as InboxStatusNextAction, hc as Thread, hi as GetConversationData, hl as ClientOptions, hn as CreateFunctionError, ho as PollCliLoginInput, hr as DomainVerifyResult, hs as SendEmailError, ht as sendEmail, i as ReplyInput, ia as GetThreadResponse, ic as TestEndpointError, ii as FunctionTestRunReply, il as VerifyCliSignupInput, in as CreateEndpointErrors, io as ListFunctionsResponses, ir as DeliveryStatus, is as SemanticSearchData, it as listSentEmails, j as deleteEndpoint, ja as ListEmailsResponse, jc as UpdateEndpointError, ji as GetFunctionTestRunTraceError, jn as DeleteDomainResponse, jo as ReplyToEmailErrors, jr as EmailAddress, js as SetFunctionSecretData, jt as AccountUpdated, k as deleteDomain, ka as ListEmailsError, kc as UpdateDomainResponses, ki as GetFunctionResponses, kn as DeleteDomainError, ko as ReplyToEmailData, kr as DownloadRawEmailResponse, ks as SentEmailStatus, kt as verifyDomain, l as SendResult, la as GetWebhookSecretResponse, lc as TestFunctionError, li as GateFix, ll as VerifyDomainErrors, ln as CreateFilterError, lo as ListSentEmailsResponses, lr as DiscardEmailContentErrors, ls as SemanticSearchMeta, lt as resendAgentSignupVerification, m as VerifyOptions, ma as InboxStatusFunctionSummary, mc as TestResult, mi as GetAccountResponses, ml as Client, mn as CreateFunctionData, mo as PollCliLoginErrors, mr as DomainDnsRecord, ms as SendEmailData, mt as semanticSearch, n as PrimitiveClient, na as GetThreadError, nc as SuccessEnvelope, ni as FunctionTestRunInboundEmail, nl as VerifyCliSignupError, nn as CreateEndpointData, no as ListFunctionsErrors, nr as DeleteFunctionSecretResponse, ns as SearchEmailsResponses, nt as listFunctionSecrets, o as SemanticSearchResponse, oa as GetWebhookSecretData, oc as TestEndpointResponse, oi as FunctionTestRunState, ol as VerifyCliSignupResponses, on as CreateEndpointResponse, oo as ListSentEmailsError, or as DiscardContentResult, os as SemanticSearchErrors, ot as replayDelivery, p as PRIMITIVE_SIGNATURE_HEADER, pa as InboxStatusEndpointSummary, pc as TestInvocationResult, pi as GetAccountResponse, pl as createClient, pn as CreateFilterResponses, po as PollCliLoginError, pr as Domain, ps as SemanticSearchSnippet, pt as searchEmails, q as getStorageStats, qa as ListFunctionLogsResponse, qc as UpdateFunctionResponses, qi as GetSentEmailErrors, qn as DeleteFilterResponses, qo as RotateWebhookSecretData, qr as FunctionDeployStatus, qs as StartCliLoginResponse, qt as CliLogoutInput, r as PrimitiveClientOptions, ra as GetThreadErrors, rc as TestEndpointData, ri as FunctionTestRunOutboundRequest, rl as VerifyCliSignupErrors, rn as CreateEndpointError, ro as ListFunctionsResponse, rr as DeleteFunctionSecretResponses, rs as SemanticSearchCoverage, rt as listFunctions, s as SendAttachment, sa as GetWebhookSecretError, sc as TestEndpointResponses, si as FunctionTestRunTrace, sl as VerifyDomainData, sn as CreateEndpointResponses, so as ListSentEmailsErrors, sr as DiscardEmailContentData, ss as SemanticSearchField, st as replayEmailWebhooks, t as ForwardInput, ta as GetThreadData, tc as StorageStats, ti as FunctionTestRunDeliveryEndpoint, tl as VerifyCliSignupData, tn as ConversationMessage, to as ListFunctionsError, tr as DeleteFunctionSecretErrors, ts as SearchEmailsResponse, tt as listFunctionLogs, u as SendThreadInput, ua as GetWebhookSecretResponses, uc as TestFunctionErrors, ui as GetAccountData, ul as VerifyDomainResponse, un as CreateFilterErrors, uo as PaginationMeta, ur as DiscardEmailContentResponse, us as SemanticSearchResponses, ut as resendCliSignupVerification, v as PrimitiveApiClientOptions, va as ListDeliveriesData, vc as UpdateAccountData, vi as GetConversationResponse, vl as Options, vn as CreateFunctionResponse, vo as ReplayDeliveryData, vr as DownloadAttachmentsErrors, vs as SendEmailResponses, vt as startCliLogin, w as cliLogout, wa as ListDomainsError, wc as UpdateDomainData, wi as GetEmailResponses, wn as CreateFunctionSecretInput, wo as ReplayEmailWebhooksError, wr as DownloadDomainZoneFileResponse, ws as SendPermissionManagedZone, wt as updateEndpoint, x as RequestOptions$1, xa as ListDeliveriesResponse, xc as UpdateAccountInput, xi as GetEmailError, xl as ResponseStyle, xn as CreateFunctionSecretData, xo as ReplayDeliveryResponse, xr as DownloadDomainZoneFileData, xs as SendMailResult, xt as testFunction, y as PrimitiveApiError, ya as ListDeliveriesError, yc as UpdateAccountError, yi as GetConversationResponses, yl as RequestOptions, yn as CreateFunctionResponses, yo as ReplayDeliveryError, yr as DownloadAttachmentsResponse, ys as SendMailAttachment, yt as startCliSignup, z as getAccount, za as ListFiltersData, zc as UpdateFilterInput, zi as GetInboxStatusResponses, zn as DeleteEndpointError, zo as ResendAgentSignupVerificationResponses, zr as EmailSearchMeta, zs as StartAgentSignupErrors, zt as AgentSignupResendResult } from "../index-Imm1lbB_.js";
|
|
2
2
|
import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-BAniFZK9.js";
|
|
3
3
|
import { u as EmailReceivedEvent } from "../types-yNU-Oiea.js";
|
|
4
4
|
import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-7E9sW9eX.js";
|
|
5
|
-
export { Account, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentOrgRef, 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, 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, Cursor, DEFAULT_API_BASE_URL_1, DEFAULT_API_BASE_URL_2, 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, 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, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, Limit, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, Options, Options as PrimitiveGeneratedApiOptions, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, PollCliLoginData, PollCliLoginError, PollCliLoginErrors, PollCliLoginInput, PollCliLoginResponse, PollCliLoginResponses, PrimitiveApiClient, PrimitiveApiClientOptions, PrimitiveApiError, PrimitiveApiErrorDetails, PrimitiveClient, PrimitiveClientOptions, RequestOptions as PrimitiveGeneratedApiRequestOptions, RequestResult as PrimitiveGeneratedApiRequestResult, RequestResult, PrimitiveOperationManifest, PrimitiveParameterManifest, RequestOptions$1 as PrimitiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, 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, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, 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, UnverifiedDomain, UpdateAccountData, UpdateAccountError, UpdateAccountErrors, UpdateAccountInput, UpdateAccountResponse, UpdateAccountResponses, UpdateDomainData, UpdateDomainError, UpdateDomainErrors, UpdateDomainInput, UpdateDomainResponse, UpdateDomainResponses, UpdateEndpointData, UpdateEndpointError, UpdateEndpointErrors, UpdateEndpointInput, UpdateEndpointResponse, UpdateEndpointResponses, UpdateFilterData, UpdateFilterError, UpdateFilterErrors, UpdateFilterInput, UpdateFilterResponse, UpdateFilterResponses, UpdateFunctionData, UpdateFunctionError, UpdateFunctionErrors, UpdateFunctionInput, UpdateFunctionResponse, UpdateFunctionResponses, VerifiedDomain, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, addDomain, cliLogout, client, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionTestRunTrace, getInboxStatus, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
5
|
+
export { Account, AccountUpdated, AddDomainData, AddDomainError, AddDomainErrors, AddDomainInput, AddDomainResponse, AddDomainResponses, AgentOrgRef, 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, 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, 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, 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, FunctionSecretListItem, FunctionSecretWriteResult, FunctionTestRun, FunctionTestRunDelivery, FunctionTestRunDeliveryEndpoint, FunctionTestRunInboundEmail, FunctionTestRunOutboundRequest, FunctionTestRunReply, FunctionTestRunSend, FunctionTestRunState, FunctionTestRunTrace, GateDenial, GateFix, GetAccountData, GetAccountError, GetAccountErrors, GetAccountResponse, GetAccountResponses, GetConversationData, GetConversationError, GetConversationErrors, GetConversationResponse, GetConversationResponses, GetEmailData, GetEmailError, GetEmailErrors, GetEmailResponse, GetEmailResponses, GetFunctionData, GetFunctionError, GetFunctionErrors, GetFunctionResponse, GetFunctionResponses, GetFunctionTestRunTraceData, GetFunctionTestRunTraceError, GetFunctionTestRunTraceErrors, GetFunctionTestRunTraceResponse, GetFunctionTestRunTraceResponses, GetInboxStatusData, GetInboxStatusError, GetInboxStatusErrors, GetInboxStatusResponse, GetInboxStatusResponses, GetSendPermissionsData, GetSendPermissionsError, GetSendPermissionsErrors, GetSendPermissionsResponse, GetSendPermissionsResponses, GetSentEmailData, GetSentEmailError, GetSentEmailErrors, GetSentEmailResponse, GetSentEmailResponses, GetStorageStatsData, GetStorageStatsError, GetStorageStatsErrors, GetStorageStatsResponse, GetStorageStatsResponses, GetThreadData, GetThreadError, GetThreadErrors, GetThreadResponse, GetThreadResponses, GetWebhookSecretData, GetWebhookSecretError, GetWebhookSecretErrors, GetWebhookSecretResponse, GetWebhookSecretResponses, InboxStatus, InboxStatusDomain, InboxStatusEndpointSummary, InboxStatusFunctionSummary, InboxStatusNextAction, InboxStatusRecentEmailSummary, Limit, ListDeliveriesData, ListDeliveriesError, ListDeliveriesErrors, ListDeliveriesResponse, ListDeliveriesResponses, ListDomainsData, ListDomainsError, ListDomainsErrors, ListDomainsResponse, ListDomainsResponses, ListEmailsData, ListEmailsError, ListEmailsErrors, ListEmailsResponse, ListEmailsResponses, ListEndpointsData, ListEndpointsError, ListEndpointsErrors, ListEndpointsResponse, ListEndpointsResponses, ListEnvelope, ListFiltersData, ListFiltersError, ListFiltersErrors, ListFiltersResponse, ListFiltersResponses, ListFunctionLogsData, ListFunctionLogsError, ListFunctionLogsErrors, ListFunctionLogsResponse, ListFunctionLogsResponses, ListFunctionSecretsData, ListFunctionSecretsError, ListFunctionSecretsErrors, ListFunctionSecretsResponse, ListFunctionSecretsResponses, ListFunctionsData, ListFunctionsError, ListFunctionsErrors, ListFunctionsResponse, ListFunctionsResponses, ListSentEmailsData, ListSentEmailsError, ListSentEmailsErrors, ListSentEmailsResponse, ListSentEmailsResponses, Options, Options as PrimitiveGeneratedApiOptions, PRIMITIVE_SIGNATURE_HEADER, PaginationMeta, ParsedEmailData, PollCliLoginData, PollCliLoginError, PollCliLoginErrors, PollCliLoginInput, PollCliLoginResponse, PollCliLoginResponses, PrimitiveApiClient, PrimitiveApiClientOptions, PrimitiveApiError, PrimitiveApiErrorDetails, PrimitiveClient, PrimitiveClientOptions, RequestOptions as PrimitiveGeneratedApiRequestOptions, RequestResult as PrimitiveGeneratedApiRequestResult, RequestResult, PrimitiveOperationManifest, PrimitiveParameterManifest, RequestOptions$1 as PrimitiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, ReplayDeliveryData, ReplayDeliveryError, ReplayDeliveryErrors, ReplayDeliveryResponse, ReplayDeliveryResponses, ReplayEmailWebhooksData, ReplayEmailWebhooksError, ReplayEmailWebhooksErrors, ReplayEmailWebhooksResponse, ReplayEmailWebhooksResponses, ReplayResult, ReplyInput, ReplyToEmailData, ReplyToEmailError, ReplyToEmailErrors, ReplyToEmailResponse, ReplyToEmailResponses, RequestOptions$2 as RequestOptions, ResendAgentSignupVerificationData, ResendAgentSignupVerificationError, ResendAgentSignupVerificationErrors, ResendAgentSignupVerificationInput, ResendAgentSignupVerificationResponse, ResendAgentSignupVerificationResponses, ResendCliSignupVerificationData, ResendCliSignupVerificationError, ResendCliSignupVerificationErrors, ResendCliSignupVerificationInput, ResendCliSignupVerificationResponse, ResendCliSignupVerificationResponses, ResourceId, ResponseStyle, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, 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, SetFunctionSecretData, SetFunctionSecretError, SetFunctionSecretErrors, SetFunctionSecretInput, SetFunctionSecretResponse, SetFunctionSecretResponses, 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, UnverifiedDomain, UpdateAccountData, UpdateAccountError, UpdateAccountErrors, UpdateAccountInput, UpdateAccountResponse, UpdateAccountResponses, UpdateDomainData, UpdateDomainError, UpdateDomainErrors, UpdateDomainInput, UpdateDomainResponse, UpdateDomainResponses, UpdateEndpointData, UpdateEndpointError, UpdateEndpointErrors, UpdateEndpointInput, UpdateEndpointResponse, UpdateEndpointResponses, UpdateFilterData, UpdateFilterError, UpdateFilterErrors, UpdateFilterInput, UpdateFilterResponse, UpdateFilterResponses, UpdateFunctionData, UpdateFunctionError, UpdateFunctionErrors, UpdateFunctionInput, UpdateFunctionResponse, UpdateFunctionResponses, VerifiedDomain, VerifyAgentSignupData, VerifyAgentSignupError, VerifyAgentSignupErrors, VerifyAgentSignupInput, VerifyAgentSignupResponse, VerifyAgentSignupResponses, VerifyCliSignupData, VerifyCliSignupError, VerifyCliSignupErrors, VerifyCliSignupInput, VerifyCliSignupResponse, VerifyCliSignupResponses, VerifyDomainData, VerifyDomainError, VerifyDomainErrors, VerifyDomainResponse, VerifyDomainResponses, VerifyOptions as VerifyWebhookSignatureOptions, WebhookSecret, WebhookVerificationError, WebhookVerificationErrorCode, addDomain, cliLogout, client, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionTestRunTrace, getInboxStatus, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_d_exports as operations, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, 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 sdk_gen_exports, A as getFunctionTestRunTrace, B as listEndpoints, C as downloadAttachments, D as getConversation, E as getAccount, F as getThread, G as listSentEmails, H as listFunctionLogs, I as getWebhookSecret, J as replayEmailWebhooks, K as pollCliLogin, L as listDeliveries, M as getSendPermissions, N as getSentEmail, O as getEmail, P as getStorageStats, Q as rotateWebhookSecret, R as listDomains, S as discardEmailContent, T as downloadRawEmail, U as listFunctionSecrets, V as listFilters, W as listFunctions, X as resendAgentSignupVerification, Y as replyToEmail, Z as resendCliSignupVerification, _ as deleteEmail, _t as createClient, a as verifyWebhookSignature, at as startCliLogin, b as deleteFunction, c as PrimitiveApiError, ct as testFunction, d as cliLogout, dt as updateEndpoint, et as searchEmails, f as createEndpoint, ft as updateFilter, g as deleteDomain, gt as verifyDomain, h as createFunctionSecret, ht as verifyCliSignup, i as PRIMITIVE_SIGNATURE_HEADER, it as startAgentSignup, j as getInboxStatus, k as getFunction, l as createPrimitiveApiClient, lt as updateAccount, m as createFunction, mt as verifyAgentSignup, n as client, nt as sendEmail, o as DEFAULT_API_BASE_URL, ot as startCliSignup, p as createFilter, pt as updateFunction, q as replayDelivery, r as createPrimitiveClient, rt as setFunctionSecret, s as PrimitiveApiClient, st as testEndpoint, t as PrimitiveClient, tt as semanticSearch, u as addDomain, ut as updateDomain, v as deleteEndpoint, vt as createConfig, w as downloadDomainZoneFile, x as deleteFunctionSecret, y as deleteFilter, z as listEmails } from "../api-COmUIWhS.js";
|
|
2
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-CgJWP2sH.js";
|
|
3
3
|
import { c as WebhookVerificationError, f as normalizeReceivedEmail } from "../errors-BPJGp9I6.js";
|
|
4
|
-
export {
|
|
4
|
+
export { DEFAULT_API_BASE_URL, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionTestRunTrace, getInboxStatus, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
|
|
@@ -609,7 +609,7 @@ const createClient = (config = {}) => {
|
|
|
609
609
|
};
|
|
610
610
|
//#endregion
|
|
611
611
|
//#region ../packages/api-core/src/api/client.gen.ts
|
|
612
|
-
const client$1 = createClient(createConfig({ baseUrl: "https://
|
|
612
|
+
const client$1 = createClient(createConfig({ baseUrl: "https://api.primitive.dev/v1" }));
|
|
613
613
|
//#endregion
|
|
614
614
|
//#region ../packages/api-core/src/api/sdk.gen.ts
|
|
615
615
|
var sdk_gen_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -1523,14 +1523,13 @@ const getSendPermissions = (options) => (options?.client ?? client$1).get({
|
|
|
1523
1523
|
* the request returns once the relay accepts the message for delivery.
|
|
1524
1524
|
* Set `wait: true` to wait for the first downstream SMTP delivery outcome.
|
|
1525
1525
|
*
|
|
1526
|
-
* **Host routing.** /send-mail is served by the
|
|
1527
|
-
*
|
|
1528
|
-
*
|
|
1529
|
-
*
|
|
1530
|
-
*
|
|
1531
|
-
*
|
|
1532
|
-
*
|
|
1533
|
-
* route /send-mail to the attachments host automatically.
|
|
1526
|
+
* **Host routing.** /send-mail is served by the canonical API host
|
|
1527
|
+
* (`https://api.primitive.dev/v1`) so the request body can carry
|
|
1528
|
+
* inline attachments up to ~30 MiB raw. The legacy dashboard
|
|
1529
|
+
* compatibility host (`https://www.primitive.dev/api/v1`) also accepts
|
|
1530
|
+
* /send-mail, but Vercel request body limits apply before proxying.
|
|
1531
|
+
* The typed SDKs route /send-mail to the canonical API host
|
|
1532
|
+
* automatically.
|
|
1534
1533
|
*
|
|
1535
1534
|
*/
|
|
1536
1535
|
const sendEmail = (options) => (options.client ?? client$1).post({
|
|
@@ -1959,8 +1958,7 @@ const listFunctionLogs = (options) => (options.client ?? client$1).get({
|
|
|
1959
1958
|
* `.forward`) still lives in sdk-node because it needs the
|
|
1960
1959
|
* `ReceivedEmail` type from the webhook parsing surface.
|
|
1961
1960
|
*/
|
|
1962
|
-
const
|
|
1963
|
-
const DEFAULT_API_BASE_URL_2 = "https://api.primitive.dev/v1";
|
|
1961
|
+
const DEFAULT_API_BASE_URL = "https://api.primitive.dev/v1";
|
|
1964
1962
|
function createDefaultAuth(apiKey) {
|
|
1965
1963
|
return (security) => {
|
|
1966
1964
|
if (security.type === "http" && security.scheme === "bearer") return apiKey;
|
|
@@ -1987,36 +1985,14 @@ var PrimitiveApiError = class extends Error {
|
|
|
1987
1985
|
}
|
|
1988
1986
|
};
|
|
1989
1987
|
var PrimitiveApiClient = class {
|
|
1990
|
-
/**
|
|
1991
|
-
* Generated client targeting the primary API host (apiBaseUrl1). Use
|
|
1992
|
-
* this when passing `client: ...` to a generated operation function
|
|
1993
|
-
* for every endpoint EXCEPT attachment-capable message sends. The
|
|
1994
|
-
* hand-written PrimitiveClient.send / .reply / .forward methods on
|
|
1995
|
-
* the subclass route those sends to the host-2 client internally.
|
|
1996
|
-
*/
|
|
1997
1988
|
client;
|
|
1998
|
-
/**
|
|
1999
|
-
* @internal Generated client targeting the attachments-supporting
|
|
2000
|
-
* send host (apiBaseUrl2). Used by PrimitiveClient.send() and
|
|
2001
|
-
* PrimitiveClient.reply() under the hood. Exposed for the CLI's
|
|
2002
|
-
* hand-rolled send/reply commands, which call generated operations
|
|
2003
|
-
* directly; not part of the publicly-documented SDK surface.
|
|
2004
|
-
* Customer code should call .send() / .reply() on the subclass
|
|
2005
|
-
* instead.
|
|
2006
|
-
*/
|
|
2007
|
-
_sendClient;
|
|
2008
1989
|
constructor(options = {}) {
|
|
2009
|
-
const { apiKey, auth,
|
|
1990
|
+
const { apiKey, auth, apiBaseUrl = DEFAULT_API_BASE_URL, ...config } = options;
|
|
2010
1991
|
const resolvedAuth = auth ?? createDefaultAuth(apiKey);
|
|
2011
1992
|
this.client = createClient(createConfig({
|
|
2012
1993
|
...config,
|
|
2013
1994
|
auth: resolvedAuth,
|
|
2014
|
-
baseUrl:
|
|
2015
|
-
}));
|
|
2016
|
-
this._sendClient = createClient(createConfig({
|
|
2017
|
-
...config,
|
|
2018
|
-
auth: resolvedAuth,
|
|
2019
|
-
baseUrl: apiBaseUrl2
|
|
1995
|
+
baseUrl: apiBaseUrl
|
|
2020
1996
|
}));
|
|
2021
1997
|
}
|
|
2022
1998
|
getConfig() {
|
|
@@ -2295,14 +2271,14 @@ var PrimitiveClient = class extends PrimitiveApiClient {
|
|
|
2295
2271
|
...input.waitTimeoutMs !== void 0 ? { wait_timeout_ms: input.waitTimeoutMs } : {}
|
|
2296
2272
|
},
|
|
2297
2273
|
...resolveRequestOptions(options),
|
|
2298
|
-
client: this.
|
|
2274
|
+
client: this.client,
|
|
2299
2275
|
responseStyle: "fields"
|
|
2300
2276
|
}));
|
|
2301
2277
|
}
|
|
2302
2278
|
/**
|
|
2303
2279
|
* Semantic / hybrid / keyword search across received and sent mail.
|
|
2304
2280
|
*
|
|
2305
|
-
* `POST /v1/semantic-search
|
|
2281
|
+
* `POST /v1/semantic-search`. Returns ranked rows
|
|
2306
2282
|
* with matched fields, match-centered excerpts, and an additive
|
|
2307
2283
|
* `score_breakdown`. See `SemanticSearchInput` for request fields and
|
|
2308
2284
|
* `SemanticSearchResult` for the row shape.
|
|
@@ -2314,7 +2290,7 @@ var PrimitiveClient = class extends PrimitiveApiClient {
|
|
|
2314
2290
|
return unwrapSemanticSearchResult(await semanticSearch({
|
|
2315
2291
|
body: input,
|
|
2316
2292
|
...resolveRequestOptions(options),
|
|
2317
|
-
client: this.
|
|
2293
|
+
client: this.client,
|
|
2318
2294
|
responseStyle: "fields"
|
|
2319
2295
|
}));
|
|
2320
2296
|
}
|
|
@@ -2346,7 +2322,7 @@ var PrimitiveClient = class extends PrimitiveApiClient {
|
|
|
2346
2322
|
},
|
|
2347
2323
|
path: { id: email.id },
|
|
2348
2324
|
...resolveRequestOptions(options),
|
|
2349
|
-
client: this.
|
|
2325
|
+
client: this.client,
|
|
2350
2326
|
responseStyle: "fields"
|
|
2351
2327
|
}));
|
|
2352
2328
|
}
|
|
@@ -2447,4 +2423,4 @@ function client(options = {}) {
|
|
|
2447
2423
|
return new PrimitiveClient(options);
|
|
2448
2424
|
}
|
|
2449
2425
|
//#endregion
|
|
2450
|
-
export {
|
|
2426
|
+
export { sdk_gen_exports as $, getFunctionTestRunTrace as A, listEndpoints as B, downloadAttachments as C, getConversation as D, getAccount as E, getThread as F, listSentEmails as G, listFunctionLogs as H, getWebhookSecret as I, replayEmailWebhooks as J, pollCliLogin as K, listDeliveries as L, getSendPermissions as M, getSentEmail as N, getEmail as O, getStorageStats as P, rotateWebhookSecret as Q, listDomains as R, discardEmailContent as S, downloadRawEmail as T, listFunctionSecrets as U, listFilters as V, listFunctions as W, resendAgentSignupVerification as X, replyToEmail as Y, resendCliSignupVerification as Z, deleteEmail as _, createClient as _t, verifyWebhookSignature as a, startCliLogin as at, deleteFunction as b, PrimitiveApiError as c, testFunction as ct, cliLogout as d, updateEndpoint as dt, searchEmails as et, createEndpoint as f, updateFilter as ft, deleteDomain as g, verifyDomain as gt, createFunctionSecret as h, verifyCliSignup as ht, PRIMITIVE_SIGNATURE_HEADER as i, startAgentSignup as it, getInboxStatus as j, getFunction as k, createPrimitiveApiClient as l, updateAccount as lt, createFunction as m, verifyAgentSignup as mt, client as n, sendEmail as nt, DEFAULT_API_BASE_URL as o, startCliSignup as ot, createFilter as p, updateFunction as pt, replayDelivery as q, createPrimitiveClient as r, setFunctionSecret as rt, PrimitiveApiClient as s, testEndpoint as st, PrimitiveClient as t, semanticSearch as tt, addDomain as u, updateDomain as ut, deleteEndpoint as v, createConfig as vt, downloadDomainZoneFile as w, deleteFunctionSecret as x, deleteFilter as y, listEmails as z };
|
|
@@ -5645,14 +5645,13 @@ declare const getSendPermissions: <ThrowOnError extends boolean = false>(options
|
|
|
5645
5645
|
* the request returns once the relay accepts the message for delivery.
|
|
5646
5646
|
* Set `wait: true` to wait for the first downstream SMTP delivery outcome.
|
|
5647
5647
|
*
|
|
5648
|
-
* **Host routing.** /send-mail is served by the
|
|
5649
|
-
*
|
|
5650
|
-
*
|
|
5651
|
-
*
|
|
5652
|
-
*
|
|
5653
|
-
*
|
|
5654
|
-
*
|
|
5655
|
-
* route /send-mail to the attachments host automatically.
|
|
5648
|
+
* **Host routing.** /send-mail is served by the canonical API host
|
|
5649
|
+
* (`https://api.primitive.dev/v1`) so the request body can carry
|
|
5650
|
+
* inline attachments up to ~30 MiB raw. The legacy dashboard
|
|
5651
|
+
* compatibility host (`https://www.primitive.dev/api/v1`) also accepts
|
|
5652
|
+
* /send-mail, but Vercel request body limits apply before proxying.
|
|
5653
|
+
* The typed SDKs route /send-mail to the canonical API host
|
|
5654
|
+
* automatically.
|
|
5656
5655
|
*
|
|
5657
5656
|
*/
|
|
5658
5657
|
declare const sendEmail: <ThrowOnError extends boolean = false>(options: Options<SendEmailData, ThrowOnError>) => RequestResult<SendEmailResponses, SendEmailErrors, ThrowOnError, "fields">;
|
|
@@ -5925,15 +5924,12 @@ declare const setFunctionSecret: <ThrowOnError extends boolean = false>(options:
|
|
|
5925
5924
|
declare const listFunctionLogs: <ThrowOnError extends boolean = false>(options: Options<ListFunctionLogsData, ThrowOnError>) => RequestResult<ListFunctionLogsResponses, ListFunctionLogsErrors, ThrowOnError, "fields">;
|
|
5926
5925
|
//#endregion
|
|
5927
5926
|
//#region ../packages/api-core/src/client.d.ts
|
|
5928
|
-
declare const
|
|
5929
|
-
declare const DEFAULT_API_BASE_URL_2 = "https://api.primitive.dev/v1";
|
|
5927
|
+
declare const DEFAULT_API_BASE_URL = "https://api.primitive.dev/v1";
|
|
5930
5928
|
interface PrimitiveApiClientOptions extends Omit<Config, "auth" | "baseUrl"> {
|
|
5931
5929
|
apiKey?: string;
|
|
5932
5930
|
auth?: Config["auth"];
|
|
5933
|
-
/** @internal Override for the
|
|
5934
|
-
|
|
5935
|
-
/** @internal Override for the attachments-supporting send host. Production default is correct; this exists for staging/local testing only. */
|
|
5936
|
-
apiBaseUrl2?: string;
|
|
5931
|
+
/** @internal Override for the API host. Production default is correct; this exists for staging/local testing only. */
|
|
5932
|
+
apiBaseUrl?: string;
|
|
5937
5933
|
}
|
|
5938
5934
|
interface RequestOptions$1 {
|
|
5939
5935
|
/** Cancel the in-flight request when this signal fires. Surfaces as AbortError. */
|
|
@@ -5965,24 +5961,7 @@ declare class PrimitiveApiError extends Error {
|
|
|
5965
5961
|
});
|
|
5966
5962
|
}
|
|
5967
5963
|
declare class PrimitiveApiClient {
|
|
5968
|
-
/**
|
|
5969
|
-
* Generated client targeting the primary API host (apiBaseUrl1). Use
|
|
5970
|
-
* this when passing `client: ...` to a generated operation function
|
|
5971
|
-
* for every endpoint EXCEPT attachment-capable message sends. The
|
|
5972
|
-
* hand-written PrimitiveClient.send / .reply / .forward methods on
|
|
5973
|
-
* the subclass route those sends to the host-2 client internally.
|
|
5974
|
-
*/
|
|
5975
5964
|
readonly client: Client;
|
|
5976
|
-
/**
|
|
5977
|
-
* @internal Generated client targeting the attachments-supporting
|
|
5978
|
-
* send host (apiBaseUrl2). Used by PrimitiveClient.send() and
|
|
5979
|
-
* PrimitiveClient.reply() under the hood. Exposed for the CLI's
|
|
5980
|
-
* hand-rolled send/reply commands, which call generated operations
|
|
5981
|
-
* directly; not part of the publicly-documented SDK surface.
|
|
5982
|
-
* Customer code should call .send() / .reply() on the subclass
|
|
5983
|
-
* instead.
|
|
5984
|
-
*/
|
|
5985
|
-
readonly _sendClient: Client;
|
|
5986
5965
|
constructor(options?: PrimitiveApiClientOptions);
|
|
5987
5966
|
getConfig(): Config<ClientOptions>;
|
|
5988
5967
|
setConfig(config: Config): Config<ClientOptions>;
|
|
@@ -6168,7 +6147,7 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
6168
6147
|
/**
|
|
6169
6148
|
* Semantic / hybrid / keyword search across received and sent mail.
|
|
6170
6149
|
*
|
|
6171
|
-
* `POST /v1/semantic-search
|
|
6150
|
+
* `POST /v1/semantic-search`. Returns ranked rows
|
|
6172
6151
|
* with matched fields, match-centered excerpts, and an additive
|
|
6173
6152
|
* `score_breakdown`. See `SemanticSearchInput` for request fields and
|
|
6174
6153
|
* `SemanticSearchResult` for the row shape.
|
|
@@ -6197,4 +6176,4 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
6197
6176
|
declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
6198
6177
|
declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
6199
6178
|
//#endregion
|
|
6200
|
-
export { listEmails as $, ListFunctionSecretsResponse as $a, VerifyAgentSignupInput as $c, GetStorageStatsErrors as $i, DeleteFunctionResponses as $n, SearchEmailsData as $o, FunctionSecretWriteResult as $r, StartCliSignupInput as $s, CliSignupStartResult as $t, deleteDomain as A, ListEmailsError as Aa, UpdateDomainResponses as Ac, GetFunctionResponses as Ai, DeleteDomainError as An, ReplyToEmailData as Ao, DownloadRawEmailResponse as Ar, SentEmailStatus as As, verifyDomain as At, getAccount as B, ListFiltersData as Ba, UpdateFilterInput as Bc, GetInboxStatusResponses as Bi, DeleteEndpointError as Bn, ResendAgentSignupVerificationResponses as Bo, EmailSearchMeta as Br, StartAgentSignupErrors as Bs, AgentSignupResendResult as Bt, createPrimitiveApiClient as C, ListDeliveriesResponses as Ca, UpdateAccountResponse as Cc, GetEmailErrors as Ci, createConfig as Cl, CreateFunctionSecretError as Cn, ReplayDeliveryResponses as Co, DownloadDomainZoneFileError as Cr, SendPermissionAddress as Cs, updateAccount as Ct, createFilter as D, ListDomainsResponse as Da, UpdateDomainErrors as Dc, GetFunctionError as Di, CreateFunctionSecretResponses as Dn, ReplayEmailWebhooksResponse as Do, DownloadRawEmailData as Dr, SendPermissionYourDomain as Ds, updateFunction as Dt, createEndpoint as E, ListDomainsErrors as Ea, UpdateDomainError as Ec, GetFunctionData as Ei, CreateFunctionSecretResponse as En, ReplayEmailWebhooksErrors as Eo, DownloadDomainZoneFileResponses as Er, SendPermissionRule as Es, updateFilter as Et, deleteFunctionSecret as F, ListEndpointsError as Fa, UpdateEndpointResponse as Fc, GetFunctionTestRunTraceResponses as Fi, DeleteEmailError as Fn, ResendAgentSignupVerificationData as Fo, EmailDetail as Fr, SetFunctionSecretInput as Fs, AddDomainErrors as Ft, getInboxStatus as G, ListFunctionLogsData as Ga, UpdateFunctionErrors as Gc, GetSendPermissionsResponses as Gi, DeleteFilterError as Gn, ResendCliSignupVerificationResponse as Go, Endpoint as Gr, StartCliLoginError as Gs, CliLogoutData as Gt, getEmail as H, ListFiltersErrors as Ha, UpdateFilterResponses as Hc, GetSendPermissionsError as Hi, DeleteEndpointResponse as Hn, ResendCliSignupVerificationError as Ho, EmailStatus as Hr, StartAgentSignupResponse as Hs, AgentSignupVerifyResult as Ht, discardEmailContent as I, ListEndpointsErrors as Ia, UpdateEndpointResponses as Ic, GetInboxStatusData as Ii, DeleteEmailErrors as In, ResendAgentSignupVerificationError as Io, EmailDetailReply as Ir, SetFunctionSecretResponse as Is, AddDomainInput as It, getStorageStats as J, ListFunctionLogsResponse as Ja, UpdateFunctionResponses as Jc, GetSentEmailErrors as Ji, DeleteFilterResponses as Jn, RotateWebhookSecretData as Jo, FunctionDeployStatus as Jr, StartCliLoginResponse as Js, CliLogoutInput as Jt, getSendPermissions as K, ListFunctionLogsError as Ka, UpdateFunctionInput as Kc, GetSentEmailData as Ki, DeleteFilterErrors as Kn, ResendCliSignupVerificationResponses as Ko, ErrorResponse as Kr, StartCliLoginErrors as Ks, CliLogoutError as Kt, downloadAttachments as L, ListEndpointsResponse as La, UpdateFilterData as Lc, GetInboxStatusError as Li, DeleteEmailResponse as Ln, ResendAgentSignupVerificationErrors as Lo, EmailSearchFacetBucket as Lr, SetFunctionSecretResponses as Ls, AddDomainResponse as Lt, deleteEndpoint as M, ListEmailsResponse as Ma, UpdateEndpointError as Mc, GetFunctionTestRunTraceError as Mi, DeleteDomainResponse as Mn, ReplyToEmailErrors as Mo, EmailAddress as Mr, SetFunctionSecretData as Ms, AccountUpdated as Mt, deleteFilter as N, ListEmailsResponses as Na, UpdateEndpointErrors as Nc, GetFunctionTestRunTraceErrors as Ni, DeleteDomainResponses as Nn, ReplyToEmailResponse as No, EmailAttachment as Nr, SetFunctionSecretError as Ns, AddDomainData as Nt, createFunction as O, ListDomainsResponses as Oa, UpdateDomainInput as Oc, GetFunctionErrors as Oi, Cursor as On, ReplayEmailWebhooksResponses as Oo, DownloadRawEmailError as Or, SendPermissionsMeta as Os, verifyAgentSignup as Ot, deleteFunction as P, ListEndpointsData as Pa, UpdateEndpointInput as Pc, GetFunctionTestRunTraceResponse as Pi, DeleteEmailData as Pn, ReplyToEmailResponses as Po, EmailAuth as Pr, SetFunctionSecretErrors as Ps, AddDomainError as Pt, listDomains as Q, ListFunctionSecretsErrors as Qa, VerifyAgentSignupErrors as Qc, GetStorageStatsError as Qi, DeleteFunctionResponse as Qn, RotateWebhookSecretResponses as Qo, FunctionSecretListItem as Qr, StartCliSignupErrors as Qs, CliSignupResendResult as Qt, downloadDomainZoneFile as R, ListEndpointsResponses as Ra, UpdateFilterError as Rc, GetInboxStatusErrors as Ri, DeleteEmailResponses as Rn, ResendAgentSignupVerificationInput as Ro, EmailSearchFacets as Rr, StartAgentSignupData as Rs, AddDomainResponses as Rt, RequestOptions$1 as S, ListDeliveriesResponse as Sa, UpdateAccountInput as Sc, GetEmailError as Si, ResponseStyle as Sl, CreateFunctionSecretData as Sn, ReplayDeliveryResponse as So, DownloadDomainZoneFileData as Sr, SendMailResult as Ss, testFunction as St, cliLogout as T, ListDomainsError as Ta, UpdateDomainData as Tc, GetEmailResponses as Ti, CreateFunctionSecretInput as Tn, ReplayEmailWebhooksError as To, DownloadDomainZoneFileResponse as Tr, SendPermissionManagedZone as Ts, updateEndpoint as Tt, getFunction as U, ListFiltersResponse as Ua, UpdateFunctionData as Uc, GetSendPermissionsErrors as Ui, DeleteEndpointResponses as Un, ResendCliSignupVerificationErrors as Uo, EmailSummary as Ur, StartAgentSignupResponses as Us, CliLoginPollResult as Ut, getConversation as V, ListFiltersError as Va, UpdateFilterResponse as Vc, GetSendPermissionsData as Vi, DeleteEndpointErrors as Vn, ResendCliSignupVerificationData as Vo, EmailSearchResult as Vr, StartAgentSignupInput as Vs, AgentSignupStartResult as Vt, getFunctionTestRunTrace as W, ListFiltersResponses as Wa, UpdateFunctionError as Wc, GetSendPermissionsResponse as Wi, DeleteFilterData as Wn, ResendCliSignupVerificationInput as Wo, EmailWebhookStatus as Wr, StartCliLoginData as Ws, CliLoginStartResult as Wt, getWebhookSecret as X, ListFunctionSecretsData as Xa, VerifyAgentSignupData as Xc, GetSentEmailResponses as Xi, DeleteFunctionError as Xn, RotateWebhookSecretErrors as Xo, FunctionListItem as Xr, StartCliSignupData as Xs, CliLogoutResponses as Xt, getThread as Y, ListFunctionLogsResponses as Ya, VerifiedDomain as Yc, GetSentEmailResponse as Yi, DeleteFunctionData as Yn, RotateWebhookSecretError as Yo, FunctionDetail as Yr, StartCliLoginResponses as Ys, CliLogoutResponse as Yt, listDeliveries as Z, ListFunctionSecretsError as Za, VerifyAgentSignupError as Zc, GetStorageStatsData as Zi, DeleteFunctionErrors as Zn, RotateWebhookSecretResponse as Zo, FunctionLogRow as Zr, StartCliSignupError as Zs, CliLogoutResult as Zt, DEFAULT_API_BASE_URL_2 as _, InboxStatusRecentEmailSummary as _a, ThreadMessage as _c, GetConversationError as _i, Config as _l, CreateFunctionErrors as _n, PollCliLoginResponse as _o, DownloadAttachmentsData as _r, SendEmailErrors as _s, setFunctionSecret as _t, RequestOptions as a, GetThreadResponse as aa, TestEndpointError as ac, FunctionTestRunReply as ai, VerifyCliSignupInput as al, CreateEndpointErrors as an, ListFunctionsResponses as ao, DeliveryStatus as ar, SemanticSearchData as as, listSentEmails as at, PrimitiveApiError as b, ListDeliveriesError as ba, UpdateAccountError as bc, GetConversationResponses as bi, RequestOptions$2 as bl, CreateFunctionResponses as bn, ReplayDeliveryError as bo, DownloadAttachmentsResponse as br, SendMailAttachment as bs, startCliSignup as bt, SendInput as c, GetWebhookSecretError as ca, TestEndpointResponses as cc, FunctionTestRunTrace as ci, VerifyDomainData as cl, CreateEndpointResponses as cn, ListSentEmailsErrors as co, DiscardEmailContentData as cr, SemanticSearchField as cs, replayEmailWebhooks as ct, client as d, GetWebhookSecretResponses as da, TestFunctionErrors as dc, GetAccountData as di, VerifyDomainResponse as dl, CreateFilterErrors as dn, PaginationMeta as do, DiscardEmailContentResponse as dr, SemanticSearchResponses as ds, resendCliSignupVerification as dt, GetStorageStatsResponse as ea, StartCliSignupResponse as ec, FunctionTestRun as ei, VerifyAgentSignupResponse as el, CliSignupVerifyResult as en, ListFunctionSecretsResponses as eo, DeleteFunctionSecretData as er, SearchEmailsError as es, listEndpoints as et, createPrimitiveClient as f, InboxStatus as fa, TestFunctionResponse as fc, GetAccountError as fi, VerifyDomainResponses as fl, CreateFilterInput as fn, ParsedEmailData as fo, DiscardEmailContentResponses as fr, SemanticSearchResult as fs, rotateWebhookSecret as ft, DEFAULT_API_BASE_URL_1 as g, InboxStatusNextAction as ga, Thread as gc, GetConversationData as gi, ClientOptions as gl, CreateFunctionError as gn, PollCliLoginInput as go, DomainVerifyResult as gr, SendEmailError as gs, sendEmail as gt, verifyWebhookSignature as h, InboxStatusFunctionSummary as ha, TestResult as hc, GetAccountResponses as hi, Client as hl, CreateFunctionData as hn, PollCliLoginErrors as ho, DomainDnsRecord as hr, SendEmailData as hs, semanticSearch as ht, ReplyInput as i, GetThreadErrors as ia, TestEndpointData as ic, FunctionTestRunOutboundRequest as ii, VerifyCliSignupErrors as il, CreateEndpointError as in, ListFunctionsResponse as io, DeleteFunctionSecretResponses as ir, SemanticSearchCoverage as is, listFunctions as it, deleteEmail as j, ListEmailsErrors as ja, UpdateEndpointData as jc, GetFunctionTestRunTraceData as ji, DeleteDomainErrors as jn, ReplyToEmailError as jo, DownloadRawEmailResponses as jr, SentEmailSummary as js, Account as jt, createFunctionSecret as k, ListEmailsData as ka, UpdateDomainResponse as kc, GetFunctionResponse as ki, DeleteDomainData as kn, ReplayResult as ko, DownloadRawEmailErrors as kr, SentEmailDetail as ks, verifyCliSignup as kt, SendResult as l, GetWebhookSecretErrors as la, TestFunctionData as lc, GateDenial as li, VerifyDomainError as ll, CreateFilterData as ln, ListSentEmailsResponse as lo, DiscardEmailContentError as lr, SemanticSearchInput as ls, replyToEmail as lt, VerifyOptions as m, InboxStatusEndpointSummary as ma, TestInvocationResult as mc, GetAccountResponse as mi, createClient as ml, CreateFilterResponses as mn, PollCliLoginError as mo, Domain as mr, SemanticSearchSnippet as ms, searchEmails as mt, PrimitiveClient as n, GetThreadData as na, StorageStats as nc, FunctionTestRunDeliveryEndpoint as ni, VerifyCliSignupData as nl, ConversationMessage as nn, ListFunctionsError as no, DeleteFunctionSecretErrors as nr, SearchEmailsResponse as ns, listFunctionLogs as nt, SemanticSearchResponse as o, GetThreadResponses as oa, TestEndpointErrors as oc, FunctionTestRunSend as oi, VerifyCliSignupResponse as ol, CreateEndpointInput as on, ListSentEmailsData as oo, DeliverySummary as or, SemanticSearchError as os, pollCliLogin as ot, PRIMITIVE_SIGNATURE_HEADER as p, InboxStatusDomain as pa, TestFunctionResponses as pc, GetAccountErrors as pi, WebhookSecret as pl, CreateFilterResponse as pn, PollCliLoginData as po, DkimSignature as pr, SemanticSearchScoreBreakdown as ps, sdk_gen_d_exports as pt, getSentEmail as q, ListFunctionLogsErrors as qa, UpdateFunctionResponse as qc, GetSentEmailError as qi, DeleteFilterResponse as qn, ResourceId as qo, Filter as qr, StartCliLoginInput as qs, CliLogoutErrors as qt, PrimitiveClientOptions as r, GetThreadError as ra, SuccessEnvelope as rc, FunctionTestRunInboundEmail as ri, VerifyCliSignupError as rl, CreateEndpointData as rn, ListFunctionsErrors as ro, DeleteFunctionSecretResponse as rr, SearchEmailsResponses as rs, listFunctionSecrets as rt, SendAttachment as s, GetWebhookSecretData as sa, TestEndpointResponse as sc, FunctionTestRunState as si, VerifyCliSignupResponses as sl, CreateEndpointResponse as sn, ListSentEmailsError as so, DiscardContentResult as sr, SemanticSearchErrors as ss, replayDelivery as st, ForwardInput as t, GetStorageStatsResponses as ta, StartCliSignupResponses as tc, FunctionTestRunDelivery as ti, VerifyAgentSignupResponses as tl, Conversation as tn, ListFunctionsData as to, DeleteFunctionSecretError as tr, SearchEmailsErrors as ts, listFilters as tt, SendThreadInput as u, GetWebhookSecretResponse as ua, TestFunctionError as uc, GateFix as ui, VerifyDomainErrors as ul, CreateFilterError as un, ListSentEmailsResponses as uo, DiscardEmailContentErrors as ur, SemanticSearchMeta as us, resendAgentSignupVerification as ut, PrimitiveApiClient as v, Limit as va, UnverifiedDomain as vc, GetConversationErrors as vi, CreateClientConfig as vl, CreateFunctionInput as vn, PollCliLoginResponses as vo, DownloadAttachmentsError as vr, SendEmailResponse as vs, startAgentSignup as vt, addDomain as w, ListDomainsData as wa, UpdateAccountResponses as wc, GetEmailResponse as wi, Auth as wl, CreateFunctionSecretErrors as wn, ReplayEmailWebhooksData as wo, DownloadDomainZoneFileErrors as wr, SendPermissionAnyRecipient as ws, updateDomain as wt, PrimitiveApiErrorDetails as x, ListDeliveriesErrors as xa, UpdateAccountErrors as xc, GetEmailData as xi, RequestResult as xl, CreateFunctionResult as xn, ReplayDeliveryErrors as xo, DownloadAttachmentsResponses as xr, SendMailInput as xs, testEndpoint as xt, PrimitiveApiClientOptions as y, ListDeliveriesData as ya, UpdateAccountData as yc, GetConversationResponse as yi, Options$1 as yl, CreateFunctionResponse as yn, ReplayDeliveryData as yo, DownloadAttachmentsErrors as yr, SendEmailResponses as ys, startCliLogin as yt, downloadRawEmail as z, ListEnvelope as za, UpdateFilterErrors as zc, GetInboxStatusResponse as zi, DeleteEndpointData as zn, ResendAgentSignupVerificationResponse as zo, EmailSearchHighlights as zr, StartAgentSignupError as zs, AgentOrgRef as zt };
|
|
6179
|
+
export { listEndpoints as $, ListFunctionSecretsResponses as $a, VerifyAgentSignupResponse as $c, GetStorageStatsResponse as $i, DeleteFunctionSecretData as $n, SearchEmailsError as $o, FunctionTestRun as $r, StartCliSignupResponse as $s, CliSignupVerifyResult as $t, deleteEmail as A, ListEmailsErrors as Aa, UpdateEndpointData as Ac, GetFunctionTestRunTraceData as Ai, DeleteDomainErrors as An, ReplyToEmailError as Ao, DownloadRawEmailResponses as Ar, SentEmailSummary as As, Account as At, getConversation as B, ListFiltersError as Ba, UpdateFilterResponse as Bc, GetSendPermissionsData as Bi, DeleteEndpointErrors as Bn, ResendCliSignupVerificationData as Bo, EmailSearchResult as Br, StartAgentSignupInput as Bs, AgentSignupStartResult as Bt, addDomain as C, ListDomainsData as Ca, UpdateAccountResponses as Cc, GetEmailResponse as Ci, Auth as Cl, CreateFunctionSecretErrors as Cn, ReplayEmailWebhooksData as Co, DownloadDomainZoneFileErrors as Cr, SendPermissionAnyRecipient as Cs, updateDomain as Ct, createFunction as D, ListDomainsResponses as Da, UpdateDomainInput as Dc, GetFunctionErrors as Di, Cursor as Dn, ReplayEmailWebhooksResponses as Do, DownloadRawEmailError as Dr, SendPermissionsMeta as Ds, verifyAgentSignup as Dt, createFilter as E, ListDomainsResponse as Ea, UpdateDomainErrors as Ec, GetFunctionError as Ei, CreateFunctionSecretResponses as En, ReplayEmailWebhooksResponse as Eo, DownloadRawEmailData as Er, SendPermissionYourDomain as Es, updateFunction as Et, discardEmailContent as F, ListEndpointsErrors as Fa, UpdateEndpointResponses as Fc, GetInboxStatusData as Fi, DeleteEmailErrors as Fn, ResendAgentSignupVerificationError as Fo, EmailDetailReply as Fr, SetFunctionSecretResponse as Fs, AddDomainInput as Ft, getSendPermissions as G, ListFunctionLogsError as Ga, UpdateFunctionInput as Gc, GetSentEmailData as Gi, DeleteFilterErrors as Gn, ResendCliSignupVerificationResponses as Go, ErrorResponse as Gr, StartCliLoginErrors as Gs, CliLogoutError as Gt, getFunction as H, ListFiltersResponse as Ha, UpdateFunctionData as Hc, GetSendPermissionsErrors as Hi, DeleteEndpointResponses as Hn, ResendCliSignupVerificationErrors as Ho, EmailSummary as Hr, StartAgentSignupResponses as Hs, CliLoginPollResult as Ht, downloadAttachments as I, ListEndpointsResponse as Ia, UpdateFilterData as Ic, GetInboxStatusError as Ii, DeleteEmailResponse as In, ResendAgentSignupVerificationErrors as Io, EmailSearchFacetBucket as Ir, SetFunctionSecretResponses as Is, AddDomainResponse as It, getThread as J, ListFunctionLogsResponses as Ja, VerifiedDomain as Jc, GetSentEmailResponse as Ji, DeleteFunctionData as Jn, RotateWebhookSecretError as Jo, FunctionDetail as Jr, StartCliLoginResponses as Js, CliLogoutResponse as Jt, getSentEmail as K, ListFunctionLogsErrors as Ka, UpdateFunctionResponse as Kc, GetSentEmailError as Ki, DeleteFilterResponse as Kn, ResourceId as Ko, Filter as Kr, StartCliLoginInput as Ks, CliLogoutErrors as Kt, downloadDomainZoneFile as L, ListEndpointsResponses as La, UpdateFilterError as Lc, GetInboxStatusErrors as Li, DeleteEmailResponses as Ln, ResendAgentSignupVerificationInput as Lo, EmailSearchFacets as Lr, StartAgentSignupData as Ls, AddDomainResponses as Lt, deleteFilter as M, ListEmailsResponses as Ma, UpdateEndpointErrors as Mc, GetFunctionTestRunTraceErrors as Mi, DeleteDomainResponses as Mn, ReplyToEmailResponse as Mo, EmailAttachment as Mr, SetFunctionSecretError as Ms, AddDomainData as Mt, deleteFunction as N, ListEndpointsData as Na, UpdateEndpointInput as Nc, GetFunctionTestRunTraceResponse as Ni, DeleteEmailData as Nn, ReplyToEmailResponses as No, EmailAuth as Nr, SetFunctionSecretErrors as Ns, AddDomainError as Nt, createFunctionSecret as O, ListEmailsData as Oa, UpdateDomainResponse as Oc, GetFunctionResponse as Oi, DeleteDomainData as On, ReplayResult as Oo, DownloadRawEmailErrors as Or, SentEmailDetail as Os, verifyCliSignup as Ot, deleteFunctionSecret as P, ListEndpointsError as Pa, UpdateEndpointResponse as Pc, GetFunctionTestRunTraceResponses as Pi, DeleteEmailError as Pn, ResendAgentSignupVerificationData as Po, EmailDetail as Pr, SetFunctionSecretInput as Ps, AddDomainErrors as Pt, listEmails as Q, ListFunctionSecretsResponse as Qa, VerifyAgentSignupInput as Qc, GetStorageStatsErrors as Qi, DeleteFunctionResponses as Qn, SearchEmailsData as Qo, FunctionSecretWriteResult as Qr, StartCliSignupInput as Qs, CliSignupStartResult as Qt, downloadRawEmail as R, ListEnvelope as Ra, UpdateFilterErrors as Rc, GetInboxStatusResponse as Ri, DeleteEndpointData as Rn, ResendAgentSignupVerificationResponse as Ro, EmailSearchHighlights as Rr, StartAgentSignupError as Rs, AgentOrgRef as Rt, createPrimitiveApiClient as S, ListDeliveriesResponses as Sa, UpdateAccountResponse as Sc, GetEmailErrors as Si, createConfig as Sl, CreateFunctionSecretError as Sn, ReplayDeliveryResponses as So, DownloadDomainZoneFileError as Sr, SendPermissionAddress as Ss, updateAccount as St, createEndpoint as T, ListDomainsErrors as Ta, UpdateDomainError as Tc, GetFunctionData as Ti, CreateFunctionSecretResponse as Tn, ReplayEmailWebhooksErrors as To, DownloadDomainZoneFileResponses as Tr, SendPermissionRule as Ts, updateFilter as Tt, getFunctionTestRunTrace as U, ListFiltersResponses as Ua, UpdateFunctionError as Uc, GetSendPermissionsResponse as Ui, DeleteFilterData as Un, ResendCliSignupVerificationInput as Uo, EmailWebhookStatus as Ur, StartCliLoginData as Us, CliLoginStartResult as Ut, getEmail as V, ListFiltersErrors as Va, UpdateFilterResponses as Vc, GetSendPermissionsError as Vi, DeleteEndpointResponse as Vn, ResendCliSignupVerificationError as Vo, EmailStatus as Vr, StartAgentSignupResponse as Vs, AgentSignupVerifyResult as Vt, getInboxStatus as W, ListFunctionLogsData as Wa, UpdateFunctionErrors as Wc, GetSendPermissionsResponses as Wi, DeleteFilterError as Wn, ResendCliSignupVerificationResponse as Wo, Endpoint as Wr, StartCliLoginError as Ws, CliLogoutData as Wt, listDeliveries as X, ListFunctionSecretsError as Xa, VerifyAgentSignupError as Xc, GetStorageStatsData as Xi, DeleteFunctionErrors as Xn, RotateWebhookSecretResponse as Xo, FunctionLogRow as Xr, StartCliSignupError as Xs, CliLogoutResult as Xt, getWebhookSecret as Y, ListFunctionSecretsData as Ya, VerifyAgentSignupData as Yc, GetSentEmailResponses as Yi, DeleteFunctionError as Yn, RotateWebhookSecretErrors as Yo, FunctionListItem as Yr, StartCliSignupData as Ys, CliLogoutResponses as Yt, listDomains as Z, ListFunctionSecretsErrors as Za, VerifyAgentSignupErrors as Zc, GetStorageStatsError as Zi, DeleteFunctionResponse as Zn, RotateWebhookSecretResponses as Zo, FunctionSecretListItem as Zr, StartCliSignupErrors as Zs, CliSignupResendResult as Zt, PrimitiveApiClient as _, Limit as _a, UnverifiedDomain as _c, GetConversationErrors as _i, CreateClientConfig as _l, CreateFunctionInput as _n, PollCliLoginResponses as _o, DownloadAttachmentsError as _r, SendEmailResponse as _s, startAgentSignup as _t, RequestOptions as a, GetThreadResponses as aa, TestEndpointErrors as ac, FunctionTestRunSend as ai, VerifyCliSignupResponse as al, CreateEndpointInput as an, ListSentEmailsData as ao, DeliverySummary as ar, SemanticSearchError as as, pollCliLogin as at, PrimitiveApiErrorDetails as b, ListDeliveriesErrors as ba, UpdateAccountErrors as bc, GetEmailData as bi, RequestResult as bl, CreateFunctionResult as bn, ReplayDeliveryErrors as bo, DownloadAttachmentsResponses as br, SendMailInput as bs, testEndpoint as bt, SendInput as c, GetWebhookSecretErrors as ca, TestFunctionData as cc, GateDenial as ci, VerifyDomainError as cl, CreateFilterData as cn, ListSentEmailsResponse as co, DiscardEmailContentError as cr, SemanticSearchInput as cs, replyToEmail as ct, client as d, InboxStatus as da, TestFunctionResponse as dc, GetAccountError as di, VerifyDomainResponses as dl, CreateFilterInput as dn, ParsedEmailData as do, DiscardEmailContentResponses as dr, SemanticSearchResult as ds, rotateWebhookSecret as dt, GetStorageStatsResponses as ea, StartCliSignupResponses as ec, FunctionTestRunDelivery as ei, VerifyAgentSignupResponses as el, Conversation as en, ListFunctionsData as eo, DeleteFunctionSecretError as er, SearchEmailsErrors as es, listFilters as et, createPrimitiveClient as f, InboxStatusDomain as fa, TestFunctionResponses as fc, GetAccountErrors as fi, WebhookSecret as fl, CreateFilterResponse as fn, PollCliLoginData as fo, DkimSignature as fr, SemanticSearchScoreBreakdown as fs, sdk_gen_d_exports as ft, DEFAULT_API_BASE_URL as g, InboxStatusRecentEmailSummary as ga, ThreadMessage as gc, GetConversationError as gi, Config as gl, CreateFunctionErrors as gn, PollCliLoginResponse as go, DownloadAttachmentsData as gr, SendEmailErrors as gs, setFunctionSecret as gt, verifyWebhookSignature as h, InboxStatusNextAction as ha, Thread as hc, GetConversationData as hi, ClientOptions as hl, CreateFunctionError as hn, PollCliLoginInput as ho, DomainVerifyResult as hr, SendEmailError as hs, sendEmail as ht, ReplyInput as i, GetThreadResponse as ia, TestEndpointError as ic, FunctionTestRunReply as ii, VerifyCliSignupInput as il, CreateEndpointErrors as in, ListFunctionsResponses as io, DeliveryStatus as ir, SemanticSearchData as is, listSentEmails as it, deleteEndpoint as j, ListEmailsResponse as ja, UpdateEndpointError as jc, GetFunctionTestRunTraceError as ji, DeleteDomainResponse as jn, ReplyToEmailErrors as jo, EmailAddress as jr, SetFunctionSecretData as js, AccountUpdated as jt, deleteDomain as k, ListEmailsError as ka, UpdateDomainResponses as kc, GetFunctionResponses as ki, DeleteDomainError as kn, ReplyToEmailData as ko, DownloadRawEmailResponse as kr, SentEmailStatus as ks, verifyDomain as kt, SendResult as l, GetWebhookSecretResponse as la, TestFunctionError as lc, GateFix as li, VerifyDomainErrors as ll, CreateFilterError as ln, ListSentEmailsResponses as lo, DiscardEmailContentErrors as lr, SemanticSearchMeta as ls, resendAgentSignupVerification as lt, VerifyOptions as m, InboxStatusFunctionSummary as ma, TestResult as mc, GetAccountResponses as mi, Client as ml, CreateFunctionData as mn, PollCliLoginErrors as mo, DomainDnsRecord as mr, SendEmailData as ms, semanticSearch as mt, PrimitiveClient as n, GetThreadError as na, SuccessEnvelope as nc, FunctionTestRunInboundEmail as ni, VerifyCliSignupError as nl, CreateEndpointData as nn, ListFunctionsErrors as no, DeleteFunctionSecretResponse as nr, SearchEmailsResponses as ns, listFunctionSecrets as nt, SemanticSearchResponse as o, GetWebhookSecretData as oa, TestEndpointResponse as oc, FunctionTestRunState as oi, VerifyCliSignupResponses as ol, CreateEndpointResponse as on, ListSentEmailsError as oo, DiscardContentResult as or, SemanticSearchErrors as os, replayDelivery as ot, PRIMITIVE_SIGNATURE_HEADER as p, InboxStatusEndpointSummary as pa, TestInvocationResult as pc, GetAccountResponse as pi, createClient as pl, CreateFilterResponses as pn, PollCliLoginError as po, Domain as pr, SemanticSearchSnippet as ps, searchEmails as pt, getStorageStats as q, ListFunctionLogsResponse as qa, UpdateFunctionResponses as qc, GetSentEmailErrors as qi, DeleteFilterResponses as qn, RotateWebhookSecretData as qo, FunctionDeployStatus as qr, StartCliLoginResponse as qs, CliLogoutInput as qt, PrimitiveClientOptions as r, GetThreadErrors as ra, TestEndpointData as rc, FunctionTestRunOutboundRequest as ri, VerifyCliSignupErrors as rl, CreateEndpointError as rn, ListFunctionsResponse as ro, DeleteFunctionSecretResponses as rr, SemanticSearchCoverage as rs, listFunctions as rt, SendAttachment as s, GetWebhookSecretError as sa, TestEndpointResponses as sc, FunctionTestRunTrace as si, VerifyDomainData as sl, CreateEndpointResponses as sn, ListSentEmailsErrors as so, DiscardEmailContentData as sr, SemanticSearchField as ss, replayEmailWebhooks as st, ForwardInput as t, GetThreadData as ta, StorageStats as tc, FunctionTestRunDeliveryEndpoint as ti, VerifyCliSignupData as tl, ConversationMessage as tn, ListFunctionsError as to, DeleteFunctionSecretErrors as tr, SearchEmailsResponse as ts, listFunctionLogs as tt, SendThreadInput as u, GetWebhookSecretResponses as ua, TestFunctionErrors as uc, GetAccountData as ui, VerifyDomainResponse as ul, CreateFilterErrors as un, PaginationMeta as uo, DiscardEmailContentResponse as ur, SemanticSearchResponses as us, resendCliSignupVerification as ut, PrimitiveApiClientOptions as v, ListDeliveriesData as va, UpdateAccountData as vc, GetConversationResponse as vi, Options$1 as vl, CreateFunctionResponse as vn, ReplayDeliveryData as vo, DownloadAttachmentsErrors as vr, SendEmailResponses as vs, startCliLogin as vt, cliLogout as w, ListDomainsError as wa, UpdateDomainData as wc, GetEmailResponses as wi, CreateFunctionSecretInput as wn, ReplayEmailWebhooksError as wo, DownloadDomainZoneFileResponse as wr, SendPermissionManagedZone as ws, updateEndpoint as wt, RequestOptions$1 as x, ListDeliveriesResponse as xa, UpdateAccountInput as xc, GetEmailError as xi, ResponseStyle as xl, CreateFunctionSecretData as xn, ReplayDeliveryResponse as xo, DownloadDomainZoneFileData as xr, SendMailResult as xs, testFunction as xt, PrimitiveApiError as y, ListDeliveriesError as ya, UpdateAccountError as yc, GetConversationResponses as yi, RequestOptions$2 as yl, CreateFunctionResponses as yn, ReplayDeliveryError as yo, DownloadAttachmentsResponse as yr, SendMailAttachment as ys, startCliSignup as yt, getAccount as z, ListFiltersData as za, UpdateFilterInput as zc, GetInboxStatusResponses as zi, DeleteEndpointError as zn, ResendAgentSignupVerificationResponses as zo, EmailSearchMeta as zr, StartAgentSignupErrors as zs, AgentSignupResendResult as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as SendInput, d as client, f as createPrimitiveClient, i as ReplyInput, l as SendResult, n as PrimitiveClient, r as PrimitiveClientOptions, s as SendAttachment, t as ForwardInput, u as SendThreadInput, y as PrimitiveApiError } from "./index-Imm1lbB_.js";
|
|
2
2
|
import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "./types-yNU-Oiea.js";
|
|
3
3
|
import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "./errors-7E9sW9eX.js";
|
|
4
4
|
import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "./index-DR978rq5.js";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-COmUIWhS.js";
|
|
2
2
|
import { a as VERIFICATION_ERRORS, c as WebhookVerificationError, d as formatAddress, f as normalizeReceivedEmail, i as RawEmailDecodeError, l as buildForwardSubject, n as PrimitiveWebhookError, o as WebhookPayloadError, p as parseHeaderAddress, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as buildReplySubject } from "./errors-BPJGp9I6.js";
|
|
3
3
|
import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "./webhook-BAwK8EOG.js";
|
|
4
4
|
//#region src/index.ts
|
package/dist/openapi/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as openapiDocument, t as operationManifest } from "../operations.generated-
|
|
1
|
+
import { n as openapiDocument, t as operationManifest } from "../operations.generated-CgJWP2sH.js";
|
|
2
2
|
export { openapiDocument, operationManifest };
|
|
@@ -21,11 +21,11 @@ const openapiDocument = {
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"servers": [{
|
|
24
|
-
"url": "https://www.primitive.dev/api/v1",
|
|
25
|
-
"description": "Primary API host (PRIMITIVE_API_BASE_URL_1). Carries every operation\nexcept attachment-supporting send. Vercel-backed; request body is\ncapped at 4.5 MB by the platform.\n"
|
|
26
|
-
}, {
|
|
27
24
|
"url": "https://api.primitive.dev/v1",
|
|
28
|
-
"description": "
|
|
25
|
+
"description": "Canonical API host (PRIMITIVE_API_BASE_URL). Carries every public\nAPI operation. Cloudflare Workers-backed; attachment-capable send\noperations can carry up to ~30 MiB raw request bodies before base64\nencoding.\n"
|
|
26
|
+
}, {
|
|
27
|
+
"url": "https://www.primitive.dev/api/v1",
|
|
28
|
+
"description": "Legacy dashboard compatibility host. Requests are forwarded to the\ncanonical API host, but Vercel request body limits still apply before\nproxying. New integrations should use https://api.primitive.dev/v1.\n"
|
|
29
29
|
}],
|
|
30
30
|
"security": [{ "BearerAuth": [] }],
|
|
31
31
|
"tags": [
|
|
@@ -1048,10 +1048,10 @@ const openapiDocument = {
|
|
|
1048
1048
|
"description": "Sends an outbound reply to the inbound email identified by `id`.\nThreading headers (`In-Reply-To`, `References`), recipient\nderivation (Reply-To, then From, then bare sender), and the\n`Re:` subject prefix are all derived server-side from the\nstored inbound row. The request body carries only the message\nbody, optional From override, optional attachments, and optional\n`wait` flag; passing any header or recipient override is\nrejected by the schema (`additionalProperties: false`).\n\nForwards through the same gates as `/send-mail`: the response\nstatus, error envelope, and `idempotent_replay` flag mirror\nthe send-mail contract verbatim.\n",
|
|
1049
1049
|
"servers": [{
|
|
1050
1050
|
"url": "https://api.primitive.dev/v1",
|
|
1051
|
-
"description": "
|
|
1051
|
+
"description": "Canonical API host (recommended)"
|
|
1052
1052
|
}, {
|
|
1053
1053
|
"url": "https://www.primitive.dev/api/v1",
|
|
1054
|
-
"description": "
|
|
1054
|
+
"description": "Legacy compatibility host (Vercel body limit applies)"
|
|
1055
1055
|
}],
|
|
1056
1056
|
"tags": ["Sending"],
|
|
1057
1057
|
"requestBody": {
|
|
@@ -1460,13 +1460,13 @@ const openapiDocument = {
|
|
|
1460
1460
|
"/send-mail": { "post": {
|
|
1461
1461
|
"operationId": "sendEmail",
|
|
1462
1462
|
"summary": "Send outbound email",
|
|
1463
|
-
"description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n\n**Host routing.** /send-mail is served by the
|
|
1463
|
+
"description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n\n**Host routing.** /send-mail is served by the canonical API host\n(`https://api.primitive.dev/v1`) so the request body can carry\ninline attachments up to ~30 MiB raw. The legacy dashboard\ncompatibility host (`https://www.primitive.dev/api/v1`) also accepts\n/send-mail, but Vercel request body limits apply before proxying.\nThe typed SDKs route /send-mail to the canonical API host\nautomatically.\n",
|
|
1464
1464
|
"servers": [{
|
|
1465
1465
|
"url": "https://api.primitive.dev/v1",
|
|
1466
|
-
"description": "
|
|
1466
|
+
"description": "Canonical API host (recommended)"
|
|
1467
1467
|
}, {
|
|
1468
1468
|
"url": "https://www.primitive.dev/api/v1",
|
|
1469
|
-
"description": "
|
|
1469
|
+
"description": "Legacy compatibility host (Vercel body limit applies)"
|
|
1470
1470
|
}],
|
|
1471
1471
|
"tags": ["Sending"],
|
|
1472
1472
|
"parameters": [{
|
|
@@ -11443,7 +11443,7 @@ const operationManifest = [
|
|
|
11443
11443
|
"binaryResponse": false,
|
|
11444
11444
|
"bodyRequired": true,
|
|
11445
11445
|
"command": "send-email",
|
|
11446
|
-
"description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n\n**Host routing.** /send-mail is served by the
|
|
11446
|
+
"description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n\n**Host routing.** /send-mail is served by the canonical API host\n(`https://api.primitive.dev/v1`) so the request body can carry\ninline attachments up to ~30 MiB raw. The legacy dashboard\ncompatibility host (`https://www.primitive.dev/api/v1`) also accepts\n/send-mail, but Vercel request body limits apply before proxying.\nThe typed SDKs route /send-mail to the canonical API host\nautomatically.\n",
|
|
11447
11447
|
"hasJsonBody": true,
|
|
11448
11448
|
"method": "POST",
|
|
11449
11449
|
"operationId": "sendEmail",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as parseFromHeader, i as ValidatedAddress, n as ParseFromHeaderResult, o as parseFromHeaderLoose, r as ParsedAddress, t as ParseFromHeaderFailureReason } from "../address-parser-CA6G7R-h.js";
|
|
2
|
+
export { type ParseFromHeaderFailureReason, type ParseFromHeaderResult, type ParsedAddress, type ValidatedAddress, parseFromHeader, parseFromHeaderLoose };
|
package/dist/parser/index.d.ts
CHANGED
|
@@ -1,95 +1,6 @@
|
|
|
1
1
|
import { M as WebhookAttachment, S as ParsedDataComplete, s as EmailAddress } from "../types-yNU-Oiea.js";
|
|
2
|
+
import { a as parseFromHeader, i as ValidatedAddress, n as ParseFromHeaderResult, o as parseFromHeaderLoose, r as ParsedAddress, t as ParseFromHeaderFailureReason } from "../address-parser-CA6G7R-h.js";
|
|
2
3
|
|
|
3
|
-
//#region src/parser/address-parser.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* A validated RFC 5322 address. Returned by the strict parser, which
|
|
6
|
-
* deliberately does not expose a display name.
|
|
7
|
-
*
|
|
8
|
-
* `address` is normalized to lowercase. Both the local-part and the
|
|
9
|
-
* domain are lowercased: RFC 5321 §2.4 permits case-sensitive local-
|
|
10
|
-
* parts, but every consumer mailbox in practice treats them as
|
|
11
|
-
* case-insensitive, and a case-sensitive grant key would split
|
|
12
|
-
* `Bob@x.com` from `bob@x.com` into separate rows and defeat the
|
|
13
|
-
* primary-key index on lookup.
|
|
14
|
-
*/
|
|
15
|
-
interface ValidatedAddress {
|
|
16
|
-
address: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A parsed RFC 5322 address with its display name. Returned by the
|
|
20
|
-
* loose parser for display-only call sites.
|
|
21
|
-
*
|
|
22
|
-
* `address` is lowercased on the same rationale as
|
|
23
|
-
* {@link ValidatedAddress}. The display name is preserved as provided
|
|
24
|
-
* (after addressparser's quote / encoded-word handling), or null if the
|
|
25
|
-
* header had no display name. Names from the loose parser are NOT
|
|
26
|
-
* trustworthy for downstream mail building: addressparser's recovery
|
|
27
|
-
* mode can fold trailing tokens or a second bracketed address into the
|
|
28
|
-
* name field. Treat as opaque text, sanitize before re-emitting.
|
|
29
|
-
*/
|
|
30
|
-
interface ParsedAddress {
|
|
31
|
-
address: string;
|
|
32
|
-
name: string | null;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Reason a strict From-header parse rejected the input. Stable enum so
|
|
36
|
-
* callers can branch on the reason without parsing message text.
|
|
37
|
-
*/
|
|
38
|
-
type ParseFromHeaderFailureReason = "empty" | "too_long" | "multiple_addresses" | "group_syntax" | "invalid_address";
|
|
39
|
-
type ParseFromHeaderResult = {
|
|
40
|
-
ok: true;
|
|
41
|
-
value: ValidatedAddress;
|
|
42
|
-
} | {
|
|
43
|
-
ok: false;
|
|
44
|
-
reason: ParseFromHeaderFailureReason;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Strict parser for RFC 5322 From-style headers in security-bearing
|
|
48
|
-
* contexts (allowlist gates, permission grants).
|
|
49
|
-
*
|
|
50
|
-
* Rejects, without falling back to a "best guess":
|
|
51
|
-
* - empty / whitespace-only input
|
|
52
|
-
* - inputs longer than RFC 5322's 998-octet line limit
|
|
53
|
-
* - multi-address From (RFC 5322 allows it but it is vanishingly
|
|
54
|
-
* rare and ambiguous as an identity)
|
|
55
|
-
* - group syntax ("Friends: a@b.com, c@d.com;")
|
|
56
|
-
* - any address that fails validator's isEmail check with our chosen
|
|
57
|
-
* options. That covers per-part length limits, dot-atom rules,
|
|
58
|
-
* hostname-label rules, TLD requirement, and other RFC 5321/5322
|
|
59
|
-
* conformance checks.
|
|
60
|
-
*
|
|
61
|
-
* Returns ONLY the validated address, with no display name. Strict
|
|
62
|
-
* exists for gating decisions, where the address is the security-
|
|
63
|
-
* bearing field. Display names from addressparser are not trustworthy
|
|
64
|
-
* here: weird inputs like `Name <user@x.com> <attacker@y.com>` get
|
|
65
|
-
* parsed as a single entry whose `name` silently includes the second
|
|
66
|
-
* address. Surfacing that as a "parsed name" would invite downstream
|
|
67
|
-
* misuse, so we drop it. If you need the name, call
|
|
68
|
-
* {@link parseFromHeaderLoose} alongside (it returns null on failure
|
|
69
|
-
* anyway, so you can still gate on strict's Result).
|
|
70
|
-
*
|
|
71
|
-
* Returns a typed Result so callers can map the failure reason to
|
|
72
|
-
* stable error codes without inspecting message text.
|
|
73
|
-
*/
|
|
74
|
-
declare function parseFromHeader(header: string | null | undefined): ParseFromHeaderResult;
|
|
75
|
-
/**
|
|
76
|
-
* Lenient parser for display-only call sites (inbox card "from",
|
|
77
|
-
* log lines, debugging). Returns the first parseable address with its
|
|
78
|
-
* display name, or null.
|
|
79
|
-
*
|
|
80
|
-
* Differences from {@link parseFromHeader}:
|
|
81
|
-
* - Multi-address From returns the first address instead of rejecting
|
|
82
|
-
* - Group syntax is flattened into its member addresses
|
|
83
|
-
* - Returns null instead of a typed reason on failure
|
|
84
|
-
* - Includes the parsed display name in the result
|
|
85
|
-
*
|
|
86
|
-
* Do not use for permission gates or any decision that grants access.
|
|
87
|
-
* That is what {@link parseFromHeader} is for. Names returned here can
|
|
88
|
-
* include addressparser's recovery output (trailing tokens, garbage
|
|
89
|
-
* before the address); treat as opaque text for display.
|
|
90
|
-
*/
|
|
91
|
-
declare function parseFromHeaderLoose(header: string | null | undefined): ParsedAddress | null;
|
|
92
|
-
//#endregion
|
|
93
4
|
//#region src/parser/attachment-parser.d.ts
|
|
94
5
|
interface ParsedAttachment {
|
|
95
6
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primitivedotdev/sdk",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.2",
|
|
4
4
|
"description": "Official Primitive Node.js SDK: webhook, api, openapi, contract, and parser runtime modules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"types": "./dist/parser/index.d.ts",
|
|
36
36
|
"import": "./dist/parser/index.js",
|
|
37
37
|
"default": "./dist/parser/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./parser/address": {
|
|
40
|
+
"types": "./dist/parser/address.d.ts",
|
|
41
|
+
"import": "./dist/parser/address.js",
|
|
42
|
+
"default": "./dist/parser/address.js"
|
|
38
43
|
}
|
|
39
44
|
},
|
|
40
45
|
"sideEffects": false,
|