@primitivedotdev/sdk 1.23.0 → 1.24.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.
@@ -799,7 +799,7 @@ type PaginationMeta = {
799
799
  type ErrorResponse = {
800
800
  success: boolean;
801
801
  error: {
802
- code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'not_scheduled' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code' | 'invalid_signup_code' | 'invalid_signup_token' | 'invalid_verification_code' | 'email_delivery_failed' | 'clerk_signup_failed' | 'no_orgs_for_user' | 'org_not_accessible' | 'feature_disabled' | 'memory_conflict' | 'template_not_installable' | 'scaffold_only' | 'invalid_variables' | 'unknown_secrets' | 'missing_secrets' | 'no_inbound_domain' | 'domain_cannot_send' | 'address_taken' | 'route_cap_reached' | 'name_exhausted' | 'developer_usage_credit_exhausted' | 'no_payout_address' | 'ownership_proof_failed' | 'payment_verification_failed' | 'payment_declined' | 'challenge_expired' | 'settlement_failed' | 'pull_unavailable' | 'subscription_conflict' | 'subscription_limit' | 'subscription_disabled' | 'request_aborted' | 'event_content_unavailable' | 'event_preparation_failed' | 'subscription_unavailable' | 'stale_delivery';
802
+ code: 'unauthorized' | 'forbidden' | 'not_found' | 'validation_error' | 'rate_limit_exceeded' | 'internal_error' | 'conflict' | 'mx_conflict' | 'not_scheduled' | 'attachment_changed' | 'content_discarded' | 'attachment_limit_exceeded' | 'attachment_integrity_failed' | 'attachment_not_ready' | 'attachment_storage_unavailable' | 'outbound_disabled' | 'cannot_send_from_domain' | 'recipient_not_allowed' | 'outbound_key_missing' | 'outbound_unreachable' | 'outbound_key_invalid' | 'outbound_capacity_exhausted' | 'outbound_response_malformed' | 'outbound_relay_failed' | 'discard_not_enabled' | 'inbound_not_repliable' | 'search_timeout' | 'authorization_pending' | 'slow_down' | 'access_denied' | 'expired_token' | 'invalid_device_code' | 'invalid_signup_code' | 'invalid_signup_token' | 'invalid_verification_code' | 'email_delivery_failed' | 'clerk_signup_failed' | 'no_orgs_for_user' | 'org_not_accessible' | 'feature_disabled' | 'memory_conflict' | 'template_not_installable' | 'scaffold_only' | 'invalid_variables' | 'unknown_secrets' | 'missing_secrets' | 'no_inbound_domain' | 'domain_cannot_send' | 'address_taken' | 'route_cap_reached' | 'name_exhausted' | 'developer_usage_credit_exhausted' | 'no_payout_address' | 'ownership_proof_failed' | 'payment_verification_failed' | 'payment_declined' | 'challenge_expired' | 'settlement_failed' | 'pull_unavailable' | 'subscription_conflict' | 'subscription_limit' | 'subscription_disabled' | 'request_aborted' | 'event_content_unavailable' | 'event_preparation_failed' | 'subscription_unavailable' | 'stale_delivery';
803
803
  message: string;
804
804
  /**
805
805
  * Optional structured data that callers can inspect to recover
@@ -2739,6 +2739,30 @@ type SentEmailDetail = SentEmailSummary & {
2739
2739
  *
2740
2740
  */
2741
2741
  body_html?: string | null;
2742
+ /**
2743
+ * Metadata for submitted inline attachments; download availability is reported separately. Metadata may exist when the archive is unavailable, and legacy sends may have no metadata. Offloaded payload files are not included in the inline archive.
2744
+ */
2745
+ attachments?: Array<{
2746
+ filename: string | null;
2747
+ content_type: string;
2748
+ size_bytes: number;
2749
+ sha256: string;
2750
+ part_index: number;
2751
+ tar_path: string;
2752
+ [key: string]: unknown;
2753
+ }>;
2754
+ /**
2755
+ * Original decoded attachment byte total accepted for this send, not the compressed archive size. It may exceed the retained inline total after offloading.
2756
+ */
2757
+ attachments_size_bytes?: number;
2758
+ /**
2759
+ * Whether attachments enumerates the complete original submitted attachment set, including zero-byte and inline CID parts. True requires no submitted payload-reference, offloaded, or visibility-filtered attachment to be omitted, retained content, and a published archive when the attachment inventory is nonempty. False or absent provides no completeness proof, including for legacy or discarded content. This field grants no download access and has no interaction semantics.
2760
+ */
2761
+ attachments_complete?: boolean;
2762
+ /**
2763
+ * Whether an inline attachment archive has been successfully retained and is available for download. Download authorization is checked separately; address-bound agent connection keys cannot download archives.
2764
+ */
2765
+ attachments_download_available?: boolean;
2742
2766
  };
2743
2767
  /**
2744
2768
  * A threaded inbound reply to one of the org's sends, keyed by
@@ -4528,6 +4552,10 @@ type TemplateInstallStatus = {
4528
4552
  created_at: string;
4529
4553
  updated_at: string;
4530
4554
  };
4555
+ /**
4556
+ * The attachment metadata `part_index`, not its offset in the attachments array
4557
+ */
4558
+ type AttachmentPartIndex = number;
4531
4559
  /**
4532
4560
  * Resource UUID
4533
4561
  */
@@ -5729,6 +5757,128 @@ type DownloadAttachmentsResponses = {
5729
5757
  200: Blob | File;
5730
5758
  };
5731
5759
  type DownloadAttachmentsResponse = DownloadAttachmentsResponses[keyof DownloadAttachmentsResponses];
5760
+ type DownloadEmailAttachmentPartData = {
5761
+ body?: never;
5762
+ path: {
5763
+ /**
5764
+ * Resource UUID
5765
+ */
5766
+ id: string;
5767
+ /**
5768
+ * The attachment metadata `part_index`, not its offset in the attachments array
5769
+ */
5770
+ part_index: number;
5771
+ };
5772
+ query?: never;
5773
+ url: '/emails/{id}/attachments/{part_index}';
5774
+ };
5775
+ type DownloadEmailAttachmentPartErrors = {
5776
+ /**
5777
+ * Invalid request parameters
5778
+ */
5779
+ 400: ErrorResponse;
5780
+ /**
5781
+ * Invalid or missing API key
5782
+ */
5783
+ 401: ErrorResponse;
5784
+ /**
5785
+ * Authenticated caller lacks permission for the operation
5786
+ */
5787
+ 403: ErrorResponse;
5788
+ /**
5789
+ * Missing or inaccessible message, or missing attachment part
5790
+ */
5791
+ 404: ErrorResponse;
5792
+ /**
5793
+ * attachment_changed; refresh email detail before selecting a part again
5794
+ */
5795
+ 409: ErrorResponse;
5796
+ /**
5797
+ * content_discarded; the original content is no longer available
5798
+ */
5799
+ 410: ErrorResponse;
5800
+ /**
5801
+ * attachment_limit_exceeded; the attachment exceeds download limits
5802
+ */
5803
+ 413: ErrorResponse;
5804
+ /**
5805
+ * attachment_integrity_failed; stored content failed integrity validation
5806
+ */
5807
+ 502: ErrorResponse;
5808
+ /**
5809
+ * attachment_not_ready or attachment_storage_unavailable; retry after the indicated delay
5810
+ */
5811
+ 503: ErrorResponse;
5812
+ };
5813
+ type DownloadEmailAttachmentPartError = DownloadEmailAttachmentPartErrors[keyof DownloadEmailAttachmentPartErrors];
5814
+ type DownloadEmailAttachmentPartResponses = {
5815
+ /**
5816
+ * Original attachment bytes; never a JSON envelope or a base64 string
5817
+ */
5818
+ 200: Blob | File;
5819
+ };
5820
+ type DownloadEmailAttachmentPartResponse = DownloadEmailAttachmentPartResponses[keyof DownloadEmailAttachmentPartResponses];
5821
+ type DownloadSentAttachmentPartData = {
5822
+ body?: never;
5823
+ path: {
5824
+ /**
5825
+ * Resource UUID
5826
+ */
5827
+ id: string;
5828
+ /**
5829
+ * The attachment metadata `part_index`, not its offset in the attachments array
5830
+ */
5831
+ part_index: number;
5832
+ };
5833
+ query?: never;
5834
+ url: '/sent-emails/{id}/attachments/{part_index}';
5835
+ };
5836
+ type DownloadSentAttachmentPartErrors = {
5837
+ /**
5838
+ * Invalid request parameters
5839
+ */
5840
+ 400: ErrorResponse;
5841
+ /**
5842
+ * Invalid or missing API key
5843
+ */
5844
+ 401: ErrorResponse;
5845
+ /**
5846
+ * Authenticated caller lacks permission for the operation
5847
+ */
5848
+ 403: ErrorResponse;
5849
+ /**
5850
+ * Missing or inaccessible message, or missing attachment part
5851
+ */
5852
+ 404: ErrorResponse;
5853
+ /**
5854
+ * attachment_changed; refresh email detail before selecting a part again
5855
+ */
5856
+ 409: ErrorResponse;
5857
+ /**
5858
+ * content_discarded; the original content is no longer available
5859
+ */
5860
+ 410: ErrorResponse;
5861
+ /**
5862
+ * attachment_limit_exceeded; the attachment exceeds download limits
5863
+ */
5864
+ 413: ErrorResponse;
5865
+ /**
5866
+ * attachment_integrity_failed; stored content failed integrity validation
5867
+ */
5868
+ 502: ErrorResponse;
5869
+ /**
5870
+ * attachment_not_ready or attachment_storage_unavailable; retry after the indicated delay
5871
+ */
5872
+ 503: ErrorResponse;
5873
+ };
5874
+ type DownloadSentAttachmentPartError = DownloadSentAttachmentPartErrors[keyof DownloadSentAttachmentPartErrors];
5875
+ type DownloadSentAttachmentPartResponses = {
5876
+ /**
5877
+ * Original attachment bytes; never a JSON envelope or a base64 string
5878
+ */
5879
+ 200: Blob | File;
5880
+ };
5881
+ type DownloadSentAttachmentPartResponse = DownloadSentAttachmentPartResponses[keyof DownloadSentAttachmentPartResponses];
5732
5882
  type ReplyToEmailData = {
5733
5883
  body: ReplyInput$1;
5734
5884
  path: {
@@ -9433,7 +9583,7 @@ type GetAgentResponses = {
9433
9583
  };
9434
9584
  type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
9435
9585
  declare namespace sdk_gen_d_exports {
9436
- export { Options, addDomain, awaitReply, cancelSentEmail, checkDomainDns, cliLogout, completeWebhookEvent, createAgentAccount, createAgentClaimLink, createChallenge, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getOutboundStatus, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, payChallenge, pollCliLogin, publishAgent, pullWebhookEvent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, rescheduleSentEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testEndpointRules, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain };
9586
+ export { Options, addDomain, awaitReply, cancelSentEmail, checkDomainDns, cliLogout, completeWebhookEvent, createAgentAccount, createAgentClaimLink, createChallenge, createEmailChallenge, createEndpoint, createFilter, createFunction, createFunctionSecret, createOrgSecret, createRegistry, createRoute, createWakeAuthorization, createWakeSchedule, decideRegistryRequest, defineAgent, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, deleteMemory, deleteOrgSecret, deleteRegistry, deleteRoute, deleteWakeAuthorization, deleteWakeSchedule, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadEmailAttachmentPart, downloadRawEmail, downloadSentAttachmentPart, getAccount, getAgent, getChallenge, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getMemory, getOrgRoutingTopology, getOutboundStatus, getRegistry, getSendPermissions, getSentEmail, getSpendPolicy, getStorageStats, getTemplate, getTemplateInstall, getThread, getWakeSchedule, getWebhookSecret, installTemplate, listDeclinedPayments, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listOrgSecrets, listPayoutAddresses, listRegistries, listRegistryAgents, listRegistryRequests, listRoutes, listSentEmails, listTemplates, listWakeAuthorizations, listWakeDispatches, listWakeSchedules, payChallenge, pollCliLogin, publishAgent, pullWebhookEvent, registerPayoutAddress, reorderRoutes, replayDelivery, replayEmailWebhooks, replyToEmail, rescheduleSentEmail, resendAgentSignupVerification, resendCliSignupVerification, resolveRegistryHandle, rotateWebhookSecret, runWakeSchedule, searchEmails, searchMemories, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, setMemory, setOrgSecret, simulateRoute, startAgentClaim, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testEndpointRules, testFunction, unpublishAgent, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, updateRegistry, updateRoute, updateSpendPolicy, updateWakeAuthorization, updateWakeSchedule, verifyAgentClaim, verifyAgentSignup, verifyCliSignup, verifyDomain };
9437
9587
  }
9438
9588
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
9439
9589
  /**
@@ -9813,6 +9963,35 @@ declare const downloadRawEmail: <ThrowOnError extends boolean = false>(options:
9813
9963
  *
9814
9964
  */
9815
9965
  declare const downloadAttachments: <ThrowOnError extends boolean = false>(options: Options<DownloadAttachmentsData, ThrowOnError>) => RequestResult<DownloadAttachmentsResponses, DownloadAttachmentsErrors, ThrowOnError, "fields">;
9966
+ /**
9967
+ * Download one inbound email attachment
9968
+ *
9969
+ * Pending service release. This contract does not establish live availability.
9970
+ * Downloads the original bytes of one ordinary email attachment, selected by
9971
+ * its metadata `part_index`, not its position in an attachments array. Refresh
9972
+ * the email detail after `attachment_changed` before choosing an index again.
9973
+ * Uses bearer authentication only; signed raw-email download tokens are not accepted.
9974
+ * A paired-agent credential may read only a message addressed to its claimed address.
9975
+ * Function credentials are denied. Other bearer credentials retain their
9976
+ * existing email access boundaries. This endpoint serves email bytes only.
9977
+ *
9978
+ */
9979
+ declare const downloadEmailAttachmentPart: <ThrowOnError extends boolean = false>(options: Options<DownloadEmailAttachmentPartData, ThrowOnError>) => RequestResult<DownloadEmailAttachmentPartResponses, DownloadEmailAttachmentPartErrors, ThrowOnError, "fields">;
9980
+ /**
9981
+ * Download one sent email attachment
9982
+ *
9983
+ * Pending service release. This contract does not establish live availability.
9984
+ * Downloads the original bytes of one ordinary email attachment, selected by
9985
+ * its metadata `part_index`, not its position in an attachments array. Refresh
9986
+ * the email detail after `attachment_changed` before choosing an index again.
9987
+ * Uses bearer authentication only; signed raw-email download tokens are not accepted.
9988
+ * A paired-agent credential may read only mail sent from its claimed address.
9989
+ * Receiving a copy does not authorize downloading another sender's sent content.
9990
+ * Function credentials are denied. Other bearer credentials retain their
9991
+ * existing email access boundaries. This endpoint serves email bytes only.
9992
+ *
9993
+ */
9994
+ declare const downloadSentAttachmentPart: <ThrowOnError extends boolean = false>(options: Options<DownloadSentAttachmentPartData, ThrowOnError>) => RequestResult<DownloadSentAttachmentPartResponses, DownloadSentAttachmentPartErrors, ThrowOnError, "fields">;
9816
9995
  /**
9817
9996
  * Reply to an inbound email
9818
9997
  *
@@ -11211,6 +11390,13 @@ interface MemorySearchResponse {
11211
11390
  meta: PaginationMeta;
11212
11391
  }
11213
11392
  type PrimitiveClientOptions = PrimitiveApiClientOptions;
11393
+ /** Original attachment bytes and server-provided download metadata. */
11394
+ interface AttachmentPartDownload {
11395
+ bytes: Uint8Array;
11396
+ sha256: string | null;
11397
+ contentDisposition: string | null;
11398
+ cacheControl: string | null;
11399
+ }
11214
11400
  /**
11215
11401
  * Agent-account operations, grouped under `client.agent`.
11216
11402
  *
@@ -11351,6 +11537,11 @@ declare class PrimitiveClient extends PrimitiveApiClient {
11351
11537
  /** Durable JSON key-value state for agents and Functions. */
11352
11538
  readonly memories: MemoriesResource;
11353
11539
  constructor(options?: PrimitiveClientOptions);
11540
+ /** Pending service release. Use the attachment metadata index, not its array offset. */
11541
+ downloadEmailAttachmentPart(id: string, partIndex: number, options?: RequestOptions): Promise<AttachmentPartDownload>;
11542
+ /** Pending service release. Sent content requires access to the sending identity. */
11543
+ downloadSentAttachmentPart(id: string, partIndex: number, options?: RequestOptions): Promise<AttachmentPartDownload>;
11544
+ private downloadAttachmentPart;
11354
11545
  send(input: SendInput, options?: RequestOptions): Promise<SendResult>;
11355
11546
  /**
11356
11547
  * Send an attachment of any size in one call. Small attachments are delivered
@@ -11422,4 +11613,4 @@ interface CreatedAgent {
11422
11613
  */
11423
11614
  declare function createAgent(options: CreateAgentOptions): Promise<CreatedAgent>;
11424
11615
  //#endregion
11425
- export { createEmailChallenge as $, UpdateWakeAuthorizationError as $_, DeleteDomainErrors as $a, GetFunctionTestRunTraceErrors as $c, ListSentEmailsError as $d, PublishAgentResponses as $f, UnsetFunctionRouteError as $g, StartCliLoginErrors as $h, CreateFunctionResponse as $i, GetTemplateInstallResponse as $l, SendPermissionAddress as $m, updateFilter as $n, DeleteWakeScheduleData as $o, ResendCliSignupVerificationData as $p, CliSignupStartResult as $r, FunctionLogRow as $s, listEmails as $t, ListEndpointsError as $u, Options$1 as $v, client as A, UpdateFunctionErrors as A_, CreateWakeAuthorizationResponse as Aa, GetChallengeResponses as Ac, ListPayoutAddressesError as Ad, OrgSecretWriteResult as Af, TestEndpointResponses as Ag, SetOrgSecretResponse as Ah, CreateChallengeResponses as Ai, GetSendPermissionsResponse as Al, SearchMemoriesErrors as Am, runWakeSchedule as An, DeleteMemoryResponse as Ao, ReplayEmailWebhooksData as Ap, AwaitReplyResponse as Ar, DownloadRawEmailError as As, getConversation as At, InstallTemplateResponses as Au, VerifyDomainError as Av, PrimitiveApiError as B, UpdateRouteData as B_, DecideRegistryRequestError as Ba, GetEmailResponses as Bc, ListRegistryAgentsResponse as Bd, PayChallengeResponses as Bf, TestFunctionErrors as Bg, StartAgentClaimError as Bh, CreateEndpointInput as Bi, GetSpendPolicyResponse as Bl, SemanticSearchResponses as Bm, simulateRoute as Bn, DeleteRegistryErrors as Bo, ReplyToEmailResponse as Bp, CheckDomainDnsErrors as Br, EmailSearchFacets as Bs, getSendPermissions as Bt, ListDeliveriesResponse as Bu, X402EmailChallenge as Bv, SendAttachment as C, UpdateFilterError as C_, CreateRouteInput as Ca, GetAgentErrors as Cc, ListFunctionsResponses as Cd, MemoryKeyQuery as Cf, TemplateSource as Cg, SetMemoryInput as Ch, CreateAgentClaimLinkResponse as Ci, GetRegistryError as Cl, SearchEmailsData as Cm, replayEmailWebhooks as Cn, DeleteFunctionSecretError as Co, ReorderRoutesResponse as Cp, AgentOrgRef as Cr, DownloadAttachmentsResponses as Cs, discardEmailContent as Ct, InboxStatusNextAction as Cu, VerifyCliSignupData as Cv, SendResult as D, UpdateFilterResponses as D_, CreateWakeAuthorizationError as Da, GetChallengeError as Dc, ListOrgSecretsResponse as Dd, MemoryScopeQueryType as Df, TestEndpointError as Dg, SetOrgSecretError as Dh, CreateChallengeErrors as Di, GetSendPermissionsData as Dl, SearchEmailsResponses as Dm, resendCliSignupVerification as Dn, DeleteMemoryData as Do, ReplayDeliveryErrors as Dp, AwaitReplyData as Dr, DownloadDomainZoneFileResponse as Ds, getAccount as Dt, InstallTemplateError as Du, VerifyCliSignupResponse as Dv, SendPayloadReference as E, UpdateFilterResponse as E_, CreateWakeAuthorizationData as Ea, GetChallengeData as Ec, ListOrgSecretsErrors as Ed, MemoryScopeId as Ef, TestEndpointData as Eg, SetOrgSecretData as Eh, CreateChallengeError as Ei, GetRegistryResponses as El, SearchEmailsResponse as Em, resendAgentSignupVerification as En, DeleteFunctionSecretResponses as Eo, ReplayDeliveryError as Ep, AgentSignupVerifyResult as Er, DownloadDomainZoneFileErrors as Es, downloadRawEmail as Et, InstallTemplateData as Eu, VerifyCliSignupInput as Ev, verifyWebhookSignature as F, UpdateRegistryError as F_, CreateWakeScheduleInput as Fa, GetConversationResponses as Fc, ListRegistriesError as Fd, PayChallengeData as Ff, TestEndpointRulesResponse as Fg, SimulateRouteInput as Fh, CreateEmailChallengeResponse as Fi, GetSentEmailResponse as Fl, SemanticSearchError as Fm, sendEmail as Fn, DeleteOrgSecretErrors as Fo, ReplayResult as Fp, CancelSentEmailErrors as Fr, EmailAttachment as Fs, getInboxStatus as Ft, ListDeclinedPaymentsResponse as Fu, WakeDispatch as Fv, awaitReply as G, UpdateRouteResponses as G_, DefineAgentData as Ga, GetFunctionResponses as Gc, ListRegistryRequestsResponse as Gd, PollCliLoginInput as Gf, Thread as Gg, StartAgentSignupData as Gh, CreateFilterErrors as Gi, GetStorageStatsResponse as Gl, SendEmailError as Gm, testEndpoint as Gn, DeleteRouteErrors as Go, RescheduleSentEmailResponse as Gp, CliLogoutData as Gr, EmailSummary as Gs, getTemplateInstall as Gt, ListDomainsResponse as Gu, X402PayoutAddress as Gv, RequestOptions$1 as H, UpdateRouteErrors as H_, DecideRegistryRequestInput as Ha, GetFunctionError as Hc, ListRegistryRequestsData as Hd, PollCliLoginData as Hf, TestFunctionResponses as Hg, StartAgentClaimInput as Hh, CreateEndpointResponses as Hi, GetStorageStatsData as Hl, SemanticSearchScoreBreakdown as Hm, startAgentSignup as Hn, DeleteRegistryResponses as Ho, RescheduleSentEmailData as Hp, CheckDomainDnsResponses as Hr, EmailSearchMeta as Hs, getSpendPolicy as Ht, ListDomainsData as Hu, X402NonceBinding as Hv, isMemoryJsonValue as I, UpdateRegistryErrors as I_, CreateWakeScheduleResponse as Ia, GetEmailData as Ic, ListRegistriesErrors as Id, PayChallengeError as If, TestEndpointRulesResponses as Ig, SimulateRouteResponse as Ih, CreateEmailChallengeResponses as Ii, GetSentEmailResponses as Il, SemanticSearchErrors as Im, setFunctionRoute as In, DeleteOrgSecretResponse as Io, ReplyEmail as Ip, CancelSentEmailResponse as Ir, EmailAuth as Is, getMemory as It, ListDeclinedPaymentsResponses as Iu, WakeSchedule as Iv, cliLogout as J, UpdateSpendPolicyErrors as J_, DefineAgentInput as Ja, GetFunctionRoutingErrors as Jc, ListRoutesError as Jd, PublishAgentData as Jf, UnpublishAgentError as Jg, StartAgentSignupInput as Jh, CreateFilterResponses as Ji, GetTemplateError as Jl, SendEmailResponses as Jm, unpublishAgent as Jn, DeleteWakeAuthorizationData as Jo, ResendAgentSignupVerificationError as Jp, CliLogoutInput as Jr, ErrorResponse as Js, getWebhookSecret as Jt, ListEmailsError as Ju, createClient as Jv, cancelSentEmail as K, UpdateSpendPolicyData as K_, DefineAgentError as Ka, GetFunctionRoutingData as Kc, ListRegistryRequestsResponses as Kd, PollCliLoginResponse as Kf, ThreadMessage as Kg, StartAgentSignupError as Kh, CreateFilterInput as Ki, GetStorageStatsResponses as Kl, SendEmailErrors as Km, testEndpointRules as Kn, DeleteRouteResponse as Ko, RescheduleSentEmailResponses as Kp, CliLogoutError as Kr, EmailWebhookStatus as Ks, getThread as Kt, ListDomainsResponses as Ku, X402Receipt as Kv, DEFAULT_API_BASE_URL as L, UpdateRegistryInput as L_, CreateWakeScheduleResponses as La, GetEmailError as Lc, ListRegistriesResponse as Ld, PayChallengeErrors as Lf, TestEndpointRulesResult as Lg, SimulateRouteResponses as Lh, CreateEndpointData as Li, GetSpendPolicyData as Ll, SemanticSearchField as Lm, setFunctionSecret as Ln, DeleteOrgSecretResponses as Lo, ReplyToEmailData as Lp, CancelSentEmailResponses as Lr, EmailDetail as Ls, getOrgRoutingTopology as Lt, ListDeliveriesData as Lu, WebhookSecret as Lv, createPrimitiveClient as M, UpdateFunctionResponse as M_, CreateWakeScheduleData as Ma, GetConversationError as Mc, ListPayoutAddressesResponse as Md, OutboundStatusDomain as Mf, TestEndpointRulesError as Mg, SimulateRouteData as Mh, CreateEmailChallengeError as Mi, GetSentEmailData as Ml, SearchMemoriesResponses as Mm, searchEmails as Mn, DeleteMemoryResult as Mo, ReplayEmailWebhooksErrors as Mp, AwaitReplyResult as Mr, DownloadRawEmailResponse as Ms, getFunction as Mt, ListDeclinedPaymentsData as Mu, VerifyDomainResponse as Mv, PRIMITIVE_SIGNATURE_HEADER as N, UpdateFunctionResponses as N_, CreateWakeScheduleError as Na, GetConversationErrors as Nc, ListPayoutAddressesResponses as Nd, PaginationMeta as Nf, TestEndpointRulesErrors as Ng, SimulateRouteError as Nh, CreateEmailChallengeErrors as Ni, GetSentEmailError as Nl, SemanticSearchCoverage as Nm, searchMemories as Nn, DeleteOrgSecretData as No, ReplayEmailWebhooksResponse as Np, CancelSentEmailData as Nr, DownloadRawEmailResponses as Ns, getFunctionRouting as Nt, ListDeclinedPaymentsError as Nu, VerifyDomainResponses as Nv, SendThreadInput as O, UpdateFunctionData as O_, CreateWakeAuthorizationErrors as Oa, GetChallengeErrors as Oc, ListOrgSecretsResponses as Od, NumericString as Of, TestEndpointErrors as Og, SetOrgSecretErrors as Oh, CreateChallengeInput as Oi, GetSendPermissionsError as Ol, SearchMemoriesData as Om, resolveRegistryHandle as On, DeleteMemoryError as Oo, ReplayDeliveryResponse as Op, AwaitReplyError as Or, DownloadDomainZoneFileResponses as Os, getAgent as Ot, InstallTemplateErrors as Ou, VerifyCliSignupResponses as Ov, VerifyOptions as P, UpdateRegistryData as P_, CreateWakeScheduleErrors as Pa, GetConversationResponse as Pc, ListRegistriesData as Pd, ParsedEmailData as Pf, TestEndpointRulesInput as Pg, SimulateRouteErrors as Ph, CreateEmailChallengeInput as Pi, GetSentEmailErrors as Pl, SemanticSearchData as Pm, semanticSearch as Pn, DeleteOrgSecretError as Po, ReplayEmailWebhooksResponses as Pp, CancelSentEmailError as Pr, EmailAddress as Ps, getFunctionTestRunTrace as Pt, ListDeclinedPaymentsErrors as Pu, WakeAuthorization as Pv, createChallenge as Q, UpdateWakeAuthorizationData as Q_, DeleteDomainError as Qa, GetFunctionTestRunTraceError as Qc, ListSentEmailsData as Qd, PublishAgentResponse as Qf, UnsetFunctionRouteData as Qg, StartCliLoginError as Qh, CreateFunctionInput as Qi, GetTemplateInstallErrors as Ql, SendMailResult as Qm, updateEndpoint as Qn, DeleteWakeAuthorizationResponses as Qo, ResendAgentSignupVerificationResponses as Qp, CliSignupResendResult as Qr, FunctionListItem as Qs, listDomains as Qt, ListEndpointsData as Qu, CreateClientConfig as Qv, PrimitiveApiClient as R, UpdateRegistryResponse as R_, Cursor as Ra, GetEmailErrors as Rc, ListRegistriesResponses as Rd, PayChallengeInput as Rf, TestFunctionData as Rg, SimulateRouteResult as Rh, CreateEndpointError as Ri, GetSpendPolicyError as Rl, SemanticSearchInput as Rm, setMemory as Rn, DeleteRegistryData as Ro, ReplyToEmailError as Rp, CheckDomainDnsData as Rr, EmailDetailReply as Rs, getOutboundStatus as Rt, ListDeliveriesError as Ru, X402Challenge as Rv, SemanticSearchResponse as S, UpdateFilterData as S_, CreateRouteErrors as Sa, GetAgentError as Sc, ListFunctionsResponse as Sd, ListWakeSchedulesResponses as Sf, TemplateSetup as Sg, SetMemoryErrors as Sh, CreateAgentClaimLinkInput as Si, GetRegistryData as Sl, RunWakeScheduleResponses as Sm, replayDelivery as Sn, DeleteFunctionSecretData as So, ReorderRoutesInput as Sp, AgentClaimStartResult as Sr, DownloadAttachmentsResponse as Ss, deleteWakeSchedule as St, InboxStatusFunctionSummary as Su, VerifyAgentSignupResponses as Sv, SendInput as T, UpdateFilterInput as T_, CreateRouteResponses as Ta, GetAgentResponses as Tc, ListOrgSecretsError as Td, MemoryScope as Tf, TemplateVariableValidation as Tg, SetMemoryResponses as Th, CreateChallengeData as Ti, GetRegistryResponse as Tl, SearchEmailsErrors as Tm, rescheduleSentEmail as Tn, DeleteFunctionSecretResponse as To, ReplayDeliveryData as Tp, AgentSignupStartResult as Tr, DownloadDomainZoneFileError as Ts, downloadDomainZoneFile as Tt, InstallTemplateBody as Tu, VerifyCliSignupErrors as Tv, createPrimitiveApiClient as U, UpdateRouteInput as U_, DecideRegistryRequestResponse as Ua, GetFunctionErrors as Uc, ListRegistryRequestsError as Ud, PollCliLoginError as Uf, TestInvocationResult as Ug, StartAgentClaimResponse as Uh, CreateFilterData as Ui, GetStorageStatsError as Ul, SemanticSearchSnippet as Um, startCliLogin as Un, DeleteRouteData as Uo, RescheduleSentEmailError as Up, CliLoginPollResult as Ur, EmailSearchResult as Us, getStorageStats as Ut, ListDomainsError as Uu, X402PaymentPayload as Uv, PrimitiveApiErrorDetails as V, UpdateRouteError as V_, DecideRegistryRequestErrors as Va, GetFunctionData as Vc, ListRegistryAgentsResponses as Vd, PlanLimits as Vf, TestFunctionResponse as Vg, StartAgentClaimErrors as Vh, CreateEndpointResponse as Vi, GetSpendPolicyResponses as Vl, SemanticSearchResult as Vm, startAgentClaim as Vn, DeleteRegistryResponse as Vo, ReplyToEmailResponses as Vp, CheckDomainDnsResponse as Vr, EmailSearchHighlights as Vs, getSentEmail as Vt, ListDeliveriesResponses as Vu, X402EmailChallengeDetails as Vv, addDomain as W, UpdateRouteResponse as W_, DecideRegistryRequestResponses as Wa, GetFunctionResponse as Wc, ListRegistryRequestsErrors as Wd, PollCliLoginErrors as Wf, TestResult as Wg, StartAgentClaimResponses as Wh, CreateFilterError as Wi, GetStorageStatsErrors as Wl, SendEmailData as Wm, startCliSignup as Wn, DeleteRouteError as Wo, RescheduleSentEmailErrors as Wp, CliLoginStartResult as Wr, EmailStatus as Ws, getTemplate as Wt, ListDomainsErrors as Wu, X402PaymentRequirements as Wv, createAgentAccount as X, UpdateSpendPolicyResponse as X_, DefineAgentResponses as Xa, GetFunctionRoutingResponses as Xc, ListRoutesResponse as Xd, PublishAgentErrors as Xf, UnpublishAgentResponse as Xg, StartAgentSignupResponses as Xh, CreateFunctionError as Xi, GetTemplateInstallData as Xl, SendMailInput as Xm, updateAccount as Xn, DeleteWakeAuthorizationErrors as Xo, ResendAgentSignupVerificationInput as Xp, CliLogoutResponses as Xr, FunctionDeployStatus as Xs, listDeclinedPayments as Xt, ListEmailsResponse as Xu, ClientOptions as Xv, completeWebhookEvent as Y, UpdateSpendPolicyInput as Y_, DefineAgentResponse as Ya, GetFunctionRoutingResponse as Yc, ListRoutesErrors as Yd, PublishAgentError as Yf, UnpublishAgentErrors as Yg, StartAgentSignupResponse as Yh, CreateFunctionData as Yi, GetTemplateErrors as Yl, SendMailAttachment as Ym, unsetFunctionRoute as Yn, DeleteWakeAuthorizationError as Yo, ResendAgentSignupVerificationErrors as Yp, CliLogoutResponse as Yr, Filter as Ys, installTemplate as Yt, ListEmailsErrors as Yu, Client as Yv, createAgentClaimLink as Z, UpdateSpendPolicyResponses as Z_, DeleteDomainData as Za, GetFunctionTestRunTraceData as Zc, ListRoutesResponses as Zd, PublishAgentInput as Zf, UnpublishAgentResponses as Zg, StartCliLoginData as Zh, CreateFunctionErrors as Zi, GetTemplateInstallError as Zl, SendMailPayloadRef as Zm, updateDomain as Zn, DeleteWakeAuthorizationResponse as Zo, ResendAgentSignupVerificationResponse as Zp, CliLogoutResult as Zr, FunctionDetail as Zs, listDeliveries as Zt, ListEmailsResponses as Zu, Config as Zv, MemorySetInput as _, UpdateEndpointError as __, CreateRegistryInput as _a, GetAccountError as _c, ListFunctionSecretsResponse as _d, ListWakeDispatchesResponses as _f, TemplateRegistryPage as _g, SetFunctionSecretInput as _h, CreateAgentAccountResponse as _i, GetOutboundStatusData as _l, RoutingTopology as _m, pollCliLogin as _n, DeleteFunctionData as _o, RegistryAgent as _p, AddDomainResponses as _r, DomainDnsRecord as _s, deleteMemory as _t, GetWebhookSecretResponses as _u, VerifyAgentSignupData as _v, ForwardInput as a, UpdateAccountError as a_, CreateFunctionSecretInput as aa, FunctionTestRun as ac, ListFiltersError as ad, ListTemplatesErrors as af, StartCliSignupErrors as ag, SentEmailDetail as ah, CompleteWebhookEventResponses as ai, GetInboxStatusResponse as al, ResolveRegistryHandleData as am, listOrgSecrets as an, DeleteEmailResponse as ao, PullWebhookEventResponse as ap, updateWakeSchedule as ar, DeliverySummary as as, createRegistry as at, GetThreadErrors as au, UpdateWakeScheduleError as av, ReplyInput as b, UpdateEndpointResponse as b_, CreateRouteData as ba, GetAccountResponses as bc, ListFunctionsError as bd, ListWakeSchedulesErrors as bf, TemplateSecret as bg, SetMemoryData as bh, CreateAgentClaimLinkError as bi, GetOutboundStatusResponse as bl, RunWakeScheduleErrors as bm, registerPayoutAddress as bn, DeleteFunctionResponse as bo, ReorderRoutesError as bp, AgentClaimLinkResult as br, DownloadAttachmentsError as bs, deleteRoute as bt, InboxStatusDomain as bu, VerifyAgentSignupInput as bv, InboxStreamOptions as c, UpdateAccountResponse as c_, CreateOrgSecretData as ca, FunctionTestRunInboundEmail as cc, ListFiltersResponses as cd, ListWakeAuthorizationsData as cf, StartCliSignupResponses as cg, SentEmailSummary as ch, CompleteWebhookInput as ci, GetMemoryError as cl, ResolveRegistryHandleResponse as cm, listRegistryAgents as cn, DeleteEndpointError as co, PullWebhookResponse as cp, verifyCliSignup as cr, DiscardEmailContentError as cs, createWakeSchedule as ct, GetWakeScheduleData as cu, UpdateWakeScheduleResponse as cv, MemoryGetInput as d, UpdateDomainError as d_, CreateOrgSecretInput as da, FunctionTestRunSend as dc, ListFunctionLogsErrors as dd, ListWakeAuthorizationsResponse as df, TemplateAuthor as dg, SetFunctionRouteErrors as dh, Conversation as di, GetMemoryResponses as dl, RotateWebhookSecretData as dm, listSentEmails as dn, DeleteEndpointResponses as do, RegisterPayoutAddressError as dp, AccountUpdated as dr, DiscardEmailContentResponses as ds, deleteDomain as dt, GetWakeScheduleResponse as du, VerifyAgentClaimData as dv, UnsetFunctionRouteErrors as e_, CreateFunctionResponses as ea, FunctionRouteBody as ec, ListEndpointsErrors as ed, ListSentEmailsErrors as ef, StartCliLoginInput as eg, SendPermissionAnyRecipient as eh, CliSignupVerifyResult as ei, GetFunctionTestRunTraceResponse as el, ResendCliSignupVerificationError as em, listEndpoints as en, DeleteDomainResponse as eo, PublishAgentResult as ep, updateFunction as er, DeleteWakeScheduleError as es, createEndpoint as et, GetTemplateInstallResponses as eu, UpdateWakeAuthorizationErrors as ev, RequestOptions$2 as ey, MemoryJsonValue as f, UpdateDomainErrors as f_, CreateOrgSecretResponse as fa, FunctionTestRunState as fc, ListFunctionLogsResponse as fd, ListWakeAuthorizationsResponses as ff, TemplateInstall as fg, SetFunctionRouteResponse as fh, ConversationMessage as fi, GetOrgRoutingTopologyData as fl, RotateWebhookSecretError as fm, listTemplates as fn, DeleteFilterData as fo, RegisterPayoutAddressErrors as fp, AddDomainData as fr, DkimSignature as fs, deleteEmail as ft, GetWakeScheduleResponses as fu, VerifyAgentClaimError as fv, MemorySearchResponse as g, UpdateEndpointData as g_, CreateRegistryErrors as ga, GetAccountData as gc, ListFunctionSecretsErrors as gd, ListWakeDispatchesResponse as gf, TemplateRegistryDetail as gg, SetFunctionSecretErrors as gh, CreateAgentAccountInput as gi, GetOrgRoutingTopologyResponses as gl, RouteEvaluatedEntry as gm, payChallenge as gn, DeleteFilterResponses as go, Registry as gp, AddDomainResponse as gr, DomainDnsHealthStatus as gs, deleteFunctionSecret as gt, GetWebhookSecretResponse as gu, VerifyAgentClaimResponses as gv, MemorySearchInput as h, UpdateDomainResponses as h_, CreateRegistryError as ha, GateFix as hc, ListFunctionSecretsError as hd, ListWakeDispatchesErrors as hf, TemplateManifest as hg, SetFunctionSecretError as hh, CreateAgentAccountErrors as hi, GetOrgRoutingTopologyResponse as hl, RotateWebhookSecretResponses as hm, listWakeSchedules as hn, DeleteFilterResponse as ho, RegisterPayoutAddressResponses as hp, AddDomainInput as hr, DomainDnsHealthScope as hs, deleteFunction as ht, GetWebhookSecretErrors as hu, VerifyAgentClaimResponse as hv, CreatedAgent as i, UpdateAccountData as i_, CreateFunctionSecretErrors as ia, FunctionSecretWriteResult as ic, ListFiltersData as id, ListTemplatesError as if, StartCliSignupError as ig, SendPermissionsMeta as ih, CompleteWebhookEventResponse as ii, GetInboxStatusErrors as il, ResendCliSignupVerificationResponses as im, listFunctions as in, DeleteEmailErrors as io, PullWebhookEventErrors as ip, updateWakeAuthorization as ir, DeliveryStatus as is, createOrgSecret as it, GetThreadError as iu, UpdateWakeScheduleData as iv, Auth as iy, createAgent as j, UpdateFunctionInput as j_, CreateWakeAuthorizationResponses as ja, GetConversationData as jc, ListPayoutAddressesErrors as jd, OutboundStatus as jf, TestEndpointRulesData as jg, SetOrgSecretResponses as jh, CreateEmailChallengeData as ji, GetSendPermissionsResponses as jl, SearchMemoriesResponse as jm, sdk_gen_d_exports as jn, DeleteMemoryResponses as jo, ReplayEmailWebhooksError as jp, AwaitReplyResponses as jr, DownloadRawEmailErrors as js, getEmail as jt, Limit as ju, VerifyDomainErrors as jv, WaitForNextOptions as k, UpdateFunctionError as k_, CreateWakeAuthorizationInput as ka, GetChallengeResponse as kc, ListPayoutAddressesData as kd, OrgSecretListItem as kf, TestEndpointResponse as kg, SetOrgSecretInput as kh, CreateChallengeResponse as ki, GetSendPermissionsErrors as kl, SearchMemoriesError as km, rotateWebhookSecret as kn, DeleteMemoryErrors as ko, ReplayDeliveryResponses as kp, AwaitReplyErrors as kr, DownloadRawEmailData as ks, getChallenge as kt, InstallTemplateResponse as ku, VerifyDomainData as kv, MemoriesResource as l, UpdateAccountResponses as l_, CreateOrgSecretError as la, FunctionTestRunOutboundRequest as lc, ListFunctionLogsData as ld, ListWakeAuthorizationsError as lf, StorageStats as lg, SetFunctionRouteData as lh, CompleteWebhookResponse as li, GetMemoryErrors as ll, ResolveRegistryHandleResponses as lm, listRegistryRequests as ln, DeleteEndpointErrors as lo, RecipientRoute as lp, verifyDomain as lr, DiscardEmailContentErrors as ls, decideRegistryRequest as lt, GetWakeScheduleError as lu, UpdateWakeScheduleResponses as lv, MemoryRecordWithValue as m, UpdateDomainResponse as m_, CreateRegistryData as ma, GateDenial as mc, ListFunctionSecretsData as md, ListWakeDispatchesError as mf, TemplateInstallStatus as mg, SetFunctionSecretData as mh, CreateAgentAccountError as mi, GetOrgRoutingTopologyErrors as ml, RotateWebhookSecretResponse as mm, listWakeDispatches as mn, DeleteFilterErrors as mo, RegisterPayoutAddressResponse as mp, AddDomainErrors as mr, DomainDnsHealthCheck as ms, deleteFilter as mt, GetWebhookSecretError as mu, VerifyAgentClaimInput as mv, AgentResource as n, UnsetFunctionRouteResponses as n_, CreateFunctionSecretData as na, FunctionRouting as nc, ListEndpointsResponses as nd, ListSentEmailsResponses as nf, StartCliLoginResponses as ng, SendPermissionRule as nh, CompleteWebhookEventError as ni, GetInboxStatusData as nl, ResendCliSignupVerificationInput as nm, listFunctionLogs as nn, DeleteEmailData as no, PullWebhookEventData as np, updateRoute as nr, DeleteWakeScheduleResponse as ns, createFunction as nt, GetTemplateResponses as nu, UpdateWakeAuthorizationResponse as nv, ResponseStyle as ny, InboundEmail as o, UpdateAccountErrors as o_, CreateFunctionSecretResponse as oa, FunctionTestRunDelivery as oc, ListFiltersErrors as od, ListTemplatesResponse as of, StartCliSignupInput as og, SentEmailRescheduleInput as oh, CompleteWebhookExecInput as oi, GetInboxStatusResponses as ol, ResolveRegistryHandleError as om, listPayoutAddresses as on, DeleteEmailResponses as oo, PullWebhookEventResponses as op, verifyAgentClaim as or, DiscardContentResult as os, createRoute as ot, GetThreadResponse as ou, UpdateWakeScheduleErrors as ov, MemoryRecord as p, UpdateDomainInput as p_, CreateOrgSecretResponses as pa, FunctionTestRunTrace as pc, ListFunctionLogsResponses as pd, ListWakeDispatchesData as pf, TemplateInstallState as pg, SetFunctionRouteResponses as ph, CreateAgentAccountData as pi, GetOrgRoutingTopologyError as pl, RotateWebhookSecretErrors as pm, listWakeAuthorizations as pn, DeleteFilterError as po, RegisterPayoutAddressInput as pp, AddDomainError as pr, Domain as ps, deleteEndpoint as pt, GetWebhookSecretData as pu, VerifyAgentClaimErrors as pv, checkDomainDns as q, UpdateSpendPolicyError as q_, DefineAgentErrors as qa, GetFunctionRoutingError as qc, ListRoutesData as qd, PollCliLoginResponses as qf, UnpublishAgentData as qg, StartAgentSignupErrors as qh, CreateFilterResponse as qi, GetTemplateData as ql, SendEmailResponse as qm, testFunction as qn, DeleteRouteResponses as qo, ResendAgentSignupVerificationData as qp, CliLogoutErrors as qr, Endpoint as qs, getWakeSchedule as qt, ListEmailsData as qu, X402SpendPolicy as qv, CreateAgentOptions as r, UnverifiedDomain as r_, CreateFunctionSecretError as ra, FunctionSecretListItem as rc, ListEnvelope as rd, ListTemplatesData as rf, StartCliSignupData as rg, SendPermissionYourDomain as rh, CompleteWebhookEventErrors as ri, GetInboxStatusError as rl, ResendCliSignupVerificationResponse as rm, listFunctionSecrets as rn, DeleteEmailError as ro, PullWebhookEventError as rp, updateSpendPolicy as rr, DeleteWakeScheduleResponses as rs, createFunctionSecret as rt, GetThreadData as ru, UpdateWakeAuthorizationResponses as rv, createConfig as ry, InboxResource as s, UpdateAccountInput as s_, CreateFunctionSecretResponses as sa, FunctionTestRunDeliveryEndpoint as sc, ListFiltersResponse as sd, ListTemplatesResponses as sf, StartCliSignupResponse as sg, SentEmailStatus as sh, CompleteWebhookHttpInput as si, GetMemoryData as sl, ResolveRegistryHandleErrors as sm, listRegistries as sn, DeleteEndpointData as so, PullWebhookInput as sp, verifyAgentSignup as sr, DiscardEmailContentData as ss, createWakeAuthorization as st, GetThreadResponses as su, UpdateWakeScheduleInput as sv, AccountResource as t, UnsetFunctionRouteResponse as t_, CreateFunctionResult as ta, FunctionRouteResult as tc, ListEndpointsResponse as td, ListSentEmailsResponse as tf, StartCliLoginResponse as tg, SendPermissionManagedZone as th, CompleteWebhookEventData as ti, GetFunctionTestRunTraceResponses as tl, ResendCliSignupVerificationErrors as tm, listFilters as tn, DeleteDomainResponses as to, PublishPolicy as tp, updateRegistry as tr, DeleteWakeScheduleErrors as ts, createFilter as tt, GetTemplateResponse as tu, UpdateWakeAuthorizationInput as tv, RequestResult as ty, MemoryDeleteInput as u, UpdateDomainData as u_, CreateOrgSecretErrors as ua, FunctionTestRunReply as uc, ListFunctionLogsError as ud, ListWakeAuthorizationsErrors as uf, SuccessEnvelope as ug, SetFunctionRouteError as uh, CompleteWebhookStdoutInput as ui, GetMemoryResponse as ul, ResourceId as um, listRoutes as un, DeleteEndpointResponse as uo, RegisterPayoutAddressData as up, Account as ur, DiscardEmailContentResponse as us, defineAgent as ut, GetWakeScheduleErrors as uu, VerifiedDomain as uv, PrimitiveClient as v, UpdateEndpointErrors as v_, CreateRegistryResponse as va, GetAccountErrors as vc, ListFunctionSecretsResponses as vd, ListWakeSchedulesData as vf, TemplateRegistryStatus as vg, SetFunctionSecretResponse as vh, CreateAgentAccountResponses as vi, GetOutboundStatusError as vl, RunWakeScheduleData as vm, publishAgent as vn, DeleteFunctionError as vo, RegistryRequest as vp, AgentAccountResult as vr, DomainVerifyResult as vs, deleteOrgSecret as vt, IdempotencyKey as vu, VerifyAgentSignupError as vv, SendAttachmentInput as w, UpdateFilterErrors as w_, CreateRouteResponse as wa, GetAgentResponse as wc, ListOrgSecretsData as wd, MemoryResolvedScope as wf, TemplateVariable as wg, SetMemoryResponse as wh, CreateAgentClaimLinkResponses as wi, GetRegistryErrors as wl, SearchEmailsError as wm, replyToEmail as wn, DeleteFunctionSecretErrors as wo, ReorderRoutesResponses as wp, AgentSignupResendResult as wr, DownloadDomainZoneFileData as ws, downloadAttachments as wt, InboxStatusRecentEmailSummary as wu, VerifyCliSignupError as wv, RequestOptions as x, UpdateEndpointResponses as x_, CreateRouteError as xa, GetAgentData as xc, ListFunctionsErrors as xd, ListWakeSchedulesResponse as xf, TemplateSecretGroup as xg, SetMemoryError as xh, CreateAgentClaimLinkErrors as xi, GetOutboundStatusResponses as xl, RunWakeScheduleResponse as xm, reorderRoutes as xn, DeleteFunctionResponses as xo, ReorderRoutesErrors as xp, AgentClaimResult as xr, DownloadAttachmentsErrors as xs, deleteWakeAuthorization as xt, InboxStatusEndpointSummary as xu, VerifyAgentSignupResponse as xv, PrimitiveClientOptions as y, UpdateEndpointInput as y_, CreateRegistryResponses as ya, GetAccountResponse as yc, ListFunctionsData as yd, ListWakeSchedulesError as yf, TemplateRegistrySummary as yg, SetFunctionSecretResponses as yh, CreateAgentClaimLinkData as yi, GetOutboundStatusErrors as yl, RunWakeScheduleError as ym, pullWebhookEvent as yn, DeleteFunctionErrors as yo, ReorderRoutesData as yp, AgentAccountUpgradeHint as yr, DownloadAttachmentsData as ys, deleteRegistry as yt, InboxStatus as yu, VerifyAgentSignupErrors as yv, PrimitiveApiClientOptions as z, UpdateRegistryResponses as z_, DecideRegistryRequestData as za, GetEmailResponse as zc, ListRegistryAgentsData as zd, PayChallengeResponse as zf, TestFunctionError as zg, StartAgentClaimData as zh, CreateEndpointErrors as zi, GetSpendPolicyErrors as zl, SemanticSearchMeta as zm, setOrgSecret as zn, DeleteRegistryError as zo, ReplyToEmailErrors as zp, CheckDomainDnsError as zr, EmailSearchFacetBucket as zs, getRegistry as zt, ListDeliveriesErrors as zu, X402DeclinedPayment as zv };
11616
+ export { createChallenge as $, UpdateRegistryResponses as $_, DefineAgentResponse as $a, GetEmailResponse as $c, ListRegistryAgentsData as $d, PayChallengeResponse as $f, TestFunctionError as $g, StartAgentClaimData as $h, CreateFunctionData as $i, GetSpendPolicyErrors as $l, SemanticSearchMeta as $m, updateAccount as $n, DeleteWakeAuthorizationError as $o, ReplyToEmailErrors as $p, CliLogoutResponse as $r, EmailSearchFacetBucket as $s, listDeclinedPayments as $t, ListDeliveriesErrors as $u, X402DeclinedPayment as $v, WaitForNextOptions as A, UpdateEndpointData as A_, CreateWakeAuthorizationData as Aa, GetAccountData as Ac, ListFunctionSecretsErrors as Ad, ListWakeDispatchesResponse as Af, TemplateRegistryDetail as Ag, SetFunctionSecretErrors as Ah, CreateChallengeError as Ai, GetOrgRoutingTopologyResponses as Al, RouteEvaluatedEntry as Am, resendCliSignupVerification as An, DeleteFunctionSecretResponses as Ao, Registry as Ap, AttachmentPartIndex as Ar, DownloadDomainZoneFileErrors as As, getAccount as At, GetWebhookSecretResponse as Au, VerifyAgentClaimResponses as Av, PrimitiveApiClientOptions as B, UpdateFilterResponse as B_, CreateWakeScheduleResponse as Ba, GetChallengeData as Bc, ListOrgSecretsErrors as Bd, MemoryScopeId as Bf, TestEndpointData as Bg, SetOrgSecretData as Bh, CreateEmailChallengeResponses as Bi, GetRegistryResponses as Bl, SearchEmailsResponse as Bm, setFunctionSecret as Bn, DeleteOrgSecretResponse as Bo, ReplayDeliveryError as Bp, CancelSentEmailResponse as Br, DownloadRawEmailErrors as Bs, getOrgRoutingTopology as Bt, InstallTemplateData as Bu, VerifyCliSignupInput as Bv, SemanticSearchResponse as C, UpdateAccountResponses as C_, CreateRegistryResponses as Ca, FunctionTestRunOutboundRequest as Cc, ListFunctionLogsData as Cd, ListWakeAuthorizationsError as Cf, StorageStats as Cg, SetFunctionRouteData as Ch, CreateAgentClaimLinkData as Ci, GetMemoryErrors as Cl, ResolveRegistryHandleResponses as Cm, registerPayoutAddress as Cn, DeleteFunctionErrors as Co, RecipientRoute as Cp, AgentClaimLinkResult as Cr, DownloadAttachmentsData as Cs, deleteWakeSchedule as Ct, GetWakeScheduleError as Cu, UpdateWakeScheduleResponses as Cv, SendPayloadReference as D, UpdateDomainInput as D_, CreateRouteInput as Da, FunctionTestRunTrace as Dc, ListFunctionLogsResponses as Dd, ListWakeDispatchesData as Df, TemplateInstallState as Dg, SetFunctionRouteResponses as Dh, CreateAgentClaimLinkResponse as Di, GetOrgRoutingTopologyError as Dl, RotateWebhookSecretErrors as Dm, replyToEmail as Dn, DeleteFunctionSecretError as Do, RegisterPayoutAddressInput as Dp, AgentSignupResendResult as Dr, DownloadAttachmentsResponses as Ds, downloadEmailAttachmentPart as Dt, GetWebhookSecretData as Du, VerifyAgentClaimErrors as Dv, SendInput as E, UpdateDomainErrors as E_, CreateRouteErrors as Ea, FunctionTestRunState as Ec, ListFunctionLogsResponse as Ed, ListWakeAuthorizationsResponses as Ef, TemplateInstall as Eg, SetFunctionRouteResponse as Eh, CreateAgentClaimLinkInput as Ei, GetOrgRoutingTopologyData as El, RotateWebhookSecretError as Em, replayEmailWebhooks as En, DeleteFunctionSecretData as Eo, RegisterPayoutAddressErrors as Ep, AgentOrgRef as Er, DownloadAttachmentsResponse as Es, downloadDomainZoneFile as Et, GetWakeScheduleResponses as Eu, VerifyAgentClaimError as Ev, VerifyOptions as F, UpdateEndpointResponses as F_, CreateWakeAuthorizationResponses as Fa, GetAgentData as Fc, ListFunctionsErrors as Fd, ListWakeSchedulesResponse as Ff, TemplateSecretGroup as Fg, SetMemoryError as Fh, CreateEmailChallengeData as Fi, GetOutboundStatusResponses as Fl, RunWakeScheduleResponse as Fm, searchEmails as Fn, DeleteMemoryResponses as Fo, ReorderRoutesErrors as Fp, AwaitReplyResponses as Fr, DownloadEmailAttachmentPartErrors as Fs, getFunction as Ft, InboxStatusEndpointSummary as Fu, VerifyAgentSignupResponse as Fv, addDomain as G, UpdateFunctionInput as G_, DecideRegistryRequestErrors as Ga, GetConversationData as Gc, ListPayoutAddressesErrors as Gd, OutboundStatus as Gf, TestEndpointRulesData as Gg, SetOrgSecretResponses as Gh, CreateEndpointResponse as Gi, GetSendPermissionsResponses as Gl, SearchMemoriesResponse as Gm, startAgentSignup as Gn, DeleteRegistryResponse as Go, ReplayEmailWebhooksError as Gp, CheckDomainDnsResponse as Gr, DownloadSentAttachmentPartErrors as Gs, getSpendPolicy as Gt, Limit as Gu, VerifyDomainErrors as Gv, PrimitiveApiErrorDetails as H, UpdateFunctionData as H_, Cursor as Ha, GetChallengeErrors as Hc, ListOrgSecretsResponses as Hd, NumericString as Hf, TestEndpointErrors as Hg, SetOrgSecretErrors as Hh, CreateEndpointError as Hi, GetSendPermissionsError as Hl, SearchMemoriesData as Hm, setOrgSecret as Hn, DeleteRegistryData as Ho, ReplayDeliveryResponse as Hp, CheckDomainDnsData as Hr, DownloadRawEmailResponses as Hs, getRegistry as Ht, InstallTemplateErrors as Hu, VerifyCliSignupResponses as Hv, verifyWebhookSignature as I, UpdateFilterData as I_, CreateWakeScheduleData as Ia, GetAgentError as Ic, ListFunctionsResponse as Id, ListWakeSchedulesResponses as If, TemplateSetup as Ig, SetMemoryErrors as Ih, CreateEmailChallengeError as Ii, GetRegistryData as Il, RunWakeScheduleResponses as Im, searchMemories as In, DeleteMemoryResult as Io, ReorderRoutesInput as Ip, AwaitReplyResult as Ir, DownloadEmailAttachmentPartResponse as Is, getFunctionRouting as It, InboxStatusFunctionSummary as Iu, VerifyAgentSignupResponses as Iv, checkDomainDns as J, UpdateRegistryData as J_, DecideRegistryRequestResponses as Ja, GetConversationResponse as Jc, ListRegistriesData as Jd, ParsedEmailData as Jf, TestEndpointRulesInput as Jg, SimulateRouteErrors as Jh, CreateFilterError as Ji, GetSentEmailErrors as Jl, SemanticSearchData as Jm, testEndpoint as Jn, DeleteRouteError as Jo, ReplayEmailWebhooksResponses as Jp, CliLoginStartResult as Jr, EmailAddress as Js, getTemplateInstall as Jt, ListDeclinedPaymentsErrors as Ju, WakeAuthorization as Jv, awaitReply as K, UpdateFunctionResponse as K_, DecideRegistryRequestInput as Ka, GetConversationError as Kc, ListPayoutAddressesResponse as Kd, OutboundStatusDomain as Kf, TestEndpointRulesError as Kg, SimulateRouteData as Kh, CreateEndpointResponses as Ki, GetSentEmailData as Kl, SearchMemoriesResponses as Km, startCliLogin as Kn, DeleteRegistryResponses as Ko, ReplayEmailWebhooksErrors as Kp, CheckDomainDnsResponses as Kr, DownloadSentAttachmentPartResponse as Ks, getStorageStats as Kt, ListDeclinedPaymentsData as Ku, VerifyDomainResponse as Kv, isMemoryJsonValue as L, UpdateFilterError as L_, CreateWakeScheduleError as La, GetAgentErrors as Lc, ListFunctionsResponses as Ld, MemoryKeyQuery as Lf, TemplateSource as Lg, SetMemoryInput as Lh, CreateEmailChallengeErrors as Li, GetRegistryError as Ll, SearchEmailsData as Lm, semanticSearch as Ln, DeleteOrgSecretData as Lo, ReorderRoutesResponse as Lp, CancelSentEmailData as Lr, DownloadEmailAttachmentPartResponses as Ls, getFunctionTestRunTrace as Lt, InboxStatusNextAction as Lu, VerifyCliSignupData as Lv, createAgent as M, UpdateEndpointErrors as M_, CreateWakeAuthorizationErrors as Ma, GetAccountErrors as Mc, ListFunctionSecretsResponses as Md, ListWakeSchedulesData as Mf, TemplateRegistryStatus as Mg, SetFunctionSecretResponse as Mh, CreateChallengeInput as Mi, GetOutboundStatusError as Ml, RunWakeScheduleData as Mm, rotateWebhookSecret as Mn, DeleteMemoryError as Mo, RegistryRequest as Mp, AwaitReplyError as Mr, DownloadDomainZoneFileResponses as Ms, getChallenge as Mt, IdempotencyKey as Mu, VerifyAgentSignupError as Mv, createPrimitiveClient as N, UpdateEndpointInput as N_, CreateWakeAuthorizationInput as Na, GetAccountResponse as Nc, ListFunctionsData as Nd, ListWakeSchedulesError as Nf, TemplateRegistrySummary as Ng, SetFunctionSecretResponses as Nh, CreateChallengeResponse as Ni, GetOutboundStatusErrors as Nl, RunWakeScheduleError as Nm, runWakeSchedule as Nn, DeleteMemoryErrors as No, ReorderRoutesData as Np, AwaitReplyErrors as Nr, DownloadEmailAttachmentPartData as Ns, getConversation as Nt, InboxStatus as Nu, VerifyAgentSignupErrors as Nv, SendResult as O, UpdateDomainResponse as O_, CreateRouteResponse as Oa, GateDenial as Oc, ListFunctionSecretsData as Od, ListWakeDispatchesError as Of, TemplateInstallStatus as Og, SetFunctionSecretData as Oh, CreateAgentClaimLinkResponses as Oi, GetOrgRoutingTopologyErrors as Ol, RotateWebhookSecretResponse as Om, rescheduleSentEmail as On, DeleteFunctionSecretErrors as Oo, RegisterPayoutAddressResponse as Op, AgentSignupStartResult as Or, DownloadDomainZoneFileData as Os, downloadRawEmail as Ot, GetWebhookSecretError as Ou, VerifyAgentClaimInput as Ov, PRIMITIVE_SIGNATURE_HEADER as P, UpdateEndpointResponse as P_, CreateWakeAuthorizationResponse as Pa, GetAccountResponses as Pc, ListFunctionsError as Pd, ListWakeSchedulesErrors as Pf, TemplateSecret as Pg, SetMemoryData as Ph, CreateChallengeResponses as Pi, GetOutboundStatusResponse as Pl, RunWakeScheduleErrors as Pm, sdk_gen_d_exports as Pn, DeleteMemoryResponse as Po, ReorderRoutesError as Pp, AwaitReplyResponse as Pr, DownloadEmailAttachmentPartError as Ps, getEmail as Pt, InboxStatusDomain as Pu, VerifyAgentSignupInput as Pv, createAgentClaimLink as Q, UpdateRegistryResponse as Q_, DefineAgentInput as Qa, GetEmailErrors as Qc, ListRegistriesResponses as Qd, PayChallengeInput as Qf, TestFunctionData as Qg, SimulateRouteResult as Qh, CreateFilterResponses as Qi, GetSpendPolicyError as Ql, SemanticSearchInput as Qm, unsetFunctionRoute as Qn, DeleteWakeAuthorizationData as Qo, ReplyToEmailError as Qp, CliLogoutInput as Qr, EmailDetailReply as Qs, installTemplate as Qt, ListDeliveriesError as Qu, X402Challenge as Qv, DEFAULT_API_BASE_URL as R, UpdateFilterErrors as R_, CreateWakeScheduleErrors as Ra, GetAgentResponse as Rc, ListOrgSecretsData as Rd, MemoryResolvedScope as Rf, TemplateVariable as Rg, SetMemoryResponse as Rh, CreateEmailChallengeInput as Ri, GetRegistryErrors as Rl, SearchEmailsError as Rm, sendEmail as Rn, DeleteOrgSecretError as Ro, ReorderRoutesResponses as Rp, CancelSentEmailError as Rr, DownloadRawEmailData as Rs, getInboxStatus as Rt, InboxStatusRecentEmailSummary as Ru, VerifyCliSignupError as Rv, RequestOptions as S, UpdateAccountResponse as S_, CreateRegistryResponse as Sa, FunctionTestRunInboundEmail as Sc, ListFiltersResponses as Sd, ListWakeAuthorizationsData as Sf, StartCliSignupResponses as Sg, SentEmailSummary as Sh, CreateAgentAccountResponses as Si, GetMemoryError as Sl, ResolveRegistryHandleResponse as Sm, pullWebhookEvent as Sn, DeleteFunctionError as So, PullWebhookResponse as Sp, AgentAccountUpgradeHint as Sr, DomainVerifyResult as Ss, deleteWakeAuthorization as St, GetWakeScheduleData as Su, UpdateWakeScheduleResponse as Sv, SendAttachmentInput as T, UpdateDomainError as T_, CreateRouteError as Ta, FunctionTestRunSend as Tc, ListFunctionLogsErrors as Td, ListWakeAuthorizationsResponse as Tf, TemplateAuthor as Tg, SetFunctionRouteErrors as Th, CreateAgentClaimLinkErrors as Ti, GetMemoryResponses as Tl, RotateWebhookSecretData as Tm, replayDelivery as Tn, DeleteFunctionResponses as To, RegisterPayoutAddressError as Tp, AgentClaimStartResult as Tr, DownloadAttachmentsErrors as Ts, downloadAttachments as Tt, GetWakeScheduleResponse as Tu, VerifyAgentClaimData as Tv, RequestOptions$1 as U, UpdateFunctionError as U_, DecideRegistryRequestData as Ua, GetChallengeResponse as Uc, ListPayoutAddressesData as Ud, OrgSecretListItem as Uf, TestEndpointResponse as Ug, SetOrgSecretInput as Uh, CreateEndpointErrors as Ui, GetSendPermissionsErrors as Ul, SearchMemoriesError as Um, simulateRoute as Un, DeleteRegistryError as Uo, ReplayDeliveryResponses as Up, CheckDomainDnsError as Ur, DownloadSentAttachmentPartData as Us, getSendPermissions as Ut, InstallTemplateResponse as Uu, VerifyDomainData as Uv, PrimitiveApiError as V, UpdateFilterResponses as V_, CreateWakeScheduleResponses as Va, GetChallengeError as Vc, ListOrgSecretsResponse as Vd, MemoryScopeQueryType as Vf, TestEndpointError as Vg, SetOrgSecretError as Vh, CreateEndpointData as Vi, GetSendPermissionsData as Vl, SearchEmailsResponses as Vm, setMemory as Vn, DeleteOrgSecretResponses as Vo, ReplayDeliveryErrors as Vp, CancelSentEmailResponses as Vr, DownloadRawEmailResponse as Vs, getOutboundStatus as Vt, InstallTemplateError as Vu, VerifyCliSignupResponse as Vv, createPrimitiveApiClient as W, UpdateFunctionErrors as W_, DecideRegistryRequestError as Wa, GetChallengeResponses as Wc, ListPayoutAddressesError as Wd, OrgSecretWriteResult as Wf, TestEndpointResponses as Wg, SetOrgSecretResponse as Wh, CreateEndpointInput as Wi, GetSendPermissionsResponse as Wl, SearchMemoriesErrors as Wm, startAgentClaim as Wn, DeleteRegistryErrors as Wo, ReplayEmailWebhooksData as Wp, CheckDomainDnsErrors as Wr, DownloadSentAttachmentPartError as Ws, getSentEmail as Wt, InstallTemplateResponses as Wu, VerifyDomainError as Wv, completeWebhookEvent as X, UpdateRegistryErrors as X_, DefineAgentError as Xa, GetEmailData as Xc, ListRegistriesErrors as Xd, PayChallengeError as Xf, TestEndpointRulesResponses as Xg, SimulateRouteResponse as Xh, CreateFilterInput as Xi, GetSentEmailResponses as Xl, SemanticSearchErrors as Xm, testFunction as Xn, DeleteRouteResponse as Xo, ReplyEmail as Xp, CliLogoutError as Xr, EmailAuth as Xs, getWakeSchedule as Xt, ListDeclinedPaymentsResponses as Xu, WakeSchedule as Xv, cliLogout as Y, UpdateRegistryError as Y_, DefineAgentData as Ya, GetConversationResponses as Yc, ListRegistriesError as Yd, PayChallengeData as Yf, TestEndpointRulesResponse as Yg, SimulateRouteInput as Yh, CreateFilterErrors as Yi, GetSentEmailResponse as Yl, SemanticSearchError as Ym, testEndpointRules as Yn, DeleteRouteErrors as Yo, ReplayResult as Yp, CliLogoutData as Yr, EmailAttachment as Ys, getThread as Yt, ListDeclinedPaymentsResponse as Yu, WakeDispatch as Yv, createAgentAccount as Z, UpdateRegistryInput as Z_, DefineAgentErrors as Za, GetEmailError as Zc, ListRegistriesResponse as Zd, PayChallengeErrors as Zf, TestEndpointRulesResult as Zg, SimulateRouteResponses as Zh, CreateFilterResponse as Zi, GetSpendPolicyData as Zl, SemanticSearchField as Zm, unpublishAgent as Zn, DeleteRouteResponses as Zo, ReplyToEmailData as Zp, CliLogoutErrors as Zr, EmailDetail as Zs, getWebhookSecret as Zt, ListDeliveriesData as Zu, WebhookSecret as Zv, MemorySearchResponse as _, UnverifiedDomain as __, CreateOrgSecretResponses as _a, FunctionSecretListItem as _c, ListEnvelope as _d, ListTemplatesData as _f, StartCliSignupData as _g, SendPermissionYourDomain as _h, CreateAgentAccountData as _i, GetInboxStatusError as _l, ResendCliSignupVerificationResponse as _m, listWakeDispatches as _n, DeleteFilterError as _o, PullWebhookEventError as _p, AddDomainErrors as _r, Domain as _s, deleteFunctionSecret as _t, GetThreadData as _u, UpdateWakeAuthorizationResponses as _v, createConfig as _y, CreatedAgent as a, Thread as a_, CreateFunctionResult as aa, EmailSummary as ac, ListDomainsResponse as ad, ListRegistryRequestsResponse as af, StartAgentSignupData as ag, SendEmailError as ah, CompleteWebhookEventData as ai, GetFunctionResponses as al, RescheduleSentEmailResponse as am, listFunctionLogs as an, DeleteDomainResponses as ao, PollCliLoginInput as ap, updateRoute as ar, DeleteWakeScheduleErrors as as, createOrgSecret as at, GetStorageStatsResponse as au, UpdateRouteResponses as av, X402PayoutAddress as ay, PrimitiveClientOptions as b, UpdateAccountErrors as b_, CreateRegistryErrors as ba, FunctionTestRunDelivery as bc, ListFiltersErrors as bd, ListTemplatesResponse as bf, StartCliSignupInput as bg, SentEmailRescheduleInput as bh, CreateAgentAccountInput as bi, GetInboxStatusResponses as bl, ResolveRegistryHandleError as bm, pollCliLogin as bn, DeleteFilterResponses as bo, PullWebhookEventResponses as bp, AddDomainResponses as br, DomainDnsHealthStatus as bs, deleteRegistry as bt, GetThreadResponse as bu, UpdateWakeScheduleErrors as bv, InboxResource as c, UnpublishAgentError as c_, CreateFunctionSecretErrors as ca, ErrorResponse as cc, ListEmailsError as cd, ListRoutesError as cf, StartAgentSignupInput as cg, SendEmailResponses as ch, CompleteWebhookEventResponse as ci, GetFunctionRoutingErrors as cl, ResendAgentSignupVerificationError as cm, listOrgSecrets as cn, DeleteEmailErrors as co, PublishAgentData as cp, updateWakeSchedule as cr, DeliveryStatus as cs, createWakeAuthorization as ct, GetTemplateError as cu, UpdateSpendPolicyErrors as cv, createClient as cy, MemoryDeleteInput as d, UnpublishAgentResponses as d_, CreateFunctionSecretResponses as da, FunctionDetail as dc, ListEmailsResponses as dd, ListRoutesResponses as df, StartCliLoginData as dg, SendMailPayloadRef as dh, CompleteWebhookHttpInput as di, GetFunctionTestRunTraceData as dl, ResendAgentSignupVerificationResponse as dm, listRegistryAgents as dn, DeleteEndpointData as do, PublishAgentInput as dp, verifyCliSignup as dr, DiscardEmailContentData as ds, defineAgent as dt, GetTemplateInstallError as du, UpdateSpendPolicyResponses as dv, Config as dy, TestFunctionErrors as e_, CreateFunctionError as ea, EmailSearchFacets as ec, ListDeliveriesResponse as ed, ListRegistryAgentsResponse as ef, StartAgentClaimError as eg, SemanticSearchResponses as eh, CliLogoutResponses as ei, GetEmailResponses as el, ReplyToEmailResponse as em, listDeliveries as en, DefineAgentResponses as eo, PayChallengeResponses as ep, updateDomain as er, DeleteWakeAuthorizationErrors as es, createEmailChallenge as et, GetSpendPolicyResponse as eu, UpdateRouteData as ev, X402EmailChallenge as ey, MemoryGetInput as f, UnsetFunctionRouteData as f_, CreateOrgSecretData as fa, FunctionListItem as fc, ListEndpointsData as fd, ListSentEmailsData as ff, StartCliLoginError as fg, SendMailResult as fh, CompleteWebhookInput as fi, GetFunctionTestRunTraceError as fl, ResendAgentSignupVerificationResponses as fm, listRegistryRequests as fn, DeleteEndpointError as fo, PublishAgentResponse as fp, verifyDomain as fr, DiscardEmailContentError as fs, deleteDomain as ft, GetTemplateInstallErrors as fu, UpdateWakeAuthorizationData as fv, CreateClientConfig as fy, MemorySearchInput as g, UnsetFunctionRouteResponses as g_, CreateOrgSecretResponse as ga, FunctionRouting as gc, ListEndpointsResponses as gd, ListSentEmailsResponses as gf, StartCliLoginResponses as gg, SendPermissionRule as gh, ConversationMessage as gi, GetInboxStatusData as gl, ResendCliSignupVerificationInput as gm, listWakeAuthorizations as gn, DeleteFilterData as go, PullWebhookEventData as gp, AddDomainError as gr, DkimSignature as gs, deleteFunction as gt, GetTemplateResponses as gu, UpdateWakeAuthorizationResponse as gv, ResponseStyle as gy, MemoryRecordWithValue as h, UnsetFunctionRouteResponse as h_, CreateOrgSecretInput as ha, FunctionRouteResult as hc, ListEndpointsResponse as hd, ListSentEmailsResponse as hf, StartCliLoginResponse as hg, SendPermissionManagedZone as hh, Conversation as hi, GetFunctionTestRunTraceResponses as hl, ResendCliSignupVerificationErrors as hm, listTemplates as hn, DeleteEndpointResponses as ho, PublishPolicy as hp, AddDomainData as hr, DiscardEmailContentResponses as hs, deleteFilter as ht, GetTemplateResponse as hu, UpdateWakeAuthorizationInput as hv, RequestResult as hy, CreateAgentOptions as i, TestResult as i_, CreateFunctionResponses as ia, EmailStatus as ic, ListDomainsErrors as id, ListRegistryRequestsErrors as if, StartAgentClaimResponses as ig, SendEmailData as ih, CliSignupVerifyResult as ii, GetFunctionResponse as il, RescheduleSentEmailErrors as im, listFilters as in, DeleteDomainResponse as io, PollCliLoginErrors as ip, updateRegistry as ir, DeleteWakeScheduleError as is, createFunctionSecret as it, GetStorageStatsErrors as iu, UpdateRouteResponse as iv, X402PaymentRequirements as iy, client as j, UpdateEndpointError as j_, CreateWakeAuthorizationError as ja, GetAccountError as jc, ListFunctionSecretsResponse as jd, ListWakeDispatchesResponses as jf, TemplateRegistryPage as jg, SetFunctionSecretInput as jh, CreateChallengeErrors as ji, GetOutboundStatusData as jl, RoutingTopology as jm, resolveRegistryHandle as jn, DeleteMemoryData as jo, RegistryAgent as jp, AwaitReplyData as jr, DownloadDomainZoneFileResponse as js, getAgent as jt, GetWebhookSecretResponses as ju, VerifyAgentSignupData as jv, SendThreadInput as k, UpdateDomainResponses as k_, CreateRouteResponses as ka, GateFix as kc, ListFunctionSecretsError as kd, ListWakeDispatchesErrors as kf, TemplateManifest as kg, SetFunctionSecretError as kh, CreateChallengeData as ki, GetOrgRoutingTopologyResponse as kl, RotateWebhookSecretResponses as km, resendAgentSignupVerification as kn, DeleteFunctionSecretResponse as ko, RegisterPayoutAddressResponses as kp, AgentSignupVerifyResult as kr, DownloadDomainZoneFileError as ks, downloadSentAttachmentPart as kt, GetWebhookSecretErrors as ku, VerifyAgentClaimResponse as kv, InboxStreamOptions as l, UnpublishAgentErrors as l_, CreateFunctionSecretInput as la, Filter as lc, ListEmailsErrors as ld, ListRoutesErrors as lf, StartAgentSignupResponse as lg, SendMailAttachment as lh, CompleteWebhookEventResponses as li, GetFunctionRoutingResponse as ll, ResendAgentSignupVerificationErrors as lm, listPayoutAddresses as ln, DeleteEmailResponse as lo, PublishAgentError as lp, verifyAgentClaim as lr, DeliverySummary as ls, createWakeSchedule as lt, GetTemplateErrors as lu, UpdateSpendPolicyInput as lv, Client as ly, MemoryRecord as m, UnsetFunctionRouteErrors as m_, CreateOrgSecretErrors as ma, FunctionRouteBody as mc, ListEndpointsErrors as md, ListSentEmailsErrors as mf, StartCliLoginInput as mg, SendPermissionAnyRecipient as mh, CompleteWebhookStdoutInput as mi, GetFunctionTestRunTraceResponse as ml, ResendCliSignupVerificationError as mm, listSentEmails as mn, DeleteEndpointResponse as mo, PublishAgentResult as mp, AccountUpdated as mr, DiscardEmailContentResponse as ms, deleteEndpoint as mt, GetTemplateInstallResponses as mu, UpdateWakeAuthorizationErrors as mv, RequestOptions$2 as my, AgentResource as n, TestFunctionResponses as n_, CreateFunctionInput as na, EmailSearchMeta as nc, ListDomainsData as nd, ListRegistryRequestsData as nf, StartAgentClaimInput as ng, SemanticSearchScoreBreakdown as nh, CliSignupResendResult as ni, GetFunctionError as nl, RescheduleSentEmailData as nm, listEmails as nn, DeleteDomainError as no, PollCliLoginData as np, updateFilter as nr, DeleteWakeAuthorizationResponses as ns, createFilter as nt, GetStorageStatsData as nu, UpdateRouteErrors as nv, X402NonceBinding as ny, ForwardInput as o, ThreadMessage as o_, CreateFunctionSecretData as oa, EmailWebhookStatus as oc, ListDomainsResponses as od, ListRegistryRequestsResponses as of, StartAgentSignupError as og, SendEmailErrors as oh, CompleteWebhookEventError as oi, GetFunctionRoutingData as ol, RescheduleSentEmailResponses as om, listFunctionSecrets as on, DeleteEmailData as oo, PollCliLoginResponse as op, updateSpendPolicy as or, DeleteWakeScheduleResponse as os, createRegistry as ot, GetStorageStatsResponses as ou, UpdateSpendPolicyData as ov, X402Receipt as oy, MemoryJsonValue as p, UnsetFunctionRouteError as p_, CreateOrgSecretError as pa, FunctionLogRow as pc, ListEndpointsError as pd, ListSentEmailsError as pf, StartCliLoginErrors as pg, SendPermissionAddress as ph, CompleteWebhookResponse as pi, GetFunctionTestRunTraceErrors as pl, ResendCliSignupVerificationData as pm, listRoutes as pn, DeleteEndpointErrors as po, PublishAgentResponses as pp, Account as pr, DiscardEmailContentErrors as ps, deleteEmail as pt, GetTemplateInstallResponse as pu, UpdateWakeAuthorizationError as pv, Options$1 as py, cancelSentEmail as q, UpdateFunctionResponses as q_, DecideRegistryRequestResponse as qa, GetConversationErrors as qc, ListPayoutAddressesResponses as qd, PaginationMeta as qf, TestEndpointRulesErrors as qg, SimulateRouteError as qh, CreateFilterData as qi, GetSentEmailError as ql, SemanticSearchCoverage as qm, startCliSignup as qn, DeleteRouteData as qo, ReplayEmailWebhooksResponse as qp, CliLoginPollResult as qr, DownloadSentAttachmentPartResponses as qs, getTemplate as qt, ListDeclinedPaymentsError as qu, VerifyDomainResponses as qv, AttachmentPartDownload as r, TestInvocationResult as r_, CreateFunctionResponse as ra, EmailSearchResult as rc, ListDomainsError as rd, ListRegistryRequestsError as rf, StartAgentClaimResponse as rg, SemanticSearchSnippet as rh, CliSignupStartResult as ri, GetFunctionErrors as rl, RescheduleSentEmailError as rm, listEndpoints as rn, DeleteDomainErrors as ro, PollCliLoginError as rp, updateFunction as rr, DeleteWakeScheduleData as rs, createFunction as rt, GetStorageStatsError as ru, UpdateRouteInput as rv, X402PaymentPayload as ry, InboundEmail as s, UnpublishAgentData as s_, CreateFunctionSecretError as sa, Endpoint as sc, ListEmailsData as sd, ListRoutesData as sf, StartAgentSignupErrors as sg, SendEmailResponse as sh, CompleteWebhookEventErrors as si, GetFunctionRoutingError as sl, ResendAgentSignupVerificationData as sm, listFunctions as sn, DeleteEmailError as so, PollCliLoginResponses as sp, updateWakeAuthorization as sr, DeleteWakeScheduleResponses as ss, createRoute as st, GetTemplateData as su, UpdateSpendPolicyError as sv, X402SpendPolicy as sy, AccountResource as t, TestFunctionResponse as t_, CreateFunctionErrors as ta, EmailSearchHighlights as tc, ListDeliveriesResponses as td, ListRegistryAgentsResponses as tf, StartAgentClaimErrors as tg, SemanticSearchResult as th, CliLogoutResult as ti, GetFunctionData as tl, ReplyToEmailResponses as tm, listDomains as tn, DeleteDomainData as to, PlanLimits as tp, updateEndpoint as tr, DeleteWakeAuthorizationResponse as ts, createEndpoint as tt, GetSpendPolicyResponses as tu, UpdateRouteError as tv, X402EmailChallengeDetails as ty, MemoriesResource as u, UnpublishAgentResponse as u_, CreateFunctionSecretResponse as ua, FunctionDeployStatus as uc, ListEmailsResponse as ud, ListRoutesResponse as uf, StartAgentSignupResponses as ug, SendMailInput as uh, CompleteWebhookExecInput as ui, GetFunctionRoutingResponses as ul, ResendAgentSignupVerificationInput as um, listRegistries as un, DeleteEmailResponses as uo, PublishAgentErrors as up, verifyAgentSignup as ur, DiscardContentResult as us, decideRegistryRequest as ut, GetTemplateInstallData as uu, UpdateSpendPolicyResponse as uv, ClientOptions as uy, MemorySetInput as v, UpdateAccountData as v_, CreateRegistryData as va, FunctionSecretWriteResult as vc, ListFiltersData as vd, ListTemplatesError as vf, StartCliSignupError as vg, SendPermissionsMeta as vh, CreateAgentAccountError as vi, GetInboxStatusErrors as vl, ResendCliSignupVerificationResponses as vm, listWakeSchedules as vn, DeleteFilterErrors as vo, PullWebhookEventErrors as vp, AddDomainInput as vr, DomainDnsHealthCheck as vs, deleteMemory as vt, GetThreadError as vu, UpdateWakeScheduleData as vv, Auth as vy, SendAttachment as w, UpdateDomainData as w_, CreateRouteData as wa, FunctionTestRunReply as wc, ListFunctionLogsError as wd, ListWakeAuthorizationsErrors as wf, SuccessEnvelope as wg, SetFunctionRouteError as wh, CreateAgentClaimLinkError as wi, GetMemoryResponse as wl, ResourceId as wm, reorderRoutes as wn, DeleteFunctionResponse as wo, RegisterPayoutAddressData as wp, AgentClaimResult as wr, DownloadAttachmentsError as ws, discardEmailContent as wt, GetWakeScheduleErrors as wu, VerifiedDomain as wv, ReplyInput as x, UpdateAccountInput as x_, CreateRegistryInput as xa, FunctionTestRunDeliveryEndpoint as xc, ListFiltersResponse as xd, ListTemplatesResponses as xf, StartCliSignupResponse as xg, SentEmailStatus as xh, CreateAgentAccountResponse as xi, GetMemoryData as xl, ResolveRegistryHandleErrors as xm, publishAgent as xn, DeleteFunctionData as xo, PullWebhookInput as xp, AgentAccountResult as xr, DomainDnsRecord as xs, deleteRoute as xt, GetThreadResponses as xu, UpdateWakeScheduleInput as xv, PrimitiveClient as y, UpdateAccountError as y_, CreateRegistryError as ya, FunctionTestRun as yc, ListFiltersError as yd, ListTemplatesErrors as yf, StartCliSignupErrors as yg, SentEmailDetail as yh, CreateAgentAccountErrors as yi, GetInboxStatusResponse as yl, ResolveRegistryHandleData as ym, payChallenge as yn, DeleteFilterResponse as yo, PullWebhookEventResponse as yp, AddDomainResponse as yr, DomainDnsHealthScope as ys, deleteOrgSecret as yt, GetThreadErrors as yu, UpdateWakeScheduleError as yv, PrimitiveApiClient as z, UpdateFilterInput as z_, CreateWakeScheduleInput as za, GetAgentResponses as zc, ListOrgSecretsError as zd, MemoryScope as zf, TemplateVariableValidation as zg, SetMemoryResponses as zh, CreateEmailChallengeResponse as zi, GetRegistryResponse as zl, SearchEmailsErrors as zm, setFunctionRoute as zn, DeleteOrgSecretErrors as zo, ReplayDeliveryData as zp, CancelSentEmailErrors as zr, DownloadRawEmailError as zs, getMemory as zt, InstallTemplateBody as zu, VerifyCliSignupErrors as zv };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { A as client, B as PrimitiveApiError, C as SendAttachment, D as SendResult, Hh as StartAgentClaimInput, M as createPrimitiveClient, O as SendThreadInput, Si as CreateAgentClaimLinkInput, Sr as AgentClaimStartResult, T as SendInput, Vf as PlanLimits, _ as MemorySetInput, a as ForwardInput, b as ReplyInput, br as AgentClaimLinkResult, c as InboxStreamOptions, d as MemoryGetInput, f as MemoryJsonValue, g as MemorySearchResponse, gi as CreateAgentAccountInput, h as MemorySearchInput, i as CreatedAgent, j as createAgent, k as WaitForNextOptions, l as MemoriesResource, m as MemoryRecordWithValue, mv as VerifyAgentClaimInput, o as InboundEmail, p as MemoryRecord, r as CreateAgentOptions, s as InboxResource, t as AccountResource, u as MemoryDeleteInput, ur as Account, v as PrimitiveClient, vr as AgentAccountResult, xr as AgentClaimResult, y as PrimitiveClientOptions, yr as AgentAccountUpgradeHint } from "./index-C11B41Hb.js";
1
+ import { A as WaitForNextOptions, Cr as AgentClaimLinkResult, E as SendInput, Ei as CreateAgentClaimLinkInput, M as createAgent, N as createPrimitiveClient, O as SendResult, Ov as VerifyAgentClaimInput, Sr as AgentAccountUpgradeHint, Tr as AgentClaimStartResult, V as PrimitiveApiError, _ as MemorySearchResponse, a as CreatedAgent, b as PrimitiveClientOptions, bi as CreateAgentAccountInput, c as InboxResource, d as MemoryDeleteInput, f as MemoryGetInput, g as MemorySearchInput, h as MemoryRecordWithValue, i as CreateAgentOptions, j as client, k as SendThreadInput, l as InboxStreamOptions, m as MemoryRecord, ng as StartAgentClaimInput, o as ForwardInput, p as MemoryJsonValue, pr as Account, r as AttachmentPartDownload, s as InboundEmail, t as AccountResource, tp as PlanLimits, u as MemoriesResource, v as MemorySetInput, w as SendAttachment, wr as AgentClaimResult, x as ReplyInput, xr as AgentAccountResult, y as PrimitiveClient } from "./index-Dv1zvPCc.js";
2
2
  import { $ as isPaymentFailedEvent, A as RawContentInline, B as InteractionEvent, C as ParsedData, D as ParsedStatus, E as ParsedError, F as ValidateEmailAuthResult, G as PaymentFailedEvent, H as InteractionX402Suffix, I as WebhookAttachment, J as WebhookEventType, K as PaymentSettledEvent, L as WebhookEvent, M as SpfResult, N as TlsReportAnalysis, O as RawContent, P as UnknownEvent, Q as isPaymentEvent, R as EMAIL_EVENT_TYPES, S as KnownWebhookEvent, T as ParsedDataFailed, U as PAYMENT_EVENT_TYPES, V as InteractionX402Event, W as PaymentEvent, X as isInteractionX402Event, Y as isEmailReceivedEvent, Z as isKnownWebhookEventType, _ as ForwardResultAttachmentAnalyzed, a as DkimSignature, b as ForwardVerdict, c as DmarcResult, d as EmailAuth, et as isPaymentSettledEvent, f as EmailReceivedEvent, g as ForwardResult, h as ForwardOriginalSender, i as DkimResult, j as RoutingDecision, k as RawContentDownloadOnly, l as EmailAddress, m as ForwardAnalysis, n as AuthVerdict, o as DmarcPolicy, p as EventType, q as WEBHOOK_EVENT_TYPES, r as BounceAnalysis, s as DmarcReportAnalysis, t as AuthConfidence, u as EmailAnalysis, v as ForwardResultAttachmentSkipped, w as ParsedDataComplete, x as ForwardVerification, y as ForwardResultInline, z as INTERACTION_EVENT_TYPES } from "./types-DcXtFARL.js";
3
3
  import { C as buildReplySubject, E as parseHeaderAddress, S as buildForwardSubject, T as normalizeReceivedEmail, _ as isTrustedSender, a as RawEmailDecodeErrorCode, b as ReceivedEmailAddress, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as TrustedSenderResult, h as TrustedSenderOptions, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as TrustReason, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as validateEmailAuth, w as formatAddress, x as ReceivedEmailThread, y as ReceivedEmail } from "./errors-BgI9FKHK.js";
4
4
  import { A as SignResult, B as validateEmailReceivedEvent, C as StandardWebhooksVerifyOptions, D as LEGACY_SIGNATURE_HEADER, E as LEGACY_CONFIRMED_HEADER, F as VerifyDownloadTokenOptions, I as VerifyDownloadTokenResult, L as generateDownloadToken, M as signWebhookPayload, N as verifyWebhookSignature, O as PRIMITIVE_CONFIRMED_HEADER, P as GenerateDownloadTokenOptions, R as verifyDownloadToken, S as StandardWebhooksSignResult, T as verifyStandardWebhooksSignature, _ as WEBHOOK_VERSION, a as WebhookHeaders, b as STANDARD_WEBHOOK_SIGNATURE_HEADER, c as getDownloadTimeRemaining, d as handleWebhookEvent, f as isDownloadExpired, g as verifyRawEmailDownload, h as receive, i as WEBHOOK_EVENT_HEADER, j as VerifyOptions, k as PRIMITIVE_SIGNATURE_HEADER, l as getEventHeader, m as parseWebhookEvent, n as HandleWebhookOptions, o as confirmedHeaders, p as isRawIncluded, r as ReceiveRequestOptions, s as decodeRawEmail, t as DecodeRawEmailOptions, u as handleWebhook, v as emailReceivedEventJsonSchema, w as signStandardWebhooksPayload, x as STANDARD_WEBHOOK_TIMESTAMP_HEADER, y as STANDARD_WEBHOOK_ID_HEADER, z as safeValidateEmailReceivedEvent } from "./index-fS1gVNuX.js";
5
- import { NonceBinding, PayoutRegistrationMessageInput, TokenDomain, TransferAuthorization, X402Challenge, X402ChargeInput, X402Client, X402ClientOptions, X402DeclinedPayment, X402Error, X402PaymentPayload, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402Signer, X402SpendPolicy, buildPayoutRegistrationMessage, createX402Client, deriveEip3009Nonce, parseEmailChallengeFromPart } from "./x402/index.js";
5
+ import { a as NonceBinding, c as TokenDomain, f as X402PaymentPayload, l as TransferAuthorization, m as X402Signer, o as PayoutRegistrationMessageInput, x as deriveEip3009Nonce, y as buildPayoutRegistrationMessage } from "./sign-m3ZStnNw.js";
6
+ import { X402Challenge, X402ChargeInput, X402Client, X402ClientOptions, X402DeclinedPayment, X402Error, X402PaymentRequirements, X402PayoutAddress, X402Receipt, X402SpendPolicy, createX402Client, parseEmailChallengeFromPart } from "./x402/index.js";
6
7
 
7
8
  //#region src/index.d.ts
8
9
  declare const primitive: {
@@ -11,4 +12,4 @@ declare const primitive: {
11
12
  x402: typeof createX402Client;
12
13
  };
13
14
  //#endregion
14
- export { type Account, AccountResource, type AgentAccountResult, type AgentAccountUpgradeHint, type AgentClaimLinkResult, type AgentClaimResult, type AgentClaimStartResult, AuthConfidence, AuthVerdict, BounceAnalysis, type CreateAgentAccountInput, type CreateAgentClaimLinkInput, type CreateAgentOptions, type CreatedAgent, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcReportAnalysis, DmarcResult, EMAIL_EVENT_TYPES, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, type ForwardInput, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, INTERACTION_EVENT_TYPES, type InboundEmail, InboxResource, type InboxStreamOptions, InteractionEvent, InteractionX402Event, InteractionX402Suffix, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, MemoriesResource, type MemoryDeleteInput, type MemoryGetInput, type MemoryJsonValue, type MemoryRecord, type MemoryRecordWithValue, type MemorySearchInput, type MemorySearchResponse, type MemorySetInput, type NonceBinding, PAYLOAD_ERRORS, PAYMENT_EVENT_TYPES, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PaymentEvent, PaymentFailedEvent, PaymentSettledEvent, type PayoutRegistrationMessageInput, type PlanLimits, PrimitiveApiError, PrimitiveClient, type PrimitiveClientOptions, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, type ReplyInput, RoutingDecision, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, type SendAttachment, type SendInput, type SendResult, type SendThreadInput, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, type StartAgentClaimInput, TlsReportAnalysis, type TokenDomain, type TransferAuthorization, TrustReason, TrustedSenderOptions, TrustedSenderResult, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, type VerifyAgentClaimInput, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_EVENT_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_VERSION, type WaitForNextOptions, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, type X402Challenge, type X402ChargeInput, X402Client, type X402ClientOptions, type X402DeclinedPayment, X402Error, type X402PaymentPayload, type X402PaymentRequirements, type X402PayoutAddress, type X402Receipt, type X402Signer, type X402SpendPolicy, buildForwardSubject, buildPayoutRegistrationMessage, buildReplySubject, client, confirmedHeaders, createAgent, createPrimitiveClient, createX402Client, decodeRawEmail, primitive as default, deriveEip3009Nonce, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, getEventHeader, handleWebhook, handleWebhookEvent, isDownloadExpired, isEmailReceivedEvent, isInteractionX402Event, isKnownWebhookEventType, isPaymentEvent, isPaymentFailedEvent, isPaymentSettledEvent, isRawIncluded, isTrustedSender, normalizeReceivedEmail, parseEmailChallengeFromPart, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
15
+ export { type Account, AccountResource, type AgentAccountResult, type AgentAccountUpgradeHint, type AgentClaimLinkResult, type AgentClaimResult, type AgentClaimStartResult, type AttachmentPartDownload, AuthConfidence, AuthVerdict, BounceAnalysis, type CreateAgentAccountInput, type CreateAgentClaimLinkInput, type CreateAgentOptions, type CreatedAgent, DecodeRawEmailOptions, DkimResult, DkimSignature, DmarcPolicy, DmarcReportAnalysis, DmarcResult, EMAIL_EVENT_TYPES, EmailAddress, EmailAnalysis, EmailAuth, EmailReceivedEvent, EventType, ForwardAnalysis, type ForwardInput, ForwardOriginalSender, ForwardResult, ForwardResultAttachmentAnalyzed, ForwardResultAttachmentSkipped, ForwardResultInline, ForwardVerdict, ForwardVerification, GenerateDownloadTokenOptions, HandleWebhookOptions, INTERACTION_EVENT_TYPES, type InboundEmail, InboxResource, type InboxStreamOptions, InteractionEvent, InteractionX402Event, InteractionX402Suffix, KnownWebhookEvent, LEGACY_CONFIRMED_HEADER, LEGACY_SIGNATURE_HEADER, MemoriesResource, type MemoryDeleteInput, type MemoryGetInput, type MemoryJsonValue, type MemoryRecord, type MemoryRecordWithValue, type MemorySearchInput, type MemorySearchResponse, type MemorySetInput, type NonceBinding, PAYLOAD_ERRORS, PAYMENT_EVENT_TYPES, PRIMITIVE_CONFIRMED_HEADER, PRIMITIVE_SIGNATURE_HEADER, ParsedData, ParsedDataComplete, ParsedDataFailed, ParsedError, ParsedStatus, PaymentEvent, PaymentFailedEvent, PaymentSettledEvent, type PayoutRegistrationMessageInput, type PlanLimits, PrimitiveApiError, PrimitiveClient, type PrimitiveClientOptions, PrimitiveWebhookError, RAW_EMAIL_ERRORS, RawContent, RawContentDownloadOnly, RawContentInline, RawEmailDecodeError, RawEmailDecodeErrorCode, ReceiveRequestOptions, ReceivedEmail, ReceivedEmailAddress, ReceivedEmailThread, type ReplyInput, RoutingDecision, STANDARD_WEBHOOK_ID_HEADER, STANDARD_WEBHOOK_SIGNATURE_HEADER, STANDARD_WEBHOOK_TIMESTAMP_HEADER, type SendAttachment, type SendInput, type SendResult, type SendThreadInput, SignResult, SpfResult, StandardWebhooksSignResult, StandardWebhooksVerifyOptions, type StartAgentClaimInput, TlsReportAnalysis, type TokenDomain, type TransferAuthorization, TrustReason, TrustedSenderOptions, TrustedSenderResult, UnknownEvent, VERIFICATION_ERRORS, ValidateEmailAuthResult, type VerifyAgentClaimInput, VerifyDownloadTokenOptions, VerifyDownloadTokenResult, VerifyOptions, WEBHOOK_EVENT_HEADER, WEBHOOK_EVENT_TYPES, WEBHOOK_VERSION, type WaitForNextOptions, WebhookAttachment, WebhookErrorCode, WebhookEvent, WebhookEventType, WebhookHeaders, WebhookPayloadError, WebhookPayloadErrorCode, WebhookValidationError, WebhookValidationErrorCode, WebhookVerificationError, WebhookVerificationErrorCode, type X402Challenge, type X402ChargeInput, X402Client, type X402ClientOptions, type X402DeclinedPayment, X402Error, type X402PaymentPayload, type X402PaymentRequirements, type X402PayoutAddress, type X402Receipt, type X402Signer, type X402SpendPolicy, buildForwardSubject, buildPayoutRegistrationMessage, buildReplySubject, client, confirmedHeaders, createAgent, createPrimitiveClient, createX402Client, decodeRawEmail, primitive as default, deriveEip3009Nonce, emailReceivedEventJsonSchema, formatAddress, generateDownloadToken, getDownloadTimeRemaining, getEventHeader, handleWebhook, handleWebhookEvent, isDownloadExpired, isEmailReceivedEvent, isInteractionX402Event, isKnownWebhookEventType, isPaymentEvent, isPaymentFailedEvent, isPaymentSettledEvent, isRawIncluded, isTrustedSender, normalizeReceivedEmail, parseEmailChallengeFromPart, parseHeaderAddress, parseWebhookEvent, receive, safeValidateEmailReceivedEvent, signStandardWebhooksPayload, signWebhookPayload, validateEmailAuth, validateEmailReceivedEvent, verifyDownloadToken, verifyRawEmailDownload, verifyStandardWebhooksSignature, verifyWebhookSignature };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, m as PrimitiveApiError, o as client, r as InboxResource, s as createAgent, t as AccountResource } from "./api-mauNzbhi.js";
1
+ import { a as PrimitiveClient, c as createPrimitiveClient, i as MemoriesResource, m as PrimitiveApiError, o as client, r as InboxResource, s as createAgent, t as AccountResource } from "./api-C_OS8hb4.js";
2
2
  import { C as normalizeReceivedEmail, S as formatAddress, _ as ForwardVerdict, a as VERIFICATION_ERRORS, b as buildForwardSubject, c as WebhookVerificationError, d as AuthConfidence, f as AuthVerdict, g as EventType, h as DmarcResult, i as RawEmailDecodeError, l as isTrustedSender, m as DmarcPolicy, n as PrimitiveWebhookError, o as WebhookPayloadError, p as DkimResult, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as validateEmailAuth, v as ParsedStatus, w as parseHeaderAddress, x as buildReplySubject, y as SpfResult } from "./errors-Bo0f7eId.js";
3
3
  import { A as isEmailReceivedEvent, C as PRIMITIVE_SIGNATURE_HEADER, D as INTERACTION_EVENT_TYPES, E as EMAIL_EVENT_TYPES, F as isPaymentSettledEvent, I as generateDownloadToken, L as verifyDownloadToken, M as isKnownWebhookEventType, N as isPaymentEvent, O as PAYMENT_EVENT_TYPES, P as isPaymentFailedEvent, R as safeValidateEmailReceivedEvent, S as PRIMITIVE_CONFIRMED_HEADER, T as verifyWebhookSignature, _ as STANDARD_WEBHOOK_TIMESTAMP_HEADER, a as getEventHeader, b as LEGACY_CONFIRMED_HEADER, c as isDownloadExpired, d as receive, f as verifyRawEmailDownload, g as STANDARD_WEBHOOK_SIGNATURE_HEADER, h as STANDARD_WEBHOOK_ID_HEADER, i as getDownloadTimeRemaining, j as isInteractionX402Event, k as WEBHOOK_EVENT_TYPES, l as isRawIncluded, m as emailReceivedEventJsonSchema, n as confirmedHeaders, o as handleWebhook, p as WEBHOOK_VERSION, r as decodeRawEmail, s as handleWebhookEvent, t as WEBHOOK_EVENT_HEADER, u as parseWebhookEvent, v as signStandardWebhooksPayload, w as signWebhookPayload, x as LEGACY_SIGNATURE_HEADER, y as verifyStandardWebhooksSignature, z as validateEmailReceivedEvent } from "./webhook-BtyuJtUF.js";
4
4
  import { X402Client, X402Error, buildPayoutRegistrationMessage, createX402Client, deriveEip3009Nonce, parseEmailChallengeFromPart } from "./x402/index.js";
@@ -0,0 +1,132 @@
1
+ import { i as InteractionEnvelope } from "../sign-m3ZStnNw.js";
2
+
3
+ //#region src/interactions/classify.d.ts
4
+ interface SignalContentPart {
5
+ filename: string | null;
6
+ contentType: string | null;
7
+ }
8
+ type SignalContentInventory = {
9
+ status: "complete";
10
+ parts: readonly SignalContentPart[];
11
+ } | {
12
+ status: "unavailable";
13
+ };
14
+ type SignalContentBodies = {
15
+ status: "complete";
16
+ text: string | null;
17
+ html: string | null;
18
+ } | {
19
+ status: "unavailable";
20
+ };
21
+ interface SignalContentInput {
22
+ /** Complete means the full outer inventory, including offloaded parts. */
23
+ inventory: SignalContentInventory;
24
+ bodies: SignalContentBodies;
25
+ /** Decoded bytes for the unique canonical part, never base64 text. */
26
+ canonicalPartBytes: Uint8Array | null;
27
+ }
28
+ type SignalContentReason = "inventory_unavailable" | "no_canonical_part" | "duplicate_canonical_parts" | "additional_parts" | "part_unavailable" | "invalid_interaction" | "unsupported_signal" | "unsupported_content_type" | "bodies_unavailable" | "html_present" | "text_mismatch" | "informational_signal";
29
+ interface SignalContentResult {
30
+ classification: "plain" | "informational_only" | "mixed_or_unsupported" | "unavailable";
31
+ reason: SignalContentReason;
32
+ /** Syntax/source evidence only. Never authentication or an interpreted receipt. */
33
+ interaction?: InteractionParseResult;
34
+ }
35
+ /** Pure content classification. It establishes no sender, receipt or task authority. */
36
+ declare function classifySignalContent(input: SignalContentInput): SignalContentResult;
37
+ //#endregion
38
+ //#region src/interactions/signals.d.ts
39
+ /** Explicit preparation of optional email signals. This module never sends automatically. */
40
+ interface SignalParent {
41
+ accountScope: string;
42
+ /** Authenticated original sender, as a bare mailbox. */
43
+ from: string;
44
+ /** Explicit authorized recipient identity to send from, as a bare mailbox. */
45
+ to: string;
46
+ messageId: string | null;
47
+ subject: string | null;
48
+ references: readonly string[];
49
+ }
50
+ type SignalInput = {
51
+ parent: SignalParent;
52
+ } & ({
53
+ kind: "ack";
54
+ status: "received" | "will_process" | "will_not_process";
55
+ note?: string;
56
+ } | {
57
+ kind: "read";
58
+ } | {
59
+ kind: "working";
60
+ expiresAtMs: number;
61
+ });
62
+ interface SignalDependencies {
63
+ uuid: () => string;
64
+ /** Unix time in integer milliseconds. */
65
+ now: () => number;
66
+ }
67
+ /** Persist this whole value before dispatch. requestJson fixes the ordinary send body. */
68
+ interface PreparedSignal {
69
+ readonly accountScope: string;
70
+ readonly preparedAtMs: number;
71
+ readonly expiresAtMs: number | null;
72
+ readonly idempotencyKey: string;
73
+ readonly requestJson: string;
74
+ }
75
+ type SignalPreparation = {
76
+ status: "waiting_on_parent";
77
+ } | {
78
+ status: "prepared";
79
+ prepared: PreparedSignal;
80
+ };
81
+ interface SignalSendBody {
82
+ from: string;
83
+ to: string;
84
+ subject: string;
85
+ body_text: string;
86
+ in_reply_to: string;
87
+ references: string[];
88
+ attachments: {
89
+ filename: string;
90
+ content_type: string;
91
+ content_base64: string;
92
+ }[];
93
+ }
94
+ type SignalSendResult<T> = {
95
+ status: "response";
96
+ result: T;
97
+ } | {
98
+ status: "expired";
99
+ idempotencyKey: string;
100
+ };
101
+ declare function prepareSignalEmail(input: SignalInput, dependencies: SignalDependencies): SignalPreparation;
102
+ /** One ordinary send attempt; the caller owns persistence, reconciliation and retries. */
103
+ declare function sendPreparedSignal<T>(sendMail: (body: SignalSendBody, idempotencyKey: string) => Promise<T>, prepared: PreparedSignal, options: {
104
+ accountScope: string;
105
+ now: () => number;
106
+ }): Promise<SignalSendResult<T>>;
107
+ //#endregion
108
+ //#region src/interactions/index.d.ts
109
+ declare const MAX_INTERACTION_BYTES = 65536;
110
+ declare const MAX_INTERACTION_DEPTH = 64;
111
+ type InteractionValidationResult = {
112
+ status: "valid";
113
+ envelope: InteractionEnvelope & Record<string, unknown>;
114
+ } | {
115
+ status: "unsupported";
116
+ version: number;
117
+ } | {
118
+ status: "invalid";
119
+ reason: "invalid_input" | "too_large" | "invalid_json" | "invalid_envelope";
120
+ };
121
+ type InteractionParseResult = InteractionValidationResult & {
122
+ /** Present on valid/unsupported input. Bytes are a defensive copy, never reserialized. */source?: {
123
+ text: string;
124
+ bytes?: Uint8Array;
125
+ };
126
+ };
127
+ /** Parse at most 64 KiB of strict UTF-8 JSON. Unknown protocols remain valid. */
128
+ declare function parseInteractionEnvelope(input: string | Uint8Array): InteractionParseResult;
129
+ /** Validate a decoded JSON value. Cannot detect lost duplicate keys or original bytes. */
130
+ declare function validateInteractionEnvelope(input: unknown): InteractionValidationResult;
131
+ //#endregion
132
+ export { type InteractionEnvelope, InteractionParseResult, InteractionValidationResult, MAX_INTERACTION_BYTES, MAX_INTERACTION_DEPTH, type PreparedSignal, type SignalContentBodies, type SignalContentInput, type SignalContentInventory, type SignalContentPart, type SignalContentReason, type SignalContentResult, type SignalDependencies, type SignalInput, type SignalParent, type SignalPreparation, type SignalSendBody, type SignalSendResult, classifySignalContent, parseInteractionEnvelope, prepareSignalEmail, sendPreparedSignal, validateInteractionEnvelope };