@primitivedotdev/sdk 1.0.1 → 1.1.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.
@@ -1,4 +1,4 @@
1
- import { $ as listDomains, $a as ListEndpointsResponse, $c as UpdateDomainError, $i as GetOrgRoutingTopologyError, $n as DeleteFunctionError, $o as ResendAgentSignupVerificationErrors, $r as FunctionListItem, $s as SetFunctionRouteResponses, $t as CliLogoutResponses, A as deleteEmail, Aa as InboxStatusEndpointSummary, Ac as TestEndpointResponses, Ai as GetEmailResponse, Al as VerifyCliSignupError, An as CreateFunctionSecretResponses, Ao as PollCliLoginError, Ar as DownloadRawEmailData, As as SemanticSearchScoreBreakdown, At as updateFunction, B as getConversation, Ba as ListDomainsData, Bc as UnsetFunctionRouteData, Bi as GetFunctionRoutingResponse, Bl as WebhookSecret, Bn as DeleteEmailResponse, Bo as ReplayEmailWebhooksData, Br as EmailSearchFacetBucket, Bs as SendPermissionAddress, Bt as AddDomainResponse, C as addDomain, Ca as GetWebhookSecretData, Cc as StartCliSignupResponses, Ci as GetConversationError, Cl as VerifyAgentSignupData, Cn as CreateFunctionResponses, Co as ListSentEmailsError, Cr as DownloadAttachmentsResponse, Cs as SemanticSearchError, Ct as testEndpoint, D as createFunction, Da as GetWebhookSecretResponses, Dc as TestEndpointError, Di as GetEmailData, Dl as VerifyAgentSignupResponse, Dn as CreateFunctionSecretErrors, Do as PaginationMeta, Dr as DownloadDomainZoneFileErrors, Ds as SemanticSearchMeta, Dt as updateDomain, E as createFilter, Ea as GetWebhookSecretResponse, Ec as TestEndpointData, Ei as GetConversationResponses, El as VerifyAgentSignupInput, En as CreateFunctionSecretError, Eo as ListSentEmailsResponses, Er as DownloadDomainZoneFileError, Es as SemanticSearchInput, Et as updateAccount, F as discardEmailContent, Fa as ListDeliveriesData, Fc as TestFunctionResponses, Fi as GetFunctionResponse, Fl as VerifyDomainData, Fn as DeleteDomainResponse, Fo as ReplayDeliveryData, Fr as EmailAddress, Fs as SendEmailResponse, Ft as AccountUpdated, G as getInboxStatus, Ga as ListEmailsData, Gc as UnverifiedDomain, Gi as GetFunctionTestRunTraceResponse, Gl as CreateClientConfig, Gn as DeleteEndpointResponse, Go as ReplayResult, Gr as EmailStatus, Gs as SendPermissionsMeta, Gt as AgentSignupVerifyResult, H as getFunction, Ha as ListDomainsErrors, Hc as UnsetFunctionRouteErrors, Hi as GetFunctionTestRunTraceData, Hl as Client, Hn as DeleteEndpointData, Ho as ReplayEmailWebhooksErrors, Hr as EmailSearchHighlights, Hs as SendPermissionManagedZone, Ht as AgentOrgRef, I as downloadAttachments, Ia as ListDeliveriesError, Ic as TestInvocationResult, Ii as GetFunctionResponses, Il as VerifyDomainError, In as DeleteDomainResponses, Io as ReplayDeliveryError, Ir as EmailAttachment, Is as SendEmailResponses, It as AddDomainData, J as getSentEmail, Ja as ListEmailsResponse, Jc as UpdateAccountErrors, Ji as GetInboxStatusError, Jl as RequestResult, Jn as DeleteFilterError, Jo as ReplyToEmailErrors, Jr as Endpoint, Js as SentEmailSummary, Jt as CliLogoutData, K as getOrgRoutingTopology, Ka as ListEmailsError, Kc as UpdateAccountData, Ki as GetFunctionTestRunTraceResponses, Kl as Options, Kn as DeleteEndpointResponses, Ko as ReplyToEmailData, Kr as EmailSummary, Ks as SentEmailDetail, Kt as CliLoginPollResult, L as downloadDomainZoneFile, La as ListDeliveriesErrors, Lc as TestResult, Li as GetFunctionRoutingData, Ll as VerifyDomainErrors, Ln as DeleteEmailData, Lo as ReplayDeliveryErrors, Lr as EmailAuth, Ls as SendMailAttachment, Lt as AddDomainError, M as deleteFilter, Ma as InboxStatusNextAction, Mc as TestFunctionError, Mi as GetFunctionData, Ml as VerifyCliSignupInput, Mn as DeleteDomainData, Mo as PollCliLoginInput, Mr as DownloadRawEmailErrors, Ms as SendEmailData, Mt as verifyCliSignup, N as deleteFunction, Na as InboxStatusRecentEmailSummary, Nc as TestFunctionErrors, Ni as GetFunctionError, Nl as VerifyCliSignupResponse, Nn as DeleteDomainError, No as PollCliLoginResponse, Nr as DownloadRawEmailResponse, Ns as SendEmailError, Nt as verifyDomain, O as createFunctionSecret, Oa as InboxStatus, Oc as TestEndpointErrors, Oi as GetEmailError, Ol as VerifyAgentSignupResponses, On as CreateFunctionSecretInput, Oo as ParsedEmailData, Or as DownloadDomainZoneFileResponse, Os as SemanticSearchResponses, Ot as updateEndpoint, P as deleteFunctionSecret, Pa as Limit, Pc as TestFunctionResponse, Pi as GetFunctionErrors, Pl as VerifyCliSignupResponses, Pn as DeleteDomainErrors, Po as PollCliLoginResponses, Pr as DownloadRawEmailResponses, Ps as SendEmailErrors, Pt as Account, Q as listDeliveries, Qa as ListEndpointsErrors, Qc as UpdateDomainData, Qi as GetOrgRoutingTopologyData, Qn as DeleteFunctionData, Qo as ResendAgentSignupVerificationError, Qr as FunctionDetail, Qs as SetFunctionRouteResponse, Qt as CliLogoutResponse, R as downloadRawEmail, Ra as ListDeliveriesResponse, Rc as Thread, Ri as GetFunctionRoutingError, Rl as VerifyDomainResponse, Rn as DeleteEmailError, Ro as ReplayDeliveryResponse, Rr as EmailDetail, Rs as SendMailInput, Rt as AddDomainErrors, S as createPrimitiveApiClient, Sa as GetThreadResponses, Sc as StartCliSignupResponse, Si as GetConversationData, Sl as VerifiedDomain, Sn as CreateFunctionResponse, So as ListSentEmailsData, Sr as DownloadAttachmentsErrors, Ss as SemanticSearchData, St as startCliSignup, T as createEndpoint, Ta as GetWebhookSecretErrors, Tc as SuccessEnvelope, Ti as GetConversationResponse, Tl as VerifyAgentSignupErrors, Tn as CreateFunctionSecretData, To as ListSentEmailsResponse, Tr as DownloadDomainZoneFileData, Ts as SemanticSearchField, Tt as unsetFunctionRoute, U as getFunctionRouting, Ua as ListDomainsResponse, Uc as UnsetFunctionRouteResponse, Ui as GetFunctionTestRunTraceError, Ul as ClientOptions, Un as DeleteEndpointError, Uo as ReplayEmailWebhooksResponse, Ur as EmailSearchMeta, Us as SendPermissionRule, Ut as AgentSignupResendResult, V as getEmail, Va as ListDomainsError, Vc as UnsetFunctionRouteError, Vi as GetFunctionRoutingResponses, Vl as createClient, Vn as DeleteEmailResponses, Vo as ReplayEmailWebhooksError, Vr as EmailSearchFacets, Vs as SendPermissionAnyRecipient, Vt as AddDomainResponses, W as getFunctionTestRunTrace, Wa as ListDomainsResponses, Wc as UnsetFunctionRouteResponses, Wi as GetFunctionTestRunTraceErrors, Wl as Config, Wn as DeleteEndpointErrors, Wo as ReplayEmailWebhooksResponses, Wr as EmailSearchResult, Ws as SendPermissionYourDomain, Wt as AgentSignupStartResult, X as getThread, Xa as ListEndpointsData, Xc as UpdateAccountResponse, Xi as GetInboxStatusResponse, Xl as createConfig, Xn as DeleteFilterResponse, Xo as ReplyToEmailResponses, Xr as Filter, Xs as SetFunctionRouteError, Xt as CliLogoutErrors, Y as getStorageStats, Ya as ListEmailsResponses, Yc as UpdateAccountInput, Yi as GetInboxStatusErrors, Yl as ResponseStyle, Yn as DeleteFilterErrors, Yo as ReplyToEmailResponse, Yr as ErrorResponse, Ys as SetFunctionRouteData, Yt as CliLogoutError, Z as getWebhookSecret, Za as ListEndpointsError, Zc as UpdateAccountResponses, Zi as GetInboxStatusResponses, Zl as Auth, Zn as DeleteFilterResponses, Zo as ResendAgentSignupVerificationData, Zr as FunctionDeployStatus, Zs as SetFunctionRouteErrors, Zt as CliLogoutInput, _ as PrimitiveApiClient, _a as GetStorageStatsResponses, _c as StartCliLoginResponses, _i as GetAccountData, _l as UpdateFunctionError, _n as CreateFilterResponses, _o as ListFunctionsData, _r as Domain, _s as SearchEmailsError, _t as sendEmail, a as RequestOptions$2, aa as GetSendPermissionsErrors, ac as SetFunctionSecretResponses, ai as FunctionSecretWriteResult, al as UpdateEndpointError, an as ConversationMessage, ao as ListFiltersResponse, ar as DeleteFunctionSecretErrors, as as ResendCliSignupVerificationErrors, at as listFunctions, b as PrimitiveApiErrorDetails, ba as GetThreadErrors, bc as StartCliSignupErrors, bi as GetAccountResponse, bl as UpdateFunctionResponse, bn as CreateFunctionErrors, bo as ListFunctionsResponse, br as DownloadAttachmentsData, bs as SearchEmailsResponses, bt as startAgentSignup, c as SendInput, ca as GetSentEmailData, cc as StartAgentSignupErrors, ci as FunctionTestRunDeliveryEndpoint, cl as UpdateEndpointResponse, cn as CreateEndpointErrors, co as ListFunctionLogsError, cr as DeliveryStatus, cs as ResendCliSignupVerificationResponses, ct as replayDelivery, d as client, da as GetSentEmailResponse, dc as StartAgentSignupResponses, di as FunctionTestRunReply, dl as UpdateFilterError, dn as CreateEndpointResponses, do as ListFunctionLogsResponses, dr as DiscardEmailContentData, ds as RotateWebhookSecretError, dt as resendAgentSignupVerification, ea as GetOrgRoutingTopologyErrors, ec as SetFunctionSecretData, ei as FunctionLogRow, el as UpdateDomainErrors, en as CliLogoutResult, eo as ListEndpointsResponses, er as DeleteFunctionErrors, es as ResendAgentSignupVerificationInput, et as listEmails, f as createPrimitiveClient, fa as GetSentEmailResponses, fc as StartCliLoginData, fi as FunctionTestRunSend, fl as UpdateFilterErrors, fn as CreateFilterData, fo as ListFunctionSecretsData, fr as DiscardEmailContentError, fs as RotateWebhookSecretErrors, ft as resendCliSignupVerification, g as DEFAULT_API_BASE_URL, ga as GetStorageStatsResponse, gc as StartCliLoginResponse, gi as GateFix, gl as UpdateFunctionData, gn as CreateFilterResponse, go as ListFunctionSecretsResponses, gr as DkimSignature, gs as SearchEmailsData, gt as semanticSearch, h as verifyWebhookSignature, ha as GetStorageStatsErrors, hc as StartCliLoginInput, hi as GateDenial, hl as UpdateFilterResponses, hn as CreateFilterInput, ho as ListFunctionSecretsResponse, hr as DiscardEmailContentResponses, hs as RoutingTopology, ht as searchEmails, i as ReplyInput, ia as GetSendPermissionsError, ic as SetFunctionSecretResponse, ii as FunctionSecretListItem, il as UpdateEndpointData, in as Conversation, io as ListFiltersErrors, ir as DeleteFunctionSecretError, is as ResendCliSignupVerificationError, it as listFunctionSecrets, j as deleteEndpoint, ja as InboxStatusFunctionSummary, jc as TestFunctionData, ji as GetEmailResponses, jl as VerifyCliSignupErrors, jn as Cursor, jo as PollCliLoginErrors, jr as DownloadRawEmailError, js as SemanticSearchSnippet, jt as verifyAgentSignup, k as deleteDomain, ka as InboxStatusDomain, kc as TestEndpointResponse, ki as GetEmailErrors, kl as VerifyCliSignupData, kn as CreateFunctionSecretResponse, ko as PollCliLoginData, kr as DownloadDomainZoneFileResponses, ks as SemanticSearchResult, kt as updateFilter, l as SendResult, la as GetSentEmailError, lc as StartAgentSignupInput, li as FunctionTestRunInboundEmail, ll as UpdateEndpointResponses, ln as CreateEndpointInput, lo as ListFunctionLogsErrors, lr as DeliverySummary, ls as ResourceId, lt as replayEmailWebhooks, m as VerifyOptions, ma as GetStorageStatsError, mc as StartCliLoginErrors, mi as FunctionTestRunTrace, ml as UpdateFilterResponse, mn as CreateFilterErrors, mo as ListFunctionSecretsErrors, mr as DiscardEmailContentResponse, ms as RotateWebhookSecretResponses, mt as sdk_gen_d_exports, n as PrimitiveClient, na as GetOrgRoutingTopologyResponses, nc as SetFunctionSecretErrors, ni as FunctionRouteResult, nl as UpdateDomainResponse, nn as CliSignupStartResult, no as ListFiltersData, nr as DeleteFunctionResponses, ns as ResendAgentSignupVerificationResponses, nt as listFilters, o as SemanticSearchResponse, oa as GetSendPermissionsResponse, oc as StartAgentSignupData, oi as FunctionTestRun, ol as UpdateEndpointErrors, on as CreateEndpointData, oo as ListFiltersResponses, or as DeleteFunctionSecretResponse, os as ResendCliSignupVerificationInput, ot as listSentEmails, p as PRIMITIVE_SIGNATURE_HEADER, pa as GetStorageStatsData, pc as StartCliLoginError, pi as FunctionTestRunState, pl as UpdateFilterInput, pn as CreateFilterError, po as ListFunctionSecretsError, pr as DiscardEmailContentErrors, ps as RotateWebhookSecretResponse, pt as rotateWebhookSecret, q as getSendPermissions, qa as ListEmailsErrors, qc as UpdateAccountError, qi as GetInboxStatusData, ql as RequestOptions, qn as DeleteFilterData, qo as ReplyToEmailError, qr as EmailWebhookStatus, qs as SentEmailStatus, qt as CliLoginStartResult, r as PrimitiveClientOptions, ra as GetSendPermissionsData, rc as SetFunctionSecretInput, ri as FunctionRouting, rl as UpdateDomainResponses, rn as CliSignupVerifyResult, ro as ListFiltersError, rr as DeleteFunctionSecretData, rs as ResendCliSignupVerificationData, rt as listFunctionLogs, s as SendAttachment, sa as GetSendPermissionsResponses, sc as StartAgentSignupError, si as FunctionTestRunDelivery, sl as UpdateEndpointInput, sn as CreateEndpointError, so as ListFunctionLogsData, sr as DeleteFunctionSecretResponses, ss as ResendCliSignupVerificationResponse, st as pollCliLogin, t as ForwardInput, ta as GetOrgRoutingTopologyResponse, tc as SetFunctionSecretError, ti as FunctionRouteBody, tl as UpdateDomainInput, tn as CliSignupResendResult, to as ListEnvelope, tr as DeleteFunctionResponse, ts as ResendAgentSignupVerificationResponse, tt as listEndpoints, u as SendThreadInput, ua as GetSentEmailErrors, uc as StartAgentSignupResponse, ui as FunctionTestRunOutboundRequest, ul as UpdateFilterData, un as CreateEndpointResponse, uo as ListFunctionLogsResponse, ur as DiscardContentResult, us as RotateWebhookSecretData, ut as replyToEmail, v as PrimitiveApiClientOptions, va as GetThreadData, vc as StartCliSignupData, vi as GetAccountError, vl as UpdateFunctionErrors, vn as CreateFunctionData, vo as ListFunctionsError, vr as DomainDnsRecord, vs as SearchEmailsErrors, vt as setFunctionRoute, w as cliLogout, wa as GetWebhookSecretError, wc as StorageStats, wi as GetConversationErrors, wl as VerifyAgentSignupError, wn as CreateFunctionResult, wo as ListSentEmailsErrors, wr as DownloadAttachmentsResponses, ws as SemanticSearchErrors, wt as testFunction, x as RequestOptions$1, xa as GetThreadResponse, xc as StartCliSignupInput, xi as GetAccountResponses, xl as UpdateFunctionResponses, xn as CreateFunctionInput, xo as ListFunctionsResponses, xr as DownloadAttachmentsError, xs as SemanticSearchCoverage, xt as startCliLogin, y as PrimitiveApiError, ya as GetThreadError, yc as StartCliSignupError, yi as GetAccountErrors, yl as UpdateFunctionInput, yn as CreateFunctionError, yo as ListFunctionsErrors, yr as DomainVerifyResult, ys as SearchEmailsResponse, yt as setFunctionSecret, z as getAccount, za as ListDeliveriesResponses, zc as ThreadMessage, zi as GetFunctionRoutingErrors, zl as VerifyDomainResponses, zn as DeleteEmailErrors, zo as ReplayDeliveryResponses, zr as EmailDetailReply, zs as SendMailResult, zt as AddDomainInput } from "../index-9uc511Ei.js";
1
+ import { $ as listDomains, $a as ListEndpointsResponse, $c as UpdateDomainError, $i as GetOrgRoutingTopologyError, $n as DeleteFunctionError, $o as ResendAgentSignupVerificationErrors, $r as FunctionListItem, $s as SetFunctionRouteResponses, $t as CliLogoutResponses, A as deleteEmail, Aa as InboxStatusEndpointSummary, Ac as TestEndpointResponses, Ai as GetEmailResponse, Al as VerifyCliSignupError, An as CreateFunctionSecretResponses, Ao as PollCliLoginError, Ar as DownloadRawEmailData, As as SemanticSearchScoreBreakdown, At as updateFunction, B as getConversation, Ba as ListDomainsData, Bc as UnsetFunctionRouteData, Bi as GetFunctionRoutingResponse, Bl as WebhookSecret, Bn as DeleteEmailResponse, Bo as ReplayEmailWebhooksData, Br as EmailSearchFacetBucket, Bs as SendPermissionAddress, Bt as AddDomainResponse, C as addDomain, Ca as GetWebhookSecretData, Cc as StartCliSignupResponses, Ci as GetConversationError, Cl as VerifyAgentSignupData, Cn as CreateFunctionResponses, Co as ListSentEmailsError, Cr as DownloadAttachmentsResponse, Cs as SemanticSearchError, Ct as testEndpoint, D as createFunction, Da as GetWebhookSecretResponses, Dc as TestEndpointError, Di as GetEmailData, Dl as VerifyAgentSignupResponse, Dn as CreateFunctionSecretErrors, Do as PaginationMeta, Dr as DownloadDomainZoneFileErrors, Ds as SemanticSearchMeta, Dt as updateDomain, E as createFilter, Ea as GetWebhookSecretResponse, Ec as TestEndpointData, Ei as GetConversationResponses, El as VerifyAgentSignupInput, En as CreateFunctionSecretError, Eo as ListSentEmailsResponses, Er as DownloadDomainZoneFileError, Es as SemanticSearchInput, Et as updateAccount, F as discardEmailContent, Fa as ListDeliveriesData, Fc as TestFunctionResponses, Fi as GetFunctionResponse, Fl as VerifyDomainData, Fn as DeleteDomainResponse, Fo as ReplayDeliveryData, Fr as EmailAddress, Fs as SendEmailResponse, Ft as AccountUpdated, G as getInboxStatus, Ga as ListEmailsData, Gc as UnverifiedDomain, Gi as GetFunctionTestRunTraceResponse, Gl as CreateClientConfig, Gn as DeleteEndpointResponse, Go as ReplayResult, Gr as EmailStatus, Gs as SendPermissionsMeta, Gt as AgentSignupVerifyResult, H as getFunction, Ha as ListDomainsErrors, Hc as UnsetFunctionRouteErrors, Hi as GetFunctionTestRunTraceData, Hl as Client, Hn as DeleteEndpointData, Ho as ReplayEmailWebhooksErrors, Hr as EmailSearchHighlights, Hs as SendPermissionManagedZone, Ht as AgentOrgRef, I as downloadAttachments, Ia as ListDeliveriesError, Ic as TestInvocationResult, Ii as GetFunctionResponses, Il as VerifyDomainError, In as DeleteDomainResponses, Io as ReplayDeliveryError, Ir as EmailAttachment, Is as SendEmailResponses, It as AddDomainData, J as getSentEmail, Ja as ListEmailsResponse, Jc as UpdateAccountErrors, Ji as GetInboxStatusError, Jl as RequestResult, Jn as DeleteFilterError, Jo as ReplyToEmailErrors, Jr as Endpoint, Js as SentEmailSummary, Jt as CliLogoutData, K as getOrgRoutingTopology, Ka as ListEmailsError, Kc as UpdateAccountData, Ki as GetFunctionTestRunTraceResponses, Kl as Options, Kn as DeleteEndpointResponses, Ko as ReplyToEmailData, Kr as EmailSummary, Ks as SentEmailDetail, Kt as CliLoginPollResult, L as downloadDomainZoneFile, La as ListDeliveriesErrors, Lc as TestResult, Li as GetFunctionRoutingData, Ll as VerifyDomainErrors, Ln as DeleteEmailData, Lo as ReplayDeliveryErrors, Lr as EmailAuth, Ls as SendMailAttachment, Lt as AddDomainError, M as deleteFilter, Ma as InboxStatusNextAction, Mc as TestFunctionError, Mi as GetFunctionData, Ml as VerifyCliSignupInput, Mn as DeleteDomainData, Mo as PollCliLoginInput, Mr as DownloadRawEmailErrors, Ms as SendEmailData, Mt as verifyCliSignup, N as deleteFunction, Na as InboxStatusRecentEmailSummary, Nc as TestFunctionErrors, Ni as GetFunctionError, Nl as VerifyCliSignupResponse, Nn as DeleteDomainError, No as PollCliLoginResponse, Nr as DownloadRawEmailResponse, Ns as SendEmailError, Nt as verifyDomain, O as createFunctionSecret, Oa as InboxStatus, Oc as TestEndpointErrors, Oi as GetEmailError, Ol as VerifyAgentSignupResponses, On as CreateFunctionSecretInput, Oo as ParsedEmailData, Or as DownloadDomainZoneFileResponse, Os as SemanticSearchResponses, Ot as updateEndpoint, P as deleteFunctionSecret, Pa as Limit, Pc as TestFunctionResponse, Pi as GetFunctionErrors, Pl as VerifyCliSignupResponses, Pn as DeleteDomainErrors, Po as PollCliLoginResponses, Pr as DownloadRawEmailResponses, Ps as SendEmailErrors, Pt as Account, Q as listDeliveries, Qa as ListEndpointsErrors, Qc as UpdateDomainData, Qi as GetOrgRoutingTopologyData, Qn as DeleteFunctionData, Qo as ResendAgentSignupVerificationError, Qr as FunctionDetail, Qs as SetFunctionRouteResponse, Qt as CliLogoutResponse, R as downloadRawEmail, Ra as ListDeliveriesResponse, Rc as Thread, Ri as GetFunctionRoutingError, Rl as VerifyDomainResponse, Rn as DeleteEmailError, Ro as ReplayDeliveryResponse, Rr as EmailDetail, Rs as SendMailInput, Rt as AddDomainErrors, S as createPrimitiveApiClient, Sa as GetThreadResponses, Sc as StartCliSignupResponse, Si as GetConversationData, Sl as VerifiedDomain, Sn as CreateFunctionResponse, So as ListSentEmailsData, Sr as DownloadAttachmentsErrors, Ss as SemanticSearchData, St as startCliSignup, T as createEndpoint, Ta as GetWebhookSecretErrors, Tc as SuccessEnvelope, Ti as GetConversationResponse, Tl as VerifyAgentSignupErrors, Tn as CreateFunctionSecretData, To as ListSentEmailsResponse, Tr as DownloadDomainZoneFileData, Ts as SemanticSearchField, Tt as unsetFunctionRoute, U as getFunctionRouting, Ua as ListDomainsResponse, Uc as UnsetFunctionRouteResponse, Ui as GetFunctionTestRunTraceError, Ul as ClientOptions, Un as DeleteEndpointError, Uo as ReplayEmailWebhooksResponse, Ur as EmailSearchMeta, Us as SendPermissionRule, Ut as AgentSignupResendResult, V as getEmail, Va as ListDomainsError, Vc as UnsetFunctionRouteError, Vi as GetFunctionRoutingResponses, Vl as createClient, Vn as DeleteEmailResponses, Vo as ReplayEmailWebhooksError, Vr as EmailSearchFacets, Vs as SendPermissionAnyRecipient, Vt as AddDomainResponses, W as getFunctionTestRunTrace, Wa as ListDomainsResponses, Wc as UnsetFunctionRouteResponses, Wi as GetFunctionTestRunTraceErrors, Wl as Config, Wn as DeleteEndpointErrors, Wo as ReplayEmailWebhooksResponses, Wr as EmailSearchResult, Ws as SendPermissionYourDomain, Wt as AgentSignupStartResult, X as getThread, Xa as ListEndpointsData, Xc as UpdateAccountResponse, Xi as GetInboxStatusResponse, Xl as createConfig, Xn as DeleteFilterResponse, Xo as ReplyToEmailResponses, Xr as Filter, Xs as SetFunctionRouteError, Xt as CliLogoutErrors, Y as getStorageStats, Ya as ListEmailsResponses, Yc as UpdateAccountInput, Yi as GetInboxStatusErrors, Yl as ResponseStyle, Yn as DeleteFilterErrors, Yo as ReplyToEmailResponse, Yr as ErrorResponse, Ys as SetFunctionRouteData, Yt as CliLogoutError, Z as getWebhookSecret, Za as ListEndpointsError, Zc as UpdateAccountResponses, Zi as GetInboxStatusResponses, Zl as Auth, Zn as DeleteFilterResponses, Zo as ResendAgentSignupVerificationData, Zr as FunctionDeployStatus, Zs as SetFunctionRouteErrors, Zt as CliLogoutInput, _ as PrimitiveApiClient, _a as GetStorageStatsResponses, _c as StartCliLoginResponses, _i as GetAccountData, _l as UpdateFunctionError, _n as CreateFilterResponses, _o as ListFunctionsData, _r as Domain, _s as SearchEmailsError, _t as sendEmail, a as RequestOptions$2, aa as GetSendPermissionsErrors, ac as SetFunctionSecretResponses, ai as FunctionSecretWriteResult, al as UpdateEndpointError, an as ConversationMessage, ao as ListFiltersResponse, ar as DeleteFunctionSecretErrors, as as ResendCliSignupVerificationErrors, at as listFunctions, b as PrimitiveApiErrorDetails, ba as GetThreadErrors, bc as StartCliSignupErrors, bi as GetAccountResponse, bl as UpdateFunctionResponse, bn as CreateFunctionErrors, bo as ListFunctionsResponse, br as DownloadAttachmentsData, bs as SearchEmailsResponses, bt as startAgentSignup, c as SendInput, ca as GetSentEmailData, cc as StartAgentSignupErrors, ci as FunctionTestRunDeliveryEndpoint, cl as UpdateEndpointResponse, cn as CreateEndpointErrors, co as ListFunctionLogsError, cr as DeliveryStatus, cs as ResendCliSignupVerificationResponses, ct as replayDelivery, d as client, da as GetSentEmailResponse, dc as StartAgentSignupResponses, di as FunctionTestRunReply, dl as UpdateFilterError, dn as CreateEndpointResponses, do as ListFunctionLogsResponses, dr as DiscardEmailContentData, ds as RotateWebhookSecretError, dt as resendAgentSignupVerification, ea as GetOrgRoutingTopologyErrors, ec as SetFunctionSecretData, ei as FunctionLogRow, el as UpdateDomainErrors, en as CliLogoutResult, eo as ListEndpointsResponses, er as DeleteFunctionErrors, es as ResendAgentSignupVerificationInput, et as listEmails, f as createPrimitiveClient, fa as GetSentEmailResponses, fc as StartCliLoginData, fi as FunctionTestRunSend, fl as UpdateFilterErrors, fn as CreateFilterData, fo as ListFunctionSecretsData, fr as DiscardEmailContentError, fs as RotateWebhookSecretErrors, ft as resendCliSignupVerification, g as DEFAULT_API_BASE_URL, ga as GetStorageStatsResponse, gc as StartCliLoginResponse, gi as GateFix, gl as UpdateFunctionData, gn as CreateFilterResponse, go as ListFunctionSecretsResponses, gr as DkimSignature, gs as SearchEmailsData, gt as semanticSearch, h as verifyWebhookSignature, ha as GetStorageStatsErrors, hc as StartCliLoginInput, hi as GateDenial, hl as UpdateFilterResponses, hn as CreateFilterInput, ho as ListFunctionSecretsResponse, hr as DiscardEmailContentResponses, hs as RoutingTopology, ht as searchEmails, i as ReplyInput, ia as GetSendPermissionsError, ic as SetFunctionSecretResponse, ii as FunctionSecretListItem, il as UpdateEndpointData, in as Conversation, io as ListFiltersErrors, ir as DeleteFunctionSecretError, is as ResendCliSignupVerificationError, it as listFunctionSecrets, j as deleteEndpoint, ja as InboxStatusFunctionSummary, jc as TestFunctionData, ji as GetEmailResponses, jl as VerifyCliSignupErrors, jn as Cursor, jo as PollCliLoginErrors, jr as DownloadRawEmailError, js as SemanticSearchSnippet, jt as verifyAgentSignup, k as deleteDomain, ka as InboxStatusDomain, kc as TestEndpointResponse, ki as GetEmailErrors, kl as VerifyCliSignupData, kn as CreateFunctionSecretResponse, ko as PollCliLoginData, kr as DownloadDomainZoneFileResponses, ks as SemanticSearchResult, kt as updateFilter, l as SendResult, la as GetSentEmailError, lc as StartAgentSignupInput, li as FunctionTestRunInboundEmail, ll as UpdateEndpointResponses, ln as CreateEndpointInput, lo as ListFunctionLogsErrors, lr as DeliverySummary, ls as ResourceId, lt as replayEmailWebhooks, m as VerifyOptions, ma as GetStorageStatsError, mc as StartCliLoginErrors, mi as FunctionTestRunTrace, ml as UpdateFilterResponse, mn as CreateFilterErrors, mo as ListFunctionSecretsErrors, mr as DiscardEmailContentResponse, ms as RotateWebhookSecretResponses, mt as sdk_gen_d_exports, n as PrimitiveClient, na as GetOrgRoutingTopologyResponses, nc as SetFunctionSecretErrors, ni as FunctionRouteResult, nl as UpdateDomainResponse, nn as CliSignupStartResult, no as ListFiltersData, nr as DeleteFunctionResponses, ns as ResendAgentSignupVerificationResponses, nt as listFilters, o as SemanticSearchResponse, oa as GetSendPermissionsResponse, oc as StartAgentSignupData, oi as FunctionTestRun, ol as UpdateEndpointErrors, on as CreateEndpointData, oo as ListFiltersResponses, or as DeleteFunctionSecretResponse, os as ResendCliSignupVerificationInput, ot as listSentEmails, p as PRIMITIVE_SIGNATURE_HEADER, pa as GetStorageStatsData, pc as StartCliLoginError, pi as FunctionTestRunState, pl as UpdateFilterInput, pn as CreateFilterError, po as ListFunctionSecretsError, pr as DiscardEmailContentErrors, ps as RotateWebhookSecretResponse, pt as rotateWebhookSecret, q as getSendPermissions, qa as ListEmailsErrors, qc as UpdateAccountError, qi as GetInboxStatusData, ql as RequestOptions, qn as DeleteFilterData, qo as ReplyToEmailError, qr as EmailWebhookStatus, qs as SentEmailStatus, qt as CliLoginStartResult, r as PrimitiveClientOptions, ra as GetSendPermissionsData, rc as SetFunctionSecretInput, ri as FunctionRouting, rl as UpdateDomainResponses, rn as CliSignupVerifyResult, ro as ListFiltersError, rr as DeleteFunctionSecretData, rs as ResendCliSignupVerificationData, rt as listFunctionLogs, s as SendAttachment, sa as GetSendPermissionsResponses, sc as StartAgentSignupError, si as FunctionTestRunDelivery, sl as UpdateEndpointInput, sn as CreateEndpointError, so as ListFunctionLogsData, sr as DeleteFunctionSecretResponses, ss as ResendCliSignupVerificationResponse, st as pollCliLogin, t as ForwardInput, ta as GetOrgRoutingTopologyResponse, tc as SetFunctionSecretError, ti as FunctionRouteBody, tl as UpdateDomainInput, tn as CliSignupResendResult, to as ListEnvelope, tr as DeleteFunctionResponse, ts as ResendAgentSignupVerificationResponse, tt as listEndpoints, u as SendThreadInput, ua as GetSentEmailErrors, uc as StartAgentSignupResponse, ui as FunctionTestRunOutboundRequest, ul as UpdateFilterData, un as CreateEndpointResponse, uo as ListFunctionLogsResponse, ur as DiscardContentResult, us as RotateWebhookSecretData, ut as replyToEmail, v as PrimitiveApiClientOptions, va as GetThreadData, vc as StartCliSignupData, vi as GetAccountError, vl as UpdateFunctionErrors, vn as CreateFunctionData, vo as ListFunctionsError, vr as DomainDnsRecord, vs as SearchEmailsErrors, vt as setFunctionRoute, w as cliLogout, wa as GetWebhookSecretError, wc as StorageStats, wi as GetConversationErrors, wl as VerifyAgentSignupError, wn as CreateFunctionResult, wo as ListSentEmailsErrors, wr as DownloadAttachmentsResponses, ws as SemanticSearchErrors, wt as testFunction, x as RequestOptions$1, xa as GetThreadResponse, xc as StartCliSignupInput, xi as GetAccountResponses, xl as UpdateFunctionResponses, xn as CreateFunctionInput, xo as ListFunctionsResponses, xr as DownloadAttachmentsError, xs as SemanticSearchCoverage, xt as startCliLogin, y as PrimitiveApiError, ya as GetThreadError, yc as StartCliSignupError, yi as GetAccountErrors, yl as UpdateFunctionInput, yn as CreateFunctionError, yo as ListFunctionsErrors, yr as DomainVerifyResult, ys as SearchEmailsResponse, yt as setFunctionSecret, z as getAccount, za as ListDeliveriesResponses, zc as ThreadMessage, zi as GetFunctionRoutingErrors, zl as VerifyDomainResponses, zn as DeleteEmailErrors, zo as ReplayDeliveryResponses, zr as EmailDetailReply, zs as SendMailResult, zt as AddDomainInput } from "../index-DdSffRr0.js";
2
2
  import { i as openapiDocument, n as PrimitiveParameterManifest, r as operationManifest, t as PrimitiveOperationManifest } from "../operations.generated-BAniFZK9.js";
3
3
  import { u as EmailReceivedEvent } from "../types-yNU-Oiea.js";
4
4
  import { b as normalizeReceivedEmail, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, m as ReceivedEmail, p as WebhookVerificationErrorCode } from "../errors-7E9sW9eX.js";
package/dist/api/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as resendCliSignupVerification, A as getFunctionRouting, B as listDomains, C as downloadAttachments, D as getConversation, E as getAccount, F as getSentEmail, G as listFunctionSecrets, H as listEndpoints, I as getStorageStats, J as pollCliLogin, K as listFunctions, L as getThread, M as getInboxStatus, N as getOrgRoutingTopology, O as getEmail, P as getSendPermissions, Q as resendAgentSignupVerification, R as getWebhookSecret, S as discardEmailContent, St as createConfig, T as downloadRawEmail, U as listFilters, V as listEmails, W as listFunctionLogs, X as replayEmailWebhooks, Y as replayDelivery, Z as replyToEmail, _ as deleteEmail, _t as updateFunction, a as verifyWebhookSignature, at as setFunctionRoute, b as deleteFunction, bt as verifyDomain, c as PrimitiveApiError, ct as startCliLogin, d as cliLogout, dt as testFunction, et as rotateWebhookSecret, f as createEndpoint, ft as unsetFunctionRoute, g as deleteDomain, gt as updateFilter, h as createFunctionSecret, ht as updateEndpoint, i as PRIMITIVE_SIGNATURE_HEADER, it as sendEmail, j as getFunctionTestRunTrace, k as getFunction, l as createPrimitiveApiClient, lt as startCliSignup, m as createFunction, mt as updateDomain, n as client, nt as searchEmails, o as DEFAULT_API_BASE_URL, ot as setFunctionSecret, p as createFilter, pt as updateAccount, q as listSentEmails, r as createPrimitiveClient, rt as semanticSearch, s as PrimitiveApiClient, st as startAgentSignup, t as PrimitiveClient, tt as sdk_gen_exports, u as addDomain, ut as testEndpoint, v as deleteEndpoint, vt as verifyAgentSignup, w as downloadDomainZoneFile, x as deleteFunctionSecret, xt as createClient, y as deleteFilter, yt as verifyCliSignup, z as listDeliveries } from "../api-Cxq2cH8Q.js";
2
- import { n as openapiDocument, t as operationManifest } from "../operations.generated-CsHewGFi.js";
1
+ import { $ as resendCliSignupVerification, A as getFunctionRouting, B as listDomains, C as downloadAttachments, D as getConversation, E as getAccount, F as getSentEmail, G as listFunctionSecrets, H as listEndpoints, I as getStorageStats, J as pollCliLogin, K as listFunctions, L as getThread, M as getInboxStatus, N as getOrgRoutingTopology, O as getEmail, P as getSendPermissions, Q as resendAgentSignupVerification, R as getWebhookSecret, S as discardEmailContent, St as createConfig, T as downloadRawEmail, U as listFilters, V as listEmails, W as listFunctionLogs, X as replayEmailWebhooks, Y as replayDelivery, Z as replyToEmail, _ as deleteEmail, _t as updateFunction, a as verifyWebhookSignature, at as setFunctionRoute, b as deleteFunction, bt as verifyDomain, c as PrimitiveApiError, ct as startCliLogin, d as cliLogout, dt as testFunction, et as rotateWebhookSecret, f as createEndpoint, ft as unsetFunctionRoute, g as deleteDomain, gt as updateFilter, h as createFunctionSecret, ht as updateEndpoint, i as PRIMITIVE_SIGNATURE_HEADER, it as sendEmail, j as getFunctionTestRunTrace, k as getFunction, l as createPrimitiveApiClient, lt as startCliSignup, m as createFunction, mt as updateDomain, n as client, nt as searchEmails, o as DEFAULT_API_BASE_URL, ot as setFunctionSecret, p as createFilter, pt as updateAccount, q as listSentEmails, r as createPrimitiveClient, rt as semanticSearch, s as PrimitiveApiClient, st as startAgentSignup, t as PrimitiveClient, tt as sdk_gen_exports, u as addDomain, ut as testEndpoint, v as deleteEndpoint, vt as verifyAgentSignup, w as downloadDomainZoneFile, x as deleteFunctionSecret, xt as createClient, y as deleteFilter, yt as verifyCliSignup, z as listDeliveries } from "../api-JvyzQsXn.js";
2
+ import { n as openapiDocument, t as operationManifest } from "../operations.generated-CvXrZUzc.js";
3
3
  import { c as WebhookVerificationError, f as normalizeReceivedEmail } from "../errors-BPJGp9I6.js";
4
4
  export { DEFAULT_API_BASE_URL, PRIMITIVE_SIGNATURE_HEADER, PrimitiveApiClient, PrimitiveApiError, PrimitiveClient, WebhookVerificationError, addDomain, cliLogout, client, createClient, createConfig, createEndpoint, createFilter, createFunction, createFunctionSecret, createPrimitiveApiClient, createPrimitiveClient, deleteDomain, deleteEmail, deleteEndpoint, deleteFilter, deleteFunction, deleteFunctionSecret, discardEmailContent, downloadAttachments, downloadDomainZoneFile, downloadRawEmail, getAccount, getConversation, getEmail, getFunction, getFunctionRouting, getFunctionTestRunTrace, getInboxStatus, getOrgRoutingTopology, getSendPermissions, getSentEmail, getStorageStats, getThread, getWebhookSecret, listDeliveries, listDomains, listEmails, listEndpoints, listFilters, listFunctionLogs, listFunctionSecrets, listFunctions, listSentEmails, normalizeReceivedEmail, openapiDocument, operationManifest, sdk_gen_exports as operations, pollCliLogin, replayDelivery, replayEmailWebhooks, replyToEmail, resendAgentSignupVerification, resendCliSignupVerification, rotateWebhookSecret, searchEmails, semanticSearch, sendEmail, setFunctionRoute, setFunctionSecret, startAgentSignup, startCliLogin, startCliSignup, testEndpoint, testFunction, unsetFunctionRoute, updateAccount, updateDomain, updateEndpoint, updateFilter, updateFunction, verifyAgentSignup, verifyCliSignup, verifyDomain, verifyWebhookSignature };
@@ -713,10 +713,11 @@ const pollCliLogin = (options) => (options.client ?? client$1).post({
713
713
  /**
714
714
  * Start CLI account signup
715
715
  *
716
- * Starts a terminal-native CLI signup. The API validates the signup code,
717
- * creates a pending signup session, sends an email verification code, and
718
- * returns an opaque signup token used by the resend and verify steps. This
719
- * endpoint does not require an API key.
716
+ * Starts a terminal-native CLI signup. `signup_code` is optional;
717
+ * omit it to sign up without one. The API creates a pending signup
718
+ * session, sends an email verification code, and returns an opaque
719
+ * signup token used by the resend and verify steps. This endpoint
720
+ * does not require an API key.
720
721
  *
721
722
  */
722
723
  const startCliSignup = (options) => (options.client ?? client$1).post({
@@ -745,10 +746,12 @@ const resendCliSignupVerification = (options) => (options.client ?? client$1).po
745
746
  /**
746
747
  * Verify CLI signup and create OAuth session
747
748
  *
748
- * Verifies the email code for a CLI signup session, creates the account,
749
- * redeems the reserved signup code, creates an org-scoped OAuth CLI
750
- * session, and returns the token set exactly once. This endpoint does not
751
- * require an API key.
749
+ * Verifies the email code for a CLI signup session and creates the
750
+ * account. When the session was started with a `signup_code`, the
751
+ * reserved code is redeemed; sessions started without a code skip
752
+ * the redemption step. Either way an org-scoped OAuth CLI session
753
+ * is created and the token set is returned exactly once. This
754
+ * endpoint does not require an API key.
752
755
  *
753
756
  */
754
757
  const verifyCliSignup = (options) => (options.client ?? client$1).post({
@@ -762,10 +765,11 @@ const verifyCliSignup = (options) => (options.client ?? client$1).post({
762
765
  /**
763
766
  * Start agent account signup
764
767
  *
765
- * Starts an agent-native signup session. The API validates the signup code,
766
- * creates a pending signup session, sends an email verification code, and
767
- * returns an opaque signup token used by the resend and verify steps. This
768
- * endpoint does not require an API key.
768
+ * Starts an agent-native signup session. `signup_code` is optional;
769
+ * omit it to sign up without one. The API creates a pending signup
770
+ * session, sends an email verification code, and returns an opaque
771
+ * signup token used by the resend and verify steps. This endpoint
772
+ * does not require an API key.
769
773
  *
770
774
  */
771
775
  const startAgentSignup = (options) => (options.client ?? client$1).post({
@@ -794,11 +798,15 @@ const resendAgentSignupVerification = (options) => (options.client ?? client$1).
794
798
  /**
795
799
  * Verify agent signup and create OAuth tokens
796
800
  *
797
- * Verifies the email code for an agent signup session, creates the account
798
- * when needed, redeems the reserved signup code, mints an org-scoped OAuth
799
- * session for CLI authentication, and returns the raw tokens exactly once.
800
- * For existing users, the optional `org_id` selects which accessible
801
- * workspace should receive the new session.
801
+ * Verifies the email code for an agent signup session and creates
802
+ * the account when needed. When the session was started with a
803
+ * `signup_code`, the reserved code is redeemed; sessions started
804
+ * without a code skip the redemption step. An org-scoped OAuth
805
+ * session for CLI authentication is minted and the raw tokens are
806
+ * returned exactly once. For existing users, the optional `org_id`
807
+ * selects which accessible workspace should receive the new
808
+ * session (no signup-code redemption is performed for existing
809
+ * users regardless of how the session was started).
802
810
  *
803
811
  */
804
812
  const verifyAgentSignup = (options) => (options.client ?? client$1).post({
@@ -506,7 +506,10 @@ type CliLoginPollResult = {
506
506
  };
507
507
  type StartCliSignupInput = {
508
508
  email: string;
509
- signup_code: string;
509
+ /**
510
+ * Optional signup code. Omit if you do not have one.
511
+ */
512
+ signup_code?: string;
510
513
  /**
511
514
  * Must be true to confirm acceptance of Primitive's Terms of Service and Privacy Policy
512
515
  */
@@ -598,7 +601,10 @@ type CliSignupVerifyResult = {
598
601
  };
599
602
  type StartAgentSignupInput = {
600
603
  email: string;
601
- signup_code: string;
604
+ /**
605
+ * Optional signup code. Omit if you do not have one.
606
+ */
607
+ signup_code?: string;
602
608
  /**
603
609
  * Must be true to confirm acceptance of Primitive's Terms of Service and Privacy Policy
604
610
  */
@@ -5374,10 +5380,11 @@ declare const pollCliLogin: <ThrowOnError extends boolean = false>(options: Opti
5374
5380
  /**
5375
5381
  * Start CLI account signup
5376
5382
  *
5377
- * Starts a terminal-native CLI signup. The API validates the signup code,
5378
- * creates a pending signup session, sends an email verification code, and
5379
- * returns an opaque signup token used by the resend and verify steps. This
5380
- * endpoint does not require an API key.
5383
+ * Starts a terminal-native CLI signup. `signup_code` is optional;
5384
+ * omit it to sign up without one. The API creates a pending signup
5385
+ * session, sends an email verification code, and returns an opaque
5386
+ * signup token used by the resend and verify steps. This endpoint
5387
+ * does not require an API key.
5381
5388
  *
5382
5389
  */
5383
5390
  declare const startCliSignup: <ThrowOnError extends boolean = false>(options: Options<StartCliSignupData, ThrowOnError>) => RequestResult<StartCliSignupResponses, StartCliSignupErrors, ThrowOnError, "fields">;
@@ -5392,20 +5399,23 @@ declare const resendCliSignupVerification: <ThrowOnError extends boolean = false
5392
5399
  /**
5393
5400
  * Verify CLI signup and create OAuth session
5394
5401
  *
5395
- * Verifies the email code for a CLI signup session, creates the account,
5396
- * redeems the reserved signup code, creates an org-scoped OAuth CLI
5397
- * session, and returns the token set exactly once. This endpoint does not
5398
- * require an API key.
5402
+ * Verifies the email code for a CLI signup session and creates the
5403
+ * account. When the session was started with a `signup_code`, the
5404
+ * reserved code is redeemed; sessions started without a code skip
5405
+ * the redemption step. Either way an org-scoped OAuth CLI session
5406
+ * is created and the token set is returned exactly once. This
5407
+ * endpoint does not require an API key.
5399
5408
  *
5400
5409
  */
5401
5410
  declare const verifyCliSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyCliSignupData, ThrowOnError>) => RequestResult<VerifyCliSignupResponses, VerifyCliSignupErrors, ThrowOnError, "fields">;
5402
5411
  /**
5403
5412
  * Start agent account signup
5404
5413
  *
5405
- * Starts an agent-native signup session. The API validates the signup code,
5406
- * creates a pending signup session, sends an email verification code, and
5407
- * returns an opaque signup token used by the resend and verify steps. This
5408
- * endpoint does not require an API key.
5414
+ * Starts an agent-native signup session. `signup_code` is optional;
5415
+ * omit it to sign up without one. The API creates a pending signup
5416
+ * session, sends an email verification code, and returns an opaque
5417
+ * signup token used by the resend and verify steps. This endpoint
5418
+ * does not require an API key.
5409
5419
  *
5410
5420
  */
5411
5421
  declare const startAgentSignup: <ThrowOnError extends boolean = false>(options: Options<StartAgentSignupData, ThrowOnError>) => RequestResult<StartAgentSignupResponses, StartAgentSignupErrors, ThrowOnError, "fields">;
@@ -5420,11 +5430,15 @@ declare const resendAgentSignupVerification: <ThrowOnError extends boolean = fal
5420
5430
  /**
5421
5431
  * Verify agent signup and create OAuth tokens
5422
5432
  *
5423
- * Verifies the email code for an agent signup session, creates the account
5424
- * when needed, redeems the reserved signup code, mints an org-scoped OAuth
5425
- * session for CLI authentication, and returns the raw tokens exactly once.
5426
- * For existing users, the optional `org_id` selects which accessible
5427
- * workspace should receive the new session.
5433
+ * Verifies the email code for an agent signup session and creates
5434
+ * the account when needed. When the session was started with a
5435
+ * `signup_code`, the reserved code is redeemed; sessions started
5436
+ * without a code skip the redemption step. An org-scoped OAuth
5437
+ * session for CLI authentication is minted and the raw tokens are
5438
+ * returned exactly once. For existing users, the optional `org_id`
5439
+ * selects which accessible workspace should receive the new
5440
+ * session (no signup-code redemption is performed for existing
5441
+ * users regardless of how the session was started).
5428
5442
  *
5429
5443
  */
5430
5444
  declare const verifyAgentSignup: <ThrowOnError extends boolean = false>(options: Options<VerifyAgentSignupData, ThrowOnError>) => RequestResult<VerifyAgentSignupResponses, VerifyAgentSignupErrors, ThrowOnError, "fields">;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as SendInput, d as client, f as createPrimitiveClient, i as ReplyInput, l as SendResult, n as PrimitiveClient, r as PrimitiveClientOptions, s as SendAttachment, t as ForwardInput, u as SendThreadInput, y as PrimitiveApiError } from "./index-9uc511Ei.js";
1
+ import { c as SendInput, d as client, f as createPrimitiveClient, i as ReplyInput, l as SendResult, n as PrimitiveClient, r as PrimitiveClientOptions, s as SendAttachment, t as ForwardInput, u as SendThreadInput, y as PrimitiveApiError } from "./index-DdSffRr0.js";
2
2
  import { A as UnknownEvent, C as ParsedDataFailed, D as RawContentDownloadOnly, E as RawContent, M as WebhookAttachment, N as WebhookEvent, O as RawContentInline, S as ParsedDataComplete, T as ParsedStatus, _ as ForwardResultInline, a as DmarcPolicy, b as KnownWebhookEvent, c as EmailAnalysis, d as EventType, f as ForwardAnalysis, g as ForwardResultAttachmentSkipped, h as ForwardResultAttachmentAnalyzed, i as DkimSignature, j as ValidateEmailAuthResult, k as SpfResult, l as EmailAuth, m as ForwardResult, n as AuthVerdict, o as DmarcResult, p as ForwardOriginalSender, r as DkimResult, s as EmailAddress, t as AuthConfidence, u as EmailReceivedEvent, v as ForwardVerdict, w as ParsedError, x as ParsedData, y as ForwardVerification } from "./types-yNU-Oiea.js";
3
3
  import { _ as buildForwardSubject, a as RawEmailDecodeErrorCode, b as normalizeReceivedEmail, c as WebhookPayloadError, d as WebhookValidationErrorCode, f as WebhookVerificationError, g as ReceivedEmailThread, h as ReceivedEmailAddress, i as RawEmailDecodeError, l as WebhookPayloadErrorCode, m as ReceivedEmail, n as PrimitiveWebhookError, o as VERIFICATION_ERRORS, p as WebhookVerificationErrorCode, r as RAW_EMAIL_ERRORS, s as WebhookErrorCode, t as PAYLOAD_ERRORS, u as WebhookValidationError, v as buildReplySubject, x as parseHeaderAddress, y as formatAddress } from "./errors-7E9sW9eX.js";
4
4
  import { A as VerifyOptions, C as signStandardWebhooksPayload, D as PRIMITIVE_CONFIRMED_HEADER, E as LEGACY_SIGNATURE_HEADER, F as VerifyDownloadTokenResult, I as generateDownloadToken, L as verifyDownloadToken, M as verifyWebhookSignature, N as GenerateDownloadTokenOptions, O as PRIMITIVE_SIGNATURE_HEADER, P as VerifyDownloadTokenOptions, R as safeValidateEmailReceivedEvent, S as StandardWebhooksVerifyOptions, T as LEGACY_CONFIRMED_HEADER, _ as emailReceivedEventJsonSchema, a as confirmedHeaders, b as STANDARD_WEBHOOK_TIMESTAMP_HEADER, c as handleWebhook, d as isRawIncluded, f as parseWebhookEvent, g as validateEmailAuth, h as WEBHOOK_VERSION, i as WebhookHeaders, j as signWebhookPayload, k as SignResult, l as isDownloadExpired, m as verifyRawEmailDownload, n as HandleWebhookOptions, o as decodeRawEmail, p as receive, r as ReceiveRequestOptions, s as getDownloadTimeRemaining, t as DecodeRawEmailOptions, u as isEmailReceivedEvent, v as STANDARD_WEBHOOK_ID_HEADER, w as verifyStandardWebhooksSignature, x as StandardWebhooksSignResult, y as STANDARD_WEBHOOK_SIGNATURE_HEADER, z as validateEmailReceivedEvent } from "./index-DR978rq5.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-Cxq2cH8Q.js";
1
+ import { c as PrimitiveApiError, n as client, r as createPrimitiveClient, t as PrimitiveClient } from "./api-JvyzQsXn.js";
2
2
  import { a as VERIFICATION_ERRORS, c as WebhookVerificationError, d as formatAddress, f as normalizeReceivedEmail, i as RawEmailDecodeError, l as buildForwardSubject, n as PrimitiveWebhookError, o as WebhookPayloadError, p as parseHeaderAddress, r as RAW_EMAIL_ERRORS, s as WebhookValidationError, t as PAYLOAD_ERRORS, u as buildReplySubject } from "./errors-BPJGp9I6.js";
3
3
  import { A as PRIMITIVE_CONFIRMED_HEADER, C as STANDARD_WEBHOOK_ID_HEADER, D as verifyStandardWebhooksSignature, E as signStandardWebhooksPayload, F as verifyDownloadToken, I as safeValidateEmailReceivedEvent, L as validateEmailReceivedEvent, M as signWebhookPayload, N as verifyWebhookSignature, O as LEGACY_CONFIRMED_HEADER, P as generateDownloadToken, S as emailReceivedEventJsonSchema, T as STANDARD_WEBHOOK_TIMESTAMP_HEADER, _ as DmarcResult, a as isDownloadExpired, b as ParsedStatus, c as parseWebhookEvent, d as WEBHOOK_VERSION, f as validateEmailAuth, g as DmarcPolicy, h as DkimResult, i as handleWebhook, j as PRIMITIVE_SIGNATURE_HEADER, k as LEGACY_SIGNATURE_HEADER, l as receive, m as AuthVerdict, n as decodeRawEmail, o as isEmailReceivedEvent, p as AuthConfidence, r as getDownloadTimeRemaining, s as isRawIncluded, t as confirmedHeaders, u as verifyRawEmailDownload, v as EventType, w as STANDARD_WEBHOOK_SIGNATURE_HEADER, x as SpfResult, y as ForwardVerdict } from "./webhook-BAwK8EOG.js";
4
4
  //#region src/index.ts
@@ -1,2 +1,2 @@
1
- import { n as openapiDocument, t as operationManifest } from "../operations.generated-CsHewGFi.js";
1
+ import { n as openapiDocument, t as operationManifest } from "../operations.generated-CvXrZUzc.js";
2
2
  export { openapiDocument, operationManifest };
@@ -201,7 +201,7 @@ const openapiDocument = {
201
201
  "/cli/signup/start": { "post": {
202
202
  "operationId": "startCliSignup",
203
203
  "summary": "Start CLI account signup",
204
- "description": "Starts a terminal-native CLI signup. The API validates the signup code,\ncreates a pending signup session, sends an email verification code, and\nreturns an opaque signup token used by the resend and verify steps. This\nendpoint does not require an API key.\n",
204
+ "description": "Starts a terminal-native CLI signup. `signup_code` is optional;\nomit it to sign up without one. The API creates a pending signup\nsession, sends an email verification code, and returns an opaque\nsignup token used by the resend and verify steps. This endpoint\ndoes not require an API key.\n",
205
205
  "tags": ["CLI"],
206
206
  "security": [],
207
207
  "requestBody": {
@@ -263,7 +263,7 @@ const openapiDocument = {
263
263
  "/cli/signup/verify": { "post": {
264
264
  "operationId": "verifyCliSignup",
265
265
  "summary": "Verify CLI signup and create OAuth session",
266
- "description": "Verifies the email code for a CLI signup session, creates the account,\nredeems the reserved signup code, creates an org-scoped OAuth CLI\nsession, and returns the token set exactly once. This endpoint does not\nrequire an API key.\n",
266
+ "description": "Verifies the email code for a CLI signup session and creates the\naccount. When the session was started with a `signup_code`, the\nreserved code is redeemed; sessions started without a code skip\nthe redemption step. Either way an org-scoped OAuth CLI session\nis created and the token set is returned exactly once. This\nendpoint does not require an API key.\n",
267
267
  "tags": ["CLI"],
268
268
  "security": [],
269
269
  "requestBody": {
@@ -292,7 +292,7 @@ const openapiDocument = {
292
292
  "/agent/signup/start": { "post": {
293
293
  "operationId": "startAgentSignup",
294
294
  "summary": "Start agent account signup",
295
- "description": "Starts an agent-native signup session. The API validates the signup code,\ncreates a pending signup session, sends an email verification code, and\nreturns an opaque signup token used by the resend and verify steps. This\nendpoint does not require an API key.\n",
295
+ "description": "Starts an agent-native signup session. `signup_code` is optional;\nomit it to sign up without one. The API creates a pending signup\nsession, sends an email verification code, and returns an opaque\nsignup token used by the resend and verify steps. This endpoint\ndoes not require an API key.\n",
296
296
  "tags": ["Agent"],
297
297
  "security": [],
298
298
  "requestBody": {
@@ -354,7 +354,7 @@ const openapiDocument = {
354
354
  "/agent/signup/verify": { "post": {
355
355
  "operationId": "verifyAgentSignup",
356
356
  "summary": "Verify agent signup and create OAuth tokens",
357
- "description": "Verifies the email code for an agent signup session, creates the account\nwhen needed, redeems the reserved signup code, mints an org-scoped OAuth\nsession for CLI authentication, and returns the raw tokens exactly once.\nFor existing users, the optional `org_id` selects which accessible\nworkspace should receive the new session.\n",
357
+ "description": "Verifies the email code for an agent signup session and creates\nthe account when needed. When the session was started with a\n`signup_code`, the reserved code is redeemed; sessions started\nwithout a code skip the redemption step. An org-scoped OAuth\nsession for CLI authentication is minted and the raw tokens are\nreturned exactly once. For existing users, the optional `org_id`\nselects which accessible workspace should receive the new\nsession (no signup-code redemption is performed for existing\nusers regardless of how the session was started).\n",
358
358
  "tags": ["Agent"],
359
359
  "security": [],
360
360
  "requestBody": {
@@ -2604,7 +2604,8 @@ const openapiDocument = {
2604
2604
  "signup_code": {
2605
2605
  "type": "string",
2606
2606
  "minLength": 1,
2607
- "maxLength": 128
2607
+ "maxLength": 128,
2608
+ "description": "Optional signup code. Omit if you do not have one."
2608
2609
  },
2609
2610
  "terms_accepted": {
2610
2611
  "type": "boolean",
@@ -2623,11 +2624,7 @@ const openapiDocument = {
2623
2624
  "description": "Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer"
2624
2625
  }
2625
2626
  },
2626
- "required": [
2627
- "email",
2628
- "signup_code",
2629
- "terms_accepted"
2630
- ]
2627
+ "required": ["email", "terms_accepted"]
2631
2628
  },
2632
2629
  "CliSignupStartResult": {
2633
2630
  "type": "object",
@@ -2792,7 +2789,8 @@ const openapiDocument = {
2792
2789
  "signup_code": {
2793
2790
  "type": "string",
2794
2791
  "minLength": 1,
2795
- "maxLength": 128
2792
+ "maxLength": 128,
2793
+ "description": "Optional signup code. Omit if you do not have one."
2796
2794
  },
2797
2795
  "terms_accepted": {
2798
2796
  "type": "boolean",
@@ -2811,11 +2809,7 @@ const openapiDocument = {
2811
2809
  "description": "Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer"
2812
2810
  }
2813
2811
  },
2814
- "required": [
2815
- "email",
2816
- "signup_code",
2817
- "terms_accepted"
2818
- ]
2812
+ "required": ["email", "terms_accepted"]
2819
2813
  },
2820
2814
  "AgentSignupStartResult": {
2821
2815
  "type": "object",
@@ -6340,7 +6334,7 @@ const operationManifest = [
6340
6334
  "binaryResponse": false,
6341
6335
  "bodyRequired": true,
6342
6336
  "command": "start-agent-signup",
6343
- "description": "Starts an agent-native signup session. The API validates the signup code,\ncreates a pending signup session, sends an email verification code, and\nreturns an opaque signup token used by the resend and verify steps. This\nendpoint does not require an API key.\n",
6337
+ "description": "Starts an agent-native signup session. `signup_code` is optional;\nomit it to sign up without one. The API creates a pending signup\nsession, sends an email verification code, and returns an opaque\nsignup token used by the resend and verify steps. This endpoint\ndoes not require an API key.\n",
6344
6338
  "hasJsonBody": true,
6345
6339
  "method": "POST",
6346
6340
  "operationId": "startAgentSignup",
@@ -6359,7 +6353,8 @@ const operationManifest = [
6359
6353
  "signup_code": {
6360
6354
  "type": "string",
6361
6355
  "minLength": 1,
6362
- "maxLength": 128
6356
+ "maxLength": 128,
6357
+ "description": "Optional signup code. Omit if you do not have one."
6363
6358
  },
6364
6359
  "terms_accepted": {
6365
6360
  "type": "boolean",
@@ -6378,11 +6373,7 @@ const operationManifest = [
6378
6373
  "description": "Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer"
6379
6374
  }
6380
6375
  },
6381
- "required": [
6382
- "email",
6383
- "signup_code",
6384
- "terms_accepted"
6385
- ]
6376
+ "required": ["email", "terms_accepted"]
6386
6377
  },
6387
6378
  "responseSchema": {
6388
6379
  "type": "object",
@@ -6425,7 +6416,7 @@ const operationManifest = [
6425
6416
  "binaryResponse": false,
6426
6417
  "bodyRequired": true,
6427
6418
  "command": "verify-agent-signup",
6428
- "description": "Verifies the email code for an agent signup session, creates the account\nwhen needed, redeems the reserved signup code, mints an org-scoped OAuth\nsession for CLI authentication, and returns the raw tokens exactly once.\nFor existing users, the optional `org_id` selects which accessible\nworkspace should receive the new session.\n",
6419
+ "description": "Verifies the email code for an agent signup session and creates\nthe account when needed. When the session was started with a\n`signup_code`, the reserved code is redeemed; sessions started\nwithout a code skip the redemption step. An org-scoped OAuth\nsession for CLI authentication is minted and the raw tokens are\nreturned exactly once. For existing users, the optional `org_id`\nselects which accessible workspace should receive the new\nsession (no signup-code redemption is performed for existing\nusers regardless of how the session was started).\n",
6429
6420
  "hasJsonBody": true,
6430
6421
  "method": "POST",
6431
6422
  "operationId": "verifyAgentSignup",
@@ -6795,7 +6786,7 @@ const operationManifest = [
6795
6786
  "binaryResponse": false,
6796
6787
  "bodyRequired": true,
6797
6788
  "command": "start-cli-signup",
6798
- "description": "Starts a terminal-native CLI signup. The API validates the signup code,\ncreates a pending signup session, sends an email verification code, and\nreturns an opaque signup token used by the resend and verify steps. This\nendpoint does not require an API key.\n",
6789
+ "description": "Starts a terminal-native CLI signup. `signup_code` is optional;\nomit it to sign up without one. The API creates a pending signup\nsession, sends an email verification code, and returns an opaque\nsignup token used by the resend and verify steps. This endpoint\ndoes not require an API key.\n",
6799
6790
  "hasJsonBody": true,
6800
6791
  "method": "POST",
6801
6792
  "operationId": "startCliSignup",
@@ -6814,7 +6805,8 @@ const operationManifest = [
6814
6805
  "signup_code": {
6815
6806
  "type": "string",
6816
6807
  "minLength": 1,
6817
- "maxLength": 128
6808
+ "maxLength": 128,
6809
+ "description": "Optional signup code. Omit if you do not have one."
6818
6810
  },
6819
6811
  "terms_accepted": {
6820
6812
  "type": "boolean",
@@ -6833,11 +6825,7 @@ const operationManifest = [
6833
6825
  "description": "Optional client metadata stored with the signup session; serialized JSON must be 2048 bytes or fewer"
6834
6826
  }
6835
6827
  },
6836
- "required": [
6837
- "email",
6838
- "signup_code",
6839
- "terms_accepted"
6840
- ]
6828
+ "required": ["email", "terms_accepted"]
6841
6829
  },
6842
6830
  "responseSchema": {
6843
6831
  "type": "object",
@@ -6880,7 +6868,7 @@ const operationManifest = [
6880
6868
  "binaryResponse": false,
6881
6869
  "bodyRequired": true,
6882
6870
  "command": "verify-cli-signup",
6883
- "description": "Verifies the email code for a CLI signup session, creates the account,\nredeems the reserved signup code, creates an org-scoped OAuth CLI\nsession, and returns the token set exactly once. This endpoint does not\nrequire an API key.\n",
6871
+ "description": "Verifies the email code for a CLI signup session and creates the\naccount. When the session was started with a `signup_code`, the\nreserved code is redeemed; sessions started without a code skip\nthe redemption step. Either way an org-scoped OAuth CLI session\nis created and the token set is returned exactly once. This\nendpoint does not require an API key.\n",
6884
6872
  "hasJsonBody": true,
6885
6873
  "method": "POST",
6886
6874
  "operationId": "verifyCliSignup",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitivedotdev/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Official Primitive Node.js SDK: webhook, api, openapi, contract, and parser runtime modules.",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",