@primitivedotdev/sdk 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/api/index.d.ts +4 -4
- package/dist/api/index.js +3 -3
- package/dist/{api-DacG4JSU.js → api-DoB7DrgV.js} +174 -22
- package/dist/contract/index.d.ts +2 -2
- package/dist/contract/index.js +1 -1
- package/dist/{errors-7E9sW9eX.d.ts → errors-DyuAXctD.d.ts} +1 -1
- package/dist/{index-X7RsDaVi.d.ts → index-BDjVGtc8.d.ts} +145 -6
- package/dist/{index-DR978rq5.d.ts → index-iZWfb98V.d.ts} +275 -4
- package/dist/index.d.ts +6 -184
- package/dist/index.js +4 -194
- package/dist/openapi/index.js +1 -1
- package/dist/{operations.generated-DSMTMcWh.js → operations.generated-XrEy5EtX.js} +87 -3
- package/dist/parser/index.d.ts +1 -1
- package/dist/{types-yNU-Oiea.d.ts → types-QT2ss9ho.d.ts} +207 -3
- package/dist/webhook/index.d.ts +4 -4
- package/dist/webhook/index.js +1 -1
- package/dist/{webhook-BAwK8EOG.js → webhook-CwjCyFv-.js} +2559 -224
- package/dist/x402/index.d.ts +263 -0
- package/dist/x402/index.js +320 -0
- package/package.json +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as ReceivedEmail } from "./errors-
|
|
1
|
+
import { m as ReceivedEmail } from "./errors-DyuAXctD.js";
|
|
2
2
|
|
|
3
3
|
//#region ../packages/api-core/src/api/core/auth.gen.d.ts
|
|
4
4
|
type AuthToken = string | undefined;
|
|
@@ -811,6 +811,18 @@ type Account = {
|
|
|
811
811
|
id: string;
|
|
812
812
|
email: string;
|
|
813
813
|
plan: string;
|
|
814
|
+
limits: PlanLimits;
|
|
815
|
+
/**
|
|
816
|
+
* Granted org entitlement keys (sorted). A headless caller reads its
|
|
817
|
+
* capabilities here — e.g. an emailless agent seeing only
|
|
818
|
+
* ["send_mail", "send_to_known_addresses"] knows it is reply-only.
|
|
819
|
+
*
|
|
820
|
+
*/
|
|
821
|
+
entitlements: Array<string>;
|
|
822
|
+
/**
|
|
823
|
+
* The managed inbox FQDN to reply as, or null if the org has no managed inbox.
|
|
824
|
+
*/
|
|
825
|
+
managed_inbox_address: string | null;
|
|
814
826
|
created_at: string;
|
|
815
827
|
onboarding_completed?: boolean;
|
|
816
828
|
onboarding_step?: string | null;
|
|
@@ -3834,6 +3846,27 @@ type ListEmailsData = {
|
|
|
3834
3846
|
* Filter emails created on or before this timestamp
|
|
3835
3847
|
*/
|
|
3836
3848
|
date_to?: string;
|
|
3849
|
+
/**
|
|
3850
|
+
* Forward-tail cursor. Returns rows that became visible AFTER this
|
|
3851
|
+
* cursor, oldest-first, so a caller can stream new inbound mail by
|
|
3852
|
+
* re-passing the cursor from each response. Mutually exclusive with
|
|
3853
|
+
* `cursor` (which pages history newest-first). Pass the `meta.cursor`
|
|
3854
|
+
* from the previous `since` response; an empty page means caught up.
|
|
3855
|
+
*
|
|
3856
|
+
*/
|
|
3857
|
+
since?: string;
|
|
3858
|
+
/**
|
|
3859
|
+
* Long-poll: hold the request up to this many seconds waiting for new
|
|
3860
|
+
* mail past `since`, returning as soon as any arrives (or an empty
|
|
3861
|
+
* page when the wait elapses). Requires `since`. Omitted means no wait
|
|
3862
|
+
* (returns immediately); the server treats an absent value as 0. NOT
|
|
3863
|
+
* given an OpenAPI `default` on purpose: a default makes some
|
|
3864
|
+
* generators (e.g. openapi-python-client) send `wait=0` on every call,
|
|
3865
|
+
* which then fails the `wait` requires `since` check for plain history
|
|
3866
|
+
* listings.
|
|
3867
|
+
*
|
|
3868
|
+
*/
|
|
3869
|
+
wait?: number;
|
|
3837
3870
|
};
|
|
3838
3871
|
url: '/emails';
|
|
3839
3872
|
};
|
|
@@ -6247,10 +6280,12 @@ declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
6247
6280
|
* each delivery and forwards the `Primitive-Signature` header to
|
|
6248
6281
|
* the handler. Verify the raw request body with
|
|
6249
6282
|
* `PRIMITIVE_WEBHOOK_SECRET` before parsing JSON; after verification
|
|
6250
|
-
* the request body parses to
|
|
6251
|
-
* `
|
|
6252
|
-
*
|
|
6253
|
-
*
|
|
6283
|
+
* the request body parses to a webhook event whose `event` field is
|
|
6284
|
+
* `email.received` for normal inbound mail, or a machine-mail type
|
|
6285
|
+
* (`email.bounced`, `email.tls_report`, `email.dmarc_report`,
|
|
6286
|
+
* `email.dmarc_failure`) for bounces and reports. Code is bundled
|
|
6287
|
+
* before being uploaded; ship a single self-contained file rather
|
|
6288
|
+
* than relying on external imports.
|
|
6254
6289
|
*
|
|
6255
6290
|
* **Code limits.** `code` is capped at 1 MiB UTF-8. `sourceMap`
|
|
6256
6291
|
* (optional) is capped at 5 MiB UTF-8, stored with each deployment
|
|
@@ -6661,6 +6696,12 @@ interface ForwardInput {
|
|
|
6661
6696
|
interface SendResult {
|
|
6662
6697
|
id: string;
|
|
6663
6698
|
status: SendMailResult["status"];
|
|
6699
|
+
/**
|
|
6700
|
+
* The bare from-address actually written on the wire. Load-bearing on the
|
|
6701
|
+
* server-derived reply path, where `from` is derived from the inbound rather
|
|
6702
|
+
* than anything the caller passed.
|
|
6703
|
+
*/
|
|
6704
|
+
from: string;
|
|
6664
6705
|
queueId: string | null;
|
|
6665
6706
|
accepted: string[];
|
|
6666
6707
|
rejected: string[];
|
|
@@ -6727,9 +6768,86 @@ declare class AgentResource {
|
|
|
6727
6768
|
*/
|
|
6728
6769
|
claimLink(input?: CreateAgentClaimLinkInput, options?: RequestOptions): Promise<AgentClaimLinkResult>;
|
|
6729
6770
|
}
|
|
6771
|
+
/**
|
|
6772
|
+
* One inbound email from the forward tail, plus the cursor positioned just
|
|
6773
|
+
* after it and a bound `reply()`. Persist `cursor` after processing to resume
|
|
6774
|
+
* the stream exactly where you left off; the stream advances one email at a
|
|
6775
|
+
* time, so the cursor is per-email exact.
|
|
6776
|
+
*/
|
|
6777
|
+
interface InboundEmail {
|
|
6778
|
+
id: string;
|
|
6779
|
+
messageId: string | null;
|
|
6780
|
+
/** SMTP envelope sender (return-path) of the inbound mail. */
|
|
6781
|
+
from: string;
|
|
6782
|
+
to: string;
|
|
6783
|
+
subject: string | null;
|
|
6784
|
+
status: EmailStatus;
|
|
6785
|
+
domain: string;
|
|
6786
|
+
spamScore: number | null;
|
|
6787
|
+
threadId: string | null;
|
|
6788
|
+
createdAt: string;
|
|
6789
|
+
receivedAt: string;
|
|
6790
|
+
/** Forward-tail cursor positioned just after this email (persist to resume). */
|
|
6791
|
+
cursor: string;
|
|
6792
|
+
/** Reply to this email. Reply-only agents may reply to senders that mailed them. */
|
|
6793
|
+
reply(input: ReplyInput, options?: RequestOptions): Promise<SendResult>;
|
|
6794
|
+
}
|
|
6795
|
+
interface InboxStreamOptions {
|
|
6796
|
+
/** Resume cursor. Omit to stream from the beginning (oldest-first) then tail. */
|
|
6797
|
+
since?: string;
|
|
6798
|
+
/** Per-request long-poll hold in seconds (1-30). Default 30. */
|
|
6799
|
+
waitSeconds?: number;
|
|
6800
|
+
/** Stop the stream when this fires. */
|
|
6801
|
+
signal?: AbortSignal;
|
|
6802
|
+
}
|
|
6803
|
+
interface WaitForNextOptions {
|
|
6804
|
+
since?: string;
|
|
6805
|
+
waitSeconds?: number;
|
|
6806
|
+
signal?: AbortSignal;
|
|
6807
|
+
}
|
|
6808
|
+
/**
|
|
6809
|
+
* Inbound mail, grouped under `client.inbox`. Wraps the GET /v1/emails forward
|
|
6810
|
+
* tail (`?since` + `?wait` long-poll) so an agent's receive loop is a single
|
|
6811
|
+
* `for await`, with the cursor advanced for you.
|
|
6812
|
+
*/
|
|
6813
|
+
declare class InboxResource {
|
|
6814
|
+
private readonly client;
|
|
6815
|
+
constructor(client: PrimitiveApiClient["client"]);
|
|
6816
|
+
/**
|
|
6817
|
+
* Stream inbound emails as they arrive. Long-polls the forward tail, yielding
|
|
6818
|
+
* one email at a time and advancing the cursor. Resumes from `since` (omit to
|
|
6819
|
+
* start oldest-first); stops when `signal` aborts.
|
|
6820
|
+
*
|
|
6821
|
+
* for await (const email of client.inbox.stream()) {
|
|
6822
|
+
* await email.reply("got it");
|
|
6823
|
+
* }
|
|
6824
|
+
*/
|
|
6825
|
+
stream(options?: InboxStreamOptions): AsyncGenerator<InboundEmail, void, void>;
|
|
6826
|
+
/**
|
|
6827
|
+
* Resolve with the next inbound email after `since`, or null if none arrives
|
|
6828
|
+
* within the wait window. One-shot form of `stream`; pass your current cursor
|
|
6829
|
+
* as `since` to wait for genuinely new mail.
|
|
6830
|
+
*/
|
|
6831
|
+
waitForNext(options?: WaitForNextOptions): Promise<InboundEmail | null>;
|
|
6832
|
+
}
|
|
6833
|
+
/** Account introspection, grouped under `client.account`. */
|
|
6834
|
+
declare class AccountResource {
|
|
6835
|
+
private readonly client;
|
|
6836
|
+
constructor(client: PrimitiveApiClient["client"]);
|
|
6837
|
+
/**
|
|
6838
|
+
* The authenticated account: plan, limits, granted `entitlements` (e.g. an
|
|
6839
|
+
* emailless agent sees only reply-only keys), and `managed_inbox_address`
|
|
6840
|
+
* (the From address to reply as).
|
|
6841
|
+
*/
|
|
6842
|
+
get(options?: RequestOptions): Promise<Account>;
|
|
6843
|
+
}
|
|
6730
6844
|
declare class PrimitiveClient extends PrimitiveApiClient {
|
|
6731
6845
|
/** Agent-account lifecycle operations (create, claim/upgrade). */
|
|
6732
6846
|
readonly agent: AgentResource;
|
|
6847
|
+
/** Inbound mail: long-poll stream + waitForNext over the forward tail. */
|
|
6848
|
+
readonly inbox: InboxResource;
|
|
6849
|
+
/** Account introspection (plan, limits, entitlements, managed inbox). */
|
|
6850
|
+
readonly account: AccountResource;
|
|
6733
6851
|
send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
|
|
6734
6852
|
/**
|
|
6735
6853
|
* Semantic / hybrid / keyword search across received and sent mail.
|
|
@@ -6762,5 +6880,26 @@ declare class PrimitiveClient extends PrimitiveApiClient {
|
|
|
6762
6880
|
}
|
|
6763
6881
|
declare function createPrimitiveClient(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
6764
6882
|
declare function client(options?: PrimitiveClientOptions): PrimitiveClient;
|
|
6883
|
+
interface CreateAgentOptions extends CreateAgentAccountInput {
|
|
6884
|
+
/** Base URL + transport overrides for the returned client. */
|
|
6885
|
+
client?: PrimitiveClientOptions;
|
|
6886
|
+
}
|
|
6887
|
+
interface CreatedAgent {
|
|
6888
|
+
/** A PrimitiveClient already authenticated with the new agent's API key. */
|
|
6889
|
+
client: PrimitiveClient;
|
|
6890
|
+
/** The provisioned managed inbox FQDN (the address to receive + reply as). */
|
|
6891
|
+
address: string | null;
|
|
6892
|
+
/** The raw create-account result (api_key shown once, org_id, plan, limits). */
|
|
6893
|
+
account: AgentAccountResult;
|
|
6894
|
+
}
|
|
6895
|
+
/**
|
|
6896
|
+
* Zero-to-receiving in one call: create an emailless agent account (no auth)
|
|
6897
|
+
* and return a PrimitiveClient already wired with its one-time API key, plus
|
|
6898
|
+
* the provisioned managed inbox. From here `result.client.inbox.stream()` and
|
|
6899
|
+
* `result.client.send(...)` work immediately.
|
|
6900
|
+
*
|
|
6901
|
+
* const { client, address } = await createAgent({ terms_accepted: true });
|
|
6902
|
+
*/
|
|
6903
|
+
declare function createAgent(options: CreateAgentOptions): Promise<CreatedAgent>;
|
|
6765
6904
|
//#endregion
|
|
6766
|
-
export { getThread as $, InboxStatusFunctionSummary as $a, StorageStats as $c, GetEmailResponses as $i, VerifyAgentClaimError as $l, Cursor as $n, PollCliLoginError as $o, DownloadRawEmailError as $r, SemanticSearchScoreBreakdown as $s, AgentSignupResendResult as $t, createFunction as A, GetSentEmailData as Aa, StartAgentClaimError as Ac, FunctionTestRunDeliveryEndpoint as Ai, UpdateDomainInput as Al, CreateEndpointErrors as An, ListFunctionLogsError as Ao, DeliveryStatus as Ar, ResendCliSignupVerificationResponse as As, updateAccount as At, ResponseStyle as Au, downloadDomainZoneFile as B, GetThreadData as Ba, StartAgentSignupResponses as Bc, GetAccountError as Bi, UpdateFilterError as Bl, CreateFunctionData as Bn, ListFunctionsError as Bo, DomainDnsRecord as Br, SearchEmailsError as Bs, AccountUpdated as Bt, createPrimitiveApiClient as C, GetOrgRoutingTopologyResponse as Ca, SetFunctionSecretData as Cc, FunctionRouteBody as Ci, UpdateAccountErrors as Cl, CreateAgentClaimLinkError as Cn, ListEnvelope as Co, DeleteFunctionResponse as Cr, ResendAgentSignupVerificationInput as Cs, startAgentClaim as Ct, Client as Cu, createAgentClaimLink as D, GetSendPermissionsErrors as Da, SetFunctionSecretResponse as Dc, FunctionSecretWriteResult as Di, UpdateDomainData as Dl, CreateAgentClaimLinkResponses as Dn, ListFiltersResponse as Do, DeleteFunctionSecretErrors as Dr, ResendCliSignupVerificationError as Ds, testEndpoint as Dt, Options$1 as Du, createAgentAccount as E, GetSendPermissionsError as Ea, SetFunctionSecretInput as Ec, FunctionSecretListItem as Ei, UpdateAccountResponses as El, CreateAgentClaimLinkResponse as En, ListFiltersErrors as Eo, DeleteFunctionSecretError as Er, ResendCliSignupVerificationData as Es, startCliSignup as Et, CreateClientConfig as Eu, deleteFilter as F, GetStorageStatsData as Fa, StartAgentSignupData as Fc, FunctionTestRunState as Fi, UpdateEndpointErrors as Fl, CreateFilterError as Fn, ListFunctionSecretsError as Fo, DiscardEmailContentErrors as Fr, RotateWebhookSecretErrors as Fs, verifyAgentClaim as Ft, getFunction as G, GetWebhookSecretData as Ga, StartCliLoginResponse as Gc, GetConversationError as Gi, UpdateFunctionData as Gl, CreateFunctionResponses as Gn, ListSentEmailsError as Go, DownloadAttachmentsResponse as Gr, SemanticSearchData as Gs, AddDomainResponse as Gt, getAccount as H, GetThreadErrors as Ha, StartCliLoginError as Hc, GetAccountResponse as Hi, UpdateFilterInput as Hl, CreateFunctionErrors as Hn, ListFunctionsResponse as Ho, DownloadAttachmentsData as Hr, SearchEmailsResponse as Hs, AddDomainError as Ht, deleteFunction as I, GetStorageStatsError as Ia, StartAgentSignupError as Ic, FunctionTestRunTrace as Ii, UpdateEndpointInput as Il, CreateFilterErrors as In, ListFunctionSecretsErrors as Io, DiscardEmailContentResponse as Ir, RotateWebhookSecretResponse as Is, verifyAgentSignup as It, getInboxStatus as J, GetWebhookSecretResponse as Ja, StartCliSignupError as Jc, GetConversationResponses as Ji, UpdateFunctionInput as Jl, CreateFunctionSecretError as Jn, ListSentEmailsResponses as Jo, DownloadDomainZoneFileError as Jr, SemanticSearchField as Js, AgentAccountUpgradeHint as Jt, getFunctionRouting as K, GetWebhookSecretError as Ka, StartCliLoginResponses as Kc, GetConversationErrors as Ki, UpdateFunctionError as Kl, CreateFunctionResult as Kn, ListSentEmailsErrors as Ko, DownloadAttachmentsResponses as Kr, SemanticSearchError as Ks, AddDomainResponses as Kt, deleteFunctionSecret as L, GetStorageStatsErrors as La, StartAgentSignupErrors as Lc, GateDenial as Li, UpdateEndpointResponse as Ll, CreateFilterInput as Ln, ListFunctionSecretsResponse as Lo, DiscardEmailContentResponses as Lr, RotateWebhookSecretResponses as Ls, verifyCliSignup as Lt, deleteDomain as M, GetSentEmailErrors as Ma, StartAgentClaimInput as Mc, FunctionTestRunOutboundRequest as Mi, UpdateDomainResponses as Ml, CreateEndpointResponse as Mn, ListFunctionLogsResponse as Mo, DiscardContentResult as Mr, ResourceId as Ms, updateEndpoint as Mt, Auth as Mu, deleteEmail as N, GetSentEmailResponse as Na, StartAgentClaimResponse as Nc, FunctionTestRunReply as Ni, UpdateEndpointData as Nl, CreateEndpointResponses as Nn, ListFunctionLogsResponses as No, DiscardEmailContentData as Nr, RotateWebhookSecretData as Ns, updateFilter as Nt, createEndpoint as O, GetSendPermissionsResponse as Oa, SetFunctionSecretResponses as Oc, FunctionTestRun as Oi, UpdateDomainError as Ol, CreateEndpointData as On, ListFiltersResponses as Oo, DeleteFunctionSecretResponse as Or, ResendCliSignupVerificationErrors as Os, testFunction as Ot, RequestOptions$2 as Ou, deleteEndpoint as P, GetSentEmailResponses as Pa, StartAgentClaimResponses as Pc, FunctionTestRunSend as Pi, UpdateEndpointError as Pl, CreateFilterData as Pn, ListFunctionSecretsData as Po, DiscardEmailContentError as Pr, RotateWebhookSecretError as Ps, updateFunction as Pt, getStorageStats as Q, InboxStatusEndpointSummary as Qa, StartCliSignupResponses as Qc, GetEmailResponse as Qi, VerifyAgentClaimData as Ql, CreateFunctionSecretResponses as Qn, PollCliLoginData as Qo, DownloadRawEmailData as Qr, SemanticSearchResult as Qs, AgentOrgRef as Qt, discardEmailContent as R, GetStorageStatsResponse as Ra, StartAgentSignupInput as Rc, GateFix as Ri, UpdateEndpointResponses as Rl, CreateFilterResponse as Rn, ListFunctionSecretsResponses as Ro, DkimSignature as Rr, RoutingTopology as Rs, verifyDomain as Rt, RequestOptions$1 as S, GetOrgRoutingTopologyErrors as Sa, SetFunctionRouteResponses as Sc, FunctionLogRow as Si, UpdateAccountError as Sl, CreateAgentClaimLinkData as Sn, ListEndpointsResponses as So, DeleteFunctionErrors as Sr, ResendAgentSignupVerificationErrors as Ss, setFunctionSecret as St, createClient as Su, cliLogout as T, GetSendPermissionsData as Ta, SetFunctionSecretErrors as Tc, FunctionRouting as Ti, UpdateAccountResponse as Tl, CreateAgentClaimLinkInput as Tn, ListFiltersError as To, DeleteFunctionSecretData as Tr, ResendAgentSignupVerificationResponses as Ts, startCliLogin as Tt, Config as Tu, getConversation as U, GetThreadResponse as Ua, StartCliLoginErrors as Uc, GetAccountResponses as Ui, UpdateFilterResponse as Ul, CreateFunctionInput as Un, ListFunctionsResponses as Uo, DownloadAttachmentsError as Ur, SearchEmailsResponses as Us, AddDomainErrors as Ut, downloadRawEmail as V, GetThreadError as Va, StartCliLoginData as Vc, GetAccountErrors as Vi, UpdateFilterErrors as Vl, CreateFunctionError as Vn, ListFunctionsErrors as Vo, DomainVerifyResult as Vr, SearchEmailsErrors as Vs, AddDomainData as Vt, getEmail as W, GetThreadResponses as Wa, StartCliLoginInput as Wc, GetConversationData as Wi, UpdateFilterResponses as Wl, CreateFunctionResponse as Wn, ListSentEmailsData as Wo, DownloadAttachmentsErrors as Wr, SemanticSearchCoverage as Ws, AddDomainInput as Wt, getSendPermissions as X, InboxStatus as Xa, StartCliSignupInput as Xc, GetEmailError as Xi, UpdateFunctionResponses as Xl, CreateFunctionSecretInput as Xn, ParsedEmailData as Xo, DownloadDomainZoneFileResponse as Xr, SemanticSearchMeta as Xs, AgentClaimResult as Xt, getOrgRoutingTopology as Y, GetWebhookSecretResponses as Ya, StartCliSignupErrors as Yc, GetEmailData as Yi, UpdateFunctionResponse as Yl, CreateFunctionSecretErrors as Yn, PaginationMeta as Yo, DownloadDomainZoneFileErrors as Yr, SemanticSearchInput as Ys, AgentClaimLinkResult as Yt, getSentEmail as Z, InboxStatusDomain as Za, StartCliSignupResponse as Zc, GetEmailErrors as Zi, VerifiedDomain as Zl, CreateFunctionSecretResponse as Zn, PlanLimits as Zo, DownloadDomainZoneFileResponses as Zr, SemanticSearchResponses as Zs, AgentClaimStartResult as Zt, DEFAULT_API_BASE_URL as _, GetInboxStatusErrors as _a, SentEmailSummary as _c, ErrorResponse as _i, UnsetFunctionRouteErrors as _l, CreateAgentAccountError as _n, ListEmailsResponses as _o, DeleteFilterErrors as _r, ReplyToEmailErrors as _s, sdk_gen_d_exports as _t, VerifyDomainError as _u, ReplyInput as a, GetFunctionRoutingData as aa, SendEmailResponses as ac, EmailAuth as ai, TestEndpointResponses as al, CliLogoutError as an, ListDeliveriesErrors as ao, DeleteEmailData as ar, ReplayDeliveryError as as, listFilters as at, VerifyAgentSignupError as au, PrimitiveApiError as b, GetOrgRoutingTopologyData as ba, SetFunctionRouteErrors as bc, FunctionDetail as bi, UnverifiedDomain as bl, CreateAgentAccountResponse as bn, ListEndpointsErrors as bo, DeleteFunctionData as br, ResendAgentSignupVerificationData as bs, sendEmail as bt, VerifyDomainResponses as bu, SendAttachment as c, GetFunctionRoutingResponse as ca, SendMailResult as cc, EmailSearchFacetBucket as ci, TestFunctionErrors as cl, CliLogoutResponse as cn, ListDomainsData as co, DeleteEmailResponse as cr, ReplayDeliveryResponses as cs, listFunctions as ct, VerifyAgentSignupResponse as cu, SendThreadInput as d, GetFunctionTestRunTraceError as da, SendPermissionManagedZone as dc, EmailSearchMeta as di, TestInvocationResult as dl, CliSignupResendResult as dn, ListDomainsResponse as do, DeleteEndpointError as dr, ReplayEmailWebhooksErrors as ds, replayDelivery as dt, VerifyCliSignupError as du, GetFunctionData as ea, SemanticSearchSnippet as ec, DownloadRawEmailErrors as ei, SuccessEnvelope as el, AgentSignupStartResult as en, InboxStatusNextAction as eo, DeleteDomainData as er, PollCliLoginErrors as es, getWebhookSecret as et, VerifyAgentClaimErrors as eu, client as f, GetFunctionTestRunTraceErrors as fa, SendPermissionRule as fc, EmailSearchResult as fi, TestResult as fl, CliSignupStartResult as fn, ListDomainsResponses as fo, DeleteEndpointErrors as fr, ReplayEmailWebhooksResponse as fs, replayEmailWebhooks as ft, VerifyCliSignupErrors as fu, verifyWebhookSignature as g, GetInboxStatusError as ga, SentEmailStatus as gc, Endpoint as gi, UnsetFunctionRouteError as gl, CreateAgentAccountData as gn, ListEmailsResponse as go, DeleteFilterError as gr, ReplyToEmailError as gs, rotateWebhookSecret as gt, VerifyDomainData as gu, VerifyOptions as h, GetInboxStatusData as ha, SentEmailDetail as hc, EmailWebhookStatus as hi, UnsetFunctionRouteData as hl, ConversationMessage as hn, ListEmailsErrors as ho, DeleteFilterData as hr, ReplyToEmailData as hs, resendCliSignupVerification as ht, VerifyCliSignupResponses as hu, PrimitiveClientOptions as i, GetFunctionResponses as ia, SendEmailResponse as ic, EmailAttachment as ii, TestEndpointResponse as il, CliLogoutData as in, ListDeliveriesError as io, DeleteDomainResponses as ir, ReplayDeliveryData as is, listEndpoints as it, VerifyAgentSignupData as iu, createFunctionSecret as j, GetSentEmailError as ja, StartAgentClaimErrors as jc, FunctionTestRunInboundEmail as ji, UpdateDomainResponse as jl, CreateEndpointInput as jn, ListFunctionLogsErrors as jo, DeliverySummary as jr, ResendCliSignupVerificationResponses as js, updateDomain as jt, createConfig as ju, createFilter as k, GetSendPermissionsResponses as ka, StartAgentClaimData as kc, FunctionTestRunDelivery as ki, UpdateDomainErrors as kl, CreateEndpointError as kn, ListFunctionLogsData as ko, DeleteFunctionSecretResponses as kr, ResendCliSignupVerificationInput as ks, unsetFunctionRoute as kt, RequestResult as ku, SendInput as l, GetFunctionRoutingResponses as la, SendPermissionAddress as lc, EmailSearchFacets as li, TestFunctionResponse as ll, CliLogoutResponses as ln, ListDomainsError as lo, DeleteEmailResponses as lr, ReplayEmailWebhooksData as ls, listSentEmails as lt, VerifyAgentSignupResponses as lu, PRIMITIVE_SIGNATURE_HEADER as m, GetFunctionTestRunTraceResponses as ma, SendPermissionsMeta as mc, EmailSummary as mi, ThreadMessage as ml, Conversation as mn, ListEmailsError as mo, DeleteEndpointResponses as mr, ReplayResult as ms, resendAgentSignupVerification as mt, VerifyCliSignupResponse as mu, ForwardInput as n, GetFunctionErrors as na, SendEmailError as nc, DownloadRawEmailResponses as ni, TestEndpointError as nl, CliLoginPollResult as nn, Limit as no, DeleteDomainErrors as nr, PollCliLoginResponse as ns, listDomains as nt, VerifyAgentClaimResponse as nu, RequestOptions as o, GetFunctionRoutingError as oa, SendMailAttachment as oc, EmailDetail as oi, TestFunctionData as ol, CliLogoutErrors as on, ListDeliveriesResponse as oo, DeleteEmailError as or, ReplayDeliveryErrors as os, listFunctionLogs as ot, VerifyAgentSignupErrors as ou, createPrimitiveClient as p, GetFunctionTestRunTraceResponse as pa, SendPermissionYourDomain as pc, EmailStatus as pi, Thread as pl, CliSignupVerifyResult as pn, ListEmailsData as po, DeleteEndpointResponse as pr, ReplayEmailWebhooksResponses as ps, replyToEmail as pt, VerifyCliSignupInput as pu, getFunctionTestRunTrace as q, GetWebhookSecretErrors as qa, StartCliSignupData as qc, GetConversationResponse as qi, UpdateFunctionErrors as ql, CreateFunctionSecretData as qn, ListSentEmailsResponse as qo, DownloadDomainZoneFileData as qr, SemanticSearchErrors as qs, AgentAccountResult as qt, PrimitiveClient as r, GetFunctionResponse as ra, SendEmailErrors as rc, EmailAddress as ri, TestEndpointErrors as rl, CliLoginStartResult as rn, ListDeliveriesData as ro, DeleteDomainResponse as rr, PollCliLoginResponses as rs, listEmails as rt, VerifyAgentClaimResponses as ru, SemanticSearchResponse as s, GetFunctionRoutingErrors as sa, SendMailInput as sc, EmailDetailReply as si, TestFunctionError as sl, CliLogoutInput as sn, ListDeliveriesResponses as so, DeleteEmailErrors as sr, ReplayDeliveryResponse as ss, listFunctionSecrets as st, VerifyAgentSignupInput as su, AgentResource as t, GetFunctionError as ta, SendEmailData as tc, DownloadRawEmailResponse as ti, TestEndpointData as tl, AgentSignupVerifyResult as tn, InboxStatusRecentEmailSummary as to, DeleteDomainError as tr, PollCliLoginInput as ts, listDeliveries as tt, VerifyAgentClaimInput as tu, SendResult as u, GetFunctionTestRunTraceData as ua, SendPermissionAnyRecipient as uc, EmailSearchHighlights as ui, TestFunctionResponses as ul, CliLogoutResult as un, ListDomainsErrors as uo, DeleteEndpointData as ur, ReplayEmailWebhooksError as us, pollCliLogin as ut, VerifyCliSignupData as uu, PrimitiveApiClient as v, GetInboxStatusResponse as va, SetFunctionRouteData as vc, Filter as vi, UnsetFunctionRouteResponse as vl, CreateAgentAccountErrors as vn, ListEndpointsData as vo, DeleteFilterResponse as vr, ReplyToEmailResponse as vs, searchEmails as vt, VerifyDomainErrors as vu, addDomain as w, GetOrgRoutingTopologyResponses as wa, SetFunctionSecretError as wc, FunctionRouteResult as wi, UpdateAccountInput as wl, CreateAgentClaimLinkErrors as wn, ListFiltersData as wo, DeleteFunctionResponses as wr, ResendAgentSignupVerificationResponse as ws, startAgentSignup as wt, ClientOptions as wu, PrimitiveApiErrorDetails as x, GetOrgRoutingTopologyError as xa, SetFunctionRouteResponse as xc, FunctionListItem as xi, UpdateAccountData as xl, CreateAgentAccountResponses as xn, ListEndpointsResponse as xo, DeleteFunctionError as xr, ResendAgentSignupVerificationError as xs, setFunctionRoute as xt, WebhookSecret as xu, PrimitiveApiClientOptions as y, GetInboxStatusResponses as ya, SetFunctionRouteError as yc, FunctionDeployStatus as yi, UnsetFunctionRouteResponses as yl, CreateAgentAccountInput as yn, ListEndpointsError as yo, DeleteFilterResponses as yr, ReplyToEmailResponses as ys, semanticSearch as yt, VerifyDomainResponse as yu, downloadAttachments as z, GetStorageStatsResponses as za, StartAgentSignupResponse as zc, GetAccountData as zi, UpdateFilterData as zl, CreateFilterResponses as zn, ListFunctionsData as zo, Domain as zr, SearchEmailsData as zs, Account as zt };
|
|
6905
|
+
export { getFunction as $, GetWebhookSecretData as $a, StartCliLoginResponse as $c, GetConversationError as $i, UpdateFunctionData as $l, CreateFunctionResponses as $n, ListSentEmailsError as $o, DownloadAttachmentsResponse as $r, SemanticSearchData as $s, AddDomainResponse as $t, RequestOptions$1 as A, GetOrgRoutingTopologyErrors as Aa, SetFunctionRouteResponses as Ac, FunctionLogRow as Ai, UpdateAccountError as Al, CreateAgentClaimLinkData as An, ListEndpointsResponses as Ao, DeleteFunctionErrors as Ar, ResendAgentSignupVerificationErrors as As, setFunctionSecret as At, createClient as Au, deleteDomain as B, GetSentEmailErrors as Ba, StartAgentClaimInput as Bc, FunctionTestRunOutboundRequest as Bi, UpdateDomainResponses as Bl, CreateEndpointResponse as Bn, ListFunctionLogsResponse as Bo, DiscardContentResult as Br, ResourceId as Bs, updateEndpoint as Bt, Auth as Bu, VerifyOptions as C, GetInboxStatusData as Ca, SentEmailDetail as Cc, EmailWebhookStatus as Ci, UnsetFunctionRouteData as Cl, ConversationMessage as Cn, ListEmailsErrors as Co, DeleteFilterData as Cr, ReplyToEmailData as Cs, resendCliSignupVerification as Ct, VerifyCliSignupResponses as Cu, PrimitiveApiClientOptions as D, GetInboxStatusResponses as Da, SetFunctionRouteError as Dc, FunctionDeployStatus as Di, UnsetFunctionRouteResponses as Dl, CreateAgentAccountInput as Dn, ListEndpointsError as Do, DeleteFilterResponses as Dr, ReplyToEmailResponses as Ds, semanticSearch as Dt, VerifyDomainResponse as Du, PrimitiveApiClient as E, GetInboxStatusResponse as Ea, SetFunctionRouteData as Ec, Filter as Ei, UnsetFunctionRouteResponse as El, CreateAgentAccountErrors as En, ListEndpointsData as Eo, DeleteFilterResponse as Er, ReplyToEmailResponse as Es, searchEmails as Et, VerifyDomainErrors as Eu, createAgentClaimLink as F, GetSendPermissionsErrors as Fa, SetFunctionSecretResponse as Fc, FunctionSecretWriteResult as Fi, UpdateDomainData as Fl, CreateAgentClaimLinkResponses as Fn, ListFiltersResponse as Fo, DeleteFunctionSecretErrors as Fr, ResendCliSignupVerificationError as Fs, testEndpoint as Ft, Options$1 as Fu, deleteFunctionSecret as G, GetStorageStatsErrors as Ga, StartAgentSignupErrors as Gc, GateDenial as Gi, UpdateEndpointResponse as Gl, CreateFilterInput as Gn, ListFunctionSecretsResponse as Go, DiscardEmailContentResponses as Gr, RotateWebhookSecretResponses as Gs, verifyCliSignup as Gt, deleteEndpoint as H, GetSentEmailResponses as Ha, StartAgentClaimResponses as Hc, FunctionTestRunSend as Hi, UpdateEndpointError as Hl, CreateFilterData as Hn, ListFunctionSecretsData as Ho, DiscardEmailContentError as Hr, RotateWebhookSecretError as Hs, updateFunction as Ht, createEndpoint as I, GetSendPermissionsResponse as Ia, SetFunctionSecretResponses as Ic, FunctionTestRun as Ii, UpdateDomainError as Il, CreateEndpointData as In, ListFiltersResponses as Io, DeleteFunctionSecretResponse as Ir, ResendCliSignupVerificationErrors as Is, testFunction as It, RequestOptions$2 as Iu, downloadDomainZoneFile as J, GetThreadData as Ja, StartAgentSignupResponses as Jc, GetAccountError as Ji, UpdateFilterError as Jl, CreateFunctionData as Jn, ListFunctionsError as Jo, DomainDnsRecord as Jr, SearchEmailsError as Js, AccountUpdated as Jt, discardEmailContent as K, GetStorageStatsResponse as Ka, StartAgentSignupInput as Kc, GateFix as Ki, UpdateEndpointResponses as Kl, CreateFilterResponse as Kn, ListFunctionSecretsResponses as Ko, DkimSignature as Kr, RoutingTopology as Ks, verifyDomain as Kt, createFilter as L, GetSendPermissionsResponses as La, StartAgentClaimData as Lc, FunctionTestRunDelivery as Li, UpdateDomainErrors as Ll, CreateEndpointError as Ln, ListFunctionLogsData as Lo, DeleteFunctionSecretResponses as Lr, ResendCliSignupVerificationInput as Ls, unsetFunctionRoute as Lt, RequestResult as Lu, addDomain as M, GetOrgRoutingTopologyResponses as Ma, SetFunctionSecretError as Mc, FunctionRouteResult as Mi, UpdateAccountInput as Ml, CreateAgentClaimLinkErrors as Mn, ListFiltersData as Mo, DeleteFunctionResponses as Mr, ResendAgentSignupVerificationResponse as Ms, startAgentSignup as Mt, ClientOptions as Mu, cliLogout as N, GetSendPermissionsData as Na, SetFunctionSecretErrors as Nc, FunctionRouting as Ni, UpdateAccountResponse as Nl, CreateAgentClaimLinkInput as Nn, ListFiltersError as No, DeleteFunctionSecretData as Nr, ResendAgentSignupVerificationResponses as Ns, startCliLogin as Nt, Config as Nu, PrimitiveApiError as O, GetOrgRoutingTopologyData as Oa, SetFunctionRouteErrors as Oc, FunctionDetail as Oi, UnverifiedDomain as Ol, CreateAgentAccountResponse as On, ListEndpointsErrors as Oo, DeleteFunctionData as Or, ResendAgentSignupVerificationData as Os, sendEmail as Ot, VerifyDomainResponses as Ou, createAgentAccount as P, GetSendPermissionsError as Pa, SetFunctionSecretInput as Pc, FunctionSecretListItem as Pi, UpdateAccountResponses as Pl, CreateAgentClaimLinkResponse as Pn, ListFiltersErrors as Po, DeleteFunctionSecretError as Pr, ResendCliSignupVerificationData as Ps, startCliSignup as Pt, CreateClientConfig as Pu, getEmail as Q, GetThreadResponses as Qa, StartCliLoginInput as Qc, GetConversationData as Qi, UpdateFilterResponses as Ql, CreateFunctionResponse as Qn, ListSentEmailsData as Qo, DownloadAttachmentsErrors as Qr, SemanticSearchCoverage as Qs, AddDomainInput as Qt, createFunction as R, GetSentEmailData as Ra, StartAgentClaimError as Rc, FunctionTestRunDeliveryEndpoint as Ri, UpdateDomainInput as Rl, CreateEndpointErrors as Rn, ListFunctionLogsError as Ro, DeliveryStatus as Rr, ResendCliSignupVerificationResponse as Rs, updateAccount as Rt, ResponseStyle as Ru, PRIMITIVE_SIGNATURE_HEADER as S, GetFunctionTestRunTraceResponses as Sa, SendPermissionsMeta as Sc, EmailSummary as Si, ThreadMessage as Sl, Conversation as Sn, ListEmailsError as So, DeleteEndpointResponses as Sr, ReplayResult as Ss, resendAgentSignupVerification as St, VerifyCliSignupResponse as Su, DEFAULT_API_BASE_URL as T, GetInboxStatusErrors as Ta, SentEmailSummary as Tc, ErrorResponse as Ti, UnsetFunctionRouteErrors as Tl, CreateAgentAccountError as Tn, ListEmailsResponses as To, DeleteFilterErrors as Tr, ReplyToEmailErrors as Ts, sdk_gen_d_exports as Tt, VerifyDomainError as Tu, deleteFilter as U, GetStorageStatsData as Ua, StartAgentSignupData as Uc, FunctionTestRunState as Ui, UpdateEndpointErrors as Ul, CreateFilterError as Un, ListFunctionSecretsError as Uo, DiscardEmailContentErrors as Ur, RotateWebhookSecretErrors as Us, verifyAgentClaim as Ut, deleteEmail as V, GetSentEmailResponse as Va, StartAgentClaimResponse as Vc, FunctionTestRunReply as Vi, UpdateEndpointData as Vl, CreateEndpointResponses as Vn, ListFunctionLogsResponses as Vo, DiscardEmailContentData as Vr, RotateWebhookSecretData as Vs, updateFilter as Vt, deleteFunction as W, GetStorageStatsError as Wa, StartAgentSignupError as Wc, FunctionTestRunTrace as Wi, UpdateEndpointInput as Wl, CreateFilterErrors as Wn, ListFunctionSecretsErrors as Wo, DiscardEmailContentResponse as Wr, RotateWebhookSecretResponse as Ws, verifyAgentSignup as Wt, getAccount as X, GetThreadErrors as Xa, StartCliLoginError as Xc, GetAccountResponse as Xi, UpdateFilterInput as Xl, CreateFunctionErrors as Xn, ListFunctionsResponse as Xo, DownloadAttachmentsData as Xr, SearchEmailsResponse as Xs, AddDomainError as Xt, downloadRawEmail as Y, GetThreadError as Ya, StartCliLoginData as Yc, GetAccountErrors as Yi, UpdateFilterErrors as Yl, CreateFunctionError as Yn, ListFunctionsErrors as Yo, DomainVerifyResult as Yr, SearchEmailsErrors as Ys, AddDomainData as Yt, getConversation as Z, GetThreadResponse as Za, StartCliLoginErrors as Zc, GetAccountResponses as Zi, UpdateFilterResponse as Zl, CreateFunctionInput as Zn, ListFunctionsResponses as Zo, DownloadAttachmentsError as Zr, SearchEmailsResponses as Zs, AddDomainErrors as Zt, SendThreadInput as _, GetFunctionRoutingResponses as _a, SendPermissionAddress as _c, EmailSearchFacets as _i, TestFunctionResponse as _l, CliLogoutResponses as _n, ListDomainsError as _o, DeleteEmailResponses as _r, ReplayEmailWebhooksData as _s, listSentEmails as _t, VerifyAgentSignupResponses as _u, ForwardInput as a, GetEmailErrors as aa, SemanticSearchResponses as ac, DownloadDomainZoneFileResponses as ai, StartCliSignupResponse as al, AgentClaimStartResult as an, InboxStatusDomain as ao, CreateFunctionSecretResponse as ar, PlanLimits as as, getSentEmail as at, VerifiedDomain as au, createAgent as b, GetFunctionTestRunTraceErrors as ba, SendPermissionRule as bc, EmailSearchResult as bi, TestResult as bl, CliSignupStartResult as bn, ListDomainsResponses as bo, DeleteEndpointErrors as br, ReplayEmailWebhooksResponse as bs, replayEmailWebhooks as bt, VerifyCliSignupErrors as bu, InboxStreamOptions as c, GetFunctionData as ca, SemanticSearchSnippet as cc, DownloadRawEmailErrors as ci, SuccessEnvelope as cl, AgentSignupStartResult as cn, InboxStatusNextAction as co, DeleteDomainData as cr, PollCliLoginErrors as cs, getWebhookSecret as ct, VerifyAgentClaimErrors as cu, ReplyInput as d, GetFunctionResponse as da, SendEmailErrors as dc, EmailAddress as di, TestEndpointErrors as dl, CliLoginStartResult as dn, ListDeliveriesData as do, DeleteDomainResponse as dr, PollCliLoginResponses as ds, listEmails as dt, VerifyAgentClaimResponses as du, GetConversationErrors as ea, SemanticSearchError as ec, DownloadAttachmentsResponses as ei, StartCliLoginResponses as el, AddDomainResponses as en, GetWebhookSecretError as eo, CreateFunctionResult as er, ListSentEmailsErrors as es, getFunctionRouting as et, UpdateFunctionError as eu, RequestOptions as f, GetFunctionResponses as fa, SendEmailResponse as fc, EmailAttachment as fi, TestEndpointResponse as fl, CliLogoutData as fn, ListDeliveriesError as fo, DeleteDomainResponses as fr, ReplayDeliveryData as fs, listEndpoints as ft, VerifyAgentSignupData as fu, SendResult as g, GetFunctionRoutingResponse as ga, SendMailResult as gc, EmailSearchFacetBucket as gi, TestFunctionErrors as gl, CliLogoutResponse as gn, ListDomainsData as go, DeleteEmailResponse as gr, ReplayDeliveryResponses as gs, listFunctions as gt, VerifyAgentSignupResponse as gu, SendInput as h, GetFunctionRoutingErrors as ha, SendMailInput as hc, EmailDetailReply as hi, TestFunctionError as hl, CliLogoutInput as hn, ListDeliveriesResponses as ho, DeleteEmailErrors as hr, ReplayDeliveryResponse as hs, listFunctionSecrets as ht, VerifyAgentSignupInput as hu, CreatedAgent as i, GetEmailError as ia, SemanticSearchMeta as ic, DownloadDomainZoneFileResponse as ii, StartCliSignupInput as il, AgentClaimResult as in, InboxStatus as io, CreateFunctionSecretInput as ir, ParsedEmailData as is, getSendPermissions as it, UpdateFunctionResponses as iu, createPrimitiveApiClient as j, GetOrgRoutingTopologyResponse as ja, SetFunctionSecretData as jc, FunctionRouteBody as ji, UpdateAccountErrors as jl, CreateAgentClaimLinkError as jn, ListEnvelope as jo, DeleteFunctionResponse as jr, ResendAgentSignupVerificationInput as js, startAgentClaim as jt, Client as ju, PrimitiveApiErrorDetails as k, GetOrgRoutingTopologyError as ka, SetFunctionRouteResponse as kc, FunctionListItem as ki, UpdateAccountData as kl, CreateAgentAccountResponses as kn, ListEndpointsResponse as ko, DeleteFunctionError as kr, ResendAgentSignupVerificationError as ks, setFunctionRoute as kt, WebhookSecret as ku, PrimitiveClient as l, GetFunctionError as la, SendEmailData as lc, DownloadRawEmailResponse as li, TestEndpointData as ll, AgentSignupVerifyResult as ln, InboxStatusRecentEmailSummary as lo, DeleteDomainError as lr, PollCliLoginInput as ls, listDeliveries as lt, VerifyAgentClaimInput as lu, SendAttachment as m, GetFunctionRoutingError as ma, SendMailAttachment as mc, EmailDetail as mi, TestFunctionData as ml, CliLogoutErrors as mn, ListDeliveriesResponse as mo, DeleteEmailError as mr, ReplayDeliveryErrors as ms, listFunctionLogs as mt, VerifyAgentSignupErrors as mu, AgentResource as n, GetConversationResponses as na, SemanticSearchField as nc, DownloadDomainZoneFileError as ni, StartCliSignupError as nl, AgentAccountUpgradeHint as nn, GetWebhookSecretResponse as no, CreateFunctionSecretError as nr, ListSentEmailsResponses as ns, getInboxStatus as nt, UpdateFunctionInput as nu, InboundEmail as o, GetEmailResponse as oa, SemanticSearchResult as oc, DownloadRawEmailData as oi, StartCliSignupResponses as ol, AgentOrgRef as on, InboxStatusEndpointSummary as oo, CreateFunctionSecretResponses as or, PollCliLoginData as os, getStorageStats as ot, VerifyAgentClaimData as ou, SemanticSearchResponse as p, GetFunctionRoutingData as pa, SendEmailResponses as pc, EmailAuth as pi, TestEndpointResponses as pl, CliLogoutError as pn, ListDeliveriesErrors as po, DeleteEmailData as pr, ReplayDeliveryError as ps, listFilters as pt, VerifyAgentSignupError as pu, downloadAttachments as q, GetStorageStatsResponses as qa, StartAgentSignupResponse as qc, GetAccountData as qi, UpdateFilterData as ql, CreateFilterResponses as qn, ListFunctionsData as qo, Domain as qr, SearchEmailsData as qs, Account as qt, CreateAgentOptions as r, GetEmailData as ra, SemanticSearchInput as rc, DownloadDomainZoneFileErrors as ri, StartCliSignupErrors as rl, AgentClaimLinkResult as rn, GetWebhookSecretResponses as ro, CreateFunctionSecretErrors as rr, PaginationMeta as rs, getOrgRoutingTopology as rt, UpdateFunctionResponse as ru, InboxResource as s, GetEmailResponses as sa, SemanticSearchScoreBreakdown as sc, DownloadRawEmailError as si, StorageStats as sl, AgentSignupResendResult as sn, InboxStatusFunctionSummary as so, Cursor as sr, PollCliLoginError as ss, getThread as st, VerifyAgentClaimError as su, AccountResource as t, GetConversationResponse as ta, SemanticSearchErrors as tc, DownloadDomainZoneFileData as ti, StartCliSignupData as tl, AgentAccountResult as tn, GetWebhookSecretErrors as to, CreateFunctionSecretData as tr, ListSentEmailsResponse as ts, getFunctionTestRunTrace as tt, UpdateFunctionErrors as tu, PrimitiveClientOptions as u, GetFunctionErrors as ua, SendEmailError as uc, DownloadRawEmailResponses as ui, TestEndpointError as ul, CliLoginPollResult as un, Limit as uo, DeleteDomainErrors as ur, PollCliLoginResponse as us, listDomains as ut, VerifyAgentClaimResponse as uu, WaitForNextOptions as v, GetFunctionTestRunTraceData as va, SendPermissionAnyRecipient as vc, EmailSearchHighlights as vi, TestFunctionResponses as vl, CliLogoutResult as vn, ListDomainsErrors as vo, DeleteEndpointData as vr, ReplayEmailWebhooksError as vs, pollCliLogin as vt, VerifyCliSignupData as vu, verifyWebhookSignature as w, GetInboxStatusError as wa, SentEmailStatus as wc, Endpoint as wi, UnsetFunctionRouteError as wl, CreateAgentAccountData as wn, ListEmailsResponse as wo, DeleteFilterError as wr, ReplyToEmailError as ws, rotateWebhookSecret as wt, VerifyDomainData as wu, createPrimitiveClient as x, GetFunctionTestRunTraceResponse as xa, SendPermissionYourDomain as xc, EmailStatus as xi, Thread as xl, CliSignupVerifyResult as xn, ListEmailsData as xo, DeleteEndpointResponse as xr, ReplayEmailWebhooksResponses as xs, replyToEmail as xt, VerifyCliSignupInput as xu, client as y, GetFunctionTestRunTraceError as ya, SendPermissionManagedZone as yc, EmailSearchMeta as yi, TestInvocationResult as yl, CliSignupResendResult as yn, ListDomainsResponse as yo, DeleteEndpointError as yr, ReplayEmailWebhooksErrors as ys, replayDelivery as yt, VerifyCliSignupError as yu, createFunctionSecret as z, GetSentEmailError as za, StartAgentClaimErrors as zc, FunctionTestRunInboundEmail as zi, UpdateDomainResponse as zl, CreateEndpointInput as zn, ListFunctionLogsErrors as zo, DeliverySummary as zr, ResendCliSignupVerificationResponses as zs, updateDomain as zt, createConfig as zu };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-
|
|
1
|
+
import { I as WebhookEvent, P as ValidateEmailAuthResult, d as EmailAuth, f as EmailReceivedEvent } from "./types-QT2ss9ho.js";
|
|
2
|
+
import { m as ReceivedEmail, u as WebhookValidationError } from "./errors-DyuAXctD.js";
|
|
3
3
|
|
|
4
4
|
//#region src/validation.d.ts
|
|
5
5
|
interface ValidationSuccess<T> {
|
|
@@ -281,8 +281,8 @@ declare const emailReceivedEventJsonSchema: {
|
|
|
281
281
|
};
|
|
282
282
|
readonly event: {
|
|
283
283
|
readonly type: "string";
|
|
284
|
-
readonly
|
|
285
|
-
readonly description: "Event type identifier.
|
|
284
|
+
readonly enum: ["email.received", "email.bounced", "email.tls_report", "email.dmarc_report", "email.dmarc_failure"];
|
|
285
|
+
readonly description: "Event type identifier.\n\n- `email.received` - A normal inbound email.\n- `email.bounced` - A delivery status notification (DSN) reporting that a message delivery failed. Carries `email.analysis.bounce`.\n- `email.tls_report` - An SMTP TLS report (RFC 8460). Carries `email.analysis.tls_report`.\n- `email.dmarc_report` - A DMARC aggregate report (RFC 7489). Carries `email.analysis.dmarc_report`.\n- `email.dmarc_failure` - A DMARC failure (forensic) report.\n\nMachine-generated mail (bounces and the report types above) is delivered under its own event type rather than `email.received`, so an endpoint subscribed only to `email.received` receives just normal inbound mail. The payload shape is otherwise identical across event types; the type-specific details live under `email.analysis`.";
|
|
286
286
|
};
|
|
287
287
|
readonly version: {
|
|
288
288
|
readonly $ref: "#/definitions/WebhookVersion";
|
|
@@ -768,9 +768,280 @@ declare const emailReceivedEventJsonSchema: {
|
|
|
768
768
|
readonly $ref: "#/definitions/ForwardAnalysis";
|
|
769
769
|
readonly description: "Forward detection and analysis results.\n\nOptional. Present when the email was processed by a forward-detection pipeline (always present in Primitive's managed service). When absent, forward detection was not performed on this email.";
|
|
770
770
|
};
|
|
771
|
+
readonly bounce: {
|
|
772
|
+
readonly $ref: "#/definitions/BounceAnalysis";
|
|
773
|
+
readonly description: "Bounce (delivery status notification) analysis.\n\nPresent on `email.bounced` events: the parsed DSN reporting that a message you sent could not be delivered. Absent on all other event types.";
|
|
774
|
+
};
|
|
775
|
+
readonly tls_report: {
|
|
776
|
+
readonly $ref: "#/definitions/TlsReportAnalysis";
|
|
777
|
+
readonly description: "SMTP TLS report analysis (RFC 8460).\n\nPresent on `email.tls_report` events: a remote MTA's report of TLS negotiation results for mail sent to your domain. Absent on all other event types.";
|
|
778
|
+
};
|
|
779
|
+
readonly dmarc_report: {
|
|
780
|
+
readonly $ref: "#/definitions/DmarcReportAnalysis";
|
|
781
|
+
readonly description: "DMARC aggregate report analysis (RFC 7489).\n\nPresent on `email.dmarc_report` events: a receiver's periodic aggregate report of DMARC authentication results for your domain. Absent on all other event types.";
|
|
782
|
+
};
|
|
771
783
|
};
|
|
772
784
|
readonly description: "Email analysis and classification results.\n\nAll properties in this object are optional. Which fields are present depends on the analysis pipeline processing the email. Primitive's managed service populates all fields. Self-hosted or third-party deployments may include some, all, or none of these fields depending on their pipeline configuration.\n\nWhen a field is absent, it means that particular analysis was not performed, not that the analysis produced no results. For example, a missing `spamassassin` field means SpamAssassin was not run, not that the email scored 0.\n\nThese fields may be omitted from the payload entirely but must not be set to null.";
|
|
773
785
|
};
|
|
786
|
+
readonly BounceAnalysis: {
|
|
787
|
+
readonly type: "object";
|
|
788
|
+
readonly properties: {
|
|
789
|
+
readonly is_bounce: {
|
|
790
|
+
readonly type: "boolean";
|
|
791
|
+
readonly const: true;
|
|
792
|
+
readonly description: "Always `true` on a parsed bounce.";
|
|
793
|
+
};
|
|
794
|
+
readonly kind: {
|
|
795
|
+
readonly type: "string";
|
|
796
|
+
readonly const: "dsn";
|
|
797
|
+
readonly description: "The machine-mail kind. Always `dsn` for a bounce.";
|
|
798
|
+
};
|
|
799
|
+
readonly type: {
|
|
800
|
+
readonly type: "string";
|
|
801
|
+
readonly enum: ["permanent", "transient", "undetermined"];
|
|
802
|
+
readonly description: "Whether the failure is permanent (hard bounce), transient (soft bounce, may be retried), or undetermined.";
|
|
803
|
+
};
|
|
804
|
+
readonly category: {
|
|
805
|
+
readonly type: "string";
|
|
806
|
+
readonly enum: ["mailbox_does_not_exist", "domain_does_not_exist", "domain_not_accepting_mail", "mailbox_full", "mailbox_inactive", "message_too_large", "content_rejected", "policy_blocked", "auth_failure", "relay_denied", "rate_limited", "network_error", "recipient_moved", "expired", "undetermined"];
|
|
807
|
+
readonly description: "Best-effort reason category for the failure.";
|
|
808
|
+
};
|
|
809
|
+
readonly classified_by: {
|
|
810
|
+
readonly type: "string";
|
|
811
|
+
readonly enum: ["status_code", "smtp_code", "pattern", "provider", "none"];
|
|
812
|
+
readonly description: "Which signal produced `category` (for transparency and debugging).";
|
|
813
|
+
};
|
|
814
|
+
readonly failed_recipient: {
|
|
815
|
+
readonly type: ["string", "null"];
|
|
816
|
+
readonly description: "The recipient address that failed, if the report identifies one.";
|
|
817
|
+
};
|
|
818
|
+
readonly smtp_code: {
|
|
819
|
+
readonly type: ["integer", "null"];
|
|
820
|
+
readonly description: "SMTP reply code (e.g. `550`), if reported.";
|
|
821
|
+
};
|
|
822
|
+
readonly status_code: {
|
|
823
|
+
readonly type: ["string", "null"];
|
|
824
|
+
readonly description: "Enhanced mail system status code (RFC 3463, e.g. `5.1.1`), if reported.";
|
|
825
|
+
};
|
|
826
|
+
readonly diagnostic_code: {
|
|
827
|
+
readonly type: ["string", "null"];
|
|
828
|
+
readonly description: "Raw diagnostic text from the reporting MTA, if present.";
|
|
829
|
+
};
|
|
830
|
+
readonly reported_by_mta: {
|
|
831
|
+
readonly type: ["string", "null"];
|
|
832
|
+
readonly description: "The MTA that generated the report, if identifiable.";
|
|
833
|
+
};
|
|
834
|
+
readonly original_message_id: {
|
|
835
|
+
readonly type: ["string", "null"];
|
|
836
|
+
readonly description: "Message-ID of the original message that bounced, if recoverable. Match this against the `message_id` of a message you sent to correlate the bounce.";
|
|
837
|
+
};
|
|
838
|
+
readonly reasons: {
|
|
839
|
+
readonly type: "array";
|
|
840
|
+
readonly items: {
|
|
841
|
+
readonly type: "string";
|
|
842
|
+
};
|
|
843
|
+
readonly description: "Human-readable reason strings extracted from the report.";
|
|
844
|
+
};
|
|
845
|
+
};
|
|
846
|
+
readonly required: ["is_bounce", "kind", "type", "category", "classified_by", "failed_recipient", "smtp_code", "status_code", "diagnostic_code", "reported_by_mta", "original_message_id", "reasons"];
|
|
847
|
+
readonly description: "Parsed delivery status notification (bounce). Present as `email.analysis.bounce` on `email.bounced` events.";
|
|
848
|
+
};
|
|
849
|
+
readonly TlsReportFailure: {
|
|
850
|
+
readonly type: "object";
|
|
851
|
+
readonly properties: {
|
|
852
|
+
readonly result_type: {
|
|
853
|
+
readonly type: ["string", "null"];
|
|
854
|
+
readonly description: "Failure result type (e.g. `certificate-expired`, `starttls-not-supported`).";
|
|
855
|
+
};
|
|
856
|
+
readonly count: {
|
|
857
|
+
readonly type: "integer";
|
|
858
|
+
readonly description: "Number of sessions that hit this failure.";
|
|
859
|
+
};
|
|
860
|
+
readonly sending_mta_ip: {
|
|
861
|
+
readonly type: ["string", "null"];
|
|
862
|
+
};
|
|
863
|
+
readonly receiving_mx_hostname: {
|
|
864
|
+
readonly type: ["string", "null"];
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
readonly required: ["result_type", "count", "sending_mta_ip", "receiving_mx_hostname"];
|
|
868
|
+
};
|
|
869
|
+
readonly TlsReportPolicy: {
|
|
870
|
+
readonly type: "object";
|
|
871
|
+
readonly properties: {
|
|
872
|
+
readonly policy_domain: {
|
|
873
|
+
readonly type: ["string", "null"];
|
|
874
|
+
};
|
|
875
|
+
readonly policy_type: {
|
|
876
|
+
readonly type: ["string", "null"];
|
|
877
|
+
readonly description: "Policy type the sessions were evaluated against (e.g. `sts`, `tlsa`, `no-policy-found`).";
|
|
878
|
+
};
|
|
879
|
+
readonly successful_sessions: {
|
|
880
|
+
readonly type: "integer";
|
|
881
|
+
};
|
|
882
|
+
readonly failed_sessions: {
|
|
883
|
+
readonly type: "integer";
|
|
884
|
+
};
|
|
885
|
+
readonly failures: {
|
|
886
|
+
readonly type: "array";
|
|
887
|
+
readonly items: {
|
|
888
|
+
readonly $ref: "#/definitions/TlsReportFailure";
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
readonly required: ["policy_domain", "policy_type", "successful_sessions", "failed_sessions", "failures"];
|
|
893
|
+
};
|
|
894
|
+
readonly TlsReportAnalysis: {
|
|
895
|
+
readonly type: "object";
|
|
896
|
+
readonly properties: {
|
|
897
|
+
readonly kind: {
|
|
898
|
+
readonly type: "string";
|
|
899
|
+
readonly const: "tls_report";
|
|
900
|
+
};
|
|
901
|
+
readonly organization: {
|
|
902
|
+
readonly type: ["string", "null"];
|
|
903
|
+
readonly description: "Reporting organization name.";
|
|
904
|
+
};
|
|
905
|
+
readonly report_id: {
|
|
906
|
+
readonly type: ["string", "null"];
|
|
907
|
+
};
|
|
908
|
+
readonly contact: {
|
|
909
|
+
readonly type: ["string", "null"];
|
|
910
|
+
readonly description: "Reporter contact, if provided.";
|
|
911
|
+
};
|
|
912
|
+
readonly date_range: {
|
|
913
|
+
readonly type: "object";
|
|
914
|
+
readonly properties: {
|
|
915
|
+
readonly start: {
|
|
916
|
+
readonly type: ["string", "null"];
|
|
917
|
+
readonly description: "ISO 8601 start of the reporting window.";
|
|
918
|
+
};
|
|
919
|
+
readonly end: {
|
|
920
|
+
readonly type: ["string", "null"];
|
|
921
|
+
readonly description: "ISO 8601 end of the reporting window.";
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
readonly required: ["start", "end"];
|
|
925
|
+
};
|
|
926
|
+
readonly total_successful_sessions: {
|
|
927
|
+
readonly type: "integer";
|
|
928
|
+
};
|
|
929
|
+
readonly total_failed_sessions: {
|
|
930
|
+
readonly type: "integer";
|
|
931
|
+
};
|
|
932
|
+
readonly policies: {
|
|
933
|
+
readonly type: "array";
|
|
934
|
+
readonly items: {
|
|
935
|
+
readonly $ref: "#/definitions/TlsReportPolicy";
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
readonly required: ["kind", "organization", "report_id", "contact", "date_range", "total_successful_sessions", "total_failed_sessions", "policies"];
|
|
940
|
+
readonly description: "Parsed SMTP TLS report (RFC 8460). Present as `email.analysis.tls_report` on `email.tls_report` events.";
|
|
941
|
+
};
|
|
942
|
+
readonly DmarcRecord: {
|
|
943
|
+
readonly type: "object";
|
|
944
|
+
readonly properties: {
|
|
945
|
+
readonly source_ip: {
|
|
946
|
+
readonly type: ["string", "null"];
|
|
947
|
+
};
|
|
948
|
+
readonly count: {
|
|
949
|
+
readonly type: "integer";
|
|
950
|
+
};
|
|
951
|
+
readonly disposition: {
|
|
952
|
+
readonly type: ["string", "null"];
|
|
953
|
+
readonly description: "Disposition applied by the receiver: `none`, `quarantine`, or `reject`.";
|
|
954
|
+
};
|
|
955
|
+
readonly dkim: {
|
|
956
|
+
readonly type: ["string", "null"];
|
|
957
|
+
readonly description: "DKIM alignment result: `pass` or `fail`.";
|
|
958
|
+
};
|
|
959
|
+
readonly spf: {
|
|
960
|
+
readonly type: ["string", "null"];
|
|
961
|
+
readonly description: "SPF alignment result: `pass` or `fail`.";
|
|
962
|
+
};
|
|
963
|
+
readonly header_from: {
|
|
964
|
+
readonly type: ["string", "null"];
|
|
965
|
+
};
|
|
966
|
+
};
|
|
967
|
+
readonly required: ["source_ip", "count", "disposition", "dkim", "spf", "header_from"];
|
|
968
|
+
};
|
|
969
|
+
readonly DmarcReportAnalysis: {
|
|
970
|
+
readonly type: "object";
|
|
971
|
+
readonly properties: {
|
|
972
|
+
readonly kind: {
|
|
973
|
+
readonly type: "string";
|
|
974
|
+
readonly const: "dmarc_report";
|
|
975
|
+
};
|
|
976
|
+
readonly organization: {
|
|
977
|
+
readonly type: ["string", "null"];
|
|
978
|
+
};
|
|
979
|
+
readonly report_id: {
|
|
980
|
+
readonly type: ["string", "null"];
|
|
981
|
+
};
|
|
982
|
+
readonly date_range: {
|
|
983
|
+
readonly type: "object";
|
|
984
|
+
readonly properties: {
|
|
985
|
+
readonly start: {
|
|
986
|
+
readonly type: ["string", "null"];
|
|
987
|
+
readonly description: "ISO 8601 start of the reporting window.";
|
|
988
|
+
};
|
|
989
|
+
readonly end: {
|
|
990
|
+
readonly type: ["string", "null"];
|
|
991
|
+
readonly description: "ISO 8601 end of the reporting window.";
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
readonly required: ["start", "end"];
|
|
995
|
+
};
|
|
996
|
+
readonly policy_published: {
|
|
997
|
+
readonly type: "object";
|
|
998
|
+
readonly properties: {
|
|
999
|
+
readonly domain: {
|
|
1000
|
+
readonly type: ["string", "null"];
|
|
1001
|
+
};
|
|
1002
|
+
readonly p: {
|
|
1003
|
+
readonly type: ["string", "null"];
|
|
1004
|
+
readonly description: "Published domain policy: `none`, `quarantine`, or `reject`.";
|
|
1005
|
+
};
|
|
1006
|
+
readonly sp: {
|
|
1007
|
+
readonly type: ["string", "null"];
|
|
1008
|
+
readonly description: "Published subdomain policy.";
|
|
1009
|
+
};
|
|
1010
|
+
readonly pct: {
|
|
1011
|
+
readonly type: ["integer", "null"];
|
|
1012
|
+
readonly description: "Percentage of messages the policy is applied to.";
|
|
1013
|
+
};
|
|
1014
|
+
readonly adkim: {
|
|
1015
|
+
readonly type: ["string", "null"];
|
|
1016
|
+
readonly description: "DKIM alignment mode: `r` (relaxed) or `s` (strict).";
|
|
1017
|
+
};
|
|
1018
|
+
readonly aspf: {
|
|
1019
|
+
readonly type: ["string", "null"];
|
|
1020
|
+
readonly description: "SPF alignment mode: `r` (relaxed) or `s` (strict).";
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
readonly required: ["domain", "p", "sp", "pct", "adkim", "aspf"];
|
|
1024
|
+
};
|
|
1025
|
+
readonly total_count: {
|
|
1026
|
+
readonly type: "integer";
|
|
1027
|
+
readonly description: "Total messages covered by the report.";
|
|
1028
|
+
};
|
|
1029
|
+
readonly dkim_pass_count: {
|
|
1030
|
+
readonly type: "integer";
|
|
1031
|
+
};
|
|
1032
|
+
readonly spf_pass_count: {
|
|
1033
|
+
readonly type: "integer";
|
|
1034
|
+
};
|
|
1035
|
+
readonly records: {
|
|
1036
|
+
readonly type: "array";
|
|
1037
|
+
readonly items: {
|
|
1038
|
+
readonly $ref: "#/definitions/DmarcRecord";
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
readonly required: ["kind", "organization", "report_id", "date_range", "policy_published", "total_count", "dkim_pass_count", "spf_pass_count", "records"];
|
|
1043
|
+
readonly description: "Parsed DMARC aggregate report (RFC 7489). Present as `email.analysis.dmarc_report` on `email.dmarc_report` events.";
|
|
1044
|
+
};
|
|
774
1045
|
readonly ForwardAnalysis: {
|
|
775
1046
|
readonly type: "object";
|
|
776
1047
|
readonly properties: {
|